@tricoteuses/tisseuse 0.13.12 → 0.14.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.
- package/dist/{html-DhGw-Yqr.js → html-BKxA21Bq.js} +3118 -2926
- package/dist/index.js +64 -64
- package/dist/{resolver-DZS-DNp6.js → resolver-dqOM1G7A.js} +191 -137
- package/dist/server-f-legi.js +26 -17
- package/dist/server.js +1264 -564
- package/dist/src/lib/extractors/article_portions.d.ts +8 -0
- package/dist/src/lib/extractors/portion_references.d.ts +10 -0
- package/dist/src/lib/extractors/portion_references.test.d.ts +1 -0
- package/dist/src/lib/extractors/quoted_text.d.ts +20 -0
- package/dist/src/lib/extractors/table_of_contents.d.ts +18 -8
- package/dist/src/lib/extractors/table_of_contents.test.d.ts +1 -0
- package/dist/src/lib/index.d.ts +4 -4
- package/dist/src/lib/server/index.d.ts +2 -1
- package/dist/src/lib/server/parsed_amendments.d.ts +71 -0
- package/dist/src/lib/server/parsed_amendments.test.d.ts +1 -0
- package/dist/src/lib/server/parsed_bills.d.ts +6 -3
- package/dist/src/lib/text_parsers/action_citation_patterns.d.ts +2 -0
- package/dist/src/lib/text_parsers/action_citation_patterns.test.d.ts +1 -0
- package/dist/src/lib/text_parsers/action_occurrences.d.ts +3 -0
- package/dist/src/lib/text_parsers/action_occurrences.test.d.ts +1 -0
- package/dist/src/lib/text_parsers/action_position_cues.d.ts +12 -0
- package/dist/src/lib/text_parsers/action_position_cues.test.d.ts +1 -0
- package/dist/src/lib/text_parsers/action_target_scopes.d.ts +7 -0
- package/dist/src/lib/text_parsers/action_words.d.ts +10 -0
- package/dist/src/lib/text_parsers/amendment_action_directives.d.ts +17 -0
- package/dist/src/lib/text_parsers/articles.d.ts +17 -0
- package/dist/src/lib/text_parsers/citations.d.ts +4 -0
- package/dist/src/lib/text_parsers/numbers.d.ts +18 -15
- package/dist/src/lib/text_parsers/repeated_actions.d.ts +4 -0
- package/dist/src/lib/text_parsers/repeated_actions.test.d.ts +1 -0
- package/dist/src/scripts/shared/checkpoint_cli_options.d.ts +4 -0
- package/dist/src/scripts/shared/checkpoint_cli_options.test.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as e, A as t,
|
|
2
|
-
import { $ as
|
|
1
|
+
import { $ as e, A as t, At as n, B as r, Ct as i, Dt as a, Et as o, F as s, Ft as c, G as l, H as u, I as d, It as f, J as p, K as m, L as ee, Lt as te, M as ne, Mt as re, N as ie, Nt as ae, O as oe, Ot as se, P as ce, Pt as le, Q as ue, R as de, Rt as fe, St as pe, Tt as me, V as he, W as ge, X as _e, Z as ve, _t as ye, a as be, at as xe, b as Se, bt as Ce, c as we, ct as Te, d as Ee, dt as h, et as De, f as Oe, ft as ke, g as Ae, gt as je, h as Me, ht as Ne, i as g, it as Pe, j as Fe, jt as Ie, k as Le, kt as Re, l as _, lt as ze, m as Be, mt as Ve, n as He, nt as Ue, o as We, ot as Ge, p as Ke, pt as qe, q as Je, r as Ye, rt as Xe, s as Ze, st as Qe, t as $e, tt as et, u as tt, ut as v, wt as nt, xt as rt, yt as it, z as at } from "./html-BKxA21Bq.js";
|
|
2
|
+
import { $ as ot, A as st, At as ct, B as lt, C as ut, Ct as y, D as b, E as dt, Et as x, F as S, Ft as C, G as ft, H as pt, I as w, J as mt, K as ht, M as gt, Mt as _t, N as vt, Nt as yt, O as bt, P as xt, Pt as St, Q as T, S as Ct, St as wt, T as Tt, Tt as E, W as Et, X as Dt, Y as Ot, Z as kt, _ as D, a as At, b as jt, bt as Mt, c as Nt, ct as Pt, d as Ft, dt as It, f as Lt, ft as Rt, g as zt, gt as O, h as Bt, i as Vt, it as Ht, j as Ut, jt as k, k as Wt, kt as A, l as Gt, lt as Kt, m as qt, o as Jt, ot as Yt, p as Xt, q as Zt, r as Qt, s as $t, t as en, tt as tn, u as nn, ut as rn, v as j, vt as an, w as on, wt as M, x as sn, y as cn, yt as ln, z as un } from "./resolver-dqOM1G7A.js";
|
|
3
3
|
//#region ../../node_modules/@tricoteuses/legifrance/dist/legal/index.js
|
|
4
|
-
function
|
|
4
|
+
function dn(e, t) {
|
|
5
5
|
if (e != null) {
|
|
6
6
|
if (!Array.isArray(e)) return e;
|
|
7
7
|
for (let n of e) if (n["@debut"] <= t && t <= n["@fin"]) return n;
|
|
@@ -23,7 +23,7 @@ async function P(e, t, n) {
|
|
|
23
23
|
WHERE id = ${n}
|
|
24
24
|
`).map(N)[0], r.set(n, i ?? null)), i ?? void 0;
|
|
25
25
|
}
|
|
26
|
-
async function
|
|
26
|
+
async function fn(e, t, n) {
|
|
27
27
|
let r = t.get("JO");
|
|
28
28
|
r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("JO", r));
|
|
29
29
|
let i = r.get(n);
|
|
@@ -45,7 +45,7 @@ async function F(e, t, n) {
|
|
|
45
45
|
WHERE id = ${n}
|
|
46
46
|
`)[0]?.data, r.set(n, i ?? null)), i ?? void 0;
|
|
47
47
|
}
|
|
48
|
-
async function
|
|
48
|
+
async function pn(e, t, n) {
|
|
49
49
|
let r = t.get("SECTION_TA");
|
|
50
50
|
r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("SECTION_TA", r));
|
|
51
51
|
let i = new Set(n), a = [];
|
|
@@ -61,7 +61,7 @@ async function on(e, t, n) {
|
|
|
61
61
|
`).map(({ data: e }) => e)) r.set(t.ID, t), a.push(t);
|
|
62
62
|
return a;
|
|
63
63
|
}
|
|
64
|
-
async function
|
|
64
|
+
async function mn(e, t, n) {
|
|
65
65
|
let r = t.get("TEXTELR");
|
|
66
66
|
r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("TEXTELR", r));
|
|
67
67
|
let i = r.get(n);
|
|
@@ -72,7 +72,7 @@ async function sn(e, t, n) {
|
|
|
72
72
|
WHERE id = ${n}
|
|
73
73
|
`)[0]?.data, r.set(n, i ?? null)), i ?? void 0;
|
|
74
74
|
}
|
|
75
|
-
async function
|
|
75
|
+
async function hn(e, t, n) {
|
|
76
76
|
let r = t.get("TEXTEKALI");
|
|
77
77
|
r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("TEXTEKALI", r));
|
|
78
78
|
let i = r.get(n);
|
|
@@ -82,7 +82,7 @@ async function cn(e, t, n) {
|
|
|
82
82
|
WHERE id = ${n}
|
|
83
83
|
`)[0]?.data, r.set(n, i ?? null)), i ?? void 0;
|
|
84
84
|
}
|
|
85
|
-
async function
|
|
85
|
+
async function gn(e, t, n) {
|
|
86
86
|
let r = t.get("TEXTELR");
|
|
87
87
|
r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("TEXTELR", r));
|
|
88
88
|
let i = new Set(n), a = [];
|
|
@@ -97,7 +97,7 @@ async function ln(e, t, n) {
|
|
|
97
97
|
`).map(({ data: e }) => e)) r.set(t.META.META_COMMUN.ID, t), a.push(t);
|
|
98
98
|
return a;
|
|
99
99
|
}
|
|
100
|
-
async function
|
|
100
|
+
async function _n(e, t, n) {
|
|
101
101
|
let r = t.get("TEXTE_VERSION");
|
|
102
102
|
r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("TEXTE_VERSION", r));
|
|
103
103
|
let i = new Set(n), a = [];
|
|
@@ -112,7 +112,7 @@ async function un(e, t, n) {
|
|
|
112
112
|
`).map(({ data: e }) => e)) r.set(t.META.META_COMMUN.ID, t), a.push(t);
|
|
113
113
|
return a;
|
|
114
114
|
}
|
|
115
|
-
async function
|
|
115
|
+
async function vn(e, t, n) {
|
|
116
116
|
let r = t.get("TEXTE_VERSION");
|
|
117
117
|
r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("TEXTE_VERSION", r));
|
|
118
118
|
let i = r.get(n);
|
|
@@ -123,7 +123,7 @@ async function dn(e, t, n) {
|
|
|
123
123
|
WHERE id = ${n}
|
|
124
124
|
`)[0]?.data, r.set(n, i ?? null)), i ?? void 0;
|
|
125
125
|
}
|
|
126
|
-
async function
|
|
126
|
+
async function yn(e, t, n) {
|
|
127
127
|
let r = t.get("ARTICLE");
|
|
128
128
|
r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("ARTICLE", r));
|
|
129
129
|
let i = [];
|
|
@@ -143,15 +143,15 @@ function L(e) {
|
|
|
143
143
|
function R(e) {
|
|
144
144
|
return e !== void 0 && I.includes(e);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function bn({ dateDebut: e, sourceDateDebut: t, sourceDateFin: n }) {
|
|
147
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
148
|
}
|
|
149
|
-
var
|
|
149
|
+
var xn = (e) => {
|
|
150
150
|
if (e !== void 0) for (let t = 0; t < e.length; ++t) {
|
|
151
|
-
let n = T(new
|
|
151
|
+
let n = T(new y(e, t));
|
|
152
152
|
if (typeof n == "string") return n;
|
|
153
153
|
}
|
|
154
|
-
}, z = (e) => (e === void 0 ? [] : Array.isArray(e) ? e : [e]).map((e) =>
|
|
154
|
+
}, z = (e) => (e === void 0 ? [] : Array.isArray(e) ? e : [e]).map((e) => xn(e["#text"])).find((e) => e !== void 0), Sn = (e) => {
|
|
155
155
|
let t = e.META.META_SPEC.META_ARTICLE.DATE_DEBUT;
|
|
156
156
|
if (t !== void 0 && !I.includes(t)) return t;
|
|
157
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));
|
|
@@ -182,7 +182,7 @@ var mn = (e) => {
|
|
|
182
182
|
if (I.includes(t ?? "")) return t;
|
|
183
183
|
throw Error(`Missing date signature in article ${e.META.META_COMMUN.ID}`);
|
|
184
184
|
};
|
|
185
|
-
async function
|
|
185
|
+
async function Cn(e, t, n, r) {
|
|
186
186
|
let i = await P(e, t, n);
|
|
187
187
|
if (i === void 0) return;
|
|
188
188
|
let a = B(i), o = i.META.META_COMMUN.ORIGINE;
|
|
@@ -195,9 +195,9 @@ async function gn(e, t, n, r) {
|
|
|
195
195
|
l = c.map((e) => e.TITRE_TM["@id"]);
|
|
196
196
|
break;
|
|
197
197
|
case "LEGI":
|
|
198
|
-
l = c.map((e) =>
|
|
198
|
+
l = c.map((e) => dn(e.TITRE_TM, a)?.["@id"]);
|
|
199
199
|
break;
|
|
200
|
-
default:
|
|
200
|
+
default: C("getOrLoadArticleSiblingId origine", o);
|
|
201
201
|
}
|
|
202
202
|
return await (r === -1 ? G : W)(e, t, n, a, i.num, l);
|
|
203
203
|
}
|
|
@@ -288,7 +288,7 @@ async function W(e, t, n, r, i, a, o = 0, s = {}, c = void 0) {
|
|
|
288
288
|
}
|
|
289
289
|
return await W(e, t, n, r, i, a, o + 1, s, l);
|
|
290
290
|
}
|
|
291
|
-
default:
|
|
291
|
+
default: C("moveToNextArticleId area", d);
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
async function G(e, t, n, r, i, a, o = 0, s = {}, c = void 0) {
|
|
@@ -317,10 +317,10 @@ async function G(e, t, n, r, i, a, o = 0, s = {}, c = void 0) {
|
|
|
317
317
|
let c = m.LIEN_ART;
|
|
318
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
319
|
}
|
|
320
|
-
default:
|
|
320
|
+
default: C("moveToPreviousArticleId area", d);
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
|
-
var
|
|
323
|
+
var wn = (e) => (t, n) => {
|
|
324
324
|
let r = e(t), i = e(n);
|
|
325
325
|
if (r !== i) return r.localeCompare(i);
|
|
326
326
|
let a = t.META.META_COMMUN, o = a.ORIGINE, s = n.META.META_COMMUN, c = s.ORIGINE;
|
|
@@ -339,16 +339,16 @@ var _n = (e) => (t, n) => {
|
|
|
339
339
|
if (m <= i) return 1;
|
|
340
340
|
}
|
|
341
341
|
throw Error(`TODO: Unable to sort articles ${a.ID} & ${s.ID} by date.`);
|
|
342
|
-
}, K = () => /* @__PURE__ */ new Map(), q = () => /* @__PURE__ */ new Map(),
|
|
342
|
+
}, K = () => /* @__PURE__ */ new Map(), q = () => /* @__PURE__ */ new Map(), Tn = () => ({
|
|
343
343
|
assemblee: K(),
|
|
344
344
|
legifrance: q()
|
|
345
|
-
}),
|
|
346
|
-
function
|
|
347
|
-
return
|
|
345
|
+
}), En = new Intl.DateTimeFormat("fr-FR", { dateStyle: "long" });
|
|
346
|
+
function Dn(e) {
|
|
347
|
+
return En.format(new Date(e)).replace(/^1 /, "1er ");
|
|
348
348
|
}
|
|
349
349
|
//#endregion
|
|
350
350
|
//#region src/lib/json.ts
|
|
351
|
-
var
|
|
351
|
+
var On = (e, t) => t instanceof Object && !Array.isArray(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t;
|
|
352
352
|
//#endregion
|
|
353
353
|
//#region src/lib/markdown.ts
|
|
354
354
|
function J(e) {
|
|
@@ -357,10 +357,10 @@ function J(e) {
|
|
|
357
357
|
//#endregion
|
|
358
358
|
//#region src/lib/linkers/markdown.ts
|
|
359
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
|
|
360
|
+
let s = t ?? (e === void 0 ? void 0 : new Ee(e));
|
|
361
361
|
if (s === void 0) throw Error("A Canutes database or legal resolver is required");
|
|
362
362
|
await s.preloadTextTitlesInfos();
|
|
363
|
-
let c = b(o), l = new
|
|
363
|
+
let c = b(o), l = new y(c.output);
|
|
364
364
|
l.currentArticle = a?.currentArticle, l.currentText = a?.currentText;
|
|
365
365
|
let u = o, d = 0;
|
|
366
366
|
for await (let e of _({
|
|
@@ -374,7 +374,7 @@ async function Y({ canutesDb: e, legiResolver: t, date: n, linkBaseUrl: r, linkT
|
|
|
374
374
|
let { articleId: t, originalTransformation: n } = e;
|
|
375
375
|
if (t !== void 0) {
|
|
376
376
|
if (n === void 0) throw Error(`Missing originalTransformation attribute in external article link: ${JSON.stringify(e, null, 2)}`);
|
|
377
|
-
let a =
|
|
377
|
+
let a = w(n, `[${J(S(u, n, d))}](${g(i, r, t)})`);
|
|
378
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);
|
|
379
379
|
}
|
|
380
380
|
break;
|
|
@@ -383,7 +383,7 @@ async function Y({ canutesDb: e, legiResolver: t, date: n, linkBaseUrl: r, linkT
|
|
|
383
383
|
let { originalTransformation: t, sectionTaId: n } = e;
|
|
384
384
|
if (n !== void 0) {
|
|
385
385
|
if (t === void 0) throw Error(`Missing originalTransformation attribute in external division link: ${JSON.stringify(e, null, 2)}`);
|
|
386
|
-
let a =
|
|
386
|
+
let a = w(t, `[${J(S(u, t, d))}](${g(i, r, n)})`);
|
|
387
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);
|
|
388
388
|
}
|
|
389
389
|
break;
|
|
@@ -395,14 +395,14 @@ async function Y({ canutesDb: e, legiResolver: t, date: n, linkBaseUrl: r, linkT
|
|
|
395
395
|
continue;
|
|
396
396
|
}
|
|
397
397
|
if (t === void 0) throw Error(`Missing originalTransformation attribute in external text link: ${JSON.stringify(e, null, 2)}`);
|
|
398
|
-
let a =
|
|
398
|
+
let a = w(t, `[${J(S(u, t, d))}](${g(i, r, n.cid)})`);
|
|
399
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);
|
|
400
400
|
break;
|
|
401
401
|
}
|
|
402
402
|
case "internal_article": {
|
|
403
403
|
let { definition: t, originalTransformation: n } = e;
|
|
404
404
|
if (n === void 0) throw Error(`Missing originalTransformation attribute in internal article link: ${JSON.stringify(e, null, 2)}`);
|
|
405
|
-
let r =
|
|
405
|
+
let r = w(n, `[${J(S(u, n, d))}](#definition_article_${t.textId}_${t.article.num.replaceAll(" ", "_")})`);
|
|
406
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);
|
|
407
407
|
break;
|
|
408
408
|
}
|
|
@@ -410,11 +410,11 @@ async function Y({ canutesDb: e, legiResolver: t, date: n, linkBaseUrl: r, linkT
|
|
|
410
410
|
let { url: t, originalTransformation: n } = e;
|
|
411
411
|
if (t === void 0) continue;
|
|
412
412
|
if (n === void 0) throw Error(`Missing originalTransformation attribute in european text link: ${JSON.stringify(e, null, 2)}`);
|
|
413
|
-
let r =
|
|
413
|
+
let r = w(n, `<a class="lien_texte_european" href="${t}" target="_blank">${S(u, n, d)}</a>`);
|
|
414
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);
|
|
415
415
|
break;
|
|
416
416
|
}
|
|
417
|
-
default:
|
|
417
|
+
default: C("Link", e);
|
|
418
418
|
}
|
|
419
419
|
return {
|
|
420
420
|
context: l,
|
|
@@ -423,7 +423,7 @@ async function Y({ canutesDb: e, legiResolver: t, date: n, linkBaseUrl: r, linkT
|
|
|
423
423
|
}
|
|
424
424
|
//#endregion
|
|
425
425
|
//#region src/lib/loaders/assemblee.ts
|
|
426
|
-
async function
|
|
426
|
+
async function kn(e, t, n) {
|
|
427
427
|
let r = t.get("Document");
|
|
428
428
|
r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("Document", r));
|
|
429
429
|
let i = r.get(n);
|
|
@@ -433,7 +433,7 @@ async function Sn(e, t, n) {
|
|
|
433
433
|
WHERE uid = ${n}
|
|
434
434
|
`)[0]?.data, r.set(n, i ?? null)), i ?? void 0;
|
|
435
435
|
}
|
|
436
|
-
async function
|
|
436
|
+
async function An(e, t, n) {
|
|
437
437
|
let r = t.get("Document");
|
|
438
438
|
return r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("Document", r)), (await e`
|
|
439
439
|
SELECT data, uid
|
|
@@ -441,7 +441,7 @@ async function Cn(e, t, n) {
|
|
|
441
441
|
WHERE data ->> 'dossierRef' = ${n}
|
|
442
442
|
`).map(({ data: e, uid: t }) => (r.set(t, e ?? null), e));
|
|
443
443
|
}
|
|
444
|
-
async function
|
|
444
|
+
async function jn(e, t, n) {
|
|
445
445
|
let r = t.get("DossierParlementaire");
|
|
446
446
|
r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("DossierParlementaire", r));
|
|
447
447
|
let i = r.get(n);
|
|
@@ -453,15 +453,15 @@ async function wn(e, t, n) {
|
|
|
453
453
|
}
|
|
454
454
|
//#endregion
|
|
455
455
|
//#region src/lib/text_parsers/search_queries.ts
|
|
456
|
-
var
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
456
|
+
var Mn = k("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i" }), X = E([
|
|
457
|
+
Mn,
|
|
458
|
+
A(O, { default: "" }),
|
|
459
|
+
M(v, h)
|
|
460
460
|
], { value: (e, t) => ({
|
|
461
461
|
num: e[2],
|
|
462
462
|
position: t.position(),
|
|
463
463
|
type: "article"
|
|
464
|
-
}) }),
|
|
464
|
+
}) }), Nn = M(k("c(?:ode|\\.)? ?civ(?:il)?", {
|
|
465
465
|
flags: "i",
|
|
466
466
|
value: (e, t) => ({
|
|
467
467
|
cid: "LEGITEXT000006070721",
|
|
@@ -470,7 +470,7 @@ var Tn = O("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
470
470
|
title: "Code civil",
|
|
471
471
|
type: "texte"
|
|
472
472
|
})
|
|
473
|
-
}),
|
|
473
|
+
}), k("c(?:ode|\\.)? ?trav(?:ail)?", {
|
|
474
474
|
flags: "i",
|
|
475
475
|
value: (e, t) => ({
|
|
476
476
|
cid: "LEGITEXT000006072050",
|
|
@@ -479,7 +479,7 @@ var Tn = O("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
479
479
|
title: "Code du travail",
|
|
480
480
|
type: "texte"
|
|
481
481
|
})
|
|
482
|
-
}),
|
|
482
|
+
}), k("c(?:ode|\\.)? ?p[eé]n(?:al)?", {
|
|
483
483
|
flags: "i",
|
|
484
484
|
value: (e, t) => ({
|
|
485
485
|
cid: "LEGITEXT000006070719",
|
|
@@ -488,7 +488,7 @@ var Tn = O("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
488
488
|
title: "Code pénal",
|
|
489
489
|
type: "texte"
|
|
490
490
|
})
|
|
491
|
-
}),
|
|
491
|
+
}), k("c(?:ode|\\.)? ?pr(?:oc(?:[eé]dure)?)? ?p[eé]n(?:al)?|cpp", {
|
|
492
492
|
flags: "i",
|
|
493
493
|
value: (e, t) => ({
|
|
494
494
|
cid: "LEGITEXT000006071154",
|
|
@@ -497,7 +497,7 @@ var Tn = O("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
497
497
|
title: "Code de procédure pénale",
|
|
498
498
|
type: "texte"
|
|
499
499
|
})
|
|
500
|
-
}),
|
|
500
|
+
}), k("c(?:ode|\\.)? ?pr(?:oc(?:[eé]dure)?)? ?civ(?:il)?|cpc", {
|
|
501
501
|
flags: "i",
|
|
502
502
|
value: (e, t) => ({
|
|
503
503
|
cid: "LEGITEXT000006070716",
|
|
@@ -506,7 +506,7 @@ var Tn = O("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
506
506
|
title: "Code de procédure civile",
|
|
507
507
|
type: "texte"
|
|
508
508
|
})
|
|
509
|
-
}),
|
|
509
|
+
}), k("c(?:ode|\\.)? ?s[eé]cur(?:it[eé])? ?soc(?:iale)?|css", {
|
|
510
510
|
flags: "i",
|
|
511
511
|
value: (e, t) => ({
|
|
512
512
|
cid: "LEGITEXT000006073189",
|
|
@@ -515,7 +515,7 @@ var Tn = O("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
515
515
|
title: "Code de la sécurité sociale",
|
|
516
516
|
type: "texte"
|
|
517
517
|
})
|
|
518
|
-
}),
|
|
518
|
+
}), k("c(?:ode|\\.)? ?rur(?:al)?(?: et de la p[êe]che maritime)?", {
|
|
519
519
|
flags: "i",
|
|
520
520
|
value: (e, t) => ({
|
|
521
521
|
cid: "LEGITEXT000006071367",
|
|
@@ -524,7 +524,7 @@ var Tn = O("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
524
524
|
title: "Code rural et de la pêche maritime",
|
|
525
525
|
type: "texte"
|
|
526
526
|
})
|
|
527
|
-
}),
|
|
527
|
+
}), k("c(?:ode|\\.)? ?env(?:ironnement)?", {
|
|
528
528
|
flags: "i",
|
|
529
529
|
value: (e, t) => ({
|
|
530
530
|
cid: "LEGITEXT000006074220",
|
|
@@ -533,7 +533,7 @@ var Tn = O("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
533
533
|
title: "Code de l'environnement",
|
|
534
534
|
type: "texte"
|
|
535
535
|
})
|
|
536
|
-
}),
|
|
536
|
+
}), k("c(?:ode|\\.)? ?urb(?:anisme)?", {
|
|
537
537
|
flags: "i",
|
|
538
538
|
value: (e, t) => ({
|
|
539
539
|
cid: "LEGITEXT000006074075",
|
|
@@ -542,7 +542,7 @@ var Tn = O("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
542
542
|
title: "Code de l'urbanisme",
|
|
543
543
|
type: "texte"
|
|
544
544
|
})
|
|
545
|
-
}),
|
|
545
|
+
}), k("c(?:ode|\\.)? ?jus(?:tice)? ?adm(?:in(?:istrative)?)?|cja", {
|
|
546
546
|
flags: "i",
|
|
547
547
|
value: (e, t) => ({
|
|
548
548
|
cid: "LEGITEXT000006070933",
|
|
@@ -551,7 +551,7 @@ var Tn = O("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
551
551
|
title: "Code de justice administrative",
|
|
552
552
|
type: "texte"
|
|
553
553
|
})
|
|
554
|
-
}),
|
|
554
|
+
}), k("cgi", {
|
|
555
555
|
flags: "i",
|
|
556
556
|
value: (e, t) => ({
|
|
557
557
|
cid: "LEGITEXT000006069577",
|
|
@@ -560,7 +560,7 @@ var Tn = O("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
560
560
|
title: "Code général des impôts",
|
|
561
561
|
type: "texte"
|
|
562
562
|
})
|
|
563
|
-
}),
|
|
563
|
+
}), k("c(?:ode|\\.)? ?com(?:merce)?", {
|
|
564
564
|
flags: "i",
|
|
565
565
|
value: (e, t) => ({
|
|
566
566
|
cid: "LEGITEXT000005634379",
|
|
@@ -569,27 +569,27 @@ var Tn = O("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
569
569
|
title: "Code de commerce",
|
|
570
570
|
type: "texte"
|
|
571
571
|
})
|
|
572
|
-
})), Z =
|
|
572
|
+
})), Z = M(Nn, x(j, { value: (e, t) => e === void 0 ? void 0 : {
|
|
573
573
|
...e,
|
|
574
574
|
position: t.position()
|
|
575
|
-
} }),
|
|
575
|
+
} }), x(D, { value: (e, t) => ({
|
|
576
576
|
...e,
|
|
577
577
|
position: t.position()
|
|
578
|
-
}) })), Q =
|
|
578
|
+
}) })), Q = A(k(" (?:du |de la |de l'|des |de |d')?", { flags: "i" }), { default: "" }), Pn = k(".+?(?=\\s*(?:du |de la |de l'|des |de |d')?\\s*(?:art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?))", {
|
|
579
579
|
flags: "i",
|
|
580
580
|
value: (e, t) => ({
|
|
581
581
|
type: "texte",
|
|
582
582
|
title: e[0].trim(),
|
|
583
583
|
position: t.position()
|
|
584
584
|
})
|
|
585
|
-
}), $ =
|
|
585
|
+
}), $ = k(".+", {
|
|
586
586
|
flags: "i",
|
|
587
587
|
value: (e, t) => ({
|
|
588
588
|
type: "texte",
|
|
589
589
|
title: e[0].trim(),
|
|
590
590
|
position: t.position()
|
|
591
591
|
})
|
|
592
|
-
}),
|
|
592
|
+
}), Fn = M(E([
|
|
593
593
|
Z,
|
|
594
594
|
Q,
|
|
595
595
|
X
|
|
@@ -601,7 +601,7 @@ var Tn = O("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
601
601
|
position: t.position(),
|
|
602
602
|
type: "parent-enfant"
|
|
603
603
|
};
|
|
604
|
-
} }),
|
|
604
|
+
} }), E([
|
|
605
605
|
X,
|
|
606
606
|
Q,
|
|
607
607
|
Z
|
|
@@ -610,8 +610,8 @@ var Tn = O("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
610
610
|
parent: e[2],
|
|
611
611
|
position: t.position(),
|
|
612
612
|
type: "parent-enfant"
|
|
613
|
-
}) }),
|
|
614
|
-
|
|
613
|
+
}) }), E([
|
|
614
|
+
Pn,
|
|
615
615
|
Q,
|
|
616
616
|
X
|
|
617
617
|
], { value: (e, t) => {
|
|
@@ -622,7 +622,7 @@ var Tn = O("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
622
622
|
position: t.position(),
|
|
623
623
|
type: "parent-enfant"
|
|
624
624
|
};
|
|
625
|
-
} }),
|
|
625
|
+
} }), E([
|
|
626
626
|
X,
|
|
627
627
|
Q,
|
|
628
628
|
$
|
|
@@ -631,6 +631,6 @@ var Tn = O("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
631
631
|
parent: e[2],
|
|
632
632
|
position: t.position(),
|
|
633
633
|
type: "parent-enfant"
|
|
634
|
-
}) }), X, Z, $),
|
|
634
|
+
}) }), X, Z, $), In = Y;
|
|
635
635
|
//#endregion
|
|
636
|
-
export {
|
|
636
|
+
export { en as LegiResolver, y as TextParserContext, de as action, Se as actionDirective, a as actionTargets, rt as addChildLeftToLastChild, $e as addLinksOrReferencesToHtmlPage, He as addLinksToHtml, Y as addLinksToMarkdown, In as addLinksToText, be as addPositionsToTableOfContentsItems, tn as adjectifNumeralCardinal, Ht as adjectifNumeralOrdinalCourt, ft as adjectifTemporelSingulier, Yt as adverbeMultiplicatifLatin, un as adverbeRelatif, M as alternatives, Xe as article, Pe as articles, C as assertNever, Ne as auPortion, je as auxPortions, Qt as buildAndInstallTextTitlesInfos, ge as buildArticlePortionTreeFromHtml, Vt as buildTextTitlesInfos, E as chain, st as chainTransformers, at as citation, r as citationLigne, he as citationSimple, u as citationToText, bn as classifyArticleTemporalStatus, At as cleanTexteTitle, se as compoundReferencesSeparators, x as convert, jt as convertHtmlElementsToText, pe as createEnumerationOrBoundedInterval, i as createParentChildTreeFromReferences, T as date, sn as decodeNamedHtmlEntities, Ct as decodeNumericHtmlEntities, xe as definitionArticleDansCitation, Ge as definitionArticleDansProjetOuPropositionLoi, ve as definitionDivision, Gt as definitionTexteFrancais, Qe as designationArticle, ue as designationDivision, ht as ditPluriel, Zt as ditSingulier, e as division, Re as divisionTypes, De as divisions, ot as duDate, O as espace, lt as espaceAdverbeRelatif, n as europeanLawNatures, N as extendLoadedArticle, Oe as extractActionDirectiveAstsFromText, Ke as extractActionDirectivesFromHtml, Be as extractActionDirectivesFromText, Te as extractArticleDefinitionsFromCitation, _e as extractBillDefinitions, oe as extractCitationReferences, l as extractPortionSelectors, Le as extractReferences, t as extractReferencesWithOriginalTransformations, _ as extractTextLinks, Dn as formatLongDate, Ie as frenchLawNatures, Sn as getArticleDateDebut, B as getArticleDateSignature, Fe as getExtractedReferences, ne as getExtractedReferencesWithOriginalTransformations, We as getExtractedTableOfContentsFromTextBill, P as getOrLoadArticle, Cn as getOrLoadArticleSiblingId, kn as getOrLoadDocument, An as getOrLoadDocumentsByDossierParlementaireUid, jn as getOrLoadDossierParlementaire, fn as getOrLoadJo, F as getOrLoadSectionTa, pn as getOrLoadSectionsTa, vn as getOrLoadTexteVersion, hn as getOrLoadTextekali, mn as getOrLoadTextelr, _n as getOrLoadTextesVersions, gn as getOrLoadTexteslr, Ze as getTableOfContentsItems, Jt as getTexteVersionDateDebut, $t as getTexteVersionDateSignature, nn as identificationTexteEuropeen, re as internationalLawNatures, mt as introPluriel, Ot as introSingulier, m as isArticlePortionStructuralStart, R as isLegifranceSentinelDate, ae as isTextAstAtomicReference, le as isTextAstDivision, c as isTextAstPortion, nt as iterAtomicFirstParentReferences, me as iterAtomicReferences, o as iterIncludedReferences, tt as iterReferenceLinks, On as jsonReplacer, f as lawNatures, an as lettreAscii, Dt as liaisonPluriel, kt as liaisonSingulier, Ye as linkTypes, ze as listeArticles, ie as listeReferencesSeules, yn as loadArticles, te as localizationAdverbs, et as natureDivisionSingulier, Ft as natureTexteFrancais, K as newAssembleeObjectCache, q as newLegifranceObjectCache, Tn as newObjectCache, Ut as newReverseTransformationsMergedFromPositionsIterator, v as nomArticle, h as nomSpecialArticle, Pt as nombreAsTextAstNumber, Kt as nombreCardinal, rn as nombreRomainCardinal, It as nombreRomainOrdinal, Rt as nombreRomainOu0iAsTextAstNumber, ln as nonLettre, ke as normalizeBillArticleNumber, Mt as numero, Ue as numeroDivision, Lt as numeroEtOuDateTexteFrancais, ye as numeroPortion, Xt as numeroTexteEuropeen, qt as numeroTexteFrancais, A as optional, Bt as optionalEspaceDuTerritoire, qe as parseArticleNumber, Je as parseArticleSubdivisionMarker, Ve as parseBillArticleLabel, ct as parseText, fe as portionTypes, it as portions, ce as reference, s as referenceSeule, k as regExp, pt as relatifPlurielPrepose, Et as relatifSingulierPrepose, _t as repeat, ut as replaceHtmlPatterns, on as replacePattern, Tt as replaceTextPatterns, Me as resolveActionDirectivesFromHtml, Ae as resolveActionDirectivesFromText, p as resolvePortionSelector, gt as reversePositionsSplitFromPositions, vt as reverseTransformationFromPosition, xt as reverseTransformationsMergedFromPositions, S as reverseTransformedInnerFragment, w as reverseTransformedReplacement, X as searchArticle, Mn as searchArticleKeyword, Fn as searchQueryReference, Z as searchTexte, Nn as searchTexteAbbreviations, dt as simplifyHtml, b as simplifyPlainText, bt as simplifyText, Wt as simplifyUnicodeCharacters, wn as sortArticlesByDate, Nt as sortTextesVersionsByDate, zt as texte, D as texteEuropeen, j as texteFrancais, cn as texteInternational, Ce as unePortion, d as uniteBasePreciseeSingulier, ee as uniteBaseSingulier, g as urlFromLegalId, yt as variable, wt as virguleOuEspace, we as walkTableOfContents, St as wordsTree };
|