@tricoteuses/assemblee 3.0.17 → 3.1.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/lib/amendements-DrQ9BA7A.js +3715 -0
- package/lib/amendements-uxFcHcO5.js +152 -0
- package/lib/cleaners/actes_legislatifs.d.ts +2 -2
- package/lib/cleaners/acteurs.d.ts +7 -2
- package/lib/cleaners/amendements.d.ts +2 -2
- package/lib/cleaners/documents.d.ts +1 -1
- package/lib/cleaners/dossiers_legislatifs.d.ts +1 -1
- package/lib/cleaners/organes.d.ts +1 -1
- package/lib/cleaners/reunions.d.ts +13 -1
- package/lib/cleaners/scrutins.d.ts +10 -2
- package/lib/cleaners.js +584 -562
- package/lib/git.js +142 -124
- package/lib/index.js +555 -753
- package/lib/inserters.d.ts +22 -2
- package/lib/loaders-BtLzIUCT.js +1348 -0
- package/lib/loaders.js +4 -2149
- package/lib/logger.d.ts +1 -1
- package/lib/parsers.js +8388 -10324
- package/lib/questions-CxGnKVDB.js +1578 -0
- package/lib/registries.d.ts +4 -4
- package/lib/schemas/clean/acteurs_et_organes.d.ts +37 -37
- package/lib/schemas/clean/amendements.d.ts +38 -25
- package/lib/schemas/clean/dossiers_legislatifs.d.ts +16 -16
- package/lib/schemas/clean/scrutins.d.ts +2 -2
- package/lib/schemas/enriched/acteurs_et_organes.d.ts +2 -2
- package/lib/schemas/enriched/amendements.d.ts +135 -15
- package/lib/schemas/enriched/dossiers_legislatifs.d.ts +12 -12
- package/lib/schemas/enriched/scrutins.d.ts +2 -2
- package/lib/schemas/raw/acteurs_et_organes.d.ts +99 -99
- package/lib/schemas/raw/agendas.d.ts +11 -11
- package/lib/schemas/raw/amendements.d.ts +49 -37
- package/lib/schemas/raw/dossiers_legislatifs.d.ts +146 -63
- package/lib/schemas/raw/questions.d.ts +44 -44
- package/lib/schemas/raw/scrutins.d.ts +4 -4
- package/lib/scripts/retrieve_documents.d.ts +5 -2
- package/package.json +26 -26
- package/lib/amendements-BKGwufEi.js +0 -170
- package/lib/amendements-Bab1iUCY.js +0 -4133
- package/lib/questions-C3qN4PsC.js +0 -230
- package/lib/questions-DgERya4J.js +0 -2809
|
@@ -0,0 +1,3715 @@
|
|
|
1
|
+
import { z as e } from "zod";
|
|
2
|
+
//#region node_modules/date-fns/locale/en-US/_lib/formatDistance.js
|
|
3
|
+
var t = {
|
|
4
|
+
lessThanXSeconds: {
|
|
5
|
+
one: "less than a second",
|
|
6
|
+
other: "less than {{count}} seconds"
|
|
7
|
+
},
|
|
8
|
+
xSeconds: {
|
|
9
|
+
one: "1 second",
|
|
10
|
+
other: "{{count}} seconds"
|
|
11
|
+
},
|
|
12
|
+
halfAMinute: "half a minute",
|
|
13
|
+
lessThanXMinutes: {
|
|
14
|
+
one: "less than a minute",
|
|
15
|
+
other: "less than {{count}} minutes"
|
|
16
|
+
},
|
|
17
|
+
xMinutes: {
|
|
18
|
+
one: "1 minute",
|
|
19
|
+
other: "{{count}} minutes"
|
|
20
|
+
},
|
|
21
|
+
aboutXHours: {
|
|
22
|
+
one: "about 1 hour",
|
|
23
|
+
other: "about {{count}} hours"
|
|
24
|
+
},
|
|
25
|
+
xHours: {
|
|
26
|
+
one: "1 hour",
|
|
27
|
+
other: "{{count}} hours"
|
|
28
|
+
},
|
|
29
|
+
xDays: {
|
|
30
|
+
one: "1 day",
|
|
31
|
+
other: "{{count}} days"
|
|
32
|
+
},
|
|
33
|
+
aboutXWeeks: {
|
|
34
|
+
one: "about 1 week",
|
|
35
|
+
other: "about {{count}} weeks"
|
|
36
|
+
},
|
|
37
|
+
xWeeks: {
|
|
38
|
+
one: "1 week",
|
|
39
|
+
other: "{{count}} weeks"
|
|
40
|
+
},
|
|
41
|
+
aboutXMonths: {
|
|
42
|
+
one: "about 1 month",
|
|
43
|
+
other: "about {{count}} months"
|
|
44
|
+
},
|
|
45
|
+
xMonths: {
|
|
46
|
+
one: "1 month",
|
|
47
|
+
other: "{{count}} months"
|
|
48
|
+
},
|
|
49
|
+
aboutXYears: {
|
|
50
|
+
one: "about 1 year",
|
|
51
|
+
other: "about {{count}} years"
|
|
52
|
+
},
|
|
53
|
+
xYears: {
|
|
54
|
+
one: "1 year",
|
|
55
|
+
other: "{{count}} years"
|
|
56
|
+
},
|
|
57
|
+
overXYears: {
|
|
58
|
+
one: "over 1 year",
|
|
59
|
+
other: "over {{count}} years"
|
|
60
|
+
},
|
|
61
|
+
almostXYears: {
|
|
62
|
+
one: "almost 1 year",
|
|
63
|
+
other: "almost {{count}} years"
|
|
64
|
+
}
|
|
65
|
+
}, n = (e, n, r) => {
|
|
66
|
+
let i, a = t[e];
|
|
67
|
+
return i = typeof a == "string" ? a : n === 1 ? a.one : a.other.replace("{{count}}", n.toString()), r?.addSuffix ? r.comparison && r.comparison > 0 ? "in " + i : i + " ago" : i;
|
|
68
|
+
};
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
71
|
+
function r(e) {
|
|
72
|
+
return (t = {}) => {
|
|
73
|
+
let n = t.width ? String(t.width) : e.defaultWidth;
|
|
74
|
+
return e.formats[n] || e.formats[e.defaultWidth];
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
var i = {
|
|
78
|
+
date: r({
|
|
79
|
+
formats: {
|
|
80
|
+
full: "EEEE, MMMM do, y",
|
|
81
|
+
long: "MMMM do, y",
|
|
82
|
+
medium: "MMM d, y",
|
|
83
|
+
short: "MM/dd/yyyy"
|
|
84
|
+
},
|
|
85
|
+
defaultWidth: "full"
|
|
86
|
+
}),
|
|
87
|
+
time: r({
|
|
88
|
+
formats: {
|
|
89
|
+
full: "h:mm:ss a zzzz",
|
|
90
|
+
long: "h:mm:ss a z",
|
|
91
|
+
medium: "h:mm:ss a",
|
|
92
|
+
short: "h:mm a"
|
|
93
|
+
},
|
|
94
|
+
defaultWidth: "full"
|
|
95
|
+
}),
|
|
96
|
+
dateTime: r({
|
|
97
|
+
formats: {
|
|
98
|
+
full: "{{date}} 'at' {{time}}",
|
|
99
|
+
long: "{{date}} 'at' {{time}}",
|
|
100
|
+
medium: "{{date}}, {{time}}",
|
|
101
|
+
short: "{{date}}, {{time}}"
|
|
102
|
+
},
|
|
103
|
+
defaultWidth: "full"
|
|
104
|
+
})
|
|
105
|
+
}, a = {
|
|
106
|
+
lastWeek: "'last' eeee 'at' p",
|
|
107
|
+
yesterday: "'yesterday at' p",
|
|
108
|
+
today: "'today at' p",
|
|
109
|
+
tomorrow: "'tomorrow at' p",
|
|
110
|
+
nextWeek: "eeee 'at' p",
|
|
111
|
+
other: "P"
|
|
112
|
+
}, o = (e, t, n, r) => a[e];
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
115
|
+
function s(e) {
|
|
116
|
+
return (t, n) => {
|
|
117
|
+
let r = n?.context ? String(n.context) : "standalone", i;
|
|
118
|
+
if (r === "formatting" && e.formattingValues) {
|
|
119
|
+
let t = e.defaultFormattingWidth || e.defaultWidth, r = n?.width ? String(n.width) : t;
|
|
120
|
+
i = e.formattingValues[r] || e.formattingValues[t];
|
|
121
|
+
} else {
|
|
122
|
+
let t = e.defaultWidth, r = n?.width ? String(n.width) : e.defaultWidth;
|
|
123
|
+
i = e.values[r] || e.values[t];
|
|
124
|
+
}
|
|
125
|
+
let a = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
126
|
+
return i[a];
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
var c = {
|
|
130
|
+
ordinalNumber: (e, t) => {
|
|
131
|
+
let n = Number(e), r = n % 100;
|
|
132
|
+
if (r > 20 || r < 10) switch (r % 10) {
|
|
133
|
+
case 1: return n + "st";
|
|
134
|
+
case 2: return n + "nd";
|
|
135
|
+
case 3: return n + "rd";
|
|
136
|
+
}
|
|
137
|
+
return n + "th";
|
|
138
|
+
},
|
|
139
|
+
era: s({
|
|
140
|
+
values: {
|
|
141
|
+
narrow: ["B", "A"],
|
|
142
|
+
abbreviated: ["BC", "AD"],
|
|
143
|
+
wide: ["Before Christ", "Anno Domini"]
|
|
144
|
+
},
|
|
145
|
+
defaultWidth: "wide"
|
|
146
|
+
}),
|
|
147
|
+
quarter: s({
|
|
148
|
+
values: {
|
|
149
|
+
narrow: [
|
|
150
|
+
"1",
|
|
151
|
+
"2",
|
|
152
|
+
"3",
|
|
153
|
+
"4"
|
|
154
|
+
],
|
|
155
|
+
abbreviated: [
|
|
156
|
+
"Q1",
|
|
157
|
+
"Q2",
|
|
158
|
+
"Q3",
|
|
159
|
+
"Q4"
|
|
160
|
+
],
|
|
161
|
+
wide: [
|
|
162
|
+
"1st quarter",
|
|
163
|
+
"2nd quarter",
|
|
164
|
+
"3rd quarter",
|
|
165
|
+
"4th quarter"
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
defaultWidth: "wide",
|
|
169
|
+
argumentCallback: (e) => e - 1
|
|
170
|
+
}),
|
|
171
|
+
month: s({
|
|
172
|
+
values: {
|
|
173
|
+
narrow: [
|
|
174
|
+
"J",
|
|
175
|
+
"F",
|
|
176
|
+
"M",
|
|
177
|
+
"A",
|
|
178
|
+
"M",
|
|
179
|
+
"J",
|
|
180
|
+
"J",
|
|
181
|
+
"A",
|
|
182
|
+
"S",
|
|
183
|
+
"O",
|
|
184
|
+
"N",
|
|
185
|
+
"D"
|
|
186
|
+
],
|
|
187
|
+
abbreviated: [
|
|
188
|
+
"Jan",
|
|
189
|
+
"Feb",
|
|
190
|
+
"Mar",
|
|
191
|
+
"Apr",
|
|
192
|
+
"May",
|
|
193
|
+
"Jun",
|
|
194
|
+
"Jul",
|
|
195
|
+
"Aug",
|
|
196
|
+
"Sep",
|
|
197
|
+
"Oct",
|
|
198
|
+
"Nov",
|
|
199
|
+
"Dec"
|
|
200
|
+
],
|
|
201
|
+
wide: [
|
|
202
|
+
"January",
|
|
203
|
+
"February",
|
|
204
|
+
"March",
|
|
205
|
+
"April",
|
|
206
|
+
"May",
|
|
207
|
+
"June",
|
|
208
|
+
"July",
|
|
209
|
+
"August",
|
|
210
|
+
"September",
|
|
211
|
+
"October",
|
|
212
|
+
"November",
|
|
213
|
+
"December"
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
defaultWidth: "wide"
|
|
217
|
+
}),
|
|
218
|
+
day: s({
|
|
219
|
+
values: {
|
|
220
|
+
narrow: [
|
|
221
|
+
"S",
|
|
222
|
+
"M",
|
|
223
|
+
"T",
|
|
224
|
+
"W",
|
|
225
|
+
"T",
|
|
226
|
+
"F",
|
|
227
|
+
"S"
|
|
228
|
+
],
|
|
229
|
+
short: [
|
|
230
|
+
"Su",
|
|
231
|
+
"Mo",
|
|
232
|
+
"Tu",
|
|
233
|
+
"We",
|
|
234
|
+
"Th",
|
|
235
|
+
"Fr",
|
|
236
|
+
"Sa"
|
|
237
|
+
],
|
|
238
|
+
abbreviated: [
|
|
239
|
+
"Sun",
|
|
240
|
+
"Mon",
|
|
241
|
+
"Tue",
|
|
242
|
+
"Wed",
|
|
243
|
+
"Thu",
|
|
244
|
+
"Fri",
|
|
245
|
+
"Sat"
|
|
246
|
+
],
|
|
247
|
+
wide: [
|
|
248
|
+
"Sunday",
|
|
249
|
+
"Monday",
|
|
250
|
+
"Tuesday",
|
|
251
|
+
"Wednesday",
|
|
252
|
+
"Thursday",
|
|
253
|
+
"Friday",
|
|
254
|
+
"Saturday"
|
|
255
|
+
]
|
|
256
|
+
},
|
|
257
|
+
defaultWidth: "wide"
|
|
258
|
+
}),
|
|
259
|
+
dayPeriod: s({
|
|
260
|
+
values: {
|
|
261
|
+
narrow: {
|
|
262
|
+
am: "a",
|
|
263
|
+
pm: "p",
|
|
264
|
+
midnight: "mi",
|
|
265
|
+
noon: "n",
|
|
266
|
+
morning: "morning",
|
|
267
|
+
afternoon: "afternoon",
|
|
268
|
+
evening: "evening",
|
|
269
|
+
night: "night"
|
|
270
|
+
},
|
|
271
|
+
abbreviated: {
|
|
272
|
+
am: "AM",
|
|
273
|
+
pm: "PM",
|
|
274
|
+
midnight: "midnight",
|
|
275
|
+
noon: "noon",
|
|
276
|
+
morning: "morning",
|
|
277
|
+
afternoon: "afternoon",
|
|
278
|
+
evening: "evening",
|
|
279
|
+
night: "night"
|
|
280
|
+
},
|
|
281
|
+
wide: {
|
|
282
|
+
am: "a.m.",
|
|
283
|
+
pm: "p.m.",
|
|
284
|
+
midnight: "midnight",
|
|
285
|
+
noon: "noon",
|
|
286
|
+
morning: "morning",
|
|
287
|
+
afternoon: "afternoon",
|
|
288
|
+
evening: "evening",
|
|
289
|
+
night: "night"
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
defaultWidth: "wide",
|
|
293
|
+
formattingValues: {
|
|
294
|
+
narrow: {
|
|
295
|
+
am: "a",
|
|
296
|
+
pm: "p",
|
|
297
|
+
midnight: "mi",
|
|
298
|
+
noon: "n",
|
|
299
|
+
morning: "in the morning",
|
|
300
|
+
afternoon: "in the afternoon",
|
|
301
|
+
evening: "in the evening",
|
|
302
|
+
night: "at night"
|
|
303
|
+
},
|
|
304
|
+
abbreviated: {
|
|
305
|
+
am: "AM",
|
|
306
|
+
pm: "PM",
|
|
307
|
+
midnight: "midnight",
|
|
308
|
+
noon: "noon",
|
|
309
|
+
morning: "in the morning",
|
|
310
|
+
afternoon: "in the afternoon",
|
|
311
|
+
evening: "in the evening",
|
|
312
|
+
night: "at night"
|
|
313
|
+
},
|
|
314
|
+
wide: {
|
|
315
|
+
am: "a.m.",
|
|
316
|
+
pm: "p.m.",
|
|
317
|
+
midnight: "midnight",
|
|
318
|
+
noon: "noon",
|
|
319
|
+
morning: "in the morning",
|
|
320
|
+
afternoon: "in the afternoon",
|
|
321
|
+
evening: "in the evening",
|
|
322
|
+
night: "at night"
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
defaultFormattingWidth: "wide"
|
|
326
|
+
})
|
|
327
|
+
};
|
|
328
|
+
//#endregion
|
|
329
|
+
//#region node_modules/date-fns/locale/_lib/buildMatchFn.js
|
|
330
|
+
function l(e) {
|
|
331
|
+
return (t, n = {}) => {
|
|
332
|
+
let r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
|
|
333
|
+
if (!a) return null;
|
|
334
|
+
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? ee(s, (e) => e.test(o)) : u(s, (e) => e.test(o)), l;
|
|
335
|
+
l = e.valueCallback ? e.valueCallback(c) : c, l = n.valueCallback ? n.valueCallback(l) : l;
|
|
336
|
+
let d = t.slice(o.length);
|
|
337
|
+
return {
|
|
338
|
+
value: l,
|
|
339
|
+
rest: d
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
function u(e, t) {
|
|
344
|
+
for (let n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
|
|
345
|
+
}
|
|
346
|
+
function ee(e, t) {
|
|
347
|
+
for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
|
|
348
|
+
}
|
|
349
|
+
//#endregion
|
|
350
|
+
//#region node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
351
|
+
function d(e) {
|
|
352
|
+
return (t, n = {}) => {
|
|
353
|
+
let r = t.match(e.matchPattern);
|
|
354
|
+
if (!r) return null;
|
|
355
|
+
let i = r[0], a = t.match(e.parsePattern);
|
|
356
|
+
if (!a) return null;
|
|
357
|
+
let o = e.valueCallback ? e.valueCallback(a[0]) : a[0];
|
|
358
|
+
o = n.valueCallback ? n.valueCallback(o) : o;
|
|
359
|
+
let s = t.slice(i.length);
|
|
360
|
+
return {
|
|
361
|
+
value: o,
|
|
362
|
+
rest: s
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
//#endregion
|
|
367
|
+
//#region node_modules/date-fns/locale/en-US.js
|
|
368
|
+
var te = {
|
|
369
|
+
code: "en-US",
|
|
370
|
+
formatDistance: n,
|
|
371
|
+
formatLong: i,
|
|
372
|
+
formatRelative: o,
|
|
373
|
+
localize: c,
|
|
374
|
+
match: {
|
|
375
|
+
ordinalNumber: d({
|
|
376
|
+
matchPattern: /^(\d+)(th|st|nd|rd)?/i,
|
|
377
|
+
parsePattern: /\d+/i,
|
|
378
|
+
valueCallback: (e) => parseInt(e, 10)
|
|
379
|
+
}),
|
|
380
|
+
era: l({
|
|
381
|
+
matchPatterns: {
|
|
382
|
+
narrow: /^(b|a)/i,
|
|
383
|
+
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
384
|
+
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
385
|
+
},
|
|
386
|
+
defaultMatchWidth: "wide",
|
|
387
|
+
parsePatterns: { any: [/^b/i, /^(a|c)/i] },
|
|
388
|
+
defaultParseWidth: "any"
|
|
389
|
+
}),
|
|
390
|
+
quarter: l({
|
|
391
|
+
matchPatterns: {
|
|
392
|
+
narrow: /^[1234]/i,
|
|
393
|
+
abbreviated: /^q[1234]/i,
|
|
394
|
+
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
395
|
+
},
|
|
396
|
+
defaultMatchWidth: "wide",
|
|
397
|
+
parsePatterns: { any: [
|
|
398
|
+
/1/i,
|
|
399
|
+
/2/i,
|
|
400
|
+
/3/i,
|
|
401
|
+
/4/i
|
|
402
|
+
] },
|
|
403
|
+
defaultParseWidth: "any",
|
|
404
|
+
valueCallback: (e) => e + 1
|
|
405
|
+
}),
|
|
406
|
+
month: l({
|
|
407
|
+
matchPatterns: {
|
|
408
|
+
narrow: /^[jfmasond]/i,
|
|
409
|
+
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
410
|
+
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
411
|
+
},
|
|
412
|
+
defaultMatchWidth: "wide",
|
|
413
|
+
parsePatterns: {
|
|
414
|
+
narrow: [
|
|
415
|
+
/^j/i,
|
|
416
|
+
/^f/i,
|
|
417
|
+
/^m/i,
|
|
418
|
+
/^a/i,
|
|
419
|
+
/^m/i,
|
|
420
|
+
/^j/i,
|
|
421
|
+
/^j/i,
|
|
422
|
+
/^a/i,
|
|
423
|
+
/^s/i,
|
|
424
|
+
/^o/i,
|
|
425
|
+
/^n/i,
|
|
426
|
+
/^d/i
|
|
427
|
+
],
|
|
428
|
+
any: [
|
|
429
|
+
/^ja/i,
|
|
430
|
+
/^f/i,
|
|
431
|
+
/^mar/i,
|
|
432
|
+
/^ap/i,
|
|
433
|
+
/^may/i,
|
|
434
|
+
/^jun/i,
|
|
435
|
+
/^jul/i,
|
|
436
|
+
/^au/i,
|
|
437
|
+
/^s/i,
|
|
438
|
+
/^o/i,
|
|
439
|
+
/^n/i,
|
|
440
|
+
/^d/i
|
|
441
|
+
]
|
|
442
|
+
},
|
|
443
|
+
defaultParseWidth: "any"
|
|
444
|
+
}),
|
|
445
|
+
day: l({
|
|
446
|
+
matchPatterns: {
|
|
447
|
+
narrow: /^[smtwf]/i,
|
|
448
|
+
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
449
|
+
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
450
|
+
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
451
|
+
},
|
|
452
|
+
defaultMatchWidth: "wide",
|
|
453
|
+
parsePatterns: {
|
|
454
|
+
narrow: [
|
|
455
|
+
/^s/i,
|
|
456
|
+
/^m/i,
|
|
457
|
+
/^t/i,
|
|
458
|
+
/^w/i,
|
|
459
|
+
/^t/i,
|
|
460
|
+
/^f/i,
|
|
461
|
+
/^s/i
|
|
462
|
+
],
|
|
463
|
+
any: [
|
|
464
|
+
/^su/i,
|
|
465
|
+
/^m/i,
|
|
466
|
+
/^tu/i,
|
|
467
|
+
/^w/i,
|
|
468
|
+
/^th/i,
|
|
469
|
+
/^f/i,
|
|
470
|
+
/^sa/i
|
|
471
|
+
]
|
|
472
|
+
},
|
|
473
|
+
defaultParseWidth: "any"
|
|
474
|
+
}),
|
|
475
|
+
dayPeriod: l({
|
|
476
|
+
matchPatterns: {
|
|
477
|
+
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
478
|
+
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
479
|
+
},
|
|
480
|
+
defaultMatchWidth: "any",
|
|
481
|
+
parsePatterns: { any: {
|
|
482
|
+
am: /^a/i,
|
|
483
|
+
pm: /^p/i,
|
|
484
|
+
midnight: /^mi/i,
|
|
485
|
+
noon: /^no/i,
|
|
486
|
+
morning: /morning/i,
|
|
487
|
+
afternoon: /afternoon/i,
|
|
488
|
+
evening: /evening/i,
|
|
489
|
+
night: /night/i
|
|
490
|
+
} },
|
|
491
|
+
defaultParseWidth: "any"
|
|
492
|
+
})
|
|
493
|
+
},
|
|
494
|
+
options: {
|
|
495
|
+
weekStartsOn: 0,
|
|
496
|
+
firstWeekContainsDate: 1
|
|
497
|
+
}
|
|
498
|
+
}, ne = {};
|
|
499
|
+
function f() {
|
|
500
|
+
return ne;
|
|
501
|
+
}
|
|
502
|
+
//#endregion
|
|
503
|
+
//#region node_modules/date-fns/constants.js
|
|
504
|
+
var p = 365.2425, re = 6048e5, ie = 864e5, m = 6e4, h = 36e5, ae = 1e3, oe = 3600 * 24;
|
|
505
|
+
oe * 7, oe * p / 12 * 3;
|
|
506
|
+
var se = Symbol.for("constructDateFrom");
|
|
507
|
+
//#endregion
|
|
508
|
+
//#region node_modules/date-fns/constructFrom.js
|
|
509
|
+
function g(e, t) {
|
|
510
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && se in e ? e[se](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
511
|
+
}
|
|
512
|
+
//#endregion
|
|
513
|
+
//#region node_modules/date-fns/toDate.js
|
|
514
|
+
function _(e, t) {
|
|
515
|
+
return g(t || e, e);
|
|
516
|
+
}
|
|
517
|
+
//#endregion
|
|
518
|
+
//#region node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
|
|
519
|
+
function v(e) {
|
|
520
|
+
let t = _(e), n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
|
|
521
|
+
return n.setUTCFullYear(t.getFullYear()), e - +n;
|
|
522
|
+
}
|
|
523
|
+
//#endregion
|
|
524
|
+
//#region node_modules/date-fns/_lib/normalizeDates.js
|
|
525
|
+
function ce(e, ...t) {
|
|
526
|
+
let n = g.bind(null, e || t.find((e) => typeof e == "object"));
|
|
527
|
+
return t.map(n);
|
|
528
|
+
}
|
|
529
|
+
//#endregion
|
|
530
|
+
//#region node_modules/date-fns/startOfDay.js
|
|
531
|
+
function le(e, t) {
|
|
532
|
+
let n = _(e, t?.in);
|
|
533
|
+
return n.setHours(0, 0, 0, 0), n;
|
|
534
|
+
}
|
|
535
|
+
//#endregion
|
|
536
|
+
//#region node_modules/date-fns/differenceInCalendarDays.js
|
|
537
|
+
function ue(e, t, n) {
|
|
538
|
+
let [r, i] = ce(n?.in, e, t), a = le(r), o = le(i), s = +a - v(a), c = +o - v(o);
|
|
539
|
+
return Math.round((s - c) / ie);
|
|
540
|
+
}
|
|
541
|
+
//#endregion
|
|
542
|
+
//#region node_modules/date-fns/startOfYear.js
|
|
543
|
+
function de(e, t) {
|
|
544
|
+
let n = _(e, t?.in);
|
|
545
|
+
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
546
|
+
}
|
|
547
|
+
//#endregion
|
|
548
|
+
//#region node_modules/date-fns/getDayOfYear.js
|
|
549
|
+
function fe(e, t) {
|
|
550
|
+
let n = _(e, t?.in);
|
|
551
|
+
return ue(n, de(n)) + 1;
|
|
552
|
+
}
|
|
553
|
+
//#endregion
|
|
554
|
+
//#region node_modules/date-fns/startOfWeek.js
|
|
555
|
+
function y(e, t) {
|
|
556
|
+
let n = f(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = _(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
|
|
557
|
+
return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
|
|
558
|
+
}
|
|
559
|
+
//#endregion
|
|
560
|
+
//#region node_modules/date-fns/startOfISOWeek.js
|
|
561
|
+
function b(e, t) {
|
|
562
|
+
return y(e, {
|
|
563
|
+
...t,
|
|
564
|
+
weekStartsOn: 1
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
//#endregion
|
|
568
|
+
//#region node_modules/date-fns/getISOWeekYear.js
|
|
569
|
+
function pe(e, t) {
|
|
570
|
+
let n = _(e, t?.in), r = n.getFullYear(), i = g(n, 0);
|
|
571
|
+
i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
572
|
+
let a = b(i), o = g(n, 0);
|
|
573
|
+
o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0);
|
|
574
|
+
let s = b(o);
|
|
575
|
+
return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= s.getTime() ? r : r - 1;
|
|
576
|
+
}
|
|
577
|
+
//#endregion
|
|
578
|
+
//#region node_modules/date-fns/startOfISOWeekYear.js
|
|
579
|
+
function me(e, t) {
|
|
580
|
+
let n = pe(e, t), r = g(t?.in || e, 0);
|
|
581
|
+
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), b(r);
|
|
582
|
+
}
|
|
583
|
+
//#endregion
|
|
584
|
+
//#region node_modules/date-fns/getISOWeek.js
|
|
585
|
+
function he(e, t) {
|
|
586
|
+
let n = _(e, t?.in), r = b(n) - +me(n);
|
|
587
|
+
return Math.round(r / re) + 1;
|
|
588
|
+
}
|
|
589
|
+
//#endregion
|
|
590
|
+
//#region node_modules/date-fns/getWeekYear.js
|
|
591
|
+
function x(e, t) {
|
|
592
|
+
let n = _(e, t?.in), r = n.getFullYear(), i = f(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = g(t?.in || e, 0);
|
|
593
|
+
o.setFullYear(r + 1, 0, a), o.setHours(0, 0, 0, 0);
|
|
594
|
+
let s = y(o, t), c = g(t?.in || e, 0);
|
|
595
|
+
c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
|
|
596
|
+
let l = y(c, t);
|
|
597
|
+
return +n >= +s ? r + 1 : +n >= +l ? r : r - 1;
|
|
598
|
+
}
|
|
599
|
+
//#endregion
|
|
600
|
+
//#region node_modules/date-fns/startOfWeekYear.js
|
|
601
|
+
function ge(e, t) {
|
|
602
|
+
let n = f(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = x(e, t), a = g(t?.in || e, 0);
|
|
603
|
+
return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), y(a, t);
|
|
604
|
+
}
|
|
605
|
+
//#endregion
|
|
606
|
+
//#region node_modules/date-fns/getWeek.js
|
|
607
|
+
function _e(e, t) {
|
|
608
|
+
let n = _(e, t?.in), r = y(n, t) - +ge(n, t);
|
|
609
|
+
return Math.round(r / re) + 1;
|
|
610
|
+
}
|
|
611
|
+
//#endregion
|
|
612
|
+
//#region node_modules/date-fns/_lib/addLeadingZeros.js
|
|
613
|
+
function S(e, t) {
|
|
614
|
+
return (e < 0 ? "-" : "") + Math.abs(e).toString().padStart(t, "0");
|
|
615
|
+
}
|
|
616
|
+
//#endregion
|
|
617
|
+
//#region node_modules/date-fns/_lib/format/lightFormatters.js
|
|
618
|
+
var C = {
|
|
619
|
+
y(e, t) {
|
|
620
|
+
let n = e.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
621
|
+
return S(t === "yy" ? r % 100 : r, t.length);
|
|
622
|
+
},
|
|
623
|
+
M(e, t) {
|
|
624
|
+
let n = e.getMonth();
|
|
625
|
+
return t === "M" ? String(n + 1) : S(n + 1, 2);
|
|
626
|
+
},
|
|
627
|
+
d(e, t) {
|
|
628
|
+
return S(e.getDate(), t.length);
|
|
629
|
+
},
|
|
630
|
+
a(e, t) {
|
|
631
|
+
let n = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
632
|
+
switch (t) {
|
|
633
|
+
case "a":
|
|
634
|
+
case "aa": return n.toUpperCase();
|
|
635
|
+
case "aaa": return n;
|
|
636
|
+
case "aaaaa": return n[0];
|
|
637
|
+
default: return n === "am" ? "a.m." : "p.m.";
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
h(e, t) {
|
|
641
|
+
return S(e.getHours() % 12 || 12, t.length);
|
|
642
|
+
},
|
|
643
|
+
H(e, t) {
|
|
644
|
+
return S(e.getHours(), t.length);
|
|
645
|
+
},
|
|
646
|
+
m(e, t) {
|
|
647
|
+
return S(e.getMinutes(), t.length);
|
|
648
|
+
},
|
|
649
|
+
s(e, t) {
|
|
650
|
+
return S(e.getSeconds(), t.length);
|
|
651
|
+
},
|
|
652
|
+
S(e, t) {
|
|
653
|
+
let n = t.length, r = e.getMilliseconds();
|
|
654
|
+
return S(Math.trunc(r * 10 ** (n - 3)), t.length);
|
|
655
|
+
}
|
|
656
|
+
}, w = {
|
|
657
|
+
am: "am",
|
|
658
|
+
pm: "pm",
|
|
659
|
+
midnight: "midnight",
|
|
660
|
+
noon: "noon",
|
|
661
|
+
morning: "morning",
|
|
662
|
+
afternoon: "afternoon",
|
|
663
|
+
evening: "evening",
|
|
664
|
+
night: "night"
|
|
665
|
+
}, ve = {
|
|
666
|
+
G: function(e, t, n) {
|
|
667
|
+
let r = e.getFullYear() > 0 ? 1 : 0;
|
|
668
|
+
switch (t) {
|
|
669
|
+
case "G":
|
|
670
|
+
case "GG":
|
|
671
|
+
case "GGG": return n.era(r, { width: "abbreviated" });
|
|
672
|
+
case "GGGGG": return n.era(r, { width: "narrow" });
|
|
673
|
+
default: return n.era(r, { width: "wide" });
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
y: function(e, t, n) {
|
|
677
|
+
if (t === "yo") {
|
|
678
|
+
let t = e.getFullYear(), r = t > 0 ? t : 1 - t;
|
|
679
|
+
return n.ordinalNumber(r, { unit: "year" });
|
|
680
|
+
}
|
|
681
|
+
return C.y(e, t);
|
|
682
|
+
},
|
|
683
|
+
Y: function(e, t, n, r) {
|
|
684
|
+
let i = x(e, r), a = i > 0 ? i : 1 - i;
|
|
685
|
+
return t === "YY" ? S(a % 100, 2) : t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : S(a, t.length);
|
|
686
|
+
},
|
|
687
|
+
R: function(e, t) {
|
|
688
|
+
return S(pe(e), t.length);
|
|
689
|
+
},
|
|
690
|
+
u: function(e, t) {
|
|
691
|
+
return S(e.getFullYear(), t.length);
|
|
692
|
+
},
|
|
693
|
+
Q: function(e, t, n) {
|
|
694
|
+
let r = Math.ceil((e.getMonth() + 1) / 3);
|
|
695
|
+
switch (t) {
|
|
696
|
+
case "Q": return String(r);
|
|
697
|
+
case "QQ": return S(r, 2);
|
|
698
|
+
case "Qo": return n.ordinalNumber(r, { unit: "quarter" });
|
|
699
|
+
case "QQQ": return n.quarter(r, {
|
|
700
|
+
width: "abbreviated",
|
|
701
|
+
context: "formatting"
|
|
702
|
+
});
|
|
703
|
+
case "QQQQQ": return n.quarter(r, {
|
|
704
|
+
width: "narrow",
|
|
705
|
+
context: "formatting"
|
|
706
|
+
});
|
|
707
|
+
default: return n.quarter(r, {
|
|
708
|
+
width: "wide",
|
|
709
|
+
context: "formatting"
|
|
710
|
+
});
|
|
711
|
+
}
|
|
712
|
+
},
|
|
713
|
+
q: function(e, t, n) {
|
|
714
|
+
let r = Math.ceil((e.getMonth() + 1) / 3);
|
|
715
|
+
switch (t) {
|
|
716
|
+
case "q": return String(r);
|
|
717
|
+
case "qq": return S(r, 2);
|
|
718
|
+
case "qo": return n.ordinalNumber(r, { unit: "quarter" });
|
|
719
|
+
case "qqq": return n.quarter(r, {
|
|
720
|
+
width: "abbreviated",
|
|
721
|
+
context: "standalone"
|
|
722
|
+
});
|
|
723
|
+
case "qqqqq": return n.quarter(r, {
|
|
724
|
+
width: "narrow",
|
|
725
|
+
context: "standalone"
|
|
726
|
+
});
|
|
727
|
+
default: return n.quarter(r, {
|
|
728
|
+
width: "wide",
|
|
729
|
+
context: "standalone"
|
|
730
|
+
});
|
|
731
|
+
}
|
|
732
|
+
},
|
|
733
|
+
M: function(e, t, n) {
|
|
734
|
+
let r = e.getMonth();
|
|
735
|
+
switch (t) {
|
|
736
|
+
case "M":
|
|
737
|
+
case "MM": return C.M(e, t);
|
|
738
|
+
case "Mo": return n.ordinalNumber(r + 1, { unit: "month" });
|
|
739
|
+
case "MMM": return n.month(r, {
|
|
740
|
+
width: "abbreviated",
|
|
741
|
+
context: "formatting"
|
|
742
|
+
});
|
|
743
|
+
case "MMMMM": return n.month(r, {
|
|
744
|
+
width: "narrow",
|
|
745
|
+
context: "formatting"
|
|
746
|
+
});
|
|
747
|
+
default: return n.month(r, {
|
|
748
|
+
width: "wide",
|
|
749
|
+
context: "formatting"
|
|
750
|
+
});
|
|
751
|
+
}
|
|
752
|
+
},
|
|
753
|
+
L: function(e, t, n) {
|
|
754
|
+
let r = e.getMonth();
|
|
755
|
+
switch (t) {
|
|
756
|
+
case "L": return String(r + 1);
|
|
757
|
+
case "LL": return S(r + 1, 2);
|
|
758
|
+
case "Lo": return n.ordinalNumber(r + 1, { unit: "month" });
|
|
759
|
+
case "LLL": return n.month(r, {
|
|
760
|
+
width: "abbreviated",
|
|
761
|
+
context: "standalone"
|
|
762
|
+
});
|
|
763
|
+
case "LLLLL": return n.month(r, {
|
|
764
|
+
width: "narrow",
|
|
765
|
+
context: "standalone"
|
|
766
|
+
});
|
|
767
|
+
default: return n.month(r, {
|
|
768
|
+
width: "wide",
|
|
769
|
+
context: "standalone"
|
|
770
|
+
});
|
|
771
|
+
}
|
|
772
|
+
},
|
|
773
|
+
w: function(e, t, n, r) {
|
|
774
|
+
let i = _e(e, r);
|
|
775
|
+
return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : S(i, t.length);
|
|
776
|
+
},
|
|
777
|
+
I: function(e, t, n) {
|
|
778
|
+
let r = he(e);
|
|
779
|
+
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : S(r, t.length);
|
|
780
|
+
},
|
|
781
|
+
d: function(e, t, n) {
|
|
782
|
+
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : C.d(e, t);
|
|
783
|
+
},
|
|
784
|
+
D: function(e, t, n) {
|
|
785
|
+
let r = fe(e);
|
|
786
|
+
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : S(r, t.length);
|
|
787
|
+
},
|
|
788
|
+
E: function(e, t, n) {
|
|
789
|
+
let r = e.getDay();
|
|
790
|
+
switch (t) {
|
|
791
|
+
case "E":
|
|
792
|
+
case "EE":
|
|
793
|
+
case "EEE": return n.day(r, {
|
|
794
|
+
width: "abbreviated",
|
|
795
|
+
context: "formatting"
|
|
796
|
+
});
|
|
797
|
+
case "EEEEE": return n.day(r, {
|
|
798
|
+
width: "narrow",
|
|
799
|
+
context: "formatting"
|
|
800
|
+
});
|
|
801
|
+
case "EEEEEE": return n.day(r, {
|
|
802
|
+
width: "short",
|
|
803
|
+
context: "formatting"
|
|
804
|
+
});
|
|
805
|
+
default: return n.day(r, {
|
|
806
|
+
width: "wide",
|
|
807
|
+
context: "formatting"
|
|
808
|
+
});
|
|
809
|
+
}
|
|
810
|
+
},
|
|
811
|
+
e: function(e, t, n, r) {
|
|
812
|
+
let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
813
|
+
switch (t) {
|
|
814
|
+
case "e": return String(a);
|
|
815
|
+
case "ee": return S(a, 2);
|
|
816
|
+
case "eo": return n.ordinalNumber(a, { unit: "day" });
|
|
817
|
+
case "eee": return n.day(i, {
|
|
818
|
+
width: "abbreviated",
|
|
819
|
+
context: "formatting"
|
|
820
|
+
});
|
|
821
|
+
case "eeeee": return n.day(i, {
|
|
822
|
+
width: "narrow",
|
|
823
|
+
context: "formatting"
|
|
824
|
+
});
|
|
825
|
+
case "eeeeee": return n.day(i, {
|
|
826
|
+
width: "short",
|
|
827
|
+
context: "formatting"
|
|
828
|
+
});
|
|
829
|
+
default: return n.day(i, {
|
|
830
|
+
width: "wide",
|
|
831
|
+
context: "formatting"
|
|
832
|
+
});
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
c: function(e, t, n, r) {
|
|
836
|
+
let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
837
|
+
switch (t) {
|
|
838
|
+
case "c": return String(a);
|
|
839
|
+
case "cc": return S(a, t.length);
|
|
840
|
+
case "co": return n.ordinalNumber(a, { unit: "day" });
|
|
841
|
+
case "ccc": return n.day(i, {
|
|
842
|
+
width: "abbreviated",
|
|
843
|
+
context: "standalone"
|
|
844
|
+
});
|
|
845
|
+
case "ccccc": return n.day(i, {
|
|
846
|
+
width: "narrow",
|
|
847
|
+
context: "standalone"
|
|
848
|
+
});
|
|
849
|
+
case "cccccc": return n.day(i, {
|
|
850
|
+
width: "short",
|
|
851
|
+
context: "standalone"
|
|
852
|
+
});
|
|
853
|
+
default: return n.day(i, {
|
|
854
|
+
width: "wide",
|
|
855
|
+
context: "standalone"
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
},
|
|
859
|
+
i: function(e, t, n) {
|
|
860
|
+
let r = e.getDay(), i = r === 0 ? 7 : r;
|
|
861
|
+
switch (t) {
|
|
862
|
+
case "i": return String(i);
|
|
863
|
+
case "ii": return S(i, t.length);
|
|
864
|
+
case "io": return n.ordinalNumber(i, { unit: "day" });
|
|
865
|
+
case "iii": return n.day(r, {
|
|
866
|
+
width: "abbreviated",
|
|
867
|
+
context: "formatting"
|
|
868
|
+
});
|
|
869
|
+
case "iiiii": return n.day(r, {
|
|
870
|
+
width: "narrow",
|
|
871
|
+
context: "formatting"
|
|
872
|
+
});
|
|
873
|
+
case "iiiiii": return n.day(r, {
|
|
874
|
+
width: "short",
|
|
875
|
+
context: "formatting"
|
|
876
|
+
});
|
|
877
|
+
default: return n.day(r, {
|
|
878
|
+
width: "wide",
|
|
879
|
+
context: "formatting"
|
|
880
|
+
});
|
|
881
|
+
}
|
|
882
|
+
},
|
|
883
|
+
a: function(e, t, n) {
|
|
884
|
+
let r = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
885
|
+
switch (t) {
|
|
886
|
+
case "a":
|
|
887
|
+
case "aa": return n.dayPeriod(r, {
|
|
888
|
+
width: "abbreviated",
|
|
889
|
+
context: "formatting"
|
|
890
|
+
});
|
|
891
|
+
case "aaa": return n.dayPeriod(r, {
|
|
892
|
+
width: "abbreviated",
|
|
893
|
+
context: "formatting"
|
|
894
|
+
}).toLowerCase();
|
|
895
|
+
case "aaaaa": return n.dayPeriod(r, {
|
|
896
|
+
width: "narrow",
|
|
897
|
+
context: "formatting"
|
|
898
|
+
});
|
|
899
|
+
default: return n.dayPeriod(r, {
|
|
900
|
+
width: "wide",
|
|
901
|
+
context: "formatting"
|
|
902
|
+
});
|
|
903
|
+
}
|
|
904
|
+
},
|
|
905
|
+
b: function(e, t, n) {
|
|
906
|
+
let r = e.getHours(), i;
|
|
907
|
+
switch (i = r === 12 ? w.noon : r === 0 ? w.midnight : r / 12 >= 1 ? "pm" : "am", t) {
|
|
908
|
+
case "b":
|
|
909
|
+
case "bb": return n.dayPeriod(i, {
|
|
910
|
+
width: "abbreviated",
|
|
911
|
+
context: "formatting"
|
|
912
|
+
});
|
|
913
|
+
case "bbb": return n.dayPeriod(i, {
|
|
914
|
+
width: "abbreviated",
|
|
915
|
+
context: "formatting"
|
|
916
|
+
}).toLowerCase();
|
|
917
|
+
case "bbbbb": return n.dayPeriod(i, {
|
|
918
|
+
width: "narrow",
|
|
919
|
+
context: "formatting"
|
|
920
|
+
});
|
|
921
|
+
default: return n.dayPeriod(i, {
|
|
922
|
+
width: "wide",
|
|
923
|
+
context: "formatting"
|
|
924
|
+
});
|
|
925
|
+
}
|
|
926
|
+
},
|
|
927
|
+
B: function(e, t, n) {
|
|
928
|
+
let r = e.getHours(), i;
|
|
929
|
+
switch (i = r >= 17 ? w.evening : r >= 12 ? w.afternoon : r >= 4 ? w.morning : w.night, t) {
|
|
930
|
+
case "B":
|
|
931
|
+
case "BB":
|
|
932
|
+
case "BBB": return n.dayPeriod(i, {
|
|
933
|
+
width: "abbreviated",
|
|
934
|
+
context: "formatting"
|
|
935
|
+
});
|
|
936
|
+
case "BBBBB": return n.dayPeriod(i, {
|
|
937
|
+
width: "narrow",
|
|
938
|
+
context: "formatting"
|
|
939
|
+
});
|
|
940
|
+
default: return n.dayPeriod(i, {
|
|
941
|
+
width: "wide",
|
|
942
|
+
context: "formatting"
|
|
943
|
+
});
|
|
944
|
+
}
|
|
945
|
+
},
|
|
946
|
+
h: function(e, t, n) {
|
|
947
|
+
if (t === "ho") {
|
|
948
|
+
let t = e.getHours() % 12;
|
|
949
|
+
return t === 0 && (t = 12), n.ordinalNumber(t, { unit: "hour" });
|
|
950
|
+
}
|
|
951
|
+
return C.h(e, t);
|
|
952
|
+
},
|
|
953
|
+
H: function(e, t, n) {
|
|
954
|
+
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : C.H(e, t);
|
|
955
|
+
},
|
|
956
|
+
K: function(e, t, n) {
|
|
957
|
+
let r = e.getHours() % 12;
|
|
958
|
+
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : S(r, t.length);
|
|
959
|
+
},
|
|
960
|
+
k: function(e, t, n) {
|
|
961
|
+
let r = e.getHours();
|
|
962
|
+
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : S(r, t.length);
|
|
963
|
+
},
|
|
964
|
+
m: function(e, t, n) {
|
|
965
|
+
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : C.m(e, t);
|
|
966
|
+
},
|
|
967
|
+
s: function(e, t, n) {
|
|
968
|
+
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : C.s(e, t);
|
|
969
|
+
},
|
|
970
|
+
S: function(e, t) {
|
|
971
|
+
return C.S(e, t);
|
|
972
|
+
},
|
|
973
|
+
X: function(e, t, n) {
|
|
974
|
+
let r = e.getTimezoneOffset();
|
|
975
|
+
if (r === 0) return "Z";
|
|
976
|
+
switch (t) {
|
|
977
|
+
case "X": return be(r);
|
|
978
|
+
case "XXXX":
|
|
979
|
+
case "XX": return T(r);
|
|
980
|
+
default: return T(r, ":");
|
|
981
|
+
}
|
|
982
|
+
},
|
|
983
|
+
x: function(e, t, n) {
|
|
984
|
+
let r = e.getTimezoneOffset();
|
|
985
|
+
switch (t) {
|
|
986
|
+
case "x": return be(r);
|
|
987
|
+
case "xxxx":
|
|
988
|
+
case "xx": return T(r);
|
|
989
|
+
default: return T(r, ":");
|
|
990
|
+
}
|
|
991
|
+
},
|
|
992
|
+
O: function(e, t, n) {
|
|
993
|
+
let r = e.getTimezoneOffset();
|
|
994
|
+
switch (t) {
|
|
995
|
+
case "O":
|
|
996
|
+
case "OO":
|
|
997
|
+
case "OOO": return "GMT" + ye(r, ":");
|
|
998
|
+
default: return "GMT" + T(r, ":");
|
|
999
|
+
}
|
|
1000
|
+
},
|
|
1001
|
+
z: function(e, t, n) {
|
|
1002
|
+
let r = e.getTimezoneOffset();
|
|
1003
|
+
switch (t) {
|
|
1004
|
+
case "z":
|
|
1005
|
+
case "zz":
|
|
1006
|
+
case "zzz": return "GMT" + ye(r, ":");
|
|
1007
|
+
default: return "GMT" + T(r, ":");
|
|
1008
|
+
}
|
|
1009
|
+
},
|
|
1010
|
+
t: function(e, t, n) {
|
|
1011
|
+
return S(Math.trunc(e / 1e3), t.length);
|
|
1012
|
+
},
|
|
1013
|
+
T: function(e, t, n) {
|
|
1014
|
+
return S(+e, t.length);
|
|
1015
|
+
}
|
|
1016
|
+
};
|
|
1017
|
+
function ye(e, t = "") {
|
|
1018
|
+
let n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60), a = r % 60;
|
|
1019
|
+
return a === 0 ? n + String(i) : n + String(i) + t + S(a, 2);
|
|
1020
|
+
}
|
|
1021
|
+
function be(e, t) {
|
|
1022
|
+
return e % 60 == 0 ? (e > 0 ? "-" : "+") + S(Math.abs(e) / 60, 2) : T(e, t);
|
|
1023
|
+
}
|
|
1024
|
+
function T(e, t = "") {
|
|
1025
|
+
let n = e > 0 ? "-" : "+", r = Math.abs(e), i = S(Math.trunc(r / 60), 2), a = S(r % 60, 2);
|
|
1026
|
+
return n + i + t + a;
|
|
1027
|
+
}
|
|
1028
|
+
//#endregion
|
|
1029
|
+
//#region node_modules/date-fns/_lib/format/longFormatters.js
|
|
1030
|
+
var xe = (e, t) => {
|
|
1031
|
+
switch (e) {
|
|
1032
|
+
case "P": return t.date({ width: "short" });
|
|
1033
|
+
case "PP": return t.date({ width: "medium" });
|
|
1034
|
+
case "PPP": return t.date({ width: "long" });
|
|
1035
|
+
default: return t.date({ width: "full" });
|
|
1036
|
+
}
|
|
1037
|
+
}, Se = (e, t) => {
|
|
1038
|
+
switch (e) {
|
|
1039
|
+
case "p": return t.time({ width: "short" });
|
|
1040
|
+
case "pp": return t.time({ width: "medium" });
|
|
1041
|
+
case "ppp": return t.time({ width: "long" });
|
|
1042
|
+
default: return t.time({ width: "full" });
|
|
1043
|
+
}
|
|
1044
|
+
}, E = {
|
|
1045
|
+
p: Se,
|
|
1046
|
+
P: (e, t) => {
|
|
1047
|
+
let n = e.match(/(P+)(p+)?/) || [], r = n[1], i = n[2];
|
|
1048
|
+
if (!i) return xe(e, t);
|
|
1049
|
+
let a;
|
|
1050
|
+
switch (r) {
|
|
1051
|
+
case "P":
|
|
1052
|
+
a = t.dateTime({ width: "short" });
|
|
1053
|
+
break;
|
|
1054
|
+
case "PP":
|
|
1055
|
+
a = t.dateTime({ width: "medium" });
|
|
1056
|
+
break;
|
|
1057
|
+
case "PPP":
|
|
1058
|
+
a = t.dateTime({ width: "long" });
|
|
1059
|
+
break;
|
|
1060
|
+
default:
|
|
1061
|
+
a = t.dateTime({ width: "full" });
|
|
1062
|
+
break;
|
|
1063
|
+
}
|
|
1064
|
+
return a.replace("{{date}}", xe(r, t)).replace("{{time}}", Se(i, t));
|
|
1065
|
+
}
|
|
1066
|
+
}, Ce = /^D+$/, we = /^Y+$/, Te = [
|
|
1067
|
+
"D",
|
|
1068
|
+
"DD",
|
|
1069
|
+
"YY",
|
|
1070
|
+
"YYYY"
|
|
1071
|
+
];
|
|
1072
|
+
function Ee(e) {
|
|
1073
|
+
return Ce.test(e);
|
|
1074
|
+
}
|
|
1075
|
+
function De(e) {
|
|
1076
|
+
return we.test(e);
|
|
1077
|
+
}
|
|
1078
|
+
function Oe(e, t, n) {
|
|
1079
|
+
let r = ke(e, t, n);
|
|
1080
|
+
if (console.warn(r), Te.includes(e)) throw RangeError(r);
|
|
1081
|
+
}
|
|
1082
|
+
function ke(e, t, n) {
|
|
1083
|
+
let r = e[0] === "Y" ? "years" : "days of the month";
|
|
1084
|
+
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1085
|
+
}
|
|
1086
|
+
//#endregion
|
|
1087
|
+
//#region node_modules/date-fns/isDate.js
|
|
1088
|
+
function Ae(e) {
|
|
1089
|
+
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
1090
|
+
}
|
|
1091
|
+
//#endregion
|
|
1092
|
+
//#region node_modules/date-fns/isValid.js
|
|
1093
|
+
function je(e) {
|
|
1094
|
+
return !(!Ae(e) && typeof e != "number" || isNaN(+_(e)));
|
|
1095
|
+
}
|
|
1096
|
+
//#endregion
|
|
1097
|
+
//#region node_modules/date-fns/format.js
|
|
1098
|
+
var Me = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ne = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Pe = /^'([^]*?)'?$/, Fe = /''/g, Ie = /[a-zA-Z]/;
|
|
1099
|
+
function D(e, t, n) {
|
|
1100
|
+
let r = f(), i = n?.locale ?? r.locale ?? te, a = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, s = _(e, n?.in);
|
|
1101
|
+
if (!je(s)) throw RangeError("Invalid time value");
|
|
1102
|
+
let c = t.match(Ne).map((e) => {
|
|
1103
|
+
let t = e[0];
|
|
1104
|
+
if (t === "p" || t === "P") {
|
|
1105
|
+
let n = E[t];
|
|
1106
|
+
return n(e, i.formatLong);
|
|
1107
|
+
}
|
|
1108
|
+
return e;
|
|
1109
|
+
}).join("").match(Me).map((e) => {
|
|
1110
|
+
if (e === "''") return {
|
|
1111
|
+
isToken: !1,
|
|
1112
|
+
value: "'"
|
|
1113
|
+
};
|
|
1114
|
+
let t = e[0];
|
|
1115
|
+
if (t === "'") return {
|
|
1116
|
+
isToken: !1,
|
|
1117
|
+
value: Le(e)
|
|
1118
|
+
};
|
|
1119
|
+
if (ve[t]) return {
|
|
1120
|
+
isToken: !0,
|
|
1121
|
+
value: e
|
|
1122
|
+
};
|
|
1123
|
+
if (t.match(Ie)) throw RangeError("Format string contains an unescaped latin alphabet character `" + t + "`");
|
|
1124
|
+
return {
|
|
1125
|
+
isToken: !1,
|
|
1126
|
+
value: e
|
|
1127
|
+
};
|
|
1128
|
+
});
|
|
1129
|
+
i.localize.preprocessor && (c = i.localize.preprocessor(s, c));
|
|
1130
|
+
let l = {
|
|
1131
|
+
firstWeekContainsDate: a,
|
|
1132
|
+
weekStartsOn: o,
|
|
1133
|
+
locale: i
|
|
1134
|
+
};
|
|
1135
|
+
return c.map((r) => {
|
|
1136
|
+
if (!r.isToken) return r.value;
|
|
1137
|
+
let a = r.value;
|
|
1138
|
+
(!n?.useAdditionalWeekYearTokens && De(a) || !n?.useAdditionalDayOfYearTokens && Ee(a)) && Oe(a, t, String(e));
|
|
1139
|
+
let o = ve[a[0]];
|
|
1140
|
+
return o(s, a, i.localize, l);
|
|
1141
|
+
}).join("");
|
|
1142
|
+
}
|
|
1143
|
+
function Le(e) {
|
|
1144
|
+
let t = e.match(Pe);
|
|
1145
|
+
return t ? t[1].replace(Fe, "'") : e;
|
|
1146
|
+
}
|
|
1147
|
+
//#endregion
|
|
1148
|
+
//#region node_modules/date-fns/locale/fr/_lib/formatDistance.js
|
|
1149
|
+
var Re = {
|
|
1150
|
+
lessThanXSeconds: {
|
|
1151
|
+
one: "moins d’une seconde",
|
|
1152
|
+
other: "moins de {{count}} secondes"
|
|
1153
|
+
},
|
|
1154
|
+
xSeconds: {
|
|
1155
|
+
one: "1 seconde",
|
|
1156
|
+
other: "{{count}} secondes"
|
|
1157
|
+
},
|
|
1158
|
+
halfAMinute: "30 secondes",
|
|
1159
|
+
lessThanXMinutes: {
|
|
1160
|
+
one: "moins d’une minute",
|
|
1161
|
+
other: "moins de {{count}} minutes"
|
|
1162
|
+
},
|
|
1163
|
+
xMinutes: {
|
|
1164
|
+
one: "1 minute",
|
|
1165
|
+
other: "{{count}} minutes"
|
|
1166
|
+
},
|
|
1167
|
+
aboutXHours: {
|
|
1168
|
+
one: "environ 1 heure",
|
|
1169
|
+
other: "environ {{count}} heures"
|
|
1170
|
+
},
|
|
1171
|
+
xHours: {
|
|
1172
|
+
one: "1 heure",
|
|
1173
|
+
other: "{{count}} heures"
|
|
1174
|
+
},
|
|
1175
|
+
xDays: {
|
|
1176
|
+
one: "1 jour",
|
|
1177
|
+
other: "{{count}} jours"
|
|
1178
|
+
},
|
|
1179
|
+
aboutXWeeks: {
|
|
1180
|
+
one: "environ 1 semaine",
|
|
1181
|
+
other: "environ {{count}} semaines"
|
|
1182
|
+
},
|
|
1183
|
+
xWeeks: {
|
|
1184
|
+
one: "1 semaine",
|
|
1185
|
+
other: "{{count}} semaines"
|
|
1186
|
+
},
|
|
1187
|
+
aboutXMonths: {
|
|
1188
|
+
one: "environ 1 mois",
|
|
1189
|
+
other: "environ {{count}} mois"
|
|
1190
|
+
},
|
|
1191
|
+
xMonths: {
|
|
1192
|
+
one: "1 mois",
|
|
1193
|
+
other: "{{count}} mois"
|
|
1194
|
+
},
|
|
1195
|
+
aboutXYears: {
|
|
1196
|
+
one: "environ 1 an",
|
|
1197
|
+
other: "environ {{count}} ans"
|
|
1198
|
+
},
|
|
1199
|
+
xYears: {
|
|
1200
|
+
one: "1 an",
|
|
1201
|
+
other: "{{count}} ans"
|
|
1202
|
+
},
|
|
1203
|
+
overXYears: {
|
|
1204
|
+
one: "plus d’un an",
|
|
1205
|
+
other: "plus de {{count}} ans"
|
|
1206
|
+
},
|
|
1207
|
+
almostXYears: {
|
|
1208
|
+
one: "presqu’un an",
|
|
1209
|
+
other: "presque {{count}} ans"
|
|
1210
|
+
}
|
|
1211
|
+
}, ze = (e, t, n) => {
|
|
1212
|
+
let r, i = Re[e];
|
|
1213
|
+
return r = typeof i == "string" ? i : t === 1 ? i.one : i.other.replace("{{count}}", String(t)), n?.addSuffix ? n.comparison && n.comparison > 0 ? "dans " + r : "il y a " + r : r;
|
|
1214
|
+
}, Be = {
|
|
1215
|
+
date: r({
|
|
1216
|
+
formats: {
|
|
1217
|
+
full: "EEEE d MMMM y",
|
|
1218
|
+
long: "d MMMM y",
|
|
1219
|
+
medium: "d MMM y",
|
|
1220
|
+
short: "dd/MM/y"
|
|
1221
|
+
},
|
|
1222
|
+
defaultWidth: "full"
|
|
1223
|
+
}),
|
|
1224
|
+
time: r({
|
|
1225
|
+
formats: {
|
|
1226
|
+
full: "HH:mm:ss zzzz",
|
|
1227
|
+
long: "HH:mm:ss z",
|
|
1228
|
+
medium: "HH:mm:ss",
|
|
1229
|
+
short: "HH:mm"
|
|
1230
|
+
},
|
|
1231
|
+
defaultWidth: "full"
|
|
1232
|
+
}),
|
|
1233
|
+
dateTime: r({
|
|
1234
|
+
formats: {
|
|
1235
|
+
full: "{{date}} 'à' {{time}}",
|
|
1236
|
+
long: "{{date}} 'à' {{time}}",
|
|
1237
|
+
medium: "{{date}}, {{time}}",
|
|
1238
|
+
short: "{{date}}, {{time}}"
|
|
1239
|
+
},
|
|
1240
|
+
defaultWidth: "full"
|
|
1241
|
+
})
|
|
1242
|
+
}, Ve = {
|
|
1243
|
+
lastWeek: "eeee 'dernier à' p",
|
|
1244
|
+
yesterday: "'hier à' p",
|
|
1245
|
+
today: "'aujourd’hui à' p",
|
|
1246
|
+
tomorrow: "'demain à' p'",
|
|
1247
|
+
nextWeek: "eeee 'prochain à' p",
|
|
1248
|
+
other: "P"
|
|
1249
|
+
}, He = (e, t, n, r) => Ve[e], Ue = {
|
|
1250
|
+
narrow: ["av. J.-C", "ap. J.-C"],
|
|
1251
|
+
abbreviated: ["av. J.-C", "ap. J.-C"],
|
|
1252
|
+
wide: ["avant Jésus-Christ", "après Jésus-Christ"]
|
|
1253
|
+
}, We = {
|
|
1254
|
+
narrow: [
|
|
1255
|
+
"T1",
|
|
1256
|
+
"T2",
|
|
1257
|
+
"T3",
|
|
1258
|
+
"T4"
|
|
1259
|
+
],
|
|
1260
|
+
abbreviated: [
|
|
1261
|
+
"1er trim.",
|
|
1262
|
+
"2ème trim.",
|
|
1263
|
+
"3ème trim.",
|
|
1264
|
+
"4ème trim."
|
|
1265
|
+
],
|
|
1266
|
+
wide: [
|
|
1267
|
+
"1er trimestre",
|
|
1268
|
+
"2ème trimestre",
|
|
1269
|
+
"3ème trimestre",
|
|
1270
|
+
"4ème trimestre"
|
|
1271
|
+
]
|
|
1272
|
+
}, Ge = {
|
|
1273
|
+
narrow: [
|
|
1274
|
+
"J",
|
|
1275
|
+
"F",
|
|
1276
|
+
"M",
|
|
1277
|
+
"A",
|
|
1278
|
+
"M",
|
|
1279
|
+
"J",
|
|
1280
|
+
"J",
|
|
1281
|
+
"A",
|
|
1282
|
+
"S",
|
|
1283
|
+
"O",
|
|
1284
|
+
"N",
|
|
1285
|
+
"D"
|
|
1286
|
+
],
|
|
1287
|
+
abbreviated: [
|
|
1288
|
+
"janv.",
|
|
1289
|
+
"févr.",
|
|
1290
|
+
"mars",
|
|
1291
|
+
"avr.",
|
|
1292
|
+
"mai",
|
|
1293
|
+
"juin",
|
|
1294
|
+
"juil.",
|
|
1295
|
+
"août",
|
|
1296
|
+
"sept.",
|
|
1297
|
+
"oct.",
|
|
1298
|
+
"nov.",
|
|
1299
|
+
"déc."
|
|
1300
|
+
],
|
|
1301
|
+
wide: [
|
|
1302
|
+
"janvier",
|
|
1303
|
+
"février",
|
|
1304
|
+
"mars",
|
|
1305
|
+
"avril",
|
|
1306
|
+
"mai",
|
|
1307
|
+
"juin",
|
|
1308
|
+
"juillet",
|
|
1309
|
+
"août",
|
|
1310
|
+
"septembre",
|
|
1311
|
+
"octobre",
|
|
1312
|
+
"novembre",
|
|
1313
|
+
"décembre"
|
|
1314
|
+
]
|
|
1315
|
+
}, Ke = {
|
|
1316
|
+
narrow: [
|
|
1317
|
+
"D",
|
|
1318
|
+
"L",
|
|
1319
|
+
"M",
|
|
1320
|
+
"M",
|
|
1321
|
+
"J",
|
|
1322
|
+
"V",
|
|
1323
|
+
"S"
|
|
1324
|
+
],
|
|
1325
|
+
short: [
|
|
1326
|
+
"di",
|
|
1327
|
+
"lu",
|
|
1328
|
+
"ma",
|
|
1329
|
+
"me",
|
|
1330
|
+
"je",
|
|
1331
|
+
"ve",
|
|
1332
|
+
"sa"
|
|
1333
|
+
],
|
|
1334
|
+
abbreviated: [
|
|
1335
|
+
"dim.",
|
|
1336
|
+
"lun.",
|
|
1337
|
+
"mar.",
|
|
1338
|
+
"mer.",
|
|
1339
|
+
"jeu.",
|
|
1340
|
+
"ven.",
|
|
1341
|
+
"sam."
|
|
1342
|
+
],
|
|
1343
|
+
wide: [
|
|
1344
|
+
"dimanche",
|
|
1345
|
+
"lundi",
|
|
1346
|
+
"mardi",
|
|
1347
|
+
"mercredi",
|
|
1348
|
+
"jeudi",
|
|
1349
|
+
"vendredi",
|
|
1350
|
+
"samedi"
|
|
1351
|
+
]
|
|
1352
|
+
}, qe = {
|
|
1353
|
+
narrow: {
|
|
1354
|
+
am: "AM",
|
|
1355
|
+
pm: "PM",
|
|
1356
|
+
midnight: "minuit",
|
|
1357
|
+
noon: "midi",
|
|
1358
|
+
morning: "mat.",
|
|
1359
|
+
afternoon: "ap.m.",
|
|
1360
|
+
evening: "soir",
|
|
1361
|
+
night: "mat."
|
|
1362
|
+
},
|
|
1363
|
+
abbreviated: {
|
|
1364
|
+
am: "AM",
|
|
1365
|
+
pm: "PM",
|
|
1366
|
+
midnight: "minuit",
|
|
1367
|
+
noon: "midi",
|
|
1368
|
+
morning: "matin",
|
|
1369
|
+
afternoon: "après-midi",
|
|
1370
|
+
evening: "soir",
|
|
1371
|
+
night: "matin"
|
|
1372
|
+
},
|
|
1373
|
+
wide: {
|
|
1374
|
+
am: "AM",
|
|
1375
|
+
pm: "PM",
|
|
1376
|
+
midnight: "minuit",
|
|
1377
|
+
noon: "midi",
|
|
1378
|
+
morning: "du matin",
|
|
1379
|
+
afternoon: "de l’après-midi",
|
|
1380
|
+
evening: "du soir",
|
|
1381
|
+
night: "du matin"
|
|
1382
|
+
}
|
|
1383
|
+
}, Je = (e, t) => {
|
|
1384
|
+
let n = Number(e), r = t?.unit;
|
|
1385
|
+
if (n === 0) return "0";
|
|
1386
|
+
let i = [
|
|
1387
|
+
"year",
|
|
1388
|
+
"week",
|
|
1389
|
+
"hour",
|
|
1390
|
+
"minute",
|
|
1391
|
+
"second"
|
|
1392
|
+
], a;
|
|
1393
|
+
return a = n === 1 ? r && i.includes(r) ? "ère" : "er" : "ème", n + a;
|
|
1394
|
+
}, Ye = ["MMM", "MMMM"], O = {
|
|
1395
|
+
code: "fr",
|
|
1396
|
+
formatDistance: ze,
|
|
1397
|
+
formatLong: Be,
|
|
1398
|
+
formatRelative: He,
|
|
1399
|
+
localize: {
|
|
1400
|
+
preprocessor: (e, t) => e.getDate() === 1 || !t.some((e) => e.isToken && Ye.includes(e.value)) ? t : t.map((e) => e.isToken && e.value === "do" ? {
|
|
1401
|
+
isToken: !0,
|
|
1402
|
+
value: "d"
|
|
1403
|
+
} : e),
|
|
1404
|
+
ordinalNumber: Je,
|
|
1405
|
+
era: s({
|
|
1406
|
+
values: Ue,
|
|
1407
|
+
defaultWidth: "wide"
|
|
1408
|
+
}),
|
|
1409
|
+
quarter: s({
|
|
1410
|
+
values: We,
|
|
1411
|
+
defaultWidth: "wide",
|
|
1412
|
+
argumentCallback: (e) => e - 1
|
|
1413
|
+
}),
|
|
1414
|
+
month: s({
|
|
1415
|
+
values: Ge,
|
|
1416
|
+
defaultWidth: "wide"
|
|
1417
|
+
}),
|
|
1418
|
+
day: s({
|
|
1419
|
+
values: Ke,
|
|
1420
|
+
defaultWidth: "wide"
|
|
1421
|
+
}),
|
|
1422
|
+
dayPeriod: s({
|
|
1423
|
+
values: qe,
|
|
1424
|
+
defaultWidth: "wide"
|
|
1425
|
+
})
|
|
1426
|
+
},
|
|
1427
|
+
match: {
|
|
1428
|
+
ordinalNumber: d({
|
|
1429
|
+
matchPattern: /^(\d+)(ième|ère|ème|er|e)?/i,
|
|
1430
|
+
parsePattern: /\d+/i,
|
|
1431
|
+
valueCallback: (e) => parseInt(e)
|
|
1432
|
+
}),
|
|
1433
|
+
era: l({
|
|
1434
|
+
matchPatterns: {
|
|
1435
|
+
narrow: /^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,
|
|
1436
|
+
abbreviated: /^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,
|
|
1437
|
+
wide: /^(avant Jésus-Christ|après Jésus-Christ)/i
|
|
1438
|
+
},
|
|
1439
|
+
defaultMatchWidth: "wide",
|
|
1440
|
+
parsePatterns: { any: [/^av/i, /^ap/i] },
|
|
1441
|
+
defaultParseWidth: "any"
|
|
1442
|
+
}),
|
|
1443
|
+
quarter: l({
|
|
1444
|
+
matchPatterns: {
|
|
1445
|
+
narrow: /^T?[1234]/i,
|
|
1446
|
+
abbreviated: /^[1234](er|ème|e)? trim\.?/i,
|
|
1447
|
+
wide: /^[1234](er|ème|e)? trimestre/i
|
|
1448
|
+
},
|
|
1449
|
+
defaultMatchWidth: "wide",
|
|
1450
|
+
parsePatterns: { any: [
|
|
1451
|
+
/1/i,
|
|
1452
|
+
/2/i,
|
|
1453
|
+
/3/i,
|
|
1454
|
+
/4/i
|
|
1455
|
+
] },
|
|
1456
|
+
defaultParseWidth: "any",
|
|
1457
|
+
valueCallback: (e) => e + 1
|
|
1458
|
+
}),
|
|
1459
|
+
month: l({
|
|
1460
|
+
matchPatterns: {
|
|
1461
|
+
narrow: /^[jfmasond]/i,
|
|
1462
|
+
abbreviated: /^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,
|
|
1463
|
+
wide: /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i
|
|
1464
|
+
},
|
|
1465
|
+
defaultMatchWidth: "wide",
|
|
1466
|
+
parsePatterns: {
|
|
1467
|
+
narrow: [
|
|
1468
|
+
/^j/i,
|
|
1469
|
+
/^f/i,
|
|
1470
|
+
/^m/i,
|
|
1471
|
+
/^a/i,
|
|
1472
|
+
/^m/i,
|
|
1473
|
+
/^j/i,
|
|
1474
|
+
/^j/i,
|
|
1475
|
+
/^a/i,
|
|
1476
|
+
/^s/i,
|
|
1477
|
+
/^o/i,
|
|
1478
|
+
/^n/i,
|
|
1479
|
+
/^d/i
|
|
1480
|
+
],
|
|
1481
|
+
any: [
|
|
1482
|
+
/^ja/i,
|
|
1483
|
+
/^f/i,
|
|
1484
|
+
/^mar/i,
|
|
1485
|
+
/^av/i,
|
|
1486
|
+
/^ma/i,
|
|
1487
|
+
/^juin/i,
|
|
1488
|
+
/^juil/i,
|
|
1489
|
+
/^ao/i,
|
|
1490
|
+
/^s/i,
|
|
1491
|
+
/^o/i,
|
|
1492
|
+
/^n/i,
|
|
1493
|
+
/^d/i
|
|
1494
|
+
]
|
|
1495
|
+
},
|
|
1496
|
+
defaultParseWidth: "any"
|
|
1497
|
+
}),
|
|
1498
|
+
day: l({
|
|
1499
|
+
matchPatterns: {
|
|
1500
|
+
narrow: /^[lmjvsd]/i,
|
|
1501
|
+
short: /^(di|lu|ma|me|je|ve|sa)/i,
|
|
1502
|
+
abbreviated: /^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,
|
|
1503
|
+
wide: /^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i
|
|
1504
|
+
},
|
|
1505
|
+
defaultMatchWidth: "wide",
|
|
1506
|
+
parsePatterns: {
|
|
1507
|
+
narrow: [
|
|
1508
|
+
/^d/i,
|
|
1509
|
+
/^l/i,
|
|
1510
|
+
/^m/i,
|
|
1511
|
+
/^m/i,
|
|
1512
|
+
/^j/i,
|
|
1513
|
+
/^v/i,
|
|
1514
|
+
/^s/i
|
|
1515
|
+
],
|
|
1516
|
+
any: [
|
|
1517
|
+
/^di/i,
|
|
1518
|
+
/^lu/i,
|
|
1519
|
+
/^ma/i,
|
|
1520
|
+
/^me/i,
|
|
1521
|
+
/^je/i,
|
|
1522
|
+
/^ve/i,
|
|
1523
|
+
/^sa/i
|
|
1524
|
+
]
|
|
1525
|
+
},
|
|
1526
|
+
defaultParseWidth: "any"
|
|
1527
|
+
}),
|
|
1528
|
+
dayPeriod: l({
|
|
1529
|
+
matchPatterns: {
|
|
1530
|
+
narrow: /^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,
|
|
1531
|
+
any: /^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i
|
|
1532
|
+
},
|
|
1533
|
+
defaultMatchWidth: "any",
|
|
1534
|
+
parsePatterns: { any: {
|
|
1535
|
+
am: /^a/i,
|
|
1536
|
+
pm: /^p/i,
|
|
1537
|
+
midnight: /^min/i,
|
|
1538
|
+
noon: /^mid/i,
|
|
1539
|
+
morning: /mat/i,
|
|
1540
|
+
afternoon: /ap/i,
|
|
1541
|
+
evening: /soir/i,
|
|
1542
|
+
night: /nuit/i
|
|
1543
|
+
} },
|
|
1544
|
+
defaultParseWidth: "any"
|
|
1545
|
+
})
|
|
1546
|
+
},
|
|
1547
|
+
options: {
|
|
1548
|
+
weekStartsOn: 1,
|
|
1549
|
+
firstWeekContainsDate: 4
|
|
1550
|
+
}
|
|
1551
|
+
};
|
|
1552
|
+
//#endregion
|
|
1553
|
+
//#region node_modules/date-fns/getDefaultOptions.js
|
|
1554
|
+
function Xe() {
|
|
1555
|
+
return Object.assign({}, f());
|
|
1556
|
+
}
|
|
1557
|
+
//#endregion
|
|
1558
|
+
//#region node_modules/date-fns/transpose.js
|
|
1559
|
+
function Ze(e, t) {
|
|
1560
|
+
let n = Qe(t) ? new t(0) : g(t, 0);
|
|
1561
|
+
return n.setFullYear(e.getFullYear(), e.getMonth(), e.getDate()), n.setHours(e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()), n;
|
|
1562
|
+
}
|
|
1563
|
+
function Qe(e) {
|
|
1564
|
+
return typeof e == "function" && e.prototype?.constructor === e;
|
|
1565
|
+
}
|
|
1566
|
+
//#endregion
|
|
1567
|
+
//#region \0@oxc-project+runtime@0.115.0/helpers/typeof.js
|
|
1568
|
+
function k(e) {
|
|
1569
|
+
"@babel/helpers - typeof";
|
|
1570
|
+
return k = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1571
|
+
return typeof e;
|
|
1572
|
+
} : function(e) {
|
|
1573
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1574
|
+
}, k(e);
|
|
1575
|
+
}
|
|
1576
|
+
//#endregion
|
|
1577
|
+
//#region \0@oxc-project+runtime@0.115.0/helpers/toPrimitive.js
|
|
1578
|
+
function $e(e, t) {
|
|
1579
|
+
if (k(e) != "object" || !e) return e;
|
|
1580
|
+
var n = e[Symbol.toPrimitive];
|
|
1581
|
+
if (n !== void 0) {
|
|
1582
|
+
var r = n.call(e, t || "default");
|
|
1583
|
+
if (k(r) != "object") return r;
|
|
1584
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
1585
|
+
}
|
|
1586
|
+
return (t === "string" ? String : Number)(e);
|
|
1587
|
+
}
|
|
1588
|
+
//#endregion
|
|
1589
|
+
//#region \0@oxc-project+runtime@0.115.0/helpers/toPropertyKey.js
|
|
1590
|
+
function et(e) {
|
|
1591
|
+
var t = $e(e, "string");
|
|
1592
|
+
return k(t) == "symbol" ? t : t + "";
|
|
1593
|
+
}
|
|
1594
|
+
//#endregion
|
|
1595
|
+
//#region \0@oxc-project+runtime@0.115.0/helpers/defineProperty.js
|
|
1596
|
+
function A(e, t, n) {
|
|
1597
|
+
return (t = et(t)) in e ? Object.defineProperty(e, t, {
|
|
1598
|
+
value: n,
|
|
1599
|
+
enumerable: !0,
|
|
1600
|
+
configurable: !0,
|
|
1601
|
+
writable: !0
|
|
1602
|
+
}) : e[t] = n, e;
|
|
1603
|
+
}
|
|
1604
|
+
//#endregion
|
|
1605
|
+
//#region node_modules/date-fns/parse/_lib/Setter.js
|
|
1606
|
+
var tt = 10, nt = class {
|
|
1607
|
+
constructor() {
|
|
1608
|
+
A(this, "subPriority", 0);
|
|
1609
|
+
}
|
|
1610
|
+
validate(e, t) {
|
|
1611
|
+
return !0;
|
|
1612
|
+
}
|
|
1613
|
+
}, rt = class extends nt {
|
|
1614
|
+
constructor(e, t, n, r, i) {
|
|
1615
|
+
super(), this.value = e, this.validateValue = t, this.setValue = n, this.priority = r, i && (this.subPriority = i);
|
|
1616
|
+
}
|
|
1617
|
+
validate(e, t) {
|
|
1618
|
+
return this.validateValue(e, this.value, t);
|
|
1619
|
+
}
|
|
1620
|
+
set(e, t, n) {
|
|
1621
|
+
return this.setValue(e, t, this.value, n);
|
|
1622
|
+
}
|
|
1623
|
+
}, it = class extends nt {
|
|
1624
|
+
constructor(e, t) {
|
|
1625
|
+
super(), A(this, "priority", tt), A(this, "subPriority", -1), this.context = e || ((e) => g(t, e));
|
|
1626
|
+
}
|
|
1627
|
+
set(e, t) {
|
|
1628
|
+
return t.timestampIsSet ? e : g(e, Ze(e, this.context));
|
|
1629
|
+
}
|
|
1630
|
+
}, j = class {
|
|
1631
|
+
run(e, t, n, r) {
|
|
1632
|
+
let i = this.parse(e, t, n, r);
|
|
1633
|
+
return i ? {
|
|
1634
|
+
setter: new rt(i.value, this.validate, this.set, this.priority, this.subPriority),
|
|
1635
|
+
rest: i.rest
|
|
1636
|
+
} : null;
|
|
1637
|
+
}
|
|
1638
|
+
validate(e, t, n) {
|
|
1639
|
+
return !0;
|
|
1640
|
+
}
|
|
1641
|
+
}, at = class extends j {
|
|
1642
|
+
constructor(...e) {
|
|
1643
|
+
super(...e), A(this, "priority", 140), A(this, "incompatibleTokens", [
|
|
1644
|
+
"R",
|
|
1645
|
+
"u",
|
|
1646
|
+
"t",
|
|
1647
|
+
"T"
|
|
1648
|
+
]);
|
|
1649
|
+
}
|
|
1650
|
+
parse(e, t, n) {
|
|
1651
|
+
switch (t) {
|
|
1652
|
+
case "G":
|
|
1653
|
+
case "GG":
|
|
1654
|
+
case "GGG": return n.era(e, { width: "abbreviated" }) || n.era(e, { width: "narrow" });
|
|
1655
|
+
case "GGGGG": return n.era(e, { width: "narrow" });
|
|
1656
|
+
default: return n.era(e, { width: "wide" }) || n.era(e, { width: "abbreviated" }) || n.era(e, { width: "narrow" });
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
set(e, t, n) {
|
|
1660
|
+
return t.era = n, e.setFullYear(n, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
1661
|
+
}
|
|
1662
|
+
}, M = {
|
|
1663
|
+
month: /^(1[0-2]|0?\d)/,
|
|
1664
|
+
date: /^(3[0-1]|[0-2]?\d)/,
|
|
1665
|
+
dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
|
|
1666
|
+
week: /^(5[0-3]|[0-4]?\d)/,
|
|
1667
|
+
hour23h: /^(2[0-3]|[0-1]?\d)/,
|
|
1668
|
+
hour24h: /^(2[0-4]|[0-1]?\d)/,
|
|
1669
|
+
hour11h: /^(1[0-1]|0?\d)/,
|
|
1670
|
+
hour12h: /^(1[0-2]|0?\d)/,
|
|
1671
|
+
minute: /^[0-5]?\d/,
|
|
1672
|
+
second: /^[0-5]?\d/,
|
|
1673
|
+
singleDigit: /^\d/,
|
|
1674
|
+
twoDigits: /^\d{1,2}/,
|
|
1675
|
+
threeDigits: /^\d{1,3}/,
|
|
1676
|
+
fourDigits: /^\d{1,4}/,
|
|
1677
|
+
anyDigitsSigned: /^-?\d+/,
|
|
1678
|
+
singleDigitSigned: /^-?\d/,
|
|
1679
|
+
twoDigitsSigned: /^-?\d{1,2}/,
|
|
1680
|
+
threeDigitsSigned: /^-?\d{1,3}/,
|
|
1681
|
+
fourDigitsSigned: /^-?\d{1,4}/
|
|
1682
|
+
}, N = {
|
|
1683
|
+
basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
|
|
1684
|
+
basic: /^([+-])(\d{2})(\d{2})|Z/,
|
|
1685
|
+
basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
|
|
1686
|
+
extended: /^([+-])(\d{2}):(\d{2})|Z/,
|
|
1687
|
+
extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
|
|
1688
|
+
};
|
|
1689
|
+
//#endregion
|
|
1690
|
+
//#region node_modules/date-fns/parse/_lib/utils.js
|
|
1691
|
+
function P(e, t) {
|
|
1692
|
+
return e && {
|
|
1693
|
+
value: t(e.value),
|
|
1694
|
+
rest: e.rest
|
|
1695
|
+
};
|
|
1696
|
+
}
|
|
1697
|
+
function F(e, t) {
|
|
1698
|
+
let n = t.match(e);
|
|
1699
|
+
return n ? {
|
|
1700
|
+
value: parseInt(n[0], 10),
|
|
1701
|
+
rest: t.slice(n[0].length)
|
|
1702
|
+
} : null;
|
|
1703
|
+
}
|
|
1704
|
+
function I(e, t) {
|
|
1705
|
+
let n = t.match(e);
|
|
1706
|
+
if (!n) return null;
|
|
1707
|
+
if (n[0] === "Z") return {
|
|
1708
|
+
value: 0,
|
|
1709
|
+
rest: t.slice(1)
|
|
1710
|
+
};
|
|
1711
|
+
let r = n[1] === "+" ? 1 : -1, i = n[2] ? parseInt(n[2], 10) : 0, a = n[3] ? parseInt(n[3], 10) : 0, o = n[5] ? parseInt(n[5], 10) : 0;
|
|
1712
|
+
return {
|
|
1713
|
+
value: r * (i * h + a * m + o * ae),
|
|
1714
|
+
rest: t.slice(n[0].length)
|
|
1715
|
+
};
|
|
1716
|
+
}
|
|
1717
|
+
function ot(e) {
|
|
1718
|
+
return F(M.anyDigitsSigned, e);
|
|
1719
|
+
}
|
|
1720
|
+
function L(e, t) {
|
|
1721
|
+
switch (e) {
|
|
1722
|
+
case 1: return F(M.singleDigit, t);
|
|
1723
|
+
case 2: return F(M.twoDigits, t);
|
|
1724
|
+
case 3: return F(M.threeDigits, t);
|
|
1725
|
+
case 4: return F(M.fourDigits, t);
|
|
1726
|
+
default: return F(RegExp("^\\d{1," + e + "}"), t);
|
|
1727
|
+
}
|
|
1728
|
+
}
|
|
1729
|
+
function st(e, t) {
|
|
1730
|
+
switch (e) {
|
|
1731
|
+
case 1: return F(M.singleDigitSigned, t);
|
|
1732
|
+
case 2: return F(M.twoDigitsSigned, t);
|
|
1733
|
+
case 3: return F(M.threeDigitsSigned, t);
|
|
1734
|
+
case 4: return F(M.fourDigitsSigned, t);
|
|
1735
|
+
default: return F(RegExp("^-?\\d{1," + e + "}"), t);
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
function R(e) {
|
|
1739
|
+
switch (e) {
|
|
1740
|
+
case "morning": return 4;
|
|
1741
|
+
case "evening": return 17;
|
|
1742
|
+
case "pm":
|
|
1743
|
+
case "noon":
|
|
1744
|
+
case "afternoon": return 12;
|
|
1745
|
+
default: return 0;
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1748
|
+
function ct(e, t) {
|
|
1749
|
+
let n = t > 0, r = n ? t : 1 - t, i;
|
|
1750
|
+
if (r <= 50) i = e || 100;
|
|
1751
|
+
else {
|
|
1752
|
+
let t = r + 50, n = Math.trunc(t / 100) * 100, a = e >= t % 100;
|
|
1753
|
+
i = e + n - (a ? 100 : 0);
|
|
1754
|
+
}
|
|
1755
|
+
return n ? i : 1 - i;
|
|
1756
|
+
}
|
|
1757
|
+
function lt(e) {
|
|
1758
|
+
return e % 400 == 0 || e % 4 == 0 && e % 100 != 0;
|
|
1759
|
+
}
|
|
1760
|
+
//#endregion
|
|
1761
|
+
//#region node_modules/date-fns/parse/_lib/parsers/YearParser.js
|
|
1762
|
+
var ut = class extends j {
|
|
1763
|
+
constructor(...e) {
|
|
1764
|
+
super(...e), A(this, "priority", 130), A(this, "incompatibleTokens", [
|
|
1765
|
+
"Y",
|
|
1766
|
+
"R",
|
|
1767
|
+
"u",
|
|
1768
|
+
"w",
|
|
1769
|
+
"I",
|
|
1770
|
+
"i",
|
|
1771
|
+
"e",
|
|
1772
|
+
"c",
|
|
1773
|
+
"t",
|
|
1774
|
+
"T"
|
|
1775
|
+
]);
|
|
1776
|
+
}
|
|
1777
|
+
parse(e, t, n) {
|
|
1778
|
+
let r = (e) => ({
|
|
1779
|
+
year: e,
|
|
1780
|
+
isTwoDigitYear: t === "yy"
|
|
1781
|
+
});
|
|
1782
|
+
switch (t) {
|
|
1783
|
+
case "y": return P(L(4, e), r);
|
|
1784
|
+
case "yo": return P(n.ordinalNumber(e, { unit: "year" }), r);
|
|
1785
|
+
default: return P(L(t.length, e), r);
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
validate(e, t) {
|
|
1789
|
+
return t.isTwoDigitYear || t.year > 0;
|
|
1790
|
+
}
|
|
1791
|
+
set(e, t, n) {
|
|
1792
|
+
let r = e.getFullYear();
|
|
1793
|
+
if (n.isTwoDigitYear) {
|
|
1794
|
+
let t = ct(n.year, r);
|
|
1795
|
+
return e.setFullYear(t, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
1796
|
+
}
|
|
1797
|
+
let i = !("era" in t) || t.era === 1 ? n.year : 1 - n.year;
|
|
1798
|
+
return e.setFullYear(i, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
1799
|
+
}
|
|
1800
|
+
}, dt = class extends j {
|
|
1801
|
+
constructor(...e) {
|
|
1802
|
+
super(...e), A(this, "priority", 130), A(this, "incompatibleTokens", [
|
|
1803
|
+
"y",
|
|
1804
|
+
"R",
|
|
1805
|
+
"u",
|
|
1806
|
+
"Q",
|
|
1807
|
+
"q",
|
|
1808
|
+
"M",
|
|
1809
|
+
"L",
|
|
1810
|
+
"I",
|
|
1811
|
+
"d",
|
|
1812
|
+
"D",
|
|
1813
|
+
"i",
|
|
1814
|
+
"t",
|
|
1815
|
+
"T"
|
|
1816
|
+
]);
|
|
1817
|
+
}
|
|
1818
|
+
parse(e, t, n) {
|
|
1819
|
+
let r = (e) => ({
|
|
1820
|
+
year: e,
|
|
1821
|
+
isTwoDigitYear: t === "YY"
|
|
1822
|
+
});
|
|
1823
|
+
switch (t) {
|
|
1824
|
+
case "Y": return P(L(4, e), r);
|
|
1825
|
+
case "Yo": return P(n.ordinalNumber(e, { unit: "year" }), r);
|
|
1826
|
+
default: return P(L(t.length, e), r);
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1829
|
+
validate(e, t) {
|
|
1830
|
+
return t.isTwoDigitYear || t.year > 0;
|
|
1831
|
+
}
|
|
1832
|
+
set(e, t, n, r) {
|
|
1833
|
+
let i = x(e, r);
|
|
1834
|
+
if (n.isTwoDigitYear) {
|
|
1835
|
+
let t = ct(n.year, i);
|
|
1836
|
+
return e.setFullYear(t, 0, r.firstWeekContainsDate), e.setHours(0, 0, 0, 0), y(e, r);
|
|
1837
|
+
}
|
|
1838
|
+
let a = !("era" in t) || t.era === 1 ? n.year : 1 - n.year;
|
|
1839
|
+
return e.setFullYear(a, 0, r.firstWeekContainsDate), e.setHours(0, 0, 0, 0), y(e, r);
|
|
1840
|
+
}
|
|
1841
|
+
}, ft = class extends j {
|
|
1842
|
+
constructor(...e) {
|
|
1843
|
+
super(...e), A(this, "priority", 130), A(this, "incompatibleTokens", [
|
|
1844
|
+
"G",
|
|
1845
|
+
"y",
|
|
1846
|
+
"Y",
|
|
1847
|
+
"u",
|
|
1848
|
+
"Q",
|
|
1849
|
+
"q",
|
|
1850
|
+
"M",
|
|
1851
|
+
"L",
|
|
1852
|
+
"w",
|
|
1853
|
+
"d",
|
|
1854
|
+
"D",
|
|
1855
|
+
"e",
|
|
1856
|
+
"c",
|
|
1857
|
+
"t",
|
|
1858
|
+
"T"
|
|
1859
|
+
]);
|
|
1860
|
+
}
|
|
1861
|
+
parse(e, t) {
|
|
1862
|
+
return st(t === "R" ? 4 : t.length, e);
|
|
1863
|
+
}
|
|
1864
|
+
set(e, t, n) {
|
|
1865
|
+
let r = g(e, 0);
|
|
1866
|
+
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), b(r);
|
|
1867
|
+
}
|
|
1868
|
+
}, pt = class extends j {
|
|
1869
|
+
constructor(...e) {
|
|
1870
|
+
super(...e), A(this, "priority", 130), A(this, "incompatibleTokens", [
|
|
1871
|
+
"G",
|
|
1872
|
+
"y",
|
|
1873
|
+
"Y",
|
|
1874
|
+
"R",
|
|
1875
|
+
"w",
|
|
1876
|
+
"I",
|
|
1877
|
+
"i",
|
|
1878
|
+
"e",
|
|
1879
|
+
"c",
|
|
1880
|
+
"t",
|
|
1881
|
+
"T"
|
|
1882
|
+
]);
|
|
1883
|
+
}
|
|
1884
|
+
parse(e, t) {
|
|
1885
|
+
return st(t === "u" ? 4 : t.length, e);
|
|
1886
|
+
}
|
|
1887
|
+
set(e, t, n) {
|
|
1888
|
+
return e.setFullYear(n, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
1889
|
+
}
|
|
1890
|
+
}, mt = class extends j {
|
|
1891
|
+
constructor(...e) {
|
|
1892
|
+
super(...e), A(this, "priority", 120), A(this, "incompatibleTokens", [
|
|
1893
|
+
"Y",
|
|
1894
|
+
"R",
|
|
1895
|
+
"q",
|
|
1896
|
+
"M",
|
|
1897
|
+
"L",
|
|
1898
|
+
"w",
|
|
1899
|
+
"I",
|
|
1900
|
+
"d",
|
|
1901
|
+
"D",
|
|
1902
|
+
"i",
|
|
1903
|
+
"e",
|
|
1904
|
+
"c",
|
|
1905
|
+
"t",
|
|
1906
|
+
"T"
|
|
1907
|
+
]);
|
|
1908
|
+
}
|
|
1909
|
+
parse(e, t, n) {
|
|
1910
|
+
switch (t) {
|
|
1911
|
+
case "Q":
|
|
1912
|
+
case "QQ": return L(t.length, e);
|
|
1913
|
+
case "Qo": return n.ordinalNumber(e, { unit: "quarter" });
|
|
1914
|
+
case "QQQ": return n.quarter(e, {
|
|
1915
|
+
width: "abbreviated",
|
|
1916
|
+
context: "formatting"
|
|
1917
|
+
}) || n.quarter(e, {
|
|
1918
|
+
width: "narrow",
|
|
1919
|
+
context: "formatting"
|
|
1920
|
+
});
|
|
1921
|
+
case "QQQQQ": return n.quarter(e, {
|
|
1922
|
+
width: "narrow",
|
|
1923
|
+
context: "formatting"
|
|
1924
|
+
});
|
|
1925
|
+
default: return n.quarter(e, {
|
|
1926
|
+
width: "wide",
|
|
1927
|
+
context: "formatting"
|
|
1928
|
+
}) || n.quarter(e, {
|
|
1929
|
+
width: "abbreviated",
|
|
1930
|
+
context: "formatting"
|
|
1931
|
+
}) || n.quarter(e, {
|
|
1932
|
+
width: "narrow",
|
|
1933
|
+
context: "formatting"
|
|
1934
|
+
});
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
validate(e, t) {
|
|
1938
|
+
return t >= 1 && t <= 4;
|
|
1939
|
+
}
|
|
1940
|
+
set(e, t, n) {
|
|
1941
|
+
return e.setMonth((n - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
|
|
1942
|
+
}
|
|
1943
|
+
}, ht = class extends j {
|
|
1944
|
+
constructor(...e) {
|
|
1945
|
+
super(...e), A(this, "priority", 120), A(this, "incompatibleTokens", [
|
|
1946
|
+
"Y",
|
|
1947
|
+
"R",
|
|
1948
|
+
"Q",
|
|
1949
|
+
"M",
|
|
1950
|
+
"L",
|
|
1951
|
+
"w",
|
|
1952
|
+
"I",
|
|
1953
|
+
"d",
|
|
1954
|
+
"D",
|
|
1955
|
+
"i",
|
|
1956
|
+
"e",
|
|
1957
|
+
"c",
|
|
1958
|
+
"t",
|
|
1959
|
+
"T"
|
|
1960
|
+
]);
|
|
1961
|
+
}
|
|
1962
|
+
parse(e, t, n) {
|
|
1963
|
+
switch (t) {
|
|
1964
|
+
case "q":
|
|
1965
|
+
case "qq": return L(t.length, e);
|
|
1966
|
+
case "qo": return n.ordinalNumber(e, { unit: "quarter" });
|
|
1967
|
+
case "qqq": return n.quarter(e, {
|
|
1968
|
+
width: "abbreviated",
|
|
1969
|
+
context: "standalone"
|
|
1970
|
+
}) || n.quarter(e, {
|
|
1971
|
+
width: "narrow",
|
|
1972
|
+
context: "standalone"
|
|
1973
|
+
});
|
|
1974
|
+
case "qqqqq": return n.quarter(e, {
|
|
1975
|
+
width: "narrow",
|
|
1976
|
+
context: "standalone"
|
|
1977
|
+
});
|
|
1978
|
+
default: return n.quarter(e, {
|
|
1979
|
+
width: "wide",
|
|
1980
|
+
context: "standalone"
|
|
1981
|
+
}) || n.quarter(e, {
|
|
1982
|
+
width: "abbreviated",
|
|
1983
|
+
context: "standalone"
|
|
1984
|
+
}) || n.quarter(e, {
|
|
1985
|
+
width: "narrow",
|
|
1986
|
+
context: "standalone"
|
|
1987
|
+
});
|
|
1988
|
+
}
|
|
1989
|
+
}
|
|
1990
|
+
validate(e, t) {
|
|
1991
|
+
return t >= 1 && t <= 4;
|
|
1992
|
+
}
|
|
1993
|
+
set(e, t, n) {
|
|
1994
|
+
return e.setMonth((n - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
|
|
1995
|
+
}
|
|
1996
|
+
}, gt = class extends j {
|
|
1997
|
+
constructor(...e) {
|
|
1998
|
+
super(...e), A(this, "incompatibleTokens", [
|
|
1999
|
+
"Y",
|
|
2000
|
+
"R",
|
|
2001
|
+
"q",
|
|
2002
|
+
"Q",
|
|
2003
|
+
"L",
|
|
2004
|
+
"w",
|
|
2005
|
+
"I",
|
|
2006
|
+
"D",
|
|
2007
|
+
"i",
|
|
2008
|
+
"e",
|
|
2009
|
+
"c",
|
|
2010
|
+
"t",
|
|
2011
|
+
"T"
|
|
2012
|
+
]), A(this, "priority", 110);
|
|
2013
|
+
}
|
|
2014
|
+
parse(e, t, n) {
|
|
2015
|
+
let r = (e) => e - 1;
|
|
2016
|
+
switch (t) {
|
|
2017
|
+
case "M": return P(F(M.month, e), r);
|
|
2018
|
+
case "MM": return P(L(2, e), r);
|
|
2019
|
+
case "Mo": return P(n.ordinalNumber(e, { unit: "month" }), r);
|
|
2020
|
+
case "MMM": return n.month(e, {
|
|
2021
|
+
width: "abbreviated",
|
|
2022
|
+
context: "formatting"
|
|
2023
|
+
}) || n.month(e, {
|
|
2024
|
+
width: "narrow",
|
|
2025
|
+
context: "formatting"
|
|
2026
|
+
});
|
|
2027
|
+
case "MMMMM": return n.month(e, {
|
|
2028
|
+
width: "narrow",
|
|
2029
|
+
context: "formatting"
|
|
2030
|
+
});
|
|
2031
|
+
default: return n.month(e, {
|
|
2032
|
+
width: "wide",
|
|
2033
|
+
context: "formatting"
|
|
2034
|
+
}) || n.month(e, {
|
|
2035
|
+
width: "abbreviated",
|
|
2036
|
+
context: "formatting"
|
|
2037
|
+
}) || n.month(e, {
|
|
2038
|
+
width: "narrow",
|
|
2039
|
+
context: "formatting"
|
|
2040
|
+
});
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
validate(e, t) {
|
|
2044
|
+
return t >= 0 && t <= 11;
|
|
2045
|
+
}
|
|
2046
|
+
set(e, t, n) {
|
|
2047
|
+
return e.setMonth(n, 1), e.setHours(0, 0, 0, 0), e;
|
|
2048
|
+
}
|
|
2049
|
+
}, _t = class extends j {
|
|
2050
|
+
constructor(...e) {
|
|
2051
|
+
super(...e), A(this, "priority", 110), A(this, "incompatibleTokens", [
|
|
2052
|
+
"Y",
|
|
2053
|
+
"R",
|
|
2054
|
+
"q",
|
|
2055
|
+
"Q",
|
|
2056
|
+
"M",
|
|
2057
|
+
"w",
|
|
2058
|
+
"I",
|
|
2059
|
+
"D",
|
|
2060
|
+
"i",
|
|
2061
|
+
"e",
|
|
2062
|
+
"c",
|
|
2063
|
+
"t",
|
|
2064
|
+
"T"
|
|
2065
|
+
]);
|
|
2066
|
+
}
|
|
2067
|
+
parse(e, t, n) {
|
|
2068
|
+
let r = (e) => e - 1;
|
|
2069
|
+
switch (t) {
|
|
2070
|
+
case "L": return P(F(M.month, e), r);
|
|
2071
|
+
case "LL": return P(L(2, e), r);
|
|
2072
|
+
case "Lo": return P(n.ordinalNumber(e, { unit: "month" }), r);
|
|
2073
|
+
case "LLL": return n.month(e, {
|
|
2074
|
+
width: "abbreviated",
|
|
2075
|
+
context: "standalone"
|
|
2076
|
+
}) || n.month(e, {
|
|
2077
|
+
width: "narrow",
|
|
2078
|
+
context: "standalone"
|
|
2079
|
+
});
|
|
2080
|
+
case "LLLLL": return n.month(e, {
|
|
2081
|
+
width: "narrow",
|
|
2082
|
+
context: "standalone"
|
|
2083
|
+
});
|
|
2084
|
+
default: return n.month(e, {
|
|
2085
|
+
width: "wide",
|
|
2086
|
+
context: "standalone"
|
|
2087
|
+
}) || n.month(e, {
|
|
2088
|
+
width: "abbreviated",
|
|
2089
|
+
context: "standalone"
|
|
2090
|
+
}) || n.month(e, {
|
|
2091
|
+
width: "narrow",
|
|
2092
|
+
context: "standalone"
|
|
2093
|
+
});
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
validate(e, t) {
|
|
2097
|
+
return t >= 0 && t <= 11;
|
|
2098
|
+
}
|
|
2099
|
+
set(e, t, n) {
|
|
2100
|
+
return e.setMonth(n, 1), e.setHours(0, 0, 0, 0), e;
|
|
2101
|
+
}
|
|
2102
|
+
};
|
|
2103
|
+
//#endregion
|
|
2104
|
+
//#region node_modules/date-fns/setWeek.js
|
|
2105
|
+
function vt(e, t, n) {
|
|
2106
|
+
let r = _(e, n?.in), i = _e(r, n) - t;
|
|
2107
|
+
return r.setDate(r.getDate() - i * 7), _(r, n?.in);
|
|
2108
|
+
}
|
|
2109
|
+
//#endregion
|
|
2110
|
+
//#region node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js
|
|
2111
|
+
var yt = class extends j {
|
|
2112
|
+
constructor(...e) {
|
|
2113
|
+
super(...e), A(this, "priority", 100), A(this, "incompatibleTokens", [
|
|
2114
|
+
"y",
|
|
2115
|
+
"R",
|
|
2116
|
+
"u",
|
|
2117
|
+
"q",
|
|
2118
|
+
"Q",
|
|
2119
|
+
"M",
|
|
2120
|
+
"L",
|
|
2121
|
+
"I",
|
|
2122
|
+
"d",
|
|
2123
|
+
"D",
|
|
2124
|
+
"i",
|
|
2125
|
+
"t",
|
|
2126
|
+
"T"
|
|
2127
|
+
]);
|
|
2128
|
+
}
|
|
2129
|
+
parse(e, t, n) {
|
|
2130
|
+
switch (t) {
|
|
2131
|
+
case "w": return F(M.week, e);
|
|
2132
|
+
case "wo": return n.ordinalNumber(e, { unit: "week" });
|
|
2133
|
+
default: return L(t.length, e);
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2136
|
+
validate(e, t) {
|
|
2137
|
+
return t >= 1 && t <= 53;
|
|
2138
|
+
}
|
|
2139
|
+
set(e, t, n, r) {
|
|
2140
|
+
return y(vt(e, n, r), r);
|
|
2141
|
+
}
|
|
2142
|
+
};
|
|
2143
|
+
//#endregion
|
|
2144
|
+
//#region node_modules/date-fns/setISOWeek.js
|
|
2145
|
+
function bt(e, t, n) {
|
|
2146
|
+
let r = _(e, n?.in), i = he(r, n) - t;
|
|
2147
|
+
return r.setDate(r.getDate() - i * 7), r;
|
|
2148
|
+
}
|
|
2149
|
+
//#endregion
|
|
2150
|
+
//#region node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js
|
|
2151
|
+
var xt = class extends j {
|
|
2152
|
+
constructor(...e) {
|
|
2153
|
+
super(...e), A(this, "priority", 100), A(this, "incompatibleTokens", [
|
|
2154
|
+
"y",
|
|
2155
|
+
"Y",
|
|
2156
|
+
"u",
|
|
2157
|
+
"q",
|
|
2158
|
+
"Q",
|
|
2159
|
+
"M",
|
|
2160
|
+
"L",
|
|
2161
|
+
"w",
|
|
2162
|
+
"d",
|
|
2163
|
+
"D",
|
|
2164
|
+
"e",
|
|
2165
|
+
"c",
|
|
2166
|
+
"t",
|
|
2167
|
+
"T"
|
|
2168
|
+
]);
|
|
2169
|
+
}
|
|
2170
|
+
parse(e, t, n) {
|
|
2171
|
+
switch (t) {
|
|
2172
|
+
case "I": return F(M.week, e);
|
|
2173
|
+
case "Io": return n.ordinalNumber(e, { unit: "week" });
|
|
2174
|
+
default: return L(t.length, e);
|
|
2175
|
+
}
|
|
2176
|
+
}
|
|
2177
|
+
validate(e, t) {
|
|
2178
|
+
return t >= 1 && t <= 53;
|
|
2179
|
+
}
|
|
2180
|
+
set(e, t, n) {
|
|
2181
|
+
return b(bt(e, n));
|
|
2182
|
+
}
|
|
2183
|
+
}, St = [
|
|
2184
|
+
31,
|
|
2185
|
+
28,
|
|
2186
|
+
31,
|
|
2187
|
+
30,
|
|
2188
|
+
31,
|
|
2189
|
+
30,
|
|
2190
|
+
31,
|
|
2191
|
+
31,
|
|
2192
|
+
30,
|
|
2193
|
+
31,
|
|
2194
|
+
30,
|
|
2195
|
+
31
|
|
2196
|
+
], Ct = [
|
|
2197
|
+
31,
|
|
2198
|
+
29,
|
|
2199
|
+
31,
|
|
2200
|
+
30,
|
|
2201
|
+
31,
|
|
2202
|
+
30,
|
|
2203
|
+
31,
|
|
2204
|
+
31,
|
|
2205
|
+
30,
|
|
2206
|
+
31,
|
|
2207
|
+
30,
|
|
2208
|
+
31
|
|
2209
|
+
], wt = class extends j {
|
|
2210
|
+
constructor(...e) {
|
|
2211
|
+
super(...e), A(this, "priority", 90), A(this, "subPriority", 1), A(this, "incompatibleTokens", [
|
|
2212
|
+
"Y",
|
|
2213
|
+
"R",
|
|
2214
|
+
"q",
|
|
2215
|
+
"Q",
|
|
2216
|
+
"w",
|
|
2217
|
+
"I",
|
|
2218
|
+
"D",
|
|
2219
|
+
"i",
|
|
2220
|
+
"e",
|
|
2221
|
+
"c",
|
|
2222
|
+
"t",
|
|
2223
|
+
"T"
|
|
2224
|
+
]);
|
|
2225
|
+
}
|
|
2226
|
+
parse(e, t, n) {
|
|
2227
|
+
switch (t) {
|
|
2228
|
+
case "d": return F(M.date, e);
|
|
2229
|
+
case "do": return n.ordinalNumber(e, { unit: "date" });
|
|
2230
|
+
default: return L(t.length, e);
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
validate(e, t) {
|
|
2234
|
+
let n = lt(e.getFullYear()), r = e.getMonth();
|
|
2235
|
+
return n ? t >= 1 && t <= Ct[r] : t >= 1 && t <= St[r];
|
|
2236
|
+
}
|
|
2237
|
+
set(e, t, n) {
|
|
2238
|
+
return e.setDate(n), e.setHours(0, 0, 0, 0), e;
|
|
2239
|
+
}
|
|
2240
|
+
}, Tt = class extends j {
|
|
2241
|
+
constructor(...e) {
|
|
2242
|
+
super(...e), A(this, "priority", 90), A(this, "subpriority", 1), A(this, "incompatibleTokens", [
|
|
2243
|
+
"Y",
|
|
2244
|
+
"R",
|
|
2245
|
+
"q",
|
|
2246
|
+
"Q",
|
|
2247
|
+
"M",
|
|
2248
|
+
"L",
|
|
2249
|
+
"w",
|
|
2250
|
+
"I",
|
|
2251
|
+
"d",
|
|
2252
|
+
"E",
|
|
2253
|
+
"i",
|
|
2254
|
+
"e",
|
|
2255
|
+
"c",
|
|
2256
|
+
"t",
|
|
2257
|
+
"T"
|
|
2258
|
+
]);
|
|
2259
|
+
}
|
|
2260
|
+
parse(e, t, n) {
|
|
2261
|
+
switch (t) {
|
|
2262
|
+
case "D":
|
|
2263
|
+
case "DD": return F(M.dayOfYear, e);
|
|
2264
|
+
case "Do": return n.ordinalNumber(e, { unit: "date" });
|
|
2265
|
+
default: return L(t.length, e);
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2268
|
+
validate(e, t) {
|
|
2269
|
+
return lt(e.getFullYear()) ? t >= 1 && t <= 366 : t >= 1 && t <= 365;
|
|
2270
|
+
}
|
|
2271
|
+
set(e, t, n) {
|
|
2272
|
+
return e.setMonth(0, n), e.setHours(0, 0, 0, 0), e;
|
|
2273
|
+
}
|
|
2274
|
+
};
|
|
2275
|
+
//#endregion
|
|
2276
|
+
//#region node_modules/date-fns/addDays.js
|
|
2277
|
+
function Et(e, t, n) {
|
|
2278
|
+
let r = _(e, n?.in);
|
|
2279
|
+
return isNaN(t) ? g(n?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
|
|
2280
|
+
}
|
|
2281
|
+
//#endregion
|
|
2282
|
+
//#region node_modules/date-fns/setDay.js
|
|
2283
|
+
function z(e, t, n) {
|
|
2284
|
+
let r = f(), i = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, a = _(e, n?.in), o = a.getDay(), s = (t % 7 + 7) % 7, c = 7 - i;
|
|
2285
|
+
return Et(a, t < 0 || t > 6 ? t - (o + c) % 7 : (s + c) % 7 - (o + c) % 7, n);
|
|
2286
|
+
}
|
|
2287
|
+
//#endregion
|
|
2288
|
+
//#region node_modules/date-fns/parse/_lib/parsers/DayParser.js
|
|
2289
|
+
var Dt = class extends j {
|
|
2290
|
+
constructor(...e) {
|
|
2291
|
+
super(...e), A(this, "priority", 90), A(this, "incompatibleTokens", [
|
|
2292
|
+
"D",
|
|
2293
|
+
"i",
|
|
2294
|
+
"e",
|
|
2295
|
+
"c",
|
|
2296
|
+
"t",
|
|
2297
|
+
"T"
|
|
2298
|
+
]);
|
|
2299
|
+
}
|
|
2300
|
+
parse(e, t, n) {
|
|
2301
|
+
switch (t) {
|
|
2302
|
+
case "E":
|
|
2303
|
+
case "EE":
|
|
2304
|
+
case "EEE": return n.day(e, {
|
|
2305
|
+
width: "abbreviated",
|
|
2306
|
+
context: "formatting"
|
|
2307
|
+
}) || n.day(e, {
|
|
2308
|
+
width: "short",
|
|
2309
|
+
context: "formatting"
|
|
2310
|
+
}) || n.day(e, {
|
|
2311
|
+
width: "narrow",
|
|
2312
|
+
context: "formatting"
|
|
2313
|
+
});
|
|
2314
|
+
case "EEEEE": return n.day(e, {
|
|
2315
|
+
width: "narrow",
|
|
2316
|
+
context: "formatting"
|
|
2317
|
+
});
|
|
2318
|
+
case "EEEEEE": return n.day(e, {
|
|
2319
|
+
width: "short",
|
|
2320
|
+
context: "formatting"
|
|
2321
|
+
}) || n.day(e, {
|
|
2322
|
+
width: "narrow",
|
|
2323
|
+
context: "formatting"
|
|
2324
|
+
});
|
|
2325
|
+
default: return n.day(e, {
|
|
2326
|
+
width: "wide",
|
|
2327
|
+
context: "formatting"
|
|
2328
|
+
}) || n.day(e, {
|
|
2329
|
+
width: "abbreviated",
|
|
2330
|
+
context: "formatting"
|
|
2331
|
+
}) || n.day(e, {
|
|
2332
|
+
width: "short",
|
|
2333
|
+
context: "formatting"
|
|
2334
|
+
}) || n.day(e, {
|
|
2335
|
+
width: "narrow",
|
|
2336
|
+
context: "formatting"
|
|
2337
|
+
});
|
|
2338
|
+
}
|
|
2339
|
+
}
|
|
2340
|
+
validate(e, t) {
|
|
2341
|
+
return t >= 0 && t <= 6;
|
|
2342
|
+
}
|
|
2343
|
+
set(e, t, n, r) {
|
|
2344
|
+
return e = z(e, n, r), e.setHours(0, 0, 0, 0), e;
|
|
2345
|
+
}
|
|
2346
|
+
}, Ot = class extends j {
|
|
2347
|
+
constructor(...e) {
|
|
2348
|
+
super(...e), A(this, "priority", 90), A(this, "incompatibleTokens", [
|
|
2349
|
+
"y",
|
|
2350
|
+
"R",
|
|
2351
|
+
"u",
|
|
2352
|
+
"q",
|
|
2353
|
+
"Q",
|
|
2354
|
+
"M",
|
|
2355
|
+
"L",
|
|
2356
|
+
"I",
|
|
2357
|
+
"d",
|
|
2358
|
+
"D",
|
|
2359
|
+
"E",
|
|
2360
|
+
"i",
|
|
2361
|
+
"c",
|
|
2362
|
+
"t",
|
|
2363
|
+
"T"
|
|
2364
|
+
]);
|
|
2365
|
+
}
|
|
2366
|
+
parse(e, t, n, r) {
|
|
2367
|
+
let i = (e) => {
|
|
2368
|
+
let t = Math.floor((e - 1) / 7) * 7;
|
|
2369
|
+
return (e + r.weekStartsOn + 6) % 7 + t;
|
|
2370
|
+
};
|
|
2371
|
+
switch (t) {
|
|
2372
|
+
case "e":
|
|
2373
|
+
case "ee": return P(L(t.length, e), i);
|
|
2374
|
+
case "eo": return P(n.ordinalNumber(e, { unit: "day" }), i);
|
|
2375
|
+
case "eee": return n.day(e, {
|
|
2376
|
+
width: "abbreviated",
|
|
2377
|
+
context: "formatting"
|
|
2378
|
+
}) || n.day(e, {
|
|
2379
|
+
width: "short",
|
|
2380
|
+
context: "formatting"
|
|
2381
|
+
}) || n.day(e, {
|
|
2382
|
+
width: "narrow",
|
|
2383
|
+
context: "formatting"
|
|
2384
|
+
});
|
|
2385
|
+
case "eeeee": return n.day(e, {
|
|
2386
|
+
width: "narrow",
|
|
2387
|
+
context: "formatting"
|
|
2388
|
+
});
|
|
2389
|
+
case "eeeeee": return n.day(e, {
|
|
2390
|
+
width: "short",
|
|
2391
|
+
context: "formatting"
|
|
2392
|
+
}) || n.day(e, {
|
|
2393
|
+
width: "narrow",
|
|
2394
|
+
context: "formatting"
|
|
2395
|
+
});
|
|
2396
|
+
default: return n.day(e, {
|
|
2397
|
+
width: "wide",
|
|
2398
|
+
context: "formatting"
|
|
2399
|
+
}) || n.day(e, {
|
|
2400
|
+
width: "abbreviated",
|
|
2401
|
+
context: "formatting"
|
|
2402
|
+
}) || n.day(e, {
|
|
2403
|
+
width: "short",
|
|
2404
|
+
context: "formatting"
|
|
2405
|
+
}) || n.day(e, {
|
|
2406
|
+
width: "narrow",
|
|
2407
|
+
context: "formatting"
|
|
2408
|
+
});
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2411
|
+
validate(e, t) {
|
|
2412
|
+
return t >= 0 && t <= 6;
|
|
2413
|
+
}
|
|
2414
|
+
set(e, t, n, r) {
|
|
2415
|
+
return e = z(e, n, r), e.setHours(0, 0, 0, 0), e;
|
|
2416
|
+
}
|
|
2417
|
+
}, kt = class extends j {
|
|
2418
|
+
constructor(...e) {
|
|
2419
|
+
super(...e), A(this, "priority", 90), A(this, "incompatibleTokens", [
|
|
2420
|
+
"y",
|
|
2421
|
+
"R",
|
|
2422
|
+
"u",
|
|
2423
|
+
"q",
|
|
2424
|
+
"Q",
|
|
2425
|
+
"M",
|
|
2426
|
+
"L",
|
|
2427
|
+
"I",
|
|
2428
|
+
"d",
|
|
2429
|
+
"D",
|
|
2430
|
+
"E",
|
|
2431
|
+
"i",
|
|
2432
|
+
"e",
|
|
2433
|
+
"t",
|
|
2434
|
+
"T"
|
|
2435
|
+
]);
|
|
2436
|
+
}
|
|
2437
|
+
parse(e, t, n, r) {
|
|
2438
|
+
let i = (e) => {
|
|
2439
|
+
let t = Math.floor((e - 1) / 7) * 7;
|
|
2440
|
+
return (e + r.weekStartsOn + 6) % 7 + t;
|
|
2441
|
+
};
|
|
2442
|
+
switch (t) {
|
|
2443
|
+
case "c":
|
|
2444
|
+
case "cc": return P(L(t.length, e), i);
|
|
2445
|
+
case "co": return P(n.ordinalNumber(e, { unit: "day" }), i);
|
|
2446
|
+
case "ccc": return n.day(e, {
|
|
2447
|
+
width: "abbreviated",
|
|
2448
|
+
context: "standalone"
|
|
2449
|
+
}) || n.day(e, {
|
|
2450
|
+
width: "short",
|
|
2451
|
+
context: "standalone"
|
|
2452
|
+
}) || n.day(e, {
|
|
2453
|
+
width: "narrow",
|
|
2454
|
+
context: "standalone"
|
|
2455
|
+
});
|
|
2456
|
+
case "ccccc": return n.day(e, {
|
|
2457
|
+
width: "narrow",
|
|
2458
|
+
context: "standalone"
|
|
2459
|
+
});
|
|
2460
|
+
case "cccccc": return n.day(e, {
|
|
2461
|
+
width: "short",
|
|
2462
|
+
context: "standalone"
|
|
2463
|
+
}) || n.day(e, {
|
|
2464
|
+
width: "narrow",
|
|
2465
|
+
context: "standalone"
|
|
2466
|
+
});
|
|
2467
|
+
default: return n.day(e, {
|
|
2468
|
+
width: "wide",
|
|
2469
|
+
context: "standalone"
|
|
2470
|
+
}) || n.day(e, {
|
|
2471
|
+
width: "abbreviated",
|
|
2472
|
+
context: "standalone"
|
|
2473
|
+
}) || n.day(e, {
|
|
2474
|
+
width: "short",
|
|
2475
|
+
context: "standalone"
|
|
2476
|
+
}) || n.day(e, {
|
|
2477
|
+
width: "narrow",
|
|
2478
|
+
context: "standalone"
|
|
2479
|
+
});
|
|
2480
|
+
}
|
|
2481
|
+
}
|
|
2482
|
+
validate(e, t) {
|
|
2483
|
+
return t >= 0 && t <= 6;
|
|
2484
|
+
}
|
|
2485
|
+
set(e, t, n, r) {
|
|
2486
|
+
return e = z(e, n, r), e.setHours(0, 0, 0, 0), e;
|
|
2487
|
+
}
|
|
2488
|
+
};
|
|
2489
|
+
//#endregion
|
|
2490
|
+
//#region node_modules/date-fns/getISODay.js
|
|
2491
|
+
function At(e, t) {
|
|
2492
|
+
let n = _(e, t?.in).getDay();
|
|
2493
|
+
return n === 0 ? 7 : n;
|
|
2494
|
+
}
|
|
2495
|
+
//#endregion
|
|
2496
|
+
//#region node_modules/date-fns/setISODay.js
|
|
2497
|
+
function jt(e, t, n) {
|
|
2498
|
+
let r = _(e, n?.in);
|
|
2499
|
+
return Et(r, t - At(r, n), n);
|
|
2500
|
+
}
|
|
2501
|
+
//#endregion
|
|
2502
|
+
//#region node_modules/date-fns/parse/_lib/parsers/ISODayParser.js
|
|
2503
|
+
var Mt = class extends j {
|
|
2504
|
+
constructor(...e) {
|
|
2505
|
+
super(...e), A(this, "priority", 90), A(this, "incompatibleTokens", [
|
|
2506
|
+
"y",
|
|
2507
|
+
"Y",
|
|
2508
|
+
"u",
|
|
2509
|
+
"q",
|
|
2510
|
+
"Q",
|
|
2511
|
+
"M",
|
|
2512
|
+
"L",
|
|
2513
|
+
"w",
|
|
2514
|
+
"d",
|
|
2515
|
+
"D",
|
|
2516
|
+
"E",
|
|
2517
|
+
"e",
|
|
2518
|
+
"c",
|
|
2519
|
+
"t",
|
|
2520
|
+
"T"
|
|
2521
|
+
]);
|
|
2522
|
+
}
|
|
2523
|
+
parse(e, t, n) {
|
|
2524
|
+
let r = (e) => e === 0 ? 7 : e;
|
|
2525
|
+
switch (t) {
|
|
2526
|
+
case "i":
|
|
2527
|
+
case "ii": return L(t.length, e);
|
|
2528
|
+
case "io": return n.ordinalNumber(e, { unit: "day" });
|
|
2529
|
+
case "iii": return P(n.day(e, {
|
|
2530
|
+
width: "abbreviated",
|
|
2531
|
+
context: "formatting"
|
|
2532
|
+
}) || n.day(e, {
|
|
2533
|
+
width: "short",
|
|
2534
|
+
context: "formatting"
|
|
2535
|
+
}) || n.day(e, {
|
|
2536
|
+
width: "narrow",
|
|
2537
|
+
context: "formatting"
|
|
2538
|
+
}), r);
|
|
2539
|
+
case "iiiii": return P(n.day(e, {
|
|
2540
|
+
width: "narrow",
|
|
2541
|
+
context: "formatting"
|
|
2542
|
+
}), r);
|
|
2543
|
+
case "iiiiii": return P(n.day(e, {
|
|
2544
|
+
width: "short",
|
|
2545
|
+
context: "formatting"
|
|
2546
|
+
}) || n.day(e, {
|
|
2547
|
+
width: "narrow",
|
|
2548
|
+
context: "formatting"
|
|
2549
|
+
}), r);
|
|
2550
|
+
default: return P(n.day(e, {
|
|
2551
|
+
width: "wide",
|
|
2552
|
+
context: "formatting"
|
|
2553
|
+
}) || n.day(e, {
|
|
2554
|
+
width: "abbreviated",
|
|
2555
|
+
context: "formatting"
|
|
2556
|
+
}) || n.day(e, {
|
|
2557
|
+
width: "short",
|
|
2558
|
+
context: "formatting"
|
|
2559
|
+
}) || n.day(e, {
|
|
2560
|
+
width: "narrow",
|
|
2561
|
+
context: "formatting"
|
|
2562
|
+
}), r);
|
|
2563
|
+
}
|
|
2564
|
+
}
|
|
2565
|
+
validate(e, t) {
|
|
2566
|
+
return t >= 1 && t <= 7;
|
|
2567
|
+
}
|
|
2568
|
+
set(e, t, n) {
|
|
2569
|
+
return e = jt(e, n), e.setHours(0, 0, 0, 0), e;
|
|
2570
|
+
}
|
|
2571
|
+
}, Nt = class extends j {
|
|
2572
|
+
constructor(...e) {
|
|
2573
|
+
super(...e), A(this, "priority", 80), A(this, "incompatibleTokens", [
|
|
2574
|
+
"b",
|
|
2575
|
+
"B",
|
|
2576
|
+
"H",
|
|
2577
|
+
"k",
|
|
2578
|
+
"t",
|
|
2579
|
+
"T"
|
|
2580
|
+
]);
|
|
2581
|
+
}
|
|
2582
|
+
parse(e, t, n) {
|
|
2583
|
+
switch (t) {
|
|
2584
|
+
case "a":
|
|
2585
|
+
case "aa":
|
|
2586
|
+
case "aaa": return n.dayPeriod(e, {
|
|
2587
|
+
width: "abbreviated",
|
|
2588
|
+
context: "formatting"
|
|
2589
|
+
}) || n.dayPeriod(e, {
|
|
2590
|
+
width: "narrow",
|
|
2591
|
+
context: "formatting"
|
|
2592
|
+
});
|
|
2593
|
+
case "aaaaa": return n.dayPeriod(e, {
|
|
2594
|
+
width: "narrow",
|
|
2595
|
+
context: "formatting"
|
|
2596
|
+
});
|
|
2597
|
+
default: return n.dayPeriod(e, {
|
|
2598
|
+
width: "wide",
|
|
2599
|
+
context: "formatting"
|
|
2600
|
+
}) || n.dayPeriod(e, {
|
|
2601
|
+
width: "abbreviated",
|
|
2602
|
+
context: "formatting"
|
|
2603
|
+
}) || n.dayPeriod(e, {
|
|
2604
|
+
width: "narrow",
|
|
2605
|
+
context: "formatting"
|
|
2606
|
+
});
|
|
2607
|
+
}
|
|
2608
|
+
}
|
|
2609
|
+
set(e, t, n) {
|
|
2610
|
+
return e.setHours(R(n), 0, 0, 0), e;
|
|
2611
|
+
}
|
|
2612
|
+
}, Pt = class extends j {
|
|
2613
|
+
constructor(...e) {
|
|
2614
|
+
super(...e), A(this, "priority", 80), A(this, "incompatibleTokens", [
|
|
2615
|
+
"a",
|
|
2616
|
+
"B",
|
|
2617
|
+
"H",
|
|
2618
|
+
"k",
|
|
2619
|
+
"t",
|
|
2620
|
+
"T"
|
|
2621
|
+
]);
|
|
2622
|
+
}
|
|
2623
|
+
parse(e, t, n) {
|
|
2624
|
+
switch (t) {
|
|
2625
|
+
case "b":
|
|
2626
|
+
case "bb":
|
|
2627
|
+
case "bbb": return n.dayPeriod(e, {
|
|
2628
|
+
width: "abbreviated",
|
|
2629
|
+
context: "formatting"
|
|
2630
|
+
}) || n.dayPeriod(e, {
|
|
2631
|
+
width: "narrow",
|
|
2632
|
+
context: "formatting"
|
|
2633
|
+
});
|
|
2634
|
+
case "bbbbb": return n.dayPeriod(e, {
|
|
2635
|
+
width: "narrow",
|
|
2636
|
+
context: "formatting"
|
|
2637
|
+
});
|
|
2638
|
+
default: return n.dayPeriod(e, {
|
|
2639
|
+
width: "wide",
|
|
2640
|
+
context: "formatting"
|
|
2641
|
+
}) || n.dayPeriod(e, {
|
|
2642
|
+
width: "abbreviated",
|
|
2643
|
+
context: "formatting"
|
|
2644
|
+
}) || n.dayPeriod(e, {
|
|
2645
|
+
width: "narrow",
|
|
2646
|
+
context: "formatting"
|
|
2647
|
+
});
|
|
2648
|
+
}
|
|
2649
|
+
}
|
|
2650
|
+
set(e, t, n) {
|
|
2651
|
+
return e.setHours(R(n), 0, 0, 0), e;
|
|
2652
|
+
}
|
|
2653
|
+
}, Ft = class extends j {
|
|
2654
|
+
constructor(...e) {
|
|
2655
|
+
super(...e), A(this, "priority", 80), A(this, "incompatibleTokens", [
|
|
2656
|
+
"a",
|
|
2657
|
+
"b",
|
|
2658
|
+
"t",
|
|
2659
|
+
"T"
|
|
2660
|
+
]);
|
|
2661
|
+
}
|
|
2662
|
+
parse(e, t, n) {
|
|
2663
|
+
switch (t) {
|
|
2664
|
+
case "B":
|
|
2665
|
+
case "BB":
|
|
2666
|
+
case "BBB": return n.dayPeriod(e, {
|
|
2667
|
+
width: "abbreviated",
|
|
2668
|
+
context: "formatting"
|
|
2669
|
+
}) || n.dayPeriod(e, {
|
|
2670
|
+
width: "narrow",
|
|
2671
|
+
context: "formatting"
|
|
2672
|
+
});
|
|
2673
|
+
case "BBBBB": return n.dayPeriod(e, {
|
|
2674
|
+
width: "narrow",
|
|
2675
|
+
context: "formatting"
|
|
2676
|
+
});
|
|
2677
|
+
default: return n.dayPeriod(e, {
|
|
2678
|
+
width: "wide",
|
|
2679
|
+
context: "formatting"
|
|
2680
|
+
}) || n.dayPeriod(e, {
|
|
2681
|
+
width: "abbreviated",
|
|
2682
|
+
context: "formatting"
|
|
2683
|
+
}) || n.dayPeriod(e, {
|
|
2684
|
+
width: "narrow",
|
|
2685
|
+
context: "formatting"
|
|
2686
|
+
});
|
|
2687
|
+
}
|
|
2688
|
+
}
|
|
2689
|
+
set(e, t, n) {
|
|
2690
|
+
return e.setHours(R(n), 0, 0, 0), e;
|
|
2691
|
+
}
|
|
2692
|
+
}, It = class extends j {
|
|
2693
|
+
constructor(...e) {
|
|
2694
|
+
super(...e), A(this, "priority", 70), A(this, "incompatibleTokens", [
|
|
2695
|
+
"H",
|
|
2696
|
+
"K",
|
|
2697
|
+
"k",
|
|
2698
|
+
"t",
|
|
2699
|
+
"T"
|
|
2700
|
+
]);
|
|
2701
|
+
}
|
|
2702
|
+
parse(e, t, n) {
|
|
2703
|
+
switch (t) {
|
|
2704
|
+
case "h": return F(M.hour12h, e);
|
|
2705
|
+
case "ho": return n.ordinalNumber(e, { unit: "hour" });
|
|
2706
|
+
default: return L(t.length, e);
|
|
2707
|
+
}
|
|
2708
|
+
}
|
|
2709
|
+
validate(e, t) {
|
|
2710
|
+
return t >= 1 && t <= 12;
|
|
2711
|
+
}
|
|
2712
|
+
set(e, t, n) {
|
|
2713
|
+
let r = e.getHours() >= 12;
|
|
2714
|
+
return r && n < 12 ? e.setHours(n + 12, 0, 0, 0) : !r && n === 12 ? e.setHours(0, 0, 0, 0) : e.setHours(n, 0, 0, 0), e;
|
|
2715
|
+
}
|
|
2716
|
+
}, Lt = class extends j {
|
|
2717
|
+
constructor(...e) {
|
|
2718
|
+
super(...e), A(this, "priority", 70), A(this, "incompatibleTokens", [
|
|
2719
|
+
"a",
|
|
2720
|
+
"b",
|
|
2721
|
+
"h",
|
|
2722
|
+
"K",
|
|
2723
|
+
"k",
|
|
2724
|
+
"t",
|
|
2725
|
+
"T"
|
|
2726
|
+
]);
|
|
2727
|
+
}
|
|
2728
|
+
parse(e, t, n) {
|
|
2729
|
+
switch (t) {
|
|
2730
|
+
case "H": return F(M.hour23h, e);
|
|
2731
|
+
case "Ho": return n.ordinalNumber(e, { unit: "hour" });
|
|
2732
|
+
default: return L(t.length, e);
|
|
2733
|
+
}
|
|
2734
|
+
}
|
|
2735
|
+
validate(e, t) {
|
|
2736
|
+
return t >= 0 && t <= 23;
|
|
2737
|
+
}
|
|
2738
|
+
set(e, t, n) {
|
|
2739
|
+
return e.setHours(n, 0, 0, 0), e;
|
|
2740
|
+
}
|
|
2741
|
+
}, Rt = class extends j {
|
|
2742
|
+
constructor(...e) {
|
|
2743
|
+
super(...e), A(this, "priority", 70), A(this, "incompatibleTokens", [
|
|
2744
|
+
"h",
|
|
2745
|
+
"H",
|
|
2746
|
+
"k",
|
|
2747
|
+
"t",
|
|
2748
|
+
"T"
|
|
2749
|
+
]);
|
|
2750
|
+
}
|
|
2751
|
+
parse(e, t, n) {
|
|
2752
|
+
switch (t) {
|
|
2753
|
+
case "K": return F(M.hour11h, e);
|
|
2754
|
+
case "Ko": return n.ordinalNumber(e, { unit: "hour" });
|
|
2755
|
+
default: return L(t.length, e);
|
|
2756
|
+
}
|
|
2757
|
+
}
|
|
2758
|
+
validate(e, t) {
|
|
2759
|
+
return t >= 0 && t <= 11;
|
|
2760
|
+
}
|
|
2761
|
+
set(e, t, n) {
|
|
2762
|
+
return e.getHours() >= 12 && n < 12 ? e.setHours(n + 12, 0, 0, 0) : e.setHours(n, 0, 0, 0), e;
|
|
2763
|
+
}
|
|
2764
|
+
}, zt = class extends j {
|
|
2765
|
+
constructor(...e) {
|
|
2766
|
+
super(...e), A(this, "priority", 70), A(this, "incompatibleTokens", [
|
|
2767
|
+
"a",
|
|
2768
|
+
"b",
|
|
2769
|
+
"h",
|
|
2770
|
+
"H",
|
|
2771
|
+
"K",
|
|
2772
|
+
"t",
|
|
2773
|
+
"T"
|
|
2774
|
+
]);
|
|
2775
|
+
}
|
|
2776
|
+
parse(e, t, n) {
|
|
2777
|
+
switch (t) {
|
|
2778
|
+
case "k": return F(M.hour24h, e);
|
|
2779
|
+
case "ko": return n.ordinalNumber(e, { unit: "hour" });
|
|
2780
|
+
default: return L(t.length, e);
|
|
2781
|
+
}
|
|
2782
|
+
}
|
|
2783
|
+
validate(e, t) {
|
|
2784
|
+
return t >= 1 && t <= 24;
|
|
2785
|
+
}
|
|
2786
|
+
set(e, t, n) {
|
|
2787
|
+
let r = n <= 24 ? n % 24 : n;
|
|
2788
|
+
return e.setHours(r, 0, 0, 0), e;
|
|
2789
|
+
}
|
|
2790
|
+
}, Bt = class extends j {
|
|
2791
|
+
constructor(...e) {
|
|
2792
|
+
super(...e), A(this, "priority", 60), A(this, "incompatibleTokens", ["t", "T"]);
|
|
2793
|
+
}
|
|
2794
|
+
parse(e, t, n) {
|
|
2795
|
+
switch (t) {
|
|
2796
|
+
case "m": return F(M.minute, e);
|
|
2797
|
+
case "mo": return n.ordinalNumber(e, { unit: "minute" });
|
|
2798
|
+
default: return L(t.length, e);
|
|
2799
|
+
}
|
|
2800
|
+
}
|
|
2801
|
+
validate(e, t) {
|
|
2802
|
+
return t >= 0 && t <= 59;
|
|
2803
|
+
}
|
|
2804
|
+
set(e, t, n) {
|
|
2805
|
+
return e.setMinutes(n, 0, 0), e;
|
|
2806
|
+
}
|
|
2807
|
+
}, Vt = class extends j {
|
|
2808
|
+
constructor(...e) {
|
|
2809
|
+
super(...e), A(this, "priority", 50), A(this, "incompatibleTokens", ["t", "T"]);
|
|
2810
|
+
}
|
|
2811
|
+
parse(e, t, n) {
|
|
2812
|
+
switch (t) {
|
|
2813
|
+
case "s": return F(M.second, e);
|
|
2814
|
+
case "so": return n.ordinalNumber(e, { unit: "second" });
|
|
2815
|
+
default: return L(t.length, e);
|
|
2816
|
+
}
|
|
2817
|
+
}
|
|
2818
|
+
validate(e, t) {
|
|
2819
|
+
return t >= 0 && t <= 59;
|
|
2820
|
+
}
|
|
2821
|
+
set(e, t, n) {
|
|
2822
|
+
return e.setSeconds(n, 0), e;
|
|
2823
|
+
}
|
|
2824
|
+
}, Ht = class extends j {
|
|
2825
|
+
constructor(...e) {
|
|
2826
|
+
super(...e), A(this, "priority", 30), A(this, "incompatibleTokens", ["t", "T"]);
|
|
2827
|
+
}
|
|
2828
|
+
parse(e, t) {
|
|
2829
|
+
return P(L(t.length, e), (e) => Math.trunc(e * 10 ** (-t.length + 3)));
|
|
2830
|
+
}
|
|
2831
|
+
set(e, t, n) {
|
|
2832
|
+
return e.setMilliseconds(n), e;
|
|
2833
|
+
}
|
|
2834
|
+
}, Ut = class extends j {
|
|
2835
|
+
constructor(...e) {
|
|
2836
|
+
super(...e), A(this, "priority", 10), A(this, "incompatibleTokens", [
|
|
2837
|
+
"t",
|
|
2838
|
+
"T",
|
|
2839
|
+
"x"
|
|
2840
|
+
]);
|
|
2841
|
+
}
|
|
2842
|
+
parse(e, t) {
|
|
2843
|
+
switch (t) {
|
|
2844
|
+
case "X": return I(N.basicOptionalMinutes, e);
|
|
2845
|
+
case "XX": return I(N.basic, e);
|
|
2846
|
+
case "XXXX": return I(N.basicOptionalSeconds, e);
|
|
2847
|
+
case "XXXXX": return I(N.extendedOptionalSeconds, e);
|
|
2848
|
+
default: return I(N.extended, e);
|
|
2849
|
+
}
|
|
2850
|
+
}
|
|
2851
|
+
set(e, t, n) {
|
|
2852
|
+
return t.timestampIsSet ? e : g(e, e.getTime() - v(e) - n);
|
|
2853
|
+
}
|
|
2854
|
+
}, Wt = class extends j {
|
|
2855
|
+
constructor(...e) {
|
|
2856
|
+
super(...e), A(this, "priority", 10), A(this, "incompatibleTokens", [
|
|
2857
|
+
"t",
|
|
2858
|
+
"T",
|
|
2859
|
+
"X"
|
|
2860
|
+
]);
|
|
2861
|
+
}
|
|
2862
|
+
parse(e, t) {
|
|
2863
|
+
switch (t) {
|
|
2864
|
+
case "x": return I(N.basicOptionalMinutes, e);
|
|
2865
|
+
case "xx": return I(N.basic, e);
|
|
2866
|
+
case "xxxx": return I(N.basicOptionalSeconds, e);
|
|
2867
|
+
case "xxxxx": return I(N.extendedOptionalSeconds, e);
|
|
2868
|
+
default: return I(N.extended, e);
|
|
2869
|
+
}
|
|
2870
|
+
}
|
|
2871
|
+
set(e, t, n) {
|
|
2872
|
+
return t.timestampIsSet ? e : g(e, e.getTime() - v(e) - n);
|
|
2873
|
+
}
|
|
2874
|
+
}, Gt = class extends j {
|
|
2875
|
+
constructor(...e) {
|
|
2876
|
+
super(...e), A(this, "priority", 40), A(this, "incompatibleTokens", "*");
|
|
2877
|
+
}
|
|
2878
|
+
parse(e) {
|
|
2879
|
+
return ot(e);
|
|
2880
|
+
}
|
|
2881
|
+
set(e, t, n) {
|
|
2882
|
+
return [g(e, n * 1e3), { timestampIsSet: !0 }];
|
|
2883
|
+
}
|
|
2884
|
+
}, Kt = class extends j {
|
|
2885
|
+
constructor(...e) {
|
|
2886
|
+
super(...e), A(this, "priority", 20), A(this, "incompatibleTokens", "*");
|
|
2887
|
+
}
|
|
2888
|
+
parse(e) {
|
|
2889
|
+
return ot(e);
|
|
2890
|
+
}
|
|
2891
|
+
set(e, t, n) {
|
|
2892
|
+
return [g(e, n), { timestampIsSet: !0 }];
|
|
2893
|
+
}
|
|
2894
|
+
}, qt = {
|
|
2895
|
+
G: new at(),
|
|
2896
|
+
y: new ut(),
|
|
2897
|
+
Y: new dt(),
|
|
2898
|
+
R: new ft(),
|
|
2899
|
+
u: new pt(),
|
|
2900
|
+
Q: new mt(),
|
|
2901
|
+
q: new ht(),
|
|
2902
|
+
M: new gt(),
|
|
2903
|
+
L: new _t(),
|
|
2904
|
+
w: new yt(),
|
|
2905
|
+
I: new xt(),
|
|
2906
|
+
d: new wt(),
|
|
2907
|
+
D: new Tt(),
|
|
2908
|
+
E: new Dt(),
|
|
2909
|
+
e: new Ot(),
|
|
2910
|
+
c: new kt(),
|
|
2911
|
+
i: new Mt(),
|
|
2912
|
+
a: new Nt(),
|
|
2913
|
+
b: new Pt(),
|
|
2914
|
+
B: new Ft(),
|
|
2915
|
+
h: new It(),
|
|
2916
|
+
H: new Lt(),
|
|
2917
|
+
K: new Rt(),
|
|
2918
|
+
k: new zt(),
|
|
2919
|
+
m: new Bt(),
|
|
2920
|
+
s: new Vt(),
|
|
2921
|
+
S: new Ht(),
|
|
2922
|
+
X: new Ut(),
|
|
2923
|
+
x: new Wt(),
|
|
2924
|
+
t: new Gt(),
|
|
2925
|
+
T: new Kt()
|
|
2926
|
+
}, Jt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Yt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Xt = /^'([^]*?)'?$/, Zt = /''/g, Qt = /\S/, $t = /[a-zA-Z]/;
|
|
2927
|
+
function en(e, t, n, r) {
|
|
2928
|
+
let i = () => g(r?.in || n, NaN), a = Xe(), o = r?.locale ?? a.locale ?? te, s = r?.firstWeekContainsDate ?? r?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, c = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0;
|
|
2929
|
+
if (!t) return e ? i() : _(n, r?.in);
|
|
2930
|
+
let l = {
|
|
2931
|
+
firstWeekContainsDate: s,
|
|
2932
|
+
weekStartsOn: c,
|
|
2933
|
+
locale: o
|
|
2934
|
+
}, u = [new it(r?.in, n)], ee = t.match(Yt).map((e) => {
|
|
2935
|
+
let t = e[0];
|
|
2936
|
+
if (t in E) {
|
|
2937
|
+
let n = E[t];
|
|
2938
|
+
return n(e, o.formatLong);
|
|
2939
|
+
}
|
|
2940
|
+
return e;
|
|
2941
|
+
}).join("").match(Jt), d = [];
|
|
2942
|
+
for (let n of ee) {
|
|
2943
|
+
!r?.useAdditionalWeekYearTokens && De(n) && Oe(n, t, e), !r?.useAdditionalDayOfYearTokens && Ee(n) && Oe(n, t, e);
|
|
2944
|
+
let a = n[0], s = qt[a];
|
|
2945
|
+
if (s) {
|
|
2946
|
+
let { incompatibleTokens: t } = s;
|
|
2947
|
+
if (Array.isArray(t)) {
|
|
2948
|
+
let e = d.find((e) => t.includes(e.token) || e.token === a);
|
|
2949
|
+
if (e) throw RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${n}\` at the same time`);
|
|
2950
|
+
} else if (s.incompatibleTokens === "*" && d.length > 0) throw RangeError(`The format string mustn't contain \`${n}\` and any other token at the same time`);
|
|
2951
|
+
d.push({
|
|
2952
|
+
token: a,
|
|
2953
|
+
fullToken: n
|
|
2954
|
+
});
|
|
2955
|
+
let r = s.run(e, n, o.match, l);
|
|
2956
|
+
if (!r) return i();
|
|
2957
|
+
u.push(r.setter), e = r.rest;
|
|
2958
|
+
} else {
|
|
2959
|
+
if (a.match($t)) throw RangeError("Format string contains an unescaped latin alphabet character `" + a + "`");
|
|
2960
|
+
if (n === "''" ? n = "'" : a === "'" && (n = tn(n)), e.indexOf(n) === 0) e = e.slice(n.length);
|
|
2961
|
+
else return i();
|
|
2962
|
+
}
|
|
2963
|
+
}
|
|
2964
|
+
if (e.length > 0 && Qt.test(e)) return i();
|
|
2965
|
+
let ne = u.map((e) => e.priority).sort((e, t) => t - e).filter((e, t, n) => n.indexOf(e) === t).map((e) => u.filter((t) => t.priority === e).sort((e, t) => t.subPriority - e.subPriority)).map((e) => e[0]), f = _(n, r?.in);
|
|
2966
|
+
if (isNaN(+f)) return i();
|
|
2967
|
+
let p = {};
|
|
2968
|
+
for (let e of ne) {
|
|
2969
|
+
if (!e.validate(f, l)) return i();
|
|
2970
|
+
let t = e.set(f, p, l);
|
|
2971
|
+
Array.isArray(t) ? (f = t[0], Object.assign(p, t[1])) : f = t;
|
|
2972
|
+
}
|
|
2973
|
+
return f;
|
|
2974
|
+
}
|
|
2975
|
+
function tn(e) {
|
|
2976
|
+
return e.match(Xt)[1].replace(Zt, "'");
|
|
2977
|
+
}
|
|
2978
|
+
//#endregion
|
|
2979
|
+
//#region node_modules/date-fns/parseISO.js
|
|
2980
|
+
function B(e, t) {
|
|
2981
|
+
let n = () => g(t?.in, NaN), r = t?.additionalDigits ?? 2, i = on(e), a;
|
|
2982
|
+
if (i.date) {
|
|
2983
|
+
let e = sn(i.date, r);
|
|
2984
|
+
a = cn(e.restDateString, e.year);
|
|
2985
|
+
}
|
|
2986
|
+
if (!a || isNaN(+a)) return n();
|
|
2987
|
+
let o = +a, s = 0, c;
|
|
2988
|
+
if (i.time && (s = ln(i.time), isNaN(s))) return n();
|
|
2989
|
+
if (i.timezone) {
|
|
2990
|
+
if (c = un(i.timezone), isNaN(c)) return n();
|
|
2991
|
+
} else {
|
|
2992
|
+
let e = new Date(o + s), n = _(0, t?.in);
|
|
2993
|
+
return n.setFullYear(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate()), n.setHours(e.getUTCHours(), e.getUTCMinutes(), e.getUTCSeconds(), e.getUTCMilliseconds()), n;
|
|
2994
|
+
}
|
|
2995
|
+
return _(o + s + c, t?.in);
|
|
2996
|
+
}
|
|
2997
|
+
var V = {
|
|
2998
|
+
dateTimeDelimiter: /[T ]/,
|
|
2999
|
+
timeZoneDelimiter: /[Z ]/i,
|
|
3000
|
+
timezone: /([Z+-].*)$/
|
|
3001
|
+
}, nn = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, rn = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, an = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
3002
|
+
function on(e) {
|
|
3003
|
+
let t = {}, n = e.split(V.dateTimeDelimiter), r;
|
|
3004
|
+
if (n.length > 2) return t;
|
|
3005
|
+
if (/:/.test(n[0]) ? r = n[0] : (t.date = n[0], r = n[1], V.timeZoneDelimiter.test(t.date) && (t.date = e.split(V.timeZoneDelimiter)[0], r = e.substr(t.date.length, e.length))), r) {
|
|
3006
|
+
let e = V.timezone.exec(r);
|
|
3007
|
+
e ? (t.time = r.replace(e[1], ""), t.timezone = e[1]) : t.time = r;
|
|
3008
|
+
}
|
|
3009
|
+
return t;
|
|
3010
|
+
}
|
|
3011
|
+
function sn(e, t) {
|
|
3012
|
+
let n = RegExp("^(?:(\\d{4}|[+-]\\d{" + (4 + t) + "})|(\\d{2}|[+-]\\d{" + (2 + t) + "})$)"), r = e.match(n);
|
|
3013
|
+
if (!r) return {
|
|
3014
|
+
year: NaN,
|
|
3015
|
+
restDateString: ""
|
|
3016
|
+
};
|
|
3017
|
+
let i = r[1] ? parseInt(r[1]) : null, a = r[2] ? parseInt(r[2]) : null;
|
|
3018
|
+
return {
|
|
3019
|
+
year: a === null ? i : a * 100,
|
|
3020
|
+
restDateString: e.slice((r[1] || r[2]).length)
|
|
3021
|
+
};
|
|
3022
|
+
}
|
|
3023
|
+
function cn(e, t) {
|
|
3024
|
+
if (t === null) return /* @__PURE__ */ new Date(NaN);
|
|
3025
|
+
let n = e.match(nn);
|
|
3026
|
+
if (!n) return /* @__PURE__ */ new Date(NaN);
|
|
3027
|
+
let r = !!n[4], i = H(n[1]), a = H(n[2]) - 1, o = H(n[3]), s = H(n[4]), c = H(n[5]) - 1;
|
|
3028
|
+
if (r) return gn(t, s, c) ? dn(t, s, c) : /* @__PURE__ */ new Date(NaN);
|
|
3029
|
+
{
|
|
3030
|
+
let e = /* @__PURE__ */ new Date(0);
|
|
3031
|
+
return !mn(t, a, o) || !hn(t, i) ? /* @__PURE__ */ new Date(NaN) : (e.setUTCFullYear(t, a, Math.max(i, o)), e);
|
|
3032
|
+
}
|
|
3033
|
+
}
|
|
3034
|
+
function H(e) {
|
|
3035
|
+
return e ? parseInt(e) : 1;
|
|
3036
|
+
}
|
|
3037
|
+
function ln(e) {
|
|
3038
|
+
let t = e.match(rn);
|
|
3039
|
+
if (!t) return NaN;
|
|
3040
|
+
let n = U(t[1]), r = U(t[2]), i = U(t[3]);
|
|
3041
|
+
return _n(n, r, i) ? n * h + r * m + i * 1e3 : NaN;
|
|
3042
|
+
}
|
|
3043
|
+
function U(e) {
|
|
3044
|
+
return e && parseFloat(e.replace(",", ".")) || 0;
|
|
3045
|
+
}
|
|
3046
|
+
function un(e) {
|
|
3047
|
+
if (e === "Z") return 0;
|
|
3048
|
+
let t = e.match(an);
|
|
3049
|
+
if (!t) return 0;
|
|
3050
|
+
let n = t[1] === "+" ? -1 : 1, r = parseInt(t[2]), i = t[3] && parseInt(t[3]) || 0;
|
|
3051
|
+
return vn(r, i) ? n * (r * h + i * m) : NaN;
|
|
3052
|
+
}
|
|
3053
|
+
function dn(e, t, n) {
|
|
3054
|
+
let r = /* @__PURE__ */ new Date(0);
|
|
3055
|
+
r.setUTCFullYear(e, 0, 4);
|
|
3056
|
+
let i = r.getUTCDay() || 7, a = (t - 1) * 7 + n + 1 - i;
|
|
3057
|
+
return r.setUTCDate(r.getUTCDate() + a), r;
|
|
3058
|
+
}
|
|
3059
|
+
var fn = [
|
|
3060
|
+
31,
|
|
3061
|
+
null,
|
|
3062
|
+
31,
|
|
3063
|
+
30,
|
|
3064
|
+
31,
|
|
3065
|
+
30,
|
|
3066
|
+
31,
|
|
3067
|
+
31,
|
|
3068
|
+
30,
|
|
3069
|
+
31,
|
|
3070
|
+
30,
|
|
3071
|
+
31
|
|
3072
|
+
];
|
|
3073
|
+
function pn(e) {
|
|
3074
|
+
return e % 400 == 0 || e % 4 == 0 && e % 100 != 0;
|
|
3075
|
+
}
|
|
3076
|
+
function mn(e, t, n) {
|
|
3077
|
+
return t >= 0 && t <= 11 && n >= 1 && n <= (fn[t] || (pn(e) ? 29 : 28));
|
|
3078
|
+
}
|
|
3079
|
+
function hn(e, t) {
|
|
3080
|
+
return t >= 1 && t <= (pn(e) ? 366 : 365);
|
|
3081
|
+
}
|
|
3082
|
+
function gn(e, t, n) {
|
|
3083
|
+
return t >= 1 && t <= 53 && n >= 0 && n <= 6;
|
|
3084
|
+
}
|
|
3085
|
+
function _n(e, t, n) {
|
|
3086
|
+
return e === 24 ? t === 0 && n === 0 : n >= 0 && n < 60 && t >= 0 && t < 60 && e >= 0 && e < 25;
|
|
3087
|
+
}
|
|
3088
|
+
function vn(e, t) {
|
|
3089
|
+
return t >= 0 && t <= 59;
|
|
3090
|
+
}
|
|
3091
|
+
//#endregion
|
|
3092
|
+
//#region src/dates.ts
|
|
3093
|
+
var yn = Date.prototype.toJSON, bn = function() {
|
|
3094
|
+
try {
|
|
3095
|
+
let e = this.getHours(), t = this.getMinutes(), n = this.getSeconds(), r = this.getMilliseconds(), i = -(this.getTimezoneOffset() / 60);
|
|
3096
|
+
if (i === .15 && e === 0 && t === 9 && n === 21 || e - i === 0 && t === 0 && n === 0 && r === 0) return this.toISOString().split("T")[0];
|
|
3097
|
+
let a = new Date(this.getFullYear(), this.getMonth(), this.getDate(), e, t, n, r);
|
|
3098
|
+
a.setHours(this.getHours() + i);
|
|
3099
|
+
let o = a.toISOString().replace(/(\.0+)?Z$/, ""), s = i >= 0 ? "+" : "-", c = Math.abs(i) < 10 ? "0" : "";
|
|
3100
|
+
return o + s + c + Math.abs(i).toString().split(".")[0] + ":00";
|
|
3101
|
+
} catch {
|
|
3102
|
+
Date.prototype.toJSON = yn;
|
|
3103
|
+
let e = this.toJSON();
|
|
3104
|
+
return Date.prototype.toJSON = bn, e;
|
|
3105
|
+
}
|
|
3106
|
+
}, xn = new Intl.DateTimeFormat("fr-FR", {
|
|
3107
|
+
day: "numeric",
|
|
3108
|
+
month: "long",
|
|
3109
|
+
weekday: "long",
|
|
3110
|
+
year: "numeric"
|
|
3111
|
+
}), Sn = new Intl.DateTimeFormat("fr-FR", {
|
|
3112
|
+
day: "numeric",
|
|
3113
|
+
month: "short"
|
|
3114
|
+
}), Cn = new Intl.DateTimeFormat("fr-FR", {
|
|
3115
|
+
hour: "numeric",
|
|
3116
|
+
minute: "2-digit"
|
|
3117
|
+
});
|
|
3118
|
+
function wn(e, t) {
|
|
3119
|
+
return e instanceof Date ? e : typeof e == "string" ? B(e) : t;
|
|
3120
|
+
}
|
|
3121
|
+
function Tn(e) {
|
|
3122
|
+
return en(e, "yyyy-MM-ddXXX", /* @__PURE__ */ new Date());
|
|
3123
|
+
}
|
|
3124
|
+
function En(e) {
|
|
3125
|
+
return e = D(B(e), "EEEE d LLLL yyyy H'h'mm", { locale: O }), e.endsWith(" 0h00") && (e = e.substring(0, e.length - 5)), e;
|
|
3126
|
+
}
|
|
3127
|
+
function Dn(e, t) {
|
|
3128
|
+
return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate() ? Cn.format(e) : Sn.format(e);
|
|
3129
|
+
}
|
|
3130
|
+
function On(e) {
|
|
3131
|
+
let t = D(e instanceof Date ? e : B(e), "d LLLL yyyy H'h'mm", { locale: O });
|
|
3132
|
+
return t.endsWith(" 0h00") && (t = t.substring(0, t.length - 5)), t;
|
|
3133
|
+
}
|
|
3134
|
+
function kn(e) {
|
|
3135
|
+
return D(e instanceof Date ? e : B(e), "H'h'mm", { locale: O });
|
|
3136
|
+
}
|
|
3137
|
+
function An(e) {
|
|
3138
|
+
return (/* @__PURE__ */ new Date(e.getTime() - e.getTimezoneOffset() * 6e4)).toISOString().split("T")[0];
|
|
3139
|
+
}
|
|
3140
|
+
//#endregion
|
|
3141
|
+
//#region src/registries.ts
|
|
3142
|
+
var jn = e.registry(), Mn = e.registry(), Nn = e.registry();
|
|
3143
|
+
e.registry(), e.registry();
|
|
3144
|
+
function W() {
|
|
3145
|
+
let t = e.string().trim().min(1, "UID cannot be empty");
|
|
3146
|
+
return jn.add(t, { targetType: "auto" }), t;
|
|
3147
|
+
}
|
|
3148
|
+
function G() {
|
|
3149
|
+
let t = e.string().trim().min(1);
|
|
3150
|
+
return Mn.add(t, { refType: "acteur" }), t;
|
|
3151
|
+
}
|
|
3152
|
+
function K() {
|
|
3153
|
+
let t = e.string().trim().min(1);
|
|
3154
|
+
return Nn.add(t, { refType: "organe" }), t;
|
|
3155
|
+
}
|
|
3156
|
+
var Pn = e.preprocess((e) => {
|
|
3157
|
+
if (typeof e == "object" && e && e["@xsi:nil"] === "true" || typeof e != "string") return;
|
|
3158
|
+
let t = e.trim();
|
|
3159
|
+
if (t !== "") {
|
|
3160
|
+
if (t.includes("T")) try {
|
|
3161
|
+
return B(t);
|
|
3162
|
+
} catch {
|
|
3163
|
+
return e;
|
|
3164
|
+
}
|
|
3165
|
+
if (t.includes("+") || /\d{4}-\d{2}-\d{2}-\d{2}:\d{2}/.test(t)) try {
|
|
3166
|
+
return Tn(t);
|
|
3167
|
+
} catch {
|
|
3168
|
+
return e;
|
|
3169
|
+
}
|
|
3170
|
+
try {
|
|
3171
|
+
return B(t);
|
|
3172
|
+
} catch {
|
|
3173
|
+
return e;
|
|
3174
|
+
}
|
|
3175
|
+
}
|
|
3176
|
+
}, e.date().optional()), q = () => Pn, J = () => Pn.refine((e) => e !== void 0, { message: "Required" }).transform((e) => e), Fn = e.preprocess((e) => {
|
|
3177
|
+
if (typeof e != "string") return e;
|
|
3178
|
+
let t = e.trim();
|
|
3179
|
+
return t === "" ? void 0 : t;
|
|
3180
|
+
}, e.string().optional()), In = (e) => {
|
|
3181
|
+
let t = Fn;
|
|
3182
|
+
return e ? t.describe(e) : t;
|
|
3183
|
+
}, Ln = (e) => {
|
|
3184
|
+
let t = Fn.refine((e) => e !== void 0, { message: "Required" }).transform((e) => e);
|
|
3185
|
+
return e ? t.describe(e) : t;
|
|
3186
|
+
};
|
|
3187
|
+
function Y(t) {
|
|
3188
|
+
return e.preprocess((e) => e == null ? [] : Array.isArray(e) ? e : [e], e.array(t));
|
|
3189
|
+
}
|
|
3190
|
+
//#endregion
|
|
3191
|
+
//#region src/schemas/raw/amendements.ts
|
|
3192
|
+
var Rn = ["Accord", "Sans objet"], X = e.enum(Rn), zn = [
|
|
3193
|
+
"création",
|
|
3194
|
+
"modification",
|
|
3195
|
+
"suppression"
|
|
3196
|
+
], Z = e.enum(zn), Bn = [
|
|
3197
|
+
"B",
|
|
3198
|
+
"C",
|
|
3199
|
+
"D"
|
|
3200
|
+
], Q = e.enum(Bn), Vn = [
|
|
3201
|
+
"ANNEXE",
|
|
3202
|
+
"ARTICLE",
|
|
3203
|
+
"CHAPITRE",
|
|
3204
|
+
"TITRE"
|
|
3205
|
+
], Hn = e.enum(Vn), Un = [
|
|
3206
|
+
"Député",
|
|
3207
|
+
"Gouvernement",
|
|
3208
|
+
"Rapporteur"
|
|
3209
|
+
], Wn = e.enum(Un), Gn = [
|
|
3210
|
+
"Dernier",
|
|
3211
|
+
"Milieu",
|
|
3212
|
+
"Premier"
|
|
3213
|
+
], Kn = e.enum(Gn), qn = e.enum([
|
|
3214
|
+
"AC",
|
|
3215
|
+
"AT",
|
|
3216
|
+
"DI",
|
|
3217
|
+
"effacé",
|
|
3218
|
+
"ER",
|
|
3219
|
+
"ET",
|
|
3220
|
+
"IR",
|
|
3221
|
+
"IRR127",
|
|
3222
|
+
"IRR20",
|
|
3223
|
+
"IRR37",
|
|
3224
|
+
"IRR38",
|
|
3225
|
+
"IRR41",
|
|
3226
|
+
"IRR42",
|
|
3227
|
+
"IRR45",
|
|
3228
|
+
"IRR48",
|
|
3229
|
+
"IRR53",
|
|
3230
|
+
"IRRAI",
|
|
3231
|
+
"IRRAIF",
|
|
3232
|
+
"IRRD",
|
|
3233
|
+
"IRRHC",
|
|
3234
|
+
"IRRHD",
|
|
3235
|
+
"IRRSA",
|
|
3236
|
+
"R",
|
|
3237
|
+
"RT",
|
|
3238
|
+
"T"
|
|
3239
|
+
]), Jn = e.enum([
|
|
3240
|
+
"A discuter",
|
|
3241
|
+
"A déposer",
|
|
3242
|
+
"Discuté",
|
|
3243
|
+
"effacé",
|
|
3244
|
+
"En recevabilité",
|
|
3245
|
+
"En traitement",
|
|
3246
|
+
"Irrecevable",
|
|
3247
|
+
"Irrecevable 40",
|
|
3248
|
+
"Retiré"
|
|
3249
|
+
]), Yn = /* @__PURE__ */ "Adopté.Autre irrecevabilité.Autre irrecevabilité 40.Autres irr LOLF.Autres irr LOLFSS.Cavalier (45).Cavalier budgétaire.Cavalier social.Champ de l'habilitation (38).Charge.CMP (45).Crédits.Disposition réglementaire (37).Domaine de la loi (41).Domaine loi organique (127).Doublon.Entonnoir (45).Gage.Hors champ.Hors-délais.Injonction (20).Irr en première partie.Irr en seconde partie.LOLF.LOLFSS.Non soutenu.Ordre du jour (48).R.Ratification traité (53).Rejeté.Retiré.Retiré après publication.Retiré avant publication.Satisfait ou inopérant (42).Sous-amendement (98).Tombé".split("."), Xn = e.enum(Yn), Zn = e.enum([
|
|
3250
|
+
"A",
|
|
3251
|
+
"Après",
|
|
3252
|
+
"Avant"
|
|
3253
|
+
]), Qn = e.enum(["PDF"]), $n = e.enum(["application"]), $ = e.object({
|
|
3254
|
+
"@xmlns:xsi": e.string(),
|
|
3255
|
+
"@xsi:nil": e.string()
|
|
3256
|
+
}), er = e.object({
|
|
3257
|
+
id: e.string(),
|
|
3258
|
+
libelle: e.string(),
|
|
3259
|
+
autorisationEngagement: e.string(),
|
|
3260
|
+
creditPaiement: e.string(),
|
|
3261
|
+
action: Z
|
|
3262
|
+
}), tr = e.object({
|
|
3263
|
+
"@xmlns:xsi": e.string().optional(),
|
|
3264
|
+
"@xsi:nil": e.string().optional(),
|
|
3265
|
+
ligneCredit: e.union([Y(er), er]).optional().transform((e) => {
|
|
3266
|
+
if (e !== void 0) return Array.isArray(e) ? e : [e];
|
|
3267
|
+
})
|
|
3268
|
+
}), nr = e.object({
|
|
3269
|
+
libelle: e.string(),
|
|
3270
|
+
programmeRef: e.string(),
|
|
3271
|
+
autorisationEngagement: e.string(),
|
|
3272
|
+
creditPaiement: e.string(),
|
|
3273
|
+
action: Z,
|
|
3274
|
+
lignesCredits: tr
|
|
3275
|
+
}), rr = e.object({ programme: Y(nr) }), ir = e.object({
|
|
3276
|
+
listeProgrammes: rr.optional(),
|
|
3277
|
+
soldeAE: e.string().optional(),
|
|
3278
|
+
soldeCP: e.string().optional(),
|
|
3279
|
+
cpEgalAe: e.string()
|
|
3280
|
+
}), ar = e.lazy(() => e.object({
|
|
3281
|
+
libelle: e.string(),
|
|
3282
|
+
programmeRef: e.string().optional(),
|
|
3283
|
+
autorisationEngagementSupplementaire: e.string(),
|
|
3284
|
+
creditPaiementSupplementaire: e.string(),
|
|
3285
|
+
autorisationEngagementAnnule: e.string(),
|
|
3286
|
+
creditPaiementAnnule: e.string(),
|
|
3287
|
+
action: Z,
|
|
3288
|
+
lignesCredits: or.optional(),
|
|
3289
|
+
id: e.string().optional()
|
|
3290
|
+
})), or = e.object({
|
|
3291
|
+
"@xmlns:xsi": e.string().optional(),
|
|
3292
|
+
"@xsi:nil": e.string().optional(),
|
|
3293
|
+
ligneCredit: e.union([Y(ar), ar]).optional().transform((e) => {
|
|
3294
|
+
if (e !== void 0) return Array.isArray(e) ? e : [e];
|
|
3295
|
+
})
|
|
3296
|
+
}), sr = e.object({
|
|
3297
|
+
supplementaire: e.string(),
|
|
3298
|
+
annule: e.string(),
|
|
3299
|
+
solde: e.string()
|
|
3300
|
+
}), cr = e.object({ programme: Y(ar) }), lr = e.object({
|
|
3301
|
+
listeProgrammes: cr.optional(),
|
|
3302
|
+
totalAE: sr.optional(),
|
|
3303
|
+
totalCP: sr.optional(),
|
|
3304
|
+
cpEgalAe: e.string()
|
|
3305
|
+
}), ur = e.object({
|
|
3306
|
+
"@xmlns:xsi": e.string().optional(),
|
|
3307
|
+
"@xsi:nil": e.string().optional(),
|
|
3308
|
+
dispositif: e.string().optional(),
|
|
3309
|
+
dispositifAmdtCreditPLF: ir.optional(),
|
|
3310
|
+
dispositifAmdtCreditPLFR: lr.optional()
|
|
3311
|
+
}), dr = e.object({
|
|
3312
|
+
dispositif: e.string().optional(),
|
|
3313
|
+
avantAppel: ur.optional(),
|
|
3314
|
+
exposeSommaire: e.string().optional(),
|
|
3315
|
+
annexeExposeSommaire: $.optional(),
|
|
3316
|
+
"@xmlns:xsi": e.string().optional(),
|
|
3317
|
+
"@xsi:nil": e.string().optional(),
|
|
3318
|
+
dispositifAmdtCreditPLF: ir.optional(),
|
|
3319
|
+
dispositifAmdtCreditPLFR: lr.optional()
|
|
3320
|
+
}), fr = e.object({
|
|
3321
|
+
cartoucheInformatif: e.union([$, e.string()]).optional(),
|
|
3322
|
+
contenuAuteur: dr.optional(),
|
|
3323
|
+
"@xmlns:xsi": e.string().optional(),
|
|
3324
|
+
"@xsi:nil": e.string().optional()
|
|
3325
|
+
}), pr = e.object({
|
|
3326
|
+
code: qn,
|
|
3327
|
+
libelle: Jn
|
|
3328
|
+
}), mr = e.object({
|
|
3329
|
+
code: qn.optional(),
|
|
3330
|
+
libelle: Xn.optional(),
|
|
3331
|
+
"@xmlns:xsi": e.string().optional(),
|
|
3332
|
+
"@xsi:nil": e.string().optional()
|
|
3333
|
+
}), hr = e.object({
|
|
3334
|
+
etat: pr,
|
|
3335
|
+
sousEtat: mr
|
|
3336
|
+
}), gr = e.object({
|
|
3337
|
+
dateDepot: e.union([$, J()]).optional().transform((e) => {
|
|
3338
|
+
if (e !== void 0 && !(typeof e == "object" && "@xsi:nil" in e)) return e;
|
|
3339
|
+
}),
|
|
3340
|
+
datePublication: e.union([$, J()]).optional().transform((e) => {
|
|
3341
|
+
if (e !== void 0 && !(typeof e == "object" && "@xsi:nil" in e)) return e;
|
|
3342
|
+
}),
|
|
3343
|
+
soumisArticle40: e.string(),
|
|
3344
|
+
etatDesTraitements: hr,
|
|
3345
|
+
dateSort: e.union([$, J()]).optional().transform((e) => {
|
|
3346
|
+
if (e !== void 0 && !(typeof e == "object" && "@xsi:nil" in e)) return e;
|
|
3347
|
+
}),
|
|
3348
|
+
sort: e.union([$, Xn]).optional().transform((e) => {
|
|
3349
|
+
if (e !== void 0 && !(typeof e == "object" && "@xsi:nil" in e)) return e;
|
|
3350
|
+
})
|
|
3351
|
+
}), _r = e.object({
|
|
3352
|
+
"@xmlns:xsi": e.string().optional(),
|
|
3353
|
+
"@xsi:nil": e.string().optional(),
|
|
3354
|
+
idDiscussion: e.string().optional(),
|
|
3355
|
+
typePosition: Kn.optional()
|
|
3356
|
+
}), vr = e.object({
|
|
3357
|
+
numeroLong: e.string(),
|
|
3358
|
+
numeroOrdreDepot: e.string(),
|
|
3359
|
+
prefixeOrganeExamen: e.string(),
|
|
3360
|
+
numeroRect: e.string()
|
|
3361
|
+
}), yr = e.object({
|
|
3362
|
+
"@xmlns:xsi": e.string().optional(),
|
|
3363
|
+
"@xsi:nil": e.string().optional(),
|
|
3364
|
+
codeLoi: e.union([
|
|
3365
|
+
$,
|
|
3366
|
+
e.null(),
|
|
3367
|
+
e.string()
|
|
3368
|
+
]).optional(),
|
|
3369
|
+
divisionCodeLoi: e.union([
|
|
3370
|
+
$,
|
|
3371
|
+
e.null(),
|
|
3372
|
+
e.string()
|
|
3373
|
+
]).optional()
|
|
3374
|
+
}), br = e.object({
|
|
3375
|
+
"@xmlns:xsi": e.string().optional(),
|
|
3376
|
+
"@xsi:nil": e.string().optional(),
|
|
3377
|
+
avant_A_Apres: e.union([
|
|
3378
|
+
$,
|
|
3379
|
+
e.null(),
|
|
3380
|
+
e.string()
|
|
3381
|
+
]).optional(),
|
|
3382
|
+
numero: e.union([$, e.string()]).optional(),
|
|
3383
|
+
alineaDesignation: e.string().optional()
|
|
3384
|
+
}), xr = e.object({ alinea: br }), Sr = e.object({
|
|
3385
|
+
titre: e.string().nullable(),
|
|
3386
|
+
articleDesignationCourte: e.string().nullable(),
|
|
3387
|
+
articleDesignation: e.string().nullable(),
|
|
3388
|
+
type: Hn,
|
|
3389
|
+
avant_A_Apres: Zn,
|
|
3390
|
+
divisionRattachee: e.union([$, e.string()]),
|
|
3391
|
+
articleAdditionnel: e.string(),
|
|
3392
|
+
chapitreAdditionnel: e.string(),
|
|
3393
|
+
urlDivisionTexteVise: e.union([$, e.string()])
|
|
3394
|
+
}), Cr = e.object({
|
|
3395
|
+
codeEtat: Q,
|
|
3396
|
+
codeMissionMinefi: e.string(),
|
|
3397
|
+
libelleMission: e.string(),
|
|
3398
|
+
missionRef: e.string()
|
|
3399
|
+
}), wr = e.object({
|
|
3400
|
+
partieAmendableRef: $,
|
|
3401
|
+
division: Sr.optional(),
|
|
3402
|
+
amendementStandard: xr.optional(),
|
|
3403
|
+
missionVisee: Cr.optional()
|
|
3404
|
+
}), Tr = e.object({ documentURI: e.string() }), Er = e.object({
|
|
3405
|
+
verbatim: e.string(),
|
|
3406
|
+
canonique: e.string(),
|
|
3407
|
+
officielle: e.string(),
|
|
3408
|
+
transcription: e.string(),
|
|
3409
|
+
enregistrement: e.string()
|
|
3410
|
+
}), Dr = e.object({
|
|
3411
|
+
type: $n,
|
|
3412
|
+
subType: Qn
|
|
3413
|
+
}), Or = e.object({
|
|
3414
|
+
nom: Qn,
|
|
3415
|
+
typeMime: Dr,
|
|
3416
|
+
statutRepresentation: Er,
|
|
3417
|
+
repSource: $,
|
|
3418
|
+
offset: $,
|
|
3419
|
+
contenu: Tr,
|
|
3420
|
+
dateDispoRepresentation: $
|
|
3421
|
+
}), kr = e.object({ representation: Or }), Ar = e.object({
|
|
3422
|
+
typeAuteur: Wn,
|
|
3423
|
+
gouvernementRef: e.union([$, e.string()]).optional().transform((e) => {
|
|
3424
|
+
if (e !== void 0 && !(typeof e == "object" && "@xsi:nil" in e)) return e;
|
|
3425
|
+
}),
|
|
3426
|
+
acteurRef: e.union([$, G()]).optional().transform((e) => {
|
|
3427
|
+
if (e !== void 0 && !(typeof e == "object" && "@xsi:nil" in e)) return e;
|
|
3428
|
+
}),
|
|
3429
|
+
groupePolitiqueRef: e.union([$, K()]).optional().transform((e) => {
|
|
3430
|
+
if (e !== void 0 && !(typeof e == "object" && "@xsi:nil" in e)) return e;
|
|
3431
|
+
}),
|
|
3432
|
+
auteurRapporteurOrganeRef: e.union([$, K()]).optional().transform((e) => {
|
|
3433
|
+
if (e !== void 0 && !(typeof e == "object" && "@xsi:nil" in e)) return e;
|
|
3434
|
+
})
|
|
3435
|
+
}), jr = e.object({
|
|
3436
|
+
"@xmlns:xsi": e.string().optional(),
|
|
3437
|
+
"@xsi:nil": e.string().optional(),
|
|
3438
|
+
acteurRef: e.union([Y(G()), G()]).optional().transform((e) => {
|
|
3439
|
+
if (e !== void 0) return Array.isArray(e) ? e : [e];
|
|
3440
|
+
})
|
|
3441
|
+
}), Mr = e.object({
|
|
3442
|
+
auteur: Ar,
|
|
3443
|
+
cosignataires: jr,
|
|
3444
|
+
suffixe: e.union([$, e.string()]).optional().transform((e) => {
|
|
3445
|
+
if (e !== void 0 && !(typeof e == "object" && "@xsi:nil" in e)) return e;
|
|
3446
|
+
}),
|
|
3447
|
+
libelle: e.string().nullable()
|
|
3448
|
+
}), Nr = e.object({
|
|
3449
|
+
"@xmlns": e.string(),
|
|
3450
|
+
uid: W(),
|
|
3451
|
+
chronotag: e.string(),
|
|
3452
|
+
legislature: e.string(),
|
|
3453
|
+
identification: vr,
|
|
3454
|
+
examenRef: e.string(),
|
|
3455
|
+
texteLegislatifRef: e.string(),
|
|
3456
|
+
triAmendement: e.union([$, e.string()]).optional().transform((e) => {
|
|
3457
|
+
if (e !== void 0 && !(typeof e == "object" && "@xsi:nil" in e)) return e;
|
|
3458
|
+
}),
|
|
3459
|
+
cardinaliteAmdtMultiples: e.union([$, e.string()]).optional().transform((e) => {
|
|
3460
|
+
if (e !== void 0 && !(typeof e == "object" && "@xsi:nil" in e)) return e;
|
|
3461
|
+
}),
|
|
3462
|
+
amendementParentRef: e.union([$, e.string()]).optional().transform((e) => {
|
|
3463
|
+
if (e !== void 0 && !(typeof e == "object" && "@xsi:nil" in e)) return e;
|
|
3464
|
+
}),
|
|
3465
|
+
signataires: Mr,
|
|
3466
|
+
pointeurFragmentTexte: wr,
|
|
3467
|
+
corps: fr,
|
|
3468
|
+
cycleDeVie: gr,
|
|
3469
|
+
representations: kr.nullable(),
|
|
3470
|
+
seanceDiscussionRef: e.union([$, e.string()]).optional().transform((e) => {
|
|
3471
|
+
if (e !== void 0 && !(typeof e == "object" && "@xsi:nil" in e)) return e;
|
|
3472
|
+
}),
|
|
3473
|
+
article99: e.string(),
|
|
3474
|
+
loiReference: yr,
|
|
3475
|
+
discussionCommune: _r,
|
|
3476
|
+
discussionIdentique: _r,
|
|
3477
|
+
accordGouvernementDepotHorsDelai: X
|
|
3478
|
+
});
|
|
3479
|
+
e.object({ amendement: Nr });
|
|
3480
|
+
var Pr = e.object({ amendement: Y(Nr) }), Fr = e.object({
|
|
3481
|
+
"@xmlns:xsi": e.string(),
|
|
3482
|
+
refTexteLegislatif: e.string(),
|
|
3483
|
+
amendements: Pr
|
|
3484
|
+
});
|
|
3485
|
+
e.object({ textesLegislatifs: Y(Fr) });
|
|
3486
|
+
//#endregion
|
|
3487
|
+
//#region src/schemas/clean/amendements.ts
|
|
3488
|
+
var Ir = [
|
|
3489
|
+
"AC",
|
|
3490
|
+
"AT",
|
|
3491
|
+
"DI",
|
|
3492
|
+
"effacé",
|
|
3493
|
+
"ER",
|
|
3494
|
+
"ET",
|
|
3495
|
+
"IR",
|
|
3496
|
+
"IRR127",
|
|
3497
|
+
"IRR20",
|
|
3498
|
+
"IRR37",
|
|
3499
|
+
"IRR38",
|
|
3500
|
+
"IRR41",
|
|
3501
|
+
"IRR42",
|
|
3502
|
+
"IRR45",
|
|
3503
|
+
"IRR48",
|
|
3504
|
+
"IRR53",
|
|
3505
|
+
"IRRAI",
|
|
3506
|
+
"IRRAIF",
|
|
3507
|
+
"IRRD",
|
|
3508
|
+
"IRRHC",
|
|
3509
|
+
"IRRHD",
|
|
3510
|
+
"IRRSA",
|
|
3511
|
+
"R",
|
|
3512
|
+
"RT",
|
|
3513
|
+
"T"
|
|
3514
|
+
], Lr = e.enum(Ir), Rr = [
|
|
3515
|
+
"A discuter",
|
|
3516
|
+
"A déposer",
|
|
3517
|
+
"Discuté",
|
|
3518
|
+
"effacé",
|
|
3519
|
+
"En recevabilité",
|
|
3520
|
+
"En traitement",
|
|
3521
|
+
"Irrecevable",
|
|
3522
|
+
"Irrecevable 40",
|
|
3523
|
+
"Retiré"
|
|
3524
|
+
], zr = e.enum(Rr), Br = /* @__PURE__ */ "Adopté.Autre irrecevabilité.Autre irrecevabilité 40.Autres irr LOLF.Autres irr LOLFSS.Cavalier (45).Cavalier budgétaire.Cavalier social.Champ de l'habilitation (38).Charge.CMP (45).Crédits.Disposition réglementaire (37).Domaine de la loi (41).Domaine loi organique (127).Doublon.Entonnoir (45).Gage.Hors champ.Hors-délais.Injonction (20).Irr en première partie.Irr en seconde partie.LOLF.LOLFSS.Non soutenu.Ordre du jour (48).R.Ratification traité (53).Rejeté.Retiré.Retiré après publication.Retiré avant publication.Satisfait ou inopérant (42).Sous-amendement (98).Tombé".split("."), Vr = e.enum(Br), Hr = [
|
|
3525
|
+
"A",
|
|
3526
|
+
"Apres",
|
|
3527
|
+
"Avant"
|
|
3528
|
+
], Ur = e.enum(Hr), Wr = ["PDF"], Gr = e.enum(Wr), Kr = ["application"], qr = e.enum(Kr), Jr = e.object({
|
|
3529
|
+
id: e.string().meta({ description: "La signification de ce champ n'est pas définie." }),
|
|
3530
|
+
libelle: e.string().meta({ description: "Libellé de la ligne de crédit dont le montant doit être modifié." }),
|
|
3531
|
+
autorisationEngagement: e.string().meta({ description: "Modification de {@link https://fr.wikipedia.org/wiki/Autorisation_d%27engagement | l'autorisation d'engagement} de la ligne de crédit." }),
|
|
3532
|
+
creditPaiement: e.string().meta({ description: "Modification du {@link https://fr.wikipedia.org/wiki/Cr%C3%A9dit_de_paiement | crédit de paiement} de la ligne de crédit." }),
|
|
3533
|
+
action: Z
|
|
3534
|
+
}), Yr = e.object({
|
|
3535
|
+
libelle: e.string().meta({ description: "Libellé du programme qui doit être modifié par l'**action**." }),
|
|
3536
|
+
programmeRef: e.string().meta({ description: "La signification de ce champ n'est pas définie." }),
|
|
3537
|
+
autorisationEngagement: e.string().meta({ description: "Modification de {@link https://fr.wikipedia.org/wiki/Autorisation_d%27engagement | l'autorisation d'engagement}." }),
|
|
3538
|
+
creditPaiement: e.string().meta({ description: "Modification du {@link https://fr.wikipedia.org/wiki/Cr%C3%A9dit_de_paiement | crédit de paiement}." }),
|
|
3539
|
+
action: Z.meta({ description: "'creation' s'il s'agit d'un nouveau programme, 'suppression' si le programme doit être supprimé, 'modification' si les montants du programme doivent être modifiés." }),
|
|
3540
|
+
lignesCredits: e.array(Jr).optional().meta({ description: "Liste des lignes de crédit appartenant au programme, le cas échéant." })
|
|
3541
|
+
}), Xr = e.object({
|
|
3542
|
+
listeProgrammes: e.array(Yr).optional().meta({ description: "Liste des programmes composant la mission et des modifications à y apporter. Tous les programmes de la mission sont inclus, même s'ils ne sont pas modifiés (auquel cas les montants des champs **AE** et **CP** sont zero)." }),
|
|
3543
|
+
soldeAE: e.string().optional(),
|
|
3544
|
+
soldeCP: e.string().optional(),
|
|
3545
|
+
cpEgalAe: e.string()
|
|
3546
|
+
}), Zr = e.lazy(() => e.object({
|
|
3547
|
+
libelle: e.string(),
|
|
3548
|
+
programmeRef: e.string().optional(),
|
|
3549
|
+
autorisationEngagementSupplementaire: e.string(),
|
|
3550
|
+
creditPaiementSupplementaire: e.string(),
|
|
3551
|
+
autorisationEngagementAnnule: e.string(),
|
|
3552
|
+
creditPaiementAnnule: e.string(),
|
|
3553
|
+
action: Z,
|
|
3554
|
+
lignesCredits: e.array(Zr).optional(),
|
|
3555
|
+
id: e.string().optional()
|
|
3556
|
+
})), Qr = e.object({
|
|
3557
|
+
supplementaire: e.string().meta({ description: "Montant à ajouter. Nombre positif." }),
|
|
3558
|
+
annule: e.string().meta({ description: "Montant à soustraire. Nombre positif." }),
|
|
3559
|
+
solde: e.string().meta({ description: "Résultat de la soustraction **montantPositif** - **montantNegatif**." })
|
|
3560
|
+
}), $r = e.object({
|
|
3561
|
+
listeProgrammes: e.array(Zr).optional(),
|
|
3562
|
+
totalAE: Qr.optional(),
|
|
3563
|
+
totalCP: Qr.optional(),
|
|
3564
|
+
cpEgalAe: e.string()
|
|
3565
|
+
}), ei = e.object({
|
|
3566
|
+
dispositif: e.string().optional().meta({ description: "Contenu originel du champ **dispositif** dans le cas ou un amendement est modifiée avant qu'il soit {@link http://www2.assemblee-nationale.fr/decouvrir-l-assemblee/role-et-pouvoirs-de-l-assemblee-nationale/les-fonctions-de-l-assemblee-nationale/les-fonctions-legislatives/l-exercice-du-droit-d-amendement-et-annexe#eztoc43696_0_0_2 | appelé}." }),
|
|
3567
|
+
dispositifAmdtCreditPLF: Xr.optional(),
|
|
3568
|
+
dispositifAmdtCreditPLFR: $r.optional()
|
|
3569
|
+
}), ti = e.object({
|
|
3570
|
+
dispositif: e.string().optional().meta({ description: "Description exhaustive des modifications apportées au texte original, au format HTML." }),
|
|
3571
|
+
avantAppel: ei.optional(),
|
|
3572
|
+
exposeSommaire: e.string().optional().meta({ description: "Exposé sommaire des motifs justifiant l'amendement, au format HTML." }),
|
|
3573
|
+
dispositifAmdtCreditPLF: Xr.optional(),
|
|
3574
|
+
dispositifAmdtCreditPLFR: $r.optional()
|
|
3575
|
+
}), ni = e.object({
|
|
3576
|
+
cartoucheInformatif: e.string().optional().meta({ description: "La signification de ce champ est indéfinie." }),
|
|
3577
|
+
contenuAuteur: ti.optional()
|
|
3578
|
+
}), ri = e.object({
|
|
3579
|
+
code: Lr,
|
|
3580
|
+
libelle: zr.meta({ description: "Étape du {@link http://www2.assemblee-nationale.fr/decouvrir-l-assemblee/role-et-pouvoirs-de-l-assemblee-nationale/les-fonctions-de-l-assemblee-nationale/les-fonctions-legislatives/l-exercice-du-droit-d-amendement-et-annexe | cycle de vie de l'amendement}." })
|
|
3581
|
+
}), ii = e.object({
|
|
3582
|
+
code: Lr,
|
|
3583
|
+
libelle: Vr
|
|
3584
|
+
}), ai = e.object({
|
|
3585
|
+
etat: ri,
|
|
3586
|
+
sousEtat: ii.optional()
|
|
3587
|
+
}), oi = e.object({
|
|
3588
|
+
dateDepot: q().meta({ description: "Date de dépôt" }),
|
|
3589
|
+
datePublication: q().meta({ description: "Date de publication" }),
|
|
3590
|
+
soumisArticle40: e.string(),
|
|
3591
|
+
etatDesTraitements: ai.meta({ description: "Étape du {@link http://www2.assemblee-nationale.fr/decouvrir-l-assemblee/role-et-pouvoirs-de-l-assemblee-nationale/les-fonctions-de-l-assemblee-nationale/les-fonctions-legislatives/l-exercice-du-droit-d-amendement-et-annexe | cycle de vie de l'amendement}." }),
|
|
3592
|
+
dateSort: q().meta({ description: "Date du sort" }),
|
|
3593
|
+
sort: Vr.optional().meta({ description: "'Adopté' si l'amendement est adopté, 'Non soutenu' si l'amendement n'a pas été soutenu par son auteur lorsqu'il a été appelé, 'Rejeté' si le vote a rejeté l'amendement, 'Retiré' si l'amendement a été retiré après avoir été déposé et avant d'avoir été appelé, 'Tombé' lorsque l'amendement est {@link http://www2.assemblee-nationale.fr/decouvrir-l-assemblee/role-et-pouvoirs-de-l-assemblee-nationale/les-fonctions-de-l-assemblee-nationale/les-fonctions-legislatives/l-exercice-du-droit-d-amendement-et-annexe | rendu sans objet} en raison du vote d'un amendement appelé avant lui." })
|
|
3594
|
+
}), si = e.object({
|
|
3595
|
+
idDiscussion: e.string().optional(),
|
|
3596
|
+
typePosition: Kn.optional()
|
|
3597
|
+
}), ci = e.object({
|
|
3598
|
+
numeroLong: e.string().meta({ description: "Libelle désignant l'amendement et incluant son numéro (correspondant au champ **numero**), une indication du nombre de rectifications qui lui ont été apportés (correspondant au champ **identifiant.numRect** et {@link https://forum.en-root.org/t/signification-du-champ-numerolong-dans-un-amendement/163 | d'autres informations} dérivées du champ **identifiant**." }),
|
|
3599
|
+
numeroOrdreDepot: e.string().meta({ description: "Numéro de dépôt attribué selon l'ordre d'arrivée des amendements. Il est unique pour un texte donné et il ne change pas lorsque l'amendement est {@link http://www.senat.fr/fileadmin/Fichiers/Images/seance/Guide_amendements_MAJ_Mars__2016.pdf | rectifié}." }),
|
|
3600
|
+
prefixeOrganeExamen: e.string().meta({ description: "L'identifiant unique de {@link Organe | l'organe} auprès duquel l'amendement est déposé (i.e. l'assemblée ou une commission)." }),
|
|
3601
|
+
numeroRect: e.string().meta({ description: "Reflète le nombre de {@link http://www.senat.fr/fileadmin/Fichiers/Images/seance/Guide_amendements_MAJ_Mars__2016.pdf | rectifications} apportées à l'amendement. 0: aucune rectification, 1: une rectification, 50: deux rectifications, 51: trois rectifications, 52: quatre rectifications." })
|
|
3602
|
+
}), li = e.object({
|
|
3603
|
+
codeLoi: e.string().optional(),
|
|
3604
|
+
divisionCodeLoi: e.string().optional()
|
|
3605
|
+
}), ui = e.object({
|
|
3606
|
+
avantAApres: Ur.optional().meta({ description: "Avant: un ajout avant l'alinéa **numero**, Après: un ajout avant après l'alinéa **numero**, A: une modification ou suppression de l'alinéa **numero** et suivants le cas échéant" }),
|
|
3607
|
+
numero: e.string().optional().meta({ description: "Numéro de l'alinéa. Pour le calcul des alinéas au sein d'un amendement sous-amendé, le {@link https://fr.wikipedia.org/wiki/Chapeau_(presse) | chapeau} de l'amendement est décomptée comme un alinéa." }),
|
|
3608
|
+
alineaDesignation: e.string().optional().meta({ description: "Texte complémentaire qui est ajouté au {@link https://fr.wikipedia.org/wiki/Chapeau_(presse) | chapeau} de l'amendement (qui se trouve dans le champ divisionRattachee) et qui précise éventuellement l'emplacement de l'alinéa visé par l'amendement." })
|
|
3609
|
+
}), di = e.object({
|
|
3610
|
+
titre: e.string().optional().meta({ description: "Libellé de la division qui est visé par l'amendement (voir aussi le champ type)." }),
|
|
3611
|
+
articleDesignationCourte: e.string().optional().meta({ description: "Version courte du {@link https://fr.wikipedia.org/wiki/Chapeau_(presse) | chapeau} de l'amendement, c'est dire le contenu du champ divisionRattachee." }),
|
|
3612
|
+
articleDesignation: e.string().optional(),
|
|
3613
|
+
type: Hn.meta({ description: "Division du texte visée par l'amendement." }),
|
|
3614
|
+
avantAApres: Ur.meta({ description: "Avant: un ajout avant la division visée par l'amendement, Après: un ajout avant après la division visée par l'amendement, A: une modification ou suppression la division visée par l'amendement." }),
|
|
3615
|
+
divisionRattachee: e.string().optional().meta({ description: "{@link https://fr.wikipedia.org/wiki/Chapeau_(presse) | Chapeau} de l'amendement, décrivant précisément l'emplacement du texte modifié par l'amendement et l'action (modifier, supprimer, insérer)." }),
|
|
3616
|
+
articleAdditionnel: e.string().meta({ description: "Égal à 1 si l'amendement rajoute un article." }),
|
|
3617
|
+
chapitreAdditionnel: e.string().meta({ description: "Égal à 1 si l'amendement rajoute un chapitre." }),
|
|
3618
|
+
urlDivisionTexteVise: e.string().optional().meta({ description: "URL du texte sur http://www.assemblee-nationale.fr, y compris le fragment qui désigne la division visée par l'amendement, tel que décrite dans le champ divisionRattachee." })
|
|
3619
|
+
}), fi = e.object({
|
|
3620
|
+
codeEtat: Q.meta({ description: "Code de l'état du projet de loi de finance sur lequel l'amendement a un impact indirect. Par exemple {@link http://www.assemblee-nationale.fr/15/textes/1490.asp#D_Etat_B | l'état B du PLF 2019}. Correspond exactement au champ libelleMissionPLF." }),
|
|
3621
|
+
codeMissionMinefi: e.string().meta({ description: "La signification de ce champ n'est pas définie" }),
|
|
3622
|
+
libelleMission: e.string().meta({ description: "Libellé de la mission, à l'intérieur de l'état désigné par codeMissionPLF, sur laquelle l'amendement a un impact indirect." }),
|
|
3623
|
+
missionRef: e.string().meta({ description: "Libellé de l'état du projet de loi de finance sur lequel l'amendement a un impact indirect. Par exemple la {@link http://www.assemblee-nationale.fr/15/textes/1490.asp#D_Etat_B | RÉPARTITION, PAR MISSION ET PROGRAMME, DES CRÉDITS DU BUDGET GÉNÉRAL du PLF 2019}. Correspond exactement au champ codeMissionPLF." })
|
|
3624
|
+
}), pi = e.object({
|
|
3625
|
+
division: di.optional().meta({ description: "Partie du texte visé par l'amendement, éventuellement précisé par l'alinéa (voir le champ alinea)." }),
|
|
3626
|
+
alinea: ui.optional().meta({ description: "L'alinéa sur lequel porte la modification, à l'intérieur d'une division du texte (voir le champ division)." }),
|
|
3627
|
+
missionVisee: fi.optional().meta({ description: "{@link https://www.performance-publique.budget.gouv.fr/ressources-documentaires/documentation-budgetaire/chiffres-cles-budget-etat | Mission} du projet de loi de finance visé par l'amendement." })
|
|
3628
|
+
}), mi = e.object({ documentURI: e.string().meta({ description: "Chemin de l'amendement qui permet de composer son URL sur ce modèle: http://www.assemblee-nationale.fr/__documentURI__." }) }), hi = e.object({
|
|
3629
|
+
verbatim: e.boolean().meta({ description: "La signification de ce champ est indéfinie." }),
|
|
3630
|
+
canonique: e.boolean().meta({ description: "La signification de ce champ est indéfinie." }),
|
|
3631
|
+
officielle: e.boolean().meta({ description: "La signification de ce champ est indéfinie." }),
|
|
3632
|
+
transcription: e.boolean().meta({ description: "La signification de ce champ est indéfinie." }),
|
|
3633
|
+
enregistrement: e.boolean().meta({ description: "La signification de ce champ est indéfinie." })
|
|
3634
|
+
}), gi = e.object({
|
|
3635
|
+
type: qr.meta({ description: "Type MIME principal, par exemple 'application'." }),
|
|
3636
|
+
subType: Gr.meta({ description: "Sous-type MIME, par exemple 'pdf'." })
|
|
3637
|
+
}), _i = e.object({
|
|
3638
|
+
nom: Gr.meta({ description: "Format du document." }),
|
|
3639
|
+
typeMime: gi.meta({ description: "Type MIME du document." }),
|
|
3640
|
+
statutRepresentation: hi.meta({ description: "La signification de ces champs est indéfinie." }),
|
|
3641
|
+
contenu: mi
|
|
3642
|
+
}), vi = e.object({
|
|
3643
|
+
typeAuteur: Wn.meta({ description: "'Depute' si l'auteur dépose l'amendement en sa qualité de député, 'Gouvernement' s'il le fait au nom du gouvernement, 'Rapporteur' s'il est le rapporteur de la commission désignée par **organeRef**." }),
|
|
3644
|
+
gouvernementRef: K().optional().meta({ description: "Référence au gouvernement" }),
|
|
3645
|
+
acteurRef: G().optional().meta({ description: "Référence à l'acteur" }),
|
|
3646
|
+
groupePolitiqueRef: K().optional().meta({ description: "Référence au groupe politique" }),
|
|
3647
|
+
auteurRapporteurOrganeRef: K().optional().meta({ description: "Référence à l'organe du rapporteur" })
|
|
3648
|
+
}), yi = e.object({
|
|
3649
|
+
auteur: vi.meta({ description: "Auteur de l'amendement ainsi que son mandat et son affiliation." }),
|
|
3650
|
+
cosignatairesRefs: e.array(G()).optional().meta({ description: "Référence au cosignataire" }),
|
|
3651
|
+
suffixe: e.string().optional(),
|
|
3652
|
+
libelle: e.string().optional().meta({ description: "Les noms de l'auteur et des co-signataires de l'amendement." })
|
|
3653
|
+
}), bi = e.object({
|
|
3654
|
+
schemaVersion: e.string().optional(),
|
|
3655
|
+
uid: W().meta({ description: "Identifiant unique de l'amendement" }),
|
|
3656
|
+
chronotag: e.string(),
|
|
3657
|
+
legislature: e.string(),
|
|
3658
|
+
identification: ci,
|
|
3659
|
+
examenRef: e.string(),
|
|
3660
|
+
texteLegislatifRef: e.string(),
|
|
3661
|
+
triAmendement: e.string().optional().meta({ description: "Lorsque tous les amendements visant un texte de loi sont triés sur cette clé, cela détermine leur ordre d'appel." }),
|
|
3662
|
+
cardinaliteAmdtMultiples: e.string().optional().meta({ description: "Le contenu de ce champ n'est pas défini." }),
|
|
3663
|
+
amendementParentRef: e.string().optional().meta({ description: "L'identifiant unique (uid) de l'amendement modifié par un {@link http://www2.assemblee-nationale.fr/decouvrir-l-assemblee/role-et-pouvoirs-de-l-assemblee-nationale/les-fonctions-de-l-assemblee-nationale/les-fonctions-legislatives/l-exercice-du-droit-d-amendement-et-annexe | sous amendement}. Les amendements peuvent faire l'objet de sous-amendements qui doivent respecter les mêmes règles formelles que les amendements." }),
|
|
3664
|
+
signataires: yi,
|
|
3665
|
+
pointeurFragmentTexte: pi,
|
|
3666
|
+
corps: ni.optional(),
|
|
3667
|
+
cycleDeVie: oi,
|
|
3668
|
+
representation: _i.optional(),
|
|
3669
|
+
seanceDiscussionRef: e.string().optional().meta({ description: "Identifiant unique (uid) de la {@link Reunion | séance durant laquelle l'amendement a été discuté}." }),
|
|
3670
|
+
article99: e.string().meta({ description: "Amendement déposé par le rapporteur d'une commission ou le gouvernement, après le délai imposé aux députés, en application de {@link http://www2.assemblee-nationale.fr/decouvrir-l-assemblee/textes-de-reference/reglement-de-l-assemblee-nationale/titre-ii/premiere-partie/chapitre-iv/article-99 | l'alinéa 2 de l'article 99 du règlement de l'assemblée nationale}" }),
|
|
3671
|
+
loiReference: li.optional().meta({ description: "La signification de ce champ est indéfinie." }),
|
|
3672
|
+
discussionCommune: si.optional(),
|
|
3673
|
+
discussionIdentique: si.optional(),
|
|
3674
|
+
accordGouvernementDepotHorsDelai: X
|
|
3675
|
+
}), xi = e.object({
|
|
3676
|
+
refTexteLegislatif: e.string(),
|
|
3677
|
+
amendements: e.array(bi)
|
|
3678
|
+
}), Si = e.object({ textesLegislatifs: e.array(xi) });
|
|
3679
|
+
function Ci(e) {
|
|
3680
|
+
let t = bi.safeParse(JSON.parse(e));
|
|
3681
|
+
if (!t.success) throw Error(ki("AmendementClean", t.error));
|
|
3682
|
+
return t.data;
|
|
3683
|
+
}
|
|
3684
|
+
function wi(e) {
|
|
3685
|
+
let t = xi.safeParse(JSON.parse(e));
|
|
3686
|
+
if (!t.success) throw Error(ki("TexteLegislatifClean", t.error));
|
|
3687
|
+
return t.data;
|
|
3688
|
+
}
|
|
3689
|
+
function Ti(e) {
|
|
3690
|
+
let t = Si.safeParse(JSON.parse(e));
|
|
3691
|
+
if (!t.success) throw Error(ki("AmendementsClean", t.error));
|
|
3692
|
+
return t.data;
|
|
3693
|
+
}
|
|
3694
|
+
function Ei(e) {
|
|
3695
|
+
return JSON.stringify(e, null, 2);
|
|
3696
|
+
}
|
|
3697
|
+
function Di(e) {
|
|
3698
|
+
return JSON.stringify(e, null, 2);
|
|
3699
|
+
}
|
|
3700
|
+
function Oi(e) {
|
|
3701
|
+
return JSON.stringify(e, null, 2);
|
|
3702
|
+
}
|
|
3703
|
+
function ki(e, t) {
|
|
3704
|
+
return `Invalid ${e}:\n${t.issues.map((e) => ` - ${e.path.join(".")}: ${e.message}`).join("\n")}`;
|
|
3705
|
+
}
|
|
3706
|
+
var Ai = {
|
|
3707
|
+
toAmendement: Ci,
|
|
3708
|
+
amendementToJson: Ei,
|
|
3709
|
+
toTexteLegislatif: wi,
|
|
3710
|
+
texteLegislatifToJson: Di,
|
|
3711
|
+
toAmendements: Ti,
|
|
3712
|
+
amendementsToJson: Oi
|
|
3713
|
+
};
|
|
3714
|
+
//#endregion
|
|
3715
|
+
export { En as A, en as B, Y as C, W as D, Ln as E, On as F, S as H, Cn as I, kn as L, Dn as M, xn as N, wn as O, Sn as P, An as R, J as S, In as T, _ as U, O as V, Vn as _, Br as a, G as b, X as c, Hn as d, Wn as f, Bn as g, zn as h, Rr as i, yn as j, Tn as k, Z as l, Rn as m, Hr as n, Wr as o, Kn as p, Ir as r, Kr as s, Ai as t, Q as u, Un as v, K as w, q as x, Gn as y, bn as z };
|