@tricoteuses/assemblee 2.5.30 → 3.0.0

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