@kong-ui-public/analytics-utilities 11.3.0 → 11.3.1-pr.2506.47329e202.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 +21 -21
- package/dist/types/types/country-codes.d.ts +744 -2
- package/dist/types/types/country-codes.d.ts.map +1 -1
- package/dist/types/types/explore/advanced.d.ts +2 -2
- package/dist/types/types/explore/advanced.d.ts.map +1 -1
- package/dist/types/types/explore/requests.d.ts +2 -2
- package/dist/types/types/explore/requests.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 +1433 -1687
- 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 +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var b = (e, t,
|
|
4
|
-
const
|
|
5
|
-
var
|
|
6
|
-
const
|
|
1
|
+
var jr = Object.defineProperty;
|
|
2
|
+
var zr = (e, t, n) => t in e ? jr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var b = (e, t, n) => zr(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
const So = 3e4, Oo = 250, vo = "analytics-query-provider";
|
|
5
|
+
var h = /* @__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.CURRENT_WEEK = "current_week", e.CURRENT_MONTH = "current_month", e.CURRENT_QUARTER = "current_quarter", e.PREVIOUS_WEEK = "previous_week", e.PREVIOUS_MONTH = "previous_month", e.PREVIOUS_QUARTER = "previous_quarter", e))(h || {});
|
|
6
|
+
const Eo = [
|
|
7
7
|
"horizontal_bar",
|
|
8
8
|
"vertical_bar",
|
|
9
9
|
"timeseries_line",
|
|
@@ -11,7 +11,7 @@ const vs = [
|
|
|
11
11
|
"timeseries_bar",
|
|
12
12
|
"donut",
|
|
13
13
|
"single_value"
|
|
14
|
-
],
|
|
14
|
+
], Br = ["in", "not_in", "selector"], xo = ["=", "!="], Io = ["=", "!=", "<", ">", "<=", ">="], Vr = ["empty", "not_empty"], No = ["starts_with", "ends_with"], Po = ["absolute", "relative"], Xr = [
|
|
15
15
|
"15m",
|
|
16
16
|
"1h",
|
|
17
17
|
"6h",
|
|
@@ -23,7 +23,7 @@ const vs = [
|
|
|
23
23
|
"30d",
|
|
24
24
|
"current_month",
|
|
25
25
|
"previous_month"
|
|
26
|
-
],
|
|
26
|
+
], en = [
|
|
27
27
|
"secondly",
|
|
28
28
|
"tenSecondly",
|
|
29
29
|
"thirtySecondly",
|
|
@@ -37,7 +37,7 @@ const vs = [
|
|
|
37
37
|
"daily",
|
|
38
38
|
"weekly",
|
|
39
39
|
"trend"
|
|
40
|
-
], ie = (e) => e.filter((t) => t !== "time"),
|
|
40
|
+
], ie = (e) => e.filter((t) => t !== "time"), Be = [
|
|
41
41
|
"api",
|
|
42
42
|
"api_product",
|
|
43
43
|
"api_product_version",
|
|
@@ -50,24 +50,23 @@ const vs = [
|
|
|
50
50
|
"status_code",
|
|
51
51
|
"status_code_grouped",
|
|
52
52
|
"time"
|
|
53
|
-
],
|
|
53
|
+
], De = ie(Be), tn = [
|
|
54
54
|
"active_services",
|
|
55
55
|
"request_count",
|
|
56
56
|
"request_per_minute",
|
|
57
57
|
"response_latency_average"
|
|
58
|
-
],
|
|
59
|
-
...
|
|
58
|
+
], nn = [
|
|
59
|
+
...Be,
|
|
60
60
|
"application",
|
|
61
61
|
"consumer",
|
|
62
62
|
"country_code",
|
|
63
|
-
"iso_code",
|
|
64
63
|
"upstream_status_code",
|
|
65
64
|
"upstream_status_code_grouped",
|
|
66
65
|
"response_source",
|
|
67
66
|
"data_plane_node_version",
|
|
68
67
|
"realm"
|
|
69
|
-
],
|
|
70
|
-
...
|
|
68
|
+
], Se = ie(nn), $r = [
|
|
69
|
+
...tn,
|
|
71
70
|
"response_latency_p99",
|
|
72
71
|
"response_latency_p95",
|
|
73
72
|
"response_latency_p50",
|
|
@@ -89,7 +88,7 @@ const vs = [
|
|
|
89
88
|
"request_size_p50",
|
|
90
89
|
"request_size_average",
|
|
91
90
|
"request_size_sum"
|
|
92
|
-
],
|
|
91
|
+
], rn = [
|
|
93
92
|
"control_plane",
|
|
94
93
|
"control_plane_group",
|
|
95
94
|
"gateway_service",
|
|
@@ -107,7 +106,7 @@ const vs = [
|
|
|
107
106
|
"status_code",
|
|
108
107
|
"status_code_grouped",
|
|
109
108
|
"ai_plugin"
|
|
110
|
-
],
|
|
109
|
+
], Oe = ie(rn), Zr = [
|
|
111
110
|
"total_tokens",
|
|
112
111
|
"prompt_tokens",
|
|
113
112
|
"completion_tokens",
|
|
@@ -118,7 +117,7 @@ const vs = [
|
|
|
118
117
|
"llm_latency_average",
|
|
119
118
|
"llm_embeddings_tokens",
|
|
120
119
|
"llm_embeddings_cost"
|
|
121
|
-
],
|
|
120
|
+
], Qr = [
|
|
122
121
|
"api",
|
|
123
122
|
"api_product",
|
|
124
123
|
"api_product_version",
|
|
@@ -136,7 +135,6 @@ const vs = [
|
|
|
136
135
|
"header_host",
|
|
137
136
|
"header_user_agent",
|
|
138
137
|
"http_method",
|
|
139
|
-
"iso_code",
|
|
140
138
|
"portal",
|
|
141
139
|
"realm",
|
|
142
140
|
"request_id",
|
|
@@ -153,7 +151,7 @@ const vs = [
|
|
|
153
151
|
"upstream_uri",
|
|
154
152
|
"upstream_status_code_grouped",
|
|
155
153
|
"websocket"
|
|
156
|
-
],
|
|
154
|
+
], Kr = ie(Qr), Jr = [
|
|
157
155
|
"auth_type",
|
|
158
156
|
"client_ip",
|
|
159
157
|
"country_code",
|
|
@@ -169,7 +167,7 @@ const vs = [
|
|
|
169
167
|
"service_protocol",
|
|
170
168
|
"trace_id",
|
|
171
169
|
"upstream_uri"
|
|
172
|
-
],
|
|
170
|
+
], Co = Jr, ea = [
|
|
173
171
|
"ai_count",
|
|
174
172
|
"latencies_response_ms",
|
|
175
173
|
"latencies_upstream_ms",
|
|
@@ -179,517 +177,265 @@ const vs = [
|
|
|
179
177
|
"response_header_content_length",
|
|
180
178
|
"status_code",
|
|
181
179
|
"upstream_status_code"
|
|
182
|
-
], ta = ie(ea),
|
|
180
|
+
], ta = ie(ea), Ro = [
|
|
183
181
|
"15M",
|
|
184
182
|
"1H",
|
|
185
183
|
"6H",
|
|
186
184
|
"12H",
|
|
187
185
|
"24H",
|
|
188
186
|
"7D"
|
|
189
|
-
],
|
|
190
|
-
basic: new Set(
|
|
191
|
-
api_usage: new Set(
|
|
192
|
-
llm_usage: new Set(
|
|
193
|
-
},
|
|
194
|
-
"AF",
|
|
195
|
-
|
|
196
|
-
"
|
|
197
|
-
|
|
198
|
-
"
|
|
199
|
-
|
|
200
|
-
"
|
|
201
|
-
|
|
202
|
-
"
|
|
203
|
-
|
|
204
|
-
"
|
|
205
|
-
|
|
206
|
-
"
|
|
207
|
-
|
|
208
|
-
"
|
|
209
|
-
|
|
210
|
-
"
|
|
211
|
-
|
|
212
|
-
"
|
|
213
|
-
|
|
214
|
-
"
|
|
215
|
-
|
|
216
|
-
"
|
|
217
|
-
|
|
218
|
-
"
|
|
219
|
-
|
|
220
|
-
"
|
|
221
|
-
|
|
222
|
-
"
|
|
223
|
-
|
|
224
|
-
"
|
|
225
|
-
|
|
226
|
-
"
|
|
227
|
-
|
|
228
|
-
"
|
|
229
|
-
|
|
230
|
-
"
|
|
231
|
-
|
|
232
|
-
"
|
|
233
|
-
|
|
234
|
-
"
|
|
235
|
-
|
|
236
|
-
"
|
|
237
|
-
|
|
238
|
-
"
|
|
239
|
-
|
|
240
|
-
"
|
|
241
|
-
|
|
242
|
-
"
|
|
243
|
-
|
|
244
|
-
"
|
|
245
|
-
|
|
246
|
-
"
|
|
247
|
-
|
|
248
|
-
"
|
|
249
|
-
|
|
250
|
-
"
|
|
251
|
-
|
|
252
|
-
"
|
|
253
|
-
|
|
254
|
-
"
|
|
255
|
-
|
|
256
|
-
"
|
|
257
|
-
|
|
258
|
-
"
|
|
259
|
-
|
|
260
|
-
"
|
|
261
|
-
|
|
262
|
-
"
|
|
263
|
-
|
|
264
|
-
"
|
|
265
|
-
|
|
266
|
-
"
|
|
267
|
-
|
|
268
|
-
"
|
|
269
|
-
|
|
270
|
-
"
|
|
271
|
-
|
|
272
|
-
"
|
|
273
|
-
|
|
274
|
-
"
|
|
275
|
-
|
|
276
|
-
"
|
|
277
|
-
|
|
278
|
-
"
|
|
279
|
-
|
|
280
|
-
"
|
|
281
|
-
|
|
282
|
-
"
|
|
283
|
-
|
|
284
|
-
"
|
|
285
|
-
|
|
286
|
-
"
|
|
287
|
-
|
|
288
|
-
"
|
|
289
|
-
|
|
290
|
-
"
|
|
291
|
-
|
|
292
|
-
"
|
|
293
|
-
|
|
294
|
-
"
|
|
295
|
-
|
|
296
|
-
"
|
|
297
|
-
|
|
298
|
-
"
|
|
299
|
-
|
|
300
|
-
"
|
|
301
|
-
|
|
302
|
-
"
|
|
303
|
-
|
|
304
|
-
"
|
|
305
|
-
|
|
306
|
-
"
|
|
307
|
-
|
|
308
|
-
"
|
|
309
|
-
|
|
310
|
-
"
|
|
311
|
-
|
|
312
|
-
"
|
|
313
|
-
|
|
314
|
-
"
|
|
315
|
-
|
|
316
|
-
"
|
|
317
|
-
|
|
318
|
-
"
|
|
319
|
-
|
|
320
|
-
"
|
|
321
|
-
|
|
322
|
-
"
|
|
323
|
-
|
|
324
|
-
"
|
|
325
|
-
|
|
326
|
-
"
|
|
327
|
-
|
|
328
|
-
"
|
|
329
|
-
|
|
330
|
-
"
|
|
331
|
-
|
|
332
|
-
"
|
|
333
|
-
|
|
334
|
-
"
|
|
335
|
-
|
|
336
|
-
"
|
|
337
|
-
|
|
338
|
-
"
|
|
339
|
-
|
|
340
|
-
"
|
|
341
|
-
|
|
342
|
-
"
|
|
343
|
-
|
|
344
|
-
"
|
|
345
|
-
|
|
346
|
-
"
|
|
347
|
-
|
|
348
|
-
"
|
|
349
|
-
|
|
350
|
-
"
|
|
351
|
-
|
|
352
|
-
"
|
|
353
|
-
|
|
354
|
-
"
|
|
355
|
-
|
|
356
|
-
"
|
|
357
|
-
|
|
358
|
-
"
|
|
359
|
-
|
|
360
|
-
"
|
|
361
|
-
|
|
362
|
-
"
|
|
363
|
-
|
|
364
|
-
"
|
|
365
|
-
|
|
366
|
-
"
|
|
367
|
-
|
|
368
|
-
"
|
|
369
|
-
|
|
370
|
-
"
|
|
371
|
-
|
|
372
|
-
"
|
|
373
|
-
|
|
374
|
-
"
|
|
375
|
-
|
|
376
|
-
"
|
|
377
|
-
|
|
378
|
-
"
|
|
379
|
-
|
|
380
|
-
"
|
|
381
|
-
|
|
382
|
-
"
|
|
383
|
-
|
|
384
|
-
"
|
|
385
|
-
|
|
386
|
-
"
|
|
387
|
-
|
|
388
|
-
"
|
|
389
|
-
|
|
390
|
-
"
|
|
391
|
-
|
|
392
|
-
"
|
|
393
|
-
|
|
394
|
-
"
|
|
395
|
-
|
|
396
|
-
"
|
|
397
|
-
|
|
398
|
-
"
|
|
399
|
-
|
|
400
|
-
"
|
|
401
|
-
|
|
402
|
-
"
|
|
403
|
-
|
|
404
|
-
"
|
|
405
|
-
|
|
406
|
-
"
|
|
407
|
-
|
|
408
|
-
"
|
|
409
|
-
|
|
410
|
-
"
|
|
411
|
-
|
|
412
|
-
"
|
|
413
|
-
|
|
414
|
-
"
|
|
415
|
-
|
|
416
|
-
"
|
|
417
|
-
|
|
418
|
-
"
|
|
419
|
-
|
|
420
|
-
"
|
|
421
|
-
|
|
422
|
-
"
|
|
423
|
-
|
|
424
|
-
"
|
|
425
|
-
|
|
426
|
-
"
|
|
427
|
-
|
|
428
|
-
"
|
|
429
|
-
|
|
430
|
-
"
|
|
431
|
-
|
|
432
|
-
"
|
|
433
|
-
|
|
434
|
-
"
|
|
435
|
-
|
|
436
|
-
"
|
|
437
|
-
|
|
438
|
-
"
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
// Latvia
|
|
442
|
-
"LB",
|
|
443
|
-
// Lebanon
|
|
444
|
-
"LS",
|
|
445
|
-
// Lesotho
|
|
446
|
-
"LR",
|
|
447
|
-
// Liberia
|
|
448
|
-
"LY",
|
|
449
|
-
// Libya
|
|
450
|
-
"LI",
|
|
451
|
-
// Liechtenstein
|
|
452
|
-
"LT",
|
|
453
|
-
// Lithuania
|
|
454
|
-
"LU",
|
|
455
|
-
// Luxembourg
|
|
456
|
-
"MO",
|
|
457
|
-
// Macao
|
|
458
|
-
"MG",
|
|
459
|
-
// Madagascar
|
|
460
|
-
"MW",
|
|
461
|
-
// Malawi
|
|
462
|
-
"MY",
|
|
463
|
-
// Malaysia
|
|
464
|
-
"MV",
|
|
465
|
-
// Maldives
|
|
466
|
-
"ML",
|
|
467
|
-
// Mali
|
|
468
|
-
"MT",
|
|
469
|
-
// Malta
|
|
470
|
-
"MH",
|
|
471
|
-
// Marshall Islands
|
|
472
|
-
"MQ",
|
|
473
|
-
// Martinique
|
|
474
|
-
"MR",
|
|
475
|
-
// Mauritania
|
|
476
|
-
"MU",
|
|
477
|
-
// Mauritius
|
|
478
|
-
"YT",
|
|
479
|
-
// Mayotte
|
|
480
|
-
"MX",
|
|
481
|
-
// Mexico
|
|
482
|
-
"FM",
|
|
483
|
-
// Micronesia (Federated States of)
|
|
484
|
-
"MD",
|
|
485
|
-
// Moldova (Republic of)
|
|
486
|
-
"MC",
|
|
487
|
-
// Monaco
|
|
488
|
-
"MN",
|
|
489
|
-
// Mongolia
|
|
490
|
-
"ME",
|
|
491
|
-
// Montenegro
|
|
492
|
-
"MS",
|
|
493
|
-
// Montserrat
|
|
494
|
-
"MA",
|
|
495
|
-
// Morocco
|
|
496
|
-
"MZ",
|
|
497
|
-
// Mozambique
|
|
498
|
-
"MM",
|
|
499
|
-
// Myanmar
|
|
500
|
-
"NA",
|
|
501
|
-
// Namibia
|
|
502
|
-
"NR",
|
|
503
|
-
// Nauru
|
|
504
|
-
"NP",
|
|
505
|
-
// Nepal
|
|
506
|
-
"NL",
|
|
507
|
-
// Netherlands
|
|
508
|
-
"NC",
|
|
509
|
-
// New Caledonia
|
|
510
|
-
"NZ",
|
|
511
|
-
// New Zealand
|
|
512
|
-
"NI",
|
|
513
|
-
// Nicaragua
|
|
514
|
-
"NE",
|
|
515
|
-
// Niger
|
|
516
|
-
"NG",
|
|
517
|
-
// Nigeria
|
|
518
|
-
"NU",
|
|
519
|
-
// Niue
|
|
520
|
-
"NF",
|
|
521
|
-
// Norfolk Island
|
|
522
|
-
"MK",
|
|
523
|
-
// North Macedonia
|
|
524
|
-
"MP",
|
|
525
|
-
// Northern Mariana Islands
|
|
526
|
-
"NO",
|
|
527
|
-
// Norway
|
|
528
|
-
"OM",
|
|
529
|
-
// Oman
|
|
530
|
-
"PK",
|
|
531
|
-
// Pakistan
|
|
532
|
-
"PW",
|
|
533
|
-
// Palau
|
|
534
|
-
"PS",
|
|
535
|
-
// Palestine, State of
|
|
536
|
-
"PA",
|
|
537
|
-
// Panama
|
|
538
|
-
"PG",
|
|
539
|
-
// Papua New Guinea
|
|
540
|
-
"PY",
|
|
541
|
-
// Paraguay
|
|
542
|
-
"PE",
|
|
543
|
-
// Peru
|
|
544
|
-
"PH",
|
|
545
|
-
// Philippines
|
|
546
|
-
"PN",
|
|
547
|
-
// Pitcairn
|
|
548
|
-
"PL",
|
|
549
|
-
// Poland
|
|
550
|
-
"PT",
|
|
551
|
-
// Portugal
|
|
552
|
-
"PR",
|
|
553
|
-
// Puerto Rico
|
|
554
|
-
"QA",
|
|
555
|
-
// Qatar
|
|
556
|
-
"RE",
|
|
557
|
-
// Réunion
|
|
558
|
-
"RO",
|
|
559
|
-
// Romania
|
|
560
|
-
"RU",
|
|
561
|
-
// Russian Federation
|
|
562
|
-
"RW",
|
|
563
|
-
// Rwanda
|
|
564
|
-
"BL",
|
|
565
|
-
// Saint Barthélemy
|
|
566
|
-
"SH",
|
|
567
|
-
// Saint Helena, Ascension and Tristan da Cunha
|
|
568
|
-
"KN",
|
|
569
|
-
// Saint Kitts and Nevis
|
|
570
|
-
"LC",
|
|
571
|
-
// Saint Lucia
|
|
572
|
-
"MF",
|
|
573
|
-
// Saint Martin (French part)
|
|
574
|
-
"PM",
|
|
575
|
-
// Saint Pierre and Miquelon
|
|
576
|
-
"VC",
|
|
577
|
-
// Saint Vincent and the Grenadines
|
|
578
|
-
"WS",
|
|
579
|
-
// Samoa
|
|
580
|
-
"SM",
|
|
581
|
-
// San Marino
|
|
582
|
-
"ST",
|
|
583
|
-
// Sao Tome and Principe
|
|
584
|
-
"SA",
|
|
585
|
-
// Saudi Arabia
|
|
586
|
-
"SN",
|
|
587
|
-
// Senegal
|
|
588
|
-
"RS",
|
|
589
|
-
// Serbia
|
|
590
|
-
"SC",
|
|
591
|
-
// Seychelles
|
|
592
|
-
"SL",
|
|
593
|
-
// Sierra Leone
|
|
594
|
-
"SG",
|
|
595
|
-
// Singapore
|
|
596
|
-
"SX",
|
|
597
|
-
// Sint Maarten (Dutch part)
|
|
598
|
-
"SK",
|
|
599
|
-
// Slovakia
|
|
600
|
-
"SI",
|
|
601
|
-
// Slovenia
|
|
602
|
-
"SB",
|
|
603
|
-
// Solomon Islands
|
|
604
|
-
"SO",
|
|
605
|
-
// Somalia
|
|
606
|
-
"ZA",
|
|
607
|
-
// South Africa
|
|
608
|
-
"GS",
|
|
609
|
-
// South Georgia and the South Sandwich Islands
|
|
610
|
-
"SS",
|
|
611
|
-
// South Sudan
|
|
612
|
-
"ES",
|
|
613
|
-
// Spain
|
|
614
|
-
"LK",
|
|
615
|
-
// Sri Lanka
|
|
616
|
-
"SD",
|
|
617
|
-
// Sudan
|
|
618
|
-
"SR",
|
|
619
|
-
// Suriname
|
|
620
|
-
"SJ",
|
|
621
|
-
// Svalbard and Jan Mayen
|
|
622
|
-
"SE",
|
|
623
|
-
// Sweden
|
|
624
|
-
"CH",
|
|
625
|
-
// Switzerland
|
|
626
|
-
"SY",
|
|
627
|
-
// Syrian Arab Republic
|
|
628
|
-
"TW",
|
|
629
|
-
// Taiwan, Province of China
|
|
630
|
-
"TJ",
|
|
631
|
-
// Tajikistan
|
|
632
|
-
"TZ",
|
|
633
|
-
// Tanzania, United Republic of
|
|
634
|
-
"TH",
|
|
635
|
-
// Thailand
|
|
636
|
-
"TL",
|
|
637
|
-
// Timor-Leste
|
|
638
|
-
"TG",
|
|
639
|
-
// Togo
|
|
640
|
-
"TK",
|
|
641
|
-
// Tokelau
|
|
642
|
-
"TO",
|
|
643
|
-
// Tonga
|
|
644
|
-
"TT",
|
|
645
|
-
// Trinidad and Tobago
|
|
646
|
-
"TN",
|
|
647
|
-
// Tunisia
|
|
648
|
-
"TR",
|
|
649
|
-
// Turkey
|
|
650
|
-
"TM",
|
|
651
|
-
// Turkmenistan
|
|
652
|
-
"TC",
|
|
653
|
-
// Turks and Caicos Islands
|
|
654
|
-
"TV",
|
|
655
|
-
// Tuvalu
|
|
656
|
-
"UG",
|
|
657
|
-
// Uganda
|
|
658
|
-
"UA",
|
|
659
|
-
// Ukraine
|
|
660
|
-
"AE",
|
|
661
|
-
// United Arab Emirates
|
|
662
|
-
"GB",
|
|
663
|
-
// United Kingdom of Great Britain and Northern Ireland
|
|
664
|
-
"UM",
|
|
665
|
-
// United States Minor Outlying Islands
|
|
666
|
-
"US",
|
|
667
|
-
// United States of America
|
|
668
|
-
"UY",
|
|
669
|
-
// Uruguay
|
|
670
|
-
"UZ",
|
|
671
|
-
// Uzbekistan
|
|
672
|
-
"VU",
|
|
673
|
-
// Vanuatu
|
|
674
|
-
"VE",
|
|
675
|
-
// Venezuela (Bolivarian Republic of)
|
|
676
|
-
"VN",
|
|
677
|
-
// Viet Nam
|
|
678
|
-
"VG",
|
|
679
|
-
// Virgin Islands (British)
|
|
680
|
-
"VI",
|
|
681
|
-
// Virgin Islands (U.S.)
|
|
682
|
-
"WF",
|
|
683
|
-
// Wallis and Futuna
|
|
684
|
-
"EH",
|
|
685
|
-
// Western Sahara
|
|
686
|
-
"YE",
|
|
687
|
-
// Yemen
|
|
688
|
-
"ZM",
|
|
689
|
-
// Zambia
|
|
690
|
-
"ZW"
|
|
691
|
-
// Zimbabwe
|
|
692
|
-
], Ys = [
|
|
187
|
+
], ko = ["basic", "api_usage", "llm_usage"], na = {
|
|
188
|
+
basic: new Set(De),
|
|
189
|
+
api_usage: new Set(Se),
|
|
190
|
+
llm_usage: new Set(Oe)
|
|
191
|
+
}, Go = (e, t) => t.filter((n) => na[e].has(n.field)), ra = [
|
|
192
|
+
{ code: "AF", name: "Afghanistan" },
|
|
193
|
+
{ code: "AX", name: "Aland Islands" },
|
|
194
|
+
{ code: "AL", name: "Albania" },
|
|
195
|
+
{ code: "DZ", name: "Algeria" },
|
|
196
|
+
{ code: "AS", name: "American Samoa" },
|
|
197
|
+
{ code: "AD", name: "Andorra" },
|
|
198
|
+
{ code: "AO", name: "Angola" },
|
|
199
|
+
{ code: "AI", name: "Anguilla" },
|
|
200
|
+
{ code: "AQ", name: "Antarctica" },
|
|
201
|
+
{ code: "AG", name: "Antigua and Barbuda" },
|
|
202
|
+
{ code: "AR", name: "Argentina" },
|
|
203
|
+
{ code: "AM", name: "Armenia" },
|
|
204
|
+
{ code: "AW", name: "Aruba" },
|
|
205
|
+
{ code: "AU", name: "Australia" },
|
|
206
|
+
{ code: "AT", name: "Austria" },
|
|
207
|
+
{ code: "AZ", name: "Azerbaijan" },
|
|
208
|
+
{ code: "BS", name: "Bahamas" },
|
|
209
|
+
{ code: "BH", name: "Bahrain" },
|
|
210
|
+
{ code: "BD", name: "Bangladesh" },
|
|
211
|
+
{ code: "BB", name: "Barbados" },
|
|
212
|
+
{ code: "BY", name: "Belarus" },
|
|
213
|
+
{ code: "BE", name: "Belgium" },
|
|
214
|
+
{ code: "BZ", name: "Belize" },
|
|
215
|
+
{ code: "BJ", name: "Benin" },
|
|
216
|
+
{ code: "BM", name: "Bermuda" },
|
|
217
|
+
{ code: "BT", name: "Bhutan" },
|
|
218
|
+
{ code: "BO", name: "Bolivia" },
|
|
219
|
+
{ code: "BA", name: "Bosnia and Herzegovina" },
|
|
220
|
+
{ code: "BW", name: "Botswana" },
|
|
221
|
+
{ code: "BV", name: "Bouvet Island" },
|
|
222
|
+
{ code: "BR", name: "Brazil" },
|
|
223
|
+
{ code: "IO", name: "British Indian Ocean Territory" },
|
|
224
|
+
{ code: "BN", name: "Brunei Darussalam" },
|
|
225
|
+
{ code: "BG", name: "Bulgaria" },
|
|
226
|
+
{ code: "BF", name: "Burkina Faso" },
|
|
227
|
+
{ code: "BI", name: "Burundi" },
|
|
228
|
+
{ code: "KH", name: "Cambodia" },
|
|
229
|
+
{ code: "CM", name: "Cameroon" },
|
|
230
|
+
{ code: "CA", name: "Canada" },
|
|
231
|
+
{ code: "CV", name: "Cape Verde" },
|
|
232
|
+
{ code: "KY", name: "Cayman Islands" },
|
|
233
|
+
{ code: "CF", name: "Central African Republic" },
|
|
234
|
+
{ code: "TD", name: "Chad" },
|
|
235
|
+
{ code: "CL", name: "Chile" },
|
|
236
|
+
{ code: "CN", name: "China" },
|
|
237
|
+
{ code: "CX", name: "Christmas Island" },
|
|
238
|
+
{ code: "CC", name: "Cocos (Keeling) Islands" },
|
|
239
|
+
{ code: "CO", name: "Colombia" },
|
|
240
|
+
{ code: "KM", name: "Comoros" },
|
|
241
|
+
{ code: "CG", name: "Congo" },
|
|
242
|
+
{ code: "CD", name: "Democratic Republic of the Congo" },
|
|
243
|
+
{ code: "CK", name: "Cook Islands" },
|
|
244
|
+
{ code: "CR", name: "Costa Rica" },
|
|
245
|
+
{ code: "CI", name: "Cote d'Ivoire" },
|
|
246
|
+
{ code: "HR", name: "Croatia" },
|
|
247
|
+
{ code: "CU", name: "Cuba" },
|
|
248
|
+
{ code: "CY", name: "Cyprus" },
|
|
249
|
+
{ code: "CZ", name: "Czech Republic" },
|
|
250
|
+
{ code: "DK", name: "Denmark" },
|
|
251
|
+
{ code: "DJ", name: "Djibouti" },
|
|
252
|
+
{ code: "DM", name: "Dominica" },
|
|
253
|
+
{ code: "DO", name: "Dominican Republic" },
|
|
254
|
+
{ code: "EC", name: "Ecuador" },
|
|
255
|
+
{ code: "EG", name: "Egypt" },
|
|
256
|
+
{ code: "SV", name: "El Salvador" },
|
|
257
|
+
{ code: "GQ", name: "Equatorial Guinea" },
|
|
258
|
+
{ code: "ER", name: "Eritrea" },
|
|
259
|
+
{ code: "EE", name: "Estonia" },
|
|
260
|
+
{ code: "ET", name: "Ethiopia" },
|
|
261
|
+
{ code: "FK", name: "Falkland Islands (Malvinas)" },
|
|
262
|
+
{ code: "FO", name: "Faroe Islands" },
|
|
263
|
+
{ code: "FJ", name: "Fiji" },
|
|
264
|
+
{ code: "FI", name: "Finland" },
|
|
265
|
+
{ code: "FR", name: "France" },
|
|
266
|
+
{ code: "GF", name: "French Guiana" },
|
|
267
|
+
{ code: "PF", name: "French Polynesia" },
|
|
268
|
+
{ code: "TF", name: "French Southern Territories" },
|
|
269
|
+
{ code: "GA", name: "Gabon" },
|
|
270
|
+
{ code: "GM", name: "Gambia" },
|
|
271
|
+
{ code: "GE", name: "Georgia" },
|
|
272
|
+
{ code: "DE", name: "Germany" },
|
|
273
|
+
{ code: "GH", name: "Ghana" },
|
|
274
|
+
{ code: "GI", name: "Gibraltar" },
|
|
275
|
+
{ code: "GR", name: "Greece" },
|
|
276
|
+
{ code: "GL", name: "Greenland" },
|
|
277
|
+
{ code: "GD", name: "Grenada" },
|
|
278
|
+
{ code: "GP", name: "Guadeloupe" },
|
|
279
|
+
{ code: "GU", name: "Guam" },
|
|
280
|
+
{ code: "GT", name: "Guatemala" },
|
|
281
|
+
{ code: "GG", name: "Guernsey" },
|
|
282
|
+
{ code: "GN", name: "Guinea" },
|
|
283
|
+
{ code: "GW", name: "Guinea-Bissau" },
|
|
284
|
+
{ code: "GY", name: "Guyana" },
|
|
285
|
+
{ code: "HT", name: "Haiti" },
|
|
286
|
+
{ code: "HM", name: "Heard Island and McDonald Islands" },
|
|
287
|
+
{ code: "VA", name: "The Vatican" },
|
|
288
|
+
{ code: "HN", name: "Honduras" },
|
|
289
|
+
{ code: "HK", name: "Hong Kong" },
|
|
290
|
+
{ code: "HU", name: "Hungary" },
|
|
291
|
+
{ code: "IS", name: "Iceland" },
|
|
292
|
+
{ code: "IN", name: "India" },
|
|
293
|
+
{ code: "ID", name: "Indonesia" },
|
|
294
|
+
{ code: "IR", name: "Iran" },
|
|
295
|
+
{ code: "IQ", name: "Iraq" },
|
|
296
|
+
{ code: "IE", name: "Ireland" },
|
|
297
|
+
{ code: "IM", name: "Isle of Man" },
|
|
298
|
+
{ code: "IL", name: "Israel" },
|
|
299
|
+
{ code: "IT", name: "Italy" },
|
|
300
|
+
{ code: "JM", name: "Jamaica" },
|
|
301
|
+
{ code: "JP", name: "Japan" },
|
|
302
|
+
{ code: "JE", name: "Jersey" },
|
|
303
|
+
{ code: "JO", name: "Jordan" },
|
|
304
|
+
{ code: "KZ", name: "Kazakhstan" },
|
|
305
|
+
{ code: "KE", name: "Kenya" },
|
|
306
|
+
{ code: "KI", name: "Kiribati" },
|
|
307
|
+
{ code: "KP", name: "North Korea" },
|
|
308
|
+
{ code: "KR", name: "South Korea" },
|
|
309
|
+
{ code: "KW", name: "Kuwait" },
|
|
310
|
+
{ code: "KG", name: "Kyrgyzstan" },
|
|
311
|
+
{ code: "LA", name: "Laos" },
|
|
312
|
+
{ code: "LV", name: "Latvia" },
|
|
313
|
+
{ code: "LB", name: "Lebanon" },
|
|
314
|
+
{ code: "LS", name: "Lesotho" },
|
|
315
|
+
{ code: "LR", name: "Liberia" },
|
|
316
|
+
{ code: "LY", name: "Libya" },
|
|
317
|
+
{ code: "LI", name: "Liechtenstein" },
|
|
318
|
+
{ code: "LT", name: "Lithuania" },
|
|
319
|
+
{ code: "LU", name: "Luxembourg" },
|
|
320
|
+
{ code: "MO", name: "Macao" },
|
|
321
|
+
{ code: "MK", name: "Macedonia" },
|
|
322
|
+
{ code: "MG", name: "Madagascar" },
|
|
323
|
+
{ code: "MW", name: "Malawi" },
|
|
324
|
+
{ code: "MY", name: "Malaysia" },
|
|
325
|
+
{ code: "MV", name: "Maldives" },
|
|
326
|
+
{ code: "ML", name: "Mali" },
|
|
327
|
+
{ code: "MT", name: "Malta" },
|
|
328
|
+
{ code: "MH", name: "Marshall Islands" },
|
|
329
|
+
{ code: "MQ", name: "Martinique" },
|
|
330
|
+
{ code: "MR", name: "Mauritania" },
|
|
331
|
+
{ code: "MU", name: "Mauritius" },
|
|
332
|
+
{ code: "YT", name: "Mayotte" },
|
|
333
|
+
{ code: "MX", name: "Mexico" },
|
|
334
|
+
{ code: "FM", name: "Micronesia, " },
|
|
335
|
+
{ code: "MD", name: "Moldova," },
|
|
336
|
+
{ code: "MC", name: "Monaco" },
|
|
337
|
+
{ code: "MN", name: "Mongolia" },
|
|
338
|
+
{ code: "ME", name: "Montenegro" },
|
|
339
|
+
{ code: "MS", name: "Montserrat" },
|
|
340
|
+
{ code: "MA", name: "Morocco" },
|
|
341
|
+
{ code: "MZ", name: "Mozambique" },
|
|
342
|
+
{ code: "MM", name: "Myanmar" },
|
|
343
|
+
{ code: "NA", name: "Namibia" },
|
|
344
|
+
{ code: "NR", name: "Nauru" },
|
|
345
|
+
{ code: "NP", name: "Nepal" },
|
|
346
|
+
{ code: "NL", name: "Netherlands" },
|
|
347
|
+
{ code: "NC", name: "New Caledonia" },
|
|
348
|
+
{ code: "NZ", name: "New Zealand" },
|
|
349
|
+
{ code: "NI", name: "Nicaragua" },
|
|
350
|
+
{ code: "NE", name: "Niger" },
|
|
351
|
+
{ code: "NG", name: "Nigeria" },
|
|
352
|
+
{ code: "NU", name: "Niue" },
|
|
353
|
+
{ code: "NF", name: "Norfolk Island" },
|
|
354
|
+
{ code: "MP", name: "Northern Mariana Islands" },
|
|
355
|
+
{ code: "NO", name: "Norway" },
|
|
356
|
+
{ code: "OM", name: "Oman" },
|
|
357
|
+
{ code: "PK", name: "Pakistan" },
|
|
358
|
+
{ code: "PW", name: "Palau" },
|
|
359
|
+
{ code: "PA", name: "Panama" },
|
|
360
|
+
{ code: "PG", name: "Papua New Guinea" },
|
|
361
|
+
{ code: "PY", name: "Paraguay" },
|
|
362
|
+
{ code: "PE", name: "Peru" },
|
|
363
|
+
{ code: "PH", name: "Philippines" },
|
|
364
|
+
{ code: "PN", name: "Pitcairn" },
|
|
365
|
+
{ code: "PL", name: "Poland" },
|
|
366
|
+
{ code: "PT", name: "Portugal" },
|
|
367
|
+
{ code: "PR", name: "Puerto Rico" },
|
|
368
|
+
{ code: "QA", name: "Qatar" },
|
|
369
|
+
{ code: "RE", name: "Reunion" },
|
|
370
|
+
{ code: "RO", name: "Romania" },
|
|
371
|
+
{ code: "RU", name: "Russia" },
|
|
372
|
+
{ code: "RW", name: "Rwanda" },
|
|
373
|
+
{ code: "BL", name: "Saint Barthelemy" },
|
|
374
|
+
{ code: "SH", name: "Saint Helena" },
|
|
375
|
+
{ code: "KN", name: "Saint Kitts and Nevis" },
|
|
376
|
+
{ code: "LC", name: "Saint Lucia" },
|
|
377
|
+
{ code: "MF", name: "Saint Martin" },
|
|
378
|
+
{ code: "PM", name: "Saint Pierre and Miquelon" },
|
|
379
|
+
{ code: "VC", name: "Saint Vincent and the Grenadines" },
|
|
380
|
+
{ code: "WS", name: "Samoa" },
|
|
381
|
+
{ code: "SM", name: "San Marino" },
|
|
382
|
+
{ code: "ST", name: "Sao Tome and Principe" },
|
|
383
|
+
{ code: "SA", name: "Saudi Arabia" },
|
|
384
|
+
{ code: "SN", name: "Senegal" },
|
|
385
|
+
{ code: "RS", name: "Serbia" },
|
|
386
|
+
{ code: "SC", name: "Seychelles" },
|
|
387
|
+
{ code: "SL", name: "Sierra Leone" },
|
|
388
|
+
{ code: "SG", name: "Singapore" },
|
|
389
|
+
{ code: "SX", name: "Sint Maarten" },
|
|
390
|
+
{ code: "SK", name: "Slovakia" },
|
|
391
|
+
{ code: "SI", name: "Slovenia" },
|
|
392
|
+
{ code: "SB", name: "Solomon Islands" },
|
|
393
|
+
{ code: "SO", name: "Somalia" },
|
|
394
|
+
{ code: "ZA", name: "South Africa" },
|
|
395
|
+
{ code: "GS", name: "South Georgia and the South Sandwich Islands" },
|
|
396
|
+
{ code: "SS", name: "South Sudan" },
|
|
397
|
+
{ code: "ES", name: "Spain" },
|
|
398
|
+
{ code: "LK", name: "Sri Lanka" },
|
|
399
|
+
{ code: "SD", name: "Sudan" },
|
|
400
|
+
{ code: "SR", name: "Suriname" },
|
|
401
|
+
{ code: "SJ", name: "Svalbard and Jan Mayen" },
|
|
402
|
+
{ code: "SZ", name: "Swaziland" },
|
|
403
|
+
{ code: "SE", name: "Sweden" },
|
|
404
|
+
{ code: "CH", name: "Switzerland" },
|
|
405
|
+
{ code: "SY", name: "Syria" },
|
|
406
|
+
{ code: "TW", name: "Taiwan" },
|
|
407
|
+
{ code: "TJ", name: "Tajikistan" },
|
|
408
|
+
{ code: "TZ", name: "Tanzania" },
|
|
409
|
+
{ code: "TH", name: "Thailand" },
|
|
410
|
+
{ code: "TL", name: "Timor-Leste" },
|
|
411
|
+
{ code: "TG", name: "Togo" },
|
|
412
|
+
{ code: "TK", name: "Tokelau" },
|
|
413
|
+
{ code: "TO", name: "Tonga" },
|
|
414
|
+
{ code: "TT", name: "Trinidad and Tobago" },
|
|
415
|
+
{ code: "TN", name: "Tunisia" },
|
|
416
|
+
{ code: "TR", name: "Turkey" },
|
|
417
|
+
{ code: "TM", name: "Turkmenistan" },
|
|
418
|
+
{ code: "TC", name: "Turks and Caicos Islands" },
|
|
419
|
+
{ code: "TV", name: "Tuvalu" },
|
|
420
|
+
{ code: "UG", name: "Uganda" },
|
|
421
|
+
{ code: "UA", name: "Ukraine" },
|
|
422
|
+
{ code: "AE", name: "United Arab Emirates" },
|
|
423
|
+
{ code: "GB", name: "United Kingdom" },
|
|
424
|
+
{ code: "US", name: "United States" },
|
|
425
|
+
{ code: "UM", name: "United States Minor Outlying Islands" },
|
|
426
|
+
{ code: "UY", name: "Uruguay" },
|
|
427
|
+
{ code: "UZ", name: "Uzbekistan" },
|
|
428
|
+
{ code: "VU", name: "Vanuatu" },
|
|
429
|
+
{ code: "VE", name: "Venezuela" },
|
|
430
|
+
{ code: "VN", name: "Vietnam" },
|
|
431
|
+
{ code: "VG", name: "British Virgin Islands" },
|
|
432
|
+
{ code: "VI", name: "U.S. Virgin Islands" },
|
|
433
|
+
{ code: "WF", name: "Wallis and Futuna" },
|
|
434
|
+
{ code: "EH", name: "Western Sahara" },
|
|
435
|
+
{ code: "YE", name: "Yemen" },
|
|
436
|
+
{ code: "ZM", name: "Zambia" },
|
|
437
|
+
{ code: "ZW", name: "Zimbabwe" }
|
|
438
|
+
], Ao = [
|
|
693
439
|
"horizontal_bar",
|
|
694
440
|
"vertical_bar",
|
|
695
441
|
"gauge",
|
|
@@ -701,13 +447,13 @@ const vs = [
|
|
|
701
447
|
"slottable",
|
|
702
448
|
"single_value",
|
|
703
449
|
"choropleth_map"
|
|
704
|
-
],
|
|
450
|
+
], oe = {
|
|
705
451
|
type: "string"
|
|
706
|
-
},
|
|
452
|
+
}, L = {
|
|
707
453
|
type: "string"
|
|
708
|
-
},
|
|
454
|
+
}, an = {
|
|
709
455
|
type: "boolean"
|
|
710
|
-
},
|
|
456
|
+
}, on = {
|
|
711
457
|
type: ["object", "array"],
|
|
712
458
|
items: {
|
|
713
459
|
type: "string"
|
|
@@ -738,14 +484,14 @@ const vs = [
|
|
|
738
484
|
stacked: {
|
|
739
485
|
type: "boolean"
|
|
740
486
|
},
|
|
741
|
-
chart_dataset_colors:
|
|
742
|
-
synthetics_data_key:
|
|
743
|
-
chart_title:
|
|
744
|
-
allow_csv_export:
|
|
487
|
+
chart_dataset_colors: on,
|
|
488
|
+
synthetics_data_key: oe,
|
|
489
|
+
chart_title: L,
|
|
490
|
+
allow_csv_export: an
|
|
745
491
|
},
|
|
746
492
|
required: ["type"],
|
|
747
493
|
additionalProperties: !1
|
|
748
|
-
},
|
|
494
|
+
}, oa = {
|
|
749
495
|
type: "object",
|
|
750
496
|
properties: {
|
|
751
497
|
type: {
|
|
@@ -761,7 +507,7 @@ const vs = [
|
|
|
761
507
|
},
|
|
762
508
|
required: ["type", "value"],
|
|
763
509
|
additionalProperties: !1
|
|
764
|
-
},
|
|
510
|
+
}, sa = {
|
|
765
511
|
type: "object",
|
|
766
512
|
properties: {
|
|
767
513
|
type: {
|
|
@@ -775,17 +521,17 @@ const vs = [
|
|
|
775
521
|
type: "object",
|
|
776
522
|
additionalProperties: {
|
|
777
523
|
type: "array",
|
|
778
|
-
items:
|
|
524
|
+
items: oa
|
|
779
525
|
}
|
|
780
526
|
},
|
|
781
|
-
chart_dataset_colors:
|
|
782
|
-
synthetics_data_key:
|
|
783
|
-
chart_title:
|
|
784
|
-
allow_csv_export:
|
|
527
|
+
chart_dataset_colors: on,
|
|
528
|
+
synthetics_data_key: oe,
|
|
529
|
+
chart_title: L,
|
|
530
|
+
allow_csv_export: an
|
|
785
531
|
},
|
|
786
532
|
required: ["type"],
|
|
787
533
|
additionalProperties: !1
|
|
788
|
-
},
|
|
534
|
+
}, ca = {
|
|
789
535
|
type: "object",
|
|
790
536
|
properties: {
|
|
791
537
|
type: {
|
|
@@ -803,28 +549,28 @@ const vs = [
|
|
|
803
549
|
numerator: {
|
|
804
550
|
type: "number"
|
|
805
551
|
},
|
|
806
|
-
synthetics_data_key:
|
|
807
|
-
chart_title:
|
|
552
|
+
synthetics_data_key: oe,
|
|
553
|
+
chart_title: L
|
|
808
554
|
},
|
|
809
555
|
required: ["type"],
|
|
810
556
|
additionalProperties: !1
|
|
811
|
-
},
|
|
557
|
+
}, ua = {
|
|
812
558
|
type: "object",
|
|
813
559
|
properties: {
|
|
814
560
|
type: {
|
|
815
561
|
type: "string",
|
|
816
562
|
enum: ["donut"]
|
|
817
563
|
},
|
|
818
|
-
synthetics_data_key:
|
|
819
|
-
chart_title:
|
|
564
|
+
synthetics_data_key: oe,
|
|
565
|
+
chart_title: L
|
|
820
566
|
},
|
|
821
567
|
required: ["type"],
|
|
822
568
|
additionalProperties: !1
|
|
823
569
|
}, la = {
|
|
824
570
|
type: "object",
|
|
825
571
|
properties: {
|
|
826
|
-
chart_title:
|
|
827
|
-
synthetics_data_key:
|
|
572
|
+
chart_title: L,
|
|
573
|
+
synthetics_data_key: oe,
|
|
828
574
|
type: {
|
|
829
575
|
type: "string",
|
|
830
576
|
enum: ["top_n"]
|
|
@@ -841,7 +587,7 @@ const vs = [
|
|
|
841
587
|
}, da = {
|
|
842
588
|
type: "object",
|
|
843
589
|
properties: {
|
|
844
|
-
chart_title:
|
|
590
|
+
chart_title: L,
|
|
845
591
|
type: {
|
|
846
592
|
type: "string",
|
|
847
593
|
enum: ["golden_signals"]
|
|
@@ -858,7 +604,7 @@ const vs = [
|
|
|
858
604
|
},
|
|
859
605
|
required: ["type"],
|
|
860
606
|
additionalProperties: !1
|
|
861
|
-
},
|
|
607
|
+
}, ma = {
|
|
862
608
|
type: "object",
|
|
863
609
|
properties: {
|
|
864
610
|
type: {
|
|
@@ -868,21 +614,21 @@ const vs = [
|
|
|
868
614
|
decimal_points: {
|
|
869
615
|
type: "number"
|
|
870
616
|
},
|
|
871
|
-
chart_title:
|
|
617
|
+
chart_title: L
|
|
872
618
|
},
|
|
873
619
|
required: ["type"],
|
|
874
620
|
additionalProperties: !1
|
|
875
|
-
},
|
|
621
|
+
}, fa = {
|
|
876
622
|
type: "object",
|
|
877
623
|
properties: {
|
|
878
624
|
type: {
|
|
879
625
|
type: "string",
|
|
880
626
|
enum: ["choropleth_map"]
|
|
881
627
|
},
|
|
882
|
-
chart_title:
|
|
628
|
+
chart_title: L,
|
|
883
629
|
fit_to_country: {
|
|
884
630
|
type: "string",
|
|
885
|
-
enum:
|
|
631
|
+
enum: ra.map((e) => e.code)
|
|
886
632
|
},
|
|
887
633
|
legend: {
|
|
888
634
|
type: "boolean",
|
|
@@ -905,7 +651,7 @@ const vs = [
|
|
|
905
651
|
},
|
|
906
652
|
required: ["type"],
|
|
907
653
|
additionalProperties: !1
|
|
908
|
-
},
|
|
654
|
+
}, ha = {
|
|
909
655
|
type: "object",
|
|
910
656
|
properties: {
|
|
911
657
|
tz: {
|
|
@@ -920,7 +666,7 @@ const vs = [
|
|
|
920
666
|
},
|
|
921
667
|
time_range: {
|
|
922
668
|
type: "string",
|
|
923
|
-
enum:
|
|
669
|
+
enum: Xr,
|
|
924
670
|
default: "1h"
|
|
925
671
|
}
|
|
926
672
|
},
|
|
@@ -955,17 +701,17 @@ const vs = [
|
|
|
955
701
|
"end"
|
|
956
702
|
],
|
|
957
703
|
additionalProperties: !1
|
|
958
|
-
},
|
|
704
|
+
}, Ve = {
|
|
959
705
|
granularity: {
|
|
960
706
|
type: "string",
|
|
961
707
|
description: 'Force time grouping into buckets of this duration. Only has an effect if "time" is in the "dimensions" list.',
|
|
962
|
-
enum:
|
|
708
|
+
enum: en
|
|
963
709
|
},
|
|
964
710
|
time_range: {
|
|
965
711
|
type: "object",
|
|
966
712
|
description: "The time range to query.",
|
|
967
713
|
anyOf: [
|
|
968
|
-
|
|
714
|
+
ha,
|
|
969
715
|
ya
|
|
970
716
|
],
|
|
971
717
|
default: {
|
|
@@ -1010,7 +756,7 @@ const vs = [
|
|
|
1010
756
|
},
|
|
1011
757
|
operator: {
|
|
1012
758
|
type: "string",
|
|
1013
|
-
enum:
|
|
759
|
+
enum: Br
|
|
1014
760
|
},
|
|
1015
761
|
value: {
|
|
1016
762
|
type: "array",
|
|
@@ -1036,7 +782,7 @@ const vs = [
|
|
|
1036
782
|
},
|
|
1037
783
|
operator: {
|
|
1038
784
|
type: "string",
|
|
1039
|
-
enum:
|
|
785
|
+
enum: Vr
|
|
1040
786
|
}
|
|
1041
787
|
},
|
|
1042
788
|
required: [
|
|
@@ -1057,10 +803,10 @@ const vs = [
|
|
|
1057
803
|
"api_usage"
|
|
1058
804
|
]
|
|
1059
805
|
},
|
|
1060
|
-
metrics: Xe($
|
|
1061
|
-
dimensions: $e(
|
|
1062
|
-
filters: ve(
|
|
1063
|
-
...
|
|
806
|
+
metrics: Xe($r),
|
|
807
|
+
dimensions: $e(nn),
|
|
808
|
+
filters: ve(Se),
|
|
809
|
+
...Ve
|
|
1064
810
|
},
|
|
1065
811
|
required: ["datasource"],
|
|
1066
812
|
additionalProperties: !1
|
|
@@ -1074,10 +820,10 @@ const vs = [
|
|
|
1074
820
|
"basic"
|
|
1075
821
|
]
|
|
1076
822
|
},
|
|
1077
|
-
metrics: Xe(
|
|
1078
|
-
dimensions: $e(
|
|
1079
|
-
filters: ve(
|
|
1080
|
-
...
|
|
823
|
+
metrics: Xe(tn),
|
|
824
|
+
dimensions: $e(Be),
|
|
825
|
+
filters: ve(De),
|
|
826
|
+
...Ve
|
|
1081
827
|
},
|
|
1082
828
|
required: ["datasource"],
|
|
1083
829
|
additionalProperties: !1
|
|
@@ -1091,10 +837,10 @@ const vs = [
|
|
|
1091
837
|
"llm_usage"
|
|
1092
838
|
]
|
|
1093
839
|
},
|
|
1094
|
-
metrics: Xe(
|
|
1095
|
-
dimensions: $e(
|
|
1096
|
-
filters: ve(
|
|
1097
|
-
...
|
|
840
|
+
metrics: Xe(Zr),
|
|
841
|
+
dimensions: $e(rn),
|
|
842
|
+
filters: ve(Oe),
|
|
843
|
+
...Ve
|
|
1098
844
|
},
|
|
1099
845
|
required: ["datasource"],
|
|
1100
846
|
additionalProperties: !1
|
|
@@ -1107,14 +853,14 @@ const vs = [
|
|
|
1107
853
|
chart: {
|
|
1108
854
|
anyOf: [
|
|
1109
855
|
ia,
|
|
1110
|
-
ua,
|
|
1111
856
|
ca,
|
|
1112
|
-
|
|
857
|
+
ua,
|
|
858
|
+
sa,
|
|
1113
859
|
da,
|
|
1114
860
|
la,
|
|
1115
861
|
aa,
|
|
1116
|
-
|
|
1117
|
-
|
|
862
|
+
ma,
|
|
863
|
+
fa
|
|
1118
864
|
]
|
|
1119
865
|
}
|
|
1120
866
|
},
|
|
@@ -1157,7 +903,7 @@ const vs = [
|
|
|
1157
903
|
},
|
|
1158
904
|
required: ["position", "size"],
|
|
1159
905
|
additionalProperties: !1
|
|
1160
|
-
},
|
|
906
|
+
}, Ma = {
|
|
1161
907
|
type: "object",
|
|
1162
908
|
properties: {
|
|
1163
909
|
type: {
|
|
@@ -1173,18 +919,18 @@ const vs = [
|
|
|
1173
919
|
},
|
|
1174
920
|
required: ["type", "definition", "layout"],
|
|
1175
921
|
additionalProperties: !1
|
|
1176
|
-
},
|
|
922
|
+
}, Yo = {
|
|
1177
923
|
type: "object",
|
|
1178
924
|
properties: {
|
|
1179
925
|
tiles: {
|
|
1180
926
|
type: "array",
|
|
1181
|
-
items:
|
|
927
|
+
items: Ma
|
|
1182
928
|
},
|
|
1183
929
|
tile_height: {
|
|
1184
930
|
type: "number",
|
|
1185
931
|
description: "Height of each tile in pixels."
|
|
1186
932
|
},
|
|
1187
|
-
preset_filters: ve([.../* @__PURE__ */ new Set([...
|
|
933
|
+
preset_filters: ve([.../* @__PURE__ */ new Set([...Se, ...De, ...Oe])]),
|
|
1188
934
|
template_id: {
|
|
1189
935
|
type: ["string", "null"],
|
|
1190
936
|
description: "Template id which was used to instantiate this dashboard."
|
|
@@ -1192,54 +938,54 @@ const vs = [
|
|
|
1192
938
|
},
|
|
1193
939
|
required: ["tiles"],
|
|
1194
940
|
additionalProperties: !1
|
|
1195
|
-
},
|
|
941
|
+
}, Ho = (e) => {
|
|
1196
942
|
const t = [];
|
|
1197
|
-
return
|
|
1198
|
-
},
|
|
943
|
+
return De.includes(e) && t.push("basic"), Se.includes(e) && t.push("api_usage"), Oe.includes(e) && t.push("llm_usage"), (Kr.includes(e) || ta.includes(e)) && t.push("requests"), t;
|
|
944
|
+
}, sn = 6048e5, Da = 864e5, Sa = 60, Oa = 3600, Rt = Symbol.for("constructDateFrom");
|
|
1199
945
|
function C(e, t) {
|
|
1200
946
|
return typeof e == "function" ? e(t) : e && typeof e == "object" && Rt in e ? e[Rt](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
1201
947
|
}
|
|
1202
|
-
function
|
|
948
|
+
function D(e, t) {
|
|
1203
949
|
return C(t || e, e);
|
|
1204
950
|
}
|
|
1205
|
-
function kt(e, t,
|
|
1206
|
-
const
|
|
1207
|
-
return isNaN(t) ? C(e, NaN) : (
|
|
951
|
+
function kt(e, t, n) {
|
|
952
|
+
const r = D(e, n == null ? void 0 : n.in);
|
|
953
|
+
return isNaN(t) ? C(e, NaN) : (r.setDate(r.getDate() + t), r);
|
|
1208
954
|
}
|
|
1209
|
-
function va(e, t,
|
|
1210
|
-
const
|
|
955
|
+
function va(e, t, n) {
|
|
956
|
+
const r = D(e, n == null ? void 0 : n.in);
|
|
1211
957
|
if (isNaN(t)) return C(e, NaN);
|
|
1212
|
-
const i =
|
|
1213
|
-
|
|
1214
|
-
const
|
|
1215
|
-
return i >=
|
|
1216
|
-
|
|
1217
|
-
|
|
958
|
+
const i = r.getDate(), s = C(e, r.getTime());
|
|
959
|
+
s.setMonth(r.getMonth() + t + 1, 0);
|
|
960
|
+
const u = s.getDate();
|
|
961
|
+
return i >= u ? s : (r.setFullYear(
|
|
962
|
+
s.getFullYear(),
|
|
963
|
+
s.getMonth(),
|
|
1218
964
|
i
|
|
1219
|
-
),
|
|
965
|
+
), r);
|
|
1220
966
|
}
|
|
1221
967
|
let Ea = {};
|
|
1222
|
-
function
|
|
968
|
+
function se() {
|
|
1223
969
|
return Ea;
|
|
1224
970
|
}
|
|
1225
|
-
function
|
|
1226
|
-
var d,
|
|
1227
|
-
const
|
|
1228
|
-
return i.setDate(i.getDate() -
|
|
971
|
+
function Y(e, t) {
|
|
972
|
+
var d, f, m, _;
|
|
973
|
+
const n = se(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.weekStartsOn) ?? n.weekStartsOn ?? ((_ = (m = n.locale) == null ? void 0 : m.options) == null ? void 0 : _.weekStartsOn) ?? 0, i = D(e, t == null ? void 0 : t.in), s = i.getDay(), u = (s < r ? 7 : 0) + s - r;
|
|
974
|
+
return i.setDate(i.getDate() - u), i.setHours(0, 0, 0, 0), i;
|
|
1229
975
|
}
|
|
1230
976
|
function pe(e, t) {
|
|
1231
|
-
return
|
|
1232
|
-
}
|
|
1233
|
-
function
|
|
1234
|
-
const
|
|
1235
|
-
i.setFullYear(
|
|
1236
|
-
const
|
|
1237
|
-
|
|
1238
|
-
const d = pe(
|
|
1239
|
-
return
|
|
1240
|
-
}
|
|
1241
|
-
function
|
|
1242
|
-
const t =
|
|
977
|
+
return Y(e, { ...t, weekStartsOn: 1 });
|
|
978
|
+
}
|
|
979
|
+
function cn(e, t) {
|
|
980
|
+
const n = D(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = C(n, 0);
|
|
981
|
+
i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
982
|
+
const s = pe(i), u = C(n, 0);
|
|
983
|
+
u.setFullYear(r, 0, 4), u.setHours(0, 0, 0, 0);
|
|
984
|
+
const d = pe(u);
|
|
985
|
+
return n.getTime() >= s.getTime() ? r + 1 : n.getTime() >= d.getTime() ? r : r - 1;
|
|
986
|
+
}
|
|
987
|
+
function Gt(e) {
|
|
988
|
+
const t = D(e), n = new Date(
|
|
1243
989
|
Date.UTC(
|
|
1244
990
|
t.getFullYear(),
|
|
1245
991
|
t.getMonth(),
|
|
@@ -1250,44 +996,44 @@ function Yt(e) {
|
|
|
1250
996
|
t.getMilliseconds()
|
|
1251
997
|
)
|
|
1252
998
|
);
|
|
1253
|
-
return
|
|
999
|
+
return n.setUTCFullYear(t.getFullYear()), +e - +n;
|
|
1254
1000
|
}
|
|
1255
1001
|
function xa(e, ...t) {
|
|
1256
|
-
const
|
|
1002
|
+
const n = C.bind(
|
|
1257
1003
|
null,
|
|
1258
|
-
t.find((
|
|
1004
|
+
t.find((r) => typeof r == "object")
|
|
1259
1005
|
);
|
|
1260
|
-
return t.map(
|
|
1006
|
+
return t.map(n);
|
|
1261
1007
|
}
|
|
1262
1008
|
function _e(e, t) {
|
|
1263
|
-
const
|
|
1264
|
-
return
|
|
1009
|
+
const n = D(e, t == null ? void 0 : t.in);
|
|
1010
|
+
return n.setHours(0, 0, 0, 0), n;
|
|
1265
1011
|
}
|
|
1266
|
-
function
|
|
1267
|
-
const [
|
|
1268
|
-
|
|
1012
|
+
function Ia(e, t, n) {
|
|
1013
|
+
const [r, i] = xa(
|
|
1014
|
+
n == null ? void 0 : n.in,
|
|
1269
1015
|
e,
|
|
1270
1016
|
t
|
|
1271
|
-
),
|
|
1272
|
-
return Math.round((d -
|
|
1017
|
+
), s = _e(r), u = _e(i), d = +s - Gt(s), f = +u - Gt(u);
|
|
1018
|
+
return Math.round((d - f) / Da);
|
|
1273
1019
|
}
|
|
1274
|
-
function
|
|
1275
|
-
const
|
|
1276
|
-
return
|
|
1020
|
+
function Na(e, t) {
|
|
1021
|
+
const n = cn(e, t), r = C(e, 0);
|
|
1022
|
+
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), pe(r);
|
|
1277
1023
|
}
|
|
1278
|
-
function
|
|
1024
|
+
function Pa(e) {
|
|
1279
1025
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
1280
1026
|
}
|
|
1281
1027
|
function Ca(e) {
|
|
1282
|
-
return !(!
|
|
1028
|
+
return !(!Pa(e) && typeof e != "number" || isNaN(+D(e)));
|
|
1283
1029
|
}
|
|
1284
1030
|
function J(e, t) {
|
|
1285
|
-
const
|
|
1286
|
-
return
|
|
1031
|
+
const n = D(e, t == null ? void 0 : t.in);
|
|
1032
|
+
return n.setDate(1), n.setHours(0, 0, 0, 0), n;
|
|
1287
1033
|
}
|
|
1288
1034
|
function Ra(e, t) {
|
|
1289
|
-
const
|
|
1290
|
-
return
|
|
1035
|
+
const n = D(e, t == null ? void 0 : t.in);
|
|
1036
|
+
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
1291
1037
|
}
|
|
1292
1038
|
const ka = {
|
|
1293
1039
|
lessThanXSeconds: {
|
|
@@ -1351,23 +1097,23 @@ const ka = {
|
|
|
1351
1097
|
one: "almost 1 year",
|
|
1352
1098
|
other: "almost {{count}} years"
|
|
1353
1099
|
}
|
|
1354
|
-
},
|
|
1355
|
-
let
|
|
1100
|
+
}, Ga = (e, t, n) => {
|
|
1101
|
+
let r;
|
|
1356
1102
|
const i = ka[e];
|
|
1357
|
-
return typeof i == "string" ?
|
|
1103
|
+
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;
|
|
1358
1104
|
};
|
|
1359
1105
|
function Fe(e) {
|
|
1360
1106
|
return (t = {}) => {
|
|
1361
|
-
const
|
|
1362
|
-
return e.formats[
|
|
1107
|
+
const n = t.width ? String(t.width) : e.defaultWidth;
|
|
1108
|
+
return e.formats[n] || e.formats[e.defaultWidth];
|
|
1363
1109
|
};
|
|
1364
1110
|
}
|
|
1365
|
-
const
|
|
1111
|
+
const Aa = {
|
|
1366
1112
|
full: "EEEE, MMMM do, y",
|
|
1367
1113
|
long: "MMMM do, y",
|
|
1368
1114
|
medium: "MMM d, y",
|
|
1369
1115
|
short: "MM/dd/yyyy"
|
|
1370
|
-
},
|
|
1116
|
+
}, Ya = {
|
|
1371
1117
|
full: "h:mm:ss a zzzz",
|
|
1372
1118
|
long: "h:mm:ss a z",
|
|
1373
1119
|
medium: "h:mm:ss a",
|
|
@@ -1379,38 +1125,38 @@ const Ga = {
|
|
|
1379
1125
|
short: "{{date}}, {{time}}"
|
|
1380
1126
|
}, Fa = {
|
|
1381
1127
|
date: Fe({
|
|
1382
|
-
formats:
|
|
1128
|
+
formats: Aa,
|
|
1383
1129
|
defaultWidth: "full"
|
|
1384
1130
|
}),
|
|
1385
1131
|
time: Fe({
|
|
1386
|
-
formats:
|
|
1132
|
+
formats: Ya,
|
|
1387
1133
|
defaultWidth: "full"
|
|
1388
1134
|
}),
|
|
1389
1135
|
dateTime: Fe({
|
|
1390
1136
|
formats: Ha,
|
|
1391
1137
|
defaultWidth: "full"
|
|
1392
1138
|
})
|
|
1393
|
-
},
|
|
1139
|
+
}, La = {
|
|
1394
1140
|
lastWeek: "'last' eeee 'at' p",
|
|
1395
1141
|
yesterday: "'yesterday at' p",
|
|
1396
1142
|
today: "'today at' p",
|
|
1397
1143
|
tomorrow: "'tomorrow at' p",
|
|
1398
1144
|
nextWeek: "eeee 'at' p",
|
|
1399
1145
|
other: "P"
|
|
1400
|
-
},
|
|
1401
|
-
function
|
|
1402
|
-
return (t,
|
|
1403
|
-
const
|
|
1146
|
+
}, Wa = (e, t, n, r) => La[e];
|
|
1147
|
+
function re(e) {
|
|
1148
|
+
return (t, n) => {
|
|
1149
|
+
const r = n != null && n.context ? String(n.context) : "standalone";
|
|
1404
1150
|
let i;
|
|
1405
|
-
if (
|
|
1406
|
-
const
|
|
1407
|
-
i = e.formattingValues[d] || e.formattingValues[
|
|
1151
|
+
if (r === "formatting" && e.formattingValues) {
|
|
1152
|
+
const u = e.defaultFormattingWidth || e.defaultWidth, d = n != null && n.width ? String(n.width) : u;
|
|
1153
|
+
i = e.formattingValues[d] || e.formattingValues[u];
|
|
1408
1154
|
} else {
|
|
1409
|
-
const
|
|
1410
|
-
i = e.values[d] || e.values[
|
|
1155
|
+
const u = e.defaultWidth, d = n != null && n.width ? String(n.width) : e.defaultWidth;
|
|
1156
|
+
i = e.values[d] || e.values[u];
|
|
1411
1157
|
}
|
|
1412
|
-
const
|
|
1413
|
-
return i[
|
|
1158
|
+
const s = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
1159
|
+
return i[s];
|
|
1414
1160
|
};
|
|
1415
1161
|
}
|
|
1416
1162
|
const qa = {
|
|
@@ -1464,7 +1210,7 @@ const qa = {
|
|
|
1464
1210
|
"Friday",
|
|
1465
1211
|
"Saturday"
|
|
1466
1212
|
]
|
|
1467
|
-
},
|
|
1213
|
+
}, Ba = {
|
|
1468
1214
|
narrow: {
|
|
1469
1215
|
am: "a",
|
|
1470
1216
|
pm: "p",
|
|
@@ -1495,7 +1241,7 @@ const qa = {
|
|
|
1495
1241
|
evening: "evening",
|
|
1496
1242
|
night: "night"
|
|
1497
1243
|
}
|
|
1498
|
-
},
|
|
1244
|
+
}, Va = {
|
|
1499
1245
|
narrow: {
|
|
1500
1246
|
am: "a",
|
|
1501
1247
|
pm: "p",
|
|
@@ -1527,90 +1273,90 @@ const qa = {
|
|
|
1527
1273
|
night: "at night"
|
|
1528
1274
|
}
|
|
1529
1275
|
}, Xa = (e, t) => {
|
|
1530
|
-
const
|
|
1531
|
-
if (
|
|
1532
|
-
switch (
|
|
1276
|
+
const n = Number(e), r = n % 100;
|
|
1277
|
+
if (r > 20 || r < 10)
|
|
1278
|
+
switch (r % 10) {
|
|
1533
1279
|
case 1:
|
|
1534
|
-
return
|
|
1280
|
+
return n + "st";
|
|
1535
1281
|
case 2:
|
|
1536
|
-
return
|
|
1282
|
+
return n + "nd";
|
|
1537
1283
|
case 3:
|
|
1538
|
-
return
|
|
1284
|
+
return n + "rd";
|
|
1539
1285
|
}
|
|
1540
|
-
return
|
|
1286
|
+
return n + "th";
|
|
1541
1287
|
}, $a = {
|
|
1542
1288
|
ordinalNumber: Xa,
|
|
1543
|
-
era:
|
|
1289
|
+
era: re({
|
|
1544
1290
|
values: qa,
|
|
1545
1291
|
defaultWidth: "wide"
|
|
1546
1292
|
}),
|
|
1547
|
-
quarter:
|
|
1293
|
+
quarter: re({
|
|
1548
1294
|
values: Ua,
|
|
1549
1295
|
defaultWidth: "wide",
|
|
1550
1296
|
argumentCallback: (e) => e - 1
|
|
1551
1297
|
}),
|
|
1552
|
-
month:
|
|
1298
|
+
month: re({
|
|
1553
1299
|
values: ja,
|
|
1554
1300
|
defaultWidth: "wide"
|
|
1555
1301
|
}),
|
|
1556
|
-
day:
|
|
1302
|
+
day: re({
|
|
1557
1303
|
values: za,
|
|
1558
1304
|
defaultWidth: "wide"
|
|
1559
1305
|
}),
|
|
1560
|
-
dayPeriod:
|
|
1561
|
-
values:
|
|
1306
|
+
dayPeriod: re({
|
|
1307
|
+
values: Ba,
|
|
1562
1308
|
defaultWidth: "wide",
|
|
1563
|
-
formattingValues:
|
|
1309
|
+
formattingValues: Va,
|
|
1564
1310
|
defaultFormattingWidth: "wide"
|
|
1565
1311
|
})
|
|
1566
1312
|
};
|
|
1567
1313
|
function ae(e) {
|
|
1568
|
-
return (t,
|
|
1569
|
-
const
|
|
1570
|
-
if (!
|
|
1314
|
+
return (t, n = {}) => {
|
|
1315
|
+
const r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], s = t.match(i);
|
|
1316
|
+
if (!s)
|
|
1571
1317
|
return null;
|
|
1572
|
-
const
|
|
1318
|
+
const u = s[0], d = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], f = Array.isArray(d) ? Qa(d, (y) => y.test(u)) : (
|
|
1573
1319
|
// [TODO] -- I challenge you to fix the type
|
|
1574
|
-
Za(d, (y) => y.test(
|
|
1320
|
+
Za(d, (y) => y.test(u))
|
|
1575
1321
|
);
|
|
1576
|
-
let
|
|
1577
|
-
|
|
1322
|
+
let m;
|
|
1323
|
+
m = e.valueCallback ? e.valueCallback(f) : f, m = n.valueCallback ? (
|
|
1578
1324
|
// [TODO] -- I challenge you to fix the type
|
|
1579
|
-
|
|
1580
|
-
) :
|
|
1581
|
-
const _ = t.slice(
|
|
1582
|
-
return { value:
|
|
1325
|
+
n.valueCallback(m)
|
|
1326
|
+
) : m;
|
|
1327
|
+
const _ = t.slice(u.length);
|
|
1328
|
+
return { value: m, rest: _ };
|
|
1583
1329
|
};
|
|
1584
1330
|
}
|
|
1585
1331
|
function Za(e, t) {
|
|
1586
|
-
for (const
|
|
1587
|
-
if (Object.prototype.hasOwnProperty.call(e,
|
|
1588
|
-
return
|
|
1332
|
+
for (const n in e)
|
|
1333
|
+
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
1334
|
+
return n;
|
|
1589
1335
|
}
|
|
1590
1336
|
function Qa(e, t) {
|
|
1591
|
-
for (let
|
|
1592
|
-
if (t(e[
|
|
1593
|
-
return
|
|
1337
|
+
for (let n = 0; n < e.length; n++)
|
|
1338
|
+
if (t(e[n]))
|
|
1339
|
+
return n;
|
|
1594
1340
|
}
|
|
1595
1341
|
function Ka(e) {
|
|
1596
|
-
return (t,
|
|
1597
|
-
const
|
|
1598
|
-
if (!
|
|
1599
|
-
const i =
|
|
1600
|
-
if (!
|
|
1601
|
-
let
|
|
1602
|
-
|
|
1342
|
+
return (t, n = {}) => {
|
|
1343
|
+
const r = t.match(e.matchPattern);
|
|
1344
|
+
if (!r) return null;
|
|
1345
|
+
const i = r[0], s = t.match(e.parsePattern);
|
|
1346
|
+
if (!s) return null;
|
|
1347
|
+
let u = e.valueCallback ? e.valueCallback(s[0]) : s[0];
|
|
1348
|
+
u = n.valueCallback ? n.valueCallback(u) : u;
|
|
1603
1349
|
const d = t.slice(i.length);
|
|
1604
|
-
return { value:
|
|
1350
|
+
return { value: u, rest: d };
|
|
1605
1351
|
};
|
|
1606
1352
|
}
|
|
1607
1353
|
const Ja = /^(\d+)(th|st|nd|rd)?/i, ei = /\d+/i, ti = {
|
|
1608
1354
|
narrow: /^(b|a)/i,
|
|
1609
1355
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
1610
1356
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
1611
|
-
}, ri = {
|
|
1612
|
-
any: [/^b/i, /^(a|c)/i]
|
|
1613
1357
|
}, ni = {
|
|
1358
|
+
any: [/^b/i, /^(a|c)/i]
|
|
1359
|
+
}, ri = {
|
|
1614
1360
|
narrow: /^[1234]/i,
|
|
1615
1361
|
abbreviated: /^q[1234]/i,
|
|
1616
1362
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
@@ -1620,7 +1366,7 @@ const Ja = /^(\d+)(th|st|nd|rd)?/i, ei = /\d+/i, ti = {
|
|
|
1620
1366
|
narrow: /^[jfmasond]/i,
|
|
1621
1367
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
1622
1368
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
1623
|
-
},
|
|
1369
|
+
}, oi = {
|
|
1624
1370
|
narrow: [
|
|
1625
1371
|
/^j/i,
|
|
1626
1372
|
/^f/i,
|
|
@@ -1649,15 +1395,15 @@ const Ja = /^(\d+)(th|st|nd|rd)?/i, ei = /\d+/i, ti = {
|
|
|
1649
1395
|
/^n/i,
|
|
1650
1396
|
/^d/i
|
|
1651
1397
|
]
|
|
1652
|
-
},
|
|
1398
|
+
}, si = {
|
|
1653
1399
|
narrow: /^[smtwf]/i,
|
|
1654
1400
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
1655
1401
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
1656
1402
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
1657
|
-
},
|
|
1403
|
+
}, ci = {
|
|
1658
1404
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
1659
1405
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
1660
|
-
},
|
|
1406
|
+
}, ui = {
|
|
1661
1407
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
1662
1408
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
1663
1409
|
}, li = {
|
|
@@ -1680,11 +1426,11 @@ const Ja = /^(\d+)(th|st|nd|rd)?/i, ei = /\d+/i, ti = {
|
|
|
1680
1426
|
era: ae({
|
|
1681
1427
|
matchPatterns: ti,
|
|
1682
1428
|
defaultMatchWidth: "wide",
|
|
1683
|
-
parsePatterns:
|
|
1429
|
+
parsePatterns: ni,
|
|
1684
1430
|
defaultParseWidth: "any"
|
|
1685
1431
|
}),
|
|
1686
1432
|
quarter: ae({
|
|
1687
|
-
matchPatterns:
|
|
1433
|
+
matchPatterns: ri,
|
|
1688
1434
|
defaultMatchWidth: "wide",
|
|
1689
1435
|
parsePatterns: ai,
|
|
1690
1436
|
defaultParseWidth: "any",
|
|
@@ -1693,26 +1439,26 @@ const Ja = /^(\d+)(th|st|nd|rd)?/i, ei = /\d+/i, ti = {
|
|
|
1693
1439
|
month: ae({
|
|
1694
1440
|
matchPatterns: ii,
|
|
1695
1441
|
defaultMatchWidth: "wide",
|
|
1696
|
-
parsePatterns:
|
|
1442
|
+
parsePatterns: oi,
|
|
1697
1443
|
defaultParseWidth: "any"
|
|
1698
1444
|
}),
|
|
1699
1445
|
day: ae({
|
|
1700
|
-
matchPatterns:
|
|
1446
|
+
matchPatterns: si,
|
|
1701
1447
|
defaultMatchWidth: "wide",
|
|
1702
|
-
parsePatterns:
|
|
1448
|
+
parsePatterns: ci,
|
|
1703
1449
|
defaultParseWidth: "any"
|
|
1704
1450
|
}),
|
|
1705
1451
|
dayPeriod: ae({
|
|
1706
|
-
matchPatterns:
|
|
1452
|
+
matchPatterns: ui,
|
|
1707
1453
|
defaultMatchWidth: "any",
|
|
1708
1454
|
parsePatterns: li,
|
|
1709
1455
|
defaultParseWidth: "any"
|
|
1710
1456
|
})
|
|
1711
|
-
},
|
|
1457
|
+
}, mi = {
|
|
1712
1458
|
code: "en-US",
|
|
1713
|
-
formatDistance:
|
|
1459
|
+
formatDistance: Ga,
|
|
1714
1460
|
formatLong: Fa,
|
|
1715
|
-
formatRelative:
|
|
1461
|
+
formatRelative: Wa,
|
|
1716
1462
|
localize: $a,
|
|
1717
1463
|
match: di,
|
|
1718
1464
|
options: {
|
|
@@ -1720,46 +1466,46 @@ const Ja = /^(\d+)(th|st|nd|rd)?/i, ei = /\d+/i, ti = {
|
|
|
1720
1466
|
firstWeekContainsDate: 1
|
|
1721
1467
|
}
|
|
1722
1468
|
};
|
|
1723
|
-
function
|
|
1724
|
-
const
|
|
1725
|
-
return
|
|
1469
|
+
function fi(e, t) {
|
|
1470
|
+
const n = D(e, t == null ? void 0 : t.in);
|
|
1471
|
+
return Ia(n, Ra(n)) + 1;
|
|
1726
1472
|
}
|
|
1727
|
-
function
|
|
1728
|
-
const
|
|
1729
|
-
return Math.round(
|
|
1473
|
+
function hi(e, t) {
|
|
1474
|
+
const n = D(e, t == null ? void 0 : t.in), r = +pe(n) - +Na(n);
|
|
1475
|
+
return Math.round(r / sn) + 1;
|
|
1730
1476
|
}
|
|
1731
|
-
function
|
|
1477
|
+
function un(e, t) {
|
|
1732
1478
|
var _, y, g, x;
|
|
1733
|
-
const
|
|
1734
|
-
|
|
1735
|
-
const d =
|
|
1736
|
-
|
|
1737
|
-
const
|
|
1738
|
-
return +
|
|
1479
|
+
const n = D(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = se(), s = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((y = (_ = t == null ? void 0 : t.locale) == null ? void 0 : _.options) == null ? void 0 : y.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((x = (g = i.locale) == null ? void 0 : g.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, u = C((t == null ? void 0 : t.in) || e, 0);
|
|
1480
|
+
u.setFullYear(r + 1, 0, s), u.setHours(0, 0, 0, 0);
|
|
1481
|
+
const d = Y(u, t), f = C((t == null ? void 0 : t.in) || e, 0);
|
|
1482
|
+
f.setFullYear(r, 0, s), f.setHours(0, 0, 0, 0);
|
|
1483
|
+
const m = Y(f, t);
|
|
1484
|
+
return +n >= +d ? r + 1 : +n >= +m ? r : r - 1;
|
|
1739
1485
|
}
|
|
1740
1486
|
function yi(e, t) {
|
|
1741
|
-
var d,
|
|
1742
|
-
const
|
|
1743
|
-
return
|
|
1487
|
+
var d, f, m, _;
|
|
1488
|
+
const n = se(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((_ = (m = n.locale) == null ? void 0 : m.options) == null ? void 0 : _.firstWeekContainsDate) ?? 1, i = un(e, t), s = C((t == null ? void 0 : t.in) || e, 0);
|
|
1489
|
+
return s.setFullYear(i, 0, r), s.setHours(0, 0, 0, 0), Y(s, t);
|
|
1744
1490
|
}
|
|
1745
1491
|
function gi(e, t) {
|
|
1746
|
-
const
|
|
1747
|
-
return Math.round(
|
|
1492
|
+
const n = D(e, t == null ? void 0 : t.in), r = +Y(n, t) - +yi(n, t);
|
|
1493
|
+
return Math.round(r / sn) + 1;
|
|
1748
1494
|
}
|
|
1749
1495
|
function p(e, t) {
|
|
1750
|
-
const
|
|
1751
|
-
return
|
|
1496
|
+
const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
|
|
1497
|
+
return n + r;
|
|
1752
1498
|
}
|
|
1753
1499
|
const F = {
|
|
1754
1500
|
// Year
|
|
1755
1501
|
y(e, t) {
|
|
1756
|
-
const
|
|
1757
|
-
return p(t === "yy" ?
|
|
1502
|
+
const n = e.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
1503
|
+
return p(t === "yy" ? r % 100 : r, t.length);
|
|
1758
1504
|
},
|
|
1759
1505
|
// Month
|
|
1760
1506
|
M(e, t) {
|
|
1761
|
-
const
|
|
1762
|
-
return t === "M" ? String(
|
|
1507
|
+
const n = e.getMonth();
|
|
1508
|
+
return t === "M" ? String(n + 1) : p(n + 1, 2);
|
|
1763
1509
|
},
|
|
1764
1510
|
// Day of the month
|
|
1765
1511
|
d(e, t) {
|
|
@@ -1767,18 +1513,18 @@ const F = {
|
|
|
1767
1513
|
},
|
|
1768
1514
|
// AM or PM
|
|
1769
1515
|
a(e, t) {
|
|
1770
|
-
const
|
|
1516
|
+
const n = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
1771
1517
|
switch (t) {
|
|
1772
1518
|
case "a":
|
|
1773
1519
|
case "aa":
|
|
1774
|
-
return
|
|
1520
|
+
return n.toUpperCase();
|
|
1775
1521
|
case "aaa":
|
|
1776
|
-
return
|
|
1522
|
+
return n;
|
|
1777
1523
|
case "aaaaa":
|
|
1778
|
-
return
|
|
1524
|
+
return n[0];
|
|
1779
1525
|
case "aaaa":
|
|
1780
1526
|
default:
|
|
1781
|
-
return
|
|
1527
|
+
return n === "am" ? "a.m." : "p.m.";
|
|
1782
1528
|
}
|
|
1783
1529
|
},
|
|
1784
1530
|
// Hour [1-12]
|
|
@@ -1799,8 +1545,8 @@ const F = {
|
|
|
1799
1545
|
},
|
|
1800
1546
|
// Fraction of second
|
|
1801
1547
|
S(e, t) {
|
|
1802
|
-
const
|
|
1803
|
-
|
|
1548
|
+
const n = t.length, r = e.getMilliseconds(), i = Math.trunc(
|
|
1549
|
+
r * Math.pow(10, n - 3)
|
|
1804
1550
|
);
|
|
1805
1551
|
return p(i, t.length);
|
|
1806
1552
|
}
|
|
@@ -1811,43 +1557,43 @@ const F = {
|
|
|
1811
1557
|
afternoon: "afternoon",
|
|
1812
1558
|
evening: "evening",
|
|
1813
1559
|
night: "night"
|
|
1814
|
-
},
|
|
1560
|
+
}, At = {
|
|
1815
1561
|
// Era
|
|
1816
|
-
G: function(e, t,
|
|
1817
|
-
const
|
|
1562
|
+
G: function(e, t, n) {
|
|
1563
|
+
const r = e.getFullYear() > 0 ? 1 : 0;
|
|
1818
1564
|
switch (t) {
|
|
1819
1565
|
case "G":
|
|
1820
1566
|
case "GG":
|
|
1821
1567
|
case "GGG":
|
|
1822
|
-
return
|
|
1568
|
+
return n.era(r, { width: "abbreviated" });
|
|
1823
1569
|
case "GGGGG":
|
|
1824
|
-
return
|
|
1570
|
+
return n.era(r, { width: "narrow" });
|
|
1825
1571
|
case "GGGG":
|
|
1826
1572
|
default:
|
|
1827
|
-
return
|
|
1573
|
+
return n.era(r, { width: "wide" });
|
|
1828
1574
|
}
|
|
1829
1575
|
},
|
|
1830
1576
|
// Year
|
|
1831
|
-
y: function(e, t,
|
|
1577
|
+
y: function(e, t, n) {
|
|
1832
1578
|
if (t === "yo") {
|
|
1833
|
-
const
|
|
1834
|
-
return
|
|
1579
|
+
const r = e.getFullYear(), i = r > 0 ? r : 1 - r;
|
|
1580
|
+
return n.ordinalNumber(i, { unit: "year" });
|
|
1835
1581
|
}
|
|
1836
1582
|
return F.y(e, t);
|
|
1837
1583
|
},
|
|
1838
1584
|
// Local week-numbering year
|
|
1839
|
-
Y: function(e, t,
|
|
1840
|
-
const i =
|
|
1585
|
+
Y: function(e, t, n, r) {
|
|
1586
|
+
const i = un(e, r), s = i > 0 ? i : 1 - i;
|
|
1841
1587
|
if (t === "YY") {
|
|
1842
|
-
const
|
|
1843
|
-
return p(
|
|
1588
|
+
const u = s % 100;
|
|
1589
|
+
return p(u, 2);
|
|
1844
1590
|
}
|
|
1845
|
-
return t === "Yo" ?
|
|
1591
|
+
return t === "Yo" ? n.ordinalNumber(s, { unit: "year" }) : p(s, t.length);
|
|
1846
1592
|
},
|
|
1847
1593
|
// ISO week-numbering year
|
|
1848
1594
|
R: function(e, t) {
|
|
1849
|
-
const
|
|
1850
|
-
return p(
|
|
1595
|
+
const n = cn(e);
|
|
1596
|
+
return p(n, t.length);
|
|
1851
1597
|
},
|
|
1852
1598
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
1853
1599
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -1859,455 +1605,455 @@ const F = {
|
|
|
1859
1605
|
// Also `yy` always returns the last two digits of a year,
|
|
1860
1606
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
1861
1607
|
u: function(e, t) {
|
|
1862
|
-
const
|
|
1863
|
-
return p(
|
|
1608
|
+
const n = e.getFullYear();
|
|
1609
|
+
return p(n, t.length);
|
|
1864
1610
|
},
|
|
1865
1611
|
// Quarter
|
|
1866
|
-
Q: function(e, t,
|
|
1867
|
-
const
|
|
1612
|
+
Q: function(e, t, n) {
|
|
1613
|
+
const r = Math.ceil((e.getMonth() + 1) / 3);
|
|
1868
1614
|
switch (t) {
|
|
1869
1615
|
case "Q":
|
|
1870
|
-
return String(
|
|
1616
|
+
return String(r);
|
|
1871
1617
|
case "QQ":
|
|
1872
|
-
return p(
|
|
1618
|
+
return p(r, 2);
|
|
1873
1619
|
case "Qo":
|
|
1874
|
-
return
|
|
1620
|
+
return n.ordinalNumber(r, { unit: "quarter" });
|
|
1875
1621
|
case "QQQ":
|
|
1876
|
-
return
|
|
1622
|
+
return n.quarter(r, {
|
|
1877
1623
|
width: "abbreviated",
|
|
1878
1624
|
context: "formatting"
|
|
1879
1625
|
});
|
|
1880
1626
|
case "QQQQQ":
|
|
1881
|
-
return
|
|
1627
|
+
return n.quarter(r, {
|
|
1882
1628
|
width: "narrow",
|
|
1883
1629
|
context: "formatting"
|
|
1884
1630
|
});
|
|
1885
1631
|
case "QQQQ":
|
|
1886
1632
|
default:
|
|
1887
|
-
return
|
|
1633
|
+
return n.quarter(r, {
|
|
1888
1634
|
width: "wide",
|
|
1889
1635
|
context: "formatting"
|
|
1890
1636
|
});
|
|
1891
1637
|
}
|
|
1892
1638
|
},
|
|
1893
1639
|
// Stand-alone quarter
|
|
1894
|
-
q: function(e, t,
|
|
1895
|
-
const
|
|
1640
|
+
q: function(e, t, n) {
|
|
1641
|
+
const r = Math.ceil((e.getMonth() + 1) / 3);
|
|
1896
1642
|
switch (t) {
|
|
1897
1643
|
case "q":
|
|
1898
|
-
return String(
|
|
1644
|
+
return String(r);
|
|
1899
1645
|
case "qq":
|
|
1900
|
-
return p(
|
|
1646
|
+
return p(r, 2);
|
|
1901
1647
|
case "qo":
|
|
1902
|
-
return
|
|
1648
|
+
return n.ordinalNumber(r, { unit: "quarter" });
|
|
1903
1649
|
case "qqq":
|
|
1904
|
-
return
|
|
1650
|
+
return n.quarter(r, {
|
|
1905
1651
|
width: "abbreviated",
|
|
1906
1652
|
context: "standalone"
|
|
1907
1653
|
});
|
|
1908
1654
|
case "qqqqq":
|
|
1909
|
-
return
|
|
1655
|
+
return n.quarter(r, {
|
|
1910
1656
|
width: "narrow",
|
|
1911
1657
|
context: "standalone"
|
|
1912
1658
|
});
|
|
1913
1659
|
case "qqqq":
|
|
1914
1660
|
default:
|
|
1915
|
-
return
|
|
1661
|
+
return n.quarter(r, {
|
|
1916
1662
|
width: "wide",
|
|
1917
1663
|
context: "standalone"
|
|
1918
1664
|
});
|
|
1919
1665
|
}
|
|
1920
1666
|
},
|
|
1921
1667
|
// Month
|
|
1922
|
-
M: function(e, t,
|
|
1923
|
-
const
|
|
1668
|
+
M: function(e, t, n) {
|
|
1669
|
+
const r = e.getMonth();
|
|
1924
1670
|
switch (t) {
|
|
1925
1671
|
case "M":
|
|
1926
1672
|
case "MM":
|
|
1927
1673
|
return F.M(e, t);
|
|
1928
1674
|
case "Mo":
|
|
1929
|
-
return
|
|
1675
|
+
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
1930
1676
|
case "MMM":
|
|
1931
|
-
return
|
|
1677
|
+
return n.month(r, {
|
|
1932
1678
|
width: "abbreviated",
|
|
1933
1679
|
context: "formatting"
|
|
1934
1680
|
});
|
|
1935
1681
|
case "MMMMM":
|
|
1936
|
-
return
|
|
1682
|
+
return n.month(r, {
|
|
1937
1683
|
width: "narrow",
|
|
1938
1684
|
context: "formatting"
|
|
1939
1685
|
});
|
|
1940
1686
|
case "MMMM":
|
|
1941
1687
|
default:
|
|
1942
|
-
return
|
|
1688
|
+
return n.month(r, { width: "wide", context: "formatting" });
|
|
1943
1689
|
}
|
|
1944
1690
|
},
|
|
1945
1691
|
// Stand-alone month
|
|
1946
|
-
L: function(e, t,
|
|
1947
|
-
const
|
|
1692
|
+
L: function(e, t, n) {
|
|
1693
|
+
const r = e.getMonth();
|
|
1948
1694
|
switch (t) {
|
|
1949
1695
|
case "L":
|
|
1950
|
-
return String(
|
|
1696
|
+
return String(r + 1);
|
|
1951
1697
|
case "LL":
|
|
1952
|
-
return p(
|
|
1698
|
+
return p(r + 1, 2);
|
|
1953
1699
|
case "Lo":
|
|
1954
|
-
return
|
|
1700
|
+
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
1955
1701
|
case "LLL":
|
|
1956
|
-
return
|
|
1702
|
+
return n.month(r, {
|
|
1957
1703
|
width: "abbreviated",
|
|
1958
1704
|
context: "standalone"
|
|
1959
1705
|
});
|
|
1960
1706
|
case "LLLLL":
|
|
1961
|
-
return
|
|
1707
|
+
return n.month(r, {
|
|
1962
1708
|
width: "narrow",
|
|
1963
1709
|
context: "standalone"
|
|
1964
1710
|
});
|
|
1965
1711
|
case "LLLL":
|
|
1966
1712
|
default:
|
|
1967
|
-
return
|
|
1713
|
+
return n.month(r, { width: "wide", context: "standalone" });
|
|
1968
1714
|
}
|
|
1969
1715
|
},
|
|
1970
1716
|
// Local week of year
|
|
1971
|
-
w: function(e, t,
|
|
1972
|
-
const i = gi(e,
|
|
1973
|
-
return t === "wo" ?
|
|
1717
|
+
w: function(e, t, n, r) {
|
|
1718
|
+
const i = gi(e, r);
|
|
1719
|
+
return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : p(i, t.length);
|
|
1974
1720
|
},
|
|
1975
1721
|
// ISO week of year
|
|
1976
|
-
I: function(e, t,
|
|
1977
|
-
const
|
|
1978
|
-
return t === "Io" ?
|
|
1722
|
+
I: function(e, t, n) {
|
|
1723
|
+
const r = hi(e);
|
|
1724
|
+
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : p(r, t.length);
|
|
1979
1725
|
},
|
|
1980
1726
|
// Day of the month
|
|
1981
|
-
d: function(e, t,
|
|
1982
|
-
return t === "do" ?
|
|
1727
|
+
d: function(e, t, n) {
|
|
1728
|
+
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : F.d(e, t);
|
|
1983
1729
|
},
|
|
1984
1730
|
// Day of year
|
|
1985
|
-
D: function(e, t,
|
|
1986
|
-
const
|
|
1987
|
-
return t === "Do" ?
|
|
1731
|
+
D: function(e, t, n) {
|
|
1732
|
+
const r = fi(e);
|
|
1733
|
+
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : p(r, t.length);
|
|
1988
1734
|
},
|
|
1989
1735
|
// Day of week
|
|
1990
|
-
E: function(e, t,
|
|
1991
|
-
const
|
|
1736
|
+
E: function(e, t, n) {
|
|
1737
|
+
const r = e.getDay();
|
|
1992
1738
|
switch (t) {
|
|
1993
1739
|
case "E":
|
|
1994
1740
|
case "EE":
|
|
1995
1741
|
case "EEE":
|
|
1996
|
-
return
|
|
1742
|
+
return n.day(r, {
|
|
1997
1743
|
width: "abbreviated",
|
|
1998
1744
|
context: "formatting"
|
|
1999
1745
|
});
|
|
2000
1746
|
case "EEEEE":
|
|
2001
|
-
return
|
|
1747
|
+
return n.day(r, {
|
|
2002
1748
|
width: "narrow",
|
|
2003
1749
|
context: "formatting"
|
|
2004
1750
|
});
|
|
2005
1751
|
case "EEEEEE":
|
|
2006
|
-
return
|
|
1752
|
+
return n.day(r, {
|
|
2007
1753
|
width: "short",
|
|
2008
1754
|
context: "formatting"
|
|
2009
1755
|
});
|
|
2010
1756
|
case "EEEE":
|
|
2011
1757
|
default:
|
|
2012
|
-
return
|
|
1758
|
+
return n.day(r, {
|
|
2013
1759
|
width: "wide",
|
|
2014
1760
|
context: "formatting"
|
|
2015
1761
|
});
|
|
2016
1762
|
}
|
|
2017
1763
|
},
|
|
2018
1764
|
// Local day of week
|
|
2019
|
-
e: function(e, t,
|
|
2020
|
-
const i = e.getDay(),
|
|
1765
|
+
e: function(e, t, n, r) {
|
|
1766
|
+
const i = e.getDay(), s = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
2021
1767
|
switch (t) {
|
|
2022
1768
|
case "e":
|
|
2023
|
-
return String(
|
|
1769
|
+
return String(s);
|
|
2024
1770
|
case "ee":
|
|
2025
|
-
return p(
|
|
1771
|
+
return p(s, 2);
|
|
2026
1772
|
case "eo":
|
|
2027
|
-
return
|
|
1773
|
+
return n.ordinalNumber(s, { unit: "day" });
|
|
2028
1774
|
case "eee":
|
|
2029
|
-
return
|
|
1775
|
+
return n.day(i, {
|
|
2030
1776
|
width: "abbreviated",
|
|
2031
1777
|
context: "formatting"
|
|
2032
1778
|
});
|
|
2033
1779
|
case "eeeee":
|
|
2034
|
-
return
|
|
1780
|
+
return n.day(i, {
|
|
2035
1781
|
width: "narrow",
|
|
2036
1782
|
context: "formatting"
|
|
2037
1783
|
});
|
|
2038
1784
|
case "eeeeee":
|
|
2039
|
-
return
|
|
1785
|
+
return n.day(i, {
|
|
2040
1786
|
width: "short",
|
|
2041
1787
|
context: "formatting"
|
|
2042
1788
|
});
|
|
2043
1789
|
case "eeee":
|
|
2044
1790
|
default:
|
|
2045
|
-
return
|
|
1791
|
+
return n.day(i, {
|
|
2046
1792
|
width: "wide",
|
|
2047
1793
|
context: "formatting"
|
|
2048
1794
|
});
|
|
2049
1795
|
}
|
|
2050
1796
|
},
|
|
2051
1797
|
// Stand-alone local day of week
|
|
2052
|
-
c: function(e, t,
|
|
2053
|
-
const i = e.getDay(),
|
|
1798
|
+
c: function(e, t, n, r) {
|
|
1799
|
+
const i = e.getDay(), s = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
2054
1800
|
switch (t) {
|
|
2055
1801
|
case "c":
|
|
2056
|
-
return String(
|
|
1802
|
+
return String(s);
|
|
2057
1803
|
case "cc":
|
|
2058
|
-
return p(
|
|
1804
|
+
return p(s, t.length);
|
|
2059
1805
|
case "co":
|
|
2060
|
-
return
|
|
1806
|
+
return n.ordinalNumber(s, { unit: "day" });
|
|
2061
1807
|
case "ccc":
|
|
2062
|
-
return
|
|
1808
|
+
return n.day(i, {
|
|
2063
1809
|
width: "abbreviated",
|
|
2064
1810
|
context: "standalone"
|
|
2065
1811
|
});
|
|
2066
1812
|
case "ccccc":
|
|
2067
|
-
return
|
|
1813
|
+
return n.day(i, {
|
|
2068
1814
|
width: "narrow",
|
|
2069
1815
|
context: "standalone"
|
|
2070
1816
|
});
|
|
2071
1817
|
case "cccccc":
|
|
2072
|
-
return
|
|
1818
|
+
return n.day(i, {
|
|
2073
1819
|
width: "short",
|
|
2074
1820
|
context: "standalone"
|
|
2075
1821
|
});
|
|
2076
1822
|
case "cccc":
|
|
2077
1823
|
default:
|
|
2078
|
-
return
|
|
1824
|
+
return n.day(i, {
|
|
2079
1825
|
width: "wide",
|
|
2080
1826
|
context: "standalone"
|
|
2081
1827
|
});
|
|
2082
1828
|
}
|
|
2083
1829
|
},
|
|
2084
1830
|
// ISO day of week
|
|
2085
|
-
i: function(e, t,
|
|
2086
|
-
const
|
|
1831
|
+
i: function(e, t, n) {
|
|
1832
|
+
const r = e.getDay(), i = r === 0 ? 7 : r;
|
|
2087
1833
|
switch (t) {
|
|
2088
1834
|
case "i":
|
|
2089
1835
|
return String(i);
|
|
2090
1836
|
case "ii":
|
|
2091
1837
|
return p(i, t.length);
|
|
2092
1838
|
case "io":
|
|
2093
|
-
return
|
|
1839
|
+
return n.ordinalNumber(i, { unit: "day" });
|
|
2094
1840
|
case "iii":
|
|
2095
|
-
return
|
|
1841
|
+
return n.day(r, {
|
|
2096
1842
|
width: "abbreviated",
|
|
2097
1843
|
context: "formatting"
|
|
2098
1844
|
});
|
|
2099
1845
|
case "iiiii":
|
|
2100
|
-
return
|
|
1846
|
+
return n.day(r, {
|
|
2101
1847
|
width: "narrow",
|
|
2102
1848
|
context: "formatting"
|
|
2103
1849
|
});
|
|
2104
1850
|
case "iiiiii":
|
|
2105
|
-
return
|
|
1851
|
+
return n.day(r, {
|
|
2106
1852
|
width: "short",
|
|
2107
1853
|
context: "formatting"
|
|
2108
1854
|
});
|
|
2109
1855
|
case "iiii":
|
|
2110
1856
|
default:
|
|
2111
|
-
return
|
|
1857
|
+
return n.day(r, {
|
|
2112
1858
|
width: "wide",
|
|
2113
1859
|
context: "formatting"
|
|
2114
1860
|
});
|
|
2115
1861
|
}
|
|
2116
1862
|
},
|
|
2117
1863
|
// AM or PM
|
|
2118
|
-
a: function(e, t,
|
|
1864
|
+
a: function(e, t, n) {
|
|
2119
1865
|
const i = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
2120
1866
|
switch (t) {
|
|
2121
1867
|
case "a":
|
|
2122
1868
|
case "aa":
|
|
2123
|
-
return
|
|
1869
|
+
return n.dayPeriod(i, {
|
|
2124
1870
|
width: "abbreviated",
|
|
2125
1871
|
context: "formatting"
|
|
2126
1872
|
});
|
|
2127
1873
|
case "aaa":
|
|
2128
|
-
return
|
|
1874
|
+
return n.dayPeriod(i, {
|
|
2129
1875
|
width: "abbreviated",
|
|
2130
1876
|
context: "formatting"
|
|
2131
1877
|
}).toLowerCase();
|
|
2132
1878
|
case "aaaaa":
|
|
2133
|
-
return
|
|
1879
|
+
return n.dayPeriod(i, {
|
|
2134
1880
|
width: "narrow",
|
|
2135
1881
|
context: "formatting"
|
|
2136
1882
|
});
|
|
2137
1883
|
case "aaaa":
|
|
2138
1884
|
default:
|
|
2139
|
-
return
|
|
1885
|
+
return n.dayPeriod(i, {
|
|
2140
1886
|
width: "wide",
|
|
2141
1887
|
context: "formatting"
|
|
2142
1888
|
});
|
|
2143
1889
|
}
|
|
2144
1890
|
},
|
|
2145
1891
|
// AM, PM, midnight, noon
|
|
2146
|
-
b: function(e, t,
|
|
2147
|
-
const
|
|
1892
|
+
b: function(e, t, n) {
|
|
1893
|
+
const r = e.getHours();
|
|
2148
1894
|
let i;
|
|
2149
|
-
switch (
|
|
1895
|
+
switch (r === 12 ? i = Q.noon : r === 0 ? i = Q.midnight : i = r / 12 >= 1 ? "pm" : "am", t) {
|
|
2150
1896
|
case "b":
|
|
2151
1897
|
case "bb":
|
|
2152
|
-
return
|
|
1898
|
+
return n.dayPeriod(i, {
|
|
2153
1899
|
width: "abbreviated",
|
|
2154
1900
|
context: "formatting"
|
|
2155
1901
|
});
|
|
2156
1902
|
case "bbb":
|
|
2157
|
-
return
|
|
1903
|
+
return n.dayPeriod(i, {
|
|
2158
1904
|
width: "abbreviated",
|
|
2159
1905
|
context: "formatting"
|
|
2160
1906
|
}).toLowerCase();
|
|
2161
1907
|
case "bbbbb":
|
|
2162
|
-
return
|
|
1908
|
+
return n.dayPeriod(i, {
|
|
2163
1909
|
width: "narrow",
|
|
2164
1910
|
context: "formatting"
|
|
2165
1911
|
});
|
|
2166
1912
|
case "bbbb":
|
|
2167
1913
|
default:
|
|
2168
|
-
return
|
|
1914
|
+
return n.dayPeriod(i, {
|
|
2169
1915
|
width: "wide",
|
|
2170
1916
|
context: "formatting"
|
|
2171
1917
|
});
|
|
2172
1918
|
}
|
|
2173
1919
|
},
|
|
2174
1920
|
// in the morning, in the afternoon, in the evening, at night
|
|
2175
|
-
B: function(e, t,
|
|
2176
|
-
const
|
|
1921
|
+
B: function(e, t, n) {
|
|
1922
|
+
const r = e.getHours();
|
|
2177
1923
|
let i;
|
|
2178
|
-
switch (
|
|
1924
|
+
switch (r >= 17 ? i = Q.evening : r >= 12 ? i = Q.afternoon : r >= 4 ? i = Q.morning : i = Q.night, t) {
|
|
2179
1925
|
case "B":
|
|
2180
1926
|
case "BB":
|
|
2181
1927
|
case "BBB":
|
|
2182
|
-
return
|
|
1928
|
+
return n.dayPeriod(i, {
|
|
2183
1929
|
width: "abbreviated",
|
|
2184
1930
|
context: "formatting"
|
|
2185
1931
|
});
|
|
2186
1932
|
case "BBBBB":
|
|
2187
|
-
return
|
|
1933
|
+
return n.dayPeriod(i, {
|
|
2188
1934
|
width: "narrow",
|
|
2189
1935
|
context: "formatting"
|
|
2190
1936
|
});
|
|
2191
1937
|
case "BBBB":
|
|
2192
1938
|
default:
|
|
2193
|
-
return
|
|
1939
|
+
return n.dayPeriod(i, {
|
|
2194
1940
|
width: "wide",
|
|
2195
1941
|
context: "formatting"
|
|
2196
1942
|
});
|
|
2197
1943
|
}
|
|
2198
1944
|
},
|
|
2199
1945
|
// Hour [1-12]
|
|
2200
|
-
h: function(e, t,
|
|
1946
|
+
h: function(e, t, n) {
|
|
2201
1947
|
if (t === "ho") {
|
|
2202
|
-
let
|
|
2203
|
-
return
|
|
1948
|
+
let r = e.getHours() % 12;
|
|
1949
|
+
return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
|
|
2204
1950
|
}
|
|
2205
1951
|
return F.h(e, t);
|
|
2206
1952
|
},
|
|
2207
1953
|
// Hour [0-23]
|
|
2208
|
-
H: function(e, t,
|
|
2209
|
-
return t === "Ho" ?
|
|
1954
|
+
H: function(e, t, n) {
|
|
1955
|
+
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : F.H(e, t);
|
|
2210
1956
|
},
|
|
2211
1957
|
// Hour [0-11]
|
|
2212
|
-
K: function(e, t,
|
|
2213
|
-
const
|
|
2214
|
-
return t === "Ko" ?
|
|
1958
|
+
K: function(e, t, n) {
|
|
1959
|
+
const r = e.getHours() % 12;
|
|
1960
|
+
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : p(r, t.length);
|
|
2215
1961
|
},
|
|
2216
1962
|
// Hour [1-24]
|
|
2217
|
-
k: function(e, t,
|
|
2218
|
-
let
|
|
2219
|
-
return
|
|
1963
|
+
k: function(e, t, n) {
|
|
1964
|
+
let r = e.getHours();
|
|
1965
|
+
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : p(r, t.length);
|
|
2220
1966
|
},
|
|
2221
1967
|
// Minute
|
|
2222
|
-
m: function(e, t,
|
|
2223
|
-
return t === "mo" ?
|
|
1968
|
+
m: function(e, t, n) {
|
|
1969
|
+
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : F.m(e, t);
|
|
2224
1970
|
},
|
|
2225
1971
|
// Second
|
|
2226
|
-
s: function(e, t,
|
|
2227
|
-
return t === "so" ?
|
|
1972
|
+
s: function(e, t, n) {
|
|
1973
|
+
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : F.s(e, t);
|
|
2228
1974
|
},
|
|
2229
1975
|
// Fraction of second
|
|
2230
1976
|
S: function(e, t) {
|
|
2231
1977
|
return F.S(e, t);
|
|
2232
1978
|
},
|
|
2233
1979
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
2234
|
-
X: function(e, t,
|
|
2235
|
-
const
|
|
2236
|
-
if (
|
|
1980
|
+
X: function(e, t, n) {
|
|
1981
|
+
const r = e.getTimezoneOffset();
|
|
1982
|
+
if (r === 0)
|
|
2237
1983
|
return "Z";
|
|
2238
1984
|
switch (t) {
|
|
2239
1985
|
case "X":
|
|
2240
|
-
return Ht(
|
|
1986
|
+
return Ht(r);
|
|
2241
1987
|
case "XXXX":
|
|
2242
1988
|
case "XX":
|
|
2243
|
-
return
|
|
1989
|
+
return B(r);
|
|
2244
1990
|
case "XXXXX":
|
|
2245
1991
|
case "XXX":
|
|
2246
1992
|
default:
|
|
2247
|
-
return
|
|
1993
|
+
return B(r, ":");
|
|
2248
1994
|
}
|
|
2249
1995
|
},
|
|
2250
1996
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
2251
|
-
x: function(e, t,
|
|
2252
|
-
const
|
|
1997
|
+
x: function(e, t, n) {
|
|
1998
|
+
const r = e.getTimezoneOffset();
|
|
2253
1999
|
switch (t) {
|
|
2254
2000
|
case "x":
|
|
2255
|
-
return Ht(
|
|
2001
|
+
return Ht(r);
|
|
2256
2002
|
case "xxxx":
|
|
2257
2003
|
case "xx":
|
|
2258
|
-
return
|
|
2004
|
+
return B(r);
|
|
2259
2005
|
case "xxxxx":
|
|
2260
2006
|
case "xxx":
|
|
2261
2007
|
default:
|
|
2262
|
-
return
|
|
2008
|
+
return B(r, ":");
|
|
2263
2009
|
}
|
|
2264
2010
|
},
|
|
2265
2011
|
// Timezone (GMT)
|
|
2266
|
-
O: function(e, t,
|
|
2267
|
-
const
|
|
2012
|
+
O: function(e, t, n) {
|
|
2013
|
+
const r = e.getTimezoneOffset();
|
|
2268
2014
|
switch (t) {
|
|
2269
2015
|
case "O":
|
|
2270
2016
|
case "OO":
|
|
2271
2017
|
case "OOO":
|
|
2272
|
-
return "GMT" +
|
|
2018
|
+
return "GMT" + Yt(r, ":");
|
|
2273
2019
|
case "OOOO":
|
|
2274
2020
|
default:
|
|
2275
|
-
return "GMT" +
|
|
2021
|
+
return "GMT" + B(r, ":");
|
|
2276
2022
|
}
|
|
2277
2023
|
},
|
|
2278
2024
|
// Timezone (specific non-location)
|
|
2279
|
-
z: function(e, t,
|
|
2280
|
-
const
|
|
2025
|
+
z: function(e, t, n) {
|
|
2026
|
+
const r = e.getTimezoneOffset();
|
|
2281
2027
|
switch (t) {
|
|
2282
2028
|
case "z":
|
|
2283
2029
|
case "zz":
|
|
2284
2030
|
case "zzz":
|
|
2285
|
-
return "GMT" +
|
|
2031
|
+
return "GMT" + Yt(r, ":");
|
|
2286
2032
|
case "zzzz":
|
|
2287
2033
|
default:
|
|
2288
|
-
return "GMT" +
|
|
2034
|
+
return "GMT" + B(r, ":");
|
|
2289
2035
|
}
|
|
2290
2036
|
},
|
|
2291
2037
|
// Seconds timestamp
|
|
2292
|
-
t: function(e, t,
|
|
2293
|
-
const
|
|
2294
|
-
return p(
|
|
2038
|
+
t: function(e, t, n) {
|
|
2039
|
+
const r = Math.trunc(+e / 1e3);
|
|
2040
|
+
return p(r, t.length);
|
|
2295
2041
|
},
|
|
2296
2042
|
// Milliseconds timestamp
|
|
2297
|
-
T: function(e, t,
|
|
2043
|
+
T: function(e, t, n) {
|
|
2298
2044
|
return p(+e, t.length);
|
|
2299
2045
|
}
|
|
2300
2046
|
};
|
|
2301
|
-
function
|
|
2302
|
-
const
|
|
2303
|
-
return
|
|
2047
|
+
function Yt(e, t = "") {
|
|
2048
|
+
const n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60), s = r % 60;
|
|
2049
|
+
return s === 0 ? n + String(i) : n + String(i) + t + p(s, 2);
|
|
2304
2050
|
}
|
|
2305
2051
|
function Ht(e, t) {
|
|
2306
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") + p(Math.abs(e) / 60, 2) :
|
|
2052
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + p(Math.abs(e) / 60, 2) : B(e, t);
|
|
2307
2053
|
}
|
|
2308
|
-
function
|
|
2309
|
-
const
|
|
2310
|
-
return
|
|
2054
|
+
function B(e, t = "") {
|
|
2055
|
+
const n = e > 0 ? "-" : "+", r = Math.abs(e), i = p(Math.trunc(r / 60), 2), s = p(r % 60, 2);
|
|
2056
|
+
return n + i + t + s;
|
|
2311
2057
|
}
|
|
2312
2058
|
const Ft = (e, t) => {
|
|
2313
2059
|
switch (e) {
|
|
@@ -2321,7 +2067,7 @@ const Ft = (e, t) => {
|
|
|
2321
2067
|
default:
|
|
2322
2068
|
return t.date({ width: "full" });
|
|
2323
2069
|
}
|
|
2324
|
-
},
|
|
2070
|
+
}, ln = (e, t) => {
|
|
2325
2071
|
switch (e) {
|
|
2326
2072
|
case "p":
|
|
2327
2073
|
return t.time({ width: "short" });
|
|
@@ -2334,137 +2080,137 @@ const Ft = (e, t) => {
|
|
|
2334
2080
|
return t.time({ width: "full" });
|
|
2335
2081
|
}
|
|
2336
2082
|
}, pi = (e, t) => {
|
|
2337
|
-
const
|
|
2083
|
+
const n = e.match(/(P+)(p+)?/) || [], r = n[1], i = n[2];
|
|
2338
2084
|
if (!i)
|
|
2339
2085
|
return Ft(e, t);
|
|
2340
|
-
let
|
|
2341
|
-
switch (
|
|
2086
|
+
let s;
|
|
2087
|
+
switch (r) {
|
|
2342
2088
|
case "P":
|
|
2343
|
-
|
|
2089
|
+
s = t.dateTime({ width: "short" });
|
|
2344
2090
|
break;
|
|
2345
2091
|
case "PP":
|
|
2346
|
-
|
|
2092
|
+
s = t.dateTime({ width: "medium" });
|
|
2347
2093
|
break;
|
|
2348
2094
|
case "PPP":
|
|
2349
|
-
|
|
2095
|
+
s = t.dateTime({ width: "long" });
|
|
2350
2096
|
break;
|
|
2351
2097
|
case "PPPP":
|
|
2352
2098
|
default:
|
|
2353
|
-
|
|
2099
|
+
s = t.dateTime({ width: "full" });
|
|
2354
2100
|
break;
|
|
2355
2101
|
}
|
|
2356
|
-
return
|
|
2102
|
+
return s.replace("{{date}}", Ft(r, t)).replace("{{time}}", ln(i, t));
|
|
2357
2103
|
}, _i = {
|
|
2358
|
-
p:
|
|
2104
|
+
p: ln,
|
|
2359
2105
|
P: pi
|
|
2360
2106
|
}, wi = /^D+$/, bi = /^Y+$/, Ti = ["D", "DD", "YY", "YYYY"];
|
|
2361
|
-
function
|
|
2107
|
+
function Mi(e) {
|
|
2362
2108
|
return wi.test(e);
|
|
2363
2109
|
}
|
|
2364
|
-
function
|
|
2110
|
+
function Di(e) {
|
|
2365
2111
|
return bi.test(e);
|
|
2366
2112
|
}
|
|
2367
|
-
function
|
|
2368
|
-
const
|
|
2369
|
-
if (console.warn(
|
|
2113
|
+
function Si(e, t, n) {
|
|
2114
|
+
const r = Oi(e, t, n);
|
|
2115
|
+
if (console.warn(r), Ti.includes(e)) throw new RangeError(r);
|
|
2370
2116
|
}
|
|
2371
|
-
function
|
|
2372
|
-
const
|
|
2373
|
-
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${
|
|
2117
|
+
function Oi(e, t, n) {
|
|
2118
|
+
const r = e[0] === "Y" ? "years" : "days of the month";
|
|
2119
|
+
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`;
|
|
2374
2120
|
}
|
|
2375
|
-
const vi = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ei = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, xi = /^'([^]*?)'?$/,
|
|
2376
|
-
function
|
|
2377
|
-
var _, y, g, x,
|
|
2378
|
-
const
|
|
2121
|
+
const vi = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ei = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, xi = /^'([^]*?)'?$/, Ii = /''/g, Ni = /[a-zA-Z]/;
|
|
2122
|
+
function dn(e, t, n) {
|
|
2123
|
+
var _, y, g, x, I, N, R, W;
|
|
2124
|
+
const r = se(), i = (n == null ? void 0 : n.locale) ?? r.locale ?? mi, s = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((y = (_ = n == null ? void 0 : n.locale) == null ? void 0 : _.options) == null ? void 0 : y.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((x = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, u = (n == null ? void 0 : n.weekStartsOn) ?? ((N = (I = n == null ? void 0 : n.locale) == null ? void 0 : I.options) == null ? void 0 : N.weekStartsOn) ?? r.weekStartsOn ?? ((W = (R = r.locale) == null ? void 0 : R.options) == null ? void 0 : W.weekStartsOn) ?? 0, d = D(e, n == null ? void 0 : n.in);
|
|
2379
2125
|
if (!Ca(d))
|
|
2380
2126
|
throw new RangeError("Invalid time value");
|
|
2381
|
-
let
|
|
2382
|
-
const T =
|
|
2127
|
+
let f = t.match(Ei).map((S) => {
|
|
2128
|
+
const T = S[0];
|
|
2383
2129
|
if (T === "p" || T === "P") {
|
|
2384
2130
|
const q = _i[T];
|
|
2385
|
-
return q(
|
|
2131
|
+
return q(S, i.formatLong);
|
|
2386
2132
|
}
|
|
2387
|
-
return
|
|
2388
|
-
}).join("").match(vi).map((
|
|
2389
|
-
if (
|
|
2133
|
+
return S;
|
|
2134
|
+
}).join("").match(vi).map((S) => {
|
|
2135
|
+
if (S === "''")
|
|
2390
2136
|
return { isToken: !1, value: "'" };
|
|
2391
|
-
const T =
|
|
2137
|
+
const T = S[0];
|
|
2392
2138
|
if (T === "'")
|
|
2393
|
-
return { isToken: !1, value:
|
|
2394
|
-
if (
|
|
2395
|
-
return { isToken: !0, value:
|
|
2396
|
-
if (T.match(
|
|
2139
|
+
return { isToken: !1, value: Pi(S) };
|
|
2140
|
+
if (At[T])
|
|
2141
|
+
return { isToken: !0, value: S };
|
|
2142
|
+
if (T.match(Ni))
|
|
2397
2143
|
throw new RangeError(
|
|
2398
2144
|
"Format string contains an unescaped latin alphabet character `" + T + "`"
|
|
2399
2145
|
);
|
|
2400
|
-
return { isToken: !1, value:
|
|
2146
|
+
return { isToken: !1, value: S };
|
|
2401
2147
|
});
|
|
2402
|
-
i.localize.preprocessor && (
|
|
2403
|
-
const
|
|
2404
|
-
firstWeekContainsDate:
|
|
2405
|
-
weekStartsOn:
|
|
2148
|
+
i.localize.preprocessor && (f = i.localize.preprocessor(d, f));
|
|
2149
|
+
const m = {
|
|
2150
|
+
firstWeekContainsDate: s,
|
|
2151
|
+
weekStartsOn: u,
|
|
2406
2152
|
locale: i
|
|
2407
2153
|
};
|
|
2408
|
-
return
|
|
2409
|
-
if (!
|
|
2410
|
-
const T =
|
|
2411
|
-
(!(
|
|
2412
|
-
const q =
|
|
2413
|
-
return q(d, T, i.localize,
|
|
2154
|
+
return f.map((S) => {
|
|
2155
|
+
if (!S.isToken) return S.value;
|
|
2156
|
+
const T = S.value;
|
|
2157
|
+
(!(n != null && n.useAdditionalWeekYearTokens) && Di(T) || !(n != null && n.useAdditionalDayOfYearTokens) && Mi(T)) && Si(T, t, String(e));
|
|
2158
|
+
const q = At[T[0]];
|
|
2159
|
+
return q(d, T, i.localize, m);
|
|
2414
2160
|
}).join("");
|
|
2415
2161
|
}
|
|
2416
|
-
function
|
|
2162
|
+
function Pi(e) {
|
|
2417
2163
|
const t = e.match(xi);
|
|
2418
|
-
return t ? t[1].replace(
|
|
2164
|
+
return t ? t[1].replace(Ii, "'") : e;
|
|
2419
2165
|
}
|
|
2420
2166
|
function Ci(e, t) {
|
|
2421
|
-
const
|
|
2422
|
-
return
|
|
2167
|
+
const n = D(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = n.getMonth(), s = C(n, 0);
|
|
2168
|
+
return s.setFullYear(r, i + 1, 0), s.setHours(0, 0, 0, 0), s.getDate();
|
|
2423
2169
|
}
|
|
2424
2170
|
function Ri() {
|
|
2425
|
-
return Object.assign({},
|
|
2426
|
-
}
|
|
2427
|
-
function Wt(e) {
|
|
2428
|
-
return +M(e);
|
|
2171
|
+
return Object.assign({}, se());
|
|
2429
2172
|
}
|
|
2430
2173
|
function Lt(e) {
|
|
2431
|
-
return
|
|
2174
|
+
return +D(e);
|
|
2175
|
+
}
|
|
2176
|
+
function Wt(e) {
|
|
2177
|
+
return Math.trunc(+D(e) / 1e3);
|
|
2432
2178
|
}
|
|
2433
2179
|
function ki(e) {
|
|
2434
|
-
return Math.trunc(e *
|
|
2180
|
+
return Math.trunc(e * Oa);
|
|
2435
2181
|
}
|
|
2436
|
-
function
|
|
2437
|
-
const t = e /
|
|
2182
|
+
function Gi(e) {
|
|
2183
|
+
const t = e / Sa;
|
|
2438
2184
|
return Math.trunc(t);
|
|
2439
2185
|
}
|
|
2440
|
-
function
|
|
2441
|
-
return va(e, -1,
|
|
2442
|
-
}
|
|
2443
|
-
function qt(e, t, r) {
|
|
2444
|
-
const n = Ri(), i = Hi(e, r.timeZone, r.locale ?? n.locale);
|
|
2445
|
-
return "formatToParts" in i ? Gi(i, t) : Ai(i, t);
|
|
2186
|
+
function mn(e, t, n) {
|
|
2187
|
+
return va(e, -1, n);
|
|
2446
2188
|
}
|
|
2447
|
-
function
|
|
2448
|
-
const r = e.
|
|
2449
|
-
|
|
2450
|
-
if (r[n].type === "timeZoneName")
|
|
2451
|
-
return r[n].value;
|
|
2189
|
+
function qt(e, t, n) {
|
|
2190
|
+
const r = Ri(), i = Hi(e, n.timeZone, n.locale ?? r.locale);
|
|
2191
|
+
return "formatToParts" in i ? Ai(i, t) : Yi(i, t);
|
|
2452
2192
|
}
|
|
2453
2193
|
function Ai(e, t) {
|
|
2454
|
-
const
|
|
2455
|
-
|
|
2194
|
+
const n = e.formatToParts(t);
|
|
2195
|
+
for (let r = n.length - 1; r >= 0; --r)
|
|
2196
|
+
if (n[r].type === "timeZoneName")
|
|
2197
|
+
return n[r].value;
|
|
2456
2198
|
}
|
|
2457
|
-
function
|
|
2458
|
-
|
|
2199
|
+
function Yi(e, t) {
|
|
2200
|
+
const n = e.format(t).replace(/\u200E/g, ""), r = / [\w-+ ]+$/.exec(n);
|
|
2201
|
+
return r ? r[0].substr(1) : "";
|
|
2202
|
+
}
|
|
2203
|
+
function Hi(e, t, n) {
|
|
2204
|
+
return new Intl.DateTimeFormat(n ? [n.code, "en-US"] : void 0, {
|
|
2459
2205
|
timeZone: t,
|
|
2460
2206
|
timeZoneName: e
|
|
2461
2207
|
});
|
|
2462
2208
|
}
|
|
2463
2209
|
function Fi(e, t) {
|
|
2464
|
-
const
|
|
2465
|
-
return "formatToParts" in
|
|
2210
|
+
const n = ji(t);
|
|
2211
|
+
return "formatToParts" in n ? Wi(n, e) : qi(n, e);
|
|
2466
2212
|
}
|
|
2467
|
-
const
|
|
2213
|
+
const Li = {
|
|
2468
2214
|
year: 0,
|
|
2469
2215
|
month: 1,
|
|
2470
2216
|
day: 2,
|
|
@@ -2472,32 +2218,32 @@ const Wi = {
|
|
|
2472
2218
|
minute: 4,
|
|
2473
2219
|
second: 5
|
|
2474
2220
|
};
|
|
2475
|
-
function
|
|
2221
|
+
function Wi(e, t) {
|
|
2476
2222
|
try {
|
|
2477
|
-
const
|
|
2478
|
-
for (let i = 0; i <
|
|
2479
|
-
const
|
|
2480
|
-
|
|
2223
|
+
const n = e.formatToParts(t), r = [];
|
|
2224
|
+
for (let i = 0; i < n.length; i++) {
|
|
2225
|
+
const s = Li[n[i].type];
|
|
2226
|
+
s !== void 0 && (r[s] = parseInt(n[i].value, 10));
|
|
2481
2227
|
}
|
|
2482
|
-
return
|
|
2483
|
-
} catch (
|
|
2484
|
-
if (
|
|
2228
|
+
return r;
|
|
2229
|
+
} catch (n) {
|
|
2230
|
+
if (n instanceof RangeError)
|
|
2485
2231
|
return [NaN];
|
|
2486
|
-
throw
|
|
2232
|
+
throw n;
|
|
2487
2233
|
}
|
|
2488
2234
|
}
|
|
2489
2235
|
function qi(e, t) {
|
|
2490
|
-
const
|
|
2236
|
+
const n = e.format(t), r = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);
|
|
2491
2237
|
return [
|
|
2492
|
-
parseInt(
|
|
2493
|
-
parseInt(
|
|
2494
|
-
parseInt(
|
|
2495
|
-
parseInt(
|
|
2496
|
-
parseInt(
|
|
2497
|
-
parseInt(
|
|
2238
|
+
parseInt(r[3], 10),
|
|
2239
|
+
parseInt(r[1], 10),
|
|
2240
|
+
parseInt(r[2], 10),
|
|
2241
|
+
parseInt(r[4], 10),
|
|
2242
|
+
parseInt(r[5], 10),
|
|
2243
|
+
parseInt(r[6], 10)
|
|
2498
2244
|
];
|
|
2499
2245
|
}
|
|
2500
|
-
const
|
|
2246
|
+
const Le = {}, Ut = new Intl.DateTimeFormat("en-US", {
|
|
2501
2247
|
hourCycle: "h23",
|
|
2502
2248
|
timeZone: "America/New_York",
|
|
2503
2249
|
year: "numeric",
|
|
@@ -2508,7 +2254,7 @@ const We = {}, Ut = new Intl.DateTimeFormat("en-US", {
|
|
|
2508
2254
|
second: "2-digit"
|
|
2509
2255
|
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), Ui = Ut === "06/25/2014, 00:00:00" || Ut === "06/25/2014 00:00:00";
|
|
2510
2256
|
function ji(e) {
|
|
2511
|
-
return
|
|
2257
|
+
return Le[e] || (Le[e] = Ui ? new Intl.DateTimeFormat("en-US", {
|
|
2512
2258
|
hourCycle: "h23",
|
|
2513
2259
|
timeZone: e,
|
|
2514
2260
|
year: "numeric",
|
|
@@ -2526,157 +2272,157 @@ function ji(e) {
|
|
|
2526
2272
|
hour: "2-digit",
|
|
2527
2273
|
minute: "2-digit",
|
|
2528
2274
|
second: "2-digit"
|
|
2529
|
-
})),
|
|
2275
|
+
})), Le[e];
|
|
2530
2276
|
}
|
|
2531
|
-
function Ze(e, t,
|
|
2277
|
+
function Ze(e, t, n, r, i, s, u) {
|
|
2532
2278
|
const d = /* @__PURE__ */ new Date(0);
|
|
2533
|
-
return d.setUTCFullYear(e, t,
|
|
2279
|
+
return d.setUTCFullYear(e, t, n), d.setUTCHours(r, i, s, u), d;
|
|
2534
2280
|
}
|
|
2535
|
-
const jt = 36e5, zi = 6e4,
|
|
2281
|
+
const jt = 36e5, zi = 6e4, We = {
|
|
2536
2282
|
timezoneZ: /^(Z)$/,
|
|
2537
2283
|
timezoneHH: /^([+-]\d{2})$/,
|
|
2538
2284
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
2539
2285
|
};
|
|
2540
|
-
function
|
|
2286
|
+
function ce(e, t, n) {
|
|
2541
2287
|
if (!e)
|
|
2542
2288
|
return 0;
|
|
2543
|
-
let
|
|
2544
|
-
if (
|
|
2289
|
+
let r = We.timezoneZ.exec(e);
|
|
2290
|
+
if (r)
|
|
2545
2291
|
return 0;
|
|
2546
|
-
let i,
|
|
2547
|
-
if (
|
|
2548
|
-
return i = parseInt(
|
|
2549
|
-
if (
|
|
2550
|
-
i = parseInt(
|
|
2551
|
-
const
|
|
2552
|
-
return zt(i,
|
|
2292
|
+
let i, s;
|
|
2293
|
+
if (r = We.timezoneHH.exec(e), r)
|
|
2294
|
+
return i = parseInt(r[1], 10), zt(i) ? -(i * jt) : NaN;
|
|
2295
|
+
if (r = We.timezoneHHMM.exec(e), r) {
|
|
2296
|
+
i = parseInt(r[2], 10);
|
|
2297
|
+
const u = parseInt(r[3], 10);
|
|
2298
|
+
return zt(i, u) ? (s = Math.abs(i) * jt + u * zi, r[1] === "+" ? -s : s) : NaN;
|
|
2553
2299
|
}
|
|
2554
2300
|
if (Xi(e)) {
|
|
2555
2301
|
t = new Date(t || Date.now());
|
|
2556
|
-
const
|
|
2557
|
-
return -(
|
|
2302
|
+
const u = n ? t : Bi(t), d = ze(u, e);
|
|
2303
|
+
return -(n ? d : Vi(t, d, e));
|
|
2558
2304
|
}
|
|
2559
2305
|
return NaN;
|
|
2560
2306
|
}
|
|
2561
|
-
function
|
|
2307
|
+
function Bi(e) {
|
|
2562
2308
|
return Ze(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
2563
2309
|
}
|
|
2564
2310
|
function ze(e, t) {
|
|
2565
|
-
const
|
|
2311
|
+
const n = Fi(e, t), r = Ze(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
|
|
2566
2312
|
let i = e.getTime();
|
|
2567
|
-
const
|
|
2568
|
-
return i -=
|
|
2313
|
+
const s = i % 1e3;
|
|
2314
|
+
return i -= s >= 0 ? s : 1e3 + s, r - i;
|
|
2569
2315
|
}
|
|
2570
|
-
function
|
|
2316
|
+
function Vi(e, t, n) {
|
|
2571
2317
|
let i = e.getTime() - t;
|
|
2572
|
-
const
|
|
2573
|
-
if (t ===
|
|
2318
|
+
const s = ze(new Date(i), n);
|
|
2319
|
+
if (t === s)
|
|
2574
2320
|
return t;
|
|
2575
|
-
i -=
|
|
2576
|
-
const
|
|
2577
|
-
return
|
|
2321
|
+
i -= s - t;
|
|
2322
|
+
const u = ze(new Date(i), n);
|
|
2323
|
+
return s === u ? s : Math.max(s, u);
|
|
2578
2324
|
}
|
|
2579
2325
|
function zt(e, t) {
|
|
2580
2326
|
return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
|
|
2581
2327
|
}
|
|
2582
|
-
const
|
|
2328
|
+
const Bt = {};
|
|
2583
2329
|
function Xi(e) {
|
|
2584
|
-
if (
|
|
2330
|
+
if (Bt[e])
|
|
2585
2331
|
return !0;
|
|
2586
2332
|
try {
|
|
2587
|
-
return new Intl.DateTimeFormat(void 0, { timeZone: e }),
|
|
2333
|
+
return new Intl.DateTimeFormat(void 0, { timeZone: e }), Bt[e] = !0, !0;
|
|
2588
2334
|
} catch {
|
|
2589
2335
|
return !1;
|
|
2590
2336
|
}
|
|
2591
2337
|
}
|
|
2592
2338
|
const $i = 60 * 1e3, Zi = {
|
|
2593
2339
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
2594
|
-
X: function(e, t,
|
|
2595
|
-
const
|
|
2596
|
-
if (
|
|
2340
|
+
X: function(e, t, n) {
|
|
2341
|
+
const r = qe(n.timeZone, e);
|
|
2342
|
+
if (r === 0)
|
|
2597
2343
|
return "Z";
|
|
2598
2344
|
switch (t) {
|
|
2599
2345
|
case "X":
|
|
2600
|
-
return
|
|
2346
|
+
return Vt(r);
|
|
2601
2347
|
case "XXXX":
|
|
2602
2348
|
case "XX":
|
|
2603
|
-
return K(
|
|
2349
|
+
return K(r);
|
|
2604
2350
|
case "XXXXX":
|
|
2605
2351
|
case "XXX":
|
|
2606
2352
|
default:
|
|
2607
|
-
return K(
|
|
2353
|
+
return K(r, ":");
|
|
2608
2354
|
}
|
|
2609
2355
|
},
|
|
2610
2356
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
2611
|
-
x: function(e, t,
|
|
2612
|
-
const
|
|
2357
|
+
x: function(e, t, n) {
|
|
2358
|
+
const r = qe(n.timeZone, e);
|
|
2613
2359
|
switch (t) {
|
|
2614
2360
|
case "x":
|
|
2615
|
-
return
|
|
2361
|
+
return Vt(r);
|
|
2616
2362
|
case "xxxx":
|
|
2617
2363
|
case "xx":
|
|
2618
|
-
return K(
|
|
2364
|
+
return K(r);
|
|
2619
2365
|
case "xxxxx":
|
|
2620
2366
|
case "xxx":
|
|
2621
2367
|
default:
|
|
2622
|
-
return K(
|
|
2368
|
+
return K(r, ":");
|
|
2623
2369
|
}
|
|
2624
2370
|
},
|
|
2625
2371
|
// Timezone (GMT)
|
|
2626
|
-
O: function(e, t,
|
|
2627
|
-
const
|
|
2372
|
+
O: function(e, t, n) {
|
|
2373
|
+
const r = qe(n.timeZone, e);
|
|
2628
2374
|
switch (t) {
|
|
2629
2375
|
case "O":
|
|
2630
2376
|
case "OO":
|
|
2631
2377
|
case "OOO":
|
|
2632
|
-
return "GMT" + Qi(
|
|
2378
|
+
return "GMT" + Qi(r, ":");
|
|
2633
2379
|
case "OOOO":
|
|
2634
2380
|
default:
|
|
2635
|
-
return "GMT" + K(
|
|
2381
|
+
return "GMT" + K(r, ":");
|
|
2636
2382
|
}
|
|
2637
2383
|
},
|
|
2638
2384
|
// Timezone (specific non-location)
|
|
2639
|
-
z: function(e, t,
|
|
2385
|
+
z: function(e, t, n) {
|
|
2640
2386
|
switch (t) {
|
|
2641
2387
|
case "z":
|
|
2642
2388
|
case "zz":
|
|
2643
2389
|
case "zzz":
|
|
2644
|
-
return qt("short", e,
|
|
2390
|
+
return qt("short", e, n);
|
|
2645
2391
|
case "zzzz":
|
|
2646
2392
|
default:
|
|
2647
|
-
return qt("long", e,
|
|
2393
|
+
return qt("long", e, n);
|
|
2648
2394
|
}
|
|
2649
2395
|
}
|
|
2650
2396
|
};
|
|
2651
2397
|
function qe(e, t) {
|
|
2652
|
-
const
|
|
2653
|
-
if (Number.isNaN(
|
|
2398
|
+
const n = e ? ce(e, t, !0) / $i : (t == null ? void 0 : t.getTimezoneOffset()) ?? 0;
|
|
2399
|
+
if (Number.isNaN(n))
|
|
2654
2400
|
throw new RangeError("Invalid time zone specified: " + e);
|
|
2655
|
-
return
|
|
2401
|
+
return n;
|
|
2656
2402
|
}
|
|
2657
2403
|
function we(e, t) {
|
|
2658
|
-
const
|
|
2659
|
-
let
|
|
2660
|
-
for (;
|
|
2661
|
-
|
|
2662
|
-
return
|
|
2404
|
+
const n = e < 0 ? "-" : "";
|
|
2405
|
+
let r = Math.abs(e).toString();
|
|
2406
|
+
for (; r.length < t; )
|
|
2407
|
+
r = "0" + r;
|
|
2408
|
+
return n + r;
|
|
2663
2409
|
}
|
|
2664
2410
|
function K(e, t = "") {
|
|
2665
|
-
const
|
|
2666
|
-
return
|
|
2411
|
+
const n = e > 0 ? "-" : "+", r = Math.abs(e), i = we(Math.floor(r / 60), 2), s = we(Math.floor(r % 60), 2);
|
|
2412
|
+
return n + i + t + s;
|
|
2667
2413
|
}
|
|
2668
|
-
function
|
|
2414
|
+
function Vt(e, t) {
|
|
2669
2415
|
return e % 60 === 0 ? (e > 0 ? "-" : "+") + we(Math.abs(e) / 60, 2) : K(e, t);
|
|
2670
2416
|
}
|
|
2671
2417
|
function Qi(e, t = "") {
|
|
2672
|
-
const
|
|
2673
|
-
return
|
|
2418
|
+
const n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.floor(r / 60), s = r % 60;
|
|
2419
|
+
return s === 0 ? n + String(i) : n + String(i) + t + we(s, 2);
|
|
2674
2420
|
}
|
|
2675
2421
|
function Xt(e) {
|
|
2676
2422
|
const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
2677
2423
|
return t.setUTCFullYear(e.getFullYear()), +e - +t;
|
|
2678
2424
|
}
|
|
2679
|
-
const
|
|
2425
|
+
const fn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Ue = 36e5, $t = 6e4, Ki = 2, O = {
|
|
2680
2426
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
2681
2427
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
2682
2428
|
// year tokens
|
|
@@ -2708,15 +2454,15 @@ const fr = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)
|
|
|
2708
2454
|
HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
2709
2455
|
HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
2710
2456
|
// time zone tokens (to identify the presence of a tz)
|
|
2711
|
-
timeZone:
|
|
2457
|
+
timeZone: fn
|
|
2712
2458
|
};
|
|
2713
2459
|
function be(e, t = {}) {
|
|
2714
2460
|
if (arguments.length < 1)
|
|
2715
2461
|
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
2716
2462
|
if (e === null)
|
|
2717
2463
|
return /* @__PURE__ */ new Date(NaN);
|
|
2718
|
-
const
|
|
2719
|
-
if (
|
|
2464
|
+
const n = t.additionalDigits == null ? Ki : Number(t.additionalDigits);
|
|
2465
|
+
if (n !== 2 && n !== 1 && n !== 0)
|
|
2720
2466
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
2721
2467
|
if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
|
|
2722
2468
|
return new Date(e.getTime());
|
|
@@ -2724,48 +2470,48 @@ function be(e, t = {}) {
|
|
|
2724
2470
|
return new Date(e);
|
|
2725
2471
|
if (Object.prototype.toString.call(e) !== "[object String]")
|
|
2726
2472
|
return /* @__PURE__ */ new Date(NaN);
|
|
2727
|
-
const
|
|
2728
|
-
if (
|
|
2473
|
+
const r = Ji(e), { year: i, restDateString: s } = eo(r.date, n), u = to(s, i);
|
|
2474
|
+
if (u === null || isNaN(u.getTime()))
|
|
2729
2475
|
return /* @__PURE__ */ new Date(NaN);
|
|
2730
|
-
if (
|
|
2731
|
-
const d =
|
|
2732
|
-
let
|
|
2733
|
-
if (
|
|
2476
|
+
if (u) {
|
|
2477
|
+
const d = u.getTime();
|
|
2478
|
+
let f = 0, m;
|
|
2479
|
+
if (r.time && (f = no(r.time), f === null || isNaN(f)))
|
|
2734
2480
|
return /* @__PURE__ */ new Date(NaN);
|
|
2735
|
-
if (
|
|
2736
|
-
if (
|
|
2481
|
+
if (r.timeZone || t.timeZone) {
|
|
2482
|
+
if (m = ce(r.timeZone || t.timeZone, new Date(d + f)), isNaN(m))
|
|
2737
2483
|
return /* @__PURE__ */ new Date(NaN);
|
|
2738
2484
|
} else
|
|
2739
|
-
|
|
2740
|
-
return new Date(d +
|
|
2485
|
+
m = Xt(new Date(d + f)), m = Xt(new Date(d + f + m));
|
|
2486
|
+
return new Date(d + f + m);
|
|
2741
2487
|
} else
|
|
2742
2488
|
return /* @__PURE__ */ new Date(NaN);
|
|
2743
2489
|
}
|
|
2744
2490
|
function Ji(e) {
|
|
2745
2491
|
const t = {};
|
|
2746
|
-
let
|
|
2747
|
-
if (
|
|
2748
|
-
const i =
|
|
2749
|
-
i ? (t.time =
|
|
2492
|
+
let n = O.dateTimePattern.exec(e), r;
|
|
2493
|
+
if (n ? (t.date = n[1], r = n[3]) : (n = O.datePattern.exec(e), n ? (t.date = n[1], r = n[2]) : (t.date = null, r = e)), r) {
|
|
2494
|
+
const i = O.timeZone.exec(r);
|
|
2495
|
+
i ? (t.time = r.replace(i[1], ""), t.timeZone = i[1].trim()) : t.time = r;
|
|
2750
2496
|
}
|
|
2751
2497
|
return t;
|
|
2752
2498
|
}
|
|
2753
|
-
function
|
|
2499
|
+
function eo(e, t) {
|
|
2754
2500
|
if (e) {
|
|
2755
|
-
const
|
|
2756
|
-
let i =
|
|
2501
|
+
const n = O.YYY[t], r = O.YYYYY[t];
|
|
2502
|
+
let i = O.YYYY.exec(e) || r.exec(e);
|
|
2757
2503
|
if (i) {
|
|
2758
|
-
const
|
|
2504
|
+
const s = i[1];
|
|
2759
2505
|
return {
|
|
2760
|
-
year: parseInt(
|
|
2761
|
-
restDateString: e.slice(
|
|
2506
|
+
year: parseInt(s, 10),
|
|
2507
|
+
restDateString: e.slice(s.length)
|
|
2762
2508
|
};
|
|
2763
2509
|
}
|
|
2764
|
-
if (i =
|
|
2765
|
-
const
|
|
2510
|
+
if (i = O.YY.exec(e) || n.exec(e), i) {
|
|
2511
|
+
const s = i[1];
|
|
2766
2512
|
return {
|
|
2767
|
-
year: parseInt(
|
|
2768
|
-
restDateString: e.slice(
|
|
2513
|
+
year: parseInt(s, 10) * 100,
|
|
2514
|
+
restDateString: e.slice(s.length)
|
|
2769
2515
|
};
|
|
2770
2516
|
}
|
|
2771
2517
|
}
|
|
@@ -2773,136 +2519,136 @@ function es(e, t) {
|
|
|
2773
2519
|
year: null
|
|
2774
2520
|
};
|
|
2775
2521
|
}
|
|
2776
|
-
function
|
|
2522
|
+
function to(e, t) {
|
|
2777
2523
|
if (t === null)
|
|
2778
2524
|
return null;
|
|
2779
|
-
let
|
|
2525
|
+
let n, r, i;
|
|
2780
2526
|
if (!e || !e.length)
|
|
2781
|
-
return
|
|
2782
|
-
let
|
|
2783
|
-
if (
|
|
2784
|
-
return
|
|
2785
|
-
if (
|
|
2786
|
-
|
|
2787
|
-
const
|
|
2788
|
-
return
|
|
2789
|
-
}
|
|
2790
|
-
if (
|
|
2791
|
-
|
|
2792
|
-
const
|
|
2793
|
-
return Qt(t,
|
|
2794
|
-
}
|
|
2795
|
-
if (
|
|
2796
|
-
return i = parseInt(
|
|
2797
|
-
if (
|
|
2798
|
-
i = parseInt(
|
|
2799
|
-
const
|
|
2800
|
-
return Kt(i,
|
|
2527
|
+
return n = /* @__PURE__ */ new Date(0), n.setUTCFullYear(t), n;
|
|
2528
|
+
let s = O.MM.exec(e);
|
|
2529
|
+
if (s)
|
|
2530
|
+
return n = /* @__PURE__ */ new Date(0), r = parseInt(s[1], 10) - 1, Qt(t, r) ? (n.setUTCFullYear(t, r), n) : /* @__PURE__ */ new Date(NaN);
|
|
2531
|
+
if (s = O.DDD.exec(e), s) {
|
|
2532
|
+
n = /* @__PURE__ */ new Date(0);
|
|
2533
|
+
const u = parseInt(s[1], 10);
|
|
2534
|
+
return io(t, u) ? (n.setUTCFullYear(t, 0, u), n) : /* @__PURE__ */ new Date(NaN);
|
|
2535
|
+
}
|
|
2536
|
+
if (s = O.MMDD.exec(e), s) {
|
|
2537
|
+
n = /* @__PURE__ */ new Date(0), r = parseInt(s[1], 10) - 1;
|
|
2538
|
+
const u = parseInt(s[2], 10);
|
|
2539
|
+
return Qt(t, r, u) ? (n.setUTCFullYear(t, r, u), n) : /* @__PURE__ */ new Date(NaN);
|
|
2540
|
+
}
|
|
2541
|
+
if (s = O.Www.exec(e), s)
|
|
2542
|
+
return i = parseInt(s[1], 10) - 1, Kt(i) ? Zt(t, i) : /* @__PURE__ */ new Date(NaN);
|
|
2543
|
+
if (s = O.WwwD.exec(e), s) {
|
|
2544
|
+
i = parseInt(s[1], 10) - 1;
|
|
2545
|
+
const u = parseInt(s[2], 10) - 1;
|
|
2546
|
+
return Kt(i, u) ? Zt(t, i, u) : /* @__PURE__ */ new Date(NaN);
|
|
2801
2547
|
}
|
|
2802
2548
|
return null;
|
|
2803
2549
|
}
|
|
2804
|
-
function
|
|
2805
|
-
let t,
|
|
2806
|
-
if (
|
|
2807
|
-
return t = parseFloat(
|
|
2808
|
-
if (
|
|
2809
|
-
return t = parseInt(
|
|
2810
|
-
if (
|
|
2811
|
-
t = parseInt(
|
|
2812
|
-
const i = parseFloat(
|
|
2813
|
-
return je(t,
|
|
2550
|
+
function no(e) {
|
|
2551
|
+
let t, n, r = O.HH.exec(e);
|
|
2552
|
+
if (r)
|
|
2553
|
+
return t = parseFloat(r[1].replace(",", ".")), je(t) ? t % 24 * Ue : NaN;
|
|
2554
|
+
if (r = O.HHMM.exec(e), r)
|
|
2555
|
+
return t = parseInt(r[1], 10), n = parseFloat(r[2].replace(",", ".")), je(t, n) ? t % 24 * Ue + n * $t : NaN;
|
|
2556
|
+
if (r = O.HHMMSS.exec(e), r) {
|
|
2557
|
+
t = parseInt(r[1], 10), n = parseInt(r[2], 10);
|
|
2558
|
+
const i = parseFloat(r[3].replace(",", "."));
|
|
2559
|
+
return je(t, n, i) ? t % 24 * Ue + n * $t + i * 1e3 : NaN;
|
|
2814
2560
|
}
|
|
2815
2561
|
return null;
|
|
2816
2562
|
}
|
|
2817
|
-
function Zt(e, t,
|
|
2818
|
-
t = t || 0,
|
|
2819
|
-
const
|
|
2820
|
-
|
|
2821
|
-
const i =
|
|
2822
|
-
return
|
|
2563
|
+
function Zt(e, t, n) {
|
|
2564
|
+
t = t || 0, n = n || 0;
|
|
2565
|
+
const r = /* @__PURE__ */ new Date(0);
|
|
2566
|
+
r.setUTCFullYear(e, 0, 4);
|
|
2567
|
+
const i = r.getUTCDay() || 7, s = t * 7 + n + 1 - i;
|
|
2568
|
+
return r.setUTCDate(r.getUTCDate() + s), r;
|
|
2823
2569
|
}
|
|
2824
|
-
const
|
|
2825
|
-
function
|
|
2570
|
+
const ro = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], ao = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
2571
|
+
function hn(e) {
|
|
2826
2572
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
2827
2573
|
}
|
|
2828
|
-
function Qt(e, t,
|
|
2574
|
+
function Qt(e, t, n) {
|
|
2829
2575
|
if (t < 0 || t > 11)
|
|
2830
2576
|
return !1;
|
|
2831
|
-
if (
|
|
2832
|
-
if (
|
|
2577
|
+
if (n != null) {
|
|
2578
|
+
if (n < 1)
|
|
2833
2579
|
return !1;
|
|
2834
|
-
const
|
|
2835
|
-
if (
|
|
2580
|
+
const r = hn(e);
|
|
2581
|
+
if (r && n > ao[t] || !r && n > ro[t])
|
|
2836
2582
|
return !1;
|
|
2837
2583
|
}
|
|
2838
2584
|
return !0;
|
|
2839
2585
|
}
|
|
2840
|
-
function
|
|
2586
|
+
function io(e, t) {
|
|
2841
2587
|
if (t < 1)
|
|
2842
2588
|
return !1;
|
|
2843
|
-
const
|
|
2844
|
-
return !(
|
|
2589
|
+
const n = hn(e);
|
|
2590
|
+
return !(n && t > 366 || !n && t > 365);
|
|
2845
2591
|
}
|
|
2846
2592
|
function Kt(e, t) {
|
|
2847
2593
|
return !(e < 0 || e > 52 || t != null && (t < 0 || t > 6));
|
|
2848
2594
|
}
|
|
2849
|
-
function je(e, t,
|
|
2850
|
-
return !(e < 0 || e >= 25 || t != null && (t < 0 || t >= 60) ||
|
|
2595
|
+
function je(e, t, n) {
|
|
2596
|
+
return !(e < 0 || e >= 25 || t != null && (t < 0 || t >= 60) || n != null && (n < 0 || n >= 60));
|
|
2851
2597
|
}
|
|
2852
|
-
const
|
|
2853
|
-
function
|
|
2598
|
+
const oo = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
|
|
2599
|
+
function so(e, t, n = {}) {
|
|
2854
2600
|
t = String(t);
|
|
2855
|
-
const
|
|
2856
|
-
if (
|
|
2857
|
-
const i = be(
|
|
2858
|
-
t =
|
|
2859
|
-
if (
|
|
2860
|
-
return
|
|
2861
|
-
const d =
|
|
2862
|
-
return
|
|
2601
|
+
const r = t.match(oo);
|
|
2602
|
+
if (r) {
|
|
2603
|
+
const i = be(n.originalDate || e, n);
|
|
2604
|
+
t = r.reduce(function(s, u) {
|
|
2605
|
+
if (u[0] === "'")
|
|
2606
|
+
return s;
|
|
2607
|
+
const d = s.indexOf(u), f = s[d - 1] === "'", m = s.replace(u, "'" + Zi[u[0]](i, u, n) + "'");
|
|
2608
|
+
return f ? m.substring(0, d - 1) + m.substring(d + 1) : m;
|
|
2863
2609
|
}, t);
|
|
2864
2610
|
}
|
|
2865
|
-
return
|
|
2611
|
+
return dn(e, t, n);
|
|
2866
2612
|
}
|
|
2867
|
-
function
|
|
2868
|
-
e = be(e,
|
|
2869
|
-
const
|
|
2870
|
-
return
|
|
2613
|
+
function yn(e, t, n) {
|
|
2614
|
+
e = be(e, n);
|
|
2615
|
+
const r = ce(t, e, !0), i = new Date(e.getTime() - r), s = /* @__PURE__ */ new Date(0);
|
|
2616
|
+
return s.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()), s.setHours(i.getUTCHours(), i.getUTCMinutes(), i.getUTCSeconds(), i.getUTCMilliseconds()), s;
|
|
2871
2617
|
}
|
|
2872
|
-
function
|
|
2873
|
-
return
|
|
2874
|
-
...
|
|
2618
|
+
function co(e, t, n, r) {
|
|
2619
|
+
return r = {
|
|
2620
|
+
...r,
|
|
2875
2621
|
timeZone: t,
|
|
2876
2622
|
originalDate: e
|
|
2877
|
-
},
|
|
2623
|
+
}, so(yn(e, t, { timeZone: r.timeZone }), n, r);
|
|
2878
2624
|
}
|
|
2879
|
-
function
|
|
2880
|
-
if (typeof e == "string" && !e.match(
|
|
2881
|
-
return be(e, { ...
|
|
2882
|
-
e = be(e,
|
|
2883
|
-
const
|
|
2884
|
-
return new Date(
|
|
2625
|
+
function uo(e, t, n) {
|
|
2626
|
+
if (typeof e == "string" && !e.match(fn))
|
|
2627
|
+
return be(e, { ...n, timeZone: t });
|
|
2628
|
+
e = be(e, n);
|
|
2629
|
+
const r = Ze(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i = ce(t, new Date(r));
|
|
2630
|
+
return new Date(r + i);
|
|
2885
2631
|
}
|
|
2886
|
-
function
|
|
2887
|
-
return -
|
|
2632
|
+
function gn(e, t) {
|
|
2633
|
+
return -ce(e, t);
|
|
2888
2634
|
}
|
|
2889
|
-
function
|
|
2890
|
-
return
|
|
2635
|
+
function Fo(e) {
|
|
2636
|
+
return dn(e, "yyyy-MM-dd'T'HH:mm:ss.SSSXXX");
|
|
2891
2637
|
}
|
|
2892
2638
|
function Jt(e, t = {}) {
|
|
2893
2639
|
if (!e)
|
|
2894
2640
|
return e;
|
|
2895
|
-
const
|
|
2641
|
+
const n = t.tz || Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
2896
2642
|
try {
|
|
2897
|
-
let
|
|
2898
|
-
t.short && (
|
|
2643
|
+
let r = "MMM dd, yyy hh:mm a";
|
|
2644
|
+
t.short && (r = "MMM dd, yyy"), t.includeTZ && (r += " (z)");
|
|
2899
2645
|
const i = new Date(e);
|
|
2900
|
-
return
|
|
2646
|
+
return co(i, n, r);
|
|
2901
2647
|
} catch {
|
|
2902
2648
|
return console.error("Invalid value passed to formatTime", e), "(invalid date)";
|
|
2903
2649
|
}
|
|
2904
2650
|
}
|
|
2905
|
-
function
|
|
2651
|
+
function Lo(e, t) {
|
|
2906
2652
|
return `${Jt(e.getTime())} - ${Jt(t.getTime(), { includeTZ: !0 })}`;
|
|
2907
2653
|
}
|
|
2908
2654
|
const Te = {
|
|
@@ -2920,101 +2666,101 @@ const Te = {
|
|
|
2920
2666
|
weekly: 60 * 60 * 24 * 7 * 1e3,
|
|
2921
2667
|
trend: 0
|
|
2922
2668
|
};
|
|
2923
|
-
function
|
|
2924
|
-
return e.map((
|
|
2925
|
-
value:
|
|
2926
|
-
label: t.t(`configuration.vitals.reports.granularity.${
|
|
2669
|
+
function Wo(e, t) {
|
|
2670
|
+
return e.map((n) => ({
|
|
2671
|
+
value: n,
|
|
2672
|
+
label: t.t(`configuration.vitals.reports.granularity.${n}`)
|
|
2927
2673
|
}));
|
|
2928
2674
|
}
|
|
2929
|
-
function
|
|
2675
|
+
function lo(e, t) {
|
|
2930
2676
|
return {
|
|
2931
2677
|
duration: e,
|
|
2932
2678
|
type: "duration",
|
|
2933
2679
|
origin: t
|
|
2934
2680
|
};
|
|
2935
2681
|
}
|
|
2936
|
-
function
|
|
2937
|
-
return e &&
|
|
2682
|
+
function qo(e) {
|
|
2683
|
+
return e && en.find((n) => e <= Te[n]) || null;
|
|
2938
2684
|
}
|
|
2939
|
-
function
|
|
2940
|
-
const i = Te[
|
|
2941
|
-
let
|
|
2942
|
-
return i >= Te.daily && (
|
|
2685
|
+
function pn(e, t, n, r) {
|
|
2686
|
+
const i = Te[n];
|
|
2687
|
+
let s = 0;
|
|
2688
|
+
return i >= Te.daily && (r ? s = -gn(r, t) : s = t.getTimezoneOffset() * 60 * 1e3), new Date(e((t.getTime() - s) / i) * i + s);
|
|
2943
2689
|
}
|
|
2944
|
-
function
|
|
2945
|
-
return
|
|
2690
|
+
function mo(e, t, n) {
|
|
2691
|
+
return pn(Math.floor, e, t, n);
|
|
2946
2692
|
}
|
|
2947
|
-
function
|
|
2948
|
-
return
|
|
2693
|
+
function _n(e, t, n) {
|
|
2694
|
+
return pn(Math.ceil, e, t, n);
|
|
2949
2695
|
}
|
|
2950
2696
|
class Ee {
|
|
2951
|
-
constructor(t,
|
|
2697
|
+
constructor(t, n, r) {
|
|
2952
2698
|
b(this, "timeframe");
|
|
2953
2699
|
b(this, "tz");
|
|
2954
2700
|
b(this, "dataGranularity");
|
|
2955
2701
|
if (this.constructor === Ee)
|
|
2956
2702
|
throw new Error("BaseQueryTime is not meant to be used directly.");
|
|
2957
|
-
this.timeframe = t, this.tz =
|
|
2703
|
+
this.timeframe = t, this.tz = n, this.dataGranularity = r ?? t.dataGranularity;
|
|
2958
2704
|
}
|
|
2959
|
-
calculateStartDate(t,
|
|
2705
|
+
calculateStartDate(t, n, r = 1) {
|
|
2960
2706
|
if (t)
|
|
2961
|
-
return new Date(this.endDate().getTime() - this.timeframe.timeframeLengthMs() *
|
|
2707
|
+
return new Date(this.endDate().getTime() - this.timeframe.timeframeLengthMs() * r);
|
|
2962
2708
|
{
|
|
2963
|
-
const i = this.endDate(),
|
|
2964
|
-
return new Date(
|
|
2709
|
+
const i = this.endDate(), s = this.timeframe.rawStart(this.tz), u = mo(s, n, this.tz), f = (i.getTime() - u.getTime()) * (r - 1);
|
|
2710
|
+
return new Date(u.getTime() - f);
|
|
2965
2711
|
}
|
|
2966
2712
|
}
|
|
2967
2713
|
granularitySeconds() {
|
|
2968
2714
|
return Math.floor(this.granularityMs() / 1e3);
|
|
2969
2715
|
}
|
|
2970
2716
|
granularityDruid() {
|
|
2971
|
-
return
|
|
2717
|
+
return lo(this.granularityMs(), this.startDate().toISOString());
|
|
2972
2718
|
}
|
|
2973
2719
|
// Return a UNIX timestamp suitable for use in the `start` query param.
|
|
2974
2720
|
startSeconds() {
|
|
2975
|
-
return
|
|
2721
|
+
return Wt(this.startDate());
|
|
2976
2722
|
}
|
|
2977
2723
|
// Return a UNIX timestamp suitable for use in the `end` query param.
|
|
2978
2724
|
endSeconds() {
|
|
2979
|
-
return
|
|
2725
|
+
return Wt(this.endDate());
|
|
2980
2726
|
}
|
|
2981
2727
|
// Return epoch time in milliseconds, suitable for use in the `startMs` query param.
|
|
2982
2728
|
startMs() {
|
|
2983
|
-
return
|
|
2729
|
+
return Lt(this.startDate());
|
|
2984
2730
|
}
|
|
2985
2731
|
// Return epoch time in milliseconds, suitable for use in the `endMs` query param.
|
|
2986
2732
|
endMs() {
|
|
2987
|
-
return
|
|
2733
|
+
return Lt(this.endDate());
|
|
2988
2734
|
}
|
|
2989
2735
|
}
|
|
2990
|
-
class
|
|
2991
|
-
constructor(
|
|
2992
|
-
super(
|
|
2736
|
+
class Uo extends Ee {
|
|
2737
|
+
constructor(n, r, i, s, u) {
|
|
2738
|
+
super(n, i, s);
|
|
2993
2739
|
b(this, "granularity");
|
|
2994
|
-
|
|
2740
|
+
r && n.allowedGranularities(u).has(r) ? this.granularity = r : u ? this.granularity = n.fineGrainedDefaultGranularity ?? n.defaultResponseGranularity : this.granularity = n.defaultResponseGranularity;
|
|
2995
2741
|
}
|
|
2996
2742
|
startDate() {
|
|
2997
2743
|
return this.calculateStartDate(this.timeframe.isRelative, this.granularity);
|
|
2998
2744
|
}
|
|
2999
2745
|
endDate() {
|
|
3000
|
-
return
|
|
2746
|
+
return _n(this.timeframe.rawEnd(), this.granularity, this.tz);
|
|
3001
2747
|
}
|
|
3002
2748
|
granularityMs() {
|
|
3003
2749
|
return Te[this.granularity];
|
|
3004
2750
|
}
|
|
3005
2751
|
}
|
|
3006
|
-
class
|
|
2752
|
+
class fo extends Ee {
|
|
3007
2753
|
startDate() {
|
|
3008
2754
|
return this.calculateStartDate(this.timeframe.isRelative, this.dataGranularity);
|
|
3009
2755
|
}
|
|
3010
2756
|
endDate() {
|
|
3011
|
-
return
|
|
2757
|
+
return _n(this.timeframe.rawEnd(this.tz), this.dataGranularity, this.tz);
|
|
3012
2758
|
}
|
|
3013
2759
|
granularityMs() {
|
|
3014
2760
|
return this.endDate().getTime() - this.startDate().getTime();
|
|
3015
2761
|
}
|
|
3016
2762
|
}
|
|
3017
|
-
class
|
|
2763
|
+
class jo extends fo {
|
|
3018
2764
|
startDate() {
|
|
3019
2765
|
return this.calculateStartDate(this.timeframe.isRelative, this.dataGranularity, 2);
|
|
3020
2766
|
}
|
|
@@ -3023,398 +2769,398 @@ class Us extends fs {
|
|
|
3023
2769
|
}
|
|
3024
2770
|
}
|
|
3025
2771
|
var ge = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3026
|
-
function
|
|
2772
|
+
function ho(e) {
|
|
3027
2773
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
3028
2774
|
}
|
|
3029
|
-
var
|
|
3030
|
-
|
|
2775
|
+
var Me = { exports: {} };
|
|
2776
|
+
Me.exports;
|
|
3031
2777
|
(function(e, t) {
|
|
3032
|
-
var
|
|
3033
|
-
w[
|
|
3034
|
-
var
|
|
3035
|
-
function
|
|
3036
|
-
return a.set(
|
|
2778
|
+
var n = 200, r = "__lodash_hash_undefined__", i = 9007199254740991, s = "[object Arguments]", u = "[object Array]", d = "[object Boolean]", f = "[object Date]", m = "[object Error]", _ = "[object Function]", y = "[object GeneratorFunction]", g = "[object Map]", x = "[object Number]", I = "[object Object]", N = "[object Promise]", R = "[object RegExp]", W = "[object Set]", S = "[object String]", T = "[object Symbol]", q = "[object WeakMap]", Ke = "[object ArrayBuffer]", ue = "[object DataView]", Je = "[object Float32Array]", et = "[object Float64Array]", tt = "[object Int8Array]", nt = "[object Int16Array]", rt = "[object Int32Array]", at = "[object Uint8Array]", it = "[object Uint8ClampedArray]", ot = "[object Uint16Array]", st = "[object Uint32Array]", bn = /[\\^$.*+?()[\]{}|]/g, Tn = /\w*$/, Mn = /^\[object .+?Constructor\]$/, Dn = /^(?:0|[1-9]\d*)$/, w = {};
|
|
2779
|
+
w[s] = w[u] = w[Ke] = w[ue] = w[d] = w[f] = w[Je] = w[et] = w[tt] = w[nt] = w[rt] = w[g] = w[x] = w[I] = w[R] = w[W] = w[S] = w[T] = w[at] = w[it] = w[ot] = w[st] = !0, w[m] = w[_] = w[q] = !1;
|
|
2780
|
+
var Sn = typeof ge == "object" && ge && ge.Object === Object && ge, On = typeof self == "object" && self && self.Object === Object && self, k = Sn || On || Function("return this")(), ct = t && !t.nodeType && t, ut = ct && !0 && e && !e.nodeType && e, vn = ut && ut.exports === ct;
|
|
2781
|
+
function En(a, o) {
|
|
2782
|
+
return a.set(o[0], o[1]), a;
|
|
3037
2783
|
}
|
|
3038
|
-
function
|
|
3039
|
-
return a.add(
|
|
2784
|
+
function xn(a, o) {
|
|
2785
|
+
return a.add(o), a;
|
|
3040
2786
|
}
|
|
3041
|
-
function
|
|
3042
|
-
for (var
|
|
2787
|
+
function In(a, o) {
|
|
2788
|
+
for (var c = -1, l = a ? a.length : 0; ++c < l && o(a[c], c, a) !== !1; )
|
|
3043
2789
|
;
|
|
3044
2790
|
return a;
|
|
3045
2791
|
}
|
|
3046
|
-
function
|
|
3047
|
-
for (var
|
|
3048
|
-
a[
|
|
2792
|
+
function Nn(a, o) {
|
|
2793
|
+
for (var c = -1, l = o.length, M = a.length; ++c < l; )
|
|
2794
|
+
a[M + c] = o[c];
|
|
3049
2795
|
return a;
|
|
3050
2796
|
}
|
|
3051
|
-
function lt(a,
|
|
3052
|
-
for (var
|
|
3053
|
-
|
|
3054
|
-
return
|
|
2797
|
+
function lt(a, o, c, l) {
|
|
2798
|
+
for (var M = -1, v = a ? a.length : 0; ++M < v; )
|
|
2799
|
+
c = o(c, a[M], M, a);
|
|
2800
|
+
return c;
|
|
3055
2801
|
}
|
|
3056
|
-
function
|
|
3057
|
-
for (var
|
|
3058
|
-
l[
|
|
2802
|
+
function Pn(a, o) {
|
|
2803
|
+
for (var c = -1, l = Array(a); ++c < a; )
|
|
2804
|
+
l[c] = o(c);
|
|
3059
2805
|
return l;
|
|
3060
2806
|
}
|
|
3061
|
-
function
|
|
3062
|
-
return a == null ? void 0 : a[
|
|
2807
|
+
function Cn(a, o) {
|
|
2808
|
+
return a == null ? void 0 : a[o];
|
|
3063
2809
|
}
|
|
3064
2810
|
function dt(a) {
|
|
3065
|
-
var
|
|
2811
|
+
var o = !1;
|
|
3066
2812
|
if (a != null && typeof a.toString != "function")
|
|
3067
2813
|
try {
|
|
3068
|
-
|
|
2814
|
+
o = !!(a + "");
|
|
3069
2815
|
} catch {
|
|
3070
2816
|
}
|
|
3071
|
-
return
|
|
2817
|
+
return o;
|
|
3072
2818
|
}
|
|
3073
|
-
function
|
|
3074
|
-
var
|
|
3075
|
-
return a.forEach(function(l,
|
|
3076
|
-
|
|
3077
|
-
}),
|
|
3078
|
-
}
|
|
3079
|
-
function xe(a,
|
|
3080
|
-
return function(
|
|
3081
|
-
return a(
|
|
2819
|
+
function mt(a) {
|
|
2820
|
+
var o = -1, c = Array(a.size);
|
|
2821
|
+
return a.forEach(function(l, M) {
|
|
2822
|
+
c[++o] = [M, l];
|
|
2823
|
+
}), c;
|
|
2824
|
+
}
|
|
2825
|
+
function xe(a, o) {
|
|
2826
|
+
return function(c) {
|
|
2827
|
+
return a(o(c));
|
|
3082
2828
|
};
|
|
3083
2829
|
}
|
|
3084
|
-
function
|
|
3085
|
-
var
|
|
2830
|
+
function ft(a) {
|
|
2831
|
+
var o = -1, c = Array(a.size);
|
|
3086
2832
|
return a.forEach(function(l) {
|
|
3087
|
-
|
|
3088
|
-
}),
|
|
2833
|
+
c[++o] = l;
|
|
2834
|
+
}), c;
|
|
3089
2835
|
}
|
|
3090
|
-
var
|
|
3091
|
-
var a = /[^.]+$/.exec(
|
|
2836
|
+
var Rn = Array.prototype, kn = Function.prototype, le = Object.prototype, Ie = k["__core-js_shared__"], ht = function() {
|
|
2837
|
+
var a = /[^.]+$/.exec(Ie && Ie.keys && Ie.keys.IE_PROTO || "");
|
|
3092
2838
|
return a ? "Symbol(src)_1." + a : "";
|
|
3093
|
-
}(), yt =
|
|
3094
|
-
"^" + yt.call(H).replace(
|
|
3095
|
-
), gt =
|
|
2839
|
+
}(), yt = kn.toString, H = le.hasOwnProperty, de = le.toString, Gn = RegExp(
|
|
2840
|
+
"^" + yt.call(H).replace(bn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
2841
|
+
), gt = vn ? k.Buffer : void 0, pt = k.Symbol, _t = k.Uint8Array, An = xe(Object.getPrototypeOf, Object), Yn = Object.create, Hn = le.propertyIsEnumerable, Fn = Rn.splice, wt = Object.getOwnPropertySymbols, Ln = gt ? gt.isBuffer : void 0, Wn = xe(Object.keys, Object), Ne = $(k, "DataView"), te = $(k, "Map"), Pe = $(k, "Promise"), Ce = $(k, "Set"), Re = $(k, "WeakMap"), ne = $(Object, "create"), qn = z(Ne), Un = z(te), jn = z(Pe), zn = z(Ce), Bn = z(Re), bt = pt ? pt.prototype : void 0, Tt = bt ? bt.valueOf : void 0;
|
|
3096
2842
|
function U(a) {
|
|
3097
|
-
var
|
|
3098
|
-
for (this.clear(); ++
|
|
3099
|
-
var l = a[
|
|
2843
|
+
var o = -1, c = a ? a.length : 0;
|
|
2844
|
+
for (this.clear(); ++o < c; ) {
|
|
2845
|
+
var l = a[o];
|
|
3100
2846
|
this.set(l[0], l[1]);
|
|
3101
2847
|
}
|
|
3102
2848
|
}
|
|
3103
|
-
function
|
|
3104
|
-
this.__data__ =
|
|
2849
|
+
function Vn() {
|
|
2850
|
+
this.__data__ = ne ? ne(null) : {};
|
|
3105
2851
|
}
|
|
3106
|
-
function
|
|
2852
|
+
function Xn(a) {
|
|
3107
2853
|
return this.has(a) && delete this.__data__[a];
|
|
3108
2854
|
}
|
|
3109
|
-
function
|
|
3110
|
-
var
|
|
3111
|
-
if (
|
|
3112
|
-
var
|
|
3113
|
-
return
|
|
2855
|
+
function $n(a) {
|
|
2856
|
+
var o = this.__data__;
|
|
2857
|
+
if (ne) {
|
|
2858
|
+
var c = o[a];
|
|
2859
|
+
return c === r ? void 0 : c;
|
|
3114
2860
|
}
|
|
3115
|
-
return H.call(
|
|
2861
|
+
return H.call(o, a) ? o[a] : void 0;
|
|
3116
2862
|
}
|
|
3117
|
-
function
|
|
3118
|
-
var
|
|
3119
|
-
return
|
|
2863
|
+
function Zn(a) {
|
|
2864
|
+
var o = this.__data__;
|
|
2865
|
+
return ne ? o[a] !== void 0 : H.call(o, a);
|
|
3120
2866
|
}
|
|
3121
|
-
function
|
|
3122
|
-
var
|
|
3123
|
-
return
|
|
2867
|
+
function Qn(a, o) {
|
|
2868
|
+
var c = this.__data__;
|
|
2869
|
+
return c[a] = ne && o === void 0 ? r : o, this;
|
|
3124
2870
|
}
|
|
3125
|
-
U.prototype.clear =
|
|
3126
|
-
function
|
|
3127
|
-
var
|
|
3128
|
-
for (this.clear(); ++
|
|
3129
|
-
var l = a[
|
|
2871
|
+
U.prototype.clear = Vn, U.prototype.delete = Xn, U.prototype.get = $n, U.prototype.has = Zn, U.prototype.set = Qn;
|
|
2872
|
+
function G(a) {
|
|
2873
|
+
var o = -1, c = a ? a.length : 0;
|
|
2874
|
+
for (this.clear(); ++o < c; ) {
|
|
2875
|
+
var l = a[o];
|
|
3130
2876
|
this.set(l[0], l[1]);
|
|
3131
2877
|
}
|
|
3132
2878
|
}
|
|
3133
|
-
function
|
|
2879
|
+
function Kn() {
|
|
3134
2880
|
this.__data__ = [];
|
|
3135
2881
|
}
|
|
3136
|
-
function
|
|
3137
|
-
var
|
|
3138
|
-
if (
|
|
2882
|
+
function Jn(a) {
|
|
2883
|
+
var o = this.__data__, c = me(o, a);
|
|
2884
|
+
if (c < 0)
|
|
3139
2885
|
return !1;
|
|
3140
|
-
var l =
|
|
3141
|
-
return
|
|
2886
|
+
var l = o.length - 1;
|
|
2887
|
+
return c == l ? o.pop() : Fn.call(o, c, 1), !0;
|
|
3142
2888
|
}
|
|
3143
|
-
function
|
|
3144
|
-
var
|
|
3145
|
-
return
|
|
2889
|
+
function er(a) {
|
|
2890
|
+
var o = this.__data__, c = me(o, a);
|
|
2891
|
+
return c < 0 ? void 0 : o[c][1];
|
|
3146
2892
|
}
|
|
3147
|
-
function
|
|
3148
|
-
return
|
|
2893
|
+
function tr(a) {
|
|
2894
|
+
return me(this.__data__, a) > -1;
|
|
3149
2895
|
}
|
|
3150
|
-
function
|
|
3151
|
-
var
|
|
3152
|
-
return l < 0 ?
|
|
2896
|
+
function nr(a, o) {
|
|
2897
|
+
var c = this.__data__, l = me(c, a);
|
|
2898
|
+
return l < 0 ? c.push([a, o]) : c[l][1] = o, this;
|
|
3153
2899
|
}
|
|
3154
|
-
|
|
3155
|
-
function
|
|
3156
|
-
var
|
|
3157
|
-
for (this.clear(); ++
|
|
3158
|
-
var l = a[
|
|
2900
|
+
G.prototype.clear = Kn, G.prototype.delete = Jn, G.prototype.get = er, G.prototype.has = tr, G.prototype.set = nr;
|
|
2901
|
+
function V(a) {
|
|
2902
|
+
var o = -1, c = a ? a.length : 0;
|
|
2903
|
+
for (this.clear(); ++o < c; ) {
|
|
2904
|
+
var l = a[o];
|
|
3159
2905
|
this.set(l[0], l[1]);
|
|
3160
2906
|
}
|
|
3161
2907
|
}
|
|
3162
|
-
function
|
|
2908
|
+
function rr() {
|
|
3163
2909
|
this.__data__ = {
|
|
3164
2910
|
hash: new U(),
|
|
3165
|
-
map: new (te ||
|
|
2911
|
+
map: new (te || G)(),
|
|
3166
2912
|
string: new U()
|
|
3167
2913
|
};
|
|
3168
2914
|
}
|
|
3169
|
-
function
|
|
3170
|
-
return
|
|
2915
|
+
function ar(a) {
|
|
2916
|
+
return fe(this, a).delete(a);
|
|
3171
2917
|
}
|
|
3172
|
-
function
|
|
3173
|
-
return
|
|
2918
|
+
function ir(a) {
|
|
2919
|
+
return fe(this, a).get(a);
|
|
3174
2920
|
}
|
|
3175
|
-
function
|
|
3176
|
-
return
|
|
2921
|
+
function or(a) {
|
|
2922
|
+
return fe(this, a).has(a);
|
|
3177
2923
|
}
|
|
3178
|
-
function
|
|
3179
|
-
return
|
|
2924
|
+
function sr(a, o) {
|
|
2925
|
+
return fe(this, a).set(a, o), this;
|
|
3180
2926
|
}
|
|
3181
|
-
|
|
2927
|
+
V.prototype.clear = rr, V.prototype.delete = ar, V.prototype.get = ir, V.prototype.has = or, V.prototype.set = sr;
|
|
3182
2928
|
function X(a) {
|
|
3183
|
-
this.__data__ = new
|
|
2929
|
+
this.__data__ = new G(a);
|
|
3184
2930
|
}
|
|
3185
|
-
function
|
|
3186
|
-
this.__data__ = new
|
|
2931
|
+
function cr() {
|
|
2932
|
+
this.__data__ = new G();
|
|
3187
2933
|
}
|
|
3188
|
-
function
|
|
2934
|
+
function ur(a) {
|
|
3189
2935
|
return this.__data__.delete(a);
|
|
3190
2936
|
}
|
|
3191
|
-
function
|
|
2937
|
+
function lr(a) {
|
|
3192
2938
|
return this.__data__.get(a);
|
|
3193
2939
|
}
|
|
3194
|
-
function
|
|
2940
|
+
function dr(a) {
|
|
3195
2941
|
return this.__data__.has(a);
|
|
3196
2942
|
}
|
|
3197
|
-
function
|
|
3198
|
-
var
|
|
3199
|
-
if (
|
|
3200
|
-
var l =
|
|
3201
|
-
if (!te || l.length <
|
|
3202
|
-
return l.push([a,
|
|
3203
|
-
|
|
2943
|
+
function mr(a, o) {
|
|
2944
|
+
var c = this.__data__;
|
|
2945
|
+
if (c instanceof G) {
|
|
2946
|
+
var l = c.__data__;
|
|
2947
|
+
if (!te || l.length < n - 1)
|
|
2948
|
+
return l.push([a, o]), this;
|
|
2949
|
+
c = this.__data__ = new V(l);
|
|
3204
2950
|
}
|
|
3205
|
-
return
|
|
2951
|
+
return c.set(a, o), this;
|
|
3206
2952
|
}
|
|
3207
|
-
X.prototype.clear =
|
|
3208
|
-
function
|
|
3209
|
-
var
|
|
2953
|
+
X.prototype.clear = cr, X.prototype.delete = ur, X.prototype.get = lr, X.prototype.has = dr, X.prototype.set = mr;
|
|
2954
|
+
function fr(a, o) {
|
|
2955
|
+
var c = Ae(a) || Yr(a) ? Pn(a.length, String) : [], l = c.length, M = !!l;
|
|
3210
2956
|
for (var v in a)
|
|
3211
|
-
H.call(a, v) && !(
|
|
3212
|
-
return
|
|
2957
|
+
H.call(a, v) && !(M && (v == "length" || Rr(v, l))) && c.push(v);
|
|
2958
|
+
return c;
|
|
3213
2959
|
}
|
|
3214
|
-
function
|
|
3215
|
-
var l = a[
|
|
3216
|
-
(!(H.call(a,
|
|
2960
|
+
function Mt(a, o, c) {
|
|
2961
|
+
var l = a[o];
|
|
2962
|
+
(!(H.call(a, o) && vt(l, c)) || c === void 0 && !(o in a)) && (a[o] = c);
|
|
3217
2963
|
}
|
|
3218
|
-
function
|
|
3219
|
-
for (var
|
|
3220
|
-
if (vt(a[
|
|
3221
|
-
return
|
|
2964
|
+
function me(a, o) {
|
|
2965
|
+
for (var c = a.length; c--; )
|
|
2966
|
+
if (vt(a[c][0], o))
|
|
2967
|
+
return c;
|
|
3222
2968
|
return -1;
|
|
3223
2969
|
}
|
|
3224
|
-
function
|
|
3225
|
-
return a &&
|
|
2970
|
+
function hr(a, o) {
|
|
2971
|
+
return a && Dt(o, Ye(o), a);
|
|
3226
2972
|
}
|
|
3227
|
-
function ke(a,
|
|
2973
|
+
function ke(a, o, c, l, M, v, A) {
|
|
3228
2974
|
var E;
|
|
3229
|
-
if (l && (E = v ? l(a,
|
|
2975
|
+
if (l && (E = v ? l(a, M, v, A) : l(a)), E !== void 0)
|
|
3230
2976
|
return E;
|
|
3231
|
-
if (!
|
|
2977
|
+
if (!he(a))
|
|
3232
2978
|
return a;
|
|
3233
|
-
var
|
|
3234
|
-
if (
|
|
3235
|
-
if (E =
|
|
3236
|
-
return
|
|
2979
|
+
var It = Ae(a);
|
|
2980
|
+
if (It) {
|
|
2981
|
+
if (E = Nr(a), !o)
|
|
2982
|
+
return Er(a, E);
|
|
3237
2983
|
} else {
|
|
3238
|
-
var Z = j(a),
|
|
3239
|
-
if (
|
|
3240
|
-
return
|
|
3241
|
-
if (Z ==
|
|
2984
|
+
var Z = j(a), Nt = Z == _ || Z == y;
|
|
2985
|
+
if (Fr(a))
|
|
2986
|
+
return br(a, o);
|
|
2987
|
+
if (Z == I || Z == s || Nt && !v) {
|
|
3242
2988
|
if (dt(a))
|
|
3243
2989
|
return v ? a : {};
|
|
3244
|
-
if (E =
|
|
3245
|
-
return
|
|
2990
|
+
if (E = Pr(Nt ? {} : a), !o)
|
|
2991
|
+
return xr(a, hr(E, a));
|
|
3246
2992
|
} else {
|
|
3247
2993
|
if (!w[Z])
|
|
3248
2994
|
return v ? a : {};
|
|
3249
|
-
E =
|
|
2995
|
+
E = Cr(a, Z, ke, o);
|
|
3250
2996
|
}
|
|
3251
2997
|
}
|
|
3252
|
-
|
|
3253
|
-
var
|
|
3254
|
-
if (
|
|
3255
|
-
return
|
|
3256
|
-
if (
|
|
3257
|
-
var Ct =
|
|
3258
|
-
return
|
|
3259
|
-
Ct && (ye = He, He = a[ye]),
|
|
2998
|
+
A || (A = new X());
|
|
2999
|
+
var Pt = A.get(a);
|
|
3000
|
+
if (Pt)
|
|
3001
|
+
return Pt;
|
|
3002
|
+
if (A.set(a, E), !It)
|
|
3003
|
+
var Ct = c ? Ir(a) : Ye(a);
|
|
3004
|
+
return In(Ct || a, function(He, ye) {
|
|
3005
|
+
Ct && (ye = He, He = a[ye]), Mt(E, ye, ke(He, o, c, l, ye, a, A));
|
|
3260
3006
|
}), E;
|
|
3261
3007
|
}
|
|
3262
|
-
function
|
|
3263
|
-
return
|
|
3008
|
+
function yr(a) {
|
|
3009
|
+
return he(a) ? Yn(a) : {};
|
|
3264
3010
|
}
|
|
3265
|
-
function
|
|
3266
|
-
var l =
|
|
3267
|
-
return
|
|
3011
|
+
function gr(a, o, c) {
|
|
3012
|
+
var l = o(a);
|
|
3013
|
+
return Ae(a) ? l : Nn(l, c(a));
|
|
3268
3014
|
}
|
|
3269
|
-
function
|
|
3015
|
+
function pr(a) {
|
|
3270
3016
|
return de.call(a);
|
|
3271
3017
|
}
|
|
3272
|
-
function
|
|
3273
|
-
if (!
|
|
3018
|
+
function _r(a) {
|
|
3019
|
+
if (!he(a) || Gr(a))
|
|
3274
3020
|
return !1;
|
|
3275
|
-
var
|
|
3276
|
-
return
|
|
3277
|
-
}
|
|
3278
|
-
function
|
|
3279
|
-
if (!
|
|
3280
|
-
return
|
|
3281
|
-
var
|
|
3282
|
-
for (var
|
|
3283
|
-
H.call(a,
|
|
3284
|
-
return
|
|
3285
|
-
}
|
|
3286
|
-
function
|
|
3287
|
-
if (
|
|
3021
|
+
var o = xt(a) || dt(a) ? Gn : Mn;
|
|
3022
|
+
return o.test(z(a));
|
|
3023
|
+
}
|
|
3024
|
+
function wr(a) {
|
|
3025
|
+
if (!Ot(a))
|
|
3026
|
+
return Wn(a);
|
|
3027
|
+
var o = [];
|
|
3028
|
+
for (var c in Object(a))
|
|
3029
|
+
H.call(a, c) && c != "constructor" && o.push(c);
|
|
3030
|
+
return o;
|
|
3031
|
+
}
|
|
3032
|
+
function br(a, o) {
|
|
3033
|
+
if (o)
|
|
3288
3034
|
return a.slice();
|
|
3289
|
-
var
|
|
3290
|
-
return a.copy(
|
|
3035
|
+
var c = new a.constructor(a.length);
|
|
3036
|
+
return a.copy(c), c;
|
|
3291
3037
|
}
|
|
3292
|
-
function
|
|
3293
|
-
var
|
|
3294
|
-
return new _t(
|
|
3038
|
+
function Ge(a) {
|
|
3039
|
+
var o = new a.constructor(a.byteLength);
|
|
3040
|
+
return new _t(o).set(new _t(a)), o;
|
|
3295
3041
|
}
|
|
3296
|
-
function
|
|
3297
|
-
var
|
|
3298
|
-
return new a.constructor(
|
|
3042
|
+
function Tr(a, o) {
|
|
3043
|
+
var c = o ? Ge(a.buffer) : a.buffer;
|
|
3044
|
+
return new a.constructor(c, a.byteOffset, a.byteLength);
|
|
3299
3045
|
}
|
|
3300
|
-
function
|
|
3301
|
-
var l =
|
|
3302
|
-
return lt(l,
|
|
3046
|
+
function Mr(a, o, c) {
|
|
3047
|
+
var l = o ? c(mt(a), !0) : mt(a);
|
|
3048
|
+
return lt(l, En, new a.constructor());
|
|
3303
3049
|
}
|
|
3304
|
-
function
|
|
3305
|
-
var
|
|
3306
|
-
return
|
|
3050
|
+
function Dr(a) {
|
|
3051
|
+
var o = new a.constructor(a.source, Tn.exec(a));
|
|
3052
|
+
return o.lastIndex = a.lastIndex, o;
|
|
3307
3053
|
}
|
|
3308
|
-
function
|
|
3309
|
-
var l =
|
|
3310
|
-
return lt(l,
|
|
3054
|
+
function Sr(a, o, c) {
|
|
3055
|
+
var l = o ? c(ft(a), !0) : ft(a);
|
|
3056
|
+
return lt(l, xn, new a.constructor());
|
|
3311
3057
|
}
|
|
3312
|
-
function
|
|
3058
|
+
function Or(a) {
|
|
3313
3059
|
return Tt ? Object(Tt.call(a)) : {};
|
|
3314
3060
|
}
|
|
3315
|
-
function
|
|
3316
|
-
var
|
|
3317
|
-
return new a.constructor(
|
|
3318
|
-
}
|
|
3319
|
-
function
|
|
3320
|
-
var
|
|
3321
|
-
for (
|
|
3322
|
-
|
|
3323
|
-
return
|
|
3324
|
-
}
|
|
3325
|
-
function
|
|
3326
|
-
|
|
3327
|
-
for (var
|
|
3328
|
-
var
|
|
3329
|
-
|
|
3061
|
+
function vr(a, o) {
|
|
3062
|
+
var c = o ? Ge(a.buffer) : a.buffer;
|
|
3063
|
+
return new a.constructor(c, a.byteOffset, a.length);
|
|
3064
|
+
}
|
|
3065
|
+
function Er(a, o) {
|
|
3066
|
+
var c = -1, l = a.length;
|
|
3067
|
+
for (o || (o = Array(l)); ++c < l; )
|
|
3068
|
+
o[c] = a[c];
|
|
3069
|
+
return o;
|
|
3070
|
+
}
|
|
3071
|
+
function Dt(a, o, c, l) {
|
|
3072
|
+
c || (c = {});
|
|
3073
|
+
for (var M = -1, v = o.length; ++M < v; ) {
|
|
3074
|
+
var A = o[M], E = void 0;
|
|
3075
|
+
Mt(c, A, E === void 0 ? a[A] : E);
|
|
3330
3076
|
}
|
|
3331
|
-
return
|
|
3077
|
+
return c;
|
|
3332
3078
|
}
|
|
3333
|
-
function
|
|
3334
|
-
return
|
|
3079
|
+
function xr(a, o) {
|
|
3080
|
+
return Dt(a, St(a), o);
|
|
3335
3081
|
}
|
|
3336
|
-
function
|
|
3337
|
-
return
|
|
3082
|
+
function Ir(a) {
|
|
3083
|
+
return gr(a, Ye, St);
|
|
3338
3084
|
}
|
|
3339
|
-
function
|
|
3340
|
-
var
|
|
3341
|
-
return
|
|
3085
|
+
function fe(a, o) {
|
|
3086
|
+
var c = a.__data__;
|
|
3087
|
+
return kr(o) ? c[typeof o == "string" ? "string" : "hash"] : c.map;
|
|
3342
3088
|
}
|
|
3343
|
-
function $(a,
|
|
3344
|
-
var
|
|
3345
|
-
return
|
|
3089
|
+
function $(a, o) {
|
|
3090
|
+
var c = Cn(a, o);
|
|
3091
|
+
return _r(c) ? c : void 0;
|
|
3346
3092
|
}
|
|
3347
|
-
var
|
|
3348
|
-
(
|
|
3349
|
-
var
|
|
3093
|
+
var St = wt ? xe(wt, Object) : qr, j = pr;
|
|
3094
|
+
(Ne && j(new Ne(new ArrayBuffer(1))) != ue || te && j(new te()) != g || Pe && j(Pe.resolve()) != N || Ce && j(new Ce()) != W || Re && j(new Re()) != q) && (j = function(a) {
|
|
3095
|
+
var o = de.call(a), c = o == I ? a.constructor : void 0, l = c ? z(c) : void 0;
|
|
3350
3096
|
if (l)
|
|
3351
3097
|
switch (l) {
|
|
3352
|
-
case
|
|
3353
|
-
return
|
|
3354
|
-
case
|
|
3098
|
+
case qn:
|
|
3099
|
+
return ue;
|
|
3100
|
+
case Un:
|
|
3355
3101
|
return g;
|
|
3356
|
-
case
|
|
3357
|
-
return
|
|
3358
|
-
case
|
|
3359
|
-
return
|
|
3360
|
-
case
|
|
3102
|
+
case jn:
|
|
3103
|
+
return N;
|
|
3104
|
+
case zn:
|
|
3105
|
+
return W;
|
|
3106
|
+
case Bn:
|
|
3361
3107
|
return q;
|
|
3362
3108
|
}
|
|
3363
|
-
return
|
|
3109
|
+
return o;
|
|
3364
3110
|
});
|
|
3365
|
-
function
|
|
3366
|
-
var
|
|
3367
|
-
return
|
|
3111
|
+
function Nr(a) {
|
|
3112
|
+
var o = a.length, c = a.constructor(o);
|
|
3113
|
+
return o && typeof a[0] == "string" && H.call(a, "index") && (c.index = a.index, c.input = a.input), c;
|
|
3368
3114
|
}
|
|
3369
|
-
function
|
|
3370
|
-
return typeof a.constructor == "function" && !
|
|
3115
|
+
function Pr(a) {
|
|
3116
|
+
return typeof a.constructor == "function" && !Ot(a) ? yr(An(a)) : {};
|
|
3371
3117
|
}
|
|
3372
|
-
function
|
|
3373
|
-
var
|
|
3374
|
-
switch (
|
|
3118
|
+
function Cr(a, o, c, l) {
|
|
3119
|
+
var M = a.constructor;
|
|
3120
|
+
switch (o) {
|
|
3375
3121
|
case Ke:
|
|
3376
|
-
return
|
|
3122
|
+
return Ge(a);
|
|
3377
3123
|
case d:
|
|
3378
|
-
case
|
|
3379
|
-
return new
|
|
3380
|
-
case
|
|
3381
|
-
return
|
|
3124
|
+
case f:
|
|
3125
|
+
return new M(+a);
|
|
3126
|
+
case ue:
|
|
3127
|
+
return Tr(a, l);
|
|
3382
3128
|
case Je:
|
|
3383
3129
|
case et:
|
|
3384
3130
|
case tt:
|
|
3385
|
-
case rt:
|
|
3386
3131
|
case nt:
|
|
3132
|
+
case rt:
|
|
3387
3133
|
case at:
|
|
3388
3134
|
case it:
|
|
3389
|
-
case st:
|
|
3390
3135
|
case ot:
|
|
3391
|
-
|
|
3136
|
+
case st:
|
|
3137
|
+
return vr(a, l);
|
|
3392
3138
|
case g:
|
|
3393
|
-
return
|
|
3139
|
+
return Mr(a, l, c);
|
|
3394
3140
|
case x:
|
|
3395
|
-
case
|
|
3396
|
-
return new
|
|
3141
|
+
case S:
|
|
3142
|
+
return new M(a);
|
|
3397
3143
|
case R:
|
|
3398
|
-
return
|
|
3399
|
-
case
|
|
3400
|
-
return
|
|
3144
|
+
return Dr(a);
|
|
3145
|
+
case W:
|
|
3146
|
+
return Sr(a, l, c);
|
|
3401
3147
|
case T:
|
|
3402
|
-
return
|
|
3148
|
+
return Or(a);
|
|
3403
3149
|
}
|
|
3404
3150
|
}
|
|
3405
|
-
function
|
|
3406
|
-
return
|
|
3151
|
+
function Rr(a, o) {
|
|
3152
|
+
return o = o ?? i, !!o && (typeof a == "number" || Dn.test(a)) && a > -1 && a % 1 == 0 && a < o;
|
|
3407
3153
|
}
|
|
3408
|
-
function
|
|
3409
|
-
var
|
|
3410
|
-
return
|
|
3154
|
+
function kr(a) {
|
|
3155
|
+
var o = typeof a;
|
|
3156
|
+
return o == "string" || o == "number" || o == "symbol" || o == "boolean" ? a !== "__proto__" : a === null;
|
|
3411
3157
|
}
|
|
3412
|
-
function
|
|
3413
|
-
return !!
|
|
3158
|
+
function Gr(a) {
|
|
3159
|
+
return !!ht && ht in a;
|
|
3414
3160
|
}
|
|
3415
|
-
function
|
|
3416
|
-
var
|
|
3417
|
-
return a ===
|
|
3161
|
+
function Ot(a) {
|
|
3162
|
+
var o = a && a.constructor, c = typeof o == "function" && o.prototype || le;
|
|
3163
|
+
return a === c;
|
|
3418
3164
|
}
|
|
3419
3165
|
function z(a) {
|
|
3420
3166
|
if (a != null) {
|
|
@@ -3429,51 +3175,51 @@ De.exports;
|
|
|
3429
3175
|
}
|
|
3430
3176
|
return "";
|
|
3431
3177
|
}
|
|
3432
|
-
function
|
|
3178
|
+
function Ar(a) {
|
|
3433
3179
|
return ke(a, !0, !0);
|
|
3434
3180
|
}
|
|
3435
|
-
function vt(a,
|
|
3436
|
-
return a ===
|
|
3181
|
+
function vt(a, o) {
|
|
3182
|
+
return a === o || a !== a && o !== o;
|
|
3437
3183
|
}
|
|
3438
|
-
function
|
|
3439
|
-
return
|
|
3184
|
+
function Yr(a) {
|
|
3185
|
+
return Hr(a) && H.call(a, "callee") && (!Hn.call(a, "callee") || de.call(a) == s);
|
|
3440
3186
|
}
|
|
3441
|
-
var
|
|
3187
|
+
var Ae = Array.isArray;
|
|
3442
3188
|
function Et(a) {
|
|
3443
|
-
return a != null &&
|
|
3189
|
+
return a != null && Lr(a.length) && !xt(a);
|
|
3444
3190
|
}
|
|
3445
|
-
function
|
|
3446
|
-
return
|
|
3191
|
+
function Hr(a) {
|
|
3192
|
+
return Wr(a) && Et(a);
|
|
3447
3193
|
}
|
|
3448
|
-
var
|
|
3194
|
+
var Fr = Ln || Ur;
|
|
3449
3195
|
function xt(a) {
|
|
3450
|
-
var
|
|
3451
|
-
return
|
|
3196
|
+
var o = he(a) ? de.call(a) : "";
|
|
3197
|
+
return o == _ || o == y;
|
|
3452
3198
|
}
|
|
3453
|
-
function
|
|
3199
|
+
function Lr(a) {
|
|
3454
3200
|
return typeof a == "number" && a > -1 && a % 1 == 0 && a <= i;
|
|
3455
3201
|
}
|
|
3456
|
-
function
|
|
3457
|
-
var
|
|
3458
|
-
return !!a && (
|
|
3202
|
+
function he(a) {
|
|
3203
|
+
var o = typeof a;
|
|
3204
|
+
return !!a && (o == "object" || o == "function");
|
|
3459
3205
|
}
|
|
3460
|
-
function
|
|
3206
|
+
function Wr(a) {
|
|
3461
3207
|
return !!a && typeof a == "object";
|
|
3462
3208
|
}
|
|
3463
|
-
function
|
|
3464
|
-
return Et(a) ?
|
|
3209
|
+
function Ye(a) {
|
|
3210
|
+
return Et(a) ? fr(a) : wr(a);
|
|
3465
3211
|
}
|
|
3466
|
-
function
|
|
3212
|
+
function qr() {
|
|
3467
3213
|
return [];
|
|
3468
3214
|
}
|
|
3469
|
-
function
|
|
3215
|
+
function Ur() {
|
|
3470
3216
|
return !1;
|
|
3471
3217
|
}
|
|
3472
|
-
e.exports =
|
|
3473
|
-
})(
|
|
3474
|
-
var
|
|
3475
|
-
const
|
|
3476
|
-
class
|
|
3218
|
+
e.exports = Ar;
|
|
3219
|
+
})(Me, Me.exports);
|
|
3220
|
+
var yo = Me.exports;
|
|
3221
|
+
const go = /* @__PURE__ */ ho(yo), ee = (e, t) => new Date(e.getTime() - gn(t, e));
|
|
3222
|
+
class P {
|
|
3477
3223
|
constructor(t) {
|
|
3478
3224
|
b(this, "timeframeText");
|
|
3479
3225
|
b(this, "key");
|
|
@@ -3520,8 +3266,8 @@ class I {
|
|
|
3520
3266
|
allowedGranularities(t) {
|
|
3521
3267
|
if (this._allowedGranularitiesOverride && t)
|
|
3522
3268
|
return new Set(this._allowedGranularitiesOverride);
|
|
3523
|
-
const
|
|
3524
|
-
return
|
|
3269
|
+
const n = /* @__PURE__ */ new Set(), r = this.maximumTimeframeLength() / 3600;
|
|
3270
|
+
return r <= 6 && n.add("minutely"), r >= 2 && r <= 7 * 24 && n.add("hourly"), r >= 2 * 24 && n.add("daily"), r >= 2 * 24 * 14 && n.add("weekly"), n;
|
|
3525
3271
|
}
|
|
3526
3272
|
cacheKey() {
|
|
3527
3273
|
return this.key !== "custom" ? this.key : `${this.rawStart().toISOString()}-${this.rawEnd().toISOString()}`;
|
|
@@ -3541,56 +3287,56 @@ class I {
|
|
|
3541
3287
|
tzAdjustedDate(t) {
|
|
3542
3288
|
if (!t)
|
|
3543
3289
|
return /* @__PURE__ */ new Date();
|
|
3544
|
-
const
|
|
3545
|
-
return
|
|
3290
|
+
const n = uo(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
|
|
3291
|
+
return yn(n, t);
|
|
3546
3292
|
}
|
|
3547
3293
|
}
|
|
3548
|
-
class
|
|
3294
|
+
class po extends P {
|
|
3549
3295
|
rawStart(t) {
|
|
3550
|
-
let
|
|
3551
|
-
return t && (
|
|
3296
|
+
let n = Y(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
3297
|
+
return t && (n = ee(n, t)), n;
|
|
3552
3298
|
}
|
|
3553
3299
|
maximumTimeframeLength() {
|
|
3554
3300
|
return 60 * 60 * 24 * 7;
|
|
3555
3301
|
}
|
|
3556
3302
|
}
|
|
3557
|
-
class
|
|
3303
|
+
class _o extends P {
|
|
3558
3304
|
rawStart(t) {
|
|
3559
|
-
let
|
|
3560
|
-
return t && (
|
|
3305
|
+
let n = J(this.tzAdjustedDate(t));
|
|
3306
|
+
return t && (n = ee(n, t)), n;
|
|
3561
3307
|
}
|
|
3562
3308
|
maximumTimeframeLength() {
|
|
3563
3309
|
return 60 * 60 * 24 * 31;
|
|
3564
3310
|
}
|
|
3565
3311
|
}
|
|
3566
|
-
class
|
|
3312
|
+
class wo extends P {
|
|
3567
3313
|
rawEnd(t) {
|
|
3568
|
-
let
|
|
3569
|
-
return t && (
|
|
3314
|
+
let n = Y(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
3315
|
+
return t && (n = ee(n, t)), n;
|
|
3570
3316
|
}
|
|
3571
3317
|
rawStart(t) {
|
|
3572
|
-
const
|
|
3573
|
-
let
|
|
3318
|
+
const n = this.tzAdjustedDate(t);
|
|
3319
|
+
let r = Y(n.setDate(n.getDate() - 7), {
|
|
3574
3320
|
weekStartsOn: 1
|
|
3575
3321
|
});
|
|
3576
|
-
return t && (
|
|
3322
|
+
return t && (r = ee(r, t)), r;
|
|
3577
3323
|
}
|
|
3578
3324
|
}
|
|
3579
|
-
class
|
|
3325
|
+
class bo extends P {
|
|
3580
3326
|
rawEnd(t) {
|
|
3581
|
-
let
|
|
3582
|
-
return t && (
|
|
3327
|
+
let n = J(this.tzAdjustedDate(t));
|
|
3328
|
+
return t && (n = ee(n, t)), n;
|
|
3583
3329
|
}
|
|
3584
3330
|
rawStart(t) {
|
|
3585
|
-
let
|
|
3586
|
-
return t && (
|
|
3331
|
+
let n = J(mn(this.tzAdjustedDate(t)));
|
|
3332
|
+
return t && (n = ee(n, t)), n;
|
|
3587
3333
|
}
|
|
3588
3334
|
}
|
|
3589
|
-
const
|
|
3335
|
+
const To = /* @__PURE__ */ new Map([
|
|
3590
3336
|
[
|
|
3591
|
-
|
|
3592
|
-
new
|
|
3593
|
-
key:
|
|
3337
|
+
h.FIFTEEN_MIN,
|
|
3338
|
+
new P({
|
|
3339
|
+
key: h.FIFTEEN_MIN,
|
|
3594
3340
|
display: "Last 15 minutes",
|
|
3595
3341
|
timeframeText: "15 minutes",
|
|
3596
3342
|
timeframeLength: () => 60 * 15,
|
|
@@ -3603,9 +3349,9 @@ const bs = /* @__PURE__ */ new Map([
|
|
|
3603
3349
|
})
|
|
3604
3350
|
],
|
|
3605
3351
|
[
|
|
3606
|
-
|
|
3607
|
-
new
|
|
3608
|
-
key:
|
|
3352
|
+
h.ONE_HOUR,
|
|
3353
|
+
new P({
|
|
3354
|
+
key: h.ONE_HOUR,
|
|
3609
3355
|
display: "Last hour",
|
|
3610
3356
|
timeframeText: "One hour",
|
|
3611
3357
|
timeframeLength: () => 60 * 60 * 1,
|
|
@@ -3618,9 +3364,9 @@ const bs = /* @__PURE__ */ new Map([
|
|
|
3618
3364
|
})
|
|
3619
3365
|
],
|
|
3620
3366
|
[
|
|
3621
|
-
|
|
3622
|
-
new
|
|
3623
|
-
key:
|
|
3367
|
+
h.SIX_HOUR,
|
|
3368
|
+
new P({
|
|
3369
|
+
key: h.SIX_HOUR,
|
|
3624
3370
|
display: "Last 6 hours",
|
|
3625
3371
|
timeframeText: "6 hours",
|
|
3626
3372
|
timeframeLength: () => 60 * 60 * 6,
|
|
@@ -3633,9 +3379,9 @@ const bs = /* @__PURE__ */ new Map([
|
|
|
3633
3379
|
})
|
|
3634
3380
|
],
|
|
3635
3381
|
[
|
|
3636
|
-
|
|
3637
|
-
new
|
|
3638
|
-
key:
|
|
3382
|
+
h.TWELVE_HOUR,
|
|
3383
|
+
new P({
|
|
3384
|
+
key: h.TWELVE_HOUR,
|
|
3639
3385
|
display: "Last 12 hours",
|
|
3640
3386
|
timeframeText: "12 hours",
|
|
3641
3387
|
timeframeLength: () => 60 * 60 * 12,
|
|
@@ -3648,9 +3394,9 @@ const bs = /* @__PURE__ */ new Map([
|
|
|
3648
3394
|
})
|
|
3649
3395
|
],
|
|
3650
3396
|
[
|
|
3651
|
-
|
|
3652
|
-
new
|
|
3653
|
-
key:
|
|
3397
|
+
h.ONE_DAY,
|
|
3398
|
+
new P({
|
|
3399
|
+
key: h.ONE_DAY,
|
|
3654
3400
|
display: "Last 24 hours",
|
|
3655
3401
|
timeframeText: "24 hours",
|
|
3656
3402
|
timeframeLength: () => 60 * 60 * 24,
|
|
@@ -3663,9 +3409,9 @@ const bs = /* @__PURE__ */ new Map([
|
|
|
3663
3409
|
})
|
|
3664
3410
|
],
|
|
3665
3411
|
[
|
|
3666
|
-
|
|
3667
|
-
new
|
|
3668
|
-
key:
|
|
3412
|
+
h.SEVEN_DAY,
|
|
3413
|
+
new P({
|
|
3414
|
+
key: h.SEVEN_DAY,
|
|
3669
3415
|
display: "Last 7 days",
|
|
3670
3416
|
timeframeText: "7 days",
|
|
3671
3417
|
timeframeLength: () => 60 * 60 * 24 * 7,
|
|
@@ -3678,9 +3424,9 @@ const bs = /* @__PURE__ */ new Map([
|
|
|
3678
3424
|
})
|
|
3679
3425
|
],
|
|
3680
3426
|
[
|
|
3681
|
-
|
|
3682
|
-
new
|
|
3683
|
-
key:
|
|
3427
|
+
h.THIRTY_DAY,
|
|
3428
|
+
new P({
|
|
3429
|
+
key: h.THIRTY_DAY,
|
|
3684
3430
|
display: "Last 30 days",
|
|
3685
3431
|
timeframeText: "30 days",
|
|
3686
3432
|
timeframeLength: () => 60 * 60 * 24 * 30,
|
|
@@ -3693,13 +3439,13 @@ const bs = /* @__PURE__ */ new Map([
|
|
|
3693
3439
|
})
|
|
3694
3440
|
],
|
|
3695
3441
|
[
|
|
3696
|
-
|
|
3697
|
-
new
|
|
3698
|
-
key:
|
|
3442
|
+
h.CURRENT_WEEK,
|
|
3443
|
+
new po({
|
|
3444
|
+
key: h.CURRENT_WEEK,
|
|
3699
3445
|
display: "This week",
|
|
3700
3446
|
timeframeText: "Week",
|
|
3701
3447
|
timeframeLength: () => {
|
|
3702
|
-
const e =
|
|
3448
|
+
const e = Y(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
|
|
3703
3449
|
return (_e(kt(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
3704
3450
|
},
|
|
3705
3451
|
defaultResponseGranularity: "daily",
|
|
@@ -3711,9 +3457,9 @@ const bs = /* @__PURE__ */ new Map([
|
|
|
3711
3457
|
})
|
|
3712
3458
|
],
|
|
3713
3459
|
[
|
|
3714
|
-
|
|
3715
|
-
new
|
|
3716
|
-
key:
|
|
3460
|
+
h.CURRENT_MONTH,
|
|
3461
|
+
new _o({
|
|
3462
|
+
key: h.CURRENT_MONTH,
|
|
3717
3463
|
display: "This month",
|
|
3718
3464
|
timeframeText: "Month",
|
|
3719
3465
|
timeframeLength: () => {
|
|
@@ -3727,9 +3473,9 @@ const bs = /* @__PURE__ */ new Map([
|
|
|
3727
3473
|
})
|
|
3728
3474
|
],
|
|
3729
3475
|
[
|
|
3730
|
-
|
|
3731
|
-
new
|
|
3732
|
-
key:
|
|
3476
|
+
h.PREVIOUS_WEEK,
|
|
3477
|
+
new wo({
|
|
3478
|
+
key: h.PREVIOUS_WEEK,
|
|
3733
3479
|
display: "Previous week",
|
|
3734
3480
|
timeframeText: "Week",
|
|
3735
3481
|
timeframeLength: () => 60 * 60 * 24 * 7,
|
|
@@ -3742,15 +3488,15 @@ const bs = /* @__PURE__ */ new Map([
|
|
|
3742
3488
|
})
|
|
3743
3489
|
],
|
|
3744
3490
|
[
|
|
3745
|
-
|
|
3746
|
-
new
|
|
3747
|
-
key:
|
|
3491
|
+
h.PREVIOUS_MONTH,
|
|
3492
|
+
new bo({
|
|
3493
|
+
key: h.PREVIOUS_MONTH,
|
|
3748
3494
|
display: "Previous month",
|
|
3749
3495
|
timeframeText: "Month",
|
|
3750
3496
|
timeframeLength: () => {
|
|
3751
3497
|
let e = 0;
|
|
3752
|
-
const t = J(/* @__PURE__ */ new Date()),
|
|
3753
|
-
return t.getTimezoneOffset() !==
|
|
3498
|
+
const t = J(/* @__PURE__ */ new Date()), n = J(mn(/* @__PURE__ */ new Date()));
|
|
3499
|
+
return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e = Mo(t, n)), 60 * 60 * 24 * Ci((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + ki(e);
|
|
3754
3500
|
},
|
|
3755
3501
|
defaultResponseGranularity: "daily",
|
|
3756
3502
|
dataGranularity: "daily",
|
|
@@ -3759,29 +3505,29 @@ const bs = /* @__PURE__ */ new Map([
|
|
|
3759
3505
|
})
|
|
3760
3506
|
]
|
|
3761
3507
|
]);
|
|
3762
|
-
function
|
|
3763
|
-
const t = new Date(e.start),
|
|
3764
|
-
return e.timePeriodsKey &&
|
|
3508
|
+
function zo(e) {
|
|
3509
|
+
const t = new Date(e.start), n = new Date(e.end), r = (n.getTime() - t.getTime()) / 1e3;
|
|
3510
|
+
return e.timePeriodsKey && go(To.get(e.timePeriodsKey)) || new P({
|
|
3765
3511
|
key: "custom",
|
|
3766
3512
|
timeframeText: "custom",
|
|
3767
3513
|
display: "custom",
|
|
3768
3514
|
startCustom: t,
|
|
3769
|
-
endCustom:
|
|
3770
|
-
timeframeLength: () =>
|
|
3515
|
+
endCustom: n,
|
|
3516
|
+
timeframeLength: () => r,
|
|
3771
3517
|
defaultResponseGranularity: "daily",
|
|
3772
3518
|
dataGranularity: "daily",
|
|
3773
3519
|
isRelative: !1,
|
|
3774
3520
|
allowedTiers: ["free", "plus", "enterprise"]
|
|
3775
3521
|
});
|
|
3776
3522
|
}
|
|
3777
|
-
function
|
|
3523
|
+
function Bo(e) {
|
|
3778
3524
|
return {
|
|
3779
3525
|
...e.key !== "custom" && { timePeriodsKey: e.key },
|
|
3780
3526
|
start: e.rawStart(),
|
|
3781
3527
|
end: e.rawEnd()
|
|
3782
3528
|
};
|
|
3783
3529
|
}
|
|
3784
|
-
function
|
|
3530
|
+
function Vo(e) {
|
|
3785
3531
|
return {
|
|
3786
3532
|
key: e.key,
|
|
3787
3533
|
display: e.display,
|
|
@@ -3792,81 +3538,81 @@ function Vs(e) {
|
|
|
3792
3538
|
end: () => e.rawEnd()
|
|
3793
3539
|
};
|
|
3794
3540
|
}
|
|
3795
|
-
function
|
|
3796
|
-
return
|
|
3797
|
-
}
|
|
3798
|
-
const
|
|
3799
|
-
"15M":
|
|
3800
|
-
"1H":
|
|
3801
|
-
"6H":
|
|
3802
|
-
"12H":
|
|
3803
|
-
"24H":
|
|
3804
|
-
"7D":
|
|
3805
|
-
"15m":
|
|
3806
|
-
"1h":
|
|
3807
|
-
"6h":
|
|
3808
|
-
"12h":
|
|
3809
|
-
"24h":
|
|
3810
|
-
"7d":
|
|
3811
|
-
"30d":
|
|
3812
|
-
current_week:
|
|
3813
|
-
current_month:
|
|
3814
|
-
previous_week:
|
|
3815
|
-
previous_month:
|
|
3541
|
+
function Mo(e, t) {
|
|
3542
|
+
return Gi(e.getTimezoneOffset() - t.getTimezoneOffset());
|
|
3543
|
+
}
|
|
3544
|
+
const Xo = {
|
|
3545
|
+
"15M": h.FIFTEEN_MIN,
|
|
3546
|
+
"1H": h.ONE_HOUR,
|
|
3547
|
+
"6H": h.SIX_HOUR,
|
|
3548
|
+
"12H": h.TWELVE_HOUR,
|
|
3549
|
+
"24H": h.ONE_DAY,
|
|
3550
|
+
"7D": h.SEVEN_DAY,
|
|
3551
|
+
"15m": h.FIFTEEN_MIN,
|
|
3552
|
+
"1h": h.ONE_HOUR,
|
|
3553
|
+
"6h": h.SIX_HOUR,
|
|
3554
|
+
"12h": h.TWELVE_HOUR,
|
|
3555
|
+
"24h": h.ONE_DAY,
|
|
3556
|
+
"7d": h.SEVEN_DAY,
|
|
3557
|
+
"30d": h.THIRTY_DAY,
|
|
3558
|
+
current_week: h.CURRENT_WEEK,
|
|
3559
|
+
current_month: h.CURRENT_MONTH,
|
|
3560
|
+
previous_week: h.PREVIOUS_WEEK,
|
|
3561
|
+
previous_month: h.PREVIOUS_MONTH
|
|
3816
3562
|
};
|
|
3817
3563
|
class Qe {
|
|
3818
3564
|
constructor(t) {
|
|
3819
3565
|
b(this, "_seed");
|
|
3820
3566
|
this._seed = t;
|
|
3821
3567
|
}
|
|
3822
|
-
next(t,
|
|
3823
|
-
const
|
|
3824
|
-
return Math.floor(i * (
|
|
3568
|
+
next(t, n) {
|
|
3569
|
+
const r = Math.sin(this._seed++) * 1e4, i = r - Math.floor(r);
|
|
3570
|
+
return Math.floor(i * (n - t + 1)) + t;
|
|
3825
3571
|
}
|
|
3826
3572
|
}
|
|
3827
|
-
const
|
|
3828
|
-
const
|
|
3829
|
-
let
|
|
3830
|
-
for (let y =
|
|
3573
|
+
const $o = (e, t, n) => {
|
|
3574
|
+
const r = wn(10, 1e4), i = new Qe(r), s = Date.now() - 6 * 60 * 60 * 1e3, u = Date.now(), d = [];
|
|
3575
|
+
let f = 0;
|
|
3576
|
+
for (let y = s; y <= u; y += 60 * 60 * 1e3)
|
|
3831
3577
|
if (t)
|
|
3832
3578
|
for (const g in t)
|
|
3833
3579
|
t[g].forEach((x) => {
|
|
3834
|
-
|
|
3835
|
-
const
|
|
3580
|
+
f += i.next(50, 500);
|
|
3581
|
+
const I = {
|
|
3836
3582
|
[g]: x,
|
|
3837
|
-
[e.name]:
|
|
3838
|
-
},
|
|
3583
|
+
[e.name]: f
|
|
3584
|
+
}, N = {
|
|
3839
3585
|
version: "1.0",
|
|
3840
3586
|
timestamp: new Date(y).toISOString(),
|
|
3841
|
-
event:
|
|
3587
|
+
event: I
|
|
3842
3588
|
};
|
|
3843
|
-
d.push(
|
|
3589
|
+
d.push(N);
|
|
3844
3590
|
});
|
|
3845
3591
|
else {
|
|
3846
|
-
|
|
3592
|
+
f += i.next(50, 500);
|
|
3847
3593
|
const g = {
|
|
3848
3594
|
version: "1.0",
|
|
3849
3595
|
timestamp: new Date(y).toISOString(),
|
|
3850
3596
|
event: {
|
|
3851
|
-
[e.name]:
|
|
3597
|
+
[e.name]: f
|
|
3852
3598
|
}
|
|
3853
3599
|
};
|
|
3854
3600
|
d.push(g);
|
|
3855
3601
|
}
|
|
3856
|
-
const
|
|
3602
|
+
const m = {};
|
|
3857
3603
|
if (t)
|
|
3858
3604
|
for (const y in t)
|
|
3859
|
-
|
|
3860
|
-
|
|
3605
|
+
m[y] = {}, t[y].forEach((g) => {
|
|
3606
|
+
m[y][g] = {
|
|
3861
3607
|
name: g,
|
|
3862
3608
|
deleted: !1
|
|
3863
3609
|
};
|
|
3864
3610
|
});
|
|
3865
3611
|
const _ = {
|
|
3866
|
-
start_ms:
|
|
3867
|
-
end_ms:
|
|
3868
|
-
start: new Date(
|
|
3869
|
-
end: new Date(
|
|
3612
|
+
start_ms: s,
|
|
3613
|
+
end_ms: u,
|
|
3614
|
+
start: new Date(s).toISOString(),
|
|
3615
|
+
end: new Date(u).toISOString(),
|
|
3870
3616
|
query_id: "12345",
|
|
3871
3617
|
metric_names: [e.name],
|
|
3872
3618
|
metric_units: {
|
|
@@ -3874,63 +3620,63 @@ const Xs = (e, t, r) => {
|
|
|
3874
3620
|
},
|
|
3875
3621
|
granularity_ms: 60 * 60 * 1e3,
|
|
3876
3622
|
// 1 hour in ms
|
|
3877
|
-
display:
|
|
3878
|
-
...
|
|
3623
|
+
display: m,
|
|
3624
|
+
...n ?? {}
|
|
3879
3625
|
};
|
|
3880
3626
|
return {
|
|
3881
3627
|
data: d,
|
|
3882
3628
|
meta: _
|
|
3883
3629
|
};
|
|
3884
|
-
},
|
|
3885
|
-
const
|
|
3886
|
-
e.forEach((
|
|
3887
|
-
d[
|
|
3630
|
+
}, Zo = (e, t) => {
|
|
3631
|
+
const n = wn(10, 1e4), r = new Qe(n), i = Date.now() - 6 * 60 * 60 * 1e3, s = Date.now(), u = [], d = {};
|
|
3632
|
+
e.forEach((m) => {
|
|
3633
|
+
d[m.name] = 0;
|
|
3888
3634
|
});
|
|
3889
|
-
for (let
|
|
3635
|
+
for (let m = i; m <= s; m += 60 * 60 * 1e3) {
|
|
3890
3636
|
const _ = {};
|
|
3891
3637
|
e.forEach((g) => {
|
|
3892
|
-
d[g.name] +=
|
|
3638
|
+
d[g.name] += r.next(50, 500), _[g.name] = d[g.name];
|
|
3893
3639
|
});
|
|
3894
3640
|
const y = {
|
|
3895
3641
|
version: "1.0",
|
|
3896
|
-
timestamp: new Date(
|
|
3642
|
+
timestamp: new Date(m).toISOString(),
|
|
3897
3643
|
event: _
|
|
3898
3644
|
};
|
|
3899
|
-
|
|
3645
|
+
u.push(y);
|
|
3900
3646
|
}
|
|
3901
|
-
const
|
|
3647
|
+
const f = {
|
|
3902
3648
|
start_ms: i,
|
|
3903
|
-
end_ms:
|
|
3649
|
+
end_ms: s,
|
|
3904
3650
|
start: new Date(i).toISOString(),
|
|
3905
|
-
end: new Date(
|
|
3651
|
+
end: new Date(s).toISOString(),
|
|
3906
3652
|
query_id: "12345",
|
|
3907
|
-
metric_names: e.map((
|
|
3908
|
-
metric_units: e.reduce((
|
|
3653
|
+
metric_names: e.map((m) => m.name),
|
|
3654
|
+
metric_units: e.reduce((m, _) => (m[_.name] = _.unit, m), {}),
|
|
3909
3655
|
granularity_ms: 60 * 60 * 1e3,
|
|
3910
3656
|
// 1 hour in ms
|
|
3911
3657
|
display: {},
|
|
3912
3658
|
...t ?? {}
|
|
3913
3659
|
};
|
|
3914
3660
|
return {
|
|
3915
|
-
data:
|
|
3916
|
-
meta:
|
|
3661
|
+
data: u,
|
|
3662
|
+
meta: f
|
|
3917
3663
|
};
|
|
3918
|
-
},
|
|
3919
|
-
const
|
|
3664
|
+
}, Qo = (e, t, n) => {
|
|
3665
|
+
const r = Math.floor(Math.random() * 9991) + 10, i = new Qe(r), s = Date.now() - 6 * 60 * 60 * 1e3, u = Date.now(), d = new Date((s + u) / 2).toISOString(), f = [];
|
|
3920
3666
|
if (t) {
|
|
3921
|
-
const y = Object.keys(t), g = Object.values(t), x = (
|
|
3922
|
-
if (
|
|
3667
|
+
const y = Object.keys(t), g = Object.values(t), x = (I, N) => {
|
|
3668
|
+
if (N === y.length) {
|
|
3923
3669
|
e.forEach((R) => {
|
|
3924
|
-
|
|
3925
|
-
}),
|
|
3670
|
+
I[R.name] = i.next(1e3, 5e7);
|
|
3671
|
+
}), f.push({
|
|
3926
3672
|
version: "1.0",
|
|
3927
3673
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
3928
|
-
event: { ...
|
|
3674
|
+
event: { ...I }
|
|
3929
3675
|
});
|
|
3930
3676
|
return;
|
|
3931
3677
|
}
|
|
3932
|
-
g[
|
|
3933
|
-
x({ ...
|
|
3678
|
+
g[N].forEach((R) => {
|
|
3679
|
+
x({ ...I, [y[N]]: R }, N + 1);
|
|
3934
3680
|
});
|
|
3935
3681
|
};
|
|
3936
3682
|
x({}, 0);
|
|
@@ -3938,119 +3684,119 @@ const Xs = (e, t, r) => {
|
|
|
3938
3684
|
const y = {};
|
|
3939
3685
|
e.forEach((g) => {
|
|
3940
3686
|
y[g.name] = i.next(50, 500);
|
|
3941
|
-
}),
|
|
3687
|
+
}), f.push({
|
|
3942
3688
|
version: "1.0",
|
|
3943
3689
|
timestamp: d,
|
|
3944
3690
|
event: y
|
|
3945
3691
|
});
|
|
3946
3692
|
}
|
|
3947
|
-
const
|
|
3693
|
+
const m = {};
|
|
3948
3694
|
if (t)
|
|
3949
3695
|
for (const y in t)
|
|
3950
|
-
|
|
3951
|
-
|
|
3696
|
+
m[y] = {}, t[y].forEach((g) => {
|
|
3697
|
+
m[y][g] = {
|
|
3952
3698
|
name: g,
|
|
3953
3699
|
deleted: !1
|
|
3954
3700
|
};
|
|
3955
3701
|
});
|
|
3956
3702
|
const _ = {
|
|
3957
|
-
start_ms:
|
|
3958
|
-
end_ms:
|
|
3959
|
-
start: new Date(
|
|
3960
|
-
end: new Date(
|
|
3703
|
+
start_ms: s,
|
|
3704
|
+
end_ms: u,
|
|
3705
|
+
start: new Date(s).toISOString(),
|
|
3706
|
+
end: new Date(u).toISOString(),
|
|
3961
3707
|
query_id: "12345",
|
|
3962
3708
|
metric_names: e.map((y) => y.name),
|
|
3963
3709
|
metric_units: e.reduce((y, g) => (y[g.name] = g.unit, y), {}),
|
|
3964
3710
|
truncated: !1,
|
|
3965
3711
|
limit: 50,
|
|
3966
|
-
display:
|
|
3967
|
-
granularity_ms:
|
|
3968
|
-
...
|
|
3712
|
+
display: m,
|
|
3713
|
+
granularity_ms: u - s,
|
|
3714
|
+
...n ?? {}
|
|
3969
3715
|
};
|
|
3970
3716
|
return {
|
|
3971
|
-
data:
|
|
3717
|
+
data: f,
|
|
3972
3718
|
meta: _
|
|
3973
3719
|
};
|
|
3974
3720
|
};
|
|
3975
|
-
function
|
|
3721
|
+
function wn(e, t) {
|
|
3976
3722
|
return e = Math.ceil(e), t = Math.floor(t), Math.floor(Math.random() * (t - e + 1) + e);
|
|
3977
3723
|
}
|
|
3978
3724
|
export {
|
|
3979
|
-
|
|
3980
|
-
|
|
3725
|
+
ra as COUNTRIES,
|
|
3726
|
+
jo as DeltaQueryTime,
|
|
3727
|
+
Oo as EXPORT_RECORD_LIMIT,
|
|
3981
3728
|
Te as Granularities,
|
|
3982
|
-
|
|
3983
|
-
|
|
3729
|
+
vo as INJECT_QUERY_PROVIDER,
|
|
3730
|
+
So as REFRESH_INTERVAL_MS,
|
|
3984
3731
|
Qe as SeededRandom,
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3732
|
+
Xo as TIMEFRAME_LOOKUP,
|
|
3733
|
+
To as TimePeriods,
|
|
3734
|
+
P as Timeframe,
|
|
3735
|
+
h as TimeframeKeys,
|
|
3736
|
+
Uo as TimeseriesQueryTime,
|
|
3737
|
+
fo as UnaryQueryTime,
|
|
3738
|
+
Zr as aiExploreAggregations,
|
|
3992
3739
|
ga as apiUsageQuerySchema,
|
|
3993
3740
|
ia as barChartSchema,
|
|
3994
|
-
|
|
3741
|
+
tn as basicExploreAggregations,
|
|
3995
3742
|
pa as basicQuerySchema,
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
Kn as filterableRequestDimensions,
|
|
3743
|
+
_n as ceilToNearestTimeGrain,
|
|
3744
|
+
fa as choroplethMapSchema,
|
|
3745
|
+
Yo as dashboardConfigSchema,
|
|
3746
|
+
Ao as dashboardTileTypes,
|
|
3747
|
+
na as datasourceToFilterableDimensions,
|
|
3748
|
+
zo as datePickerSelectionToTimeframe,
|
|
3749
|
+
ua as donutChartSchema,
|
|
3750
|
+
Mo as dstOffsetHours,
|
|
3751
|
+
$r as exploreAggregations,
|
|
3752
|
+
Br as exploreFilterTypesV2,
|
|
3753
|
+
Oe as filterableAiExploreDimensions,
|
|
3754
|
+
De as filterableBasicExploreDimensions,
|
|
3755
|
+
Se as filterableExploreDimensions,
|
|
3756
|
+
Kr as filterableRequestDimensions,
|
|
4011
3757
|
ta as filterableRequestMetrics,
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
3758
|
+
Co as filterableRequestWildcardDimensions,
|
|
3759
|
+
mo as floorToNearestTimeGrain,
|
|
3760
|
+
Fo as formatISOTimeWithTZ,
|
|
4015
3761
|
Jt as formatTime,
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
3762
|
+
Lo as formatTimeRange,
|
|
3763
|
+
ca as gaugeChartSchema,
|
|
3764
|
+
Qo as generateCrossSectionalData,
|
|
3765
|
+
Zo as generateMultipleMetricTimeSeriesData,
|
|
3766
|
+
$o as generateSingleMetricTimeSeriesData,
|
|
3767
|
+
Ho as getFieldDataSources,
|
|
3768
|
+
Wo as granularitiesToOptions,
|
|
3769
|
+
lo as granularityMsToQuery,
|
|
3770
|
+
en as granularityValues,
|
|
4025
3771
|
_a as llmUsageSchema,
|
|
4026
3772
|
da as metricCardSchema,
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
3773
|
+
qo as msToGranularity,
|
|
3774
|
+
ko as queryDatasources,
|
|
3775
|
+
rn as queryableAiExploreDimensions,
|
|
3776
|
+
Be as queryableBasicExploreDimensions,
|
|
3777
|
+
nn as queryableExploreDimensions,
|
|
3778
|
+
Qr as queryableRequestDimensions,
|
|
4033
3779
|
ea as queryableRequestMetrics,
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
3780
|
+
Jr as queryableRequestWildcardDimensions,
|
|
3781
|
+
wn as rand,
|
|
3782
|
+
Ro as relativeTimeRangeValuesRequestV2,
|
|
3783
|
+
Xr as relativeTimeRangeValuesV4,
|
|
3784
|
+
Eo as reportChartTypes,
|
|
3785
|
+
Vr as requestFilterTypeEmptyV2,
|
|
3786
|
+
xo as requestFilterTypeEqualsV2,
|
|
3787
|
+
Io as requestFilterTypeMetricV2,
|
|
3788
|
+
No as requestFilterTypeWildcardV2,
|
|
3789
|
+
ma as singleValueSchema,
|
|
4044
3790
|
aa as slottableSchema,
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
3791
|
+
Go as stripUnknownFilters,
|
|
3792
|
+
oa as thresholdSchema,
|
|
3793
|
+
Ma as tileConfigSchema,
|
|
4048
3794
|
ba as tileDefinitionSchema,
|
|
4049
3795
|
Ta as tileLayoutSchema,
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
3796
|
+
Po as timeRangeTypeV2,
|
|
3797
|
+
Bo as timeframeToDatepickerSelection,
|
|
3798
|
+
Vo as timeframeToDatepickerTimeperiod,
|
|
3799
|
+
sa as timeseriesChartSchema,
|
|
4054
3800
|
la as topNTableSchema,
|
|
4055
3801
|
wa as validDashboardQuery
|
|
4056
3802
|
};
|