@m4l/layouts 0.1.14 → 0.1.16

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.
@@ -0,0 +1,1601 @@
1
+ import { c as le } from "./vendor.9dd106b8.js";
2
+ function G() {
3
+ return G = Object.assign ? Object.assign.bind() : function(r) {
4
+ for (var t = 1; t < arguments.length; t++) {
5
+ var e = arguments[t];
6
+ for (var n in e)
7
+ Object.prototype.hasOwnProperty.call(e, n) && (r[n] = e[n]);
8
+ }
9
+ return r;
10
+ }, G.apply(this, arguments);
11
+ }
12
+ var F;
13
+ (function(r) {
14
+ r.Pop = "POP", r.Push = "PUSH", r.Replace = "REPLACE";
15
+ })(F || (F = {}));
16
+ var J = process.env.NODE_ENV !== "production" ? function(r) {
17
+ return Object.freeze(r);
18
+ } : function(r) {
19
+ return r;
20
+ };
21
+ function ce(r, t) {
22
+ if (!r) {
23
+ typeof console < "u" && console.warn(t);
24
+ try {
25
+ throw new Error(t);
26
+ } catch {
27
+ }
28
+ }
29
+ }
30
+ var K = "beforeunload", de = "popstate";
31
+ function Et(r) {
32
+ r === void 0 && (r = {});
33
+ var t = r, e = t.window, n = e === void 0 ? document.defaultView : e, a = n.history;
34
+ function i() {
35
+ var l = n.location, d = l.pathname, S = l.search, D = l.hash, W = a.state || {};
36
+ return [W.idx, J({
37
+ pathname: d,
38
+ search: S,
39
+ hash: D,
40
+ state: W.usr || null,
41
+ key: W.key || "default"
42
+ })];
43
+ }
44
+ var u = null;
45
+ function f() {
46
+ if (u)
47
+ p.call(u), u = null;
48
+ else {
49
+ var l = F.Pop, d = i(), S = d[0], D = d[1];
50
+ if (p.length)
51
+ if (S != null) {
52
+ var W = y - S;
53
+ W && (u = {
54
+ action: l,
55
+ location: D,
56
+ retry: function() {
57
+ P(W * -1);
58
+ }
59
+ }, P(W));
60
+ } else
61
+ process.env.NODE_ENV !== "production" && ce(
62
+ !1,
63
+ "You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation."
64
+ );
65
+ else
66
+ C(l);
67
+ }
68
+ }
69
+ n.addEventListener(de, f);
70
+ var m = F.Pop, h = i(), y = h[0], g = h[1], T = ee(), p = ee();
71
+ y == null && (y = 0, a.replaceState(G({}, a.state, {
72
+ idx: y
73
+ }), ""));
74
+ function o(l) {
75
+ return typeof l == "string" ? l : me(l);
76
+ }
77
+ function s(l, d) {
78
+ return d === void 0 && (d = null), J(G({
79
+ pathname: g.pathname,
80
+ hash: "",
81
+ search: ""
82
+ }, typeof l == "string" ? he(l) : l, {
83
+ state: d,
84
+ key: fe()
85
+ }));
86
+ }
87
+ function c(l, d) {
88
+ return [{
89
+ usr: l.state,
90
+ key: l.key,
91
+ idx: d
92
+ }, o(l)];
93
+ }
94
+ function b(l, d, S) {
95
+ return !p.length || (p.call({
96
+ action: l,
97
+ location: d,
98
+ retry: S
99
+ }), !1);
100
+ }
101
+ function C(l) {
102
+ m = l;
103
+ var d = i();
104
+ y = d[0], g = d[1], T.call({
105
+ action: m,
106
+ location: g
107
+ });
108
+ }
109
+ function k(l, d) {
110
+ var S = F.Push, D = s(l, d);
111
+ function W() {
112
+ k(l, d);
113
+ }
114
+ if (b(S, D, W)) {
115
+ var U = c(D, y + 1), R = U[0], L = U[1];
116
+ try {
117
+ a.pushState(R, "", L);
118
+ } catch {
119
+ n.location.assign(L);
120
+ }
121
+ C(S);
122
+ }
123
+ }
124
+ function w(l, d) {
125
+ var S = F.Replace, D = s(l, d);
126
+ function W() {
127
+ w(l, d);
128
+ }
129
+ if (b(S, D, W)) {
130
+ var U = c(D, y), R = U[0], L = U[1];
131
+ a.replaceState(R, "", L), C(S);
132
+ }
133
+ }
134
+ function P(l) {
135
+ a.go(l);
136
+ }
137
+ var O = {
138
+ get action() {
139
+ return m;
140
+ },
141
+ get location() {
142
+ return g;
143
+ },
144
+ createHref: o,
145
+ push: k,
146
+ replace: w,
147
+ go: P,
148
+ back: function() {
149
+ P(-1);
150
+ },
151
+ forward: function() {
152
+ P(1);
153
+ },
154
+ listen: function(d) {
155
+ return T.push(d);
156
+ },
157
+ block: function(d) {
158
+ var S = p.push(d);
159
+ return p.length === 1 && n.addEventListener(K, Z), function() {
160
+ S(), p.length || n.removeEventListener(K, Z);
161
+ };
162
+ }
163
+ };
164
+ return O;
165
+ }
166
+ function Z(r) {
167
+ r.preventDefault(), r.returnValue = "";
168
+ }
169
+ function ee() {
170
+ var r = [];
171
+ return {
172
+ get length() {
173
+ return r.length;
174
+ },
175
+ push: function(e) {
176
+ return r.push(e), function() {
177
+ r = r.filter(function(n) {
178
+ return n !== e;
179
+ });
180
+ };
181
+ },
182
+ call: function(e) {
183
+ r.forEach(function(n) {
184
+ return n && n(e);
185
+ });
186
+ }
187
+ };
188
+ }
189
+ function fe() {
190
+ return Math.random().toString(36).substr(2, 8);
191
+ }
192
+ function me(r) {
193
+ var t = r.pathname, e = t === void 0 ? "/" : t, n = r.search, a = n === void 0 ? "" : n, i = r.hash, u = i === void 0 ? "" : i;
194
+ return a && a !== "?" && (e += a.charAt(0) === "?" ? a : "?" + a), u && u !== "#" && (e += u.charAt(0) === "#" ? u : "#" + u), e;
195
+ }
196
+ function he(r) {
197
+ var t = {};
198
+ if (r) {
199
+ var e = r.indexOf("#");
200
+ e >= 0 && (t.hash = r.substr(e), r = r.substr(0, e));
201
+ var n = r.indexOf("?");
202
+ n >= 0 && (t.search = r.substr(n), r = r.substr(0, n)), r && (t.pathname = r);
203
+ }
204
+ return t;
205
+ }
206
+ function $(r) {
207
+ if (r === null || r === !0 || r === !1)
208
+ return NaN;
209
+ var t = Number(r);
210
+ return isNaN(t) ? t : t < 0 ? Math.ceil(t) : Math.floor(t);
211
+ }
212
+ function M(r, t) {
213
+ if (t.length < r)
214
+ throw new TypeError(r + " argument" + (r > 1 ? "s" : "") + " required, but only " + t.length + " present");
215
+ }
216
+ function A(r) {
217
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? A = function(e) {
218
+ return typeof e;
219
+ } : A = function(e) {
220
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
221
+ }, A(r);
222
+ }
223
+ function E(r) {
224
+ M(1, arguments);
225
+ var t = Object.prototype.toString.call(r);
226
+ return r instanceof Date || A(r) === "object" && t === "[object Date]" ? new Date(r.getTime()) : typeof r == "number" || t === "[object Number]" ? new Date(r) : ((typeof r == "string" || t === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), new Date(NaN));
227
+ }
228
+ function ve(r, t) {
229
+ M(2, arguments);
230
+ var e = E(r).getTime(), n = $(t);
231
+ return new Date(e + n);
232
+ }
233
+ var ge = {};
234
+ function j() {
235
+ return ge;
236
+ }
237
+ function we(r) {
238
+ var t = new Date(Date.UTC(r.getFullYear(), r.getMonth(), r.getDate(), r.getHours(), r.getMinutes(), r.getSeconds(), r.getMilliseconds()));
239
+ return t.setUTCFullYear(r.getFullYear()), r.getTime() - t.getTime();
240
+ }
241
+ function X(r) {
242
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? X = function(e) {
243
+ return typeof e;
244
+ } : X = function(e) {
245
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
246
+ }, X(r);
247
+ }
248
+ function ye(r) {
249
+ return M(1, arguments), r instanceof Date || X(r) === "object" && Object.prototype.toString.call(r) === "[object Date]";
250
+ }
251
+ function pe(r) {
252
+ if (M(1, arguments), !ye(r) && typeof r != "number")
253
+ return !1;
254
+ var t = E(r);
255
+ return !isNaN(Number(t));
256
+ }
257
+ function be(r, t) {
258
+ M(2, arguments);
259
+ var e = $(t);
260
+ return ve(r, -e);
261
+ }
262
+ var Te = 864e5;
263
+ function Ce(r) {
264
+ M(1, arguments);
265
+ var t = E(r), e = t.getTime();
266
+ t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
267
+ var n = t.getTime(), a = e - n;
268
+ return Math.floor(a / Te) + 1;
269
+ }
270
+ function I(r) {
271
+ M(1, arguments);
272
+ var t = 1, e = E(r), n = e.getUTCDay(), a = (n < t ? 7 : 0) + n - t;
273
+ return e.setUTCDate(e.getUTCDate() - a), e.setUTCHours(0, 0, 0, 0), e;
274
+ }
275
+ function ie(r) {
276
+ M(1, arguments);
277
+ var t = E(r), e = t.getUTCFullYear(), n = new Date(0);
278
+ n.setUTCFullYear(e + 1, 0, 4), n.setUTCHours(0, 0, 0, 0);
279
+ var a = I(n), i = new Date(0);
280
+ i.setUTCFullYear(e, 0, 4), i.setUTCHours(0, 0, 0, 0);
281
+ var u = I(i);
282
+ return t.getTime() >= a.getTime() ? e + 1 : t.getTime() >= u.getTime() ? e : e - 1;
283
+ }
284
+ function Pe(r) {
285
+ M(1, arguments);
286
+ var t = ie(r), e = new Date(0);
287
+ e.setUTCFullYear(t, 0, 4), e.setUTCHours(0, 0, 0, 0);
288
+ var n = I(e);
289
+ return n;
290
+ }
291
+ var Oe = 6048e5;
292
+ function Se(r) {
293
+ M(1, arguments);
294
+ var t = E(r), e = I(t).getTime() - Pe(t).getTime();
295
+ return Math.round(e / Oe) + 1;
296
+ }
297
+ function V(r, t) {
298
+ var e, n, a, i, u, f, m, h;
299
+ M(1, arguments);
300
+ var y = j(), g = $((e = (n = (a = (i = t?.weekStartsOn) !== null && i !== void 0 ? i : t == null || (u = t.locale) === null || u === void 0 || (f = u.options) === null || f === void 0 ? void 0 : f.weekStartsOn) !== null && a !== void 0 ? a : y.weekStartsOn) !== null && n !== void 0 ? n : (m = y.locale) === null || m === void 0 || (h = m.options) === null || h === void 0 ? void 0 : h.weekStartsOn) !== null && e !== void 0 ? e : 0);
301
+ if (!(g >= 0 && g <= 6))
302
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
303
+ var T = E(r), p = T.getUTCDay(), o = (p < g ? 7 : 0) + p - g;
304
+ return T.setUTCDate(T.getUTCDate() - o), T.setUTCHours(0, 0, 0, 0), T;
305
+ }
306
+ function oe(r, t) {
307
+ var e, n, a, i, u, f, m, h;
308
+ M(1, arguments);
309
+ var y = E(r), g = y.getUTCFullYear(), T = j(), p = $((e = (n = (a = (i = t?.firstWeekContainsDate) !== null && i !== void 0 ? i : t == null || (u = t.locale) === null || u === void 0 || (f = u.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && a !== void 0 ? a : T.firstWeekContainsDate) !== null && n !== void 0 ? n : (m = T.locale) === null || m === void 0 || (h = m.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && e !== void 0 ? e : 1);
310
+ if (!(p >= 1 && p <= 7))
311
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
312
+ var o = new Date(0);
313
+ o.setUTCFullYear(g + 1, 0, p), o.setUTCHours(0, 0, 0, 0);
314
+ var s = V(o, t), c = new Date(0);
315
+ c.setUTCFullYear(g, 0, p), c.setUTCHours(0, 0, 0, 0);
316
+ var b = V(c, t);
317
+ return y.getTime() >= s.getTime() ? g + 1 : y.getTime() >= b.getTime() ? g : g - 1;
318
+ }
319
+ function ke(r, t) {
320
+ var e, n, a, i, u, f, m, h;
321
+ M(1, arguments);
322
+ var y = j(), g = $((e = (n = (a = (i = t?.firstWeekContainsDate) !== null && i !== void 0 ? i : t == null || (u = t.locale) === null || u === void 0 || (f = u.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && a !== void 0 ? a : y.firstWeekContainsDate) !== null && n !== void 0 ? n : (m = y.locale) === null || m === void 0 || (h = m.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && e !== void 0 ? e : 1), T = oe(r, t), p = new Date(0);
323
+ p.setUTCFullYear(T, 0, g), p.setUTCHours(0, 0, 0, 0);
324
+ var o = V(p, t);
325
+ return o;
326
+ }
327
+ var Me = 6048e5;
328
+ function De(r, t) {
329
+ M(1, arguments);
330
+ var e = E(r), n = V(e, t).getTime() - ke(e, t).getTime();
331
+ return Math.round(n / Me) + 1;
332
+ }
333
+ function v(r, t) {
334
+ for (var e = r < 0 ? "-" : "", n = Math.abs(r).toString(); n.length < t; )
335
+ n = "0" + n;
336
+ return e + n;
337
+ }
338
+ var xe = {
339
+ y: function(t, e) {
340
+ var n = t.getUTCFullYear(), a = n > 0 ? n : 1 - n;
341
+ return v(e === "yy" ? a % 100 : a, e.length);
342
+ },
343
+ M: function(t, e) {
344
+ var n = t.getUTCMonth();
345
+ return e === "M" ? String(n + 1) : v(n + 1, 2);
346
+ },
347
+ d: function(t, e) {
348
+ return v(t.getUTCDate(), e.length);
349
+ },
350
+ a: function(t, e) {
351
+ var n = t.getUTCHours() / 12 >= 1 ? "pm" : "am";
352
+ switch (e) {
353
+ case "a":
354
+ case "aa":
355
+ return n.toUpperCase();
356
+ case "aaa":
357
+ return n;
358
+ case "aaaaa":
359
+ return n[0];
360
+ case "aaaa":
361
+ default:
362
+ return n === "am" ? "a.m." : "p.m.";
363
+ }
364
+ },
365
+ h: function(t, e) {
366
+ return v(t.getUTCHours() % 12 || 12, e.length);
367
+ },
368
+ H: function(t, e) {
369
+ return v(t.getUTCHours(), e.length);
370
+ },
371
+ m: function(t, e) {
372
+ return v(t.getUTCMinutes(), e.length);
373
+ },
374
+ s: function(t, e) {
375
+ return v(t.getUTCSeconds(), e.length);
376
+ },
377
+ S: function(t, e) {
378
+ var n = e.length, a = t.getUTCMilliseconds(), i = Math.floor(a * Math.pow(10, n - 3));
379
+ return v(i, e.length);
380
+ }
381
+ };
382
+ const Y = xe;
383
+ var q = {
384
+ am: "am",
385
+ pm: "pm",
386
+ midnight: "midnight",
387
+ noon: "noon",
388
+ morning: "morning",
389
+ afternoon: "afternoon",
390
+ evening: "evening",
391
+ night: "night"
392
+ }, We = {
393
+ G: function(t, e, n) {
394
+ var a = t.getUTCFullYear() > 0 ? 1 : 0;
395
+ switch (e) {
396
+ case "G":
397
+ case "GG":
398
+ case "GGG":
399
+ return n.era(a, {
400
+ width: "abbreviated"
401
+ });
402
+ case "GGGGG":
403
+ return n.era(a, {
404
+ width: "narrow"
405
+ });
406
+ case "GGGG":
407
+ default:
408
+ return n.era(a, {
409
+ width: "wide"
410
+ });
411
+ }
412
+ },
413
+ y: function(t, e, n) {
414
+ if (e === "yo") {
415
+ var a = t.getUTCFullYear(), i = a > 0 ? a : 1 - a;
416
+ return n.ordinalNumber(i, {
417
+ unit: "year"
418
+ });
419
+ }
420
+ return Y.y(t, e);
421
+ },
422
+ Y: function(t, e, n, a) {
423
+ var i = oe(t, a), u = i > 0 ? i : 1 - i;
424
+ if (e === "YY") {
425
+ var f = u % 100;
426
+ return v(f, 2);
427
+ }
428
+ return e === "Yo" ? n.ordinalNumber(u, {
429
+ unit: "year"
430
+ }) : v(u, e.length);
431
+ },
432
+ R: function(t, e) {
433
+ var n = ie(t);
434
+ return v(n, e.length);
435
+ },
436
+ u: function(t, e) {
437
+ var n = t.getUTCFullYear();
438
+ return v(n, e.length);
439
+ },
440
+ Q: function(t, e, n) {
441
+ var a = Math.ceil((t.getUTCMonth() + 1) / 3);
442
+ switch (e) {
443
+ case "Q":
444
+ return String(a);
445
+ case "QQ":
446
+ return v(a, 2);
447
+ case "Qo":
448
+ return n.ordinalNumber(a, {
449
+ unit: "quarter"
450
+ });
451
+ case "QQQ":
452
+ return n.quarter(a, {
453
+ width: "abbreviated",
454
+ context: "formatting"
455
+ });
456
+ case "QQQQQ":
457
+ return n.quarter(a, {
458
+ width: "narrow",
459
+ context: "formatting"
460
+ });
461
+ case "QQQQ":
462
+ default:
463
+ return n.quarter(a, {
464
+ width: "wide",
465
+ context: "formatting"
466
+ });
467
+ }
468
+ },
469
+ q: function(t, e, n) {
470
+ var a = Math.ceil((t.getUTCMonth() + 1) / 3);
471
+ switch (e) {
472
+ case "q":
473
+ return String(a);
474
+ case "qq":
475
+ return v(a, 2);
476
+ case "qo":
477
+ return n.ordinalNumber(a, {
478
+ unit: "quarter"
479
+ });
480
+ case "qqq":
481
+ return n.quarter(a, {
482
+ width: "abbreviated",
483
+ context: "standalone"
484
+ });
485
+ case "qqqqq":
486
+ return n.quarter(a, {
487
+ width: "narrow",
488
+ context: "standalone"
489
+ });
490
+ case "qqqq":
491
+ default:
492
+ return n.quarter(a, {
493
+ width: "wide",
494
+ context: "standalone"
495
+ });
496
+ }
497
+ },
498
+ M: function(t, e, n) {
499
+ var a = t.getUTCMonth();
500
+ switch (e) {
501
+ case "M":
502
+ case "MM":
503
+ return Y.M(t, e);
504
+ case "Mo":
505
+ return n.ordinalNumber(a + 1, {
506
+ unit: "month"
507
+ });
508
+ case "MMM":
509
+ return n.month(a, {
510
+ width: "abbreviated",
511
+ context: "formatting"
512
+ });
513
+ case "MMMMM":
514
+ return n.month(a, {
515
+ width: "narrow",
516
+ context: "formatting"
517
+ });
518
+ case "MMMM":
519
+ default:
520
+ return n.month(a, {
521
+ width: "wide",
522
+ context: "formatting"
523
+ });
524
+ }
525
+ },
526
+ L: function(t, e, n) {
527
+ var a = t.getUTCMonth();
528
+ switch (e) {
529
+ case "L":
530
+ return String(a + 1);
531
+ case "LL":
532
+ return v(a + 1, 2);
533
+ case "Lo":
534
+ return n.ordinalNumber(a + 1, {
535
+ unit: "month"
536
+ });
537
+ case "LLL":
538
+ return n.month(a, {
539
+ width: "abbreviated",
540
+ context: "standalone"
541
+ });
542
+ case "LLLLL":
543
+ return n.month(a, {
544
+ width: "narrow",
545
+ context: "standalone"
546
+ });
547
+ case "LLLL":
548
+ default:
549
+ return n.month(a, {
550
+ width: "wide",
551
+ context: "standalone"
552
+ });
553
+ }
554
+ },
555
+ w: function(t, e, n, a) {
556
+ var i = De(t, a);
557
+ return e === "wo" ? n.ordinalNumber(i, {
558
+ unit: "week"
559
+ }) : v(i, e.length);
560
+ },
561
+ I: function(t, e, n) {
562
+ var a = Se(t);
563
+ return e === "Io" ? n.ordinalNumber(a, {
564
+ unit: "week"
565
+ }) : v(a, e.length);
566
+ },
567
+ d: function(t, e, n) {
568
+ return e === "do" ? n.ordinalNumber(t.getUTCDate(), {
569
+ unit: "date"
570
+ }) : Y.d(t, e);
571
+ },
572
+ D: function(t, e, n) {
573
+ var a = Ce(t);
574
+ return e === "Do" ? n.ordinalNumber(a, {
575
+ unit: "dayOfYear"
576
+ }) : v(a, e.length);
577
+ },
578
+ E: function(t, e, n) {
579
+ var a = t.getUTCDay();
580
+ switch (e) {
581
+ case "E":
582
+ case "EE":
583
+ case "EEE":
584
+ return n.day(a, {
585
+ width: "abbreviated",
586
+ context: "formatting"
587
+ });
588
+ case "EEEEE":
589
+ return n.day(a, {
590
+ width: "narrow",
591
+ context: "formatting"
592
+ });
593
+ case "EEEEEE":
594
+ return n.day(a, {
595
+ width: "short",
596
+ context: "formatting"
597
+ });
598
+ case "EEEE":
599
+ default:
600
+ return n.day(a, {
601
+ width: "wide",
602
+ context: "formatting"
603
+ });
604
+ }
605
+ },
606
+ e: function(t, e, n, a) {
607
+ var i = t.getUTCDay(), u = (i - a.weekStartsOn + 8) % 7 || 7;
608
+ switch (e) {
609
+ case "e":
610
+ return String(u);
611
+ case "ee":
612
+ return v(u, 2);
613
+ case "eo":
614
+ return n.ordinalNumber(u, {
615
+ unit: "day"
616
+ });
617
+ case "eee":
618
+ return n.day(i, {
619
+ width: "abbreviated",
620
+ context: "formatting"
621
+ });
622
+ case "eeeee":
623
+ return n.day(i, {
624
+ width: "narrow",
625
+ context: "formatting"
626
+ });
627
+ case "eeeeee":
628
+ return n.day(i, {
629
+ width: "short",
630
+ context: "formatting"
631
+ });
632
+ case "eeee":
633
+ default:
634
+ return n.day(i, {
635
+ width: "wide",
636
+ context: "formatting"
637
+ });
638
+ }
639
+ },
640
+ c: function(t, e, n, a) {
641
+ var i = t.getUTCDay(), u = (i - a.weekStartsOn + 8) % 7 || 7;
642
+ switch (e) {
643
+ case "c":
644
+ return String(u);
645
+ case "cc":
646
+ return v(u, e.length);
647
+ case "co":
648
+ return n.ordinalNumber(u, {
649
+ unit: "day"
650
+ });
651
+ case "ccc":
652
+ return n.day(i, {
653
+ width: "abbreviated",
654
+ context: "standalone"
655
+ });
656
+ case "ccccc":
657
+ return n.day(i, {
658
+ width: "narrow",
659
+ context: "standalone"
660
+ });
661
+ case "cccccc":
662
+ return n.day(i, {
663
+ width: "short",
664
+ context: "standalone"
665
+ });
666
+ case "cccc":
667
+ default:
668
+ return n.day(i, {
669
+ width: "wide",
670
+ context: "standalone"
671
+ });
672
+ }
673
+ },
674
+ i: function(t, e, n) {
675
+ var a = t.getUTCDay(), i = a === 0 ? 7 : a;
676
+ switch (e) {
677
+ case "i":
678
+ return String(i);
679
+ case "ii":
680
+ return v(i, e.length);
681
+ case "io":
682
+ return n.ordinalNumber(i, {
683
+ unit: "day"
684
+ });
685
+ case "iii":
686
+ return n.day(a, {
687
+ width: "abbreviated",
688
+ context: "formatting"
689
+ });
690
+ case "iiiii":
691
+ return n.day(a, {
692
+ width: "narrow",
693
+ context: "formatting"
694
+ });
695
+ case "iiiiii":
696
+ return n.day(a, {
697
+ width: "short",
698
+ context: "formatting"
699
+ });
700
+ case "iiii":
701
+ default:
702
+ return n.day(a, {
703
+ width: "wide",
704
+ context: "formatting"
705
+ });
706
+ }
707
+ },
708
+ a: function(t, e, n) {
709
+ var a = t.getUTCHours(), i = a / 12 >= 1 ? "pm" : "am";
710
+ switch (e) {
711
+ case "a":
712
+ case "aa":
713
+ return n.dayPeriod(i, {
714
+ width: "abbreviated",
715
+ context: "formatting"
716
+ });
717
+ case "aaa":
718
+ return n.dayPeriod(i, {
719
+ width: "abbreviated",
720
+ context: "formatting"
721
+ }).toLowerCase();
722
+ case "aaaaa":
723
+ return n.dayPeriod(i, {
724
+ width: "narrow",
725
+ context: "formatting"
726
+ });
727
+ case "aaaa":
728
+ default:
729
+ return n.dayPeriod(i, {
730
+ width: "wide",
731
+ context: "formatting"
732
+ });
733
+ }
734
+ },
735
+ b: function(t, e, n) {
736
+ var a = t.getUTCHours(), i;
737
+ switch (a === 12 ? i = q.noon : a === 0 ? i = q.midnight : i = a / 12 >= 1 ? "pm" : "am", e) {
738
+ case "b":
739
+ case "bb":
740
+ return n.dayPeriod(i, {
741
+ width: "abbreviated",
742
+ context: "formatting"
743
+ });
744
+ case "bbb":
745
+ return n.dayPeriod(i, {
746
+ width: "abbreviated",
747
+ context: "formatting"
748
+ }).toLowerCase();
749
+ case "bbbbb":
750
+ return n.dayPeriod(i, {
751
+ width: "narrow",
752
+ context: "formatting"
753
+ });
754
+ case "bbbb":
755
+ default:
756
+ return n.dayPeriod(i, {
757
+ width: "wide",
758
+ context: "formatting"
759
+ });
760
+ }
761
+ },
762
+ B: function(t, e, n) {
763
+ var a = t.getUTCHours(), i;
764
+ switch (a >= 17 ? i = q.evening : a >= 12 ? i = q.afternoon : a >= 4 ? i = q.morning : i = q.night, e) {
765
+ case "B":
766
+ case "BB":
767
+ case "BBB":
768
+ return n.dayPeriod(i, {
769
+ width: "abbreviated",
770
+ context: "formatting"
771
+ });
772
+ case "BBBBB":
773
+ return n.dayPeriod(i, {
774
+ width: "narrow",
775
+ context: "formatting"
776
+ });
777
+ case "BBBB":
778
+ default:
779
+ return n.dayPeriod(i, {
780
+ width: "wide",
781
+ context: "formatting"
782
+ });
783
+ }
784
+ },
785
+ h: function(t, e, n) {
786
+ if (e === "ho") {
787
+ var a = t.getUTCHours() % 12;
788
+ return a === 0 && (a = 12), n.ordinalNumber(a, {
789
+ unit: "hour"
790
+ });
791
+ }
792
+ return Y.h(t, e);
793
+ },
794
+ H: function(t, e, n) {
795
+ return e === "Ho" ? n.ordinalNumber(t.getUTCHours(), {
796
+ unit: "hour"
797
+ }) : Y.H(t, e);
798
+ },
799
+ K: function(t, e, n) {
800
+ var a = t.getUTCHours() % 12;
801
+ return e === "Ko" ? n.ordinalNumber(a, {
802
+ unit: "hour"
803
+ }) : v(a, e.length);
804
+ },
805
+ k: function(t, e, n) {
806
+ var a = t.getUTCHours();
807
+ return a === 0 && (a = 24), e === "ko" ? n.ordinalNumber(a, {
808
+ unit: "hour"
809
+ }) : v(a, e.length);
810
+ },
811
+ m: function(t, e, n) {
812
+ return e === "mo" ? n.ordinalNumber(t.getUTCMinutes(), {
813
+ unit: "minute"
814
+ }) : Y.m(t, e);
815
+ },
816
+ s: function(t, e, n) {
817
+ return e === "so" ? n.ordinalNumber(t.getUTCSeconds(), {
818
+ unit: "second"
819
+ }) : Y.s(t, e);
820
+ },
821
+ S: function(t, e) {
822
+ return Y.S(t, e);
823
+ },
824
+ X: function(t, e, n, a) {
825
+ var i = a._originalDate || t, u = i.getTimezoneOffset();
826
+ if (u === 0)
827
+ return "Z";
828
+ switch (e) {
829
+ case "X":
830
+ return re(u);
831
+ case "XXXX":
832
+ case "XX":
833
+ return N(u);
834
+ case "XXXXX":
835
+ case "XXX":
836
+ default:
837
+ return N(u, ":");
838
+ }
839
+ },
840
+ x: function(t, e, n, a) {
841
+ var i = a._originalDate || t, u = i.getTimezoneOffset();
842
+ switch (e) {
843
+ case "x":
844
+ return re(u);
845
+ case "xxxx":
846
+ case "xx":
847
+ return N(u);
848
+ case "xxxxx":
849
+ case "xxx":
850
+ default:
851
+ return N(u, ":");
852
+ }
853
+ },
854
+ O: function(t, e, n, a) {
855
+ var i = a._originalDate || t, u = i.getTimezoneOffset();
856
+ switch (e) {
857
+ case "O":
858
+ case "OO":
859
+ case "OOO":
860
+ return "GMT" + te(u, ":");
861
+ case "OOOO":
862
+ default:
863
+ return "GMT" + N(u, ":");
864
+ }
865
+ },
866
+ z: function(t, e, n, a) {
867
+ var i = a._originalDate || t, u = i.getTimezoneOffset();
868
+ switch (e) {
869
+ case "z":
870
+ case "zz":
871
+ case "zzz":
872
+ return "GMT" + te(u, ":");
873
+ case "zzzz":
874
+ default:
875
+ return "GMT" + N(u, ":");
876
+ }
877
+ },
878
+ t: function(t, e, n, a) {
879
+ var i = a._originalDate || t, u = Math.floor(i.getTime() / 1e3);
880
+ return v(u, e.length);
881
+ },
882
+ T: function(t, e, n, a) {
883
+ var i = a._originalDate || t, u = i.getTime();
884
+ return v(u, e.length);
885
+ }
886
+ };
887
+ function te(r, t) {
888
+ var e = r > 0 ? "-" : "+", n = Math.abs(r), a = Math.floor(n / 60), i = n % 60;
889
+ if (i === 0)
890
+ return e + String(a);
891
+ var u = t || "";
892
+ return e + String(a) + u + v(i, 2);
893
+ }
894
+ function re(r, t) {
895
+ if (r % 60 === 0) {
896
+ var e = r > 0 ? "-" : "+";
897
+ return e + v(Math.abs(r) / 60, 2);
898
+ }
899
+ return N(r, t);
900
+ }
901
+ function N(r, t) {
902
+ var e = t || "", n = r > 0 ? "-" : "+", a = Math.abs(r), i = v(Math.floor(a / 60), 2), u = v(a % 60, 2);
903
+ return n + i + e + u;
904
+ }
905
+ const Ee = We;
906
+ var ne = function(t, e) {
907
+ switch (t) {
908
+ case "P":
909
+ return e.date({
910
+ width: "short"
911
+ });
912
+ case "PP":
913
+ return e.date({
914
+ width: "medium"
915
+ });
916
+ case "PPP":
917
+ return e.date({
918
+ width: "long"
919
+ });
920
+ case "PPPP":
921
+ default:
922
+ return e.date({
923
+ width: "full"
924
+ });
925
+ }
926
+ }, ue = function(t, e) {
927
+ switch (t) {
928
+ case "p":
929
+ return e.time({
930
+ width: "short"
931
+ });
932
+ case "pp":
933
+ return e.time({
934
+ width: "medium"
935
+ });
936
+ case "ppp":
937
+ return e.time({
938
+ width: "long"
939
+ });
940
+ case "pppp":
941
+ default:
942
+ return e.time({
943
+ width: "full"
944
+ });
945
+ }
946
+ }, Ue = function(t, e) {
947
+ var n = t.match(/(P+)(p+)?/) || [], a = n[1], i = n[2];
948
+ if (!i)
949
+ return ne(t, e);
950
+ var u;
951
+ switch (a) {
952
+ case "P":
953
+ u = e.dateTime({
954
+ width: "short"
955
+ });
956
+ break;
957
+ case "PP":
958
+ u = e.dateTime({
959
+ width: "medium"
960
+ });
961
+ break;
962
+ case "PPP":
963
+ u = e.dateTime({
964
+ width: "long"
965
+ });
966
+ break;
967
+ case "PPPP":
968
+ default:
969
+ u = e.dateTime({
970
+ width: "full"
971
+ });
972
+ break;
973
+ }
974
+ return u.replace("{{date}}", ne(a, e)).replace("{{time}}", ue(i, e));
975
+ }, _e = {
976
+ p: ue,
977
+ P: Ue
978
+ };
979
+ const Ye = _e;
980
+ var Ne = ["D", "DD"], $e = ["YY", "YYYY"];
981
+ function Le(r) {
982
+ return Ne.indexOf(r) !== -1;
983
+ }
984
+ function qe(r) {
985
+ return $e.indexOf(r) !== -1;
986
+ }
987
+ function ae(r, t, e) {
988
+ if (r === "YYYY")
989
+ throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t, "`) for formatting years to the input `").concat(e, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
990
+ if (r === "YY")
991
+ throw new RangeError("Use `yy` instead of `YY` (in `".concat(t, "`) for formatting years to the input `").concat(e, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
992
+ if (r === "D")
993
+ throw new RangeError("Use `d` instead of `D` (in `".concat(t, "`) for formatting days of the month to the input `").concat(e, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
994
+ if (r === "DD")
995
+ throw new RangeError("Use `dd` instead of `DD` (in `".concat(t, "`) for formatting days of the month to the input `").concat(e, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
996
+ }
997
+ var Fe = {
998
+ lessThanXSeconds: {
999
+ one: "less than a second",
1000
+ other: "less than {{count}} seconds"
1001
+ },
1002
+ xSeconds: {
1003
+ one: "1 second",
1004
+ other: "{{count}} seconds"
1005
+ },
1006
+ halfAMinute: "half a minute",
1007
+ lessThanXMinutes: {
1008
+ one: "less than a minute",
1009
+ other: "less than {{count}} minutes"
1010
+ },
1011
+ xMinutes: {
1012
+ one: "1 minute",
1013
+ other: "{{count}} minutes"
1014
+ },
1015
+ aboutXHours: {
1016
+ one: "about 1 hour",
1017
+ other: "about {{count}} hours"
1018
+ },
1019
+ xHours: {
1020
+ one: "1 hour",
1021
+ other: "{{count}} hours"
1022
+ },
1023
+ xDays: {
1024
+ one: "1 day",
1025
+ other: "{{count}} days"
1026
+ },
1027
+ aboutXWeeks: {
1028
+ one: "about 1 week",
1029
+ other: "about {{count}} weeks"
1030
+ },
1031
+ xWeeks: {
1032
+ one: "1 week",
1033
+ other: "{{count}} weeks"
1034
+ },
1035
+ aboutXMonths: {
1036
+ one: "about 1 month",
1037
+ other: "about {{count}} months"
1038
+ },
1039
+ xMonths: {
1040
+ one: "1 month",
1041
+ other: "{{count}} months"
1042
+ },
1043
+ aboutXYears: {
1044
+ one: "about 1 year",
1045
+ other: "about {{count}} years"
1046
+ },
1047
+ xYears: {
1048
+ one: "1 year",
1049
+ other: "{{count}} years"
1050
+ },
1051
+ overXYears: {
1052
+ one: "over 1 year",
1053
+ other: "over {{count}} years"
1054
+ },
1055
+ almostXYears: {
1056
+ one: "almost 1 year",
1057
+ other: "almost {{count}} years"
1058
+ }
1059
+ }, Re = function(t, e, n) {
1060
+ var a, i = Fe[t];
1061
+ return typeof i == "string" ? a = i : e === 1 ? a = i.one : a = i.other.replace("{{count}}", e.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + a : a + " ago" : a;
1062
+ };
1063
+ const He = Re;
1064
+ function z(r) {
1065
+ return function() {
1066
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = t.width ? String(t.width) : r.defaultWidth, n = r.formats[e] || r.formats[r.defaultWidth];
1067
+ return n;
1068
+ };
1069
+ }
1070
+ var Be = {
1071
+ full: "EEEE, MMMM do, y",
1072
+ long: "MMMM do, y",
1073
+ medium: "MMM d, y",
1074
+ short: "MM/dd/yyyy"
1075
+ }, Qe = {
1076
+ full: "h:mm:ss a zzzz",
1077
+ long: "h:mm:ss a z",
1078
+ medium: "h:mm:ss a",
1079
+ short: "h:mm a"
1080
+ }, Ae = {
1081
+ full: "{{date}} 'at' {{time}}",
1082
+ long: "{{date}} 'at' {{time}}",
1083
+ medium: "{{date}}, {{time}}",
1084
+ short: "{{date}}, {{time}}"
1085
+ }, Xe = {
1086
+ date: z({
1087
+ formats: Be,
1088
+ defaultWidth: "full"
1089
+ }),
1090
+ time: z({
1091
+ formats: Qe,
1092
+ defaultWidth: "full"
1093
+ }),
1094
+ dateTime: z({
1095
+ formats: Ae,
1096
+ defaultWidth: "full"
1097
+ })
1098
+ };
1099
+ const Ge = Xe;
1100
+ var Ie = {
1101
+ lastWeek: "'last' eeee 'at' p",
1102
+ yesterday: "'yesterday at' p",
1103
+ today: "'today at' p",
1104
+ tomorrow: "'tomorrow at' p",
1105
+ nextWeek: "eeee 'at' p",
1106
+ other: "P"
1107
+ }, Ve = function(t, e, n, a) {
1108
+ return Ie[t];
1109
+ };
1110
+ const je = Ve;
1111
+ function H(r) {
1112
+ return function(t, e) {
1113
+ var n = e != null && e.context ? String(e.context) : "standalone", a;
1114
+ if (n === "formatting" && r.formattingValues) {
1115
+ var i = r.defaultFormattingWidth || r.defaultWidth, u = e != null && e.width ? String(e.width) : i;
1116
+ a = r.formattingValues[u] || r.formattingValues[i];
1117
+ } else {
1118
+ var f = r.defaultWidth, m = e != null && e.width ? String(e.width) : r.defaultWidth;
1119
+ a = r.values[m] || r.values[f];
1120
+ }
1121
+ var h = r.argumentCallback ? r.argumentCallback(t) : t;
1122
+ return a[h];
1123
+ };
1124
+ }
1125
+ var ze = {
1126
+ narrow: ["B", "A"],
1127
+ abbreviated: ["BC", "AD"],
1128
+ wide: ["Before Christ", "Anno Domini"]
1129
+ }, Je = {
1130
+ narrow: ["1", "2", "3", "4"],
1131
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
1132
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
1133
+ }, Ke = {
1134
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
1135
+ abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
1136
+ wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
1137
+ }, Ze = {
1138
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
1139
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
1140
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
1141
+ wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
1142
+ }, et = {
1143
+ narrow: {
1144
+ am: "a",
1145
+ pm: "p",
1146
+ midnight: "mi",
1147
+ noon: "n",
1148
+ morning: "morning",
1149
+ afternoon: "afternoon",
1150
+ evening: "evening",
1151
+ night: "night"
1152
+ },
1153
+ abbreviated: {
1154
+ am: "AM",
1155
+ pm: "PM",
1156
+ midnight: "midnight",
1157
+ noon: "noon",
1158
+ morning: "morning",
1159
+ afternoon: "afternoon",
1160
+ evening: "evening",
1161
+ night: "night"
1162
+ },
1163
+ wide: {
1164
+ am: "a.m.",
1165
+ pm: "p.m.",
1166
+ midnight: "midnight",
1167
+ noon: "noon",
1168
+ morning: "morning",
1169
+ afternoon: "afternoon",
1170
+ evening: "evening",
1171
+ night: "night"
1172
+ }
1173
+ }, tt = {
1174
+ narrow: {
1175
+ am: "a",
1176
+ pm: "p",
1177
+ midnight: "mi",
1178
+ noon: "n",
1179
+ morning: "in the morning",
1180
+ afternoon: "in the afternoon",
1181
+ evening: "in the evening",
1182
+ night: "at night"
1183
+ },
1184
+ abbreviated: {
1185
+ am: "AM",
1186
+ pm: "PM",
1187
+ midnight: "midnight",
1188
+ noon: "noon",
1189
+ morning: "in the morning",
1190
+ afternoon: "in the afternoon",
1191
+ evening: "in the evening",
1192
+ night: "at night"
1193
+ },
1194
+ wide: {
1195
+ am: "a.m.",
1196
+ pm: "p.m.",
1197
+ midnight: "midnight",
1198
+ noon: "noon",
1199
+ morning: "in the morning",
1200
+ afternoon: "in the afternoon",
1201
+ evening: "in the evening",
1202
+ night: "at night"
1203
+ }
1204
+ }, rt = function(t, e) {
1205
+ var n = Number(t), a = n % 100;
1206
+ if (a > 20 || a < 10)
1207
+ switch (a % 10) {
1208
+ case 1:
1209
+ return n + "st";
1210
+ case 2:
1211
+ return n + "nd";
1212
+ case 3:
1213
+ return n + "rd";
1214
+ }
1215
+ return n + "th";
1216
+ }, nt = {
1217
+ ordinalNumber: rt,
1218
+ era: H({
1219
+ values: ze,
1220
+ defaultWidth: "wide"
1221
+ }),
1222
+ quarter: H({
1223
+ values: Je,
1224
+ defaultWidth: "wide",
1225
+ argumentCallback: function(t) {
1226
+ return t - 1;
1227
+ }
1228
+ }),
1229
+ month: H({
1230
+ values: Ke,
1231
+ defaultWidth: "wide"
1232
+ }),
1233
+ day: H({
1234
+ values: Ze,
1235
+ defaultWidth: "wide"
1236
+ }),
1237
+ dayPeriod: H({
1238
+ values: et,
1239
+ defaultWidth: "wide",
1240
+ formattingValues: tt,
1241
+ defaultFormattingWidth: "wide"
1242
+ })
1243
+ };
1244
+ const at = nt;
1245
+ function B(r) {
1246
+ return function(t) {
1247
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = e.width, a = n && r.matchPatterns[n] || r.matchPatterns[r.defaultMatchWidth], i = t.match(a);
1248
+ if (!i)
1249
+ return null;
1250
+ var u = i[0], f = n && r.parsePatterns[n] || r.parsePatterns[r.defaultParseWidth], m = Array.isArray(f) ? ot(f, function(g) {
1251
+ return g.test(u);
1252
+ }) : it(f, function(g) {
1253
+ return g.test(u);
1254
+ }), h;
1255
+ h = r.valueCallback ? r.valueCallback(m) : m, h = e.valueCallback ? e.valueCallback(h) : h;
1256
+ var y = t.slice(u.length);
1257
+ return {
1258
+ value: h,
1259
+ rest: y
1260
+ };
1261
+ };
1262
+ }
1263
+ function it(r, t) {
1264
+ for (var e in r)
1265
+ if (r.hasOwnProperty(e) && t(r[e]))
1266
+ return e;
1267
+ }
1268
+ function ot(r, t) {
1269
+ for (var e = 0; e < r.length; e++)
1270
+ if (t(r[e]))
1271
+ return e;
1272
+ }
1273
+ function ut(r) {
1274
+ return function(t) {
1275
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.match(r.matchPattern);
1276
+ if (!n)
1277
+ return null;
1278
+ var a = n[0], i = t.match(r.parsePattern);
1279
+ if (!i)
1280
+ return null;
1281
+ var u = r.valueCallback ? r.valueCallback(i[0]) : i[0];
1282
+ u = e.valueCallback ? e.valueCallback(u) : u;
1283
+ var f = t.slice(a.length);
1284
+ return {
1285
+ value: u,
1286
+ rest: f
1287
+ };
1288
+ };
1289
+ }
1290
+ var st = /^(\d+)(th|st|nd|rd)?/i, lt = /\d+/i, ct = {
1291
+ narrow: /^(b|a)/i,
1292
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1293
+ wide: /^(before christ|before common era|anno domini|common era)/i
1294
+ }, dt = {
1295
+ any: [/^b/i, /^(a|c)/i]
1296
+ }, ft = {
1297
+ narrow: /^[1234]/i,
1298
+ abbreviated: /^q[1234]/i,
1299
+ wide: /^[1234](th|st|nd|rd)? quarter/i
1300
+ }, mt = {
1301
+ any: [/1/i, /2/i, /3/i, /4/i]
1302
+ }, ht = {
1303
+ narrow: /^[jfmasond]/i,
1304
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1305
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1306
+ }, vt = {
1307
+ narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
1308
+ any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
1309
+ }, gt = {
1310
+ narrow: /^[smtwf]/i,
1311
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
1312
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1313
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1314
+ }, wt = {
1315
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1316
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
1317
+ }, yt = {
1318
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1319
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1320
+ }, pt = {
1321
+ any: {
1322
+ am: /^a/i,
1323
+ pm: /^p/i,
1324
+ midnight: /^mi/i,
1325
+ noon: /^no/i,
1326
+ morning: /morning/i,
1327
+ afternoon: /afternoon/i,
1328
+ evening: /evening/i,
1329
+ night: /night/i
1330
+ }
1331
+ }, bt = {
1332
+ ordinalNumber: ut({
1333
+ matchPattern: st,
1334
+ parsePattern: lt,
1335
+ valueCallback: function(t) {
1336
+ return parseInt(t, 10);
1337
+ }
1338
+ }),
1339
+ era: B({
1340
+ matchPatterns: ct,
1341
+ defaultMatchWidth: "wide",
1342
+ parsePatterns: dt,
1343
+ defaultParseWidth: "any"
1344
+ }),
1345
+ quarter: B({
1346
+ matchPatterns: ft,
1347
+ defaultMatchWidth: "wide",
1348
+ parsePatterns: mt,
1349
+ defaultParseWidth: "any",
1350
+ valueCallback: function(t) {
1351
+ return t + 1;
1352
+ }
1353
+ }),
1354
+ month: B({
1355
+ matchPatterns: ht,
1356
+ defaultMatchWidth: "wide",
1357
+ parsePatterns: vt,
1358
+ defaultParseWidth: "any"
1359
+ }),
1360
+ day: B({
1361
+ matchPatterns: gt,
1362
+ defaultMatchWidth: "wide",
1363
+ parsePatterns: wt,
1364
+ defaultParseWidth: "any"
1365
+ }),
1366
+ dayPeriod: B({
1367
+ matchPatterns: yt,
1368
+ defaultMatchWidth: "any",
1369
+ parsePatterns: pt,
1370
+ defaultParseWidth: "any"
1371
+ })
1372
+ };
1373
+ const Tt = bt;
1374
+ var Ct = {
1375
+ code: "en-US",
1376
+ formatDistance: He,
1377
+ formatLong: Ge,
1378
+ formatRelative: je,
1379
+ localize: at,
1380
+ match: Tt,
1381
+ options: {
1382
+ weekStartsOn: 0,
1383
+ firstWeekContainsDate: 1
1384
+ }
1385
+ };
1386
+ const Pt = Ct;
1387
+ var Ot = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, St = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, kt = /^'([^]*?)'?$/, Mt = /''/g, Dt = /[a-zA-Z]/;
1388
+ function Ut(r, t, e) {
1389
+ var n, a, i, u, f, m, h, y, g, T, p, o, s, c, b, C, k, w;
1390
+ M(2, arguments);
1391
+ var P = String(t), O = j(), l = (n = (a = e?.locale) !== null && a !== void 0 ? a : O.locale) !== null && n !== void 0 ? n : Pt, d = $((i = (u = (f = (m = e?.firstWeekContainsDate) !== null && m !== void 0 ? m : e == null || (h = e.locale) === null || h === void 0 || (y = h.options) === null || y === void 0 ? void 0 : y.firstWeekContainsDate) !== null && f !== void 0 ? f : O.firstWeekContainsDate) !== null && u !== void 0 ? u : (g = O.locale) === null || g === void 0 || (T = g.options) === null || T === void 0 ? void 0 : T.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
1392
+ if (!(d >= 1 && d <= 7))
1393
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
1394
+ var S = $((p = (o = (s = (c = e?.weekStartsOn) !== null && c !== void 0 ? c : e == null || (b = e.locale) === null || b === void 0 || (C = b.options) === null || C === void 0 ? void 0 : C.weekStartsOn) !== null && s !== void 0 ? s : O.weekStartsOn) !== null && o !== void 0 ? o : (k = O.locale) === null || k === void 0 || (w = k.options) === null || w === void 0 ? void 0 : w.weekStartsOn) !== null && p !== void 0 ? p : 0);
1395
+ if (!(S >= 0 && S <= 6))
1396
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1397
+ if (!l.localize)
1398
+ throw new RangeError("locale must contain localize property");
1399
+ if (!l.formatLong)
1400
+ throw new RangeError("locale must contain formatLong property");
1401
+ var D = E(r);
1402
+ if (!pe(D))
1403
+ throw new RangeError("Invalid time value");
1404
+ var W = we(D), U = be(D, W), R = {
1405
+ firstWeekContainsDate: d,
1406
+ weekStartsOn: S,
1407
+ locale: l,
1408
+ _originalDate: D
1409
+ }, L = P.match(St).map(function(x) {
1410
+ var _ = x[0];
1411
+ if (_ === "p" || _ === "P") {
1412
+ var Q = Ye[_];
1413
+ return Q(x, l.formatLong);
1414
+ }
1415
+ return x;
1416
+ }).join("").match(Ot).map(function(x) {
1417
+ if (x === "''")
1418
+ return "'";
1419
+ var _ = x[0];
1420
+ if (_ === "'")
1421
+ return xt(x);
1422
+ var Q = Ee[_];
1423
+ if (Q)
1424
+ return !(e != null && e.useAdditionalWeekYearTokens) && qe(x) && ae(x, t, String(r)), !(e != null && e.useAdditionalDayOfYearTokens) && Le(x) && ae(x, t, String(r)), Q(U, x, l.localize, R);
1425
+ if (_.match(Dt))
1426
+ throw new RangeError("Format string contains an unescaped latin alphabet character `" + _ + "`");
1427
+ return x;
1428
+ }).join("");
1429
+ return L;
1430
+ }
1431
+ function xt(r) {
1432
+ var t = r.match(kt);
1433
+ return t ? t[1].replace(Mt, "'") : r;
1434
+ }
1435
+ var se = { exports: {} };
1436
+ /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
1437
+ * @license MIT */
1438
+ (function(r, t) {
1439
+ (function(e, n) {
1440
+ r.exports = n();
1441
+ })(le, function() {
1442
+ var e = {};
1443
+ e.version = "0.2.0";
1444
+ var n = e.settings = {
1445
+ minimum: 0.08,
1446
+ easing: "ease",
1447
+ positionUsing: "",
1448
+ speed: 200,
1449
+ trickle: !0,
1450
+ trickleRate: 0.02,
1451
+ trickleSpeed: 800,
1452
+ showSpinner: !0,
1453
+ barSelector: '[role="bar"]',
1454
+ spinnerSelector: '[role="spinner"]',
1455
+ parent: "body",
1456
+ template: '<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'
1457
+ };
1458
+ e.configure = function(o) {
1459
+ var s, c;
1460
+ for (s in o)
1461
+ c = o[s], c !== void 0 && o.hasOwnProperty(s) && (n[s] = c);
1462
+ return this;
1463
+ }, e.status = null, e.set = function(o) {
1464
+ var s = e.isStarted();
1465
+ o = a(o, n.minimum, 1), e.status = o === 1 ? null : o;
1466
+ var c = e.render(!s), b = c.querySelector(n.barSelector), C = n.speed, k = n.easing;
1467
+ return c.offsetWidth, f(function(w) {
1468
+ n.positionUsing === "" && (n.positionUsing = e.getPositioningCSS()), m(b, u(o, C, k)), o === 1 ? (m(c, {
1469
+ transition: "none",
1470
+ opacity: 1
1471
+ }), c.offsetWidth, setTimeout(function() {
1472
+ m(c, {
1473
+ transition: "all " + C + "ms linear",
1474
+ opacity: 0
1475
+ }), setTimeout(function() {
1476
+ e.remove(), w();
1477
+ }, C);
1478
+ }, C)) : setTimeout(w, C);
1479
+ }), this;
1480
+ }, e.isStarted = function() {
1481
+ return typeof e.status == "number";
1482
+ }, e.start = function() {
1483
+ e.status || e.set(0);
1484
+ var o = function() {
1485
+ setTimeout(function() {
1486
+ !e.status || (e.trickle(), o());
1487
+ }, n.trickleSpeed);
1488
+ };
1489
+ return n.trickle && o(), this;
1490
+ }, e.done = function(o) {
1491
+ return !o && !e.status ? this : e.inc(0.3 + 0.5 * Math.random()).set(1);
1492
+ }, e.inc = function(o) {
1493
+ var s = e.status;
1494
+ return s ? (typeof o != "number" && (o = (1 - s) * a(Math.random() * s, 0.1, 0.95)), s = a(s + o, 0, 0.994), e.set(s)) : e.start();
1495
+ }, e.trickle = function() {
1496
+ return e.inc(Math.random() * n.trickleRate);
1497
+ }, function() {
1498
+ var o = 0, s = 0;
1499
+ e.promise = function(c) {
1500
+ return !c || c.state() === "resolved" ? this : (s === 0 && e.start(), o++, s++, c.always(function() {
1501
+ s--, s === 0 ? (o = 0, e.done()) : e.set((o - s) / o);
1502
+ }), this);
1503
+ };
1504
+ }(), e.render = function(o) {
1505
+ if (e.isRendered())
1506
+ return document.getElementById("nprogress");
1507
+ y(document.documentElement, "nprogress-busy");
1508
+ var s = document.createElement("div");
1509
+ s.id = "nprogress", s.innerHTML = n.template;
1510
+ var c = s.querySelector(n.barSelector), b = o ? "-100" : i(e.status || 0), C = document.querySelector(n.parent), k;
1511
+ return m(c, {
1512
+ transition: "all 0 linear",
1513
+ transform: "translate3d(" + b + "%,0,0)"
1514
+ }), n.showSpinner || (k = s.querySelector(n.spinnerSelector), k && p(k)), C != document.body && y(C, "nprogress-custom-parent"), C.appendChild(s), s;
1515
+ }, e.remove = function() {
1516
+ g(document.documentElement, "nprogress-busy"), g(document.querySelector(n.parent), "nprogress-custom-parent");
1517
+ var o = document.getElementById("nprogress");
1518
+ o && p(o);
1519
+ }, e.isRendered = function() {
1520
+ return !!document.getElementById("nprogress");
1521
+ }, e.getPositioningCSS = function() {
1522
+ var o = document.body.style, s = "WebkitTransform" in o ? "Webkit" : "MozTransform" in o ? "Moz" : "msTransform" in o ? "ms" : "OTransform" in o ? "O" : "";
1523
+ return s + "Perspective" in o ? "translate3d" : s + "Transform" in o ? "translate" : "margin";
1524
+ };
1525
+ function a(o, s, c) {
1526
+ return o < s ? s : o > c ? c : o;
1527
+ }
1528
+ function i(o) {
1529
+ return (-1 + o) * 100;
1530
+ }
1531
+ function u(o, s, c) {
1532
+ var b;
1533
+ return n.positionUsing === "translate3d" ? b = { transform: "translate3d(" + i(o) + "%,0,0)" } : n.positionUsing === "translate" ? b = { transform: "translate(" + i(o) + "%,0)" } : b = { "margin-left": i(o) + "%" }, b.transition = "all " + s + "ms " + c, b;
1534
+ }
1535
+ var f = function() {
1536
+ var o = [];
1537
+ function s() {
1538
+ var c = o.shift();
1539
+ c && c(s);
1540
+ }
1541
+ return function(c) {
1542
+ o.push(c), o.length == 1 && s();
1543
+ };
1544
+ }(), m = function() {
1545
+ var o = ["Webkit", "O", "Moz", "ms"], s = {};
1546
+ function c(w) {
1547
+ return w.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function(P, O) {
1548
+ return O.toUpperCase();
1549
+ });
1550
+ }
1551
+ function b(w) {
1552
+ var P = document.body.style;
1553
+ if (w in P)
1554
+ return w;
1555
+ for (var O = o.length, l = w.charAt(0).toUpperCase() + w.slice(1), d; O--; )
1556
+ if (d = o[O] + l, d in P)
1557
+ return d;
1558
+ return w;
1559
+ }
1560
+ function C(w) {
1561
+ return w = c(w), s[w] || (s[w] = b(w));
1562
+ }
1563
+ function k(w, P, O) {
1564
+ P = C(P), w.style[P] = O;
1565
+ }
1566
+ return function(w, P) {
1567
+ var O = arguments, l, d;
1568
+ if (O.length == 2)
1569
+ for (l in P)
1570
+ d = P[l], d !== void 0 && P.hasOwnProperty(l) && k(w, l, d);
1571
+ else
1572
+ k(w, O[1], O[2]);
1573
+ };
1574
+ }();
1575
+ function h(o, s) {
1576
+ var c = typeof o == "string" ? o : T(o);
1577
+ return c.indexOf(" " + s + " ") >= 0;
1578
+ }
1579
+ function y(o, s) {
1580
+ var c = T(o), b = c + s;
1581
+ h(c, s) || (o.className = b.substring(1));
1582
+ }
1583
+ function g(o, s) {
1584
+ var c = T(o), b;
1585
+ !h(o, s) || (b = c.replace(" " + s + " ", " "), o.className = b.substring(1, b.length - 1));
1586
+ }
1587
+ function T(o) {
1588
+ return (" " + (o.className || "") + " ").replace(/\s+/gi, " ");
1589
+ }
1590
+ function p(o) {
1591
+ o && o.parentNode && o.parentNode.removeChild(o);
1592
+ }
1593
+ return e;
1594
+ });
1595
+ })(se);
1596
+ const _t = se.exports;
1597
+ export {
1598
+ _t as N,
1599
+ Et as c,
1600
+ Ut as f
1601
+ };