@das-fed/upf-utils 6.4.0-dev.263 → 6.4.0-dev.264

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