@infinilabs/discover 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +8 -0
  3. package/dist/abap-B988NUrV.js +122 -0
  4. package/dist/abap-obercqiY.cjs +1 -0
  5. package/dist/apex-B0_UGK1B.cjs +1 -0
  6. package/dist/apex-BlHPPQK-.js +168 -0
  7. package/dist/azcli-C7iyZFGk.js +53 -0
  8. package/dist/azcli-CEoytwx_.cjs +1 -0
  9. package/dist/bat-Buc0l0C3.js +123 -0
  10. package/dist/bat-D65OC-jj.cjs +1 -0
  11. package/dist/bicep-DvD_e5vW.cjs +2 -0
  12. package/dist/bicep-U66iJ-pV.js +219 -0
  13. package/dist/cameligo-C9Dwkdmm.js +189 -0
  14. package/dist/cameligo-DzMHfeEs.cjs +1 -0
  15. package/dist/chunk-BjqF3vbe.cjs +1 -0
  16. package/dist/chunk-CIp4IH9D.js +21 -0
  17. package/dist/classnames-BXjDNQ6Q.cjs +1 -0
  18. package/dist/classnames-eUba3oot.js +29 -0
  19. package/dist/clojure-BC7BzAFK.cjs +1 -0
  20. package/dist/clojure-DDWmWbSx.js +146 -0
  21. package/dist/coffee-7Sx2S8NH.js +260 -0
  22. package/dist/coffee-Ca9F0OWZ.cjs +1 -0
  23. package/dist/common-BeXEy5sz.cjs +18 -0
  24. package/dist/common-BlOHZJzI.js +64 -0
  25. package/dist/common-DuYIpe6b.cjs +1 -0
  26. package/dist/common-Tr1I-HCs.js +6725 -0
  27. package/dist/cpp-CHjqaSPQ.js +230 -0
  28. package/dist/cpp-DKy9h6xR.cjs +1 -0
  29. package/dist/createLucideIcon-239Z-2by.cjs +1 -0
  30. package/dist/createLucideIcon-BO6TDGE7.js +43 -0
  31. package/dist/csharp-CkbgT9vH.cjs +1 -0
  32. package/dist/csharp-jwStnVeK.js +260 -0
  33. package/dist/csp-C2qFd6iv.cjs +1 -0
  34. package/dist/csp-DkO8Np0h.js +46 -0
  35. package/dist/css-BFvwcljm.js +284 -0
  36. package/dist/css-DCKUCzD6.cjs +3 -0
  37. package/dist/cssMode-CU2AJQMM.js +1509 -0
  38. package/dist/cssMode-l7eR8WSG.cjs +4 -0
  39. package/dist/cypher-122TYSjJ.cjs +1 -0
  40. package/dist/cypher-DaQ7hFRL.js +212 -0
  41. package/dist/dart-D8p_2HKP.js +236 -0
  42. package/dist/dart-DshcPGU8.cjs +1 -0
  43. package/dist/dist-DCz_Qv0B.js +884 -0
  44. package/dist/dist-D_2dZQH5.cjs +11 -0
  45. package/dist/dockerfile-CL8dwZCe.cjs +1 -0
  46. package/dist/dockerfile-DKWOQrwp.js +191 -0
  47. package/dist/ecl-DP3PNWGB.js +226 -0
  48. package/dist/ecl-DVx2J_EE.cjs +1 -0
  49. package/dist/editor.api-CbUDOph7.js +70302 -0
  50. package/dist/editor.api-lY2thcaq.cjs +644 -0
  51. package/dist/elixir-Xgx_1krO.cjs +1 -0
  52. package/dist/elixir-e9tDp1p1.js +523 -0
  53. package/dist/filter_label-DRJC3vpe.js +58 -0
  54. package/dist/filter_label-DssaWGpx.cjs +1 -0
  55. package/dist/filter_operators-C-TaTcNc.js +70 -0
  56. package/dist/filter_operators-D0kyB-XI.cjs +1 -0
  57. package/dist/flow9-C9BjpX8h.js +176 -0
  58. package/dist/flow9-DR-EyjYV.cjs +1 -0
  59. package/dist/freemarker2-BTGUjvgA.cjs +3 -0
  60. package/dist/freemarker2-C6Iq5MB-.js +724 -0
  61. package/dist/fsharp-BWm_FISn.js +147 -0
  62. package/dist/fsharp-DaBEigN7.cjs +1 -0
  63. package/dist/go-Xyq33f0v.cjs +1 -0
  64. package/dist/go-cmqV0Vy_.js +165 -0
  65. package/dist/graphql-BkFHHVmI.js +174 -0
  66. package/dist/graphql-Cj7XAy25.cjs +1 -0
  67. package/dist/handlebars-B2b1q7PA.cjs +1 -0
  68. package/dist/handlebars-DGGN9u4Y.js +418 -0
  69. package/dist/hcl-5I-P7bYX.js +219 -0
  70. package/dist/hcl-C3dpBsgU.cjs +1 -0
  71. package/dist/html-RJa-j-qT.js +339 -0
  72. package/dist/html-qfcUzk8e.cjs +1 -0
  73. package/dist/htmlMode-CYIxo4hc.cjs +4 -0
  74. package/dist/htmlMode-DDZ48mdp.js +1520 -0
  75. package/dist/index.cjs +303 -0
  76. package/dist/index.d.ts +4 -0
  77. package/dist/index.js +72895 -0
  78. package/dist/index_pattern_select--iGeA3sP.js +93 -0
  79. package/dist/index_pattern_select-BeN5049F.cjs +1 -0
  80. package/dist/ini-ChENqKh8.cjs +1 -0
  81. package/dist/ini-DSIAxBZt.js +94 -0
  82. package/dist/java-DGeAxsRb.js +173 -0
  83. package/dist/java-LZ6g7weJ.cjs +1 -0
  84. package/dist/javascript-CN5gTHH2.js +19 -0
  85. package/dist/javascript-CZ97a-BN.cjs +1 -0
  86. package/dist/jsonMode-BZDeJMLL.cjs +10 -0
  87. package/dist/jsonMode-DraOl-ka.js +1885 -0
  88. package/dist/julia-BeebccKw.cjs +1 -0
  89. package/dist/julia-CU4CtsP4.js +414 -0
  90. package/dist/kotlin-B8NxXJ89.js +183 -0
  91. package/dist/kotlin-M82nl514.cjs +1 -0
  92. package/dist/less-B4Q3fV9Y.cjs +2 -0
  93. package/dist/less-DbeQQzer.js +242 -0
  94. package/dist/lexon-CXQaaecE.cjs +1 -0
  95. package/dist/lexon-Cw9JuAKc.js +185 -0
  96. package/dist/lib-C9j_E-l0.js +47 -0
  97. package/dist/lib-Chy_6VKj.cjs +1 -0
  98. package/dist/liquid-BYNEOJvX.cjs +1 -0
  99. package/dist/liquid-DvB-d2w7.js +205 -0
  100. package/dist/lodash-C_2NO1eK.cjs +35 -0
  101. package/dist/lodash-D-qGlPRW.js +3769 -0
  102. package/dist/lua-CnG8Tpu2.cjs +1 -0
  103. package/dist/lua-yl5NzA_S.js +200 -0
  104. package/dist/m3-CVcm-OIn.cjs +1 -0
  105. package/dist/m3-CdNAqvIX.js +193 -0
  106. package/dist/markdown-C1h-EuiT.js +262 -0
  107. package/dist/markdown-DrRHDVSU.cjs +1 -0
  108. package/dist/mdx-BbiOYPr2.cjs +1 -0
  109. package/dist/mdx-Fk8VTCUK.js +335 -0
  110. package/dist/mips-DIWpzGF0.js +128 -0
  111. package/dist/mips-D_p8UYQb.cjs +1 -0
  112. package/dist/monaco.contribution-BpuUCejv.cjs +1 -0
  113. package/dist/monaco.contribution-Cq4QrMn0.js +134 -0
  114. package/dist/msdax-BiazpDQ1.js +156 -0
  115. package/dist/msdax-xM1_j20x.cjs +1 -0
  116. package/dist/mysql-DMsJkSnA.cjs +1 -0
  117. package/dist/mysql-DphBFJlP.js +168 -0
  118. package/dist/objective-c-BG02Lrht.cjs +1 -0
  119. package/dist/objective-c-DWZ8Qpyc.js +144 -0
  120. package/dist/pascal-BcvlMOdu.js +176 -0
  121. package/dist/pascal-CnP2Fqes.cjs +1 -0
  122. package/dist/pascaligo-BzDEm-l_.cjs +1 -0
  123. package/dist/pascaligo-DHEp4kzh.js +201 -0
  124. package/dist/perl-USYKPHpO.js +316 -0
  125. package/dist/perl-nIxw-e4R.cjs +1 -0
  126. package/dist/pgsql-Buk6XzVf.cjs +1 -0
  127. package/dist/pgsql-DzPhAh9W.js +158 -0
  128. package/dist/php-B3sFYUqV.cjs +1 -0
  129. package/dist/php-PfpSTefE.js +471 -0
  130. package/dist/pla-CZtnfWl6.cjs +1 -0
  131. package/dist/pla-DrFOZwDB.js +146 -0
  132. package/dist/postiats-4OGxVVUT.js +504 -0
  133. package/dist/postiats-CgJZf83Q.cjs +1 -0
  134. package/dist/powerquery-D9gzk2Dq.cjs +1 -0
  135. package/dist/powerquery-_h9-HEnY.js +190 -0
  136. package/dist/powershell-CZHaQY6z.cjs +1 -0
  137. package/dist/powershell-nOzcY8gy.js +211 -0
  138. package/dist/protobuf-DAgxhnea.js +659 -0
  139. package/dist/protobuf-D_C8Guej.cjs +2 -0
  140. package/dist/public-1PveQco4.js +1756 -0
  141. package/dist/public-D1K7oN7t.cjs +3 -0
  142. package/dist/pug-quEtG4rz.cjs +1 -0
  143. package/dist/pug-raGZNmZ1.js +300 -0
  144. package/dist/python-C45c7K7W.js +260 -0
  145. package/dist/python-CQX8JcT4.cjs +1 -0
  146. package/dist/qsharp-C2jz5tuo.js +143 -0
  147. package/dist/qsharp-CX1SSV_j.cjs +1 -0
  148. package/dist/query_bar_top_row-3UclS1nm.cjs +1 -0
  149. package/dist/query_bar_top_row-CfV4Iu71.cjs +1 -0
  150. package/dist/query_bar_top_row-D6a48VTk.js +11 -0
  151. package/dist/query_bar_top_row-DonV1OzY.js +2930 -0
  152. package/dist/query_string_input-75waAcWy.js +9 -0
  153. package/dist/query_string_input-CHG9w1ze.cjs +1 -0
  154. package/dist/query_string_input-CyPZVKif.js +366 -0
  155. package/dist/query_string_input-SOULY6dl.cjs +1 -0
  156. package/dist/r-CXkPcYYf.js +189 -0
  157. package/dist/r-DpVDQTST.cjs +1 -0
  158. package/dist/razor-BnoJmj1k.js +525 -0
  159. package/dist/razor-DYx4yJJn.cjs +1 -0
  160. package/dist/redis-DsCuCZIT.cjs +1 -0
  161. package/dist/redis-giKZvbbg.js +123 -0
  162. package/dist/redshift-qKVxBsP_.js +158 -0
  163. package/dist/redshift-z5_aUfdC.cjs +1 -0
  164. package/dist/restructuredtext-D0n4pabr.js +287 -0
  165. package/dist/restructuredtext-DdXoKocW.cjs +1 -0
  166. package/dist/ruby-BNrBlpcw.js +527 -0
  167. package/dist/ruby-Dj0sNBey.cjs +1 -0
  168. package/dist/rust-D6mpPoli.js +178 -0
  169. package/dist/rust-DjkW1U4M.cjs +1 -0
  170. package/dist/sb-BCN0JcpS.cjs +1 -0
  171. package/dist/sb-DhS9GhXl.js +143 -0
  172. package/dist/scala-BqxBEpi8.js +551 -0
  173. package/dist/scala-CyXWhZaJ.cjs +1 -0
  174. package/dist/scheme-Bh4oGAk3.js +170 -0
  175. package/dist/scheme-Cs9G6QEE.cjs +1 -0
  176. package/dist/scss-Byf08jwC.js +417 -0
  177. package/dist/scss-Fl7taPuq.cjs +3 -0
  178. package/dist/search_bar-Caqi1NVo.js +1815 -0
  179. package/dist/search_bar-DyO_WsC5.cjs +1 -0
  180. package/dist/services-9wPHk1eh.js +2350 -0
  181. package/dist/services-BPC3fXx4.cjs +7 -0
  182. package/dist/shard_failure_open_modal_button-BYTThYch.js +199 -0
  183. package/dist/shard_failure_open_modal_button-Dx8ML4VE.cjs +2 -0
  184. package/dist/shell-Cw5yNfC4.cjs +1 -0
  185. package/dist/shell-UoRv_tpG.js +223 -0
  186. package/dist/solidity-B5t7Lkol.js +147 -0
  187. package/dist/solidity-BoAzg9X_.cjs +1 -0
  188. package/dist/sophia-BrXXWhvp.js +147 -0
  189. package/dist/sophia-L84Jz6Ow.cjs +1 -0
  190. package/dist/sparql-B8ZTY48u.js +124 -0
  191. package/dist/sparql-D6lnG7vO.cjs +1 -0
  192. package/dist/sql-D_74hUL-.js +171 -0
  193. package/dist/sql-VXdYzIyz.cjs +1 -0
  194. package/dist/src/App.d.ts +2 -0
  195. package/dist/src/components/ResultHeader/Info.d.ts +30 -0
  196. package/dist/src/components/ResultHeader/index.d.ts +13 -0
  197. package/dist/src/components/context.d.ts +82 -0
  198. package/dist/src/components/euiicons.d.ts +1 -0
  199. package/dist/src/components/index.d.ts +8 -0
  200. package/dist/src/main.d.ts +1 -0
  201. package/dist/src/utils/request.d.ts +1 -0
  202. package/dist/src/utils/utils.d.ts +1 -0
  203. package/dist/st-CxJLwAAK.cjs +1 -0
  204. package/dist/st-D8Rdx9Bz.js +476 -0
  205. package/dist/suggestions_component-BBHwbjYT.js +1243 -0
  206. package/dist/suggestions_component-CF4sehth.cjs +77 -0
  207. package/dist/swift-ZBC6wQdc.cjs +1 -0
  208. package/dist/swift-s19Ivx3X.js +213 -0
  209. package/dist/systemverilog-DoSgAb1I.cjs +1 -0
  210. package/dist/systemverilog-fA72PnKj.js +298 -0
  211. package/dist/tcl-B8QLbcxi.js +223 -0
  212. package/dist/tcl-IXmy-lJ0.cjs +1 -0
  213. package/dist/tsMode-BrPRpJvb.js +597 -0
  214. package/dist/tsMode-CNvH6xuC.cjs +11 -0
  215. package/dist/tsup.config.d.ts +2 -0
  216. package/dist/twig-CT2RXmm0.cjs +1 -0
  217. package/dist/twig-Dy7NkzKI.js +388 -0
  218. package/dist/typescript-BRKHcp4S.js +263 -0
  219. package/dist/typescript-Bbw9fxuo.cjs +1 -0
  220. package/dist/typescript-CQjO9XnF.js +3 -0
  221. package/dist/typescript-D6q4AO2z.cjs +1 -0
  222. package/dist/typespec-CkKpvaMv.cjs +1 -0
  223. package/dist/typespec-ndyv0mQx.js +234 -0
  224. package/dist/vb-DET0NIW-.js +260 -0
  225. package/dist/vb-R3Kcrzvd.cjs +1 -0
  226. package/dist/vite.config.d.ts +2 -0
  227. package/dist/wgsl-D5TeQchR.js +145 -0
  228. package/dist/wgsl-FTDBzylH.cjs +298 -0
  229. package/dist/xml-BZjE3dtf.js +136 -0
  230. package/dist/xml-CxbMIueA.cjs +1 -0
  231. package/dist/yaml-Di_6aXC4.js +229 -0
  232. package/dist/yaml-DvaGkWBl.cjs +1 -0
  233. package/package.json +98 -0
@@ -0,0 +1,2930 @@
1
+ import { o as __toESM, t as __commonJSMin } from "./chunk-CIp4IH9D.js";
2
+ import { n as require_jsx_runtime } from "./lodash-D-qGlPRW.js";
3
+ import { m as withKibana } from "./services-9wPHk1eh.js";
4
+ import { t as createLucideIcon } from "./createLucideIcon-BO6TDGE7.js";
5
+ import { E as require_target } from "./common-Tr1I-HCs.js";
6
+ import { t as QueryStringInputUI } from "./query_string_input-CyPZVKif.js";
7
+ import React, { useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
8
+ import { Button, DatePicker, Input, InputNumber, Popover, Select, Space, Spin, Switch } from "antd";
9
+ import { CalendarOutlined, CaretRightOutlined, ClockCircleOutlined, DownOutlined, GlobalOutlined, LeftOutlined, LoadingOutlined, PauseOutlined, ReloadOutlined, RightOutlined, SettingOutlined, ThunderboltOutlined } from "@ant-design/icons";
10
+ var ArrowRightToLine = createLucideIcon("arrow-right-to-line", [
11
+ ["path", {
12
+ d: "M17 12H3",
13
+ key: "8awo09"
14
+ }],
15
+ ["path", {
16
+ d: "m11 18 6-6-6-6",
17
+ key: "8c2y43"
18
+ }],
19
+ ["path", {
20
+ d: "M21 5v14",
21
+ key: "nzette"
22
+ }]
23
+ ]), RefreshCw = createLucideIcon("refresh-cw", [
24
+ ["path", {
25
+ d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",
26
+ key: "v9h5vc"
27
+ }],
28
+ ["path", {
29
+ d: "M21 3v5h-5",
30
+ key: "1q7to0"
31
+ }],
32
+ ["path", {
33
+ d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",
34
+ key: "3uifl3"
35
+ }],
36
+ ["path", {
37
+ d: "M8 16H3v5",
38
+ key: "1cv678"
39
+ }]
40
+ ]), require_dayjs_min = /* @__PURE__ */ __commonJSMin(((e, t) => {
41
+ (function(n, r) {
42
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
43
+ })(e, (function() {
44
+ var e = 1e3, t = 6e4, n = 36e5, r = "millisecond", i = "second", a = "minute", o = "hour", s = "day", c = "week", l = "month", u = "quarter", d = "year", f = "date", p = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, h = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, g = {
45
+ name: "en",
46
+ weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
47
+ months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
48
+ ordinal: function(e) {
49
+ var t = [
50
+ "th",
51
+ "st",
52
+ "nd",
53
+ "rd"
54
+ ], n = e % 100;
55
+ return "[" + e + (t[(n - 20) % 10] || t[n] || t[0]) + "]";
56
+ }
57
+ }, _ = function(e, t, n) {
58
+ var r = String(e);
59
+ return !r || r.length >= t ? e : "" + Array(t + 1 - r.length).join(n) + e;
60
+ }, v = {
61
+ s: _,
62
+ z: function(e) {
63
+ var t = -e.utcOffset(), n = Math.abs(t), r = Math.floor(n / 60), i = n % 60;
64
+ return (t <= 0 ? "+" : "-") + _(r, 2, "0") + ":" + _(i, 2, "0");
65
+ },
66
+ m: function e(t, n) {
67
+ if (t.date() < n.date()) return -e(n, t);
68
+ var r = 12 * (n.year() - t.year()) + (n.month() - t.month()), i = t.clone().add(r, l), a = n - i < 0, o = t.clone().add(r + (a ? -1 : 1), l);
69
+ return +(-(r + (n - i) / (a ? i - o : o - i)) || 0);
70
+ },
71
+ a: function(e) {
72
+ return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
73
+ },
74
+ p: function(e) {
75
+ return {
76
+ M: l,
77
+ y: d,
78
+ w: c,
79
+ d: s,
80
+ D: f,
81
+ h: o,
82
+ m: a,
83
+ s: i,
84
+ ms: r,
85
+ Q: u
86
+ }[e] || String(e || "").toLowerCase().replace(/s$/, "");
87
+ },
88
+ u: function(e) {
89
+ return e === void 0;
90
+ }
91
+ }, y = "en", b = {};
92
+ b[y] = g;
93
+ var x = "$isDayjsObject", S = function(e) {
94
+ return e instanceof E || !(!e || !e[x]);
95
+ }, C = function e(t, n, r) {
96
+ var i;
97
+ if (!t) return y;
98
+ if (typeof t == "string") {
99
+ var a = t.toLowerCase();
100
+ b[a] && (i = a), n && (b[a] = n, i = a);
101
+ var o = t.split("-");
102
+ if (!i && o.length > 1) return e(o[0]);
103
+ } else {
104
+ var s = t.name;
105
+ b[s] = t, i = s;
106
+ }
107
+ return !r && i && (y = i), i || !r && y;
108
+ }, w = function(e, t) {
109
+ if (S(e)) return e.clone();
110
+ var n = typeof t == "object" ? t : {};
111
+ return n.date = e, n.args = arguments, new E(n);
112
+ }, T = v;
113
+ T.l = C, T.i = S, T.w = function(e, t) {
114
+ return w(e, {
115
+ locale: t.$L,
116
+ utc: t.$u,
117
+ x: t.$x,
118
+ $offset: t.$offset
119
+ });
120
+ };
121
+ var E = function() {
122
+ function g(e) {
123
+ this.$L = C(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[x] = !0;
124
+ }
125
+ var _ = g.prototype;
126
+ return _.parse = function(e) {
127
+ this.$d = function(e) {
128
+ var t = e.date, n = e.utc;
129
+ if (t === null) return /* @__PURE__ */ new Date(NaN);
130
+ if (T.u(t)) return /* @__PURE__ */ new Date();
131
+ if (t instanceof Date) return new Date(t);
132
+ if (typeof t == "string" && !/Z$/i.test(t)) {
133
+ var r = t.match(m);
134
+ if (r) {
135
+ var i = r[2] - 1 || 0, a = (r[7] || "0").substring(0, 3);
136
+ return n ? new Date(Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, a)) : new Date(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, a);
137
+ }
138
+ }
139
+ return new Date(t);
140
+ }(e), this.init();
141
+ }, _.init = function() {
142
+ var e = this.$d;
143
+ this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds();
144
+ }, _.$utils = function() {
145
+ return T;
146
+ }, _.isValid = function() {
147
+ return this.$d.toString() !== p;
148
+ }, _.isSame = function(e, t) {
149
+ var n = w(e);
150
+ return this.startOf(t) <= n && n <= this.endOf(t);
151
+ }, _.isAfter = function(e, t) {
152
+ return w(e) < this.startOf(t);
153
+ }, _.isBefore = function(e, t) {
154
+ return this.endOf(t) < w(e);
155
+ }, _.$g = function(e, t, n) {
156
+ return T.u(e) ? this[t] : this.set(n, e);
157
+ }, _.unix = function() {
158
+ return Math.floor(this.valueOf() / 1e3);
159
+ }, _.valueOf = function() {
160
+ return this.$d.getTime();
161
+ }, _.startOf = function(e, t) {
162
+ var n = this, r = !!T.u(t) || t, u = T.p(e), p = function(e, t) {
163
+ var i = T.w(n.$u ? Date.UTC(n.$y, t, e) : new Date(n.$y, t, e), n);
164
+ return r ? i : i.endOf(s);
165
+ }, m = function(e, t) {
166
+ return T.w(n.toDate()[e].apply(n.toDate("s"), (r ? [
167
+ 0,
168
+ 0,
169
+ 0,
170
+ 0
171
+ ] : [
172
+ 23,
173
+ 59,
174
+ 59,
175
+ 999
176
+ ]).slice(t)), n);
177
+ }, h = this.$W, g = this.$M, _ = this.$D, v = "set" + (this.$u ? "UTC" : "");
178
+ switch (u) {
179
+ case d: return r ? p(1, 0) : p(31, 11);
180
+ case l: return r ? p(1, g) : p(0, g + 1);
181
+ case c:
182
+ var y = this.$locale().weekStart || 0, b = (h < y ? h + 7 : h) - y;
183
+ return p(r ? _ - b : _ + (6 - b), g);
184
+ case s:
185
+ case f: return m(v + "Hours", 0);
186
+ case o: return m(v + "Minutes", 1);
187
+ case a: return m(v + "Seconds", 2);
188
+ case i: return m(v + "Milliseconds", 3);
189
+ default: return this.clone();
190
+ }
191
+ }, _.endOf = function(e) {
192
+ return this.startOf(e, !1);
193
+ }, _.$set = function(e, t) {
194
+ var n, c = T.p(e), u = "set" + (this.$u ? "UTC" : ""), p = (n = {}, n[s] = u + "Date", n[f] = u + "Date", n[l] = u + "Month", n[d] = u + "FullYear", n[o] = u + "Hours", n[a] = u + "Minutes", n[i] = u + "Seconds", n[r] = u + "Milliseconds", n)[c], m = c === s ? this.$D + (t - this.$W) : t;
195
+ if (c === l || c === d) {
196
+ var h = this.clone().set(f, 1);
197
+ h.$d[p](m), h.init(), this.$d = h.set(f, Math.min(this.$D, h.daysInMonth())).$d;
198
+ } else p && this.$d[p](m);
199
+ return this.init(), this;
200
+ }, _.set = function(e, t) {
201
+ return this.clone().$set(e, t);
202
+ }, _.get = function(e) {
203
+ return this[T.p(e)]();
204
+ }, _.add = function(r, u) {
205
+ var f, p = this;
206
+ r = Number(r);
207
+ var m = T.p(u), h = function(e) {
208
+ var t = w(p);
209
+ return T.w(t.date(t.date() + Math.round(e * r)), p);
210
+ };
211
+ if (m === l) return this.set(l, this.$M + r);
212
+ if (m === d) return this.set(d, this.$y + r);
213
+ if (m === s) return h(1);
214
+ if (m === c) return h(7);
215
+ var g = (f = {}, f[a] = t, f[o] = n, f[i] = e, f)[m] || 1, _ = this.$d.getTime() + r * g;
216
+ return T.w(_, this);
217
+ }, _.subtract = function(e, t) {
218
+ return this.add(-1 * e, t);
219
+ }, _.format = function(e) {
220
+ var t = this, n = this.$locale();
221
+ if (!this.isValid()) return n.invalidDate || p;
222
+ var r = e || "YYYY-MM-DDTHH:mm:ssZ", i = T.z(this), a = this.$H, o = this.$m, s = this.$M, c = n.weekdays, l = n.months, u = n.meridiem, d = function(e, n, i, a) {
223
+ return e && (e[n] || e(t, r)) || i[n].slice(0, a);
224
+ }, f = function(e) {
225
+ return T.s(a % 12 || 12, e, "0");
226
+ }, m = u || function(e, t, n) {
227
+ var r = e < 12 ? "AM" : "PM";
228
+ return n ? r.toLowerCase() : r;
229
+ };
230
+ return r.replace(h, (function(e, r) {
231
+ return r || function(e) {
232
+ switch (e) {
233
+ case "YY": return String(t.$y).slice(-2);
234
+ case "YYYY": return T.s(t.$y, 4, "0");
235
+ case "M": return s + 1;
236
+ case "MM": return T.s(s + 1, 2, "0");
237
+ case "MMM": return d(n.monthsShort, s, l, 3);
238
+ case "MMMM": return d(l, s);
239
+ case "D": return t.$D;
240
+ case "DD": return T.s(t.$D, 2, "0");
241
+ case "d": return String(t.$W);
242
+ case "dd": return d(n.weekdaysMin, t.$W, c, 2);
243
+ case "ddd": return d(n.weekdaysShort, t.$W, c, 3);
244
+ case "dddd": return c[t.$W];
245
+ case "H": return String(a);
246
+ case "HH": return T.s(a, 2, "0");
247
+ case "h": return f(1);
248
+ case "hh": return f(2);
249
+ case "a": return m(a, o, !0);
250
+ case "A": return m(a, o, !1);
251
+ case "m": return String(o);
252
+ case "mm": return T.s(o, 2, "0");
253
+ case "s": return String(t.$s);
254
+ case "ss": return T.s(t.$s, 2, "0");
255
+ case "SSS": return T.s(t.$ms, 3, "0");
256
+ case "Z": return i;
257
+ }
258
+ return null;
259
+ }(e) || i.replace(":", "");
260
+ }));
261
+ }, _.utcOffset = function() {
262
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
263
+ }, _.diff = function(r, f, p) {
264
+ var m, h = this, g = T.p(f), _ = w(r), v = (_.utcOffset() - this.utcOffset()) * t, y = this - _, b = function() {
265
+ return T.m(h, _);
266
+ };
267
+ switch (g) {
268
+ case d:
269
+ m = b() / 12;
270
+ break;
271
+ case l:
272
+ m = b();
273
+ break;
274
+ case u:
275
+ m = b() / 3;
276
+ break;
277
+ case c:
278
+ m = (y - v) / 6048e5;
279
+ break;
280
+ case s:
281
+ m = (y - v) / 864e5;
282
+ break;
283
+ case o:
284
+ m = y / n;
285
+ break;
286
+ case a:
287
+ m = y / t;
288
+ break;
289
+ case i:
290
+ m = y / e;
291
+ break;
292
+ default: m = y;
293
+ }
294
+ return p ? m : T.a(m);
295
+ }, _.daysInMonth = function() {
296
+ return this.endOf(l).$D;
297
+ }, _.$locale = function() {
298
+ return b[this.$L];
299
+ }, _.locale = function(e, t) {
300
+ if (!e) return this.$L;
301
+ var n = this.clone(), r = C(e, t, !0);
302
+ return r && (n.$L = r), n;
303
+ }, _.clone = function() {
304
+ return T.w(this.$d, this);
305
+ }, _.toDate = function() {
306
+ return new Date(this.valueOf());
307
+ }, _.toJSON = function() {
308
+ return this.isValid() ? this.toISOString() : null;
309
+ }, _.toISOString = function() {
310
+ return this.$d.toISOString();
311
+ }, _.toString = function() {
312
+ return this.$d.toUTCString();
313
+ }, g;
314
+ }(), D = E.prototype;
315
+ return w.prototype = D, [
316
+ ["$ms", r],
317
+ ["$s", i],
318
+ ["$m", a],
319
+ ["$H", o],
320
+ ["$W", s],
321
+ ["$M", l],
322
+ ["$y", d],
323
+ ["$D", f]
324
+ ].forEach((function(e) {
325
+ D[e[1]] = function(t) {
326
+ return this.$g(t, e[0], e[1]);
327
+ };
328
+ })), w.extend = function(e, t) {
329
+ return e.$i ||= (e(t, E, w), !0), w;
330
+ }, w.locale = C, w.isDayjs = S, w.unix = function(e) {
331
+ return w(1e3 * e);
332
+ }, w.en = b[y], w.Ls = b, w.p = {}, w;
333
+ }));
334
+ })), import_dayjs_min$7 = /* @__PURE__ */ __toESM(require_dayjs_min()), units$1 = [
335
+ "y",
336
+ "M",
337
+ "w",
338
+ "d",
339
+ "h",
340
+ "m",
341
+ "s",
342
+ "ms"
343
+ ], unitsDesc = units$1, unitsAsc = [...unitsDesc].reverse(), isDate = (e) => Object.prototype.toString.call(e) === "[object Date]", isValidDate = (e) => isDate(e) && !isNaN(e.valueOf());
344
+ function parse(e, { roundUp: t = !1, momentInstance: n = import_dayjs_min$7.default, forceNow: r } = {}) {
345
+ if (!e) return;
346
+ if (import_dayjs_min$7.default.isDayjs(e)) return e;
347
+ if (isDate(e)) return n(e);
348
+ if (r !== void 0 && !isValidDate(r)) throw Error("forceNow must be a valid Date");
349
+ let i, a = "", o, s;
350
+ return e.substring(0, 3) === "now" ? (i = n(r), a = e.substring(3)) : (o = e.indexOf("||"), o === -1 ? (s = e, a = "") : (s = e.substring(0, o), a = e.substring(o + 2)), i = n(s)), a.length ? parseDateMath(a, i, t) : i;
351
+ }
352
+ function parseDateMath(e, t, n) {
353
+ let r = t, i = e.length, a = 0;
354
+ for (; a < i;) {
355
+ let t = e.charAt(a++), o, s, c;
356
+ if (t === "/") o = 0;
357
+ else if (t === "+") o = 1;
358
+ else if (t === "-") o = 2;
359
+ else return;
360
+ if (isNaN(e.charAt(a))) s = 1;
361
+ else if (e.length === 2) s = e.charAt(a);
362
+ else {
363
+ let t = a;
364
+ for (; !isNaN(e.charAt(a));) if (a++, a > 10) return;
365
+ s = parseInt(e.substring(t, a), 10);
366
+ }
367
+ if (o === 0 && s !== 1) return;
368
+ c = e.charAt(a++);
369
+ for (let t = a; t < i; t++) {
370
+ let t = e.charAt(a);
371
+ if (/[a-z]/i.test(t)) c += t, a++;
372
+ else break;
373
+ }
374
+ if (units$1.indexOf(c) === -1) return;
375
+ o === 0 ? n ? r.endOf(c) : r.startOf(c) : o === 1 ? r.add(s, c) : o === 2 && r.subtract(s, c);
376
+ }
377
+ return r;
378
+ }
379
+ var date_math_default = {
380
+ parse,
381
+ units: Object.freeze(units$1),
382
+ unitsAsc: Object.freeze(unitsAsc),
383
+ unitsDesc: Object.freeze(unitsDesc)
384
+ };
385
+ const timeUnits = {
386
+ s: "second",
387
+ m: "minute",
388
+ h: "hour",
389
+ d: "day",
390
+ w: "week",
391
+ M: "month",
392
+ y: "year"
393
+ }, relativeUnitsFromLargestToSmallest = [
394
+ {
395
+ text: "Seconds ago",
396
+ value: "s"
397
+ },
398
+ {
399
+ text: "Minutes ago",
400
+ value: "m"
401
+ },
402
+ {
403
+ text: "Hours ago",
404
+ value: "h"
405
+ },
406
+ {
407
+ text: "Days ago",
408
+ value: "d"
409
+ },
410
+ {
411
+ text: "Weeks ago",
412
+ value: "w"
413
+ },
414
+ {
415
+ text: "Months ago",
416
+ value: "M"
417
+ },
418
+ {
419
+ text: "Years ago",
420
+ value: "y"
421
+ },
422
+ {
423
+ text: "Seconds from now",
424
+ value: "s+"
425
+ },
426
+ {
427
+ text: "Minutes from now",
428
+ value: "m+"
429
+ },
430
+ {
431
+ text: "Hours from now",
432
+ value: "h+"
433
+ },
434
+ {
435
+ text: "Days from now",
436
+ value: "d+"
437
+ },
438
+ {
439
+ text: "Weeks from now",
440
+ value: "w+"
441
+ },
442
+ {
443
+ text: "Months from now",
444
+ value: "M+"
445
+ },
446
+ {
447
+ text: "Years from now",
448
+ value: "y+"
449
+ }
450
+ ].map(({ value: e }) => e).filter((e) => !e.includes("+")).reverse();
451
+ var require_isArray = /* @__PURE__ */ __commonJSMin(((e, t) => {
452
+ t.exports = Array.isArray;
453
+ })), require__freeGlobal = /* @__PURE__ */ __commonJSMin(((e, t) => {
454
+ t.exports = typeof global == "object" && global && global.Object === Object && global;
455
+ })), require__root = /* @__PURE__ */ __commonJSMin(((e, t) => {
456
+ var n = require__freeGlobal(), r = typeof self == "object" && self && self.Object === Object && self;
457
+ t.exports = n || r || Function("return this")();
458
+ })), require__Symbol = /* @__PURE__ */ __commonJSMin(((e, t) => {
459
+ t.exports = require__root().Symbol;
460
+ })), require__getRawTag = /* @__PURE__ */ __commonJSMin(((e, t) => {
461
+ var n = require__Symbol(), r = Object.prototype, i = r.hasOwnProperty, a = r.toString, o = n ? n.toStringTag : void 0;
462
+ function s(e) {
463
+ var t = i.call(e, o), n = e[o];
464
+ try {
465
+ e[o] = void 0;
466
+ var r = !0;
467
+ } catch {}
468
+ var s = a.call(e);
469
+ return r && (t ? e[o] = n : delete e[o]), s;
470
+ }
471
+ t.exports = s;
472
+ })), require__objectToString = /* @__PURE__ */ __commonJSMin(((e, t) => {
473
+ var n = Object.prototype.toString;
474
+ function r(e) {
475
+ return n.call(e);
476
+ }
477
+ t.exports = r;
478
+ })), require__baseGetTag = /* @__PURE__ */ __commonJSMin(((e, t) => {
479
+ var n = require__Symbol(), r = require__getRawTag(), i = require__objectToString(), a = "[object Null]", o = "[object Undefined]", s = n ? n.toStringTag : void 0;
480
+ function c(e) {
481
+ return e == null ? e === void 0 ? o : a : s && s in Object(e) ? r(e) : i(e);
482
+ }
483
+ t.exports = c;
484
+ })), require_isObjectLike = /* @__PURE__ */ __commonJSMin(((e, t) => {
485
+ function n(e) {
486
+ return typeof e == "object" && !!e;
487
+ }
488
+ t.exports = n;
489
+ })), require_isSymbol = /* @__PURE__ */ __commonJSMin(((e, t) => {
490
+ var n = require__baseGetTag(), r = require_isObjectLike(), i = "[object Symbol]";
491
+ function a(e) {
492
+ return typeof e == "symbol" || r(e) && n(e) == i;
493
+ }
494
+ t.exports = a;
495
+ })), require__isKey = /* @__PURE__ */ __commonJSMin(((e, t) => {
496
+ var n = require_isArray(), r = require_isSymbol(), i = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, a = /^\w*$/;
497
+ function o(e, t) {
498
+ if (n(e)) return !1;
499
+ var o = typeof e;
500
+ return o == "number" || o == "symbol" || o == "boolean" || e == null || r(e) ? !0 : a.test(e) || !i.test(e) || t != null && e in Object(t);
501
+ }
502
+ t.exports = o;
503
+ })), require_isObject = /* @__PURE__ */ __commonJSMin(((e, t) => {
504
+ function n(e) {
505
+ var t = typeof e;
506
+ return e != null && (t == "object" || t == "function");
507
+ }
508
+ t.exports = n;
509
+ })), require_isFunction = /* @__PURE__ */ __commonJSMin(((e, t) => {
510
+ var n = require__baseGetTag(), r = require_isObject(), i = "[object AsyncFunction]", a = "[object Function]", o = "[object GeneratorFunction]", s = "[object Proxy]";
511
+ function c(e) {
512
+ if (!r(e)) return !1;
513
+ var t = n(e);
514
+ return t == a || t == o || t == i || t == s;
515
+ }
516
+ t.exports = c;
517
+ })), require__coreJsData = /* @__PURE__ */ __commonJSMin(((e, t) => {
518
+ t.exports = require__root()["__core-js_shared__"];
519
+ })), require__isMasked = /* @__PURE__ */ __commonJSMin(((e, t) => {
520
+ var n = require__coreJsData(), r = function() {
521
+ var e = /[^.]+$/.exec(n && n.keys && n.keys.IE_PROTO || "");
522
+ return e ? "Symbol(src)_1." + e : "";
523
+ }();
524
+ function i(e) {
525
+ return !!r && r in e;
526
+ }
527
+ t.exports = i;
528
+ })), require__toSource = /* @__PURE__ */ __commonJSMin(((e, t) => {
529
+ var n = Function.prototype.toString;
530
+ function r(e) {
531
+ if (e != null) {
532
+ try {
533
+ return n.call(e);
534
+ } catch {}
535
+ try {
536
+ return e + "";
537
+ } catch {}
538
+ }
539
+ return "";
540
+ }
541
+ t.exports = r;
542
+ })), require__baseIsNative = /* @__PURE__ */ __commonJSMin(((e, t) => {
543
+ var n = require_isFunction(), r = require__isMasked(), i = require_isObject(), a = require__toSource(), o = /[\\^$.*+?()[\]{}|]/g, s = /^\[object .+?Constructor\]$/, c = Function.prototype, l = Object.prototype, u = c.toString, d = l.hasOwnProperty, f = RegExp("^" + u.call(d).replace(o, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
544
+ function p(e) {
545
+ return !i(e) || r(e) ? !1 : (n(e) ? f : s).test(a(e));
546
+ }
547
+ t.exports = p;
548
+ })), require__getValue = /* @__PURE__ */ __commonJSMin(((e, t) => {
549
+ function n(e, t) {
550
+ return e?.[t];
551
+ }
552
+ t.exports = n;
553
+ })), require__getNative = /* @__PURE__ */ __commonJSMin(((e, t) => {
554
+ var n = require__baseIsNative(), r = require__getValue();
555
+ function i(e, t) {
556
+ var i = r(e, t);
557
+ return n(i) ? i : void 0;
558
+ }
559
+ t.exports = i;
560
+ })), require__nativeCreate = /* @__PURE__ */ __commonJSMin(((e, t) => {
561
+ t.exports = require__getNative()(Object, "create");
562
+ })), require__hashClear = /* @__PURE__ */ __commonJSMin(((e, t) => {
563
+ var n = require__nativeCreate();
564
+ function r() {
565
+ this.__data__ = n ? n(null) : {}, this.size = 0;
566
+ }
567
+ t.exports = r;
568
+ })), require__hashDelete = /* @__PURE__ */ __commonJSMin(((e, t) => {
569
+ function n(e) {
570
+ var t = this.has(e) && delete this.__data__[e];
571
+ return this.size -= t ? 1 : 0, t;
572
+ }
573
+ t.exports = n;
574
+ })), require__hashGet = /* @__PURE__ */ __commonJSMin(((e, t) => {
575
+ var n = require__nativeCreate(), r = "__lodash_hash_undefined__", i = Object.prototype.hasOwnProperty;
576
+ function a(e) {
577
+ var t = this.__data__;
578
+ if (n) {
579
+ var a = t[e];
580
+ return a === r ? void 0 : a;
581
+ }
582
+ return i.call(t, e) ? t[e] : void 0;
583
+ }
584
+ t.exports = a;
585
+ })), require__hashHas = /* @__PURE__ */ __commonJSMin(((e, t) => {
586
+ var n = require__nativeCreate(), r = Object.prototype.hasOwnProperty;
587
+ function i(e) {
588
+ var t = this.__data__;
589
+ return n ? t[e] !== void 0 : r.call(t, e);
590
+ }
591
+ t.exports = i;
592
+ })), require__hashSet = /* @__PURE__ */ __commonJSMin(((e, t) => {
593
+ var n = require__nativeCreate(), r = "__lodash_hash_undefined__";
594
+ function i(e, t) {
595
+ var i = this.__data__;
596
+ return this.size += this.has(e) ? 0 : 1, i[e] = n && t === void 0 ? r : t, this;
597
+ }
598
+ t.exports = i;
599
+ })), require__Hash = /* @__PURE__ */ __commonJSMin(((e, t) => {
600
+ var n = require__hashClear(), r = require__hashDelete(), i = require__hashGet(), a = require__hashHas(), o = require__hashSet();
601
+ function s(e) {
602
+ var t = -1, n = e == null ? 0 : e.length;
603
+ for (this.clear(); ++t < n;) {
604
+ var r = e[t];
605
+ this.set(r[0], r[1]);
606
+ }
607
+ }
608
+ s.prototype.clear = n, s.prototype.delete = r, s.prototype.get = i, s.prototype.has = a, s.prototype.set = o, t.exports = s;
609
+ })), require__listCacheClear = /* @__PURE__ */ __commonJSMin(((e, t) => {
610
+ function n() {
611
+ this.__data__ = [], this.size = 0;
612
+ }
613
+ t.exports = n;
614
+ })), require_eq = /* @__PURE__ */ __commonJSMin(((e, t) => {
615
+ function n(e, t) {
616
+ return e === t || e !== e && t !== t;
617
+ }
618
+ t.exports = n;
619
+ })), require__assocIndexOf = /* @__PURE__ */ __commonJSMin(((e, t) => {
620
+ var n = require_eq();
621
+ function r(e, t) {
622
+ for (var r = e.length; r--;) if (n(e[r][0], t)) return r;
623
+ return -1;
624
+ }
625
+ t.exports = r;
626
+ })), require__listCacheDelete = /* @__PURE__ */ __commonJSMin(((e, t) => {
627
+ var n = require__assocIndexOf(), r = Array.prototype.splice;
628
+ function i(e) {
629
+ var t = this.__data__, i = n(t, e);
630
+ return i < 0 ? !1 : (i == t.length - 1 ? t.pop() : r.call(t, i, 1), --this.size, !0);
631
+ }
632
+ t.exports = i;
633
+ })), require__listCacheGet = /* @__PURE__ */ __commonJSMin(((e, t) => {
634
+ var n = require__assocIndexOf();
635
+ function r(e) {
636
+ var t = this.__data__, r = n(t, e);
637
+ return r < 0 ? void 0 : t[r][1];
638
+ }
639
+ t.exports = r;
640
+ })), require__listCacheHas = /* @__PURE__ */ __commonJSMin(((e, t) => {
641
+ var n = require__assocIndexOf();
642
+ function r(e) {
643
+ return n(this.__data__, e) > -1;
644
+ }
645
+ t.exports = r;
646
+ })), require__listCacheSet = /* @__PURE__ */ __commonJSMin(((e, t) => {
647
+ var n = require__assocIndexOf();
648
+ function r(e, t) {
649
+ var r = this.__data__, i = n(r, e);
650
+ return i < 0 ? (++this.size, r.push([e, t])) : r[i][1] = t, this;
651
+ }
652
+ t.exports = r;
653
+ })), require__ListCache = /* @__PURE__ */ __commonJSMin(((e, t) => {
654
+ var n = require__listCacheClear(), r = require__listCacheDelete(), i = require__listCacheGet(), a = require__listCacheHas(), o = require__listCacheSet();
655
+ function s(e) {
656
+ var t = -1, n = e == null ? 0 : e.length;
657
+ for (this.clear(); ++t < n;) {
658
+ var r = e[t];
659
+ this.set(r[0], r[1]);
660
+ }
661
+ }
662
+ s.prototype.clear = n, s.prototype.delete = r, s.prototype.get = i, s.prototype.has = a, s.prototype.set = o, t.exports = s;
663
+ })), require__Map = /* @__PURE__ */ __commonJSMin(((e, t) => {
664
+ t.exports = require__getNative()(require__root(), "Map");
665
+ })), require__mapCacheClear = /* @__PURE__ */ __commonJSMin(((e, t) => {
666
+ var n = require__Hash(), r = require__ListCache(), i = require__Map();
667
+ function a() {
668
+ this.size = 0, this.__data__ = {
669
+ hash: new n(),
670
+ map: new (i || r)(),
671
+ string: new n()
672
+ };
673
+ }
674
+ t.exports = a;
675
+ })), require__isKeyable = /* @__PURE__ */ __commonJSMin(((e, t) => {
676
+ function n(e) {
677
+ var t = typeof e;
678
+ return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
679
+ }
680
+ t.exports = n;
681
+ })), require__getMapData = /* @__PURE__ */ __commonJSMin(((e, t) => {
682
+ var n = require__isKeyable();
683
+ function r(e, t) {
684
+ var r = e.__data__;
685
+ return n(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
686
+ }
687
+ t.exports = r;
688
+ })), require__mapCacheDelete = /* @__PURE__ */ __commonJSMin(((e, t) => {
689
+ var n = require__getMapData();
690
+ function r(e) {
691
+ var t = n(this, e).delete(e);
692
+ return this.size -= t ? 1 : 0, t;
693
+ }
694
+ t.exports = r;
695
+ })), require__mapCacheGet = /* @__PURE__ */ __commonJSMin(((e, t) => {
696
+ var n = require__getMapData();
697
+ function r(e) {
698
+ return n(this, e).get(e);
699
+ }
700
+ t.exports = r;
701
+ })), require__mapCacheHas = /* @__PURE__ */ __commonJSMin(((e, t) => {
702
+ var n = require__getMapData();
703
+ function r(e) {
704
+ return n(this, e).has(e);
705
+ }
706
+ t.exports = r;
707
+ })), require__mapCacheSet = /* @__PURE__ */ __commonJSMin(((e, t) => {
708
+ var n = require__getMapData();
709
+ function r(e, t) {
710
+ var r = n(this, e), i = r.size;
711
+ return r.set(e, t), this.size += r.size == i ? 0 : 1, this;
712
+ }
713
+ t.exports = r;
714
+ })), require__MapCache = /* @__PURE__ */ __commonJSMin(((e, t) => {
715
+ var n = require__mapCacheClear(), r = require__mapCacheDelete(), i = require__mapCacheGet(), a = require__mapCacheHas(), o = require__mapCacheSet();
716
+ function s(e) {
717
+ var t = -1, n = e == null ? 0 : e.length;
718
+ for (this.clear(); ++t < n;) {
719
+ var r = e[t];
720
+ this.set(r[0], r[1]);
721
+ }
722
+ }
723
+ s.prototype.clear = n, s.prototype.delete = r, s.prototype.get = i, s.prototype.has = a, s.prototype.set = o, t.exports = s;
724
+ })), require_memoize = /* @__PURE__ */ __commonJSMin(((e, t) => {
725
+ var n = require__MapCache(), r = "Expected a function";
726
+ function i(e, t) {
727
+ if (typeof e != "function" || t != null && typeof t != "function") throw TypeError(r);
728
+ var a = function() {
729
+ var n = arguments, r = t ? t.apply(this, n) : n[0], i = a.cache;
730
+ if (i.has(r)) return i.get(r);
731
+ var o = e.apply(this, n);
732
+ return a.cache = i.set(r, o) || i, o;
733
+ };
734
+ return a.cache = new (i.Cache || n)(), a;
735
+ }
736
+ i.Cache = n, t.exports = i;
737
+ })), require__memoizeCapped = /* @__PURE__ */ __commonJSMin(((e, t) => {
738
+ var n = require_memoize(), r = 500;
739
+ function i(e) {
740
+ var t = n(e, function(e) {
741
+ return i.size === r && i.clear(), e;
742
+ }), i = t.cache;
743
+ return t;
744
+ }
745
+ t.exports = i;
746
+ })), require__stringToPath = /* @__PURE__ */ __commonJSMin(((e, t) => {
747
+ var n = require__memoizeCapped(), r = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, i = /\\(\\)?/g;
748
+ t.exports = n(function(e) {
749
+ var t = [];
750
+ return e.charCodeAt(0) === 46 && t.push(""), e.replace(r, function(e, n, r, a) {
751
+ t.push(r ? a.replace(i, "$1") : n || e);
752
+ }), t;
753
+ });
754
+ })), require__arrayMap = /* @__PURE__ */ __commonJSMin(((e, t) => {
755
+ function n(e, t) {
756
+ for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r;) i[n] = t(e[n], n, e);
757
+ return i;
758
+ }
759
+ t.exports = n;
760
+ })), require__baseToString = /* @__PURE__ */ __commonJSMin(((e, t) => {
761
+ var n = require__Symbol(), r = require__arrayMap(), i = require_isArray(), a = require_isSymbol(), o = Infinity, s = n ? n.prototype : void 0, c = s ? s.toString : void 0;
762
+ function l(e) {
763
+ if (typeof e == "string") return e;
764
+ if (i(e)) return r(e, l) + "";
765
+ if (a(e)) return c ? c.call(e) : "";
766
+ var t = e + "";
767
+ return t == "0" && 1 / e == -o ? "-0" : t;
768
+ }
769
+ t.exports = l;
770
+ })), require_toString = /* @__PURE__ */ __commonJSMin(((e, t) => {
771
+ var n = require__baseToString();
772
+ function r(e) {
773
+ return e == null ? "" : n(e);
774
+ }
775
+ t.exports = r;
776
+ })), require__castPath = /* @__PURE__ */ __commonJSMin(((e, t) => {
777
+ var n = require_isArray(), r = require__isKey(), i = require__stringToPath(), a = require_toString();
778
+ function o(e, t) {
779
+ return n(e) ? e : r(e, t) ? [e] : i(a(e));
780
+ }
781
+ t.exports = o;
782
+ })), require__toKey = /* @__PURE__ */ __commonJSMin(((e, t) => {
783
+ var n = require_isSymbol(), r = Infinity;
784
+ function i(e) {
785
+ if (typeof e == "string" || n(e)) return e;
786
+ var t = e + "";
787
+ return t == "0" && 1 / e == -r ? "-0" : t;
788
+ }
789
+ t.exports = i;
790
+ })), require__baseGet = /* @__PURE__ */ __commonJSMin(((e, t) => {
791
+ var n = require__castPath(), r = require__toKey();
792
+ function i(e, t) {
793
+ t = n(t, e);
794
+ for (var i = 0, a = t.length; e != null && i < a;) e = e[r(t[i++])];
795
+ return i && i == a ? e : void 0;
796
+ }
797
+ t.exports = i;
798
+ })), require_get = /* @__PURE__ */ __commonJSMin(((e, t) => {
799
+ var n = require__baseGet();
800
+ function r(e, t, r) {
801
+ var i = e == null ? void 0 : n(e, t);
802
+ return i === void 0 ? r : i;
803
+ }
804
+ t.exports = r;
805
+ })), require_isString = /* @__PURE__ */ __commonJSMin(((e, t) => {
806
+ var n = require__baseGetTag(), r = require_isArray(), i = require_isObjectLike(), a = "[object String]";
807
+ function o(e) {
808
+ return typeof e == "string" || !r(e) && i(e) && n(e) == a;
809
+ }
810
+ t.exports = o;
811
+ })), import_dayjs_min$6 = /* @__PURE__ */ __toESM(require_dayjs_min());
812
+ require_get();
813
+ var import_isString$1 = /* @__PURE__ */ __toESM(require_isString()), ROUND_DELIMETER = "/";
814
+ function parseRelativeParts(e) {
815
+ let t = (0, import_isString$1.default)(e) && e.match(/now(([-+])([0-9]+)([smhdwMy])(\/[smhdwMy])?)?/), n = t && t[2], r = t && t[3], i = t && t[4], a = t && t[5];
816
+ if (r && i) {
817
+ let e = !!a, t = e && a ? a.replace(ROUND_DELIMETER, "") : void 0;
818
+ return {
819
+ count: parseInt(r, 10),
820
+ unit: n === "+" ? `${i}+` : i,
821
+ round: e,
822
+ ...t ? { roundUnit: t } : {}
823
+ };
824
+ }
825
+ let o = {
826
+ count: 0,
827
+ unit: "s",
828
+ round: !1
829
+ }, s = import_dayjs_min$6.default.duration((0, import_dayjs_min$6.default)().diff(date_math_default.parse(e))), c = "";
830
+ for (let e = 0; e < relativeUnitsFromLargestToSmallest.length; e++) {
831
+ let t = s.as(relativeUnitsFromLargestToSmallest[e]);
832
+ if (t < 0 && (c = "+"), Math.abs(t) > 1) {
833
+ o.count = Math.round(Math.abs(t)), o.unit = relativeUnitsFromLargestToSmallest[e] + c, o.round = !1;
834
+ break;
835
+ }
836
+ }
837
+ return o;
838
+ }
839
+ const DATE_MODES = {
840
+ ABSOLUTE: "absolute",
841
+ RELATIVE: "relative",
842
+ NOW: "now"
843
+ };
844
+ function getDateMode(e) {
845
+ return e === "now" ? DATE_MODES.NOW : e.includes("now") ? DATE_MODES.RELATIVE : DATE_MODES.ABSOLUTE;
846
+ }
847
+ var import_dayjs_min$5 = /* @__PURE__ */ __toESM(require_dayjs_min()), import_isString = /* @__PURE__ */ __toESM(require_isString()), LAST = "last", NEXT = "next", isNow = (e) => e === DATE_MODES.NOW;
848
+ const parseTimeParts = (e, t) => {
849
+ let n = {
850
+ timeTense: LAST,
851
+ timeUnits: "m",
852
+ timeValue: 15
853
+ }, r = isNow(e) ? t : e, i = (0, import_isString.default)(r) && r.match(/now(([-+])(\d+)([smhdwMy])(\/[smhdwMy])?)?/);
854
+ if (!i) return n;
855
+ let a = i[2], o = i[3], s = i[4];
856
+ if (o && s && a) return {
857
+ timeTense: a === "+" ? NEXT : LAST,
858
+ timeUnits: s,
859
+ timeValue: parseInt(o, 10)
860
+ };
861
+ let c = import_dayjs_min$5.default.duration((0, import_dayjs_min$5.default)().diff(date_math_default.parse(r))), l = "";
862
+ for (let e = 0; e < relativeUnitsFromLargestToSmallest.length; e++) {
863
+ let t = c.as(relativeUnitsFromLargestToSmallest[e]);
864
+ if (t < 0 && (l = "+"), Math.abs(t) > 1) return {
865
+ timeValue: Math.round(Math.abs(t)),
866
+ timeUnits: relativeUnitsFromLargestToSmallest[e],
867
+ timeTense: l === "+" ? NEXT : LAST
868
+ };
869
+ }
870
+ return n;
871
+ };
872
+ var QuickSelect_module_default = {
873
+ quickSelect: "_quickSelect_rdpxb_1",
874
+ title: "_title_rdpxb_6",
875
+ form: "_form_rdpxb_11",
876
+ apply: "_apply_rdpxb_17",
877
+ refreshInterval: "_refreshInterval_rdpxb_20"
878
+ }, import_dayjs_min$4 = /* @__PURE__ */ __toESM(require_dayjs_min()), FORMAT_GMT = "G[M]TZ";
879
+ const getGMTString = (e) => e ? (0, import_dayjs_min$4.default)().tz(e).format(FORMAT_GMT) : (0, import_dayjs_min$4.default)().format(FORMAT_GMT), getDateString = (e, t, n) => t ? (0, import_dayjs_min$4.default)(e).tz(t).format(n) : (0, import_dayjs_min$4.default)(e).format(n), getDateStringWithGMT = (e, t, n) => t ? (0, import_dayjs_min$4.default)(e).tz(t).format(`${n} (${FORMAT_GMT})`) : (0, import_dayjs_min$4.default)(e).format(n);
880
+ var MILLISECONDS_IN_SECOND = 1e3, MILLISECONDS_IN_MINUTE = MILLISECONDS_IN_SECOND * 60, MILLISECONDS_IN_HOUR = MILLISECONDS_IN_MINUTE * 60;
881
+ function toMilliseconds(e, t) {
882
+ switch (e) {
883
+ case "h": return Math.round(t * MILLISECONDS_IN_HOUR);
884
+ case "m": return Math.round(t * MILLISECONDS_IN_MINUTE);
885
+ case "s":
886
+ default: return Math.round(t * MILLISECONDS_IN_SECOND);
887
+ }
888
+ }
889
+ function fromMilliseconds(e) {
890
+ let t = (e) => parseFloat(e.toFixed(2));
891
+ return e > MILLISECONDS_IN_HOUR ? {
892
+ units: "h",
893
+ value: t(e / MILLISECONDS_IN_HOUR)
894
+ } : e > MILLISECONDS_IN_MINUTE ? {
895
+ units: "m",
896
+ value: t(e / MILLISECONDS_IN_MINUTE)
897
+ } : {
898
+ units: "s",
899
+ value: t(e / MILLISECONDS_IN_SECOND)
900
+ };
901
+ }
902
+ var RefreshInterval_module_default = {
903
+ refreshInterval: "_refreshInterval_1mbxq_1",
904
+ title: "_title_1mbxq_7",
905
+ value: "_value_1mbxq_13",
906
+ units: "_units_1mbxq_16",
907
+ play: "_play_1mbxq_19"
908
+ }, import_jsx_runtime = require_jsx_runtime(), timeUnitsOptions$1 = Object.keys(timeUnits).map((e) => ({
909
+ value: e,
910
+ text: `${timeUnits[e]}s`
911
+ })), RefreshInterval_default = (e) => {
912
+ let { currentLocales: t, isRefreshPaused: n, refreshInterval: r = 1e4, onRefreshChange: i } = e, [a, o] = useState(() => fromMilliseconds(r)), { value: s, units: c } = a;
913
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
914
+ className: RefreshInterval_module_default.refreshInterval,
915
+ children: [
916
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
917
+ className: RefreshInterval_module_default.title,
918
+ children: t["datepicker.refresh_every"]
919
+ }),
920
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InputNumber, {
921
+ min: 1,
922
+ value: s,
923
+ className: RefreshInterval_module_default.value,
924
+ onChange: (e) => {
925
+ o({
926
+ ...a,
927
+ value: e
928
+ });
929
+ }
930
+ }),
931
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Select, {
932
+ value: c,
933
+ className: RefreshInterval_module_default.units,
934
+ onChange: (e) => {
935
+ o({
936
+ ...a,
937
+ units: e
938
+ });
939
+ },
940
+ children: timeUnitsOptions$1.map((e) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Select.Option, {
941
+ value: e.value,
942
+ children: t[`datepicker.time.units.${e.value}`]
943
+ }, e.value))
944
+ }),
945
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
946
+ className: RefreshInterval_module_default.play,
947
+ type: "primary",
948
+ onClick: () => {
949
+ i({
950
+ refreshInterval: toMilliseconds(c, s),
951
+ isRefreshPaused: !n
952
+ });
953
+ },
954
+ children: n ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CaretRightOutlined, {}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PauseOutlined, {})
955
+ })
956
+ ]
957
+ });
958
+ }, Apply_module_default = {
959
+ apply: "_apply_lfb9a_1",
960
+ applyBtn: "_applyBtn_lfb9a_1"
961
+ }, Apply_default = (e) => {
962
+ let { currentLocales: t, onApply: n, onCancel: r } = e;
963
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
964
+ className: Apply_module_default.apply,
965
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
966
+ type: "link",
967
+ onClick: r,
968
+ children: t["datepicker.cancel"]
969
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
970
+ className: Apply_module_default.applyBtn,
971
+ type: "primary",
972
+ onClick: n,
973
+ children: t["datepicker.apply"]
974
+ })]
975
+ });
976
+ }, timeTenseOptions = [{
977
+ value: "last",
978
+ text: "Last"
979
+ }], timeUnitsOptions = Object.keys(timeUnits).map((e) => ({
980
+ value: e,
981
+ text: `${timeUnits[e]}s`
982
+ })), QuickSelect_default = (e) => {
983
+ let { currentLocales: t, start: n, end: r, prevQuickSelect: i, onRangeChange: a, onCancel: o } = e, [s, c] = useState(() => {
984
+ let { timeTense: e, timeUnits: t, timeValue: a } = parseTimeParts(n, r);
985
+ return {
986
+ timeTense: i?.timeTense || e,
987
+ timeValue: i?.timeValue || a,
988
+ timeUnits: i?.timeUnits || t
989
+ };
990
+ }), { timeTense: l, timeUnits: u, timeValue: d } = s;
991
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
992
+ className: QuickSelect_module_default.quickSelect,
993
+ children: [
994
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
995
+ className: QuickSelect_module_default.title,
996
+ children: t["datepicker.quick_select"]
997
+ }),
998
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
999
+ className: QuickSelect_module_default.form,
1000
+ children: [
1001
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Select, {
1002
+ value: l,
1003
+ onChange: (e) => {
1004
+ c({
1005
+ ...s,
1006
+ timeTense: e
1007
+ });
1008
+ },
1009
+ style: { width: "100%" },
1010
+ children: timeTenseOptions.map((e) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Select.Option, {
1011
+ value: e.value,
1012
+ children: t[`datepicker.quick_select.${e.value}`]
1013
+ }, e.value))
1014
+ }),
1015
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InputNumber, {
1016
+ min: 1,
1017
+ value: d,
1018
+ style: { width: "100%" },
1019
+ onChange: (e) => {
1020
+ c({
1021
+ ...s,
1022
+ timeValue: e
1023
+ });
1024
+ }
1025
+ }),
1026
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Select, {
1027
+ value: u,
1028
+ onChange: (e) => {
1029
+ c({
1030
+ ...s,
1031
+ timeUnits: e
1032
+ });
1033
+ },
1034
+ style: { width: "100%" },
1035
+ children: timeUnitsOptions.map((e) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Select.Option, {
1036
+ value: e.value,
1037
+ children: t[`datepicker.time.units.${e.value}`]
1038
+ }, e.value))
1039
+ })
1040
+ ]
1041
+ }),
1042
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1043
+ className: QuickSelect_module_default.apply,
1044
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Apply_default, {
1045
+ currentLocales: t,
1046
+ onApply: () => {
1047
+ let { timeValue: e, timeUnits: t } = s;
1048
+ a({
1049
+ start: `now-${e}${t}`,
1050
+ end: "now",
1051
+ quickSelect: s
1052
+ }), o();
1053
+ },
1054
+ onCancel: o
1055
+ })
1056
+ }),
1057
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1058
+ className: QuickSelect_module_default.refreshInterval,
1059
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshInterval_default, {
1060
+ currentLocales: t,
1061
+ isRefreshPaused: e.isRefreshPaused,
1062
+ refreshInterval: e.refreshInterval,
1063
+ onRefreshChange: e.onRefreshChange
1064
+ })
1065
+ })
1066
+ ]
1067
+ });
1068
+ }, StartAndEndTimes_module_default = {
1069
+ startAndEndTimes: "_startAndEndTimes_1239c_1",
1070
+ title: "_title_1239c_6",
1071
+ formItem: "_formItem_1239c_11",
1072
+ label: "_label_1239c_14",
1073
+ datePicker: "_datePicker_1239c_18",
1074
+ error: "_error_1239c_21",
1075
+ apply: "_apply_1239c_26",
1076
+ recent: "_recent_1239c_29",
1077
+ item: "_item_1239c_36",
1078
+ selected: "_selected_1239c_45",
1079
+ name: "_name_1239c_49",
1080
+ gmt: "_gmt_1239c_50",
1081
+ refreshInterval: "_refreshInterval_1239c_56",
1082
+ overlay: "_overlay_1239c_63"
1083
+ }, import_dayjs_min$3 = /* @__PURE__ */ __toESM(require_dayjs_min());
1084
+ function isRangeInvalid(e, t) {
1085
+ let n = date_math_default.parse(e), r = date_math_default.parse(t, { roundUp: !0 });
1086
+ return !!(!n || !r || !n.isValid() || !r.isValid() || n.isAfter(r));
1087
+ }
1088
+ var StartAndEndTimes_default = (e) => {
1089
+ let { currentLocales: t, start: n, end: r, onRangeChange: i, onCancel: a, dateFormat: o, timeZone: s, recentlyUsedRanges: c = [] } = e, [l, u] = useState(() => {
1090
+ let e = date_math_default.parse(n);
1091
+ return e && e.isValid() ? e.tz(s) : (0, import_dayjs_min$3.default)().tz(s);
1092
+ }), [d, p] = useState(!1), [h, g] = useState(() => {
1093
+ let e = date_math_default.parse(r);
1094
+ return e && e.isValid() ? e.tz(s) : (0, import_dayjs_min$3.default)().tz(s);
1095
+ });
1096
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1097
+ className: StartAndEndTimes_module_default.startAndEndTimes,
1098
+ children: [
1099
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1100
+ className: StartAndEndTimes_module_default.title,
1101
+ children: [t["datepicker.start_and_end_times"], ` ${l.format("(G[M]TZ)")}`]
1102
+ }),
1103
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1104
+ className: StartAndEndTimes_module_default.formItem,
1105
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1106
+ className: StartAndEndTimes_module_default.label,
1107
+ children: t["datepicker.start_and_end_times.start_time"]
1108
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DatePicker, {
1109
+ format: o,
1110
+ value: l,
1111
+ className: StartAndEndTimes_module_default.datePicker,
1112
+ showTime: !0,
1113
+ allowClear: !1,
1114
+ onChange: (e) => u(e)
1115
+ })]
1116
+ }),
1117
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1118
+ className: StartAndEndTimes_module_default.formItem,
1119
+ children: [
1120
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1121
+ className: StartAndEndTimes_module_default.label,
1122
+ children: t["datepicker.start_and_end_times.end_time"]
1123
+ }),
1124
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DatePicker, {
1125
+ format: o,
1126
+ value: h,
1127
+ className: StartAndEndTimes_module_default.datePicker,
1128
+ showTime: !0,
1129
+ allowClear: !1,
1130
+ onChange: (e) => g(e)
1131
+ }),
1132
+ d && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1133
+ className: StartAndEndTimes_module_default.error,
1134
+ children: t["datepicker.start_and_end_times.end_time"]
1135
+ })
1136
+ ]
1137
+ }),
1138
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1139
+ className: StartAndEndTimes_module_default.apply,
1140
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Apply_default, {
1141
+ currentLocales: t,
1142
+ onApply: () => {
1143
+ let e = l.toISOString(!0), t = h.toISOString(!0);
1144
+ isRangeInvalid(e, t) ? p(!0) : (i({
1145
+ start: e,
1146
+ end: t,
1147
+ isAbsolute: !0
1148
+ }), a());
1149
+ },
1150
+ onCancel: a
1151
+ })
1152
+ }),
1153
+ c.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1154
+ className: StartAndEndTimes_module_default.recent,
1155
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1156
+ className: StartAndEndTimes_module_default.title,
1157
+ children: t["datepicker.start_and_end_times.recent"]
1158
+ }), c.map((e, t) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1159
+ className: StartAndEndTimes_module_default.item,
1160
+ onClick: () => {
1161
+ i({
1162
+ start: (0, import_dayjs_min$3.default)(e.start).tz(e.timeZone).tz(s).toISOString(!0),
1163
+ end: (0, import_dayjs_min$3.default)(e.end).tz(e.timeZone).tz(s).toISOString(!0)
1164
+ }), a();
1165
+ },
1166
+ children: [
1167
+ getDateString(e.start, e.timeZone, o),
1168
+ " ~",
1169
+ " ",
1170
+ getDateStringWithGMT(e.end, e.timeZone, o)
1171
+ ]
1172
+ }, t))]
1173
+ }),
1174
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1175
+ className: StartAndEndTimes_module_default.refreshInterval,
1176
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshInterval_default, {
1177
+ currentLocales: t,
1178
+ isRefreshPaused: e.isRefreshPaused,
1179
+ refreshInterval: e.refreshInterval,
1180
+ onRefreshChange: e.onRefreshChange
1181
+ })
1182
+ })
1183
+ ]
1184
+ });
1185
+ }, TimeSetting_module_default = {
1186
+ timeSetting: "_timeSetting_11upm_1",
1187
+ title: "_title_11upm_6",
1188
+ formItem: "_formItem_11upm_11",
1189
+ label: "_label_11upm_14",
1190
+ auto: "_auto_11upm_21",
1191
+ form: "_form_11upm_11",
1192
+ help: "_help_11upm_34",
1193
+ apply: "_apply_11upm_39"
1194
+ }, timeIntervals = [
1195
+ {
1196
+ label: "Second",
1197
+ value: "s"
1198
+ },
1199
+ {
1200
+ label: "Minute",
1201
+ value: "m"
1202
+ },
1203
+ {
1204
+ label: "Hour",
1205
+ value: "h"
1206
+ },
1207
+ {
1208
+ label: "Day",
1209
+ value: "d"
1210
+ },
1211
+ {
1212
+ label: "Week",
1213
+ value: "w"
1214
+ },
1215
+ {
1216
+ label: "Month",
1217
+ value: "M"
1218
+ },
1219
+ {
1220
+ label: "Year",
1221
+ value: "y"
1222
+ }
1223
+ ], timeOuts = [{
1224
+ label: "Second",
1225
+ value: "s"
1226
+ }, {
1227
+ label: "Minute",
1228
+ value: "m"
1229
+ }], TimeSetting_default = (e) => {
1230
+ let { currentLocales: t, timeFields: n = [], showTimeField: r, showTimeInterval: i, timeIntervalDisabled: a = !1, showTimeout: o, onTimeSettingChange: s, onCancel: c } = e, [l, p] = useState(!e.timeInterval), [m, h] = useState(e.timeField), [_, y] = useState(e.timeInterval), [b, S] = useState(e.timeout), C = useRef(""), w = () => {
1231
+ s({
1232
+ timeField: m,
1233
+ timeInterval: _,
1234
+ timeout: b
1235
+ }), c();
1236
+ }, T = useMemo(() => {
1237
+ if (!_) return;
1238
+ let e = parseInt(_);
1239
+ return {
1240
+ value: e,
1241
+ unit: _.replace(`${e}`, "")
1242
+ };
1243
+ }, [_]), E = useMemo(() => {
1244
+ if (!b) return {
1245
+ value: 10,
1246
+ unit: "s"
1247
+ };
1248
+ let e = parseInt(b);
1249
+ return {
1250
+ value: e,
1251
+ unit: b.replace(`${e}`, "")
1252
+ };
1253
+ }, [b]);
1254
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1255
+ className: TimeSetting_module_default.timeSetting,
1256
+ children: [
1257
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1258
+ className: TimeSetting_module_default.title,
1259
+ children: t["datepicker.time_setting"]
1260
+ }),
1261
+ r && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1262
+ className: TimeSetting_module_default.formItem,
1263
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1264
+ className: TimeSetting_module_default.label,
1265
+ children: t["datepicker.time_setting.time_field"]
1266
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Select, {
1267
+ value: m,
1268
+ onChange: h,
1269
+ style: { width: "100%" },
1270
+ children: n.map((e) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Select.Option, {
1271
+ value: e,
1272
+ children: e
1273
+ }, e))
1274
+ })]
1275
+ }),
1276
+ i && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1277
+ className: TimeSetting_module_default.formItem,
1278
+ children: [
1279
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1280
+ className: TimeSetting_module_default.label,
1281
+ children: [t["datepicker.time_setting.time_interval"], /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1282
+ className: TimeSetting_module_default.auto,
1283
+ children: [
1284
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Switch, {
1285
+ disabled: a,
1286
+ size: "small",
1287
+ checked: l,
1288
+ onChange: (t) => {
1289
+ p(t), t ? (C.current = _, y()) : y(C.current || e.timeInterval || "10s");
1290
+ }
1291
+ }),
1292
+ " ",
1293
+ t["datepicker.time_setting.time_interval.auto"]
1294
+ ]
1295
+ })]
1296
+ }),
1297
+ a && l && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1298
+ className: TimeSetting_module_default.help,
1299
+ children: t["datepicker.time_setting.time_interval.help"]
1300
+ }),
1301
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1302
+ className: TimeSetting_module_default.form,
1303
+ children: !l && T && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(InputNumber, {
1304
+ min: 1,
1305
+ value: T.value,
1306
+ style: { width: "100%" },
1307
+ step: 1,
1308
+ precision: 0,
1309
+ onChange: (e) => {
1310
+ Number.isInteger(e) && y(`${e}${T.unit}`);
1311
+ }
1312
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Select, {
1313
+ value: T.unit,
1314
+ onChange: (e) => y(`${T.value}${e}`),
1315
+ style: { width: "100%" },
1316
+ children: timeIntervals.map((e) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Select.Option, {
1317
+ value: e.value,
1318
+ children: t[`datepicker.time_setting.time_interval.${e.value}`]
1319
+ }, e.value))
1320
+ })] })
1321
+ })
1322
+ ]
1323
+ }),
1324
+ o && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1325
+ className: TimeSetting_module_default.formItem,
1326
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1327
+ className: TimeSetting_module_default.label,
1328
+ children: t["datepicker.time_setting.timeout"]
1329
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1330
+ className: TimeSetting_module_default.form,
1331
+ children: E && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(InputNumber, {
1332
+ min: 10,
1333
+ value: E.value,
1334
+ style: { width: "100%" },
1335
+ step: 1,
1336
+ precision: 0,
1337
+ onChange: (e) => {
1338
+ Number.isInteger(e) && S(`${e}${E.unit}`);
1339
+ }
1340
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Select, {
1341
+ value: E.unit,
1342
+ onChange: (e) => S(`${E.value}${e}`),
1343
+ style: { width: "100%" },
1344
+ children: timeOuts.map((e) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Select.Option, {
1345
+ value: e.value,
1346
+ children: t[`datepicker.time_setting.time_interval.${e.value}`]
1347
+ }, e.value))
1348
+ })] })
1349
+ })]
1350
+ }),
1351
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1352
+ className: TimeSetting_module_default.apply,
1353
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Apply_default, {
1354
+ currentLocales: t,
1355
+ onApply: w,
1356
+ onCancel: c
1357
+ })
1358
+ })
1359
+ ]
1360
+ });
1361
+ }, TimeZone_module_default = {
1362
+ timeZone: "_timeZone_v1t8u_1",
1363
+ title: "_title_v1t8u_6",
1364
+ list: "_list_v1t8u_11",
1365
+ item: "_item_v1t8u_16",
1366
+ selected: "_selected_v1t8u_24",
1367
+ name: "_name_v1t8u_28",
1368
+ date: "_date_v1t8u_34",
1369
+ current: "_current_v1t8u_38",
1370
+ value: "_value_v1t8u_51",
1371
+ apply: "_apply_v1t8u_58"
1372
+ };
1373
+ const TIMEZONES = [
1374
+ {
1375
+ value: "Pacific/Midway",
1376
+ label: "(GMT-11:00) Midway Island, Samoa (SST)",
1377
+ offset: -11,
1378
+ abbrev: "SST",
1379
+ altName: "Samoa Standard Time"
1380
+ },
1381
+ {
1382
+ value: "Pacific/Honolulu",
1383
+ label: "(GMT-10:00) Hawaii (HAST)",
1384
+ offset: -10,
1385
+ abbrev: "HAST",
1386
+ altName: "Hawaii-Aleutian Standard Time"
1387
+ },
1388
+ {
1389
+ value: "America/Juneau",
1390
+ label: "(GMT-8:00) Alaska (AKDT)",
1391
+ offset: -8,
1392
+ abbrev: "AKDT",
1393
+ altName: "Alaska Daylight Time"
1394
+ },
1395
+ {
1396
+ value: "America/Dawson",
1397
+ label: "(GMT-7:00) Dawson, Yukon ",
1398
+ offset: -7
1399
+ },
1400
+ {
1401
+ value: "America/Phoenix",
1402
+ label: "(GMT-7:00) Arizona (MST)",
1403
+ offset: -7,
1404
+ abbrev: "MST",
1405
+ altName: "Mountain Standard Time"
1406
+ },
1407
+ {
1408
+ value: "America/Tijuana",
1409
+ label: "(GMT-7:00) Tijuana (PDT)",
1410
+ offset: -7,
1411
+ abbrev: "PDT",
1412
+ altName: "Pacific Daylight Time"
1413
+ },
1414
+ {
1415
+ value: "America/Los_Angeles",
1416
+ label: "(GMT-7:00) Pacific Time (PDT)",
1417
+ offset: -7,
1418
+ abbrev: "PDT",
1419
+ altName: "Pacific Daylight Time"
1420
+ },
1421
+ {
1422
+ value: "America/Boise",
1423
+ label: "(GMT-6:00) Mountain Time (MDT)",
1424
+ offset: -6,
1425
+ abbrev: "MDT",
1426
+ altName: "Mountain Daylight Time"
1427
+ },
1428
+ {
1429
+ value: "America/Chihuahua",
1430
+ label: "(GMT-6:00) Chihuahua, La Paz, Mazatlan ",
1431
+ offset: -6,
1432
+ abbrev: "HEPMX",
1433
+ altName: "Mexican Pacific Daylight Time"
1434
+ },
1435
+ {
1436
+ value: "America/Regina",
1437
+ label: "(GMT-6:00) Saskatchewan (CST)",
1438
+ offset: -6,
1439
+ abbrev: "CST",
1440
+ altName: "Central Standard Time"
1441
+ },
1442
+ {
1443
+ value: "America/Belize",
1444
+ label: "(GMT-6:00) Central America (CST)",
1445
+ offset: -6,
1446
+ abbrev: "CST",
1447
+ altName: "Central Standard Time"
1448
+ },
1449
+ {
1450
+ value: "America/Chicago",
1451
+ label: "(GMT-5:00) Central Time (CDT)",
1452
+ offset: -5,
1453
+ abbrev: "CDT",
1454
+ altName: "Central Daylight Time"
1455
+ },
1456
+ {
1457
+ value: "America/Mexico_City",
1458
+ label: "(GMT-5:00) Guadalajara, Mexico City, Monterrey (CDT)",
1459
+ offset: -5,
1460
+ abbrev: "CDT",
1461
+ altName: "Central Daylight Time"
1462
+ },
1463
+ {
1464
+ value: "America/Bogota",
1465
+ label: "(GMT-5:00) Bogota, Lima, Quito (COT)",
1466
+ offset: -5,
1467
+ abbrev: "COT",
1468
+ altName: "Colombia Standard Time"
1469
+ },
1470
+ {
1471
+ value: "America/Lima",
1472
+ label: "(GMT-5:00) Pittsburgh (PET)",
1473
+ offset: -5,
1474
+ abbrev: "PET",
1475
+ altName: "Peru Standard Time"
1476
+ },
1477
+ {
1478
+ value: "America/Detroit",
1479
+ label: "(GMT-4:00) Eastern Time (EDT)",
1480
+ offset: -4,
1481
+ abbrev: "EDT",
1482
+ altName: "Eastern Daylight Time"
1483
+ },
1484
+ {
1485
+ value: "America/Caracas",
1486
+ label: "(GMT-4:00) Caracas, La Paz (VET)",
1487
+ offset: -4,
1488
+ abbrev: "VET",
1489
+ altName: "Venezuela Time"
1490
+ },
1491
+ {
1492
+ value: "America/Santiago",
1493
+ label: "(GMT-4:00) Santiago (CLT)",
1494
+ offset: -4,
1495
+ abbrev: "CLT",
1496
+ altName: "Chile Standard Time"
1497
+ },
1498
+ {
1499
+ value: "America/Sao_Paulo",
1500
+ label: "(GMT-3:00) Brasilia (BRT)",
1501
+ offset: -3,
1502
+ abbrev: "BRT",
1503
+ altName: "Brasilia Standard Time"
1504
+ },
1505
+ {
1506
+ value: "America/Montevideo",
1507
+ label: "(GMT-3:00) Montevideo (UYT)",
1508
+ offset: -3,
1509
+ abbrev: "UYT",
1510
+ altName: "Uruguay Standard Time"
1511
+ },
1512
+ {
1513
+ value: "America/Argentina/Buenos_Aires",
1514
+ label: "(GMT-3:00) Buenos Aires, Georgetown ",
1515
+ offset: -3,
1516
+ abbrev: "America/Argentina/Buenos_Aires",
1517
+ altName: "America/Argentina/Buenos_Aires"
1518
+ },
1519
+ {
1520
+ value: "America/St_Johns",
1521
+ label: "(GMT-2:30) Newfoundland and Labrador (HETN)",
1522
+ offset: -2.5,
1523
+ abbrev: "HETN",
1524
+ altName: "Newfoundland Daylight Time"
1525
+ },
1526
+ {
1527
+ value: "America/Godthab",
1528
+ label: "(GMT-2:00) Greenland ",
1529
+ offset: -2
1530
+ },
1531
+ {
1532
+ value: "Atlantic/Cape_Verde",
1533
+ label: "(GMT-1:00) Cape Verde Islands (CVT)",
1534
+ offset: -1,
1535
+ abbrev: "CVT",
1536
+ altName: "Cape Verde Standard Time"
1537
+ },
1538
+ {
1539
+ value: "Atlantic/Azores",
1540
+ label: "(GMT+0:00) Azores ",
1541
+ offset: 0,
1542
+ abbrev: "AZOST",
1543
+ altName: "Azores Summer Time"
1544
+ },
1545
+ {
1546
+ value: "Etc/GMT",
1547
+ label: "(GMT+0:00) UTC (GMT)",
1548
+ offset: 0,
1549
+ abbrev: "GMT",
1550
+ altName: "ETC/GMT"
1551
+ },
1552
+ {
1553
+ value: "Africa/Casablanca",
1554
+ label: "(GMT+0:00) Casablanca, Monrovia (WET)",
1555
+ offset: 0,
1556
+ abbrev: "WET",
1557
+ altName: "Western European Standard Time"
1558
+ },
1559
+ {
1560
+ value: "Europe/London",
1561
+ label: "(GMT+1:00) Edinburgh, London (BST)",
1562
+ offset: 1,
1563
+ abbrev: "BST",
1564
+ altName: "British Summer Time"
1565
+ },
1566
+ {
1567
+ value: "Europe/Dublin",
1568
+ label: "(GMT+1:00) Dublin (BST)",
1569
+ offset: 1,
1570
+ abbrev: "BST",
1571
+ altName: "British Summer Time"
1572
+ },
1573
+ {
1574
+ value: "Europe/Lisbon",
1575
+ label: "(GMT+1:00) Lisbon (WEST)",
1576
+ offset: 1,
1577
+ abbrev: "WEST",
1578
+ altName: "Western European Summer Time"
1579
+ },
1580
+ {
1581
+ value: "Atlantic/Canary",
1582
+ label: "(GMT+1:00) Canary Islands (WEST)",
1583
+ offset: 1,
1584
+ abbrev: "WEST",
1585
+ altName: "Western European Summer Time"
1586
+ },
1587
+ {
1588
+ value: "Africa/Algiers",
1589
+ label: "(GMT+1:00) West Central Africa (CET)",
1590
+ offset: 1,
1591
+ abbrev: "CET",
1592
+ altName: "Central European Standard Time"
1593
+ },
1594
+ {
1595
+ value: "Europe/Belgrade",
1596
+ label: "(GMT+2:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague (CEST)",
1597
+ offset: 2,
1598
+ abbrev: "CEST",
1599
+ altName: "Central European Summer Time"
1600
+ },
1601
+ {
1602
+ value: "Europe/Sarajevo",
1603
+ label: "(GMT+2:00) Sarajevo, Skopje, Warsaw, Zagreb (CEST)",
1604
+ offset: 2,
1605
+ abbrev: "CEST",
1606
+ altName: "Central European Summer Time"
1607
+ },
1608
+ {
1609
+ value: "Europe/Brussels",
1610
+ label: "(GMT+2:00) Brussels, Copenhagen, Madrid, Paris (CEST)",
1611
+ offset: 2,
1612
+ abbrev: "CEST",
1613
+ altName: "Central European Summer Time"
1614
+ },
1615
+ {
1616
+ value: "Europe/Amsterdam",
1617
+ label: "(GMT+2:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna (CEST)",
1618
+ offset: 2,
1619
+ abbrev: "CEST",
1620
+ altName: "Central European Summer Time"
1621
+ },
1622
+ {
1623
+ value: "Africa/Cairo",
1624
+ label: "(GMT+2:00) Cairo (EET)",
1625
+ offset: 2,
1626
+ abbrev: "EET",
1627
+ altName: "Eastern European Standard Time"
1628
+ },
1629
+ {
1630
+ value: "Africa/Harare",
1631
+ label: "(GMT+2:00) Harare, Pretoria (CAT)",
1632
+ offset: 2,
1633
+ abbrev: "CAT",
1634
+ altName: "Central Africa Time"
1635
+ },
1636
+ {
1637
+ value: "Europe/Berlin",
1638
+ label: "(GMT+2:00) Frankfurt (CEST)",
1639
+ offset: 2,
1640
+ abbrev: "CEST",
1641
+ altName: "Central European Summer Time"
1642
+ },
1643
+ {
1644
+ value: "Europe/Bucharest",
1645
+ label: "(GMT+3:00) Bucharest (EEST)",
1646
+ offset: 3,
1647
+ abbrev: "EEST",
1648
+ altName: "Eastern European Summer Time"
1649
+ },
1650
+ {
1651
+ value: "Europe/Helsinki",
1652
+ label: "(GMT+3:00) Helsinki, Kiev, Riga, Sofia, Tallinn, Vilnius (EEST)",
1653
+ offset: 3,
1654
+ abbrev: "EEST",
1655
+ altName: "Eastern European Summer Time"
1656
+ },
1657
+ {
1658
+ value: "Europe/Athens",
1659
+ label: "(GMT+3:00) Athens, Minsk (EEST)",
1660
+ offset: 3,
1661
+ abbrev: "EEST",
1662
+ altName: "Eastern European Summer Time"
1663
+ },
1664
+ {
1665
+ value: "Asia/Jerusalem",
1666
+ label: "(GMT+3:00) Jerusalem ",
1667
+ offset: 3,
1668
+ altName: "Israel Daylight Time"
1669
+ },
1670
+ {
1671
+ value: "Europe/Moscow",
1672
+ label: "(GMT+3:00) Istanbul, Moscow, St. Petersburg, Volgograd (MSK)",
1673
+ offset: 3,
1674
+ abbrev: "MSK",
1675
+ altName: "Moscow Standard Time"
1676
+ },
1677
+ {
1678
+ value: "Asia/Kuwait",
1679
+ label: "(GMT+3:00) Kuwait, Riyadh (AST)",
1680
+ offset: 3,
1681
+ abbrev: "AST",
1682
+ altName: "Arabian Standard Time"
1683
+ },
1684
+ {
1685
+ value: "Africa/Nairobi",
1686
+ label: "(GMT+3:00) Nairobi (EAT)",
1687
+ offset: 3,
1688
+ abbrev: "EAT",
1689
+ altName: "East Africa Time"
1690
+ },
1691
+ {
1692
+ value: "Asia/Baghdad",
1693
+ label: "(GMT+3:00) Baghdad (AST)",
1694
+ offset: 3,
1695
+ abbrev: "AST",
1696
+ altName: "Arabian Standard Time"
1697
+ },
1698
+ {
1699
+ value: "Asia/Dubai",
1700
+ label: "(GMT+4:00) Abu Dhabi, Muscat (GST)",
1701
+ offset: 4,
1702
+ abbrev: "GST",
1703
+ altName: "Gulf Standard Time"
1704
+ },
1705
+ {
1706
+ value: "Asia/Baku",
1707
+ label: "(GMT+4:00) Baku, Tbilisi, Yerevan (AZT)",
1708
+ offset: 4,
1709
+ abbrev: "AZT",
1710
+ altName: "Azerbaijan Standard Time"
1711
+ },
1712
+ {
1713
+ value: "Asia/Tehran",
1714
+ label: "(GMT+4:30) Tehran (IRDT)",
1715
+ offset: 4.5,
1716
+ abbrev: "IRDT",
1717
+ altName: "Iran Daylight Time"
1718
+ },
1719
+ {
1720
+ value: "Asia/Kabul",
1721
+ label: "(GMT+4:30) Kabul (AFT)",
1722
+ offset: 4.5,
1723
+ abbrev: "AFT",
1724
+ altName: "Afghanistan Time"
1725
+ },
1726
+ {
1727
+ value: "Asia/Yekaterinburg",
1728
+ label: "(GMT+5:00) Ekaterinburg (YEKT)",
1729
+ offset: 5,
1730
+ abbrev: "YEKT",
1731
+ altName: "Yekaterinburg Standard Time"
1732
+ },
1733
+ {
1734
+ value: "Asia/Karachi",
1735
+ label: "(GMT+5:00) Islamabad, Karachi, Tashkent (PKT)",
1736
+ offset: 5,
1737
+ abbrev: "PKT",
1738
+ altName: "Pakistan Standard Time"
1739
+ },
1740
+ {
1741
+ value: "Asia/Kolkata",
1742
+ label: "(GMT+5:30) Chennai, Kolkata, Mumbai, New Delhi (IST)",
1743
+ offset: 5.5,
1744
+ abbrev: "IST",
1745
+ altName: "India Standard Time"
1746
+ },
1747
+ {
1748
+ value: "Asia/Colombo",
1749
+ label: "(GMT+5:30) Sri Jayawardenepura (IST)",
1750
+ offset: 5.5,
1751
+ abbrev: "IST",
1752
+ altName: "India Standard Time"
1753
+ },
1754
+ {
1755
+ value: "Asia/Kathmandu",
1756
+ label: "(GMT+5:45) Kathmandu ",
1757
+ offset: 5.75,
1758
+ abbrev: "UTC+5.75",
1759
+ altName: "Kathmandu Time"
1760
+ },
1761
+ {
1762
+ value: "Asia/Dhaka",
1763
+ label: "(GMT+6:00) Astana, Dhaka (BST)",
1764
+ offset: 6,
1765
+ abbrev: "BST",
1766
+ altName: "Bangladesh Standard Time"
1767
+ },
1768
+ {
1769
+ value: "Asia/Almaty",
1770
+ label: "(GMT+6:00) Almaty, Novosibirsk (ALMT)",
1771
+ offset: 6,
1772
+ abbrev: "ALMT",
1773
+ altName: "East Kazakhstan Time"
1774
+ },
1775
+ {
1776
+ value: "Asia/Rangoon",
1777
+ label: "(GMT+6:30) Yangon Rangoon ",
1778
+ offset: 6.5,
1779
+ abbrev: "Asia/Yangon",
1780
+ altName: "Asia/Yangon"
1781
+ },
1782
+ {
1783
+ value: "Asia/Bangkok",
1784
+ label: "(GMT+7:00) Bangkok, Hanoi, Jakarta (ICT)",
1785
+ offset: 7,
1786
+ abbrev: "ICT",
1787
+ altName: "Indochina Time"
1788
+ },
1789
+ {
1790
+ value: "Asia/Krasnoyarsk",
1791
+ label: "(GMT+7:00) Krasnoyarsk (KRAT)",
1792
+ offset: 7,
1793
+ abbrev: "KRAT",
1794
+ altName: "Krasnoyarsk Standard Time"
1795
+ },
1796
+ {
1797
+ value: "Asia/Shanghai",
1798
+ label: "(GMT+8:00) Beijing, Chongqing, Hong Kong SAR, Urumqi (CST)",
1799
+ offset: 8,
1800
+ abbrev: "CST",
1801
+ altName: "China Standard Time"
1802
+ },
1803
+ {
1804
+ value: "Asia/Kuala_Lumpur",
1805
+ label: "(GMT+8:00) Kuala Lumpur, Singapore (MYT)",
1806
+ offset: 8,
1807
+ abbrev: "MYT",
1808
+ altName: "Malaysia Time"
1809
+ },
1810
+ {
1811
+ value: "Asia/Taipei",
1812
+ label: "(GMT+8:00) Taipei (CST)",
1813
+ offset: 8,
1814
+ abbrev: "CST",
1815
+ altName: "Taipei Standard Time"
1816
+ },
1817
+ {
1818
+ value: "Australia/Perth",
1819
+ label: "(GMT+8:00) Perth (AWST)",
1820
+ offset: 8,
1821
+ abbrev: "AWST",
1822
+ altName: "Australian Western Standard Time"
1823
+ },
1824
+ {
1825
+ value: "Asia/Irkutsk",
1826
+ label: "(GMT+8:00) Irkutsk, Ulaanbaatar (IRKT)",
1827
+ offset: 8,
1828
+ abbrev: "IRKT",
1829
+ altName: "Irkutsk Standard Time"
1830
+ },
1831
+ {
1832
+ value: "Asia/Seoul",
1833
+ label: "(GMT+9:00) Seoul (KST)",
1834
+ offset: 9,
1835
+ abbrev: "KST",
1836
+ altName: "Korean Standard Time"
1837
+ },
1838
+ {
1839
+ value: "Asia/Tokyo",
1840
+ label: "(GMT+9:00) Osaka, Sapporo, Tokyo (JST)",
1841
+ offset: 9,
1842
+ abbrev: "JST",
1843
+ altName: "Japan Standard Time"
1844
+ },
1845
+ {
1846
+ value: "Australia/Darwin",
1847
+ label: "(GMT+9:30) Darwin (ACST)",
1848
+ offset: 9.5,
1849
+ abbrev: "ACST",
1850
+ altName: "Australian Central Standard Time"
1851
+ },
1852
+ {
1853
+ value: "Australia/Adelaide",
1854
+ label: "(GMT+9:30) Adelaide (ACST)",
1855
+ offset: 9.5,
1856
+ abbrev: "ACST",
1857
+ altName: "Australian Central Standard Time"
1858
+ },
1859
+ {
1860
+ value: "Asia/Yakutsk",
1861
+ label: "(GMT+10:00) Yakutsk (YAKT)",
1862
+ offset: 10,
1863
+ abbrev: "YAKT",
1864
+ altName: "Yakutsk Standard Time"
1865
+ },
1866
+ {
1867
+ value: "Australia/Sydney",
1868
+ label: "(GMT+10:00) Canberra, Melbourne, Sydney (AEST)",
1869
+ offset: 10,
1870
+ abbrev: "AEST",
1871
+ altName: "Australian Eastern Standard Time"
1872
+ },
1873
+ {
1874
+ value: "Australia/Brisbane",
1875
+ label: "(GMT+10:00) Brisbane (AEST)",
1876
+ offset: 10,
1877
+ abbrev: "AEST",
1878
+ altName: "Australian Eastern Standard Time"
1879
+ },
1880
+ {
1881
+ value: "Australia/Hobart",
1882
+ label: "(GMT+10:00) Hobart (AEST)",
1883
+ offset: 10,
1884
+ abbrev: "AEST",
1885
+ altName: "Australian Eastern Standard Time"
1886
+ },
1887
+ {
1888
+ value: "Asia/Vladivostok",
1889
+ label: "(GMT+10:00) Vladivostok (VLAT)",
1890
+ offset: 10,
1891
+ abbrev: "VLAT",
1892
+ altName: "Vladivostok Standard Time"
1893
+ },
1894
+ {
1895
+ value: "Pacific/Guam",
1896
+ label: "(GMT+10:00) Guam, Port Moresby (ChST)",
1897
+ offset: 10,
1898
+ abbrev: "ChST",
1899
+ altName: "Chamorro Standard Time"
1900
+ },
1901
+ {
1902
+ value: "Asia/Magadan",
1903
+ label: "(GMT+11:00) Magadan, Solomon Islands, New Caledonia (MAGT)",
1904
+ offset: 11,
1905
+ abbrev: "MAGT",
1906
+ altName: "Magadan Standard Time"
1907
+ },
1908
+ {
1909
+ value: "Asia/Kamchatka",
1910
+ label: "(GMT+12:00) Kamchatka, Marshall Islands (PETT)",
1911
+ offset: 12,
1912
+ abbrev: "PETT",
1913
+ altName: "Petropavlovsk-Kamchatski Standard Time"
1914
+ },
1915
+ {
1916
+ value: "Pacific/Fiji",
1917
+ label: "(GMT+12:00) Fiji Islands (FJT)",
1918
+ offset: 12,
1919
+ abbrev: "FJT",
1920
+ altName: "Fiji Standard Time"
1921
+ },
1922
+ {
1923
+ value: "Pacific/Auckland",
1924
+ label: "(GMT+12:00) Auckland, Wellington (NZST)",
1925
+ offset: 12,
1926
+ abbrev: "NZST",
1927
+ altName: "New Zealand Standard Time"
1928
+ },
1929
+ {
1930
+ value: "Pacific/Tongatapu",
1931
+ label: "(GMT+13:00) Nuku'alofa (TOT)",
1932
+ offset: 13,
1933
+ abbrev: "TOT",
1934
+ altName: "Tonga Standard Time"
1935
+ }
1936
+ ];
1937
+ var TimeZone_default = (e) => {
1938
+ let { currentLocales: t, onTimeZoneChange: n, onCancel: r, dateFormat: i } = e, [a, o] = useState(), [s, c] = useState(), l = () => {
1939
+ TIMEZONES.findIndex((e) => e.value === a) !== -1 && n(a);
1940
+ }, d = useMemo(() => s ? TIMEZONES.filter((e) => e.label?.toLocaleLowerCase().indexOf(s.toLocaleLowerCase()) !== -1) : TIMEZONES, [s]), p = useMemo(() => TIMEZONES.find((t) => t.value === e.timeZone), [e.timeZone]);
1941
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1942
+ className: TimeZone_module_default.timeZone,
1943
+ children: [
1944
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1945
+ className: TimeZone_module_default.title,
1946
+ children: t["datepicker.time_zone"]
1947
+ }),
1948
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Input, {
1949
+ placeholder: "Search by country, city, time zone, or GMT offset",
1950
+ style: { width: "100%" },
1951
+ onChange: (e) => c(e.target.value)
1952
+ }),
1953
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1954
+ className: TimeZone_module_default.list,
1955
+ children: d.map((e) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1956
+ className: `${TimeZone_module_default.item} ${a === e.value ? TimeZone_module_default.selected : ""}`,
1957
+ onClick: () => {
1958
+ o(e.value);
1959
+ },
1960
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1961
+ className: TimeZone_module_default.name,
1962
+ title: e.label,
1963
+ children: `${e.label}`
1964
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1965
+ className: TimeZone_module_default.date,
1966
+ children: getDateString(void 0, e.value, i)
1967
+ })]
1968
+ }, e.value))
1969
+ }),
1970
+ p && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1971
+ className: TimeZone_module_default.current,
1972
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1973
+ className: TimeZone_module_default.title,
1974
+ children: t["datepicker.time_zone.current"]
1975
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1976
+ className: TimeZone_module_default.value,
1977
+ title: p.label,
1978
+ children: `${p.label}`
1979
+ })]
1980
+ }),
1981
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1982
+ className: TimeZone_module_default.apply,
1983
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Apply_default, {
1984
+ currentLocales: t,
1985
+ onApply: l,
1986
+ onCancel: r
1987
+ })
1988
+ })
1989
+ ]
1990
+ });
1991
+ }, AsyncInterval = class {
1992
+ timeoutId = null;
1993
+ isStopped = !1;
1994
+ __pendingFn = () => {};
1995
+ constructor(e, t) {
1996
+ this.setAsyncInterval(e, t);
1997
+ }
1998
+ setAsyncInterval = (e, t) => {
1999
+ this.isStopped || (this.timeoutId = window.setTimeout(async () => {
2000
+ this.__pendingFn = await e(), this.setAsyncInterval(e, t);
2001
+ }, t));
2002
+ };
2003
+ stop = () => {
2004
+ this.isStopped = !0, this.timeoutId !== null && window.clearTimeout(this.timeoutId);
2005
+ };
2006
+ }, import_dayjs_min$2 = /* @__PURE__ */ __toESM(require_dayjs_min()), ISO_FORMAT = "YYYY-MM-DDTHH:mm:ss.SSSZ";
2007
+ function cantLookup(e, t, n) {
2008
+ return `${formatTimeString(e, n)} ~ ${formatTimeString(t, n, !0)}`;
2009
+ }
2010
+ function isRelativeToNow(e, t) {
2011
+ let n = getDateMode(e), r = getDateMode(t), i = n === DATE_MODES.RELATIVE && r === DATE_MODES.NOW, a = n === DATE_MODES.NOW && r === DATE_MODES.RELATIVE, o = n === DATE_MODES.RELATIVE && r === DATE_MODES.RELATIVE;
2012
+ return i || a || o;
2013
+ }
2014
+ function formatTimeString(e, t, n = !1, r = "en") {
2015
+ let i = (0, import_dayjs_min$2.default)(e, ISO_FORMAT, !0);
2016
+ if (i.isValid()) return i.locale(r).format(t);
2017
+ if (e === "now") return "now";
2018
+ let a = date_math_default.parse(e, { roundUp: n });
2019
+ return import_dayjs_min$2.default.isDayjs(a) ? `~ ${a.locale(r).fromNow()}` : e;
2020
+ }
2021
+ function prettyDuration(e, t, n = [], r, i) {
2022
+ let a = n.find(({ start: n, end: r }) => e === n && t === r);
2023
+ if (a && a.key) return i[`datepicker.quick_select.${a.key}`];
2024
+ if (isRelativeToNow(e, t)) {
2025
+ let n, r;
2026
+ getDateMode(t) === DATE_MODES.NOW ? (n = i["datepicker.quick_select.last"], r = parseRelativeParts(e)) : (n = i["datepicker.quick_select.next"], r = parseRelativeParts(t));
2027
+ let a = i[`datepicker.time.units.${r.unit.substring(0, 1)}`];
2028
+ r.count === 1 && a.substring(a.length - 1) === "s" && (a = a.substring(0, a.length - 1));
2029
+ let o = `${n} ${r.count} ${a}`;
2030
+ return r.round && r.roundUnit && (o += ` rounded to the ${timeUnits[r.roundUnit]}`), o;
2031
+ }
2032
+ return cantLookup(e, t, r);
2033
+ }
2034
+ function showPrettyDuration(e, t, n = []) {
2035
+ return n.find(({ start: n, end: r }) => e === n && t === r) ? !0 : isRelativeToNow(e, t);
2036
+ }
2037
+ var Range_module_default = {
2038
+ rangeBtn: "_rangeBtn_1wtez_1",
2039
+ rangeContent: "_rangeContent_1wtez_9",
2040
+ clock: "_clock_1wtez_15",
2041
+ label: "_label_1wtez_18",
2042
+ down: "_down_1wtez_25",
2043
+ minimum: "_minimum_1wtez_28",
2044
+ popover: "_popover_1wtez_37",
2045
+ rangeSetting: "_rangeSetting_1wtez_46",
2046
+ menu: "_menu_1wtez_49",
2047
+ item: "_item_1wtez_52",
2048
+ selected: "_selected_1wtez_62",
2049
+ disabled: "_disabled_1wtez_66",
2050
+ icon: "_icon_1wtez_71",
2051
+ right: "_right_1wtez_75",
2052
+ quickSelect: "_quickSelect_1wtez_78",
2053
+ setting: "_setting_1wtez_81",
2054
+ content: "_content_1wtez_85"
2055
+ }, import_dayjs_min$1 = /* @__PURE__ */ __toESM(require_dayjs_min()), TIME_ZONE_KEY = "time_zone", TIME_SETTING_KEY = "time_setting", SETTING = [
2056
+ {
2057
+ key: "quick_select",
2058
+ label: "Quick select",
2059
+ icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ThunderboltOutlined, { className: Range_module_default.icon }),
2060
+ component: QuickSelect_default
2061
+ },
2062
+ {
2063
+ key: "start_and_end_times",
2064
+ label: "Start and end times",
2065
+ icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CalendarOutlined, { className: Range_module_default.icon }),
2066
+ component: StartAndEndTimes_default
2067
+ },
2068
+ {
2069
+ key: TIME_SETTING_KEY,
2070
+ label: "Time setting",
2071
+ icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SettingOutlined, { className: Range_module_default.icon }),
2072
+ component: TimeSetting_default
2073
+ },
2074
+ {
2075
+ key: TIME_ZONE_KEY,
2076
+ label: "Time zone",
2077
+ render: (e, { timeZone: t }, n) => `${n[`datepicker.${e.key}`]} | ${getGMTString(t)}`,
2078
+ icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(GlobalOutlined, { className: Range_module_default.icon }),
2079
+ component: TimeZone_default
2080
+ }
2081
+ ], Range_default = (e) => {
2082
+ let { currentLocales: t, popoverClassName: n, popoverPlacement: r, dateFormat: i, start: a, end: o, onRangeChange: s, commonlyUsedRanges: m, isRefreshPaused: h, refreshInterval: g, onRefreshChange: v, onRefresh: y, showTimeSetting: x, autoFitLoading: S, onAutoFit: C, timeZone: E, isMinimum: D } = e;
2083
+ useImperativeHandle(e.onRef, () => ({ handleRefreshChange: H }));
2084
+ let O = useRef(null), [k, A] = useState(!1), [j, M] = useState(!1), [N, P] = useState(), [F, I] = useState(), L = useRef(null), R = useRef({
2085
+ start: a,
2086
+ end: o
2087
+ }), z = (e) => {
2088
+ P(e), M(!0);
2089
+ }, B = (e) => {
2090
+ e ? (A(!0), setTimeout(() => {
2091
+ L.current && I(L.current.offsetHeight);
2092
+ }, 100)) : V();
2093
+ }, V = () => {
2094
+ A(!1), setTimeout(() => {
2095
+ P(), M(!1);
2096
+ }, 100);
2097
+ }, H = ({ isRefreshPaused: e, refreshInterval: t }) => {
2098
+ U(), v && v({
2099
+ refreshInterval: t,
2100
+ isRefreshPaused: e
2101
+ });
2102
+ }, U = () => {
2103
+ O.current && O.current.stop();
2104
+ }, W = (e, t) => {
2105
+ U(), t && R.current && (O.current = new AsyncInterval(() => {
2106
+ t({
2107
+ ...R.current,
2108
+ refreshInterval: e
2109
+ });
2110
+ }, e));
2111
+ };
2112
+ useEffect(() => () => {
2113
+ U();
2114
+ }, []), useEffect(() => {
2115
+ h ? U() : W(g, y);
2116
+ }, [
2117
+ g,
2118
+ h,
2119
+ y
2120
+ ]), useEffect(() => {
2121
+ R.current = {
2122
+ start: a,
2123
+ end: o
2124
+ };
2125
+ }, [a, o]);
2126
+ let G = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
2127
+ ref: L,
2128
+ className: Range_module_default.rangeSetting,
2129
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
2130
+ className: Range_module_default.menu,
2131
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
2132
+ className: Range_module_default.quickSelect,
2133
+ children: [C && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spin, {
2134
+ size: "small",
2135
+ spinning: !!S,
2136
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
2137
+ className: `${Range_module_default.item} ${D ? Range_module_default.disabled : ""}`,
2138
+ onClick: () => {
2139
+ C(), V();
2140
+ },
2141
+ children: t["datepicker.quick_select.auto_fit"]
2142
+ })
2143
+ }), m.map((e, n) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
2144
+ className: `${Range_module_default.item} ${D ? Range_module_default.disabled : ""}`,
2145
+ onClick: () => {
2146
+ s({
2147
+ start: e.start,
2148
+ end: e.end
2149
+ }), V();
2150
+ },
2151
+ children: t[`datepicker.quick_select.${e.key}`]
2152
+ }, n))]
2153
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
2154
+ className: Range_module_default.setting,
2155
+ children: SETTING.filter((e) => e.key !== TIME_SETTING_KEY || !!x).map((n) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
2156
+ className: `${Range_module_default.item} ${N?.key === n.key ? Range_module_default.selected : ""} ${D && ![TIME_ZONE_KEY, TIME_SETTING_KEY].includes(n.key) ? Range_module_default.disabled : ""}`,
2157
+ onClick: () => z(n),
2158
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [j && n.icon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
2159
+ className: Range_module_default.icon,
2160
+ children: n.icon
2161
+ }), n.render ? n.render(n, e, t) : t[`datepicker.${n.key}`]] }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RightOutlined, { className: Range_module_default.right })]
2162
+ }, n.key))
2163
+ })]
2164
+ }), N?.component && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
2165
+ className: Range_module_default.content,
2166
+ style: { height: F || "100%" },
2167
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(N.component, {
2168
+ ...e,
2169
+ onRefreshChange: H,
2170
+ onCancel: V
2171
+ })
2172
+ })]
2173
+ }), K = useMemo(() => D || !a || !o ? "" : showPrettyDuration(a, o, m) ? prettyDuration(a, o, m, i, t) : `${getDateString(a, E, i)} ~ ${getDateStringWithGMT(o, E, i)}`, [
2174
+ D,
2175
+ a,
2176
+ o,
2177
+ m,
2178
+ i,
2179
+ E
2180
+ ]), q = useMemo(() => {
2181
+ let e = (0, import_dayjs_min$1.default)().tz(E), t = e.format("YYYY-MM-DD"), n = e.format("YYYY");
2182
+ return typeof K == "string" ? K.replaceAll(`${t}`, "").replaceAll(`${n}-`, "") : "";
2183
+ }, [K, E]);
2184
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Popover, {
2185
+ open: k,
2186
+ onOpenChange: B,
2187
+ placement: r,
2188
+ content: G,
2189
+ trigger: "click",
2190
+ overlayClassName: `${Range_module_default.popover} ${n}`,
2191
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
2192
+ title: K,
2193
+ className: `${Range_module_default.rangeBtn} ${D ? Range_module_default.minimum : ""} common-ui-datepicker-range`,
2194
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
2195
+ className: Range_module_default.rangeContent,
2196
+ children: [
2197
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ClockCircleOutlined, { className: Range_module_default.clock }),
2198
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
2199
+ className: Range_module_default.label,
2200
+ children: q
2201
+ }),
2202
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DownOutlined, { className: Range_module_default.down })
2203
+ ]
2204
+ })
2205
+ })
2206
+ });
2207
+ }, en_US_default = {
2208
+ "datepicker.quick_select.auto_fit": "Auto fit",
2209
+ "datepicker.quick_select.today": "Today",
2210
+ "datepicker.quick_select.this_week": "This week",
2211
+ "datepicker.quick_select.last_15_minutes": "Last 15 minutes",
2212
+ "datepicker.quick_select.last_30_minutes": "Last 30 minutes",
2213
+ "datepicker.quick_select.last_1_hour": "Last 1 hour",
2214
+ "datepicker.quick_select.last_24_hours": "Last 24 hours",
2215
+ "datepicker.quick_select.last_7_days": "Last 7 days",
2216
+ "datepicker.quick_select.last_30_days": "Last 30 days",
2217
+ "datepicker.quick_select.last_90_days": "Last 90 days",
2218
+ "datepicker.quick_select": "Quick select",
2219
+ "datepicker.quick_select.last": "Last",
2220
+ "datepicker.quick_select.next": "Next",
2221
+ "datepicker.start_and_end_times": "Start and end times",
2222
+ "datepicker.start_and_end_times.start_time": "Start time",
2223
+ "datepicker.start_and_end_times.end_time": "End time",
2224
+ "datepicker.start_and_end_times.error": "End time must be after start time",
2225
+ "datepicker.start_and_end_times.recent": "Recent",
2226
+ "datepicker.time_setting": "Time setting",
2227
+ "datepicker.time_setting.time_field": "Time field",
2228
+ "datepicker.time_setting.time_interval": "Time interval",
2229
+ "datepicker.time_setting.time_interval.auto": "Auto",
2230
+ "datepicker.time_setting.time_interval.help": "Because of the long time range, time interval can only be calculated automatically.",
2231
+ "datepicker.time_setting.time_interval.ms": "Millisecond",
2232
+ "datepicker.time_setting.time_interval.s": "Second",
2233
+ "datepicker.time_setting.time_interval.m": "Minute",
2234
+ "datepicker.time_setting.time_interval.h": "Hour",
2235
+ "datepicker.time_setting.time_interval.d": "Day",
2236
+ "datepicker.time_setting.time_interval.w": "Week",
2237
+ "datepicker.time_setting.time_interval.M": "Month",
2238
+ "datepicker.time_setting.time_interval.y": "Year",
2239
+ "datepicker.time_setting.timeout": "Timeout",
2240
+ "datepicker.time_zone": "Time zone",
2241
+ "datepicker.time_zone.current": "Current time zone",
2242
+ "datepicker.refresh_every": "Refresh every",
2243
+ "datepicker.time.units.s": "seconds",
2244
+ "datepicker.time.units.m": "minutes",
2245
+ "datepicker.time.units.h": "hours",
2246
+ "datepicker.time.units.d": "days",
2247
+ "datepicker.time.units.w": "weeks",
2248
+ "datepicker.time.units.M": "months",
2249
+ "datepicker.time.units.y": "years",
2250
+ "datepicker.cancel": "Cancel",
2251
+ "datepicker.apply": "Apply"
2252
+ }, zh_CN_default = {
2253
+ "datepicker.quick_select.auto_fit": "自动适配",
2254
+ "datepicker.quick_select.today": "今天",
2255
+ "datepicker.quick_select.this_week": "这个星期",
2256
+ "datepicker.quick_select.last_15_minutes": "最近15分钟",
2257
+ "datepicker.quick_select.last_30_minutes": "最近30分钟",
2258
+ "datepicker.quick_select.last_1_hour": "最近1小时",
2259
+ "datepicker.quick_select.last_24_hours": "最近24小时",
2260
+ "datepicker.quick_select.last_7_days": "最近7天",
2261
+ "datepicker.quick_select.last_30_days": "最近30天",
2262
+ "datepicker.quick_select.last_90_days": "最近90天",
2263
+ "datepicker.quick_select": "快速选择",
2264
+ "datepicker.quick_select.last": "最近",
2265
+ "datepicker.quick_select.next": "未来",
2266
+ "datepicker.start_and_end_times": "时间范围",
2267
+ "datepicker.start_and_end_times.start_time": "开始时间",
2268
+ "datepicker.start_and_end_times.end_time": "结束时间",
2269
+ "datepicker.start_and_end_times.error": "结束时间必须在开始时间之后",
2270
+ "datepicker.start_and_end_times.recent": "最近使用的",
2271
+ "datepicker.time_setting": "时间设置",
2272
+ "datepicker.time_setting.time_field": "时间字段",
2273
+ "datepicker.time_setting.time_interval": "时间间隔",
2274
+ "datepicker.time_setting.time_interval.auto": "自动",
2275
+ "datepicker.time_setting.time_interval.help": "由于时间跨度较长,仅支持自动计算时间间隔。",
2276
+ "datepicker.time_setting.time_interval.ms": "毫秒",
2277
+ "datepicker.time_setting.time_interval.s": "秒",
2278
+ "datepicker.time_setting.time_interval.m": "分",
2279
+ "datepicker.time_setting.time_interval.h": "时",
2280
+ "datepicker.time_setting.time_interval.d": "天",
2281
+ "datepicker.time_setting.time_interval.w": "周",
2282
+ "datepicker.time_setting.time_interval.M": "月",
2283
+ "datepicker.time_setting.time_interval.y": "年",
2284
+ "datepicker.time_setting.timeout": "超时时间",
2285
+ "datepicker.time_zone": "时区",
2286
+ "datepicker.time_zone.current": "当前时区",
2287
+ "datepicker.refresh_every": "刷新间隔",
2288
+ "datepicker.time.units.s": "秒",
2289
+ "datepicker.time.units.m": "分",
2290
+ "datepicker.time.units.h": "时",
2291
+ "datepicker.time.units.d": "天",
2292
+ "datepicker.time.units.w": "周",
2293
+ "datepicker.time.units.M": "月",
2294
+ "datepicker.time.units.y": "年",
2295
+ "datepicker.cancel": "取消",
2296
+ "datepicker.apply": "应用"
2297
+ }, locales_default = {
2298
+ "en-US": en_US_default,
2299
+ "zh-CN": zh_CN_default
2300
+ }, index_module_default = {
2301
+ datePicker: "_datePicker_1wxja_1",
2302
+ RangeBox: "_RangeBox_1wxja_6",
2303
+ iconBtn: "_iconBtn_1wxja_26",
2304
+ refreshBtn: "_refreshBtn_1wxja_33",
2305
+ play: "_play_1wxja_38"
2306
+ }, require_duration = /* @__PURE__ */ __commonJSMin(((e, t) => {
2307
+ (function(n, r) {
2308
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_duration = r();
2309
+ })(e, (function() {
2310
+ var e, t, n = 1e3, r = 6e4, i = 36e5, a = 864e5, o = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, s = 31536e6, c = 2628e6, l = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, u = {
2311
+ years: s,
2312
+ months: c,
2313
+ days: a,
2314
+ hours: i,
2315
+ minutes: r,
2316
+ seconds: n,
2317
+ milliseconds: 1,
2318
+ weeks: 6048e5
2319
+ }, d = function(e) {
2320
+ return e instanceof v;
2321
+ }, f = function(e, t, n) {
2322
+ return new v(e, n, t.$l);
2323
+ }, p = function(e) {
2324
+ return t.p(e) + "s";
2325
+ }, m = function(e) {
2326
+ return e < 0;
2327
+ }, h = function(e) {
2328
+ return m(e) ? Math.ceil(e) : Math.floor(e);
2329
+ }, g = function(e) {
2330
+ return Math.abs(e);
2331
+ }, _ = function(e, t) {
2332
+ return e ? m(e) ? {
2333
+ negative: !0,
2334
+ format: "" + g(e) + t
2335
+ } : {
2336
+ negative: !1,
2337
+ format: "" + e + t
2338
+ } : {
2339
+ negative: !1,
2340
+ format: ""
2341
+ };
2342
+ }, v = function() {
2343
+ function m(e, t, n) {
2344
+ var r = this;
2345
+ if (this.$d = {}, this.$l = n, e === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), t) return f(e * u[p(t)], this);
2346
+ if (typeof e == "number") return this.$ms = e, this.parseFromMilliseconds(), this;
2347
+ if (typeof e == "object") return Object.keys(e).forEach((function(t) {
2348
+ r.$d[p(t)] = e[t];
2349
+ })), this.calMilliseconds(), this;
2350
+ if (typeof e == "string") {
2351
+ var i = e.match(l);
2352
+ if (i) {
2353
+ var a = i.slice(2).map((function(e) {
2354
+ return e == null ? 0 : Number(e);
2355
+ }));
2356
+ return this.$d.years = a[0], this.$d.months = a[1], this.$d.weeks = a[2], this.$d.days = a[3], this.$d.hours = a[4], this.$d.minutes = a[5], this.$d.seconds = a[6], this.calMilliseconds(), this;
2357
+ }
2358
+ }
2359
+ return this;
2360
+ }
2361
+ var g = m.prototype;
2362
+ return g.calMilliseconds = function() {
2363
+ var e = this;
2364
+ this.$ms = Object.keys(this.$d).reduce((function(t, n) {
2365
+ return t + (e.$d[n] || 0) * u[n];
2366
+ }), 0);
2367
+ }, g.parseFromMilliseconds = function() {
2368
+ var e = this.$ms;
2369
+ this.$d.years = h(e / s), e %= s, this.$d.months = h(e / c), e %= c, this.$d.days = h(e / a), e %= a, this.$d.hours = h(e / i), e %= i, this.$d.minutes = h(e / r), e %= r, this.$d.seconds = h(e / n), e %= n, this.$d.milliseconds = e;
2370
+ }, g.toISOString = function() {
2371
+ var e = _(this.$d.years, "Y"), t = _(this.$d.months, "M"), n = +this.$d.days || 0;
2372
+ this.$d.weeks && (n += 7 * this.$d.weeks);
2373
+ var r = _(n, "D"), i = _(this.$d.hours, "H"), a = _(this.$d.minutes, "M"), o = this.$d.seconds || 0;
2374
+ this.$d.milliseconds && (o += this.$d.milliseconds / 1e3, o = Math.round(1e3 * o) / 1e3);
2375
+ var s = _(o, "S"), c = e.negative || t.negative || r.negative || i.negative || a.negative || s.negative, l = i.format || a.format || s.format ? "T" : "", u = (c ? "-" : "") + "P" + e.format + t.format + r.format + l + i.format + a.format + s.format;
2376
+ return u === "P" || u === "-P" ? "P0D" : u;
2377
+ }, g.toJSON = function() {
2378
+ return this.toISOString();
2379
+ }, g.format = function(e) {
2380
+ var n = e || "YYYY-MM-DDTHH:mm:ss", r = {
2381
+ Y: this.$d.years,
2382
+ YY: t.s(this.$d.years, 2, "0"),
2383
+ YYYY: t.s(this.$d.years, 4, "0"),
2384
+ M: this.$d.months,
2385
+ MM: t.s(this.$d.months, 2, "0"),
2386
+ D: this.$d.days,
2387
+ DD: t.s(this.$d.days, 2, "0"),
2388
+ H: this.$d.hours,
2389
+ HH: t.s(this.$d.hours, 2, "0"),
2390
+ m: this.$d.minutes,
2391
+ mm: t.s(this.$d.minutes, 2, "0"),
2392
+ s: this.$d.seconds,
2393
+ ss: t.s(this.$d.seconds, 2, "0"),
2394
+ SSS: t.s(this.$d.milliseconds, 3, "0")
2395
+ };
2396
+ return n.replace(o, (function(e, t) {
2397
+ return t || String(r[e]);
2398
+ }));
2399
+ }, g.as = function(e) {
2400
+ return this.$ms / u[p(e)];
2401
+ }, g.get = function(e) {
2402
+ var t = this.$ms, n = p(e);
2403
+ return n === "milliseconds" ? t %= 1e3 : t = n === "weeks" ? h(t / u[n]) : this.$d[n], t || 0;
2404
+ }, g.add = function(e, t, n) {
2405
+ var r;
2406
+ return r = t ? e * u[p(t)] : d(e) ? e.$ms : f(e, this).$ms, f(this.$ms + r * (n ? -1 : 1), this);
2407
+ }, g.subtract = function(e, t) {
2408
+ return this.add(e, t, !0);
2409
+ }, g.locale = function(e) {
2410
+ var t = this.clone();
2411
+ return t.$l = e, t;
2412
+ }, g.clone = function() {
2413
+ return f(this.$ms, this);
2414
+ }, g.humanize = function(t) {
2415
+ return e().add(this.$ms, "ms").locale(this.$l).fromNow(!t);
2416
+ }, g.valueOf = function() {
2417
+ return this.asMilliseconds();
2418
+ }, g.milliseconds = function() {
2419
+ return this.get("milliseconds");
2420
+ }, g.asMilliseconds = function() {
2421
+ return this.as("milliseconds");
2422
+ }, g.seconds = function() {
2423
+ return this.get("seconds");
2424
+ }, g.asSeconds = function() {
2425
+ return this.as("seconds");
2426
+ }, g.minutes = function() {
2427
+ return this.get("minutes");
2428
+ }, g.asMinutes = function() {
2429
+ return this.as("minutes");
2430
+ }, g.hours = function() {
2431
+ return this.get("hours");
2432
+ }, g.asHours = function() {
2433
+ return this.as("hours");
2434
+ }, g.days = function() {
2435
+ return this.get("days");
2436
+ }, g.asDays = function() {
2437
+ return this.as("days");
2438
+ }, g.weeks = function() {
2439
+ return this.get("weeks");
2440
+ }, g.asWeeks = function() {
2441
+ return this.as("weeks");
2442
+ }, g.months = function() {
2443
+ return this.get("months");
2444
+ }, g.asMonths = function() {
2445
+ return this.as("months");
2446
+ }, g.years = function() {
2447
+ return this.get("years");
2448
+ }, g.asYears = function() {
2449
+ return this.as("years");
2450
+ }, m;
2451
+ }(), y = function(e, t, n) {
2452
+ return e.add(t.years() * n, "y").add(t.months() * n, "M").add(t.days() * n, "d").add(t.hours() * n, "h").add(t.minutes() * n, "m").add(t.seconds() * n, "s").add(t.milliseconds() * n, "ms");
2453
+ };
2454
+ return function(n, r, i) {
2455
+ e = i, t = i().$utils(), i.duration = function(e, t) {
2456
+ return f(e, { $l: i.locale() }, t);
2457
+ }, i.isDuration = d;
2458
+ var a = r.prototype.add, o = r.prototype.subtract;
2459
+ r.prototype.add = function(e, t) {
2460
+ return d(e) ? y(this, e, 1) : a.bind(this)(e, t);
2461
+ }, r.prototype.subtract = function(e, t) {
2462
+ return d(e) ? y(this, e, -1) : o.bind(this)(e, t);
2463
+ };
2464
+ };
2465
+ }));
2466
+ })), require_utc = /* @__PURE__ */ __commonJSMin(((e, t) => {
2467
+ (function(n, r) {
2468
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_utc = r();
2469
+ })(e, (function() {
2470
+ var e = "minute", t = /[+-]\d\d(?::?\d\d)?/g, n = /([+-]|\d\d)/g;
2471
+ return function(r, i, a) {
2472
+ var o = i.prototype;
2473
+ a.utc = function(e) {
2474
+ return new i({
2475
+ date: e,
2476
+ utc: !0,
2477
+ args: arguments
2478
+ });
2479
+ }, o.utc = function(t) {
2480
+ var n = a(this.toDate(), {
2481
+ locale: this.$L,
2482
+ utc: !0
2483
+ });
2484
+ return t ? n.add(this.utcOffset(), e) : n;
2485
+ }, o.local = function() {
2486
+ return a(this.toDate(), {
2487
+ locale: this.$L,
2488
+ utc: !1
2489
+ });
2490
+ };
2491
+ var s = o.parse;
2492
+ o.parse = function(e) {
2493
+ e.utc && (this.$u = !0), this.$utils().u(e.$offset) || (this.$offset = e.$offset), s.call(this, e);
2494
+ };
2495
+ var c = o.init;
2496
+ o.init = function() {
2497
+ if (this.$u) {
2498
+ var e = this.$d;
2499
+ this.$y = e.getUTCFullYear(), this.$M = e.getUTCMonth(), this.$D = e.getUTCDate(), this.$W = e.getUTCDay(), this.$H = e.getUTCHours(), this.$m = e.getUTCMinutes(), this.$s = e.getUTCSeconds(), this.$ms = e.getUTCMilliseconds();
2500
+ } else c.call(this);
2501
+ };
2502
+ var l = o.utcOffset;
2503
+ o.utcOffset = function(r, i) {
2504
+ var a = this.$utils().u;
2505
+ if (a(r)) return this.$u ? 0 : a(this.$offset) ? l.call(this) : this.$offset;
2506
+ if (typeof r == "string" && (r = function(e) {
2507
+ e === void 0 && (e = "");
2508
+ var r = e.match(t);
2509
+ if (!r) return null;
2510
+ var i = ("" + r[0]).match(n) || [
2511
+ "-",
2512
+ 0,
2513
+ 0
2514
+ ], a = i[0], o = 60 * i[1] + +i[2];
2515
+ return o === 0 ? 0 : a === "+" ? o : -o;
2516
+ }(r), r === null)) return this;
2517
+ var o = Math.abs(r) <= 16 ? 60 * r : r;
2518
+ if (o === 0) return this.utc(i);
2519
+ var s = this.clone();
2520
+ if (i) return s.$offset = o, s.$u = !1, s;
2521
+ var c = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
2522
+ return (s = this.local().add(o + c, e)).$offset = o, s.$x.$localOffset = c, s;
2523
+ };
2524
+ var u = o.format;
2525
+ o.format = function(e) {
2526
+ var t = e || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
2527
+ return u.call(this, t);
2528
+ }, o.valueOf = function() {
2529
+ var e = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
2530
+ return this.$d.valueOf() - 6e4 * e;
2531
+ }, o.isUTC = function() {
2532
+ return !!this.$u;
2533
+ }, o.toISOString = function() {
2534
+ return this.toDate().toISOString();
2535
+ }, o.toString = function() {
2536
+ return this.toDate().toUTCString();
2537
+ };
2538
+ var d = o.toDate;
2539
+ o.toDate = function(e) {
2540
+ return e === "s" && this.$offset ? a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : d.call(this);
2541
+ };
2542
+ var f = o.diff;
2543
+ o.diff = function(e, t, n) {
2544
+ if (e && this.$u === e.$u) return f.call(this, e, t, n);
2545
+ var r = this.local(), i = a(e).local();
2546
+ return f.call(r, i, t, n);
2547
+ };
2548
+ };
2549
+ }));
2550
+ })), require_timezone = /* @__PURE__ */ __commonJSMin(((e, t) => {
2551
+ (function(n, r) {
2552
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_timezone = r();
2553
+ })(e, (function() {
2554
+ var e = {
2555
+ year: 0,
2556
+ month: 1,
2557
+ day: 2,
2558
+ hour: 3,
2559
+ minute: 4,
2560
+ second: 5
2561
+ }, t = {};
2562
+ return function(n, r, i) {
2563
+ var a, o = function(e, n, r) {
2564
+ r === void 0 && (r = {});
2565
+ var i = new Date(e);
2566
+ return function(e, n) {
2567
+ n === void 0 && (n = {});
2568
+ var r = n.timeZoneName || "short", i = e + "|" + r, a = t[i];
2569
+ return a || (a = new Intl.DateTimeFormat("en-US", {
2570
+ hour12: !1,
2571
+ timeZone: e,
2572
+ year: "numeric",
2573
+ month: "2-digit",
2574
+ day: "2-digit",
2575
+ hour: "2-digit",
2576
+ minute: "2-digit",
2577
+ second: "2-digit",
2578
+ timeZoneName: r
2579
+ }), t[i] = a), a;
2580
+ }(n, r).formatToParts(i);
2581
+ }, s = function(t, n) {
2582
+ for (var r = o(t, n), a = [], s = 0; s < r.length; s += 1) {
2583
+ var c = r[s], l = c.type, u = c.value, d = e[l];
2584
+ d >= 0 && (a[d] = parseInt(u, 10));
2585
+ }
2586
+ var f = a[3], p = f === 24 ? 0 : f, m = a[0] + "-" + a[1] + "-" + a[2] + " " + p + ":" + a[4] + ":" + a[5] + ":000", h = +t;
2587
+ return (i.utc(m).valueOf() - (h -= h % 1e3)) / 6e4;
2588
+ }, c = r.prototype;
2589
+ c.tz = function(e, t) {
2590
+ e === void 0 && (e = a);
2591
+ var n, r = this.utcOffset(), o = this.toDate(), s = o.toLocaleString("en-US", { timeZone: e }), c = Math.round((o - new Date(s)) / 1e3 / 60), l = 15 * -Math.round(o.getTimezoneOffset() / 15) - c;
2592
+ if (!Number(l)) n = this.utcOffset(0, t);
2593
+ else if (n = i(s, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(l, !0), t) {
2594
+ var u = n.utcOffset();
2595
+ n = n.add(r - u, "minute");
2596
+ }
2597
+ return n.$x.$timezone = e, n;
2598
+ }, c.offsetName = function(e) {
2599
+ var t = this.$x.$timezone || i.tz.guess(), n = o(this.valueOf(), t, { timeZoneName: e }).find((function(e) {
2600
+ return e.type.toLowerCase() === "timezonename";
2601
+ }));
2602
+ return n && n.value;
2603
+ };
2604
+ var l = c.startOf;
2605
+ c.startOf = function(e, t) {
2606
+ if (!this.$x || !this.$x.$timezone) return l.call(this, e, t);
2607
+ var n = i(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
2608
+ return l.call(n, e, t).tz(this.$x.$timezone, !0);
2609
+ }, i.tz = function(e, t, n) {
2610
+ var r = n && t, o = n || t || a, c = s(+i(), o);
2611
+ if (typeof e != "string") return i(e).tz(o);
2612
+ var l = function(e, t, n) {
2613
+ var r = e - 60 * t * 1e3, i = s(r, n);
2614
+ if (t === i) return [r, t];
2615
+ var a = s(r -= 60 * (i - t) * 1e3, n);
2616
+ return i === a ? [r, i] : [e - 60 * Math.min(i, a) * 1e3, Math.max(i, a)];
2617
+ }(i.utc(e, r).valueOf(), c, o), u = l[0], d = l[1], f = i(u).utcOffset(d);
2618
+ return f.$x.$timezone = o, f;
2619
+ }, i.tz.guess = function() {
2620
+ return Intl.DateTimeFormat().resolvedOptions().timeZone;
2621
+ }, i.tz.setDefault = function(e) {
2622
+ a = e;
2623
+ };
2624
+ };
2625
+ }));
2626
+ })), import_dayjs_min = /* @__PURE__ */ __toESM(require_dayjs_min()), import_duration = /* @__PURE__ */ __toESM(require_duration()), import_utc = /* @__PURE__ */ __toESM(require_utc()), import_timezone = /* @__PURE__ */ __toESM(require_timezone());
2627
+ import_dayjs_min.default.extend(import_duration.default), import_dayjs_min.default.extend(import_utc.default), import_dayjs_min.default.extend(import_timezone.default);
2628
+ var DEFAULT_COMMONLY_USED_RANGES = [
2629
+ {
2630
+ start: "now/d",
2631
+ end: "now/d",
2632
+ label: "Today",
2633
+ key: "today"
2634
+ },
2635
+ {
2636
+ start: "now/w",
2637
+ end: "now/w",
2638
+ label: "This week",
2639
+ key: "this_week"
2640
+ },
2641
+ {
2642
+ start: "now-15m",
2643
+ end: "now",
2644
+ label: "Last 15 minutes",
2645
+ key: "last_15_minutes"
2646
+ },
2647
+ {
2648
+ start: "now-30m",
2649
+ end: "now",
2650
+ label: "Last 30 minutes",
2651
+ key: "last_30_minutes"
2652
+ },
2653
+ {
2654
+ start: "now-1h",
2655
+ end: "now",
2656
+ label: "Last 1 hour",
2657
+ key: "last_1_hour"
2658
+ },
2659
+ {
2660
+ start: "now-24h",
2661
+ end: "now",
2662
+ label: "Last 24 hours",
2663
+ key: "last_24_hours"
2664
+ },
2665
+ {
2666
+ start: "now-7d",
2667
+ end: "now",
2668
+ label: "Last 7 days",
2669
+ key: "last_7_days"
2670
+ },
2671
+ {
2672
+ start: "now-30d",
2673
+ end: "now",
2674
+ label: "Last 30 days",
2675
+ key: "last_30_days"
2676
+ },
2677
+ {
2678
+ start: "now-90d",
2679
+ end: "now",
2680
+ label: "Last 90 days",
2681
+ key: "last_90_days"
2682
+ }
2683
+ ], DEFAULT_RECENTLY_USED_RANGES_KEY = "recently-used-ranges", DatePicker_default = (e) => {
2684
+ let { locale: t = "en-US", className: n = "", popoverPlacement: r = "bottomLeft", dateFormat: i = "YYYY-MM-DD HH:mm:ss", start: a = "now-15m", end: o = "now", onRangeChange: c, isRefreshPaused: l = !0, refreshInterval: d = 1e4, showTimeSetting: m = !1, shouldTimeField: h = !0, showTimeField: g = !1, timeField: _, timeFields: v = [], showTimeInterval: b = !1, timeInterval: x, timeIntervalDisabled: S = !1, showTimeout: w = !1, timeout: T, autoFitLoading: E = !1, timeZone: j = "Asia/Shanghai", commonlyUsedRanges: M = DEFAULT_COMMONLY_USED_RANGES, recentlyUsedRangesKey: N, onRefreshChange: P, onRefresh: F } = e, [I, L] = useState(), [R, z] = useState(() => {
2685
+ if (!N) return [];
2686
+ let e = localStorage.getItem(`${N}-${DEFAULT_RECENTLY_USED_RANGES_KEY}`);
2687
+ try {
2688
+ let t = JSON.parse(e);
2689
+ return Array.isArray(t) ? t : [];
2690
+ } catch {
2691
+ return [];
2692
+ }
2693
+ }), B = ({ start: e, end: t, quickSelect: n, isAbsolute: r }) => {
2694
+ if (c({
2695
+ start: e,
2696
+ end: t,
2697
+ timeZone: j
2698
+ }), r && N) {
2699
+ let n = [...R];
2700
+ n.unshift({
2701
+ start: e,
2702
+ end: t,
2703
+ timeZone: j
2704
+ });
2705
+ let r = n.slice(0, 20);
2706
+ z(r), localStorage.setItem(`${N}-${DEFAULT_RECENTLY_USED_RANGES_KEY}`, JSON.stringify(r));
2707
+ }
2708
+ n && L(n);
2709
+ }, V = () => {
2710
+ let e = date_math_default.parse(a), t = date_math_default.parse(o, { roundUp: !0 });
2711
+ return {
2712
+ min: e && e.isValid() ? e : (0, import_dayjs_min.default)().subtract(15, "minute"),
2713
+ max: t && t.isValid() ? t : (0, import_dayjs_min.default)()
2714
+ };
2715
+ }, H = () => {
2716
+ let { min: e, max: t } = V(), n = t.diff(e);
2717
+ B({
2718
+ start: (0, import_dayjs_min.default)(e).subtract(n + 1, "ms").tz(j).toISOString(),
2719
+ end: (0, import_dayjs_min.default)(e).subtract(1, "ms").tz(j).toISOString()
2720
+ });
2721
+ }, U = () => {
2722
+ let { min: e, max: t } = V(), n = t.diff(e), r = (0, import_dayjs_min.default)(t).add(n + 1, "ms").tz(j);
2723
+ r.diff((0, import_dayjs_min.default)().tz(j), "s") > 0 || B({
2724
+ start: (0, import_dayjs_min.default)(t).add(1, "ms").tz(j).toISOString(),
2725
+ end: r.toISOString()
2726
+ });
2727
+ }, G = useMemo(() => m && g && h ? !_ : !1, [
2728
+ m,
2729
+ h,
2730
+ h,
2731
+ _
2732
+ ]), K = useMemo(() => isRelativeToNow(a, o), [a, o]), q = React.createRef(), [J, fn] = useState(() => fromMilliseconds(d)), { value: Y, units: X } = J, Z = () => {
2733
+ if (q.current) {
2734
+ let e = q.current.handleRefreshChange;
2735
+ e && e({
2736
+ refreshInterval: toMilliseconds(X, Y),
2737
+ isRefreshPaused: !l
2738
+ });
2739
+ }
2740
+ }, [Q, $] = useState(!1), pn = () => {
2741
+ $(!0), F && F({
2742
+ start: a,
2743
+ end: o,
2744
+ refresh: !0
2745
+ }), setTimeout(() => {
2746
+ $(!1);
2747
+ }, 1e3);
2748
+ };
2749
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
2750
+ className: `${index_module_default.datePicker} ${G ? index_module_default.minimum : ""} ${n}`,
2751
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Space.Compact, {
2752
+ className: index_module_default.RangeBox,
2753
+ style: { width: F ? "calc(100% - 72px)" : "calc(100% - 36px)" },
2754
+ children: [
2755
+ !G && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
2756
+ className: `${index_module_default.iconBtn} common-ui-datepicker-backward`,
2757
+ icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LeftOutlined, {}),
2758
+ onClick: H
2759
+ }),
2760
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Range_default, {
2761
+ ...e,
2762
+ onRef: q,
2763
+ popoverPlacement: r,
2764
+ dateFormat: i,
2765
+ start: a,
2766
+ end: o,
2767
+ onRangeChange: B,
2768
+ isRefreshPaused: l,
2769
+ refreshInterval: d,
2770
+ showTimeSetting: m,
2771
+ timeFields: v,
2772
+ showTimeInterval: b,
2773
+ timeInterval: x,
2774
+ showTimeout: w,
2775
+ timeout: T,
2776
+ autoFitLoading: E,
2777
+ timeZone: j,
2778
+ commonlyUsedRanges: M,
2779
+ recentlyUsedRanges: R,
2780
+ isMinimum: G,
2781
+ prevQuickSelect: I,
2782
+ currentLocales: locales_default[t] || {},
2783
+ onRefreshChange: P
2784
+ }),
2785
+ !G && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
2786
+ disabled: K,
2787
+ className: `${index_module_default.iconBtn} common-ui-datepicker-Forward`,
2788
+ icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RightOutlined, {}),
2789
+ onClick: U
2790
+ })
2791
+ ]
2792
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Space.Compact, {
2793
+ className: index_module_default.refreshBtn,
2794
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
2795
+ className: index_module_default.play,
2796
+ onClick: Z,
2797
+ children: l ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CaretRightOutlined, {}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PauseOutlined, {})
2798
+ }), F ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
2799
+ className: index_module_default.play,
2800
+ onClick: pn,
2801
+ children: Q ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoadingOutlined, {}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ReloadOutlined, {})
2802
+ }) : null]
2803
+ })]
2804
+ });
2805
+ }, query_bar_top_row_module_default = {
2806
+ datePicker: "_datePicker_10b0c_1",
2807
+ euiButtonRefresh: "_euiButtonRefresh_10b0c_5"
2808
+ };
2809
+ require_target();
2810
+ var QueryStringInput = withKibana(QueryStringInputUI);
2811
+ function QueryBarTopRow(e) {
2812
+ let [t, n] = useState(!1), [r, i] = useState(!1), { showQueryInput: a = !0, showDatePicker: o = !0, storage: s } = e;
2813
+ e.query && e.query.language;
2814
+ function c(t) {
2815
+ t.preventDefault(), h({
2816
+ query: e.query,
2817
+ dateRange: l()
2818
+ });
2819
+ }
2820
+ function l() {
2821
+ let t = {
2822
+ from: "",
2823
+ to: ""
2824
+ };
2825
+ return {
2826
+ from: e.dateRangeFrom || t.from,
2827
+ to: e.dateRangeTo || t.to
2828
+ };
2829
+ }
2830
+ function u(t) {
2831
+ e.onChange({
2832
+ query: t,
2833
+ dateRange: l()
2834
+ });
2835
+ }
2836
+ function d(e) {
2837
+ i(e);
2838
+ }
2839
+ function m({ start: t, end: r, isInvalid: i, isQuickSelection: a }) {
2840
+ n(i);
2841
+ let o = {
2842
+ query: e.query,
2843
+ dateRange: {
2844
+ from: t,
2845
+ to: r
2846
+ }
2847
+ };
2848
+ a ? e.onSubmit(o) : e.onChange(o);
2849
+ }
2850
+ function h({ query: t, dateRange: n }) {
2851
+ e.timeHistory && e.timeHistory.add(n), e.onSubmit({
2852
+ query: t,
2853
+ dateRange: n
2854
+ });
2855
+ }
2856
+ function g(e) {
2857
+ h({
2858
+ query: e,
2859
+ dateRange: l()
2860
+ });
2861
+ }
2862
+ function _() {
2863
+ if (v()) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QueryStringInput, {
2864
+ disableAutoFocus: e.disableAutoFocus,
2865
+ indexPatterns: e.indexPatterns,
2866
+ prepend: e.prepend,
2867
+ query: e.query,
2868
+ screenTitle: e.screenTitle,
2869
+ onChange: u,
2870
+ onChangeQueryInputFocus: d,
2871
+ onSubmit: g,
2872
+ dataTestSubj: e.dataTestSubj,
2873
+ services: e.services
2874
+ });
2875
+ }
2876
+ function v() {
2877
+ return !!(a && e.indexPatterns && e.query && s);
2878
+ }
2879
+ function y() {
2880
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
2881
+ onClick: c,
2882
+ disabled: t,
2883
+ loading: e.isLoading,
2884
+ icon: e.isDirty ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ArrowRightToLine, { className: "w-14px h-14px" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshCw, { className: "w-14px h-14px" }),
2885
+ color: e.isDirty ? "cyan" : "primary",
2886
+ variant: "solid",
2887
+ children: e.isDirty ? "Update" : "Refresh"
2888
+ });
2889
+ }
2890
+ function b() {
2891
+ return r ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DatePicker_default, {
2892
+ className: query_bar_top_row_module_default.datePicker,
2893
+ start: e.dateRangeFrom,
2894
+ end: e.dateRangeTo,
2895
+ onRangeChange: ({ start: e, end: t }) => {
2896
+ m({
2897
+ start: e,
2898
+ end: t
2899
+ });
2900
+ },
2901
+ isRefreshPaused: e.isRefreshPaused,
2902
+ refreshInterval: e.refreshInterval,
2903
+ onRefreshChange: ({ isRefreshPaused: t, refreshInterval: n }) => e.onRefreshChange({
2904
+ isPaused: t,
2905
+ refreshInterval: n
2906
+ }),
2907
+ showTimeSetting: !0,
2908
+ ...e.timeSetting || {},
2909
+ recentlyUsedRangesKey: "discover"
2910
+ });
2911
+ }
2912
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
2913
+ className: `flex items-center gap-2 justify-end w-full ${o ? "flex-wrap" : ""}`,
2914
+ children: [
2915
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
2916
+ className: "flex-1",
2917
+ children: _()
2918
+ }),
2919
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
2920
+ className: "flex-grow-0",
2921
+ children: b()
2922
+ }),
2923
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
2924
+ className: "flex-grow-0",
2925
+ children: y()
2926
+ })
2927
+ ]
2928
+ });
2929
+ }
2930
+ export { QueryBarTopRow as t };