@kong-ui-public/analytics-utilities 12.1.0 → 12.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/utils/formatUnit.d.ts +21 -0
- package/dist/types/utils/formatUnit.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/vitals-utilities.cjs +1 -1
- package/dist/vitals-utilities.cjs.map +1 -1
- package/dist/vitals-utilities.es.js +1178 -1072
- package/dist/vitals-utilities.es.js.map +1 -1
- package/dist/vitals-utilities.umd.js +1 -1
- package/dist/vitals-utilities.umd.js.map +1 -1
- package/package.json +7 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var T = (e, t, n) =>
|
|
4
|
-
const
|
|
5
|
-
var
|
|
6
|
-
const
|
|
1
|
+
var Jr = Object.defineProperty;
|
|
2
|
+
var ea = (e, t, n) => t in e ? Jr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var T = (e, t, n) => ea(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
const Ro = 3e4, Co = 1e3, Yo = "analytics-query-provider";
|
|
5
|
+
var p = /* @__PURE__ */ ((e) => (e.FIFTEEN_MIN = "15m", e.ONE_HOUR = "1h", e.SIX_HOUR = "6h", e.TWELVE_HOUR = "12h", e.ONE_DAY = "24h", e.SEVEN_DAY = "7d", e.THIRTY_DAY = "30d", e.NINETY_DAY = "90d", e.ONE_HUNDRED_EIGHTY_DAY = "180d", e.ONE_YEAR = "365d", e.CURRENT_WEEK = "current_week", e.CURRENT_MONTH = "current_month", e.CURRENT_QUARTER = "current_quarter", e.CURRENT_YEAR = "current_year", e.PREVIOUS_WEEK = "previous_week", e.PREVIOUS_MONTH = "previous_month", e.PREVIOUS_QUARTER = "previous_quarter", e.PREVIOUS_YEAR = "previous_year", e))(p || {});
|
|
6
|
+
const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
|
|
7
7
|
"horizontal_bar",
|
|
8
8
|
"vertical_bar",
|
|
9
9
|
"timeseries_line",
|
|
@@ -11,7 +11,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
11
11
|
"timeseries_bar",
|
|
12
12
|
"donut",
|
|
13
13
|
"single_value"
|
|
14
|
-
],
|
|
14
|
+
], ta = ["in", "not_in", "selector"], Ao = ["=", "!="], Fo = ["=", "!=", "<", ">", "<=", ">="], na = ["empty", "not_empty"], Ho = ["starts_with", "ends_with"], Lo = ["absolute", "relative"], on = [
|
|
15
15
|
"15m",
|
|
16
16
|
"1h",
|
|
17
17
|
"6h",
|
|
@@ -23,7 +23,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
23
23
|
"30d",
|
|
24
24
|
"current_month",
|
|
25
25
|
"previous_month"
|
|
26
|
-
],
|
|
26
|
+
], sn = [
|
|
27
27
|
"secondly",
|
|
28
28
|
"tenSecondly",
|
|
29
29
|
"thirtySecondly",
|
|
@@ -37,7 +37,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
37
37
|
"daily",
|
|
38
38
|
"weekly",
|
|
39
39
|
"trend"
|
|
40
|
-
], oe = (e) => e.filter((t) => t !== "time"),
|
|
40
|
+
], oe = (e) => e.filter((t) => t !== "time"), Ze = [
|
|
41
41
|
"api",
|
|
42
42
|
"api_product",
|
|
43
43
|
"api_product_version",
|
|
@@ -50,13 +50,13 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
50
50
|
"status_code",
|
|
51
51
|
"status_code_grouped",
|
|
52
52
|
"time"
|
|
53
|
-
], Me = oe(
|
|
53
|
+
], Me = oe(Ze), un = [
|
|
54
54
|
"active_services",
|
|
55
55
|
"request_count",
|
|
56
56
|
"request_per_minute",
|
|
57
57
|
"response_latency_average"
|
|
58
|
-
],
|
|
59
|
-
...
|
|
58
|
+
], cn = [
|
|
59
|
+
...Ze,
|
|
60
60
|
"application",
|
|
61
61
|
"consumer",
|
|
62
62
|
"country_code",
|
|
@@ -65,8 +65,8 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
65
65
|
"response_source",
|
|
66
66
|
"data_plane_node_version",
|
|
67
67
|
"realm"
|
|
68
|
-
], Se = oe(
|
|
69
|
-
...
|
|
68
|
+
], Se = oe(cn), ra = [
|
|
69
|
+
...un,
|
|
70
70
|
"response_latency_p99",
|
|
71
71
|
"response_latency_p95",
|
|
72
72
|
"response_latency_p50",
|
|
@@ -88,7 +88,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
88
88
|
"request_size_p50",
|
|
89
89
|
"request_size_average",
|
|
90
90
|
"request_size_sum"
|
|
91
|
-
],
|
|
91
|
+
], ln = [
|
|
92
92
|
"control_plane",
|
|
93
93
|
"control_plane_group",
|
|
94
94
|
"gateway_service",
|
|
@@ -106,7 +106,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
106
106
|
"status_code",
|
|
107
107
|
"status_code_grouped",
|
|
108
108
|
"ai_plugin"
|
|
109
|
-
], Oe = oe(
|
|
109
|
+
], Oe = oe(ln), aa = [
|
|
110
110
|
"total_tokens",
|
|
111
111
|
"prompt_tokens",
|
|
112
112
|
"completion_tokens",
|
|
@@ -117,7 +117,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
117
117
|
"llm_latency_average",
|
|
118
118
|
"llm_embeddings_tokens",
|
|
119
119
|
"llm_embeddings_cost"
|
|
120
|
-
],
|
|
120
|
+
], ia = [
|
|
121
121
|
"api",
|
|
122
122
|
"api_product",
|
|
123
123
|
"api_product_version",
|
|
@@ -151,7 +151,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
151
151
|
"upstream_uri",
|
|
152
152
|
"upstream_status_code_grouped",
|
|
153
153
|
"websocket"
|
|
154
|
-
],
|
|
154
|
+
], oa = oe(ia), sa = [
|
|
155
155
|
"auth_type",
|
|
156
156
|
"client_ip",
|
|
157
157
|
"data_plane_node_version",
|
|
@@ -166,7 +166,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
166
166
|
"service_protocol",
|
|
167
167
|
"trace_id",
|
|
168
168
|
"upstream_uri"
|
|
169
|
-
],
|
|
169
|
+
], Uo = sa, ua = [
|
|
170
170
|
"ai_count",
|
|
171
171
|
"latencies_response_ms",
|
|
172
172
|
"latencies_upstream_ms",
|
|
@@ -176,18 +176,18 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
176
176
|
"response_header_content_length",
|
|
177
177
|
"status_code",
|
|
178
178
|
"upstream_status_code"
|
|
179
|
-
],
|
|
179
|
+
], ca = oe(ua), Wo = [
|
|
180
180
|
"15M",
|
|
181
181
|
"1H",
|
|
182
182
|
"6H",
|
|
183
183
|
"12H",
|
|
184
184
|
"24H",
|
|
185
185
|
"7D"
|
|
186
|
-
],
|
|
186
|
+
], qo = ["basic", "api_usage", "llm_usage"], la = {
|
|
187
187
|
basic: new Set(Me),
|
|
188
188
|
api_usage: new Set(Se),
|
|
189
189
|
llm_usage: new Set(Oe)
|
|
190
|
-
},
|
|
190
|
+
}, jo = (e, t) => t.filter((n) => la[e].has(n.field)), dn = [
|
|
191
191
|
{ code: "AF", name: "Afghanistan" },
|
|
192
192
|
{ code: "AX", name: "Aland Islands" },
|
|
193
193
|
{ code: "AL", name: "Albania" },
|
|
@@ -434,7 +434,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
434
434
|
{ code: "YE", name: "Yemen" },
|
|
435
435
|
{ code: "ZM", name: "Zambia" },
|
|
436
436
|
{ code: "ZW", name: "Zimbabwe" }
|
|
437
|
-
],
|
|
437
|
+
], zo = [
|
|
438
438
|
"horizontal_bar",
|
|
439
439
|
"vertical_bar",
|
|
440
440
|
"gauge",
|
|
@@ -450,9 +450,9 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
450
450
|
type: "string"
|
|
451
451
|
}, U = {
|
|
452
452
|
type: "string"
|
|
453
|
-
},
|
|
453
|
+
}, mn = {
|
|
454
454
|
type: "boolean"
|
|
455
|
-
},
|
|
455
|
+
}, fn = {
|
|
456
456
|
type: ["object", "array"],
|
|
457
457
|
items: {
|
|
458
458
|
type: "string"
|
|
@@ -460,7 +460,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
460
460
|
additionalProperties: {
|
|
461
461
|
type: "string"
|
|
462
462
|
}
|
|
463
|
-
},
|
|
463
|
+
}, da = {
|
|
464
464
|
type: "object",
|
|
465
465
|
properties: {
|
|
466
466
|
type: {
|
|
@@ -473,7 +473,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
473
473
|
},
|
|
474
474
|
required: ["type", "id"],
|
|
475
475
|
additionalProperties: !1
|
|
476
|
-
},
|
|
476
|
+
}, ma = {
|
|
477
477
|
type: "object",
|
|
478
478
|
properties: {
|
|
479
479
|
type: {
|
|
@@ -483,14 +483,14 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
483
483
|
stacked: {
|
|
484
484
|
type: "boolean"
|
|
485
485
|
},
|
|
486
|
-
chart_dataset_colors:
|
|
486
|
+
chart_dataset_colors: fn,
|
|
487
487
|
synthetics_data_key: se,
|
|
488
488
|
chart_title: U,
|
|
489
|
-
allow_csv_export:
|
|
489
|
+
allow_csv_export: mn
|
|
490
490
|
},
|
|
491
491
|
required: ["type"],
|
|
492
492
|
additionalProperties: !1
|
|
493
|
-
},
|
|
493
|
+
}, fa = {
|
|
494
494
|
type: "object",
|
|
495
495
|
properties: {
|
|
496
496
|
type: {
|
|
@@ -510,7 +510,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
510
510
|
},
|
|
511
511
|
required: ["type", "value"],
|
|
512
512
|
additionalProperties: !1
|
|
513
|
-
},
|
|
513
|
+
}, ha = {
|
|
514
514
|
type: "object",
|
|
515
515
|
properties: {
|
|
516
516
|
type: {
|
|
@@ -524,17 +524,17 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
524
524
|
type: "object",
|
|
525
525
|
additionalProperties: {
|
|
526
526
|
type: "array",
|
|
527
|
-
items:
|
|
527
|
+
items: fa
|
|
528
528
|
}
|
|
529
529
|
},
|
|
530
|
-
chart_dataset_colors:
|
|
530
|
+
chart_dataset_colors: fn,
|
|
531
531
|
synthetics_data_key: se,
|
|
532
532
|
chart_title: U,
|
|
533
|
-
allow_csv_export:
|
|
533
|
+
allow_csv_export: mn
|
|
534
534
|
},
|
|
535
535
|
required: ["type"],
|
|
536
536
|
additionalProperties: !1
|
|
537
|
-
},
|
|
537
|
+
}, ya = {
|
|
538
538
|
type: "object",
|
|
539
539
|
properties: {
|
|
540
540
|
type: {
|
|
@@ -557,7 +557,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
557
557
|
},
|
|
558
558
|
required: ["type"],
|
|
559
559
|
additionalProperties: !1
|
|
560
|
-
},
|
|
560
|
+
}, ga = {
|
|
561
561
|
type: "object",
|
|
562
562
|
properties: {
|
|
563
563
|
type: {
|
|
@@ -569,7 +569,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
569
569
|
},
|
|
570
570
|
required: ["type"],
|
|
571
571
|
additionalProperties: !1
|
|
572
|
-
},
|
|
572
|
+
}, pa = {
|
|
573
573
|
type: "object",
|
|
574
574
|
properties: {
|
|
575
575
|
chart_title: U,
|
|
@@ -587,7 +587,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
587
587
|
},
|
|
588
588
|
required: ["type"],
|
|
589
589
|
additionalProperties: !1
|
|
590
|
-
},
|
|
590
|
+
}, _a = {
|
|
591
591
|
type: "object",
|
|
592
592
|
properties: {
|
|
593
593
|
chart_title: U,
|
|
@@ -607,7 +607,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
607
607
|
},
|
|
608
608
|
required: ["type"],
|
|
609
609
|
additionalProperties: !1
|
|
610
|
-
},
|
|
610
|
+
}, wa = {
|
|
611
611
|
type: "object",
|
|
612
612
|
properties: {
|
|
613
613
|
type: {
|
|
@@ -621,7 +621,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
621
621
|
},
|
|
622
622
|
required: ["type"],
|
|
623
623
|
additionalProperties: !1
|
|
624
|
-
},
|
|
624
|
+
}, ba = {
|
|
625
625
|
type: "object",
|
|
626
626
|
properties: {
|
|
627
627
|
type: {
|
|
@@ -631,7 +631,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
631
631
|
chart_title: U,
|
|
632
632
|
fit_to_country: {
|
|
633
633
|
type: "string",
|
|
634
|
-
enum:
|
|
634
|
+
enum: dn.map((e) => e.code)
|
|
635
635
|
},
|
|
636
636
|
legend: {
|
|
637
637
|
type: "boolean",
|
|
@@ -654,7 +654,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
654
654
|
},
|
|
655
655
|
required: ["type"],
|
|
656
656
|
additionalProperties: !1
|
|
657
|
-
},
|
|
657
|
+
}, Ta = {
|
|
658
658
|
type: "object",
|
|
659
659
|
properties: {
|
|
660
660
|
tz: {
|
|
@@ -669,7 +669,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
669
669
|
},
|
|
670
670
|
time_range: {
|
|
671
671
|
type: "string",
|
|
672
|
-
enum:
|
|
672
|
+
enum: on,
|
|
673
673
|
default: "1h"
|
|
674
674
|
}
|
|
675
675
|
},
|
|
@@ -678,7 +678,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
678
678
|
"time_range"
|
|
679
679
|
],
|
|
680
680
|
additionalProperties: !1
|
|
681
|
-
},
|
|
681
|
+
}, Da = {
|
|
682
682
|
type: "object",
|
|
683
683
|
description: "A duration representing an exact start and end time.",
|
|
684
684
|
properties: {
|
|
@@ -704,18 +704,18 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
704
704
|
"end"
|
|
705
705
|
],
|
|
706
706
|
additionalProperties: !1
|
|
707
|
-
},
|
|
707
|
+
}, Xe = {
|
|
708
708
|
granularity: {
|
|
709
709
|
type: "string",
|
|
710
710
|
description: 'Force time grouping into buckets of this duration. Only has an effect if "time" is in the "dimensions" list.',
|
|
711
|
-
enum:
|
|
711
|
+
enum: sn
|
|
712
712
|
},
|
|
713
713
|
time_range: {
|
|
714
714
|
type: "object",
|
|
715
715
|
description: "The time range to query.",
|
|
716
716
|
anyOf: [
|
|
717
|
-
|
|
718
|
-
|
|
717
|
+
Ta,
|
|
718
|
+
Da
|
|
719
719
|
],
|
|
720
720
|
default: {
|
|
721
721
|
type: "relative",
|
|
@@ -728,14 +728,14 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
728
728
|
meta: {
|
|
729
729
|
type: "object"
|
|
730
730
|
}
|
|
731
|
-
},
|
|
731
|
+
}, Qe = (e) => ({
|
|
732
732
|
type: "array",
|
|
733
733
|
description: "List of aggregated metrics to collect across the requested time span.",
|
|
734
734
|
items: {
|
|
735
735
|
type: "string",
|
|
736
736
|
enum: e
|
|
737
737
|
}
|
|
738
|
-
}),
|
|
738
|
+
}), Ke = (e) => ({
|
|
739
739
|
type: "array",
|
|
740
740
|
description: "List of attributes or entity types to group by.",
|
|
741
741
|
minItems: 0,
|
|
@@ -744,7 +744,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
744
744
|
type: "string",
|
|
745
745
|
enum: e
|
|
746
746
|
}
|
|
747
|
-
}),
|
|
747
|
+
}), Ee = (e) => ({
|
|
748
748
|
type: "array",
|
|
749
749
|
description: "A list of filters to apply to the query",
|
|
750
750
|
items: {
|
|
@@ -759,7 +759,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
759
759
|
},
|
|
760
760
|
operator: {
|
|
761
761
|
type: "string",
|
|
762
|
-
enum:
|
|
762
|
+
enum: ta
|
|
763
763
|
},
|
|
764
764
|
value: {
|
|
765
765
|
type: "array",
|
|
@@ -785,7 +785,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
785
785
|
},
|
|
786
786
|
operator: {
|
|
787
787
|
type: "string",
|
|
788
|
-
enum:
|
|
788
|
+
enum: na
|
|
789
789
|
}
|
|
790
790
|
},
|
|
791
791
|
required: [
|
|
@@ -796,7 +796,7 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
796
796
|
}
|
|
797
797
|
]
|
|
798
798
|
}
|
|
799
|
-
}),
|
|
799
|
+
}), Ma = {
|
|
800
800
|
type: "object",
|
|
801
801
|
description: "A query to launch at the advanced explore API",
|
|
802
802
|
properties: {
|
|
@@ -806,14 +806,14 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
806
806
|
"api_usage"
|
|
807
807
|
]
|
|
808
808
|
},
|
|
809
|
-
metrics:
|
|
810
|
-
dimensions:
|
|
811
|
-
filters:
|
|
812
|
-
...
|
|
809
|
+
metrics: Qe(ra),
|
|
810
|
+
dimensions: Ke(cn),
|
|
811
|
+
filters: Ee(Se),
|
|
812
|
+
...Xe
|
|
813
813
|
},
|
|
814
814
|
required: ["datasource"],
|
|
815
815
|
additionalProperties: !1
|
|
816
|
-
},
|
|
816
|
+
}, Sa = {
|
|
817
817
|
type: "object",
|
|
818
818
|
description: "A query to launch at the basic explore API",
|
|
819
819
|
properties: {
|
|
@@ -823,14 +823,14 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
823
823
|
"basic"
|
|
824
824
|
]
|
|
825
825
|
},
|
|
826
|
-
metrics:
|
|
827
|
-
dimensions:
|
|
828
|
-
filters:
|
|
829
|
-
...
|
|
826
|
+
metrics: Qe(un),
|
|
827
|
+
dimensions: Ke(Ze),
|
|
828
|
+
filters: Ee(Me),
|
|
829
|
+
...Xe
|
|
830
830
|
},
|
|
831
831
|
required: ["datasource"],
|
|
832
832
|
additionalProperties: !1
|
|
833
|
-
},
|
|
833
|
+
}, Oa = {
|
|
834
834
|
type: "object",
|
|
835
835
|
description: "A query to launch at the AI explore API",
|
|
836
836
|
properties: {
|
|
@@ -840,36 +840,36 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
840
840
|
"llm_usage"
|
|
841
841
|
]
|
|
842
842
|
},
|
|
843
|
-
metrics:
|
|
844
|
-
dimensions:
|
|
845
|
-
filters:
|
|
846
|
-
...
|
|
843
|
+
metrics: Qe(aa),
|
|
844
|
+
dimensions: Ke(ln),
|
|
845
|
+
filters: Ee(Oe),
|
|
846
|
+
...Xe
|
|
847
847
|
},
|
|
848
848
|
required: ["datasource"],
|
|
849
849
|
additionalProperties: !1
|
|
850
|
-
},
|
|
851
|
-
anyOf: [
|
|
852
|
-
},
|
|
850
|
+
}, Ea = {
|
|
851
|
+
anyOf: [Ma, Sa, Oa]
|
|
852
|
+
}, va = {
|
|
853
853
|
type: "object",
|
|
854
854
|
properties: {
|
|
855
|
-
query:
|
|
855
|
+
query: Ea,
|
|
856
856
|
chart: {
|
|
857
857
|
anyOf: [
|
|
858
|
-
sa,
|
|
859
|
-
la,
|
|
860
|
-
da,
|
|
861
|
-
ca,
|
|
862
|
-
fa,
|
|
863
858
|
ma,
|
|
864
|
-
|
|
859
|
+
ya,
|
|
860
|
+
ga,
|
|
865
861
|
ha,
|
|
866
|
-
|
|
862
|
+
_a,
|
|
863
|
+
pa,
|
|
864
|
+
da,
|
|
865
|
+
wa,
|
|
866
|
+
ba
|
|
867
867
|
]
|
|
868
868
|
}
|
|
869
869
|
},
|
|
870
870
|
required: ["query", "chart"],
|
|
871
871
|
additionalProperties: !1
|
|
872
|
-
},
|
|
872
|
+
}, Na = {
|
|
873
873
|
type: "object",
|
|
874
874
|
properties: {
|
|
875
875
|
position: {
|
|
@@ -906,15 +906,15 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
906
906
|
},
|
|
907
907
|
required: ["position", "size"],
|
|
908
908
|
additionalProperties: !1
|
|
909
|
-
},
|
|
909
|
+
}, Ia = {
|
|
910
910
|
type: "object",
|
|
911
911
|
properties: {
|
|
912
912
|
type: {
|
|
913
913
|
type: "string",
|
|
914
914
|
enum: ["chart"]
|
|
915
915
|
},
|
|
916
|
-
definition:
|
|
917
|
-
layout:
|
|
916
|
+
definition: va,
|
|
917
|
+
layout: Na,
|
|
918
918
|
id: {
|
|
919
919
|
type: "string",
|
|
920
920
|
description: "Unique identifier for the tile. If not provided, one will be generated."
|
|
@@ -922,18 +922,18 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
922
922
|
},
|
|
923
923
|
required: ["type", "definition", "layout"],
|
|
924
924
|
additionalProperties: !1
|
|
925
|
-
},
|
|
925
|
+
}, Vo = {
|
|
926
926
|
type: "object",
|
|
927
927
|
properties: {
|
|
928
928
|
tiles: {
|
|
929
929
|
type: "array",
|
|
930
|
-
items:
|
|
930
|
+
items: Ia
|
|
931
931
|
},
|
|
932
932
|
tile_height: {
|
|
933
933
|
type: "number",
|
|
934
934
|
description: "Height of each tile in pixels."
|
|
935
935
|
},
|
|
936
|
-
preset_filters:
|
|
936
|
+
preset_filters: Ee([.../* @__PURE__ */ new Set([...Se, ...Me, ...Oe])]),
|
|
937
937
|
template_id: {
|
|
938
938
|
type: ["string", "null"],
|
|
939
939
|
description: "Template id which was used to instantiate this dashboard."
|
|
@@ -941,10 +941,10 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
941
941
|
},
|
|
942
942
|
required: ["tiles"],
|
|
943
943
|
additionalProperties: !1
|
|
944
|
-
},
|
|
944
|
+
}, $o = (e) => {
|
|
945
945
|
const t = [];
|
|
946
|
-
return Me.includes(e) && t.push("basic"), Se.includes(e) && t.push("api_usage"), Oe.includes(e) && t.push("llm_usage"), (
|
|
947
|
-
},
|
|
946
|
+
return Me.includes(e) && t.push("basic"), Se.includes(e) && t.push("api_usage"), Oe.includes(e) && t.push("llm_usage"), (oa.includes(e) || ca.includes(e)) && t.push("requests"), t;
|
|
947
|
+
}, xa = {
|
|
948
948
|
lessThanXSeconds: {
|
|
949
949
|
one: "less than a second",
|
|
950
950
|
other: "less than {{count}} seconds"
|
|
@@ -1006,77 +1006,77 @@ const xo = ["90d", "180d", "365d", "current_year", "previous_year"], Ro = [
|
|
|
1006
1006
|
one: "almost 1 year",
|
|
1007
1007
|
other: "almost {{count}} years"
|
|
1008
1008
|
}
|
|
1009
|
-
},
|
|
1009
|
+
}, Pa = (e, t, n) => {
|
|
1010
1010
|
let r;
|
|
1011
|
-
const i =
|
|
1011
|
+
const i = xa[e];
|
|
1012
1012
|
return typeof i == "string" ? r = i : t === 1 ? r = i.one : r = i.other.replace("{{count}}", t.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
1013
1013
|
};
|
|
1014
|
-
function
|
|
1014
|
+
function He(e) {
|
|
1015
1015
|
return (t = {}) => {
|
|
1016
1016
|
const n = t.width ? String(t.width) : e.defaultWidth;
|
|
1017
1017
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
1018
1018
|
};
|
|
1019
1019
|
}
|
|
1020
|
-
const
|
|
1020
|
+
const Ra = {
|
|
1021
1021
|
full: "EEEE, MMMM do, y",
|
|
1022
1022
|
long: "MMMM do, y",
|
|
1023
1023
|
medium: "MMM d, y",
|
|
1024
1024
|
short: "MM/dd/yyyy"
|
|
1025
|
-
},
|
|
1025
|
+
}, Ca = {
|
|
1026
1026
|
full: "h:mm:ss a zzzz",
|
|
1027
1027
|
long: "h:mm:ss a z",
|
|
1028
1028
|
medium: "h:mm:ss a",
|
|
1029
1029
|
short: "h:mm a"
|
|
1030
|
-
},
|
|
1030
|
+
}, Ya = {
|
|
1031
1031
|
full: "{{date}} 'at' {{time}}",
|
|
1032
1032
|
long: "{{date}} 'at' {{time}}",
|
|
1033
1033
|
medium: "{{date}}, {{time}}",
|
|
1034
1034
|
short: "{{date}}, {{time}}"
|
|
1035
|
-
},
|
|
1036
|
-
date:
|
|
1037
|
-
formats:
|
|
1035
|
+
}, Ga = {
|
|
1036
|
+
date: He({
|
|
1037
|
+
formats: Ra,
|
|
1038
1038
|
defaultWidth: "full"
|
|
1039
1039
|
}),
|
|
1040
|
-
time:
|
|
1041
|
-
formats:
|
|
1040
|
+
time: He({
|
|
1041
|
+
formats: Ca,
|
|
1042
1042
|
defaultWidth: "full"
|
|
1043
1043
|
}),
|
|
1044
|
-
dateTime:
|
|
1045
|
-
formats:
|
|
1044
|
+
dateTime: He({
|
|
1045
|
+
formats: Ya,
|
|
1046
1046
|
defaultWidth: "full"
|
|
1047
1047
|
})
|
|
1048
|
-
},
|
|
1048
|
+
}, ka = {
|
|
1049
1049
|
lastWeek: "'last' eeee 'at' p",
|
|
1050
1050
|
yesterday: "'yesterday at' p",
|
|
1051
1051
|
today: "'today at' p",
|
|
1052
1052
|
tomorrow: "'tomorrow at' p",
|
|
1053
1053
|
nextWeek: "eeee 'at' p",
|
|
1054
1054
|
other: "P"
|
|
1055
|
-
},
|
|
1055
|
+
}, Aa = (e, t, n, r) => ka[e];
|
|
1056
1056
|
function re(e) {
|
|
1057
1057
|
return (t, n) => {
|
|
1058
1058
|
const r = n != null && n.context ? String(n.context) : "standalone";
|
|
1059
1059
|
let i;
|
|
1060
1060
|
if (r === "formatting" && e.formattingValues) {
|
|
1061
|
-
const c = e.defaultFormattingWidth || e.defaultWidth,
|
|
1062
|
-
i = e.formattingValues[
|
|
1061
|
+
const c = e.defaultFormattingWidth || e.defaultWidth, m = n != null && n.width ? String(n.width) : c;
|
|
1062
|
+
i = e.formattingValues[m] || e.formattingValues[c];
|
|
1063
1063
|
} else {
|
|
1064
|
-
const c = e.defaultWidth,
|
|
1065
|
-
i = e.values[
|
|
1064
|
+
const c = e.defaultWidth, m = n != null && n.width ? String(n.width) : e.defaultWidth;
|
|
1065
|
+
i = e.values[m] || e.values[c];
|
|
1066
1066
|
}
|
|
1067
|
-
const
|
|
1068
|
-
return i[
|
|
1067
|
+
const o = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
1068
|
+
return i[o];
|
|
1069
1069
|
};
|
|
1070
1070
|
}
|
|
1071
|
-
const
|
|
1071
|
+
const Fa = {
|
|
1072
1072
|
narrow: ["B", "A"],
|
|
1073
1073
|
abbreviated: ["BC", "AD"],
|
|
1074
1074
|
wide: ["Before Christ", "Anno Domini"]
|
|
1075
|
-
},
|
|
1075
|
+
}, Ha = {
|
|
1076
1076
|
narrow: ["1", "2", "3", "4"],
|
|
1077
1077
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
1078
1078
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
1079
|
-
},
|
|
1079
|
+
}, La = {
|
|
1080
1080
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
1081
1081
|
abbreviated: [
|
|
1082
1082
|
"Jan",
|
|
@@ -1106,7 +1106,7 @@ const Ca = {
|
|
|
1106
1106
|
"November",
|
|
1107
1107
|
"December"
|
|
1108
1108
|
]
|
|
1109
|
-
},
|
|
1109
|
+
}, Ua = {
|
|
1110
1110
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
1111
1111
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
1112
1112
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -1119,7 +1119,7 @@ const Ca = {
|
|
|
1119
1119
|
"Friday",
|
|
1120
1120
|
"Saturday"
|
|
1121
1121
|
]
|
|
1122
|
-
},
|
|
1122
|
+
}, Wa = {
|
|
1123
1123
|
narrow: {
|
|
1124
1124
|
am: "a",
|
|
1125
1125
|
pm: "p",
|
|
@@ -1150,7 +1150,7 @@ const Ca = {
|
|
|
1150
1150
|
evening: "evening",
|
|
1151
1151
|
night: "night"
|
|
1152
1152
|
}
|
|
1153
|
-
},
|
|
1153
|
+
}, qa = {
|
|
1154
1154
|
narrow: {
|
|
1155
1155
|
am: "a",
|
|
1156
1156
|
pm: "p",
|
|
@@ -1181,7 +1181,7 @@ const Ca = {
|
|
|
1181
1181
|
evening: "in the evening",
|
|
1182
1182
|
night: "at night"
|
|
1183
1183
|
}
|
|
1184
|
-
},
|
|
1184
|
+
}, ja = (e, t) => {
|
|
1185
1185
|
const n = Number(e), r = n % 100;
|
|
1186
1186
|
if (r > 20 || r < 10)
|
|
1187
1187
|
switch (r % 10) {
|
|
@@ -1193,89 +1193,89 @@ const Ca = {
|
|
|
1193
1193
|
return n + "rd";
|
|
1194
1194
|
}
|
|
1195
1195
|
return n + "th";
|
|
1196
|
-
},
|
|
1197
|
-
ordinalNumber:
|
|
1196
|
+
}, za = {
|
|
1197
|
+
ordinalNumber: ja,
|
|
1198
1198
|
era: re({
|
|
1199
|
-
values:
|
|
1199
|
+
values: Fa,
|
|
1200
1200
|
defaultWidth: "wide"
|
|
1201
1201
|
}),
|
|
1202
1202
|
quarter: re({
|
|
1203
|
-
values:
|
|
1203
|
+
values: Ha,
|
|
1204
1204
|
defaultWidth: "wide",
|
|
1205
1205
|
argumentCallback: (e) => e - 1
|
|
1206
1206
|
}),
|
|
1207
1207
|
month: re({
|
|
1208
|
-
values:
|
|
1208
|
+
values: La,
|
|
1209
1209
|
defaultWidth: "wide"
|
|
1210
1210
|
}),
|
|
1211
1211
|
day: re({
|
|
1212
|
-
values:
|
|
1212
|
+
values: Ua,
|
|
1213
1213
|
defaultWidth: "wide"
|
|
1214
1214
|
}),
|
|
1215
1215
|
dayPeriod: re({
|
|
1216
|
-
values:
|
|
1216
|
+
values: Wa,
|
|
1217
1217
|
defaultWidth: "wide",
|
|
1218
|
-
formattingValues:
|
|
1218
|
+
formattingValues: qa,
|
|
1219
1219
|
defaultFormattingWidth: "wide"
|
|
1220
1220
|
})
|
|
1221
1221
|
};
|
|
1222
1222
|
function ae(e) {
|
|
1223
1223
|
return (t, n = {}) => {
|
|
1224
|
-
const r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth],
|
|
1225
|
-
if (!
|
|
1224
|
+
const r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], o = t.match(i);
|
|
1225
|
+
if (!o)
|
|
1226
1226
|
return null;
|
|
1227
|
-
const c =
|
|
1227
|
+
const c = o[0], m = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], g = Array.isArray(m) ? $a(m, (d) => d.test(c)) : (
|
|
1228
1228
|
// [TODO] -- I challenge you to fix the type
|
|
1229
|
-
|
|
1229
|
+
Va(m, (d) => d.test(c))
|
|
1230
1230
|
);
|
|
1231
|
-
let
|
|
1232
|
-
|
|
1231
|
+
let l;
|
|
1232
|
+
l = e.valueCallback ? e.valueCallback(g) : g, l = n.valueCallback ? (
|
|
1233
1233
|
// [TODO] -- I challenge you to fix the type
|
|
1234
|
-
n.valueCallback(
|
|
1235
|
-
) :
|
|
1236
|
-
const
|
|
1237
|
-
return { value:
|
|
1234
|
+
n.valueCallback(l)
|
|
1235
|
+
) : l;
|
|
1236
|
+
const f = t.slice(c.length);
|
|
1237
|
+
return { value: l, rest: f };
|
|
1238
1238
|
};
|
|
1239
1239
|
}
|
|
1240
|
-
function
|
|
1240
|
+
function Va(e, t) {
|
|
1241
1241
|
for (const n in e)
|
|
1242
1242
|
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
1243
1243
|
return n;
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1245
|
+
function $a(e, t) {
|
|
1246
1246
|
for (let n = 0; n < e.length; n++)
|
|
1247
1247
|
if (t(e[n]))
|
|
1248
1248
|
return n;
|
|
1249
1249
|
}
|
|
1250
|
-
function
|
|
1250
|
+
function Ba(e) {
|
|
1251
1251
|
return (t, n = {}) => {
|
|
1252
1252
|
const r = t.match(e.matchPattern);
|
|
1253
1253
|
if (!r) return null;
|
|
1254
|
-
const i = r[0],
|
|
1255
|
-
if (!
|
|
1256
|
-
let c = e.valueCallback ? e.valueCallback(
|
|
1254
|
+
const i = r[0], o = t.match(e.parsePattern);
|
|
1255
|
+
if (!o) return null;
|
|
1256
|
+
let c = e.valueCallback ? e.valueCallback(o[0]) : o[0];
|
|
1257
1257
|
c = n.valueCallback ? n.valueCallback(c) : c;
|
|
1258
|
-
const
|
|
1259
|
-
return { value: c, rest:
|
|
1258
|
+
const m = t.slice(i.length);
|
|
1259
|
+
return { value: c, rest: m };
|
|
1260
1260
|
};
|
|
1261
1261
|
}
|
|
1262
|
-
const
|
|
1262
|
+
const Za = /^(\d+)(th|st|nd|rd)?/i, Xa = /\d+/i, Qa = {
|
|
1263
1263
|
narrow: /^(b|a)/i,
|
|
1264
1264
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
1265
1265
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
1266
|
-
},
|
|
1266
|
+
}, Ka = {
|
|
1267
1267
|
any: [/^b/i, /^(a|c)/i]
|
|
1268
|
-
},
|
|
1268
|
+
}, Ja = {
|
|
1269
1269
|
narrow: /^[1234]/i,
|
|
1270
1270
|
abbreviated: /^q[1234]/i,
|
|
1271
1271
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
1272
|
-
},
|
|
1272
|
+
}, ei = {
|
|
1273
1273
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1274
|
-
},
|
|
1274
|
+
}, ti = {
|
|
1275
1275
|
narrow: /^[jfmasond]/i,
|
|
1276
1276
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
1277
1277
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
1278
|
-
},
|
|
1278
|
+
}, ni = {
|
|
1279
1279
|
narrow: [
|
|
1280
1280
|
/^j/i,
|
|
1281
1281
|
/^f/i,
|
|
@@ -1304,18 +1304,18 @@ const ja = /^(\d+)(th|st|nd|rd)?/i, za = /\d+/i, Ba = {
|
|
|
1304
1304
|
/^n/i,
|
|
1305
1305
|
/^d/i
|
|
1306
1306
|
]
|
|
1307
|
-
},
|
|
1307
|
+
}, ri = {
|
|
1308
1308
|
narrow: /^[smtwf]/i,
|
|
1309
1309
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
1310
1310
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
1311
1311
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
1312
|
-
},
|
|
1312
|
+
}, ai = {
|
|
1313
1313
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
1314
1314
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
1315
|
-
},
|
|
1315
|
+
}, ii = {
|
|
1316
1316
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
1317
1317
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
1318
|
-
},
|
|
1318
|
+
}, oi = {
|
|
1319
1319
|
any: {
|
|
1320
1320
|
am: /^a/i,
|
|
1321
1321
|
pm: /^p/i,
|
|
@@ -1326,68 +1326,68 @@ const ja = /^(\d+)(th|st|nd|rd)?/i, za = /\d+/i, Ba = {
|
|
|
1326
1326
|
evening: /evening/i,
|
|
1327
1327
|
night: /night/i
|
|
1328
1328
|
}
|
|
1329
|
-
},
|
|
1330
|
-
ordinalNumber:
|
|
1331
|
-
matchPattern:
|
|
1332
|
-
parsePattern:
|
|
1329
|
+
}, si = {
|
|
1330
|
+
ordinalNumber: Ba({
|
|
1331
|
+
matchPattern: Za,
|
|
1332
|
+
parsePattern: Xa,
|
|
1333
1333
|
valueCallback: (e) => parseInt(e, 10)
|
|
1334
1334
|
}),
|
|
1335
1335
|
era: ae({
|
|
1336
|
-
matchPatterns:
|
|
1336
|
+
matchPatterns: Qa,
|
|
1337
1337
|
defaultMatchWidth: "wide",
|
|
1338
|
-
parsePatterns:
|
|
1338
|
+
parsePatterns: Ka,
|
|
1339
1339
|
defaultParseWidth: "any"
|
|
1340
1340
|
}),
|
|
1341
1341
|
quarter: ae({
|
|
1342
|
-
matchPatterns:
|
|
1342
|
+
matchPatterns: Ja,
|
|
1343
1343
|
defaultMatchWidth: "wide",
|
|
1344
|
-
parsePatterns:
|
|
1344
|
+
parsePatterns: ei,
|
|
1345
1345
|
defaultParseWidth: "any",
|
|
1346
1346
|
valueCallback: (e) => e + 1
|
|
1347
1347
|
}),
|
|
1348
1348
|
month: ae({
|
|
1349
|
-
matchPatterns:
|
|
1349
|
+
matchPatterns: ti,
|
|
1350
1350
|
defaultMatchWidth: "wide",
|
|
1351
|
-
parsePatterns:
|
|
1351
|
+
parsePatterns: ni,
|
|
1352
1352
|
defaultParseWidth: "any"
|
|
1353
1353
|
}),
|
|
1354
1354
|
day: ae({
|
|
1355
|
-
matchPatterns:
|
|
1355
|
+
matchPatterns: ri,
|
|
1356
1356
|
defaultMatchWidth: "wide",
|
|
1357
|
-
parsePatterns:
|
|
1357
|
+
parsePatterns: ai,
|
|
1358
1358
|
defaultParseWidth: "any"
|
|
1359
1359
|
}),
|
|
1360
1360
|
dayPeriod: ae({
|
|
1361
|
-
matchPatterns:
|
|
1361
|
+
matchPatterns: ii,
|
|
1362
1362
|
defaultMatchWidth: "any",
|
|
1363
|
-
parsePatterns:
|
|
1363
|
+
parsePatterns: oi,
|
|
1364
1364
|
defaultParseWidth: "any"
|
|
1365
1365
|
})
|
|
1366
|
-
},
|
|
1366
|
+
}, ui = {
|
|
1367
1367
|
code: "en-US",
|
|
1368
|
-
formatDistance:
|
|
1369
|
-
formatLong:
|
|
1370
|
-
formatRelative:
|
|
1371
|
-
localize:
|
|
1372
|
-
match:
|
|
1368
|
+
formatDistance: Pa,
|
|
1369
|
+
formatLong: Ga,
|
|
1370
|
+
formatRelative: Aa,
|
|
1371
|
+
localize: za,
|
|
1372
|
+
match: si,
|
|
1373
1373
|
options: {
|
|
1374
1374
|
weekStartsOn: 0,
|
|
1375
1375
|
firstWeekContainsDate: 1
|
|
1376
1376
|
}
|
|
1377
1377
|
};
|
|
1378
|
-
let
|
|
1378
|
+
let ci = {};
|
|
1379
1379
|
function ue() {
|
|
1380
|
-
return
|
|
1380
|
+
return ci;
|
|
1381
1381
|
}
|
|
1382
|
-
const
|
|
1383
|
-
function
|
|
1384
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" &&
|
|
1382
|
+
const hn = 6048e5, li = 864e5, di = 60, mi = 3600, kt = Symbol.for("constructDateFrom");
|
|
1383
|
+
function R(e, t) {
|
|
1384
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && kt in e ? e[kt](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
1385
1385
|
}
|
|
1386
|
-
function
|
|
1387
|
-
return
|
|
1386
|
+
function O(e, t) {
|
|
1387
|
+
return R(t || e, e);
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1390
|
-
const t =
|
|
1389
|
+
function At(e) {
|
|
1390
|
+
const t = O(e), n = new Date(
|
|
1391
1391
|
Date.UTC(
|
|
1392
1392
|
t.getFullYear(),
|
|
1393
1393
|
t.getMonth(),
|
|
@@ -1400,76 +1400,76 @@ function Gt(e) {
|
|
|
1400
1400
|
);
|
|
1401
1401
|
return n.setUTCFullYear(t.getFullYear()), +e - +n;
|
|
1402
1402
|
}
|
|
1403
|
-
function
|
|
1404
|
-
const n =
|
|
1403
|
+
function fi(e, ...t) {
|
|
1404
|
+
const n = R.bind(
|
|
1405
1405
|
null,
|
|
1406
1406
|
t.find((r) => typeof r == "object")
|
|
1407
1407
|
);
|
|
1408
1408
|
return t.map(n);
|
|
1409
1409
|
}
|
|
1410
1410
|
function ie(e, t) {
|
|
1411
|
-
const n =
|
|
1411
|
+
const n = O(e, t == null ? void 0 : t.in);
|
|
1412
1412
|
return n.setHours(0, 0, 0, 0), n;
|
|
1413
1413
|
}
|
|
1414
|
-
function
|
|
1415
|
-
const [r, i] =
|
|
1414
|
+
function hi(e, t, n) {
|
|
1415
|
+
const [r, i] = fi(
|
|
1416
1416
|
n == null ? void 0 : n.in,
|
|
1417
1417
|
e,
|
|
1418
1418
|
t
|
|
1419
|
-
),
|
|
1420
|
-
return Math.round((
|
|
1419
|
+
), o = ie(r), c = ie(i), m = +o - At(o), g = +c - At(c);
|
|
1420
|
+
return Math.round((m - g) / li);
|
|
1421
1421
|
}
|
|
1422
|
-
function
|
|
1423
|
-
const n =
|
|
1422
|
+
function yi(e, t) {
|
|
1423
|
+
const n = O(e, t == null ? void 0 : t.in);
|
|
1424
1424
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
1425
1425
|
}
|
|
1426
|
-
function
|
|
1427
|
-
const n =
|
|
1428
|
-
return
|
|
1426
|
+
function gi(e, t) {
|
|
1427
|
+
const n = O(e, t == null ? void 0 : t.in);
|
|
1428
|
+
return hi(n, yi(n)) + 1;
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1431
|
-
var
|
|
1432
|
-
const n = ue(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((
|
|
1430
|
+
function A(e, t) {
|
|
1431
|
+
var m, g, l, f;
|
|
1432
|
+
const n = ue(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((g = (m = t == null ? void 0 : t.locale) == null ? void 0 : m.options) == null ? void 0 : g.weekStartsOn) ?? n.weekStartsOn ?? ((f = (l = n.locale) == null ? void 0 : l.options) == null ? void 0 : f.weekStartsOn) ?? 0, i = O(e, t == null ? void 0 : t.in), o = i.getDay(), c = (o < r ? 7 : 0) + o - r;
|
|
1433
1433
|
return i.setDate(i.getDate() - c), i.setHours(0, 0, 0, 0), i;
|
|
1434
1434
|
}
|
|
1435
1435
|
function _e(e, t) {
|
|
1436
|
-
return
|
|
1436
|
+
return A(e, { ...t, weekStartsOn: 1 });
|
|
1437
1437
|
}
|
|
1438
|
-
function
|
|
1439
|
-
const n =
|
|
1438
|
+
function yn(e, t) {
|
|
1439
|
+
const n = O(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = R(n, 0);
|
|
1440
1440
|
i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
1441
|
-
const
|
|
1441
|
+
const o = _e(i), c = R(n, 0);
|
|
1442
1442
|
c.setFullYear(r, 0, 4), c.setHours(0, 0, 0, 0);
|
|
1443
|
-
const
|
|
1444
|
-
return n.getTime() >=
|
|
1443
|
+
const m = _e(c);
|
|
1444
|
+
return n.getTime() >= o.getTime() ? r + 1 : n.getTime() >= m.getTime() ? r : r - 1;
|
|
1445
1445
|
}
|
|
1446
|
-
function
|
|
1447
|
-
const n =
|
|
1446
|
+
function pi(e, t) {
|
|
1447
|
+
const n = yn(e, t), r = R(e, 0);
|
|
1448
1448
|
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), _e(r);
|
|
1449
1449
|
}
|
|
1450
|
-
function
|
|
1451
|
-
const n =
|
|
1452
|
-
return Math.round(r /
|
|
1453
|
-
}
|
|
1454
|
-
function
|
|
1455
|
-
var
|
|
1456
|
-
const n =
|
|
1457
|
-
c.setFullYear(r + 1, 0,
|
|
1458
|
-
const
|
|
1459
|
-
|
|
1460
|
-
const
|
|
1461
|
-
return +n >= +
|
|
1462
|
-
}
|
|
1463
|
-
function
|
|
1464
|
-
var
|
|
1465
|
-
const n = ue(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((
|
|
1466
|
-
return
|
|
1467
|
-
}
|
|
1468
|
-
function
|
|
1469
|
-
const n =
|
|
1470
|
-
return Math.round(r /
|
|
1471
|
-
}
|
|
1472
|
-
function
|
|
1450
|
+
function _i(e, t) {
|
|
1451
|
+
const n = O(e, t == null ? void 0 : t.in), r = +_e(n) - +pi(n);
|
|
1452
|
+
return Math.round(r / hn) + 1;
|
|
1453
|
+
}
|
|
1454
|
+
function gn(e, t) {
|
|
1455
|
+
var f, d, h, b;
|
|
1456
|
+
const n = O(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = ue(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (f = t == null ? void 0 : t.locale) == null ? void 0 : f.options) == null ? void 0 : d.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((b = (h = i.locale) == null ? void 0 : h.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, c = R((t == null ? void 0 : t.in) || e, 0);
|
|
1457
|
+
c.setFullYear(r + 1, 0, o), c.setHours(0, 0, 0, 0);
|
|
1458
|
+
const m = A(c, t), g = R((t == null ? void 0 : t.in) || e, 0);
|
|
1459
|
+
g.setFullYear(r, 0, o), g.setHours(0, 0, 0, 0);
|
|
1460
|
+
const l = A(g, t);
|
|
1461
|
+
return +n >= +m ? r + 1 : +n >= +l ? r : r - 1;
|
|
1462
|
+
}
|
|
1463
|
+
function wi(e, t) {
|
|
1464
|
+
var m, g, l, f;
|
|
1465
|
+
const n = ue(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((g = (m = t == null ? void 0 : t.locale) == null ? void 0 : m.options) == null ? void 0 : g.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((f = (l = n.locale) == null ? void 0 : l.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i = gn(e, t), o = R((t == null ? void 0 : t.in) || e, 0);
|
|
1466
|
+
return o.setFullYear(i, 0, r), o.setHours(0, 0, 0, 0), A(o, t);
|
|
1467
|
+
}
|
|
1468
|
+
function bi(e, t) {
|
|
1469
|
+
const n = O(e, t == null ? void 0 : t.in), r = +A(n, t) - +wi(n, t);
|
|
1470
|
+
return Math.round(r / hn) + 1;
|
|
1471
|
+
}
|
|
1472
|
+
function _(e, t) {
|
|
1473
1473
|
const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
|
|
1474
1474
|
return n + r;
|
|
1475
1475
|
}
|
|
@@ -1477,16 +1477,16 @@ const L = {
|
|
|
1477
1477
|
// Year
|
|
1478
1478
|
y(e, t) {
|
|
1479
1479
|
const n = e.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
1480
|
-
return
|
|
1480
|
+
return _(t === "yy" ? r % 100 : r, t.length);
|
|
1481
1481
|
},
|
|
1482
1482
|
// Month
|
|
1483
1483
|
M(e, t) {
|
|
1484
1484
|
const n = e.getMonth();
|
|
1485
|
-
return t === "M" ? String(n + 1) :
|
|
1485
|
+
return t === "M" ? String(n + 1) : _(n + 1, 2);
|
|
1486
1486
|
},
|
|
1487
1487
|
// Day of the month
|
|
1488
1488
|
d(e, t) {
|
|
1489
|
-
return
|
|
1489
|
+
return _(e.getDate(), t.length);
|
|
1490
1490
|
},
|
|
1491
1491
|
// AM or PM
|
|
1492
1492
|
a(e, t) {
|
|
@@ -1506,26 +1506,26 @@ const L = {
|
|
|
1506
1506
|
},
|
|
1507
1507
|
// Hour [1-12]
|
|
1508
1508
|
h(e, t) {
|
|
1509
|
-
return
|
|
1509
|
+
return _(e.getHours() % 12 || 12, t.length);
|
|
1510
1510
|
},
|
|
1511
1511
|
// Hour [0-23]
|
|
1512
1512
|
H(e, t) {
|
|
1513
|
-
return
|
|
1513
|
+
return _(e.getHours(), t.length);
|
|
1514
1514
|
},
|
|
1515
1515
|
// Minute
|
|
1516
1516
|
m(e, t) {
|
|
1517
|
-
return
|
|
1517
|
+
return _(e.getMinutes(), t.length);
|
|
1518
1518
|
},
|
|
1519
1519
|
// Second
|
|
1520
1520
|
s(e, t) {
|
|
1521
|
-
return
|
|
1521
|
+
return _(e.getSeconds(), t.length);
|
|
1522
1522
|
},
|
|
1523
1523
|
// Fraction of second
|
|
1524
1524
|
S(e, t) {
|
|
1525
1525
|
const n = t.length, r = e.getMilliseconds(), i = Math.trunc(
|
|
1526
1526
|
r * Math.pow(10, n - 3)
|
|
1527
1527
|
);
|
|
1528
|
-
return
|
|
1528
|
+
return _(i, t.length);
|
|
1529
1529
|
}
|
|
1530
1530
|
}, K = {
|
|
1531
1531
|
midnight: "midnight",
|
|
@@ -1534,7 +1534,7 @@ const L = {
|
|
|
1534
1534
|
afternoon: "afternoon",
|
|
1535
1535
|
evening: "evening",
|
|
1536
1536
|
night: "night"
|
|
1537
|
-
},
|
|
1537
|
+
}, Ft = {
|
|
1538
1538
|
// Era
|
|
1539
1539
|
G: function(e, t, n) {
|
|
1540
1540
|
const r = e.getFullYear() > 0 ? 1 : 0;
|
|
@@ -1560,17 +1560,17 @@ const L = {
|
|
|
1560
1560
|
},
|
|
1561
1561
|
// Local week-numbering year
|
|
1562
1562
|
Y: function(e, t, n, r) {
|
|
1563
|
-
const i =
|
|
1563
|
+
const i = gn(e, r), o = i > 0 ? i : 1 - i;
|
|
1564
1564
|
if (t === "YY") {
|
|
1565
|
-
const c =
|
|
1566
|
-
return
|
|
1565
|
+
const c = o % 100;
|
|
1566
|
+
return _(c, 2);
|
|
1567
1567
|
}
|
|
1568
|
-
return t === "Yo" ? n.ordinalNumber(
|
|
1568
|
+
return t === "Yo" ? n.ordinalNumber(o, { unit: "year" }) : _(o, t.length);
|
|
1569
1569
|
},
|
|
1570
1570
|
// ISO week-numbering year
|
|
1571
1571
|
R: function(e, t) {
|
|
1572
|
-
const n =
|
|
1573
|
-
return
|
|
1572
|
+
const n = yn(e);
|
|
1573
|
+
return _(n, t.length);
|
|
1574
1574
|
},
|
|
1575
1575
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
1576
1576
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -1583,7 +1583,7 @@ const L = {
|
|
|
1583
1583
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
1584
1584
|
u: function(e, t) {
|
|
1585
1585
|
const n = e.getFullYear();
|
|
1586
|
-
return
|
|
1586
|
+
return _(n, t.length);
|
|
1587
1587
|
},
|
|
1588
1588
|
// Quarter
|
|
1589
1589
|
Q: function(e, t, n) {
|
|
@@ -1592,7 +1592,7 @@ const L = {
|
|
|
1592
1592
|
case "Q":
|
|
1593
1593
|
return String(r);
|
|
1594
1594
|
case "QQ":
|
|
1595
|
-
return
|
|
1595
|
+
return _(r, 2);
|
|
1596
1596
|
case "Qo":
|
|
1597
1597
|
return n.ordinalNumber(r, { unit: "quarter" });
|
|
1598
1598
|
case "QQQ":
|
|
@@ -1620,7 +1620,7 @@ const L = {
|
|
|
1620
1620
|
case "q":
|
|
1621
1621
|
return String(r);
|
|
1622
1622
|
case "qq":
|
|
1623
|
-
return
|
|
1623
|
+
return _(r, 2);
|
|
1624
1624
|
case "qo":
|
|
1625
1625
|
return n.ordinalNumber(r, { unit: "quarter" });
|
|
1626
1626
|
case "qqq":
|
|
@@ -1672,7 +1672,7 @@ const L = {
|
|
|
1672
1672
|
case "L":
|
|
1673
1673
|
return String(r + 1);
|
|
1674
1674
|
case "LL":
|
|
1675
|
-
return
|
|
1675
|
+
return _(r + 1, 2);
|
|
1676
1676
|
case "Lo":
|
|
1677
1677
|
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
1678
1678
|
case "LLL":
|
|
@@ -1692,13 +1692,13 @@ const L = {
|
|
|
1692
1692
|
},
|
|
1693
1693
|
// Local week of year
|
|
1694
1694
|
w: function(e, t, n, r) {
|
|
1695
|
-
const i =
|
|
1696
|
-
return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) :
|
|
1695
|
+
const i = bi(e, r);
|
|
1696
|
+
return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : _(i, t.length);
|
|
1697
1697
|
},
|
|
1698
1698
|
// ISO week of year
|
|
1699
1699
|
I: function(e, t, n) {
|
|
1700
|
-
const r =
|
|
1701
|
-
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) :
|
|
1700
|
+
const r = _i(e);
|
|
1701
|
+
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : _(r, t.length);
|
|
1702
1702
|
},
|
|
1703
1703
|
// Day of the month
|
|
1704
1704
|
d: function(e, t, n) {
|
|
@@ -1706,8 +1706,8 @@ const L = {
|
|
|
1706
1706
|
},
|
|
1707
1707
|
// Day of year
|
|
1708
1708
|
D: function(e, t, n) {
|
|
1709
|
-
const r =
|
|
1710
|
-
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) :
|
|
1709
|
+
const r = gi(e);
|
|
1710
|
+
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : _(r, t.length);
|
|
1711
1711
|
},
|
|
1712
1712
|
// Day of week
|
|
1713
1713
|
E: function(e, t, n) {
|
|
@@ -1740,14 +1740,14 @@ const L = {
|
|
|
1740
1740
|
},
|
|
1741
1741
|
// Local day of week
|
|
1742
1742
|
e: function(e, t, n, r) {
|
|
1743
|
-
const i = e.getDay(),
|
|
1743
|
+
const i = e.getDay(), o = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
1744
1744
|
switch (t) {
|
|
1745
1745
|
case "e":
|
|
1746
|
-
return String(
|
|
1746
|
+
return String(o);
|
|
1747
1747
|
case "ee":
|
|
1748
|
-
return
|
|
1748
|
+
return _(o, 2);
|
|
1749
1749
|
case "eo":
|
|
1750
|
-
return n.ordinalNumber(
|
|
1750
|
+
return n.ordinalNumber(o, { unit: "day" });
|
|
1751
1751
|
case "eee":
|
|
1752
1752
|
return n.day(i, {
|
|
1753
1753
|
width: "abbreviated",
|
|
@@ -1773,14 +1773,14 @@ const L = {
|
|
|
1773
1773
|
},
|
|
1774
1774
|
// Stand-alone local day of week
|
|
1775
1775
|
c: function(e, t, n, r) {
|
|
1776
|
-
const i = e.getDay(),
|
|
1776
|
+
const i = e.getDay(), o = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
1777
1777
|
switch (t) {
|
|
1778
1778
|
case "c":
|
|
1779
|
-
return String(
|
|
1779
|
+
return String(o);
|
|
1780
1780
|
case "cc":
|
|
1781
|
-
return
|
|
1781
|
+
return _(o, t.length);
|
|
1782
1782
|
case "co":
|
|
1783
|
-
return n.ordinalNumber(
|
|
1783
|
+
return n.ordinalNumber(o, { unit: "day" });
|
|
1784
1784
|
case "ccc":
|
|
1785
1785
|
return n.day(i, {
|
|
1786
1786
|
width: "abbreviated",
|
|
@@ -1811,7 +1811,7 @@ const L = {
|
|
|
1811
1811
|
case "i":
|
|
1812
1812
|
return String(i);
|
|
1813
1813
|
case "ii":
|
|
1814
|
-
return
|
|
1814
|
+
return _(i, t.length);
|
|
1815
1815
|
case "io":
|
|
1816
1816
|
return n.ordinalNumber(i, { unit: "day" });
|
|
1817
1817
|
case "iii":
|
|
@@ -1934,12 +1934,12 @@ const L = {
|
|
|
1934
1934
|
// Hour [0-11]
|
|
1935
1935
|
K: function(e, t, n) {
|
|
1936
1936
|
const r = e.getHours() % 12;
|
|
1937
|
-
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
1937
|
+
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : _(r, t.length);
|
|
1938
1938
|
},
|
|
1939
1939
|
// Hour [1-24]
|
|
1940
1940
|
k: function(e, t, n) {
|
|
1941
1941
|
let r = e.getHours();
|
|
1942
|
-
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
1942
|
+
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : _(r, t.length);
|
|
1943
1943
|
},
|
|
1944
1944
|
// Minute
|
|
1945
1945
|
m: function(e, t, n) {
|
|
@@ -1960,14 +1960,14 @@ const L = {
|
|
|
1960
1960
|
return "Z";
|
|
1961
1961
|
switch (t) {
|
|
1962
1962
|
case "X":
|
|
1963
|
-
return
|
|
1963
|
+
return Lt(r);
|
|
1964
1964
|
case "XXXX":
|
|
1965
1965
|
case "XX":
|
|
1966
|
-
return
|
|
1966
|
+
return $(r);
|
|
1967
1967
|
case "XXXXX":
|
|
1968
1968
|
case "XXX":
|
|
1969
1969
|
default:
|
|
1970
|
-
return
|
|
1970
|
+
return $(r, ":");
|
|
1971
1971
|
}
|
|
1972
1972
|
},
|
|
1973
1973
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
@@ -1975,14 +1975,14 @@ const L = {
|
|
|
1975
1975
|
const r = e.getTimezoneOffset();
|
|
1976
1976
|
switch (t) {
|
|
1977
1977
|
case "x":
|
|
1978
|
-
return
|
|
1978
|
+
return Lt(r);
|
|
1979
1979
|
case "xxxx":
|
|
1980
1980
|
case "xx":
|
|
1981
|
-
return
|
|
1981
|
+
return $(r);
|
|
1982
1982
|
case "xxxxx":
|
|
1983
1983
|
case "xxx":
|
|
1984
1984
|
default:
|
|
1985
|
-
return
|
|
1985
|
+
return $(r, ":");
|
|
1986
1986
|
}
|
|
1987
1987
|
},
|
|
1988
1988
|
// Timezone (GMT)
|
|
@@ -1992,10 +1992,10 @@ const L = {
|
|
|
1992
1992
|
case "O":
|
|
1993
1993
|
case "OO":
|
|
1994
1994
|
case "OOO":
|
|
1995
|
-
return "GMT" +
|
|
1995
|
+
return "GMT" + Ht(r, ":");
|
|
1996
1996
|
case "OOOO":
|
|
1997
1997
|
default:
|
|
1998
|
-
return "GMT" +
|
|
1998
|
+
return "GMT" + $(r, ":");
|
|
1999
1999
|
}
|
|
2000
2000
|
},
|
|
2001
2001
|
// Timezone (specific non-location)
|
|
@@ -2005,34 +2005,34 @@ const L = {
|
|
|
2005
2005
|
case "z":
|
|
2006
2006
|
case "zz":
|
|
2007
2007
|
case "zzz":
|
|
2008
|
-
return "GMT" +
|
|
2008
|
+
return "GMT" + Ht(r, ":");
|
|
2009
2009
|
case "zzzz":
|
|
2010
2010
|
default:
|
|
2011
|
-
return "GMT" +
|
|
2011
|
+
return "GMT" + $(r, ":");
|
|
2012
2012
|
}
|
|
2013
2013
|
},
|
|
2014
2014
|
// Seconds timestamp
|
|
2015
2015
|
t: function(e, t, n) {
|
|
2016
2016
|
const r = Math.trunc(+e / 1e3);
|
|
2017
|
-
return
|
|
2017
|
+
return _(r, t.length);
|
|
2018
2018
|
},
|
|
2019
2019
|
// Milliseconds timestamp
|
|
2020
2020
|
T: function(e, t, n) {
|
|
2021
|
-
return
|
|
2021
|
+
return _(+e, t.length);
|
|
2022
2022
|
}
|
|
2023
2023
|
};
|
|
2024
|
-
function
|
|
2025
|
-
const n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60),
|
|
2026
|
-
return
|
|
2024
|
+
function Ht(e, t = "") {
|
|
2025
|
+
const n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60), o = r % 60;
|
|
2026
|
+
return o === 0 ? n + String(i) : n + String(i) + t + _(o, 2);
|
|
2027
2027
|
}
|
|
2028
|
-
function
|
|
2029
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") +
|
|
2028
|
+
function Lt(e, t) {
|
|
2029
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + _(Math.abs(e) / 60, 2) : $(e, t);
|
|
2030
2030
|
}
|
|
2031
|
-
function
|
|
2032
|
-
const n = e > 0 ? "-" : "+", r = Math.abs(e), i =
|
|
2033
|
-
return n + i + t +
|
|
2031
|
+
function $(e, t = "") {
|
|
2032
|
+
const n = e > 0 ? "-" : "+", r = Math.abs(e), i = _(Math.trunc(r / 60), 2), o = _(r % 60, 2);
|
|
2033
|
+
return n + i + t + o;
|
|
2034
2034
|
}
|
|
2035
|
-
const
|
|
2035
|
+
const Ut = (e, t) => {
|
|
2036
2036
|
switch (e) {
|
|
2037
2037
|
case "P":
|
|
2038
2038
|
return t.date({ width: "short" });
|
|
@@ -2044,7 +2044,7 @@ const Ft = (e, t) => {
|
|
|
2044
2044
|
default:
|
|
2045
2045
|
return t.date({ width: "full" });
|
|
2046
2046
|
}
|
|
2047
|
-
},
|
|
2047
|
+
}, pn = (e, t) => {
|
|
2048
2048
|
switch (e) {
|
|
2049
2049
|
case "p":
|
|
2050
2050
|
return t.time({ width: "short" });
|
|
@@ -2056,164 +2056,164 @@ const Ft = (e, t) => {
|
|
|
2056
2056
|
default:
|
|
2057
2057
|
return t.time({ width: "full" });
|
|
2058
2058
|
}
|
|
2059
|
-
},
|
|
2059
|
+
}, Ti = (e, t) => {
|
|
2060
2060
|
const n = e.match(/(P+)(p+)?/) || [], r = n[1], i = n[2];
|
|
2061
2061
|
if (!i)
|
|
2062
|
-
return
|
|
2063
|
-
let
|
|
2062
|
+
return Ut(e, t);
|
|
2063
|
+
let o;
|
|
2064
2064
|
switch (r) {
|
|
2065
2065
|
case "P":
|
|
2066
|
-
|
|
2066
|
+
o = t.dateTime({ width: "short" });
|
|
2067
2067
|
break;
|
|
2068
2068
|
case "PP":
|
|
2069
|
-
|
|
2069
|
+
o = t.dateTime({ width: "medium" });
|
|
2070
2070
|
break;
|
|
2071
2071
|
case "PPP":
|
|
2072
|
-
|
|
2072
|
+
o = t.dateTime({ width: "long" });
|
|
2073
2073
|
break;
|
|
2074
2074
|
case "PPPP":
|
|
2075
2075
|
default:
|
|
2076
|
-
|
|
2076
|
+
o = t.dateTime({ width: "full" });
|
|
2077
2077
|
break;
|
|
2078
2078
|
}
|
|
2079
|
-
return
|
|
2080
|
-
},
|
|
2081
|
-
p:
|
|
2082
|
-
P:
|
|
2083
|
-
},
|
|
2084
|
-
function
|
|
2085
|
-
return
|
|
2079
|
+
return o.replace("{{date}}", Ut(r, t)).replace("{{time}}", pn(i, t));
|
|
2080
|
+
}, Di = {
|
|
2081
|
+
p: pn,
|
|
2082
|
+
P: Ti
|
|
2083
|
+
}, Mi = /^D+$/, Si = /^Y+$/, Oi = ["D", "DD", "YY", "YYYY"];
|
|
2084
|
+
function Ei(e) {
|
|
2085
|
+
return Mi.test(e);
|
|
2086
2086
|
}
|
|
2087
|
-
function
|
|
2088
|
-
return
|
|
2087
|
+
function vi(e) {
|
|
2088
|
+
return Si.test(e);
|
|
2089
2089
|
}
|
|
2090
|
-
function
|
|
2091
|
-
const r =
|
|
2092
|
-
if (console.warn(r),
|
|
2090
|
+
function Ni(e, t, n) {
|
|
2091
|
+
const r = Ii(e, t, n);
|
|
2092
|
+
if (console.warn(r), Oi.includes(e)) throw new RangeError(r);
|
|
2093
2093
|
}
|
|
2094
|
-
function
|
|
2094
|
+
function Ii(e, t, n) {
|
|
2095
2095
|
const r = e[0] === "Y" ? "years" : "days of the month";
|
|
2096
2096
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
2097
2097
|
}
|
|
2098
|
-
function
|
|
2098
|
+
function xi(e) {
|
|
2099
2099
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
2100
2100
|
}
|
|
2101
|
-
function
|
|
2102
|
-
return !(!
|
|
2101
|
+
function Pi(e) {
|
|
2102
|
+
return !(!xi(e) && typeof e != "number" || isNaN(+O(e)));
|
|
2103
2103
|
}
|
|
2104
|
-
const
|
|
2105
|
-
function
|
|
2106
|
-
var
|
|
2107
|
-
const r = ue(), i = (n == null ? void 0 : n.locale) ?? r.locale ??
|
|
2108
|
-
if (!
|
|
2104
|
+
const Ri = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ci = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Yi = /^'([^]*?)'?$/, Gi = /''/g, ki = /[a-zA-Z]/;
|
|
2105
|
+
function Ai(e, t, n) {
|
|
2106
|
+
var f, d, h, b, E, N, C, W;
|
|
2107
|
+
const r = ue(), i = (n == null ? void 0 : n.locale) ?? r.locale ?? ui, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((d = (f = n == null ? void 0 : n.locale) == null ? void 0 : f.options) == null ? void 0 : d.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((b = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, c = (n == null ? void 0 : n.weekStartsOn) ?? ((N = (E = n == null ? void 0 : n.locale) == null ? void 0 : E.options) == null ? void 0 : N.weekStartsOn) ?? r.weekStartsOn ?? ((W = (C = r.locale) == null ? void 0 : C.options) == null ? void 0 : W.weekStartsOn) ?? 0, m = O(e, n == null ? void 0 : n.in);
|
|
2108
|
+
if (!Pi(m))
|
|
2109
2109
|
throw new RangeError("Invalid time value");
|
|
2110
|
-
let
|
|
2111
|
-
const
|
|
2112
|
-
if (
|
|
2113
|
-
const q =
|
|
2114
|
-
return q(
|
|
2110
|
+
let g = t.match(Ci).map((v) => {
|
|
2111
|
+
const D = v[0];
|
|
2112
|
+
if (D === "p" || D === "P") {
|
|
2113
|
+
const q = Di[D];
|
|
2114
|
+
return q(v, i.formatLong);
|
|
2115
2115
|
}
|
|
2116
|
-
return
|
|
2117
|
-
}).join("").match(
|
|
2118
|
-
if (
|
|
2116
|
+
return v;
|
|
2117
|
+
}).join("").match(Ri).map((v) => {
|
|
2118
|
+
if (v === "''")
|
|
2119
2119
|
return { isToken: !1, value: "'" };
|
|
2120
|
-
const
|
|
2121
|
-
if (
|
|
2122
|
-
return { isToken: !1, value:
|
|
2123
|
-
if (
|
|
2124
|
-
return { isToken: !0, value:
|
|
2125
|
-
if (
|
|
2120
|
+
const D = v[0];
|
|
2121
|
+
if (D === "'")
|
|
2122
|
+
return { isToken: !1, value: Fi(v) };
|
|
2123
|
+
if (Ft[D])
|
|
2124
|
+
return { isToken: !0, value: v };
|
|
2125
|
+
if (D.match(ki))
|
|
2126
2126
|
throw new RangeError(
|
|
2127
|
-
"Format string contains an unescaped latin alphabet character `" +
|
|
2127
|
+
"Format string contains an unescaped latin alphabet character `" + D + "`"
|
|
2128
2128
|
);
|
|
2129
|
-
return { isToken: !1, value:
|
|
2129
|
+
return { isToken: !1, value: v };
|
|
2130
2130
|
});
|
|
2131
|
-
i.localize.preprocessor && (
|
|
2132
|
-
const
|
|
2133
|
-
firstWeekContainsDate:
|
|
2131
|
+
i.localize.preprocessor && (g = i.localize.preprocessor(m, g));
|
|
2132
|
+
const l = {
|
|
2133
|
+
firstWeekContainsDate: o,
|
|
2134
2134
|
weekStartsOn: c,
|
|
2135
2135
|
locale: i
|
|
2136
2136
|
};
|
|
2137
|
-
return
|
|
2138
|
-
if (!
|
|
2139
|
-
const
|
|
2140
|
-
(!(n != null && n.useAdditionalWeekYearTokens) &&
|
|
2141
|
-
const q =
|
|
2142
|
-
return q(
|
|
2137
|
+
return g.map((v) => {
|
|
2138
|
+
if (!v.isToken) return v.value;
|
|
2139
|
+
const D = v.value;
|
|
2140
|
+
(!(n != null && n.useAdditionalWeekYearTokens) && vi(D) || !(n != null && n.useAdditionalDayOfYearTokens) && Ei(D)) && Ni(D, t, String(e));
|
|
2141
|
+
const q = Ft[D[0]];
|
|
2142
|
+
return q(m, D, i.localize, l);
|
|
2143
2143
|
}).join("");
|
|
2144
2144
|
}
|
|
2145
|
-
function
|
|
2146
|
-
const t = e.match(
|
|
2147
|
-
return t ? t[1].replace(
|
|
2145
|
+
function Fi(e) {
|
|
2146
|
+
const t = e.match(Yi);
|
|
2147
|
+
return t ? t[1].replace(Gi, "'") : e;
|
|
2148
2148
|
}
|
|
2149
2149
|
function Le(e, t, n) {
|
|
2150
|
-
const r =
|
|
2151
|
-
return isNaN(t) ?
|
|
2152
|
-
}
|
|
2153
|
-
function
|
|
2154
|
-
const r =
|
|
2155
|
-
if (isNaN(t)) return
|
|
2156
|
-
const i = r.getDate(),
|
|
2157
|
-
|
|
2158
|
-
const c =
|
|
2159
|
-
return i >= c ?
|
|
2160
|
-
|
|
2161
|
-
|
|
2150
|
+
const r = O(e, n == null ? void 0 : n.in);
|
|
2151
|
+
return isNaN(t) ? R(e, NaN) : (r.setDate(r.getDate() + t), r);
|
|
2152
|
+
}
|
|
2153
|
+
function Hi(e, t, n) {
|
|
2154
|
+
const r = O(e, n == null ? void 0 : n.in);
|
|
2155
|
+
if (isNaN(t)) return R(e, NaN);
|
|
2156
|
+
const i = r.getDate(), o = R(e, r.getTime());
|
|
2157
|
+
o.setMonth(r.getMonth() + t + 1, 0);
|
|
2158
|
+
const c = o.getDate();
|
|
2159
|
+
return i >= c ? o : (r.setFullYear(
|
|
2160
|
+
o.getFullYear(),
|
|
2161
|
+
o.getMonth(),
|
|
2162
2162
|
i
|
|
2163
2163
|
), r);
|
|
2164
2164
|
}
|
|
2165
2165
|
function ee(e, t) {
|
|
2166
|
-
const n =
|
|
2166
|
+
const n = O(e, t == null ? void 0 : t.in);
|
|
2167
2167
|
return n.setDate(1), n.setHours(0, 0, 0, 0), n;
|
|
2168
2168
|
}
|
|
2169
|
-
function
|
|
2170
|
-
const n =
|
|
2171
|
-
return
|
|
2169
|
+
function Li(e, t) {
|
|
2170
|
+
const n = O(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = n.getMonth(), o = R(n, 0);
|
|
2171
|
+
return o.setFullYear(r, i + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
|
|
2172
2172
|
}
|
|
2173
|
-
function
|
|
2173
|
+
function Ui() {
|
|
2174
2174
|
return Object.assign({}, ue());
|
|
2175
2175
|
}
|
|
2176
|
-
function
|
|
2177
|
-
return +
|
|
2176
|
+
function Wt(e) {
|
|
2177
|
+
return +O(e);
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2180
|
-
return Math.trunc(+
|
|
2179
|
+
function qt(e) {
|
|
2180
|
+
return Math.trunc(+O(e) / 1e3);
|
|
2181
2181
|
}
|
|
2182
|
-
function
|
|
2183
|
-
return Math.trunc(e *
|
|
2182
|
+
function jt(e) {
|
|
2183
|
+
return Math.trunc(e * mi);
|
|
2184
2184
|
}
|
|
2185
|
-
function
|
|
2186
|
-
const t = e /
|
|
2185
|
+
function Wi(e) {
|
|
2186
|
+
const t = e / di;
|
|
2187
2187
|
return Math.trunc(t);
|
|
2188
2188
|
}
|
|
2189
|
-
function
|
|
2190
|
-
return
|
|
2189
|
+
function _n(e, t, n) {
|
|
2190
|
+
return Hi(e, -1, n);
|
|
2191
2191
|
}
|
|
2192
|
-
function
|
|
2193
|
-
const r =
|
|
2194
|
-
return "formatToParts" in i ?
|
|
2192
|
+
function zt(e, t, n) {
|
|
2193
|
+
const r = Ui(), i = zi(e, n.timeZone, n.locale ?? r.locale);
|
|
2194
|
+
return "formatToParts" in i ? qi(i, t) : ji(i, t);
|
|
2195
2195
|
}
|
|
2196
|
-
function
|
|
2196
|
+
function qi(e, t) {
|
|
2197
2197
|
const n = e.formatToParts(t);
|
|
2198
2198
|
for (let r = n.length - 1; r >= 0; --r)
|
|
2199
2199
|
if (n[r].type === "timeZoneName")
|
|
2200
2200
|
return n[r].value;
|
|
2201
2201
|
}
|
|
2202
|
-
function
|
|
2202
|
+
function ji(e, t) {
|
|
2203
2203
|
const n = e.format(t).replace(/\u200E/g, ""), r = / [\w-+ ]+$/.exec(n);
|
|
2204
2204
|
return r ? r[0].substr(1) : "";
|
|
2205
2205
|
}
|
|
2206
|
-
function
|
|
2206
|
+
function zi(e, t, n) {
|
|
2207
2207
|
return new Intl.DateTimeFormat(n ? [n.code, "en-US"] : void 0, {
|
|
2208
2208
|
timeZone: t,
|
|
2209
2209
|
timeZoneName: e
|
|
2210
2210
|
});
|
|
2211
2211
|
}
|
|
2212
|
-
function
|
|
2213
|
-
const n =
|
|
2214
|
-
return "formatToParts" in n ?
|
|
2212
|
+
function Vi(e, t) {
|
|
2213
|
+
const n = Qi(t);
|
|
2214
|
+
return "formatToParts" in n ? Bi(n, e) : Zi(n, e);
|
|
2215
2215
|
}
|
|
2216
|
-
const
|
|
2216
|
+
const $i = {
|
|
2217
2217
|
year: 0,
|
|
2218
2218
|
month: 1,
|
|
2219
2219
|
day: 2,
|
|
@@ -2221,12 +2221,12 @@ const Wi = {
|
|
|
2221
2221
|
minute: 4,
|
|
2222
2222
|
second: 5
|
|
2223
2223
|
};
|
|
2224
|
-
function
|
|
2224
|
+
function Bi(e, t) {
|
|
2225
2225
|
try {
|
|
2226
2226
|
const n = e.formatToParts(t), r = [];
|
|
2227
2227
|
for (let i = 0; i < n.length; i++) {
|
|
2228
|
-
const
|
|
2229
|
-
|
|
2228
|
+
const o = $i[n[i].type];
|
|
2229
|
+
o !== void 0 && (r[o] = parseInt(n[i].value, 10));
|
|
2230
2230
|
}
|
|
2231
2231
|
return r;
|
|
2232
2232
|
} catch (n) {
|
|
@@ -2235,7 +2235,7 @@ function qi(e, t) {
|
|
|
2235
2235
|
throw n;
|
|
2236
2236
|
}
|
|
2237
2237
|
}
|
|
2238
|
-
function
|
|
2238
|
+
function Zi(e, t) {
|
|
2239
2239
|
const n = e.format(t), r = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);
|
|
2240
2240
|
return [
|
|
2241
2241
|
parseInt(r[3], 10),
|
|
@@ -2246,7 +2246,7 @@ function ji(e, t) {
|
|
|
2246
2246
|
parseInt(r[6], 10)
|
|
2247
2247
|
];
|
|
2248
2248
|
}
|
|
2249
|
-
const Ue = {},
|
|
2249
|
+
const Ue = {}, Vt = new Intl.DateTimeFormat("en-US", {
|
|
2250
2250
|
hourCycle: "h23",
|
|
2251
2251
|
timeZone: "America/New_York",
|
|
2252
2252
|
year: "numeric",
|
|
@@ -2255,9 +2255,9 @@ const Ue = {}, jt = new Intl.DateTimeFormat("en-US", {
|
|
|
2255
2255
|
hour: "2-digit",
|
|
2256
2256
|
minute: "2-digit",
|
|
2257
2257
|
second: "2-digit"
|
|
2258
|
-
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")),
|
|
2259
|
-
function
|
|
2260
|
-
return Ue[e] || (Ue[e] =
|
|
2258
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), Xi = Vt === "06/25/2014, 00:00:00" || Vt === "06/25/2014 00:00:00";
|
|
2259
|
+
function Qi(e) {
|
|
2260
|
+
return Ue[e] || (Ue[e] = Xi ? new Intl.DateTimeFormat("en-US", {
|
|
2261
2261
|
hourCycle: "h23",
|
|
2262
2262
|
timeZone: e,
|
|
2263
2263
|
year: "numeric",
|
|
@@ -2277,11 +2277,11 @@ function Bi(e) {
|
|
|
2277
2277
|
second: "2-digit"
|
|
2278
2278
|
})), Ue[e];
|
|
2279
2279
|
}
|
|
2280
|
-
function
|
|
2281
|
-
const
|
|
2282
|
-
return
|
|
2280
|
+
function Je(e, t, n, r, i, o, c) {
|
|
2281
|
+
const m = /* @__PURE__ */ new Date(0);
|
|
2282
|
+
return m.setUTCFullYear(e, t, n), m.setUTCHours(r, i, o, c), m;
|
|
2283
2283
|
}
|
|
2284
|
-
const
|
|
2284
|
+
const $t = 36e5, Ki = 6e4, We = {
|
|
2285
2285
|
timezoneZ: /^(Z)$/,
|
|
2286
2286
|
timezoneHH: /^([+-]\d{2})$/,
|
|
2287
2287
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
@@ -2292,53 +2292,53 @@ function ce(e, t, n) {
|
|
|
2292
2292
|
let r = We.timezoneZ.exec(e);
|
|
2293
2293
|
if (r)
|
|
2294
2294
|
return 0;
|
|
2295
|
-
let i,
|
|
2295
|
+
let i, o;
|
|
2296
2296
|
if (r = We.timezoneHH.exec(e), r)
|
|
2297
|
-
return i = parseInt(r[1], 10), Bt(i) ? -(i *
|
|
2297
|
+
return i = parseInt(r[1], 10), Bt(i) ? -(i * $t) : NaN;
|
|
2298
2298
|
if (r = We.timezoneHHMM.exec(e), r) {
|
|
2299
2299
|
i = parseInt(r[2], 10);
|
|
2300
2300
|
const c = parseInt(r[3], 10);
|
|
2301
|
-
return Bt(i, c) ? (
|
|
2301
|
+
return Bt(i, c) ? (o = Math.abs(i) * $t + c * Ki, r[1] === "+" ? -o : o) : NaN;
|
|
2302
2302
|
}
|
|
2303
|
-
if (
|
|
2303
|
+
if (to(e)) {
|
|
2304
2304
|
t = new Date(t || Date.now());
|
|
2305
|
-
const c = n ? t :
|
|
2306
|
-
return -(n ?
|
|
2305
|
+
const c = n ? t : Ji(t), m = Be(c, e);
|
|
2306
|
+
return -(n ? m : eo(t, m, e));
|
|
2307
2307
|
}
|
|
2308
2308
|
return NaN;
|
|
2309
2309
|
}
|
|
2310
|
-
function
|
|
2311
|
-
return
|
|
2310
|
+
function Ji(e) {
|
|
2311
|
+
return Je(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
2312
2312
|
}
|
|
2313
2313
|
function Be(e, t) {
|
|
2314
|
-
const n =
|
|
2314
|
+
const n = Vi(e, t), r = Je(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
|
|
2315
2315
|
let i = e.getTime();
|
|
2316
|
-
const
|
|
2317
|
-
return i -=
|
|
2316
|
+
const o = i % 1e3;
|
|
2317
|
+
return i -= o >= 0 ? o : 1e3 + o, r - i;
|
|
2318
2318
|
}
|
|
2319
|
-
function
|
|
2319
|
+
function eo(e, t, n) {
|
|
2320
2320
|
let i = e.getTime() - t;
|
|
2321
|
-
const
|
|
2322
|
-
if (t ===
|
|
2321
|
+
const o = Be(new Date(i), n);
|
|
2322
|
+
if (t === o)
|
|
2323
2323
|
return t;
|
|
2324
|
-
i -=
|
|
2324
|
+
i -= o - t;
|
|
2325
2325
|
const c = Be(new Date(i), n);
|
|
2326
|
-
return
|
|
2326
|
+
return o === c ? o : Math.max(o, c);
|
|
2327
2327
|
}
|
|
2328
2328
|
function Bt(e, t) {
|
|
2329
2329
|
return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
|
|
2330
2330
|
}
|
|
2331
|
-
const
|
|
2332
|
-
function
|
|
2333
|
-
if (
|
|
2331
|
+
const Zt = {};
|
|
2332
|
+
function to(e) {
|
|
2333
|
+
if (Zt[e])
|
|
2334
2334
|
return !0;
|
|
2335
2335
|
try {
|
|
2336
|
-
return new Intl.DateTimeFormat(void 0, { timeZone: e }),
|
|
2336
|
+
return new Intl.DateTimeFormat(void 0, { timeZone: e }), Zt[e] = !0, !0;
|
|
2337
2337
|
} catch {
|
|
2338
2338
|
return !1;
|
|
2339
2339
|
}
|
|
2340
2340
|
}
|
|
2341
|
-
const
|
|
2341
|
+
const no = 60 * 1e3, ro = {
|
|
2342
2342
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
2343
2343
|
X: function(e, t, n) {
|
|
2344
2344
|
const r = qe(n.timeZone, e);
|
|
@@ -2346,7 +2346,7 @@ const Qi = 60 * 1e3, Ki = {
|
|
|
2346
2346
|
return "Z";
|
|
2347
2347
|
switch (t) {
|
|
2348
2348
|
case "X":
|
|
2349
|
-
return
|
|
2349
|
+
return Xt(r);
|
|
2350
2350
|
case "XXXX":
|
|
2351
2351
|
case "XX":
|
|
2352
2352
|
return J(r);
|
|
@@ -2361,7 +2361,7 @@ const Qi = 60 * 1e3, Ki = {
|
|
|
2361
2361
|
const r = qe(n.timeZone, e);
|
|
2362
2362
|
switch (t) {
|
|
2363
2363
|
case "x":
|
|
2364
|
-
return
|
|
2364
|
+
return Xt(r);
|
|
2365
2365
|
case "xxxx":
|
|
2366
2366
|
case "xx":
|
|
2367
2367
|
return J(r);
|
|
@@ -2378,7 +2378,7 @@ const Qi = 60 * 1e3, Ki = {
|
|
|
2378
2378
|
case "O":
|
|
2379
2379
|
case "OO":
|
|
2380
2380
|
case "OOO":
|
|
2381
|
-
return "GMT" +
|
|
2381
|
+
return "GMT" + ao(r, ":");
|
|
2382
2382
|
case "OOOO":
|
|
2383
2383
|
default:
|
|
2384
2384
|
return "GMT" + J(r, ":");
|
|
@@ -2390,15 +2390,15 @@ const Qi = 60 * 1e3, Ki = {
|
|
|
2390
2390
|
case "z":
|
|
2391
2391
|
case "zz":
|
|
2392
2392
|
case "zzz":
|
|
2393
|
-
return
|
|
2393
|
+
return zt("short", e, n);
|
|
2394
2394
|
case "zzzz":
|
|
2395
2395
|
default:
|
|
2396
|
-
return
|
|
2396
|
+
return zt("long", e, n);
|
|
2397
2397
|
}
|
|
2398
2398
|
}
|
|
2399
2399
|
};
|
|
2400
2400
|
function qe(e, t) {
|
|
2401
|
-
const n = e ? ce(e, t, !0) /
|
|
2401
|
+
const n = e ? ce(e, t, !0) / no : (t == null ? void 0 : t.getTimezoneOffset()) ?? 0;
|
|
2402
2402
|
if (Number.isNaN(n))
|
|
2403
2403
|
throw new RangeError("Invalid time zone specified: " + e);
|
|
2404
2404
|
return n;
|
|
@@ -2411,21 +2411,21 @@ function we(e, t) {
|
|
|
2411
2411
|
return n + r;
|
|
2412
2412
|
}
|
|
2413
2413
|
function J(e, t = "") {
|
|
2414
|
-
const n = e > 0 ? "-" : "+", r = Math.abs(e), i = we(Math.floor(r / 60), 2),
|
|
2415
|
-
return n + i + t +
|
|
2414
|
+
const n = e > 0 ? "-" : "+", r = Math.abs(e), i = we(Math.floor(r / 60), 2), o = we(Math.floor(r % 60), 2);
|
|
2415
|
+
return n + i + t + o;
|
|
2416
2416
|
}
|
|
2417
|
-
function
|
|
2417
|
+
function Xt(e, t) {
|
|
2418
2418
|
return e % 60 === 0 ? (e > 0 ? "-" : "+") + we(Math.abs(e) / 60, 2) : J(e, t);
|
|
2419
2419
|
}
|
|
2420
|
-
function
|
|
2421
|
-
const n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.floor(r / 60),
|
|
2422
|
-
return
|
|
2420
|
+
function ao(e, t = "") {
|
|
2421
|
+
const n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.floor(r / 60), o = r % 60;
|
|
2422
|
+
return o === 0 ? n + String(i) : n + String(i) + t + we(o, 2);
|
|
2423
2423
|
}
|
|
2424
|
-
function
|
|
2424
|
+
function Qt(e) {
|
|
2425
2425
|
const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
2426
2426
|
return t.setUTCFullYear(e.getFullYear()), +e - +t;
|
|
2427
2427
|
}
|
|
2428
|
-
const
|
|
2428
|
+
const wn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, je = 36e5, Kt = 6e4, io = 2, I = {
|
|
2429
2429
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
2430
2430
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
2431
2431
|
// year tokens
|
|
@@ -2457,14 +2457,14 @@ const gn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)
|
|
|
2457
2457
|
HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
2458
2458
|
HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
2459
2459
|
// time zone tokens (to identify the presence of a tz)
|
|
2460
|
-
timeZone:
|
|
2460
|
+
timeZone: wn
|
|
2461
2461
|
};
|
|
2462
|
-
function
|
|
2462
|
+
function be(e, t = {}) {
|
|
2463
2463
|
if (arguments.length < 1)
|
|
2464
2464
|
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
2465
2465
|
if (e === null)
|
|
2466
2466
|
return /* @__PURE__ */ new Date(NaN);
|
|
2467
|
-
const n = t.additionalDigits == null ?
|
|
2467
|
+
const n = t.additionalDigits == null ? io : Number(t.additionalDigits);
|
|
2468
2468
|
if (n !== 2 && n !== 1 && n !== 0)
|
|
2469
2469
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
2470
2470
|
if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
|
|
@@ -2473,48 +2473,48 @@ function Te(e, t = {}) {
|
|
|
2473
2473
|
return new Date(e);
|
|
2474
2474
|
if (Object.prototype.toString.call(e) !== "[object String]")
|
|
2475
2475
|
return /* @__PURE__ */ new Date(NaN);
|
|
2476
|
-
const r =
|
|
2476
|
+
const r = oo(e), { year: i, restDateString: o } = so(r.date, n), c = uo(o, i);
|
|
2477
2477
|
if (c === null || isNaN(c.getTime()))
|
|
2478
2478
|
return /* @__PURE__ */ new Date(NaN);
|
|
2479
2479
|
if (c) {
|
|
2480
|
-
const
|
|
2481
|
-
let
|
|
2482
|
-
if (r.time && (
|
|
2480
|
+
const m = c.getTime();
|
|
2481
|
+
let g = 0, l;
|
|
2482
|
+
if (r.time && (g = co(r.time), g === null || isNaN(g)))
|
|
2483
2483
|
return /* @__PURE__ */ new Date(NaN);
|
|
2484
2484
|
if (r.timeZone || t.timeZone) {
|
|
2485
|
-
if (
|
|
2485
|
+
if (l = ce(r.timeZone || t.timeZone, new Date(m + g)), isNaN(l))
|
|
2486
2486
|
return /* @__PURE__ */ new Date(NaN);
|
|
2487
2487
|
} else
|
|
2488
|
-
|
|
2489
|
-
return new Date(
|
|
2488
|
+
l = Qt(new Date(m + g)), l = Qt(new Date(m + g + l));
|
|
2489
|
+
return new Date(m + g + l);
|
|
2490
2490
|
} else
|
|
2491
2491
|
return /* @__PURE__ */ new Date(NaN);
|
|
2492
2492
|
}
|
|
2493
|
-
function
|
|
2493
|
+
function oo(e) {
|
|
2494
2494
|
const t = {};
|
|
2495
|
-
let n =
|
|
2496
|
-
if (n ? (t.date = n[1], r = n[3]) : (n =
|
|
2497
|
-
const i =
|
|
2495
|
+
let n = I.dateTimePattern.exec(e), r;
|
|
2496
|
+
if (n ? (t.date = n[1], r = n[3]) : (n = I.datePattern.exec(e), n ? (t.date = n[1], r = n[2]) : (t.date = null, r = e)), r) {
|
|
2497
|
+
const i = I.timeZone.exec(r);
|
|
2498
2498
|
i ? (t.time = r.replace(i[1], ""), t.timeZone = i[1].trim()) : t.time = r;
|
|
2499
2499
|
}
|
|
2500
2500
|
return t;
|
|
2501
2501
|
}
|
|
2502
|
-
function
|
|
2502
|
+
function so(e, t) {
|
|
2503
2503
|
if (e) {
|
|
2504
|
-
const n =
|
|
2505
|
-
let i =
|
|
2504
|
+
const n = I.YYY[t], r = I.YYYYY[t];
|
|
2505
|
+
let i = I.YYYY.exec(e) || r.exec(e);
|
|
2506
2506
|
if (i) {
|
|
2507
|
-
const
|
|
2507
|
+
const o = i[1];
|
|
2508
2508
|
return {
|
|
2509
|
-
year: parseInt(
|
|
2510
|
-
restDateString: e.slice(
|
|
2509
|
+
year: parseInt(o, 10),
|
|
2510
|
+
restDateString: e.slice(o.length)
|
|
2511
2511
|
};
|
|
2512
2512
|
}
|
|
2513
|
-
if (i =
|
|
2514
|
-
const
|
|
2513
|
+
if (i = I.YY.exec(e) || n.exec(e), i) {
|
|
2514
|
+
const o = i[1];
|
|
2515
2515
|
return {
|
|
2516
|
-
year: parseInt(
|
|
2517
|
-
restDateString: e.slice(
|
|
2516
|
+
year: parseInt(o, 10) * 100,
|
|
2517
|
+
restDateString: e.slice(o.length)
|
|
2518
2518
|
};
|
|
2519
2519
|
}
|
|
2520
2520
|
}
|
|
@@ -2522,124 +2522,124 @@ function no(e, t) {
|
|
|
2522
2522
|
year: null
|
|
2523
2523
|
};
|
|
2524
2524
|
}
|
|
2525
|
-
function
|
|
2525
|
+
function uo(e, t) {
|
|
2526
2526
|
if (t === null)
|
|
2527
2527
|
return null;
|
|
2528
2528
|
let n, r, i;
|
|
2529
2529
|
if (!e || !e.length)
|
|
2530
2530
|
return n = /* @__PURE__ */ new Date(0), n.setUTCFullYear(t), n;
|
|
2531
|
-
let
|
|
2532
|
-
if (
|
|
2533
|
-
return n = /* @__PURE__ */ new Date(0), r = parseInt(
|
|
2534
|
-
if (
|
|
2531
|
+
let o = I.MM.exec(e);
|
|
2532
|
+
if (o)
|
|
2533
|
+
return n = /* @__PURE__ */ new Date(0), r = parseInt(o[1], 10) - 1, en(t, r) ? (n.setUTCFullYear(t, r), n) : /* @__PURE__ */ new Date(NaN);
|
|
2534
|
+
if (o = I.DDD.exec(e), o) {
|
|
2535
2535
|
n = /* @__PURE__ */ new Date(0);
|
|
2536
|
-
const c = parseInt(
|
|
2537
|
-
return
|
|
2536
|
+
const c = parseInt(o[1], 10);
|
|
2537
|
+
return fo(t, c) ? (n.setUTCFullYear(t, 0, c), n) : /* @__PURE__ */ new Date(NaN);
|
|
2538
2538
|
}
|
|
2539
|
-
if (
|
|
2540
|
-
n = /* @__PURE__ */ new Date(0), r = parseInt(
|
|
2541
|
-
const c = parseInt(
|
|
2542
|
-
return
|
|
2539
|
+
if (o = I.MMDD.exec(e), o) {
|
|
2540
|
+
n = /* @__PURE__ */ new Date(0), r = parseInt(o[1], 10) - 1;
|
|
2541
|
+
const c = parseInt(o[2], 10);
|
|
2542
|
+
return en(t, r, c) ? (n.setUTCFullYear(t, r, c), n) : /* @__PURE__ */ new Date(NaN);
|
|
2543
2543
|
}
|
|
2544
|
-
if (
|
|
2545
|
-
return i = parseInt(
|
|
2546
|
-
if (
|
|
2547
|
-
i = parseInt(
|
|
2548
|
-
const c = parseInt(
|
|
2549
|
-
return
|
|
2544
|
+
if (o = I.Www.exec(e), o)
|
|
2545
|
+
return i = parseInt(o[1], 10) - 1, tn(i) ? Jt(t, i) : /* @__PURE__ */ new Date(NaN);
|
|
2546
|
+
if (o = I.WwwD.exec(e), o) {
|
|
2547
|
+
i = parseInt(o[1], 10) - 1;
|
|
2548
|
+
const c = parseInt(o[2], 10) - 1;
|
|
2549
|
+
return tn(i, c) ? Jt(t, i, c) : /* @__PURE__ */ new Date(NaN);
|
|
2550
2550
|
}
|
|
2551
2551
|
return null;
|
|
2552
2552
|
}
|
|
2553
|
-
function
|
|
2554
|
-
let t, n, r =
|
|
2553
|
+
function co(e) {
|
|
2554
|
+
let t, n, r = I.HH.exec(e);
|
|
2555
2555
|
if (r)
|
|
2556
2556
|
return t = parseFloat(r[1].replace(",", ".")), ze(t) ? t % 24 * je : NaN;
|
|
2557
|
-
if (r =
|
|
2558
|
-
return t = parseInt(r[1], 10), n = parseFloat(r[2].replace(",", ".")), ze(t, n) ? t % 24 * je + n *
|
|
2559
|
-
if (r =
|
|
2557
|
+
if (r = I.HHMM.exec(e), r)
|
|
2558
|
+
return t = parseInt(r[1], 10), n = parseFloat(r[2].replace(",", ".")), ze(t, n) ? t % 24 * je + n * Kt : NaN;
|
|
2559
|
+
if (r = I.HHMMSS.exec(e), r) {
|
|
2560
2560
|
t = parseInt(r[1], 10), n = parseInt(r[2], 10);
|
|
2561
2561
|
const i = parseFloat(r[3].replace(",", "."));
|
|
2562
|
-
return ze(t, n, i) ? t % 24 * je + n *
|
|
2562
|
+
return ze(t, n, i) ? t % 24 * je + n * Kt + i * 1e3 : NaN;
|
|
2563
2563
|
}
|
|
2564
2564
|
return null;
|
|
2565
2565
|
}
|
|
2566
|
-
function
|
|
2566
|
+
function Jt(e, t, n) {
|
|
2567
2567
|
t = t || 0, n = n || 0;
|
|
2568
2568
|
const r = /* @__PURE__ */ new Date(0);
|
|
2569
2569
|
r.setUTCFullYear(e, 0, 4);
|
|
2570
|
-
const i = r.getUTCDay() || 7,
|
|
2571
|
-
return r.setUTCDate(r.getUTCDate() +
|
|
2570
|
+
const i = r.getUTCDay() || 7, o = t * 7 + n + 1 - i;
|
|
2571
|
+
return r.setUTCDate(r.getUTCDate() + o), r;
|
|
2572
2572
|
}
|
|
2573
|
-
const
|
|
2574
|
-
function
|
|
2573
|
+
const lo = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], mo = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
2574
|
+
function bn(e) {
|
|
2575
2575
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
2576
2576
|
}
|
|
2577
|
-
function
|
|
2577
|
+
function en(e, t, n) {
|
|
2578
2578
|
if (t < 0 || t > 11)
|
|
2579
2579
|
return !1;
|
|
2580
2580
|
if (n != null) {
|
|
2581
2581
|
if (n < 1)
|
|
2582
2582
|
return !1;
|
|
2583
|
-
const r =
|
|
2584
|
-
if (r && n >
|
|
2583
|
+
const r = bn(e);
|
|
2584
|
+
if (r && n > mo[t] || !r && n > lo[t])
|
|
2585
2585
|
return !1;
|
|
2586
2586
|
}
|
|
2587
2587
|
return !0;
|
|
2588
2588
|
}
|
|
2589
|
-
function
|
|
2589
|
+
function fo(e, t) {
|
|
2590
2590
|
if (t < 1)
|
|
2591
2591
|
return !1;
|
|
2592
|
-
const n =
|
|
2592
|
+
const n = bn(e);
|
|
2593
2593
|
return !(n && t > 366 || !n && t > 365);
|
|
2594
2594
|
}
|
|
2595
|
-
function
|
|
2595
|
+
function tn(e, t) {
|
|
2596
2596
|
return !(e < 0 || e > 52 || t != null && (t < 0 || t > 6));
|
|
2597
2597
|
}
|
|
2598
2598
|
function ze(e, t, n) {
|
|
2599
2599
|
return !(e < 0 || e >= 25 || t != null && (t < 0 || t >= 60) || n != null && (n < 0 || n >= 60));
|
|
2600
2600
|
}
|
|
2601
|
-
const
|
|
2602
|
-
function
|
|
2601
|
+
const ho = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
|
|
2602
|
+
function yo(e, t, n = {}) {
|
|
2603
2603
|
t = String(t);
|
|
2604
|
-
const r = t.match(
|
|
2604
|
+
const r = t.match(ho);
|
|
2605
2605
|
if (r) {
|
|
2606
|
-
const i =
|
|
2607
|
-
t = r.reduce(function(
|
|
2606
|
+
const i = be(n.originalDate || e, n);
|
|
2607
|
+
t = r.reduce(function(o, c) {
|
|
2608
2608
|
if (c[0] === "'")
|
|
2609
|
-
return
|
|
2610
|
-
const
|
|
2611
|
-
return
|
|
2609
|
+
return o;
|
|
2610
|
+
const m = o.indexOf(c), g = o[m - 1] === "'", l = o.replace(c, "'" + ro[c[0]](i, c, n) + "'");
|
|
2611
|
+
return g ? l.substring(0, m - 1) + l.substring(m + 1) : l;
|
|
2612
2612
|
}, t);
|
|
2613
2613
|
}
|
|
2614
|
-
return
|
|
2614
|
+
return Ai(e, t, n);
|
|
2615
2615
|
}
|
|
2616
|
-
function
|
|
2617
|
-
e =
|
|
2618
|
-
const r = ce(t, e, !0), i = new Date(e.getTime() - r),
|
|
2619
|
-
return
|
|
2616
|
+
function Tn(e, t, n) {
|
|
2617
|
+
e = be(e, n);
|
|
2618
|
+
const r = ce(t, e, !0), i = new Date(e.getTime() - r), o = /* @__PURE__ */ new Date(0);
|
|
2619
|
+
return o.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()), o.setHours(i.getUTCHours(), i.getUTCMinutes(), i.getUTCSeconds(), i.getUTCMilliseconds()), o;
|
|
2620
2620
|
}
|
|
2621
|
-
function
|
|
2621
|
+
function Dn(e, t, n, r) {
|
|
2622
2622
|
return r = {
|
|
2623
2623
|
...r,
|
|
2624
2624
|
timeZone: t,
|
|
2625
2625
|
originalDate: e
|
|
2626
|
-
},
|
|
2626
|
+
}, yo(Tn(e, t, { timeZone: r.timeZone }), n, r);
|
|
2627
2627
|
}
|
|
2628
|
-
function
|
|
2629
|
-
if (typeof e == "string" && !e.match(
|
|
2630
|
-
return
|
|
2631
|
-
e =
|
|
2632
|
-
const r =
|
|
2628
|
+
function go(e, t, n) {
|
|
2629
|
+
if (typeof e == "string" && !e.match(wn))
|
|
2630
|
+
return be(e, { ...n, timeZone: t });
|
|
2631
|
+
e = be(e, n);
|
|
2632
|
+
const r = Je(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i = ce(t, new Date(r));
|
|
2633
2633
|
return new Date(r + i);
|
|
2634
2634
|
}
|
|
2635
|
-
function
|
|
2635
|
+
function Mn(e, t) {
|
|
2636
2636
|
return -ce(e, t);
|
|
2637
2637
|
}
|
|
2638
|
-
function
|
|
2638
|
+
function Bo(e, t = {}) {
|
|
2639
2639
|
const n = (t == null ? void 0 : t.tz) || Intl.DateTimeFormat().resolvedOptions().timeZone, r = t != null && t.includeTZ ? "yyyy-MM-dd HH:mm:ss.SSS (z)" : "yyyy-MM-dd HH:mm:ss.SSS";
|
|
2640
|
-
return
|
|
2640
|
+
return Dn(e, n, r);
|
|
2641
2641
|
}
|
|
2642
|
-
function
|
|
2642
|
+
function nn(e, t = {}) {
|
|
2643
2643
|
if (!e)
|
|
2644
2644
|
return e;
|
|
2645
2645
|
const n = t.tz || Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -2647,15 +2647,15 @@ function en(e, t = {}) {
|
|
|
2647
2647
|
let r = "MMM dd, yyy hh:mm a";
|
|
2648
2648
|
t.short && (r = "MMM dd, yyy"), t.includeTZ && (r += " (z)");
|
|
2649
2649
|
const i = new Date(e);
|
|
2650
|
-
return
|
|
2650
|
+
return Dn(i, n, r);
|
|
2651
2651
|
} catch {
|
|
2652
2652
|
return console.error("Invalid value passed to formatTime", e), "(invalid date)";
|
|
2653
2653
|
}
|
|
2654
2654
|
}
|
|
2655
|
-
function
|
|
2656
|
-
return `${
|
|
2655
|
+
function Zo(e, t) {
|
|
2656
|
+
return `${nn(e.getTime())} - ${nn(t.getTime(), { includeTZ: !0 })}`;
|
|
2657
2657
|
}
|
|
2658
|
-
const
|
|
2658
|
+
const Te = {
|
|
2659
2659
|
secondly: 1e3,
|
|
2660
2660
|
tenSecondly: 10 * 1e3,
|
|
2661
2661
|
thirtySecondly: 30 * 1e3,
|
|
@@ -2670,39 +2670,39 @@ const be = {
|
|
|
2670
2670
|
weekly: 60 * 60 * 24 * 7 * 1e3,
|
|
2671
2671
|
trend: 0
|
|
2672
2672
|
};
|
|
2673
|
-
function
|
|
2673
|
+
function Xo(e, t) {
|
|
2674
2674
|
return e.map((n) => ({
|
|
2675
2675
|
value: n,
|
|
2676
2676
|
label: t.t(`configuration.vitals.reports.granularity.${n}`)
|
|
2677
2677
|
}));
|
|
2678
2678
|
}
|
|
2679
|
-
function
|
|
2679
|
+
function po(e, t) {
|
|
2680
2680
|
return {
|
|
2681
2681
|
duration: e,
|
|
2682
2682
|
type: "duration",
|
|
2683
2683
|
origin: t
|
|
2684
2684
|
};
|
|
2685
2685
|
}
|
|
2686
|
-
function
|
|
2687
|
-
return e &&
|
|
2686
|
+
function Qo(e) {
|
|
2687
|
+
return e && sn.find((n) => e <= Te[n]) || null;
|
|
2688
2688
|
}
|
|
2689
|
-
function
|
|
2690
|
-
const i =
|
|
2691
|
-
let
|
|
2692
|
-
return i >=
|
|
2689
|
+
function Sn(e, t, n, r) {
|
|
2690
|
+
const i = Te[n];
|
|
2691
|
+
let o = 0;
|
|
2692
|
+
return i >= Te.daily && (r ? o = -Mn(r, t) : o = t.getTimezoneOffset() * 60 * 1e3), new Date(e((t.getTime() - o) / i) * i + o);
|
|
2693
2693
|
}
|
|
2694
|
-
function
|
|
2695
|
-
return
|
|
2694
|
+
function _o(e, t, n) {
|
|
2695
|
+
return Sn(Math.floor, e, t, n);
|
|
2696
2696
|
}
|
|
2697
|
-
function
|
|
2698
|
-
return
|
|
2697
|
+
function On(e, t, n) {
|
|
2698
|
+
return Sn(Math.ceil, e, t, n);
|
|
2699
2699
|
}
|
|
2700
|
-
class
|
|
2700
|
+
class ve {
|
|
2701
2701
|
constructor(t, n, r) {
|
|
2702
2702
|
T(this, "timeframe");
|
|
2703
2703
|
T(this, "tz");
|
|
2704
2704
|
T(this, "dataGranularity");
|
|
2705
|
-
if (this.constructor ===
|
|
2705
|
+
if (this.constructor === ve)
|
|
2706
2706
|
throw new Error("BaseQueryTime is not meant to be used directly.");
|
|
2707
2707
|
this.timeframe = t, this.tz = n, this.dataGranularity = r ?? t.dataGranularity;
|
|
2708
2708
|
}
|
|
@@ -2710,36 +2710,36 @@ class Ee {
|
|
|
2710
2710
|
if (t)
|
|
2711
2711
|
return new Date(this.endDate().getTime() - this.timeframe.timeframeLengthMs() * r);
|
|
2712
2712
|
{
|
|
2713
|
-
const i = this.endDate(),
|
|
2714
|
-
return new Date(c.getTime() -
|
|
2713
|
+
const i = this.endDate(), o = this.timeframe.rawStart(this.tz), c = _o(o, n, this.tz), g = (i.getTime() - c.getTime()) * (r - 1);
|
|
2714
|
+
return new Date(c.getTime() - g);
|
|
2715
2715
|
}
|
|
2716
2716
|
}
|
|
2717
2717
|
granularitySeconds() {
|
|
2718
2718
|
return Math.floor(this.granularityMs() / 1e3);
|
|
2719
2719
|
}
|
|
2720
2720
|
granularityDruid() {
|
|
2721
|
-
return
|
|
2721
|
+
return po(this.granularityMs(), this.startDate().toISOString());
|
|
2722
2722
|
}
|
|
2723
2723
|
// Return a UNIX timestamp suitable for use in the `start` query param.
|
|
2724
2724
|
startSeconds() {
|
|
2725
|
-
return
|
|
2725
|
+
return qt(this.startDate());
|
|
2726
2726
|
}
|
|
2727
2727
|
// Return a UNIX timestamp suitable for use in the `end` query param.
|
|
2728
2728
|
endSeconds() {
|
|
2729
|
-
return
|
|
2729
|
+
return qt(this.endDate());
|
|
2730
2730
|
}
|
|
2731
2731
|
// Return epoch time in milliseconds, suitable for use in the `startMs` query param.
|
|
2732
2732
|
startMs() {
|
|
2733
|
-
return
|
|
2733
|
+
return Wt(this.startDate());
|
|
2734
2734
|
}
|
|
2735
2735
|
// Return epoch time in milliseconds, suitable for use in the `endMs` query param.
|
|
2736
2736
|
endMs() {
|
|
2737
|
-
return
|
|
2737
|
+
return Wt(this.endDate());
|
|
2738
2738
|
}
|
|
2739
2739
|
}
|
|
2740
|
-
class
|
|
2741
|
-
constructor(n, r, i,
|
|
2742
|
-
super(n, i,
|
|
2740
|
+
class Ko extends ve {
|
|
2741
|
+
constructor(n, r, i, o, c) {
|
|
2742
|
+
super(n, i, o);
|
|
2743
2743
|
T(this, "granularity");
|
|
2744
2744
|
r && n.allowedGranularities(c).has(r) ? this.granularity = r : c ? this.granularity = n.fineGrainedDefaultGranularity ?? n.defaultResponseGranularity : this.granularity = n.defaultResponseGranularity;
|
|
2745
2745
|
}
|
|
@@ -2747,24 +2747,24 @@ class Vo extends Ee {
|
|
|
2747
2747
|
return this.calculateStartDate(this.timeframe.isRelative, this.granularity);
|
|
2748
2748
|
}
|
|
2749
2749
|
endDate() {
|
|
2750
|
-
return
|
|
2750
|
+
return On(this.timeframe.rawEnd(), this.granularity, this.tz);
|
|
2751
2751
|
}
|
|
2752
2752
|
granularityMs() {
|
|
2753
|
-
return
|
|
2753
|
+
return Te[this.granularity];
|
|
2754
2754
|
}
|
|
2755
2755
|
}
|
|
2756
|
-
class
|
|
2756
|
+
class wo extends ve {
|
|
2757
2757
|
startDate() {
|
|
2758
2758
|
return this.calculateStartDate(this.timeframe.isRelative, this.dataGranularity);
|
|
2759
2759
|
}
|
|
2760
2760
|
endDate() {
|
|
2761
|
-
return
|
|
2761
|
+
return On(this.timeframe.rawEnd(this.tz), this.dataGranularity, this.tz);
|
|
2762
2762
|
}
|
|
2763
2763
|
granularityMs() {
|
|
2764
2764
|
return this.endDate().getTime() - this.startDate().getTime();
|
|
2765
2765
|
}
|
|
2766
2766
|
}
|
|
2767
|
-
class
|
|
2767
|
+
class Jo extends wo {
|
|
2768
2768
|
startDate() {
|
|
2769
2769
|
return this.calculateStartDate(this.timeframe.isRelative, this.dataGranularity, 2);
|
|
2770
2770
|
}
|
|
@@ -2773,364 +2773,362 @@ class Zo extends ho {
|
|
|
2773
2773
|
}
|
|
2774
2774
|
}
|
|
2775
2775
|
var pe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2776
|
-
function
|
|
2776
|
+
function En(e) {
|
|
2777
2777
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2778
2778
|
}
|
|
2779
2779
|
var De = { exports: {} };
|
|
2780
2780
|
De.exports;
|
|
2781
2781
|
(function(e, t) {
|
|
2782
|
-
var n = 200, r = "__lodash_hash_undefined__", i = 9007199254740991,
|
|
2783
|
-
w[
|
|
2784
|
-
var
|
|
2785
|
-
function
|
|
2786
|
-
return a.set(
|
|
2782
|
+
var n = 200, r = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", c = "[object Array]", m = "[object Boolean]", g = "[object Date]", l = "[object Error]", f = "[object Function]", d = "[object GeneratorFunction]", h = "[object Map]", b = "[object Number]", E = "[object Object]", N = "[object Promise]", C = "[object RegExp]", W = "[object Set]", v = "[object String]", D = "[object Symbol]", q = "[object WeakMap]", tt = "[object ArrayBuffer]", le = "[object DataView]", nt = "[object Float32Array]", rt = "[object Float64Array]", at = "[object Int8Array]", it = "[object Int16Array]", ot = "[object Int32Array]", st = "[object Uint8Array]", ut = "[object Uint8ClampedArray]", ct = "[object Uint16Array]", lt = "[object Uint32Array]", In = /[\\^$.*+?()[\]{}|]/g, xn = /\w*$/, Pn = /^\[object .+?Constructor\]$/, Rn = /^(?:0|[1-9]\d*)$/, w = {};
|
|
2783
|
+
w[o] = w[c] = w[tt] = w[le] = w[m] = w[g] = w[nt] = w[rt] = w[at] = w[it] = w[ot] = w[h] = w[b] = w[E] = w[C] = w[W] = w[v] = w[D] = w[st] = w[ut] = w[ct] = w[lt] = !0, w[l] = w[f] = w[q] = !1;
|
|
2784
|
+
var Cn = typeof pe == "object" && pe && pe.Object === Object && pe, Yn = typeof self == "object" && self && self.Object === Object && self, Y = Cn || Yn || Function("return this")(), dt = t && !t.nodeType && t, mt = dt && !0 && e && !e.nodeType && e, Gn = mt && mt.exports === dt;
|
|
2785
|
+
function kn(a, s) {
|
|
2786
|
+
return a.set(s[0], s[1]), a;
|
|
2787
2787
|
}
|
|
2788
|
-
function
|
|
2789
|
-
return a.add(
|
|
2788
|
+
function An(a, s) {
|
|
2789
|
+
return a.add(s), a;
|
|
2790
2790
|
}
|
|
2791
|
-
function
|
|
2792
|
-
for (var u = -1,
|
|
2791
|
+
function Fn(a, s) {
|
|
2792
|
+
for (var u = -1, y = a ? a.length : 0; ++u < y && s(a[u], u, a) !== !1; )
|
|
2793
2793
|
;
|
|
2794
2794
|
return a;
|
|
2795
2795
|
}
|
|
2796
|
-
function
|
|
2797
|
-
for (var u = -1,
|
|
2798
|
-
a[
|
|
2796
|
+
function Hn(a, s) {
|
|
2797
|
+
for (var u = -1, y = s.length, M = a.length; ++u < y; )
|
|
2798
|
+
a[M + u] = s[u];
|
|
2799
2799
|
return a;
|
|
2800
2800
|
}
|
|
2801
|
-
function
|
|
2802
|
-
for (var
|
|
2803
|
-
u =
|
|
2801
|
+
function ft(a, s, u, y) {
|
|
2802
|
+
for (var M = -1, x = a ? a.length : 0; ++M < x; )
|
|
2803
|
+
u = s(u, a[M], M, a);
|
|
2804
2804
|
return u;
|
|
2805
2805
|
}
|
|
2806
|
-
function
|
|
2807
|
-
for (var u = -1,
|
|
2808
|
-
|
|
2809
|
-
return
|
|
2806
|
+
function Ln(a, s) {
|
|
2807
|
+
for (var u = -1, y = Array(a); ++u < a; )
|
|
2808
|
+
y[u] = s(u);
|
|
2809
|
+
return y;
|
|
2810
2810
|
}
|
|
2811
|
-
function
|
|
2812
|
-
return a == null ? void 0 : a[
|
|
2811
|
+
function Un(a, s) {
|
|
2812
|
+
return a == null ? void 0 : a[s];
|
|
2813
2813
|
}
|
|
2814
|
-
function
|
|
2815
|
-
var
|
|
2814
|
+
function ht(a) {
|
|
2815
|
+
var s = !1;
|
|
2816
2816
|
if (a != null && typeof a.toString != "function")
|
|
2817
2817
|
try {
|
|
2818
|
-
|
|
2818
|
+
s = !!(a + "");
|
|
2819
2819
|
} catch {
|
|
2820
2820
|
}
|
|
2821
|
-
return
|
|
2821
|
+
return s;
|
|
2822
2822
|
}
|
|
2823
|
-
function
|
|
2824
|
-
var
|
|
2825
|
-
return a.forEach(function(
|
|
2826
|
-
u[++
|
|
2823
|
+
function yt(a) {
|
|
2824
|
+
var s = -1, u = Array(a.size);
|
|
2825
|
+
return a.forEach(function(y, M) {
|
|
2826
|
+
u[++s] = [M, y];
|
|
2827
2827
|
}), u;
|
|
2828
2828
|
}
|
|
2829
|
-
function Ne(a,
|
|
2829
|
+
function Ne(a, s) {
|
|
2830
2830
|
return function(u) {
|
|
2831
|
-
return a(
|
|
2831
|
+
return a(s(u));
|
|
2832
2832
|
};
|
|
2833
2833
|
}
|
|
2834
|
-
function
|
|
2835
|
-
var
|
|
2836
|
-
return a.forEach(function(
|
|
2837
|
-
u[++
|
|
2834
|
+
function gt(a) {
|
|
2835
|
+
var s = -1, u = Array(a.size);
|
|
2836
|
+
return a.forEach(function(y) {
|
|
2837
|
+
u[++s] = y;
|
|
2838
2838
|
}), u;
|
|
2839
2839
|
}
|
|
2840
|
-
var
|
|
2840
|
+
var Wn = Array.prototype, qn = Function.prototype, de = Object.prototype, Ie = Y["__core-js_shared__"], pt = function() {
|
|
2841
2841
|
var a = /[^.]+$/.exec(Ie && Ie.keys && Ie.keys.IE_PROTO || "");
|
|
2842
2842
|
return a ? "Symbol(src)_1." + a : "";
|
|
2843
|
-
}(),
|
|
2844
|
-
"^" +
|
|
2845
|
-
),
|
|
2843
|
+
}(), _t = qn.toString, H = de.hasOwnProperty, me = de.toString, jn = RegExp(
|
|
2844
|
+
"^" + _t.call(H).replace(In, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
2845
|
+
), wt = Gn ? Y.Buffer : void 0, bt = Y.Symbol, Tt = Y.Uint8Array, zn = Ne(Object.getPrototypeOf, Object), Vn = Object.create, $n = de.propertyIsEnumerable, Bn = Wn.splice, Dt = Object.getOwnPropertySymbols, Zn = wt ? wt.isBuffer : void 0, Xn = Ne(Object.keys, Object), xe = X(Y, "DataView"), te = X(Y, "Map"), Pe = X(Y, "Promise"), Re = X(Y, "Set"), Ce = X(Y, "WeakMap"), ne = X(Object, "create"), Qn = V(xe), Kn = V(te), Jn = V(Pe), er = V(Re), tr = V(Ce), Mt = bt ? bt.prototype : void 0, St = Mt ? Mt.valueOf : void 0;
|
|
2846
2846
|
function j(a) {
|
|
2847
|
-
var
|
|
2848
|
-
for (this.clear(); ++
|
|
2849
|
-
var
|
|
2850
|
-
this.set(
|
|
2847
|
+
var s = -1, u = a ? a.length : 0;
|
|
2848
|
+
for (this.clear(); ++s < u; ) {
|
|
2849
|
+
var y = a[s];
|
|
2850
|
+
this.set(y[0], y[1]);
|
|
2851
2851
|
}
|
|
2852
2852
|
}
|
|
2853
|
-
function
|
|
2853
|
+
function nr() {
|
|
2854
2854
|
this.__data__ = ne ? ne(null) : {};
|
|
2855
2855
|
}
|
|
2856
|
-
function
|
|
2856
|
+
function rr(a) {
|
|
2857
2857
|
return this.has(a) && delete this.__data__[a];
|
|
2858
2858
|
}
|
|
2859
|
-
function
|
|
2860
|
-
var
|
|
2859
|
+
function ar(a) {
|
|
2860
|
+
var s = this.__data__;
|
|
2861
2861
|
if (ne) {
|
|
2862
|
-
var u =
|
|
2862
|
+
var u = s[a];
|
|
2863
2863
|
return u === r ? void 0 : u;
|
|
2864
2864
|
}
|
|
2865
|
-
return
|
|
2865
|
+
return H.call(s, a) ? s[a] : void 0;
|
|
2866
2866
|
}
|
|
2867
|
-
function
|
|
2868
|
-
var
|
|
2869
|
-
return ne ?
|
|
2867
|
+
function ir(a) {
|
|
2868
|
+
var s = this.__data__;
|
|
2869
|
+
return ne ? s[a] !== void 0 : H.call(s, a);
|
|
2870
2870
|
}
|
|
2871
|
-
function
|
|
2871
|
+
function or(a, s) {
|
|
2872
2872
|
var u = this.__data__;
|
|
2873
|
-
return u[a] = ne &&
|
|
2873
|
+
return u[a] = ne && s === void 0 ? r : s, this;
|
|
2874
2874
|
}
|
|
2875
|
-
j.prototype.clear =
|
|
2875
|
+
j.prototype.clear = nr, j.prototype.delete = rr, j.prototype.get = ar, j.prototype.has = ir, j.prototype.set = or;
|
|
2876
2876
|
function G(a) {
|
|
2877
|
-
var
|
|
2878
|
-
for (this.clear(); ++
|
|
2879
|
-
var
|
|
2880
|
-
this.set(
|
|
2877
|
+
var s = -1, u = a ? a.length : 0;
|
|
2878
|
+
for (this.clear(); ++s < u; ) {
|
|
2879
|
+
var y = a[s];
|
|
2880
|
+
this.set(y[0], y[1]);
|
|
2881
2881
|
}
|
|
2882
2882
|
}
|
|
2883
|
-
function
|
|
2883
|
+
function sr() {
|
|
2884
2884
|
this.__data__ = [];
|
|
2885
2885
|
}
|
|
2886
|
-
function
|
|
2887
|
-
var
|
|
2886
|
+
function ur(a) {
|
|
2887
|
+
var s = this.__data__, u = fe(s, a);
|
|
2888
2888
|
if (u < 0)
|
|
2889
2889
|
return !1;
|
|
2890
|
-
var
|
|
2891
|
-
return u ==
|
|
2890
|
+
var y = s.length - 1;
|
|
2891
|
+
return u == y ? s.pop() : Bn.call(s, u, 1), !0;
|
|
2892
2892
|
}
|
|
2893
|
-
function
|
|
2894
|
-
var
|
|
2895
|
-
return u < 0 ? void 0 :
|
|
2893
|
+
function cr(a) {
|
|
2894
|
+
var s = this.__data__, u = fe(s, a);
|
|
2895
|
+
return u < 0 ? void 0 : s[u][1];
|
|
2896
2896
|
}
|
|
2897
|
-
function
|
|
2897
|
+
function lr(a) {
|
|
2898
2898
|
return fe(this.__data__, a) > -1;
|
|
2899
2899
|
}
|
|
2900
|
-
function
|
|
2901
|
-
var u = this.__data__,
|
|
2902
|
-
return
|
|
2900
|
+
function dr(a, s) {
|
|
2901
|
+
var u = this.__data__, y = fe(u, a);
|
|
2902
|
+
return y < 0 ? u.push([a, s]) : u[y][1] = s, this;
|
|
2903
2903
|
}
|
|
2904
|
-
G.prototype.clear =
|
|
2905
|
-
function
|
|
2906
|
-
var
|
|
2907
|
-
for (this.clear(); ++
|
|
2908
|
-
var
|
|
2909
|
-
this.set(
|
|
2904
|
+
G.prototype.clear = sr, G.prototype.delete = ur, G.prototype.get = cr, G.prototype.has = lr, G.prototype.set = dr;
|
|
2905
|
+
function B(a) {
|
|
2906
|
+
var s = -1, u = a ? a.length : 0;
|
|
2907
|
+
for (this.clear(); ++s < u; ) {
|
|
2908
|
+
var y = a[s];
|
|
2909
|
+
this.set(y[0], y[1]);
|
|
2910
2910
|
}
|
|
2911
2911
|
}
|
|
2912
|
-
function
|
|
2912
|
+
function mr() {
|
|
2913
2913
|
this.__data__ = {
|
|
2914
2914
|
hash: new j(),
|
|
2915
2915
|
map: new (te || G)(),
|
|
2916
2916
|
string: new j()
|
|
2917
2917
|
};
|
|
2918
2918
|
}
|
|
2919
|
-
function
|
|
2919
|
+
function fr(a) {
|
|
2920
2920
|
return he(this, a).delete(a);
|
|
2921
2921
|
}
|
|
2922
|
-
function
|
|
2922
|
+
function hr(a) {
|
|
2923
2923
|
return he(this, a).get(a);
|
|
2924
2924
|
}
|
|
2925
|
-
function
|
|
2925
|
+
function yr(a) {
|
|
2926
2926
|
return he(this, a).has(a);
|
|
2927
2927
|
}
|
|
2928
|
-
function
|
|
2929
|
-
return he(this, a).set(a,
|
|
2928
|
+
function gr(a, s) {
|
|
2929
|
+
return he(this, a).set(a, s), this;
|
|
2930
2930
|
}
|
|
2931
|
-
|
|
2932
|
-
function
|
|
2931
|
+
B.prototype.clear = mr, B.prototype.delete = fr, B.prototype.get = hr, B.prototype.has = yr, B.prototype.set = gr;
|
|
2932
|
+
function Z(a) {
|
|
2933
2933
|
this.__data__ = new G(a);
|
|
2934
2934
|
}
|
|
2935
|
-
function
|
|
2935
|
+
function pr() {
|
|
2936
2936
|
this.__data__ = new G();
|
|
2937
2937
|
}
|
|
2938
|
-
function
|
|
2938
|
+
function _r(a) {
|
|
2939
2939
|
return this.__data__.delete(a);
|
|
2940
2940
|
}
|
|
2941
|
-
function
|
|
2941
|
+
function wr(a) {
|
|
2942
2942
|
return this.__data__.get(a);
|
|
2943
2943
|
}
|
|
2944
|
-
function
|
|
2944
|
+
function br(a) {
|
|
2945
2945
|
return this.__data__.has(a);
|
|
2946
2946
|
}
|
|
2947
|
-
function
|
|
2947
|
+
function Tr(a, s) {
|
|
2948
2948
|
var u = this.__data__;
|
|
2949
2949
|
if (u instanceof G) {
|
|
2950
|
-
var
|
|
2951
|
-
if (!te ||
|
|
2952
|
-
return
|
|
2953
|
-
u = this.__data__ = new
|
|
2950
|
+
var y = u.__data__;
|
|
2951
|
+
if (!te || y.length < n - 1)
|
|
2952
|
+
return y.push([a, s]), this;
|
|
2953
|
+
u = this.__data__ = new B(y);
|
|
2954
2954
|
}
|
|
2955
|
-
return u.set(a,
|
|
2955
|
+
return u.set(a, s), this;
|
|
2956
2956
|
}
|
|
2957
|
-
|
|
2958
|
-
function
|
|
2959
|
-
var u =
|
|
2960
|
-
for (var
|
|
2961
|
-
|
|
2957
|
+
Z.prototype.clear = pr, Z.prototype.delete = _r, Z.prototype.get = wr, Z.prototype.has = br, Z.prototype.set = Tr;
|
|
2958
|
+
function Dr(a, s) {
|
|
2959
|
+
var u = ke(a) || Vr(a) ? Ln(a.length, String) : [], y = u.length, M = !!y;
|
|
2960
|
+
for (var x in a)
|
|
2961
|
+
H.call(a, x) && !(M && (x == "length" || Wr(x, y))) && u.push(x);
|
|
2962
2962
|
return u;
|
|
2963
2963
|
}
|
|
2964
|
-
function
|
|
2965
|
-
var
|
|
2966
|
-
(!(
|
|
2964
|
+
function Ot(a, s, u) {
|
|
2965
|
+
var y = a[s];
|
|
2966
|
+
(!(H.call(a, s) && It(y, u)) || u === void 0 && !(s in a)) && (a[s] = u);
|
|
2967
2967
|
}
|
|
2968
|
-
function fe(a,
|
|
2968
|
+
function fe(a, s) {
|
|
2969
2969
|
for (var u = a.length; u--; )
|
|
2970
|
-
if (
|
|
2970
|
+
if (It(a[u][0], s))
|
|
2971
2971
|
return u;
|
|
2972
2972
|
return -1;
|
|
2973
2973
|
}
|
|
2974
|
-
function
|
|
2975
|
-
return a &&
|
|
2974
|
+
function Mr(a, s) {
|
|
2975
|
+
return a && Et(s, Ae(s), a);
|
|
2976
2976
|
}
|
|
2977
|
-
function Ye(a,
|
|
2978
|
-
var
|
|
2979
|
-
if (
|
|
2980
|
-
return
|
|
2977
|
+
function Ye(a, s, u, y, M, x, k) {
|
|
2978
|
+
var P;
|
|
2979
|
+
if (y && (P = x ? y(a, M, x, k) : y(a)), P !== void 0)
|
|
2980
|
+
return P;
|
|
2981
2981
|
if (!ye(a))
|
|
2982
2982
|
return a;
|
|
2983
|
-
var
|
|
2984
|
-
if (
|
|
2985
|
-
if (
|
|
2986
|
-
return
|
|
2983
|
+
var Rt = ke(a);
|
|
2984
|
+
if (Rt) {
|
|
2985
|
+
if (P = Hr(a), !s)
|
|
2986
|
+
return kr(a, P);
|
|
2987
2987
|
} else {
|
|
2988
|
-
var Q = z(a),
|
|
2989
|
-
if (
|
|
2990
|
-
return
|
|
2991
|
-
if (Q ==
|
|
2992
|
-
if (
|
|
2993
|
-
return
|
|
2994
|
-
if (
|
|
2995
|
-
return
|
|
2988
|
+
var Q = z(a), Ct = Q == f || Q == d;
|
|
2989
|
+
if (Br(a))
|
|
2990
|
+
return Ir(a, s);
|
|
2991
|
+
if (Q == E || Q == o || Ct && !x) {
|
|
2992
|
+
if (ht(a))
|
|
2993
|
+
return x ? a : {};
|
|
2994
|
+
if (P = Lr(Ct ? {} : a), !s)
|
|
2995
|
+
return Ar(a, Mr(P, a));
|
|
2996
2996
|
} else {
|
|
2997
2997
|
if (!w[Q])
|
|
2998
|
-
return
|
|
2999
|
-
|
|
2998
|
+
return x ? a : {};
|
|
2999
|
+
P = Ur(a, Q, Ye, s);
|
|
3000
3000
|
}
|
|
3001
3001
|
}
|
|
3002
|
-
|
|
3003
|
-
var
|
|
3004
|
-
if (
|
|
3005
|
-
return
|
|
3006
|
-
if (
|
|
3007
|
-
var
|
|
3008
|
-
return
|
|
3009
|
-
|
|
3010
|
-
}),
|
|
3011
|
-
}
|
|
3012
|
-
function
|
|
3013
|
-
return ye(a) ?
|
|
3002
|
+
k || (k = new Z());
|
|
3003
|
+
var Yt = k.get(a);
|
|
3004
|
+
if (Yt)
|
|
3005
|
+
return Yt;
|
|
3006
|
+
if (k.set(a, P), !Rt)
|
|
3007
|
+
var Gt = u ? Fr(a) : Ae(a);
|
|
3008
|
+
return Fn(Gt || a, function(Fe, ge) {
|
|
3009
|
+
Gt && (ge = Fe, Fe = a[ge]), Ot(P, ge, Ye(Fe, s, u, y, ge, a, k));
|
|
3010
|
+
}), P;
|
|
3011
|
+
}
|
|
3012
|
+
function Sr(a) {
|
|
3013
|
+
return ye(a) ? Vn(a) : {};
|
|
3014
|
+
}
|
|
3015
|
+
function Or(a, s, u) {
|
|
3016
|
+
var y = s(a);
|
|
3017
|
+
return ke(a) ? y : Hn(y, u(a));
|
|
3014
3018
|
}
|
|
3015
|
-
function
|
|
3016
|
-
var l = o(a);
|
|
3017
|
-
return Ae(a) ? l : Yn(l, u(a));
|
|
3018
|
-
}
|
|
3019
|
-
function br(a) {
|
|
3019
|
+
function Er(a) {
|
|
3020
3020
|
return me.call(a);
|
|
3021
3021
|
}
|
|
3022
|
-
function
|
|
3023
|
-
if (!ye(a) ||
|
|
3022
|
+
function vr(a) {
|
|
3023
|
+
if (!ye(a) || jr(a))
|
|
3024
3024
|
return !1;
|
|
3025
|
-
var
|
|
3026
|
-
return
|
|
3025
|
+
var s = Pt(a) || ht(a) ? jn : Pn;
|
|
3026
|
+
return s.test(V(a));
|
|
3027
3027
|
}
|
|
3028
|
-
function
|
|
3029
|
-
if (!
|
|
3030
|
-
return
|
|
3031
|
-
var
|
|
3028
|
+
function Nr(a) {
|
|
3029
|
+
if (!Nt(a))
|
|
3030
|
+
return Xn(a);
|
|
3031
|
+
var s = [];
|
|
3032
3032
|
for (var u in Object(a))
|
|
3033
|
-
|
|
3034
|
-
return
|
|
3033
|
+
H.call(a, u) && u != "constructor" && s.push(u);
|
|
3034
|
+
return s;
|
|
3035
3035
|
}
|
|
3036
|
-
function
|
|
3037
|
-
if (
|
|
3036
|
+
function Ir(a, s) {
|
|
3037
|
+
if (s)
|
|
3038
3038
|
return a.slice();
|
|
3039
3039
|
var u = new a.constructor(a.length);
|
|
3040
3040
|
return a.copy(u), u;
|
|
3041
3041
|
}
|
|
3042
3042
|
function Ge(a) {
|
|
3043
|
-
var
|
|
3044
|
-
return new
|
|
3043
|
+
var s = new a.constructor(a.byteLength);
|
|
3044
|
+
return new Tt(s).set(new Tt(a)), s;
|
|
3045
3045
|
}
|
|
3046
|
-
function
|
|
3047
|
-
var u =
|
|
3046
|
+
function xr(a, s) {
|
|
3047
|
+
var u = s ? Ge(a.buffer) : a.buffer;
|
|
3048
3048
|
return new a.constructor(u, a.byteOffset, a.byteLength);
|
|
3049
3049
|
}
|
|
3050
|
-
function
|
|
3051
|
-
var
|
|
3052
|
-
return
|
|
3050
|
+
function Pr(a, s, u) {
|
|
3051
|
+
var y = s ? u(yt(a), !0) : yt(a);
|
|
3052
|
+
return ft(y, kn, new a.constructor());
|
|
3053
3053
|
}
|
|
3054
|
-
function
|
|
3055
|
-
var
|
|
3056
|
-
return
|
|
3054
|
+
function Rr(a) {
|
|
3055
|
+
var s = new a.constructor(a.source, xn.exec(a));
|
|
3056
|
+
return s.lastIndex = a.lastIndex, s;
|
|
3057
3057
|
}
|
|
3058
|
-
function
|
|
3059
|
-
var
|
|
3060
|
-
return
|
|
3058
|
+
function Cr(a, s, u) {
|
|
3059
|
+
var y = s ? u(gt(a), !0) : gt(a);
|
|
3060
|
+
return ft(y, An, new a.constructor());
|
|
3061
3061
|
}
|
|
3062
|
-
function
|
|
3063
|
-
return
|
|
3062
|
+
function Yr(a) {
|
|
3063
|
+
return St ? Object(St.call(a)) : {};
|
|
3064
3064
|
}
|
|
3065
|
-
function
|
|
3066
|
-
var u =
|
|
3065
|
+
function Gr(a, s) {
|
|
3066
|
+
var u = s ? Ge(a.buffer) : a.buffer;
|
|
3067
3067
|
return new a.constructor(u, a.byteOffset, a.length);
|
|
3068
3068
|
}
|
|
3069
|
-
function
|
|
3070
|
-
var u = -1,
|
|
3071
|
-
for (
|
|
3072
|
-
|
|
3073
|
-
return
|
|
3069
|
+
function kr(a, s) {
|
|
3070
|
+
var u = -1, y = a.length;
|
|
3071
|
+
for (s || (s = Array(y)); ++u < y; )
|
|
3072
|
+
s[u] = a[u];
|
|
3073
|
+
return s;
|
|
3074
3074
|
}
|
|
3075
|
-
function
|
|
3075
|
+
function Et(a, s, u, y) {
|
|
3076
3076
|
u || (u = {});
|
|
3077
|
-
for (var
|
|
3078
|
-
var
|
|
3079
|
-
|
|
3077
|
+
for (var M = -1, x = s.length; ++M < x; ) {
|
|
3078
|
+
var k = s[M], P = void 0;
|
|
3079
|
+
Ot(u, k, P === void 0 ? a[k] : P);
|
|
3080
3080
|
}
|
|
3081
3081
|
return u;
|
|
3082
3082
|
}
|
|
3083
|
-
function
|
|
3084
|
-
return
|
|
3083
|
+
function Ar(a, s) {
|
|
3084
|
+
return Et(a, vt(a), s);
|
|
3085
3085
|
}
|
|
3086
|
-
function
|
|
3087
|
-
return
|
|
3086
|
+
function Fr(a) {
|
|
3087
|
+
return Or(a, Ae, vt);
|
|
3088
3088
|
}
|
|
3089
|
-
function he(a,
|
|
3089
|
+
function he(a, s) {
|
|
3090
3090
|
var u = a.__data__;
|
|
3091
|
-
return
|
|
3092
|
-
}
|
|
3093
|
-
function X(a,
|
|
3094
|
-
var u =
|
|
3095
|
-
return
|
|
3096
|
-
}
|
|
3097
|
-
var
|
|
3098
|
-
(xe && z(new xe(new ArrayBuffer(1))) != le || te && z(new te()) !=
|
|
3099
|
-
var
|
|
3100
|
-
if (
|
|
3101
|
-
switch (
|
|
3102
|
-
case
|
|
3091
|
+
return qr(s) ? u[typeof s == "string" ? "string" : "hash"] : u.map;
|
|
3092
|
+
}
|
|
3093
|
+
function X(a, s) {
|
|
3094
|
+
var u = Un(a, s);
|
|
3095
|
+
return vr(u) ? u : void 0;
|
|
3096
|
+
}
|
|
3097
|
+
var vt = Dt ? Ne(Dt, Object) : Qr, z = Er;
|
|
3098
|
+
(xe && z(new xe(new ArrayBuffer(1))) != le || te && z(new te()) != h || Pe && z(Pe.resolve()) != N || Re && z(new Re()) != W || Ce && z(new Ce()) != q) && (z = function(a) {
|
|
3099
|
+
var s = me.call(a), u = s == E ? a.constructor : void 0, y = u ? V(u) : void 0;
|
|
3100
|
+
if (y)
|
|
3101
|
+
switch (y) {
|
|
3102
|
+
case Qn:
|
|
3103
3103
|
return le;
|
|
3104
|
-
case
|
|
3105
|
-
return
|
|
3106
|
-
case
|
|
3107
|
-
return
|
|
3108
|
-
case
|
|
3104
|
+
case Kn:
|
|
3105
|
+
return h;
|
|
3106
|
+
case Jn:
|
|
3107
|
+
return N;
|
|
3108
|
+
case er:
|
|
3109
3109
|
return W;
|
|
3110
|
-
case
|
|
3110
|
+
case tr:
|
|
3111
3111
|
return q;
|
|
3112
3112
|
}
|
|
3113
|
-
return
|
|
3113
|
+
return s;
|
|
3114
3114
|
});
|
|
3115
|
-
function
|
|
3116
|
-
var
|
|
3117
|
-
return
|
|
3115
|
+
function Hr(a) {
|
|
3116
|
+
var s = a.length, u = a.constructor(s);
|
|
3117
|
+
return s && typeof a[0] == "string" && H.call(a, "index") && (u.index = a.index, u.input = a.input), u;
|
|
3118
3118
|
}
|
|
3119
|
-
function
|
|
3120
|
-
return typeof a.constructor == "function" && !
|
|
3119
|
+
function Lr(a) {
|
|
3120
|
+
return typeof a.constructor == "function" && !Nt(a) ? Sr(zn(a)) : {};
|
|
3121
3121
|
}
|
|
3122
|
-
function
|
|
3123
|
-
var
|
|
3124
|
-
switch (
|
|
3125
|
-
case
|
|
3122
|
+
function Ur(a, s, u, y) {
|
|
3123
|
+
var M = a.constructor;
|
|
3124
|
+
switch (s) {
|
|
3125
|
+
case tt:
|
|
3126
3126
|
return Ge(a);
|
|
3127
|
-
case
|
|
3128
|
-
case
|
|
3129
|
-
return new
|
|
3127
|
+
case m:
|
|
3128
|
+
case g:
|
|
3129
|
+
return new M(+a);
|
|
3130
3130
|
case le:
|
|
3131
|
-
return
|
|
3132
|
-
case et:
|
|
3133
|
-
case tt:
|
|
3131
|
+
return xr(a, y);
|
|
3134
3132
|
case nt:
|
|
3135
3133
|
case rt:
|
|
3136
3134
|
case at:
|
|
@@ -3138,38 +3136,40 @@ De.exports;
|
|
|
3138
3136
|
case ot:
|
|
3139
3137
|
case st:
|
|
3140
3138
|
case ut:
|
|
3141
|
-
|
|
3142
|
-
case
|
|
3143
|
-
return
|
|
3144
|
-
case
|
|
3145
|
-
|
|
3146
|
-
|
|
3139
|
+
case ct:
|
|
3140
|
+
case lt:
|
|
3141
|
+
return Gr(a, y);
|
|
3142
|
+
case h:
|
|
3143
|
+
return Pr(a, y, u);
|
|
3144
|
+
case b:
|
|
3145
|
+
case v:
|
|
3146
|
+
return new M(a);
|
|
3147
3147
|
case C:
|
|
3148
|
-
return
|
|
3148
|
+
return Rr(a);
|
|
3149
3149
|
case W:
|
|
3150
|
-
return
|
|
3151
|
-
case
|
|
3152
|
-
return
|
|
3150
|
+
return Cr(a, y, u);
|
|
3151
|
+
case D:
|
|
3152
|
+
return Yr(a);
|
|
3153
3153
|
}
|
|
3154
3154
|
}
|
|
3155
|
-
function
|
|
3156
|
-
return
|
|
3155
|
+
function Wr(a, s) {
|
|
3156
|
+
return s = s ?? i, !!s && (typeof a == "number" || Rn.test(a)) && a > -1 && a % 1 == 0 && a < s;
|
|
3157
3157
|
}
|
|
3158
|
-
function
|
|
3159
|
-
var
|
|
3160
|
-
return
|
|
3158
|
+
function qr(a) {
|
|
3159
|
+
var s = typeof a;
|
|
3160
|
+
return s == "string" || s == "number" || s == "symbol" || s == "boolean" ? a !== "__proto__" : a === null;
|
|
3161
3161
|
}
|
|
3162
|
-
function
|
|
3163
|
-
return !!
|
|
3162
|
+
function jr(a) {
|
|
3163
|
+
return !!pt && pt in a;
|
|
3164
3164
|
}
|
|
3165
|
-
function
|
|
3166
|
-
var
|
|
3165
|
+
function Nt(a) {
|
|
3166
|
+
var s = a && a.constructor, u = typeof s == "function" && s.prototype || de;
|
|
3167
3167
|
return a === u;
|
|
3168
3168
|
}
|
|
3169
|
-
function
|
|
3169
|
+
function V(a) {
|
|
3170
3170
|
if (a != null) {
|
|
3171
3171
|
try {
|
|
3172
|
-
return
|
|
3172
|
+
return _t.call(a);
|
|
3173
3173
|
} catch {
|
|
3174
3174
|
}
|
|
3175
3175
|
try {
|
|
@@ -3179,51 +3179,51 @@ De.exports;
|
|
|
3179
3179
|
}
|
|
3180
3180
|
return "";
|
|
3181
3181
|
}
|
|
3182
|
-
function
|
|
3182
|
+
function zr(a) {
|
|
3183
3183
|
return Ye(a, !0, !0);
|
|
3184
3184
|
}
|
|
3185
|
-
function
|
|
3186
|
-
return a ===
|
|
3185
|
+
function It(a, s) {
|
|
3186
|
+
return a === s || a !== a && s !== s;
|
|
3187
3187
|
}
|
|
3188
|
-
function
|
|
3189
|
-
return
|
|
3188
|
+
function Vr(a) {
|
|
3189
|
+
return $r(a) && H.call(a, "callee") && (!$n.call(a, "callee") || me.call(a) == o);
|
|
3190
3190
|
}
|
|
3191
|
-
var
|
|
3192
|
-
function
|
|
3193
|
-
return a != null &&
|
|
3191
|
+
var ke = Array.isArray;
|
|
3192
|
+
function xt(a) {
|
|
3193
|
+
return a != null && Zr(a.length) && !Pt(a);
|
|
3194
3194
|
}
|
|
3195
|
-
function
|
|
3196
|
-
return
|
|
3195
|
+
function $r(a) {
|
|
3196
|
+
return Xr(a) && xt(a);
|
|
3197
3197
|
}
|
|
3198
|
-
var
|
|
3199
|
-
function
|
|
3200
|
-
var
|
|
3201
|
-
return
|
|
3198
|
+
var Br = Zn || Kr;
|
|
3199
|
+
function Pt(a) {
|
|
3200
|
+
var s = ye(a) ? me.call(a) : "";
|
|
3201
|
+
return s == f || s == d;
|
|
3202
3202
|
}
|
|
3203
|
-
function
|
|
3203
|
+
function Zr(a) {
|
|
3204
3204
|
return typeof a == "number" && a > -1 && a % 1 == 0 && a <= i;
|
|
3205
3205
|
}
|
|
3206
3206
|
function ye(a) {
|
|
3207
|
-
var
|
|
3208
|
-
return !!a && (
|
|
3207
|
+
var s = typeof a;
|
|
3208
|
+
return !!a && (s == "object" || s == "function");
|
|
3209
3209
|
}
|
|
3210
|
-
function
|
|
3210
|
+
function Xr(a) {
|
|
3211
3211
|
return !!a && typeof a == "object";
|
|
3212
3212
|
}
|
|
3213
|
-
function
|
|
3214
|
-
return
|
|
3213
|
+
function Ae(a) {
|
|
3214
|
+
return xt(a) ? Dr(a) : Nr(a);
|
|
3215
3215
|
}
|
|
3216
|
-
function
|
|
3216
|
+
function Qr() {
|
|
3217
3217
|
return [];
|
|
3218
3218
|
}
|
|
3219
|
-
function
|
|
3219
|
+
function Kr() {
|
|
3220
3220
|
return !1;
|
|
3221
3221
|
}
|
|
3222
|
-
e.exports =
|
|
3222
|
+
e.exports = zr;
|
|
3223
3223
|
})(De, De.exports);
|
|
3224
|
-
var
|
|
3225
|
-
const
|
|
3226
|
-
class
|
|
3224
|
+
var bo = De.exports;
|
|
3225
|
+
const To = /* @__PURE__ */ En(bo), F = (e, t) => new Date(e.getTime() - Mn(t, e));
|
|
3226
|
+
class S {
|
|
3227
3227
|
constructor(t) {
|
|
3228
3228
|
T(this, "timeframeText");
|
|
3229
3229
|
T(this, "key");
|
|
@@ -3284,7 +3284,7 @@ class M {
|
|
|
3284
3284
|
end: this.rawEnd(),
|
|
3285
3285
|
tz: t
|
|
3286
3286
|
};
|
|
3287
|
-
if (
|
|
3287
|
+
if (on.includes(this.key))
|
|
3288
3288
|
return {
|
|
3289
3289
|
type: "relative",
|
|
3290
3290
|
// Safe assertion; we just checked that key is a member of the union.
|
|
@@ -3296,75 +3296,75 @@ class M {
|
|
|
3296
3296
|
tzAdjustedDate(t) {
|
|
3297
3297
|
if (!t)
|
|
3298
3298
|
return /* @__PURE__ */ new Date();
|
|
3299
|
-
const n =
|
|
3300
|
-
return
|
|
3299
|
+
const n = go(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
|
|
3300
|
+
return Tn(n, t);
|
|
3301
3301
|
}
|
|
3302
3302
|
}
|
|
3303
|
-
class
|
|
3303
|
+
class Do extends S {
|
|
3304
3304
|
rawStart(t) {
|
|
3305
|
-
let n =
|
|
3306
|
-
return t && (n =
|
|
3305
|
+
let n = A(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
3306
|
+
return t && (n = F(n, t)), n;
|
|
3307
3307
|
}
|
|
3308
3308
|
maximumTimeframeLength() {
|
|
3309
3309
|
return 60 * 60 * 24 * 7;
|
|
3310
3310
|
}
|
|
3311
3311
|
}
|
|
3312
|
-
class
|
|
3312
|
+
class Mo extends S {
|
|
3313
3313
|
rawStart(t) {
|
|
3314
3314
|
let n = ee(this.tzAdjustedDate(t));
|
|
3315
|
-
return t && (n =
|
|
3315
|
+
return t && (n = F(n, t)), n;
|
|
3316
3316
|
}
|
|
3317
3317
|
maximumTimeframeLength() {
|
|
3318
3318
|
return 60 * 60 * 24 * 31;
|
|
3319
3319
|
}
|
|
3320
3320
|
}
|
|
3321
|
-
class
|
|
3321
|
+
class So extends S {
|
|
3322
3322
|
rawStart(t) {
|
|
3323
3323
|
let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
|
|
3324
|
-
return t && (n =
|
|
3324
|
+
return t && (n = F(n, t)), n;
|
|
3325
3325
|
}
|
|
3326
3326
|
maximumTimeframeLength() {
|
|
3327
3327
|
return 60 * 60 * 24 * 366;
|
|
3328
3328
|
}
|
|
3329
3329
|
}
|
|
3330
|
-
class
|
|
3330
|
+
class Oo extends S {
|
|
3331
3331
|
rawEnd(t) {
|
|
3332
|
-
let n =
|
|
3333
|
-
return t && (n =
|
|
3332
|
+
let n = A(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
3333
|
+
return t && (n = F(n, t)), n;
|
|
3334
3334
|
}
|
|
3335
3335
|
rawStart(t) {
|
|
3336
3336
|
const n = this.tzAdjustedDate(t);
|
|
3337
|
-
let r =
|
|
3337
|
+
let r = A(n.setDate(n.getDate() - 7), {
|
|
3338
3338
|
weekStartsOn: 1
|
|
3339
3339
|
});
|
|
3340
|
-
return t && (r =
|
|
3340
|
+
return t && (r = F(r, t)), r;
|
|
3341
3341
|
}
|
|
3342
3342
|
}
|
|
3343
|
-
class
|
|
3343
|
+
class Eo extends S {
|
|
3344
3344
|
rawEnd(t) {
|
|
3345
3345
|
let n = ee(this.tzAdjustedDate(t));
|
|
3346
|
-
return t && (n =
|
|
3346
|
+
return t && (n = F(n, t)), n;
|
|
3347
3347
|
}
|
|
3348
3348
|
rawStart(t) {
|
|
3349
|
-
let n = ee(
|
|
3350
|
-
return t && (n =
|
|
3349
|
+
let n = ee(_n(this.tzAdjustedDate(t)));
|
|
3350
|
+
return t && (n = F(n, t)), n;
|
|
3351
3351
|
}
|
|
3352
3352
|
}
|
|
3353
|
-
class
|
|
3353
|
+
class vo extends S {
|
|
3354
3354
|
rawEnd(t) {
|
|
3355
3355
|
let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
|
|
3356
|
-
return t && (n =
|
|
3356
|
+
return t && (n = F(n, t)), n;
|
|
3357
3357
|
}
|
|
3358
3358
|
rawStart(t) {
|
|
3359
3359
|
let n = new Date(this.tzAdjustedDate(t).getFullYear() - 1, 0, 1);
|
|
3360
|
-
return t && (n =
|
|
3360
|
+
return t && (n = F(n, t)), n;
|
|
3361
3361
|
}
|
|
3362
3362
|
}
|
|
3363
|
-
const
|
|
3363
|
+
const No = /* @__PURE__ */ new Map([
|
|
3364
3364
|
[
|
|
3365
|
-
|
|
3366
|
-
new
|
|
3367
|
-
key:
|
|
3365
|
+
p.FIFTEEN_MIN,
|
|
3366
|
+
new S({
|
|
3367
|
+
key: p.FIFTEEN_MIN,
|
|
3368
3368
|
display: "Last 15 minutes",
|
|
3369
3369
|
timeframeText: "15 minutes",
|
|
3370
3370
|
timeframeLength: () => 60 * 15,
|
|
@@ -3377,9 +3377,9 @@ const So = /* @__PURE__ */ new Map([
|
|
|
3377
3377
|
})
|
|
3378
3378
|
],
|
|
3379
3379
|
[
|
|
3380
|
-
|
|
3381
|
-
new
|
|
3382
|
-
key:
|
|
3380
|
+
p.ONE_HOUR,
|
|
3381
|
+
new S({
|
|
3382
|
+
key: p.ONE_HOUR,
|
|
3383
3383
|
display: "Last hour",
|
|
3384
3384
|
timeframeText: "One hour",
|
|
3385
3385
|
timeframeLength: () => 60 * 60 * 1,
|
|
@@ -3392,9 +3392,9 @@ const So = /* @__PURE__ */ new Map([
|
|
|
3392
3392
|
})
|
|
3393
3393
|
],
|
|
3394
3394
|
[
|
|
3395
|
-
|
|
3396
|
-
new
|
|
3397
|
-
key:
|
|
3395
|
+
p.SIX_HOUR,
|
|
3396
|
+
new S({
|
|
3397
|
+
key: p.SIX_HOUR,
|
|
3398
3398
|
display: "Last 6 hours",
|
|
3399
3399
|
timeframeText: "6 hours",
|
|
3400
3400
|
timeframeLength: () => 60 * 60 * 6,
|
|
@@ -3407,9 +3407,9 @@ const So = /* @__PURE__ */ new Map([
|
|
|
3407
3407
|
})
|
|
3408
3408
|
],
|
|
3409
3409
|
[
|
|
3410
|
-
|
|
3411
|
-
new
|
|
3412
|
-
key:
|
|
3410
|
+
p.TWELVE_HOUR,
|
|
3411
|
+
new S({
|
|
3412
|
+
key: p.TWELVE_HOUR,
|
|
3413
3413
|
display: "Last 12 hours",
|
|
3414
3414
|
timeframeText: "12 hours",
|
|
3415
3415
|
timeframeLength: () => 60 * 60 * 12,
|
|
@@ -3422,9 +3422,9 @@ const So = /* @__PURE__ */ new Map([
|
|
|
3422
3422
|
})
|
|
3423
3423
|
],
|
|
3424
3424
|
[
|
|
3425
|
-
|
|
3426
|
-
new
|
|
3427
|
-
key:
|
|
3425
|
+
p.ONE_DAY,
|
|
3426
|
+
new S({
|
|
3427
|
+
key: p.ONE_DAY,
|
|
3428
3428
|
display: "Last 24 hours",
|
|
3429
3429
|
timeframeText: "24 hours",
|
|
3430
3430
|
timeframeLength: () => 60 * 60 * 24,
|
|
@@ -3437,9 +3437,9 @@ const So = /* @__PURE__ */ new Map([
|
|
|
3437
3437
|
})
|
|
3438
3438
|
],
|
|
3439
3439
|
[
|
|
3440
|
-
|
|
3441
|
-
new
|
|
3442
|
-
key:
|
|
3440
|
+
p.SEVEN_DAY,
|
|
3441
|
+
new S({
|
|
3442
|
+
key: p.SEVEN_DAY,
|
|
3443
3443
|
display: "Last 7 days",
|
|
3444
3444
|
timeframeText: "7 days",
|
|
3445
3445
|
timeframeLength: () => 60 * 60 * 24 * 7,
|
|
@@ -3452,9 +3452,9 @@ const So = /* @__PURE__ */ new Map([
|
|
|
3452
3452
|
})
|
|
3453
3453
|
],
|
|
3454
3454
|
[
|
|
3455
|
-
|
|
3456
|
-
new
|
|
3457
|
-
key:
|
|
3455
|
+
p.THIRTY_DAY,
|
|
3456
|
+
new S({
|
|
3457
|
+
key: p.THIRTY_DAY,
|
|
3458
3458
|
display: "Last 30 days",
|
|
3459
3459
|
timeframeText: "30 days",
|
|
3460
3460
|
timeframeLength: () => 60 * 60 * 24 * 30,
|
|
@@ -3467,9 +3467,9 @@ const So = /* @__PURE__ */ new Map([
|
|
|
3467
3467
|
})
|
|
3468
3468
|
],
|
|
3469
3469
|
[
|
|
3470
|
-
|
|
3471
|
-
new
|
|
3472
|
-
key:
|
|
3470
|
+
p.NINETY_DAY,
|
|
3471
|
+
new S({
|
|
3472
|
+
key: p.NINETY_DAY,
|
|
3473
3473
|
display: "Last 90 days",
|
|
3474
3474
|
timeframeText: "90 days",
|
|
3475
3475
|
timeframeLength: () => 60 * 60 * 24 * 90,
|
|
@@ -3482,9 +3482,9 @@ const So = /* @__PURE__ */ new Map([
|
|
|
3482
3482
|
})
|
|
3483
3483
|
],
|
|
3484
3484
|
[
|
|
3485
|
-
|
|
3486
|
-
new
|
|
3487
|
-
key:
|
|
3485
|
+
p.ONE_HUNDRED_EIGHTY_DAY,
|
|
3486
|
+
new S({
|
|
3487
|
+
key: p.ONE_HUNDRED_EIGHTY_DAY,
|
|
3488
3488
|
display: "Last 180 days",
|
|
3489
3489
|
timeframeText: "180 days",
|
|
3490
3490
|
timeframeLength: () => 60 * 60 * 24 * 180,
|
|
@@ -3497,9 +3497,9 @@ const So = /* @__PURE__ */ new Map([
|
|
|
3497
3497
|
})
|
|
3498
3498
|
],
|
|
3499
3499
|
[
|
|
3500
|
-
|
|
3501
|
-
new
|
|
3502
|
-
key:
|
|
3500
|
+
p.ONE_YEAR,
|
|
3501
|
+
new S({
|
|
3502
|
+
key: p.ONE_YEAR,
|
|
3503
3503
|
display: "Last 365 days",
|
|
3504
3504
|
timeframeText: "365 days",
|
|
3505
3505
|
timeframeLength: () => 60 * 60 * 24 * 365,
|
|
@@ -3512,13 +3512,13 @@ const So = /* @__PURE__ */ new Map([
|
|
|
3512
3512
|
})
|
|
3513
3513
|
],
|
|
3514
3514
|
[
|
|
3515
|
-
|
|
3516
|
-
new
|
|
3517
|
-
key:
|
|
3515
|
+
p.CURRENT_WEEK,
|
|
3516
|
+
new Do({
|
|
3517
|
+
key: p.CURRENT_WEEK,
|
|
3518
3518
|
display: "This week",
|
|
3519
3519
|
timeframeText: "Week",
|
|
3520
3520
|
timeframeLength: () => {
|
|
3521
|
-
const e =
|
|
3521
|
+
const e = A(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
|
|
3522
3522
|
return (ie(Le(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
3523
3523
|
},
|
|
3524
3524
|
defaultResponseGranularity: "daily",
|
|
@@ -3530,9 +3530,9 @@ const So = /* @__PURE__ */ new Map([
|
|
|
3530
3530
|
})
|
|
3531
3531
|
],
|
|
3532
3532
|
[
|
|
3533
|
-
|
|
3534
|
-
new
|
|
3535
|
-
key:
|
|
3533
|
+
p.CURRENT_MONTH,
|
|
3534
|
+
new Mo({
|
|
3535
|
+
key: p.CURRENT_MONTH,
|
|
3536
3536
|
display: "This month",
|
|
3537
3537
|
timeframeText: "Month",
|
|
3538
3538
|
timeframeLength: () => {
|
|
@@ -3546,9 +3546,9 @@ const So = /* @__PURE__ */ new Map([
|
|
|
3546
3546
|
})
|
|
3547
3547
|
],
|
|
3548
3548
|
[
|
|
3549
|
-
|
|
3550
|
-
new
|
|
3551
|
-
key:
|
|
3549
|
+
p.CURRENT_YEAR,
|
|
3550
|
+
new So({
|
|
3551
|
+
key: p.CURRENT_YEAR,
|
|
3552
3552
|
display: "This year",
|
|
3553
3553
|
timeframeText: "Year",
|
|
3554
3554
|
timeframeLength: () => {
|
|
@@ -3562,9 +3562,9 @@ const So = /* @__PURE__ */ new Map([
|
|
|
3562
3562
|
})
|
|
3563
3563
|
],
|
|
3564
3564
|
[
|
|
3565
|
-
|
|
3566
|
-
new
|
|
3567
|
-
key:
|
|
3565
|
+
p.PREVIOUS_WEEK,
|
|
3566
|
+
new Oo({
|
|
3567
|
+
key: p.PREVIOUS_WEEK,
|
|
3568
3568
|
display: "Previous week",
|
|
3569
3569
|
timeframeText: "Week",
|
|
3570
3570
|
timeframeLength: () => 60 * 60 * 24 * 7,
|
|
@@ -3577,15 +3577,15 @@ const So = /* @__PURE__ */ new Map([
|
|
|
3577
3577
|
})
|
|
3578
3578
|
],
|
|
3579
3579
|
[
|
|
3580
|
-
|
|
3581
|
-
new
|
|
3582
|
-
key:
|
|
3580
|
+
p.PREVIOUS_MONTH,
|
|
3581
|
+
new Eo({
|
|
3582
|
+
key: p.PREVIOUS_MONTH,
|
|
3583
3583
|
display: "Previous month",
|
|
3584
3584
|
timeframeText: "Month",
|
|
3585
3585
|
timeframeLength: () => {
|
|
3586
3586
|
let e = 0;
|
|
3587
|
-
const t = ee(/* @__PURE__ */ new Date()), n = ee(
|
|
3588
|
-
return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e =
|
|
3587
|
+
const t = ee(/* @__PURE__ */ new Date()), n = ee(_n(/* @__PURE__ */ new Date()));
|
|
3588
|
+
return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e = rn(t, n)), 60 * 60 * 24 * Li((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + jt(e);
|
|
3589
3589
|
},
|
|
3590
3590
|
defaultResponseGranularity: "daily",
|
|
3591
3591
|
dataGranularity: "daily",
|
|
@@ -3594,15 +3594,15 @@ const So = /* @__PURE__ */ new Map([
|
|
|
3594
3594
|
})
|
|
3595
3595
|
],
|
|
3596
3596
|
[
|
|
3597
|
-
|
|
3598
|
-
new
|
|
3599
|
-
key:
|
|
3597
|
+
p.PREVIOUS_YEAR,
|
|
3598
|
+
new vo({
|
|
3599
|
+
key: p.PREVIOUS_YEAR,
|
|
3600
3600
|
display: "Previous year",
|
|
3601
3601
|
timeframeText: "Year",
|
|
3602
3602
|
timeframeLength: () => {
|
|
3603
3603
|
const e = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1), t = new Date((/* @__PURE__ */ new Date()).getFullYear() - 1, 0, 1);
|
|
3604
3604
|
let n = 0;
|
|
3605
|
-
return e.getTimezoneOffset() !== t.getTimezoneOffset() && (n =
|
|
3605
|
+
return e.getTimezoneOffset() !== t.getTimezoneOffset() && (n = rn(e, t)), 60 * 60 * 24 * (365 + (t.getFullYear() % 4 === 0 ? 1 : 0)) + jt(n);
|
|
3606
3606
|
},
|
|
3607
3607
|
defaultResponseGranularity: "daily",
|
|
3608
3608
|
dataGranularity: "daily",
|
|
@@ -3611,9 +3611,9 @@ const So = /* @__PURE__ */ new Map([
|
|
|
3611
3611
|
})
|
|
3612
3612
|
]
|
|
3613
3613
|
]);
|
|
3614
|
-
function
|
|
3614
|
+
function es(e) {
|
|
3615
3615
|
const t = new Date(e.start), n = new Date(e.end), r = (n.getTime() - t.getTime()) / 1e3;
|
|
3616
|
-
return e.timePeriodsKey &&
|
|
3616
|
+
return e.timePeriodsKey && To(No.get(e.timePeriodsKey)) || new S({
|
|
3617
3617
|
key: "custom",
|
|
3618
3618
|
timeframeText: "custom",
|
|
3619
3619
|
display: "custom",
|
|
@@ -3626,14 +3626,14 @@ function $o(e) {
|
|
|
3626
3626
|
allowedTiers: ["free", "plus", "enterprise"]
|
|
3627
3627
|
});
|
|
3628
3628
|
}
|
|
3629
|
-
function
|
|
3629
|
+
function ts(e) {
|
|
3630
3630
|
return {
|
|
3631
3631
|
...e.key !== "custom" && { timePeriodsKey: e.key },
|
|
3632
3632
|
start: e.rawStart(),
|
|
3633
3633
|
end: e.rawEnd()
|
|
3634
3634
|
};
|
|
3635
3635
|
}
|
|
3636
|
-
function
|
|
3636
|
+
function ns(e) {
|
|
3637
3637
|
return {
|
|
3638
3638
|
key: e.key,
|
|
3639
3639
|
display: e.display,
|
|
@@ -3644,34 +3644,34 @@ function Qo(e) {
|
|
|
3644
3644
|
end: () => e.rawEnd()
|
|
3645
3645
|
};
|
|
3646
3646
|
}
|
|
3647
|
-
function
|
|
3648
|
-
return
|
|
3649
|
-
}
|
|
3650
|
-
const
|
|
3651
|
-
"15M":
|
|
3652
|
-
"1H":
|
|
3653
|
-
"6H":
|
|
3654
|
-
"12H":
|
|
3655
|
-
"24H":
|
|
3656
|
-
"7D":
|
|
3657
|
-
"15m":
|
|
3658
|
-
"1h":
|
|
3659
|
-
"6h":
|
|
3660
|
-
"12h":
|
|
3661
|
-
"24h":
|
|
3662
|
-
"7d":
|
|
3663
|
-
"30d":
|
|
3664
|
-
"90d":
|
|
3665
|
-
"180d":
|
|
3666
|
-
"365d":
|
|
3667
|
-
current_week:
|
|
3668
|
-
current_month:
|
|
3669
|
-
current_year:
|
|
3670
|
-
previous_week:
|
|
3671
|
-
previous_month:
|
|
3672
|
-
previous_year:
|
|
3647
|
+
function rn(e, t) {
|
|
3648
|
+
return Wi(e.getTimezoneOffset() - t.getTimezoneOffset());
|
|
3649
|
+
}
|
|
3650
|
+
const rs = {
|
|
3651
|
+
"15M": p.FIFTEEN_MIN,
|
|
3652
|
+
"1H": p.ONE_HOUR,
|
|
3653
|
+
"6H": p.SIX_HOUR,
|
|
3654
|
+
"12H": p.TWELVE_HOUR,
|
|
3655
|
+
"24H": p.ONE_DAY,
|
|
3656
|
+
"7D": p.SEVEN_DAY,
|
|
3657
|
+
"15m": p.FIFTEEN_MIN,
|
|
3658
|
+
"1h": p.ONE_HOUR,
|
|
3659
|
+
"6h": p.SIX_HOUR,
|
|
3660
|
+
"12h": p.TWELVE_HOUR,
|
|
3661
|
+
"24h": p.ONE_DAY,
|
|
3662
|
+
"7d": p.SEVEN_DAY,
|
|
3663
|
+
"30d": p.THIRTY_DAY,
|
|
3664
|
+
"90d": p.NINETY_DAY,
|
|
3665
|
+
"180d": p.ONE_HUNDRED_EIGHTY_DAY,
|
|
3666
|
+
"365d": p.ONE_YEAR,
|
|
3667
|
+
current_week: p.CURRENT_WEEK,
|
|
3668
|
+
current_month: p.CURRENT_MONTH,
|
|
3669
|
+
current_year: p.CURRENT_YEAR,
|
|
3670
|
+
previous_week: p.PREVIOUS_WEEK,
|
|
3671
|
+
previous_month: p.PREVIOUS_MONTH,
|
|
3672
|
+
previous_year: p.PREVIOUS_YEAR
|
|
3673
3673
|
};
|
|
3674
|
-
class
|
|
3674
|
+
class et {
|
|
3675
3675
|
constructor(t) {
|
|
3676
3676
|
T(this, "_seed");
|
|
3677
3677
|
this._seed = t;
|
|
@@ -3681,48 +3681,48 @@ class Ke {
|
|
|
3681
3681
|
return Math.floor(i * (n - t + 1)) + t;
|
|
3682
3682
|
}
|
|
3683
3683
|
}
|
|
3684
|
-
const
|
|
3685
|
-
const r =
|
|
3686
|
-
let
|
|
3687
|
-
for (let
|
|
3684
|
+
const as = (e, t, n) => {
|
|
3685
|
+
const r = vn(10, 1e4), i = new et(r), o = Date.now() - 6 * 60 * 60 * 1e3, c = Date.now(), m = [];
|
|
3686
|
+
let g = 0;
|
|
3687
|
+
for (let d = o; d <= c; d += 60 * 60 * 1e3)
|
|
3688
3688
|
if (t)
|
|
3689
|
-
for (const
|
|
3690
|
-
t[
|
|
3691
|
-
|
|
3692
|
-
const
|
|
3693
|
-
[
|
|
3694
|
-
[e.name]:
|
|
3695
|
-
},
|
|
3689
|
+
for (const h in t)
|
|
3690
|
+
t[h].forEach((b) => {
|
|
3691
|
+
g += i.next(50, 500);
|
|
3692
|
+
const E = {
|
|
3693
|
+
[h]: b,
|
|
3694
|
+
[e.name]: g
|
|
3695
|
+
}, N = {
|
|
3696
3696
|
version: "1.0",
|
|
3697
|
-
timestamp: new Date(
|
|
3698
|
-
event:
|
|
3697
|
+
timestamp: new Date(d).toISOString(),
|
|
3698
|
+
event: E
|
|
3699
3699
|
};
|
|
3700
|
-
|
|
3700
|
+
m.push(N);
|
|
3701
3701
|
});
|
|
3702
3702
|
else {
|
|
3703
|
-
|
|
3704
|
-
const
|
|
3703
|
+
g += i.next(50, 500);
|
|
3704
|
+
const h = {
|
|
3705
3705
|
version: "1.0",
|
|
3706
|
-
timestamp: new Date(
|
|
3706
|
+
timestamp: new Date(d).toISOString(),
|
|
3707
3707
|
event: {
|
|
3708
|
-
[e.name]:
|
|
3708
|
+
[e.name]: g
|
|
3709
3709
|
}
|
|
3710
3710
|
};
|
|
3711
|
-
|
|
3711
|
+
m.push(h);
|
|
3712
3712
|
}
|
|
3713
|
-
const
|
|
3713
|
+
const l = {};
|
|
3714
3714
|
if (t)
|
|
3715
|
-
for (const
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
name:
|
|
3715
|
+
for (const d in t)
|
|
3716
|
+
l[d] = {}, t[d].forEach((h) => {
|
|
3717
|
+
l[d][h] = {
|
|
3718
|
+
name: h,
|
|
3719
3719
|
deleted: !1
|
|
3720
3720
|
};
|
|
3721
3721
|
});
|
|
3722
|
-
const
|
|
3723
|
-
start_ms:
|
|
3722
|
+
const f = {
|
|
3723
|
+
start_ms: o,
|
|
3724
3724
|
end_ms: c,
|
|
3725
|
-
start: new Date(
|
|
3725
|
+
start: new Date(o).toISOString(),
|
|
3726
3726
|
end: new Date(c).toISOString(),
|
|
3727
3727
|
query_id: "12345",
|
|
3728
3728
|
metric_names: [e.name],
|
|
@@ -3731,38 +3731,38 @@ const Jo = (e, t, n) => {
|
|
|
3731
3731
|
},
|
|
3732
3732
|
granularity_ms: 60 * 60 * 1e3,
|
|
3733
3733
|
// 1 hour in ms
|
|
3734
|
-
display:
|
|
3734
|
+
display: l,
|
|
3735
3735
|
...n ?? {}
|
|
3736
3736
|
};
|
|
3737
3737
|
return {
|
|
3738
|
-
data:
|
|
3739
|
-
meta:
|
|
3738
|
+
data: m,
|
|
3739
|
+
meta: f
|
|
3740
3740
|
};
|
|
3741
|
-
},
|
|
3742
|
-
const n =
|
|
3743
|
-
e.forEach((
|
|
3744
|
-
|
|
3741
|
+
}, is = (e, t) => {
|
|
3742
|
+
const n = vn(10, 1e4), r = new et(n), i = Date.now() - 6 * 60 * 60 * 1e3, o = Date.now(), c = [], m = {};
|
|
3743
|
+
e.forEach((l) => {
|
|
3744
|
+
m[l.name] = 0;
|
|
3745
3745
|
});
|
|
3746
|
-
for (let
|
|
3747
|
-
const
|
|
3748
|
-
e.forEach((
|
|
3749
|
-
|
|
3746
|
+
for (let l = i; l <= o; l += 60 * 60 * 1e3) {
|
|
3747
|
+
const f = {};
|
|
3748
|
+
e.forEach((h) => {
|
|
3749
|
+
m[h.name] += r.next(50, 500), f[h.name] = m[h.name];
|
|
3750
3750
|
});
|
|
3751
|
-
const
|
|
3751
|
+
const d = {
|
|
3752
3752
|
version: "1.0",
|
|
3753
|
-
timestamp: new Date(
|
|
3754
|
-
event:
|
|
3753
|
+
timestamp: new Date(l).toISOString(),
|
|
3754
|
+
event: f
|
|
3755
3755
|
};
|
|
3756
|
-
c.push(
|
|
3756
|
+
c.push(d);
|
|
3757
3757
|
}
|
|
3758
|
-
const
|
|
3758
|
+
const g = {
|
|
3759
3759
|
start_ms: i,
|
|
3760
|
-
end_ms:
|
|
3760
|
+
end_ms: o,
|
|
3761
3761
|
start: new Date(i).toISOString(),
|
|
3762
|
-
end: new Date(
|
|
3762
|
+
end: new Date(o).toISOString(),
|
|
3763
3763
|
query_id: "12345",
|
|
3764
|
-
metric_names: e.map((
|
|
3765
|
-
metric_units: e.reduce((
|
|
3764
|
+
metric_names: e.map((l) => l.name),
|
|
3765
|
+
metric_units: e.reduce((l, f) => (l[f.name] = f.unit, l), {}),
|
|
3766
3766
|
granularity_ms: 60 * 60 * 1e3,
|
|
3767
3767
|
// 1 hour in ms
|
|
3768
3768
|
display: {},
|
|
@@ -3770,152 +3770,258 @@ const Jo = (e, t, n) => {
|
|
|
3770
3770
|
};
|
|
3771
3771
|
return {
|
|
3772
3772
|
data: c,
|
|
3773
|
-
meta:
|
|
3773
|
+
meta: g
|
|
3774
3774
|
};
|
|
3775
|
-
},
|
|
3776
|
-
const r = Math.floor(Math.random() * 9991) + 10, i = new
|
|
3775
|
+
}, os = (e, t, n) => {
|
|
3776
|
+
const r = Math.floor(Math.random() * 9991) + 10, i = new et(r), o = Date.now() - 6 * 60 * 60 * 1e3, c = Date.now(), m = new Date((o + c) / 2).toISOString(), g = [];
|
|
3777
3777
|
if (t) {
|
|
3778
|
-
const
|
|
3779
|
-
if (
|
|
3778
|
+
const d = Object.keys(t), h = Object.values(t), b = (E, N) => {
|
|
3779
|
+
if (N === d.length) {
|
|
3780
3780
|
e.forEach((C) => {
|
|
3781
|
-
|
|
3782
|
-
}),
|
|
3781
|
+
E[C.name] = i.next(1e3, 5e7);
|
|
3782
|
+
}), g.push({
|
|
3783
3783
|
version: "1.0",
|
|
3784
3784
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
3785
|
-
event: { ...
|
|
3785
|
+
event: { ...E }
|
|
3786
3786
|
});
|
|
3787
3787
|
return;
|
|
3788
3788
|
}
|
|
3789
|
-
|
|
3790
|
-
|
|
3789
|
+
h[N].forEach((C) => {
|
|
3790
|
+
b({ ...E, [d[N]]: C }, N + 1);
|
|
3791
3791
|
});
|
|
3792
3792
|
};
|
|
3793
|
-
|
|
3793
|
+
b({}, 0);
|
|
3794
3794
|
} else {
|
|
3795
|
-
const
|
|
3796
|
-
e.forEach((
|
|
3797
|
-
|
|
3798
|
-
}),
|
|
3795
|
+
const d = {};
|
|
3796
|
+
e.forEach((h) => {
|
|
3797
|
+
d[h.name] = i.next(50, 500);
|
|
3798
|
+
}), g.push({
|
|
3799
3799
|
version: "1.0",
|
|
3800
|
-
timestamp:
|
|
3801
|
-
event:
|
|
3800
|
+
timestamp: m,
|
|
3801
|
+
event: d
|
|
3802
3802
|
});
|
|
3803
3803
|
}
|
|
3804
|
-
const
|
|
3804
|
+
const l = {};
|
|
3805
3805
|
if (t)
|
|
3806
|
-
for (const
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
name:
|
|
3806
|
+
for (const d in t)
|
|
3807
|
+
l[d] = {}, t[d].forEach((h) => {
|
|
3808
|
+
l[d][h] = {
|
|
3809
|
+
name: h,
|
|
3810
3810
|
deleted: !1
|
|
3811
3811
|
};
|
|
3812
3812
|
});
|
|
3813
|
-
const
|
|
3814
|
-
start_ms:
|
|
3813
|
+
const f = {
|
|
3814
|
+
start_ms: o,
|
|
3815
3815
|
end_ms: c,
|
|
3816
|
-
start: new Date(
|
|
3816
|
+
start: new Date(o).toISOString(),
|
|
3817
3817
|
end: new Date(c).toISOString(),
|
|
3818
3818
|
query_id: "12345",
|
|
3819
|
-
metric_names: e.map((
|
|
3820
|
-
metric_units: e.reduce((
|
|
3819
|
+
metric_names: e.map((d) => d.name),
|
|
3820
|
+
metric_units: e.reduce((d, h) => (d[h.name] = h.unit, d), {}),
|
|
3821
3821
|
truncated: !1,
|
|
3822
3822
|
limit: 50,
|
|
3823
|
-
display:
|
|
3824
|
-
granularity_ms: c -
|
|
3823
|
+
display: l,
|
|
3824
|
+
granularity_ms: c - o,
|
|
3825
3825
|
...n ?? {}
|
|
3826
3826
|
};
|
|
3827
3827
|
return {
|
|
3828
|
-
data:
|
|
3829
|
-
meta:
|
|
3828
|
+
data: g,
|
|
3829
|
+
meta: f
|
|
3830
3830
|
};
|
|
3831
3831
|
};
|
|
3832
|
-
function
|
|
3832
|
+
function vn(e, t) {
|
|
3833
3833
|
return e = Math.ceil(e), t = Math.floor(t), Math.floor(Math.random() * (t - e + 1) + e);
|
|
3834
3834
|
}
|
|
3835
|
-
const
|
|
3835
|
+
const Io = new Map(dn.map((e) => [e.code, { code: e.code, name: e.name }])), ss = (e) => {
|
|
3836
3836
|
var t;
|
|
3837
|
-
return ((t =
|
|
3837
|
+
return ((t = Io.get(e)) == null ? void 0 : t.name) || e;
|
|
3838
3838
|
};
|
|
3839
|
+
var Nn = { exports: {} };
|
|
3840
|
+
(function(e) {
|
|
3841
|
+
(function() {
|
|
3842
|
+
function t(l, f) {
|
|
3843
|
+
if (f.separator === !1 || l < 1e3)
|
|
3844
|
+
return l.toString();
|
|
3845
|
+
var d = typeof f.separator == "string" ? f.separator : ",", h = [], b = Math.round(l).toString().split("");
|
|
3846
|
+
return b.reverse().forEach(function(E, N) {
|
|
3847
|
+
N && N % 3 === 0 && h.push(d), h.push(E);
|
|
3848
|
+
}), h.reverse().join("");
|
|
3849
|
+
}
|
|
3850
|
+
function n(l, f, d) {
|
|
3851
|
+
var h = l / f, b = d.round ? "round" : "floor";
|
|
3852
|
+
return d.decimal === !1 ? (l = Math[b](h), l.toString()) : (d.precision ? l = h : l = h < 10 ? Math[b](h * 10) / 10 : Math[b](h), l = l.toString(), typeof d.decimal == "string" && (l = l.replace(".", d.decimal)), l);
|
|
3853
|
+
}
|
|
3854
|
+
var r = 1e3, i = 1e4, o = 1e6, c = 1e9, m = 1e12;
|
|
3855
|
+
function g(l, f) {
|
|
3856
|
+
var d;
|
|
3857
|
+
f = f || {};
|
|
3858
|
+
var h = l < 0;
|
|
3859
|
+
h && (l = Math.abs(l)), f.precision && (l = parseFloat(l.toPrecision(f.precision)));
|
|
3860
|
+
var b = f.min10k ? i : r;
|
|
3861
|
+
return l < b || f.precision && f.precision > Math.log10(l) ? d = t(n(l, 1, f), f) : l < o ? d = n(l, r, f) + "k" : l < c ? d = n(l, o, f) + "m" : l < m ? d = t(n(l, c, f), f) + "b" : d = t(n(l, m, f), f) + "t", h && (d = "-" + d), f.capital && (d = d.toUpperCase()), f.prefix && (d = f.prefix + d), f.suffix && (d = d + f.suffix), d;
|
|
3862
|
+
}
|
|
3863
|
+
g.addCommas = t, e.exports = g;
|
|
3864
|
+
})();
|
|
3865
|
+
})(Nn);
|
|
3866
|
+
var xo = Nn.exports;
|
|
3867
|
+
const Ve = /* @__PURE__ */ En(xo);
|
|
3868
|
+
var an;
|
|
3869
|
+
const $e = new Intl.NumberFormat(((an = document == null ? void 0 : document.documentElement) == null ? void 0 : an.lang) || "en-US");
|
|
3870
|
+
function us({
|
|
3871
|
+
i18n: e
|
|
3872
|
+
}) {
|
|
3873
|
+
const t = (o, c) => {
|
|
3874
|
+
if (isNaN(o))
|
|
3875
|
+
return "0 B";
|
|
3876
|
+
const m = c ? Math.pow(2, 50) : 1e15, g = c ? Math.pow(2, 40) : 1e12, l = c ? Math.pow(2, 30) : 1e9, f = c ? Math.pow(2, 20) : 1e6, d = c ? Math.pow(2, 10) : 1e3;
|
|
3877
|
+
let h;
|
|
3878
|
+
return o >= m ? h = e.formatNumber(
|
|
3879
|
+
Number.parseFloat((o / m).toPrecision(3)),
|
|
3880
|
+
{ style: "unit", unit: "petabyte", unitDisplay: "narrow" }
|
|
3881
|
+
) : o >= g ? h = e.formatNumber(
|
|
3882
|
+
Number.parseFloat((o / g).toPrecision(3)),
|
|
3883
|
+
{ style: "unit", unit: "terabyte", unitDisplay: "narrow" }
|
|
3884
|
+
) : o >= l ? h = e.formatNumber(
|
|
3885
|
+
Number.parseFloat((o / l).toPrecision(3)),
|
|
3886
|
+
{ style: "unit", unit: "gigabyte", unitDisplay: "narrow" }
|
|
3887
|
+
) : o >= f ? h = e.formatNumber(
|
|
3888
|
+
Number.parseFloat((o / f).toPrecision(3)),
|
|
3889
|
+
{ style: "unit", unit: "megabyte", unitDisplay: "narrow" }
|
|
3890
|
+
) : o >= d ? h = e.formatNumber(
|
|
3891
|
+
Number.parseFloat((o / d).toPrecision(3)),
|
|
3892
|
+
{ style: "unit", unit: "kilobyte", unitDisplay: "narrow" }
|
|
3893
|
+
) : h = e.formatNumber(
|
|
3894
|
+
Number.parseFloat(o.toPrecision(3)),
|
|
3895
|
+
{ style: "unit", unit: "byte", unitDisplay: "narrow" }
|
|
3896
|
+
), h.replace(/([a-zA-Z]*)$/, " $1");
|
|
3897
|
+
}, n = (o, c = "USD") => isNaN(o) ? c === "USD" ? "$0.00" : `${o}` : o >= 0.01 || c !== "USD" ? e.formatNumber(o, { style: "currency", currency: c }) : o < 1e-4 ? "< $0.0001" : `$${Number.parseFloat(o.toPrecision(4))}`;
|
|
3898
|
+
return { formatUnit: (o, c, {
|
|
3899
|
+
isBytes1024: m = !1,
|
|
3900
|
+
currency: g = "USD",
|
|
3901
|
+
approximate: l = !1,
|
|
3902
|
+
translateUnit: f = (d) => d
|
|
3903
|
+
} = {}) => {
|
|
3904
|
+
const d = f(c, o);
|
|
3905
|
+
switch (c) {
|
|
3906
|
+
case "bytes":
|
|
3907
|
+
return t(o, m);
|
|
3908
|
+
case "usd":
|
|
3909
|
+
return n(o, g);
|
|
3910
|
+
case "ms":
|
|
3911
|
+
case "count/minute":
|
|
3912
|
+
case "token count":
|
|
3913
|
+
case "count":
|
|
3914
|
+
default:
|
|
3915
|
+
return isNaN(o) ? `${o}` : l ? `${Ve(o, { capital: !0 })} ${d}` : o >= 0.01 ? `${$e.format(Number.parseFloat(o.toFixed(2)))} ${d}` : `${Number.parseFloat(o.toPrecision(4))} ${d}`;
|
|
3916
|
+
}
|
|
3917
|
+
}, formatBytes: t, formatCost: n, formatRange: (o, c, m, {
|
|
3918
|
+
isBytes1024: g = !1,
|
|
3919
|
+
currency: l = "USD",
|
|
3920
|
+
approximate: f = !1,
|
|
3921
|
+
translateUnit: d = (h) => h
|
|
3922
|
+
} = {}) => {
|
|
3923
|
+
const h = d(m, c);
|
|
3924
|
+
switch (m) {
|
|
3925
|
+
case "bytes":
|
|
3926
|
+
return `${t(o, g)} - ${t(c, g)}`;
|
|
3927
|
+
case "usd":
|
|
3928
|
+
return `${n(o, l)} - ${n(c, l)}`;
|
|
3929
|
+
case "ms":
|
|
3930
|
+
case "count/minute":
|
|
3931
|
+
case "token count":
|
|
3932
|
+
case "count":
|
|
3933
|
+
default:
|
|
3934
|
+
if (isNaN(o) || isNaN(c))
|
|
3935
|
+
return `${o} - ${c}`;
|
|
3936
|
+
if (f)
|
|
3937
|
+
return `${Ve(o, { capital: !0 })} - ${Ve(c, { capital: !0 })} ${h}`;
|
|
3938
|
+
}
|
|
3939
|
+
const b = o >= 0.01 ? `${$e.format(Number.parseFloat(o.toFixed(2)))}` : `${Number.parseFloat(o.toPrecision(4))}`, E = c >= 0.01 ? `${$e.format(Number.parseFloat(c.toFixed(2)))}` : `${Number.parseFloat(c.toPrecision(4))}`;
|
|
3940
|
+
return `${b} - ${E} ${h}`;
|
|
3941
|
+
} };
|
|
3942
|
+
}
|
|
3839
3943
|
export {
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3944
|
+
dn as COUNTRIES,
|
|
3945
|
+
Jo as DeltaQueryTime,
|
|
3946
|
+
Co as EXPORT_RECORD_LIMIT,
|
|
3947
|
+
Te as Granularities,
|
|
3948
|
+
Yo as INJECT_QUERY_PROVIDER,
|
|
3949
|
+
Ro as REFRESH_INTERVAL_MS,
|
|
3950
|
+
et as SeededRandom,
|
|
3951
|
+
rs as TIMEFRAME_LOOKUP,
|
|
3952
|
+
No as TimePeriods,
|
|
3953
|
+
S as Timeframe,
|
|
3954
|
+
p as TimeframeKeys,
|
|
3955
|
+
Ko as TimeseriesQueryTime,
|
|
3956
|
+
wo as UnaryQueryTime,
|
|
3957
|
+
aa as aiExploreAggregations,
|
|
3958
|
+
Ma as apiUsageQuerySchema,
|
|
3959
|
+
ma as barChartSchema,
|
|
3960
|
+
un as basicExploreAggregations,
|
|
3961
|
+
Sa as basicQuerySchema,
|
|
3962
|
+
On as ceilToNearestTimeGrain,
|
|
3963
|
+
ba as choroplethMapSchema,
|
|
3964
|
+
Io as countries,
|
|
3965
|
+
Vo as dashboardConfigSchema,
|
|
3966
|
+
zo as dashboardTileTypes,
|
|
3967
|
+
la as datasourceToFilterableDimensions,
|
|
3968
|
+
es as datePickerSelectionToTimeframe,
|
|
3969
|
+
ga as donutChartSchema,
|
|
3970
|
+
rn as dstOffsetHours,
|
|
3971
|
+
ra as exploreAggregations,
|
|
3972
|
+
ta as exploreFilterTypesV2,
|
|
3973
|
+
Go as extendedRelativeTimeRangeValues,
|
|
3870
3974
|
Oe as filterableAiExploreDimensions,
|
|
3871
3975
|
Me as filterableBasicExploreDimensions,
|
|
3872
3976
|
Se as filterableExploreDimensions,
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3977
|
+
oa as filterableRequestDimensions,
|
|
3978
|
+
ca as filterableRequestMetrics,
|
|
3979
|
+
Uo as filterableRequestWildcardDimensions,
|
|
3980
|
+
_o as floorToNearestTimeGrain,
|
|
3981
|
+
Bo as formatLogTimestamp,
|
|
3982
|
+
nn as formatTime,
|
|
3983
|
+
Zo as formatTimeRange,
|
|
3984
|
+
ya as gaugeChartSchema,
|
|
3985
|
+
os as generateCrossSectionalData,
|
|
3986
|
+
is as generateMultipleMetricTimeSeriesData,
|
|
3987
|
+
as as generateSingleMetricTimeSeriesData,
|
|
3988
|
+
ss as getCountryName,
|
|
3989
|
+
$o as getFieldDataSources,
|
|
3990
|
+
Xo as granularitiesToOptions,
|
|
3991
|
+
po as granularityMsToQuery,
|
|
3992
|
+
sn as granularityValues,
|
|
3993
|
+
Oa as llmUsageSchema,
|
|
3994
|
+
_a as metricCardSchema,
|
|
3995
|
+
Qo as msToGranularity,
|
|
3996
|
+
$e as numberFormatter,
|
|
3997
|
+
qo as queryDatasources,
|
|
3998
|
+
ln as queryableAiExploreDimensions,
|
|
3999
|
+
Ze as queryableBasicExploreDimensions,
|
|
4000
|
+
cn as queryableExploreDimensions,
|
|
4001
|
+
ia as queryableRequestDimensions,
|
|
4002
|
+
ua as queryableRequestMetrics,
|
|
4003
|
+
sa as queryableRequestWildcardDimensions,
|
|
4004
|
+
vn as rand,
|
|
4005
|
+
Wo as relativeTimeRangeValuesRequestV2,
|
|
4006
|
+
on as relativeTimeRangeValuesV4,
|
|
4007
|
+
ko as reportChartTypes,
|
|
4008
|
+
na as requestFilterTypeEmptyV2,
|
|
4009
|
+
Ao as requestFilterTypeEqualsV2,
|
|
4010
|
+
Fo as requestFilterTypeMetricV2,
|
|
4011
|
+
Ho as requestFilterTypeWildcardV2,
|
|
4012
|
+
wa as singleValueSchema,
|
|
4013
|
+
da as slottableSchema,
|
|
4014
|
+
jo as stripUnknownFilters,
|
|
4015
|
+
fa as thresholdSchema,
|
|
4016
|
+
Ia as tileConfigSchema,
|
|
4017
|
+
va as tileDefinitionSchema,
|
|
4018
|
+
Na as tileLayoutSchema,
|
|
4019
|
+
Lo as timeRangeTypeV2,
|
|
4020
|
+
ts as timeframeToDatepickerSelection,
|
|
4021
|
+
ns as timeframeToDatepickerTimeperiod,
|
|
4022
|
+
ha as timeseriesChartSchema,
|
|
4023
|
+
pa as topNTableSchema,
|
|
4024
|
+
us as unitFormatter,
|
|
4025
|
+
Ea as validDashboardQuery
|
|
3920
4026
|
};
|
|
3921
4027
|
//# sourceMappingURL=vitals-utilities.es.js.map
|