@tricoteuses/assemblee 1.10.5 → 2.0.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/README.md +8 -1
- package/lib/amendements-79bwpkvR.js +154 -0
- package/lib/amendements-CV3s5a0M.js +667 -0
- package/lib/cleaners/index.d.ts +9 -9
- package/lib/cleaners.js +564 -0
- package/lib/datasets.d.ts +3 -3
- package/lib/dossiers_legislatifs.d.ts +2 -2
- package/lib/index.d.ts +17 -22
- package/lib/index.js +1542 -314
- package/lib/inserters.d.ts +5 -5
- package/lib/loaders-9mHdTl9L.js +4158 -0
- package/lib/loaders.d.ts +12 -12
- package/lib/loaders.js +29 -1689
- package/lib/organes.d.ts +1 -1
- package/lib/parse-Ccs6wcUg.js +2512 -0
- package/lib/parsers/index.d.ts +2 -3
- package/lib/parsers/plf.d.ts +1 -0
- package/lib/parsers/recherche_amendements.d.ts +2 -2
- package/lib/parsers/textes_lois.d.ts +1 -23
- package/lib/parsers.js +398 -0
- package/lib/raw_types/debats.d.ts +2 -2
- package/lib/raw_types/dossiers_legislatifs.d.ts +1 -1
- package/lib/schemas/acteurs_et_organes.json +1166 -0
- package/lib/schemas/agendas.json +1745 -0
- package/lib/schemas/amendements.json +2085 -0
- package/lib/schemas/debats.json +842 -0
- package/lib/schemas/dossiers_legislatifs.json +3874 -0
- package/lib/schemas/legislatures.json +17 -0
- package/lib/schemas/questions.json +704 -0
- package/lib/schemas/scrutins.json +701 -0
- package/lib/scripts/retrieve_deputes_photos.d.ts +1 -1
- package/lib/types/acteurs_et_organes.d.ts +340 -0
- package/lib/types/agendas.d.ts +236 -10
- package/lib/types/amendements.d.ts +276 -1
- package/lib/types/debats.d.ts +52 -2
- package/lib/types/dossiers_legislatifs.d.ts +403 -9
- package/lib/types/questions.d.ts +99 -2
- package/lib/types/scrutins.d.ts +101 -0
- package/lib/urls.d.ts +2 -2
- package/package.json +32 -94
- package/lib/api.js +0 -52
- package/lib/api.mjs +0 -45
- package/lib/bugs/acteur-00010/plugin.test.js +0 -90
- package/lib/bugs/acteur-00010/plugin.test.mjs +0 -33
- package/lib/bugs/acteur-00010.d.ts +0 -7
- package/lib/bugs/acteur-00010.js +0 -116
- package/lib/bugs/acteur-00010.mjs +0 -26
- package/lib/bugs/agenda-00002/plugin.test.js +0 -124
- package/lib/bugs/agenda-00002/plugin.test.mjs +0 -50
- package/lib/bugs/agenda-00002.d.ts +0 -15
- package/lib/bugs/agenda-00002.js +0 -406
- package/lib/bugs/agenda-00002.mjs +0 -172
- package/lib/bugs/agenda-00008/plugin.test.js +0 -92
- package/lib/bugs/agenda-00008/plugin.test.mjs +0 -31
- package/lib/bugs/agenda-00008.d.ts +0 -7
- package/lib/bugs/agenda-00008.js +0 -123
- package/lib/bugs/agenda-00008.mjs +0 -26
- package/lib/bugs/agenda-00011/plugin.test.d.ts +0 -1
- package/lib/bugs/agenda-00011/plugin.test.js +0 -263
- package/lib/bugs/agenda-00011/plugin.test.mjs +0 -152
- package/lib/bugs/agenda-00011.d.ts +0 -16
- package/lib/bugs/agenda-00011.js +0 -333
- package/lib/bugs/agenda-00011.mjs +0 -125
- package/lib/bugs.d.ts +0 -21
- package/lib/bugs.js +0 -452
- package/lib/bugs.mjs +0 -70
- package/lib/cleaners/actes_legislatifs.js +0 -315
- package/lib/cleaners/actes_legislatifs.mjs +0 -253
- package/lib/cleaners/acteurs.js +0 -265
- package/lib/cleaners/acteurs.mjs +0 -180
- package/lib/cleaners/amendements.js +0 -294
- package/lib/cleaners/amendements.mjs +0 -227
- package/lib/cleaners/debats.js +0 -12
- package/lib/cleaners/debats.mjs +0 -5
- package/lib/cleaners/documents.js +0 -205
- package/lib/cleaners/documents.mjs +0 -133
- package/lib/cleaners/dossiers_legislatifs.js +0 -131
- package/lib/cleaners/dossiers_legislatifs.mjs +0 -70
- package/lib/cleaners/index.js +0 -70
- package/lib/cleaners/index.mjs +0 -10
- package/lib/cleaners/organes.js +0 -65
- package/lib/cleaners/organes.mjs +0 -48
- package/lib/cleaners/questions.js +0 -12
- package/lib/cleaners/questions.mjs +0 -5
- package/lib/cleaners/reunions.js +0 -312
- package/lib/cleaners/reunions.mjs +0 -255
- package/lib/cleaners/scrutins.js +0 -340
- package/lib/cleaners/scrutins.mjs +0 -221
- package/lib/cleaners/xml.js +0 -74
- package/lib/cleaners/xml.mjs +0 -59
- package/lib/datasets.js +0 -837
- package/lib/datasets.mjs +0 -755
- package/lib/dates.js +0 -124
- package/lib/dates.mjs +0 -100
- package/lib/dossiers_legislatifs.js +0 -346
- package/lib/dossiers_legislatifs.mjs +0 -208
- package/lib/file_systems.js +0 -162
- package/lib/file_systems.mjs +0 -62
- package/lib/git.js +0 -223
- package/lib/git.mjs +0 -151
- package/lib/index.mjs +0 -17
- package/lib/inserters.js +0 -521
- package/lib/inserters.mjs +0 -337
- package/lib/loaders.mjs +0 -886
- package/lib/logger.js +0 -35
- package/lib/logger.mjs +0 -26
- package/lib/organes.js +0 -22
- package/lib/organes.mjs +0 -15
- package/lib/parsers/documents.d.ts +0 -62
- package/lib/parsers/documents.js +0 -453
- package/lib/parsers/documents.mjs +0 -370
- package/lib/parsers/index.js +0 -40
- package/lib/parsers/index.mjs +0 -4
- package/lib/parsers/recherche_amendements.js +0 -403
- package/lib/parsers/recherche_amendements.mjs +0 -167
- package/lib/parsers/textes_lois.js +0 -307
- package/lib/parsers/textes_lois.mjs +0 -264
- package/lib/raw_types/acteurs_et_organes.js +0 -1215
- package/lib/raw_types/acteurs_et_organes.mjs +0 -1148
- package/lib/raw_types/agendas.js +0 -777
- package/lib/raw_types/agendas.mjs +0 -724
- package/lib/raw_types/amendements.js +0 -1052
- package/lib/raw_types/amendements.mjs +0 -993
- package/lib/raw_types/debats.js +0 -630
- package/lib/raw_types/debats.mjs +0 -573
- package/lib/raw_types/dossiers_legislatifs.js +0 -1529
- package/lib/raw_types/dossiers_legislatifs.mjs +0 -1471
- package/lib/raw_types/questions.js +0 -469
- package/lib/raw_types/questions.mjs +0 -416
- package/lib/raw_types/scrutins.js +0 -651
- package/lib/raw_types/scrutins.mjs +0 -598
- package/lib/schemas/acteur/Acteur.json +0 -56
- package/lib/schemas/acteur/AdresseElectronique.json +0 -52
- package/lib/schemas/acteur/AdressePostale.json +0 -75
- package/lib/schemas/acteur/Civ.json +0 -14
- package/lib/schemas/acteur/Collaborateur.json +0 -29
- package/lib/schemas/acteur/EtatCivil.json +0 -51
- package/lib/schemas/acteur/Ident.json +0 -40
- package/lib/schemas/acteur/Lieu.json +0 -66
- package/lib/schemas/acteur/Mandat.json +0 -192
- package/lib/schemas/acteur/Profession.json +0 -46
- package/lib/schemas/agenda/Agenda.json +0 -318
- package/lib/schemas/agenda/CycleDeVie.json +0 -45
- package/lib/schemas/agenda/PointOdj.json +0 -82
- package/lib/schemas/amendement/Amendement.json +0 -246
- package/lib/schemas/amendement/Diff.json +0 -25
- package/lib/schemas/amendement/DispositifAmdtCredit.json +0 -85
- package/lib/schemas/amendement/Identifiant.json +0 -62
- package/lib/schemas/amendement/PointeurFragmentTexte.json +0 -127
- package/lib/schemas/amendement/Representation.json +0 -67
- package/lib/schemas/amendement/Total.json +0 -26
- package/lib/schemas/converted_from_type/acteurs_et_organes.json +0 -666
- package/lib/schemas/converted_from_type/agendas.json +0 -1100
- package/lib/schemas/converted_from_type/amendements.json +0 -3191
- package/lib/schemas/converted_from_type/debats.json +0 -682
- package/lib/schemas/converted_from_type/deputes.json +0 -26
- package/lib/schemas/converted_from_type/dossiers_legislatifs.json +0 -2918
- package/lib/schemas/converted_from_type/legislatures.json +0 -16
- package/lib/schemas/converted_from_type/questions.json +0 -328
- package/lib/schemas/converted_from_type/scrutins.json +0 -393
- package/lib/schemas/debat/Contenu.json +0 -75
- package/lib/schemas/debat/Debat.json +0 -40
- package/lib/schemas/debat/Metadonnees.json +0 -75
- package/lib/schemas/debat/Orateur.json +0 -60
- package/lib/schemas/debat/Point.json +0 -169
- package/lib/schemas/debat/Sommaire.json +0 -71
- package/lib/schemas/debat/SommaireElement.json +0 -108
- package/lib/schemas/debat/Texte.json +0 -34
- package/lib/schemas/document/CodeLibelle.json +0 -25
- package/lib/schemas/document/Document.json +0 -385
- package/lib/schemas/document/Indexation.json +0 -38
- package/lib/schemas/dossier/ActeLegislatif.json +0 -211
- package/lib/schemas/dossier/ActeLegislatifBase.json +0 -62
- package/lib/schemas/dossier/Agenda.json +0 -23
- package/lib/schemas/dossier/ConseilConstitutionnel.json +0 -35
- package/lib/schemas/dossier/Decision.json +0 -25
- package/lib/schemas/dossier/Dossier.json +0 -124
- package/lib/schemas/dossier/EtudeImpact.json +0 -29
- package/lib/schemas/dossier/EtudePlf.json +0 -105
- package/lib/schemas/dossier/Europe.json +0 -42
- package/lib/schemas/dossier/FamCodeLibelle.json +0 -25
- package/lib/schemas/dossier/InfoJO.json +0 -23
- package/lib/schemas/dossier/Initiateur.json +0 -36
- package/lib/schemas/dossier/Motion.json +0 -27
- package/lib/schemas/dossier/Promulgation.json +0 -62
- package/lib/schemas/dossier/Rapporteur.json +0 -36
- package/lib/schemas/dossier/Texte.json +0 -47
- package/lib/schemas/organe/CodeTypeOrgane.json +0 -43
- package/lib/schemas/organe/Organe.json +0 -136
- package/lib/schemas/organe/ViMoDe.json +0 -28
- package/lib/schemas/question/Auteur.json +0 -58
- package/lib/schemas/question/Cloture.json +0 -28
- package/lib/schemas/question/InfoJO.json +0 -40
- package/lib/schemas/question/MinAttribElement.json +0 -30
- package/lib/schemas/question/Question.json +0 -172
- package/lib/schemas/question/Renouvellement.json +0 -17
- package/lib/schemas/question/Signalement.json +0 -21
- package/lib/schemas/question/Texte.json +0 -24
- package/lib/schemas/scrutin/DecompteVoix.json +0 -35
- package/lib/schemas/scrutin/Dysfonctionnement.json +0 -50
- package/lib/schemas/scrutin/MiseAuPoint.json +0 -53
- package/lib/schemas/scrutin/OrganeVotant.json +0 -88
- package/lib/schemas/scrutin/Scrutin.json +0 -187
- package/lib/schemas/scrutin/Votant.json +0 -37
- package/lib/scripts/bugs_helper.d.ts +0 -13
- package/lib/scripts/bugs_helper.js +0 -595
- package/lib/scripts/bugs_helper.mjs +0 -251
- package/lib/scripts/clean_reorganized_data.js +0 -613
- package/lib/scripts/clean_reorganized_data.mjs +0 -276
- package/lib/scripts/diff_amendements.js +0 -249
- package/lib/scripts/diff_amendements.mjs +0 -202
- package/lib/scripts/document_dossiers_legislatifs.js +0 -655
- package/lib/scripts/document_dossiers_legislatifs.mjs +0 -414
- package/lib/scripts/get_today_reunions.js +0 -37
- package/lib/scripts/get_today_reunions.mjs +0 -31
- package/lib/scripts/merge_scrutins.js +0 -97
- package/lib/scripts/merge_scrutins.mjs +0 -47
- package/lib/scripts/parse_textes_lois.d.ts +0 -1
- package/lib/scripts/parse_textes_lois.js +0 -171
- package/lib/scripts/parse_textes_lois.mjs +0 -140
- package/lib/scripts/process_open_dataset.js +0 -301
- package/lib/scripts/process_open_dataset.mjs +0 -134
- package/lib/scripts/raw_types_from_amendements.js +0 -135
- package/lib/scripts/raw_types_from_amendements.mjs +0 -134
- package/lib/scripts/reorganize_data.js +0 -805
- package/lib/scripts/reorganize_data.mjs +0 -517
- package/lib/scripts/retrieve_deputes_photos.js +0 -310
- package/lib/scripts/retrieve_deputes_photos.mjs +0 -158
- package/lib/scripts/retrieve_documents.js +0 -547
- package/lib/scripts/retrieve_documents.mjs +0 -242
- package/lib/scripts/retrieve_open_data.js +0 -107
- package/lib/scripts/retrieve_open_data.mjs +0 -26
- package/lib/scripts/retrieve_pending_amendments.js +0 -206
- package/lib/scripts/retrieve_pending_amendments.mjs +0 -57
- package/lib/scripts/retrieve_senateurs_photos.js +0 -234
- package/lib/scripts/retrieve_senateurs_photos.mjs +0 -116
- package/lib/scripts/retrieve_textes_lois.d.ts +0 -1
- package/lib/scripts/retrieve_textes_lois.js +0 -240
- package/lib/scripts/retrieve_textes_lois.mjs +0 -85
- package/lib/scripts/shared/cli_helpers.js +0 -89
- package/lib/scripts/shared/cli_helpers.mjs +0 -81
- package/lib/scripts/test_iter_load.js +0 -155
- package/lib/scripts/test_iter_load.mjs +0 -72
- package/lib/scripts/test_load.js +0 -26
- package/lib/scripts/test_load.mjs +0 -16
- package/lib/scripts/test_load_big_files.js +0 -26
- package/lib/scripts/test_load_big_files.mjs +0 -16
- package/lib/scripts/validate_json.js +0 -353
- package/lib/scripts/validate_json.mjs +0 -184
- package/lib/shared_types/codes_actes.js +0 -231
- package/lib/shared_types/codes_actes.mjs +0 -224
- package/lib/strings.js +0 -16
- package/lib/strings.mjs +0 -7
- package/lib/types/acteurs_et_organes.js +0 -965
- package/lib/types/acteurs_et_organes.mjs +0 -906
- package/lib/types/agendas.js +0 -628
- package/lib/types/agendas.mjs +0 -575
- package/lib/types/amendements.js +0 -899
- package/lib/types/amendements.mjs +0 -842
- package/lib/types/debats.js +0 -619
- package/lib/types/debats.mjs +0 -562
- package/lib/types/dossiers_legislatifs.js +0 -1188
- package/lib/types/dossiers_legislatifs.mjs +0 -1130
- package/lib/types/legislatures.js +0 -17
- package/lib/types/legislatures.mjs +0 -10
- package/lib/types/questions.js +0 -454
- package/lib/types/questions.mjs +0 -401
- package/lib/types/scrutins.js +0 -556
- package/lib/types/scrutins.mjs +0 -503
- package/lib/urls.js +0 -325
- package/lib/urls.mjs +0 -258
- /package/lib/{bugs/acteur-00010/plugin.test.d.ts → scripts/add_links_to_documents.d.ts} +0 -0
- /package/lib/{bugs/agenda-00002/plugin.test.d.ts → scripts/copy-schemas.d.ts} +0 -0
- /package/lib/{bugs/agenda-00008/plugin.test.d.ts → scripts/generate-json-schemas.d.ts} +0 -0
package/lib/index.js
CHANGED
|
@@ -1,339 +1,1567 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
return
|
|
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
|
-
return
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
Object.defineProperty(exports, "TypeDocument", {
|
|
92
|
-
enumerable: true,
|
|
93
|
-
get: function get() {
|
|
94
|
-
return _dossiers_legislatifs2.TypeDocument;
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
Object.defineProperty(exports, "TypeMandat", {
|
|
98
|
-
enumerable: true,
|
|
99
|
-
get: function get() {
|
|
100
|
-
return _acteurs_et_organes.TypeMandat;
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
Object.defineProperty(exports, "TypeOrgane", {
|
|
104
|
-
enumerable: true,
|
|
105
|
-
get: function get() {
|
|
106
|
-
return _acteurs_et_organes.TypeOrgane;
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
Object.defineProperty(exports, "TypeReunion", {
|
|
110
|
-
enumerable: true,
|
|
111
|
-
get: function get() {
|
|
112
|
-
return _agendas.TypeReunion;
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
Object.defineProperty(exports, "allFacets", {
|
|
116
|
-
enumerable: true,
|
|
117
|
-
get: function get() {
|
|
118
|
-
return _api.allFacets;
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
Object.defineProperty(exports, "allFollows", {
|
|
122
|
-
enumerable: true,
|
|
123
|
-
get: function get() {
|
|
124
|
-
return _api.allFollows;
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
Object.defineProperty(exports, "capitalizeFirstLetter", {
|
|
128
|
-
enumerable: true,
|
|
129
|
-
get: function get() {
|
|
130
|
-
return _strings.capitalizeFirstLetter;
|
|
1
|
+
import { c as P, t as x, g as C, m as Q, a as s, b as X, d as V, e as z, f as Z, h as J, i as K, l as ee, j as te, k as ne, w as re, n as U, o as k, p as ie, q as _ } from "./parse-Ccs6wcUg.js";
|
|
2
|
+
import { C as O } from "./loaders-9mHdTl9L.js";
|
|
3
|
+
import { a as lt, E as mt, L as gt, d as pt, e as yt, T as ht, b as Rt, c as xt, p as wt } from "./loaders-9mHdTl9L.js";
|
|
4
|
+
import { C as bt, A as vt, E as Tt, S as St, T as At } from "./amendements-CV3s5a0M.js";
|
|
5
|
+
var Y = /* @__PURE__ */ ((e) => (e.Amendements = "amendements", e))(Y || {});
|
|
6
|
+
const Ge = Object.values(Y);
|
|
7
|
+
var q = /* @__PURE__ */ ((e) => (e.Acte_organe = "acte.organe", e.Acte_provenance = "acte.provenance", e.Acte_rapporteurs_acteur = "acte.rapporteurs.acteur", e.Acte_reunion = "acte.reunion", e.Acte_texteAdopte = "acte.texteAdopte", e.Acte_texteAssocie = "acte.texteAssocie", e.Acte_textesAssocies_texteAssocie = "acte.textesAssocies.texteAssocie", e.Acte_votes = "acte.votes", e.Acteur_mandats_organes = "acteur.mandats.organes", e.Amendement_signataires_auteur_acteur = "amendement.signataires.auteur.acteur", e.Amendement_signataires_auteur_auteurRapporteurOrgane = "amendement.signataires.auteur.auteurRapporteurOrgane", e.Amendement_signataires_auteur_gouvernement = "amendement.signataires.auteur.gouvernement", e.Amendement_signataires_auteur_groupePolitique = "amendement.signataires.auteur.groupePolitique", e.Amendement_signataires_cosignataires = "amendement.signataires.cosignataires", e.Amendement_texteLegislatif = "amendement.texteLegislatif", e.Document_auteurs_acteur_acteur = "document.auteurs.acteur.acteur", e.Document_auteurs_organe = "document.auteurs.organe", e.Document_dossier = "document.dossier", e.Dossier_initiateur_acteurs_acteur = "dossier.initiateur.acteurs.acteur", e.Dossier_initiateur_organe = "dossier.initiateur.organe", e.Organe_organeParent = "organe.organeParent", e.Organe_organePrecedent = "organe.organePrecedent", e.Reunion_demandeurs_acteurs_acteur = "reunion.demandeurs.acteurs.acteur", e.Reunion_demandeurs_organe_organe = "reunion.demandeurs.organe.organe", e.Reunion_organeReuni = "reunion.organeReuni", e.Reunion_participants_participantsInternes_acteur = "reunion.participants.participantsInternes.acteur", e.Scrutin_miseAuPoint = "scrutin.miseAuPoint", e.Scrutin_organe = "scrutin.organe", e.Scrutin_ventilationVotes_groupes_organe = "scrutin.ventilationVotes.groupes.organe", e))(q || {});
|
|
8
|
+
const Qe = Object.values(q);
|
|
9
|
+
function oe(e, ...t) {
|
|
10
|
+
const r = P.bind(
|
|
11
|
+
null,
|
|
12
|
+
t.find((n) => typeof n == "object")
|
|
13
|
+
);
|
|
14
|
+
return t.map(r);
|
|
15
|
+
}
|
|
16
|
+
function L(e, t) {
|
|
17
|
+
const r = x(e, t?.in);
|
|
18
|
+
return r.setHours(0, 0, 0, 0), r;
|
|
19
|
+
}
|
|
20
|
+
function ae(e, t, r) {
|
|
21
|
+
const [n, i] = oe(
|
|
22
|
+
r?.in,
|
|
23
|
+
e,
|
|
24
|
+
t
|
|
25
|
+
), o = L(n), a = L(i), u = +o - C(o), c = +a - C(a);
|
|
26
|
+
return Math.round((u - c) / Q);
|
|
27
|
+
}
|
|
28
|
+
function se(e, t) {
|
|
29
|
+
const r = x(e, t?.in);
|
|
30
|
+
return r.setFullYear(r.getFullYear(), 0, 1), r.setHours(0, 0, 0, 0), r;
|
|
31
|
+
}
|
|
32
|
+
function ce(e, t) {
|
|
33
|
+
const r = x(e, t?.in);
|
|
34
|
+
return ae(r, se(r)) + 1;
|
|
35
|
+
}
|
|
36
|
+
const y = {
|
|
37
|
+
// Year
|
|
38
|
+
y(e, t) {
|
|
39
|
+
const r = e.getFullYear(), n = r > 0 ? r : 1 - r;
|
|
40
|
+
return s(t === "yy" ? n % 100 : n, t.length);
|
|
41
|
+
},
|
|
42
|
+
// Month
|
|
43
|
+
M(e, t) {
|
|
44
|
+
const r = e.getMonth();
|
|
45
|
+
return t === "M" ? String(r + 1) : s(r + 1, 2);
|
|
46
|
+
},
|
|
47
|
+
// Day of the month
|
|
48
|
+
d(e, t) {
|
|
49
|
+
return s(e.getDate(), t.length);
|
|
50
|
+
},
|
|
51
|
+
// AM or PM
|
|
52
|
+
a(e, t) {
|
|
53
|
+
const r = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
54
|
+
switch (t) {
|
|
55
|
+
case "a":
|
|
56
|
+
case "aa":
|
|
57
|
+
return r.toUpperCase();
|
|
58
|
+
case "aaa":
|
|
59
|
+
return r;
|
|
60
|
+
case "aaaaa":
|
|
61
|
+
return r[0];
|
|
62
|
+
case "aaaa":
|
|
63
|
+
default:
|
|
64
|
+
return r === "am" ? "a.m." : "p.m.";
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
// Hour [1-12]
|
|
68
|
+
h(e, t) {
|
|
69
|
+
return s(e.getHours() % 12 || 12, t.length);
|
|
70
|
+
},
|
|
71
|
+
// Hour [0-23]
|
|
72
|
+
H(e, t) {
|
|
73
|
+
return s(e.getHours(), t.length);
|
|
74
|
+
},
|
|
75
|
+
// Minute
|
|
76
|
+
m(e, t) {
|
|
77
|
+
return s(e.getMinutes(), t.length);
|
|
78
|
+
},
|
|
79
|
+
// Second
|
|
80
|
+
s(e, t) {
|
|
81
|
+
return s(e.getSeconds(), t.length);
|
|
82
|
+
},
|
|
83
|
+
// Fraction of second
|
|
84
|
+
S(e, t) {
|
|
85
|
+
const r = t.length, n = e.getMilliseconds(), i = Math.trunc(
|
|
86
|
+
n * Math.pow(10, r - 3)
|
|
87
|
+
);
|
|
88
|
+
return s(i, t.length);
|
|
131
89
|
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
90
|
+
}, w = {
|
|
91
|
+
midnight: "midnight",
|
|
92
|
+
noon: "noon",
|
|
93
|
+
morning: "morning",
|
|
94
|
+
afternoon: "afternoon",
|
|
95
|
+
evening: "evening",
|
|
96
|
+
night: "night"
|
|
97
|
+
}, I = {
|
|
98
|
+
// Era
|
|
99
|
+
G: function(e, t, r) {
|
|
100
|
+
const n = e.getFullYear() > 0 ? 1 : 0;
|
|
101
|
+
switch (t) {
|
|
102
|
+
// AD, BC
|
|
103
|
+
case "G":
|
|
104
|
+
case "GG":
|
|
105
|
+
case "GGG":
|
|
106
|
+
return r.era(n, { width: "abbreviated" });
|
|
107
|
+
// A, B
|
|
108
|
+
case "GGGGG":
|
|
109
|
+
return r.era(n, { width: "narrow" });
|
|
110
|
+
// Anno Domini, Before Christ
|
|
111
|
+
case "GGGG":
|
|
112
|
+
default:
|
|
113
|
+
return r.era(n, { width: "wide" });
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
// Year
|
|
117
|
+
y: function(e, t, r) {
|
|
118
|
+
if (t === "yo") {
|
|
119
|
+
const n = e.getFullYear(), i = n > 0 ? n : 1 - n;
|
|
120
|
+
return r.ordinalNumber(i, { unit: "year" });
|
|
121
|
+
}
|
|
122
|
+
return y.y(e, t);
|
|
123
|
+
},
|
|
124
|
+
// Local week-numbering year
|
|
125
|
+
Y: function(e, t, r, n) {
|
|
126
|
+
const i = Z(e, n), o = i > 0 ? i : 1 - i;
|
|
127
|
+
if (t === "YY") {
|
|
128
|
+
const a = o % 100;
|
|
129
|
+
return s(a, 2);
|
|
130
|
+
}
|
|
131
|
+
return t === "Yo" ? r.ordinalNumber(o, { unit: "year" }) : s(o, t.length);
|
|
132
|
+
},
|
|
133
|
+
// ISO week-numbering year
|
|
134
|
+
R: function(e, t) {
|
|
135
|
+
const r = z(e);
|
|
136
|
+
return s(r, t.length);
|
|
137
|
+
},
|
|
138
|
+
// Extended year. This is a single number designating the year of this calendar system.
|
|
139
|
+
// The main difference between `y` and `u` localizers are B.C. years:
|
|
140
|
+
// | Year | `y` | `u` |
|
|
141
|
+
// |------|-----|-----|
|
|
142
|
+
// | AC 1 | 1 | 1 |
|
|
143
|
+
// | BC 1 | 1 | 0 |
|
|
144
|
+
// | BC 2 | 2 | -1 |
|
|
145
|
+
// Also `yy` always returns the last two digits of a year,
|
|
146
|
+
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
147
|
+
u: function(e, t) {
|
|
148
|
+
const r = e.getFullYear();
|
|
149
|
+
return s(r, t.length);
|
|
150
|
+
},
|
|
151
|
+
// Quarter
|
|
152
|
+
Q: function(e, t, r) {
|
|
153
|
+
const n = Math.ceil((e.getMonth() + 1) / 3);
|
|
154
|
+
switch (t) {
|
|
155
|
+
// 1, 2, 3, 4
|
|
156
|
+
case "Q":
|
|
157
|
+
return String(n);
|
|
158
|
+
// 01, 02, 03, 04
|
|
159
|
+
case "QQ":
|
|
160
|
+
return s(n, 2);
|
|
161
|
+
// 1st, 2nd, 3rd, 4th
|
|
162
|
+
case "Qo":
|
|
163
|
+
return r.ordinalNumber(n, { unit: "quarter" });
|
|
164
|
+
// Q1, Q2, Q3, Q4
|
|
165
|
+
case "QQQ":
|
|
166
|
+
return r.quarter(n, {
|
|
167
|
+
width: "abbreviated",
|
|
168
|
+
context: "formatting"
|
|
169
|
+
});
|
|
170
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
171
|
+
case "QQQQQ":
|
|
172
|
+
return r.quarter(n, {
|
|
173
|
+
width: "narrow",
|
|
174
|
+
context: "formatting"
|
|
175
|
+
});
|
|
176
|
+
// 1st quarter, 2nd quarter, ...
|
|
177
|
+
case "QQQQ":
|
|
178
|
+
default:
|
|
179
|
+
return r.quarter(n, {
|
|
180
|
+
width: "wide",
|
|
181
|
+
context: "formatting"
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
// Stand-alone quarter
|
|
186
|
+
q: function(e, t, r) {
|
|
187
|
+
const n = Math.ceil((e.getMonth() + 1) / 3);
|
|
188
|
+
switch (t) {
|
|
189
|
+
// 1, 2, 3, 4
|
|
190
|
+
case "q":
|
|
191
|
+
return String(n);
|
|
192
|
+
// 01, 02, 03, 04
|
|
193
|
+
case "qq":
|
|
194
|
+
return s(n, 2);
|
|
195
|
+
// 1st, 2nd, 3rd, 4th
|
|
196
|
+
case "qo":
|
|
197
|
+
return r.ordinalNumber(n, { unit: "quarter" });
|
|
198
|
+
// Q1, Q2, Q3, Q4
|
|
199
|
+
case "qqq":
|
|
200
|
+
return r.quarter(n, {
|
|
201
|
+
width: "abbreviated",
|
|
202
|
+
context: "standalone"
|
|
203
|
+
});
|
|
204
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
205
|
+
case "qqqqq":
|
|
206
|
+
return r.quarter(n, {
|
|
207
|
+
width: "narrow",
|
|
208
|
+
context: "standalone"
|
|
209
|
+
});
|
|
210
|
+
// 1st quarter, 2nd quarter, ...
|
|
211
|
+
case "qqqq":
|
|
212
|
+
default:
|
|
213
|
+
return r.quarter(n, {
|
|
214
|
+
width: "wide",
|
|
215
|
+
context: "standalone"
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
// Month
|
|
220
|
+
M: function(e, t, r) {
|
|
221
|
+
const n = e.getMonth();
|
|
222
|
+
switch (t) {
|
|
223
|
+
case "M":
|
|
224
|
+
case "MM":
|
|
225
|
+
return y.M(e, t);
|
|
226
|
+
// 1st, 2nd, ..., 12th
|
|
227
|
+
case "Mo":
|
|
228
|
+
return r.ordinalNumber(n + 1, { unit: "month" });
|
|
229
|
+
// Jan, Feb, ..., Dec
|
|
230
|
+
case "MMM":
|
|
231
|
+
return r.month(n, {
|
|
232
|
+
width: "abbreviated",
|
|
233
|
+
context: "formatting"
|
|
234
|
+
});
|
|
235
|
+
// J, F, ..., D
|
|
236
|
+
case "MMMMM":
|
|
237
|
+
return r.month(n, {
|
|
238
|
+
width: "narrow",
|
|
239
|
+
context: "formatting"
|
|
240
|
+
});
|
|
241
|
+
// January, February, ..., December
|
|
242
|
+
case "MMMM":
|
|
243
|
+
default:
|
|
244
|
+
return r.month(n, { width: "wide", context: "formatting" });
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
// Stand-alone month
|
|
248
|
+
L: function(e, t, r) {
|
|
249
|
+
const n = e.getMonth();
|
|
250
|
+
switch (t) {
|
|
251
|
+
// 1, 2, ..., 12
|
|
252
|
+
case "L":
|
|
253
|
+
return String(n + 1);
|
|
254
|
+
// 01, 02, ..., 12
|
|
255
|
+
case "LL":
|
|
256
|
+
return s(n + 1, 2);
|
|
257
|
+
// 1st, 2nd, ..., 12th
|
|
258
|
+
case "Lo":
|
|
259
|
+
return r.ordinalNumber(n + 1, { unit: "month" });
|
|
260
|
+
// Jan, Feb, ..., Dec
|
|
261
|
+
case "LLL":
|
|
262
|
+
return r.month(n, {
|
|
263
|
+
width: "abbreviated",
|
|
264
|
+
context: "standalone"
|
|
265
|
+
});
|
|
266
|
+
// J, F, ..., D
|
|
267
|
+
case "LLLLL":
|
|
268
|
+
return r.month(n, {
|
|
269
|
+
width: "narrow",
|
|
270
|
+
context: "standalone"
|
|
271
|
+
});
|
|
272
|
+
// January, February, ..., December
|
|
273
|
+
case "LLLL":
|
|
274
|
+
default:
|
|
275
|
+
return r.month(n, { width: "wide", context: "standalone" });
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
// Local week of year
|
|
279
|
+
w: function(e, t, r, n) {
|
|
280
|
+
const i = V(e, n);
|
|
281
|
+
return t === "wo" ? r.ordinalNumber(i, { unit: "week" }) : s(i, t.length);
|
|
282
|
+
},
|
|
283
|
+
// ISO week of year
|
|
284
|
+
I: function(e, t, r) {
|
|
285
|
+
const n = X(e);
|
|
286
|
+
return t === "Io" ? r.ordinalNumber(n, { unit: "week" }) : s(n, t.length);
|
|
287
|
+
},
|
|
288
|
+
// Day of the month
|
|
289
|
+
d: function(e, t, r) {
|
|
290
|
+
return t === "do" ? r.ordinalNumber(e.getDate(), { unit: "date" }) : y.d(e, t);
|
|
291
|
+
},
|
|
292
|
+
// Day of year
|
|
293
|
+
D: function(e, t, r) {
|
|
294
|
+
const n = ce(e);
|
|
295
|
+
return t === "Do" ? r.ordinalNumber(n, { unit: "dayOfYear" }) : s(n, t.length);
|
|
296
|
+
},
|
|
297
|
+
// Day of week
|
|
298
|
+
E: function(e, t, r) {
|
|
299
|
+
const n = e.getDay();
|
|
300
|
+
switch (t) {
|
|
301
|
+
// Tue
|
|
302
|
+
case "E":
|
|
303
|
+
case "EE":
|
|
304
|
+
case "EEE":
|
|
305
|
+
return r.day(n, {
|
|
306
|
+
width: "abbreviated",
|
|
307
|
+
context: "formatting"
|
|
308
|
+
});
|
|
309
|
+
// T
|
|
310
|
+
case "EEEEE":
|
|
311
|
+
return r.day(n, {
|
|
312
|
+
width: "narrow",
|
|
313
|
+
context: "formatting"
|
|
314
|
+
});
|
|
315
|
+
// Tu
|
|
316
|
+
case "EEEEEE":
|
|
317
|
+
return r.day(n, {
|
|
318
|
+
width: "short",
|
|
319
|
+
context: "formatting"
|
|
320
|
+
});
|
|
321
|
+
// Tuesday
|
|
322
|
+
case "EEEE":
|
|
323
|
+
default:
|
|
324
|
+
return r.day(n, {
|
|
325
|
+
width: "wide",
|
|
326
|
+
context: "formatting"
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
// Local day of week
|
|
331
|
+
e: function(e, t, r, n) {
|
|
332
|
+
const i = e.getDay(), o = (i - n.weekStartsOn + 8) % 7 || 7;
|
|
333
|
+
switch (t) {
|
|
334
|
+
// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
335
|
+
case "e":
|
|
336
|
+
return String(o);
|
|
337
|
+
// Padded numerical value
|
|
338
|
+
case "ee":
|
|
339
|
+
return s(o, 2);
|
|
340
|
+
// 1st, 2nd, ..., 7th
|
|
341
|
+
case "eo":
|
|
342
|
+
return r.ordinalNumber(o, { unit: "day" });
|
|
343
|
+
case "eee":
|
|
344
|
+
return r.day(i, {
|
|
345
|
+
width: "abbreviated",
|
|
346
|
+
context: "formatting"
|
|
347
|
+
});
|
|
348
|
+
// T
|
|
349
|
+
case "eeeee":
|
|
350
|
+
return r.day(i, {
|
|
351
|
+
width: "narrow",
|
|
352
|
+
context: "formatting"
|
|
353
|
+
});
|
|
354
|
+
// Tu
|
|
355
|
+
case "eeeeee":
|
|
356
|
+
return r.day(i, {
|
|
357
|
+
width: "short",
|
|
358
|
+
context: "formatting"
|
|
359
|
+
});
|
|
360
|
+
// Tuesday
|
|
361
|
+
case "eeee":
|
|
362
|
+
default:
|
|
363
|
+
return r.day(i, {
|
|
364
|
+
width: "wide",
|
|
365
|
+
context: "formatting"
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
// Stand-alone local day of week
|
|
370
|
+
c: function(e, t, r, n) {
|
|
371
|
+
const i = e.getDay(), o = (i - n.weekStartsOn + 8) % 7 || 7;
|
|
372
|
+
switch (t) {
|
|
373
|
+
// Numerical value (same as in `e`)
|
|
374
|
+
case "c":
|
|
375
|
+
return String(o);
|
|
376
|
+
// Padded numerical value
|
|
377
|
+
case "cc":
|
|
378
|
+
return s(o, t.length);
|
|
379
|
+
// 1st, 2nd, ..., 7th
|
|
380
|
+
case "co":
|
|
381
|
+
return r.ordinalNumber(o, { unit: "day" });
|
|
382
|
+
case "ccc":
|
|
383
|
+
return r.day(i, {
|
|
384
|
+
width: "abbreviated",
|
|
385
|
+
context: "standalone"
|
|
386
|
+
});
|
|
387
|
+
// T
|
|
388
|
+
case "ccccc":
|
|
389
|
+
return r.day(i, {
|
|
390
|
+
width: "narrow",
|
|
391
|
+
context: "standalone"
|
|
392
|
+
});
|
|
393
|
+
// Tu
|
|
394
|
+
case "cccccc":
|
|
395
|
+
return r.day(i, {
|
|
396
|
+
width: "short",
|
|
397
|
+
context: "standalone"
|
|
398
|
+
});
|
|
399
|
+
// Tuesday
|
|
400
|
+
case "cccc":
|
|
401
|
+
default:
|
|
402
|
+
return r.day(i, {
|
|
403
|
+
width: "wide",
|
|
404
|
+
context: "standalone"
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
// ISO day of week
|
|
409
|
+
i: function(e, t, r) {
|
|
410
|
+
const n = e.getDay(), i = n === 0 ? 7 : n;
|
|
411
|
+
switch (t) {
|
|
412
|
+
// 2
|
|
413
|
+
case "i":
|
|
414
|
+
return String(i);
|
|
415
|
+
// 02
|
|
416
|
+
case "ii":
|
|
417
|
+
return s(i, t.length);
|
|
418
|
+
// 2nd
|
|
419
|
+
case "io":
|
|
420
|
+
return r.ordinalNumber(i, { unit: "day" });
|
|
421
|
+
// Tue
|
|
422
|
+
case "iii":
|
|
423
|
+
return r.day(n, {
|
|
424
|
+
width: "abbreviated",
|
|
425
|
+
context: "formatting"
|
|
426
|
+
});
|
|
427
|
+
// T
|
|
428
|
+
case "iiiii":
|
|
429
|
+
return r.day(n, {
|
|
430
|
+
width: "narrow",
|
|
431
|
+
context: "formatting"
|
|
432
|
+
});
|
|
433
|
+
// Tu
|
|
434
|
+
case "iiiiii":
|
|
435
|
+
return r.day(n, {
|
|
436
|
+
width: "short",
|
|
437
|
+
context: "formatting"
|
|
438
|
+
});
|
|
439
|
+
// Tuesday
|
|
440
|
+
case "iiii":
|
|
441
|
+
default:
|
|
442
|
+
return r.day(n, {
|
|
443
|
+
width: "wide",
|
|
444
|
+
context: "formatting"
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
// AM or PM
|
|
449
|
+
a: function(e, t, r) {
|
|
450
|
+
const i = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
451
|
+
switch (t) {
|
|
452
|
+
case "a":
|
|
453
|
+
case "aa":
|
|
454
|
+
return r.dayPeriod(i, {
|
|
455
|
+
width: "abbreviated",
|
|
456
|
+
context: "formatting"
|
|
457
|
+
});
|
|
458
|
+
case "aaa":
|
|
459
|
+
return r.dayPeriod(i, {
|
|
460
|
+
width: "abbreviated",
|
|
461
|
+
context: "formatting"
|
|
462
|
+
}).toLowerCase();
|
|
463
|
+
case "aaaaa":
|
|
464
|
+
return r.dayPeriod(i, {
|
|
465
|
+
width: "narrow",
|
|
466
|
+
context: "formatting"
|
|
467
|
+
});
|
|
468
|
+
case "aaaa":
|
|
469
|
+
default:
|
|
470
|
+
return r.dayPeriod(i, {
|
|
471
|
+
width: "wide",
|
|
472
|
+
context: "formatting"
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
// AM, PM, midnight, noon
|
|
477
|
+
b: function(e, t, r) {
|
|
478
|
+
const n = e.getHours();
|
|
479
|
+
let i;
|
|
480
|
+
switch (n === 12 ? i = w.noon : n === 0 ? i = w.midnight : i = n / 12 >= 1 ? "pm" : "am", t) {
|
|
481
|
+
case "b":
|
|
482
|
+
case "bb":
|
|
483
|
+
return r.dayPeriod(i, {
|
|
484
|
+
width: "abbreviated",
|
|
485
|
+
context: "formatting"
|
|
486
|
+
});
|
|
487
|
+
case "bbb":
|
|
488
|
+
return r.dayPeriod(i, {
|
|
489
|
+
width: "abbreviated",
|
|
490
|
+
context: "formatting"
|
|
491
|
+
}).toLowerCase();
|
|
492
|
+
case "bbbbb":
|
|
493
|
+
return r.dayPeriod(i, {
|
|
494
|
+
width: "narrow",
|
|
495
|
+
context: "formatting"
|
|
496
|
+
});
|
|
497
|
+
case "bbbb":
|
|
498
|
+
default:
|
|
499
|
+
return r.dayPeriod(i, {
|
|
500
|
+
width: "wide",
|
|
501
|
+
context: "formatting"
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
// in the morning, in the afternoon, in the evening, at night
|
|
506
|
+
B: function(e, t, r) {
|
|
507
|
+
const n = e.getHours();
|
|
508
|
+
let i;
|
|
509
|
+
switch (n >= 17 ? i = w.evening : n >= 12 ? i = w.afternoon : n >= 4 ? i = w.morning : i = w.night, t) {
|
|
510
|
+
case "B":
|
|
511
|
+
case "BB":
|
|
512
|
+
case "BBB":
|
|
513
|
+
return r.dayPeriod(i, {
|
|
514
|
+
width: "abbreviated",
|
|
515
|
+
context: "formatting"
|
|
516
|
+
});
|
|
517
|
+
case "BBBBB":
|
|
518
|
+
return r.dayPeriod(i, {
|
|
519
|
+
width: "narrow",
|
|
520
|
+
context: "formatting"
|
|
521
|
+
});
|
|
522
|
+
case "BBBB":
|
|
523
|
+
default:
|
|
524
|
+
return r.dayPeriod(i, {
|
|
525
|
+
width: "wide",
|
|
526
|
+
context: "formatting"
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
// Hour [1-12]
|
|
531
|
+
h: function(e, t, r) {
|
|
532
|
+
if (t === "ho") {
|
|
533
|
+
let n = e.getHours() % 12;
|
|
534
|
+
return n === 0 && (n = 12), r.ordinalNumber(n, { unit: "hour" });
|
|
535
|
+
}
|
|
536
|
+
return y.h(e, t);
|
|
537
|
+
},
|
|
538
|
+
// Hour [0-23]
|
|
539
|
+
H: function(e, t, r) {
|
|
540
|
+
return t === "Ho" ? r.ordinalNumber(e.getHours(), { unit: "hour" }) : y.H(e, t);
|
|
541
|
+
},
|
|
542
|
+
// Hour [0-11]
|
|
543
|
+
K: function(e, t, r) {
|
|
544
|
+
const n = e.getHours() % 12;
|
|
545
|
+
return t === "Ko" ? r.ordinalNumber(n, { unit: "hour" }) : s(n, t.length);
|
|
546
|
+
},
|
|
547
|
+
// Hour [1-24]
|
|
548
|
+
k: function(e, t, r) {
|
|
549
|
+
let n = e.getHours();
|
|
550
|
+
return n === 0 && (n = 24), t === "ko" ? r.ordinalNumber(n, { unit: "hour" }) : s(n, t.length);
|
|
551
|
+
},
|
|
552
|
+
// Minute
|
|
553
|
+
m: function(e, t, r) {
|
|
554
|
+
return t === "mo" ? r.ordinalNumber(e.getMinutes(), { unit: "minute" }) : y.m(e, t);
|
|
555
|
+
},
|
|
556
|
+
// Second
|
|
557
|
+
s: function(e, t, r) {
|
|
558
|
+
return t === "so" ? r.ordinalNumber(e.getSeconds(), { unit: "second" }) : y.s(e, t);
|
|
559
|
+
},
|
|
560
|
+
// Fraction of second
|
|
561
|
+
S: function(e, t) {
|
|
562
|
+
return y.S(e, t);
|
|
563
|
+
},
|
|
564
|
+
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
565
|
+
X: function(e, t, r) {
|
|
566
|
+
const n = e.getTimezoneOffset();
|
|
567
|
+
if (n === 0)
|
|
568
|
+
return "Z";
|
|
569
|
+
switch (t) {
|
|
570
|
+
// Hours and optional minutes
|
|
571
|
+
case "X":
|
|
572
|
+
return B(n);
|
|
573
|
+
// Hours, minutes and optional seconds without `:` delimiter
|
|
574
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
575
|
+
// so this token always has the same output as `XX`
|
|
576
|
+
case "XXXX":
|
|
577
|
+
case "XX":
|
|
578
|
+
return R(n);
|
|
579
|
+
// Hours, minutes and optional seconds with `:` delimiter
|
|
580
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
581
|
+
// so this token always has the same output as `XXX`
|
|
582
|
+
case "XXXXX":
|
|
583
|
+
case "XXX":
|
|
584
|
+
// Hours and minutes with `:` delimiter
|
|
585
|
+
default:
|
|
586
|
+
return R(n, ":");
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
590
|
+
x: function(e, t, r) {
|
|
591
|
+
const n = e.getTimezoneOffset();
|
|
592
|
+
switch (t) {
|
|
593
|
+
// Hours and optional minutes
|
|
594
|
+
case "x":
|
|
595
|
+
return B(n);
|
|
596
|
+
// Hours, minutes and optional seconds without `:` delimiter
|
|
597
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
598
|
+
// so this token always has the same output as `xx`
|
|
599
|
+
case "xxxx":
|
|
600
|
+
case "xx":
|
|
601
|
+
return R(n);
|
|
602
|
+
// Hours, minutes and optional seconds with `:` delimiter
|
|
603
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
604
|
+
// so this token always has the same output as `xxx`
|
|
605
|
+
case "xxxxx":
|
|
606
|
+
case "xxx":
|
|
607
|
+
// Hours and minutes with `:` delimiter
|
|
608
|
+
default:
|
|
609
|
+
return R(n, ":");
|
|
610
|
+
}
|
|
611
|
+
},
|
|
612
|
+
// Timezone (GMT)
|
|
613
|
+
O: function(e, t, r) {
|
|
614
|
+
const n = e.getTimezoneOffset();
|
|
615
|
+
switch (t) {
|
|
616
|
+
// Short
|
|
617
|
+
case "O":
|
|
618
|
+
case "OO":
|
|
619
|
+
case "OOO":
|
|
620
|
+
return "GMT" + N(n, ":");
|
|
621
|
+
// Long
|
|
622
|
+
case "OOOO":
|
|
623
|
+
default:
|
|
624
|
+
return "GMT" + R(n, ":");
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
// Timezone (specific non-location)
|
|
628
|
+
z: function(e, t, r) {
|
|
629
|
+
const n = e.getTimezoneOffset();
|
|
630
|
+
switch (t) {
|
|
631
|
+
// Short
|
|
632
|
+
case "z":
|
|
633
|
+
case "zz":
|
|
634
|
+
case "zzz":
|
|
635
|
+
return "GMT" + N(n, ":");
|
|
636
|
+
// Long
|
|
637
|
+
case "zzzz":
|
|
638
|
+
default:
|
|
639
|
+
return "GMT" + R(n, ":");
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
// Seconds timestamp
|
|
643
|
+
t: function(e, t, r) {
|
|
644
|
+
const n = Math.trunc(+e / 1e3);
|
|
645
|
+
return s(n, t.length);
|
|
646
|
+
},
|
|
647
|
+
// Milliseconds timestamp
|
|
648
|
+
T: function(e, t, r) {
|
|
649
|
+
return s(+e, t.length);
|
|
137
650
|
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
651
|
+
};
|
|
652
|
+
function N(e, t = "") {
|
|
653
|
+
const r = e > 0 ? "-" : "+", n = Math.abs(e), i = Math.trunc(n / 60), o = n % 60;
|
|
654
|
+
return o === 0 ? r + String(i) : r + String(i) + t + s(o, 2);
|
|
655
|
+
}
|
|
656
|
+
function B(e, t) {
|
|
657
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + s(Math.abs(e) / 60, 2) : R(e, t);
|
|
658
|
+
}
|
|
659
|
+
function R(e, t = "") {
|
|
660
|
+
const r = e > 0 ? "-" : "+", n = Math.abs(e), i = s(Math.trunc(n / 60), 2), o = s(n % 60, 2);
|
|
661
|
+
return r + i + t + o;
|
|
662
|
+
}
|
|
663
|
+
function ue(e) {
|
|
664
|
+
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
665
|
+
}
|
|
666
|
+
function fe(e) {
|
|
667
|
+
return !(!ue(e) && typeof e != "number" || isNaN(+x(e)));
|
|
668
|
+
}
|
|
669
|
+
const de = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, le = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, me = /^'([^]*?)'?$/, ge = /''/g, pe = /[a-zA-Z]/;
|
|
670
|
+
function M(e, t, r) {
|
|
671
|
+
const n = J(), i = r?.locale ?? n.locale ?? K, o = r?.firstWeekContainsDate ?? r?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, a = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, u = x(e, r?.in);
|
|
672
|
+
if (!fe(u))
|
|
673
|
+
throw new RangeError("Invalid time value");
|
|
674
|
+
let c = t.match(le).map((d) => {
|
|
675
|
+
const l = d[0];
|
|
676
|
+
if (l === "p" || l === "P") {
|
|
677
|
+
const A = ee[l];
|
|
678
|
+
return A(d, i.formatLong);
|
|
679
|
+
}
|
|
680
|
+
return d;
|
|
681
|
+
}).join("").match(de).map((d) => {
|
|
682
|
+
if (d === "''")
|
|
683
|
+
return { isToken: !1, value: "'" };
|
|
684
|
+
const l = d[0];
|
|
685
|
+
if (l === "'")
|
|
686
|
+
return { isToken: !1, value: ye(d) };
|
|
687
|
+
if (I[l])
|
|
688
|
+
return { isToken: !0, value: d };
|
|
689
|
+
if (l.match(pe))
|
|
690
|
+
throw new RangeError(
|
|
691
|
+
"Format string contains an unescaped latin alphabet character `" + l + "`"
|
|
692
|
+
);
|
|
693
|
+
return { isToken: !1, value: d };
|
|
694
|
+
});
|
|
695
|
+
i.localize.preprocessor && (c = i.localize.preprocessor(u, c));
|
|
696
|
+
const f = {
|
|
697
|
+
firstWeekContainsDate: o,
|
|
698
|
+
weekStartsOn: a,
|
|
699
|
+
locale: i
|
|
700
|
+
};
|
|
701
|
+
return c.map((d) => {
|
|
702
|
+
if (!d.isToken) return d.value;
|
|
703
|
+
const l = d.value;
|
|
704
|
+
(!r?.useAdditionalWeekYearTokens && te(l) || !r?.useAdditionalDayOfYearTokens && ne(l)) && re(l, t, String(e));
|
|
705
|
+
const A = I[l[0]];
|
|
706
|
+
return A(u, l, i.localize, f);
|
|
707
|
+
}).join("");
|
|
708
|
+
}
|
|
709
|
+
function ye(e) {
|
|
710
|
+
const t = e.match(me);
|
|
711
|
+
return t ? t[1].replace(ge, "'") : e;
|
|
712
|
+
}
|
|
713
|
+
function S(e, t) {
|
|
714
|
+
const r = () => P(t?.in, NaN), i = we(e);
|
|
715
|
+
let o;
|
|
716
|
+
if (i.date) {
|
|
717
|
+
const f = De(i.date, 2);
|
|
718
|
+
o = be(f.restDateString, f.year);
|
|
143
719
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
return
|
|
720
|
+
if (!o || isNaN(+o)) return r();
|
|
721
|
+
const a = +o;
|
|
722
|
+
let u = 0, c;
|
|
723
|
+
if (i.time && (u = ve(i.time), isNaN(u)))
|
|
724
|
+
return r();
|
|
725
|
+
if (i.timezone) {
|
|
726
|
+
if (c = Te(i.timezone), isNaN(c)) return r();
|
|
727
|
+
} else {
|
|
728
|
+
const f = new Date(a + u), d = x(0, t?.in);
|
|
729
|
+
return d.setFullYear(
|
|
730
|
+
f.getUTCFullYear(),
|
|
731
|
+
f.getUTCMonth(),
|
|
732
|
+
f.getUTCDate()
|
|
733
|
+
), d.setHours(
|
|
734
|
+
f.getUTCHours(),
|
|
735
|
+
f.getUTCMinutes(),
|
|
736
|
+
f.getUTCSeconds(),
|
|
737
|
+
f.getUTCMilliseconds()
|
|
738
|
+
), d;
|
|
149
739
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
740
|
+
return x(a + u + c, t?.in);
|
|
741
|
+
}
|
|
742
|
+
const b = {
|
|
743
|
+
dateTimeDelimiter: /[T ]/,
|
|
744
|
+
timeZoneDelimiter: /[Z ]/i,
|
|
745
|
+
timezone: /([Z+-].*)$/
|
|
746
|
+
}, he = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, Re = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, xe = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
747
|
+
function we(e) {
|
|
748
|
+
const t = {}, r = e.split(b.dateTimeDelimiter);
|
|
749
|
+
let n;
|
|
750
|
+
if (r.length > 2)
|
|
751
|
+
return t;
|
|
752
|
+
if (/:/.test(r[0]) ? n = r[0] : (t.date = r[0], n = r[1], b.timeZoneDelimiter.test(t.date) && (t.date = e.split(b.timeZoneDelimiter)[0], n = e.substr(
|
|
753
|
+
t.date.length,
|
|
754
|
+
e.length
|
|
755
|
+
))), n) {
|
|
756
|
+
const i = b.timezone.exec(n);
|
|
757
|
+
i ? (t.time = n.replace(i[1], ""), t.timezone = i[1]) : t.time = n;
|
|
155
758
|
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
759
|
+
return t;
|
|
760
|
+
}
|
|
761
|
+
function De(e, t) {
|
|
762
|
+
const r = new RegExp(
|
|
763
|
+
"^(?:(\\d{4}|[+-]\\d{" + (4 + t) + "})|(\\d{2}|[+-]\\d{" + (2 + t) + "})$)"
|
|
764
|
+
), n = e.match(r);
|
|
765
|
+
if (!n) return { year: NaN, restDateString: "" };
|
|
766
|
+
const i = n[1] ? parseInt(n[1]) : null, o = n[2] ? parseInt(n[2]) : null;
|
|
767
|
+
return {
|
|
768
|
+
year: o === null ? i : o * 100,
|
|
769
|
+
restDateString: e.slice((n[1] || n[2]).length)
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
function be(e, t) {
|
|
773
|
+
if (t === null) return /* @__PURE__ */ new Date(NaN);
|
|
774
|
+
const r = e.match(he);
|
|
775
|
+
if (!r) return /* @__PURE__ */ new Date(NaN);
|
|
776
|
+
const n = !!r[4], i = D(r[1]), o = D(r[2]) - 1, a = D(r[3]), u = D(r[4]), c = D(r[5]) - 1;
|
|
777
|
+
if (n)
|
|
778
|
+
return _e(t, u, c) ? Se(t, u, c) : /* @__PURE__ */ new Date(NaN);
|
|
779
|
+
{
|
|
780
|
+
const f = /* @__PURE__ */ new Date(0);
|
|
781
|
+
return !Ee(t, o, a) || !Oe(t, i) ? /* @__PURE__ */ new Date(NaN) : (f.setUTCFullYear(t, o, Math.max(i, a)), f);
|
|
161
782
|
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
783
|
+
}
|
|
784
|
+
function D(e) {
|
|
785
|
+
return e ? parseInt(e) : 1;
|
|
786
|
+
}
|
|
787
|
+
function ve(e) {
|
|
788
|
+
const t = e.match(Re);
|
|
789
|
+
if (!t) return NaN;
|
|
790
|
+
const r = E(t[1]), n = E(t[2]), i = E(t[3]);
|
|
791
|
+
return Me(r, n, i) ? r * U + n * k + i * 1e3 : NaN;
|
|
792
|
+
}
|
|
793
|
+
function E(e) {
|
|
794
|
+
return e && parseFloat(e.replace(",", ".")) || 0;
|
|
795
|
+
}
|
|
796
|
+
function Te(e) {
|
|
797
|
+
if (e === "Z") return 0;
|
|
798
|
+
const t = e.match(xe);
|
|
799
|
+
if (!t) return 0;
|
|
800
|
+
const r = t[1] === "+" ? -1 : 1, n = parseInt(t[2]), i = t[3] && parseInt(t[3]) || 0;
|
|
801
|
+
return Ce(n, i) ? r * (n * U + i * k) : NaN;
|
|
802
|
+
}
|
|
803
|
+
function Se(e, t, r) {
|
|
804
|
+
const n = /* @__PURE__ */ new Date(0);
|
|
805
|
+
n.setUTCFullYear(e, 0, 4);
|
|
806
|
+
const i = n.getUTCDay() || 7, o = (t - 1) * 7 + r + 1 - i;
|
|
807
|
+
return n.setUTCDate(n.getUTCDate() + o), n;
|
|
808
|
+
}
|
|
809
|
+
const Ae = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
810
|
+
function F(e) {
|
|
811
|
+
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
812
|
+
}
|
|
813
|
+
function Ee(e, t, r) {
|
|
814
|
+
return t >= 0 && t <= 11 && r >= 1 && r <= (Ae[t] || (F(e) ? 29 : 28));
|
|
815
|
+
}
|
|
816
|
+
function Oe(e, t) {
|
|
817
|
+
return t >= 1 && t <= (F(e) ? 366 : 365);
|
|
818
|
+
}
|
|
819
|
+
function _e(e, t, r) {
|
|
820
|
+
return t >= 1 && t <= 53 && r >= 0 && r <= 6;
|
|
821
|
+
}
|
|
822
|
+
function Me(e, t, r) {
|
|
823
|
+
return e === 24 ? t === 0 && r === 0 : r >= 0 && r < 60 && t >= 0 && t < 60 && e >= 0 && e < 25;
|
|
824
|
+
}
|
|
825
|
+
function Ce(e, t) {
|
|
826
|
+
return t >= 0 && t <= 59;
|
|
827
|
+
}
|
|
828
|
+
const Le = Date.prototype.toJSON, Ie = function() {
|
|
829
|
+
try {
|
|
830
|
+
const e = this.getHours(), t = this.getMinutes(), r = this.getSeconds(), n = this.getMilliseconds(), i = -(this.getTimezoneOffset() / 60);
|
|
831
|
+
if (i === 0.15 && e === 0 && t === 9 && r === 21 || e - i === 0 && t === 0 && r === 0 && n === 0)
|
|
832
|
+
return this.toISOString().split("T")[0];
|
|
833
|
+
const o = new Date(
|
|
834
|
+
this.getFullYear(),
|
|
835
|
+
this.getMonth(),
|
|
836
|
+
this.getDate(),
|
|
837
|
+
e,
|
|
838
|
+
t,
|
|
839
|
+
r,
|
|
840
|
+
n
|
|
841
|
+
);
|
|
842
|
+
o.setHours(this.getHours() + i);
|
|
843
|
+
const a = o.toISOString().replace(/(\.0+)?Z$/, ""), u = i >= 0 ? "+" : "-", c = Math.abs(i) < 10 ? "0" : "";
|
|
844
|
+
return a + u + c + Math.abs(i).toString().split(".")[0] + ":00";
|
|
845
|
+
} catch {
|
|
846
|
+
Date.prototype.toJSON = Le;
|
|
847
|
+
const t = this.toJSON();
|
|
848
|
+
return Date.prototype.toJSON = Ie, t;
|
|
167
849
|
}
|
|
850
|
+
}, Xe = new Intl.DateTimeFormat("fr-FR", {
|
|
851
|
+
day: "numeric",
|
|
852
|
+
month: "long",
|
|
853
|
+
weekday: "long",
|
|
854
|
+
year: "numeric"
|
|
855
|
+
}), Ne = new Intl.DateTimeFormat("fr-FR", {
|
|
856
|
+
day: "numeric",
|
|
857
|
+
month: "short"
|
|
858
|
+
}), Be = new Intl.DateTimeFormat("fr-FR", {
|
|
859
|
+
hour: "numeric",
|
|
860
|
+
minute: "2-digit"
|
|
168
861
|
});
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
862
|
+
function Ve(e, t) {
|
|
863
|
+
return e instanceof Date ? e : typeof e == "string" ? S(e) : t;
|
|
864
|
+
}
|
|
865
|
+
function ze(e) {
|
|
866
|
+
return ie(e, "yyyy-MM-ddXXX", /* @__PURE__ */ new Date());
|
|
867
|
+
}
|
|
868
|
+
function Ze(e) {
|
|
869
|
+
const t = S(e);
|
|
870
|
+
return e = M(t, "EEEE d LLLL yyyy H'h'mm", { locale: _ }), e.endsWith(" 0h00") && (e = e.substring(0, e.length - 5)), e;
|
|
871
|
+
}
|
|
872
|
+
function Je(e, t) {
|
|
873
|
+
return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate() ? Be.format(e) : Ne.format(e);
|
|
874
|
+
}
|
|
875
|
+
function Ke(e) {
|
|
876
|
+
const t = e instanceof Date ? e : S(e);
|
|
877
|
+
let r = M(t, "d LLLL yyyy H'h'mm", { locale: _ });
|
|
878
|
+
return r.endsWith(" 0h00") && (r = r.substring(0, r.length - 5)), r;
|
|
879
|
+
}
|
|
880
|
+
function et(e) {
|
|
881
|
+
const t = e instanceof Date ? e : S(e);
|
|
882
|
+
return M(t, "H'h'mm", { locale: _ });
|
|
883
|
+
}
|
|
884
|
+
function tt(e) {
|
|
885
|
+
return new Date(e.getTime() - e.getTimezoneOffset() * 6e4).toISOString().split("T")[0];
|
|
886
|
+
}
|
|
887
|
+
function nt(e) {
|
|
888
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
889
|
+
}
|
|
890
|
+
function g(e) {
|
|
891
|
+
return e.charAt(0).toLowerCase() + e.slice(1);
|
|
892
|
+
}
|
|
893
|
+
var Pe = /* @__PURE__ */ ((e) => (e.Failure = "FAILURE", e.InProgress = "IN_PROGRESS", e.Success = "SUCCESS", e))(Pe || {});
|
|
894
|
+
function rt(e) {
|
|
895
|
+
if (e.actesLegislatifs !== void 0) {
|
|
896
|
+
for (const t of W(e.actesLegislatifs))
|
|
897
|
+
if (t.codeActe.match(/^AN.*-COM-FOND-SAISIE$/) !== null && t.organeRef !== void 0 && t.organeRef !== "PO211494")
|
|
898
|
+
return t.organeRef;
|
|
173
899
|
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
900
|
+
}
|
|
901
|
+
function p(e) {
|
|
902
|
+
switch (e) {
|
|
903
|
+
case "Accord":
|
|
904
|
+
case "adopté":
|
|
905
|
+
case "adopté, dans les conditions prévues à l'article 45, alinéa 3, de la Constitution":
|
|
906
|
+
case "adoptée":
|
|
907
|
+
case "adopté sans modification":
|
|
908
|
+
case "adoptée sans modification":
|
|
909
|
+
case "Conforme":
|
|
910
|
+
case "considérée comme définitive en application de l'article 151-7 du Règlement":
|
|
911
|
+
case "considérée comme définitive en application de l'article 151-9 du Règlement":
|
|
912
|
+
case "Motion adopté(e)":
|
|
913
|
+
return "SUCCESS";
|
|
914
|
+
case "Désaccord":
|
|
915
|
+
case "Motion rejeté(e)":
|
|
916
|
+
case "rejeté":
|
|
917
|
+
case "rejetée":
|
|
918
|
+
return "FAILURE";
|
|
919
|
+
case "adopté avec modifications":
|
|
920
|
+
case "adoptée avec modifications":
|
|
921
|
+
case "De droit (article 61 alinéa 1 de la Constitution)":
|
|
922
|
+
case "modifié":
|
|
923
|
+
case "modifiée":
|
|
924
|
+
case "Motion de censure 49-2":
|
|
925
|
+
case "Partiellement conforme":
|
|
926
|
+
return "IN_PROGRESS";
|
|
927
|
+
case "Soixante députés au moins":
|
|
928
|
+
case "Soixante sénateurs au moins":
|
|
929
|
+
return O.Constitu;
|
|
930
|
+
default:
|
|
931
|
+
return "IN_PROGRESS";
|
|
179
932
|
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
933
|
+
}
|
|
934
|
+
function Ue(e, t) {
|
|
935
|
+
const r = t[t.length - 1];
|
|
936
|
+
let n = null;
|
|
937
|
+
switch (r.xsiType) {
|
|
938
|
+
case "Adoption_Europe_Type":
|
|
939
|
+
return n = r.statutAdoption.libelle, {
|
|
940
|
+
currentStatus: p(n),
|
|
941
|
+
label: g(n)
|
|
942
|
+
};
|
|
943
|
+
case "ConclusionEtapeCC_Type":
|
|
944
|
+
return n = r.statutConclusion.libelle, {
|
|
945
|
+
currentStatus: p(n),
|
|
946
|
+
label: g(n)
|
|
947
|
+
};
|
|
948
|
+
case "Decision_Type": {
|
|
949
|
+
n = r.statutConclusion.libelle;
|
|
950
|
+
let i = p(n), o;
|
|
951
|
+
switch (e.procedureParlementaire.code) {
|
|
952
|
+
case "PROCEDURE_PARLEMENTAIRE_2":
|
|
953
|
+
["rejeté", "rejetée"].includes(n) && e.actesLegislatifs !== void 0 && e.actesLegislatifs.length === 1 && (o = "FAILURE");
|
|
954
|
+
break;
|
|
955
|
+
case "PROCEDURE_PARLEMENTAIRE_8":
|
|
956
|
+
// Résolution
|
|
957
|
+
case "PROCEDURE_PARLEMENTAIRE_22":
|
|
958
|
+
i === "SUCCESS" ? o = "SUCCESS" : i === "FAILURE" && (o = "FAILURE");
|
|
959
|
+
break;
|
|
960
|
+
}
|
|
961
|
+
return {
|
|
962
|
+
currentStatus: i,
|
|
963
|
+
finalStatus: o,
|
|
964
|
+
label: g(n)
|
|
965
|
+
};
|
|
966
|
+
}
|
|
967
|
+
case "DecisionMotionCensure_Type":
|
|
968
|
+
return n = r.decision.libelle, {
|
|
969
|
+
currentStatus: p(n),
|
|
970
|
+
finalStatus: (
|
|
971
|
+
// Not sure for other cases => To improve.
|
|
972
|
+
// Engagement de la responsabilité gouvernementale
|
|
973
|
+
e.procedureParlementaire.code === "PROCEDURE_PARLEMENTAIRE_13" && n === "Motion rejeté(e)" ? "FAILURE" : "SUCCESS"
|
|
974
|
+
),
|
|
975
|
+
// TODO: Not sure of this `true` value
|
|
976
|
+
label: g(n)
|
|
977
|
+
};
|
|
978
|
+
case "DecisionRecevabiliteBureau_Type":
|
|
979
|
+
return n = r.decision.libelle, {
|
|
980
|
+
currentStatus: p(n),
|
|
981
|
+
label: g(n)
|
|
982
|
+
};
|
|
983
|
+
case "DeclarationGouvernement_Type":
|
|
984
|
+
return n = r.typeDeclaration.libelle, {
|
|
985
|
+
currentStatus: p(n),
|
|
986
|
+
label: g(n)
|
|
987
|
+
};
|
|
988
|
+
case "DepotMotionCensure_Type":
|
|
989
|
+
return n = r.typeMotionCensure.libelle, {
|
|
990
|
+
currentStatus: p(n),
|
|
991
|
+
label: g(n)
|
|
992
|
+
};
|
|
993
|
+
case "DepotRapport_Type":
|
|
994
|
+
return [
|
|
995
|
+
"DossierCommissionEnquete_Type",
|
|
996
|
+
"DossierMissionControle_Type",
|
|
997
|
+
"DossierMissionInformation_Type"
|
|
998
|
+
].includes(e.xsiType) ? {
|
|
999
|
+
currentStatus: t[0].organe.codeType,
|
|
1000
|
+
finalStatus: "SUCCESS",
|
|
1001
|
+
label: "rapport déposé"
|
|
1002
|
+
} : null;
|
|
1003
|
+
case "MotionProcedure_Type":
|
|
1004
|
+
return n = r.typeMotion.libelle, {
|
|
1005
|
+
currentStatus: p(n),
|
|
1006
|
+
label: g(n)
|
|
1007
|
+
};
|
|
1008
|
+
case "Promulgation_Type":
|
|
1009
|
+
return {
|
|
1010
|
+
currentStatus: "SUCCESS",
|
|
1011
|
+
finalStatus: "SUCCESS",
|
|
1012
|
+
label: "promulgué"
|
|
1013
|
+
};
|
|
1014
|
+
case "RetraitInitiative_Type":
|
|
1015
|
+
return {
|
|
1016
|
+
currentStatus: "FAILURE",
|
|
1017
|
+
finalStatus: "FAILURE",
|
|
1018
|
+
label: "retiré"
|
|
1019
|
+
};
|
|
1020
|
+
case "SaisineConseilConstit_Type":
|
|
1021
|
+
return n = r.casSaisine.libelle, {
|
|
1022
|
+
currentStatus: p(n),
|
|
1023
|
+
label: g(n)
|
|
1024
|
+
};
|
|
1025
|
+
default:
|
|
1026
|
+
return null;
|
|
185
1027
|
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
1028
|
+
}
|
|
1029
|
+
function $(e, t, r) {
|
|
1030
|
+
if (r !== void 0)
|
|
1031
|
+
for (const n of [...r].reverse()) {
|
|
1032
|
+
const i = n.actesLegislatifs ? $(e, [...t, n], n.actesLegislatifs) : Ue(e, [...t, n]);
|
|
1033
|
+
if (i !== null)
|
|
1034
|
+
return i;
|
|
1035
|
+
}
|
|
1036
|
+
return null;
|
|
1037
|
+
}
|
|
1038
|
+
function it(e) {
|
|
1039
|
+
const t = $(e, [], e.actesLegislatifs);
|
|
1040
|
+
return t !== null ? t : {
|
|
1041
|
+
currentStatus: "IN_PROGRESS",
|
|
1042
|
+
label: "en cours"
|
|
1043
|
+
};
|
|
1044
|
+
}
|
|
1045
|
+
function* W(e) {
|
|
1046
|
+
for (const t of e)
|
|
1047
|
+
yield t, t.actesLegislatifs !== void 0 && (yield* W(t.actesLegislatifs));
|
|
1048
|
+
}
|
|
1049
|
+
function* ke(e) {
|
|
1050
|
+
yield e;
|
|
1051
|
+
for (const t of e.divisions ?? [])
|
|
1052
|
+
yield* ke(t);
|
|
1053
|
+
}
|
|
1054
|
+
function j(e, t, r) {
|
|
1055
|
+
if (!r.has(e.uid)) {
|
|
1056
|
+
if (r.add(e.uid), t.documentByUid !== void 0 && e.depotInitialLectureDefinitiveRef !== void 0) {
|
|
1057
|
+
const n = t.documentByUid[e.depotInitialLectureDefinitiveRef];
|
|
1058
|
+
n !== void 0 && (e.depotInitialLectureDefinitive = n, v(n, t, r));
|
|
1059
|
+
}
|
|
1060
|
+
if (t.organeByUid !== void 0 && e.organeRef !== void 0) {
|
|
1061
|
+
const n = t.organeByUid[e.organeRef];
|
|
1062
|
+
n !== void 0 && (e.organe = n, m(n, t, r));
|
|
1063
|
+
}
|
|
1064
|
+
if (t.organeByUid !== void 0 && e.provenanceRef !== void 0) {
|
|
1065
|
+
const n = t.organeByUid[e.provenanceRef];
|
|
1066
|
+
n !== void 0 && (e.provenance = n, m(n, t, r));
|
|
1067
|
+
}
|
|
1068
|
+
if (t.acteurByUid !== void 0 && e.rapporteurs !== void 0)
|
|
1069
|
+
for (const n of e.rapporteurs) {
|
|
1070
|
+
const i = t.acteurByUid[n.acteurRef];
|
|
1071
|
+
i !== void 0 && (n.acteur = i, h(i, t, r));
|
|
1072
|
+
}
|
|
1073
|
+
if (t.reunionByUid !== void 0 && e.reunionRef !== void 0) {
|
|
1074
|
+
const n = t.reunionByUid[e.reunionRef];
|
|
1075
|
+
if (n !== void 0 && (e.reunion = n, Ye(n, t, r), e.odjRef !== void 0)) {
|
|
1076
|
+
const i = n.odj;
|
|
1077
|
+
if (i !== void 0 && i.pointsOdj !== void 0) {
|
|
1078
|
+
for (const o of i.pointsOdj)
|
|
1079
|
+
if (o.uid === e.odjRef) {
|
|
1080
|
+
e.odj = o;
|
|
1081
|
+
break;
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
if (t.documentByUid !== void 0 && e.texteAdopteRef !== void 0) {
|
|
1087
|
+
const n = t.documentByUid[e.texteAdopteRef];
|
|
1088
|
+
n !== void 0 && (e.texteAdopte = n, v(n, t, r));
|
|
1089
|
+
}
|
|
1090
|
+
if (t.documentByUid !== void 0 && e.texteAssocieRef !== void 0) {
|
|
1091
|
+
const n = t.documentByUid[e.texteAssocieRef];
|
|
1092
|
+
n !== void 0 && (e.texteAssocie = n, v(n, t, r));
|
|
1093
|
+
}
|
|
1094
|
+
if (t.documentByUid !== void 0 && e.textesAssocies !== void 0)
|
|
1095
|
+
for (const n of e.textesAssocies) {
|
|
1096
|
+
const i = t.documentByUid[n.texteAssocieRef];
|
|
1097
|
+
i !== void 0 && (n.texteAssocie = i, v(i, t, r));
|
|
1098
|
+
}
|
|
1099
|
+
if (t.scrutinByUid !== void 0 && e.voteRefs !== void 0) {
|
|
1100
|
+
const n = [];
|
|
1101
|
+
for (const i of e.voteRefs) {
|
|
1102
|
+
const o = t.scrutinByUid[i];
|
|
1103
|
+
o !== void 0 && (n.push(o), qe(o, t, r));
|
|
1104
|
+
}
|
|
1105
|
+
e.votes = n;
|
|
1106
|
+
}
|
|
1107
|
+
for (const n of e.actesLegislatifs || [])
|
|
1108
|
+
j(n, t, r);
|
|
191
1109
|
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
1110
|
+
return e;
|
|
1111
|
+
}
|
|
1112
|
+
function h(e, t, r) {
|
|
1113
|
+
if (!r.has(e.uid) && (r.add(e.uid), t.organeByUid !== void 0))
|
|
1114
|
+
for (const n of e.mandats || []) {
|
|
1115
|
+
const i = [];
|
|
1116
|
+
for (const o of n.organesRefs) {
|
|
1117
|
+
const a = t.organeByUid[o];
|
|
1118
|
+
a !== void 0 && (i.push(a), m(a, t, r));
|
|
1119
|
+
}
|
|
1120
|
+
n.organes = i;
|
|
1121
|
+
}
|
|
1122
|
+
return e;
|
|
1123
|
+
}
|
|
1124
|
+
function ot(e, t, r) {
|
|
1125
|
+
if (!r.has(e.uid)) {
|
|
1126
|
+
r.add(e.uid);
|
|
1127
|
+
const n = e.signataires, i = n.auteur;
|
|
1128
|
+
if (t.acteurByUid !== void 0 && i.acteurRef !== void 0) {
|
|
1129
|
+
const o = t.acteurByUid[i.acteurRef];
|
|
1130
|
+
o !== void 0 && (i.acteur = o, h(o, t, r));
|
|
1131
|
+
}
|
|
1132
|
+
if (t.organeByUid !== void 0 && i.auteurRapporteurOrganeRef !== void 0) {
|
|
1133
|
+
const o = t.organeByUid[i.auteurRapporteurOrganeRef];
|
|
1134
|
+
o !== void 0 && (i.auteurRapporteurOrgane = o, m(o, t, r));
|
|
1135
|
+
}
|
|
1136
|
+
if (t.organeByUid !== void 0 && i.gouvernementRef !== void 0) {
|
|
1137
|
+
const o = t.organeByUid[i.gouvernementRef];
|
|
1138
|
+
o !== void 0 && (i.gouvernement = o, m(o, t, r));
|
|
1139
|
+
}
|
|
1140
|
+
if (t.organeByUid !== void 0 && i.groupePolitiqueRef !== void 0) {
|
|
1141
|
+
const o = t.organeByUid[i.groupePolitiqueRef];
|
|
1142
|
+
o !== void 0 && (i.groupePolitique = o, m(o, t, r));
|
|
1143
|
+
}
|
|
1144
|
+
if (t.acteurByUid !== void 0 && n.cosignatairesRefs !== void 0) {
|
|
1145
|
+
const a = [];
|
|
1146
|
+
for (const u of n.cosignatairesRefs || []) {
|
|
1147
|
+
const c = t.acteurByUid[u];
|
|
1148
|
+
c !== void 0 && (a.push(c), h(c, t, r));
|
|
1149
|
+
}
|
|
1150
|
+
n.cosignataires = a;
|
|
1151
|
+
}
|
|
197
1152
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
1153
|
+
return e;
|
|
1154
|
+
}
|
|
1155
|
+
function H(e, t, r) {
|
|
1156
|
+
for (const n of e.auteurs) {
|
|
1157
|
+
const i = n.acteur;
|
|
1158
|
+
if (t.acteurByUid !== void 0 && i !== void 0) {
|
|
1159
|
+
const o = t.acteurByUid[i.acteurRef];
|
|
1160
|
+
o !== void 0 && (i.acteur = o, h(o, t, r));
|
|
1161
|
+
}
|
|
1162
|
+
if (t.organeByUid !== void 0 && n.organeRef !== void 0) {
|
|
1163
|
+
const o = t.organeByUid[n.organeRef];
|
|
1164
|
+
o !== void 0 && (n.organe = o, m(o, t, r));
|
|
1165
|
+
}
|
|
203
1166
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
get: function get() {
|
|
208
|
-
return _inserters.insertAmendementReferences;
|
|
1167
|
+
if (t.dossierByUid !== void 0) {
|
|
1168
|
+
const n = t.dossierByUid[e.dossierRef];
|
|
1169
|
+
n !== void 0 && (e.dossier = n, G(n, t, r));
|
|
209
1170
|
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
1171
|
+
for (const n of e.divisions || [])
|
|
1172
|
+
H(n, t, r);
|
|
1173
|
+
return e;
|
|
1174
|
+
}
|
|
1175
|
+
function v(e, t, r) {
|
|
1176
|
+
if (!r.has(e.uid)) {
|
|
1177
|
+
r.add(e.uid);
|
|
1178
|
+
for (const n of e.auteurs) {
|
|
1179
|
+
const i = n.acteur;
|
|
1180
|
+
if (t.acteurByUid !== void 0 && i !== void 0) {
|
|
1181
|
+
const o = t.acteurByUid[i.acteurRef];
|
|
1182
|
+
o !== void 0 && (i.acteur = o, h(o, t, r));
|
|
1183
|
+
}
|
|
1184
|
+
if (t.organeByUid !== void 0 && n.organeRef !== void 0) {
|
|
1185
|
+
const o = t.organeByUid[n.organeRef];
|
|
1186
|
+
o !== void 0 && (n.organe = o, m(o, t, r));
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
if (t.dossierByUid !== void 0) {
|
|
1190
|
+
const n = t.dossierByUid[e.dossierRef];
|
|
1191
|
+
n !== void 0 && (e.dossier = n, G(n, t, r));
|
|
1192
|
+
}
|
|
1193
|
+
for (const n of e.divisions || [])
|
|
1194
|
+
H(n, t, r);
|
|
215
1195
|
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
1196
|
+
return e;
|
|
1197
|
+
}
|
|
1198
|
+
function G(e, t, r) {
|
|
1199
|
+
if (!r.has(e.uid)) {
|
|
1200
|
+
r.add(e.uid);
|
|
1201
|
+
for (const i of e.actesLegislatifs ?? [])
|
|
1202
|
+
j(i, t, r);
|
|
1203
|
+
const n = e.initiateur;
|
|
1204
|
+
if (n !== void 0) {
|
|
1205
|
+
if (t.acteurByUid !== void 0)
|
|
1206
|
+
for (const i of n.acteurs || []) {
|
|
1207
|
+
const o = t.acteurByUid[i.acteurRef];
|
|
1208
|
+
if (o !== void 0 && (i.acteur = o, h(o, t, r)), o !== void 0 && i.mandatRef !== void 0) {
|
|
1209
|
+
for (const a of o.mandats || [])
|
|
1210
|
+
if (a.uid === i.mandatRef) {
|
|
1211
|
+
i.mandat = a;
|
|
1212
|
+
break;
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
if (t.organeByUid !== void 0 && n.organeRef !== void 0) {
|
|
1217
|
+
const i = t.organeByUid[n.organeRef];
|
|
1218
|
+
i !== void 0 && (n.organe = i, m(i, t, r));
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
221
1221
|
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
1222
|
+
return e;
|
|
1223
|
+
}
|
|
1224
|
+
function m(e, t, r) {
|
|
1225
|
+
if (!r.has(e.uid)) {
|
|
1226
|
+
if (r.add(e.uid), t.organeByUid !== void 0 && e.organeParentRef !== void 0) {
|
|
1227
|
+
const n = t.organeByUid[e.organeParentRef];
|
|
1228
|
+
n !== void 0 && (e.organeParent = n, m(n, t, r));
|
|
1229
|
+
}
|
|
1230
|
+
if (t.organeByUid !== void 0 && e.organePrecedentRef !== void 0) {
|
|
1231
|
+
const n = t.organeByUid[e.organePrecedentRef];
|
|
1232
|
+
n !== void 0 && (e.organePrecedent = n, m(n, t, r));
|
|
1233
|
+
}
|
|
227
1234
|
}
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
1235
|
+
return e;
|
|
1236
|
+
}
|
|
1237
|
+
function Ye(e, t, r) {
|
|
1238
|
+
if (!r.has(e.uid)) {
|
|
1239
|
+
r.add(e.uid);
|
|
1240
|
+
const n = e.demandeurs;
|
|
1241
|
+
if (n !== void 0) {
|
|
1242
|
+
if (t.acteurByUid !== void 0)
|
|
1243
|
+
for (const i of n.acteurs || []) {
|
|
1244
|
+
const o = t.acteurByUid[i.acteurRef];
|
|
1245
|
+
o !== void 0 && (i.acteur = o, h(o, t, r));
|
|
1246
|
+
}
|
|
1247
|
+
if (t.organeByUid !== void 0) {
|
|
1248
|
+
const i = n.organe;
|
|
1249
|
+
if (i !== void 0) {
|
|
1250
|
+
const o = t.organeByUid[i.organeRef];
|
|
1251
|
+
o !== void 0 && (i.organe = o, m(o, t, r));
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
if (t.organeByUid !== void 0 && e.organeReuniRef !== void 0) {
|
|
1256
|
+
const i = t.organeByUid[e.organeReuniRef];
|
|
1257
|
+
i !== void 0 && (e.organeReuni = i, m(i, t, r));
|
|
1258
|
+
}
|
|
1259
|
+
if (t.acteurByUid !== void 0) {
|
|
1260
|
+
const i = e.participants;
|
|
1261
|
+
if (i !== void 0)
|
|
1262
|
+
for (const o of i.participantsInternes || []) {
|
|
1263
|
+
const a = t.acteurByUid[o.acteurRef];
|
|
1264
|
+
a !== void 0 && (o.acteur = a, h(a, t, r));
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
233
1267
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
1268
|
+
return e;
|
|
1269
|
+
}
|
|
1270
|
+
function qe(e, t, r) {
|
|
1271
|
+
return r.has(e.uid) || r.add(e.uid), e;
|
|
1272
|
+
}
|
|
1273
|
+
function at(e) {
|
|
1274
|
+
if (e == null)
|
|
1275
|
+
return "Organe inconnu";
|
|
1276
|
+
switch (e.codeType) {
|
|
1277
|
+
case O.Cmp:
|
|
1278
|
+
return "Commission mixte paritaire";
|
|
1279
|
+
case O.Gouvernement:
|
|
1280
|
+
return e.libelle;
|
|
1281
|
+
default:
|
|
1282
|
+
return e.libelleAbrege;
|
|
239
1283
|
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
1284
|
+
}
|
|
1285
|
+
var Fe = /* @__PURE__ */ ((e) => (e.Html = "html", e.Pdf = "pdf", e.RawHtml = "raw-html", e))(Fe || {});
|
|
1286
|
+
const $e = {
|
|
1287
|
+
ACIN: {
|
|
1288
|
+
directory: "projets",
|
|
1289
|
+
prefix: "pl",
|
|
1290
|
+
suffix: "-ai"
|
|
1291
|
+
},
|
|
1292
|
+
AVCEPRJLOI: {
|
|
1293
|
+
directory: "projets",
|
|
1294
|
+
prefix: "pl",
|
|
1295
|
+
suffix: "-ace"
|
|
1296
|
+
},
|
|
1297
|
+
AVCELETTRE: {
|
|
1298
|
+
directory: "projets",
|
|
1299
|
+
prefix: "pl",
|
|
1300
|
+
suffix: "-ace"
|
|
1301
|
+
},
|
|
1302
|
+
AVCEPIONLOI: {
|
|
1303
|
+
directory: "propositions",
|
|
1304
|
+
prefix: "pion",
|
|
1305
|
+
suffix: "-ace"
|
|
1306
|
+
},
|
|
1307
|
+
AVIS: {
|
|
1308
|
+
directory: "rapports",
|
|
1309
|
+
prefix: "r",
|
|
1310
|
+
suffix: ""
|
|
1311
|
+
},
|
|
1312
|
+
ETDI: {
|
|
1313
|
+
directory: "projets",
|
|
1314
|
+
prefix: "pl",
|
|
1315
|
+
suffix: "-ei"
|
|
1316
|
+
},
|
|
1317
|
+
LETT: {
|
|
1318
|
+
directory: "projets",
|
|
1319
|
+
prefix: "pl",
|
|
1320
|
+
suffix: "-l"
|
|
1321
|
+
},
|
|
1322
|
+
PION: {
|
|
1323
|
+
directory: "propositions",
|
|
1324
|
+
prefix: "pion",
|
|
1325
|
+
suffix: ""
|
|
1326
|
+
},
|
|
1327
|
+
PNRE: {
|
|
1328
|
+
directory: "propositions",
|
|
1329
|
+
prefix: "pion",
|
|
1330
|
+
suffix: ""
|
|
1331
|
+
},
|
|
1332
|
+
PNREAPPART341: {
|
|
1333
|
+
directory: "propositions",
|
|
1334
|
+
prefix: "pion",
|
|
1335
|
+
suffix: ""
|
|
1336
|
+
},
|
|
1337
|
+
PNRECOMENQ: {
|
|
1338
|
+
directory: "propositions",
|
|
1339
|
+
prefix: "pion",
|
|
1340
|
+
suffix: ""
|
|
1341
|
+
},
|
|
1342
|
+
PNREMODREGLTAN: {
|
|
1343
|
+
directory: "propositions",
|
|
1344
|
+
prefix: "pion",
|
|
1345
|
+
suffix: ""
|
|
1346
|
+
},
|
|
1347
|
+
PNRETVXINSTITEUROP: {
|
|
1348
|
+
directory: "europe/resolutions",
|
|
1349
|
+
prefix: "ppe",
|
|
1350
|
+
suffix: ""
|
|
1351
|
+
},
|
|
1352
|
+
PRJL: {
|
|
1353
|
+
directory: "projets",
|
|
1354
|
+
prefix: "pl",
|
|
1355
|
+
suffix: ""
|
|
1356
|
+
},
|
|
1357
|
+
RAPP: {
|
|
1358
|
+
directory: "rapports",
|
|
1359
|
+
prefix: "r",
|
|
1360
|
+
suffix: ""
|
|
1361
|
+
},
|
|
1362
|
+
RINF: {
|
|
1363
|
+
directory: "rap-info",
|
|
1364
|
+
prefix: "i",
|
|
1365
|
+
suffix: ""
|
|
1366
|
+
},
|
|
1367
|
+
RION: {
|
|
1368
|
+
directory: "",
|
|
1369
|
+
prefix: "",
|
|
1370
|
+
suffix: ""
|
|
1371
|
+
},
|
|
1372
|
+
TADO: {
|
|
1373
|
+
directory: "ta",
|
|
1374
|
+
prefix: "ta",
|
|
1375
|
+
suffix: ""
|
|
1376
|
+
},
|
|
1377
|
+
TCOM: {
|
|
1378
|
+
directory: "ta-commission",
|
|
1379
|
+
prefix: "r",
|
|
1380
|
+
suffix: "-a0"
|
|
1381
|
+
},
|
|
1382
|
+
TCOMCOMENQ: {
|
|
1383
|
+
directory: "ta-commission",
|
|
1384
|
+
prefix: "r",
|
|
1385
|
+
suffix: "-a0"
|
|
1386
|
+
},
|
|
1387
|
+
TCOMMODREGLTAN: {
|
|
1388
|
+
directory: "ta-commission",
|
|
1389
|
+
prefix: "r",
|
|
1390
|
+
suffix: "-a0"
|
|
1391
|
+
},
|
|
1392
|
+
TCOMTVXINSTITEUROP: {
|
|
1393
|
+
directory: "ta-commission",
|
|
1394
|
+
prefix: "r",
|
|
1395
|
+
suffix: "-a0"
|
|
245
1396
|
}
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
1397
|
+
};
|
|
1398
|
+
function We(e) {
|
|
1399
|
+
switch (e) {
|
|
1400
|
+
case "html":
|
|
1401
|
+
return ".asp";
|
|
1402
|
+
case "pdf":
|
|
1403
|
+
return ".pdf";
|
|
1404
|
+
case "raw-html":
|
|
1405
|
+
return ".asp";
|
|
251
1406
|
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
1407
|
+
}
|
|
1408
|
+
function* st(e, t = void 0) {
|
|
1409
|
+
if (t === void 0 || t === "raw-html") {
|
|
1410
|
+
yield {
|
|
1411
|
+
format: "raw-html",
|
|
1412
|
+
type: "dyn-opendata",
|
|
1413
|
+
url: `https://www.assemblee-nationale.fr/dyn/opendata/${e.uid}.html`
|
|
1414
|
+
}, yield {
|
|
1415
|
+
format: "raw-html",
|
|
1416
|
+
type: "dyn-docs",
|
|
1417
|
+
url: `https://www.assemblee-nationale.fr/dyn/docs/${e.uid}.raw`
|
|
1418
|
+
};
|
|
1419
|
+
const r = T(
|
|
1420
|
+
e,
|
|
1421
|
+
"raw-html"
|
|
1422
|
+
/* RawHtml */
|
|
1423
|
+
);
|
|
1424
|
+
r !== null && (yield {
|
|
1425
|
+
format: "raw-html",
|
|
1426
|
+
type: r.directory.replaceAll("/", "-"),
|
|
1427
|
+
url: r.url
|
|
1428
|
+
});
|
|
257
1429
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
1430
|
+
if (t === void 0 || t === "html") {
|
|
1431
|
+
const r = T(
|
|
1432
|
+
e,
|
|
1433
|
+
"html"
|
|
1434
|
+
/* Html */
|
|
1435
|
+
);
|
|
1436
|
+
r !== null && (yield {
|
|
1437
|
+
format: "html",
|
|
1438
|
+
type: r.directory.replaceAll("/", "-"),
|
|
1439
|
+
url: r.url
|
|
1440
|
+
});
|
|
263
1441
|
}
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
enumerable: true,
|
|
285
|
-
get: function get() {
|
|
286
|
-
return _dossiers_legislatifs.stateFromDossier;
|
|
287
|
-
}
|
|
288
|
-
});
|
|
289
|
-
Object.defineProperty(exports, "statusFromCodierLibelle", {
|
|
290
|
-
enumerable: true,
|
|
291
|
-
get: function get() {
|
|
292
|
-
return _dossiers_legislatifs.statusFromCodierLibelle;
|
|
293
|
-
}
|
|
294
|
-
});
|
|
295
|
-
Object.defineProperty(exports, "uncapitalizeFirstLetter", {
|
|
296
|
-
enumerable: true,
|
|
297
|
-
get: function get() {
|
|
298
|
-
return _strings.uncapitalizeFirstLetter;
|
|
299
|
-
}
|
|
300
|
-
});
|
|
301
|
-
Object.defineProperty(exports, "urlFromDocument", {
|
|
302
|
-
enumerable: true,
|
|
303
|
-
get: function get() {
|
|
304
|
-
return _urls.urlFromDocument;
|
|
305
|
-
}
|
|
306
|
-
});
|
|
307
|
-
Object.defineProperty(exports, "urlFromScrutin", {
|
|
308
|
-
enumerable: true,
|
|
309
|
-
get: function get() {
|
|
310
|
-
return _urls.urlFromScrutin;
|
|
1442
|
+
if (t === void 0 || t === "pdf") {
|
|
1443
|
+
yield {
|
|
1444
|
+
format: "raw-html",
|
|
1445
|
+
type: "dyn-opendata",
|
|
1446
|
+
url: `https://www.assemblee-nationale.fr/dyn/opendata/${e.uid}.html`
|
|
1447
|
+
}, yield {
|
|
1448
|
+
format: "pdf",
|
|
1449
|
+
type: "dyn-docs",
|
|
1450
|
+
url: `https://www.assemblee-nationale.fr/dyn/docs/${e.uid}.pdf`
|
|
1451
|
+
};
|
|
1452
|
+
const r = T(
|
|
1453
|
+
e,
|
|
1454
|
+
"pdf"
|
|
1455
|
+
/* Pdf */
|
|
1456
|
+
);
|
|
1457
|
+
r !== null && (yield {
|
|
1458
|
+
format: "pdf",
|
|
1459
|
+
type: r.directory.replaceAll("/", "-"),
|
|
1460
|
+
url: r.url
|
|
1461
|
+
});
|
|
311
1462
|
}
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
})
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
1463
|
+
}
|
|
1464
|
+
function ct(e, t) {
|
|
1465
|
+
const r = T(e, t);
|
|
1466
|
+
return r === null ? null : r.url;
|
|
1467
|
+
}
|
|
1468
|
+
function ut(e) {
|
|
1469
|
+
const t = /^VTANR([0-9]+)L([0-9]+)V([0-9]+)$/.exec(e.uid);
|
|
1470
|
+
if (t === null)
|
|
1471
|
+
return console.log(
|
|
1472
|
+
`Unable to generate URL from scrutin with unexpected UID: "${e.uid}"`
|
|
1473
|
+
), null;
|
|
1474
|
+
const r = t[2], n = t[3];
|
|
1475
|
+
return `http://www2.assemblee-nationale.fr/scrutins/detail/(legislature)/${r}/(num)/${n}`;
|
|
1476
|
+
}
|
|
1477
|
+
function T(e, t) {
|
|
1478
|
+
const r = We(t), n = /^(.{4})([ANS]*)(R[0-9])([LS]*)([0-9]*)([BTACP]*)(.*)$/.exec(
|
|
1479
|
+
e.uid
|
|
1480
|
+
);
|
|
1481
|
+
if (n === null)
|
|
1482
|
+
return console.log(
|
|
1483
|
+
`Unable to generate URL from document or division with unexpected UID: "${e.uid}"`
|
|
1484
|
+
), null;
|
|
1485
|
+
if (n[2] === "SN")
|
|
1486
|
+
return console.log(
|
|
1487
|
+
`Unable to generate URL for document or division in Sénat. UID: "${e.uid}"`
|
|
1488
|
+
), null;
|
|
1489
|
+
const o = n[5];
|
|
1490
|
+
let a = n[7];
|
|
1491
|
+
if (t === "raw-html")
|
|
1492
|
+
return {
|
|
1493
|
+
directory: "textes",
|
|
1494
|
+
url: `https://www.assemblee-nationale.fr/${o}/textes/${a}${r}`
|
|
1495
|
+
};
|
|
1496
|
+
let u = {
|
|
1497
|
+
BTC: "TCOM",
|
|
1498
|
+
BTA: "TADO",
|
|
1499
|
+
TAP: "TADO"
|
|
1500
|
+
}[n[6]] || n[1];
|
|
1501
|
+
e.classification !== void 0 && e.classification.sousType !== void 0 && e.classification.sousType.code === "COMPA" && (a = a.replace(/-COMPA/, "-aCOMPA")), u == "AVCE" && (u = `AVCE${e.classification.famille?.classe.code}`);
|
|
1502
|
+
const c = $e[u];
|
|
1503
|
+
if (c === void 0)
|
|
1504
|
+
return console.log(
|
|
1505
|
+
`Unable to generate URL from document or division of UID "${e.uid}" and type "${u}"`
|
|
1506
|
+
), null;
|
|
1507
|
+
const f = t === "pdf" ? `pdf/${c.directory}` : c.directory;
|
|
1508
|
+
return {
|
|
1509
|
+
directory: f,
|
|
1510
|
+
url: `https://www.assemblee-nationale.fr/${o}/${f}/${c.prefix}${a}${c.suffix}${r}`
|
|
1511
|
+
};
|
|
1512
|
+
}
|
|
1513
|
+
export {
|
|
1514
|
+
bt as AmendementsConvert,
|
|
1515
|
+
vt as AvantAApres,
|
|
1516
|
+
lt as CodeActe,
|
|
1517
|
+
O as CodeTypeOrgane,
|
|
1518
|
+
Fe as DocumentUrlFormat,
|
|
1519
|
+
Tt as EtatAmendementLibelle,
|
|
1520
|
+
mt as EtatCycleDeVie,
|
|
1521
|
+
Y as Facet,
|
|
1522
|
+
q as Follow,
|
|
1523
|
+
gt as Legislature,
|
|
1524
|
+
St as SortAmendement,
|
|
1525
|
+
Pe as StatusOnly,
|
|
1526
|
+
pt as TypeActeLegislatif,
|
|
1527
|
+
At as TypeAuteur,
|
|
1528
|
+
yt as TypeDocument,
|
|
1529
|
+
ht as TypeMandat,
|
|
1530
|
+
Rt as TypeOrgane,
|
|
1531
|
+
xt as TypeReunion,
|
|
1532
|
+
Ge as allFacets,
|
|
1533
|
+
Qe as allFollows,
|
|
1534
|
+
nt as capitalizeFirstLetter,
|
|
1535
|
+
rt as commissionFondUidFromDossier,
|
|
1536
|
+
Ve as dateFromNullableDateOrIsoString,
|
|
1537
|
+
ze as dateFromYearMonthDayTimezoneString,
|
|
1538
|
+
Ze as displayDateFromLocalIsoString,
|
|
1539
|
+
Le as existingDateToJson,
|
|
1540
|
+
Je as formatRelativeFrenchTime,
|
|
1541
|
+
Xe as frenchDateFormat,
|
|
1542
|
+
Ne as frenchDateSameYearShortFormat,
|
|
1543
|
+
Ke as frenchDateWithoutDayOfWeekFromDateOrString,
|
|
1544
|
+
Be as frenchTimeFormat,
|
|
1545
|
+
et as frenchTimeFromDateOrString,
|
|
1546
|
+
h as insertActeurReferences,
|
|
1547
|
+
ot as insertAmendementReferences,
|
|
1548
|
+
v as insertDocumentReferences,
|
|
1549
|
+
G as insertDossierReferences,
|
|
1550
|
+
m as insertOrganeReferences,
|
|
1551
|
+
Ye as insertReunionReferences,
|
|
1552
|
+
qe as insertScrutinReferences,
|
|
1553
|
+
st as iterDocumentOrDivisionUrls,
|
|
1554
|
+
tt as localIso8601StringFromDate,
|
|
1555
|
+
Ie as patchedDateToJson,
|
|
1556
|
+
wt as pathFromDocumentUid,
|
|
1557
|
+
at as shortNameFromOrgane,
|
|
1558
|
+
Ue as stateFromActePath,
|
|
1559
|
+
$ as stateFromActes,
|
|
1560
|
+
it as stateFromDossier,
|
|
1561
|
+
p as statusFromCodierLibelle,
|
|
1562
|
+
g as uncapitalizeFirstLetter,
|
|
1563
|
+
ct as urlFromDocument,
|
|
1564
|
+
ut as urlFromScrutin,
|
|
1565
|
+
W as walkActes,
|
|
1566
|
+
ke as walkDocumentAndDivisions
|
|
1567
|
+
};
|