gc_i18n 1.6.7 → 1.6.9

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,9 +1,9 @@
1
1
  import './gc_i18n.css';
2
- import _t from "keyboardjs";
3
- import { h as xe, ref as ie, computed as He, onMounted as to, nextTick as Et, Vue as _e } from "vue-demi";
4
- import it from "axios";
2
+ import xt from "keyboardjs";
3
+ import { h as xe, ref as ie, computed as He, onMounted as to, nextTick as _t, Vue as _e } from "vue-demi";
4
+ import st from "axios";
5
5
  import E from "store2";
6
- import y from "lodash-es";
6
+ import m from "lodash-es";
7
7
  import { jws as no } from "jsrsasign";
8
8
  const oo = [
9
9
  "ar-SA",
@@ -24,10 +24,10 @@ const oo = [
24
24
  return e;
25
25
  }, io = (t, e, n) => (e.forEach((o) => {
26
26
  const s = o.key.split(".");
27
- s[0] === "common" && y.find(t, { key: `${n}.${s[1]}` }) && y.remove(t, { key: `${n}.${s[1]}` });
28
- const i = y.find(t, { key: o.key });
29
- i ? y.merge(i, o) : t.push(o);
30
- }), t), ce = it.create({
27
+ s[0] === "common" && m.find(t, { key: `${n}.${s[1]}` }) && m.remove(t, { key: `${n}.${s[1]}` });
28
+ const i = m.find(t, { key: o.key });
29
+ i ? m.merge(i, o) : t.push(o);
30
+ }), t), ce = st.create({
31
31
  timeout: 8e3
32
32
  }), Ae = /* @__PURE__ */ new Map(), ro = "https://extendapi.ihotel.cn", ao = "https://test.ihotel.cn", lo = /^https?:\/\//i, Je = (t) => String(t || "guest").replace(/[^\w-]/g, "_"), we = async (t, e) => typeof e != "function" ? t : await e(t) || t, Kt = ({ env: t, dev: e } = {}) => {
33
33
  const n = typeof t == "string" ? t.trim() : t;
@@ -55,7 +55,7 @@ const oo = [
55
55
  }
56
56
  });
57
57
  if (l.data && l.data.result === 0) {
58
- const a = y.get(l.data, "retVal", []), d = a.map((u) => ({
58
+ const a = m.get(l.data, "retVal", []), d = a.map((u) => ({
59
59
  langCode: u.language || u.langCode || u,
60
60
  langName: u.langName || u.language || u
61
61
  }));
@@ -75,7 +75,7 @@ const oo = [
75
75
  }
76
76
  }
77
77
  );
78
- }, At = async ({
78
+ }, Et = async ({
79
79
  appCode: t,
80
80
  language: e = "zh-CN",
81
81
  lastPullDate: n,
@@ -117,12 +117,12 @@ const oo = [
117
117
  Authorization: s
118
118
  }
119
119
  });
120
- }, Tt = (t) => {
120
+ }, At = (t) => {
121
121
  if (typeof t == "string") {
122
122
  const e = t.trim();
123
123
  return !e || /^<!doctype/i.test(e) || /^<html/i.test(e) ? (console.warn("i18n_token 接口未返回有效 token,请检查业务项目接口"), "") : e;
124
124
  }
125
- return y.get(t, "retVal.i18n_token") || y.get(t, "retVal.token") || y.get(t, "i18n_token") || y.get(t, "token") || "";
125
+ return m.get(t, "retVal.i18n_token") || m.get(t, "retVal.token") || m.get(t, "i18n_token") || m.get(t, "token") || "";
126
126
  }, co = async ({
127
127
  request: t,
128
128
  appCode: e,
@@ -137,7 +137,7 @@ const oo = [
137
137
  userCode: o,
138
138
  token: s
139
139
  });
140
- return Tt((r == null ? void 0 : r.data) ?? r);
140
+ return At((r == null ? void 0 : r.data) ?? r);
141
141
  }
142
142
  const i = await ce({
143
143
  url: "/i18n_token",
@@ -154,7 +154,7 @@ const oo = [
154
154
  userCode: o
155
155
  }
156
156
  });
157
- return Tt(i == null ? void 0 : i.data);
157
+ return At(i == null ? void 0 : i.data);
158
158
  }, uo = async ({
159
159
  baseUrl: t,
160
160
  appCode: e,
@@ -165,7 +165,7 @@ const oo = [
165
165
  getRequestToken: r
166
166
  }) => {
167
167
  try {
168
- const l = Je(i), a = `I18N_${y.toUpper(e)}_${l}`, d = E.namespace(a), u = {
168
+ const l = Je(i), a = `I18N_${m.toUpper(e)}_${l}`, d = E.namespace(a), u = {
169
169
  baseUrl: t,
170
170
  appCode: e,
171
171
  language: n,
@@ -177,23 +177,23 @@ const oo = [
177
177
  n || "",
178
178
  l,
179
179
  o || "",
180
- y.get(h, "lastPullDate", "")
180
+ m.get(h, "lastPullDate", "")
181
181
  ].join("|");
182
182
  if (Ae.has(f))
183
183
  return Ae.get(f);
184
184
  const x = (async () => {
185
185
  if (!h || !h.lastPullDate) {
186
- const _ = await At(u);
187
- return _ ? (d.set(n, _), y.get(_, "translatesDTOs", [])) : y.get(h, "translatesDTOs", []);
186
+ const _ = await Et(u);
187
+ return _ ? (d.set(n, _), m.get(_, "translatesDTOs", [])) : m.get(h, "translatesDTOs", []);
188
188
  }
189
- const { lastPullDate: S } = h, L = await At({
189
+ const { lastPullDate: S } = h, L = await Et({
190
190
  ...u,
191
191
  lastPullDate: S
192
192
  });
193
193
  if (!L)
194
- return y.get(h, "translatesDTOs", []);
195
- const I = y.get(h, "translatesDTOs", []);
196
- if (!y.isEmpty(L.translatesDTOs)) {
194
+ return m.get(h, "translatesDTOs", []);
195
+ const I = m.get(h, "translatesDTOs", []);
196
+ if (!m.isEmpty(L.translatesDTOs)) {
197
197
  const _ = io(I, L.translatesDTOs, s), w = {
198
198
  lastPullDate: L.lastPullDate,
199
199
  translatesDTOs: _
@@ -207,27 +207,27 @@ const oo = [
207
207
  }), x;
208
208
  } catch (l) {
209
209
  console.error("处理翻译数据失败:", l);
210
- const a = Je(i), d = E.namespace(`I18N_${y.toUpper(e)}_${a}`);
211
- return y.get(d.get(n), "translatesDTOs", []);
210
+ const a = Je(i), d = E.namespace(`I18N_${m.toUpper(e)}_${a}`);
211
+ return m.get(d.get(n), "translatesDTOs", []);
212
212
  }
213
- }, St = ({ appCode: t, cacheScope: e } = {}) => {
213
+ }, Tt = ({ appCode: t, cacheScope: e } = {}) => {
214
214
  if (t) {
215
215
  if (e) {
216
- E.namespace(`I18N_${y.toUpper(t)}_${Je(e)}`).clearAll();
216
+ E.namespace(`I18N_${m.toUpper(t)}_${Je(e)}`).clearAll();
217
217
  return;
218
218
  }
219
- E.namespace(`I18N_${y.toUpper(t)}`).clearAll();
219
+ E.namespace(`I18N_${m.toUpper(t)}`).clearAll();
220
220
  }
221
221
  };
222
- function Lt(t) {
222
+ function St(t) {
223
223
  const e = t || "", n = ho(e);
224
- return It(n ? [
224
+ return $t(n ? [
225
225
  { type: "locked", value: e.slice(0, n.questionIndex + 1) },
226
- ...$t(
226
+ ...Lt(
227
227
  e.slice(n.questionIndex + 1, n.colonIndex)
228
228
  ),
229
229
  { type: "locked", value: ":" },
230
- ...$t(
230
+ ...Lt(
231
231
  e.slice(n.colonIndex + 1, n.endIndex)
232
232
  ),
233
233
  { type: "locked", value: e.slice(n.endIndex) }
@@ -290,7 +290,7 @@ function fo(t, e, n) {
290
290
  }
291
291
  return t.length;
292
292
  }
293
- function $t(t) {
293
+ function Lt(t) {
294
294
  const e = [], n = t.match(/^\s*/)[0], o = t.match(/\s*$/)[0], s = n.length, i = t.length - o.length;
295
295
  let r = t.slice(s, i);
296
296
  n && e.push({ type: "locked", value: n });
@@ -313,8 +313,8 @@ function Xt(t) {
313
313
  value: t.slice(o)
314
314
  }), n.length ? n : [{ type: "text", value: t }];
315
315
  }
316
- function It(t) {
317
- return y.reduce(
316
+ function $t(t) {
317
+ return m.reduce(
318
318
  t,
319
319
  (e, n) => {
320
320
  const o = e[e.length - 1];
@@ -323,7 +323,7 @@ function It(t) {
323
323
  []
324
324
  );
325
325
  }
326
- const N = (t) => String(t ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"), Fe = (t) => (t == null ? void 0 : t.data) ?? t, go = (t) => String(t || "").trim(), po = (t) => ({
326
+ const N = (t) => String(t ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"), Fe = (t) => (t == null ? void 0 : t.data) ?? t, po = (t) => String(t || "").trim(), go = (t) => ({
327
327
  ...t,
328
328
  langCode: t.language || t.langCode || t,
329
329
  langName: t.langName || t.language || t.langCode || t,
@@ -397,11 +397,11 @@ class mo {
397
397
  baseUrl: this.baseUrl,
398
398
  appCode: this.appCode
399
399
  }), o = Fe(n);
400
- o && o.result === 0 ? (y.isEmpty(e) && (e = ["zh-CN", "en-US", "zh-TW"]), this.languages = y.map(o.retVal || [], (s) => {
401
- const i = po(s);
400
+ o && o.result === 0 ? (m.isEmpty(e) && (e = ["zh-CN", "en-US", "zh-TW"]), this.languages = m.map(o.retVal || [], (s) => {
401
+ const i = go(s);
402
402
  return {
403
403
  ...i,
404
- checked: y.includes(e, i.langCode)
404
+ checked: m.includes(e, i.langCode)
405
405
  };
406
406
  }), await this.getPageData()) : (this.loading = !1, this.showError("获取语言失败,出错了"), this.render());
407
407
  } catch (e) {
@@ -409,8 +409,8 @@ class mo {
409
409
  }
410
410
  }
411
411
  saveLanguageSetting() {
412
- const e = y.map(
413
- y.filter(this.languages, (n) => n.checked),
412
+ const e = m.map(
413
+ m.filter(this.languages, (n) => n.checked),
414
414
  "langCode"
415
415
  );
416
416
  E.set("I18N_LANGUAGE_SETTING", e);
@@ -428,7 +428,7 @@ class mo {
428
428
  });
429
429
  }
430
430
  updateTranslationValue(e, n, o) {
431
- const { dictKey: s } = e, i = y.findIndex(this.mySaveData, {
431
+ const { dictKey: s } = e, i = m.findIndex(this.mySaveData, {
432
432
  dictKey: s
433
433
  });
434
434
  e[n] = o, e[`${n}_fromAi`] = "F", i > -1 ? (this.mySaveData[i][n] = o, this.mySaveData[i][`${n}_fromAi`] = "F", this.mySaveData[i].changedLangs = {
@@ -443,22 +443,22 @@ class mo {
443
443
  });
444
444
  }
445
445
  isProtectedValue(e) {
446
- return y.some(Lt(e), { type: "locked" });
446
+ return m.some(St(e), { type: "locked" });
447
447
  }
448
448
  isProtectedEditor() {
449
449
  var e;
450
- return y.some(((e = this.editor) == null ? void 0 : e.parts) || [], { type: "locked" });
450
+ return m.some(((e = this.editor) == null ? void 0 : e.parts) || [], { type: "locked" });
451
451
  }
452
452
  openEditor(e, n) {
453
453
  const o = this.data[e];
454
454
  if (!o)
455
455
  return;
456
- const s = go(o[n]);
456
+ const s = po(o[n]);
457
457
  this.editor = {
458
458
  rowIndex: e,
459
459
  key: n,
460
460
  value: s,
461
- parts: Lt(s)
461
+ parts: St(s)
462
462
  }, this.render();
463
463
  }
464
464
  syncEditorPartsFromDom() {
@@ -466,13 +466,13 @@ class mo {
466
466
  const e = (n = this.root) == null ? void 0 : n.querySelector(
467
467
  ".gc_i18n_config_protected_editor"
468
468
  );
469
- !e || !this.editor || y.forEach(e.querySelectorAll("[data-editor-index]"), (o) => {
469
+ !e || !this.editor || m.forEach(e.querySelectorAll("[data-editor-index]"), (o) => {
470
470
  const s = Number(o.dataset.editorIndex), i = this.editor.parts[s];
471
471
  i && i.type === "text" && (i.value = o.innerText);
472
472
  });
473
473
  }
474
474
  getEditorSubmitValue() {
475
- return this.editor ? this.isProtectedEditor() ? (this.syncEditorPartsFromDom(), y.map(this.editor.parts, "value").join("")) : this.editor.value : "";
475
+ return this.editor ? this.isProtectedEditor() ? (this.syncEditorPartsFromDom(), m.map(this.editor.parts, "value").join("")) : this.editor.value : "";
476
476
  }
477
477
  confirmEditor() {
478
478
  if (!this.editor)
@@ -485,8 +485,8 @@ class mo {
485
485
  }
486
486
  getSubmitData() {
487
487
  const e = [];
488
- return y.map(this.mySaveData, (n) => {
489
- y.map(y.keys(n.changedLangs || {}), (o) => {
488
+ return m.map(this.mySaveData, (n) => {
489
+ m.map(m.keys(n.changedLangs || {}), (o) => {
490
490
  e.push({
491
491
  key: n.dictKey,
492
492
  page: n.page,
@@ -499,7 +499,7 @@ class mo {
499
499
  }
500
500
  async saveData({ msg: e = "保存成功" } = {}, n = !0) {
501
501
  const o = this.getSubmitData();
502
- if (y.isEmpty(o)) {
502
+ if (m.isEmpty(o)) {
503
503
  this.showError("没有需要保存的数据");
504
504
  return;
505
505
  }
@@ -536,7 +536,7 @@ class mo {
536
536
  }
537
537
  }
538
538
  async saveNoEqual() {
539
- y.isEmpty(this.mySaveData) || await this.saveData({ msg: "已为您自动保存" }, !1);
539
+ m.isEmpty(this.mySaveData) || await this.saveData({ msg: "已为您自动保存" }, !1);
540
540
  }
541
541
  async changePage(e) {
542
542
  await this.saveNoEqual();
@@ -571,7 +571,7 @@ class mo {
571
571
  data: {
572
572
  appCode: this.appCode,
573
573
  searchBlur: this.searchText,
574
- commaSeparatedLangs: y.map(this.languages, "langCode").toString(),
574
+ commaSeparatedLangs: m.map(this.languages, "langCode").toString(),
575
575
  page: n === "loginData" ? this.loginRouteName : n === "pageData" ? this.name : "common",
576
576
  pageSize: 10,
577
577
  ...e
@@ -581,7 +581,7 @@ class mo {
581
581
  }), s = Fe(o);
582
582
  if (s && s.result === 0) {
583
583
  const i = s.retVal || {};
584
- this.data = y.cloneDeep(i.datas || []), this.page = {
584
+ this.data = m.cloneDeep(i.datas || []), this.page = {
585
585
  firstResult: i.firstResult || 0,
586
586
  pageSize: i.pageSize || 10,
587
587
  totalRows: i.totalRows || 0
@@ -643,7 +643,7 @@ class mo {
643
643
  return Math.max(1, Math.ceil((this.page.totalRows || 0) / this.page.pageSize));
644
644
  }
645
645
  get checkedLanguages() {
646
- return y.filter(this.languages, (e) => e.checked);
646
+ return m.filter(this.languages, (e) => e.checked);
647
647
  }
648
648
  renderStatus() {
649
649
  var n;
@@ -741,7 +741,7 @@ class mo {
741
741
  return '<div class="gc_i18n_config_loading">加载中...</div>';
742
742
  }
743
743
  renderTable() {
744
- return y.isEmpty(this.data) ? `
744
+ return m.isEmpty(this.data) ? `
745
745
  <div class="gc_i18n_config_table_wrap">
746
746
  <div class="gc_i18n_config_empty">暂无数据</div>
747
747
  </div>
@@ -877,7 +877,7 @@ function Jt(t, e, n) {
877
877
  function yo(t, e) {
878
878
  if (e.has(t)) throw new TypeError("Cannot initialize the same private elements twice on an object");
879
879
  }
880
- function Pt(t, e) {
880
+ function It(t, e) {
881
881
  return t.get(Jt(t, e));
882
882
  }
883
883
  function vo(t, e, n) {
@@ -886,13 +886,13 @@ function vo(t, e, n) {
886
886
  function Co(t, e, n) {
887
887
  return t.set(Jt(t, e), n), n;
888
888
  }
889
- const ko = 100, p = {}, xo = () => {
890
- p.previousActiveElement instanceof HTMLElement ? (p.previousActiveElement.focus(), p.previousActiveElement = null) : document.body && document.body.focus();
889
+ const ko = 100, g = {}, xo = () => {
890
+ g.previousActiveElement instanceof HTMLElement ? (g.previousActiveElement.focus(), g.previousActiveElement = null) : document.body && document.body.focus();
891
891
  }, _o = (t) => new Promise((e) => {
892
892
  if (!t)
893
893
  return e();
894
894
  const n = window.scrollX, o = window.scrollY;
895
- p.restoreFocusTimeout = setTimeout(() => {
895
+ g.restoreFocusTimeout = setTimeout(() => {
896
896
  xo(), e();
897
897
  }, ko), window.scrollTo(n, o);
898
898
  }), Qt = "swal2-", Eo = ["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"], c = Eo.reduce(
@@ -903,18 +903,18 @@ const ko = 100, p = {}, xo = () => {
903
903
  (t, e) => (t[e] = Qt + e, t),
904
904
  /** @type {SwalIcons} */
905
905
  {}
906
- ), en = "SweetAlert2:", rt = (t) => t.charAt(0).toUpperCase() + t.slice(1), O = (t) => {
906
+ ), en = "SweetAlert2:", it = (t) => t.charAt(0).toUpperCase() + t.slice(1), O = (t) => {
907
907
  console.warn(`${en} ${typeof t == "object" ? t.join(" ") : t}`);
908
908
  }, te = (t) => {
909
909
  console.error(`${en} ${t}`);
910
- }, Bt = [], To = (t) => {
911
- Bt.includes(t) || (Bt.push(t), O(t));
910
+ }, Pt = [], To = (t) => {
911
+ Pt.includes(t) || (Pt.push(t), O(t));
912
912
  }, tn = (t, e = null) => {
913
913
  To(`"${t}" is deprecated and will be removed in the next major release.${e ? ` Use "${e}" instead.` : ""}`);
914
- }, Oe = (t) => typeof t == "function" ? t() : t, at = (t) => t && typeof t.toPromise == "function", me = (t) => at(t) ? t.toPromise() : Promise.resolve(t), lt = (t) => t && Promise.resolve(t) === t, z = () => document.body.querySelector(`.${c.container}`), be = (t) => {
914
+ }, Oe = (t) => typeof t == "function" ? t() : t, rt = (t) => t && typeof t.toPromise == "function", me = (t) => rt(t) ? t.toPromise() : Promise.resolve(t), at = (t) => t && Promise.resolve(t) === t, z = () => document.body.querySelector(`.${c.container}`), be = (t) => {
915
915
  const e = z();
916
916
  return e ? e.querySelector(t) : null;
917
- }, V = (t) => be(`.${t}`), T = () => V(c.popup), de = () => V(c.icon), So = () => V(c["icon-content"]), nn = () => V(c.title), ct = () => V(c["html-container"]), on = () => V(c.image), dt = () => V(c["progress-steps"]), ze = () => V(c["validation-message"]), K = () => (
917
+ }, j = (t) => be(`.${t}`), T = () => j(c.popup), de = () => j(c.icon), So = () => j(c["icon-content"]), nn = () => j(c.title), lt = () => j(c["html-container"]), on = () => j(c.image), ct = () => j(c["progress-steps"]), ze = () => j(c["validation-message"]), K = () => (
918
918
  /** @type {HTMLButtonElement} */
919
919
  be(`.${c.actions} .${c.confirm}`)
920
920
  ), ue = () => (
@@ -923,7 +923,7 @@ const ko = 100, p = {}, xo = () => {
923
923
  ), ne = () => (
924
924
  /** @type {HTMLButtonElement} */
925
925
  be(`.${c.actions} .${c.deny}`)
926
- ), Lo = () => V(c["input-label"]), he = () => be(`.${c.loader}`), ye = () => V(c.actions), sn = () => V(c.footer), Ue = () => V(c["timer-progress-bar"]), ut = () => V(c.close), $o = `
926
+ ), Lo = () => j(c["input-label"]), he = () => be(`.${c.loader}`), ye = () => j(c.actions), sn = () => j(c.footer), Ue = () => j(c["timer-progress-bar"]), dt = () => j(c.close), $o = `
927
927
  a[href],
928
928
  area[href],
929
929
  input:not([disabled]),
@@ -938,7 +938,7 @@ const ko = 100, p = {}, xo = () => {
938
938
  audio[controls],
939
939
  video[controls],
940
940
  summary
941
- `, ht = () => {
941
+ `, ut = () => {
942
942
  const t = T();
943
943
  if (!t)
944
944
  return [];
@@ -947,13 +947,13 @@ const ko = 100, p = {}, xo = () => {
947
947
  return l > a ? 1 : l < a ? -1 : 0;
948
948
  }), o = t.querySelectorAll($o), s = Array.from(o).filter((i) => i.getAttribute("tabindex") !== "-1");
949
949
  return [...new Set(n.concat(s))].filter((i) => U(i));
950
- }, ft = () => G(document.body, c.shown) && !G(document.body, c["toast-shown"]) && !G(document.body, c["no-backdrop"]), qe = () => {
950
+ }, ht = () => G(document.body, c.shown) && !G(document.body, c["toast-shown"]) && !G(document.body, c["no-backdrop"]), qe = () => {
951
951
  const t = T();
952
952
  return t ? G(t, c.toast) : !1;
953
953
  }, Io = () => {
954
954
  const t = T();
955
955
  return t ? t.hasAttribute("data-loading") : !1;
956
- }, j = (t, e) => {
956
+ }, V = (t, e) => {
957
957
  if (t.textContent = "", e) {
958
958
  const o = new DOMParser().parseFromString(e, "text/html"), s = o.querySelector("head");
959
959
  s && Array.from(s.childNodes).forEach((r) => {
@@ -990,7 +990,7 @@ const ko = 100, p = {}, xo = () => {
990
990
  }
991
991
  A(t, o);
992
992
  }
993
- }, Ve = (t, e) => {
993
+ }, je = (t, e) => {
994
994
  if (!e)
995
995
  return null;
996
996
  switch (e) {
@@ -1038,14 +1038,14 @@ const ko = 100, p = {}, xo = () => {
1038
1038
  t && (t.style.display = e);
1039
1039
  }, D = (t) => {
1040
1040
  t && (t.style.display = "none");
1041
- }, gt = (t, e = "block") => {
1041
+ }, ft = (t, e = "block") => {
1042
1042
  t && new MutationObserver(() => {
1043
1043
  ve(t, t.innerHTML, e);
1044
1044
  }).observe(t, {
1045
1045
  childList: !0,
1046
1046
  subtree: !0
1047
1047
  });
1048
- }, Nt = (t, e, n, o) => {
1048
+ }, Bt = (t, e, n, o) => {
1049
1049
  const s = t.querySelector(e);
1050
1050
  s && s.style.setProperty(n, o);
1051
1051
  }, ve = (t, e, n = "flex") => {
@@ -1119,7 +1119,7 @@ const ko = 100, p = {}, xo = () => {
1119
1119
  c["has-column"]
1120
1120
  ]), !0) : !1;
1121
1121
  }, X = () => {
1122
- p.currentInstance && p.currentInstance.resetValidationMessage();
1122
+ g.currentInstance && g.currentInstance.resetValidationMessage();
1123
1123
  }, zo = () => {
1124
1124
  const t = T();
1125
1125
  if (!t)
@@ -1144,22 +1144,22 @@ const ko = 100, p = {}, xo = () => {
1144
1144
  }, qo = (t) => {
1145
1145
  const e = T();
1146
1146
  e && (e.setAttribute("role", t.toast ? "alert" : "dialog"), e.setAttribute("aria-live", t.toast ? "polite" : "assertive"), t.toast || e.setAttribute("aria-modal", "true"));
1147
- }, Vo = (t) => {
1148
- window.getComputedStyle(t).direction === "rtl" && (A(z(), c.rtl), p.isRTL = !0);
1149
1147
  }, jo = (t) => {
1148
+ window.getComputedStyle(t).direction === "rtl" && (A(z(), c.rtl), g.isRTL = !0);
1149
+ }, Vo = (t) => {
1150
1150
  const e = Oo();
1151
1151
  if (Ro()) {
1152
1152
  te("SweetAlert2 requires document to initialize");
1153
1153
  return;
1154
1154
  }
1155
1155
  const n = document.createElement("div");
1156
- n.className = c.container, e && A(n, c["no-transition"]), j(n, Do), n.dataset.swal2Theme = t.theme;
1156
+ n.className = c.container, e && A(n, c["no-transition"]), V(n, Do), n.dataset.swal2Theme = t.theme;
1157
1157
  const o = Uo(t.target || "body");
1158
- o.appendChild(n), t.topLayer && (n.setAttribute("popover", ""), n.showPopover()), qo(t), Vo(o), zo();
1159
- }, wt = (t, e) => {
1160
- t instanceof HTMLElement ? e.appendChild(t) : typeof t == "object" ? Ho(t, e) : t && j(e, t);
1158
+ o.appendChild(n), t.topLayer && (n.setAttribute("popover", ""), n.showPopover()), qo(t), jo(o), zo();
1159
+ }, gt = (t, e) => {
1160
+ t instanceof HTMLElement ? e.appendChild(t) : typeof t == "object" ? Ho(t, e) : t && V(e, t);
1161
1161
  }, Ho = (t, e) => {
1162
- "jquery" in t ? Fo(e, t) : j(e, t.toString());
1162
+ "jquery" in t ? Fo(e, t) : V(e, t.toString());
1163
1163
  }, Fo = (t, e) => {
1164
1164
  if (t.textContent = "", 0 in e)
1165
1165
  for (let n = 0; n in e; n++)
@@ -1168,7 +1168,7 @@ const ko = 100, p = {}, xo = () => {
1168
1168
  t.appendChild(e.cloneNode(!0));
1169
1169
  }, Ko = (t, e) => {
1170
1170
  const n = ye(), o = he();
1171
- !n || !o || (!e.showConfirmButton && !e.showDenyButton && !e.showCancelButton ? D(n) : R(n), q(n, e, "actions"), Go(n, o, e), j(o, e.loaderHtml || ""), q(o, e, "loader"));
1171
+ !n || !o || (!e.showConfirmButton && !e.showDenyButton && !e.showCancelButton ? D(n) : R(n), q(n, e, "actions"), Go(n, o, e), V(o, e.loaderHtml || ""), q(o, e, "loader"));
1172
1172
  };
1173
1173
  function Go(t, e, n) {
1174
1174
  const o = K(), s = ne(), i = ue();
@@ -1191,13 +1191,13 @@ function Ge(t) {
1191
1191
  function We(t, e, n) {
1192
1192
  const o = (
1193
1193
  /** @type {'Confirm' | 'Deny' | 'Cancel'} */
1194
- rt(e)
1194
+ it(e)
1195
1195
  );
1196
- ve(t, n[`show${o}Button`], "inline-block"), j(t, n[`${e}ButtonText`] || ""), t.setAttribute("aria-label", n[`${e}ButtonAriaLabel`] || ""), t.className = c[e], q(t, n, `${e}Button`);
1196
+ ve(t, n[`show${o}Button`], "inline-block"), V(t, n[`${e}ButtonText`] || ""), t.setAttribute("aria-label", n[`${e}ButtonAriaLabel`] || ""), t.className = c[e], q(t, n, `${e}Button`);
1197
1197
  }
1198
1198
  const Yo = (t, e) => {
1199
- const n = ut();
1200
- n && (j(n, e.closeButtonHtml || ""), q(n, e, "closeButton"), ve(n, e.showCloseButton), n.setAttribute("aria-label", e.closeButtonAriaLabel || ""));
1199
+ const n = dt();
1200
+ n && (V(n, e.closeButtonHtml || ""), q(n, e, "closeButton"), ve(n, e.showCloseButton), n.setAttribute("aria-label", e.closeButtonAriaLabel || ""));
1201
1201
  }, Zo = (t, e) => {
1202
1202
  const n = z();
1203
1203
  n && (Xo(n, e.backdrop), Jo(n, e.position), Qo(n, e.grow), q(n, e, "container"));
@@ -1247,7 +1247,7 @@ const es = ["input", "file", "range", "select", "radio", "checkbox", "textarea"]
1247
1247
  const n = T();
1248
1248
  if (!n)
1249
1249
  return;
1250
- const o = Ve(n, t);
1250
+ const o = je(n, t);
1251
1251
  if (o) {
1252
1252
  os(o);
1253
1253
  for (const s in e)
@@ -1258,7 +1258,7 @@ const es = ["input", "file", "range", "select", "radio", "checkbox", "textarea"]
1258
1258
  return;
1259
1259
  const e = cn(t.input);
1260
1260
  e && q(e, t, "input");
1261
- }, mt = (t, e) => {
1261
+ }, wt = (t, e) => {
1262
1262
  !t.placeholder && e.inputPlaceholder && (t.placeholder = e.inputPlaceholder);
1263
1263
  }, Ce = (t, e, n) => {
1264
1264
  if (n.inputLabel) {
@@ -1273,7 +1273,7 @@ const es = ["input", "file", "range", "select", "radio", "checkbox", "textarea"]
1273
1273
  t
1274
1274
  ] || c.input);
1275
1275
  }, $e = (t, e) => {
1276
- ["string", "number"].includes(typeof e) ? t.value = `${e}` : lt(e) || O(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e}"`);
1276
+ ["string", "number"].includes(typeof e) ? t.value = `${e}` : at(e) || O(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e}"`);
1277
1277
  }, P = {};
1278
1278
  P.text = P.email = P.password = P.number = P.tel = P.url = P.search = P.date = P["datetime-local"] = P.time = P.week = P.month = /** @type {(input: Input | HTMLElement, params: SweetAlertOptions) => Input} */
1279
1279
  (t, e) => {
@@ -1281,7 +1281,7 @@ P.text = P.email = P.password = P.number = P.tel = P.url = P.search = P.date = P
1281
1281
  /** @type {HTMLInputElement} */
1282
1282
  t
1283
1283
  );
1284
- return $e(n, e.inputValue), Ce(n, n, e), mt(n, e), n.type = /** @type {string} */
1284
+ return $e(n, e.inputValue), Ce(n, n, e), wt(n, e), n.type = /** @type {string} */
1285
1285
  e.input, n;
1286
1286
  };
1287
1287
  P.file = (t, e) => {
@@ -1289,7 +1289,7 @@ P.file = (t, e) => {
1289
1289
  /** @type {HTMLInputElement} */
1290
1290
  t
1291
1291
  );
1292
- return Ce(n, n, e), mt(n, e), n;
1292
+ return Ce(n, n, e), wt(n, e), n;
1293
1293
  };
1294
1294
  P.range = (t, e) => {
1295
1295
  const n = (
@@ -1312,7 +1312,7 @@ P.select = (t, e) => {
1312
1312
  );
1313
1313
  if (n.textContent = "", e.inputPlaceholder) {
1314
1314
  const o = document.createElement("option");
1315
- j(o, e.inputPlaceholder), o.value = "", o.disabled = !0, o.selected = !0, n.appendChild(o);
1315
+ V(o, e.inputPlaceholder), o.value = "", o.disabled = !0, o.selected = !0, n.appendChild(o);
1316
1316
  }
1317
1317
  return Ce(n, n, e), n;
1318
1318
  };
@@ -1328,14 +1328,14 @@ P.checkbox = (t, e) => {
1328
1328
  const n = T();
1329
1329
  if (!n)
1330
1330
  throw new Error("Popup not found");
1331
- const o = Ve(n, "checkbox");
1331
+ const o = je(n, "checkbox");
1332
1332
  if (!o)
1333
1333
  throw new Error("Checkbox input not found");
1334
1334
  o.value = "1", o.checked = !!e.inputValue;
1335
1335
  const i = /** @type {HTMLElement} */ t.querySelector("span");
1336
1336
  if (i) {
1337
1337
  const r = e.inputPlaceholder || e.inputLabel;
1338
- r && j(i, r);
1338
+ r && V(i, r);
1339
1339
  }
1340
1340
  return o;
1341
1341
  };
@@ -1344,7 +1344,7 @@ P.textarea = (t, e) => {
1344
1344
  /** @type {HTMLTextAreaElement} */
1345
1345
  t
1346
1346
  );
1347
- $e(n, e.inputValue), mt(n, e), Ce(n, n, e);
1347
+ $e(n, e.inputValue), wt(n, e), Ce(n, n, e);
1348
1348
  const o = (s) => parseInt(window.getComputedStyle(s).marginLeft) + parseInt(window.getComputedStyle(s).marginRight);
1349
1349
  return setTimeout(() => {
1350
1350
  if ("MutationObserver" in window) {
@@ -1365,17 +1365,17 @@ P.textarea = (t, e) => {
1365
1365
  }), n;
1366
1366
  };
1367
1367
  const rs = (t, e) => {
1368
- const n = ct();
1369
- n && (gt(n), q(n, e, "htmlContainer"), e.html ? (wt(e.html, n), R(n, "block")) : e.text ? (n.textContent = e.text, R(n, "block")) : D(n), ts(t, e));
1368
+ const n = lt();
1369
+ n && (ft(n), q(n, e, "htmlContainer"), e.html ? (gt(e.html, n), R(n, "block")) : e.text ? (n.textContent = e.text, R(n, "block")) : D(n), ts(t, e));
1370
1370
  }, as = (t, e) => {
1371
1371
  const n = sn();
1372
- n && (gt(n), ve(n, !!e.footer, "block"), e.footer && wt(e.footer, n), q(n, e, "footer"));
1372
+ n && (ft(n), ve(n, !!e.footer, "block"), e.footer && gt(e.footer, n), q(n, e, "footer"));
1373
1373
  }, ls = (t, e) => {
1374
1374
  const n = $.innerParams.get(t), o = de();
1375
1375
  if (!o)
1376
1376
  return;
1377
1377
  if (n && e.icon === n.icon) {
1378
- Rt(o, e), Mt(o, e);
1378
+ Mt(o, e), Nt(o, e);
1379
1379
  return;
1380
1380
  }
1381
1381
  if (!e.icon && !e.iconHtml) {
@@ -1386,8 +1386,8 @@ const rs = (t, e) => {
1386
1386
  te(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`), D(o);
1387
1387
  return;
1388
1388
  }
1389
- R(o), Rt(o, e), Mt(o, e), A(o, e.showClass && e.showClass.icon), window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", dn);
1390
- }, Mt = (t, e) => {
1389
+ R(o), Mt(o, e), Nt(o, e), A(o, e.showClass && e.showClass.icon), window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", dn);
1390
+ }, Nt = (t, e) => {
1391
1391
  for (const [n, o] of Object.entries(Le))
1392
1392
  e.icon !== n && H(t, o);
1393
1393
  A(t, e.icon && Le[e.icon]), us(t, e), dn(), q(t, e, "icon");
@@ -1409,23 +1409,23 @@ const rs = (t, e) => {
1409
1409
  <span class="swal2-x-mark-line-left"></span>
1410
1410
  <span class="swal2-x-mark-line-right"></span>
1411
1411
  </span>
1412
- `, Rt = (t, e) => {
1412
+ `, Mt = (t, e) => {
1413
1413
  if (!e.icon && !e.iconHtml)
1414
1414
  return;
1415
1415
  let n = t.innerHTML, o = "";
1416
- e.iconHtml ? o = Dt(e.iconHtml) : e.icon === "success" ? (o = cs(e), n = n.replace(/ style=".*?"/g, "")) : e.icon === "error" ? o = ds : e.icon && (o = Dt({
1416
+ e.iconHtml ? o = Rt(e.iconHtml) : e.icon === "success" ? (o = cs(e), n = n.replace(/ style=".*?"/g, "")) : e.icon === "error" ? o = ds : e.icon && (o = Rt({
1417
1417
  question: "?",
1418
1418
  warning: "!",
1419
1419
  info: "i"
1420
- }[e.icon])), n.trim() !== o.trim() && j(t, o);
1420
+ }[e.icon])), n.trim() !== o.trim() && V(t, o);
1421
1421
  }, us = (t, e) => {
1422
1422
  if (e.iconColor) {
1423
1423
  t.style.color = e.iconColor, t.style.borderColor = e.iconColor;
1424
1424
  for (const n of [".swal2-success-line-tip", ".swal2-success-line-long", ".swal2-x-mark-line-left", ".swal2-x-mark-line-right"])
1425
- Nt(t, n, "background-color", e.iconColor);
1426
- Nt(t, ".swal2-success-ring", "border-color", e.iconColor);
1425
+ Bt(t, n, "background-color", e.iconColor);
1426
+ Bt(t, ".swal2-success-ring", "border-color", e.iconColor);
1427
1427
  }
1428
- }, Dt = (t) => `<div class="${c["icon-content"]}">${t}</div>`, hs = (t, e) => {
1428
+ }, Rt = (t) => `<div class="${c["icon-content"]}">${t}</div>`, hs = (t, e) => {
1429
1429
  const n = on();
1430
1430
  if (n) {
1431
1431
  if (!e.imageUrl) {
@@ -1435,10 +1435,10 @@ const rs = (t, e) => {
1435
1435
  R(n, ""), n.setAttribute("src", e.imageUrl), n.setAttribute("alt", e.imageAlt || ""), Q(n, "width", e.imageWidth), Q(n, "height", e.imageHeight), n.className = c.image, q(n, e, "image");
1436
1436
  }
1437
1437
  };
1438
- let bt = !1, un = 0, hn = 0, fn = 0, gn = 0;
1438
+ let mt = !1, un = 0, hn = 0, fn = 0, pn = 0;
1439
1439
  const fs = (t) => {
1440
1440
  t.addEventListener("mousedown", Ie), document.body.addEventListener("mousemove", Pe), t.addEventListener("mouseup", Be), t.addEventListener("touchstart", Ie), document.body.addEventListener("touchmove", Pe), t.addEventListener("touchend", Be);
1441
- }, gs = (t) => {
1441
+ }, ps = (t) => {
1442
1442
  t.removeEventListener("mousedown", Ie), document.body.removeEventListener("mousemove", Pe), t.removeEventListener("mouseup", Be), t.removeEventListener("touchstart", Ie), document.body.removeEventListener("touchmove", Pe), t.removeEventListener("touchend", Be);
1443
1443
  }, Ie = (t) => {
1444
1444
  const e = T();
@@ -1449,24 +1449,24 @@ const fs = (t) => {
1449
1449
  /** @type {HTMLElement} */
1450
1450
  t.target
1451
1451
  )) {
1452
- bt = !0;
1453
- const o = pn(t);
1454
- un = o.clientX, hn = o.clientY, fn = parseInt(e.style.insetInlineStart) || 0, gn = parseInt(e.style.insetBlockStart) || 0, A(e, "swal2-dragging");
1452
+ mt = !0;
1453
+ const o = gn(t);
1454
+ un = o.clientX, hn = o.clientY, fn = parseInt(e.style.insetInlineStart) || 0, pn = parseInt(e.style.insetBlockStart) || 0, A(e, "swal2-dragging");
1455
1455
  }
1456
1456
  }, Pe = (t) => {
1457
1457
  const e = T();
1458
- if (e && bt) {
1458
+ if (e && mt) {
1459
1459
  let {
1460
1460
  clientX: n,
1461
1461
  clientY: o
1462
- } = pn(t);
1462
+ } = gn(t);
1463
1463
  const s = n - un;
1464
- e.style.insetInlineStart = `${fn + (p.isRTL ? -s : s)}px`, e.style.insetBlockStart = `${gn + (o - hn)}px`;
1464
+ e.style.insetInlineStart = `${fn + (g.isRTL ? -s : s)}px`, e.style.insetBlockStart = `${pn + (o - hn)}px`;
1465
1465
  }
1466
1466
  }, Be = () => {
1467
1467
  const t = T();
1468
- bt = !1, H(t, "swal2-dragging");
1469
- }, pn = (t) => {
1468
+ mt = !1, H(t, "swal2-dragging");
1469
+ }, gn = (t) => {
1470
1470
  let e = 0, n = 0;
1471
1471
  return t.type.startsWith("mouse") ? (e = /** @type {MouseEvent} */
1472
1472
  t.clientX, n = /** @type {MouseEvent} */
@@ -1476,7 +1476,7 @@ const fs = (t) => {
1476
1476
  clientX: e,
1477
1477
  clientY: n
1478
1478
  };
1479
- }, ps = (t, e) => {
1479
+ }, gs = (t, e) => {
1480
1480
  const n = z(), o = T();
1481
1481
  if (!(!n || !o)) {
1482
1482
  if (e.toast) {
@@ -1485,13 +1485,13 @@ const fs = (t) => {
1485
1485
  s && o.insertBefore(s, de());
1486
1486
  } else
1487
1487
  Q(o, "width", e.width);
1488
- Q(o, "padding", e.padding), e.color && (o.style.color = e.color), e.background && (o.style.background = e.background), D(ze()), ws(o, e), e.draggable && !e.toast ? (A(o, c.draggable), fs(o)) : (H(o, c.draggable), gs(o));
1488
+ Q(o, "padding", e.padding), e.color && (o.style.color = e.color), e.background && (o.style.background = e.background), D(ze()), ws(o, e), e.draggable && !e.toast ? (A(o, c.draggable), fs(o)) : (H(o, c.draggable), ps(o));
1489
1489
  }
1490
1490
  }, ws = (t, e) => {
1491
1491
  const n = e.showClass || {};
1492
1492
  t.className = `${c.popup} ${U(t) ? n.popup : ""}`, e.toast ? (A([document.documentElement, document.body], c["toast-shown"]), A(t, c.toast)) : A(t, c.modal), q(t, e, "popup"), typeof e.customClass == "string" && A(t, e.customClass), e.icon && A(t, c[`icon-${e.icon}`]);
1493
1493
  }, ms = (t, e) => {
1494
- const n = dt();
1494
+ const n = ct();
1495
1495
  if (!n)
1496
1496
  return;
1497
1497
  const {
@@ -1511,18 +1511,18 @@ const fs = (t) => {
1511
1511
  });
1512
1512
  }, bs = (t) => {
1513
1513
  const e = document.createElement("li");
1514
- return A(e, c["progress-step"]), j(e, t), e;
1514
+ return A(e, c["progress-step"]), V(e, t), e;
1515
1515
  }, ys = (t) => {
1516
1516
  const e = document.createElement("li");
1517
1517
  return A(e, c["progress-step-line"]), t.progressStepsDistance && Q(e, "width", t.progressStepsDistance), e;
1518
1518
  }, vs = (t, e) => {
1519
1519
  const n = nn();
1520
- n && (gt(n), ve(n, !!(e.title || e.titleText), "block"), e.title && wt(e.title, n), e.titleText && (n.innerText = e.titleText), q(n, e, "title"));
1520
+ n && (ft(n), ve(n, !!(e.title || e.titleText), "block"), e.title && gt(e.title, n), e.titleText && (n.innerText = e.titleText), q(n, e, "title"));
1521
1521
  }, wn = (t, e) => {
1522
1522
  var n;
1523
- ps(t, e), Zo(t, e), ms(t, e), ls(t, e), hs(t, e), vs(t, e), Yo(t, e), rs(t, e), Ko(t, e), as(t, e);
1523
+ gs(t, e), Zo(t, e), ms(t, e), ls(t, e), hs(t, e), vs(t, e), Yo(t, e), rs(t, e), Ko(t, e), as(t, e);
1524
1524
  const o = T();
1525
- typeof e.didRender == "function" && o && e.didRender(o), (n = p.eventEmitter) === null || n === void 0 || n.emit("didRender", o);
1525
+ typeof e.didRender == "function" && o && e.didRender(o), (n = g.eventEmitter) === null || n === void 0 || n.emit("didRender", o);
1526
1526
  }, Cs = () => U(T()), mn = () => {
1527
1527
  var t;
1528
1528
  return (t = K()) === null || t === void 0 ? void 0 : t.click();
@@ -1568,7 +1568,7 @@ const fs = (t) => {
1568
1568
  }
1569
1569
  }, et = (t, e) => {
1570
1570
  var n;
1571
- const o = ht();
1571
+ const o = ut();
1572
1572
  if (o.length) {
1573
1573
  t = t + e, t === -2 && (t = o.length - 1), t === o.length ? t = 0 : t === -1 && (t = o.length - 1), o[t].focus();
1574
1574
  return;
@@ -1582,14 +1582,14 @@ const fs = (t) => {
1582
1582
  const n = T();
1583
1583
  if (!n || !e.input)
1584
1584
  return;
1585
- const o = Ve(n, e.input);
1585
+ const o = je(n, e.input);
1586
1586
  if (t.target && o && t.target instanceof HTMLElement && t.target.outerHTML === o.outerHTML) {
1587
1587
  if (["textarea", "file"].includes(e.input))
1588
1588
  return;
1589
1589
  mn(), t.preventDefault();
1590
1590
  }
1591
1591
  }, Ss = (t) => {
1592
- const e = t.target, n = ht();
1592
+ const e = t.target, n = ut();
1593
1593
  let o = -1;
1594
1594
  for (let s = 0; s < n.length; s++)
1595
1595
  if (e === n[s]) {
@@ -1647,7 +1647,7 @@ const Is = () => {
1647
1647
  e && (n.preventDefault(), n.stopPropagation());
1648
1648
  };
1649
1649
  }, Ns = (t) => {
1650
- const e = t.target, n = z(), o = ct();
1650
+ const e = t.target, n = z(), o = lt();
1651
1651
  return !n || !o || Ms(t) || Rs(t) ? !1 : e === n || !Qe(n) && e instanceof HTMLElement && !No(e, o) && // #2823
1652
1652
  e.tagName !== "INPUT" && // #1603
1653
1653
  e.tagName !== "TEXTAREA" && // #2266
@@ -1672,17 +1672,17 @@ const zs = (t) => {
1672
1672
  re !== null && (document.body.style.paddingRight = `${re}px`, re = null);
1673
1673
  };
1674
1674
  function kn(t, e, n, o) {
1675
- qe() ? Ot(t, o) : (_o(n).then(() => Ot(t, o)), bn(p)), Cn ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(), ft() && (Us(), Ds(), vn()), qs();
1675
+ qe() ? Dt(t, o) : (_o(n).then(() => Dt(t, o)), bn(g)), Cn ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(), ht() && (Us(), Ds(), vn()), qs();
1676
1676
  }
1677
1677
  function qs() {
1678
1678
  H([document.documentElement, document.body], [c.shown, c["height-auto"], c["no-backdrop"], c["toast-shown"]]);
1679
1679
  }
1680
1680
  function Y(t) {
1681
- t = js(t);
1682
- const e = ae.swalPromiseResolve.get(this), n = Vs(this);
1681
+ t = Vs(t);
1682
+ const e = ae.swalPromiseResolve.get(this), n = js(this);
1683
1683
  this.isAwaitingPromise ? t.isDismissed || (ke(this), e(t)) : n && e(t);
1684
1684
  }
1685
- const Vs = (t) => {
1685
+ const js = (t) => {
1686
1686
  const e = T();
1687
1687
  if (!e)
1688
1688
  return !1;
@@ -1699,7 +1699,7 @@ function xn(t) {
1699
1699
  }
1700
1700
  const ke = (t) => {
1701
1701
  t.isAwaitingPromise && (delete t.isAwaitingPromise, $.innerParams.get(t) || t._destroy());
1702
- }, js = (t) => typeof t > "u" ? {
1702
+ }, Vs = (t) => typeof t > "u" ? {
1703
1703
  isConfirmed: !1,
1704
1704
  isDenied: !1,
1705
1705
  isDismissed: !0
@@ -1710,20 +1710,20 @@ const ke = (t) => {
1710
1710
  }, t), Hs = (t, e, n) => {
1711
1711
  var o;
1712
1712
  const s = z(), i = ln(e);
1713
- typeof n.willClose == "function" && n.willClose(e), (o = p.eventEmitter) === null || o === void 0 || o.emit("willClose", e), i && s ? Fs(t, e, s, !!n.returnFocus, n.didClose) : s && kn(t, s, !!n.returnFocus, n.didClose);
1713
+ typeof n.willClose == "function" && n.willClose(e), (o = g.eventEmitter) === null || o === void 0 || o.emit("willClose", e), i && s ? Fs(t, e, s, !!n.returnFocus, n.didClose) : s && kn(t, s, !!n.returnFocus, n.didClose);
1714
1714
  }, Fs = (t, e, n, o, s) => {
1715
- p.swalCloseEventFinishedCallback = kn.bind(null, t, n, o, s);
1715
+ g.swalCloseEventFinishedCallback = kn.bind(null, t, n, o, s);
1716
1716
  const i = function(r) {
1717
1717
  if (r.target === e) {
1718
1718
  var l;
1719
- (l = p.swalCloseEventFinishedCallback) === null || l === void 0 || l.call(p), delete p.swalCloseEventFinishedCallback, e.removeEventListener("animationend", i), e.removeEventListener("transitionend", i);
1719
+ (l = g.swalCloseEventFinishedCallback) === null || l === void 0 || l.call(g), delete g.swalCloseEventFinishedCallback, e.removeEventListener("animationend", i), e.removeEventListener("transitionend", i);
1720
1720
  }
1721
1721
  };
1722
1722
  e.addEventListener("animationend", i), e.addEventListener("transitionend", i);
1723
- }, Ot = (t, e) => {
1723
+ }, Dt = (t, e) => {
1724
1724
  setTimeout(() => {
1725
1725
  var n;
1726
- typeof e == "function" && e.bind(t.params)(), (n = p.eventEmitter) === null || n === void 0 || n.emit("didClose"), t._destroy && t._destroy();
1726
+ typeof e == "function" && e.bind(t.params)(), (n = g.eventEmitter) === null || n === void 0 || n.emit("didClose"), t._destroy && t._destroy();
1727
1727
  });
1728
1728
  }, le = (t) => {
1729
1729
  let e = T();
@@ -1735,7 +1735,7 @@ const ke = (t) => {
1735
1735
  const n = ye(), o = he();
1736
1736
  !n || !o || (!e && U(K()) && (e = K()), R(n), e && (D(e), o.setAttribute("data-button-to-replace", e.className), n.insertBefore(o, e)), A([t, n], c.loading));
1737
1737
  }, Gs = (t, e) => {
1738
- e.input === "select" || e.input === "radio" ? Js(t, e) : ["text", "email", "number", "tel", "textarea"].some((n) => n === e.input) && (at(e.inputValue) || lt(e.inputValue)) && (le(K()), Qs(t, e));
1738
+ e.input === "select" || e.input === "radio" ? Js(t, e) : ["text", "email", "number", "tel", "textarea"].some((n) => n === e.input) && (rt(e.inputValue) || at(e.inputValue)) && (le(K()), Qs(t, e));
1739
1739
  }, Ws = (t, e) => {
1740
1740
  const n = t.getInput();
1741
1741
  if (!n)
@@ -1757,7 +1757,7 @@ const ke = (t) => {
1757
1757
  const o = (s) => {
1758
1758
  e.input === "select" ? ei(n, Ne(s), e) : e.input === "radio" && ti(n, Ne(s), e);
1759
1759
  };
1760
- at(e.inputOptions) || lt(e.inputOptions) ? (le(K()), me(e.inputOptions).then((s) => {
1760
+ rt(e.inputOptions) || at(e.inputOptions) ? (le(K()), me(e.inputOptions).then((s) => {
1761
1761
  t.hideLoading(), o(s);
1762
1762
  })) : typeof e.inputOptions == "object" ? o(e.inputOptions) : te(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`);
1763
1763
  }, Qs = (t, e) => {
@@ -1774,7 +1774,7 @@ function ei(t, e, n) {
1774
1774
  return;
1775
1775
  const s = (i, r, l) => {
1776
1776
  const a = document.createElement("option");
1777
- a.value = l, j(a, r), a.selected = _n(l, n.inputValue), i.appendChild(a);
1777
+ a.value = l, V(a, r), a.selected = _n(l, n.inputValue), i.appendChild(a);
1778
1778
  };
1779
1779
  e.forEach((i) => {
1780
1780
  const r = i[0], l = i[1];
@@ -1793,7 +1793,7 @@ function ti(t, e, n) {
1793
1793
  const r = i[0], l = i[1], a = document.createElement("input"), d = document.createElement("label");
1794
1794
  a.type = "radio", a.name = c.radio, a.value = r, _n(r, n.inputValue) && (a.checked = !0);
1795
1795
  const u = document.createElement("span");
1796
- j(u, l), u.className = c.label, d.appendChild(a), d.appendChild(u), o.appendChild(d);
1796
+ V(u, l), u.className = c.label, d.appendChild(a), d.appendChild(u), o.appendChild(d);
1797
1797
  });
1798
1798
  const s = o.querySelectorAll("input");
1799
1799
  s.length && s[0].focus();
@@ -1809,26 +1809,26 @@ const Ne = (t) => {
1809
1809
  }), e;
1810
1810
  }, _n = (t, e) => !!e && e !== null && e !== void 0 && e.toString() === t.toString(), ni = (t) => {
1811
1811
  const e = $.innerParams.get(t);
1812
- t.disableButtons(), e.input ? En(t, "confirm") : vt(t, !0);
1812
+ t.disableButtons(), e.input ? En(t, "confirm") : yt(t, !0);
1813
1813
  }, oi = (t) => {
1814
1814
  const e = $.innerParams.get(t);
1815
- t.disableButtons(), e.returnInputValueOnDeny ? En(t, "deny") : yt(t, !1);
1815
+ t.disableButtons(), e.returnInputValueOnDeny ? En(t, "deny") : bt(t, !1);
1816
1816
  }, si = (t, e) => {
1817
1817
  t.disableButtons(), e(fe.cancel);
1818
1818
  }, En = (t, e) => {
1819
1819
  const n = $.innerParams.get(t);
1820
1820
  if (!n.input) {
1821
- te(`The "input" parameter is needed to be set when using returnInputValueOn${rt(e)}`);
1821
+ te(`The "input" parameter is needed to be set when using returnInputValueOn${it(e)}`);
1822
1822
  return;
1823
1823
  }
1824
1824
  const o = t.getInput(), s = Ws(t, n);
1825
- n.inputValidator ? ii(t, s, e) : o && !o.checkValidity() ? (t.enableButtons(), t.showValidationMessage(n.validationMessage || o.validationMessage)) : e === "deny" ? yt(t, s) : vt(t, s);
1825
+ n.inputValidator ? ii(t, s, e) : o && !o.checkValidity() ? (t.enableButtons(), t.showValidationMessage(n.validationMessage || o.validationMessage)) : e === "deny" ? bt(t, s) : yt(t, s);
1826
1826
  }, ii = (t, e, n) => {
1827
1827
  const o = $.innerParams.get(t);
1828
1828
  t.disableInput(), Promise.resolve().then(() => me(o.inputValidator(e, o.validationMessage))).then((i) => {
1829
- t.enableButtons(), t.enableInput(), i ? t.showValidationMessage(i) : n === "deny" ? yt(t, e) : vt(t, e);
1829
+ t.enableButtons(), t.enableInput(), i ? t.showValidationMessage(i) : n === "deny" ? bt(t, e) : yt(t, e);
1830
1830
  });
1831
- }, yt = (t, e) => {
1831
+ }, bt = (t, e) => {
1832
1832
  const n = $.innerParams.get(t);
1833
1833
  n.showLoaderOnDeny && le(ne()), n.preDeny ? (t.isAwaitingPromise = !0, Promise.resolve().then(() => me(n.preDeny(e, n.validationMessage))).then((s) => {
1834
1834
  s === !1 ? (t.hideLoading(), ke(t)) : t.close(
@@ -1845,7 +1845,7 @@ const Ne = (t) => {
1845
1845
  value: e
1846
1846
  }
1847
1847
  );
1848
- }, zt = (t, e) => {
1848
+ }, Ot = (t, e) => {
1849
1849
  t.close(
1850
1850
  /** @type SweetAlertResult */
1851
1851
  {
@@ -1855,11 +1855,11 @@ const Ne = (t) => {
1855
1855
  );
1856
1856
  }, An = (t, e) => {
1857
1857
  t.rejectPromise(e);
1858
- }, vt = (t, e) => {
1858
+ }, yt = (t, e) => {
1859
1859
  const n = $.innerParams.get(t);
1860
1860
  n.showLoaderOnConfirm && le(), n.preConfirm ? (t.resetValidationMessage(), t.isAwaitingPromise = !0, Promise.resolve().then(() => me(n.preConfirm(e, n.validationMessage))).then((s) => {
1861
- U(ze()) || s === !1 ? (t.hideLoading(), ke(t)) : zt(t, typeof s > "u" ? e : s);
1862
- }).catch((s) => An(t, s))) : zt(t, e);
1861
+ U(ze()) || s === !1 ? (t.hideLoading(), ke(t)) : Ot(t, typeof s > "u" ? e : s);
1862
+ }).catch((s) => An(t, s))) : Ot(t, e);
1863
1863
  };
1864
1864
  function Me() {
1865
1865
  const t = $.innerParams.get(this);
@@ -1878,7 +1878,7 @@ const ri = (t) => {
1878
1878
  };
1879
1879
  function Tn() {
1880
1880
  const t = $.innerParams.get(this), e = $.domCache.get(this);
1881
- return e ? Ve(e.popup, t.input) : null;
1881
+ return e ? je(e.popup, t.input) : null;
1882
1882
  }
1883
1883
  function Sn(t, e, n) {
1884
1884
  const o = $.domCache.get(t);
@@ -1910,7 +1910,7 @@ function Bn() {
1910
1910
  }
1911
1911
  function Nn(t) {
1912
1912
  const e = $.domCache.get(this), n = $.innerParams.get(this);
1913
- j(e.validationMessage, t), e.validationMessage.className = c["validation-message"], n.customClass && n.customClass.validationMessage && A(e.validationMessage, n.customClass.validationMessage), R(e.validationMessage);
1913
+ V(e.validationMessage, t), e.validationMessage.className = c["validation-message"], n.customClass && n.customClass.validationMessage && A(e.validationMessage, n.customClass.validationMessage), R(e.validationMessage);
1914
1914
  const o = this.getInput();
1915
1915
  o && (o.setAttribute("aria-invalid", "true"), o.setAttribute("aria-describedby", c["validation-message"]), rn(o), A(o, c.inputerror));
1916
1916
  }
@@ -2059,20 +2059,20 @@ function qn() {
2059
2059
  var t;
2060
2060
  const e = $.domCache.get(this), n = $.innerParams.get(this);
2061
2061
  if (!n) {
2062
- Vn(this);
2062
+ jn(this);
2063
2063
  return;
2064
2064
  }
2065
- 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"), gi(this);
2065
+ e.popup && g.swalCloseEventFinishedCallback && (g.swalCloseEventFinishedCallback(), delete g.swalCloseEventFinishedCallback), typeof n.didDestroy == "function" && n.didDestroy(), (t = g.eventEmitter) === null || t === void 0 || t.emit("didDestroy"), pi(this);
2066
2066
  }
2067
- const gi = (t) => {
2068
- Vn(t), delete t.params, delete p.keydownHandler, delete p.keydownTarget, delete p.currentInstance;
2069
- }, Vn = (t) => {
2067
+ const pi = (t) => {
2068
+ jn(t), delete t.params, delete g.keydownHandler, delete g.keydownTarget, delete g.currentInstance;
2069
+ }, jn = (t) => {
2070
2070
  t.isAwaitingPromise ? (Ye($, t), t.isAwaitingPromise = !0) : (Ye(ae, t), Ye($, 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);
2071
2071
  }, Ye = (t, e) => {
2072
2072
  for (const n in t)
2073
2073
  t[n].delete(e);
2074
2074
  };
2075
- var pi = /* @__PURE__ */ Object.freeze({
2075
+ var gi = /* @__PURE__ */ Object.freeze({
2076
2076
  __proto__: null,
2077
2077
  _destroy: qn,
2078
2078
  close: Y,
@@ -2122,11 +2122,11 @@ const yi = (t) => {
2122
2122
  }
2123
2123
  o.target === e.container && Oe(t.allowOutsideClick) && n(fe.backdrop);
2124
2124
  };
2125
- }, ki = (t) => typeof t == "object" && t !== null && "jquery" in t, Ut = (t) => t instanceof Element || ki(t), xi = (t) => {
2125
+ }, ki = (t) => typeof t == "object" && t !== null && "jquery" in t, zt = (t) => t instanceof Element || ki(t), xi = (t) => {
2126
2126
  const e = {};
2127
- return typeof t[0] == "object" && !Ut(t[0]) ? Object.assign(e, t[0]) : ["title", "html", "icon"].forEach((n, o) => {
2127
+ return typeof t[0] == "object" && !zt(t[0]) ? Object.assign(e, t[0]) : ["title", "html", "icon"].forEach((n, o) => {
2128
2128
  const s = t[o];
2129
- typeof s == "string" || Ut(s) ? e[n] = s : s !== void 0 && te(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof s}`);
2129
+ typeof s == "string" || zt(s) ? e[n] = s : s !== void 0 && te(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof s}`);
2130
2130
  }), /** @type {SweetAlertOptions} */
2131
2131
  e;
2132
2132
  };
@@ -2145,27 +2145,27 @@ function Ei(t) {
2145
2145
  }
2146
2146
  return e;
2147
2147
  }
2148
- const Ai = () => p.timeout && p.timeout.getTimerLeft(), jn = () => {
2149
- if (p.timeout)
2150
- return Mo(), p.timeout.stop();
2148
+ const Ai = () => g.timeout && g.timeout.getTimerLeft(), Vn = () => {
2149
+ if (g.timeout)
2150
+ return Mo(), g.timeout.stop();
2151
2151
  }, Hn = () => {
2152
- if (p.timeout) {
2153
- const t = p.timeout.start();
2152
+ if (g.timeout) {
2153
+ const t = g.timeout.start();
2154
2154
  return pt(t), t;
2155
2155
  }
2156
2156
  }, Ti = () => {
2157
- const t = p.timeout;
2158
- return t && (t.running ? jn() : Hn());
2157
+ const t = g.timeout;
2158
+ return t && (t.running ? Vn() : Hn());
2159
2159
  }, Si = (t) => {
2160
- if (p.timeout) {
2161
- const e = p.timeout.increase(t);
2160
+ if (g.timeout) {
2161
+ const e = g.timeout.increase(t);
2162
2162
  return pt(e, !0), e;
2163
2163
  }
2164
- }, Li = () => !!(p.timeout && p.timeout.isRunning());
2165
- let qt = !1;
2164
+ }, Li = () => !!(g.timeout && g.timeout.isRunning());
2165
+ let Ut = !1;
2166
2166
  const tt = {};
2167
2167
  function $i(t = "data-swal-template") {
2168
- tt[t] = this, qt || (document.body.addEventListener("click", Ii), qt = !0);
2168
+ tt[t] = this, Ut || (document.body.addEventListener("click", Ii), Ut = !0);
2169
2169
  }
2170
2170
  const Ii = (t) => {
2171
2171
  for (let e = (
@@ -2247,18 +2247,18 @@ class Pi {
2247
2247
  this.events = {};
2248
2248
  }
2249
2249
  }
2250
- p.eventEmitter = new Pi();
2250
+ g.eventEmitter = new Pi();
2251
2251
  const Bi = (t, e) => {
2252
- p.eventEmitter && p.eventEmitter.on(t, e);
2252
+ g.eventEmitter && g.eventEmitter.on(t, e);
2253
2253
  }, Ni = (t, e) => {
2254
- p.eventEmitter && p.eventEmitter.once(t, e);
2254
+ g.eventEmitter && g.eventEmitter.once(t, e);
2255
2255
  }, Mi = (t, e) => {
2256
- if (p.eventEmitter) {
2256
+ if (g.eventEmitter) {
2257
2257
  if (!t) {
2258
- p.eventEmitter.reset();
2258
+ g.eventEmitter.reset();
2259
2259
  return;
2260
2260
  }
2261
- e ? p.eventEmitter.removeListener(t, e) : p.eventEmitter.removeAllListeners(t);
2261
+ e ? g.eventEmitter.removeListener(t, e) : g.eventEmitter.removeAllListeners(t);
2262
2262
  }
2263
2263
  };
2264
2264
  var Ri = /* @__PURE__ */ Object.freeze({
@@ -2272,20 +2272,20 @@ var Ri = /* @__PURE__ */ Object.freeze({
2272
2272
  fire: _i,
2273
2273
  getActions: ye,
2274
2274
  getCancelButton: ue,
2275
- getCloseButton: ut,
2275
+ getCloseButton: dt,
2276
2276
  getConfirmButton: K,
2277
2277
  getContainer: z,
2278
2278
  getDenyButton: ne,
2279
- getFocusableElements: ht,
2279
+ getFocusableElements: ut,
2280
2280
  getFooter: sn,
2281
- getHtmlContainer: ct,
2281
+ getHtmlContainer: lt,
2282
2282
  getIcon: de,
2283
2283
  getIconContent: So,
2284
2284
  getImage: on,
2285
2285
  getInputLabel: Lo,
2286
2286
  getLoader: he,
2287
2287
  getPopup: T,
2288
- getProgressSteps: dt,
2288
+ getProgressSteps: ct,
2289
2289
  getTimerLeft: Ai,
2290
2290
  getTimerProgressBar: Ue,
2291
2291
  getTitle: nn,
@@ -2303,7 +2303,7 @@ var Ri = /* @__PURE__ */ Object.freeze({
2303
2303
  once: Ni,
2304
2304
  resumeTimer: Hn,
2305
2305
  showLoading: le,
2306
- stopTimer: jn,
2306
+ stopTimer: Vn,
2307
2307
  toggleTimer: Ti
2308
2308
  });
2309
2309
  class Di {
@@ -2355,7 +2355,7 @@ const Fn = ["swal-title", "swal-html", "swal-footer"], Oi = (t) => {
2355
2355
  if (!e)
2356
2356
  return {};
2357
2357
  const n = e.content;
2358
- return Ki(n), Object.assign(zi(n), Ui(n), qi(n), Vi(n), ji(n), Hi(n), Fi(n, Fn));
2358
+ return Ki(n), Object.assign(zi(n), Ui(n), qi(n), ji(n), Vi(n), Hi(n), Fi(n, Fn));
2359
2359
  }, zi = (t) => {
2360
2360
  const e = {};
2361
2361
  return Array.from(t.querySelectorAll("swal-param")).forEach((o) => {
@@ -2387,7 +2387,7 @@ const Fn = ["swal-title", "swal-html", "swal-footer"], Oi = (t) => {
2387
2387
  ee(o, ["type", "color", "aria-label"]);
2388
2388
  const s = o.getAttribute("type");
2389
2389
  if (!(!s || !["confirm", "cancel", "deny"].includes(s))) {
2390
- if (e[`${s}ButtonText`] = o.innerHTML, e[`show${rt(s)}Button`] = !0, o.hasAttribute("color")) {
2390
+ if (e[`${s}ButtonText`] = o.innerHTML, e[`show${it(s)}Button`] = !0, o.hasAttribute("color")) {
2391
2391
  const i = o.getAttribute("color");
2392
2392
  i !== null && (e[`${s}ButtonColor`] = i);
2393
2393
  }
@@ -2397,10 +2397,10 @@ const Fn = ["swal-title", "swal-html", "swal-footer"], Oi = (t) => {
2397
2397
  }
2398
2398
  }
2399
2399
  }), e;
2400
- }, Vi = (t) => {
2400
+ }, ji = (t) => {
2401
2401
  const e = {}, n = t.querySelector("swal-image");
2402
2402
  return n && (ee(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;
2403
- }, ji = (t) => {
2403
+ }, Vi = (t) => {
2404
2404
  const e = {}, n = t.querySelector("swal-icon");
2405
2405
  return n && (ee(n, ["type", "color"]), n.hasAttribute("type") && (e.icon = n.getAttribute("type")), n.hasAttribute("color") && (e.iconColor = n.getAttribute("color")), e.iconHtml = n.innerHTML), e;
2406
2406
  }, Hi = (t) => {
@@ -2437,15 +2437,15 @@ const Fn = ["swal-title", "swal-html", "swal-footer"], Oi = (t) => {
2437
2437
  const o = z(), s = T();
2438
2438
  if (!o || !s)
2439
2439
  return;
2440
- typeof t.willOpen == "function" && t.willOpen(s), (e = p.eventEmitter) === null || e === void 0 || e.emit("willOpen", s);
2440
+ typeof t.willOpen == "function" && t.willOpen(s), (e = g.eventEmitter) === null || e === void 0 || e.emit("willOpen", s);
2441
2441
  const r = window.getComputedStyle(document.body).overflowY;
2442
2442
  if (Zi(o, s, t), setTimeout(() => {
2443
2443
  Wi(o, s);
2444
- }, Kn), ft() && (Yi(o, t.scrollbarPadding !== void 0 ? t.scrollbarPadding : !1, r), Is()), !qe() && !p.previousActiveElement && (p.previousActiveElement = document.activeElement), typeof t.didOpen == "function") {
2444
+ }, Kn), ht() && (Yi(o, t.scrollbarPadding !== void 0 ? t.scrollbarPadding : !1, r), Is()), !qe() && !g.previousActiveElement && (g.previousActiveElement = document.activeElement), typeof t.didOpen == "function") {
2445
2445
  const l = t.didOpen;
2446
2446
  setTimeout(() => l(s));
2447
2447
  }
2448
- (n = p.eventEmitter) === null || n === void 0 || n.emit("didOpen", s);
2448
+ (n = g.eventEmitter) === null || n === void 0 || n.emit("didOpen", s);
2449
2449
  }, De = (t) => {
2450
2450
  const e = T();
2451
2451
  if (!e || t.target !== e)
@@ -2465,7 +2465,7 @@ const Fn = ["swal-title", "swal-html", "swal-footer"], Oi = (t) => {
2465
2465
  (s = n.showClass) !== null && s !== void 0 && s.popup && A(e, n.showClass.popup), e.style.removeProperty("opacity");
2466
2466
  }, Kn)) : R(e, "grid"), A([document.documentElement, document.body], c.shown), n.heightAuto && n.backdrop && !n.toast && A([document.documentElement, document.body], c["height-auto"]);
2467
2467
  };
2468
- var Vt = {
2468
+ var qt = {
2469
2469
  /**
2470
2470
  * @param {string} string
2471
2471
  * @param {string} [validationMessage]
@@ -2480,7 +2480,7 @@ var Vt = {
2480
2480
  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")
2481
2481
  };
2482
2482
  function Xi(t) {
2483
- t.inputValidator || (t.input === "email" && (t.inputValidator = Vt.email), t.input === "url" && (t.inputValidator = Vt.url));
2483
+ t.inputValidator || (t.input === "email" && (t.inputValidator = qt.email), t.input === "url" && (t.inputValidator = qt.url));
2484
2484
  }
2485
2485
  function Ji(t) {
2486
2486
  (!t.target || typeof t.target == "string" && !document.querySelector(t.target) || typeof t.target != "string" && !t.target.appendChild) && (O('Target parameter is not valid, defaulting to "body"'), t.target = "body");
@@ -2489,7 +2489,7 @@ function Qi(t) {
2489
2489
  Xi(t), t.showLoaderOnConfirm && !t.preConfirm && O(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
2490
2490
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
2491
2491
  https://sweetalert2.github.io/#ajax-request`), Ji(t), typeof t.title == "string" && (t.title = t.title.split(`
2492
- `).join("<br />")), jo(t);
2492
+ `).join("<br />")), Vo(t);
2493
2493
  }
2494
2494
  let F;
2495
2495
  var Te = /* @__PURE__ */ new WeakMap();
@@ -2519,17 +2519,17 @@ class B {
2519
2519
  * @param {any} mixinParams
2520
2520
  */
2521
2521
  _main(e, n = {}) {
2522
- if (zn(Object.assign({}, n, e)), p.currentInstance) {
2523
- const i = ae.swalPromiseResolve.get(p.currentInstance), {
2522
+ if (zn(Object.assign({}, n, e)), g.currentInstance) {
2523
+ const i = ae.swalPromiseResolve.get(g.currentInstance), {
2524
2524
  isAwaitingPromise: r
2525
- } = p.currentInstance;
2526
- p.currentInstance._destroy(), r || i({
2525
+ } = g.currentInstance;
2526
+ g.currentInstance._destroy(), r || i({
2527
2527
  isDismissed: !0
2528
- }), ft() && vn();
2528
+ }), ht() && vn();
2529
2529
  }
2530
- p.currentInstance = F;
2530
+ g.currentInstance = F;
2531
2531
  const o = tr(e, n);
2532
- Qi(o), Object.freeze(o), p.timeout && (p.timeout.stop(), delete p.timeout), clearTimeout(p.restoreFocusTimeout);
2532
+ Qi(o), Object.freeze(o), g.timeout && (g.timeout.stop(), delete g.timeout), clearTimeout(g.restoreFocusTimeout);
2533
2533
  const s = nr(F);
2534
2534
  return wn(F, o), $.innerParams.set(F, o), er(F, s, o);
2535
2535
  }
@@ -2538,13 +2538,13 @@ class B {
2538
2538
  * @param {any} onFulfilled
2539
2539
  */
2540
2540
  then(e) {
2541
- return Pt(Te, this).then(e);
2541
+ return It(Te, this).then(e);
2542
2542
  }
2543
2543
  /**
2544
2544
  * @param {any} onFinally
2545
2545
  */
2546
2546
  finally(e) {
2547
- return Pt(Te, this).finally(e);
2547
+ return It(Te, this).finally(e);
2548
2548
  }
2549
2549
  }
2550
2550
  const er = (t, e, n) => new Promise((o, s) => {
@@ -2564,7 +2564,7 @@ const er = (t, e, n) => new Promise((o, s) => {
2564
2564
  si(t, i);
2565
2565
  }, e.closeButton.onclick = () => {
2566
2566
  i(fe.close);
2567
- }, wi(n, e, i), _s(p, n, i), Gs(t, n), Gi(n), or(p, n, i), sr(e, n), setTimeout(() => {
2567
+ }, wi(n, e, i), _s(g, n, i), Gs(t, n), Gi(n), or(g, n, i), sr(e, n), setTimeout(() => {
2568
2568
  e.container.scrollTop = 0;
2569
2569
  });
2570
2570
  }), tr = (t, e) => {
@@ -2606,7 +2606,7 @@ const er = (t, e, n) => new Promise((o, s) => {
2606
2606
  ),
2607
2607
  closeButton: (
2608
2608
  /** @type {HTMLElement} */
2609
- ut()
2609
+ dt()
2610
2610
  ),
2611
2611
  validationMessage: (
2612
2612
  /** @type {HTMLElement} */
@@ -2614,7 +2614,7 @@ const er = (t, e, n) => new Promise((o, s) => {
2614
2614
  ),
2615
2615
  progressSteps: (
2616
2616
  /** @type {HTMLElement} */
2617
- dt()
2617
+ ct()
2618
2618
  )
2619
2619
  }
2620
2620
  );
@@ -2663,7 +2663,7 @@ B.prototype.rejectPromise = xn;
2663
2663
  B.prototype.update = Un;
2664
2664
  B.prototype._destroy = qn;
2665
2665
  Object.assign(B, Ri);
2666
- Object.keys(pi).forEach((t) => {
2666
+ Object.keys(gi).forEach((t) => {
2667
2667
  B[t] = function(...e) {
2668
2668
  if (F && F[t])
2669
2669
  return F[t](...e);
@@ -2682,7 +2682,7 @@ typeof document < "u" && (function(t, e) {
2682
2682
  n.innerText = e;
2683
2683
  }
2684
2684
  })(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}}');
2685
- it.create();
2685
+ st.create();
2686
2686
  class lr {
2687
2687
  constructor() {
2688
2688
  this.isActive = !1, this.baseUrl = "", this.appCode = "", this.token = "", this.getRequestToken = null, this.currentLocale = "zh-CN", this.languages = [], this.wrappedElements = /* @__PURE__ */ new Set(), this.clickHandler = this.handleElementClick.bind(this);
@@ -2715,7 +2715,7 @@ class lr {
2715
2715
  getRequestToken: this.getRequestToken
2716
2716
  });
2717
2717
  if (n.data && n.data.result === 0) {
2718
- const o = y.get(n.data, "retVal", []);
2718
+ const o = m.get(n.data, "retVal", []);
2719
2719
  this.languages = o.map((s) => ({
2720
2720
  langCode: s.language || s.langCode || s,
2721
2721
  langName: s.langName || s.language || s
@@ -2910,7 +2910,7 @@ class lr {
2910
2910
  type="text"
2911
2911
  class="i18n-edit-input"
2912
2912
  data-lang="${l.langCode}"
2913
- value="${this.escapeHtml(y.get(o, l.langCode) || "")}"
2913
+ value="${this.escapeHtml(m.get(o, l.langCode) || "")}"
2914
2914
  placeholder="请输入${l.langName}翻译"
2915
2915
  />
2916
2916
  </div>
@@ -2975,7 +2975,7 @@ class lr {
2975
2975
  data: {
2976
2976
  appCode: this.appCode,
2977
2977
  commaSeparatedKeys: e,
2978
- commaSeparatedLangs: y.map(this.languages, "langCode").toString(),
2978
+ commaSeparatedLangs: m.map(this.languages, "langCode").toString(),
2979
2979
  searchBlur: "",
2980
2980
  page: o,
2981
2981
  pageSize: 10
@@ -2984,7 +2984,7 @@ class lr {
2984
2984
  getRequestToken: this.getRequestToken
2985
2985
  });
2986
2986
  if (s.data && s.data.result === 0)
2987
- return y.get(s.data, "retVal.datas", []);
2987
+ return m.get(s.data, "retVal.datas", []);
2988
2988
  } catch (n) {
2989
2989
  console.error("获取翻译数据失败:", n);
2990
2990
  }
@@ -2993,31 +2993,34 @@ class lr {
2993
2993
  /**
2994
2994
  * 保存翻译数据
2995
2995
  */
2996
- async saveTranslations(e, n, o) {
2997
- var a;
2998
- const s = o[0], { page: i } = s;
2999
- console.log(n);
3000
- const r = [];
3001
- y.map(n, (d, u) => {
3002
- r.push({
2996
+ getChangedTranslationData(e, n, o) {
2997
+ const s = o[0], i = (s == null ? void 0 : s.page) || "", r = [];
2998
+ return m.map(n, (l, a) => {
2999
+ l !== m.get(s, a) && r.push({
3003
3000
  appCode: this.appCode,
3004
3001
  page: i,
3005
3002
  key: e,
3006
3003
  unitCode: this.unitCode,
3007
- lang: u,
3008
- value: d,
3004
+ lang: a,
3005
+ value: l,
3009
3006
  fromAi: "F"
3010
3007
  });
3011
- });
3012
- const l = await Zt({
3013
- data: { data: r, isLocal: "F" },
3008
+ }), r;
3009
+ }
3010
+ async saveTranslations(e, n, o) {
3011
+ var r;
3012
+ const s = this.getChangedTranslationData(e, n, o);
3013
+ if (m.isEmpty(s))
3014
+ return !0;
3015
+ const i = await Zt({
3016
+ data: { data: s, isLocal: "F" },
3014
3017
  token: this.token,
3015
3018
  getRequestToken: this.getRequestToken,
3016
3019
  baseUrl: this.baseUrl
3017
3020
  });
3018
- if (l.data && l.data.result === 0)
3021
+ if (i.data && i.data.result === 0)
3019
3022
  return !0;
3020
- throw new Error(((a = l.data) == null ? void 0 : a.message) || "保存失败");
3023
+ throw new Error(((r = i.data) == null ? void 0 : r.message) || "保存失败");
3021
3024
  }
3022
3025
  /**
3023
3026
  * HTML 转义
@@ -3136,55 +3139,55 @@ function ur() {
3136
3139
  },
3137
3140
  _compress: function(a, d, u) {
3138
3141
  if (a == null) return "";
3139
- var h, f, x = {}, S = {}, L = "", I = "", _ = "", w = 2, C = 3, v = 2, k = [], g = 0, m = 0, b;
3140
- for (b = 0; b < a.length; b += 1)
3141
- if (L = a.charAt(b), Object.prototype.hasOwnProperty.call(x, L) || (x[L] = C++, S[L] = !0), I = _ + L, Object.prototype.hasOwnProperty.call(x, I))
3142
+ var h, f, x = {}, S = {}, L = "", I = "", _ = "", w = 2, C = 3, v = 2, k = [], p = 0, b = 0, y;
3143
+ for (y = 0; y < a.length; y += 1)
3144
+ if (L = a.charAt(y), Object.prototype.hasOwnProperty.call(x, L) || (x[L] = C++, S[L] = !0), I = _ + L, Object.prototype.hasOwnProperty.call(x, I))
3142
3145
  _ = I;
3143
3146
  else {
3144
3147
  if (Object.prototype.hasOwnProperty.call(S, _)) {
3145
3148
  if (_.charCodeAt(0) < 256) {
3146
3149
  for (h = 0; h < v; h++)
3147
- g = g << 1, m == d - 1 ? (m = 0, k.push(u(g)), g = 0) : m++;
3150
+ p = p << 1, b == d - 1 ? (b = 0, k.push(u(p)), p = 0) : b++;
3148
3151
  for (f = _.charCodeAt(0), h = 0; h < 8; h++)
3149
- g = g << 1 | f & 1, m == d - 1 ? (m = 0, k.push(u(g)), g = 0) : m++, f = f >> 1;
3152
+ p = p << 1 | f & 1, b == d - 1 ? (b = 0, k.push(u(p)), p = 0) : b++, f = f >> 1;
3150
3153
  } else {
3151
3154
  for (f = 1, h = 0; h < v; h++)
3152
- g = g << 1 | f, m == d - 1 ? (m = 0, k.push(u(g)), g = 0) : m++, f = 0;
3155
+ p = p << 1 | f, b == d - 1 ? (b = 0, k.push(u(p)), p = 0) : b++, f = 0;
3153
3156
  for (f = _.charCodeAt(0), h = 0; h < 16; h++)
3154
- g = g << 1 | f & 1, m == d - 1 ? (m = 0, k.push(u(g)), g = 0) : m++, f = f >> 1;
3157
+ p = p << 1 | f & 1, b == d - 1 ? (b = 0, k.push(u(p)), p = 0) : b++, f = f >> 1;
3155
3158
  }
3156
3159
  w--, w == 0 && (w = Math.pow(2, v), v++), delete S[_];
3157
3160
  } else
3158
3161
  for (f = x[_], h = 0; h < v; h++)
3159
- g = g << 1 | f & 1, m == d - 1 ? (m = 0, k.push(u(g)), g = 0) : m++, f = f >> 1;
3162
+ p = p << 1 | f & 1, b == d - 1 ? (b = 0, k.push(u(p)), p = 0) : b++, f = f >> 1;
3160
3163
  w--, w == 0 && (w = Math.pow(2, v), v++), x[I] = C++, _ = String(L);
3161
3164
  }
3162
3165
  if (_ !== "") {
3163
3166
  if (Object.prototype.hasOwnProperty.call(S, _)) {
3164
3167
  if (_.charCodeAt(0) < 256) {
3165
3168
  for (h = 0; h < v; h++)
3166
- g = g << 1, m == d - 1 ? (m = 0, k.push(u(g)), g = 0) : m++;
3169
+ p = p << 1, b == d - 1 ? (b = 0, k.push(u(p)), p = 0) : b++;
3167
3170
  for (f = _.charCodeAt(0), h = 0; h < 8; h++)
3168
- g = g << 1 | f & 1, m == d - 1 ? (m = 0, k.push(u(g)), g = 0) : m++, f = f >> 1;
3171
+ p = p << 1 | f & 1, b == d - 1 ? (b = 0, k.push(u(p)), p = 0) : b++, f = f >> 1;
3169
3172
  } else {
3170
3173
  for (f = 1, h = 0; h < v; h++)
3171
- g = g << 1 | f, m == d - 1 ? (m = 0, k.push(u(g)), g = 0) : m++, f = 0;
3174
+ p = p << 1 | f, b == d - 1 ? (b = 0, k.push(u(p)), p = 0) : b++, f = 0;
3172
3175
  for (f = _.charCodeAt(0), h = 0; h < 16; h++)
3173
- g = g << 1 | f & 1, m == d - 1 ? (m = 0, k.push(u(g)), g = 0) : m++, f = f >> 1;
3176
+ p = p << 1 | f & 1, b == d - 1 ? (b = 0, k.push(u(p)), p = 0) : b++, f = f >> 1;
3174
3177
  }
3175
3178
  w--, w == 0 && (w = Math.pow(2, v), v++), delete S[_];
3176
3179
  } else
3177
3180
  for (f = x[_], h = 0; h < v; h++)
3178
- g = g << 1 | f & 1, m == d - 1 ? (m = 0, k.push(u(g)), g = 0) : m++, f = f >> 1;
3181
+ p = p << 1 | f & 1, b == d - 1 ? (b = 0, k.push(u(p)), p = 0) : b++, f = f >> 1;
3179
3182
  w--, w == 0 && (w = Math.pow(2, v), v++);
3180
3183
  }
3181
3184
  for (f = 2, h = 0; h < v; h++)
3182
- g = g << 1 | f & 1, m == d - 1 ? (m = 0, k.push(u(g)), g = 0) : m++, f = f >> 1;
3185
+ p = p << 1 | f & 1, b == d - 1 ? (b = 0, k.push(u(p)), p = 0) : b++, f = f >> 1;
3183
3186
  for (; ; )
3184
- if (g = g << 1, m == d - 1) {
3185
- k.push(u(g));
3187
+ if (p = p << 1, b == d - 1) {
3188
+ k.push(u(p));
3186
3189
  break;
3187
- } else m++;
3190
+ } else b++;
3188
3191
  return k.join("");
3189
3192
  },
3190
3193
  decompress: function(a) {
@@ -3193,47 +3196,47 @@ function ur() {
3193
3196
  });
3194
3197
  },
3195
3198
  _decompress: function(a, d, u) {
3196
- var h = [], f = 4, x = 4, S = 3, L = "", I = [], _, w, C, v, k, g, m, b = { val: u(0), position: d, index: 1 };
3199
+ var h = [], f = 4, x = 4, S = 3, L = "", I = [], _, w, C, v, k, p, b, y = { val: u(0), position: d, index: 1 };
3197
3200
  for (_ = 0; _ < 3; _ += 1)
3198
3201
  h[_] = _;
3199
- for (C = 0, k = Math.pow(2, 2), g = 1; g != k; )
3200
- v = b.val & b.position, b.position >>= 1, b.position == 0 && (b.position = d, b.val = u(b.index++)), C |= (v > 0 ? 1 : 0) * g, g <<= 1;
3202
+ for (C = 0, k = Math.pow(2, 2), p = 1; p != k; )
3203
+ v = y.val & y.position, y.position >>= 1, y.position == 0 && (y.position = d, y.val = u(y.index++)), C |= (v > 0 ? 1 : 0) * p, p <<= 1;
3201
3204
  switch (C) {
3202
3205
  case 0:
3203
- for (C = 0, k = Math.pow(2, 8), g = 1; g != k; )
3204
- v = b.val & b.position, b.position >>= 1, b.position == 0 && (b.position = d, b.val = u(b.index++)), C |= (v > 0 ? 1 : 0) * g, g <<= 1;
3205
- m = n(C);
3206
+ for (C = 0, k = Math.pow(2, 8), p = 1; p != k; )
3207
+ v = y.val & y.position, y.position >>= 1, y.position == 0 && (y.position = d, y.val = u(y.index++)), C |= (v > 0 ? 1 : 0) * p, p <<= 1;
3208
+ b = n(C);
3206
3209
  break;
3207
3210
  case 1:
3208
- for (C = 0, k = Math.pow(2, 16), g = 1; g != k; )
3209
- v = b.val & b.position, b.position >>= 1, b.position == 0 && (b.position = d, b.val = u(b.index++)), C |= (v > 0 ? 1 : 0) * g, g <<= 1;
3210
- m = n(C);
3211
+ for (C = 0, k = Math.pow(2, 16), p = 1; p != k; )
3212
+ v = y.val & y.position, y.position >>= 1, y.position == 0 && (y.position = d, y.val = u(y.index++)), C |= (v > 0 ? 1 : 0) * p, p <<= 1;
3213
+ b = n(C);
3211
3214
  break;
3212
3215
  case 2:
3213
3216
  return "";
3214
3217
  }
3215
- for (h[3] = m, w = m, I.push(m); ; ) {
3216
- if (b.index > a)
3218
+ for (h[3] = b, w = b, I.push(b); ; ) {
3219
+ if (y.index > a)
3217
3220
  return "";
3218
- for (C = 0, k = Math.pow(2, S), g = 1; g != k; )
3219
- v = b.val & b.position, b.position >>= 1, b.position == 0 && (b.position = d, b.val = u(b.index++)), C |= (v > 0 ? 1 : 0) * g, g <<= 1;
3220
- switch (m = C) {
3221
+ for (C = 0, k = Math.pow(2, S), p = 1; p != k; )
3222
+ v = y.val & y.position, y.position >>= 1, y.position == 0 && (y.position = d, y.val = u(y.index++)), C |= (v > 0 ? 1 : 0) * p, p <<= 1;
3223
+ switch (b = C) {
3221
3224
  case 0:
3222
- for (C = 0, k = Math.pow(2, 8), g = 1; g != k; )
3223
- v = b.val & b.position, b.position >>= 1, b.position == 0 && (b.position = d, b.val = u(b.index++)), C |= (v > 0 ? 1 : 0) * g, g <<= 1;
3224
- h[x++] = n(C), m = x - 1, f--;
3225
+ for (C = 0, k = Math.pow(2, 8), p = 1; p != k; )
3226
+ v = y.val & y.position, y.position >>= 1, y.position == 0 && (y.position = d, y.val = u(y.index++)), C |= (v > 0 ? 1 : 0) * p, p <<= 1;
3227
+ h[x++] = n(C), b = x - 1, f--;
3225
3228
  break;
3226
3229
  case 1:
3227
- for (C = 0, k = Math.pow(2, 16), g = 1; g != k; )
3228
- v = b.val & b.position, b.position >>= 1, b.position == 0 && (b.position = d, b.val = u(b.index++)), C |= (v > 0 ? 1 : 0) * g, g <<= 1;
3229
- h[x++] = n(C), m = x - 1, f--;
3230
+ for (C = 0, k = Math.pow(2, 16), p = 1; p != k; )
3231
+ v = y.val & y.position, y.position >>= 1, y.position == 0 && (y.position = d, y.val = u(y.index++)), C |= (v > 0 ? 1 : 0) * p, p <<= 1;
3232
+ h[x++] = n(C), b = x - 1, f--;
3230
3233
  break;
3231
3234
  case 2:
3232
3235
  return I.join("");
3233
3236
  }
3234
- if (f == 0 && (f = Math.pow(2, S), S++), h[m])
3235
- L = h[m];
3236
- else if (m === x)
3237
+ if (f == 0 && (f = Math.pow(2, S), S++), h[b])
3238
+ L = h[b];
3239
+ else if (b === x)
3237
3240
  L = w + w.charAt(0);
3238
3241
  else
3239
3242
  return null;
@@ -3250,54 +3253,54 @@ function ur() {
3250
3253
  }
3251
3254
  var hr = ur();
3252
3255
  const Se = /* @__PURE__ */ dr(hr);
3253
- function nt(t) {
3254
- const e = [], n = (o) => {
3255
- e.push(...fr(o));
3256
+ function Vt(t) {
3257
+ const e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new WeakSet(), o = (r) => {
3258
+ fr(r).forEach((l) => e.add(l));
3259
+ }, s = (r) => {
3260
+ if (!(!r || typeof r != "object"))
3261
+ for (const l in r) {
3262
+ const a = r[l];
3263
+ typeof a == "function" && o(a.toString());
3264
+ }
3265
+ }, i = (r) => {
3266
+ if (!r || typeof r != "object" && typeof r != "function" || n.has(r)) return;
3267
+ n.add(r);
3268
+ const l = [
3269
+ r,
3270
+ r.options,
3271
+ r.__vccOpts
3272
+ ].filter(Boolean);
3273
+ for (const a of l)
3274
+ if (!(!a || typeof a != "object") && (a.template && o(a.template), typeof a.render == "function" && o(a.render.toString()), typeof a.setup == "function" && o(a.setup.toString()), s(a.methods), a.components))
3275
+ for (const d in a.components)
3276
+ i(a.components[d]);
3256
3277
  };
3257
- if (t.template && n(t.template), t.render) {
3258
- const o = t.render.toString();
3259
- n(o);
3260
- }
3261
- if (t.setup) {
3262
- const o = t.setup.toString();
3263
- n(o);
3264
- }
3265
- if (t.methods)
3266
- for (const o in t.methods) {
3267
- const s = t.methods[o].toString();
3268
- n(s);
3269
- }
3270
- if (t.components)
3271
- for (const o in t.components) {
3272
- const s = t.components[o];
3273
- e.push(...nt(s));
3274
- }
3275
- return [...new Set(e)];
3278
+ return i(t), [...e];
3276
3279
  }
3277
3280
  function fr(t) {
3278
3281
  const e = [], n = /(?:\$t|(?:this|_vm|_ctx|\$setup|ctx|globalThis)\.\$t)\s*\(/g;
3279
3282
  for (; n.exec(t) !== null; ) {
3280
3283
  const o = n.lastIndex - 1, s = Gn(t, o);
3281
3284
  if (s === -1) continue;
3282
- const i = t.slice(o + 1, s), r = gr(i);
3283
- e.push(...ot(r)), n.lastIndex = s + 1;
3285
+ const i = t.slice(o + 1, s), r = pr(i);
3286
+ e.push(...nt(r)), n.lastIndex = s + 1;
3284
3287
  }
3285
3288
  return e;
3286
3289
  }
3287
- function ot(t) {
3290
+ function nt(t) {
3288
3291
  const e = mr(t.trim()), n = br(e);
3289
3292
  if (n !== null) return [n];
3290
- const o = pr(e);
3293
+ const o = gr(e);
3291
3294
  return o ? [
3292
- ...ot(o.consequent),
3293
- ...ot(o.alternate)
3295
+ ...nt(o.consequent),
3296
+ ...nt(o.alternate)
3294
3297
  ] : [];
3295
3298
  }
3296
- function gr(t) {
3299
+ function pr(t) {
3297
3300
  const e = Wn(t, ",");
3298
3301
  return e === -1 ? t : t.slice(0, e);
3299
3302
  }
3300
- function pr(t) {
3303
+ function gr(t) {
3301
3304
  const e = Wn(t, "?");
3302
3305
  if (e === -1) return null;
3303
3306
  const n = wr(t, e + 1);
@@ -3310,8 +3313,8 @@ function Gn(t, e) {
3310
3313
  let n = 0;
3311
3314
  for (let o = e; o < t.length; o++) {
3312
3315
  const s = t[o];
3313
- if (je(s)) {
3314
- o = Ct(t, o);
3316
+ if (Ve(s)) {
3317
+ o = vt(t, o);
3315
3318
  continue;
3316
3319
  }
3317
3320
  if (s === "(" && n++, s === ")" && (n--, n === 0))
@@ -3323,8 +3326,8 @@ function Wn(t, e) {
3323
3326
  let n = 0, o = 0, s = 0;
3324
3327
  for (let i = 0; i < t.length; i++) {
3325
3328
  const r = t[i];
3326
- if (je(r)) {
3327
- i = Ct(t, i);
3329
+ if (Ve(r)) {
3330
+ i = vt(t, i);
3328
3331
  continue;
3329
3332
  }
3330
3333
  if (r === "(") n++;
@@ -3342,8 +3345,8 @@ function wr(t, e) {
3342
3345
  let n = 0, o = 0, s = 0, i = 0;
3343
3346
  for (let r = e; r < t.length; r++) {
3344
3347
  const l = t[r];
3345
- if (je(l)) {
3346
- r = Ct(t, r);
3348
+ if (Ve(l)) {
3349
+ r = vt(t, r);
3347
3350
  continue;
3348
3351
  }
3349
3352
  if (l === "(") o++;
@@ -3366,7 +3369,7 @@ function mr(t) {
3366
3369
  return e;
3367
3370
  }
3368
3371
  function br(t) {
3369
- if (!t || !je(t[0])) return null;
3372
+ if (!t || !Ve(t[0])) return null;
3370
3373
  const e = t[0];
3371
3374
  let n = "";
3372
3375
  for (let o = 1; o < t.length; o++) {
@@ -3381,7 +3384,7 @@ function br(t) {
3381
3384
  }
3382
3385
  return null;
3383
3386
  }
3384
- function Ct(t, e) {
3387
+ function vt(t, e) {
3385
3388
  const n = t[e];
3386
3389
  for (let o = e + 1; o < t.length; o++) {
3387
3390
  if (t[o] === "\\") {
@@ -3392,7 +3395,7 @@ function Ct(t, e) {
3392
3395
  }
3393
3396
  return t.length - 1;
3394
3397
  }
3395
- function je(t) {
3398
+ function Ve(t) {
3396
3399
  return t === "'" || t === '"' || t === "`";
3397
3400
  }
3398
3401
  function Yn(t, e, n) {
@@ -3521,23 +3524,23 @@ const Ht = {
3521
3524
  htmlContainer: "i18n-earth-modal-content"
3522
3525
  },
3523
3526
  preConfirm: async () => {
3524
- const k = document.querySelectorAll(".i18n-edit-input"), g = {};
3525
- k.forEach((b) => {
3526
- g[b.getAttribute("data-lang")] = b.value;
3527
+ const k = document.querySelectorAll(".i18n-edit-input"), p = {};
3528
+ k.forEach((y) => {
3529
+ p[y.getAttribute("data-lang")] = y.value;
3527
3530
  });
3528
- const m = document.getElementById("i18n-save-error");
3529
- if (m && (m.style.display = "none", m.textContent = ""), t.request && typeof t.request == "function")
3531
+ const b = document.getElementById("i18n-save-error");
3532
+ if (b && (b.style.display = "none", b.textContent = ""), t.request && typeof t.request == "function")
3530
3533
  try {
3531
- return await t.request(g), g;
3532
- } catch (b) {
3533
- return m && (m.textContent = b.message || "保存失败", m.style.display = "block"), !1;
3534
+ return await t.request(p), p;
3535
+ } catch (y) {
3536
+ return b && (b.textContent = y.message || "保存失败", b.style.display = "block"), !1;
3534
3537
  }
3535
- return g;
3538
+ return p;
3536
3539
  }
3537
3540
  });
3538
3541
  if (v && C) {
3539
- const k = Object.keys(C).map((g) => ({
3540
- [g]: C[g]
3542
+ const k = Object.keys(C).map((p) => ({
3543
+ [p]: C[p]
3541
3544
  }));
3542
3545
  e("update:modelValue", k), x(), M.fire({
3543
3546
  text: "保存成功",
@@ -3630,7 +3633,7 @@ const Ht = {
3630
3633
  ]);
3631
3634
  }
3632
3635
  };
3633
- function pe(t) {
3636
+ function ge(t) {
3634
3637
  if (!t || typeof t != "string") return t;
3635
3638
  const e = t.toLowerCase();
3636
3639
  return {
@@ -3644,14 +3647,14 @@ function pe(t) {
3644
3647
  function Zn(t = {}) {
3645
3648
  const e = Object.entries(t || {});
3646
3649
  return e.some(([, o]) => o && typeof o == "object" && !Array.isArray(o) && Object.keys(o).some((s) => s.includes("-"))) ? e.reduce((o, [s, i]) => (!i || typeof i != "object" || Array.isArray(i) || Object.entries(i).forEach(([r, l]) => {
3647
- const a = pe(r);
3650
+ const a = ge(r);
3648
3651
  o[a] = o[a] || {}, o[a][s] = l;
3649
- }), o), {}) : e.reduce((o, [s, i]) => (o[pe(s)] = i, o), {});
3652
+ }), o), {}) : e.reduce((o, [s, i]) => (o[ge(s)] = i, o), {});
3650
3653
  }
3651
3654
  function Ft(t, e) {
3652
- return t[e] || t[pe(e)] || t[String(e || "").toLowerCase()] || {};
3655
+ return t[e] || t[ge(e)] || t[String(e || "").toLowerCase()] || {};
3653
3656
  }
3654
- function ge(t, e) {
3657
+ function pe(t, e) {
3655
3658
  if (typeof t != "string" || !e || typeof e != "object" || Array.isArray(e))
3656
3659
  return t;
3657
3660
  const n = Object.entries(e);
@@ -3673,7 +3676,7 @@ function Xn(t, e) {
3673
3676
  };
3674
3677
  }
3675
3678
  function yr(t) {
3676
- const { locale: e = "zh-CN", messages: n = {} } = t, o = Zn(n), s = ie(e), i = ie(0), r = kt(), l = Qn() && r && typeof r.observable == "function" ? r.observable({
3679
+ const { locale: e = "zh-CN", messages: n = {} } = t, o = Zn(n), s = ie(e), i = ie(0), r = Ct(), l = Qn() && r && typeof r.observable == "function" ? r.observable({
3677
3680
  locale: e,
3678
3681
  messageVersion: 0
3679
3682
  }) : null, a = () => l ? l.locale : s.value, d = (f) => {
@@ -3696,14 +3699,14 @@ function yr(t) {
3696
3699
  x = L.defaultValue, S = L.values, i.value, l && l.messageVersion;
3697
3700
  const I = a();
3698
3701
  if (I === "zh-CN" && !f.startsWith("i.") && !f.startsWith("pro."))
3699
- return ge(x || f, S);
3702
+ return pe(x || f, S);
3700
3703
  const _ = Ft(o, I);
3701
3704
  let w = _[f];
3702
- return w === void 0 && f.includes(".") && (w = f.split(".").reduce((v, k) => v && typeof v == "object" ? v[k] : void 0, _)), ge(w && typeof w == "string" && w !== f ? w : x || f, S);
3705
+ return w === void 0 && f.includes(".") && (w = f.split(".").reduce((v, k) => v && typeof v == "object" ? v[k] : void 0, _)), pe(w && typeof w == "string" && w !== f ? w : x || f, S);
3703
3706
  },
3704
3707
  // 设置某个语言的所有消息
3705
3708
  setLocaleMessage(f, x) {
3706
- return o[pe(f)] = { ...x }, u(), o[pe(f)];
3709
+ return o[ge(f)] = { ...x }, u(), o[ge(f)];
3707
3710
  },
3708
3711
  // 获取某个语言的消息
3709
3712
  getLocaleMessage(f) {
@@ -3712,7 +3715,7 @@ function yr(t) {
3712
3715
  };
3713
3716
  return h.global = h, h;
3714
3717
  }
3715
- const Jn = it.create({
3718
+ const Jn = st.create({
3716
3719
  timeout: 8e3
3717
3720
  });
3718
3721
  Jn.interceptors.request.use((t) => {
@@ -3755,7 +3758,7 @@ function xr(t) {
3755
3758
  const e = kr(t);
3756
3759
  return !!(e && (e.mainAppCode && e.userCode && e.deviceType || e.appCode && e.orgCode && e.userCode && e.i18n_token));
3757
3760
  }
3758
- function st(t) {
3761
+ function ot(t) {
3759
3762
  if (!t) return "";
3760
3763
  const e = String(t);
3761
3764
  let n = 0;
@@ -3764,19 +3767,19 @@ function st(t) {
3764
3767
  return `user_${Math.abs(n)}`;
3765
3768
  }
3766
3769
  function Xe({ appCode: t, orgCode: e, userCode: n } = {}) {
3767
- return !t || !e || !n ? "" : st([t, e, n].join("|"));
3770
+ return !t || !e || !n ? "" : ot([t, e, n].join("|"));
3768
3771
  }
3769
3772
  function oe(t, ...e) {
3770
3773
  if (typeof t == "function")
3771
3774
  return t(...e);
3772
3775
  }
3773
- function kt(t) {
3776
+ function Ct(t) {
3774
3777
  return t && (t.version || t.prototype || t.config) ? t : _e && _e.version ? _e : _e;
3775
3778
  }
3776
3779
  function Qn(t) {
3777
3780
  if (t && t.config && t.config.globalProperties)
3778
3781
  return !1;
3779
- const e = kt(t), n = e && e.version;
3782
+ const e = Ct(t), n = e && e.version;
3780
3783
  return typeof n == "string" ? n.split(".")[0] === "2" : !!(e && e.prototype);
3781
3784
  }
3782
3785
  function _r(t) {
@@ -3784,7 +3787,7 @@ function _r(t) {
3784
3787
  Array.isArray(n.renderCache) && (n.renderCache.length = 0);
3785
3788
  });
3786
3789
  }
3787
- function xt(t, e) {
3790
+ function kt(t, e) {
3788
3791
  if (!t || e.has(t)) return;
3789
3792
  e.add(t), Array.isArray(t.renderCache) && (t.renderCache.length = 0);
3790
3793
  const n = t.proxy;
@@ -3796,13 +3799,13 @@ function se(t, e) {
3796
3799
  t.forEach((n) => se(n, e));
3797
3800
  return;
3798
3801
  }
3799
- t.component && xt(t.component, e), Array.isArray(t.children) && t.children.forEach((n) => se(n, e)), Array.isArray(t.dynamicChildren) && t.dynamicChildren.forEach((n) => se(n, e)), t.ssContent && se(t.ssContent, e), t.ssFallback && se(t.ssFallback, e);
3802
+ t.component && kt(t.component, e), Array.isArray(t.children) && t.children.forEach((n) => se(n, e)), Array.isArray(t.dynamicChildren) && t.dynamicChildren.forEach((n) => se(n, e)), t.ssContent && se(t.ssContent, e), t.ssFallback && se(t.ssFallback, e);
3800
3803
  }
3801
3804
  }
3802
3805
  function eo(t, e = /* @__PURE__ */ new Set()) {
3803
3806
  if (!t || e.has(t)) return;
3804
3807
  e.add(t), _r(t), [t.$, t._].filter(Boolean).forEach((o) => {
3805
- xt(o, e);
3808
+ kt(o, e);
3806
3809
  }), typeof t.$forceUpdate == "function" && t.$forceUpdate(), (t.$children || []).forEach((o) => eo(o, e));
3807
3810
  }
3808
3811
  class J {
@@ -3827,7 +3830,7 @@ class J {
3827
3830
  appCode: o,
3828
3831
  orgCode: r || "",
3829
3832
  userCode: l || ""
3830
- }, this.getRequestToken = this.getRequestToken.bind(this), this.requestAuthIdentity = null, this.tokenResolveVersion = 0, this.manualAuthScope = Xe(this.authInfo) || (i ? st(i) : ""), 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.resolveInitialLocale(h), this._isRTL = Ee(this.locale), this.persistI18nConfig(), this.name = "", this.messages = Zn(s || {}), this.translationKeys = [], this.translationKeySet = /* @__PURE__ */ new Set(), this.loginRouteName = a || "login", this.login = d, this.loginTranslationKeys = [], this.keyboard = u || "ctrl+shift+l", this.vueInstances = /* @__PURE__ */ new Set(), this.vueApps = /* @__PURE__ */ new Set(), this.editKeyboard = e.editKeyboard || "ctrl+shift+e", this.applyAuthState(this.resolveAuthState(), { silent: !0 }), this.initI18n(e), this.router && this.initRouterGuards(), _t.bind(this.keyboard, (I) => {
3833
+ }, this.getRequestToken = this.getRequestToken.bind(this), this.requestAuthIdentity = null, this.tokenResolveVersion = 0, this.manualAuthScope = Xe(this.authInfo) || (i ? ot(i) : ""), 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.resolveInitialLocale(h), this._isRTL = Ee(this.locale), this.persistI18nConfig(), this.name = "", this.messages = Zn(s || {}), this.translationKeys = [], this.translationKeySet = /* @__PURE__ */ new Set(), this.loginRouteName = a || "login", this.login = d, this.loginTranslationKeys = [], this.keyboard = u || "ctrl+shift+l", this.vueInstances = /* @__PURE__ */ new Set(), this.vueApps = /* @__PURE__ */ new Set(), this.editKeyboard = e.editKeyboard || "ctrl+shift+e", this.applyAuthState(this.resolveAuthState(), { silent: !0 }), this.initI18n(e), this.router && this.initRouterGuards(), xt.bind(this.keyboard, (I) => {
3831
3834
  if (I.preventDefault(), this.name === this.loginRouteName)
3832
3835
  return;
3833
3836
  const _ = Array.from(this.translationKeySet);
@@ -3885,7 +3888,7 @@ class J {
3885
3888
  this.configInstance && (this.configInstance.destroy(), this.configInstance = null);
3886
3889
  }
3887
3890
  });
3888
- }), _t.bind(this.editKeyboard, (I) => {
3891
+ }), xt.bind(this.editKeyboard, (I) => {
3889
3892
  I.preventDefault(), cr.toggle();
3890
3893
  }), this.setupLanguageChangeListener(), this.setupAuthListener(), this.setupMessageListener();
3891
3894
  }
@@ -3924,7 +3927,7 @@ class J {
3924
3927
  resolveAuthState() {
3925
3928
  var u, h, f;
3926
3929
  const e = this.auth || {}, n = oe(e.getToken) ?? "", o = oe(e.getScope) ?? oe(e.getUserScope) ?? "", s = oe(e.getAppCode) ?? ((u = this.authInfo) == null ? void 0 : u.appCode) ?? this.appCode, i = oe(e.getOrgCode) ?? ((h = this.authInfo) == null ? void 0 : h.orgCode) ?? "", r = oe(e.getUserCode) ?? ((f = this.authInfo) == null ? void 0 : f.userCode) ?? "", l = Xe({ appCode: s, orgCode: i, userCode: r }), a = typeof e.isAuthenticated == "function" ? !!e.isAuthenticated() : !!n || !!(this.i18nTokenRequest && l), d = a ? String(
3927
- o || st(n) || l || this.manualAuthScope || "user"
3930
+ o || ot(n) || l || this.manualAuthScope || "user"
3928
3931
  ) : "guest";
3929
3932
  return {
3930
3933
  token: n,
@@ -3953,7 +3956,7 @@ class J {
3953
3956
  }
3954
3957
  clearLanguageCacheForAuthChange(e = {}, n = {}) {
3955
3958
  E.remove("I18N_LANGUAGES"), [e.appCode, n.appCode, this.appCode].filter(Boolean).forEach((o) => {
3956
- St({
3959
+ Tt({
3957
3960
  appCode: o,
3958
3961
  cacheScope: this.activeCacheScope
3959
3962
  });
@@ -4120,7 +4123,7 @@ class J {
4120
4123
  console.error("加载异步组件时出错:", h), o();
4121
4124
  return;
4122
4125
  }
4123
- const u = nt(d);
4126
+ const u = Vt(d);
4124
4127
  this.loginTranslationKeys = u;
4125
4128
  }
4126
4129
  if (e.matched.length > 0)
@@ -4129,7 +4132,7 @@ class J {
4129
4132
  for (const u of e.matched) {
4130
4133
  let h = (a = u.components) == null ? void 0 : a.default;
4131
4134
  if (typeof h == "function" && h.toString().includes("import(") && (h = await h(), h = h.default), h) {
4132
- const f = nt(h);
4135
+ const f = Vt(h);
4133
4136
  d.push(...f);
4134
4137
  }
4135
4138
  }
@@ -4141,7 +4144,7 @@ class J {
4141
4144
  o();
4142
4145
  }), J._afterEachGuardRegistered || (J._afterEachGuardRegistered = !0, this.router.afterEach(async () => {
4143
4146
  var i, r;
4144
- await Et();
4147
+ await _t();
4145
4148
  const e = Array.from(this.translationKeySet), n = Array.from(
4146
4149
  /* @__PURE__ */ new Set([...this.translationKeys || [], ...e])
4147
4150
  );
@@ -4168,12 +4171,12 @@ class J {
4168
4171
  var h, f;
4169
4172
  const r = Xn(s, i);
4170
4173
  if (s = r.defaultValue, i = r.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."))
4171
- return ge(s || o, i);
4174
+ return pe(s || o, i);
4172
4175
  const a = (h = n.router) == null ? void 0 : h.currentRoute, d = (f = (a == null ? void 0 : a.value) ?? a) == null ? void 0 : f.name;
4173
4176
  let u;
4174
4177
  if (d) {
4175
4178
  const x = `${d}.${o}`, S = n.i18n.t(x, void 0, i);
4176
- if (S !== x && !y.isEmpty(S))
4179
+ if (S !== x && !m.isEmpty(S))
4177
4180
  u = S;
4178
4181
  else {
4179
4182
  const L = `common.${o}`, I = n.i18n.t(L, void 0, i);
@@ -4181,11 +4184,11 @@ class J {
4181
4184
  }
4182
4185
  } else
4183
4186
  u = n.i18n.t(o, void 0, i);
4184
- return u === o && typeof s == "string" && s && (u = s), u = ge(u, i), typeof o == "string" && typeof u == "string" && (n.keyValueMap[u] = o, globalThis.__I18N_KEY_VALUE_MAP__ || (globalThis.__I18N_KEY_VALUE_MAP__ = {}), globalThis.__I18N_KEY_VALUE_MAP__[u] = o), u;
4187
+ return u === o && typeof s == "string" && s && (u = s), u = pe(u, i), typeof o == "string" && typeof u == "string" && (n.keyValueMap[u] = o, globalThis.__I18N_KEY_VALUE_MAP__ || (globalThis.__I18N_KEY_VALUE_MAP__ = {}), globalThis.__I18N_KEY_VALUE_MAP__[u] = o), u;
4185
4188
  }, this.t = globalThis.$t, globalThis.$deepScan = function(o) {
4186
4189
  return o;
4187
4190
  }, globalThis.__GC_I18N_GET_REQUEST_TOKEN__ = this.getRequestToken, globalThis.$clearI18n = this.clearI18n = () => {
4188
- St({
4191
+ Tt({
4189
4192
  appCode: this.appCode,
4190
4193
  cacheScope: this.activeCacheScope
4191
4194
  });
@@ -4265,10 +4268,10 @@ class J {
4265
4268
  typeof document < "u" && (document.documentElement.dir = this._isRTL ? "rtl" : "ltr", document.documentElement.lang = this.locale);
4266
4269
  }
4267
4270
  notifyLanguageChanged(e, n) {
4268
- (this.vueApps && this.vueApps.size > 0 || this.vueInstances && this.vueInstances.size > 0) && Et(() => {
4271
+ (this.vueApps && this.vueApps.size > 0 || this.vueInstances && this.vueInstances.size > 0) && _t(() => {
4269
4272
  const o = /* @__PURE__ */ new Set();
4270
4273
  this.vueApps && this.vueApps.forEach((s) => {
4271
- s && s._instance && xt(s._instance, o);
4274
+ s && s._instance && kt(s._instance, o);
4272
4275
  }), this.vueInstances && this.vueInstances.forEach((s) => {
4273
4276
  eo(s, o);
4274
4277
  });
@@ -4307,7 +4310,7 @@ class J {
4307
4310
  e = this.normalizeLocale(e);
4308
4311
  const o = n.cacheScope || this.activeCacheScope || "guest", s = n.authVersion || this.authVersion, i = ++this.languageVersion, r = "I18N_MESSAGES_COMMON_" + e;
4309
4312
  let l = E.get(r);
4310
- if (y.isEmpty(l))
4313
+ if (m.isEmpty(l))
4311
4314
  try {
4312
4315
  const a = await Jn.get(
4313
4316
  `https://cdn.ihotel.cn/i18n_messages/${e}.json`
@@ -4335,18 +4338,18 @@ class J {
4335
4338
  if (s !== this.authVersion || i !== this.languageVersion)
4336
4339
  return !1;
4337
4340
  if (a && Array.isArray(a)) {
4338
- const d = so(a), u = y.assign(
4341
+ const d = so(a), u = m.assign(
4339
4342
  {},
4340
4343
  l,
4341
- y.get(this.messages, e),
4344
+ m.get(this.messages, e),
4342
4345
  d
4343
4346
  );
4344
4347
  this.i18n.global.setLocaleMessage(e, u);
4345
4348
  } else {
4346
- const d = y.assign(
4349
+ const d = m.assign(
4347
4350
  {},
4348
4351
  l,
4349
- y.get(this.messages, e)
4352
+ m.get(this.messages, e)
4350
4353
  );
4351
4354
  this.i18n.global.setLocaleMessage(e, d);
4352
4355
  }
@@ -4354,17 +4357,17 @@ class J {
4354
4357
  } catch (a) {
4355
4358
  if (console.error(`设置语言 ${e} 失败,使用本地消息继续运行:`, a), s !== this.authVersion || i !== this.languageVersion)
4356
4359
  return !1;
4357
- const d = y.assign(
4360
+ const d = m.assign(
4358
4361
  {},
4359
4362
  l,
4360
- y.get(this.messages, e)
4363
+ m.get(this.messages, e)
4361
4364
  );
4362
4365
  return this.i18n.global.setLocaleMessage(e, d), this.locale = e, this._isRTL = Ee(e), this.i18n.global.locale.value = e, E.set("I18N_LANGUAGE", e), this.persistI18nConfig(), this.updateDocumentDir(), this.notifyLanguageChanged(e, !1), !1;
4363
4366
  }
4364
4367
  }
4365
4368
  install(e, n = {}) {
4366
4369
  if (Qn(e)) {
4367
- const o = kt(e);
4370
+ const o = Ct(e);
4368
4371
  if (o.prototype.$t = this.t || globalThis.$t, o.prototype.$i18n = this.i18n, !J._vue2UpdateMixinRegistered && o.mixin) {
4369
4372
  J._vue2UpdateMixinRegistered = !0;
4370
4373
  const s = this;