@tricoteuses/assemblee 3.1.0 → 3.1.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 +2 -2
- package/lib/amendements-Blw6Aa6-.js +4133 -0
- package/lib/amendements-DiMsxlUL.js +178 -0
- package/lib/cleaners/reunions.d.ts +2 -1
- package/lib/cleaners.js +653 -581
- package/lib/datasets.d.ts +2 -6
- package/lib/git.js +127 -142
- package/lib/index.js +758 -555
- package/lib/loaders.js +2145 -4
- package/lib/parsers.js +10324 -8388
- package/lib/questions-XokaUGcy.js +3037 -0
- package/lib/scripts/retrieve_documents.d.ts +4 -0
- package/lib/scripts/retrieve_open_data.d.ts +4 -0
- package/lib/scripts/shared/cli_helpers.d.ts +8 -0
- package/package.json +1 -1
- package/lib/amendements-DrQ9BA7A.js +0 -3715
- package/lib/amendements-uxFcHcO5.js +0 -152
- package/lib/loaders-BtLzIUCT.js +0 -1348
- package/lib/questions-CxGnKVDB.js +0 -1578
package/lib/cleaners.js
CHANGED
|
@@ -1,604 +1,676 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "./loaders-BtLzIUCT.js";
|
|
5
|
-
import o from "node:assert";
|
|
1
|
+
import i from "node:assert";
|
|
2
|
+
import { c as a, a as P, b as $ } from "./amendements-DiMsxlUL.js";
|
|
3
|
+
import { d as ce } from "./amendements-DiMsxlUL.js";
|
|
6
4
|
import "fs-extra";
|
|
7
5
|
import "node:path";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
6
|
+
import "./loaders.js";
|
|
7
|
+
import { au as B, av as U } from "./questions-XokaUGcy.js";
|
|
8
|
+
function N(t) {
|
|
9
|
+
const e = t;
|
|
10
|
+
a(e);
|
|
11
|
+
const c = e.uid;
|
|
12
|
+
i.strictEqual(c["@xsi:type"], "IdActeur_type"), e.uid = c["#text"], i(e.uid);
|
|
13
|
+
const p = e.etatCivil;
|
|
14
|
+
{
|
|
15
|
+
a(p);
|
|
16
|
+
const o = p.ident;
|
|
17
|
+
{
|
|
18
|
+
a(o);
|
|
19
|
+
const r = p.infoNaissance;
|
|
20
|
+
a(r);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
const v = e.profession;
|
|
24
|
+
if (v !== void 0) {
|
|
25
|
+
a(v);
|
|
26
|
+
const o = v.socProcINSEE;
|
|
27
|
+
i(o), a(o), delete v.socProcINSEE, v.socProcInsee = o;
|
|
28
|
+
}
|
|
29
|
+
const g = e.uri_hatvp;
|
|
30
|
+
g !== void 0 && (e.uriHatvp = g, delete e.uri_hatvp);
|
|
31
|
+
const n = e.adresses;
|
|
32
|
+
if (n !== void 0) {
|
|
33
|
+
let o = Array.isArray(n) ? n : n.adresse;
|
|
34
|
+
if (o === void 0 ? delete e.adresses : Array.isArray(o) ? e.adresses = o : (i.notStrictEqual(o, null), i.strictEqual(typeof o, "object"), e.adresses = o = [o]), o !== void 0)
|
|
35
|
+
for (const r of o) {
|
|
36
|
+
a(r);
|
|
37
|
+
const l = r["@xsi:type"];
|
|
38
|
+
i(
|
|
39
|
+
[
|
|
40
|
+
"AdresseMail_Type",
|
|
41
|
+
"AdressePostale_Type",
|
|
42
|
+
"AdresseSiteWeb_Type",
|
|
43
|
+
"AdresseTelephonique_Type"
|
|
44
|
+
].includes(l ?? ""),
|
|
45
|
+
`Unexpected "@xsi:type": ${l}`
|
|
46
|
+
), r.xsiType = l, delete r["@xsi:type"], i.notStrictEqual(r.uid, void 0), i.notStrictEqual(r.type, void 0), i.notStrictEqual(r.typeLibelle, void 0), l === "AdressePostale_Type" && i.strictEqual(r.adresseDeRattachement, void 0);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
const y = e.mandats;
|
|
50
|
+
if (y !== void 0) {
|
|
51
|
+
let o = [];
|
|
52
|
+
const r = Array.isArray(y) ? y : y.mandat;
|
|
53
|
+
Array.isArray(r) ? o = e.mandats = r : typeof r == "object" && (o = e.mandats = [r]);
|
|
54
|
+
for (const l of o) {
|
|
55
|
+
a(l);
|
|
56
|
+
const s = l["@xsi:type"];
|
|
57
|
+
s !== void 0 && (l.xsiType = s, delete l["@xsi:type"]);
|
|
58
|
+
const d = l.infosQualite;
|
|
59
|
+
a(d);
|
|
60
|
+
const u = l.organes;
|
|
61
|
+
i(u), delete l.organes;
|
|
62
|
+
let A = u.organeRef;
|
|
63
|
+
i(A), Array.isArray(A) || (A = [A]), l.organesRefs = A;
|
|
64
|
+
let O = l.suppleants;
|
|
65
|
+
if (delete l.suppleants, O) {
|
|
66
|
+
const x = O.suppleant;
|
|
67
|
+
i(x), l.suppleant = x, a(x);
|
|
68
|
+
}
|
|
69
|
+
const R = l.election;
|
|
70
|
+
if (R !== void 0) {
|
|
71
|
+
a(R);
|
|
72
|
+
const x = R.lieu;
|
|
73
|
+
a(x);
|
|
74
|
+
}
|
|
75
|
+
const D = l.mandature;
|
|
76
|
+
D !== void 0 && a(D), i.strictEqual(l.chambre, void 0);
|
|
77
|
+
const S = l.collaborateurs;
|
|
78
|
+
if (S != null) {
|
|
79
|
+
const x = Array.isArray(S) ? S.filter(
|
|
80
|
+
(m) => m !== null
|
|
81
|
+
) : [S];
|
|
82
|
+
let b = [];
|
|
83
|
+
x.map(({ collaborateur: m }) => {
|
|
84
|
+
if (Array.isArray(m))
|
|
85
|
+
for (const E of m)
|
|
86
|
+
E !== null && b.push(E);
|
|
87
|
+
else m && b.push(m);
|
|
88
|
+
}), b.length === 0 ? delete l.collaborateurs : l.collaborateurs = b;
|
|
89
|
+
for (const m of b)
|
|
90
|
+
a(m), i.strictEqual(m.dateDebut, void 0), i.strictEqual(m.dateFin, void 0);
|
|
91
|
+
}
|
|
92
|
+
const q = l.InfosHorsSIAN;
|
|
93
|
+
q !== void 0 && (a(q), i.strictEqual(q.HATVP_URI, void 0), i.strictEqual(Object.keys(q).length, 0), delete l.InfosHorsSIAN);
|
|
94
|
+
}
|
|
95
|
+
o.sort(
|
|
96
|
+
(l, s) => l.uid.length === s.uid.length ? l.uid.localeCompare(s.uid) : l.uid.length - s.uid.length
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
const f = e.deports;
|
|
100
|
+
if (f !== void 0) {
|
|
101
|
+
let o = [];
|
|
102
|
+
const r = Array.isArray(f) ? f : f.deport;
|
|
103
|
+
Array.isArray(r) ? o = e.deports = r : typeof r == "object" && (o = e.deports = [r]);
|
|
104
|
+
for (const l of o) {
|
|
105
|
+
a(l);
|
|
106
|
+
const s = l.cible;
|
|
107
|
+
a(s), i.strictEqual(s.references, void 0);
|
|
108
|
+
}
|
|
109
|
+
o.sort(
|
|
110
|
+
(l, s) => l.uid.length === s.uid.length ? l.uid.localeCompare(s.uid) : l.uid.length - s.uid.length
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
return e;
|
|
99
114
|
}
|
|
100
|
-
function
|
|
101
|
-
|
|
102
|
-
|
|
115
|
+
function _(t) {
|
|
116
|
+
const e = t.etudePLFRef;
|
|
117
|
+
t.etudePLFRef !== void 0 && (delete t.etudePLFRef, t.etudePlfRef = e);
|
|
103
118
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
function l(e) {
|
|
107
|
-
return Array.isArray(e) ? e : [e];
|
|
119
|
+
function I(t) {
|
|
120
|
+
return Array.isArray(t) ? t : [t];
|
|
108
121
|
}
|
|
109
|
-
function
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
122
|
+
function k(t) {
|
|
123
|
+
const e = t;
|
|
124
|
+
if (a(e), e.metadatas?.dateSuppression !== void 0) {
|
|
125
|
+
for (const s of Object.getOwnPropertyNames(e))
|
|
126
|
+
delete e[s];
|
|
127
|
+
return e;
|
|
128
|
+
}
|
|
129
|
+
const c = e["@xsi:type"];
|
|
130
|
+
c !== void 0 && (e.xsiType = c, delete e["@xsi:type"]);
|
|
131
|
+
const p = e.cycleDeVie;
|
|
132
|
+
i(p);
|
|
133
|
+
{
|
|
134
|
+
const s = p.chrono;
|
|
135
|
+
i(s), a(s);
|
|
136
|
+
}
|
|
137
|
+
const v = e.divisions;
|
|
138
|
+
if (v !== void 0) {
|
|
139
|
+
const s = Array.isArray(v) ? v : I(v.division);
|
|
140
|
+
e.divisions = s;
|
|
141
|
+
for (const d of s)
|
|
142
|
+
k(d);
|
|
143
|
+
}
|
|
144
|
+
i.strictEqual(e.redacteur, void 0);
|
|
145
|
+
const g = e.classification;
|
|
146
|
+
i(g), a(g);
|
|
147
|
+
const n = e.auteurs;
|
|
148
|
+
if (n !== void 0) {
|
|
149
|
+
const s = Array.isArray(n) ? n : I(n.auteur);
|
|
150
|
+
e.auteurs = s;
|
|
151
|
+
for (const d of s) {
|
|
152
|
+
let u = d.organe;
|
|
153
|
+
u !== void 0 && (d.organeRef = u.organeRef, delete d.organe);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
const y = e.notice;
|
|
157
|
+
P(y, "adoptionConforme");
|
|
158
|
+
const f = e.coSignataires;
|
|
159
|
+
if (f !== void 0) {
|
|
160
|
+
const s = Array.isArray(f) ? f : I(f.coSignataire);
|
|
161
|
+
e.coSignataires = s;
|
|
162
|
+
for (const d of s) {
|
|
163
|
+
a(d), P(d, "edite");
|
|
164
|
+
const u = d.acteur;
|
|
165
|
+
if (u !== void 0) {
|
|
166
|
+
const O = u.acteurRef;
|
|
167
|
+
i(O), delete d.acteur, d.acteurRef = O;
|
|
168
|
+
}
|
|
169
|
+
const A = d.organe;
|
|
170
|
+
A !== void 0 && P(A, "etApparentes");
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
const o = e.depotAmendements;
|
|
174
|
+
if (o !== void 0) {
|
|
175
|
+
a(o);
|
|
176
|
+
const s = o.amendementsSeance;
|
|
177
|
+
a(s), P(s, "amendable");
|
|
178
|
+
const d = o.amendementsCommission;
|
|
179
|
+
if (d !== void 0) {
|
|
180
|
+
const u = Array.isArray(d) ? d : I(d.commission);
|
|
181
|
+
o.amendementsCommission = u;
|
|
182
|
+
for (const A of u)
|
|
183
|
+
a(A), P(A, "amendable"), i.strictEqual(A.dateLimiteDepot, void 0);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
const r = e.imprimerie;
|
|
187
|
+
if (r != null) {
|
|
188
|
+
a(r);
|
|
189
|
+
const s = r.DIAN;
|
|
190
|
+
s !== void 0 && (delete r.DIAN, r.dian = s);
|
|
191
|
+
const d = r.ISBN;
|
|
192
|
+
d !== void 0 && (delete r.ISBN, r.isbn = d);
|
|
193
|
+
const u = r.ISSN;
|
|
194
|
+
u !== void 0 && (delete r.ISSN, r.issn = u);
|
|
195
|
+
}
|
|
196
|
+
P(e, "rapportPublie");
|
|
197
|
+
const l = e.organesReferents;
|
|
198
|
+
if (l !== void 0) {
|
|
199
|
+
const s = Array.isArray(l) ? l : I(l.organeRef);
|
|
200
|
+
e.organesReferents = s;
|
|
201
|
+
}
|
|
202
|
+
return e;
|
|
183
203
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
function d(e) {
|
|
187
|
-
return Array.isArray(e) ? e : [e];
|
|
204
|
+
function w(t) {
|
|
205
|
+
return Array.isArray(t) ? t : [t];
|
|
188
206
|
}
|
|
189
|
-
function
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
207
|
+
function H(t) {
|
|
208
|
+
const e = t;
|
|
209
|
+
a(e);
|
|
210
|
+
const c = e["@xsi:type"];
|
|
211
|
+
c !== void 0 && (e.xsiType = c, delete e["@xsi:type"]);
|
|
212
|
+
const p = e.auteurs;
|
|
213
|
+
p !== void 0 && (e.auteursRefs = w(p.acteurRef), delete e.auteurs);
|
|
214
|
+
const v = e.casSaisine;
|
|
215
|
+
v !== void 0 && h(v);
|
|
216
|
+
const g = e.contributionInternaute;
|
|
217
|
+
g !== void 0 && a(g), i.strictEqual(e.dateRetrait, void 0);
|
|
218
|
+
const n = e.decision;
|
|
219
|
+
n !== void 0 && h(n);
|
|
220
|
+
const y = e.infoJO;
|
|
221
|
+
y !== void 0 && (j(y), e.infoJo = y, delete e.infoJO);
|
|
222
|
+
const f = e.infoJOCE;
|
|
223
|
+
if (f !== void 0) {
|
|
224
|
+
e.infoJoce = f, delete e.infoJOCE;
|
|
225
|
+
const E = f.refJOCE;
|
|
226
|
+
E !== void 0 && (f.refJoce = E, delete f.refJOCE);
|
|
227
|
+
const J = f.dateJOCE;
|
|
228
|
+
J !== void 0 && (f.dateJoce = J, delete f.dateJOCE);
|
|
229
|
+
}
|
|
230
|
+
const o = e.infoJORect;
|
|
231
|
+
if (o !== void 0) {
|
|
232
|
+
const E = w(o);
|
|
233
|
+
e.infoJoRect = E, delete e.infoJORect;
|
|
234
|
+
for (const J of E)
|
|
235
|
+
j(J);
|
|
236
|
+
}
|
|
237
|
+
Q(e);
|
|
238
|
+
const r = e.initiateurs;
|
|
239
|
+
if (r !== void 0) {
|
|
240
|
+
if (i.strictEqual(e.initiateur, void 0), !Array.isArray(r) && r.acteurRef === void 0)
|
|
241
|
+
i.notStrictEqual(r.organeRef, void 0), e.initiateur = { organeRef: r.organeRef };
|
|
242
|
+
else {
|
|
243
|
+
const E = w(r);
|
|
244
|
+
e.initiateur = { acteurs: E };
|
|
245
|
+
}
|
|
246
|
+
delete e.initiateurs;
|
|
247
|
+
}
|
|
248
|
+
i.strictEqual(e.odSeancejRef, void 0);
|
|
249
|
+
const l = e.provenance;
|
|
250
|
+
l !== void 0 && (delete e.provenance, e.provenanceRef = l);
|
|
251
|
+
const s = e.rapporteurs;
|
|
252
|
+
if (s !== void 0 && !Array.isArray(s)) {
|
|
253
|
+
const E = w(s.rapporteur);
|
|
254
|
+
e.rapporteurs = E;
|
|
255
|
+
for (const J of E)
|
|
256
|
+
_(J);
|
|
257
|
+
}
|
|
258
|
+
const d = e.referenceNOR;
|
|
259
|
+
d !== void 0 && (e.referenceNor = d, delete e.referenceNOR), i.strictEqual(e.reunion, void 0);
|
|
260
|
+
const u = e.statutAdoption;
|
|
261
|
+
u !== void 0 && h(u);
|
|
262
|
+
const A = e.statutConclusion;
|
|
263
|
+
A !== void 0 && (h(A), A.famCode === "TSORTFnull" && delete e.statutConclusion);
|
|
264
|
+
const O = e.texteAdopte;
|
|
265
|
+
O !== void 0 && (delete e.texteAdopte, e.texteAdopteRef = O);
|
|
266
|
+
const R = e.texteAssocie;
|
|
267
|
+
R !== void 0 && (delete e.texteAssocie, e.texteAssocieRef = R);
|
|
268
|
+
const D = e.textesAssocies;
|
|
269
|
+
if (D !== void 0 && !Array.isArray(D)) {
|
|
270
|
+
const E = w(D.texteAssocie);
|
|
271
|
+
e.textesAssocies = E;
|
|
272
|
+
for (const J of E) {
|
|
273
|
+
const T = J.refTexteAssocie;
|
|
274
|
+
T !== void 0 && (delete J.refTexteAssocie, J.texteAssocieRef = T);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
const S = e.typeDeclaration;
|
|
278
|
+
S !== void 0 && h(S);
|
|
279
|
+
const q = e.typeMotion;
|
|
280
|
+
q !== void 0 && h(q);
|
|
281
|
+
const x = e.typeMotionCensure;
|
|
282
|
+
x !== void 0 && h(x);
|
|
283
|
+
const b = e.voteRefs;
|
|
284
|
+
b !== void 0 && !Array.isArray(b) && (e.voteRefs = w(b.voteRef));
|
|
285
|
+
const m = e.actesLegislatifs;
|
|
286
|
+
if (m !== void 0 && !Array.isArray(m)) {
|
|
287
|
+
const E = w(m.acteLegislatif);
|
|
288
|
+
e.actesLegislatifs = E;
|
|
289
|
+
for (const J of E)
|
|
290
|
+
H(J);
|
|
291
|
+
}
|
|
262
292
|
}
|
|
263
|
-
function
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
293
|
+
function Q(t) {
|
|
294
|
+
const e = t, c = e.initiateur;
|
|
295
|
+
if (c !== void 0) {
|
|
296
|
+
const p = c.acteurs;
|
|
297
|
+
if (p !== void 0 && !Array.isArray(p)) {
|
|
298
|
+
const g = w(p.acteur);
|
|
299
|
+
g.length > 0 ? c.acteurs = g : delete c.acteurs;
|
|
300
|
+
}
|
|
301
|
+
const v = c.organes;
|
|
302
|
+
v !== void 0 && (c.organeRef = v.organe.organeRef.uid, i.notStrictEqual(c.organeRef, void 0), delete c.organes), c.acteurs === void 0 && c.organeRef === void 0 && delete e.initiateur;
|
|
303
|
+
}
|
|
274
304
|
}
|
|
275
|
-
function
|
|
276
|
-
|
|
305
|
+
function h(t) {
|
|
306
|
+
t.famCode = t.fam_code, delete t.fam_code, i(t.famCode), t.libelle || (t.libelle = t.famCode);
|
|
277
307
|
}
|
|
278
|
-
function
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
308
|
+
function j(t) {
|
|
309
|
+
a(t);
|
|
310
|
+
const e = t.typeJO;
|
|
311
|
+
e !== void 0 && (t.typeJo = e, delete t.typeJO);
|
|
312
|
+
const c = t.dateJO;
|
|
313
|
+
c !== void 0 && (t.dateJo = c, delete t.dateJO), i.strictEqual(t.pageJO, void 0);
|
|
314
|
+
const p = t.numJO;
|
|
315
|
+
p !== void 0 && (t.numJo = p, delete t.numJO);
|
|
316
|
+
const v = t.referenceNOR;
|
|
317
|
+
v !== void 0 && (t.referenceNor = v, delete t.referenceNOR);
|
|
288
318
|
}
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
319
|
+
function ee(t) {
|
|
320
|
+
const e = t;
|
|
321
|
+
a(e);
|
|
322
|
+
const c = e["@xsi:type"];
|
|
323
|
+
c !== void 0 && (e.xsiType = c, delete e["@xsi:type"]);
|
|
324
|
+
const p = e.titreDossier;
|
|
325
|
+
a(p), Q(e);
|
|
326
|
+
const v = e.actesLegislatifs;
|
|
327
|
+
if (v != null) {
|
|
328
|
+
let n = Array.isArray(v) ? v : v.acteLegislatif;
|
|
329
|
+
Array.isArray(n) || (i(n), n = [n]);
|
|
330
|
+
const y = n;
|
|
331
|
+
e.actesLegislatifs = y;
|
|
332
|
+
for (const f of y)
|
|
333
|
+
H(f);
|
|
334
|
+
}
|
|
335
|
+
const g = e.PLF;
|
|
336
|
+
if (g !== void 0) {
|
|
337
|
+
const n = g.EtudePLF;
|
|
338
|
+
i(Array.isArray(n)), delete e.PLF, e.plf = n;
|
|
339
|
+
for (const y of n) {
|
|
340
|
+
let f = y.rapporteur;
|
|
341
|
+
if (f !== void 0) {
|
|
342
|
+
Array.isArray(f) || (i(f), f = [f]), delete y.rapporteur, y.rapporteurs = f;
|
|
343
|
+
for (const r of f)
|
|
344
|
+
_(r);
|
|
345
|
+
}
|
|
346
|
+
let o = y.missionMinefi;
|
|
347
|
+
o !== void 0 && z(o), y.ordreDiqs = y.ordreDIQS, delete y.ordreDIQS, i(y.ordreDiqs);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
return e;
|
|
321
351
|
}
|
|
322
|
-
function
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
352
|
+
function z(t) {
|
|
353
|
+
const e = t.missions;
|
|
354
|
+
if (e !== void 0) {
|
|
355
|
+
let c = Array.isArray(e) ? e : e.mission;
|
|
356
|
+
Array.isArray(c) || (i(c), c = [c]), t.missions = c;
|
|
357
|
+
for (const p of c)
|
|
358
|
+
z(p);
|
|
359
|
+
}
|
|
329
360
|
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
}
|
|
357
|
-
return t;
|
|
361
|
+
function te(t) {
|
|
362
|
+
const e = t;
|
|
363
|
+
a(e);
|
|
364
|
+
const c = e["@xsi:type"];
|
|
365
|
+
c !== void 0 && (e.xsiType = c, delete e["@xsi:type"]);
|
|
366
|
+
const p = e.viMoDe;
|
|
367
|
+
p !== void 0 && a(p);
|
|
368
|
+
const v = e.organeParent;
|
|
369
|
+
v !== void 0 && (delete e.organeParent, e.organeParentRef = v), i.strictEqual(e.chambre, void 0);
|
|
370
|
+
const g = e.secretariat;
|
|
371
|
+
g !== void 0 && a(g);
|
|
372
|
+
const n = e.lieu;
|
|
373
|
+
if (n !== void 0) {
|
|
374
|
+
a(n);
|
|
375
|
+
const o = n.region;
|
|
376
|
+
o !== void 0 && a(o);
|
|
377
|
+
const r = n.departement;
|
|
378
|
+
r !== void 0 && a(r);
|
|
379
|
+
}
|
|
380
|
+
e.couleurAssociee === null && delete e.couleurAssociee;
|
|
381
|
+
const f = e.listePays;
|
|
382
|
+
if (f !== void 0) {
|
|
383
|
+
let o = Array.isArray(f) ? f : f.paysRef;
|
|
384
|
+
Array.isArray(o) || (i.strictEqual(typeof o, "string"), o = [o]), e.listePays = o;
|
|
385
|
+
}
|
|
386
|
+
return e;
|
|
358
387
|
}
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
r !== void 0 && (o.strictEqual(typeof r, "string"), r = new Date(r), t.cloture = r);
|
|
371
|
-
}
|
|
388
|
+
function M(t) {
|
|
389
|
+
a(t);
|
|
390
|
+
const e = t.chrono;
|
|
391
|
+
i(e);
|
|
392
|
+
{
|
|
393
|
+
a(e);
|
|
394
|
+
let c = e.creation;
|
|
395
|
+
i.strictEqual(typeof c, "string"), c = new Date(c), e.creation = c;
|
|
396
|
+
let p = e.cloture;
|
|
397
|
+
p !== void 0 && (i.strictEqual(typeof p, "string"), p = new Date(p), e.cloture = p);
|
|
398
|
+
}
|
|
372
399
|
}
|
|
373
|
-
function
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
400
|
+
function ie(t) {
|
|
401
|
+
const e = t;
|
|
402
|
+
a(e), P(e, "captationVideo"), P(e, "comiteSecret"), P(e, "ouverturePresse");
|
|
403
|
+
const c = e["@xsi:type"];
|
|
404
|
+
c !== void 0 && (e.xsiType = c, delete e["@xsi:type"]);
|
|
405
|
+
const p = e.timeStampDebut;
|
|
406
|
+
i.notStrictEqual(p, void 0), e.timestampDebut = p, delete e.timeStampDebut;
|
|
407
|
+
const v = e.timeStampFin;
|
|
408
|
+
v !== void 0 && (i.strictEqual(typeof v, "string"), e.timestampFin = new Date(v), delete e.timeStampFin);
|
|
409
|
+
const g = e.lieu;
|
|
410
|
+
g !== void 0 && a(g);
|
|
411
|
+
const n = e.cycleDeVie;
|
|
412
|
+
i.notStrictEqual(n, void 0), M(n);
|
|
413
|
+
const y = e.demandeurs;
|
|
414
|
+
if (y != null) {
|
|
415
|
+
let s = y.acteur;
|
|
416
|
+
if (s !== void 0) {
|
|
417
|
+
Array.isArray(s) || (i.notStrictEqual(s, null), i.strictEqual(typeof s, "object"), s = [s]);
|
|
418
|
+
const u = s.filter(
|
|
419
|
+
(A) => A !== null
|
|
420
|
+
);
|
|
421
|
+
y.acteurs = u, delete y.acteur;
|
|
422
|
+
for (const A of u)
|
|
423
|
+
a(A);
|
|
424
|
+
}
|
|
425
|
+
const d = y.organe;
|
|
426
|
+
d !== void 0 && a(d);
|
|
427
|
+
}
|
|
428
|
+
const f = e.demandeur;
|
|
429
|
+
if (f != null) {
|
|
430
|
+
i.strictEqual(e.demandeurs, void 0), delete e.demandeur;
|
|
431
|
+
const s = f.acteur;
|
|
432
|
+
if (s !== void 0) {
|
|
433
|
+
i.notStrictEqual(s, null), i.strictEqual(typeof s, "object");
|
|
434
|
+
const u = [
|
|
435
|
+
s
|
|
436
|
+
];
|
|
437
|
+
f.acteurs = u, delete f.acteur, e.demandeurs = f;
|
|
438
|
+
for (const A of u)
|
|
439
|
+
a(A);
|
|
440
|
+
}
|
|
441
|
+
const d = f.organe;
|
|
442
|
+
d !== void 0 && a(d);
|
|
443
|
+
}
|
|
444
|
+
const o = e.participants;
|
|
445
|
+
if (o != null) {
|
|
446
|
+
a(o);
|
|
447
|
+
const s = o.participantsInternes;
|
|
448
|
+
if (s != null) {
|
|
449
|
+
let u = Array.isArray(s) ? s : s.participantInterne;
|
|
450
|
+
Array.isArray(u) || (i.notStrictEqual(u, null), i.strictEqual(typeof u, "object"), u = [u]), o.participantsInternes = u;
|
|
451
|
+
}
|
|
452
|
+
const d = o.personnesAuditionnees;
|
|
453
|
+
if (d !== void 0) {
|
|
454
|
+
let u = Array.isArray(d) ? d : d === null ? null : d.personneAuditionnee;
|
|
455
|
+
if (u === null)
|
|
456
|
+
delete o.personnesAuditionnees;
|
|
457
|
+
else {
|
|
458
|
+
Array.isArray(u) || (i.strictEqual(typeof u, "object"), u = [u]), u = u.filter(
|
|
459
|
+
(A) => A !== null
|
|
460
|
+
), u.length > 0 ? o.personnesAuditionnees = u : delete o.personnesAuditionnees;
|
|
461
|
+
for (const A of u) {
|
|
462
|
+
const O = A.uid, R = O["@xsi:type"];
|
|
463
|
+
i(R), A.xsiType = R;
|
|
464
|
+
const D = O["#text"];
|
|
465
|
+
i(D), A.uid = D;
|
|
466
|
+
const S = A.ident;
|
|
467
|
+
i(S), a(S);
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
if (e.ODJ !== void 0 && e.ODJ !== null) {
|
|
473
|
+
const s = e.ODJ;
|
|
474
|
+
e.odj = s, delete e.ODJ;
|
|
475
|
+
{
|
|
476
|
+
a(s);
|
|
477
|
+
const d = s.convocationODJ;
|
|
478
|
+
if (d !== void 0) {
|
|
479
|
+
const O = Array.isArray(d.item) ? d.item : [d.item];
|
|
480
|
+
s.convocationOdj = O, delete s.convocationODJ;
|
|
481
|
+
}
|
|
482
|
+
const u = s.resumeODJ;
|
|
483
|
+
if (u !== void 0) {
|
|
484
|
+
const O = Array.isArray(u.item) ? u.item : [u.item];
|
|
485
|
+
s.resumeOdj = O, delete s.resumeODJ;
|
|
486
|
+
}
|
|
487
|
+
const A = s.pointsODJ;
|
|
488
|
+
if (A !== void 0) {
|
|
489
|
+
const O = Array.isArray(A.pointODJ) ? A.pointODJ : [A.pointODJ];
|
|
490
|
+
s.pointsOdj = O;
|
|
491
|
+
for (const R of O) {
|
|
492
|
+
a(R), P(R, "comiteSecret");
|
|
493
|
+
const D = R["@xsi:type"];
|
|
494
|
+
D !== void 0 && (R.xsiType = D, delete R["@xsi:type"]);
|
|
495
|
+
const S = R.cycleDeVie;
|
|
496
|
+
i.notStrictEqual(S, void 0), M(S), i.strictEqual(R.demandeurPoint, void 0);
|
|
497
|
+
const q = R.dossiersLegislatifsRefs;
|
|
498
|
+
if (q !== void 0) {
|
|
499
|
+
const m = Array.isArray(
|
|
500
|
+
q
|
|
501
|
+
) ? q : Array.isArray(q.dossierRef) ? q.dossierRef : [q.dossierRef];
|
|
502
|
+
R.dossiersLegislatifsRefs = m;
|
|
503
|
+
}
|
|
504
|
+
R.typePointOdj = R.typePointODJ, delete R.typePointODJ, i.strictEqual(R.textesAssocies, void 0), R.natureTravauxOdj = R.natureTravauxODJ, delete R.natureTravauxODJ;
|
|
505
|
+
const x = R.dateConfPres;
|
|
506
|
+
if (x !== void 0) {
|
|
507
|
+
i.strictEqual(typeof x, "string");
|
|
508
|
+
const m = x;
|
|
509
|
+
i(/^\d{4}-\d{2}-\d{2}\+\d{2}:00$/.test(m)), R.dateConfPres = new Date(m.split("+")[0]);
|
|
510
|
+
}
|
|
511
|
+
const b = R.dateLettreMinistre;
|
|
512
|
+
if (b !== void 0) {
|
|
513
|
+
i.strictEqual(typeof b, "string");
|
|
514
|
+
const m = b;
|
|
515
|
+
i(
|
|
516
|
+
/^\d{4}-\d{2}-\d{2}\+\d{2}:00$/.test(m)
|
|
517
|
+
), R.dateLettreMinistre = new Date(
|
|
518
|
+
m.split("+")[0]
|
|
519
|
+
);
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
delete s.pointsODJ;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
const r = e.identifiants;
|
|
527
|
+
if (r !== void 0) {
|
|
528
|
+
a(r);
|
|
529
|
+
const s = r.numSeanceJO;
|
|
530
|
+
s !== void 0 && (r.numSeanceJo = s, delete r.numSeanceJO);
|
|
531
|
+
const d = r.idJO;
|
|
532
|
+
d !== void 0 && (r.idJo = d, delete r.idJO);
|
|
533
|
+
const u = r.DateSeance;
|
|
534
|
+
i.strictEqual(typeof u, "string");
|
|
535
|
+
const A = u;
|
|
536
|
+
i(/^\d{4}-\d{2}-\d{2}\+\d{2}:00$/.test(A)), r.dateSeance = new Date(A.split("+")[0]), delete r.DateSeance;
|
|
537
|
+
}
|
|
538
|
+
const l = e.infosReunionsInternationale;
|
|
539
|
+
if (l !== void 0) {
|
|
540
|
+
a(l), P(
|
|
541
|
+
l,
|
|
542
|
+
"estReunionInternationale"
|
|
543
|
+
);
|
|
544
|
+
const s = l.listePays;
|
|
545
|
+
if (s != null) {
|
|
546
|
+
let d = Array.isArray(s) ? s : s.paysRef;
|
|
547
|
+
Array.isArray(d) || (i.strictEqual(typeof d, "string"), d = [d]), l.listePays = d;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
return e;
|
|
496
551
|
}
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
552
|
+
function V(t) {
|
|
553
|
+
if (t === void 0)
|
|
554
|
+
return;
|
|
555
|
+
if (typeof t == "string")
|
|
556
|
+
return i.strictEqual(t, "0"), [];
|
|
557
|
+
if (Array.isArray(t) && (t.length === 0 || !("votant" in t[0])))
|
|
558
|
+
return t;
|
|
559
|
+
const e = Array.isArray(t) ? t : [t], c = [];
|
|
560
|
+
for (const p of e) {
|
|
561
|
+
if (p === null)
|
|
562
|
+
continue;
|
|
563
|
+
const v = p.votant;
|
|
564
|
+
Array.isArray(v) ? c.push(...v) : c.push(v);
|
|
565
|
+
}
|
|
566
|
+
return c;
|
|
510
567
|
}
|
|
511
|
-
function
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
568
|
+
function L(t) {
|
|
569
|
+
a(t);
|
|
570
|
+
const e = t.nonVotants ?? t.nonVotant;
|
|
571
|
+
if (t.nonVotants === void 0 ? delete t.nonVotant : i.strictEqual(t.nonVotant, void 0), e !== void 0) {
|
|
572
|
+
const n = V(e);
|
|
573
|
+
if (n !== void 0 && n.length === 0)
|
|
574
|
+
delete t.nonVotants;
|
|
575
|
+
else if (n !== void 0) {
|
|
576
|
+
t.nonVotants = n;
|
|
577
|
+
for (const y of n)
|
|
578
|
+
C(y);
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
const c = t.pour ?? t.pours;
|
|
582
|
+
if (t.pour === void 0 ? delete t.pours : i.strictEqual(t.pours, void 0), c !== void 0) {
|
|
583
|
+
const n = V(c);
|
|
584
|
+
if (i(n), n.length === 0)
|
|
585
|
+
delete t.pour;
|
|
586
|
+
else {
|
|
587
|
+
t.pour = n;
|
|
588
|
+
for (const y of n)
|
|
589
|
+
C(y);
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
const p = t.contre ?? t.contres;
|
|
593
|
+
if (t.contre === void 0 ? delete t.contres : i.strictEqual(t.contres, void 0), p !== void 0) {
|
|
594
|
+
const n = V(p);
|
|
595
|
+
if (i(n), n.length === 0)
|
|
596
|
+
delete t.contre;
|
|
597
|
+
else {
|
|
598
|
+
t.contre = n;
|
|
599
|
+
for (const y of n)
|
|
600
|
+
C(y);
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
const v = t.abstentions ?? t.abstention;
|
|
604
|
+
if (t.abstentions === void 0 ? delete t.abstention : i.strictEqual(t.abstention, void 0), v !== void 0) {
|
|
605
|
+
const n = V(v);
|
|
606
|
+
if (i(n), n.length === 0)
|
|
607
|
+
delete t.abstentions;
|
|
608
|
+
else {
|
|
609
|
+
t.abstentions = n;
|
|
610
|
+
for (const y of n)
|
|
611
|
+
C(y);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
const g = t.nonVotantsVolontaires;
|
|
615
|
+
if (g !== void 0) {
|
|
616
|
+
const n = V(g);
|
|
617
|
+
if (i(n), n.length === 0)
|
|
618
|
+
delete t.nonVotantsVolontaires;
|
|
619
|
+
else {
|
|
620
|
+
t.nonVotantsVolontaires = n;
|
|
621
|
+
for (const y of n)
|
|
622
|
+
C(y);
|
|
623
|
+
}
|
|
624
|
+
}
|
|
558
625
|
}
|
|
559
|
-
function
|
|
560
|
-
|
|
626
|
+
function F(t) {
|
|
627
|
+
a(t), t.abstention !== void 0 && (i.strictEqual(t.abstentions, void 0), t.abstentions = t.abstention, delete t.abstention), t.nonVotant !== void 0 && (i.strictEqual(t.nonVotants, void 0), t.nonVotants = t.nonVotant, delete t.nonVotant);
|
|
561
628
|
}
|
|
562
|
-
function
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
629
|
+
function se(t) {
|
|
630
|
+
const e = t;
|
|
631
|
+
a(e);
|
|
632
|
+
const c = e.demandeur;
|
|
633
|
+
a(c), i.strictEqual(c.referenceLegislative, void 0);
|
|
634
|
+
const p = e.objet;
|
|
635
|
+
a(p), i.strictEqual(p.referenceLegislative, void 0);
|
|
636
|
+
const v = e.miseAuPoint;
|
|
637
|
+
if (v !== void 0) {
|
|
638
|
+
L(v);
|
|
639
|
+
const f = v.dysfonctionnement;
|
|
640
|
+
f !== void 0 && (L(f), Object.values(f).every((o) => o === void 0) && delete v.dysfonctionnement), Object.values(v).every((o) => o === void 0) && delete e.miseAuPoint;
|
|
641
|
+
}
|
|
642
|
+
const g = e.syntheseVote;
|
|
643
|
+
F(g.decompte);
|
|
644
|
+
const y = e.ventilationVotes.organe.groupes.groupe;
|
|
645
|
+
i(Array.isArray(y));
|
|
646
|
+
for (const f of y) {
|
|
647
|
+
const o = f.vote;
|
|
648
|
+
F(o.decompteVoix), L(o.decompteNominatif);
|
|
649
|
+
}
|
|
650
|
+
return e.ventilationVotes = {
|
|
651
|
+
...e.ventilationVotes,
|
|
652
|
+
groupes: y
|
|
653
|
+
}, e;
|
|
587
654
|
}
|
|
588
|
-
function
|
|
589
|
-
|
|
655
|
+
function C(t) {
|
|
656
|
+
P(t, "parDelegation"), $(t, "numPlace");
|
|
590
657
|
}
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
let r = e.parse(t);
|
|
595
|
-
return n(r, { recursive: !0 }), r;
|
|
658
|
+
function oe(t) {
|
|
659
|
+
const e = B.parse(t);
|
|
660
|
+
return a(e, { recursive: !0 }), e;
|
|
596
661
|
}
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
let r = t.parse(e);
|
|
601
|
-
return n(r, { recursive: !0 }), r;
|
|
662
|
+
function ne(t) {
|
|
663
|
+
const e = U.parse(t);
|
|
664
|
+
return a(e, { recursive: !0 }), e;
|
|
602
665
|
}
|
|
603
|
-
|
|
604
|
-
|
|
666
|
+
export {
|
|
667
|
+
N as cleanActeur,
|
|
668
|
+
ce as cleanAmendement,
|
|
669
|
+
ne as cleanCompteRendu,
|
|
670
|
+
k as cleanDocumentOrDivision,
|
|
671
|
+
ee as cleanDossierParlementaire,
|
|
672
|
+
te as cleanOrgane,
|
|
673
|
+
oe as cleanQuestion,
|
|
674
|
+
ie as cleanReunion,
|
|
675
|
+
se as cleanScrutin
|
|
676
|
+
};
|