@kong-ui-public/analytics-utilities 12.17.2 → 12.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/dashboardSchema.v2.d.ts +3336 -836
- package/dist/types/dashboardSchema.v2.d.ts.map +1 -1
- package/dist/types/types/explore/platform.d.ts +22 -0
- package/dist/types/types/explore/platform.d.ts.map +1 -1
- package/dist/types/types/query-bridge.d.ts +2 -1
- package/dist/types/types/query-bridge.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 +695 -632
- 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 +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var E = (e, t, n) =>
|
|
4
|
-
const
|
|
1
|
+
var da = Object.defineProperty;
|
|
2
|
+
var ma = (e, t, n) => t in e ? da(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var E = (e, t, n) => ma(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
const rs = 3e4, as = 1e3, is = "analytics-query-provider";
|
|
5
5
|
var d = /* @__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))(d || {});
|
|
6
|
-
const
|
|
6
|
+
const os = [
|
|
7
7
|
"90d",
|
|
8
8
|
"180d",
|
|
9
9
|
"365d",
|
|
@@ -11,7 +11,7 @@ const ts = [
|
|
|
11
11
|
"previous_quarter",
|
|
12
12
|
"current_year",
|
|
13
13
|
"previous_year"
|
|
14
|
-
],
|
|
14
|
+
], ss = [
|
|
15
15
|
"horizontal_bar",
|
|
16
16
|
"vertical_bar",
|
|
17
17
|
"timeseries_line",
|
|
@@ -20,7 +20,7 @@ const ts = [
|
|
|
20
20
|
"donut",
|
|
21
21
|
"single_value",
|
|
22
22
|
"top_n"
|
|
23
|
-
],
|
|
23
|
+
], fa = ["in", "not_in", "selector"], us = ["=", "!="], cs = ["=", "!=", "<", ">", "<=", ">="], ha = ["empty", "not_empty"], ls = ["starts_with", "ends_with"], ds = ["absolute", "relative"], ms = [
|
|
24
24
|
"15m",
|
|
25
25
|
"1h",
|
|
26
26
|
"6h",
|
|
@@ -60,7 +60,7 @@ const ts = [
|
|
|
60
60
|
"status_code",
|
|
61
61
|
"status_code_grouped",
|
|
62
62
|
"time"
|
|
63
|
-
], Pe = ae(nt),
|
|
63
|
+
], Pe = ae(nt), pn = [
|
|
64
64
|
"active_services",
|
|
65
65
|
"error_rate",
|
|
66
66
|
"request_count",
|
|
@@ -81,8 +81,8 @@ const ts = [
|
|
|
81
81
|
"realm",
|
|
82
82
|
"portal_api",
|
|
83
83
|
"principal"
|
|
84
|
-
], Ce = ae(rt),
|
|
85
|
-
...
|
|
84
|
+
], Ce = ae(rt), gn = [
|
|
85
|
+
...pn,
|
|
86
86
|
"response_latency_p99",
|
|
87
87
|
"response_latency_p95",
|
|
88
88
|
"response_latency_p50",
|
|
@@ -127,7 +127,7 @@ const ts = [
|
|
|
127
127
|
"status_code_grouped",
|
|
128
128
|
"ai_plugin",
|
|
129
129
|
"principal"
|
|
130
|
-
],
|
|
130
|
+
], Ae = ae(_n), ya = [
|
|
131
131
|
"total_tokens",
|
|
132
132
|
"prompt_tokens",
|
|
133
133
|
"completion_tokens",
|
|
@@ -139,7 +139,7 @@ const ts = [
|
|
|
139
139
|
"llm_latency_average",
|
|
140
140
|
"llm_embeddings_tokens",
|
|
141
141
|
"llm_embeddings_cost"
|
|
142
|
-
],
|
|
142
|
+
], pa = [
|
|
143
143
|
"a2a_context_id",
|
|
144
144
|
"a2a_error",
|
|
145
145
|
"a2a_method",
|
|
@@ -188,7 +188,7 @@ const ts = [
|
|
|
188
188
|
"upstream_uri",
|
|
189
189
|
"upstream_status_code_grouped",
|
|
190
190
|
"websocket"
|
|
191
|
-
],
|
|
191
|
+
], ga = ae(pa), _a = [
|
|
192
192
|
"auth_type",
|
|
193
193
|
"client_ip",
|
|
194
194
|
"data_plane_node_version",
|
|
@@ -203,7 +203,7 @@ const ts = [
|
|
|
203
203
|
"service_protocol",
|
|
204
204
|
"trace_id",
|
|
205
205
|
"upstream_uri"
|
|
206
|
-
],
|
|
206
|
+
], fs = _a, wa = [
|
|
207
207
|
"ai_count",
|
|
208
208
|
"latencies_response_ms",
|
|
209
209
|
"latencies_upstream_ms",
|
|
@@ -214,7 +214,7 @@ const ts = [
|
|
|
214
214
|
"response_header_content_length",
|
|
215
215
|
"status_code",
|
|
216
216
|
"upstream_status_code"
|
|
217
|
-
],
|
|
217
|
+
], ba = ae(wa), hs = [
|
|
218
218
|
"15M",
|
|
219
219
|
"1H",
|
|
220
220
|
"6H",
|
|
@@ -231,18 +231,18 @@ const ts = [
|
|
|
231
231
|
"mcp_method",
|
|
232
232
|
"mcp_session_id",
|
|
233
233
|
"mcp_tool_name"
|
|
234
|
-
],
|
|
235
|
-
...
|
|
234
|
+
], ke = ae(wn), Ta = [
|
|
235
|
+
...gn,
|
|
236
236
|
"a2a_latency_average",
|
|
237
237
|
"a2a_response_size_sum",
|
|
238
238
|
"mcp_response_size_sum"
|
|
239
|
-
],
|
|
239
|
+
], ys = ["basic", "api_usage", "llm_usage", "agentic_usage", "platform"], Da = {
|
|
240
240
|
basic: new Set(Pe),
|
|
241
241
|
api_usage: new Set(Ce),
|
|
242
|
-
llm_usage: new Set(
|
|
243
|
-
agentic_usage: new Set(
|
|
242
|
+
llm_usage: new Set(Ae),
|
|
243
|
+
agentic_usage: new Set(ke),
|
|
244
244
|
platform: /* @__PURE__ */ new Set()
|
|
245
|
-
},
|
|
245
|
+
}, ps = (e, t) => e.startsWith("goap") || e === "platform" ? t : t.filter((n) => Da[e].has(n.field)), bn = [
|
|
246
246
|
{ code: "AF", name: "Afghanistan" },
|
|
247
247
|
{ code: "AX", name: "Aland Islands" },
|
|
248
248
|
{ code: "AL", name: "Albania" },
|
|
@@ -489,7 +489,7 @@ const ts = [
|
|
|
489
489
|
{ code: "YE", name: "Yemen" },
|
|
490
490
|
{ code: "ZM", name: "Zambia" },
|
|
491
491
|
{ code: "ZW", name: "Zimbabwe" }
|
|
492
|
-
],
|
|
492
|
+
], gs = [
|
|
493
493
|
"horizontal_bar",
|
|
494
494
|
"vertical_bar",
|
|
495
495
|
"gauge",
|
|
@@ -507,7 +507,7 @@ const ts = [
|
|
|
507
507
|
type: "string"
|
|
508
508
|
}, Tn = {
|
|
509
509
|
type: "boolean"
|
|
510
|
-
},
|
|
510
|
+
}, Ma = {
|
|
511
511
|
type: "object",
|
|
512
512
|
additionalProperties: {
|
|
513
513
|
type: "string"
|
|
@@ -520,7 +520,7 @@ const ts = [
|
|
|
520
520
|
additionalProperties: {
|
|
521
521
|
type: "string"
|
|
522
522
|
}
|
|
523
|
-
},
|
|
523
|
+
}, Sa = {
|
|
524
524
|
type: "object",
|
|
525
525
|
properties: {
|
|
526
526
|
type: {
|
|
@@ -533,7 +533,7 @@ const ts = [
|
|
|
533
533
|
},
|
|
534
534
|
required: ["type", "id"],
|
|
535
535
|
additionalProperties: !1
|
|
536
|
-
},
|
|
536
|
+
}, Oa = {
|
|
537
537
|
type: "object",
|
|
538
538
|
properties: {
|
|
539
539
|
type: {
|
|
@@ -550,7 +550,7 @@ const ts = [
|
|
|
550
550
|
},
|
|
551
551
|
required: ["type"],
|
|
552
552
|
additionalProperties: !1
|
|
553
|
-
},
|
|
553
|
+
}, Ea = {
|
|
554
554
|
type: "object",
|
|
555
555
|
properties: {
|
|
556
556
|
type: {
|
|
@@ -570,7 +570,7 @@ const ts = [
|
|
|
570
570
|
},
|
|
571
571
|
required: ["type", "value"],
|
|
572
572
|
additionalProperties: !1
|
|
573
|
-
},
|
|
573
|
+
}, Na = {
|
|
574
574
|
type: "object",
|
|
575
575
|
properties: {
|
|
576
576
|
type: {
|
|
@@ -584,7 +584,7 @@ const ts = [
|
|
|
584
584
|
type: "object",
|
|
585
585
|
additionalProperties: {
|
|
586
586
|
type: "array",
|
|
587
|
-
items:
|
|
587
|
+
items: Ea
|
|
588
588
|
}
|
|
589
589
|
},
|
|
590
590
|
chart_dataset_colors: Dn,
|
|
@@ -594,7 +594,7 @@ const ts = [
|
|
|
594
594
|
},
|
|
595
595
|
required: ["type"],
|
|
596
596
|
additionalProperties: !1
|
|
597
|
-
},
|
|
597
|
+
}, va = {
|
|
598
598
|
type: "object",
|
|
599
599
|
properties: {
|
|
600
600
|
type: {
|
|
@@ -617,7 +617,7 @@ const ts = [
|
|
|
617
617
|
},
|
|
618
618
|
required: ["type"],
|
|
619
619
|
additionalProperties: !1
|
|
620
|
-
},
|
|
620
|
+
}, Ia = {
|
|
621
621
|
type: "object",
|
|
622
622
|
properties: {
|
|
623
623
|
type: {
|
|
@@ -629,7 +629,7 @@ const ts = [
|
|
|
629
629
|
},
|
|
630
630
|
required: ["type"],
|
|
631
631
|
additionalProperties: !1
|
|
632
|
-
},
|
|
632
|
+
}, Ra = {
|
|
633
633
|
type: "object",
|
|
634
634
|
properties: {
|
|
635
635
|
chart_title: q,
|
|
@@ -644,11 +644,11 @@ const ts = [
|
|
|
644
644
|
entity_link: {
|
|
645
645
|
type: "string"
|
|
646
646
|
},
|
|
647
|
-
entity_links:
|
|
647
|
+
entity_links: Ma
|
|
648
648
|
},
|
|
649
649
|
required: ["type"],
|
|
650
650
|
additionalProperties: !1
|
|
651
|
-
},
|
|
651
|
+
}, xa = {
|
|
652
652
|
type: "object",
|
|
653
653
|
properties: {
|
|
654
654
|
chart_title: q,
|
|
@@ -668,7 +668,7 @@ const ts = [
|
|
|
668
668
|
},
|
|
669
669
|
required: ["type"],
|
|
670
670
|
additionalProperties: !1
|
|
671
|
-
},
|
|
671
|
+
}, Pa = {
|
|
672
672
|
type: "object",
|
|
673
673
|
properties: {
|
|
674
674
|
type: {
|
|
@@ -682,7 +682,7 @@ const ts = [
|
|
|
682
682
|
},
|
|
683
683
|
required: ["type"],
|
|
684
684
|
additionalProperties: !1
|
|
685
|
-
},
|
|
685
|
+
}, Ca = {
|
|
686
686
|
type: "object",
|
|
687
687
|
properties: {
|
|
688
688
|
type: {
|
|
@@ -715,7 +715,7 @@ const ts = [
|
|
|
715
715
|
},
|
|
716
716
|
required: ["type"],
|
|
717
717
|
additionalProperties: !1
|
|
718
|
-
},
|
|
718
|
+
}, Aa = {
|
|
719
719
|
type: "object",
|
|
720
720
|
properties: {
|
|
721
721
|
tz: {
|
|
@@ -737,7 +737,7 @@ const ts = [
|
|
|
737
737
|
"time_range"
|
|
738
738
|
],
|
|
739
739
|
additionalProperties: !1
|
|
740
|
-
},
|
|
740
|
+
}, ka = {
|
|
741
741
|
type: "object",
|
|
742
742
|
description: "A duration representing an exact start and end time.",
|
|
743
743
|
properties: {
|
|
@@ -773,8 +773,8 @@ const ts = [
|
|
|
773
773
|
type: "object",
|
|
774
774
|
description: "The time range to query.",
|
|
775
775
|
anyOf: [
|
|
776
|
-
|
|
777
|
-
|
|
776
|
+
Aa,
|
|
777
|
+
ka
|
|
778
778
|
],
|
|
779
779
|
default: {
|
|
780
780
|
type: "relative",
|
|
@@ -818,7 +818,7 @@ const ts = [
|
|
|
818
818
|
},
|
|
819
819
|
operator: {
|
|
820
820
|
type: "string",
|
|
821
|
-
enum:
|
|
821
|
+
enum: fa
|
|
822
822
|
},
|
|
823
823
|
value: {
|
|
824
824
|
type: "array",
|
|
@@ -844,7 +844,7 @@ const ts = [
|
|
|
844
844
|
},
|
|
845
845
|
operator: {
|
|
846
846
|
type: "string",
|
|
847
|
-
enum:
|
|
847
|
+
enum: ha
|
|
848
848
|
}
|
|
849
849
|
},
|
|
850
850
|
required: [
|
|
@@ -855,7 +855,7 @@ const ts = [
|
|
|
855
855
|
}
|
|
856
856
|
]
|
|
857
857
|
}
|
|
858
|
-
}),
|
|
858
|
+
}), Mn = () => ({
|
|
859
859
|
type: "array",
|
|
860
860
|
description: "A list of filters to apply to the platform query",
|
|
861
861
|
items: {
|
|
@@ -903,7 +903,7 @@ const ts = [
|
|
|
903
903
|
}
|
|
904
904
|
]
|
|
905
905
|
}
|
|
906
|
-
}),
|
|
906
|
+
}), Ga = {
|
|
907
907
|
type: "object",
|
|
908
908
|
description: "A query to launch at the advanced explore API",
|
|
909
909
|
properties: {
|
|
@@ -913,14 +913,14 @@ const ts = [
|
|
|
913
913
|
"api_usage"
|
|
914
914
|
]
|
|
915
915
|
},
|
|
916
|
-
metrics: me(
|
|
916
|
+
metrics: me(gn),
|
|
917
917
|
dimensions: fe(rt),
|
|
918
918
|
filters: he(Ce),
|
|
919
919
|
...de
|
|
920
920
|
},
|
|
921
921
|
required: ["datasource"],
|
|
922
922
|
additionalProperties: !1
|
|
923
|
-
},
|
|
923
|
+
}, Ya = {
|
|
924
924
|
type: "object",
|
|
925
925
|
description: "A query to launch at the basic explore API",
|
|
926
926
|
properties: {
|
|
@@ -930,14 +930,14 @@ const ts = [
|
|
|
930
930
|
"basic"
|
|
931
931
|
]
|
|
932
932
|
},
|
|
933
|
-
metrics: me(
|
|
933
|
+
metrics: me(pn),
|
|
934
934
|
dimensions: fe(nt),
|
|
935
935
|
filters: he(Pe),
|
|
936
936
|
...de
|
|
937
937
|
},
|
|
938
938
|
required: ["datasource"],
|
|
939
939
|
additionalProperties: !1
|
|
940
|
-
},
|
|
940
|
+
}, Fa = {
|
|
941
941
|
type: "object",
|
|
942
942
|
description: "A query to launch at the AI explore API",
|
|
943
943
|
properties: {
|
|
@@ -947,14 +947,14 @@ const ts = [
|
|
|
947
947
|
"llm_usage"
|
|
948
948
|
]
|
|
949
949
|
},
|
|
950
|
-
metrics: me(
|
|
950
|
+
metrics: me(ya),
|
|
951
951
|
dimensions: fe(_n),
|
|
952
|
-
filters: he(
|
|
952
|
+
filters: he(Ae),
|
|
953
953
|
...de
|
|
954
954
|
},
|
|
955
955
|
required: ["datasource"],
|
|
956
956
|
additionalProperties: !1
|
|
957
|
-
},
|
|
957
|
+
}, Ha = {
|
|
958
958
|
type: "object",
|
|
959
959
|
description: "A query to launch at the Agentic explore API",
|
|
960
960
|
properties: {
|
|
@@ -964,14 +964,14 @@ const ts = [
|
|
|
964
964
|
"agentic_usage"
|
|
965
965
|
]
|
|
966
966
|
},
|
|
967
|
-
metrics: me(
|
|
967
|
+
metrics: me(Ta),
|
|
968
968
|
dimensions: fe(wn),
|
|
969
|
-
filters: he(
|
|
969
|
+
filters: he(ke),
|
|
970
970
|
...de
|
|
971
971
|
},
|
|
972
972
|
required: ["datasource"],
|
|
973
973
|
additionalProperties: !1
|
|
974
|
-
},
|
|
974
|
+
}, Ua = {
|
|
975
975
|
type: "object",
|
|
976
976
|
description: "A query to launch at the platform dashboard API",
|
|
977
977
|
properties: {
|
|
@@ -983,34 +983,72 @@ const ts = [
|
|
|
983
983
|
},
|
|
984
984
|
metrics: me(),
|
|
985
985
|
dimensions: fe(),
|
|
986
|
-
filters:
|
|
986
|
+
filters: Mn(),
|
|
987
987
|
...de
|
|
988
988
|
},
|
|
989
989
|
required: ["datasource"],
|
|
990
990
|
additionalProperties: !1
|
|
991
|
-
},
|
|
992
|
-
anyOf: [ka, Aa, Ya, Ga, Fa]
|
|
993
|
-
}, Ua = {
|
|
991
|
+
}, La = {
|
|
994
992
|
type: "object",
|
|
993
|
+
description: "A query to launch at the platform tabular explore API",
|
|
995
994
|
properties: {
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
Oa,
|
|
1001
|
-
Ea,
|
|
1002
|
-
Sa,
|
|
1003
|
-
va,
|
|
1004
|
-
Na,
|
|
1005
|
-
Ta,
|
|
1006
|
-
Ra,
|
|
1007
|
-
Ia
|
|
995
|
+
datasource: {
|
|
996
|
+
type: "string",
|
|
997
|
+
enum: [
|
|
998
|
+
"platform"
|
|
1008
999
|
]
|
|
1000
|
+
},
|
|
1001
|
+
entity: {
|
|
1002
|
+
type: "string"
|
|
1003
|
+
},
|
|
1004
|
+
columns: {
|
|
1005
|
+
type: "array",
|
|
1006
|
+
minItems: 1,
|
|
1007
|
+
items: {
|
|
1008
|
+
type: "string"
|
|
1009
|
+
}
|
|
1010
|
+
},
|
|
1011
|
+
filters: Mn(),
|
|
1012
|
+
cursor: {
|
|
1013
|
+
type: "string"
|
|
1014
|
+
},
|
|
1015
|
+
page_size: {
|
|
1016
|
+
type: "number"
|
|
1009
1017
|
}
|
|
1010
1018
|
},
|
|
1019
|
+
required: ["datasource"],
|
|
1020
|
+
additionalProperties: !1
|
|
1021
|
+
}, qa = {
|
|
1022
|
+
anyOf: [Ga, Ya, Fa, Ha, Ua]
|
|
1023
|
+
}, Sn = {
|
|
1024
|
+
anyOf: [
|
|
1025
|
+
Oa,
|
|
1026
|
+
va,
|
|
1027
|
+
Ia,
|
|
1028
|
+
Na,
|
|
1029
|
+
xa,
|
|
1030
|
+
Ra,
|
|
1031
|
+
Sa,
|
|
1032
|
+
Pa,
|
|
1033
|
+
Ca
|
|
1034
|
+
]
|
|
1035
|
+
}, Wa = {
|
|
1036
|
+
type: "object",
|
|
1037
|
+
properties: {
|
|
1038
|
+
query: qa,
|
|
1039
|
+
chart: Sn
|
|
1040
|
+
},
|
|
1011
1041
|
required: ["query", "chart"],
|
|
1012
1042
|
additionalProperties: !1
|
|
1013
|
-
},
|
|
1043
|
+
}, ja = {
|
|
1044
|
+
type: "object",
|
|
1045
|
+
properties: {
|
|
1046
|
+
query: La,
|
|
1047
|
+
chart: Sn
|
|
1048
|
+
},
|
|
1049
|
+
required: ["query", "chart"],
|
|
1050
|
+
additionalProperties: !1
|
|
1051
|
+
}, On = {
|
|
1014
1052
|
type: "object",
|
|
1015
1053
|
properties: {
|
|
1016
1054
|
position: {
|
|
@@ -1047,15 +1085,15 @@ const ts = [
|
|
|
1047
1085
|
},
|
|
1048
1086
|
required: ["position", "size"],
|
|
1049
1087
|
additionalProperties: !1
|
|
1050
|
-
},
|
|
1088
|
+
}, Va = {
|
|
1051
1089
|
type: "object",
|
|
1052
1090
|
properties: {
|
|
1053
1091
|
type: {
|
|
1054
1092
|
type: "string",
|
|
1055
1093
|
enum: ["chart"]
|
|
1056
1094
|
},
|
|
1057
|
-
definition:
|
|
1058
|
-
layout:
|
|
1095
|
+
definition: Wa,
|
|
1096
|
+
layout: On,
|
|
1059
1097
|
id: {
|
|
1060
1098
|
type: "string",
|
|
1061
1099
|
description: "Unique identifier for the tile. If not provided, one will be generated."
|
|
@@ -1063,12 +1101,33 @@ const ts = [
|
|
|
1063
1101
|
},
|
|
1064
1102
|
required: ["type", "definition", "layout"],
|
|
1065
1103
|
additionalProperties: !1
|
|
1066
|
-
},
|
|
1104
|
+
}, $a = {
|
|
1105
|
+
type: "object",
|
|
1106
|
+
properties: {
|
|
1107
|
+
type: {
|
|
1108
|
+
type: "string",
|
|
1109
|
+
enum: ["table"]
|
|
1110
|
+
},
|
|
1111
|
+
definition: ja,
|
|
1112
|
+
layout: On,
|
|
1113
|
+
id: {
|
|
1114
|
+
type: "string",
|
|
1115
|
+
description: "Unique identifier for the tile. If not provided, one will be generated."
|
|
1116
|
+
}
|
|
1117
|
+
},
|
|
1118
|
+
required: ["type", "definition", "layout"],
|
|
1119
|
+
additionalProperties: !1
|
|
1120
|
+
}, za = {
|
|
1121
|
+
anyOf: [
|
|
1122
|
+
Va,
|
|
1123
|
+
$a
|
|
1124
|
+
]
|
|
1125
|
+
}, _s = {
|
|
1067
1126
|
type: "object",
|
|
1068
1127
|
properties: {
|
|
1069
1128
|
tiles: {
|
|
1070
1129
|
type: "array",
|
|
1071
|
-
items:
|
|
1130
|
+
items: za
|
|
1072
1131
|
},
|
|
1073
1132
|
tile_height: {
|
|
1074
1133
|
type: "number",
|
|
@@ -1082,8 +1141,8 @@ const ts = [
|
|
|
1082
1141
|
.../* @__PURE__ */ new Set([
|
|
1083
1142
|
...Ce,
|
|
1084
1143
|
...Pe,
|
|
1085
|
-
...
|
|
1086
|
-
...
|
|
1144
|
+
...Ae,
|
|
1145
|
+
...ke
|
|
1087
1146
|
])
|
|
1088
1147
|
]),
|
|
1089
1148
|
template_id: {
|
|
@@ -1093,10 +1152,10 @@ const ts = [
|
|
|
1093
1152
|
},
|
|
1094
1153
|
required: ["tiles"],
|
|
1095
1154
|
additionalProperties: !1
|
|
1096
|
-
},
|
|
1155
|
+
}, ws = (e) => {
|
|
1097
1156
|
const t = [];
|
|
1098
|
-
return Pe.includes(e) && t.push("basic"), Ce.includes(e) && t.push("api_usage"),
|
|
1099
|
-
},
|
|
1157
|
+
return Pe.includes(e) && t.push("basic"), Ce.includes(e) && t.push("api_usage"), Ae.includes(e) && t.push("llm_usage"), ke.includes(e) && t.push("agentic_usage"), (ga.includes(e) || ba.includes(e)) && t.push("requests"), t;
|
|
1158
|
+
}, Ba = {
|
|
1100
1159
|
lessThanXSeconds: {
|
|
1101
1160
|
one: "less than a second",
|
|
1102
1161
|
other: "less than {{count}} seconds"
|
|
@@ -1158,9 +1217,9 @@ const ts = [
|
|
|
1158
1217
|
one: "almost 1 year",
|
|
1159
1218
|
other: "almost {{count}} years"
|
|
1160
1219
|
}
|
|
1161
|
-
},
|
|
1220
|
+
}, Qa = (e, t, n) => {
|
|
1162
1221
|
let r;
|
|
1163
|
-
const i =
|
|
1222
|
+
const i = Ba[e];
|
|
1164
1223
|
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;
|
|
1165
1224
|
};
|
|
1166
1225
|
function Be(e) {
|
|
@@ -1169,42 +1228,42 @@ function Be(e) {
|
|
|
1169
1228
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
1170
1229
|
};
|
|
1171
1230
|
}
|
|
1172
|
-
const
|
|
1231
|
+
const Za = {
|
|
1173
1232
|
full: "EEEE, MMMM do, y",
|
|
1174
1233
|
long: "MMMM do, y",
|
|
1175
1234
|
medium: "MMM d, y",
|
|
1176
1235
|
short: "MM/dd/yyyy"
|
|
1177
|
-
},
|
|
1236
|
+
}, Xa = {
|
|
1178
1237
|
full: "h:mm:ss a zzzz",
|
|
1179
1238
|
long: "h:mm:ss a z",
|
|
1180
1239
|
medium: "h:mm:ss a",
|
|
1181
1240
|
short: "h:mm a"
|
|
1182
|
-
},
|
|
1241
|
+
}, Ka = {
|
|
1183
1242
|
full: "{{date}} 'at' {{time}}",
|
|
1184
1243
|
long: "{{date}} 'at' {{time}}",
|
|
1185
1244
|
medium: "{{date}}, {{time}}",
|
|
1186
1245
|
short: "{{date}}, {{time}}"
|
|
1187
|
-
},
|
|
1246
|
+
}, Ja = {
|
|
1188
1247
|
date: Be({
|
|
1189
|
-
formats:
|
|
1248
|
+
formats: Za,
|
|
1190
1249
|
defaultWidth: "full"
|
|
1191
1250
|
}),
|
|
1192
1251
|
time: Be({
|
|
1193
|
-
formats:
|
|
1252
|
+
formats: Xa,
|
|
1194
1253
|
defaultWidth: "full"
|
|
1195
1254
|
}),
|
|
1196
1255
|
dateTime: Be({
|
|
1197
|
-
formats:
|
|
1256
|
+
formats: Ka,
|
|
1198
1257
|
defaultWidth: "full"
|
|
1199
1258
|
})
|
|
1200
|
-
},
|
|
1259
|
+
}, ei = {
|
|
1201
1260
|
lastWeek: "'last' eeee 'at' p",
|
|
1202
1261
|
yesterday: "'yesterday at' p",
|
|
1203
1262
|
today: "'today at' p",
|
|
1204
1263
|
tomorrow: "'tomorrow at' p",
|
|
1205
1264
|
nextWeek: "eeee 'at' p",
|
|
1206
1265
|
other: "P"
|
|
1207
|
-
},
|
|
1266
|
+
}, ti = (e, t, n, r) => ei[e];
|
|
1208
1267
|
function se(e) {
|
|
1209
1268
|
return (t, n) => {
|
|
1210
1269
|
const r = n != null && n.context ? String(n.context) : "standalone";
|
|
@@ -1220,15 +1279,15 @@ function se(e) {
|
|
|
1220
1279
|
return i[o];
|
|
1221
1280
|
};
|
|
1222
1281
|
}
|
|
1223
|
-
const
|
|
1282
|
+
const ni = {
|
|
1224
1283
|
narrow: ["B", "A"],
|
|
1225
1284
|
abbreviated: ["BC", "AD"],
|
|
1226
1285
|
wide: ["Before Christ", "Anno Domini"]
|
|
1227
|
-
},
|
|
1286
|
+
}, ri = {
|
|
1228
1287
|
narrow: ["1", "2", "3", "4"],
|
|
1229
1288
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
1230
1289
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
1231
|
-
},
|
|
1290
|
+
}, ai = {
|
|
1232
1291
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
1233
1292
|
abbreviated: [
|
|
1234
1293
|
"Jan",
|
|
@@ -1258,7 +1317,7 @@ const Xa = {
|
|
|
1258
1317
|
"November",
|
|
1259
1318
|
"December"
|
|
1260
1319
|
]
|
|
1261
|
-
},
|
|
1320
|
+
}, ii = {
|
|
1262
1321
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
1263
1322
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
1264
1323
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -1271,7 +1330,7 @@ const Xa = {
|
|
|
1271
1330
|
"Friday",
|
|
1272
1331
|
"Saturday"
|
|
1273
1332
|
]
|
|
1274
|
-
},
|
|
1333
|
+
}, oi = {
|
|
1275
1334
|
narrow: {
|
|
1276
1335
|
am: "a",
|
|
1277
1336
|
pm: "p",
|
|
@@ -1302,7 +1361,7 @@ const Xa = {
|
|
|
1302
1361
|
evening: "evening",
|
|
1303
1362
|
night: "night"
|
|
1304
1363
|
}
|
|
1305
|
-
},
|
|
1364
|
+
}, si = {
|
|
1306
1365
|
narrow: {
|
|
1307
1366
|
am: "a",
|
|
1308
1367
|
pm: "p",
|
|
@@ -1333,7 +1392,7 @@ const Xa = {
|
|
|
1333
1392
|
evening: "in the evening",
|
|
1334
1393
|
night: "at night"
|
|
1335
1394
|
}
|
|
1336
|
-
},
|
|
1395
|
+
}, ui = (e, t) => {
|
|
1337
1396
|
const n = Number(e), r = n % 100;
|
|
1338
1397
|
if (r > 20 || r < 10)
|
|
1339
1398
|
switch (r % 10) {
|
|
@@ -1345,29 +1404,29 @@ const Xa = {
|
|
|
1345
1404
|
return n + "rd";
|
|
1346
1405
|
}
|
|
1347
1406
|
return n + "th";
|
|
1348
|
-
},
|
|
1349
|
-
ordinalNumber:
|
|
1407
|
+
}, ci = {
|
|
1408
|
+
ordinalNumber: ui,
|
|
1350
1409
|
era: se({
|
|
1351
|
-
values:
|
|
1410
|
+
values: ni,
|
|
1352
1411
|
defaultWidth: "wide"
|
|
1353
1412
|
}),
|
|
1354
1413
|
quarter: se({
|
|
1355
|
-
values:
|
|
1414
|
+
values: ri,
|
|
1356
1415
|
defaultWidth: "wide",
|
|
1357
1416
|
argumentCallback: (e) => e - 1
|
|
1358
1417
|
}),
|
|
1359
1418
|
month: se({
|
|
1360
|
-
values:
|
|
1419
|
+
values: ai,
|
|
1361
1420
|
defaultWidth: "wide"
|
|
1362
1421
|
}),
|
|
1363
1422
|
day: se({
|
|
1364
|
-
values:
|
|
1423
|
+
values: ii,
|
|
1365
1424
|
defaultWidth: "wide"
|
|
1366
1425
|
}),
|
|
1367
1426
|
dayPeriod: se({
|
|
1368
|
-
values:
|
|
1427
|
+
values: oi,
|
|
1369
1428
|
defaultWidth: "wide",
|
|
1370
|
-
formattingValues:
|
|
1429
|
+
formattingValues: si,
|
|
1371
1430
|
defaultFormattingWidth: "wide"
|
|
1372
1431
|
})
|
|
1373
1432
|
};
|
|
@@ -1376,30 +1435,30 @@ function ue(e) {
|
|
|
1376
1435
|
const r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], o = t.match(i);
|
|
1377
1436
|
if (!o)
|
|
1378
1437
|
return null;
|
|
1379
|
-
const c = o[0], l = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], f = Array.isArray(l) ?
|
|
1438
|
+
const c = o[0], l = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], f = Array.isArray(l) ? di(l, (g) => g.test(c)) : (
|
|
1380
1439
|
// [TODO] -- I challenge you to fix the type
|
|
1381
|
-
|
|
1440
|
+
li(l, (g) => g.test(c))
|
|
1382
1441
|
);
|
|
1383
1442
|
let h;
|
|
1384
1443
|
h = e.valueCallback ? e.valueCallback(f) : f, h = n.valueCallback ? (
|
|
1385
1444
|
// [TODO] -- I challenge you to fix the type
|
|
1386
1445
|
n.valueCallback(h)
|
|
1387
1446
|
) : h;
|
|
1388
|
-
const
|
|
1389
|
-
return { value: h, rest:
|
|
1447
|
+
const p = t.slice(c.length);
|
|
1448
|
+
return { value: h, rest: p };
|
|
1390
1449
|
};
|
|
1391
1450
|
}
|
|
1392
|
-
function
|
|
1451
|
+
function li(e, t) {
|
|
1393
1452
|
for (const n in e)
|
|
1394
1453
|
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
1395
1454
|
return n;
|
|
1396
1455
|
}
|
|
1397
|
-
function
|
|
1456
|
+
function di(e, t) {
|
|
1398
1457
|
for (let n = 0; n < e.length; n++)
|
|
1399
1458
|
if (t(e[n]))
|
|
1400
1459
|
return n;
|
|
1401
1460
|
}
|
|
1402
|
-
function
|
|
1461
|
+
function mi(e) {
|
|
1403
1462
|
return (t, n = {}) => {
|
|
1404
1463
|
const r = t.match(e.matchPattern);
|
|
1405
1464
|
if (!r) return null;
|
|
@@ -1411,23 +1470,23 @@ function si(e) {
|
|
|
1411
1470
|
return { value: c, rest: l };
|
|
1412
1471
|
};
|
|
1413
1472
|
}
|
|
1414
|
-
const
|
|
1473
|
+
const fi = /^(\d+)(th|st|nd|rd)?/i, hi = /\d+/i, yi = {
|
|
1415
1474
|
narrow: /^(b|a)/i,
|
|
1416
1475
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
1417
1476
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
1418
|
-
},
|
|
1477
|
+
}, pi = {
|
|
1419
1478
|
any: [/^b/i, /^(a|c)/i]
|
|
1420
|
-
},
|
|
1479
|
+
}, gi = {
|
|
1421
1480
|
narrow: /^[1234]/i,
|
|
1422
1481
|
abbreviated: /^q[1234]/i,
|
|
1423
1482
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
1424
|
-
},
|
|
1483
|
+
}, _i = {
|
|
1425
1484
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1426
|
-
},
|
|
1485
|
+
}, wi = {
|
|
1427
1486
|
narrow: /^[jfmasond]/i,
|
|
1428
1487
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
1429
1488
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
1430
|
-
},
|
|
1489
|
+
}, bi = {
|
|
1431
1490
|
narrow: [
|
|
1432
1491
|
/^j/i,
|
|
1433
1492
|
/^f/i,
|
|
@@ -1456,18 +1515,18 @@ const ui = /^(\d+)(th|st|nd|rd)?/i, ci = /\d+/i, li = {
|
|
|
1456
1515
|
/^n/i,
|
|
1457
1516
|
/^d/i
|
|
1458
1517
|
]
|
|
1459
|
-
},
|
|
1518
|
+
}, Ti = {
|
|
1460
1519
|
narrow: /^[smtwf]/i,
|
|
1461
1520
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
1462
1521
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
1463
1522
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
1464
|
-
},
|
|
1523
|
+
}, Di = {
|
|
1465
1524
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
1466
1525
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
1467
|
-
},
|
|
1526
|
+
}, Mi = {
|
|
1468
1527
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
1469
1528
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
1470
|
-
},
|
|
1529
|
+
}, Si = {
|
|
1471
1530
|
any: {
|
|
1472
1531
|
am: /^a/i,
|
|
1473
1532
|
pm: /^p/i,
|
|
@@ -1478,60 +1537,60 @@ const ui = /^(\d+)(th|st|nd|rd)?/i, ci = /\d+/i, li = {
|
|
|
1478
1537
|
evening: /evening/i,
|
|
1479
1538
|
night: /night/i
|
|
1480
1539
|
}
|
|
1481
|
-
},
|
|
1482
|
-
ordinalNumber:
|
|
1483
|
-
matchPattern:
|
|
1484
|
-
parsePattern:
|
|
1540
|
+
}, Oi = {
|
|
1541
|
+
ordinalNumber: mi({
|
|
1542
|
+
matchPattern: fi,
|
|
1543
|
+
parsePattern: hi,
|
|
1485
1544
|
valueCallback: (e) => parseInt(e, 10)
|
|
1486
1545
|
}),
|
|
1487
1546
|
era: ue({
|
|
1488
|
-
matchPatterns:
|
|
1547
|
+
matchPatterns: yi,
|
|
1489
1548
|
defaultMatchWidth: "wide",
|
|
1490
|
-
parsePatterns:
|
|
1549
|
+
parsePatterns: pi,
|
|
1491
1550
|
defaultParseWidth: "any"
|
|
1492
1551
|
}),
|
|
1493
1552
|
quarter: ue({
|
|
1494
|
-
matchPatterns:
|
|
1553
|
+
matchPatterns: gi,
|
|
1495
1554
|
defaultMatchWidth: "wide",
|
|
1496
|
-
parsePatterns:
|
|
1555
|
+
parsePatterns: _i,
|
|
1497
1556
|
defaultParseWidth: "any",
|
|
1498
1557
|
valueCallback: (e) => e + 1
|
|
1499
1558
|
}),
|
|
1500
1559
|
month: ue({
|
|
1501
|
-
matchPatterns:
|
|
1560
|
+
matchPatterns: wi,
|
|
1502
1561
|
defaultMatchWidth: "wide",
|
|
1503
|
-
parsePatterns:
|
|
1562
|
+
parsePatterns: bi,
|
|
1504
1563
|
defaultParseWidth: "any"
|
|
1505
1564
|
}),
|
|
1506
1565
|
day: ue({
|
|
1507
|
-
matchPatterns:
|
|
1566
|
+
matchPatterns: Ti,
|
|
1508
1567
|
defaultMatchWidth: "wide",
|
|
1509
|
-
parsePatterns:
|
|
1568
|
+
parsePatterns: Di,
|
|
1510
1569
|
defaultParseWidth: "any"
|
|
1511
1570
|
}),
|
|
1512
1571
|
dayPeriod: ue({
|
|
1513
|
-
matchPatterns:
|
|
1572
|
+
matchPatterns: Mi,
|
|
1514
1573
|
defaultMatchWidth: "any",
|
|
1515
|
-
parsePatterns:
|
|
1574
|
+
parsePatterns: Si,
|
|
1516
1575
|
defaultParseWidth: "any"
|
|
1517
1576
|
})
|
|
1518
|
-
},
|
|
1577
|
+
}, Ei = {
|
|
1519
1578
|
code: "en-US",
|
|
1520
|
-
formatDistance:
|
|
1521
|
-
formatLong:
|
|
1522
|
-
formatRelative:
|
|
1523
|
-
localize:
|
|
1524
|
-
match:
|
|
1579
|
+
formatDistance: Qa,
|
|
1580
|
+
formatLong: Ja,
|
|
1581
|
+
formatRelative: ti,
|
|
1582
|
+
localize: ci,
|
|
1583
|
+
match: Oi,
|
|
1525
1584
|
options: {
|
|
1526
1585
|
weekStartsOn: 0,
|
|
1527
1586
|
firstWeekContainsDate: 1
|
|
1528
1587
|
}
|
|
1529
1588
|
};
|
|
1530
|
-
let
|
|
1589
|
+
let Ni = {};
|
|
1531
1590
|
function ye() {
|
|
1532
|
-
return
|
|
1591
|
+
return Ni;
|
|
1533
1592
|
}
|
|
1534
|
-
const
|
|
1593
|
+
const En = 6048e5, vi = 864e5, Ii = 60, Ri = 3600, Lt = Symbol.for("constructDateFrom");
|
|
1535
1594
|
function C(e, t) {
|
|
1536
1595
|
return typeof e == "function" ? e(t) : e && typeof e == "object" && Lt in e ? e[Lt](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
1537
1596
|
}
|
|
@@ -1552,7 +1611,7 @@ function qt(e) {
|
|
|
1552
1611
|
);
|
|
1553
1612
|
return n.setUTCFullYear(t.getFullYear()), +e - +n;
|
|
1554
1613
|
}
|
|
1555
|
-
function
|
|
1614
|
+
function xi(e, ...t) {
|
|
1556
1615
|
const n = C.bind(
|
|
1557
1616
|
null,
|
|
1558
1617
|
t.find((r) => typeof r == "object")
|
|
@@ -1563,31 +1622,31 @@ function te(e, t) {
|
|
|
1563
1622
|
const n = N(e, t == null ? void 0 : t.in);
|
|
1564
1623
|
return n.setHours(0, 0, 0, 0), n;
|
|
1565
1624
|
}
|
|
1566
|
-
function
|
|
1567
|
-
const [r, i] =
|
|
1625
|
+
function Pi(e, t, n) {
|
|
1626
|
+
const [r, i] = xi(
|
|
1568
1627
|
n == null ? void 0 : n.in,
|
|
1569
1628
|
e,
|
|
1570
1629
|
t
|
|
1571
1630
|
), o = te(r), c = te(i), l = +o - qt(o), f = +c - qt(c);
|
|
1572
|
-
return Math.round((l - f) /
|
|
1631
|
+
return Math.round((l - f) / vi);
|
|
1573
1632
|
}
|
|
1574
|
-
function
|
|
1633
|
+
function Ci(e, t) {
|
|
1575
1634
|
const n = N(e, t == null ? void 0 : t.in);
|
|
1576
1635
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
1577
1636
|
}
|
|
1578
|
-
function
|
|
1637
|
+
function Ai(e, t) {
|
|
1579
1638
|
const n = N(e, t == null ? void 0 : t.in);
|
|
1580
|
-
return
|
|
1639
|
+
return Pi(n, Ci(n)) + 1;
|
|
1581
1640
|
}
|
|
1582
1641
|
function H(e, t) {
|
|
1583
|
-
var l, f, h,
|
|
1584
|
-
const n = ye(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((f = (l = t == null ? void 0 : t.locale) == null ? void 0 : l.options) == null ? void 0 : f.weekStartsOn) ?? n.weekStartsOn ?? ((
|
|
1642
|
+
var l, f, h, p;
|
|
1643
|
+
const n = ye(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((f = (l = t == null ? void 0 : t.locale) == null ? void 0 : l.options) == null ? void 0 : f.weekStartsOn) ?? n.weekStartsOn ?? ((p = (h = n.locale) == null ? void 0 : h.options) == null ? void 0 : p.weekStartsOn) ?? 0, i = N(e, t == null ? void 0 : t.in), o = i.getDay(), c = (o < r ? 7 : 0) + o - r;
|
|
1585
1644
|
return i.setDate(i.getDate() - c), i.setHours(0, 0, 0, 0), i;
|
|
1586
1645
|
}
|
|
1587
1646
|
function Ne(e, t) {
|
|
1588
1647
|
return H(e, { ...t, weekStartsOn: 1 });
|
|
1589
1648
|
}
|
|
1590
|
-
function
|
|
1649
|
+
function Nn(e, t) {
|
|
1591
1650
|
const n = N(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = C(n, 0);
|
|
1592
1651
|
i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
1593
1652
|
const o = Ne(i), c = C(n, 0);
|
|
@@ -1595,31 +1654,31 @@ function Sn(e, t) {
|
|
|
1595
1654
|
const l = Ne(c);
|
|
1596
1655
|
return n.getTime() >= o.getTime() ? r + 1 : n.getTime() >= l.getTime() ? r : r - 1;
|
|
1597
1656
|
}
|
|
1598
|
-
function
|
|
1599
|
-
const n =
|
|
1657
|
+
function ki(e, t) {
|
|
1658
|
+
const n = Nn(e, t), r = C(e, 0);
|
|
1600
1659
|
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), Ne(r);
|
|
1601
1660
|
}
|
|
1602
|
-
function
|
|
1603
|
-
const n = N(e, t == null ? void 0 : t.in), r = +Ne(n) - +
|
|
1604
|
-
return Math.round(r /
|
|
1661
|
+
function Gi(e, t) {
|
|
1662
|
+
const n = N(e, t == null ? void 0 : t.in), r = +Ne(n) - +ki(n);
|
|
1663
|
+
return Math.round(r / En) + 1;
|
|
1605
1664
|
}
|
|
1606
|
-
function
|
|
1607
|
-
var
|
|
1608
|
-
const n = N(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = ye(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((
|
|
1665
|
+
function vn(e, t) {
|
|
1666
|
+
var p, g, y, S;
|
|
1667
|
+
const n = N(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = ye(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((g = (p = t == null ? void 0 : t.locale) == null ? void 0 : p.options) == null ? void 0 : g.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((S = (y = i.locale) == null ? void 0 : y.options) == null ? void 0 : S.firstWeekContainsDate) ?? 1, c = C((t == null ? void 0 : t.in) || e, 0);
|
|
1609
1668
|
c.setFullYear(r + 1, 0, o), c.setHours(0, 0, 0, 0);
|
|
1610
1669
|
const l = H(c, t), f = C((t == null ? void 0 : t.in) || e, 0);
|
|
1611
1670
|
f.setFullYear(r, 0, o), f.setHours(0, 0, 0, 0);
|
|
1612
1671
|
const h = H(f, t);
|
|
1613
1672
|
return +n >= +l ? r + 1 : +n >= +h ? r : r - 1;
|
|
1614
1673
|
}
|
|
1615
|
-
function
|
|
1616
|
-
var l, f, h,
|
|
1617
|
-
const n = ye(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (l = t == null ? void 0 : t.locale) == null ? void 0 : l.options) == null ? void 0 : f.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((
|
|
1674
|
+
function Yi(e, t) {
|
|
1675
|
+
var l, f, h, p;
|
|
1676
|
+
const n = ye(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (l = t == null ? void 0 : t.locale) == null ? void 0 : l.options) == null ? void 0 : f.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((p = (h = n.locale) == null ? void 0 : h.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, i = vn(e, t), o = C((t == null ? void 0 : t.in) || e, 0);
|
|
1618
1677
|
return o.setFullYear(i, 0, r), o.setHours(0, 0, 0, 0), H(o, t);
|
|
1619
1678
|
}
|
|
1620
|
-
function
|
|
1621
|
-
const n = N(e, t == null ? void 0 : t.in), r = +H(n, t) - +
|
|
1622
|
-
return Math.round(r /
|
|
1679
|
+
function Fi(e, t) {
|
|
1680
|
+
const n = N(e, t == null ? void 0 : t.in), r = +H(n, t) - +Yi(n, t);
|
|
1681
|
+
return Math.round(r / En) + 1;
|
|
1623
1682
|
}
|
|
1624
1683
|
function w(e, t) {
|
|
1625
1684
|
const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
|
|
@@ -1712,7 +1771,7 @@ const L = {
|
|
|
1712
1771
|
},
|
|
1713
1772
|
// Local week-numbering year
|
|
1714
1773
|
Y: function(e, t, n, r) {
|
|
1715
|
-
const i =
|
|
1774
|
+
const i = vn(e, r), o = i > 0 ? i : 1 - i;
|
|
1716
1775
|
if (t === "YY") {
|
|
1717
1776
|
const c = o % 100;
|
|
1718
1777
|
return w(c, 2);
|
|
@@ -1721,7 +1780,7 @@ const L = {
|
|
|
1721
1780
|
},
|
|
1722
1781
|
// ISO week-numbering year
|
|
1723
1782
|
R: function(e, t) {
|
|
1724
|
-
const n =
|
|
1783
|
+
const n = Nn(e);
|
|
1725
1784
|
return w(n, t.length);
|
|
1726
1785
|
},
|
|
1727
1786
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -1844,12 +1903,12 @@ const L = {
|
|
|
1844
1903
|
},
|
|
1845
1904
|
// Local week of year
|
|
1846
1905
|
w: function(e, t, n, r) {
|
|
1847
|
-
const i =
|
|
1906
|
+
const i = Fi(e, r);
|
|
1848
1907
|
return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : w(i, t.length);
|
|
1849
1908
|
},
|
|
1850
1909
|
// ISO week of year
|
|
1851
1910
|
I: function(e, t, n) {
|
|
1852
|
-
const r =
|
|
1911
|
+
const r = Gi(e);
|
|
1853
1912
|
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : w(r, t.length);
|
|
1854
1913
|
},
|
|
1855
1914
|
// Day of the month
|
|
@@ -1858,7 +1917,7 @@ const L = {
|
|
|
1858
1917
|
},
|
|
1859
1918
|
// Day of year
|
|
1860
1919
|
D: function(e, t, n) {
|
|
1861
|
-
const r =
|
|
1920
|
+
const r = Ai(e);
|
|
1862
1921
|
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : w(r, t.length);
|
|
1863
1922
|
},
|
|
1864
1923
|
// Day of week
|
|
@@ -2196,7 +2255,7 @@ const $t = (e, t) => {
|
|
|
2196
2255
|
default:
|
|
2197
2256
|
return t.date({ width: "full" });
|
|
2198
2257
|
}
|
|
2199
|
-
},
|
|
2258
|
+
}, In = (e, t) => {
|
|
2200
2259
|
switch (e) {
|
|
2201
2260
|
case "p":
|
|
2202
2261
|
return t.time({ width: "short" });
|
|
@@ -2208,7 +2267,7 @@ const $t = (e, t) => {
|
|
|
2208
2267
|
default:
|
|
2209
2268
|
return t.time({ width: "full" });
|
|
2210
2269
|
}
|
|
2211
|
-
},
|
|
2270
|
+
}, Hi = (e, t) => {
|
|
2212
2271
|
const n = e.match(/(P+)(p+)?/) || [], r = n[1], i = n[2];
|
|
2213
2272
|
if (!i)
|
|
2214
2273
|
return $t(e, t);
|
|
@@ -2228,53 +2287,53 @@ const $t = (e, t) => {
|
|
|
2228
2287
|
o = t.dateTime({ width: "full" });
|
|
2229
2288
|
break;
|
|
2230
2289
|
}
|
|
2231
|
-
return o.replace("{{date}}", $t(r, t)).replace("{{time}}",
|
|
2232
|
-
},
|
|
2233
|
-
p:
|
|
2234
|
-
P:
|
|
2235
|
-
},
|
|
2236
|
-
function
|
|
2237
|
-
return
|
|
2290
|
+
return o.replace("{{date}}", $t(r, t)).replace("{{time}}", In(i, t));
|
|
2291
|
+
}, Ui = {
|
|
2292
|
+
p: In,
|
|
2293
|
+
P: Hi
|
|
2294
|
+
}, Li = /^D+$/, qi = /^Y+$/, Wi = ["D", "DD", "YY", "YYYY"];
|
|
2295
|
+
function ji(e) {
|
|
2296
|
+
return Li.test(e);
|
|
2238
2297
|
}
|
|
2239
|
-
function
|
|
2240
|
-
return
|
|
2298
|
+
function Vi(e) {
|
|
2299
|
+
return qi.test(e);
|
|
2241
2300
|
}
|
|
2242
|
-
function
|
|
2243
|
-
const r =
|
|
2244
|
-
if (console.warn(r),
|
|
2301
|
+
function $i(e, t, n) {
|
|
2302
|
+
const r = zi(e, t, n);
|
|
2303
|
+
if (console.warn(r), Wi.includes(e)) throw new RangeError(r);
|
|
2245
2304
|
}
|
|
2246
|
-
function
|
|
2305
|
+
function zi(e, t, n) {
|
|
2247
2306
|
const r = e[0] === "Y" ? "years" : "days of the month";
|
|
2248
2307
|
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`;
|
|
2249
2308
|
}
|
|
2250
|
-
function
|
|
2309
|
+
function Bi(e) {
|
|
2251
2310
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
2252
2311
|
}
|
|
2253
|
-
function
|
|
2254
|
-
return !(!
|
|
2312
|
+
function Qi(e) {
|
|
2313
|
+
return !(!Bi(e) && typeof e != "number" || isNaN(+N(e)));
|
|
2255
2314
|
}
|
|
2256
|
-
const
|
|
2257
|
-
function
|
|
2258
|
-
var
|
|
2259
|
-
const r = ye(), i = (n == null ? void 0 : n.locale) ?? r.locale ??
|
|
2260
|
-
if (!
|
|
2315
|
+
const Zi = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Xi = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ki = /^'([^]*?)'?$/, Ji = /''/g, eo = /[a-zA-Z]/;
|
|
2316
|
+
function to(e, t, n) {
|
|
2317
|
+
var p, g, y, S, _, b, k, P;
|
|
2318
|
+
const r = ye(), i = (n == null ? void 0 : n.locale) ?? r.locale ?? Ei, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((g = (p = n == null ? void 0 : n.locale) == null ? void 0 : p.options) == null ? void 0 : g.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((S = (y = r.locale) == null ? void 0 : y.options) == null ? void 0 : S.firstWeekContainsDate) ?? 1, c = (n == null ? void 0 : n.weekStartsOn) ?? ((b = (_ = n == null ? void 0 : n.locale) == null ? void 0 : _.options) == null ? void 0 : b.weekStartsOn) ?? r.weekStartsOn ?? ((P = (k = r.locale) == null ? void 0 : k.options) == null ? void 0 : P.weekStartsOn) ?? 0, l = N(e, n == null ? void 0 : n.in);
|
|
2319
|
+
if (!Qi(l))
|
|
2261
2320
|
throw new RangeError("Invalid time value");
|
|
2262
|
-
let f = t.match(
|
|
2321
|
+
let f = t.match(Xi).map((D) => {
|
|
2263
2322
|
const M = D[0];
|
|
2264
2323
|
if (M === "p" || M === "P") {
|
|
2265
|
-
const W =
|
|
2324
|
+
const W = Ui[M];
|
|
2266
2325
|
return W(D, i.formatLong);
|
|
2267
2326
|
}
|
|
2268
2327
|
return D;
|
|
2269
|
-
}).join("").match(
|
|
2328
|
+
}).join("").match(Zi).map((D) => {
|
|
2270
2329
|
if (D === "''")
|
|
2271
2330
|
return { isToken: !1, value: "'" };
|
|
2272
2331
|
const M = D[0];
|
|
2273
2332
|
if (M === "'")
|
|
2274
|
-
return { isToken: !1, value:
|
|
2333
|
+
return { isToken: !1, value: no(D) };
|
|
2275
2334
|
if (Wt[M])
|
|
2276
2335
|
return { isToken: !0, value: D };
|
|
2277
|
-
if (M.match(
|
|
2336
|
+
if (M.match(eo))
|
|
2278
2337
|
throw new RangeError(
|
|
2279
2338
|
"Format string contains an unescaped latin alphabet character `" + M + "`"
|
|
2280
2339
|
);
|
|
@@ -2289,20 +2348,20 @@ function Zi(e, t, n) {
|
|
|
2289
2348
|
return f.map((D) => {
|
|
2290
2349
|
if (!D.isToken) return D.value;
|
|
2291
2350
|
const M = D.value;
|
|
2292
|
-
(!(n != null && n.useAdditionalWeekYearTokens) &&
|
|
2351
|
+
(!(n != null && n.useAdditionalWeekYearTokens) && Vi(M) || !(n != null && n.useAdditionalDayOfYearTokens) && ji(M)) && $i(M, t, String(e));
|
|
2293
2352
|
const W = Wt[M[0]];
|
|
2294
2353
|
return W(l, M, i.localize, h);
|
|
2295
2354
|
}).join("");
|
|
2296
2355
|
}
|
|
2297
|
-
function
|
|
2298
|
-
const t = e.match(
|
|
2299
|
-
return t ? t[1].replace(
|
|
2356
|
+
function no(e) {
|
|
2357
|
+
const t = e.match(Ki);
|
|
2358
|
+
return t ? t[1].replace(Ji, "'") : e;
|
|
2300
2359
|
}
|
|
2301
2360
|
function Se(e, t, n) {
|
|
2302
2361
|
const r = N(e, n == null ? void 0 : n.in);
|
|
2303
2362
|
return isNaN(t) ? C(e, NaN) : (r.setDate(r.getDate() + t), r);
|
|
2304
2363
|
}
|
|
2305
|
-
function
|
|
2364
|
+
function Rn(e, t, n) {
|
|
2306
2365
|
const r = N(e, n == null ? void 0 : n.in);
|
|
2307
2366
|
if (isNaN(t)) return C(e, NaN);
|
|
2308
2367
|
if (!t)
|
|
@@ -2316,8 +2375,8 @@ function Nn(e, t, n) {
|
|
|
2316
2375
|
i
|
|
2317
2376
|
), r);
|
|
2318
2377
|
}
|
|
2319
|
-
function
|
|
2320
|
-
return
|
|
2378
|
+
function ro(e, t, n) {
|
|
2379
|
+
return Rn(e, t * 3, n);
|
|
2321
2380
|
}
|
|
2322
2381
|
function ne(e, t) {
|
|
2323
2382
|
const n = N(e, t == null ? void 0 : t.in), r = n.getMonth(), i = r - r % 3;
|
|
@@ -2327,11 +2386,11 @@ function re(e, t) {
|
|
|
2327
2386
|
const n = N(e, t == null ? void 0 : t.in);
|
|
2328
2387
|
return n.setDate(1), n.setHours(0, 0, 0, 0), n;
|
|
2329
2388
|
}
|
|
2330
|
-
function
|
|
2389
|
+
function ao(e, t) {
|
|
2331
2390
|
const n = N(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = n.getMonth(), o = C(n, 0);
|
|
2332
2391
|
return o.setFullYear(r, i + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
|
|
2333
2392
|
}
|
|
2334
|
-
function
|
|
2393
|
+
function io() {
|
|
2335
2394
|
return Object.assign({}, ye());
|
|
2336
2395
|
}
|
|
2337
2396
|
function zt(e) {
|
|
@@ -2341,43 +2400,43 @@ function Bt(e) {
|
|
|
2341
2400
|
return Math.trunc(+N(e) / 1e3);
|
|
2342
2401
|
}
|
|
2343
2402
|
function Qt(e) {
|
|
2344
|
-
return Math.trunc(e *
|
|
2403
|
+
return Math.trunc(e * Ri);
|
|
2345
2404
|
}
|
|
2346
|
-
function
|
|
2347
|
-
const t = e /
|
|
2405
|
+
function oo(e) {
|
|
2406
|
+
const t = e / Ii;
|
|
2348
2407
|
return Math.trunc(t);
|
|
2349
2408
|
}
|
|
2350
|
-
function
|
|
2351
|
-
return
|
|
2409
|
+
function xn(e, t, n) {
|
|
2410
|
+
return Rn(e, -1, n);
|
|
2352
2411
|
}
|
|
2353
|
-
function
|
|
2354
|
-
return
|
|
2412
|
+
function Pn(e, t, n) {
|
|
2413
|
+
return ro(e, -1, n);
|
|
2355
2414
|
}
|
|
2356
2415
|
function Zt(e, t, n) {
|
|
2357
|
-
const r =
|
|
2358
|
-
return "formatToParts" in i ?
|
|
2416
|
+
const r = io(), i = co(e, n.timeZone, n.locale ?? r.locale);
|
|
2417
|
+
return "formatToParts" in i ? so(i, t) : uo(i, t);
|
|
2359
2418
|
}
|
|
2360
|
-
function
|
|
2419
|
+
function so(e, t) {
|
|
2361
2420
|
const n = e.formatToParts(t);
|
|
2362
2421
|
for (let r = n.length - 1; r >= 0; --r)
|
|
2363
2422
|
if (n[r].type === "timeZoneName")
|
|
2364
2423
|
return n[r].value;
|
|
2365
2424
|
}
|
|
2366
|
-
function
|
|
2425
|
+
function uo(e, t) {
|
|
2367
2426
|
const n = e.format(t).replace(/\u200E/g, ""), r = / [\w-+ ]+$/.exec(n);
|
|
2368
2427
|
return r ? r[0].substr(1) : "";
|
|
2369
2428
|
}
|
|
2370
|
-
function
|
|
2429
|
+
function co(e, t, n) {
|
|
2371
2430
|
return new Intl.DateTimeFormat(n ? [n.code, "en-US"] : void 0, {
|
|
2372
2431
|
timeZone: t,
|
|
2373
2432
|
timeZoneName: e
|
|
2374
2433
|
});
|
|
2375
2434
|
}
|
|
2376
|
-
function
|
|
2377
|
-
const n =
|
|
2378
|
-
return "formatToParts" in n ?
|
|
2435
|
+
function lo(e, t) {
|
|
2436
|
+
const n = po(t);
|
|
2437
|
+
return "formatToParts" in n ? fo(n, e) : ho(n, e);
|
|
2379
2438
|
}
|
|
2380
|
-
const
|
|
2439
|
+
const mo = {
|
|
2381
2440
|
year: 0,
|
|
2382
2441
|
month: 1,
|
|
2383
2442
|
day: 2,
|
|
@@ -2385,11 +2444,11 @@ const oo = {
|
|
|
2385
2444
|
minute: 4,
|
|
2386
2445
|
second: 5
|
|
2387
2446
|
};
|
|
2388
|
-
function
|
|
2447
|
+
function fo(e, t) {
|
|
2389
2448
|
try {
|
|
2390
2449
|
const n = e.formatToParts(t), r = [];
|
|
2391
2450
|
for (let i = 0; i < n.length; i++) {
|
|
2392
|
-
const o =
|
|
2451
|
+
const o = mo[n[i].type];
|
|
2393
2452
|
o !== void 0 && (r[o] = parseInt(n[i].value, 10));
|
|
2394
2453
|
}
|
|
2395
2454
|
return r;
|
|
@@ -2399,7 +2458,7 @@ function so(e, t) {
|
|
|
2399
2458
|
throw n;
|
|
2400
2459
|
}
|
|
2401
2460
|
}
|
|
2402
|
-
function
|
|
2461
|
+
function ho(e, t) {
|
|
2403
2462
|
const n = e.format(t), r = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);
|
|
2404
2463
|
return [
|
|
2405
2464
|
parseInt(r[3], 10),
|
|
@@ -2419,9 +2478,9 @@ const Qe = {}, Xt = new Intl.DateTimeFormat("en-US", {
|
|
|
2419
2478
|
hour: "2-digit",
|
|
2420
2479
|
minute: "2-digit",
|
|
2421
2480
|
second: "2-digit"
|
|
2422
|
-
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")),
|
|
2423
|
-
function
|
|
2424
|
-
return Qe[e] || (Qe[e] =
|
|
2481
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), yo = Xt === "06/25/2014, 00:00:00" || Xt === "06/25/2014 00:00:00";
|
|
2482
|
+
function po(e) {
|
|
2483
|
+
return Qe[e] || (Qe[e] = yo ? new Intl.DateTimeFormat("en-US", {
|
|
2425
2484
|
hourCycle: "h23",
|
|
2426
2485
|
timeZone: e,
|
|
2427
2486
|
year: "numeric",
|
|
@@ -2445,12 +2504,12 @@ function at(e, t, n, r, i, o, c) {
|
|
|
2445
2504
|
const l = /* @__PURE__ */ new Date(0);
|
|
2446
2505
|
return l.setUTCFullYear(e, t, n), l.setUTCHours(r, i, o, c), l;
|
|
2447
2506
|
}
|
|
2448
|
-
const Kt = 36e5,
|
|
2507
|
+
const Kt = 36e5, go = 6e4, Ze = {
|
|
2449
2508
|
timezoneZ: /^(Z)$/,
|
|
2450
2509
|
timezoneHH: /^([+-]\d{2})$/,
|
|
2451
2510
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
2452
2511
|
};
|
|
2453
|
-
function
|
|
2512
|
+
function pe(e, t, n) {
|
|
2454
2513
|
if (!e)
|
|
2455
2514
|
return 0;
|
|
2456
2515
|
let r = Ze.timezoneZ.exec(e);
|
|
@@ -2462,25 +2521,25 @@ function ge(e, t, n) {
|
|
|
2462
2521
|
if (r = Ze.timezoneHHMM.exec(e), r) {
|
|
2463
2522
|
i = parseInt(r[2], 10);
|
|
2464
2523
|
const c = parseInt(r[3], 10);
|
|
2465
|
-
return Jt(i, c) ? (o = Math.abs(i) * Kt + c *
|
|
2524
|
+
return Jt(i, c) ? (o = Math.abs(i) * Kt + c * go, r[1] === "+" ? -o : o) : NaN;
|
|
2466
2525
|
}
|
|
2467
|
-
if (
|
|
2526
|
+
if (bo(e)) {
|
|
2468
2527
|
t = new Date(t || Date.now());
|
|
2469
|
-
const c = n ? t :
|
|
2470
|
-
return -(n ? l :
|
|
2528
|
+
const c = n ? t : _o(t), l = tt(c, e);
|
|
2529
|
+
return -(n ? l : wo(t, l, e));
|
|
2471
2530
|
}
|
|
2472
2531
|
return NaN;
|
|
2473
2532
|
}
|
|
2474
|
-
function
|
|
2533
|
+
function _o(e) {
|
|
2475
2534
|
return at(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
2476
2535
|
}
|
|
2477
2536
|
function tt(e, t) {
|
|
2478
|
-
const n =
|
|
2537
|
+
const n = lo(e, t), r = at(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
|
|
2479
2538
|
let i = e.getTime();
|
|
2480
2539
|
const o = i % 1e3;
|
|
2481
2540
|
return i -= o >= 0 ? o : 1e3 + o, r - i;
|
|
2482
2541
|
}
|
|
2483
|
-
function
|
|
2542
|
+
function wo(e, t, n) {
|
|
2484
2543
|
let i = e.getTime() - t;
|
|
2485
2544
|
const o = tt(new Date(i), n);
|
|
2486
2545
|
if (t === o)
|
|
@@ -2493,7 +2552,7 @@ function Jt(e, t) {
|
|
|
2493
2552
|
return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
|
|
2494
2553
|
}
|
|
2495
2554
|
const en = {};
|
|
2496
|
-
function
|
|
2555
|
+
function bo(e) {
|
|
2497
2556
|
if (en[e])
|
|
2498
2557
|
return !0;
|
|
2499
2558
|
try {
|
|
@@ -2502,7 +2561,7 @@ function yo(e) {
|
|
|
2502
2561
|
return !1;
|
|
2503
2562
|
}
|
|
2504
2563
|
}
|
|
2505
|
-
const
|
|
2564
|
+
const To = 60 * 1e3, Do = {
|
|
2506
2565
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
2507
2566
|
X: function(e, t, n) {
|
|
2508
2567
|
const r = Xe(n.timeZone, e);
|
|
@@ -2542,7 +2601,7 @@ const go = 60 * 1e3, po = {
|
|
|
2542
2601
|
case "O":
|
|
2543
2602
|
case "OO":
|
|
2544
2603
|
case "OOO":
|
|
2545
|
-
return "GMT" +
|
|
2604
|
+
return "GMT" + Mo(r, ":");
|
|
2546
2605
|
case "OOOO":
|
|
2547
2606
|
default:
|
|
2548
2607
|
return "GMT" + ee(r, ":");
|
|
@@ -2562,7 +2621,7 @@ const go = 60 * 1e3, po = {
|
|
|
2562
2621
|
}
|
|
2563
2622
|
};
|
|
2564
2623
|
function Xe(e, t) {
|
|
2565
|
-
const n = e ?
|
|
2624
|
+
const n = e ? pe(e, t, !0) / To : (t == null ? void 0 : t.getTimezoneOffset()) ?? 0;
|
|
2566
2625
|
if (Number.isNaN(n))
|
|
2567
2626
|
throw new RangeError("Invalid time zone specified: " + e);
|
|
2568
2627
|
return n;
|
|
@@ -2581,7 +2640,7 @@ function ee(e, t = "") {
|
|
|
2581
2640
|
function tn(e, t) {
|
|
2582
2641
|
return e % 60 === 0 ? (e > 0 ? "-" : "+") + ve(Math.abs(e) / 60, 2) : ee(e, t);
|
|
2583
2642
|
}
|
|
2584
|
-
function
|
|
2643
|
+
function Mo(e, t = "") {
|
|
2585
2644
|
const n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.floor(r / 60), o = r % 60;
|
|
2586
2645
|
return o === 0 ? n + String(i) : n + String(i) + t + ve(o, 2);
|
|
2587
2646
|
}
|
|
@@ -2589,7 +2648,7 @@ function nn(e) {
|
|
|
2589
2648
|
const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
2590
2649
|
return t.setUTCFullYear(e.getFullYear()), +e - +t;
|
|
2591
2650
|
}
|
|
2592
|
-
const
|
|
2651
|
+
const Cn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Ke = 36e5, rn = 6e4, So = 2, I = {
|
|
2593
2652
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
2594
2653
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
2595
2654
|
// year tokens
|
|
@@ -2621,14 +2680,14 @@ const In = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)
|
|
|
2621
2680
|
HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
2622
2681
|
HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
2623
2682
|
// time zone tokens (to identify the presence of a tz)
|
|
2624
|
-
timeZone:
|
|
2683
|
+
timeZone: Cn
|
|
2625
2684
|
};
|
|
2626
|
-
function
|
|
2685
|
+
function Ie(e, t = {}) {
|
|
2627
2686
|
if (arguments.length < 1)
|
|
2628
2687
|
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
2629
2688
|
if (e === null)
|
|
2630
2689
|
return /* @__PURE__ */ new Date(NaN);
|
|
2631
|
-
const n = t.additionalDigits == null ?
|
|
2690
|
+
const n = t.additionalDigits == null ? So : Number(t.additionalDigits);
|
|
2632
2691
|
if (n !== 2 && n !== 1 && n !== 0)
|
|
2633
2692
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
2634
2693
|
if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
|
|
@@ -2637,16 +2696,16 @@ function Re(e, t = {}) {
|
|
|
2637
2696
|
return new Date(e);
|
|
2638
2697
|
if (Object.prototype.toString.call(e) !== "[object String]")
|
|
2639
2698
|
return /* @__PURE__ */ new Date(NaN);
|
|
2640
|
-
const r =
|
|
2699
|
+
const r = Oo(e), { year: i, restDateString: o } = Eo(r.date, n), c = No(o, i);
|
|
2641
2700
|
if (c === null || isNaN(c.getTime()))
|
|
2642
2701
|
return /* @__PURE__ */ new Date(NaN);
|
|
2643
2702
|
if (c) {
|
|
2644
2703
|
const l = c.getTime();
|
|
2645
2704
|
let f = 0, h;
|
|
2646
|
-
if (r.time && (f =
|
|
2705
|
+
if (r.time && (f = vo(r.time), f === null || isNaN(f)))
|
|
2647
2706
|
return /* @__PURE__ */ new Date(NaN);
|
|
2648
2707
|
if (r.timeZone || t.timeZone) {
|
|
2649
|
-
if (h =
|
|
2708
|
+
if (h = pe(r.timeZone || t.timeZone, new Date(l + f)), isNaN(h))
|
|
2650
2709
|
return /* @__PURE__ */ new Date(NaN);
|
|
2651
2710
|
} else
|
|
2652
2711
|
h = nn(new Date(l + f)), h = nn(new Date(l + f + h));
|
|
@@ -2654,19 +2713,19 @@ function Re(e, t = {}) {
|
|
|
2654
2713
|
} else
|
|
2655
2714
|
return /* @__PURE__ */ new Date(NaN);
|
|
2656
2715
|
}
|
|
2657
|
-
function
|
|
2716
|
+
function Oo(e) {
|
|
2658
2717
|
const t = {};
|
|
2659
|
-
let n =
|
|
2660
|
-
if (n ? (t.date = n[1], r = n[3]) : (n =
|
|
2661
|
-
const i =
|
|
2718
|
+
let n = I.dateTimePattern.exec(e), r;
|
|
2719
|
+
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) {
|
|
2720
|
+
const i = I.timeZone.exec(r);
|
|
2662
2721
|
i ? (t.time = r.replace(i[1], ""), t.timeZone = i[1].trim()) : t.time = r;
|
|
2663
2722
|
}
|
|
2664
2723
|
return t;
|
|
2665
2724
|
}
|
|
2666
|
-
function
|
|
2725
|
+
function Eo(e, t) {
|
|
2667
2726
|
if (e) {
|
|
2668
|
-
const n =
|
|
2669
|
-
let i =
|
|
2727
|
+
const n = I.YYY[t], r = I.YYYYY[t];
|
|
2728
|
+
let i = I.YYYY.exec(e) || r.exec(e);
|
|
2670
2729
|
if (i) {
|
|
2671
2730
|
const o = i[1];
|
|
2672
2731
|
return {
|
|
@@ -2674,7 +2733,7 @@ function To(e, t) {
|
|
|
2674
2733
|
restDateString: e.slice(o.length)
|
|
2675
2734
|
};
|
|
2676
2735
|
}
|
|
2677
|
-
if (i =
|
|
2736
|
+
if (i = I.YY.exec(e) || n.exec(e), i) {
|
|
2678
2737
|
const o = i[1];
|
|
2679
2738
|
return {
|
|
2680
2739
|
year: parseInt(o, 10) * 100,
|
|
@@ -2686,41 +2745,41 @@ function To(e, t) {
|
|
|
2686
2745
|
year: null
|
|
2687
2746
|
};
|
|
2688
2747
|
}
|
|
2689
|
-
function
|
|
2748
|
+
function No(e, t) {
|
|
2690
2749
|
if (t === null)
|
|
2691
2750
|
return null;
|
|
2692
2751
|
let n, r, i;
|
|
2693
2752
|
if (!e || !e.length)
|
|
2694
2753
|
return n = /* @__PURE__ */ new Date(0), n.setUTCFullYear(t), n;
|
|
2695
|
-
let o =
|
|
2754
|
+
let o = I.MM.exec(e);
|
|
2696
2755
|
if (o)
|
|
2697
2756
|
return n = /* @__PURE__ */ new Date(0), r = parseInt(o[1], 10) - 1, on(t, r) ? (n.setUTCFullYear(t, r), n) : /* @__PURE__ */ new Date(NaN);
|
|
2698
|
-
if (o =
|
|
2757
|
+
if (o = I.DDD.exec(e), o) {
|
|
2699
2758
|
n = /* @__PURE__ */ new Date(0);
|
|
2700
2759
|
const c = parseInt(o[1], 10);
|
|
2701
|
-
return
|
|
2760
|
+
return xo(t, c) ? (n.setUTCFullYear(t, 0, c), n) : /* @__PURE__ */ new Date(NaN);
|
|
2702
2761
|
}
|
|
2703
|
-
if (o =
|
|
2762
|
+
if (o = I.MMDD.exec(e), o) {
|
|
2704
2763
|
n = /* @__PURE__ */ new Date(0), r = parseInt(o[1], 10) - 1;
|
|
2705
2764
|
const c = parseInt(o[2], 10);
|
|
2706
2765
|
return on(t, r, c) ? (n.setUTCFullYear(t, r, c), n) : /* @__PURE__ */ new Date(NaN);
|
|
2707
2766
|
}
|
|
2708
|
-
if (o =
|
|
2767
|
+
if (o = I.Www.exec(e), o)
|
|
2709
2768
|
return i = parseInt(o[1], 10) - 1, sn(i) ? an(t, i) : /* @__PURE__ */ new Date(NaN);
|
|
2710
|
-
if (o =
|
|
2769
|
+
if (o = I.WwwD.exec(e), o) {
|
|
2711
2770
|
i = parseInt(o[1], 10) - 1;
|
|
2712
2771
|
const c = parseInt(o[2], 10) - 1;
|
|
2713
2772
|
return sn(i, c) ? an(t, i, c) : /* @__PURE__ */ new Date(NaN);
|
|
2714
2773
|
}
|
|
2715
2774
|
return null;
|
|
2716
2775
|
}
|
|
2717
|
-
function
|
|
2718
|
-
let t, n, r =
|
|
2776
|
+
function vo(e) {
|
|
2777
|
+
let t, n, r = I.HH.exec(e);
|
|
2719
2778
|
if (r)
|
|
2720
2779
|
return t = parseFloat(r[1].replace(",", ".")), Je(t) ? t % 24 * Ke : NaN;
|
|
2721
|
-
if (r =
|
|
2780
|
+
if (r = I.HHMM.exec(e), r)
|
|
2722
2781
|
return t = parseInt(r[1], 10), n = parseFloat(r[2].replace(",", ".")), Je(t, n) ? t % 24 * Ke + n * rn : NaN;
|
|
2723
|
-
if (r =
|
|
2782
|
+
if (r = I.HHMMSS.exec(e), r) {
|
|
2724
2783
|
t = parseInt(r[1], 10), n = parseInt(r[2], 10);
|
|
2725
2784
|
const i = parseFloat(r[3].replace(",", "."));
|
|
2726
2785
|
return Je(t, n, i) ? t % 24 * Ke + n * rn + i * 1e3 : NaN;
|
|
@@ -2734,8 +2793,8 @@ function an(e, t, n) {
|
|
|
2734
2793
|
const i = r.getUTCDay() || 7, o = t * 7 + n + 1 - i;
|
|
2735
2794
|
return r.setUTCDate(r.getUTCDate() + o), r;
|
|
2736
2795
|
}
|
|
2737
|
-
const
|
|
2738
|
-
function
|
|
2796
|
+
const Io = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ro = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
2797
|
+
function An(e) {
|
|
2739
2798
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
2740
2799
|
}
|
|
2741
2800
|
function on(e, t, n) {
|
|
@@ -2744,16 +2803,16 @@ function on(e, t, n) {
|
|
|
2744
2803
|
if (n != null) {
|
|
2745
2804
|
if (n < 1)
|
|
2746
2805
|
return !1;
|
|
2747
|
-
const r =
|
|
2748
|
-
if (r && n >
|
|
2806
|
+
const r = An(e);
|
|
2807
|
+
if (r && n > Ro[t] || !r && n > Io[t])
|
|
2749
2808
|
return !1;
|
|
2750
2809
|
}
|
|
2751
2810
|
return !0;
|
|
2752
2811
|
}
|
|
2753
|
-
function
|
|
2812
|
+
function xo(e, t) {
|
|
2754
2813
|
if (t < 1)
|
|
2755
2814
|
return !1;
|
|
2756
|
-
const n =
|
|
2815
|
+
const n = An(e);
|
|
2757
2816
|
return !(n && t > 366 || !n && t > 365);
|
|
2758
2817
|
}
|
|
2759
2818
|
function sn(e, t) {
|
|
@@ -2762,44 +2821,44 @@ function sn(e, t) {
|
|
|
2762
2821
|
function Je(e, t, n) {
|
|
2763
2822
|
return !(e < 0 || e >= 25 || t != null && (t < 0 || t >= 60) || n != null && (n < 0 || n >= 60));
|
|
2764
2823
|
}
|
|
2765
|
-
const
|
|
2766
|
-
function
|
|
2824
|
+
const Po = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
|
|
2825
|
+
function Co(e, t, n = {}) {
|
|
2767
2826
|
t = String(t);
|
|
2768
|
-
const r = t.match(
|
|
2827
|
+
const r = t.match(Po);
|
|
2769
2828
|
if (r) {
|
|
2770
|
-
const i =
|
|
2829
|
+
const i = Ie(n.originalDate || e, n);
|
|
2771
2830
|
t = r.reduce(function(o, c) {
|
|
2772
2831
|
if (c[0] === "'")
|
|
2773
2832
|
return o;
|
|
2774
|
-
const l = o.indexOf(c), f = o[l - 1] === "'", h = o.replace(c, "'" +
|
|
2833
|
+
const l = o.indexOf(c), f = o[l - 1] === "'", h = o.replace(c, "'" + Do[c[0]](i, c, n) + "'");
|
|
2775
2834
|
return f ? h.substring(0, l - 1) + h.substring(l + 1) : h;
|
|
2776
2835
|
}, t);
|
|
2777
2836
|
}
|
|
2778
|
-
return
|
|
2837
|
+
return to(e, t, n);
|
|
2779
2838
|
}
|
|
2780
|
-
function
|
|
2781
|
-
e =
|
|
2782
|
-
const r =
|
|
2839
|
+
function kn(e, t, n) {
|
|
2840
|
+
e = Ie(e, n);
|
|
2841
|
+
const r = pe(t, e, !0), i = new Date(e.getTime() - r), o = /* @__PURE__ */ new Date(0);
|
|
2783
2842
|
return o.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()), o.setHours(i.getUTCHours(), i.getUTCMinutes(), i.getUTCSeconds(), i.getUTCMilliseconds()), o;
|
|
2784
2843
|
}
|
|
2785
|
-
function
|
|
2844
|
+
function Gn(e, t, n, r) {
|
|
2786
2845
|
return r = {
|
|
2787
2846
|
...r,
|
|
2788
2847
|
timeZone: t,
|
|
2789
2848
|
originalDate: e
|
|
2790
|
-
},
|
|
2849
|
+
}, Co(kn(e, t, { timeZone: r.timeZone }), n, r);
|
|
2791
2850
|
}
|
|
2792
|
-
function
|
|
2793
|
-
if (typeof e == "string" && !e.match(
|
|
2794
|
-
return
|
|
2795
|
-
e =
|
|
2796
|
-
const r = at(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i =
|
|
2851
|
+
function Ao(e, t, n) {
|
|
2852
|
+
if (typeof e == "string" && !e.match(Cn))
|
|
2853
|
+
return Ie(e, { ...n, timeZone: t });
|
|
2854
|
+
e = Ie(e, n);
|
|
2855
|
+
const r = at(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i = pe(t, new Date(r));
|
|
2797
2856
|
return new Date(r + i);
|
|
2798
2857
|
}
|
|
2799
|
-
function
|
|
2800
|
-
return -
|
|
2858
|
+
function Yn(e, t) {
|
|
2859
|
+
return -pe(e, t);
|
|
2801
2860
|
}
|
|
2802
|
-
function
|
|
2861
|
+
function bs(e, t = {}) {
|
|
2803
2862
|
const n = (t == null ? void 0 : t.tz) || Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
2804
2863
|
let r = "MMM dd, yyy hh:mm a";
|
|
2805
2864
|
switch (t.format) {
|
|
@@ -2813,7 +2872,7 @@ function ys(e, t = {}) {
|
|
|
2813
2872
|
r = "MMM dd, yyyy hh:mm:ss.SSS a";
|
|
2814
2873
|
break;
|
|
2815
2874
|
}
|
|
2816
|
-
return t.includeTZ && (r += " (z)"),
|
|
2875
|
+
return t.includeTZ && (r += " (z)"), Gn(e, n, r);
|
|
2817
2876
|
}
|
|
2818
2877
|
function un(e, t = {}) {
|
|
2819
2878
|
if (!e)
|
|
@@ -2823,15 +2882,15 @@ function un(e, t = {}) {
|
|
|
2823
2882
|
let r = "MMM dd, yyy hh:mm a";
|
|
2824
2883
|
t.short && (r = "MMM dd, yyy"), t.includeTZ && (r += " (z)");
|
|
2825
2884
|
const i = new Date(e);
|
|
2826
|
-
return
|
|
2885
|
+
return Gn(i, n, r);
|
|
2827
2886
|
} catch {
|
|
2828
2887
|
return console.error("Invalid value passed to formatTime", e), "(invalid date)";
|
|
2829
2888
|
}
|
|
2830
2889
|
}
|
|
2831
|
-
function
|
|
2890
|
+
function Ts(e, t) {
|
|
2832
2891
|
return `${un(e.getTime())} - ${un(t.getTime(), { includeTZ: !0 })}`;
|
|
2833
2892
|
}
|
|
2834
|
-
const
|
|
2893
|
+
const Re = {
|
|
2835
2894
|
secondly: 1e3,
|
|
2836
2895
|
tenSecondly: 10 * 1e3,
|
|
2837
2896
|
thirtySecondly: 30 * 1e3,
|
|
@@ -2846,39 +2905,39 @@ const Ie = {
|
|
|
2846
2905
|
weekly: 60 * 60 * 24 * 7 * 1e3,
|
|
2847
2906
|
trend: 0
|
|
2848
2907
|
};
|
|
2849
|
-
function
|
|
2908
|
+
function Ds(e, t) {
|
|
2850
2909
|
return e.map((n) => ({
|
|
2851
2910
|
value: n,
|
|
2852
2911
|
label: t.t(`configuration.vitals.reports.granularity.${n}`)
|
|
2853
2912
|
}));
|
|
2854
2913
|
}
|
|
2855
|
-
function
|
|
2914
|
+
function ko(e, t) {
|
|
2856
2915
|
return {
|
|
2857
2916
|
duration: e,
|
|
2858
2917
|
type: "duration",
|
|
2859
2918
|
origin: t
|
|
2860
2919
|
};
|
|
2861
2920
|
}
|
|
2862
|
-
function
|
|
2863
|
-
return e && yn.find((n) => e <=
|
|
2921
|
+
function Ms(e) {
|
|
2922
|
+
return e && yn.find((n) => e <= Re[n]) || null;
|
|
2864
2923
|
}
|
|
2865
|
-
function
|
|
2866
|
-
const i =
|
|
2924
|
+
function Fn(e, t, n, r) {
|
|
2925
|
+
const i = Re[n];
|
|
2867
2926
|
let o = 0;
|
|
2868
|
-
return i >=
|
|
2927
|
+
return i >= Re.daily && (r ? o = -Yn(r, t) : o = t.getTimezoneOffset() * 60 * 1e3), new Date(e((t.getTime() - o) / i) * i + o);
|
|
2869
2928
|
}
|
|
2870
|
-
function
|
|
2871
|
-
return
|
|
2929
|
+
function Go(e, t, n) {
|
|
2930
|
+
return Fn(Math.floor, e, t, n);
|
|
2872
2931
|
}
|
|
2873
|
-
function
|
|
2874
|
-
return
|
|
2932
|
+
function Hn(e, t, n) {
|
|
2933
|
+
return Fn(Math.ceil, e, t, n);
|
|
2875
2934
|
}
|
|
2876
|
-
class
|
|
2935
|
+
class Ge {
|
|
2877
2936
|
constructor(t, n, r) {
|
|
2878
2937
|
E(this, "timeframe");
|
|
2879
2938
|
E(this, "tz");
|
|
2880
2939
|
E(this, "dataGranularity");
|
|
2881
|
-
if (this.constructor ===
|
|
2940
|
+
if (this.constructor === Ge)
|
|
2882
2941
|
throw new Error("BaseQueryTime is not meant to be used directly.");
|
|
2883
2942
|
this.timeframe = t, this.tz = n, this.dataGranularity = r ?? t.dataGranularity;
|
|
2884
2943
|
}
|
|
@@ -2886,7 +2945,7 @@ class Ye {
|
|
|
2886
2945
|
if (t)
|
|
2887
2946
|
return new Date(this.endDate().getTime() - this.timeframe.timeframeLengthMs() * r);
|
|
2888
2947
|
{
|
|
2889
|
-
const i = this.endDate(), o = this.timeframe.rawStart(this.tz), c =
|
|
2948
|
+
const i = this.endDate(), o = this.timeframe.rawStart(this.tz), c = Go(o, n, this.tz), f = (i.getTime() - c.getTime()) * (r - 1);
|
|
2890
2949
|
return new Date(c.getTime() - f);
|
|
2891
2950
|
}
|
|
2892
2951
|
}
|
|
@@ -2894,7 +2953,7 @@ class Ye {
|
|
|
2894
2953
|
return Math.floor(this.granularityMs() / 1e3);
|
|
2895
2954
|
}
|
|
2896
2955
|
granularityDruid() {
|
|
2897
|
-
return
|
|
2956
|
+
return ko(this.granularityMs(), this.startDate().toISOString());
|
|
2898
2957
|
}
|
|
2899
2958
|
// Return a UNIX timestamp suitable for use in the `start` query param.
|
|
2900
2959
|
startSeconds() {
|
|
@@ -2913,7 +2972,7 @@ class Ye {
|
|
|
2913
2972
|
return zt(this.endDate());
|
|
2914
2973
|
}
|
|
2915
2974
|
}
|
|
2916
|
-
class
|
|
2975
|
+
class Ss extends Ge {
|
|
2917
2976
|
constructor(n, r, i, o, c) {
|
|
2918
2977
|
super(n, i, o);
|
|
2919
2978
|
E(this, "granularity");
|
|
@@ -2923,24 +2982,24 @@ class ws extends Ye {
|
|
|
2923
2982
|
return this.calculateStartDate(this.timeframe.isRelative, this.granularity);
|
|
2924
2983
|
}
|
|
2925
2984
|
endDate() {
|
|
2926
|
-
return
|
|
2985
|
+
return Hn(this.timeframe.rawEnd(), this.granularity, this.tz);
|
|
2927
2986
|
}
|
|
2928
2987
|
granularityMs() {
|
|
2929
|
-
return
|
|
2988
|
+
return Re[this.granularity];
|
|
2930
2989
|
}
|
|
2931
2990
|
}
|
|
2932
|
-
class
|
|
2991
|
+
class Yo extends Ge {
|
|
2933
2992
|
startDate() {
|
|
2934
2993
|
return this.calculateStartDate(this.timeframe.isRelative, this.dataGranularity);
|
|
2935
2994
|
}
|
|
2936
2995
|
endDate() {
|
|
2937
|
-
return
|
|
2996
|
+
return Hn(this.timeframe.rawEnd(this.tz), this.dataGranularity, this.tz);
|
|
2938
2997
|
}
|
|
2939
2998
|
granularityMs() {
|
|
2940
2999
|
return this.endDate().getTime() - this.startDate().getTime();
|
|
2941
3000
|
}
|
|
2942
3001
|
}
|
|
2943
|
-
class
|
|
3002
|
+
class Os extends Yo {
|
|
2944
3003
|
startDate() {
|
|
2945
3004
|
return this.calculateStartDate(this.timeframe.isRelative, this.dataGranularity, 2);
|
|
2946
3005
|
}
|
|
@@ -2949,42 +3008,42 @@ class bs extends Po {
|
|
|
2949
3008
|
}
|
|
2950
3009
|
}
|
|
2951
3010
|
var Oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2952
|
-
function
|
|
3011
|
+
function Fo(e) {
|
|
2953
3012
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2954
3013
|
}
|
|
2955
3014
|
var xe = { exports: {} };
|
|
2956
3015
|
xe.exports;
|
|
2957
3016
|
(function(e, t) {
|
|
2958
|
-
var n = 200, r = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", c = "[object Array]", l = "[object Boolean]", f = "[object Date]", h = "[object Error]",
|
|
2959
|
-
T[o] = T[c] = T[ot] = T[
|
|
2960
|
-
var
|
|
2961
|
-
function
|
|
3017
|
+
var n = 200, r = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", c = "[object Array]", l = "[object Boolean]", f = "[object Date]", h = "[object Error]", p = "[object Function]", g = "[object GeneratorFunction]", y = "[object Map]", S = "[object Number]", _ = "[object Object]", b = "[object Promise]", k = "[object RegExp]", P = "[object Set]", D = "[object String]", M = "[object Symbol]", W = "[object WeakMap]", ot = "[object ArrayBuffer]", ge = "[object DataView]", st = "[object Float32Array]", ut = "[object Float64Array]", ct = "[object Int8Array]", lt = "[object Int16Array]", dt = "[object Int32Array]", mt = "[object Uint8Array]", ft = "[object Uint8ClampedArray]", ht = "[object Uint16Array]", yt = "[object Uint32Array]", Ln = /[\\^$.*+?()[\]{}|]/g, qn = /\w*$/, Wn = /^\[object .+?Constructor\]$/, jn = /^(?:0|[1-9]\d*)$/, T = {};
|
|
3018
|
+
T[o] = T[c] = T[ot] = T[ge] = T[l] = T[f] = T[st] = T[ut] = T[ct] = T[lt] = T[dt] = T[y] = T[S] = T[_] = T[k] = T[P] = T[D] = T[M] = T[mt] = T[ft] = T[ht] = T[yt] = !0, T[h] = T[p] = T[W] = !1;
|
|
3019
|
+
var Vn = typeof Oe == "object" && Oe && Oe.Object === Object && Oe, $n = typeof self == "object" && self && self.Object === Object && self, G = Vn || $n || Function("return this")(), pt = t && !t.nodeType && t, gt = pt && !0 && e && !e.nodeType && e, zn = gt && gt.exports === pt;
|
|
3020
|
+
function Bn(a, s) {
|
|
2962
3021
|
return a.set(s[0], s[1]), a;
|
|
2963
3022
|
}
|
|
2964
|
-
function
|
|
3023
|
+
function Qn(a, s) {
|
|
2965
3024
|
return a.add(s), a;
|
|
2966
3025
|
}
|
|
2967
|
-
function
|
|
3026
|
+
function Zn(a, s) {
|
|
2968
3027
|
for (var u = -1, m = a ? a.length : 0; ++u < m && s(a[u], u, a) !== !1; )
|
|
2969
3028
|
;
|
|
2970
3029
|
return a;
|
|
2971
3030
|
}
|
|
2972
|
-
function
|
|
3031
|
+
function Xn(a, s) {
|
|
2973
3032
|
for (var u = -1, m = s.length, v = a.length; ++u < m; )
|
|
2974
3033
|
a[v + u] = s[u];
|
|
2975
3034
|
return a;
|
|
2976
3035
|
}
|
|
2977
3036
|
function _t(a, s, u, m) {
|
|
2978
|
-
for (var v = -1,
|
|
3037
|
+
for (var v = -1, R = a ? a.length : 0; ++v < R; )
|
|
2979
3038
|
u = s(u, a[v], v, a);
|
|
2980
3039
|
return u;
|
|
2981
3040
|
}
|
|
2982
|
-
function
|
|
3041
|
+
function Kn(a, s) {
|
|
2983
3042
|
for (var u = -1, m = Array(a); ++u < a; )
|
|
2984
3043
|
m[u] = s(u);
|
|
2985
3044
|
return m;
|
|
2986
3045
|
}
|
|
2987
|
-
function
|
|
3046
|
+
function Jn(a, s) {
|
|
2988
3047
|
return a == null ? void 0 : a[s];
|
|
2989
3048
|
}
|
|
2990
3049
|
function wt(a) {
|
|
@@ -3002,7 +3061,7 @@ xe.exports;
|
|
|
3002
3061
|
u[++s] = [v, m];
|
|
3003
3062
|
}), u;
|
|
3004
3063
|
}
|
|
3005
|
-
function
|
|
3064
|
+
function Ye(a, s) {
|
|
3006
3065
|
return function(u) {
|
|
3007
3066
|
return a(s(u));
|
|
3008
3067
|
};
|
|
@@ -3013,12 +3072,12 @@ xe.exports;
|
|
|
3013
3072
|
u[++s] = m;
|
|
3014
3073
|
}), u;
|
|
3015
3074
|
}
|
|
3016
|
-
var
|
|
3075
|
+
var er = Array.prototype, tr = Function.prototype, _e = Object.prototype, Fe = G["__core-js_shared__"], Dt = function() {
|
|
3017
3076
|
var a = /[^.]+$/.exec(Fe && Fe.keys && Fe.keys.IE_PROTO || "");
|
|
3018
3077
|
return a ? "Symbol(src)_1." + a : "";
|
|
3019
|
-
}(), Mt =
|
|
3020
|
-
"^" + Mt.call(U).replace(
|
|
3021
|
-
), St =
|
|
3078
|
+
}(), Mt = tr.toString, U = _e.hasOwnProperty, we = _e.toString, nr = RegExp(
|
|
3079
|
+
"^" + Mt.call(U).replace(Ln, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
3080
|
+
), St = zn ? G.Buffer : void 0, Ot = G.Symbol, Et = G.Uint8Array, rr = Ye(Object.getPrototypeOf, Object), ar = Object.create, ir = _e.propertyIsEnumerable, or = er.splice, Nt = Object.getOwnPropertySymbols, sr = St ? St.isBuffer : void 0, ur = Ye(Object.keys, Object), He = Z(G, "DataView"), ie = Z(G, "Map"), Ue = Z(G, "Promise"), Le = Z(G, "Set"), qe = Z(G, "WeakMap"), oe = Z(Object, "create"), cr = $(He), lr = $(ie), dr = $(Ue), mr = $(Le), fr = $(qe), vt = Ot ? Ot.prototype : void 0, It = vt ? vt.valueOf : void 0;
|
|
3022
3081
|
function j(a) {
|
|
3023
3082
|
var s = -1, u = a ? a.length : 0;
|
|
3024
3083
|
for (this.clear(); ++s < u; ) {
|
|
@@ -3026,13 +3085,13 @@ xe.exports;
|
|
|
3026
3085
|
this.set(m[0], m[1]);
|
|
3027
3086
|
}
|
|
3028
3087
|
}
|
|
3029
|
-
function
|
|
3088
|
+
function hr() {
|
|
3030
3089
|
this.__data__ = oe ? oe(null) : {};
|
|
3031
3090
|
}
|
|
3032
|
-
function
|
|
3091
|
+
function yr(a) {
|
|
3033
3092
|
return this.has(a) && delete this.__data__[a];
|
|
3034
3093
|
}
|
|
3035
|
-
function
|
|
3094
|
+
function pr(a) {
|
|
3036
3095
|
var s = this.__data__;
|
|
3037
3096
|
if (oe) {
|
|
3038
3097
|
var u = s[a];
|
|
@@ -3040,44 +3099,44 @@ xe.exports;
|
|
|
3040
3099
|
}
|
|
3041
3100
|
return U.call(s, a) ? s[a] : void 0;
|
|
3042
3101
|
}
|
|
3043
|
-
function
|
|
3102
|
+
function gr(a) {
|
|
3044
3103
|
var s = this.__data__;
|
|
3045
3104
|
return oe ? s[a] !== void 0 : U.call(s, a);
|
|
3046
3105
|
}
|
|
3047
|
-
function
|
|
3106
|
+
function _r(a, s) {
|
|
3048
3107
|
var u = this.__data__;
|
|
3049
3108
|
return u[a] = oe && s === void 0 ? r : s, this;
|
|
3050
3109
|
}
|
|
3051
|
-
j.prototype.clear =
|
|
3052
|
-
function
|
|
3110
|
+
j.prototype.clear = hr, j.prototype.delete = yr, j.prototype.get = pr, j.prototype.has = gr, j.prototype.set = _r;
|
|
3111
|
+
function Y(a) {
|
|
3053
3112
|
var s = -1, u = a ? a.length : 0;
|
|
3054
3113
|
for (this.clear(); ++s < u; ) {
|
|
3055
3114
|
var m = a[s];
|
|
3056
3115
|
this.set(m[0], m[1]);
|
|
3057
3116
|
}
|
|
3058
3117
|
}
|
|
3059
|
-
function
|
|
3118
|
+
function wr() {
|
|
3060
3119
|
this.__data__ = [];
|
|
3061
3120
|
}
|
|
3062
|
-
function
|
|
3121
|
+
function br(a) {
|
|
3063
3122
|
var s = this.__data__, u = be(s, a);
|
|
3064
3123
|
if (u < 0)
|
|
3065
3124
|
return !1;
|
|
3066
3125
|
var m = s.length - 1;
|
|
3067
|
-
return u == m ? s.pop() :
|
|
3126
|
+
return u == m ? s.pop() : or.call(s, u, 1), !0;
|
|
3068
3127
|
}
|
|
3069
|
-
function
|
|
3128
|
+
function Tr(a) {
|
|
3070
3129
|
var s = this.__data__, u = be(s, a);
|
|
3071
3130
|
return u < 0 ? void 0 : s[u][1];
|
|
3072
3131
|
}
|
|
3073
|
-
function
|
|
3132
|
+
function Dr(a) {
|
|
3074
3133
|
return be(this.__data__, a) > -1;
|
|
3075
3134
|
}
|
|
3076
|
-
function
|
|
3135
|
+
function Mr(a, s) {
|
|
3077
3136
|
var u = this.__data__, m = be(u, a);
|
|
3078
3137
|
return m < 0 ? u.push([a, s]) : u[m][1] = s, this;
|
|
3079
3138
|
}
|
|
3080
|
-
|
|
3139
|
+
Y.prototype.clear = wr, Y.prototype.delete = br, Y.prototype.get = Tr, Y.prototype.has = Dr, Y.prototype.set = Mr;
|
|
3081
3140
|
function B(a) {
|
|
3082
3141
|
var s = -1, u = a ? a.length : 0;
|
|
3083
3142
|
for (this.clear(); ++s < u; ) {
|
|
@@ -3085,44 +3144,44 @@ xe.exports;
|
|
|
3085
3144
|
this.set(m[0], m[1]);
|
|
3086
3145
|
}
|
|
3087
3146
|
}
|
|
3088
|
-
function
|
|
3147
|
+
function Sr() {
|
|
3089
3148
|
this.__data__ = {
|
|
3090
3149
|
hash: new j(),
|
|
3091
|
-
map: new (ie ||
|
|
3150
|
+
map: new (ie || Y)(),
|
|
3092
3151
|
string: new j()
|
|
3093
3152
|
};
|
|
3094
3153
|
}
|
|
3095
|
-
function
|
|
3154
|
+
function Or(a) {
|
|
3096
3155
|
return Te(this, a).delete(a);
|
|
3097
3156
|
}
|
|
3098
|
-
function
|
|
3157
|
+
function Er(a) {
|
|
3099
3158
|
return Te(this, a).get(a);
|
|
3100
3159
|
}
|
|
3101
|
-
function
|
|
3160
|
+
function Nr(a) {
|
|
3102
3161
|
return Te(this, a).has(a);
|
|
3103
3162
|
}
|
|
3104
|
-
function
|
|
3163
|
+
function vr(a, s) {
|
|
3105
3164
|
return Te(this, a).set(a, s), this;
|
|
3106
3165
|
}
|
|
3107
|
-
B.prototype.clear =
|
|
3166
|
+
B.prototype.clear = Sr, B.prototype.delete = Or, B.prototype.get = Er, B.prototype.has = Nr, B.prototype.set = vr;
|
|
3108
3167
|
function Q(a) {
|
|
3109
|
-
this.__data__ = new
|
|
3168
|
+
this.__data__ = new Y(a);
|
|
3110
3169
|
}
|
|
3111
|
-
function
|
|
3112
|
-
this.__data__ = new
|
|
3170
|
+
function Ir() {
|
|
3171
|
+
this.__data__ = new Y();
|
|
3113
3172
|
}
|
|
3114
|
-
function
|
|
3173
|
+
function Rr(a) {
|
|
3115
3174
|
return this.__data__.delete(a);
|
|
3116
3175
|
}
|
|
3117
|
-
function
|
|
3176
|
+
function xr(a) {
|
|
3118
3177
|
return this.__data__.get(a);
|
|
3119
3178
|
}
|
|
3120
|
-
function
|
|
3179
|
+
function Pr(a) {
|
|
3121
3180
|
return this.__data__.has(a);
|
|
3122
3181
|
}
|
|
3123
|
-
function
|
|
3182
|
+
function Cr(a, s) {
|
|
3124
3183
|
var u = this.__data__;
|
|
3125
|
-
if (u instanceof
|
|
3184
|
+
if (u instanceof Y) {
|
|
3126
3185
|
var m = u.__data__;
|
|
3127
3186
|
if (!ie || m.length < n - 1)
|
|
3128
3187
|
return m.push([a, s]), this;
|
|
@@ -3130,86 +3189,86 @@ xe.exports;
|
|
|
3130
3189
|
}
|
|
3131
3190
|
return u.set(a, s), this;
|
|
3132
3191
|
}
|
|
3133
|
-
Q.prototype.clear =
|
|
3134
|
-
function
|
|
3135
|
-
var u = Ve(a) ||
|
|
3136
|
-
for (var
|
|
3137
|
-
U.call(a,
|
|
3192
|
+
Q.prototype.clear = Ir, Q.prototype.delete = Rr, Q.prototype.get = xr, Q.prototype.has = Pr, Q.prototype.set = Cr;
|
|
3193
|
+
function Ar(a, s) {
|
|
3194
|
+
var u = Ve(a) || aa(a) ? Kn(a.length, String) : [], m = u.length, v = !!m;
|
|
3195
|
+
for (var R in a)
|
|
3196
|
+
U.call(a, R) && !(v && (R == "length" || ea(R, m))) && u.push(R);
|
|
3138
3197
|
return u;
|
|
3139
3198
|
}
|
|
3140
|
-
function
|
|
3199
|
+
function Rt(a, s, u) {
|
|
3141
3200
|
var m = a[s];
|
|
3142
|
-
(!(U.call(a, s) &&
|
|
3201
|
+
(!(U.call(a, s) && At(m, u)) || u === void 0 && !(s in a)) && (a[s] = u);
|
|
3143
3202
|
}
|
|
3144
3203
|
function be(a, s) {
|
|
3145
3204
|
for (var u = a.length; u--; )
|
|
3146
|
-
if (
|
|
3205
|
+
if (At(a[u][0], s))
|
|
3147
3206
|
return u;
|
|
3148
3207
|
return -1;
|
|
3149
3208
|
}
|
|
3150
|
-
function
|
|
3209
|
+
function kr(a, s) {
|
|
3151
3210
|
return a && xt(s, $e(s), a);
|
|
3152
3211
|
}
|
|
3153
|
-
function We(a, s, u, m, v,
|
|
3212
|
+
function We(a, s, u, m, v, R, F) {
|
|
3154
3213
|
var x;
|
|
3155
|
-
if (m && (x =
|
|
3214
|
+
if (m && (x = R ? m(a, v, R, F) : m(a)), x !== void 0)
|
|
3156
3215
|
return x;
|
|
3157
3216
|
if (!De(a))
|
|
3158
3217
|
return a;
|
|
3159
|
-
var
|
|
3160
|
-
if (
|
|
3161
|
-
if (x =
|
|
3162
|
-
return
|
|
3218
|
+
var Yt = Ve(a);
|
|
3219
|
+
if (Yt) {
|
|
3220
|
+
if (x = Xr(a), !s)
|
|
3221
|
+
return Br(a, x);
|
|
3163
3222
|
} else {
|
|
3164
|
-
var X = V(a), Ft = X ==
|
|
3165
|
-
if (
|
|
3166
|
-
return
|
|
3167
|
-
if (X == _ || X == o || Ft && !
|
|
3223
|
+
var X = V(a), Ft = X == p || X == g;
|
|
3224
|
+
if (oa(a))
|
|
3225
|
+
return Lr(a, s);
|
|
3226
|
+
if (X == _ || X == o || Ft && !R) {
|
|
3168
3227
|
if (wt(a))
|
|
3169
|
-
return
|
|
3170
|
-
if (x =
|
|
3171
|
-
return
|
|
3228
|
+
return R ? a : {};
|
|
3229
|
+
if (x = Kr(Ft ? {} : a), !s)
|
|
3230
|
+
return Qr(a, kr(x, a));
|
|
3172
3231
|
} else {
|
|
3173
3232
|
if (!T[X])
|
|
3174
|
-
return
|
|
3175
|
-
x =
|
|
3233
|
+
return R ? a : {};
|
|
3234
|
+
x = Jr(a, X, We, s);
|
|
3176
3235
|
}
|
|
3177
3236
|
}
|
|
3178
3237
|
F || (F = new Q());
|
|
3179
3238
|
var Ht = F.get(a);
|
|
3180
3239
|
if (Ht)
|
|
3181
3240
|
return Ht;
|
|
3182
|
-
if (F.set(a, x), !
|
|
3183
|
-
var Ut = u ?
|
|
3184
|
-
return
|
|
3185
|
-
Ut && (Me = ze, ze = a[Me]),
|
|
3241
|
+
if (F.set(a, x), !Yt)
|
|
3242
|
+
var Ut = u ? Zr(a) : $e(a);
|
|
3243
|
+
return Zn(Ut || a, function(ze, Me) {
|
|
3244
|
+
Ut && (Me = ze, ze = a[Me]), Rt(x, Me, We(ze, s, u, m, Me, a, F));
|
|
3186
3245
|
}), x;
|
|
3187
3246
|
}
|
|
3188
|
-
function
|
|
3189
|
-
return De(a) ?
|
|
3247
|
+
function Gr(a) {
|
|
3248
|
+
return De(a) ? ar(a) : {};
|
|
3190
3249
|
}
|
|
3191
|
-
function
|
|
3250
|
+
function Yr(a, s, u) {
|
|
3192
3251
|
var m = s(a);
|
|
3193
|
-
return Ve(a) ? m :
|
|
3252
|
+
return Ve(a) ? m : Xn(m, u(a));
|
|
3194
3253
|
}
|
|
3195
|
-
function
|
|
3254
|
+
function Fr(a) {
|
|
3196
3255
|
return we.call(a);
|
|
3197
3256
|
}
|
|
3198
|
-
function
|
|
3199
|
-
if (!De(a) ||
|
|
3257
|
+
function Hr(a) {
|
|
3258
|
+
if (!De(a) || na(a))
|
|
3200
3259
|
return !1;
|
|
3201
|
-
var s =
|
|
3260
|
+
var s = Gt(a) || wt(a) ? nr : Wn;
|
|
3202
3261
|
return s.test($(a));
|
|
3203
3262
|
}
|
|
3204
|
-
function
|
|
3263
|
+
function Ur(a) {
|
|
3205
3264
|
if (!Ct(a))
|
|
3206
|
-
return
|
|
3265
|
+
return ur(a);
|
|
3207
3266
|
var s = [];
|
|
3208
3267
|
for (var u in Object(a))
|
|
3209
3268
|
U.call(a, u) && u != "constructor" && s.push(u);
|
|
3210
3269
|
return s;
|
|
3211
3270
|
}
|
|
3212
|
-
function
|
|
3271
|
+
function Lr(a, s) {
|
|
3213
3272
|
if (s)
|
|
3214
3273
|
return a.slice();
|
|
3215
3274
|
var u = new a.constructor(a.length);
|
|
@@ -3219,30 +3278,30 @@ xe.exports;
|
|
|
3219
3278
|
var s = new a.constructor(a.byteLength);
|
|
3220
3279
|
return new Et(s).set(new Et(a)), s;
|
|
3221
3280
|
}
|
|
3222
|
-
function
|
|
3281
|
+
function qr(a, s) {
|
|
3223
3282
|
var u = s ? je(a.buffer) : a.buffer;
|
|
3224
3283
|
return new a.constructor(u, a.byteOffset, a.byteLength);
|
|
3225
3284
|
}
|
|
3226
|
-
function
|
|
3285
|
+
function Wr(a, s, u) {
|
|
3227
3286
|
var m = s ? u(bt(a), !0) : bt(a);
|
|
3228
|
-
return _t(m,
|
|
3287
|
+
return _t(m, Bn, new a.constructor());
|
|
3229
3288
|
}
|
|
3230
|
-
function
|
|
3231
|
-
var s = new a.constructor(a.source,
|
|
3289
|
+
function jr(a) {
|
|
3290
|
+
var s = new a.constructor(a.source, qn.exec(a));
|
|
3232
3291
|
return s.lastIndex = a.lastIndex, s;
|
|
3233
3292
|
}
|
|
3234
|
-
function
|
|
3293
|
+
function Vr(a, s, u) {
|
|
3235
3294
|
var m = s ? u(Tt(a), !0) : Tt(a);
|
|
3236
|
-
return _t(m,
|
|
3295
|
+
return _t(m, Qn, new a.constructor());
|
|
3237
3296
|
}
|
|
3238
|
-
function
|
|
3239
|
-
return
|
|
3297
|
+
function $r(a) {
|
|
3298
|
+
return It ? Object(It.call(a)) : {};
|
|
3240
3299
|
}
|
|
3241
|
-
function
|
|
3300
|
+
function zr(a, s) {
|
|
3242
3301
|
var u = s ? je(a.buffer) : a.buffer;
|
|
3243
3302
|
return new a.constructor(u, a.byteOffset, a.length);
|
|
3244
3303
|
}
|
|
3245
|
-
function
|
|
3304
|
+
function Br(a, s) {
|
|
3246
3305
|
var u = -1, m = a.length;
|
|
3247
3306
|
for (s || (s = Array(m)); ++u < m; )
|
|
3248
3307
|
s[u] = a[u];
|
|
@@ -3250,52 +3309,52 @@ xe.exports;
|
|
|
3250
3309
|
}
|
|
3251
3310
|
function xt(a, s, u, m) {
|
|
3252
3311
|
u || (u = {});
|
|
3253
|
-
for (var v = -1,
|
|
3312
|
+
for (var v = -1, R = s.length; ++v < R; ) {
|
|
3254
3313
|
var F = s[v], x = void 0;
|
|
3255
|
-
|
|
3314
|
+
Rt(u, F, x === void 0 ? a[F] : x);
|
|
3256
3315
|
}
|
|
3257
3316
|
return u;
|
|
3258
3317
|
}
|
|
3259
|
-
function
|
|
3318
|
+
function Qr(a, s) {
|
|
3260
3319
|
return xt(a, Pt(a), s);
|
|
3261
3320
|
}
|
|
3262
|
-
function
|
|
3263
|
-
return
|
|
3321
|
+
function Zr(a) {
|
|
3322
|
+
return Yr(a, $e, Pt);
|
|
3264
3323
|
}
|
|
3265
3324
|
function Te(a, s) {
|
|
3266
3325
|
var u = a.__data__;
|
|
3267
|
-
return
|
|
3326
|
+
return ta(s) ? u[typeof s == "string" ? "string" : "hash"] : u.map;
|
|
3268
3327
|
}
|
|
3269
3328
|
function Z(a, s) {
|
|
3270
|
-
var u =
|
|
3271
|
-
return
|
|
3329
|
+
var u = Jn(a, s);
|
|
3330
|
+
return Hr(u) ? u : void 0;
|
|
3272
3331
|
}
|
|
3273
|
-
var Pt = Nt ?
|
|
3274
|
-
(He && V(new He(new ArrayBuffer(1))) !=
|
|
3332
|
+
var Pt = Nt ? Ye(Nt, Object) : ca, V = Fr;
|
|
3333
|
+
(He && V(new He(new ArrayBuffer(1))) != ge || ie && V(new ie()) != y || Ue && V(Ue.resolve()) != b || Le && V(new Le()) != P || qe && V(new qe()) != W) && (V = function(a) {
|
|
3275
3334
|
var s = we.call(a), u = s == _ ? a.constructor : void 0, m = u ? $(u) : void 0;
|
|
3276
3335
|
if (m)
|
|
3277
3336
|
switch (m) {
|
|
3278
|
-
case
|
|
3279
|
-
return
|
|
3280
|
-
case
|
|
3337
|
+
case cr:
|
|
3338
|
+
return ge;
|
|
3339
|
+
case lr:
|
|
3281
3340
|
return y;
|
|
3282
|
-
case
|
|
3341
|
+
case dr:
|
|
3283
3342
|
return b;
|
|
3284
|
-
case
|
|
3343
|
+
case mr:
|
|
3285
3344
|
return P;
|
|
3286
|
-
case
|
|
3345
|
+
case fr:
|
|
3287
3346
|
return W;
|
|
3288
3347
|
}
|
|
3289
3348
|
return s;
|
|
3290
3349
|
});
|
|
3291
|
-
function
|
|
3350
|
+
function Xr(a) {
|
|
3292
3351
|
var s = a.length, u = a.constructor(s);
|
|
3293
3352
|
return s && typeof a[0] == "string" && U.call(a, "index") && (u.index = a.index, u.input = a.input), u;
|
|
3294
3353
|
}
|
|
3295
|
-
function
|
|
3296
|
-
return typeof a.constructor == "function" && !Ct(a) ?
|
|
3354
|
+
function Kr(a) {
|
|
3355
|
+
return typeof a.constructor == "function" && !Ct(a) ? Gr(rr(a)) : {};
|
|
3297
3356
|
}
|
|
3298
|
-
function
|
|
3357
|
+
function Jr(a, s, u, m) {
|
|
3299
3358
|
var v = a.constructor;
|
|
3300
3359
|
switch (s) {
|
|
3301
3360
|
case ot:
|
|
@@ -3303,8 +3362,8 @@ xe.exports;
|
|
|
3303
3362
|
case l:
|
|
3304
3363
|
case f:
|
|
3305
3364
|
return new v(+a);
|
|
3306
|
-
case
|
|
3307
|
-
return
|
|
3365
|
+
case ge:
|
|
3366
|
+
return qr(a, m);
|
|
3308
3367
|
case st:
|
|
3309
3368
|
case ut:
|
|
3310
3369
|
case ct:
|
|
@@ -3314,28 +3373,28 @@ xe.exports;
|
|
|
3314
3373
|
case ft:
|
|
3315
3374
|
case ht:
|
|
3316
3375
|
case yt:
|
|
3317
|
-
return
|
|
3376
|
+
return zr(a, m);
|
|
3318
3377
|
case y:
|
|
3319
|
-
return
|
|
3378
|
+
return Wr(a, m, u);
|
|
3320
3379
|
case S:
|
|
3321
3380
|
case D:
|
|
3322
3381
|
return new v(a);
|
|
3323
|
-
case
|
|
3324
|
-
return
|
|
3382
|
+
case k:
|
|
3383
|
+
return jr(a);
|
|
3325
3384
|
case P:
|
|
3326
|
-
return
|
|
3385
|
+
return Vr(a, m, u);
|
|
3327
3386
|
case M:
|
|
3328
|
-
return
|
|
3387
|
+
return $r(a);
|
|
3329
3388
|
}
|
|
3330
3389
|
}
|
|
3331
|
-
function
|
|
3332
|
-
return s = s ?? i, !!s && (typeof a == "number" ||
|
|
3390
|
+
function ea(a, s) {
|
|
3391
|
+
return s = s ?? i, !!s && (typeof a == "number" || jn.test(a)) && a > -1 && a % 1 == 0 && a < s;
|
|
3333
3392
|
}
|
|
3334
|
-
function
|
|
3393
|
+
function ta(a) {
|
|
3335
3394
|
var s = typeof a;
|
|
3336
3395
|
return s == "string" || s == "number" || s == "symbol" || s == "boolean" ? a !== "__proto__" : a === null;
|
|
3337
3396
|
}
|
|
3338
|
-
function
|
|
3397
|
+
function na(a) {
|
|
3339
3398
|
return !!Dt && Dt in a;
|
|
3340
3399
|
}
|
|
3341
3400
|
function Ct(a) {
|
|
@@ -3355,50 +3414,50 @@ xe.exports;
|
|
|
3355
3414
|
}
|
|
3356
3415
|
return "";
|
|
3357
3416
|
}
|
|
3358
|
-
function
|
|
3417
|
+
function ra(a) {
|
|
3359
3418
|
return We(a, !0, !0);
|
|
3360
3419
|
}
|
|
3361
|
-
function
|
|
3420
|
+
function At(a, s) {
|
|
3362
3421
|
return a === s || a !== a && s !== s;
|
|
3363
3422
|
}
|
|
3364
|
-
function
|
|
3365
|
-
return
|
|
3423
|
+
function aa(a) {
|
|
3424
|
+
return ia(a) && U.call(a, "callee") && (!ir.call(a, "callee") || we.call(a) == o);
|
|
3366
3425
|
}
|
|
3367
3426
|
var Ve = Array.isArray;
|
|
3368
|
-
function
|
|
3369
|
-
return a != null &&
|
|
3427
|
+
function kt(a) {
|
|
3428
|
+
return a != null && sa(a.length) && !Gt(a);
|
|
3370
3429
|
}
|
|
3371
|
-
function
|
|
3372
|
-
return
|
|
3430
|
+
function ia(a) {
|
|
3431
|
+
return ua(a) && kt(a);
|
|
3373
3432
|
}
|
|
3374
|
-
var
|
|
3375
|
-
function
|
|
3433
|
+
var oa = sr || la;
|
|
3434
|
+
function Gt(a) {
|
|
3376
3435
|
var s = De(a) ? we.call(a) : "";
|
|
3377
|
-
return s ==
|
|
3436
|
+
return s == p || s == g;
|
|
3378
3437
|
}
|
|
3379
|
-
function
|
|
3438
|
+
function sa(a) {
|
|
3380
3439
|
return typeof a == "number" && a > -1 && a % 1 == 0 && a <= i;
|
|
3381
3440
|
}
|
|
3382
3441
|
function De(a) {
|
|
3383
3442
|
var s = typeof a;
|
|
3384
3443
|
return !!a && (s == "object" || s == "function");
|
|
3385
3444
|
}
|
|
3386
|
-
function
|
|
3445
|
+
function ua(a) {
|
|
3387
3446
|
return !!a && typeof a == "object";
|
|
3388
3447
|
}
|
|
3389
3448
|
function $e(a) {
|
|
3390
|
-
return
|
|
3449
|
+
return kt(a) ? Ar(a) : Ur(a);
|
|
3391
3450
|
}
|
|
3392
|
-
function
|
|
3451
|
+
function ca() {
|
|
3393
3452
|
return [];
|
|
3394
3453
|
}
|
|
3395
|
-
function
|
|
3454
|
+
function la() {
|
|
3396
3455
|
return !1;
|
|
3397
3456
|
}
|
|
3398
|
-
e.exports =
|
|
3457
|
+
e.exports = ra;
|
|
3399
3458
|
})(xe, xe.exports);
|
|
3400
|
-
var
|
|
3401
|
-
const
|
|
3459
|
+
var Ho = xe.exports;
|
|
3460
|
+
const Uo = /* @__PURE__ */ Fo(Ho), A = (e, t) => new Date(e.getTime() - Yn(t, e));
|
|
3402
3461
|
class O {
|
|
3403
3462
|
constructor(t) {
|
|
3404
3463
|
E(this, "timeframeText");
|
|
@@ -3468,90 +3527,90 @@ class O {
|
|
|
3468
3527
|
tzAdjustedDate(t) {
|
|
3469
3528
|
if (!t)
|
|
3470
3529
|
return /* @__PURE__ */ new Date();
|
|
3471
|
-
const n =
|
|
3472
|
-
return
|
|
3530
|
+
const n = Ao(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
|
|
3531
|
+
return kn(n, t);
|
|
3473
3532
|
}
|
|
3474
3533
|
}
|
|
3475
|
-
class
|
|
3534
|
+
class Lo extends O {
|
|
3476
3535
|
rawStart(t) {
|
|
3477
3536
|
let n = H(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
3478
|
-
return t && (n =
|
|
3537
|
+
return t && (n = A(n, t)), n;
|
|
3479
3538
|
}
|
|
3480
3539
|
maximumTimeframeLength() {
|
|
3481
3540
|
return 60 * 60 * 24 * 7;
|
|
3482
3541
|
}
|
|
3483
3542
|
}
|
|
3484
|
-
class
|
|
3543
|
+
class qo extends O {
|
|
3485
3544
|
rawStart(t) {
|
|
3486
3545
|
let n = re(this.tzAdjustedDate(t));
|
|
3487
|
-
return t && (n =
|
|
3546
|
+
return t && (n = A(n, t)), n;
|
|
3488
3547
|
}
|
|
3489
3548
|
maximumTimeframeLength() {
|
|
3490
3549
|
return 60 * 60 * 24 * 31;
|
|
3491
3550
|
}
|
|
3492
3551
|
}
|
|
3493
|
-
class
|
|
3552
|
+
class Wo extends O {
|
|
3494
3553
|
rawStart(t) {
|
|
3495
3554
|
let n = ne(this.tzAdjustedDate(t));
|
|
3496
|
-
return t && (n =
|
|
3555
|
+
return t && (n = A(n, t)), n;
|
|
3497
3556
|
}
|
|
3498
3557
|
maximumTimeframeLength() {
|
|
3499
3558
|
return 60 * 60 * 24 * 92;
|
|
3500
3559
|
}
|
|
3501
3560
|
}
|
|
3502
|
-
class
|
|
3561
|
+
class jo extends O {
|
|
3503
3562
|
rawStart(t) {
|
|
3504
3563
|
let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
|
|
3505
|
-
return t && (n =
|
|
3564
|
+
return t && (n = A(n, t)), n;
|
|
3506
3565
|
}
|
|
3507
3566
|
maximumTimeframeLength() {
|
|
3508
3567
|
return 60 * 60 * 24 * 366;
|
|
3509
3568
|
}
|
|
3510
3569
|
}
|
|
3511
|
-
class
|
|
3570
|
+
class Vo extends O {
|
|
3512
3571
|
rawEnd(t) {
|
|
3513
3572
|
let n = H(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
3514
|
-
return t && (n =
|
|
3573
|
+
return t && (n = A(n, t)), n;
|
|
3515
3574
|
}
|
|
3516
3575
|
rawStart(t) {
|
|
3517
3576
|
const n = this.tzAdjustedDate(t);
|
|
3518
3577
|
let r = H(n.setDate(n.getDate() - 7), {
|
|
3519
3578
|
weekStartsOn: 1
|
|
3520
3579
|
});
|
|
3521
|
-
return t && (r =
|
|
3580
|
+
return t && (r = A(r, t)), r;
|
|
3522
3581
|
}
|
|
3523
3582
|
}
|
|
3524
|
-
class
|
|
3583
|
+
class $o extends O {
|
|
3525
3584
|
rawEnd(t) {
|
|
3526
3585
|
let n = ne(this.tzAdjustedDate(t));
|
|
3527
|
-
return t && (n =
|
|
3586
|
+
return t && (n = A(n, t)), n;
|
|
3528
3587
|
}
|
|
3529
3588
|
rawStart(t) {
|
|
3530
|
-
let n = ne(
|
|
3531
|
-
return t && (n =
|
|
3589
|
+
let n = ne(Pn(this.tzAdjustedDate(t)));
|
|
3590
|
+
return t && (n = A(n, t)), n;
|
|
3532
3591
|
}
|
|
3533
3592
|
}
|
|
3534
|
-
class
|
|
3593
|
+
class zo extends O {
|
|
3535
3594
|
rawEnd(t) {
|
|
3536
3595
|
let n = re(this.tzAdjustedDate(t));
|
|
3537
|
-
return t && (n =
|
|
3596
|
+
return t && (n = A(n, t)), n;
|
|
3538
3597
|
}
|
|
3539
3598
|
rawStart(t) {
|
|
3540
|
-
let n = re(
|
|
3541
|
-
return t && (n =
|
|
3599
|
+
let n = re(xn(this.tzAdjustedDate(t)));
|
|
3600
|
+
return t && (n = A(n, t)), n;
|
|
3542
3601
|
}
|
|
3543
3602
|
}
|
|
3544
|
-
class
|
|
3603
|
+
class Bo extends O {
|
|
3545
3604
|
rawEnd(t) {
|
|
3546
3605
|
let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
|
|
3547
|
-
return t && (n =
|
|
3606
|
+
return t && (n = A(n, t)), n;
|
|
3548
3607
|
}
|
|
3549
3608
|
rawStart(t) {
|
|
3550
3609
|
let n = new Date(this.tzAdjustedDate(t).getFullYear() - 1, 0, 1);
|
|
3551
|
-
return t && (n =
|
|
3610
|
+
return t && (n = A(n, t)), n;
|
|
3552
3611
|
}
|
|
3553
3612
|
}
|
|
3554
|
-
const
|
|
3613
|
+
const Qo = /* @__PURE__ */ new Map([
|
|
3555
3614
|
[
|
|
3556
3615
|
d.FIFTEEN_MIN,
|
|
3557
3616
|
new O({
|
|
@@ -3704,7 +3763,7 @@ const jo = /* @__PURE__ */ new Map([
|
|
|
3704
3763
|
],
|
|
3705
3764
|
[
|
|
3706
3765
|
d.CURRENT_WEEK,
|
|
3707
|
-
new
|
|
3766
|
+
new Lo({
|
|
3708
3767
|
key: d.CURRENT_WEEK,
|
|
3709
3768
|
display: "This week",
|
|
3710
3769
|
timeframeText: "Week",
|
|
@@ -3722,7 +3781,7 @@ const jo = /* @__PURE__ */ new Map([
|
|
|
3722
3781
|
],
|
|
3723
3782
|
[
|
|
3724
3783
|
d.CURRENT_MONTH,
|
|
3725
|
-
new
|
|
3784
|
+
new qo({
|
|
3726
3785
|
key: d.CURRENT_MONTH,
|
|
3727
3786
|
display: "This month",
|
|
3728
3787
|
timeframeText: "Month",
|
|
@@ -3738,7 +3797,7 @@ const jo = /* @__PURE__ */ new Map([
|
|
|
3738
3797
|
],
|
|
3739
3798
|
[
|
|
3740
3799
|
d.CURRENT_QUARTER,
|
|
3741
|
-
new
|
|
3800
|
+
new Wo({
|
|
3742
3801
|
key: d.CURRENT_QUARTER,
|
|
3743
3802
|
display: "This quarter",
|
|
3744
3803
|
timeframeText: "Quarter",
|
|
@@ -3754,7 +3813,7 @@ const jo = /* @__PURE__ */ new Map([
|
|
|
3754
3813
|
],
|
|
3755
3814
|
[
|
|
3756
3815
|
d.CURRENT_YEAR,
|
|
3757
|
-
new
|
|
3816
|
+
new jo({
|
|
3758
3817
|
key: d.CURRENT_YEAR,
|
|
3759
3818
|
display: "This year",
|
|
3760
3819
|
timeframeText: "Year",
|
|
@@ -3770,7 +3829,7 @@ const jo = /* @__PURE__ */ new Map([
|
|
|
3770
3829
|
],
|
|
3771
3830
|
[
|
|
3772
3831
|
d.PREVIOUS_WEEK,
|
|
3773
|
-
new
|
|
3832
|
+
new Vo({
|
|
3774
3833
|
key: d.PREVIOUS_WEEK,
|
|
3775
3834
|
display: "Previous week",
|
|
3776
3835
|
timeframeText: "Week",
|
|
@@ -3785,14 +3844,14 @@ const jo = /* @__PURE__ */ new Map([
|
|
|
3785
3844
|
],
|
|
3786
3845
|
[
|
|
3787
3846
|
d.PREVIOUS_MONTH,
|
|
3788
|
-
new
|
|
3847
|
+
new zo({
|
|
3789
3848
|
key: d.PREVIOUS_MONTH,
|
|
3790
3849
|
display: "Previous month",
|
|
3791
3850
|
timeframeText: "Month",
|
|
3792
3851
|
timeframeLength: () => {
|
|
3793
3852
|
let e = 0;
|
|
3794
|
-
const t = re(/* @__PURE__ */ new Date()), n = re(
|
|
3795
|
-
return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e = cn(t, n)), 60 * 60 * 24 *
|
|
3853
|
+
const t = re(/* @__PURE__ */ new Date()), n = re(xn(/* @__PURE__ */ new Date()));
|
|
3854
|
+
return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e = cn(t, n)), 60 * 60 * 24 * ao((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + Qt(e);
|
|
3796
3855
|
},
|
|
3797
3856
|
defaultResponseGranularity: "daily",
|
|
3798
3857
|
dataGranularity: "daily",
|
|
@@ -3802,12 +3861,12 @@ const jo = /* @__PURE__ */ new Map([
|
|
|
3802
3861
|
],
|
|
3803
3862
|
[
|
|
3804
3863
|
d.PREVIOUS_QUARTER,
|
|
3805
|
-
new
|
|
3864
|
+
new $o({
|
|
3806
3865
|
key: d.PREVIOUS_QUARTER,
|
|
3807
3866
|
display: "Previous quarter",
|
|
3808
3867
|
timeframeText: "Quarter",
|
|
3809
3868
|
timeframeLength: () => {
|
|
3810
|
-
const e = ne(/* @__PURE__ */ new Date()), t = ne(
|
|
3869
|
+
const e = ne(/* @__PURE__ */ new Date()), t = ne(Pn(/* @__PURE__ */ new Date()));
|
|
3811
3870
|
return (e.getTime() - t.getTime()) / 1e3;
|
|
3812
3871
|
},
|
|
3813
3872
|
defaultResponseGranularity: "daily",
|
|
@@ -3818,7 +3877,7 @@ const jo = /* @__PURE__ */ new Map([
|
|
|
3818
3877
|
],
|
|
3819
3878
|
[
|
|
3820
3879
|
d.PREVIOUS_YEAR,
|
|
3821
|
-
new
|
|
3880
|
+
new Bo({
|
|
3822
3881
|
key: d.PREVIOUS_YEAR,
|
|
3823
3882
|
display: "Previous year",
|
|
3824
3883
|
timeframeText: "Year",
|
|
@@ -3834,9 +3893,9 @@ const jo = /* @__PURE__ */ new Map([
|
|
|
3834
3893
|
})
|
|
3835
3894
|
]
|
|
3836
3895
|
]);
|
|
3837
|
-
function
|
|
3896
|
+
function Es(e) {
|
|
3838
3897
|
const t = new Date(e.start), n = new Date(e.end), r = (n.getTime() - t.getTime()) / 1e3;
|
|
3839
|
-
return e.timePeriodsKey &&
|
|
3898
|
+
return e.timePeriodsKey && Uo(Qo.get(e.timePeriodsKey)) || new O({
|
|
3840
3899
|
key: "custom",
|
|
3841
3900
|
timeframeText: "custom",
|
|
3842
3901
|
display: "custom",
|
|
@@ -3849,14 +3908,14 @@ function Ts(e) {
|
|
|
3849
3908
|
allowedTiers: ["free", "plus", "enterprise"]
|
|
3850
3909
|
});
|
|
3851
3910
|
}
|
|
3852
|
-
function
|
|
3911
|
+
function Ns(e) {
|
|
3853
3912
|
return {
|
|
3854
3913
|
...e.key !== "custom" && { timePeriodsKey: e.key },
|
|
3855
3914
|
start: e.rawStart(),
|
|
3856
3915
|
end: e.rawEnd()
|
|
3857
3916
|
};
|
|
3858
3917
|
}
|
|
3859
|
-
function
|
|
3918
|
+
function vs(e) {
|
|
3860
3919
|
return {
|
|
3861
3920
|
key: e.key,
|
|
3862
3921
|
display: e.display,
|
|
@@ -3868,9 +3927,9 @@ function Ms(e) {
|
|
|
3868
3927
|
};
|
|
3869
3928
|
}
|
|
3870
3929
|
function cn(e, t) {
|
|
3871
|
-
return
|
|
3930
|
+
return oo(e.getTimezoneOffset() - t.getTimezoneOffset());
|
|
3872
3931
|
}
|
|
3873
|
-
const
|
|
3932
|
+
const Is = {
|
|
3874
3933
|
"15M": d.FIFTEEN_MIN,
|
|
3875
3934
|
"1H": d.ONE_HOUR,
|
|
3876
3935
|
"6H": d.SIX_HOUR,
|
|
@@ -3906,40 +3965,40 @@ class it {
|
|
|
3906
3965
|
return Math.floor(i * (n - t + 1)) + t;
|
|
3907
3966
|
}
|
|
3908
3967
|
}
|
|
3909
|
-
const
|
|
3968
|
+
const Rs = ({
|
|
3910
3969
|
metrics: e,
|
|
3911
3970
|
dimensionMap: t,
|
|
3912
3971
|
metaOverrides: n,
|
|
3913
3972
|
valueRange: r = [50, 500],
|
|
3914
3973
|
timeSeries: i = !1
|
|
3915
|
-
}) => i ? e.length === 1 ?
|
|
3916
|
-
const i =
|
|
3917
|
-
let
|
|
3974
|
+
}) => i ? e.length === 1 ? Zo(e[0], t, n, r) : Xo(e, n, r) : Ko(e, t, n, r), Zo = (e, t, n, r) => {
|
|
3975
|
+
const i = Un(10, 1e4), o = new it(i), [c, l] = r || [50, 500], f = Date.now() - 6 * 60 * 60 * 1e3, h = Date.now(), p = [];
|
|
3976
|
+
let g = 0;
|
|
3918
3977
|
for (let _ = f; _ <= h; _ += 60 * 60 * 1e3)
|
|
3919
3978
|
if (t)
|
|
3920
3979
|
for (const b in t)
|
|
3921
|
-
t[b].forEach((
|
|
3922
|
-
|
|
3980
|
+
t[b].forEach((k) => {
|
|
3981
|
+
g += o.next(c, l);
|
|
3923
3982
|
const P = {
|
|
3924
|
-
[b]:
|
|
3925
|
-
[e.name]:
|
|
3983
|
+
[b]: k,
|
|
3984
|
+
[e.name]: g
|
|
3926
3985
|
}, D = {
|
|
3927
3986
|
version: "1.0",
|
|
3928
3987
|
timestamp: new Date(_).toISOString(),
|
|
3929
3988
|
event: P
|
|
3930
3989
|
};
|
|
3931
|
-
|
|
3990
|
+
p.push(D);
|
|
3932
3991
|
});
|
|
3933
3992
|
else {
|
|
3934
|
-
|
|
3993
|
+
g += o.next(c, l);
|
|
3935
3994
|
const b = {
|
|
3936
3995
|
version: "1.0",
|
|
3937
3996
|
timestamp: new Date(_).toISOString(),
|
|
3938
3997
|
event: {
|
|
3939
|
-
[e.name]:
|
|
3998
|
+
[e.name]: g
|
|
3940
3999
|
}
|
|
3941
4000
|
};
|
|
3942
|
-
|
|
4001
|
+
p.push(b);
|
|
3943
4002
|
}
|
|
3944
4003
|
const y = {};
|
|
3945
4004
|
if (t)
|
|
@@ -3964,18 +4023,18 @@ const Os = ({
|
|
|
3964
4023
|
...n ?? {}
|
|
3965
4024
|
};
|
|
3966
4025
|
return {
|
|
3967
|
-
data:
|
|
4026
|
+
data: p,
|
|
3968
4027
|
meta: S
|
|
3969
4028
|
};
|
|
3970
|
-
},
|
|
3971
|
-
const r =
|
|
4029
|
+
}, Xo = (e, t, n) => {
|
|
4030
|
+
const r = Un(10, 1e4), i = new it(r), [o, c] = n || [50, 500], l = Date.now() - 6 * 60 * 60 * 1e3, f = Date.now(), h = [], p = {};
|
|
3972
4031
|
e.forEach((y) => {
|
|
3973
|
-
|
|
4032
|
+
p[y.name] = 0;
|
|
3974
4033
|
});
|
|
3975
4034
|
for (let y = l; y <= f; y += 60 * 60 * 1e3) {
|
|
3976
4035
|
const S = {};
|
|
3977
4036
|
e.forEach((b) => {
|
|
3978
|
-
|
|
4037
|
+
p[b.name] += i.next(o, c), S[b.name] = p[b.name];
|
|
3979
4038
|
});
|
|
3980
4039
|
const _ = {
|
|
3981
4040
|
version: "1.0",
|
|
@@ -3984,7 +4043,7 @@ const Os = ({
|
|
|
3984
4043
|
};
|
|
3985
4044
|
h.push(_);
|
|
3986
4045
|
}
|
|
3987
|
-
const
|
|
4046
|
+
const g = {
|
|
3988
4047
|
start: new Date(l).toISOString(),
|
|
3989
4048
|
end: new Date(f).toISOString(),
|
|
3990
4049
|
query_id: "12345",
|
|
@@ -3997,16 +4056,16 @@ const Os = ({
|
|
|
3997
4056
|
};
|
|
3998
4057
|
return {
|
|
3999
4058
|
data: h,
|
|
4000
|
-
meta:
|
|
4059
|
+
meta: g
|
|
4001
4060
|
};
|
|
4002
|
-
},
|
|
4003
|
-
const i = Math.floor(Math.random() * 9991) + 10, o = new it(i), [c, l] = r || [50, 500], f = Date.now() - 6 * 60 * 60 * 1e3, h = Date.now(),
|
|
4061
|
+
}, Ko = (e, t, n, r) => {
|
|
4062
|
+
const i = Math.floor(Math.random() * 9991) + 10, o = new it(i), [c, l] = r || [50, 500], f = Date.now() - 6 * 60 * 60 * 1e3, h = Date.now(), p = new Date((f + h) / 2).toISOString(), g = [];
|
|
4004
4063
|
if (t) {
|
|
4005
|
-
const _ = Object.keys(t), b = Object.values(t),
|
|
4064
|
+
const _ = Object.keys(t), b = Object.values(t), k = (P, D) => {
|
|
4006
4065
|
if (D === _.length) {
|
|
4007
4066
|
e.forEach((M) => {
|
|
4008
4067
|
P[M.name] = o.next(c, l);
|
|
4009
|
-
}),
|
|
4068
|
+
}), g.push({
|
|
4010
4069
|
version: "1.0",
|
|
4011
4070
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4012
4071
|
event: { ...P }
|
|
@@ -4014,17 +4073,17 @@ const Os = ({
|
|
|
4014
4073
|
return;
|
|
4015
4074
|
}
|
|
4016
4075
|
b[D].forEach((M) => {
|
|
4017
|
-
|
|
4076
|
+
k({ ...P, [_[D]]: M }, D + 1);
|
|
4018
4077
|
});
|
|
4019
4078
|
};
|
|
4020
|
-
|
|
4079
|
+
k({}, 0);
|
|
4021
4080
|
} else {
|
|
4022
4081
|
const _ = {};
|
|
4023
4082
|
e.forEach((b) => {
|
|
4024
4083
|
_[b.name] = o.next(c, l);
|
|
4025
|
-
}),
|
|
4084
|
+
}), g.push({
|
|
4026
4085
|
version: "1.0",
|
|
4027
|
-
timestamp:
|
|
4086
|
+
timestamp: p,
|
|
4028
4087
|
event: _
|
|
4029
4088
|
});
|
|
4030
4089
|
}
|
|
@@ -4050,17 +4109,17 @@ const Os = ({
|
|
|
4050
4109
|
...n ?? {}
|
|
4051
4110
|
};
|
|
4052
4111
|
return {
|
|
4053
|
-
data:
|
|
4112
|
+
data: g,
|
|
4054
4113
|
meta: S
|
|
4055
4114
|
};
|
|
4056
4115
|
};
|
|
4057
|
-
function
|
|
4116
|
+
function Un(e, t) {
|
|
4058
4117
|
return e = Math.ceil(e), t = Math.floor(t), Math.floor(Math.random() * (t - e + 1) + e);
|
|
4059
4118
|
}
|
|
4060
|
-
const
|
|
4119
|
+
const Jo = new Map(bn.map((e) => [e.code, { code: e.code, name: e.name }])), xs = (e) => {
|
|
4061
4120
|
var t;
|
|
4062
|
-
return ((t =
|
|
4063
|
-
}, ln = 1e3,
|
|
4121
|
+
return ((t = Jo.get(e)) == null ? void 0 : t.name) || e;
|
|
4122
|
+
}, ln = 1e3, es = 1e4, dn = 1e6, mn = 1e9, fn = 1e12, ce = (e, t) => {
|
|
4064
4123
|
if (t.separator === !1 || e < 1e3)
|
|
4065
4124
|
return e.toString();
|
|
4066
4125
|
const n = typeof t.separator == "string" ? t.separator : ",", r = [];
|
|
@@ -4080,19 +4139,19 @@ function Ee(e, t = {}) {
|
|
|
4080
4139
|
let n;
|
|
4081
4140
|
const r = e < 0;
|
|
4082
4141
|
r && (e = Math.abs(e)), t.precision && (e = parseFloat(e.toPrecision(t.precision)));
|
|
4083
|
-
const i = t.min10k ?
|
|
4142
|
+
const i = t.min10k ? es : ln;
|
|
4084
4143
|
return e < i || t.precision && t.precision > Math.log10(e) ? n = ce(J(e, 1, t), t) : e < dn ? n = `${J(e, ln, t)}k` : e < mn ? n = `${J(e, dn, t)}m` : e < fn ? n = `${ce(J(e, mn, t), t)}b` : n = `${ce(J(e, fn, t), t)}t`, r && (n = `-${n}`), t.capital && (n = n.toUpperCase()), t.prefix && (n = `${t.prefix}${n}`), t.suffix && (n = `${n}${t.suffix}`), n;
|
|
4085
4144
|
}
|
|
4086
4145
|
Ee.addCommas = ce;
|
|
4087
4146
|
var hn;
|
|
4088
|
-
const
|
|
4089
|
-
function
|
|
4147
|
+
const ts = typeof document < "u" && ((hn = document.documentElement) == null ? void 0 : hn.lang) || "en-US", et = new Intl.NumberFormat(ts);
|
|
4148
|
+
function Ps({
|
|
4090
4149
|
i18n: e
|
|
4091
4150
|
}) {
|
|
4092
4151
|
const t = (o, c) => {
|
|
4093
4152
|
if (isNaN(o))
|
|
4094
4153
|
return "0 B";
|
|
4095
|
-
const l = c ? Math.pow(2, 50) : 1e15, f = c ? Math.pow(2, 40) : 1e12, h = c ? Math.pow(2, 30) : 1e9,
|
|
4154
|
+
const l = c ? Math.pow(2, 50) : 1e15, f = c ? Math.pow(2, 40) : 1e12, h = c ? Math.pow(2, 30) : 1e9, p = c ? Math.pow(2, 20) : 1e6, g = c ? Math.pow(2, 10) : 1e3;
|
|
4096
4155
|
let y;
|
|
4097
4156
|
return o >= l ? y = e.formatNumber(
|
|
4098
4157
|
Number.parseFloat((o / l).toPrecision(3)),
|
|
@@ -4103,11 +4162,11 @@ function Ns({
|
|
|
4103
4162
|
) : o >= h ? y = e.formatNumber(
|
|
4104
4163
|
Number.parseFloat((o / h).toPrecision(3)),
|
|
4105
4164
|
{ style: "unit", unit: "gigabyte", unitDisplay: "narrow" }
|
|
4106
|
-
) : o >= g ? y = e.formatNumber(
|
|
4107
|
-
Number.parseFloat((o / g).toPrecision(3)),
|
|
4108
|
-
{ style: "unit", unit: "megabyte", unitDisplay: "narrow" }
|
|
4109
4165
|
) : o >= p ? y = e.formatNumber(
|
|
4110
4166
|
Number.parseFloat((o / p).toPrecision(3)),
|
|
4167
|
+
{ style: "unit", unit: "megabyte", unitDisplay: "narrow" }
|
|
4168
|
+
) : o >= g ? y = e.formatNumber(
|
|
4169
|
+
Number.parseFloat((o / g).toPrecision(3)),
|
|
4111
4170
|
{ style: "unit", unit: "kilobyte", unitDisplay: "narrow" }
|
|
4112
4171
|
) : y = e.formatNumber(
|
|
4113
4172
|
Number.parseFloat(o.toPrecision(3)),
|
|
@@ -4118,9 +4177,9 @@ function Ns({
|
|
|
4118
4177
|
isBytes1024: l = !1,
|
|
4119
4178
|
currency: f = "USD",
|
|
4120
4179
|
approximate: h = !1,
|
|
4121
|
-
translateUnit:
|
|
4180
|
+
translateUnit: p = (g) => g
|
|
4122
4181
|
} = {}) => {
|
|
4123
|
-
const
|
|
4182
|
+
const g = p(c, o);
|
|
4124
4183
|
switch (c) {
|
|
4125
4184
|
case "bytes":
|
|
4126
4185
|
return t(o, l);
|
|
@@ -4131,15 +4190,15 @@ function Ns({
|
|
|
4131
4190
|
case "token count":
|
|
4132
4191
|
case "count":
|
|
4133
4192
|
default:
|
|
4134
|
-
return isNaN(o) ? `${o}` : h ? `${Ee(o, { capital: !0 })} ${
|
|
4193
|
+
return isNaN(o) ? `${o}` : h ? `${Ee(o, { capital: !0 })} ${g}` : o >= 0.01 ? `${et.format(Number.parseFloat(o.toFixed(2)))} ${g}` : `${Number.parseFloat(o.toPrecision(4))} ${g}`;
|
|
4135
4194
|
}
|
|
4136
4195
|
}, formatBytes: t, formatCost: n, formatRange: (o, c, l, {
|
|
4137
4196
|
isBytes1024: f = !1,
|
|
4138
4197
|
currency: h = "USD",
|
|
4139
|
-
approximate:
|
|
4140
|
-
translateUnit:
|
|
4198
|
+
approximate: p = !1,
|
|
4199
|
+
translateUnit: g = (y) => y
|
|
4141
4200
|
} = {}) => {
|
|
4142
|
-
const y =
|
|
4201
|
+
const y = g(l, c);
|
|
4143
4202
|
switch (l) {
|
|
4144
4203
|
case "bytes":
|
|
4145
4204
|
return `${t(o, f)} - ${t(c, f)}`;
|
|
@@ -4152,7 +4211,7 @@ function Ns({
|
|
|
4152
4211
|
default:
|
|
4153
4212
|
if (isNaN(o) || isNaN(c))
|
|
4154
4213
|
return `${o} - ${c}`;
|
|
4155
|
-
if (
|
|
4214
|
+
if (p)
|
|
4156
4215
|
return `${Ee(o, { capital: !0 })} - ${Ee(c, { capital: !0 })} ${y}`;
|
|
4157
4216
|
}
|
|
4158
4217
|
const S = o >= 0.01 ? `${et.format(Number.parseFloat(o.toFixed(2)))}` : `${Number.parseFloat(o.toPrecision(4))}`, _ = c >= 0.01 ? `${et.format(Number.parseFloat(c.toFixed(2)))}` : `${Number.parseFloat(c.toPrecision(4))}`;
|
|
@@ -4161,92 +4220,96 @@ function Ns({
|
|
|
4161
4220
|
}
|
|
4162
4221
|
export {
|
|
4163
4222
|
bn as COUNTRIES,
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4223
|
+
Os as DeltaQueryTime,
|
|
4224
|
+
as as EXPORT_RECORD_LIMIT,
|
|
4225
|
+
Re as Granularities,
|
|
4226
|
+
is as INJECT_QUERY_PROVIDER,
|
|
4227
|
+
rs as REFRESH_INTERVAL_MS,
|
|
4169
4228
|
it as SeededRandom,
|
|
4170
|
-
|
|
4171
|
-
|
|
4229
|
+
Is as TIMEFRAME_LOOKUP,
|
|
4230
|
+
Qo as TimePeriods,
|
|
4172
4231
|
O as Timeframe,
|
|
4173
4232
|
d as TimeframeKeys,
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4233
|
+
Ss as TimeseriesQueryTime,
|
|
4234
|
+
Yo as UnaryQueryTime,
|
|
4235
|
+
Ta as agenticExploreAggregations,
|
|
4236
|
+
Ha as agenticUsageSchema,
|
|
4237
|
+
ya as aiExploreAggregations,
|
|
4238
|
+
Ga as apiUsageQuerySchema,
|
|
4239
|
+
Oa as barChartSchema,
|
|
4240
|
+
pn as basicExploreAggregations,
|
|
4241
|
+
Ya as basicQuerySchema,
|
|
4242
|
+
Hn as ceilToNearestTimeGrain,
|
|
4243
|
+
Va as chartTileConfigSchema,
|
|
4244
|
+
Ca as choroplethMapSchema,
|
|
4245
|
+
Jo as countries,
|
|
4246
|
+
_s as dashboardConfigSchema,
|
|
4247
|
+
gs as dashboardTileTypes,
|
|
4248
|
+
Da as datasourceToFilterableDimensions,
|
|
4249
|
+
Es as datePickerSelectionToTimeframe,
|
|
4250
|
+
Ia as donutChartSchema,
|
|
4191
4251
|
cn as dstOffsetHours,
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4252
|
+
gn as exploreAggregations,
|
|
4253
|
+
fa as exploreFilterTypesV2,
|
|
4254
|
+
os as extendedRelativeTimeRangeValues,
|
|
4255
|
+
ke as filterableAgenticExploreDimensions,
|
|
4256
|
+
Ae as filterableAiExploreDimensions,
|
|
4197
4257
|
Pe as filterableBasicExploreDimensions,
|
|
4198
4258
|
Ce as filterableExploreDimensions,
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4259
|
+
ga as filterableRequestDimensions,
|
|
4260
|
+
ba as filterableRequestMetrics,
|
|
4261
|
+
fs as filterableRequestWildcardDimensions,
|
|
4262
|
+
Go as floorToNearestTimeGrain,
|
|
4203
4263
|
un as formatTime,
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4264
|
+
Ts as formatTimeRange,
|
|
4265
|
+
bs as formatTimestamp,
|
|
4266
|
+
va as gaugeChartSchema,
|
|
4267
|
+
Ko as generateCrossSectionalData,
|
|
4268
|
+
Rs as generateData,
|
|
4269
|
+
Xo as generateMultipleMetricTimeSeriesData,
|
|
4270
|
+
Zo as generateSingleMetricTimeSeriesData,
|
|
4271
|
+
xs as getCountryName,
|
|
4272
|
+
ws as getFieldDataSources,
|
|
4273
|
+
Ds as granularitiesToOptions,
|
|
4274
|
+
ko as granularityMsToQuery,
|
|
4215
4275
|
yn as granularityValues,
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4276
|
+
Fa as llmUsageSchema,
|
|
4277
|
+
xa as metricCardSchema,
|
|
4278
|
+
Ms as msToGranularity,
|
|
4219
4279
|
et as numberFormatter,
|
|
4220
|
-
|
|
4221
|
-
|
|
4280
|
+
Ua as platformQuerySchema,
|
|
4281
|
+
ys as queryDatasources,
|
|
4222
4282
|
wn as queryableAgenticExploreDimensions,
|
|
4223
4283
|
_n as queryableAiExploreDimensions,
|
|
4224
4284
|
nt as queryableBasicExploreDimensions,
|
|
4225
4285
|
rt as queryableExploreDimensions,
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4286
|
+
pa as queryableRequestDimensions,
|
|
4287
|
+
wa as queryableRequestMetrics,
|
|
4288
|
+
_a as queryableRequestWildcardDimensions,
|
|
4289
|
+
Un as rand,
|
|
4290
|
+
hs as relativeTimeRangeValuesRequestV2,
|
|
4291
|
+
ms as relativeTimeRangeValuesV4,
|
|
4292
|
+
ss as reportChartTypes,
|
|
4293
|
+
ha as requestFilterTypeEmptyV2,
|
|
4294
|
+
us as requestFilterTypeEqualsV2,
|
|
4295
|
+
cs as requestFilterTypeMetricV2,
|
|
4296
|
+
ls as requestFilterTypeWildcardV2,
|
|
4297
|
+
Pa as singleValueSchema,
|
|
4298
|
+
Sa as slottableSchema,
|
|
4299
|
+
ps as stripUnknownFilters,
|
|
4300
|
+
La as tableDataGridQuerySchema,
|
|
4301
|
+
$a as tableTileConfigSchema,
|
|
4302
|
+
ja as tableTileDefinitionSchema,
|
|
4303
|
+
Ea as thresholdSchema,
|
|
4304
|
+
za as tileConfigSchema,
|
|
4305
|
+
Wa as tileDefinitionSchema,
|
|
4306
|
+
On as tileLayoutSchema,
|
|
4307
|
+
ds as timeRangeTypeV2,
|
|
4308
|
+
Ns as timeframeToDatepickerSelection,
|
|
4309
|
+
vs as timeframeToDatepickerTimeperiod,
|
|
4310
|
+
Na as timeseriesChartSchema,
|
|
4311
|
+
Ra as topNTableSchema,
|
|
4312
|
+
Ps as unitFormatter,
|
|
4313
|
+
qa as validDashboardQuery
|
|
4251
4314
|
};
|
|
4252
4315
|
//# sourceMappingURL=vitals-utilities.es.js.map
|