@das-fed/upf-utils 6.4.0-dev.278 → 6.4.0-dev.280

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 (91) hide show
  1. package/api-services/es5.js +1538 -1535
  2. package/api-services/index.js +1215 -1202
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/es5.js +1258 -1280
  5. package/api-services/modules/app-manage/index.js +1048 -1072
  6. package/api-services/modules/app-manage/index.js.gz +0 -0
  7. package/api-services/modules/authentication/es5.js +680 -690
  8. package/api-services/modules/authentication/index.js +566 -572
  9. package/api-services/modules/authentication/index.js.gz +0 -0
  10. package/api-services/modules/bems/es5.js +678 -688
  11. package/api-services/modules/bems/index.js +562 -568
  12. package/api-services/modules/bems/index.js.gz +0 -0
  13. package/api-services/modules/contract/es5.js +680 -690
  14. package/api-services/modules/contract/index.js +566 -572
  15. package/api-services/modules/contract/index.js.gz +0 -0
  16. package/api-services/modules/duty-manage/es5.js +673 -683
  17. package/api-services/modules/duty-manage/index.js +556 -562
  18. package/api-services/modules/duty-manage/index.js.gz +0 -0
  19. package/api-services/modules/enterpriseright/es5.js +1258 -1280
  20. package/api-services/modules/enterpriseright/index.js +1048 -1072
  21. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  22. package/api-services/modules/es5.js +1533 -1551
  23. package/api-services/modules/file/es5.js +1432 -1429
  24. package/api-services/modules/file/index.js +1172 -1159
  25. package/api-services/modules/file/index.js.gz +0 -0
  26. package/api-services/modules/gateway-edge/es5.js +1258 -1280
  27. package/api-services/modules/gateway-edge/index.js +1048 -1072
  28. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  29. package/api-services/modules/index.js +1210 -1229
  30. package/api-services/modules/index.js.gz +0 -0
  31. package/api-services/modules/iot/es5.js +1071 -1084
  32. package/api-services/modules/iot/index.js +853 -863
  33. package/api-services/modules/iot/index.js.gz +0 -0
  34. package/api-services/modules/justauth/es5.js +682 -692
  35. package/api-services/modules/justauth/index.js +565 -571
  36. package/api-services/modules/justauth/index.js.gz +0 -0
  37. package/api-services/modules/knowledge/es5.js +651 -661
  38. package/api-services/modules/knowledge/index.js +539 -545
  39. package/api-services/modules/knowledge/index.js.gz +0 -0
  40. package/api-services/modules/link/es5.js +1258 -1280
  41. package/api-services/modules/link/index.js +1048 -1072
  42. package/api-services/modules/link/index.js.gz +0 -0
  43. package/api-services/modules/permission/es5.js +680 -690
  44. package/api-services/modules/permission/index.js +566 -572
  45. package/api-services/modules/permission/index.js.gz +0 -0
  46. package/api-services/modules/platformManage/es5.js +1272 -1273
  47. package/api-services/modules/platformManage/index.js +1057 -1049
  48. package/api-services/modules/platformManage/index.js.gz +0 -0
  49. package/api-services/modules/portal/es5.js +680 -690
  50. package/api-services/modules/portal/index.js +566 -572
  51. package/api-services/modules/portal/index.js.gz +0 -0
  52. package/api-services/modules/space-manage/es5.js +1258 -1280
  53. package/api-services/modules/space-manage/index.js +1048 -1072
  54. package/api-services/modules/space-manage/index.js.gz +0 -0
  55. package/api-services/modules/super-admin/es5.js +951 -958
  56. package/api-services/modules/super-admin/index.js +770 -772
  57. package/api-services/modules/super-admin/index.js.gz +0 -0
  58. package/api-services/modules/supplier/es5.js +677 -687
  59. package/api-services/modules/supplier/index.js +561 -567
  60. package/api-services/modules/supplier/index.js.gz +0 -0
  61. package/api-services/modules/supplychain-manage/es5.js +680 -690
  62. package/api-services/modules/supplychain-manage/index.js +566 -572
  63. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  64. package/api-services/modules/systemConfiguration/es5.js +694 -704
  65. package/api-services/modules/systemConfiguration/index.js +568 -574
  66. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  67. package/api-services/modules/tool/es5.js +680 -690
  68. package/api-services/modules/tool/index.js +566 -572
  69. package/api-services/modules/tool/index.js.gz +0 -0
  70. package/api-services/src/create-service/es5.js +1256 -1278
  71. package/api-services/src/create-service/index.js +1047 -1071
  72. package/api-services/src/create-service/index.js.gz +0 -0
  73. package/common-info/es5.js +1427 -1446
  74. package/common-info/getPermissionMethod/es5.js +1509 -1510
  75. package/common-info/getPermissionMethod/index.js +1274 -1266
  76. package/common-info/getPermissionMethod/index.js.gz +0 -0
  77. package/common-info/index.js +1205 -1225
  78. package/common-info/index.js.gz +0 -0
  79. package/common-tools/timezone-format/es5.d.ts +5 -54
  80. package/common-tools/timezone-format/es5.js +373 -550
  81. package/common-tools/timezone-format/index.d.ts +5 -54
  82. package/common-tools/timezone-format/index.js +271 -374
  83. package/common-tools/timezone-format/index.js.gz +0 -0
  84. package/create-api-service/es5.js +1257 -1279
  85. package/create-api-service/index.js +1048 -1072
  86. package/create-api-service/index.js.gz +0 -0
  87. package/curring-http/es5.js +417 -406
  88. package/curring-http/index.js +321 -323
  89. package/curring-http/index.js.gz +0 -0
  90. package/esm-map.json +1 -15
  91. package/package.json +3 -3
@@ -1,10 +1,9 @@
1
1
  import f from "dayjs";
2
- import { ref as Se } from "vue";
3
- import Me from "dayjs/plugin/utc";
4
- import _e from "dayjs/plugin/timezone";
2
+ import Ze from "dayjs/plugin/utc";
3
+ import Ie from "dayjs/plugin/timezone";
5
4
  import "@das-fed/upf-utils/config";
6
- const re = "/api/admin/basic-application/sys-info/v1/license/time-zone-packed-data";
7
- function Le() {
5
+ const ee = "/api/admin/basic-application/sys-info/v1/license/time-zone-packed-data";
6
+ function ye() {
8
7
  if (typeof localStorage > "u")
9
8
  return null;
10
9
  try {
@@ -13,18 +12,18 @@ function Le() {
13
12
  return null;
14
13
  }
15
14
  }
16
- function Ce() {
17
- const e = Le();
15
+ function pe() {
16
+ const e = ye();
18
17
  if (!(e == null || e === ""))
19
18
  return e.trim().startsWith("Bearer ") ? e.trim() : `Bearer ${e.trim()}`;
20
19
  }
21
- function oe(e = {}) {
22
- const t = e.authorization !== void 0 ? e.authorization === "" || e.authorization == null ? void 0 : e.authorization : Ce(), n = { ...e.headers || {} };
20
+ function te(e = {}) {
21
+ const t = e.authorization !== void 0 ? e.authorization === "" || e.authorization == null ? void 0 : e.authorization : pe(), n = { ...e.headers || {} };
23
22
  if (t != null && t !== "" && (n.Authorization = t), Object.keys(n).length !== 0)
24
23
  return { headers: n };
25
24
  }
26
- let L = null, S = null;
27
- const J = [
25
+ let L = null, w = null;
26
+ const R = [
28
27
  "utc",
29
28
  "uct",
30
29
  "zulu",
@@ -43,8 +42,8 @@ const J = [
43
42
  "etc/gmt+0",
44
43
  "etc/gmt-0",
45
44
  "etc/greenwich"
46
- ], be = { u: [1 / 0], o: [0] };
47
- function se(e) {
45
+ ], we = { u: [1 / 0], o: [0] };
46
+ function ne(e) {
48
47
  if (!e || typeof e != "object")
49
48
  throw new Error("Invalid IANA response: expected an object");
50
49
  const t = e;
@@ -57,7 +56,7 @@ function se(e) {
57
56
  links: Array.isArray(n) ? n : []
58
57
  };
59
58
  }
60
- async function ke(e, t) {
59
+ async function De(e, t) {
61
60
  if (typeof fetch != "function")
62
61
  throw new Error("fetch is not available. Pass preloadFromApi options.fetchJson.");
63
62
  const n = await fetch(e, t);
@@ -65,68 +64,68 @@ async function ke(e, t) {
65
64
  throw new Error(`IANA request failed: ${n.status} ${n.statusText}`);
66
65
  return n.json();
67
66
  }
68
- function ae(e) {
69
- return S = se(e), L = xe(S), S;
67
+ function oe(e) {
68
+ return w = ne(e), L = Me(w), w;
70
69
  }
71
- function Ne() {
72
- return S;
70
+ function Ee() {
71
+ return w;
73
72
  }
74
- async function Oe(e = {}) {
75
- const t = e.url ?? re, n = oe({
73
+ async function Ae(e = {}) {
74
+ const t = e.url ?? ee, n = te({
76
75
  authorization: e.authorization,
77
76
  headers: e.headers
78
- }), o = await (e.fetchJson ?? ke)(t, n), s = e.parseResponse ? e.parseResponse(o) : se(o);
79
- return ae(s);
77
+ }), o = await (e.fetchJson ?? De)(t, n), s = e.parseResponse ? e.parseResponse(o) : ne(o);
78
+ return oe(s);
80
79
  }
81
- function ve() {
82
- L = null, S = null;
80
+ function ze() {
81
+ L = null, w = null;
83
82
  }
84
- function W(e) {
83
+ function H(e) {
85
84
  return e > 96 ? e - 87 : e > 64 ? e - 29 : e - 48;
86
85
  }
87
- function Pe(e) {
86
+ function Le(e) {
88
87
  let t = 1, n = 0, r = 0, o = 1;
89
88
  const s = e.split("."), i = s[0], c = s[1] || "";
90
89
  e.charCodeAt(0) === 45 && (t = -1);
91
90
  for (let a = 0; a < i.length; a++) {
92
91
  const u = i.charCodeAt(a);
93
- u !== 45 && (n = 60 * n + W(u));
92
+ u !== 45 && (n = 60 * n + H(u));
94
93
  }
95
94
  for (let a = 0; a < c.length; a++)
96
- o = o / 60, r += W(c.charCodeAt(a)) * o;
95
+ o = o / 60, r += H(c.charCodeAt(a)) * o;
97
96
  return (n + r) * t;
98
97
  }
99
- function Y(e) {
98
+ function k(e) {
100
99
  const t = [];
101
100
  for (const n of e)
102
- t.push(Pe(n));
101
+ t.push(Le(n));
103
102
  return t;
104
103
  }
105
- function K(e) {
104
+ function J(e) {
106
105
  const t = e.trim();
107
106
  return t ? t.split(" ") : [];
108
107
  }
109
- function Ye(e) {
108
+ function Se(e) {
110
109
  let t = 0;
111
110
  const n = [];
112
111
  for (const r of e)
113
112
  t += r, n.push(Math.round(t * 6e4));
114
113
  return n.push(1 / 0), n;
115
114
  }
116
- function Ue(e, t) {
115
+ function Ce(e, t) {
117
116
  const n = [];
118
117
  for (const r of t)
119
118
  n.push(e[r]);
120
119
  return n;
121
120
  }
122
- function C(e) {
121
+ function S(e) {
123
122
  return typeof e == "string" ? e.trim().toLowerCase() : "";
124
123
  }
125
- function Fe(e) {
124
+ function ve(e) {
126
125
  const t = e.split("|");
127
126
  if (t.length < 5)
128
127
  throw new Error("Invalid packed zone format");
129
- const n = C(t[0]), r = Y(K(t[2])), o = Y(t[3].split("")), s = Ye(Y(K(t[4]))), i = Ue(r, o);
128
+ const n = S(t[0]), r = k(J(t[2])), o = k(t[3].split("")), s = Se(k(J(t[4]))), i = Ce(r, o);
130
129
  return {
131
130
  name: n,
132
131
  rule: {
@@ -135,73 +134,73 @@ function Fe(e) {
135
134
  }
136
135
  };
137
136
  }
138
- function Ve(e, t, n) {
139
- const r = C(t), o = C(n);
137
+ function be(e, t, n) {
138
+ const r = S(t), o = S(n);
140
139
  if (!r || !o) return;
141
140
  const s = e[r], i = e[o];
142
141
  s && !i ? e[o] = s : i && !s && (e[r] = i);
143
142
  }
144
- function je(e) {
145
- const t = J.map((n) => e[n]).find(Boolean) || be;
146
- J.forEach((n) => {
143
+ function _e(e) {
144
+ const t = R.map((n) => e[n]).find(Boolean) || we;
145
+ R.forEach((n) => {
147
146
  e[n] || (e[n] = t);
148
147
  });
149
148
  }
150
- function xe(e) {
149
+ function Me(e) {
151
150
  if (!e || !Array.isArray(e.zones))
152
151
  throw new TypeError("packed iana data must contain zones array");
153
152
  const t = {};
154
153
  for (const r of e.zones) {
155
- const o = Fe(r);
154
+ const o = ve(r);
156
155
  t[o.name] = o.rule;
157
156
  }
158
157
  const n = e.links || [];
159
158
  for (const r of n) {
160
159
  const o = r.split("|");
161
- o.length < 2 || Ve(t, o[0], o[1]);
160
+ o.length < 2 || be(t, o[0], o[1]);
162
161
  }
163
- return je(t), t;
162
+ return _e(t), t;
164
163
  }
165
- function Re() {
164
+ function ke() {
166
165
  if (!L)
167
166
  throw new Error(
168
167
  "IANA data not loaded. Await dayjsTimezoneIanaPlugin.preloadFromApi({ url: ... }) before dayjs.extend(dayjsTimezoneIanaPlugin)."
169
168
  );
170
169
  return L;
171
170
  }
172
- function He(e, t, n) {
173
- const r = C(t), o = n[r];
171
+ function Oe(e, t, n) {
172
+ const r = S(t), o = n[r];
174
173
  if (o === void 0)
175
174
  throw Error("Unknown Time Zone " + t);
176
175
  const s = o.o, i = o.u, c = i.length - 1;
177
176
  for (let a = 0; a < c; a++) {
178
177
  let u = s[a];
179
- const m = s[a && a - 1];
180
- if (u > m && (u = m), e < i[a] - u * 6e4)
178
+ const l = s[a && a - 1];
179
+ if (u > l && (u = l), e < i[a] - u * 6e4)
181
180
  return s[a];
182
181
  }
183
182
  return s[c];
184
183
  }
185
- const Ge = (e, t, n) => {
184
+ const Ue = (e, t, n) => {
186
185
  var a, u;
187
186
  let r = "";
188
- const o = n.tz, s = (a = o == null ? void 0 : o.guess) == null ? void 0 : a.bind(o), i = (u = o == null ? void 0 : o.setDefault) == null ? void 0 : u.bind(o), c = (m, g, D) => {
189
- const _ = D || g || r, y = D ? g : void 0;
190
- return (typeof n.utc == "function" ? n.utc(m, y) : n(m, y).utc()).tz(_);
187
+ const o = n.tz, s = (a = o == null ? void 0 : o.guess) == null ? void 0 : a.bind(o), i = (u = o == null ? void 0 : o.setDefault) == null ? void 0 : u.bind(o), c = (l, T, Z) => {
188
+ const z = Z || T || r, g = Z ? T : void 0;
189
+ return (typeof n.utc == "function" ? n.utc(l, g) : n(l, g).utc()).tz(z);
191
190
  };
192
- o && Object.assign(c, o), c.setDefault = (m) => {
193
- r = m, i == null || i(m);
194
- }, c.guess = () => s ? s() : typeof Intl < "u" && typeof Intl.DateTimeFormat == "function" ? Intl.DateTimeFormat().resolvedOptions().timeZone || r || "UTC" : r || "UTC", n.tz = c, t.prototype.tz = function(m = r, g) {
191
+ o && Object.assign(c, o), c.setDefault = (l) => {
192
+ r = l, i == null || i(l);
193
+ }, c.guess = () => s ? s() : typeof Intl < "u" && typeof Intl.DateTimeFormat == "function" ? Intl.DateTimeFormat().resolvedOptions().timeZone || r || "UTC" : r || "UTC", n.tz = c, t.prototype.tz = function(l = r, T) {
195
194
  var I;
196
- const D = m || ((I = c.guess) == null ? void 0 : I.call(c)) || "UTC", _ = this.utc().valueOf(), y = He(_, D, Re());
197
- return this.utcOffset(-y, g);
195
+ const Z = l || ((I = c.guess) == null ? void 0 : I.call(c)) || "UTC", z = this.utc().valueOf(), g = Oe(z, Z, ke());
196
+ return this.utcOffset(-g, T);
198
197
  };
199
- }, T = Ge;
200
- T.preloadFromApi = Oe;
201
- T.preloadFromData = ae;
202
- T.getCachedPackedData = Ne;
203
- T.clearIanaCache = ve;
204
- function $e(e) {
198
+ }, d = Ue;
199
+ d.preloadFromApi = Ae;
200
+ d.preloadFromData = oe;
201
+ d.getCachedPackedData = Ee;
202
+ d.clearIanaCache = ze;
203
+ function Ne(e) {
205
204
  if (!e || typeof e != "object")
206
205
  throw new Error("Invalid IANA response: expected an object");
207
206
  const t = e;
@@ -214,14 +213,14 @@ function $e(e) {
214
213
  links: Array.isArray(n) ? n : []
215
214
  };
216
215
  }
217
- function ie(e, t) {
216
+ function re(e, t) {
218
217
  if (!e || typeof e.tz != "object" || typeof e.tz.load != "function")
219
218
  throw new Error("moment.tz.load is missing. Import moment-timezone before calling loadIanaData.");
220
219
  if (!t || !Array.isArray(t.zones))
221
220
  throw new Error("Invalid packed IANA data: zones must be an array");
222
221
  e.tz.load(t);
223
222
  }
224
- async function Be(e, t) {
223
+ async function Fe(e, t) {
225
224
  if (typeof fetch != "function")
226
225
  throw new Error("fetch is not available. Pass loadIanaFromApi options.fetchJson in Node or polyfill fetch.");
227
226
  const n = await fetch(e, t);
@@ -229,21 +228,21 @@ async function Be(e, t) {
229
228
  throw new Error(`IANA request failed: ${n.status} ${n.statusText}`);
230
229
  return n.json();
231
230
  }
232
- async function q(e, t, n) {
233
- let r = re, o = {};
231
+ async function W(e, t, n) {
232
+ let r = ee, o = {};
234
233
  typeof t == "string" ? (r = t, o = n ?? {}) : t != null && (o = t);
235
- const s = oe({
234
+ const s = te({
236
235
  authorization: o.authorization,
237
236
  headers: o.headers
238
- }), c = await (o.fetchJson ?? Be)(r, s), a = o.parseResponse ? o.parseResponse(c) : $e(c);
239
- return ie(e, a), a;
237
+ }), c = await (o.fetchJson ?? Fe)(r, s), a = o.parseResponse ? o.parseResponse(c) : Ne(c);
238
+ return re(e, a), a;
240
239
  }
241
- f.extend(Me);
242
- f.extend(_e);
243
- const A = "zh-CN", Je = "YYYY.MM.DD HH:mm:ss", w = "YYYY-MM-DD HH:mm:ss", We = "YYYY-MM-DD HH:mm:ss.SSS", Ke = "YYYY-MM-DDTHH:mm:ssZ", ce = "YYYY-MM-DD HH:mm", N = "UTC", j = "timeZone", fe = "timezonechange", qe = "__UPF_TIMEZONE_CHANGE__", Xe = "ianatimezonedatachange", X = {
240
+ f.extend(Ze);
241
+ f.extend(Ie);
242
+ const p = "zh-CN", Pe = "YYYY.MM.DD HH:mm:ss", b = "YYYY-MM-DD HH:mm:ss", se = "YYYY-MM-DD HH:mm", F = "UTC", P = "timeZone", ae = "timezonechange", je = "__UPF_TIMEZONE_CHANGE__", B = {
244
243
  zh: "夏令时",
245
244
  default: "DST"
246
- }, Qe = [
245
+ }, xe = [
247
246
  "UTC",
248
247
  "UCT",
249
248
  "Zulu",
@@ -262,75 +261,65 @@ const A = "zh-CN", Je = "YYYY.MM.DD HH:mm:ss", w = "YYYY-MM-DD HH:mm:ss", We = "
262
261
  "Etc/GMT+0",
263
262
  "Etc/GMT-0",
264
263
  "Etc/Greenwich"
265
- ], et = f, E = /* @__PURE__ */ new Set();
266
- var te, ne;
267
- const tt = (ne = (te = f.tz) == null ? void 0 : te.guess) == null ? void 0 : ne.bind(f.tz);
268
- let b = !1;
269
- const l = (e) => (e || "").trim(), U = (e) => {
270
- const t = l(e);
271
- t && E.add(t);
272
- }, nt = () => Qe.forEach(U), p = () => typeof window > "u" ? void 0 : window, rt = (e) => ({
273
- version: typeof e.version == "string" ? e.version : void 0,
274
- zones: Array.isArray(e.zones) ? e.zones.filter((t) => typeof t == "string") : [],
275
- links: Array.isArray(e.links) ? e.links.filter((t) => typeof t == "string") : []
276
- }), F = (e, t, n = Date.now()) => ({
277
- ...rt(e),
278
- source: t,
279
- timestamp: n
280
- }), O = (e, t = "iana") => {
281
- const n = F(e, t);
264
+ ], y = /* @__PURE__ */ new Set();
265
+ var Q, X;
266
+ const Ve = (X = (Q = f.tz) == null ? void 0 : Q.guess) == null ? void 0 : X.bind(f.tz);
267
+ let C = !1;
268
+ const m = (e) => (e || "").trim(), O = (e) => {
269
+ const t = m(e);
270
+ t && y.add(t);
271
+ }, $e = () => xe.forEach(O), D = () => typeof window > "u" ? void 0 : window, j = () => {
282
272
  try {
283
- const r = p();
284
- r && (r.__UPF_IANA_TIMEZONE_DATA__ = n, r.dispatchEvent(new CustomEvent(Xe, { detail: n })));
273
+ return typeof sessionStorage > "u" ? "" : m(sessionStorage.getItem(P));
285
274
  } catch {
275
+ return "";
286
276
  }
287
- return n;
288
- }, ot = () => {
289
- var r;
290
- const e = p(), t = e == null ? void 0 : e.__UPF_IANA_TIMEZONE_DATA__;
291
- if (t && Array.isArray(t.zones) && t.zones.length)
292
- return F(
293
- t,
294
- t.source === "fallback" ? "fallback" : "iana",
295
- Number(t.timestamp || Date.now())
296
- );
297
- const n = (r = T.getCachedPackedData) == null ? void 0 : r.call(T);
298
- return n ? F(n, "iana") : null;
299
- }, Vt = ot, x = () => {
277
+ }, Ge = (e) => {
300
278
  try {
301
- return typeof sessionStorage > "u" ? "" : l(sessionStorage.getItem(j));
279
+ typeof sessionStorage < "u" && sessionStorage.setItem(P, e);
302
280
  } catch {
303
- return "";
304
281
  }
305
- }, st = (e) => {
282
+ }, x = () => {
283
+ var t;
284
+ const e = D();
306
285
  try {
307
- typeof sessionStorage < "u" && sessionStorage.setItem(j, e);
286
+ return m((t = e == null ? void 0 : e.__UPF_TIMEZONE_SNAPSHOT__) == null ? void 0 : t.timeZone);
308
287
  } catch {
288
+ return "";
309
289
  }
310
- }, R = () => {
290
+ }, V = () => {
311
291
  var t;
312
- const e = p();
292
+ const e = D();
313
293
  if (!(e != null && e.name)) return "";
314
294
  try {
315
295
  const n = (t = JSON.parse(e.name || "{}")) == null ? void 0 : t.parentData;
316
- return l(n == null ? void 0 : n.timeZone);
296
+ return m(n == null ? void 0 : n.timeZone);
317
297
  } catch {
318
298
  return "";
319
299
  }
320
- }, ue = (e, t) => ({
321
- timeZone: l(e),
300
+ }, ie = (e, t) => ({
301
+ timeZone: m(e),
322
302
  source: t,
323
303
  timestamp: Date.now()
324
- }), k = Se(x() || R()), V = /* @__PURE__ */ new Set();
325
- let Q = !1;
326
- const le = () => {
304
+ });
305
+ let U = x() || V() || j();
306
+ const ce = {
307
+ get value() {
308
+ return U;
309
+ },
310
+ set value(e) {
311
+ Be(e, { source: "clientTimeZone.value" });
312
+ }
313
+ }, N = /* @__PURE__ */ new Set();
314
+ let K = !1;
315
+ const Ye = () => {
327
316
  if (!(typeof Intl > "u" || typeof Intl.DateTimeFormat != "function"))
328
317
  try {
329
318
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
330
319
  } catch {
331
320
  return;
332
321
  }
333
- }, at = (e) => {
322
+ }, Re = (e) => {
334
323
  if (!e) return !1;
335
324
  if (typeof Intl > "u" || typeof Intl.DateTimeFormat != "function") return !0;
336
325
  try {
@@ -338,244 +327,166 @@ const le = () => {
338
327
  } catch {
339
328
  return !1;
340
329
  }
341
- }, z = (e) => {
342
- const t = l(e);
343
- return t ? E.size ? E.has(t) : at(t) : !1;
344
- }, v = (e) => (E.clear(), e.zones.forEach((t) => {
330
+ }, E = (e) => {
331
+ const t = m(e);
332
+ return t ? y.size ? y.has(t) : Re(t) : !1;
333
+ }, _ = (e) => (y.clear(), e.zones.forEach((t) => {
345
334
  const n = t.split("|")[0];
346
- U(n);
335
+ O(n);
347
336
  }), (e.links || []).forEach((t) => {
348
337
  t.split("|").forEach((n) => {
349
- U(n);
338
+ O(n);
350
339
  });
351
- }), nt(), Array.from(E)), jt = () => Array.from(E), xt = async (e, t = {}) => {
352
- const n = T.preloadFromData(e), r = v(n);
353
- return b || (f.extend(T), b = !0), H(t.defaultTimeZone), t.syncRuntimeSnapshot !== !1 && O(n, t.runtimeSource || "iana"), { data: n, knownTimeZones: r };
354
- }, Rt = async (e = {}) => {
355
- const t = await T.preloadFromApi(e), n = v(t);
356
- return b || (f.extend(T), b = !0), H(e.defaultTimeZone), e.syncRuntimeSnapshot !== !1 && O(t, e.runtimeSource || "iana"), { data: t, knownTimeZones: n };
357
- }, Ht = (e, t) => (ie(e, t), v(t), O(t, "iana"), t), Gt = async (e, t = {}) => {
358
- const { url: n, ...r } = t, o = n ? await q(e, n, r) : await q(e, r);
359
- return v(o), O(o, "iana"), o;
360
- }, me = () => {
340
+ }), $e(), Array.from(y)), wt = () => Array.from(y), Dt = async (e, t = {}) => {
341
+ const n = d.preloadFromData(e), r = _(n);
342
+ return C || (f.extend(d), C = !0), $(t.defaultTimeZone), { data: n, knownTimeZones: r };
343
+ }, Et = async (e = {}) => {
344
+ const t = await d.preloadFromApi(e), n = _(t);
345
+ return C || (f.extend(d), C = !0), $(e.defaultTimeZone), { data: t, knownTimeZones: n };
346
+ }, At = (e, t) => (re(e, t), _(t), t), zt = async (e, t = {}) => {
347
+ const { url: n, ...r } = t, o = n ? await W(e, n, r) : await W(e, r);
348
+ return _(o), o;
349
+ }, He = () => {
361
350
  var n;
362
- const e = (n = f.tz) == null ? void 0 : n.guess, t = typeof e == "function" ? e : tt;
351
+ const e = (n = f.tz) == null ? void 0 : n.guess, t = typeof e == "function" ? e : Ve;
363
352
  try {
364
353
  return t == null ? void 0 : t();
365
354
  } catch {
366
355
  return;
367
356
  }
368
- }, H = (e) => {
357
+ }, $ = (e) => {
369
358
  var r, o;
370
- const t = l(e), n = f.tz;
371
- return t ? z(t) ? ((o = n == null ? void 0 : n.setDefault) == null || o.call(n, t), !0) : !1 : ((r = n == null ? void 0 : n.setDefault) == null || r.call(n, N), !0);
372
- }, it = (e) => {
373
- V.forEach((t) => {
359
+ const t = m(e), n = f.tz;
360
+ return t ? E(t) ? ((o = n == null ? void 0 : n.setDefault) == null || o.call(n, t), !0) : !1 : ((r = n == null ? void 0 : n.setDefault) == null || r.call(n, F), !0);
361
+ }, Je = (e) => {
362
+ N.forEach((t) => {
374
363
  try {
375
364
  t(e.timeZone, e);
376
365
  } catch {
377
366
  }
378
367
  });
379
- }, ct = (e) => {
368
+ }, We = (e) => {
380
369
  var t;
381
370
  try {
382
- (t = p()) == null || t.dispatchEvent(new CustomEvent(fe, { detail: e }));
371
+ (t = D()) == null || t.dispatchEvent(new CustomEvent(ae, { detail: e }));
383
372
  } catch {
384
373
  }
385
374
  }, G = (e, t = {}) => {
386
- const n = l(e), r = ue(n, t.source), o = k.value !== n;
387
- o && (k.value = n);
375
+ const n = m(e), r = ie(n, t.source), o = U !== n;
376
+ o && (U = n);
388
377
  try {
389
- const s = p();
378
+ const s = D();
390
379
  s && (s.__UPF_TIMEZONE_SNAPSHOT__ = r);
391
380
  } catch {
392
381
  }
393
- return t.persist !== !1 && st(n), t.syncDefault !== !1 && H(n), t.notify !== !1 && o && it(r), t.dispatchEvent !== !1 && ct(r), n;
394
- }, $t = (e, t = {}) => G(l(e), {
382
+ return t.persist !== !1 && Ge(n), t.syncDefault !== !1 && $(n), t.notify !== !1 && o && Je(r), t.dispatchEvent !== !1 && We(r), n;
383
+ }, Be = (e, t = {}) => G(m(e), {
395
384
  persist: !0,
396
385
  notify: !0,
397
386
  dispatchEvent: !0,
398
387
  syncDefault: !0,
399
388
  ...t
400
- }), Bt = (e = "sync") => {
401
- const t = x() || R();
402
- return t || k.value ? G(t, { source: e, dispatchEvent: !1 }) : "";
403
- }, Jt = (e) => (V.add(e), () => V.delete(e)), ft = (e) => {
389
+ }), Lt = (e = "sync") => {
390
+ const t = x() || V() || j();
391
+ return t || ce.value ? G(t, { source: e, persist: !1, dispatchEvent: !1 }) : "";
392
+ }, St = (e) => (N.add(e), () => N.delete(e)), Ke = (e) => {
404
393
  var n, r, o, s;
405
- if (typeof e == "string") return ue(e);
394
+ if (typeof e == "string") return ie(e);
406
395
  if (!e || typeof e != "object") return null;
407
396
  const t = "timeZone" in e ? e.timeZone : e != null && e.detail && "timeZone" in e.detail ? e.detail.timeZone : e != null && e.params && "timeZone" in e.params ? e.params.timeZone : void 0;
408
397
  return t == null ? null : {
409
- timeZone: l(t),
398
+ timeZone: m(t),
410
399
  source: e.source || ((n = e.detail) == null ? void 0 : n.source) || ((r = e.params) == null ? void 0 : r.source),
411
400
  timestamp: Number(e.timestamp || ((o = e.detail) == null ? void 0 : o.timestamp) || ((s = e.params) == null ? void 0 : s.timestamp) || Date.now())
412
401
  };
413
- }, $ = (e, t) => {
414
- const n = ft(e);
402
+ }, Y = (e, t) => {
403
+ const n = Ke(e);
415
404
  n && G(n.timeZone, {
416
405
  source: n.source || t,
406
+ persist: !1,
417
407
  dispatchEvent: !1
418
408
  });
419
- }, ut = (e) => {
420
- $(e.detail, "window-event");
421
- }, lt = (e) => {
422
- e.key === j && $({ timeZone: e.newValue || "", source: "storage" }, "storage");
423
- }, mt = (e) => {
409
+ }, qe = (e) => {
410
+ Y(e.detail, "window-event");
411
+ }, Qe = (e) => {
412
+ e.key === P && Y({ timeZone: e.newValue || "", source: "storage" }, "storage");
413
+ }, Xe = (e) => {
424
414
  const t = e.data;
425
- !t || t.type !== qe || $(t.detail || t, "message");
426
- }, dt = () => {
427
- const e = p();
428
- return !e || Q ? !1 : (Q = !0, e.addEventListener(fe, ut), e.addEventListener("storage", lt), e.addEventListener("message", mt), !0);
415
+ !t || t.type !== je || Y(t.detail || t, "message");
416
+ }, et = () => {
417
+ const e = D();
418
+ return !e || K ? !1 : (K = !0, e.addEventListener(ae, qe), e.addEventListener("storage", Qe), e.addEventListener("message", Xe), !0);
429
419
  };
430
- dt();
431
- const Tt = () => {
432
- const t = l(k.value) || x() || R() || me() || le();
433
- return z(t) ? l(t) : N;
434
- }, d = (e) => {
435
- const t = l(e) || Tt();
436
- return z(t) ? t : N;
437
- }, de = () => {
438
- const e = me() || le();
439
- return z(e) ? l(e) : N;
440
- }, Te = (e = {}) => {
441
- const t = l(e.timeZone);
442
- return t ? d(t) : e.useClientTimeZone ? d() : de();
443
- }, B = (e) => e === "instant" || e === "local" ? e : "none", he = (e = {}) => B(e.timeZoneMode) !== "none", ht = () => {
420
+ et();
421
+ const tt = () => {
422
+ const t = m(ce.value) || x() || V() || j() || He() || Ye();
423
+ return E(t) ? m(t) : F;
424
+ }, h = (e) => {
425
+ const t = m(e) || tt();
426
+ return E(t) ? t : F;
427
+ }, nt = () => {
444
428
  var e;
445
- return typeof window < "u" && ((e = window.navigator) != null && e.language) ? window.navigator.language : A;
446
- }, Ze = (e, t = []) => {
447
- const r = e || ht() || A, o = r.toLowerCase();
429
+ return typeof window < "u" && ((e = window.navigator) != null && e.language) ? window.navigator.language : p;
430
+ }, ot = (e, t = []) => {
431
+ const r = e || nt() || p, o = r.toLowerCase();
448
432
  if (!t.length)
449
- return o === "en" ? "en-US" : o === "zh" || o === "zh-cn" ? A : r;
433
+ return o === "en" ? "en-US" : o === "zh" || o === "zh-cn" ? p : r;
450
434
  const s = t.find((a) => a.toLowerCase() === o);
451
435
  if (s) return s;
452
436
  const i = o.split("-")[0], c = t.find((a) => a.toLowerCase().split("-")[0] === i);
453
- return c || (i === "en" ? t.find((a) => a.toLowerCase().startsWith("en-")) || r : i === "zh" ? t.find((a) => a.toLowerCase().startsWith("zh-")) || A : r);
454
- }, M = (e) => {
437
+ return c || (i === "en" ? t.find((a) => a.toLowerCase().startsWith("en-")) || r : i === "zh" ? t.find((a) => a.toLowerCase().startsWith("zh-")) || p : r);
438
+ }, A = (e) => {
455
439
  if (f.isDayjs(e)) return e;
456
440
  if (e == null || e === "") return f();
457
441
  const t = f(e);
458
442
  return t.isValid() ? t : f();
459
- }, h = (e) => e == null || e === "", Z = (e) => f.isDayjs(e) ? e : h(e) ? f() : f(e), Zt = (e, t = {}) => {
460
- const n = B(t.timeZoneMode);
461
- if (n === "none") return Z(e);
462
- const r = Te(t);
463
- if (n === "local")
464
- return h(e) ? f().tz(r) : f.isDayjs(e) ? e.tz(r) : f.tz(e, r);
465
- const o = Z(e);
466
- return o.isValid() ? o.tz(r) : o;
467
- }, ge = (e, t = !1) => {
468
- const n = l(e);
469
- return n ? d(n) : t ? d() : "";
470
- }, Wt = () => et, Kt = (e, t = {}) => he(t) ? h(e) ? null : Zt(e, t) : e, gt = (e, t = {}) => {
471
- const n = B(t.timeZoneMode), r = t.timeZoneValueFormat || (n === "instant" ? Ke : w);
472
- return e.format(r);
473
- }, qt = (e, t = {}) => {
474
- if (!he(t) || h(e)) return e;
475
- const n = Te(t), r = Z(e);
476
- if (!r.isValid()) return e;
477
- const o = r.format(We), s = f.tz(o, n);
478
- return gt(s, t);
479
- }, yt = (e, t) => M(e).tz(d(t)).utcOffset(), Dt = (e, t, n = ce) => M(e).tz(d(t)).format(n), It = /^(\d{4}-\d{2}-\d{2})/, At = (e = {}) => {
480
- const t = l(e.timeZone);
481
- return t ? d(t) : e.useClientTimeZone === !1 ? de() : d();
482
- }, Et = (e, t, n) => {
483
- if (h(e)) return "";
484
- if (n === "instant") {
485
- const o = Z(e);
486
- return o.isValid() ? o.tz(t).format("YYYY-MM-DD") : "";
487
- }
488
- if (typeof e == "string") {
489
- const o = e.trim().match(It);
490
- if (o != null && o[1]) return o[1];
491
- }
492
- const r = Z(e);
493
- return r.isValid() ? r.format("YYYY-MM-DD") : "";
494
- }, ye = (e, t = {}, n) => {
495
- const r = At(t), o = Et(e, r, t.inputMode || "date");
496
- if (!o) return;
497
- const s = f.tz(o, r);
498
- if (s.isValid())
499
- return (n === "start" ? s.startOf("day") : s.endOf("day")).valueOf();
500
- }, Xt = (e, t = {}) => ye(e, t, "start"), Qt = (e, t = {}) => ye(e, t, "end"), wt = (e, t) => Z(e).format(t.format), De = (e, t) => {
501
- const n = t.format || w, r = ge(t.timeZone, t.useClientTimeZone);
502
- if (!r) return wt(e, { format: n });
443
+ }, v = (e) => e == null || e === "", fe = (e) => f.isDayjs(e) ? e : v(e) ? f() : f(e), ue = (e, t = !1) => {
444
+ const n = m(e);
445
+ return n ? h(n) : t ? h() : "";
446
+ }, rt = (e, t) => A(e).tz(h(t)).utcOffset(), st = (e, t, n = se) => A(e).tz(h(t)).format(n), at = (e, t) => fe(e).format(t.format), le = (e, t) => {
447
+ const n = t.format || b, r = ue(t.timeZone, t.useClientTimeZone);
448
+ if (!r) return at(e, { format: n });
503
449
  if (t.inputMode === "local")
504
- return h(e) ? f().tz(r).format(n) : f.tz(e, r).format(n);
505
- const o = Z(e);
450
+ return v(e) ? f().tz(r).format(n) : f.tz(e, r).format(n);
451
+ const o = fe(e);
506
452
  return o.isValid() ? o.tz(r).format(n) : o.format(n);
507
- }, pt = (e) => typeof e == "function" && typeof (e == null ? void 0 : e.tz) == "function", zt = (e, t) => {
453
+ }, it = (e) => typeof e == "function", ct = (e, t) => {
508
454
  var a, u;
509
- const { moment: n } = t, r = t.format || w;
510
- if (!pt(n)) return De(e, { ...t, dateLibrary: "dayjs" });
511
- const o = h(e) ? void 0 : e, s = ge(t.timeZone, t.useClientTimeZone);
455
+ const { moment: n } = t, r = t.format || b;
456
+ if (!it(n)) return le(e, { ...t, dateLibrary: "dayjs" });
457
+ const o = v(e) ? void 0 : e, s = ue(t.timeZone, t.useClientTimeZone);
512
458
  if (!s || typeof n.tz != "function") return n(o).format(r);
513
459
  if (t.inputMode === "local")
514
- return h(e) ? ((u = (a = n()).tz) == null ? void 0 : u.call(a, s).format(r)) || n().format(r) : n.tz(o, s).format(r);
460
+ return v(e) ? ((u = (a = n()).tz) == null ? void 0 : u.call(a, s).format(r)) || n().format(r) : n.tz(o, s).format(r);
515
461
  const i = n(o);
516
462
  return (typeof i.tz == "function" ? i.tz(s) : n.tz(o, s)).format(r);
517
- }, Ie = (e, t = {}) => {
463
+ }, ft = (e, t = {}) => {
518
464
  const n = typeof t == "string" ? { format: t } : t || {}, r = {
519
465
  ...n,
520
- format: n.format || w
521
- };
522
- return r.dateLibrary === "moment" ? zt(e, r) : De(e, r);
523
- }, St = (e, t, n) => new Intl.DateTimeFormat(n, {
524
- timeZone: t,
525
- year: "numeric",
526
- month: "2-digit",
527
- day: "2-digit",
528
- hour: "2-digit",
529
- minute: "2-digit",
530
- second: "2-digit",
531
- hourCycle: "h23"
532
- }).formatToParts(e).reduce((o, s) => (s.type !== "literal" && (o[s.type] = s.value), o), {}), Mt = (e, t, n) => {
533
- const r = {
534
- YYYY: t.year || "0000",
535
- YY: (t.year || "0000").slice(-2),
536
- MM: t.month || "01",
537
- M: String(Number(t.month || "1")),
538
- DD: t.day || "01",
539
- D: String(Number(t.day || "1")),
540
- HH: t.hour || "00",
541
- H: String(Number(t.hour || "0")),
542
- mm: t.minute || "00",
543
- m: String(Number(t.minute || "0")),
544
- ss: t.second || "00",
545
- s: String(Number(t.second || "0")),
546
- SSS: n
466
+ format: n.format || b
547
467
  };
548
- return e.replace(/YYYY|SSS|YY|MM|DD|HH|mm|ss|M|D|H|m|s/g, (o) => r[o] ?? o);
549
- }, en = (e, t = {}) => {
550
- const n = typeof t == "string" ? { format: t } : t || {}, r = n.format || w, o = Ze(n.locale || A), s = d(n.timeZone), i = Z(e);
551
- if (!i.isValid()) return i.format(r);
552
- try {
553
- const c = i.toDate(), a = St(c, s, o), u = String(c.getMilliseconds()).padStart(3, "0");
554
- return Mt(r, a, u);
555
- } catch {
556
- return Ie(e, { format: r, timeZone: s });
557
- }
558
- }, tn = (e, t = w, n = {}) => Ie(e, { ...n, format: t }), ee = (e) => String(e).padStart(2, "0"), Ae = (e) => `UTC${e}`, Ee = (e, t) => {
559
- const n = yt(e, t), r = n >= 0 ? "+" : "-", o = Math.abs(n);
560
- return `UTC${r}${ee(Math.floor(o / 60))}:${ee(o % 60)}`;
561
- }, _t = (e, t = /* @__PURE__ */ new Date()) => {
468
+ return r.dateLibrary === "moment" ? ct(e, r) : le(e, r);
469
+ }, Ct = (e, t = b, n = {}) => ft(e, { ...n, format: t }), q = (e) => String(e).padStart(2, "0"), me = (e) => `UTC${e}`, de = (e, t) => {
470
+ const n = rt(e, t), r = n >= 0 ? "+" : "-", o = Math.abs(n);
471
+ return `UTC${r}${q(Math.floor(o / 60))}:${q(o % 60)}`;
472
+ }, ut = (e, t = /* @__PURE__ */ new Date()) => {
562
473
  const n = e.currentUtcOffsetText || e.baseUtcOffsetText;
563
- return n ? `UTC${n}` : Ee(t, e.timeZoneId);
564
- }, Lt = (e, t) => {
474
+ return n ? `UTC${n}` : de(t, e.timeZoneId);
475
+ }, lt = (e, t) => {
565
476
  const n = e.match(/([+-]\d{1,2})(?::?(\d{2}))?/) || [];
566
477
  if (!n[1]) return t;
567
478
  const r = n[1].startsWith("-") ? "-" : "+", o = n[1].replace(/[+-]/, "").padStart(2, "0"), s = n[2] || "00";
568
479
  return `UTC${r}${o}:${s}`;
569
- }, Ct = (e, t, n) => {
480
+ }, mt = (e, t, n) => {
570
481
  var o, s;
571
- const r = Ae(n.format("Z"));
482
+ const r = me(n.format("Z"));
572
483
  try {
573
484
  const i = Intl.DateTimeFormat.supportedLocalesOf([t])[0] || t, c = (s = (o = new Intl.DateTimeFormat(i, { timeZone: e, timeZoneName: "long" }).formatToParts(n.toDate()).find((a) => a.type === "timeZoneName")) == null ? void 0 : o.value) == null ? void 0 : s.trim();
574
- return c ? /^(gmt|utc)/i.test(c) ? Lt(c, r) : c : r;
485
+ return c ? /^(gmt|utc)/i.test(c) ? lt(c, r) : c : r;
575
486
  } catch {
576
487
  return r;
577
488
  }
578
- }, we = (e, t) => {
489
+ }, he = (e, t) => {
579
490
  const n = t.year();
580
491
  return Array.from(
581
492
  new Set(
@@ -585,38 +496,38 @@ const Tt = () => {
585
496
  })
586
497
  )
587
498
  );
588
- }, pe = (e, t) => {
589
- const n = d(e);
590
- if (!z(n)) return !1;
591
- const r = M(t).tz(n);
592
- return we(n, r).length > 1;
593
- }, P = (e, t) => {
594
- const n = d(e);
595
- if (!z(n)) return !1;
596
- const r = M(t).tz(n), o = we(n, r);
499
+ }, Te = (e, t) => {
500
+ const n = h(e);
501
+ if (!E(n)) return !1;
502
+ const r = A(t).tz(n);
503
+ return he(n, r).length > 1;
504
+ }, M = (e, t) => {
505
+ const n = h(e);
506
+ if (!E(n)) return !1;
507
+ const r = A(t).tz(n), o = he(n, r);
597
508
  return o.length <= 1 ? !1 : r.utcOffset() === Math.max(...o);
598
- }, nn = (e, t) => P(e, t), ze = (e) => {
509
+ }, vt = (e, t) => M(e, t), ge = (e) => {
599
510
  if (e === 1 || e === "1") return !0;
600
511
  if (e === 0 || e === "0") return !1;
601
- }, bt = (e, t) => {
602
- const n = ze(e.dynamicOffsetFlag);
603
- return typeof n == "boolean" ? n : pe(e.timeZoneId, t);
604
- }, kt = (e, t) => {
605
- const n = ze(e.currentDstFlag);
606
- return typeof n == "boolean" ? n : P(e.timeZoneId, t);
607
- }, rn = (e, t = /* @__PURE__ */ new Date()) => e.map((n) => {
608
- const r = n.tzShowName || _t(n, t), o = bt(n, t);
512
+ }, dt = (e, t) => {
513
+ const n = ge(e.dynamicOffsetFlag);
514
+ return typeof n == "boolean" ? n : Te(e.timeZoneId, t);
515
+ }, ht = (e, t) => {
516
+ const n = ge(e.currentDstFlag);
517
+ return typeof n == "boolean" ? n : M(e.timeZoneId, t);
518
+ }, bt = (e, t = /* @__PURE__ */ new Date()) => e.map((n) => {
519
+ const r = n.tzShowName || ut(n, t), o = dt(n, t);
609
520
  return {
610
521
  value: n.timeZoneId,
611
522
  zoneName: r,
612
523
  label: r,
613
524
  hasDST: o,
614
- isDST: o ? kt(n, t) : !1
525
+ isDST: o ? ht(n, t) : !1
615
526
  };
616
- }), Nt = (e) => {
527
+ }), Tt = (e) => {
617
528
  const t = e.toLowerCase().split("-")[0];
618
- return X[t] || X.default;
619
- }, Ot = (e) => typeof e.showDaylightSavingLabel == "boolean" ? e.showDaylightSavingLabel : e.showDaylightSavingMarker ?? !0, on = (e, t, n = {}) => {
529
+ return B[t] || B.default;
530
+ }, gt = (e) => typeof e.showDaylightSavingLabel == "boolean" ? e.showDaylightSavingLabel : e.showDaylightSavingMarker ?? !0, _t = (e, t, n = {}) => {
620
531
  const {
621
532
  showZoneLabel: r = !0,
622
533
  zoneLabel: o,
@@ -624,13 +535,13 @@ const Tt = () => {
624
535
  isDST: i,
625
536
  standardTimeLabel: c,
626
537
  daylightSavingLabel: a,
627
- format: u = ce
628
- } = n, m = d(t), g = Dt(e, m, u), D = typeof s == "boolean" ? s : pe(m, e), y = (typeof i == "boolean" ? i : P(m, e)) ? a : c, I = D && y ? `[${y}]` : "";
629
- return r ? [g, o || Ee(e, m), I].filter(Boolean).join(" ") : [g, I].filter(Boolean).join(" ");
630
- }, sn = (e = {}) => {
631
- const t = Ze(e.locale, e.supportedLocales), n = d(e.timeZone), r = M(e.value).tz(n), o = Ct(n, t, r), s = Ae(r.format("Z")), i = P(n, r), c = i ? Nt(t) : "", a = Ot(e), u = i && a ? `${o} - ${c}` : o;
538
+ format: u = se
539
+ } = n, l = h(t), T = st(e, l, u), Z = typeof s == "boolean" ? s : Te(l, e), g = (typeof i == "boolean" ? i : M(l, e)) ? a : c, I = Z && g ? `[${g}]` : "";
540
+ return r ? [T, o || de(e, l), I].filter(Boolean).join(" ") : [T, I].filter(Boolean).join(" ");
541
+ }, Mt = (e = {}) => {
542
+ const t = ot(e.locale, e.supportedLocales), n = h(e.timeZone), r = A(e.value).tz(n), o = mt(n, t, r), s = me(r.format("Z")), i = M(n, r), c = i ? Tt(t) : "", a = gt(e), u = i && a ? `${o} - ${c}` : o;
632
543
  return {
633
- formattedValue: r.format(e.format || Je),
544
+ formattedValue: r.format(e.format || Pe),
634
545
  locale: t,
635
546
  timeZone: n,
636
547
  timeZoneName: o,
@@ -642,64 +553,50 @@ const Tt = () => {
642
553
  };
643
554
  };
644
555
  export {
645
- Xe as IANA_TIMEZONE_DATA_CHANGE_EVENT,
646
- fe as TIMEZONE_CHANGE_EVENT,
647
- re as TIME_ZONE_PACKED_DATA_URL,
648
- qe as UPF_TIMEZONE_MESSAGE_TYPE,
649
- xt as applyDayjsIanaTimeZoneData,
650
- Ht as applyMomentIanaTimeZoneData,
651
- se as assertPackedIanaData,
652
- $e as assertPackedIanaTzData,
653
- oe as buildIanaFetchInit,
654
- rn as buildTimeZoneDisplayOptions,
655
- ve as clearDayjsIanaCache,
656
- k as clientTimeZone,
657
- xe as createIanaDbFromPackedData,
658
- T as dayjsTimezoneIanaPlugin,
659
- on as formatClientLocalDateTimeLine,
660
- Dt as formatInTimeZone,
661
- Ie as formatLocalDateTime,
662
- en as formatLocalDateTimeIntl,
663
- Ee as formatTimeZoneOffsetLabel,
664
- qt as fromTimeZonePickerValue,
665
- Le as getAccessTokenFromLocalStorage,
666
- Ne as getCachedDayjsPackedIanaData,
667
- Tt as getClientTimeZone,
668
- Ce as getDefaultIanaAuthorization,
669
- jt as getKnownTimeZoneIds,
670
- ot as getRuntimeIanaTimeZoneDataSnapshot,
671
- Vt as getRuntimeNameZoneDataSnapshot,
672
- Wt as getTimeZoneDayjs,
673
- sn as getTimeZoneDisplayInfo,
674
- yt as getZoneUtcOffset,
675
- dt as initClientTimeZoneSync,
676
- nn as isDaylightSavingTime,
677
- z as isKnownTimeZone,
678
- pt as isMomentTimezoneFormatInstance,
679
- he as isTimeZonePickerModeEnabled,
680
- Rt as loadDayjsIanaTimeZoneData,
681
- ie as loadIanaData,
682
- q as loadIanaFromApi,
683
- ie as loadMomentIanaData,
684
- q as loadMomentIanaFromApi,
685
- Gt as loadMomentIanaTimeZoneData,
686
- Ze as normalizeLocaleCode,
687
- Jt as onClientTimeZoneChange,
688
- Oe as preloadDayjsIanaFromApi,
689
- ae as preloadDayjsIanaFromData,
690
- v as rebuildKnownTimeZoneIds,
691
- Te as resolvePickerTimeZone,
692
- d as resolveTimeZone,
693
- _t as resolveUtcOffsetFallback,
694
- $t as setClientTimeZone,
695
- H as setDefaultTimeZone,
696
- O as setRuntimeIanaTimeZoneDataSnapshot,
697
- Bt as syncClientTimeZone,
698
- et as timeZoneDayjs,
699
- pe as timeZoneHasDST,
700
- P as timeZoneIsDST,
701
- tn as toLocalDate,
702
- Kt as toTimeZonePickerValue,
703
- Qt as toTimestampAtZoneEndOfDay,
704
- Xt as toTimestampAtZoneStartOfDay
556
+ ae as TIMEZONE_CHANGE_EVENT,
557
+ ee as TIME_ZONE_PACKED_DATA_URL,
558
+ je as UPF_TIMEZONE_MESSAGE_TYPE,
559
+ Dt as applyDayjsIanaTimeZoneData,
560
+ At as applyMomentIanaTimeZoneData,
561
+ ne as assertPackedIanaData,
562
+ Ne as assertPackedIanaTzData,
563
+ te as buildIanaFetchInit,
564
+ bt as buildTimeZoneDisplayOptions,
565
+ ze as clearDayjsIanaCache,
566
+ ce as clientTimeZone,
567
+ Me as createIanaDbFromPackedData,
568
+ d as dayjsTimezoneIanaPlugin,
569
+ _t as formatClientLocalDateTimeLine,
570
+ st as formatInTimeZone,
571
+ ft as formatLocalDateTime,
572
+ de as formatTimeZoneOffsetLabel,
573
+ ye as getAccessTokenFromLocalStorage,
574
+ Ee as getCachedDayjsPackedIanaData,
575
+ tt as getClientTimeZone,
576
+ pe as getDefaultIanaAuthorization,
577
+ wt as getKnownTimeZoneIds,
578
+ Mt as getTimeZoneDisplayInfo,
579
+ rt as getZoneUtcOffset,
580
+ et as initClientTimeZoneSync,
581
+ vt as isDaylightSavingTime,
582
+ E as isKnownTimeZone,
583
+ Et as loadDayjsIanaTimeZoneData,
584
+ re as loadIanaData,
585
+ W as loadIanaFromApi,
586
+ re as loadMomentIanaData,
587
+ W as loadMomentIanaFromApi,
588
+ zt as loadMomentIanaTimeZoneData,
589
+ ot as normalizeLocaleCode,
590
+ St as onClientTimeZoneChange,
591
+ Ae as preloadDayjsIanaFromApi,
592
+ oe as preloadDayjsIanaFromData,
593
+ _ as rebuildKnownTimeZoneIds,
594
+ h as resolveTimeZone,
595
+ ut as resolveUtcOffsetFallback,
596
+ Be as setClientTimeZone,
597
+ $ as setDefaultTimeZone,
598
+ Lt as syncClientTimeZone,
599
+ Te as timeZoneHasDST,
600
+ M as timeZoneIsDST,
601
+ Ct as toLocalDate
705
602
  };