gc_i18n 1.6.1 → 1.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/gc_i18n.es.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import './gc_i18n.css';
2
2
  import mt from "keyboardjs";
3
- import { h as ve, ref as ne, computed as Re, onMounted as jn, nextTick as bt, Vue as Ce } from "vue-demi";
3
+ import { h as ve, ref as ne, computed as Re, onMounted as Un, nextTick as bt, Vue as Ce } from "vue-demi";
4
4
  import Qe from "axios";
5
5
  import x from "store2";
6
6
  import A from "lodash-es";
7
- import { jws as Un } from "jsrsasign";
8
- const Rn = [
7
+ import { jws as Rn } from "jsrsasign";
8
+ const Hn = [
9
9
  "ar-SA",
10
10
  // 阿拉伯语(沙特阿拉伯)
11
11
  "ar-EG",
@@ -14,22 +14,25 @@ const Rn = [
14
14
  // 波斯语(伊朗)
15
15
  ], ke = (t) => {
16
16
  if (!t || typeof t != "string") return !1;
17
- if (Rn.includes(t)) return !0;
17
+ if (Hn.includes(t)) return !0;
18
18
  const e = t.split("-")[0].toLowerCase();
19
19
  return ["ar", "fa"].includes(e);
20
- }, Hn = (t) => {
20
+ }, Vn = (t) => {
21
21
  const e = {};
22
22
  for (const n of t)
23
23
  e[n.key] = n.value;
24
24
  return e;
25
- }, Vn = (t, e, n) => (e.forEach((o) => {
25
+ }, Fn = (t, e, n) => (e.forEach((o) => {
26
26
  const s = o.key.split(".");
27
27
  s[0] === "common" && A.find(t, { key: `${n}.${s[1]}` }) && A.remove(t, { key: `${n}.${s[1]}` });
28
28
  const r = A.find(t, { key: o.key });
29
29
  r ? A.merge(r, o) : t.push(o);
30
30
  }), t), ie = Qe.create({
31
31
  timeout: 8e3
32
- }), xe = /* @__PURE__ */ new Map(), Ke = (t) => String(t || "guest").replace(/[^\w-]/g, "_"), Nt = async ({
32
+ }), xe = /* @__PURE__ */ new Map(), qn = "https://extendapi.ihotel.cn", Kn = "https://test.ihotel.cn", Gn = /^https?:\/\//i, Ke = (t) => String(t || "guest").replace(/[^\w-]/g, "_"), Nt = ({ env: t, dev: e } = {}) => {
33
+ const n = typeof t == "string" ? t.trim() : t;
34
+ return typeof n == "string" && Gn.test(n) ? n.replace(/\/+$/, "") : n === "dev" || e === !0 ? Kn : !n || n === "local" ? "" : qn;
35
+ }, zt = async ({
33
36
  baseUrl: t,
34
37
  token: e,
35
38
  appCode: n,
@@ -61,7 +64,7 @@ const Rn = [
61
64
  console.error("获取语言列表失败:", r);
62
65
  }
63
66
  return [];
64
- }, Fn = async ({ baseUrl: t, token: e, appCode: n }) => ie.get(
67
+ }, Wn = async ({ baseUrl: t, token: e, appCode: n }) => ie.get(
65
68
  t + "/i18n-web/app/getsupportedlangs?appCode=" + n,
66
69
  {
67
70
  headers: {
@@ -89,14 +92,14 @@ const Rn = [
89
92
  } catch (r) {
90
93
  return console.error("获取翻译数据失败:", r), null;
91
94
  }
92
- }, qn = async ({ data: t, token: e, baseUrl: n }) => ie({
95
+ }, Yn = async ({ data: t, token: e, baseUrl: n }) => ie({
93
96
  url: n + "/i18n-web/kv_translate/userDicts",
94
97
  method: "POST",
95
98
  headers: {
96
99
  Authorization: e
97
100
  },
98
101
  data: t
99
- }), Kn = async ({ data: t, token: e, baseUrl: n }) => ie({
102
+ }), Zn = async ({ data: t, token: e, baseUrl: n }) => ie({
100
103
  url: n + "/i18n-web/kv_translate/batch",
101
104
  method: "POST",
102
105
  data: t,
@@ -109,7 +112,7 @@ const Rn = [
109
112
  return !e || /^<!doctype/i.test(e) || /^<html/i.test(e) ? (console.warn("i18n_token 接口未返回有效 token,请检查业务项目接口"), "") : e;
110
113
  }
111
114
  return A.get(t, "retVal.i18n_token") || A.get(t, "retVal.token") || A.get(t, "i18n_token") || A.get(t, "token") || "";
112
- }, Gn = async ({
115
+ }, Xn = async ({
113
116
  request: t,
114
117
  appCode: e,
115
118
  orgCode: n,
@@ -141,7 +144,7 @@ const Rn = [
141
144
  }
142
145
  });
143
146
  return vt(r == null ? void 0 : r.data);
144
- }, Wn = async ({
147
+ }, Jn = async ({
145
148
  baseUrl: t,
146
149
  appCode: e,
147
150
  language: n = "zh-CN",
@@ -170,16 +173,16 @@ const Rn = [
170
173
  const $ = await yt(u);
171
174
  return $ ? (i.set(n, $), A.get($, "translatesDTOs", [])) : A.get(d, "translatesDTOs", []);
172
175
  }
173
- const { lastPullDate: k } = d, T = await yt({
176
+ const { lastPullDate: k } = d, S = await yt({
174
177
  ...u,
175
178
  lastPullDate: k
176
179
  });
177
- if (!T)
180
+ if (!S)
178
181
  return A.get(d, "translatesDTOs", []);
179
182
  const _ = A.get(d, "translatesDTOs", []);
180
- if (!A.isEmpty(T.translatesDTOs)) {
181
- const $ = Vn(_, T.translatesDTOs, s), E = {
182
- lastPullDate: T.lastPullDate,
183
+ if (!A.isEmpty(S.translatesDTOs)) {
184
+ const $ = Fn(_, S.translatesDTOs, s), E = {
185
+ lastPullDate: S.lastPullDate,
183
186
  translatesDTOs: $
184
187
  };
185
188
  return i.set(n, E, ":"), $;
@@ -194,7 +197,7 @@ const Rn = [
194
197
  const c = Ke(r), i = x.namespace(`I18N_${A.toUpper(e)}_${c}`);
195
198
  return A.get(i.get(n), "translatesDTOs", []);
196
199
  }
197
- }, Yn = ({ appCode: t, cacheScope: e } = {}) => {
200
+ }, Qn = ({ appCode: t, cacheScope: e } = {}) => {
198
201
  if (t) {
199
202
  if (e) {
200
203
  x.namespace(`I18N_${A.toUpper(t)}_${Ke(e)}`).clearAll();
@@ -207,51 +210,51 @@ const Rn = [
207
210
  * sweetalert2 v11.26.18
208
211
  * Released under the MIT License.
209
212
  */
210
- function zt(t, e, n) {
213
+ function Dt(t, e, n) {
211
214
  if (typeof t == "function" ? t === e : t.has(e)) return arguments.length < 3 ? e : n;
212
215
  throw new TypeError("Private element is not present on this object");
213
216
  }
214
- function Zn(t, e) {
217
+ function eo(t, e) {
215
218
  if (e.has(t)) throw new TypeError("Cannot initialize the same private elements twice on an object");
216
219
  }
217
220
  function Ct(t, e) {
218
- return t.get(zt(t, e));
221
+ return t.get(Dt(t, e));
219
222
  }
220
- function Xn(t, e, n) {
221
- Zn(t, e), e.set(t, n);
223
+ function to(t, e, n) {
224
+ eo(t, e), e.set(t, n);
222
225
  }
223
- function Jn(t, e, n) {
224
- return t.set(zt(t, e), n), n;
226
+ function no(t, e, n) {
227
+ return t.set(Dt(t, e), n), n;
225
228
  }
226
- const Qn = 100, p = {}, eo = () => {
229
+ const oo = 100, p = {}, so = () => {
227
230
  p.previousActiveElement instanceof HTMLElement ? (p.previousActiveElement.focus(), p.previousActiveElement = null) : document.body && document.body.focus();
228
- }, to = (t) => new Promise((e) => {
231
+ }, ro = (t) => new Promise((e) => {
229
232
  if (!t)
230
233
  return e();
231
234
  const n = window.scrollX, o = window.scrollY;
232
235
  p.restoreFocusTimeout = setTimeout(() => {
233
- eo(), e();
234
- }, Qn), window.scrollTo(n, o);
235
- }), Dt = "swal2-", no = ["container", "shown", "height-auto", "iosfix", "popup", "modal", "no-backdrop", "no-transition", "toast", "toast-shown", "show", "hide", "close", "title", "html-container", "actions", "confirm", "deny", "cancel", "footer", "icon", "icon-content", "image", "input", "file", "range", "select", "radio", "checkbox", "label", "textarea", "inputerror", "input-label", "validation-message", "progress-steps", "active-progress-step", "progress-step", "progress-step-line", "loader", "loading", "styled", "top", "top-start", "top-end", "top-left", "top-right", "center", "center-start", "center-end", "center-left", "center-right", "bottom", "bottom-start", "bottom-end", "bottom-left", "bottom-right", "grow-row", "grow-column", "grow-fullscreen", "rtl", "timer-progress-bar", "timer-progress-bar-container", "scrollbar-measure", "icon-success", "icon-warning", "icon-info", "icon-question", "icon-error", "draggable", "dragging"], l = no.reduce(
236
- (t, e) => (t[e] = Dt + e, t),
236
+ so(), e();
237
+ }, oo), window.scrollTo(n, o);
238
+ }), jt = "swal2-", io = ["container", "shown", "height-auto", "iosfix", "popup", "modal", "no-backdrop", "no-transition", "toast", "toast-shown", "show", "hide", "close", "title", "html-container", "actions", "confirm", "deny", "cancel", "footer", "icon", "icon-content", "image", "input", "file", "range", "select", "radio", "checkbox", "label", "textarea", "inputerror", "input-label", "validation-message", "progress-steps", "active-progress-step", "progress-step", "progress-step-line", "loader", "loading", "styled", "top", "top-start", "top-end", "top-left", "top-right", "center", "center-start", "center-end", "center-left", "center-right", "bottom", "bottom-start", "bottom-end", "bottom-left", "bottom-right", "grow-row", "grow-column", "grow-fullscreen", "rtl", "timer-progress-bar", "timer-progress-bar-container", "scrollbar-measure", "icon-success", "icon-warning", "icon-info", "icon-question", "icon-error", "draggable", "dragging"], l = io.reduce(
239
+ (t, e) => (t[e] = jt + e, t),
237
240
  /** @type {SwalClasses} */
238
241
  {}
239
- ), oo = ["success", "warning", "info", "question", "error"], Le = oo.reduce(
240
- (t, e) => (t[e] = Dt + e, t),
242
+ ), ao = ["success", "warning", "info", "question", "error"], Le = ao.reduce(
243
+ (t, e) => (t[e] = jt + e, t),
241
244
  /** @type {SwalIcons} */
242
245
  {}
243
- ), jt = "SweetAlert2:", et = (t) => t.charAt(0).toUpperCase() + t.slice(1), z = (t) => {
244
- console.warn(`${jt} ${typeof t == "object" ? t.join(" ") : t}`);
246
+ ), Ut = "SweetAlert2:", et = (t) => t.charAt(0).toUpperCase() + t.slice(1), z = (t) => {
247
+ console.warn(`${Ut} ${typeof t == "object" ? t.join(" ") : t}`);
245
248
  }, ee = (t) => {
246
- console.error(`${jt} ${t}`);
247
- }, kt = [], so = (t) => {
249
+ console.error(`${Ut} ${t}`);
250
+ }, kt = [], lo = (t) => {
248
251
  kt.includes(t) || (kt.push(t), z(t));
249
- }, Ut = (t, e = null) => {
250
- so(`"${t}" is deprecated and will be removed in the next major release.${e ? ` Use "${e}" instead.` : ""}`);
252
+ }, Rt = (t, e = null) => {
253
+ lo(`"${t}" is deprecated and will be removed in the next major release.${e ? ` Use "${e}" instead.` : ""}`);
251
254
  }, Oe = (t) => typeof t == "function" ? t() : t, tt = (t) => t && typeof t.toPromise == "function", fe = (t) => tt(t) ? t.toPromise() : Promise.resolve(t), nt = (t) => t && Promise.resolve(t) === t, D = () => document.body.querySelector(`.${l.container}`), pe = (t) => {
252
255
  const e = D();
253
256
  return e ? e.querySelector(t) : null;
254
- }, R = (t) => pe(`.${t}`), S = () => R(l.popup), ae = () => R(l.icon), ro = () => R(l["icon-content"]), Rt = () => R(l.title), ot = () => R(l["html-container"]), Ht = () => R(l.image), st = () => R(l["progress-steps"]), Ne = () => R(l["validation-message"]), q = () => (
257
+ }, R = (t) => pe(`.${t}`), T = () => R(l.popup), ae = () => R(l.icon), co = () => R(l["icon-content"]), Ht = () => R(l.title), ot = () => R(l["html-container"]), Vt = () => R(l.image), st = () => R(l["progress-steps"]), Ne = () => R(l["validation-message"]), q = () => (
255
258
  /** @type {HTMLButtonElement} */
256
259
  pe(`.${l.actions} .${l.confirm}`)
257
260
  ), le = () => (
@@ -260,7 +263,7 @@ const Qn = 100, p = {}, eo = () => {
260
263
  ), te = () => (
261
264
  /** @type {HTMLButtonElement} */
262
265
  pe(`.${l.actions} .${l.deny}`)
263
- ), io = () => R(l["input-label"]), ce = () => pe(`.${l.loader}`), ge = () => R(l.actions), Vt = () => R(l.footer), ze = () => R(l["timer-progress-bar"]), rt = () => R(l.close), ao = `
266
+ ), uo = () => R(l["input-label"]), ce = () => pe(`.${l.loader}`), ge = () => R(l.actions), Ft = () => R(l.footer), ze = () => R(l["timer-progress-bar"]), rt = () => R(l.close), ho = `
264
267
  a[href],
265
268
  area[href],
266
269
  input:not([disabled]),
@@ -276,19 +279,19 @@ const Qn = 100, p = {}, eo = () => {
276
279
  video[controls],
277
280
  summary
278
281
  `, it = () => {
279
- const t = S();
282
+ const t = T();
280
283
  if (!t)
281
284
  return [];
282
285
  const e = t.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'), n = Array.from(e).sort((r, a) => {
283
286
  const c = parseInt(r.getAttribute("tabindex") || "0"), i = parseInt(a.getAttribute("tabindex") || "0");
284
287
  return c > i ? 1 : c < i ? -1 : 0;
285
- }), o = t.querySelectorAll(ao), s = Array.from(o).filter((r) => r.getAttribute("tabindex") !== "-1");
288
+ }), o = t.querySelectorAll(ho), s = Array.from(o).filter((r) => r.getAttribute("tabindex") !== "-1");
286
289
  return [...new Set(n.concat(s))].filter((r) => j(r));
287
290
  }, at = () => K(document.body, l.shown) && !K(document.body, l["toast-shown"]) && !K(document.body, l["no-backdrop"]), De = () => {
288
- const t = S();
291
+ const t = T();
289
292
  return t ? K(t, l.toast) : !1;
290
- }, lo = () => {
291
- const t = S();
293
+ }, wo = () => {
294
+ const t = T();
292
295
  return t ? t.hasAttribute("data-loading") : !1;
293
296
  }, H = (t, e) => {
294
297
  if (t.textContent = "", e) {
@@ -309,12 +312,12 @@ const Qn = 100, p = {}, eo = () => {
309
312
  if (!t.classList.contains(n[o]))
310
313
  return !1;
311
314
  return !0;
312
- }, co = (t, e) => {
315
+ }, fo = (t, e) => {
313
316
  Array.from(t.classList).forEach((n) => {
314
317
  !Object.values(l).includes(n) && !Object.values(Le).includes(n) && !Object.values(e.showClass || {}).includes(n) && t.classList.remove(n);
315
318
  });
316
319
  }, U = (t, e, n) => {
317
- if (co(t, e), !e.customClass)
320
+ if (fo(t, e), !e.customClass)
318
321
  return;
319
322
  const o = e.customClass[
320
323
  /** @type {keyof SweetAlertCustomClass} */
@@ -344,21 +347,21 @@ const Qn = 100, p = {}, eo = () => {
344
347
  default:
345
348
  return t.querySelector(`.${l.popup} > .${l.input}`);
346
349
  }
347
- }, Ft = (t) => {
350
+ }, qt = (t) => {
348
351
  if (t.focus(), t.type !== "file") {
349
352
  const e = t.value;
350
353
  t.value = "", t.value = e;
351
354
  }
352
- }, qt = (t, e, n) => {
355
+ }, Kt = (t, e, n) => {
353
356
  !t || !e || (typeof e == "string" && (e = e.split(/\s+/).filter(Boolean)), e.forEach((o) => {
354
357
  Array.isArray(t) ? t.forEach((s) => {
355
358
  n ? s.classList.add(o) : s.classList.remove(o);
356
359
  }) : n ? t.classList.add(o) : t.classList.remove(o);
357
360
  }));
358
361
  }, L = (t, e) => {
359
- qt(t, e, !0);
362
+ Kt(t, e, !0);
360
363
  }, V = (t, e) => {
361
- qt(t, e, !1);
364
+ Kt(t, e, !1);
362
365
  }, G = (t, e) => {
363
366
  const n = Array.from(t.children);
364
367
  for (let o = 0; o < n.length; o++) {
@@ -387,7 +390,7 @@ const Qn = 100, p = {}, eo = () => {
387
390
  s && s.style.setProperty(n, o);
388
391
  }, me = (t, e, n = "flex") => {
389
392
  e ? M(t, n) : N(t);
390
- }, j = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)), uo = () => !j(q()) && !j(te()) && !j(le()), Ge = (t) => t.scrollHeight > t.clientHeight, ho = (t, e) => {
393
+ }, j = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)), po = () => !j(q()) && !j(te()) && !j(le()), Ge = (t) => t.scrollHeight > t.clientHeight, go = (t, e) => {
391
394
  let n = (
392
395
  /** @type {HTMLElement | null} */
393
396
  t
@@ -398,7 +401,7 @@ const Qn = 100, p = {}, eo = () => {
398
401
  n = n.parentElement;
399
402
  }
400
403
  return !1;
401
- }, Kt = (t) => {
404
+ }, Gt = (t) => {
402
405
  const e = window.getComputedStyle(t), n = parseFloat(e.getPropertyValue("animation-duration") || "0"), o = parseFloat(e.getPropertyValue("transition-duration") || "0");
403
406
  return n > 0 || o > 0;
404
407
  }, ct = (t, e = !1) => {
@@ -406,7 +409,7 @@ const Qn = 100, p = {}, eo = () => {
406
409
  n && j(n) && (e && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
407
410
  n.style.transition = `width ${t / 1e3}s linear`, n.style.width = "0%";
408
411
  }, 10));
409
- }, wo = () => {
412
+ }, mo = () => {
410
413
  const t = ze();
411
414
  if (!t)
412
415
  return;
@@ -414,7 +417,7 @@ const Qn = 100, p = {}, eo = () => {
414
417
  t.style.removeProperty("transition"), t.style.width = "100%";
415
418
  const n = parseInt(window.getComputedStyle(t).width), o = e / n * 100;
416
419
  t.style.width = `${o}%`;
417
- }, fo = () => typeof window > "u" || typeof document > "u", po = `
420
+ }, bo = () => typeof window > "u" || typeof document > "u", yo = `
418
421
  <div aria-labelledby="${l.title}" aria-describedby="${l["html-container"]}" class="${l.popup}" tabindex="-1">
419
422
  <button type="button" class="${l.close}"></button>
420
423
  <ul class="${l["progress-steps"]}"></ul>
@@ -447,7 +450,7 @@ const Qn = 100, p = {}, eo = () => {
447
450
  <div class="${l["timer-progress-bar"]}"></div>
448
451
  </div>
449
452
  </div>
450
- `.replace(/(^|\n)\s*/g, ""), go = () => {
453
+ `.replace(/(^|\n)\s*/g, ""), vo = () => {
451
454
  const t = D();
452
455
  return t ? (t.remove(), V([document.documentElement, document.body], [
453
456
  l["no-backdrop"],
@@ -457,8 +460,8 @@ const Qn = 100, p = {}, eo = () => {
457
460
  ]), !0) : !1;
458
461
  }, Z = () => {
459
462
  p.currentInstance && p.currentInstance.resetValidationMessage();
460
- }, mo = () => {
461
- const t = S();
463
+ }, Co = () => {
464
+ const t = T();
462
465
  if (!t)
463
466
  return;
464
467
  const e = G(t, l.input), n = G(t, l.file), o = t.querySelector(`.${l.range} input`), s = t.querySelector(`.${l.range} output`), r = G(t, l.select), a = t.querySelector(`.${l.checkbox} input`), c = G(t, l.textarea);
@@ -467,7 +470,7 @@ const Qn = 100, p = {}, eo = () => {
467
470
  }, o.onchange = () => {
468
471
  Z(), s.value = o.value;
469
472
  });
470
- }, bo = (t) => {
473
+ }, ko = (t) => {
471
474
  if (typeof t == "string") {
472
475
  const e = document.querySelector(t);
473
476
  if (!e)
@@ -478,40 +481,40 @@ const Qn = 100, p = {}, eo = () => {
478
481
  );
479
482
  }
480
483
  return t;
481
- }, yo = (t) => {
482
- const e = S();
484
+ }, xo = (t) => {
485
+ const e = T();
483
486
  e && (e.setAttribute("role", t.toast ? "alert" : "dialog"), e.setAttribute("aria-live", t.toast ? "polite" : "assertive"), t.toast || e.setAttribute("aria-modal", "true"));
484
- }, vo = (t) => {
487
+ }, Ao = (t) => {
485
488
  window.getComputedStyle(t).direction === "rtl" && (L(D(), l.rtl), p.isRTL = !0);
486
- }, Co = (t) => {
487
- const e = go();
488
- if (fo()) {
489
+ }, Eo = (t) => {
490
+ const e = vo();
491
+ if (bo()) {
489
492
  ee("SweetAlert2 requires document to initialize");
490
493
  return;
491
494
  }
492
495
  const n = document.createElement("div");
493
- n.className = l.container, e && L(n, l["no-transition"]), H(n, po), n.dataset.swal2Theme = t.theme;
494
- const o = bo(t.target || "body");
495
- o.appendChild(n), t.topLayer && (n.setAttribute("popover", ""), n.showPopover()), yo(t), vo(o), mo();
496
+ n.className = l.container, e && L(n, l["no-transition"]), H(n, yo), n.dataset.swal2Theme = t.theme;
497
+ const o = ko(t.target || "body");
498
+ o.appendChild(n), t.topLayer && (n.setAttribute("popover", ""), n.showPopover()), xo(t), Ao(o), Co();
496
499
  }, ut = (t, e) => {
497
- t instanceof HTMLElement ? e.appendChild(t) : typeof t == "object" ? ko(t, e) : t && H(e, t);
498
- }, ko = (t, e) => {
499
- "jquery" in t ? xo(e, t) : H(e, t.toString());
500
- }, xo = (t, e) => {
500
+ t instanceof HTMLElement ? e.appendChild(t) : typeof t == "object" ? Lo(t, e) : t && H(e, t);
501
+ }, Lo = (t, e) => {
502
+ "jquery" in t ? To(e, t) : H(e, t.toString());
503
+ }, To = (t, e) => {
501
504
  if (t.textContent = "", 0 in e)
502
505
  for (let n = 0; n in e; n++)
503
506
  t.appendChild(e[n].cloneNode(!0));
504
507
  else
505
508
  t.appendChild(e.cloneNode(!0));
506
- }, Ao = (t, e) => {
509
+ }, So = (t, e) => {
507
510
  const n = ge(), o = ce();
508
- !n || !o || (!e.showConfirmButton && !e.showDenyButton && !e.showCancelButton ? N(n) : M(n), U(n, e, "actions"), Eo(n, o, e), H(o, e.loaderHtml || ""), U(o, e, "loader"));
511
+ !n || !o || (!e.showConfirmButton && !e.showDenyButton && !e.showCancelButton ? N(n) : M(n), U(n, e, "actions"), _o(n, o, e), H(o, e.loaderHtml || ""), U(o, e, "loader"));
509
512
  };
510
- function Eo(t, e, n) {
513
+ function _o(t, e, n) {
511
514
  const o = q(), s = te(), r = le();
512
- !o || !s || !r || (Ve(o, "confirm", n), Ve(s, "deny", n), Ve(r, "cancel", n), Lo(o, s, r, n), n.reverseButtons && (n.toast ? (t.insertBefore(r, o), t.insertBefore(s, o)) : (t.insertBefore(r, e), t.insertBefore(s, e), t.insertBefore(o, e))));
515
+ !o || !s || !r || (Ve(o, "confirm", n), Ve(s, "deny", n), Ve(r, "cancel", n), Io(o, s, r, n), n.reverseButtons && (n.toast ? (t.insertBefore(r, o), t.insertBefore(s, o)) : (t.insertBefore(r, e), t.insertBefore(s, e), t.insertBefore(o, e))));
513
516
  }
514
- function Lo(t, e, n, o) {
517
+ function Io(t, e, n, o) {
515
518
  if (!o.buttonsStyling) {
516
519
  V([t, e, n], l.styled);
517
520
  return;
@@ -532,68 +535,68 @@ function Ve(t, e, n) {
532
535
  );
533
536
  me(t, n[`show${o}Button`], "inline-block"), H(t, n[`${e}ButtonText`] || ""), t.setAttribute("aria-label", n[`${e}ButtonAriaLabel`] || ""), t.className = l[e], U(t, n, `${e}Button`);
534
537
  }
535
- const So = (t, e) => {
538
+ const $o = (t, e) => {
536
539
  const n = rt();
537
540
  n && (H(n, e.closeButtonHtml || ""), U(n, e, "closeButton"), me(n, e.showCloseButton), n.setAttribute("aria-label", e.closeButtonAriaLabel || ""));
538
- }, To = (t, e) => {
541
+ }, Bo = (t, e) => {
539
542
  const n = D();
540
- n && (_o(n, e.backdrop), Io(n, e.position), $o(n, e.grow), U(n, e, "container"));
543
+ n && (Po(n, e.backdrop), Mo(n, e.position), Oo(n, e.grow), U(n, e, "container"));
541
544
  };
542
- function _o(t, e) {
545
+ function Po(t, e) {
543
546
  typeof e == "string" ? t.style.background = e : e || L([document.documentElement, document.body], l["no-backdrop"]);
544
547
  }
545
- function Io(t, e) {
548
+ function Mo(t, e) {
546
549
  e && (e in l ? L(t, l[e]) : (z('The "position" parameter is not valid, defaulting to "center"'), L(t, l.center)));
547
550
  }
548
- function $o(t, e) {
551
+ function Oo(t, e) {
549
552
  e && L(t, l[`grow-${e}`]);
550
553
  }
551
554
  var I = {
552
555
  innerParams: /* @__PURE__ */ new WeakMap(),
553
556
  domCache: /* @__PURE__ */ new WeakMap()
554
557
  };
555
- const Bo = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], Po = (t, e) => {
556
- const n = S();
558
+ const No = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], zo = (t, e) => {
559
+ const n = T();
557
560
  if (!n)
558
561
  return;
559
562
  const o = I.innerParams.get(t), s = !o || e.input !== o.input;
560
- Bo.forEach((r) => {
563
+ No.forEach((r) => {
561
564
  const a = G(n, l[r]);
562
- a && (No(r, e.inputAttributes), a.className = l[r], s && N(a));
563
- }), e.input && (s && Mo(e), zo(e));
564
- }, Mo = (t) => {
565
+ a && (Uo(r, e.inputAttributes), a.className = l[r], s && N(a));
566
+ }), e.input && (s && Do(e), Ro(e));
567
+ }, Do = (t) => {
565
568
  if (!t.input)
566
569
  return;
567
570
  if (!B[t.input]) {
568
571
  ee(`Unexpected type of input! Expected ${Object.keys(B).join(" | ")}, got "${t.input}"`);
569
572
  return;
570
573
  }
571
- const e = Gt(t.input);
574
+ const e = Wt(t.input);
572
575
  if (!e)
573
576
  return;
574
577
  const n = B[t.input](e, t);
575
578
  M(e), t.inputAutoFocus && setTimeout(() => {
576
- Ft(n);
579
+ qt(n);
577
580
  });
578
- }, Oo = (t) => {
581
+ }, jo = (t) => {
579
582
  for (let e = 0; e < t.attributes.length; e++) {
580
583
  const n = t.attributes[e].name;
581
584
  ["id", "type", "value", "style"].includes(n) || t.removeAttribute(n);
582
585
  }
583
- }, No = (t, e) => {
584
- const n = S();
586
+ }, Uo = (t, e) => {
587
+ const n = T();
585
588
  if (!n)
586
589
  return;
587
590
  const o = je(n, t);
588
591
  if (o) {
589
- Oo(o);
592
+ jo(o);
590
593
  for (const s in e)
591
594
  o.setAttribute(s, e[s]);
592
595
  }
593
- }, zo = (t) => {
596
+ }, Ro = (t) => {
594
597
  if (!t.input)
595
598
  return;
596
- const e = Gt(t.input);
599
+ const e = Wt(t.input);
597
600
  e && U(e, t, "input");
598
601
  }, dt = (t, e) => {
599
602
  !t.placeholder && e.inputPlaceholder && (t.placeholder = e.inputPlaceholder);
@@ -602,14 +605,14 @@ const Bo = ["input", "file", "range", "select", "radio", "checkbox", "textarea"]
602
605
  const o = document.createElement("label"), s = l["input-label"];
603
606
  o.setAttribute("for", t.id), o.className = s, typeof n.customClass == "object" && L(o, n.customClass.inputLabel), o.innerText = n.inputLabel, e.insertAdjacentElement("beforebegin", o);
604
607
  }
605
- }, Gt = (t) => {
606
- const e = S();
608
+ }, Wt = (t) => {
609
+ const e = T();
607
610
  if (e)
608
611
  return G(e, l[
609
612
  /** @type {SwalClass} */
610
613
  t
611
614
  ] || l.input);
612
- }, Se = (t, e) => {
615
+ }, Te = (t, e) => {
613
616
  ["string", "number"].includes(typeof e) ? t.value = `${e}` : nt(e) || z(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e}"`);
614
617
  }, B = {};
615
618
  B.text = B.email = B.password = B.number = B.tel = B.url = B.search = B.date = B["datetime-local"] = B.time = B.week = B.month = /** @type {(input: Input | HTMLElement, params: SweetAlertOptions) => Input} */
@@ -618,7 +621,7 @@ B.text = B.email = B.password = B.number = B.tel = B.url = B.search = B.date = B
618
621
  /** @type {HTMLInputElement} */
619
622
  t
620
623
  );
621
- return Se(n, e.inputValue), be(n, n, e), dt(n, e), n.type = /** @type {string} */
624
+ return Te(n, e.inputValue), be(n, n, e), dt(n, e), n.type = /** @type {string} */
622
625
  e.input, n;
623
626
  };
624
627
  B.file = (t, e) => {
@@ -633,13 +636,13 @@ B.range = (t, e) => {
633
636
  /** @type {HTMLElement} */
634
637
  t
635
638
  ), o = n.querySelector("input"), s = n.querySelector("output");
636
- return o && (Se(o, e.inputValue), o.type = /** @type {string} */
639
+ return o && (Te(o, e.inputValue), o.type = /** @type {string} */
637
640
  e.input, be(
638
641
  o,
639
642
  /** @type {Input} */
640
643
  t,
641
644
  e
642
- )), s && Se(s, e.inputValue), /** @type {Input} */
645
+ )), s && Te(s, e.inputValue), /** @type {Input} */
643
646
  t;
644
647
  };
645
648
  B.select = (t, e) => {
@@ -662,7 +665,7 @@ B.radio = (t) => {
662
665
  t;
663
666
  };
664
667
  B.checkbox = (t, e) => {
665
- const n = S();
668
+ const n = T();
666
669
  if (!n)
667
670
  throw new Error("Popup not found");
668
671
  const o = je(n, "checkbox");
@@ -681,17 +684,17 @@ B.textarea = (t, e) => {
681
684
  /** @type {HTMLTextAreaElement} */
682
685
  t
683
686
  );
684
- Se(n, e.inputValue), dt(n, e), be(n, n, e);
687
+ Te(n, e.inputValue), dt(n, e), be(n, n, e);
685
688
  const o = (s) => parseInt(window.getComputedStyle(s).marginLeft) + parseInt(window.getComputedStyle(s).marginRight);
686
689
  return setTimeout(() => {
687
690
  if ("MutationObserver" in window) {
688
- const s = S();
691
+ const s = T();
689
692
  if (!s)
690
693
  return;
691
694
  const r = parseInt(window.getComputedStyle(s).width), a = () => {
692
695
  if (!document.body.contains(n))
693
696
  return;
694
- const c = n.offsetWidth + o(n), i = S();
697
+ const c = n.offsetWidth + o(n), i = T();
695
698
  i && (c > r ? i.style.width = `${c}px` : J(i, "width", e.width));
696
699
  };
697
700
  new MutationObserver(a).observe(n, {
@@ -701,13 +704,13 @@ B.textarea = (t, e) => {
701
704
  }
702
705
  }), n;
703
706
  };
704
- const Do = (t, e) => {
707
+ const Ho = (t, e) => {
705
708
  const n = ot();
706
- n && (lt(n), U(n, e, "htmlContainer"), e.html ? (ut(e.html, n), M(n, "block")) : e.text ? (n.textContent = e.text, M(n, "block")) : N(n), Po(t, e));
707
- }, jo = (t, e) => {
708
- const n = Vt();
709
+ n && (lt(n), U(n, e, "htmlContainer"), e.html ? (ut(e.html, n), M(n, "block")) : e.text ? (n.textContent = e.text, M(n, "block")) : N(n), zo(t, e));
710
+ }, Vo = (t, e) => {
711
+ const n = Ft();
709
712
  n && (lt(n), me(n, !!e.footer, "block"), e.footer && ut(e.footer, n), U(n, e, "footer"));
710
- }, Uo = (t, e) => {
713
+ }, Fo = (t, e) => {
711
714
  const n = I.innerParams.get(t), o = ae();
712
715
  if (!o)
713
716
  return;
@@ -723,25 +726,25 @@ const Do = (t, e) => {
723
726
  ee(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`), N(o);
724
727
  return;
725
728
  }
726
- M(o), Et(o, e), At(o, e), L(o, e.showClass && e.showClass.icon), window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", Wt);
729
+ M(o), Et(o, e), At(o, e), L(o, e.showClass && e.showClass.icon), window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", Yt);
727
730
  }, At = (t, e) => {
728
731
  for (const [n, o] of Object.entries(Le))
729
732
  e.icon !== n && V(t, o);
730
- L(t, e.icon && Le[e.icon]), Vo(t, e), Wt(), U(t, e, "icon");
731
- }, Wt = () => {
732
- const t = S();
733
+ L(t, e.icon && Le[e.icon]), Go(t, e), Yt(), U(t, e, "icon");
734
+ }, Yt = () => {
735
+ const t = T();
733
736
  if (!t)
734
737
  return;
735
738
  const e = window.getComputedStyle(t).getPropertyValue("background-color"), n = t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");
736
739
  for (let o = 0; o < n.length; o++)
737
740
  n[o].style.backgroundColor = e;
738
- }, Ro = (t) => `
741
+ }, qo = (t) => `
739
742
  ${t.animation ? '<div class="swal2-success-circular-line-left"></div>' : ""}
740
743
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
741
744
  <div class="swal2-success-ring"></div>
742
745
  ${t.animation ? '<div class="swal2-success-fix"></div>' : ""}
743
746
  ${t.animation ? '<div class="swal2-success-circular-line-right"></div>' : ""}
744
- `, Ho = `
747
+ `, Ko = `
745
748
  <span class="swal2-x-mark">
746
749
  <span class="swal2-x-mark-line-left"></span>
747
750
  <span class="swal2-x-mark-line-right"></span>
@@ -750,20 +753,20 @@ const Do = (t, e) => {
750
753
  if (!e.icon && !e.iconHtml)
751
754
  return;
752
755
  let n = t.innerHTML, o = "";
753
- e.iconHtml ? o = Lt(e.iconHtml) : e.icon === "success" ? (o = Ro(e), n = n.replace(/ style=".*?"/g, "")) : e.icon === "error" ? o = Ho : e.icon && (o = Lt({
756
+ e.iconHtml ? o = Lt(e.iconHtml) : e.icon === "success" ? (o = qo(e), n = n.replace(/ style=".*?"/g, "")) : e.icon === "error" ? o = Ko : e.icon && (o = Lt({
754
757
  question: "?",
755
758
  warning: "!",
756
759
  info: "i"
757
760
  }[e.icon])), n.trim() !== o.trim() && H(t, o);
758
- }, Vo = (t, e) => {
761
+ }, Go = (t, e) => {
759
762
  if (e.iconColor) {
760
763
  t.style.color = e.iconColor, t.style.borderColor = e.iconColor;
761
764
  for (const n of [".swal2-success-line-tip", ".swal2-success-line-long", ".swal2-x-mark-line-left", ".swal2-x-mark-line-right"])
762
765
  xt(t, n, "background-color", e.iconColor);
763
766
  xt(t, ".swal2-success-ring", "border-color", e.iconColor);
764
767
  }
765
- }, Lt = (t) => `<div class="${l["icon-content"]}">${t}</div>`, Fo = (t, e) => {
766
- const n = Ht();
768
+ }, Lt = (t) => `<div class="${l["icon-content"]}">${t}</div>`, Wo = (t, e) => {
769
+ const n = Vt();
767
770
  if (n) {
768
771
  if (!e.imageUrl) {
769
772
  N(n);
@@ -772,13 +775,13 @@ const Do = (t, e) => {
772
775
  M(n, ""), n.setAttribute("src", e.imageUrl), n.setAttribute("alt", e.imageAlt || ""), J(n, "width", e.imageWidth), J(n, "height", e.imageHeight), n.className = l.image, U(n, e, "image");
773
776
  }
774
777
  };
775
- let ht = !1, Yt = 0, Zt = 0, Xt = 0, Jt = 0;
776
- const qo = (t) => {
777
- t.addEventListener("mousedown", Te), document.body.addEventListener("mousemove", _e), t.addEventListener("mouseup", Ie), t.addEventListener("touchstart", Te), document.body.addEventListener("touchmove", _e), t.addEventListener("touchend", Ie);
778
- }, Ko = (t) => {
779
- t.removeEventListener("mousedown", Te), document.body.removeEventListener("mousemove", _e), t.removeEventListener("mouseup", Ie), t.removeEventListener("touchstart", Te), document.body.removeEventListener("touchmove", _e), t.removeEventListener("touchend", Ie);
780
- }, Te = (t) => {
781
- const e = S();
778
+ let ht = !1, Zt = 0, Xt = 0, Jt = 0, Qt = 0;
779
+ const Yo = (t) => {
780
+ t.addEventListener("mousedown", Se), document.body.addEventListener("mousemove", _e), t.addEventListener("mouseup", Ie), t.addEventListener("touchstart", Se), document.body.addEventListener("touchmove", _e), t.addEventListener("touchend", Ie);
781
+ }, Zo = (t) => {
782
+ t.removeEventListener("mousedown", Se), document.body.removeEventListener("mousemove", _e), t.removeEventListener("mouseup", Ie), t.removeEventListener("touchstart", Se), document.body.removeEventListener("touchmove", _e), t.removeEventListener("touchend", Ie);
783
+ }, Se = (t) => {
784
+ const e = T();
782
785
  if (!e)
783
786
  return;
784
787
  const n = ae();
@@ -787,23 +790,23 @@ const qo = (t) => {
787
790
  t.target
788
791
  )) {
789
792
  ht = !0;
790
- const o = Qt(t);
791
- Yt = o.clientX, Zt = o.clientY, Xt = parseInt(e.style.insetInlineStart) || 0, Jt = parseInt(e.style.insetBlockStart) || 0, L(e, "swal2-dragging");
793
+ const o = en(t);
794
+ Zt = o.clientX, Xt = o.clientY, Jt = parseInt(e.style.insetInlineStart) || 0, Qt = parseInt(e.style.insetBlockStart) || 0, L(e, "swal2-dragging");
792
795
  }
793
796
  }, _e = (t) => {
794
- const e = S();
797
+ const e = T();
795
798
  if (e && ht) {
796
799
  let {
797
800
  clientX: n,
798
801
  clientY: o
799
- } = Qt(t);
800
- const s = n - Yt;
801
- e.style.insetInlineStart = `${Xt + (p.isRTL ? -s : s)}px`, e.style.insetBlockStart = `${Jt + (o - Zt)}px`;
802
+ } = en(t);
803
+ const s = n - Zt;
804
+ e.style.insetInlineStart = `${Jt + (p.isRTL ? -s : s)}px`, e.style.insetBlockStart = `${Qt + (o - Xt)}px`;
802
805
  }
803
806
  }, Ie = () => {
804
- const t = S();
807
+ const t = T();
805
808
  ht = !1, V(t, "swal2-dragging");
806
- }, Qt = (t) => {
809
+ }, en = (t) => {
807
810
  let e = 0, n = 0;
808
811
  return t.type.startsWith("mouse") ? (e = /** @type {MouseEvent} */
809
812
  t.clientX, n = /** @type {MouseEvent} */
@@ -813,8 +816,8 @@ const qo = (t) => {
813
816
  clientX: e,
814
817
  clientY: n
815
818
  };
816
- }, Go = (t, e) => {
817
- const n = D(), o = S();
819
+ }, Xo = (t, e) => {
820
+ const n = D(), o = T();
818
821
  if (!(!n || !o)) {
819
822
  if (e.toast) {
820
823
  J(n, "width", e.width), o.style.width = "100%";
@@ -822,12 +825,12 @@ const qo = (t) => {
822
825
  s && o.insertBefore(s, ae());
823
826
  } else
824
827
  J(o, "width", e.width);
825
- J(o, "padding", e.padding), e.color && (o.style.color = e.color), e.background && (o.style.background = e.background), N(Ne()), Wo(o, e), e.draggable && !e.toast ? (L(o, l.draggable), qo(o)) : (V(o, l.draggable), Ko(o));
828
+ J(o, "padding", e.padding), e.color && (o.style.color = e.color), e.background && (o.style.background = e.background), N(Ne()), Jo(o, e), e.draggable && !e.toast ? (L(o, l.draggable), Yo(o)) : (V(o, l.draggable), Zo(o));
826
829
  }
827
- }, Wo = (t, e) => {
830
+ }, Jo = (t, e) => {
828
831
  const n = e.showClass || {};
829
832
  t.className = `${l.popup} ${j(t) ? n.popup : ""}`, e.toast ? (L([document.documentElement, document.body], l["toast-shown"]), L(t, l.toast)) : L(t, l.modal), U(t, e, "popup"), typeof e.customClass == "string" && L(t, e.customClass), e.icon && L(t, l[`icon-${e.icon}`]);
830
- }, Yo = (t, e) => {
833
+ }, Qo = (t, e) => {
831
834
  const n = st();
832
835
  if (!n)
833
836
  return;
@@ -840,33 +843,33 @@ const qo = (t) => {
840
843
  return;
841
844
  }
842
845
  M(n), n.textContent = "", s >= o.length && z("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"), o.forEach((r, a) => {
843
- const c = Zo(r);
846
+ const c = es(r);
844
847
  if (n.appendChild(c), a === s && L(c, l["active-progress-step"]), a !== o.length - 1) {
845
- const i = Xo(e);
848
+ const i = ts(e);
846
849
  n.appendChild(i);
847
850
  }
848
851
  });
849
- }, Zo = (t) => {
852
+ }, es = (t) => {
850
853
  const e = document.createElement("li");
851
854
  return L(e, l["progress-step"]), H(e, t), e;
852
- }, Xo = (t) => {
855
+ }, ts = (t) => {
853
856
  const e = document.createElement("li");
854
857
  return L(e, l["progress-step-line"]), t.progressStepsDistance && J(e, "width", t.progressStepsDistance), e;
855
- }, Jo = (t, e) => {
856
- const n = Rt();
858
+ }, ns = (t, e) => {
859
+ const n = Ht();
857
860
  n && (lt(n), me(n, !!(e.title || e.titleText), "block"), e.title && ut(e.title, n), e.titleText && (n.innerText = e.titleText), U(n, e, "title"));
858
- }, en = (t, e) => {
861
+ }, tn = (t, e) => {
859
862
  var n;
860
- Go(t, e), To(t, e), Yo(t, e), Uo(t, e), Fo(t, e), Jo(t, e), So(t, e), Do(t, e), Ao(t, e), jo(t, e);
861
- const o = S();
863
+ Xo(t, e), Bo(t, e), Qo(t, e), Fo(t, e), Wo(t, e), ns(t, e), $o(t, e), Ho(t, e), So(t, e), Vo(t, e);
864
+ const o = T();
862
865
  typeof e.didRender == "function" && o && e.didRender(o), (n = p.eventEmitter) === null || n === void 0 || n.emit("didRender", o);
863
- }, Qo = () => j(S()), tn = () => {
866
+ }, os = () => j(T()), nn = () => {
864
867
  var t;
865
868
  return (t = q()) === null || t === void 0 ? void 0 : t.click();
866
- }, es = () => {
869
+ }, ss = () => {
867
870
  var t;
868
871
  return (t = te()) === null || t === void 0 ? void 0 : t.click();
869
- }, ts = () => {
872
+ }, rs = () => {
870
873
  var t;
871
874
  return (t = le()) === null || t === void 0 ? void 0 : t.click();
872
875
  }, ue = Object.freeze({
@@ -875,7 +878,7 @@ const qo = (t) => {
875
878
  close: "close",
876
879
  esc: "esc",
877
880
  timer: "timer"
878
- }), nn = (t) => {
881
+ }), on = (t) => {
879
882
  if (t.keydownTarget && t.keydownHandlerAdded && t.keydownHandler) {
880
883
  const e = (
881
884
  /** @type {EventListenerOrEventListenerObject} */
@@ -886,11 +889,11 @@ const qo = (t) => {
886
889
  capture: t.keydownListenerCapture
887
890
  }), t.keydownHandlerAdded = !1;
888
891
  }
889
- }, ns = (t, e, n) => {
890
- if (nn(t), !e.toast) {
891
- const o = (r) => ss(e, r, n);
892
+ }, is = (t, e, n) => {
893
+ if (on(t), !e.toast) {
894
+ const o = (r) => ls(e, r, n);
892
895
  t.keydownHandler = o;
893
- const s = e.keydownListenerCapture ? window : S();
896
+ const s = e.keydownListenerCapture ? window : T();
894
897
  if (s) {
895
898
  t.keydownTarget = s, t.keydownListenerCapture = e.keydownListenerCapture;
896
899
  const r = (
@@ -910,22 +913,22 @@ const qo = (t) => {
910
913
  t = t + e, t === -2 && (t = o.length - 1), t === o.length ? t = 0 : t === -1 && (t = o.length - 1), o[t].focus();
911
914
  return;
912
915
  }
913
- (n = S()) === null || n === void 0 || n.focus();
914
- }, on = ["ArrowRight", "ArrowDown"], os = ["ArrowLeft", "ArrowUp"], ss = (t, e, n) => {
915
- t && (e.isComposing || e.keyCode === 229 || (t.stopKeydownPropagation && e.stopPropagation(), e.key === "Enter" ? rs(e, t) : e.key === "Tab" ? is(e) : [...on, ...os].includes(e.key) ? as(e.key) : e.key === "Escape" && ls(e, t, n)));
916
- }, rs = (t, e) => {
916
+ (n = T()) === null || n === void 0 || n.focus();
917
+ }, sn = ["ArrowRight", "ArrowDown"], as = ["ArrowLeft", "ArrowUp"], ls = (t, e, n) => {
918
+ t && (e.isComposing || e.keyCode === 229 || (t.stopKeydownPropagation && e.stopPropagation(), e.key === "Enter" ? cs(e, t) : e.key === "Tab" ? us(e) : [...sn, ...as].includes(e.key) ? ds(e.key) : e.key === "Escape" && hs(e, t, n)));
919
+ }, cs = (t, e) => {
917
920
  if (!Oe(e.allowEnterKey))
918
921
  return;
919
- const n = S();
922
+ const n = T();
920
923
  if (!n || !e.input)
921
924
  return;
922
925
  const o = je(n, e.input);
923
926
  if (t.target && o && t.target instanceof HTMLElement && t.target.outerHTML === o.outerHTML) {
924
927
  if (["textarea", "file"].includes(e.input))
925
928
  return;
926
- tn(), t.preventDefault();
929
+ nn(), t.preventDefault();
927
930
  }
928
- }, is = (t) => {
931
+ }, us = (t) => {
929
932
  const e = t.target, n = it();
930
933
  let o = -1;
931
934
  for (let s = 0; s < n.length; s++)
@@ -934,14 +937,14 @@ const qo = (t) => {
934
937
  break;
935
938
  }
936
939
  t.shiftKey ? We(o, -1) : We(o, 1), t.stopPropagation(), t.preventDefault();
937
- }, as = (t) => {
940
+ }, ds = (t) => {
938
941
  const e = ge(), n = q(), o = te(), s = le();
939
942
  if (!e || !n || !o || !s)
940
943
  return;
941
944
  const r = [n, o, s];
942
945
  if (document.activeElement instanceof HTMLElement && !r.includes(document.activeElement))
943
946
  return;
944
- const a = on.includes(t) ? "nextElementSibling" : "previousElementSibling";
947
+ const a = sn.includes(t) ? "nextElementSibling" : "previousElementSibling";
945
948
  let c = document.activeElement;
946
949
  if (c) {
947
950
  for (let i = 0; i < e.children.length; i++) {
@@ -952,75 +955,75 @@ const qo = (t) => {
952
955
  }
953
956
  c instanceof HTMLButtonElement && c.focus();
954
957
  }
955
- }, ls = (t, e, n) => {
958
+ }, hs = (t, e, n) => {
956
959
  t.preventDefault(), Oe(e.allowEscapeKey) && n(ue.esc);
957
960
  };
958
961
  var se = {
959
962
  swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
960
963
  swalPromiseReject: /* @__PURE__ */ new WeakMap()
961
964
  };
962
- const cs = () => {
965
+ const ws = () => {
963
966
  const t = D();
964
967
  Array.from(document.body.children).forEach((n) => {
965
968
  n.contains(t) || (n.hasAttribute("aria-hidden") && n.setAttribute("data-previous-aria-hidden", n.getAttribute("aria-hidden") || ""), n.setAttribute("aria-hidden", "true"));
966
969
  });
967
- }, sn = () => {
970
+ }, rn = () => {
968
971
  Array.from(document.body.children).forEach((e) => {
969
972
  e.hasAttribute("data-previous-aria-hidden") ? (e.setAttribute("aria-hidden", e.getAttribute("data-previous-aria-hidden") || ""), e.removeAttribute("data-previous-aria-hidden")) : e.removeAttribute("aria-hidden");
970
973
  });
971
- }, rn = typeof window < "u" && !!window.GestureEvent, us = () => {
972
- if (rn && !K(document.body, l.iosfix)) {
974
+ }, an = typeof window < "u" && !!window.GestureEvent, fs = () => {
975
+ if (an && !K(document.body, l.iosfix)) {
973
976
  const t = document.body.scrollTop;
974
- document.body.style.top = `${t * -1}px`, L(document.body, l.iosfix), ds();
977
+ document.body.style.top = `${t * -1}px`, L(document.body, l.iosfix), ps();
975
978
  }
976
- }, ds = () => {
979
+ }, ps = () => {
977
980
  const t = D();
978
981
  if (!t)
979
982
  return;
980
983
  let e;
981
984
  t.ontouchstart = (n) => {
982
- e = hs(n);
985
+ e = gs(n);
983
986
  }, t.ontouchmove = (n) => {
984
987
  e && (n.preventDefault(), n.stopPropagation());
985
988
  };
986
- }, hs = (t) => {
989
+ }, gs = (t) => {
987
990
  const e = t.target, n = D(), o = ot();
988
- return !n || !o || ws(t) || fs(t) ? !1 : e === n || !Ge(n) && e instanceof HTMLElement && !ho(e, o) && // #2823
991
+ return !n || !o || ms(t) || bs(t) ? !1 : e === n || !Ge(n) && e instanceof HTMLElement && !go(e, o) && // #2823
989
992
  e.tagName !== "INPUT" && // #1603
990
993
  e.tagName !== "TEXTAREA" && // #2266
991
994
  !(Ge(o) && // #1944
992
995
  o.contains(e));
993
- }, ws = (t) => !!(t.touches && t.touches.length && // @ts-ignore - touchType is not a standard property
994
- t.touches[0].touchType === "stylus"), fs = (t) => t.touches && t.touches.length > 1, ps = () => {
996
+ }, ms = (t) => !!(t.touches && t.touches.length && // @ts-ignore - touchType is not a standard property
997
+ t.touches[0].touchType === "stylus"), bs = (t) => t.touches && t.touches.length > 1, ys = () => {
995
998
  if (K(document.body, l.iosfix)) {
996
999
  const t = parseInt(document.body.style.top, 10);
997
1000
  V(document.body, l.iosfix), document.body.style.top = "", document.body.scrollTop = t * -1;
998
1001
  }
999
- }, gs = () => {
1002
+ }, vs = () => {
1000
1003
  const t = document.createElement("div");
1001
1004
  t.className = l["scrollbar-measure"], document.body.appendChild(t);
1002
1005
  const e = t.getBoundingClientRect().width - t.clientWidth;
1003
1006
  return document.body.removeChild(t), e;
1004
1007
  };
1005
1008
  let oe = null;
1006
- const ms = (t) => {
1007
- oe === null && (document.body.scrollHeight > window.innerHeight || t === "scroll") && (oe = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${oe + gs()}px`);
1008
- }, bs = () => {
1009
+ const Cs = (t) => {
1010
+ oe === null && (document.body.scrollHeight > window.innerHeight || t === "scroll") && (oe = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${oe + vs()}px`);
1011
+ }, ks = () => {
1009
1012
  oe !== null && (document.body.style.paddingRight = `${oe}px`, oe = null);
1010
1013
  };
1011
- function an(t, e, n, o) {
1012
- De() ? St(t, o) : (to(n).then(() => St(t, o)), nn(p)), rn ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(), at() && (bs(), ps(), sn()), ys();
1014
+ function ln(t, e, n, o) {
1015
+ De() ? Tt(t, o) : (ro(n).then(() => Tt(t, o)), on(p)), an ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(), at() && (ks(), ys(), rn()), xs();
1013
1016
  }
1014
- function ys() {
1017
+ function xs() {
1015
1018
  V([document.documentElement, document.body], [l.shown, l["height-auto"], l["no-backdrop"], l["toast-shown"]]);
1016
1019
  }
1017
1020
  function W(t) {
1018
- t = Cs(t);
1019
- const e = se.swalPromiseResolve.get(this), n = vs(this);
1021
+ t = Es(t);
1022
+ const e = se.swalPromiseResolve.get(this), n = As(this);
1020
1023
  this.isAwaitingPromise ? t.isDismissed || (ye(this), e(t)) : n && e(t);
1021
1024
  }
1022
- const vs = (t) => {
1023
- const e = S();
1025
+ const As = (t) => {
1026
+ const e = T();
1024
1027
  if (!e)
1025
1028
  return !1;
1026
1029
  const n = I.innerParams.get(t);
@@ -1028,15 +1031,15 @@ const vs = (t) => {
1028
1031
  return !1;
1029
1032
  V(e, n.showClass.popup), L(e, n.hideClass.popup);
1030
1033
  const o = D();
1031
- return V(o, n.showClass.backdrop), L(o, n.hideClass.backdrop), ks(t, e, n), !0;
1034
+ return V(o, n.showClass.backdrop), L(o, n.hideClass.backdrop), Ls(t, e, n), !0;
1032
1035
  };
1033
- function ln(t) {
1036
+ function cn(t) {
1034
1037
  const e = se.swalPromiseReject.get(this);
1035
1038
  ye(this), e && e(t);
1036
1039
  }
1037
1040
  const ye = (t) => {
1038
1041
  t.isAwaitingPromise && (delete t.isAwaitingPromise, I.innerParams.get(t) || t._destroy());
1039
- }, Cs = (t) => typeof t > "u" ? {
1042
+ }, Es = (t) => typeof t > "u" ? {
1040
1043
  isConfirmed: !1,
1041
1044
  isDenied: !1,
1042
1045
  isDismissed: !0
@@ -1044,12 +1047,12 @@ const ye = (t) => {
1044
1047
  isConfirmed: !1,
1045
1048
  isDenied: !1,
1046
1049
  isDismissed: !1
1047
- }, t), ks = (t, e, n) => {
1050
+ }, t), Ls = (t, e, n) => {
1048
1051
  var o;
1049
- const s = D(), r = Kt(e);
1050
- typeof n.willClose == "function" && n.willClose(e), (o = p.eventEmitter) === null || o === void 0 || o.emit("willClose", e), r && s ? xs(t, e, s, !!n.returnFocus, n.didClose) : s && an(t, s, !!n.returnFocus, n.didClose);
1051
- }, xs = (t, e, n, o, s) => {
1052
- p.swalCloseEventFinishedCallback = an.bind(null, t, n, o, s);
1052
+ const s = D(), r = Gt(e);
1053
+ typeof n.willClose == "function" && n.willClose(e), (o = p.eventEmitter) === null || o === void 0 || o.emit("willClose", e), r && s ? Ts(t, e, s, !!n.returnFocus, n.didClose) : s && ln(t, s, !!n.returnFocus, n.didClose);
1054
+ }, Ts = (t, e, n, o, s) => {
1055
+ p.swalCloseEventFinishedCallback = ln.bind(null, t, n, o, s);
1053
1056
  const r = function(a) {
1054
1057
  if (a.target === e) {
1055
1058
  var c;
@@ -1057,47 +1060,47 @@ const ye = (t) => {
1057
1060
  }
1058
1061
  };
1059
1062
  e.addEventListener("animationend", r), e.addEventListener("transitionend", r);
1060
- }, St = (t, e) => {
1063
+ }, Tt = (t, e) => {
1061
1064
  setTimeout(() => {
1062
1065
  var n;
1063
1066
  typeof e == "function" && e.bind(t.params)(), (n = p.eventEmitter) === null || n === void 0 || n.emit("didClose"), t._destroy && t._destroy();
1064
1067
  });
1065
1068
  }, re = (t) => {
1066
- let e = S();
1067
- if (e || new O(), e = S(), !e)
1069
+ let e = T();
1070
+ if (e || new O(), e = T(), !e)
1068
1071
  return;
1069
1072
  const n = ce();
1070
- De() ? N(ae()) : As(e, t), M(n), e.setAttribute("data-loading", "true"), e.setAttribute("aria-busy", "true"), e.focus();
1071
- }, As = (t, e) => {
1073
+ De() ? N(ae()) : Ss(e, t), M(n), e.setAttribute("data-loading", "true"), e.setAttribute("aria-busy", "true"), e.focus();
1074
+ }, Ss = (t, e) => {
1072
1075
  const n = ge(), o = ce();
1073
1076
  !n || !o || (!e && j(q()) && (e = q()), M(n), e && (N(e), o.setAttribute("data-button-to-replace", e.className), n.insertBefore(o, e)), L([t, n], l.loading));
1074
- }, Es = (t, e) => {
1075
- e.input === "select" || e.input === "radio" ? Is(t, e) : ["text", "email", "number", "tel", "textarea"].some((n) => n === e.input) && (tt(e.inputValue) || nt(e.inputValue)) && (re(q()), $s(t, e));
1076
- }, Ls = (t, e) => {
1077
+ }, _s = (t, e) => {
1078
+ e.input === "select" || e.input === "radio" ? Ms(t, e) : ["text", "email", "number", "tel", "textarea"].some((n) => n === e.input) && (tt(e.inputValue) || nt(e.inputValue)) && (re(q()), Os(t, e));
1079
+ }, Is = (t, e) => {
1077
1080
  const n = t.getInput();
1078
1081
  if (!n)
1079
1082
  return null;
1080
1083
  switch (e.input) {
1081
1084
  case "checkbox":
1082
- return Ss(n);
1085
+ return $s(n);
1083
1086
  case "radio":
1084
- return Ts(n);
1087
+ return Bs(n);
1085
1088
  case "file":
1086
- return _s(n);
1089
+ return Ps(n);
1087
1090
  default:
1088
1091
  return e.inputAutoTrim ? n.value.trim() : n.value;
1089
1092
  }
1090
- }, Ss = (t) => t.checked ? 1 : 0, Ts = (t) => t.checked ? t.value : null, _s = (t) => t.files && t.files.length ? t.getAttribute("multiple") !== null ? t.files : t.files[0] : null, Is = (t, e) => {
1091
- const n = S();
1093
+ }, $s = (t) => t.checked ? 1 : 0, Bs = (t) => t.checked ? t.value : null, Ps = (t) => t.files && t.files.length ? t.getAttribute("multiple") !== null ? t.files : t.files[0] : null, Ms = (t, e) => {
1094
+ const n = T();
1092
1095
  if (!n)
1093
1096
  return;
1094
1097
  const o = (s) => {
1095
- e.input === "select" ? Bs(n, $e(s), e) : e.input === "radio" && Ps(n, $e(s), e);
1098
+ e.input === "select" ? Ns(n, $e(s), e) : e.input === "radio" && zs(n, $e(s), e);
1096
1099
  };
1097
1100
  tt(e.inputOptions) || nt(e.inputOptions) ? (re(q()), fe(e.inputOptions).then((s) => {
1098
1101
  t.hideLoading(), o(s);
1099
1102
  })) : typeof e.inputOptions == "object" ? o(e.inputOptions) : ee(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`);
1100
- }, $s = (t, e) => {
1103
+ }, Os = (t, e) => {
1101
1104
  const n = t.getInput();
1102
1105
  n && (N(n), fe(e.inputValue).then((o) => {
1103
1106
  n.value = e.input === "number" ? `${parseFloat(o) || 0}` : `${o}`, M(n), n.focus(), t.hideLoading();
@@ -1105,13 +1108,13 @@ const ye = (t) => {
1105
1108
  ee(`Error in inputValue promise: ${o}`), n.value = "", M(n), n.focus(), t.hideLoading();
1106
1109
  }));
1107
1110
  };
1108
- function Bs(t, e, n) {
1111
+ function Ns(t, e, n) {
1109
1112
  const o = G(t, l.select);
1110
1113
  if (!o)
1111
1114
  return;
1112
1115
  const s = (r, a, c) => {
1113
1116
  const i = document.createElement("option");
1114
- i.value = c, H(i, a), i.selected = cn(c, n.inputValue), r.appendChild(i);
1117
+ i.value = c, H(i, a), i.selected = un(c, n.inputValue), r.appendChild(i);
1115
1118
  };
1116
1119
  e.forEach((r) => {
1117
1120
  const a = r[0], c = r[1];
@@ -1122,13 +1125,13 @@ function Bs(t, e, n) {
1122
1125
  s(o, c, a);
1123
1126
  }), o.focus();
1124
1127
  }
1125
- function Ps(t, e, n) {
1128
+ function zs(t, e, n) {
1126
1129
  const o = G(t, l.radio);
1127
1130
  if (!o)
1128
1131
  return;
1129
1132
  e.forEach((r) => {
1130
1133
  const a = r[0], c = r[1], i = document.createElement("input"), u = document.createElement("label");
1131
- i.type = "radio", i.name = l.radio, i.value = a, cn(a, n.inputValue) && (i.checked = !0);
1134
+ i.type = "radio", i.name = l.radio, i.value = a, un(a, n.inputValue) && (i.checked = !0);
1132
1135
  const d = document.createElement("span");
1133
1136
  H(d, c), d.className = l.label, u.appendChild(i), u.appendChild(d), o.appendChild(u);
1134
1137
  });
@@ -1144,23 +1147,23 @@ const $e = (t) => {
1144
1147
  let o = t[n];
1145
1148
  typeof o == "object" && (o = $e(o)), e.push([n, o]);
1146
1149
  }), e;
1147
- }, cn = (t, e) => !!e && e !== null && e !== void 0 && e.toString() === t.toString(), Ms = (t) => {
1150
+ }, un = (t, e) => !!e && e !== null && e !== void 0 && e.toString() === t.toString(), Ds = (t) => {
1148
1151
  const e = I.innerParams.get(t);
1149
- t.disableButtons(), e.input ? un(t, "confirm") : ft(t, !0);
1150
- }, Os = (t) => {
1152
+ t.disableButtons(), e.input ? dn(t, "confirm") : ft(t, !0);
1153
+ }, js = (t) => {
1151
1154
  const e = I.innerParams.get(t);
1152
- t.disableButtons(), e.returnInputValueOnDeny ? un(t, "deny") : wt(t, !1);
1153
- }, Ns = (t, e) => {
1155
+ t.disableButtons(), e.returnInputValueOnDeny ? dn(t, "deny") : wt(t, !1);
1156
+ }, Us = (t, e) => {
1154
1157
  t.disableButtons(), e(ue.cancel);
1155
- }, un = (t, e) => {
1158
+ }, dn = (t, e) => {
1156
1159
  const n = I.innerParams.get(t);
1157
1160
  if (!n.input) {
1158
1161
  ee(`The "input" parameter is needed to be set when using returnInputValueOn${et(e)}`);
1159
1162
  return;
1160
1163
  }
1161
- const o = t.getInput(), s = Ls(t, n);
1162
- n.inputValidator ? zs(t, s, e) : o && !o.checkValidity() ? (t.enableButtons(), t.showValidationMessage(n.validationMessage || o.validationMessage)) : e === "deny" ? wt(t, s) : ft(t, s);
1163
- }, zs = (t, e, n) => {
1164
+ const o = t.getInput(), s = Is(t, n);
1165
+ n.inputValidator ? Rs(t, s, e) : o && !o.checkValidity() ? (t.enableButtons(), t.showValidationMessage(n.validationMessage || o.validationMessage)) : e === "deny" ? wt(t, s) : ft(t, s);
1166
+ }, Rs = (t, e, n) => {
1164
1167
  const o = I.innerParams.get(t);
1165
1168
  t.disableInput(), Promise.resolve().then(() => fe(o.inputValidator(e, o.validationMessage))).then((r) => {
1166
1169
  t.enableButtons(), t.enableInput(), r ? t.showValidationMessage(r) : n === "deny" ? wt(t, e) : ft(t, e);
@@ -1175,14 +1178,14 @@ const $e = (t) => {
1175
1178
  value: typeof s > "u" ? e : s
1176
1179
  }
1177
1180
  );
1178
- }).catch((s) => dn(t, s))) : t.close(
1181
+ }).catch((s) => hn(t, s))) : t.close(
1179
1182
  /** @type SweetAlertResult */
1180
1183
  {
1181
1184
  isDenied: !0,
1182
1185
  value: e
1183
1186
  }
1184
1187
  );
1185
- }, Tt = (t, e) => {
1188
+ }, St = (t, e) => {
1186
1189
  t.close(
1187
1190
  /** @type SweetAlertResult */
1188
1191
  {
@@ -1190,41 +1193,41 @@ const $e = (t) => {
1190
1193
  value: e
1191
1194
  }
1192
1195
  );
1193
- }, dn = (t, e) => {
1196
+ }, hn = (t, e) => {
1194
1197
  t.rejectPromise(e);
1195
1198
  }, ft = (t, e) => {
1196
1199
  const n = I.innerParams.get(t);
1197
1200
  n.showLoaderOnConfirm && re(), n.preConfirm ? (t.resetValidationMessage(), t.isAwaitingPromise = !0, Promise.resolve().then(() => fe(n.preConfirm(e, n.validationMessage))).then((s) => {
1198
- j(Ne()) || s === !1 ? (t.hideLoading(), ye(t)) : Tt(t, typeof s > "u" ? e : s);
1199
- }).catch((s) => dn(t, s))) : Tt(t, e);
1201
+ j(Ne()) || s === !1 ? (t.hideLoading(), ye(t)) : St(t, typeof s > "u" ? e : s);
1202
+ }).catch((s) => hn(t, s))) : St(t, e);
1200
1203
  };
1201
1204
  function Be() {
1202
1205
  const t = I.innerParams.get(this);
1203
1206
  if (!t)
1204
1207
  return;
1205
1208
  const e = I.domCache.get(this);
1206
- N(e.loader), De() ? t.icon && M(ae()) : Ds(e), V([e.popup, e.actions], l.loading), e.popup.removeAttribute("aria-busy"), e.popup.removeAttribute("data-loading"), e.confirmButton.disabled = !1, e.denyButton.disabled = !1, e.cancelButton.disabled = !1;
1209
+ N(e.loader), De() ? t.icon && M(ae()) : Hs(e), V([e.popup, e.actions], l.loading), e.popup.removeAttribute("aria-busy"), e.popup.removeAttribute("data-loading"), e.confirmButton.disabled = !1, e.denyButton.disabled = !1, e.cancelButton.disabled = !1;
1207
1210
  }
1208
- const Ds = (t) => {
1211
+ const Hs = (t) => {
1209
1212
  const e = t.loader.getAttribute("data-button-to-replace"), n = e ? t.popup.getElementsByClassName(e) : [];
1210
1213
  n.length ? M(
1211
1214
  /** @type {HTMLElement} */
1212
1215
  n[0],
1213
1216
  "inline-block"
1214
- ) : uo() && N(t.actions);
1217
+ ) : po() && N(t.actions);
1215
1218
  };
1216
- function hn() {
1219
+ function wn() {
1217
1220
  const t = I.innerParams.get(this), e = I.domCache.get(this);
1218
1221
  return e ? je(e.popup, t.input) : null;
1219
1222
  }
1220
- function wn(t, e, n) {
1223
+ function fn(t, e, n) {
1221
1224
  const o = I.domCache.get(t);
1222
1225
  e.forEach((s) => {
1223
1226
  o[s].disabled = n;
1224
1227
  });
1225
1228
  }
1226
- function fn(t, e) {
1227
- const n = S();
1229
+ function pn(t, e) {
1230
+ const n = T();
1228
1231
  if (!(!n || !t))
1229
1232
  if (t.type === "radio") {
1230
1233
  const o = n.querySelectorAll(`[name="${l.radio}"]`);
@@ -1233,25 +1236,25 @@ function fn(t, e) {
1233
1236
  } else
1234
1237
  t.disabled = e;
1235
1238
  }
1236
- function pn() {
1237
- wn(this, ["confirmButton", "denyButton", "cancelButton"], !1);
1238
- }
1239
1239
  function gn() {
1240
- wn(this, ["confirmButton", "denyButton", "cancelButton"], !0);
1240
+ fn(this, ["confirmButton", "denyButton", "cancelButton"], !1);
1241
1241
  }
1242
1242
  function mn() {
1243
- fn(this.getInput(), !1);
1243
+ fn(this, ["confirmButton", "denyButton", "cancelButton"], !0);
1244
1244
  }
1245
1245
  function bn() {
1246
- fn(this.getInput(), !0);
1246
+ pn(this.getInput(), !1);
1247
+ }
1248
+ function yn() {
1249
+ pn(this.getInput(), !0);
1247
1250
  }
1248
- function yn(t) {
1251
+ function vn(t) {
1249
1252
  const e = I.domCache.get(this), n = I.innerParams.get(this);
1250
1253
  H(e.validationMessage, t), e.validationMessage.className = l["validation-message"], n.customClass && n.customClass.validationMessage && L(e.validationMessage, n.customClass.validationMessage), M(e.validationMessage);
1251
1254
  const o = this.getInput();
1252
- o && (o.setAttribute("aria-invalid", "true"), o.setAttribute("aria-describedby", l["validation-message"]), Ft(o), L(o, l.inputerror));
1255
+ o && (o.setAttribute("aria-invalid", "true"), o.setAttribute("aria-describedby", l["validation-message"]), qt(o), L(o, l.inputerror));
1253
1256
  }
1254
- function vn() {
1257
+ function Cn() {
1255
1258
  const t = I.domCache.get(this);
1256
1259
  t.validationMessage && N(t.validationMessage);
1257
1260
  const e = this.getInput();
@@ -1350,28 +1353,28 @@ const Y = {
1350
1353
  didDestroy: void 0,
1351
1354
  scrollbarPadding: !0,
1352
1355
  topLayer: !1
1353
- }, js = ["allowEscapeKey", "allowOutsideClick", "background", "buttonsStyling", "cancelButtonAriaLabel", "cancelButtonColor", "cancelButtonText", "closeButtonAriaLabel", "closeButtonHtml", "color", "confirmButtonAriaLabel", "confirmButtonColor", "confirmButtonText", "currentProgressStep", "customClass", "denyButtonAriaLabel", "denyButtonColor", "denyButtonText", "didClose", "didDestroy", "draggable", "footer", "hideClass", "html", "icon", "iconColor", "iconHtml", "imageAlt", "imageHeight", "imageUrl", "imageWidth", "preConfirm", "preDeny", "progressSteps", "returnFocus", "reverseButtons", "showCancelButton", "showCloseButton", "showConfirmButton", "showDenyButton", "text", "title", "titleText", "theme", "willClose"], Us = {
1356
+ }, Vs = ["allowEscapeKey", "allowOutsideClick", "background", "buttonsStyling", "cancelButtonAriaLabel", "cancelButtonColor", "cancelButtonText", "closeButtonAriaLabel", "closeButtonHtml", "color", "confirmButtonAriaLabel", "confirmButtonColor", "confirmButtonText", "currentProgressStep", "customClass", "denyButtonAriaLabel", "denyButtonColor", "denyButtonText", "didClose", "didDestroy", "draggable", "footer", "hideClass", "html", "icon", "iconColor", "iconHtml", "imageAlt", "imageHeight", "imageUrl", "imageWidth", "preConfirm", "preDeny", "progressSteps", "returnFocus", "reverseButtons", "showCancelButton", "showCloseButton", "showConfirmButton", "showDenyButton", "text", "title", "titleText", "theme", "willClose"], Fs = {
1354
1357
  allowEnterKey: void 0
1355
- }, Rs = ["allowOutsideClick", "allowEnterKey", "backdrop", "draggable", "focusConfirm", "focusDeny", "focusCancel", "returnFocus", "heightAuto", "keydownListenerCapture"], Cn = (t) => Object.prototype.hasOwnProperty.call(Y, t), kn = (t) => js.indexOf(t) !== -1, xn = (t) => Us[t], Hs = (t) => {
1356
- Cn(t) || z(`Unknown parameter "${t}"`);
1357
- }, Vs = (t) => {
1358
- Rs.includes(t) && z(`The parameter "${t}" is incompatible with toasts`);
1359
- }, Fs = (t) => {
1360
- const e = xn(t);
1361
- e && Ut(t, e);
1362
- }, An = (t) => {
1358
+ }, qs = ["allowOutsideClick", "allowEnterKey", "backdrop", "draggable", "focusConfirm", "focusDeny", "focusCancel", "returnFocus", "heightAuto", "keydownListenerCapture"], kn = (t) => Object.prototype.hasOwnProperty.call(Y, t), xn = (t) => Vs.indexOf(t) !== -1, An = (t) => Fs[t], Ks = (t) => {
1359
+ kn(t) || z(`Unknown parameter "${t}"`);
1360
+ }, Gs = (t) => {
1361
+ qs.includes(t) && z(`The parameter "${t}" is incompatible with toasts`);
1362
+ }, Ws = (t) => {
1363
+ const e = An(t);
1364
+ e && Rt(t, e);
1365
+ }, En = (t) => {
1363
1366
  t.backdrop === !1 && t.allowOutsideClick && z('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'), t.theme && !["light", "dark", "auto", "minimal", "borderless", "bootstrap-4", "bootstrap-4-light", "bootstrap-4-dark", "bootstrap-5", "bootstrap-5-light", "bootstrap-5-dark", "material-ui", "material-ui-light", "material-ui-dark", "embed-iframe", "bulma", "bulma-light", "bulma-dark"].includes(t.theme) && z(`Invalid theme "${t.theme}"`);
1364
1367
  for (const e in t)
1365
- Hs(e), t.toast && Vs(e), Fs(e);
1368
+ Ks(e), t.toast && Gs(e), Ws(e);
1366
1369
  };
1367
- function En(t) {
1368
- const e = D(), n = S(), o = I.innerParams.get(this);
1370
+ function Ln(t) {
1371
+ const e = D(), n = T(), o = I.innerParams.get(this);
1369
1372
  if (!n || K(n, o.hideClass.popup)) {
1370
1373
  z("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");
1371
1374
  return;
1372
1375
  }
1373
- const s = qs(t), r = Object.assign({}, o, s);
1374
- An(r), e && (e.dataset.swal2Theme = r.theme), en(this, r), I.innerParams.set(this, r), Object.defineProperties(this, {
1376
+ const s = Ys(t), r = Object.assign({}, o, s);
1377
+ En(r), e && (e.dataset.swal2Theme = r.theme), tn(this, r), I.innerParams.set(this, r), Object.defineProperties(this, {
1375
1378
  params: {
1376
1379
  value: Object.assign({}, this.params, t),
1377
1380
  writable: !1,
@@ -1379,10 +1382,10 @@ function En(t) {
1379
1382
  }
1380
1383
  });
1381
1384
  }
1382
- const qs = (t) => {
1385
+ const Ys = (t) => {
1383
1386
  const e = {};
1384
1387
  return Object.keys(t).forEach((n) => {
1385
- if (kn(n)) {
1388
+ if (xn(n)) {
1386
1389
  const o = (
1387
1390
  /** @type {Record<string, any>} */
1388
1391
  t
@@ -1392,16 +1395,16 @@ const qs = (t) => {
1392
1395
  z(`Invalid parameter to update: ${n}`);
1393
1396
  }), e;
1394
1397
  };
1395
- function Ln() {
1398
+ function Tn() {
1396
1399
  var t;
1397
1400
  const e = I.domCache.get(this), n = I.innerParams.get(this);
1398
1401
  if (!n) {
1399
1402
  Sn(this);
1400
1403
  return;
1401
1404
  }
1402
- e.popup && p.swalCloseEventFinishedCallback && (p.swalCloseEventFinishedCallback(), delete p.swalCloseEventFinishedCallback), typeof n.didDestroy == "function" && n.didDestroy(), (t = p.eventEmitter) === null || t === void 0 || t.emit("didDestroy"), Ks(this);
1405
+ e.popup && p.swalCloseEventFinishedCallback && (p.swalCloseEventFinishedCallback(), delete p.swalCloseEventFinishedCallback), typeof n.didDestroy == "function" && n.didDestroy(), (t = p.eventEmitter) === null || t === void 0 || t.emit("didDestroy"), Zs(this);
1403
1406
  }
1404
- const Ks = (t) => {
1407
+ const Zs = (t) => {
1405
1408
  Sn(t), delete t.params, delete p.keydownHandler, delete p.keydownTarget, delete p.currentInstance;
1406
1409
  }, Sn = (t) => {
1407
1410
  t.isAwaitingPromise ? (Fe(I, t), t.isAwaitingPromise = !0) : (Fe(se, t), Fe(I, t), delete t.isAwaitingPromise, delete t.disableButtons, delete t.enableButtons, delete t.getInput, delete t.disableInput, delete t.enableInput, delete t.hideLoading, delete t.disableLoading, delete t.showValidationMessage, delete t.resetValidationMessage, delete t.close, delete t.closePopup, delete t.closeModal, delete t.closeToast, delete t.rejectPromise, delete t.update, delete t._destroy);
@@ -1409,49 +1412,49 @@ const Ks = (t) => {
1409
1412
  for (const n in t)
1410
1413
  t[n].delete(e);
1411
1414
  };
1412
- var Gs = /* @__PURE__ */ Object.freeze({
1415
+ var Xs = /* @__PURE__ */ Object.freeze({
1413
1416
  __proto__: null,
1414
- _destroy: Ln,
1417
+ _destroy: Tn,
1415
1418
  close: W,
1416
1419
  closeModal: W,
1417
1420
  closePopup: W,
1418
1421
  closeToast: W,
1419
- disableButtons: gn,
1420
- disableInput: bn,
1422
+ disableButtons: mn,
1423
+ disableInput: yn,
1421
1424
  disableLoading: Be,
1422
- enableButtons: pn,
1423
- enableInput: mn,
1424
- getInput: hn,
1425
+ enableButtons: gn,
1426
+ enableInput: bn,
1427
+ getInput: wn,
1425
1428
  handleAwaitingPromise: ye,
1426
1429
  hideLoading: Be,
1427
- rejectPromise: ln,
1428
- resetValidationMessage: vn,
1429
- showValidationMessage: yn,
1430
- update: En
1430
+ rejectPromise: cn,
1431
+ resetValidationMessage: Cn,
1432
+ showValidationMessage: vn,
1433
+ update: Ln
1431
1434
  });
1432
- const Ws = (t, e, n) => {
1433
- t.toast ? Ys(t, e, n) : (Xs(e), Js(e), Qs(t, e, n));
1434
- }, Ys = (t, e, n) => {
1435
+ const Js = (t, e, n) => {
1436
+ t.toast ? Qs(t, e, n) : (tr(e), nr(e), or(t, e, n));
1437
+ }, Qs = (t, e, n) => {
1435
1438
  e.popup.onclick = () => {
1436
- t && (Zs(t) || t.timer || t.input) || n(ue.close);
1439
+ t && (er(t) || t.timer || t.input) || n(ue.close);
1437
1440
  };
1438
- }, Zs = (t) => !!(t.showConfirmButton || t.showDenyButton || t.showCancelButton || t.showCloseButton);
1441
+ }, er = (t) => !!(t.showConfirmButton || t.showDenyButton || t.showCancelButton || t.showCloseButton);
1439
1442
  let Pe = !1;
1440
- const Xs = (t) => {
1443
+ const tr = (t) => {
1441
1444
  t.popup.onmousedown = () => {
1442
1445
  t.container.onmouseup = function(e) {
1443
1446
  t.container.onmouseup = () => {
1444
1447
  }, e.target === t.container && (Pe = !0);
1445
1448
  };
1446
1449
  };
1447
- }, Js = (t) => {
1450
+ }, nr = (t) => {
1448
1451
  t.container.onmousedown = (e) => {
1449
1452
  e.target === t.container && e.preventDefault(), t.popup.onmouseup = function(n) {
1450
1453
  t.popup.onmouseup = () => {
1451
1454
  }, (n.target === t.popup || n.target instanceof HTMLElement && t.popup.contains(n.target)) && (Pe = !0);
1452
1455
  };
1453
1456
  };
1454
- }, Qs = (t, e, n) => {
1457
+ }, or = (t, e, n) => {
1455
1458
  e.container.onclick = (o) => {
1456
1459
  if (Pe) {
1457
1460
  Pe = !1;
@@ -1459,7 +1462,7 @@ const Xs = (t) => {
1459
1462
  }
1460
1463
  o.target === e.container && Oe(t.allowOutsideClick) && n(ue.backdrop);
1461
1464
  };
1462
- }, er = (t) => typeof t == "object" && t !== null && "jquery" in t, _t = (t) => t instanceof Element || er(t), tr = (t) => {
1465
+ }, sr = (t) => typeof t == "object" && t !== null && "jquery" in t, _t = (t) => t instanceof Element || sr(t), rr = (t) => {
1463
1466
  const e = {};
1464
1467
  return typeof t[0] == "object" && !_t(t[0]) ? Object.assign(e, t[0]) : ["title", "html", "icon"].forEach((n, o) => {
1465
1468
  const s = t[o];
@@ -1467,10 +1470,10 @@ const Xs = (t) => {
1467
1470
  }), /** @type {SweetAlertOptions} */
1468
1471
  e;
1469
1472
  };
1470
- function nr(...t) {
1473
+ function ir(...t) {
1471
1474
  return new this(...t);
1472
1475
  }
1473
- function or(t) {
1476
+ function ar(t) {
1474
1477
  class e extends this {
1475
1478
  /**
1476
1479
  * @param {any} params
@@ -1482,29 +1485,29 @@ function or(t) {
1482
1485
  }
1483
1486
  return e;
1484
1487
  }
1485
- const sr = () => p.timeout && p.timeout.getTimerLeft(), Tn = () => {
1488
+ const lr = () => p.timeout && p.timeout.getTimerLeft(), _n = () => {
1486
1489
  if (p.timeout)
1487
- return wo(), p.timeout.stop();
1488
- }, _n = () => {
1490
+ return mo(), p.timeout.stop();
1491
+ }, In = () => {
1489
1492
  if (p.timeout) {
1490
1493
  const t = p.timeout.start();
1491
1494
  return ct(t), t;
1492
1495
  }
1493
- }, rr = () => {
1496
+ }, cr = () => {
1494
1497
  const t = p.timeout;
1495
- return t && (t.running ? Tn() : _n());
1496
- }, ir = (t) => {
1498
+ return t && (t.running ? _n() : In());
1499
+ }, ur = (t) => {
1497
1500
  if (p.timeout) {
1498
1501
  const e = p.timeout.increase(t);
1499
1502
  return ct(e, !0), e;
1500
1503
  }
1501
- }, ar = () => !!(p.timeout && p.timeout.isRunning());
1504
+ }, dr = () => !!(p.timeout && p.timeout.isRunning());
1502
1505
  let It = !1;
1503
1506
  const Ye = {};
1504
- function lr(t = "data-swal-template") {
1505
- Ye[t] = this, It || (document.body.addEventListener("click", cr), It = !0);
1507
+ function hr(t = "data-swal-template") {
1508
+ Ye[t] = this, It || (document.body.addEventListener("click", wr), It = !0);
1506
1509
  }
1507
- const cr = (t) => {
1510
+ const wr = (t) => {
1508
1511
  for (let e = (
1509
1512
  /** @type {any} */
1510
1513
  t.target
@@ -1519,7 +1522,7 @@ const cr = (t) => {
1519
1522
  }
1520
1523
  }
1521
1524
  };
1522
- class ur {
1525
+ class fr {
1523
1526
  constructor() {
1524
1527
  this.events = {};
1525
1528
  }
@@ -1584,12 +1587,12 @@ class ur {
1584
1587
  this.events = {};
1585
1588
  }
1586
1589
  }
1587
- p.eventEmitter = new ur();
1588
- const dr = (t, e) => {
1590
+ p.eventEmitter = new fr();
1591
+ const pr = (t, e) => {
1589
1592
  p.eventEmitter && p.eventEmitter.on(t, e);
1590
- }, hr = (t, e) => {
1593
+ }, gr = (t, e) => {
1591
1594
  p.eventEmitter && p.eventEmitter.once(t, e);
1592
- }, wr = (t, e) => {
1595
+ }, mr = (t, e) => {
1593
1596
  if (p.eventEmitter) {
1594
1597
  if (!t) {
1595
1598
  p.eventEmitter.reset();
@@ -1598,15 +1601,15 @@ const dr = (t, e) => {
1598
1601
  e ? p.eventEmitter.removeListener(t, e) : p.eventEmitter.removeAllListeners(t);
1599
1602
  }
1600
1603
  };
1601
- var fr = /* @__PURE__ */ Object.freeze({
1604
+ var br = /* @__PURE__ */ Object.freeze({
1602
1605
  __proto__: null,
1603
- argsToParams: tr,
1604
- bindClickHandler: lr,
1605
- clickCancel: ts,
1606
- clickConfirm: tn,
1607
- clickDeny: es,
1606
+ argsToParams: rr,
1607
+ bindClickHandler: hr,
1608
+ clickCancel: rs,
1609
+ clickConfirm: nn,
1610
+ clickDeny: ss,
1608
1611
  enableLoading: re,
1609
- fire: nr,
1612
+ fire: ir,
1610
1613
  getActions: ge,
1611
1614
  getCancelButton: le,
1612
1615
  getCloseButton: rt,
@@ -1614,36 +1617,36 @@ var fr = /* @__PURE__ */ Object.freeze({
1614
1617
  getContainer: D,
1615
1618
  getDenyButton: te,
1616
1619
  getFocusableElements: it,
1617
- getFooter: Vt,
1620
+ getFooter: Ft,
1618
1621
  getHtmlContainer: ot,
1619
1622
  getIcon: ae,
1620
- getIconContent: ro,
1621
- getImage: Ht,
1622
- getInputLabel: io,
1623
+ getIconContent: co,
1624
+ getImage: Vt,
1625
+ getInputLabel: uo,
1623
1626
  getLoader: ce,
1624
- getPopup: S,
1627
+ getPopup: T,
1625
1628
  getProgressSteps: st,
1626
- getTimerLeft: sr,
1629
+ getTimerLeft: lr,
1627
1630
  getTimerProgressBar: ze,
1628
- getTitle: Rt,
1631
+ getTitle: Ht,
1629
1632
  getValidationMessage: Ne,
1630
- increaseTimer: ir,
1631
- isDeprecatedParameter: xn,
1632
- isLoading: lo,
1633
- isTimerRunning: ar,
1634
- isUpdatableParameter: kn,
1635
- isValidParameter: Cn,
1636
- isVisible: Qo,
1637
- mixin: or,
1638
- off: wr,
1639
- on: dr,
1640
- once: hr,
1641
- resumeTimer: _n,
1633
+ increaseTimer: ur,
1634
+ isDeprecatedParameter: An,
1635
+ isLoading: wo,
1636
+ isTimerRunning: dr,
1637
+ isUpdatableParameter: xn,
1638
+ isValidParameter: kn,
1639
+ isVisible: os,
1640
+ mixin: ar,
1641
+ off: mr,
1642
+ on: pr,
1643
+ once: gr,
1644
+ resumeTimer: In,
1642
1645
  showLoading: re,
1643
- stopTimer: Tn,
1644
- toggleTimer: rr
1646
+ stopTimer: _n,
1647
+ toggleTimer: cr
1645
1648
  });
1646
- class pr {
1649
+ class yr {
1647
1650
  /**
1648
1651
  * @param {() => void} callback
1649
1652
  * @param {number} delay
@@ -1684,7 +1687,7 @@ class pr {
1684
1687
  return this.running;
1685
1688
  }
1686
1689
  }
1687
- const In = ["swal-title", "swal-html", "swal-footer"], gr = (t) => {
1690
+ const $n = ["swal-title", "swal-html", "swal-footer"], vr = (t) => {
1688
1691
  const e = typeof t.template == "string" ? (
1689
1692
  /** @type {HTMLTemplateElement} */
1690
1693
  document.querySelector(t.template)
@@ -1692,8 +1695,8 @@ const In = ["swal-title", "swal-html", "swal-footer"], gr = (t) => {
1692
1695
  if (!e)
1693
1696
  return {};
1694
1697
  const n = e.content;
1695
- return Ar(n), Object.assign(mr(n), br(n), yr(n), vr(n), Cr(n), kr(n), xr(n, In));
1696
- }, mr = (t) => {
1698
+ return Sr(n), Object.assign(Cr(n), kr(n), xr(n), Ar(n), Er(n), Lr(n), Tr(n, $n));
1699
+ }, Cr = (t) => {
1697
1700
  const e = {};
1698
1701
  return Array.from(t.querySelectorAll("swal-param")).forEach((o) => {
1699
1702
  Q(o, ["name", "value"]);
@@ -1709,7 +1712,7 @@ const In = ["swal-title", "swal-html", "swal-footer"], gr = (t) => {
1709
1712
  s
1710
1713
  ] == "object" ? e[s] = JSON.parse(r) : e[s] = r);
1711
1714
  }), e;
1712
- }, br = (t) => {
1715
+ }, kr = (t) => {
1713
1716
  const e = {};
1714
1717
  return Array.from(t.querySelectorAll("swal-function-param")).forEach((o) => {
1715
1718
  const s = (
@@ -1718,7 +1721,7 @@ const In = ["swal-title", "swal-html", "swal-footer"], gr = (t) => {
1718
1721
  ), r = o.getAttribute("value");
1719
1722
  !s || !r || (e[s] = new Function(`return ${r}`)());
1720
1723
  }), e;
1721
- }, yr = (t) => {
1724
+ }, xr = (t) => {
1722
1725
  const e = {};
1723
1726
  return Array.from(t.querySelectorAll("swal-button")).forEach((o) => {
1724
1727
  Q(o, ["type", "color", "aria-label"]);
@@ -1734,13 +1737,13 @@ const In = ["swal-title", "swal-html", "swal-footer"], gr = (t) => {
1734
1737
  }
1735
1738
  }
1736
1739
  }), e;
1737
- }, vr = (t) => {
1740
+ }, Ar = (t) => {
1738
1741
  const e = {}, n = t.querySelector("swal-image");
1739
1742
  return n && (Q(n, ["src", "width", "height", "alt"]), n.hasAttribute("src") && (e.imageUrl = n.getAttribute("src") || void 0), n.hasAttribute("width") && (e.imageWidth = n.getAttribute("width") || void 0), n.hasAttribute("height") && (e.imageHeight = n.getAttribute("height") || void 0), n.hasAttribute("alt") && (e.imageAlt = n.getAttribute("alt") || void 0)), e;
1740
- }, Cr = (t) => {
1743
+ }, Er = (t) => {
1741
1744
  const e = {}, n = t.querySelector("swal-icon");
1742
1745
  return n && (Q(n, ["type", "color"]), n.hasAttribute("type") && (e.icon = n.getAttribute("type")), n.hasAttribute("color") && (e.iconColor = n.getAttribute("color")), e.iconHtml = n.innerHTML), e;
1743
- }, kr = (t) => {
1746
+ }, Lr = (t) => {
1744
1747
  const e = {}, n = t.querySelector("swal-input");
1745
1748
  n && (Q(n, ["type", "label", "placeholder", "value"]), e.input = n.getAttribute("type") || "text", n.hasAttribute("label") && (e.inputLabel = n.getAttribute("label")), n.hasAttribute("placeholder") && (e.inputPlaceholder = n.getAttribute("placeholder")), n.hasAttribute("value") && (e.inputValue = n.getAttribute("value")));
1746
1749
  const o = Array.from(t.querySelectorAll("swal-input-option"));
@@ -1752,15 +1755,15 @@ const In = ["swal-title", "swal-html", "swal-footer"], gr = (t) => {
1752
1755
  const a = s.innerHTML;
1753
1756
  e.inputOptions[r] = a;
1754
1757
  })), e;
1755
- }, xr = (t, e) => {
1758
+ }, Tr = (t, e) => {
1756
1759
  const n = {};
1757
1760
  for (const o in e) {
1758
1761
  const s = e[o], r = t.querySelector(s);
1759
1762
  r && (Q(r, []), n[s.replace(/^swal-/, "")] = r.innerHTML.trim());
1760
1763
  }
1761
1764
  return n;
1762
- }, Ar = (t) => {
1763
- const e = In.concat(["swal-param", "swal-function-param", "swal-button", "swal-image", "swal-icon", "swal-input", "swal-input-option"]);
1765
+ }, Sr = (t) => {
1766
+ const e = $n.concat(["swal-param", "swal-function-param", "swal-button", "swal-image", "swal-icon", "swal-input", "swal-input-option"]);
1764
1767
  Array.from(t.children).forEach((n) => {
1765
1768
  const o = n.tagName.toLowerCase();
1766
1769
  e.includes(o) || z(`Unrecognized element <${o}>`);
@@ -1769,38 +1772,38 @@ const In = ["swal-title", "swal-html", "swal-footer"], gr = (t) => {
1769
1772
  Array.from(t.attributes).forEach((n) => {
1770
1773
  e.indexOf(n.name) === -1 && z([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`, `${e.length ? `Allowed attributes are: ${e.join(", ")}` : "To set the value, use HTML within the element."}`]);
1771
1774
  });
1772
- }, $n = 10, Er = (t) => {
1775
+ }, Bn = 10, _r = (t) => {
1773
1776
  var e, n;
1774
- const o = D(), s = S();
1777
+ const o = D(), s = T();
1775
1778
  if (!o || !s)
1776
1779
  return;
1777
1780
  typeof t.willOpen == "function" && t.willOpen(s), (e = p.eventEmitter) === null || e === void 0 || e.emit("willOpen", s);
1778
1781
  const a = window.getComputedStyle(document.body).overflowY;
1779
- if (Tr(o, s, t), setTimeout(() => {
1780
- Lr(o, s);
1781
- }, $n), at() && (Sr(o, t.scrollbarPadding !== void 0 ? t.scrollbarPadding : !1, a), cs()), !De() && !p.previousActiveElement && (p.previousActiveElement = document.activeElement), typeof t.didOpen == "function") {
1782
+ if (Br(o, s, t), setTimeout(() => {
1783
+ Ir(o, s);
1784
+ }, Bn), at() && ($r(o, t.scrollbarPadding !== void 0 ? t.scrollbarPadding : !1, a), ws()), !De() && !p.previousActiveElement && (p.previousActiveElement = document.activeElement), typeof t.didOpen == "function") {
1782
1785
  const c = t.didOpen;
1783
1786
  setTimeout(() => c(s));
1784
1787
  }
1785
1788
  (n = p.eventEmitter) === null || n === void 0 || n.emit("didOpen", s);
1786
1789
  }, Me = (t) => {
1787
- const e = S();
1790
+ const e = T();
1788
1791
  if (!e || t.target !== e)
1789
1792
  return;
1790
1793
  const n = D();
1791
1794
  n && (e.removeEventListener("animationend", Me), e.removeEventListener("transitionend", Me), n.style.overflowY = "auto", V(n, l["no-transition"]));
1792
- }, Lr = (t, e) => {
1793
- Kt(e) ? (t.style.overflowY = "hidden", e.addEventListener("animationend", Me), e.addEventListener("transitionend", Me)) : t.style.overflowY = "auto";
1794
- }, Sr = (t, e, n) => {
1795
- us(), e && n !== "hidden" && ms(n), setTimeout(() => {
1795
+ }, Ir = (t, e) => {
1796
+ Gt(e) ? (t.style.overflowY = "hidden", e.addEventListener("animationend", Me), e.addEventListener("transitionend", Me)) : t.style.overflowY = "auto";
1797
+ }, $r = (t, e, n) => {
1798
+ fs(), e && n !== "hidden" && Cs(n), setTimeout(() => {
1796
1799
  t.scrollTop = 0;
1797
1800
  });
1798
- }, Tr = (t, e, n) => {
1801
+ }, Br = (t, e, n) => {
1799
1802
  var o;
1800
1803
  (o = n.showClass) !== null && o !== void 0 && o.backdrop && L(t, n.showClass.backdrop), n.animation ? (e.style.setProperty("opacity", "0", "important"), M(e, "grid"), setTimeout(() => {
1801
1804
  var s;
1802
1805
  (s = n.showClass) !== null && s !== void 0 && s.popup && L(e, n.showClass.popup), e.style.removeProperty("opacity");
1803
- }, $n)) : M(e, "grid"), L([document.documentElement, document.body], l.shown), n.heightAuto && n.backdrop && !n.toast && L([document.documentElement, document.body], l["height-auto"]);
1806
+ }, Bn)) : M(e, "grid"), L([document.documentElement, document.body], l.shown), n.heightAuto && n.backdrop && !n.toast && L([document.documentElement, document.body], l["height-auto"]);
1804
1807
  };
1805
1808
  var $t = {
1806
1809
  /**
@@ -1816,17 +1819,17 @@ var $t = {
1816
1819
  */
1817
1820
  url: (t, e) => /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t) ? Promise.resolve() : Promise.resolve(e || "Invalid URL")
1818
1821
  };
1819
- function _r(t) {
1822
+ function Pr(t) {
1820
1823
  t.inputValidator || (t.input === "email" && (t.inputValidator = $t.email), t.input === "url" && (t.inputValidator = $t.url));
1821
1824
  }
1822
- function Ir(t) {
1825
+ function Mr(t) {
1823
1826
  (!t.target || typeof t.target == "string" && !document.querySelector(t.target) || typeof t.target != "string" && !t.target.appendChild) && (z('Target parameter is not valid, defaulting to "body"'), t.target = "body");
1824
1827
  }
1825
- function $r(t) {
1826
- _r(t), t.showLoaderOnConfirm && !t.preConfirm && z(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
1828
+ function Or(t) {
1829
+ Pr(t), t.showLoaderOnConfirm && !t.preConfirm && z(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
1827
1830
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
1828
- https://sweetalert2.github.io/#ajax-request`), Ir(t), typeof t.title == "string" && (t.title = t.title.split(`
1829
- `).join("<br />")), Co(t);
1831
+ https://sweetalert2.github.io/#ajax-request`), Mr(t), typeof t.title == "string" && (t.title = t.title.split(`
1832
+ `).join("<br />")), Eo(t);
1830
1833
  }
1831
1834
  let F;
1832
1835
  var Ae = /* @__PURE__ */ new WeakMap();
@@ -1836,7 +1839,7 @@ class P {
1836
1839
  * @this {SweetAlert}
1837
1840
  */
1838
1841
  constructor(...e) {
1839
- if (Xn(
1842
+ if (to(
1840
1843
  this,
1841
1844
  Ae,
1842
1845
  /** @type {Promise<SweetAlertResult>} */
@@ -1849,26 +1852,26 @@ class P {
1849
1852
  return;
1850
1853
  F = this;
1851
1854
  const n = Object.freeze(this.constructor.argsToParams(e));
1852
- this.params = n, this.isAwaitingPromise = !1, Jn(Ae, this, this._main(F.params));
1855
+ this.params = n, this.isAwaitingPromise = !1, no(Ae, this, this._main(F.params));
1853
1856
  }
1854
1857
  /**
1855
1858
  * @param {any} userParams
1856
1859
  * @param {any} mixinParams
1857
1860
  */
1858
1861
  _main(e, n = {}) {
1859
- if (An(Object.assign({}, n, e)), p.currentInstance) {
1862
+ if (En(Object.assign({}, n, e)), p.currentInstance) {
1860
1863
  const r = se.swalPromiseResolve.get(p.currentInstance), {
1861
1864
  isAwaitingPromise: a
1862
1865
  } = p.currentInstance;
1863
1866
  p.currentInstance._destroy(), a || r({
1864
1867
  isDismissed: !0
1865
- }), at() && sn();
1868
+ }), at() && rn();
1866
1869
  }
1867
1870
  p.currentInstance = F;
1868
- const o = Pr(e, n);
1869
- $r(o), Object.freeze(o), p.timeout && (p.timeout.stop(), delete p.timeout), clearTimeout(p.restoreFocusTimeout);
1870
- const s = Mr(F);
1871
- return en(F, o), I.innerParams.set(F, o), Br(F, s, o);
1871
+ const o = zr(e, n);
1872
+ Or(o), Object.freeze(o), p.timeout && (p.timeout.stop(), delete p.timeout), clearTimeout(p.restoreFocusTimeout);
1873
+ const s = Dr(F);
1874
+ return tn(F, o), I.innerParams.set(F, o), Nr(F, s, o);
1872
1875
  }
1873
1876
  // `catch` cannot be the name of a module export, so we define our thenable methods here instead
1874
1877
  /**
@@ -1884,7 +1887,7 @@ class P {
1884
1887
  return Ct(Ae, this).finally(e);
1885
1888
  }
1886
1889
  }
1887
- const Br = (t, e, n) => new Promise((o, s) => {
1890
+ const Nr = (t, e, n) => new Promise((o, s) => {
1888
1891
  const r = (a) => {
1889
1892
  t.close({
1890
1893
  isDismissed: !0,
@@ -1894,28 +1897,28 @@ const Br = (t, e, n) => new Promise((o, s) => {
1894
1897
  });
1895
1898
  };
1896
1899
  se.swalPromiseResolve.set(t, o), se.swalPromiseReject.set(t, s), e.confirmButton.onclick = () => {
1897
- Ms(t);
1900
+ Ds(t);
1898
1901
  }, e.denyButton.onclick = () => {
1899
- Os(t);
1902
+ js(t);
1900
1903
  }, e.cancelButton.onclick = () => {
1901
- Ns(t, r);
1904
+ Us(t, r);
1902
1905
  }, e.closeButton.onclick = () => {
1903
1906
  r(ue.close);
1904
- }, Ws(n, e, r), ns(p, n, r), Es(t, n), Er(n), Or(p, n, r), Nr(e, n), setTimeout(() => {
1907
+ }, Js(n, e, r), is(p, n, r), _s(t, n), _r(n), jr(p, n, r), Ur(e, n), setTimeout(() => {
1905
1908
  e.container.scrollTop = 0;
1906
1909
  });
1907
- }), Pr = (t, e) => {
1908
- const n = gr(t), o = Object.assign({}, Y, e, n, t);
1910
+ }), zr = (t, e) => {
1911
+ const n = vr(t), o = Object.assign({}, Y, e, n, t);
1909
1912
  return o.showClass = Object.assign({}, Y.showClass, o.showClass), o.hideClass = Object.assign({}, Y.hideClass, o.hideClass), o.animation === !1 && (o.showClass = {
1910
1913
  backdrop: "swal2-noanimation"
1911
1914
  }, o.hideClass = {}), o;
1912
- }, Mr = (t) => {
1915
+ }, Dr = (t) => {
1913
1916
  const e = (
1914
1917
  /** @type {DomCache} */
1915
1918
  {
1916
1919
  popup: (
1917
1920
  /** @type {HTMLElement} */
1918
- S()
1921
+ T()
1919
1922
  ),
1920
1923
  container: (
1921
1924
  /** @type {HTMLElement} */
@@ -1956,9 +1959,9 @@ const Br = (t, e, n) => new Promise((o, s) => {
1956
1959
  }
1957
1960
  );
1958
1961
  return I.domCache.set(t, e), e;
1959
- }, Or = (t, e, n) => {
1962
+ }, jr = (t, e, n) => {
1960
1963
  const o = ze();
1961
- N(o), e.timer && (t.timeout = new pr(() => {
1964
+ N(o), e.timer && (t.timeout = new yr(() => {
1962
1965
  n("timer"), delete t.timeout;
1963
1966
  }, e.timer), e.timerProgressBar && o && (M(o), U(o, e, "timerProgressBar"), setTimeout(() => {
1964
1967
  t.timeout && t.timeout.running && ct(
@@ -1966,41 +1969,41 @@ const Br = (t, e, n) => new Promise((o, s) => {
1966
1969
  e.timer
1967
1970
  );
1968
1971
  })));
1969
- }, Nr = (t, e) => {
1972
+ }, Ur = (t, e) => {
1970
1973
  if (!e.toast) {
1971
1974
  if (!Oe(e.allowEnterKey)) {
1972
- Ut("allowEnterKey"), jr();
1975
+ Rt("allowEnterKey"), Vr();
1973
1976
  return;
1974
1977
  }
1975
- zr(t) || Dr(t, e) || We(-1, 1);
1978
+ Rr(t) || Hr(t, e) || We(-1, 1);
1976
1979
  }
1977
- }, zr = (t) => {
1980
+ }, Rr = (t) => {
1978
1981
  const e = Array.from(t.popup.querySelectorAll("[autofocus]"));
1979
1982
  for (const n of e)
1980
1983
  if (n instanceof HTMLElement && j(n))
1981
1984
  return n.focus(), !0;
1982
1985
  return !1;
1983
- }, Dr = (t, e) => e.focusDeny && j(t.denyButton) ? (t.denyButton.focus(), !0) : e.focusCancel && j(t.cancelButton) ? (t.cancelButton.focus(), !0) : e.focusConfirm && j(t.confirmButton) ? (t.confirmButton.focus(), !0) : !1, jr = () => {
1986
+ }, Hr = (t, e) => e.focusDeny && j(t.denyButton) ? (t.denyButton.focus(), !0) : e.focusCancel && j(t.cancelButton) ? (t.cancelButton.focus(), !0) : e.focusConfirm && j(t.confirmButton) ? (t.confirmButton.focus(), !0) : !1, Vr = () => {
1984
1987
  document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
1985
1988
  };
1986
- P.prototype.disableButtons = gn;
1987
- P.prototype.enableButtons = pn;
1988
- P.prototype.getInput = hn;
1989
- P.prototype.disableInput = bn;
1990
- P.prototype.enableInput = mn;
1989
+ P.prototype.disableButtons = mn;
1990
+ P.prototype.enableButtons = gn;
1991
+ P.prototype.getInput = wn;
1992
+ P.prototype.disableInput = yn;
1993
+ P.prototype.enableInput = bn;
1991
1994
  P.prototype.hideLoading = Be;
1992
1995
  P.prototype.disableLoading = Be;
1993
- P.prototype.showValidationMessage = yn;
1994
- P.prototype.resetValidationMessage = vn;
1996
+ P.prototype.showValidationMessage = vn;
1997
+ P.prototype.resetValidationMessage = Cn;
1995
1998
  P.prototype.close = W;
1996
1999
  P.prototype.closePopup = W;
1997
2000
  P.prototype.closeModal = W;
1998
2001
  P.prototype.closeToast = W;
1999
- P.prototype.rejectPromise = ln;
2000
- P.prototype.update = En;
2001
- P.prototype._destroy = Ln;
2002
- Object.assign(P, fr);
2003
- Object.keys(Gs).forEach((t) => {
2002
+ P.prototype.rejectPromise = cn;
2003
+ P.prototype.update = Ln;
2004
+ P.prototype._destroy = Tn;
2005
+ Object.assign(P, br);
2006
+ Object.keys(Xs).forEach((t) => {
2004
2007
  P[t] = function(...e) {
2005
2008
  if (F && F[t])
2006
2009
  return F[t](...e);
@@ -2020,7 +2023,7 @@ typeof document < "u" && (function(t, e) {
2020
2023
  }
2021
2024
  })(document, ':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');
2022
2025
  Qe.create();
2023
- class Ur {
2026
+ class Fr {
2024
2027
  constructor() {
2025
2028
  this.isActive = !1, this.baseUrl = "", this.appCode = "", this.token = "", this.currentLocale = "zh-CN", this.languages = [], this.wrappedElements = /* @__PURE__ */ new Set(), this.clickHandler = this.handleElementClick.bind(this);
2026
2029
  }
@@ -2029,7 +2032,7 @@ class Ur {
2029
2032
  */
2030
2033
  async initConfig() {
2031
2034
  const e = x.get("I18N_CONFIG") || {}, n = e.env || "local";
2032
- this.baseUrl = n === "local" ? "" : n === "dev" ? "https://test.ihotel.cn" : "https://trans.ihotel.cn", console.log("baseUrl:", this.baseUrl), this.appCode = e.appCode || "", this.unitCode = e.unitCode || "GREENCLOUD", this.token = e.token || (x.get("I18N_CONFIG") || {}).token || "", this.currentLocale = e.locale || x.get("I18N_LANGUAGE") || "zh-CN", await this.loadLanguages();
2035
+ this.baseUrl = Nt({ env: n }), console.log("baseUrl:", this.baseUrl), this.appCode = e.appCode || "", this.unitCode = e.unitCode || "GREENCLOUD", this.token = e.token || (x.get("I18N_CONFIG") || {}).token || "", this.currentLocale = e.locale || x.get("I18N_LANGUAGE") || "zh-CN", await this.loadLanguages();
2033
2036
  }
2034
2037
  /**
2035
2038
  * 加载语言列表
@@ -2045,7 +2048,7 @@ class Ur {
2045
2048
  return;
2046
2049
  }
2047
2050
  try {
2048
- const n = await Fn({
2051
+ const n = await Wn({
2049
2052
  baseUrl: this.baseUrl,
2050
2053
  appCode: this.appCode,
2051
2054
  token: this.token
@@ -2306,7 +2309,7 @@ class Ur {
2306
2309
  if (!this.appCode)
2307
2310
  return [];
2308
2311
  try {
2309
- const o = (x.get("I18N_CONFIG") || {}).routerName || "", s = await qn({
2312
+ const o = (x.get("I18N_CONFIG") || {}).routerName || "", s = await Yn({
2310
2313
  baseUrl: this.baseUrl,
2311
2314
  data: {
2312
2315
  appCode: this.appCode,
@@ -2344,7 +2347,7 @@ class Ur {
2344
2347
  fromAi: "F"
2345
2348
  });
2346
2349
  });
2347
- const c = await Kn({
2350
+ const c = await Zn({
2348
2351
  data: { data: a, isLocal: "F" },
2349
2352
  token: this.token,
2350
2353
  baseUrl: this.baseUrl
@@ -2380,12 +2383,12 @@ class Ur {
2380
2383
  });
2381
2384
  }
2382
2385
  }
2383
- const Rr = new Ur();
2384
- function Hr(t) {
2386
+ const qr = new Fr();
2387
+ function Kr(t) {
2385
2388
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
2386
2389
  }
2387
2390
  var qe = { exports: {} }, Bt;
2388
- function Vr() {
2391
+ function Gr() {
2389
2392
  return Bt || (Bt = 1, (function(t) {
2390
2393
  var e = (function() {
2391
2394
  var n = String.fromCharCode, o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$", r = {};
@@ -2470,12 +2473,12 @@ function Vr() {
2470
2473
  },
2471
2474
  _compress: function(i, u, d) {
2472
2475
  if (i == null) return "";
2473
- var h, w, k = {}, T = {}, _ = "", $ = "", E = "", g = 2, y = 3, v = 2, C = [], f = 0, m = 0, b;
2476
+ var h, w, k = {}, S = {}, _ = "", $ = "", E = "", g = 2, y = 3, v = 2, C = [], f = 0, m = 0, b;
2474
2477
  for (b = 0; b < i.length; b += 1)
2475
- if (_ = i.charAt(b), Object.prototype.hasOwnProperty.call(k, _) || (k[_] = y++, T[_] = !0), $ = E + _, Object.prototype.hasOwnProperty.call(k, $))
2478
+ if (_ = i.charAt(b), Object.prototype.hasOwnProperty.call(k, _) || (k[_] = y++, S[_] = !0), $ = E + _, Object.prototype.hasOwnProperty.call(k, $))
2476
2479
  E = $;
2477
2480
  else {
2478
- if (Object.prototype.hasOwnProperty.call(T, E)) {
2481
+ if (Object.prototype.hasOwnProperty.call(S, E)) {
2479
2482
  if (E.charCodeAt(0) < 256) {
2480
2483
  for (h = 0; h < v; h++)
2481
2484
  f = f << 1, m == u - 1 ? (m = 0, C.push(d(f)), f = 0) : m++;
@@ -2487,14 +2490,14 @@ function Vr() {
2487
2490
  for (w = E.charCodeAt(0), h = 0; h < 16; h++)
2488
2491
  f = f << 1 | w & 1, m == u - 1 ? (m = 0, C.push(d(f)), f = 0) : m++, w = w >> 1;
2489
2492
  }
2490
- g--, g == 0 && (g = Math.pow(2, v), v++), delete T[E];
2493
+ g--, g == 0 && (g = Math.pow(2, v), v++), delete S[E];
2491
2494
  } else
2492
2495
  for (w = k[E], h = 0; h < v; h++)
2493
2496
  f = f << 1 | w & 1, m == u - 1 ? (m = 0, C.push(d(f)), f = 0) : m++, w = w >> 1;
2494
2497
  g--, g == 0 && (g = Math.pow(2, v), v++), k[$] = y++, E = String(_);
2495
2498
  }
2496
2499
  if (E !== "") {
2497
- if (Object.prototype.hasOwnProperty.call(T, E)) {
2500
+ if (Object.prototype.hasOwnProperty.call(S, E)) {
2498
2501
  if (E.charCodeAt(0) < 256) {
2499
2502
  for (h = 0; h < v; h++)
2500
2503
  f = f << 1, m == u - 1 ? (m = 0, C.push(d(f)), f = 0) : m++;
@@ -2506,7 +2509,7 @@ function Vr() {
2506
2509
  for (w = E.charCodeAt(0), h = 0; h < 16; h++)
2507
2510
  f = f << 1 | w & 1, m == u - 1 ? (m = 0, C.push(d(f)), f = 0) : m++, w = w >> 1;
2508
2511
  }
2509
- g--, g == 0 && (g = Math.pow(2, v), v++), delete T[E];
2512
+ g--, g == 0 && (g = Math.pow(2, v), v++), delete S[E];
2510
2513
  } else
2511
2514
  for (w = k[E], h = 0; h < v; h++)
2512
2515
  f = f << 1 | w & 1, m == u - 1 ? (m = 0, C.push(d(f)), f = 0) : m++, w = w >> 1;
@@ -2527,7 +2530,7 @@ function Vr() {
2527
2530
  });
2528
2531
  },
2529
2532
  _decompress: function(i, u, d) {
2530
- var h = [], w = 4, k = 4, T = 3, _ = "", $ = [], E, g, y, v, C, f, m, b = { val: d(0), position: u, index: 1 };
2533
+ var h = [], w = 4, k = 4, S = 3, _ = "", $ = [], E, g, y, v, C, f, m, b = { val: d(0), position: u, index: 1 };
2531
2534
  for (E = 0; E < 3; E += 1)
2532
2535
  h[E] = E;
2533
2536
  for (y = 0, C = Math.pow(2, 2), f = 1; f != C; )
@@ -2549,7 +2552,7 @@ function Vr() {
2549
2552
  for (h[3] = m, g = m, $.push(m); ; ) {
2550
2553
  if (b.index > i)
2551
2554
  return "";
2552
- for (y = 0, C = Math.pow(2, T), f = 1; f != C; )
2555
+ for (y = 0, C = Math.pow(2, S), f = 1; f != C; )
2553
2556
  v = b.val & b.position, b.position >>= 1, b.position == 0 && (b.position = u, b.val = d(b.index++)), y |= (v > 0 ? 1 : 0) * f, f <<= 1;
2554
2557
  switch (m = y) {
2555
2558
  case 0:
@@ -2565,13 +2568,13 @@ function Vr() {
2565
2568
  case 2:
2566
2569
  return $.join("");
2567
2570
  }
2568
- if (w == 0 && (w = Math.pow(2, T), T++), h[m])
2571
+ if (w == 0 && (w = Math.pow(2, S), S++), h[m])
2569
2572
  _ = h[m];
2570
2573
  else if (m === k)
2571
2574
  _ = g + g.charAt(0);
2572
2575
  else
2573
2576
  return null;
2574
- $.push(_), h[k++] = g + _.charAt(0), w--, g = _, w == 0 && (w = Math.pow(2, T), T++);
2577
+ $.push(_), h[k++] = g + _.charAt(0), w--, g = _, w == 0 && (w = Math.pow(2, S), S++);
2575
2578
  }
2576
2579
  }
2577
2580
  };
@@ -2582,11 +2585,11 @@ function Vr() {
2582
2585
  });
2583
2586
  })(qe)), qe.exports;
2584
2587
  }
2585
- var Fr = Vr();
2586
- const Ee = /* @__PURE__ */ Hr(Fr);
2588
+ var Wr = Gr();
2589
+ const Ee = /* @__PURE__ */ Kr(Wr);
2587
2590
  function Ze(t) {
2588
2591
  const e = [], n = (o) => {
2589
- e.push(...qr(o));
2592
+ e.push(...Yr(o));
2590
2593
  };
2591
2594
  if (t.template && n(t.template), t.render) {
2592
2595
  const o = t.render.toString();
@@ -2608,39 +2611,39 @@ function Ze(t) {
2608
2611
  }
2609
2612
  return [...new Set(e)];
2610
2613
  }
2611
- function qr(t) {
2614
+ function Yr(t) {
2612
2615
  const e = [], n = /(?:\$t|(?:this|_vm|_ctx|\$setup|ctx|globalThis)\.\$t)\s*\(/g;
2613
2616
  for (; n.exec(t) !== null; ) {
2614
- const o = n.lastIndex - 1, s = Bn(t, o);
2617
+ const o = n.lastIndex - 1, s = Pn(t, o);
2615
2618
  if (s === -1) continue;
2616
- const r = t.slice(o + 1, s), a = Kr(r);
2619
+ const r = t.slice(o + 1, s), a = Zr(r);
2617
2620
  e.push(...Xe(a)), n.lastIndex = s + 1;
2618
2621
  }
2619
2622
  return e;
2620
2623
  }
2621
2624
  function Xe(t) {
2622
- const e = Yr(t.trim()), n = Zr(e);
2625
+ const e = Qr(t.trim()), n = ei(e);
2623
2626
  if (n !== null) return [n];
2624
- const o = Gr(e);
2627
+ const o = Xr(e);
2625
2628
  return o ? [
2626
2629
  ...Xe(o.consequent),
2627
2630
  ...Xe(o.alternate)
2628
2631
  ] : [];
2629
2632
  }
2630
- function Kr(t) {
2631
- const e = Pn(t, ",");
2633
+ function Zr(t) {
2634
+ const e = Mn(t, ",");
2632
2635
  return e === -1 ? t : t.slice(0, e);
2633
2636
  }
2634
- function Gr(t) {
2635
- const e = Pn(t, "?");
2637
+ function Xr(t) {
2638
+ const e = Mn(t, "?");
2636
2639
  if (e === -1) return null;
2637
- const n = Wr(t, e + 1);
2640
+ const n = Jr(t, e + 1);
2638
2641
  return n === -1 ? null : {
2639
2642
  consequent: t.slice(e + 1, n),
2640
2643
  alternate: t.slice(n + 1)
2641
2644
  };
2642
2645
  }
2643
- function Bn(t, e) {
2646
+ function Pn(t, e) {
2644
2647
  let n = 0;
2645
2648
  for (let o = e; o < t.length; o++) {
2646
2649
  const s = t[o];
@@ -2653,7 +2656,7 @@ function Bn(t, e) {
2653
2656
  }
2654
2657
  return -1;
2655
2658
  }
2656
- function Pn(t, e) {
2659
+ function Mn(t, e) {
2657
2660
  let n = 0, o = 0, s = 0;
2658
2661
  for (let r = 0; r < t.length; r++) {
2659
2662
  const a = t[r];
@@ -2667,12 +2670,12 @@ function Pn(t, e) {
2667
2670
  else if (a === "]") o--;
2668
2671
  else if (a === "{") s++;
2669
2672
  else if (a === "}") s--;
2670
- else if (a === e && !Mn(t, r, e) && n === 0 && o === 0 && s === 0)
2673
+ else if (a === e && !On(t, r, e) && n === 0 && o === 0 && s === 0)
2671
2674
  return r;
2672
2675
  }
2673
2676
  return -1;
2674
2677
  }
2675
- function Wr(t, e) {
2678
+ function Jr(t, e) {
2676
2679
  let n = 0, o = 0, s = 0, r = 0;
2677
2680
  for (let a = e; a < t.length; a++) {
2678
2681
  const c = t[a];
@@ -2686,20 +2689,20 @@ function Wr(t, e) {
2686
2689
  else if (c === "]") s--;
2687
2690
  else if (c === "{") r++;
2688
2691
  else if (c === "}") r--;
2689
- else if (o === 0 && s === 0 && r === 0 && (c === "?" && !Mn(t, a, "?") && n++, c === ":")) {
2692
+ else if (o === 0 && s === 0 && r === 0 && (c === "?" && !On(t, a, "?") && n++, c === ":")) {
2690
2693
  if (n === 0) return a;
2691
2694
  n--;
2692
2695
  }
2693
2696
  }
2694
2697
  return -1;
2695
2698
  }
2696
- function Yr(t) {
2699
+ function Qr(t) {
2697
2700
  let e = t;
2698
- for (; e.startsWith("(") && Bn(e, 0) === e.length - 1; )
2701
+ for (; e.startsWith("(") && Pn(e, 0) === e.length - 1; )
2699
2702
  e = e.slice(1, -1).trim();
2700
2703
  return e;
2701
2704
  }
2702
- function Zr(t) {
2705
+ function ei(t) {
2703
2706
  if (!t || !Ue(t[0])) return null;
2704
2707
  const e = t[0];
2705
2708
  let n = "";
@@ -2729,7 +2732,7 @@ function pt(t, e) {
2729
2732
  function Ue(t) {
2730
2733
  return t === "'" || t === '"' || t === "`";
2731
2734
  }
2732
- function Mn(t, e, n) {
2735
+ function On(t, e, n) {
2733
2736
  return n === "?" && (t[e + 1] === "." || t[e + 1] === "?");
2734
2737
  }
2735
2738
  const Pt = {
@@ -2767,7 +2770,7 @@ const Pt = {
2767
2770
  // 基础 URL,从 I18n 实例传入
2768
2771
  baseUrl: {
2769
2772
  type: String,
2770
- default: "https://trans.ihotel.cn"
2773
+ default: "https://extendapi.ihotel.cn"
2771
2774
  }
2772
2775
  },
2773
2776
  emits: ["update:modelValue"],
@@ -2780,7 +2783,7 @@ const Pt = {
2780
2783
  r.value = t.languages;
2781
2784
  return;
2782
2785
  }
2783
- const g = await Nt({
2786
+ const g = await zt({
2784
2787
  baseUrl: t.baseUrl,
2785
2788
  token: s.value,
2786
2789
  appCode: o.value
@@ -2816,7 +2819,7 @@ const Pt = {
2816
2819
  Array.from(new Set(v)).forEach((C) => {
2817
2820
  C.postMessage(g, y);
2818
2821
  });
2819
- }, T = () => {
2822
+ }, S = () => {
2820
2823
  window.addEventListener("storage", (g) => {
2821
2824
  g.key === "I18N_LANGUAGE" && (n.value = g.newValue || "zh-CN");
2822
2825
  });
@@ -2925,8 +2928,8 @@ const Pt = {
2925
2928
  }, E = () => {
2926
2929
  t.request && typeof t.request == "function" ? _() : $();
2927
2930
  };
2928
- return jn(() => {
2929
- a(), c(), window.addEventListener("message", w), T();
2931
+ return Un(() => {
2932
+ a(), c(), window.addEventListener("message", w), S();
2930
2933
  }), {
2931
2934
  currentValue: u,
2932
2935
  openModal: E
@@ -2974,7 +2977,7 @@ function we(t) {
2974
2977
  "en-us": "en-US"
2975
2978
  }[e] || t;
2976
2979
  }
2977
- function On(t = {}) {
2980
+ function Nn(t = {}) {
2978
2981
  const e = Object.entries(t || {});
2979
2982
  return e.some(([, o]) => o && typeof o == "object" && !Array.isArray(o) && Object.keys(o).some((s) => s.includes("-"))) ? e.reduce((o, [s, r]) => (!r || typeof r != "object" || Array.isArray(r) || Object.entries(r).forEach(([a, c]) => {
2980
2983
  const i = we(a);
@@ -2996,7 +2999,7 @@ function he(t, e) {
2996
2999
  return c != null ? String(c) : o;
2997
3000
  });
2998
3001
  }
2999
- function Nn(t, e) {
3002
+ function zn(t, e) {
3000
3003
  return e === void 0 && t && typeof t == "object" && !Array.isArray(t) ? {
3001
3004
  defaultValue: void 0,
3002
3005
  values: t
@@ -3005,8 +3008,8 @@ function Nn(t, e) {
3005
3008
  values: e
3006
3009
  };
3007
3010
  }
3008
- function Xr(t) {
3009
- const { locale: e = "zh-CN", messages: n = {} } = t, o = On(n), s = ne(e), r = ne(0), a = gt(), c = Je() && a && typeof a.observable == "function" ? a.observable({
3011
+ function ti(t) {
3012
+ const { locale: e = "zh-CN", messages: n = {} } = t, o = Nn(n), s = ne(e), r = ne(0), a = gt(), c = Je() && a && typeof a.observable == "function" ? a.observable({
3010
3013
  locale: e,
3011
3014
  messageVersion: 0
3012
3015
  }) : null, i = () => c ? c.locale : s.value, u = (w) => {
@@ -3024,15 +3027,15 @@ function Xr(t) {
3024
3027
  }
3025
3028
  },
3026
3029
  // 翻译函数(支持嵌套 key 的点号访问)
3027
- t(w, k, T) {
3028
- const _ = Nn(k, T);
3029
- k = _.defaultValue, T = _.values, r.value, c && c.messageVersion;
3030
+ t(w, k, S) {
3031
+ const _ = zn(k, S);
3032
+ k = _.defaultValue, S = _.values, r.value, c && c.messageVersion;
3030
3033
  const $ = i();
3031
3034
  if ($ === "zh-CN" && !w.startsWith("i.") && !w.startsWith("pro."))
3032
- return he(k || w, T);
3035
+ return he(k || w, S);
3033
3036
  const E = Mt(o, $);
3034
3037
  let g = E[w];
3035
- return g === void 0 && w.includes(".") && (g = w.split(".").reduce((v, C) => v && typeof v == "object" ? v[C] : void 0, E)), he(g && typeof g == "string" && g !== w ? g : k || w, T);
3038
+ return g === void 0 && w.includes(".") && (g = w.split(".").reduce((v, C) => v && typeof v == "object" ? v[C] : void 0, E)), he(g && typeof g == "string" && g !== w ? g : k || w, S);
3036
3039
  },
3037
3040
  // 设置某个语言的所有消息
3038
3041
  setLocaleMessage(w, k) {
@@ -3045,21 +3048,21 @@ function Xr(t) {
3045
3048
  };
3046
3049
  return h.global = h, h;
3047
3050
  }
3048
- const zn = Qe.create({
3051
+ const Dn = Qe.create({
3049
3052
  timeout: 8e3
3050
3053
  });
3051
- zn.interceptors.request.use((t) => {
3054
+ Dn.interceptors.request.use((t) => {
3052
3055
  const n = (x.get("I18N_CONFIG") || {}).token;
3053
3056
  return n && (t.headers.Authorization = `Bearer ${n}`), t;
3054
3057
  });
3055
- function Jr(t = {}) {
3058
+ function ni(t = {}) {
3056
3059
  const n = JSON.stringify({
3057
3060
  alg: "HS512"
3058
3061
  // 算法
3059
3062
  }), o = JSON.stringify(t);
3060
- return Un.JWS.sign("HS512", n, o, "");
3063
+ return Rn.JWS.sign("HS512", n, o, "");
3061
3064
  }
3062
- function Qr(t) {
3065
+ function oi(t) {
3063
3066
  if (!t || typeof t != "string") return "";
3064
3067
  const e = t.replace(/-/g, "+").replace(/_/g, "/"), n = e.padEnd(
3065
3068
  e.length + (4 - e.length % 4) % 4,
@@ -3074,18 +3077,18 @@ function Qr(t) {
3074
3077
  }
3075
3078
  return "";
3076
3079
  }
3077
- function ei(t) {
3080
+ function si(t) {
3078
3081
  if (!t || typeof t != "string") return null;
3079
3082
  const e = t.split(".");
3080
3083
  if (e.length !== 3) return null;
3081
3084
  try {
3082
- return JSON.parse(Qr(e[1]));
3085
+ return JSON.parse(oi(e[1]));
3083
3086
  } catch {
3084
3087
  return null;
3085
3088
  }
3086
3089
  }
3087
- function ti(t) {
3088
- const e = ei(t);
3090
+ function ri(t) {
3091
+ const e = si(t);
3089
3092
  return !!(e && (e.mainAppCode && e.userCode && e.deviceType || e.appCode && e.orgCode && e.userCode && e.i18n_token));
3090
3093
  }
3091
3094
  function Ot(t) {
@@ -3109,9 +3112,9 @@ function Je(t) {
3109
3112
  const e = gt(t), n = e && e.version;
3110
3113
  return typeof n == "string" ? n.split(".")[0] === "2" : !!(e && e.prototype);
3111
3114
  }
3112
- function Dn(t, e = /* @__PURE__ */ new Set()) {
3115
+ function jn(t, e = /* @__PURE__ */ new Set()) {
3113
3116
  if (!t || e.has(t)) return;
3114
- e.add(t), typeof t.$forceUpdate == "function" && t.$forceUpdate(), (t.$children || []).forEach((o) => Dn(o, e));
3117
+ e.add(t), typeof t.$forceUpdate == "function" && t.$forceUpdate(), (t.$children || []).forEach((o) => jn(o, e));
3115
3118
  }
3116
3119
  class X {
3117
3120
  constructor(e = {}) {
@@ -3128,16 +3131,17 @@ class X {
3128
3131
  env: h,
3129
3132
  dev: w,
3130
3133
  i18nTokenRequest: k,
3131
- auth: T
3134
+ auth: S
3132
3135
  } = e;
3133
- this.env = h || "local", this.baseUrl = h === "dev" || w === !0 ? "https://test.ihotel.cn" : !h || h === "local" ? "" : "https://trans.ihotel.cn", this.i18nTokenRequest = k || null, this.baseToken = r || (x.get("I18N_CONFIG") || {}).token || x.get("token"), this.token = this.baseToken, this.auth = T || null, this.authInfo = {
3136
+ this.env = h || "local", this.baseUrl = Nt({ env: h, dev: w }), this.i18nTokenRequest = k || null, this.baseToken = r || (x.get("I18N_CONFIG") || {}).token || x.get("token"), this.token = this.baseToken, this.auth = S || null, this.authInfo = {
3134
3137
  appCode: o,
3135
3138
  orgCode: a || "",
3136
3139
  userCode: ""
3137
3140
  }, this.tokenResolveVersion = 0, this.manualAuthScope = a || (r ? Ot(r) : ""), this.authUnsubscribe = null, this.authVersion = 0, this.languageVersion = 0, this.activeCacheScope = this.manualAuthScope || "guest", this.loadI18n = !0, this.appCode = o, this.router = n, this.locale = this.normalizeLocale(
3138
3141
  d || x.get("I18N_LANGUAGE") || navigator.language || "zh-CN"
3139
- ), this._isRTL = ke(this.locale), this.persistI18nConfig(), this.name = "", this.messages = On(s || {}), this.translationKeys = [], this.translationKeySet = /* @__PURE__ */ new Set(), this.loginRouteName = c || "login", this.login = i, this.loginTranslationKeys = [], this.keyboard = u || "ctrl+shift+l", this.vueInstances = /* @__PURE__ */ new Set(), this.editKeyboard = e.editKeyboard || "ctrl+shift+e", this.applyAuthState(this.resolveAuthState(), { silent: !0 }), this.initI18n(e), this.router && this.initRouterGuards(), mt.bind(this.keyboard, (_) => {
3140
- _.preventDefault();
3142
+ ), this._isRTL = ke(this.locale), this.persistI18nConfig(), this.name = "", this.messages = Nn(s || {}), this.translationKeys = [], this.translationKeySet = /* @__PURE__ */ new Set(), this.loginRouteName = c || "login", this.login = i, this.loginTranslationKeys = [], this.keyboard = u || "ctrl+shift+l", this.vueInstances = /* @__PURE__ */ new Set(), this.editKeyboard = e.editKeyboard || "ctrl+shift+e", this.applyAuthState(this.resolveAuthState(), { silent: !0 }), this.initI18n(e), this.router && this.initRouterGuards(), mt.bind(this.keyboard, (_) => {
3143
+ if (_.preventDefault(), this.name === this.loginRouteName)
3144
+ return;
3141
3145
  const $ = Array.from(this.translationKeySet);
3142
3146
  this.translationKeys = Array.from(
3143
3147
  /* @__PURE__ */ new Set([...this.translationKeys || [], ...$])
@@ -3167,7 +3171,7 @@ class X {
3167
3171
  html: `<iframe src="${y}" style="width: 100%; height: 100%;border: none;min-height: 480px;"></iframe>`
3168
3172
  });
3169
3173
  }), mt.bind(this.editKeyboard, (_) => {
3170
- _.preventDefault(), Rr.toggle();
3174
+ _.preventDefault(), qr.toggle();
3171
3175
  }), this.setupLanguageChangeListener(), this.setupAuthListener(), this.setupMessageListener();
3172
3176
  }
3173
3177
  /**
@@ -3222,7 +3226,7 @@ class X {
3222
3226
  }
3223
3227
  async createI18nToken(e, n = {}) {
3224
3228
  if (!e) return "";
3225
- if (ti(e))
3229
+ if (ri(e))
3226
3230
  return e;
3227
3231
  const o = {
3228
3232
  appCode: n.appCode || this.appCode,
@@ -3234,14 +3238,14 @@ class X {
3234
3238
  "非 JWT token 需要通过 setToken(token, { orgCode, userCode }) 提供鉴权信息"
3235
3239
  ), e;
3236
3240
  try {
3237
- const s = await Gn({
3241
+ const s = await Xn({
3238
3242
  request: this.i18nTokenRequest,
3239
3243
  appCode: o.appCode || this.appCode,
3240
3244
  orgCode: o.orgCode,
3241
3245
  userCode: o.userCode,
3242
3246
  token: e
3243
3247
  });
3244
- return s ? Jr({
3248
+ return s ? ni({
3245
3249
  appCode: o.appCode || this.appCode,
3246
3250
  orgCode: o.orgCode,
3247
3251
  userCode: o.userCode,
@@ -3379,22 +3383,22 @@ class X {
3379
3383
  }
3380
3384
  // 初始化 i18n 实例
3381
3385
  initI18n(e) {
3382
- this.i18n = Xr({
3386
+ this.i18n = ti({
3383
3387
  locale: this.locale,
3384
3388
  messages: e.messages || {}
3385
3389
  }), this.keyValueMap = {}, globalThis.__I18N_ALL_KEYS__ = /* @__PURE__ */ new Set();
3386
3390
  const n = this;
3387
3391
  globalThis.$t = (o, s, r) => {
3388
3392
  var h, w;
3389
- const a = Nn(s, r);
3393
+ const a = zn(s, r);
3390
3394
  if (s = a.defaultValue, r = a.values, typeof o == "string" && (n.translationKeySet.add(o), globalThis.__I18N_ALL_KEYS__ && globalThis.__I18N_ALL_KEYS__.add(o)), n.i18n.global.locale.value === "zh-CN" && typeof o == "string" && !o.startsWith("i.") && !o.startsWith("pro."))
3391
3395
  return he(s || o, r);
3392
3396
  const i = (h = n.router) == null ? void 0 : h.currentRoute, u = (w = (i == null ? void 0 : i.value) ?? i) == null ? void 0 : w.name;
3393
3397
  let d;
3394
3398
  if (u) {
3395
- const k = `${u}.${o}`, T = n.i18n.t(k, void 0, r);
3396
- if (T !== k && !A.isEmpty(T))
3397
- d = T;
3399
+ const k = `${u}.${o}`, S = n.i18n.t(k, void 0, r);
3400
+ if (S !== k && !A.isEmpty(S))
3401
+ d = S;
3398
3402
  else {
3399
3403
  const _ = `common.${o}`, $ = n.i18n.t(_, void 0, r);
3400
3404
  $ !== _ ? d = $ : d = n.i18n.t(o, void 0, r);
@@ -3405,7 +3409,7 @@ class X {
3405
3409
  }, this.t = globalThis.$t, globalThis.$deepScan = function(o) {
3406
3410
  return o;
3407
3411
  }, globalThis.$clearI18n = this.clearI18n = () => {
3408
- Yn({
3412
+ Qn({
3409
3413
  appCode: this.appCode,
3410
3414
  cacheScope: this.activeCacheScope
3411
3415
  });
@@ -3487,7 +3491,7 @@ class X {
3487
3491
  notifyLanguageChanged(e, n) {
3488
3492
  Je() && this.vueInstances && this.vueInstances.size > 0 && bt(() => {
3489
3493
  this.vueInstances.forEach((o) => {
3490
- Dn(o);
3494
+ jn(o);
3491
3495
  });
3492
3496
  }), typeof window < "u" && typeof CustomEvent == "function" && window.dispatchEvent(
3493
3497
  new CustomEvent("gc-i18n-language-changed", {
@@ -3503,7 +3507,7 @@ class X {
3503
3507
  return this.baseToken = e || "", this.token = this.baseToken, x.set("I18N_TOKEN", this.token), this.persistI18nConfig(), this.resolveAndApplyI18nToken(this.baseToken, o);
3504
3508
  }
3505
3509
  async getLanguages(e = !1) {
3506
- return await Nt({
3510
+ return await zt({
3507
3511
  baseUrl: this.baseUrl,
3508
3512
  token: this.token,
3509
3513
  appCode: this.appCode,
@@ -3516,7 +3520,7 @@ class X {
3516
3520
  let c = x.get(a);
3517
3521
  if (A.isEmpty(c))
3518
3522
  try {
3519
- const i = await zn.get(
3523
+ const i = await Dn.get(
3520
3524
  `https://cdn.ihotel.cn/i18n_messages/${e}.json`
3521
3525
  );
3522
3526
  if (i) {
@@ -3530,7 +3534,7 @@ class X {
3530
3534
  ), c = {};
3531
3535
  }
3532
3536
  try {
3533
- const i = await Wn({
3537
+ const i = await Jn({
3534
3538
  baseUrl: this.baseUrl,
3535
3539
  appCode: this.appCode,
3536
3540
  language: e || this.locale,
@@ -3541,7 +3545,7 @@ class X {
3541
3545
  if (s !== this.authVersion || r !== this.languageVersion)
3542
3546
  return !1;
3543
3547
  if (i && Array.isArray(i)) {
3544
- const u = Hn(i), d = A.assign(
3548
+ const u = Vn(i), d = A.assign(
3545
3549
  {},
3546
3550
  c,
3547
3551
  A.get(this.messages, e),