@das-fed/upf-utils 6.4.0-dev.286 → 6.4.0-dev.288

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