react-ecosistema-unp 1.7.13 → 1.7.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/README.md +61 -61
  2. package/dist/cards/tarjeta/nuevo-elemento/NuevoElemento.js +1 -1
  3. package/dist/cards/tarjeta-info/TarjetaInfo.js +1 -1
  4. package/dist/data/tarjeta-datos/TarjetaDatos.js +1 -1
  5. package/dist/{index-CgSyrJ_X.js → index-D3WseyJh.js} +18 -14
  6. package/dist/{index-069JzHFQ.js → index-DDjnZyBf.js} +16 -12
  7. package/dist/lib/assets/animations/noData.json.d.ts +5866 -5866
  8. package/dist/lib/assets/animations/noInfo.json.d.ts +2981 -2981
  9. package/dist/lib/tables/tabla-registros/TablaRegistros.d.ts +2 -0
  10. package/dist/lib/tables/tabla-registros/tabla/Tabla.d.ts +3 -0
  11. package/dist/shared/app-list/AppList.js +2 -2
  12. package/dist/shared/iconos-sistema/logout-button/LogoutButton.js +1 -1
  13. package/dist/shared/menu-lateral/MenuLateral.js +9 -9
  14. package/dist/shared/notificacion-usuario/NotificacionUsuario.js +3 -3
  15. package/dist/tables/tabla-registros/TablaRegistros.js +268 -264
  16. package/dist/tables/tabla-registros/buscador/Buscador.js +1 -1
  17. package/dist/tables/tabla-registros/encabezado-tabla/EncabezadoTabla.js +9 -8
  18. package/dist/tables/tabla-registros/modal-v2/EcoModal.js +1 -1
  19. package/dist/tables/tabla-registros/tabla/Tabla.js +179 -122
  20. package/dist/ui/contenido-modal/ContenidoModal.js +1 -1
  21. package/dist/ui/contenido-modal/ContenidoModalv0.1.js +1 -1
  22. package/dist/ui/icono-tooltip/IconoTooltip.js +1 -1
  23. package/dist/ui/items-modal/ItemsModal.js +1 -1
  24. package/dist/ui/logo/Logo.js +6 -6
  25. package/dist/utils/fetch-interceptor/fetchInterceptor.js +27 -26
  26. package/dist/utils/unp-historico/UnpHistorico.js +1 -1
  27. package/package.json +113 -113
@@ -1,10 +1,10 @@
1
1
  import { jsxs as M, Fragment as Je, jsx as B } from "react/jsx-runtime";
2
- import { useState as H, useEffect as vn } from "react";
3
- import { L as Ee, i as kn, n as xn, a as Cn } from "../../isLoading-B9qN9mny.js";
4
- import { Tabla as An } from "./tabla/Tabla.js";
5
- import { EcoModal as En } from "./modal-v2/EcoModal.js";
6
- import { EncabezadoTabla as Bn } from "./encabezado-tabla/EncabezadoTabla.js";
7
- import { useNavigate as Pn } from "react-router-dom";
2
+ import { useState as H, useEffect as xn } from "react";
3
+ import { L as Ee, i as Cn, n as An, a as En } from "../../isLoading-B9qN9mny.js";
4
+ import { Tabla as Bn } from "./tabla/Tabla.js";
5
+ import { EcoModal as Pn } from "./modal-v2/EcoModal.js";
6
+ import { EncabezadoTabla as Tn } from "./encabezado-tabla/EncabezadoTabla.js";
7
+ import { useNavigate as Ln } from "react-router-dom";
8
8
  import '../../assets/TablaRegistros.css';/*!
9
9
  * sweetalert2 v11.16.1
10
10
  * Released under the MIT License.
@@ -13,32 +13,32 @@ function ut(e, t, n) {
13
13
  if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
14
14
  throw new TypeError("Private element is not present on this object");
15
15
  }
16
- function Tn(e, t) {
16
+ function $n(e, t) {
17
17
  if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
18
18
  }
19
19
  function Ge(e, t) {
20
20
  return e.get(ut(e, t));
21
21
  }
22
- function Ln(e, t, n) {
23
- Tn(e, t), t.set(e, n);
22
+ function Sn(e, t, n) {
23
+ $n(e, t), t.set(e, n);
24
24
  }
25
- function $n(e, t, n) {
25
+ function In(e, t, n) {
26
26
  return e.set(ut(e, t), n), n;
27
27
  }
28
- const Sn = 100, a = {}, In = () => {
28
+ const Mn = 100, a = {}, On = () => {
29
29
  a.previousActiveElement instanceof HTMLElement ? (a.previousActiveElement.focus(), a.previousActiveElement = null) : document.body && document.body.focus();
30
- }, Mn = (e) => new Promise((t) => {
30
+ }, Dn = (e) => new Promise((t) => {
31
31
  if (!e)
32
32
  return t();
33
33
  const n = window.scrollX, o = window.scrollY;
34
34
  a.restoreFocusTimeout = setTimeout(() => {
35
- In(), t();
36
- }, Sn), window.scrollTo(n, o);
37
- }), wt = "swal2-", On = ["container", "shown", "height-auto", "iosfix", "popup", "modal", "no-backdrop", "no-transition", "toast", "toast-shown", "show", "hide", "close", "title", "html-container", "actions", "confirm", "deny", "cancel", "default-outline", "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"], i = On.reduce(
35
+ On(), t();
36
+ }, Mn), window.scrollTo(n, o);
37
+ }), wt = "swal2-", Hn = ["container", "shown", "height-auto", "iosfix", "popup", "modal", "no-backdrop", "no-transition", "toast", "toast-shown", "show", "hide", "close", "title", "html-container", "actions", "confirm", "deny", "cancel", "default-outline", "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"], i = Hn.reduce(
38
38
  (e, t) => (e[t] = wt + t, e),
39
39
  /** @type {SwalClasses} */
40
40
  {}
41
- ), Dn = ["success", "warning", "info", "question", "error"], ce = Dn.reduce(
41
+ ), jn = ["success", "warning", "info", "question", "error"], ce = jn.reduce(
42
42
  (e, t) => (e[t] = wt + t, e),
43
43
  /** @type {SwalIcons} */
44
44
  {}
@@ -46,15 +46,15 @@ const Sn = 100, a = {}, In = () => {
46
46
  console.warn(`${ft} ${typeof e == "object" ? e.join(" ") : e}`);
47
47
  }, q = (e) => {
48
48
  console.error(`${ft} ${e}`);
49
- }, Qe = [], Hn = (e) => {
49
+ }, Qe = [], zn = (e) => {
50
50
  Qe.includes(e) || (Qe.push(e), v(e));
51
51
  }, mt = function(e) {
52
52
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
53
- Hn(`"${e}" is deprecated and will be removed in the next major release.${t ? ` Use "${t}" instead.` : ""}`);
53
+ zn(`"${e}" is deprecated and will be removed in the next major release.${t ? ` Use "${t}" instead.` : ""}`);
54
54
  }, ye = (e) => typeof e == "function" ? e() : e, Se = (e) => e && typeof e.toPromise == "function", G = (e) => Se(e) ? e.toPromise() : Promise.resolve(e), Ie = (e) => e && Promise.resolve(e) === e, k = () => document.body.querySelector(`.${i.container}`), Q = (e) => {
55
55
  const t = k();
56
56
  return t ? t.querySelector(e) : null;
57
- }, A = (e) => Q(`.${e}`), u = () => A(i.popup), _ = () => A(i.icon), jn = () => A(i["icon-content"]), ht = () => A(i.title), Me = () => A(i["html-container"]), gt = () => A(i.image), Oe = () => A(i["progress-steps"]), ve = () => A(i["validation-message"]), $ = () => (
57
+ }, A = (e) => Q(`.${e}`), u = () => A(i.popup), _ = () => A(i.icon), Fn = () => A(i["icon-content"]), ht = () => A(i.title), Me = () => A(i["html-container"]), gt = () => A(i.image), Oe = () => A(i["progress-steps"]), ve = () => A(i["validation-message"]), $ = () => (
58
58
  /** @type {HTMLButtonElement} */
59
59
  Q(`.${i.actions} .${i.confirm}`)
60
60
  ), Y = () => (
@@ -63,7 +63,7 @@ const Sn = 100, a = {}, In = () => {
63
63
  ), V = () => (
64
64
  /** @type {HTMLButtonElement} */
65
65
  Q(`.${i.actions} .${i.deny}`)
66
- ), zn = () => A(i["input-label"]), X = () => Q(`.${i.loader}`), ee = () => A(i.actions), pt = () => A(i.footer), ke = () => A(i["timer-progress-bar"]), De = () => A(i.close), Fn = `
66
+ ), qn = () => A(i["input-label"]), X = () => Q(`.${i.loader}`), ee = () => A(i.actions), pt = () => A(i.footer), ke = () => A(i["timer-progress-bar"]), De = () => A(i.close), Vn = `
67
67
  a[href],
68
68
  area[href],
69
69
  input:not([disabled]),
@@ -85,12 +85,12 @@ const Sn = 100, a = {}, In = () => {
85
85
  const t = e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'), n = Array.from(t).sort((r, l) => {
86
86
  const c = parseInt(r.getAttribute("tabindex") || "0"), w = parseInt(l.getAttribute("tabindex") || "0");
87
87
  return c > w ? 1 : c < w ? -1 : 0;
88
- }), o = e.querySelectorAll(Fn), s = Array.from(o).filter((r) => r.getAttribute("tabindex") !== "-1");
88
+ }), o = e.querySelectorAll(Vn), s = Array.from(o).filter((r) => r.getAttribute("tabindex") !== "-1");
89
89
  return [...new Set(n.concat(s))].filter((r) => x(r));
90
90
  }, je = () => S(document.body, i.shown) && !S(document.body, i["toast-shown"]) && !S(document.body, i["no-backdrop"]), xe = () => {
91
91
  const e = u();
92
92
  return e ? S(e, i.toast) : !1;
93
- }, qn = () => {
93
+ }, Nn = () => {
94
94
  const e = u();
95
95
  return e ? e.hasAttribute("data-loading") : !1;
96
96
  }, E = (e, t) => {
@@ -112,12 +112,12 @@ const Sn = 100, a = {}, In = () => {
112
112
  if (!e.classList.contains(n[o]))
113
113
  return !1;
114
114
  return !0;
115
- }, Vn = (e, t) => {
115
+ }, Rn = (e, t) => {
116
116
  Array.from(e.classList).forEach((n) => {
117
117
  !Object.values(i).includes(n) && !Object.values(ce).includes(n) && !Object.values(t.showClass || {}).includes(n) && e.classList.remove(n);
118
118
  });
119
119
  }, C = (e, t, n) => {
120
- if (Vn(e, t), !t.customClass)
120
+ if (Rn(e, t), !t.customClass)
121
121
  return;
122
122
  const o = t.customClass[
123
123
  /** @type {keyof SweetAlertCustomClass} */
@@ -190,7 +190,7 @@ const Sn = 100, a = {}, In = () => {
190
190
  }, te = function(e, t) {
191
191
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "flex";
192
192
  t ? g(e, n) : y(e);
193
- }, x = (e) => !!(e && (e.offsetWidth || e.offsetHeight || e.getClientRects().length)), Nn = () => !x($()) && !x(V()) && !x(Y()), tt = (e) => e.scrollHeight > e.clientHeight, vt = (e) => {
193
+ }, x = (e) => !!(e && (e.offsetWidth || e.offsetHeight || e.getClientRects().length)), Wn = () => !x($()) && !x(V()) && !x(Y()), tt = (e) => e.scrollHeight > e.clientHeight, vt = (e) => {
194
194
  const t = window.getComputedStyle(e), n = parseFloat(t.getPropertyValue("animation-duration") || "0"), o = parseFloat(t.getPropertyValue("transition-duration") || "0");
195
195
  return n > 0 || o > 0;
196
196
  }, Fe = function(e) {
@@ -199,7 +199,7 @@ const Sn = 100, a = {}, In = () => {
199
199
  n && x(n) && (t && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
200
200
  n.style.transition = `width ${e / 1e3}s linear`, n.style.width = "0%";
201
201
  }, 10));
202
- }, Rn = () => {
202
+ }, Un = () => {
203
203
  const e = ke();
204
204
  if (!e)
205
205
  return;
@@ -207,7 +207,7 @@ const Sn = 100, a = {}, In = () => {
207
207
  e.style.removeProperty("transition"), e.style.width = "100%";
208
208
  const n = parseInt(window.getComputedStyle(e).width), o = t / n * 100;
209
209
  e.style.width = `${o}%`;
210
- }, Wn = () => typeof window > "u" || typeof document > "u", Un = `
210
+ }, _n = () => typeof window > "u" || typeof document > "u", Yn = `
211
211
  <div aria-labelledby="${i.title}" aria-describedby="${i["html-container"]}" class="${i.popup}" tabindex="-1">
212
212
  <button type="button" class="${i.close}"></button>
213
213
  <ul class="${i["progress-steps"]}"></ul>
@@ -240,52 +240,52 @@ const Sn = 100, a = {}, In = () => {
240
240
  <div class="${i["timer-progress-bar"]}"></div>
241
241
  </div>
242
242
  </div>
243
- `.replace(/(^|\n)\s*/g, ""), _n = () => {
243
+ `.replace(/(^|\n)\s*/g, ""), Xn = () => {
244
244
  const e = k();
245
245
  return e ? (e.remove(), P([document.documentElement, document.body], [i["no-backdrop"], i["toast-shown"], i["has-column"]]), !0) : !1;
246
246
  }, j = () => {
247
247
  a.currentInstance.resetValidationMessage();
248
- }, Yn = () => {
248
+ }, Kn = () => {
249
249
  const e = u(), t = O(e, i.input), n = O(e, i.file), o = e.querySelector(`.${i.range} input`), s = e.querySelector(`.${i.range} output`), r = O(e, i.select), l = e.querySelector(`.${i.checkbox} input`), c = O(e, i.textarea);
250
250
  t.oninput = j, n.onchange = j, r.onchange = j, l.onchange = j, c.oninput = j, o.oninput = () => {
251
251
  j(), s.value = o.value;
252
252
  }, o.onchange = () => {
253
253
  j(), s.value = o.value;
254
254
  };
255
- }, Xn = (e) => typeof e == "string" ? document.querySelector(e) : e, Kn = (e) => {
255
+ }, Zn = (e) => typeof e == "string" ? document.querySelector(e) : e, Jn = (e) => {
256
256
  const t = u();
257
257
  t.setAttribute("role", e.toast ? "alert" : "dialog"), t.setAttribute("aria-live", e.toast ? "polite" : "assertive"), e.toast || t.setAttribute("aria-modal", "true");
258
- }, Zn = (e) => {
258
+ }, Gn = (e) => {
259
259
  window.getComputedStyle(e).direction === "rtl" && d(k(), i.rtl);
260
- }, Jn = (e) => {
261
- const t = _n();
262
- if (Wn()) {
260
+ }, Qn = (e) => {
261
+ const t = Xn();
262
+ if (_n()) {
263
263
  q("SweetAlert2 requires document to initialize");
264
264
  return;
265
265
  }
266
266
  const n = document.createElement("div");
267
- n.className = i.container, t && d(n, i["no-transition"]), E(n, Un), n.dataset.swal2Theme = e.theme;
268
- const o = Xn(e.target);
269
- o.appendChild(n), Kn(e), Zn(o), Yn();
267
+ n.className = i.container, t && d(n, i["no-transition"]), E(n, Yn), n.dataset.swal2Theme = e.theme;
268
+ const o = Zn(e.target);
269
+ o.appendChild(n), Jn(e), Gn(o), Kn();
270
270
  }, qe = (e, t) => {
271
- e instanceof HTMLElement ? t.appendChild(e) : typeof e == "object" ? Gn(e, t) : e && E(t, e);
272
- }, Gn = (e, t) => {
273
- e.jquery ? Qn(t, e) : E(t, e.toString());
274
- }, Qn = (e, t) => {
271
+ e instanceof HTMLElement ? t.appendChild(e) : typeof e == "object" ? eo(e, t) : e && E(t, e);
272
+ }, eo = (e, t) => {
273
+ e.jquery ? to(t, e) : E(t, e.toString());
274
+ }, to = (e, t) => {
275
275
  if (e.textContent = "", 0 in t)
276
276
  for (let n = 0; n in t; n++)
277
277
  e.appendChild(t[n].cloneNode(!0));
278
278
  else
279
279
  e.appendChild(t.cloneNode(!0));
280
- }, eo = (e, t) => {
280
+ }, no = (e, t) => {
281
281
  const n = ee(), o = X();
282
- !n || !o || (!t.showConfirmButton && !t.showDenyButton && !t.showCancelButton ? y(n) : g(n), C(n, t, "actions"), to(n, o, t), E(o, t.loaderHtml || ""), C(o, t, "loader"));
282
+ !n || !o || (!t.showConfirmButton && !t.showDenyButton && !t.showCancelButton ? y(n) : g(n), C(n, t, "actions"), oo(n, o, t), E(o, t.loaderHtml || ""), C(o, t, "loader"));
283
283
  };
284
- function to(e, t, n) {
284
+ function oo(e, t, n) {
285
285
  const o = $(), s = V(), r = Y();
286
- !o || !s || !r || (Be(o, "confirm", n), Be(s, "deny", n), Be(r, "cancel", n), no(o, s, r, n), n.reverseButtons && (n.toast ? (e.insertBefore(r, o), e.insertBefore(s, o)) : (e.insertBefore(r, t), e.insertBefore(s, t), e.insertBefore(o, t))));
286
+ !o || !s || !r || (Be(o, "confirm", n), Be(s, "deny", n), Be(r, "cancel", n), so(o, s, r, n), n.reverseButtons && (n.toast ? (e.insertBefore(r, o), e.insertBefore(s, o)) : (e.insertBefore(r, t), e.insertBefore(s, t), e.insertBefore(o, t))));
287
287
  }
288
- function no(e, t, n, o) {
288
+ function so(e, t, n, o) {
289
289
  if (!o.buttonsStyling) {
290
290
  P([e, t, n], i.styled);
291
291
  return;
@@ -299,36 +299,36 @@ function Be(e, t, n) {
299
299
  );
300
300
  te(e, n[`show${o}Button`], "inline-block"), E(e, n[`${t}ButtonText`] || ""), e.setAttribute("aria-label", n[`${t}ButtonAriaLabel`] || ""), e.className = i[t], C(e, n, `${t}Button`);
301
301
  }
302
- const oo = (e, t) => {
302
+ const io = (e, t) => {
303
303
  const n = De();
304
304
  n && (E(n, t.closeButtonHtml || ""), C(n, t, "closeButton"), te(n, t.showCloseButton), n.setAttribute("aria-label", t.closeButtonAriaLabel || ""));
305
- }, so = (e, t) => {
305
+ }, ro = (e, t) => {
306
306
  const n = k();
307
- n && (io(n, t.backdrop), ro(n, t.position), ao(n, t.grow), C(n, t, "container"));
307
+ n && (ao(n, t.backdrop), lo(n, t.position), co(n, t.grow), C(n, t, "container"));
308
308
  };
309
- function io(e, t) {
309
+ function ao(e, t) {
310
310
  typeof t == "string" ? e.style.background = t : t || d([document.documentElement, document.body], i["no-backdrop"]);
311
311
  }
312
- function ro(e, t) {
312
+ function lo(e, t) {
313
313
  t && (t in i ? d(e, i[t]) : (v('The "position" parameter is not valid, defaulting to "center"'), d(e, i.center)));
314
314
  }
315
- function ao(e, t) {
315
+ function co(e, t) {
316
316
  t && d(e, i[`grow-${t}`]);
317
317
  }
318
318
  var f = {
319
319
  innerParams: /* @__PURE__ */ new WeakMap(),
320
320
  domCache: /* @__PURE__ */ new WeakMap()
321
321
  };
322
- const lo = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], co = (e, t) => {
322
+ const uo = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], wo = (e, t) => {
323
323
  const n = u();
324
324
  if (!n)
325
325
  return;
326
326
  const o = f.innerParams.get(e), s = !o || t.input !== o.input;
327
- lo.forEach((r) => {
327
+ uo.forEach((r) => {
328
328
  const l = O(n, i[r]);
329
- l && (fo(r, t.inputAttributes), l.className = i[r], s && y(l));
330
- }), t.input && (s && uo(t), mo(t));
331
- }, uo = (e) => {
329
+ l && (ho(r, t.inputAttributes), l.className = i[r], s && y(l));
330
+ }), t.input && (s && fo(t), go(t));
331
+ }, fo = (e) => {
332
332
  if (!e.input)
333
333
  return;
334
334
  if (!m[e.input]) {
@@ -342,22 +342,22 @@ const lo = ["input", "file", "range", "select", "radio", "checkbox", "textarea"]
342
342
  g(t), e.inputAutoFocus && setTimeout(() => {
343
343
  bt(n);
344
344
  });
345
- }, wo = (e) => {
345
+ }, mo = (e) => {
346
346
  for (let t = 0; t < e.attributes.length; t++) {
347
347
  const n = e.attributes[t].name;
348
348
  ["id", "type", "value", "style"].includes(n) || e.removeAttribute(n);
349
349
  }
350
- }, fo = (e, t) => {
350
+ }, ho = (e, t) => {
351
351
  const n = u();
352
352
  if (!n)
353
353
  return;
354
354
  const o = Ce(n, e);
355
355
  if (o) {
356
- wo(o);
356
+ mo(o);
357
357
  for (const s in t)
358
358
  o.setAttribute(s, t[s]);
359
359
  }
360
- }, mo = (e) => {
360
+ }, go = (e) => {
361
361
  if (!e.input)
362
362
  return;
363
363
  const t = kt(e.input);
@@ -418,13 +418,13 @@ m.textarea = (e, t) => {
418
418
  }
419
419
  }), e;
420
420
  };
421
- const ho = (e, t) => {
421
+ const po = (e, t) => {
422
422
  const n = Me();
423
- n && (ze(n), C(n, t, "htmlContainer"), t.html ? (qe(t.html, n), g(n, "block")) : t.text ? (n.textContent = t.text, g(n, "block")) : y(n), co(e, t));
424
- }, go = (e, t) => {
423
+ n && (ze(n), C(n, t, "htmlContainer"), t.html ? (qe(t.html, n), g(n, "block")) : t.text ? (n.textContent = t.text, g(n, "block")) : y(n), wo(e, t));
424
+ }, bo = (e, t) => {
425
425
  const n = pt();
426
426
  n && (ze(n), te(n, t.footer, "block"), t.footer && qe(t.footer, n), C(n, t, "footer"));
427
- }, po = (e, t) => {
427
+ }, yo = (e, t) => {
428
428
  const n = f.innerParams.get(e), o = _();
429
429
  if (!o)
430
430
  return;
@@ -444,7 +444,7 @@ const ho = (e, t) => {
444
444
  }, nt = (e, t) => {
445
445
  for (const [n, o] of Object.entries(ce))
446
446
  t.icon !== n && P(e, o);
447
- d(e, t.icon && ce[t.icon]), vo(e, t), xt(), C(e, t, "icon");
447
+ d(e, t.icon && ce[t.icon]), xo(e, t), xt(), C(e, t, "icon");
448
448
  }, xt = () => {
449
449
  const e = u();
450
450
  if (!e)
@@ -452,12 +452,12 @@ const ho = (e, t) => {
452
452
  const t = window.getComputedStyle(e).getPropertyValue("background-color"), n = e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");
453
453
  for (let o = 0; o < n.length; o++)
454
454
  n[o].style.backgroundColor = t;
455
- }, bo = `
455
+ }, vo = `
456
456
  <div class="swal2-success-circular-line-left"></div>
457
457
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
458
458
  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
459
459
  <div class="swal2-success-circular-line-right"></div>
460
- `, yo = `
460
+ `, ko = `
461
461
  <span class="swal2-x-mark">
462
462
  <span class="swal2-x-mark-line-left"></span>
463
463
  <span class="swal2-x-mark-line-right"></span>
@@ -466,19 +466,19 @@ const ho = (e, t) => {
466
466
  if (!t.icon && !t.iconHtml)
467
467
  return;
468
468
  let n = e.innerHTML, o = "";
469
- t.iconHtml ? o = st(t.iconHtml) : t.icon === "success" ? (o = bo, n = n.replace(/ style=".*?"/g, "")) : t.icon === "error" ? o = yo : t.icon && (o = st({
469
+ t.iconHtml ? o = st(t.iconHtml) : t.icon === "success" ? (o = vo, n = n.replace(/ style=".*?"/g, "")) : t.icon === "error" ? o = ko : t.icon && (o = st({
470
470
  question: "?",
471
471
  warning: "!",
472
472
  info: "i"
473
473
  }[t.icon])), n.trim() !== o.trim() && E(e, o);
474
- }, vo = (e, t) => {
474
+ }, xo = (e, t) => {
475
475
  if (t.iconColor) {
476
476
  e.style.color = t.iconColor, e.style.borderColor = t.iconColor;
477
477
  for (const n of [".swal2-success-line-tip", ".swal2-success-line-long", ".swal2-x-mark-line-left", ".swal2-x-mark-line-right"])
478
478
  et(e, n, "background-color", t.iconColor);
479
479
  et(e, ".swal2-success-ring", "border-color", t.iconColor);
480
480
  }
481
- }, st = (e) => `<div class="${i["icon-content"]}">${e}</div>`, ko = (e, t) => {
481
+ }, st = (e) => `<div class="${i["icon-content"]}">${e}</div>`, Co = (e, t) => {
482
482
  const n = gt();
483
483
  if (n) {
484
484
  if (!t.imageUrl) {
@@ -489,9 +489,9 @@ const ho = (e, t) => {
489
489
  }
490
490
  };
491
491
  let Ne = !1, Ct = 0, At = 0, Et = 0, Bt = 0;
492
- const xo = (e) => {
492
+ const Ao = (e) => {
493
493
  e.addEventListener("mousedown", ue), document.body.addEventListener("mousemove", we), e.addEventListener("mouseup", fe), e.addEventListener("touchstart", ue), document.body.addEventListener("touchmove", we), e.addEventListener("touchend", fe);
494
- }, Co = (e) => {
494
+ }, Eo = (e) => {
495
495
  e.removeEventListener("mousedown", ue), document.body.removeEventListener("mousemove", we), e.removeEventListener("mouseup", fe), e.removeEventListener("touchstart", ue), document.body.removeEventListener("touchmove", we), e.removeEventListener("touchend", fe);
496
496
  }, ue = (e) => {
497
497
  const t = u();
@@ -525,7 +525,7 @@ const xo = (e) => {
525
525
  clientX: t,
526
526
  clientY: n
527
527
  };
528
- }, Ao = (e, t) => {
528
+ }, Bo = (e, t) => {
529
529
  const n = k(), o = u();
530
530
  if (!(!n || !o)) {
531
531
  if (t.toast) {
@@ -534,12 +534,12 @@ const xo = (e) => {
534
534
  s && o.insertBefore(s, _());
535
535
  } else
536
536
  z(o, "width", t.width);
537
- z(o, "padding", t.padding), t.color && (o.style.color = t.color), t.background && (o.style.background = t.background), y(ve()), Eo(o, t), t.draggable && !t.toast ? (d(o, i.draggable), xo(o)) : (P(o, i.draggable), Co(o));
537
+ z(o, "padding", t.padding), t.color && (o.style.color = t.color), t.background && (o.style.background = t.background), y(ve()), Po(o, t), t.draggable && !t.toast ? (d(o, i.draggable), Ao(o)) : (P(o, i.draggable), Eo(o));
538
538
  }
539
- }, Eo = (e, t) => {
539
+ }, Po = (e, t) => {
540
540
  const n = t.showClass || {};
541
541
  e.className = `${i.popup} ${x(e) ? n.popup : ""}`, t.toast ? (d([document.documentElement, document.body], i["toast-shown"]), d(e, i.toast)) : d(e, i.modal), C(e, t, "popup"), typeof t.customClass == "string" && d(e, t.customClass), t.icon && d(e, i[`icon-${t.icon}`]);
542
- }, Bo = (e, t) => {
542
+ }, To = (e, t) => {
543
543
  const n = Oe();
544
544
  if (!n)
545
545
  return;
@@ -552,32 +552,32 @@ const xo = (e) => {
552
552
  return;
553
553
  }
554
554
  g(n), n.textContent = "", s >= o.length && v("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"), o.forEach((r, l) => {
555
- const c = Po(r);
555
+ const c = Lo(r);
556
556
  if (n.appendChild(c), l === s && d(c, i["active-progress-step"]), l !== o.length - 1) {
557
- const w = To(t);
557
+ const w = $o(t);
558
558
  n.appendChild(w);
559
559
  }
560
560
  });
561
- }, Po = (e) => {
561
+ }, Lo = (e) => {
562
562
  const t = document.createElement("li");
563
563
  return d(t, i["progress-step"]), E(t, e), t;
564
- }, To = (e) => {
564
+ }, $o = (e) => {
565
565
  const t = document.createElement("li");
566
566
  return d(t, i["progress-step-line"]), e.progressStepsDistance && z(t, "width", e.progressStepsDistance), t;
567
- }, Lo = (e, t) => {
567
+ }, So = (e, t) => {
568
568
  const n = ht();
569
569
  n && (ze(n), te(n, t.title || t.titleText, "block"), t.title && qe(t.title, n), t.titleText && (n.innerText = t.titleText), C(n, t, "title"));
570
570
  }, Tt = (e, t) => {
571
- Ao(e, t), so(e, t), Bo(e, t), po(e, t), ko(e, t), Lo(e, t), oo(e, t), ho(e, t), eo(e, t), go(e, t);
571
+ Bo(e, t), ro(e, t), To(e, t), yo(e, t), Co(e, t), So(e, t), io(e, t), po(e, t), no(e, t), bo(e, t);
572
572
  const n = u();
573
573
  typeof t.didRender == "function" && n && t.didRender(n), a.eventEmitter.emit("didRender", n);
574
- }, $o = () => x(u()), Lt = () => {
574
+ }, Io = () => x(u()), Lt = () => {
575
575
  var e;
576
576
  return (e = $()) === null || e === void 0 ? void 0 : e.click();
577
- }, So = () => {
577
+ }, Mo = () => {
578
578
  var e;
579
579
  return (e = V()) === null || e === void 0 ? void 0 : e.click();
580
- }, Io = () => {
580
+ }, Oo = () => {
581
581
  var e;
582
582
  return (e = Y()) === null || e === void 0 ? void 0 : e.click();
583
583
  }, K = Object.freeze({
@@ -590,8 +590,8 @@ const xo = (e) => {
590
590
  e.keydownTarget && e.keydownHandlerAdded && (e.keydownTarget.removeEventListener("keydown", e.keydownHandler, {
591
591
  capture: e.keydownListenerCapture
592
592
  }), e.keydownHandlerAdded = !1);
593
- }, Mo = (e, t, n) => {
594
- $t(e), t.toast || (e.keydownHandler = (o) => Do(t, o, n), e.keydownTarget = t.keydownListenerCapture ? window : u(), e.keydownListenerCapture = t.keydownListenerCapture, e.keydownTarget.addEventListener("keydown", e.keydownHandler, {
593
+ }, Do = (e, t, n) => {
594
+ $t(e), t.toast || (e.keydownHandler = (o) => jo(t, o, n), e.keydownTarget = t.keydownListenerCapture ? window : u(), e.keydownListenerCapture = t.keydownListenerCapture, e.keydownTarget.addEventListener("keydown", e.keydownHandler, {
595
595
  capture: e.keydownListenerCapture
596
596
  }), e.keydownHandlerAdded = !0);
597
597
  }, Te = (e, t) => {
@@ -602,9 +602,9 @@ const xo = (e) => {
602
602
  return;
603
603
  }
604
604
  (n = u()) === null || n === void 0 || n.focus();
605
- }, St = ["ArrowRight", "ArrowDown"], Oo = ["ArrowLeft", "ArrowUp"], Do = (e, t, n) => {
606
- e && (t.isComposing || t.keyCode === 229 || (e.stopKeydownPropagation && t.stopPropagation(), t.key === "Enter" ? Ho(t, e) : t.key === "Tab" ? jo(t) : [...St, ...Oo].includes(t.key) ? zo(t.key) : t.key === "Escape" && Fo(t, e, n)));
607
- }, Ho = (e, t) => {
605
+ }, St = ["ArrowRight", "ArrowDown"], Ho = ["ArrowLeft", "ArrowUp"], jo = (e, t, n) => {
606
+ e && (t.isComposing || t.keyCode === 229 || (e.stopKeydownPropagation && t.stopPropagation(), t.key === "Enter" ? zo(t, e) : t.key === "Tab" ? Fo(t) : [...St, ...Ho].includes(t.key) ? qo(t.key) : t.key === "Escape" && Vo(t, e, n)));
607
+ }, zo = (e, t) => {
608
608
  if (!ye(t.allowEnterKey))
609
609
  return;
610
610
  const n = Ce(u(), t.input);
@@ -613,7 +613,7 @@ const xo = (e) => {
613
613
  return;
614
614
  Lt(), e.preventDefault();
615
615
  }
616
- }, jo = (e) => {
616
+ }, Fo = (e) => {
617
617
  const t = e.target, n = He();
618
618
  let o = -1;
619
619
  for (let s = 0; s < n.length; s++)
@@ -622,7 +622,7 @@ const xo = (e) => {
622
622
  break;
623
623
  }
624
624
  e.shiftKey ? Te(o, -1) : Te(o, 1), e.stopPropagation(), e.preventDefault();
625
- }, zo = (e) => {
625
+ }, qo = (e) => {
626
626
  const t = ee(), n = $(), o = V(), s = Y();
627
627
  if (!t || !n || !o || !s)
628
628
  return;
@@ -640,14 +640,14 @@ const xo = (e) => {
640
640
  }
641
641
  c instanceof HTMLButtonElement && c.focus();
642
642
  }
643
- }, Fo = (e, t, n) => {
643
+ }, Vo = (e, t, n) => {
644
644
  ye(t.allowEscapeKey) && (e.preventDefault(), n(K.esc));
645
645
  };
646
646
  var W = {
647
647
  swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
648
648
  swalPromiseReject: /* @__PURE__ */ new WeakMap()
649
649
  };
650
- const qo = () => {
650
+ const No = () => {
651
651
  const e = k();
652
652
  Array.from(document.body.children).forEach((n) => {
653
653
  n.contains(e) || (n.hasAttribute("aria-hidden") && n.setAttribute("data-previous-aria-hidden", n.getAttribute("aria-hidden") || ""), n.setAttribute("aria-hidden", "true"));
@@ -656,56 +656,56 @@ const qo = () => {
656
656
  Array.from(document.body.children).forEach((t) => {
657
657
  t.hasAttribute("data-previous-aria-hidden") ? (t.setAttribute("aria-hidden", t.getAttribute("data-previous-aria-hidden") || ""), t.removeAttribute("data-previous-aria-hidden")) : t.removeAttribute("aria-hidden");
658
658
  });
659
- }, Mt = typeof window < "u" && !!window.GestureEvent, Vo = () => {
659
+ }, Mt = typeof window < "u" && !!window.GestureEvent, Ro = () => {
660
660
  if (Mt && !S(document.body, i.iosfix)) {
661
661
  const e = document.body.scrollTop;
662
- document.body.style.top = `${e * -1}px`, d(document.body, i.iosfix), No();
662
+ document.body.style.top = `${e * -1}px`, d(document.body, i.iosfix), Wo();
663
663
  }
664
- }, No = () => {
664
+ }, Wo = () => {
665
665
  const e = k();
666
666
  if (!e)
667
667
  return;
668
668
  let t;
669
669
  e.ontouchstart = (n) => {
670
- t = Ro(n);
670
+ t = Uo(n);
671
671
  }, e.ontouchmove = (n) => {
672
672
  t && (n.preventDefault(), n.stopPropagation());
673
673
  };
674
- }, Ro = (e) => {
674
+ }, Uo = (e) => {
675
675
  const t = e.target, n = k(), o = Me();
676
- return !n || !o || Wo(e) || Uo(e) ? !1 : t === n || !tt(n) && t instanceof HTMLElement && t.tagName !== "INPUT" && // #1603
676
+ return !n || !o || _o(e) || Yo(e) ? !1 : t === n || !tt(n) && t instanceof HTMLElement && t.tagName !== "INPUT" && // #1603
677
677
  t.tagName !== "TEXTAREA" && // #2266
678
678
  !(tt(o) && // #1944
679
679
  o.contains(t));
680
- }, Wo = (e) => e.touches && e.touches.length && e.touches[0].touchType === "stylus", Uo = (e) => e.touches && e.touches.length > 1, _o = () => {
680
+ }, _o = (e) => e.touches && e.touches.length && e.touches[0].touchType === "stylus", Yo = (e) => e.touches && e.touches.length > 1, Xo = () => {
681
681
  if (S(document.body, i.iosfix)) {
682
682
  const e = parseInt(document.body.style.top, 10);
683
683
  P(document.body, i.iosfix), document.body.style.top = "", document.body.scrollTop = e * -1;
684
684
  }
685
- }, Yo = () => {
685
+ }, Ko = () => {
686
686
  const e = document.createElement("div");
687
687
  e.className = i["scrollbar-measure"], document.body.appendChild(e);
688
688
  const t = e.getBoundingClientRect().width - e.clientWidth;
689
689
  return document.body.removeChild(e), t;
690
690
  };
691
691
  let N = null;
692
- const Xo = (e) => {
693
- N === null && (document.body.scrollHeight > window.innerHeight || e === "scroll") && (N = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${N + Yo()}px`);
694
- }, Ko = () => {
692
+ const Zo = (e) => {
693
+ N === null && (document.body.scrollHeight > window.innerHeight || e === "scroll") && (N = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${N + Ko()}px`);
694
+ }, Jo = () => {
695
695
  N !== null && (document.body.style.paddingRight = `${N}px`, N = null);
696
696
  };
697
697
  function Ot(e, t, n, o) {
698
- xe() ? it(e, o) : (Mn(n).then(() => it(e, o)), $t(a)), Mt ? (t.setAttribute("style", "display:none !important"), t.removeAttribute("class"), t.innerHTML = "") : t.remove(), je() && (Ko(), _o(), It()), Zo();
698
+ xe() ? it(e, o) : (Dn(n).then(() => it(e, o)), $t(a)), Mt ? (t.setAttribute("style", "display:none !important"), t.removeAttribute("class"), t.innerHTML = "") : t.remove(), je() && (Jo(), Xo(), It()), Go();
699
699
  }
700
- function Zo() {
700
+ function Go() {
701
701
  P([document.documentElement, document.body], [i.shown, i["height-auto"], i["no-backdrop"], i["toast-shown"]]);
702
702
  }
703
703
  function D(e) {
704
- e = Go(e);
705
- const t = W.swalPromiseResolve.get(this), n = Jo(this);
704
+ e = es(e);
705
+ const t = W.swalPromiseResolve.get(this), n = Qo(this);
706
706
  this.isAwaitingPromise ? e.isDismissed || (oe(this), t(e)) : n && t(e);
707
707
  }
708
- const Jo = (e) => {
708
+ const Qo = (e) => {
709
709
  const t = u();
710
710
  if (!t)
711
711
  return !1;
@@ -714,7 +714,7 @@ const Jo = (e) => {
714
714
  return !1;
715
715
  P(t, n.showClass.popup), d(t, n.hideClass.popup);
716
716
  const o = k();
717
- return P(o, n.showClass.backdrop), d(o, n.hideClass.backdrop), Qo(e, t, n), !0;
717
+ return P(o, n.showClass.backdrop), d(o, n.hideClass.backdrop), ts(e, t, n), !0;
718
718
  };
719
719
  function Dt(e) {
720
720
  const t = W.swalPromiseReject.get(this);
@@ -722,7 +722,7 @@ function Dt(e) {
722
722
  }
723
723
  const oe = (e) => {
724
724
  e.isAwaitingPromise && (delete e.isAwaitingPromise, f.innerParams.get(e) || e._destroy());
725
- }, Go = (e) => typeof e > "u" ? {
725
+ }, es = (e) => typeof e > "u" ? {
726
726
  isConfirmed: !1,
727
727
  isDenied: !1,
728
728
  isDismissed: !0
@@ -730,11 +730,11 @@ const oe = (e) => {
730
730
  isConfirmed: !1,
731
731
  isDenied: !1,
732
732
  isDismissed: !1
733
- }, e), Qo = (e, t, n) => {
733
+ }, e), ts = (e, t, n) => {
734
734
  var o;
735
735
  const s = k(), r = vt(t);
736
- typeof n.willClose == "function" && n.willClose(t), (o = a.eventEmitter) === null || o === void 0 || o.emit("willClose", t), r ? es(e, t, s, n.returnFocus, n.didClose) : Ot(e, s, n.returnFocus, n.didClose);
737
- }, es = (e, t, n, o, s) => {
736
+ typeof n.willClose == "function" && n.willClose(t), (o = a.eventEmitter) === null || o === void 0 || o.emit("willClose", t), r ? ns(e, t, s, n.returnFocus, n.didClose) : Ot(e, s, n.returnFocus, n.didClose);
737
+ }, ns = (e, t, n, o, s) => {
738
738
  a.swalCloseEventFinishedCallback = Ot.bind(null, e, n, o, s);
739
739
  const r = function(l) {
740
740
  if (l.target === t) {
@@ -753,37 +753,37 @@ const oe = (e) => {
753
753
  if (t || new be(), t = u(), !t)
754
754
  return;
755
755
  const n = X();
756
- xe() ? y(_()) : ts(t, e), g(n), t.setAttribute("data-loading", "true"), t.setAttribute("aria-busy", "true"), t.focus();
757
- }, ts = (e, t) => {
756
+ xe() ? y(_()) : os(t, e), g(n), t.setAttribute("data-loading", "true"), t.setAttribute("aria-busy", "true"), t.focus();
757
+ }, os = (e, t) => {
758
758
  const n = ee(), o = X();
759
759
  !n || !o || (!t && x($()) && (t = $()), g(n), t && (y(t), o.setAttribute("data-button-to-replace", t.className), n.insertBefore(o, t)), d([e, n], i.loading));
760
- }, ns = (e, t) => {
761
- t.input === "select" || t.input === "radio" ? as(e, t) : ["text", "email", "number", "tel", "textarea"].some((n) => n === t.input) && (Se(t.inputValue) || Ie(t.inputValue)) && (U($()), ls(e, t));
762
- }, os = (e, t) => {
760
+ }, ss = (e, t) => {
761
+ t.input === "select" || t.input === "radio" ? cs(e, t) : ["text", "email", "number", "tel", "textarea"].some((n) => n === t.input) && (Se(t.inputValue) || Ie(t.inputValue)) && (U($()), ds(e, t));
762
+ }, is = (e, t) => {
763
763
  const n = e.getInput();
764
764
  if (!n)
765
765
  return null;
766
766
  switch (t.input) {
767
767
  case "checkbox":
768
- return ss(n);
768
+ return rs(n);
769
769
  case "radio":
770
- return is(n);
770
+ return as(n);
771
771
  case "file":
772
- return rs(n);
772
+ return ls(n);
773
773
  default:
774
774
  return t.inputAutoTrim ? n.value.trim() : n.value;
775
775
  }
776
- }, ss = (e) => e.checked ? 1 : 0, is = (e) => e.checked ? e.value : null, rs = (e) => e.files && e.files.length ? e.getAttribute("multiple") !== null ? e.files : e.files[0] : null, as = (e, t) => {
776
+ }, rs = (e) => e.checked ? 1 : 0, as = (e) => e.checked ? e.value : null, ls = (e) => e.files && e.files.length ? e.getAttribute("multiple") !== null ? e.files : e.files[0] : null, cs = (e, t) => {
777
777
  const n = u();
778
778
  if (!n)
779
779
  return;
780
780
  const o = (s) => {
781
- t.input === "select" ? cs(n, me(s), t) : t.input === "radio" && ds(n, me(s), t);
781
+ t.input === "select" ? us(n, me(s), t) : t.input === "radio" && ws(n, me(s), t);
782
782
  };
783
783
  Se(t.inputOptions) || Ie(t.inputOptions) ? (U($()), G(t.inputOptions).then((s) => {
784
784
  e.hideLoading(), o(s);
785
785
  })) : typeof t.inputOptions == "object" ? o(t.inputOptions) : q(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`);
786
- }, ls = (e, t) => {
786
+ }, ds = (e, t) => {
787
787
  const n = e.getInput();
788
788
  n && (y(n), G(t.inputValue).then((o) => {
789
789
  n.value = t.input === "number" ? `${parseFloat(o) || 0}` : `${o}`, g(n), n.focus(), e.hideLoading();
@@ -791,7 +791,7 @@ const oe = (e) => {
791
791
  q(`Error in inputValue promise: ${o}`), n.value = "", g(n), n.focus(), e.hideLoading();
792
792
  }));
793
793
  };
794
- function cs(e, t, n) {
794
+ function us(e, t, n) {
795
795
  const o = O(e, i.select);
796
796
  if (!o)
797
797
  return;
@@ -808,7 +808,7 @@ function cs(e, t, n) {
808
808
  s(o, c, l);
809
809
  }), o.focus();
810
810
  }
811
- function ds(e, t, n) {
811
+ function ws(e, t, n) {
812
812
  const o = O(e, i.radio);
813
813
  if (!o)
814
814
  return;
@@ -830,13 +830,13 @@ const me = (e) => {
830
830
  let o = e[n];
831
831
  typeof o == "object" && (o = me(o)), t.push([n, o]);
832
832
  }), t;
833
- }, Ht = (e, t) => !!t && t.toString() === e.toString(), us = (e) => {
833
+ }, Ht = (e, t) => !!t && t.toString() === e.toString(), fs = (e) => {
834
834
  const t = f.innerParams.get(e);
835
835
  e.disableButtons(), t.input ? jt(e, "confirm") : We(e, !0);
836
- }, ws = (e) => {
836
+ }, ms = (e) => {
837
837
  const t = f.innerParams.get(e);
838
838
  e.disableButtons(), t.returnInputValueOnDeny ? jt(e, "deny") : Re(e, !1);
839
- }, fs = (e, t) => {
839
+ }, hs = (e, t) => {
840
840
  e.disableButtons(), t(K.cancel);
841
841
  }, jt = (e, t) => {
842
842
  const n = f.innerParams.get(e);
@@ -844,9 +844,9 @@ const me = (e) => {
844
844
  q(`The "input" parameter is needed to be set when using returnInputValueOn${$e(t)}`);
845
845
  return;
846
846
  }
847
- const o = e.getInput(), s = os(e, n);
848
- n.inputValidator ? ms(e, s, t) : o && !o.checkValidity() ? (e.enableButtons(), e.showValidationMessage(n.validationMessage || o.validationMessage)) : t === "deny" ? Re(e, s) : We(e, s);
849
- }, ms = (e, t, n) => {
847
+ const o = e.getInput(), s = is(e, n);
848
+ n.inputValidator ? gs(e, s, t) : o && !o.checkValidity() ? (e.enableButtons(), e.showValidationMessage(n.validationMessage || o.validationMessage)) : t === "deny" ? Re(e, s) : We(e, s);
849
+ }, gs = (e, t, n) => {
850
850
  const o = f.innerParams.get(e);
851
851
  e.disableInput(), Promise.resolve().then(() => G(o.inputValidator(t, o.validationMessage))).then((r) => {
852
852
  e.enableButtons(), e.enableInput(), r ? e.showValidationMessage(r) : n === "deny" ? Re(e, t) : We(e, t);
@@ -880,11 +880,11 @@ function he() {
880
880
  if (!e)
881
881
  return;
882
882
  const t = f.domCache.get(this);
883
- y(t.loader), xe() ? e.icon && g(_()) : hs(t), P([t.popup, t.actions], i.loading), t.popup.removeAttribute("aria-busy"), t.popup.removeAttribute("data-loading"), t.confirmButton.disabled = !1, t.denyButton.disabled = !1, t.cancelButton.disabled = !1;
883
+ y(t.loader), xe() ? e.icon && g(_()) : ps(t), P([t.popup, t.actions], i.loading), t.popup.removeAttribute("aria-busy"), t.popup.removeAttribute("data-loading"), t.confirmButton.disabled = !1, t.denyButton.disabled = !1, t.cancelButton.disabled = !1;
884
884
  }
885
- const hs = (e) => {
885
+ const ps = (e) => {
886
886
  const t = e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));
887
- t.length ? g(t[0], "inline-block") : Nn() && y(e.actions);
887
+ t.length ? g(t[0], "inline-block") : Wn() && y(e.actions);
888
888
  };
889
889
  function Ft() {
890
890
  const e = f.innerParams.get(this), t = f.domCache.get(this);
@@ -1022,19 +1022,19 @@ const R = {
1022
1022
  didClose: void 0,
1023
1023
  didDestroy: void 0,
1024
1024
  scrollbarPadding: !0
1025
- }, gs = ["allowEscapeKey", "allowOutsideClick", "background", "buttonsStyling", "cancelButtonAriaLabel", "cancelButtonColor", "cancelButtonText", "closeButtonAriaLabel", "closeButtonHtml", "color", "confirmButtonAriaLabel", "confirmButtonColor", "confirmButtonText", "currentProgressStep", "customClass", "denyButtonAriaLabel", "denyButtonColor", "denyButtonText", "didClose", "didDestroy", "draggable", "footer", "hideClass", "html", "icon", "iconColor", "iconHtml", "imageAlt", "imageHeight", "imageUrl", "imageWidth", "preConfirm", "preDeny", "progressSteps", "returnFocus", "reverseButtons", "showCancelButton", "showCloseButton", "showConfirmButton", "showDenyButton", "text", "title", "titleText", "theme", "willClose"], ps = {
1025
+ }, bs = ["allowEscapeKey", "allowOutsideClick", "background", "buttonsStyling", "cancelButtonAriaLabel", "cancelButtonColor", "cancelButtonText", "closeButtonAriaLabel", "closeButtonHtml", "color", "confirmButtonAriaLabel", "confirmButtonColor", "confirmButtonText", "currentProgressStep", "customClass", "denyButtonAriaLabel", "denyButtonColor", "denyButtonText", "didClose", "didDestroy", "draggable", "footer", "hideClass", "html", "icon", "iconColor", "iconHtml", "imageAlt", "imageHeight", "imageUrl", "imageWidth", "preConfirm", "preDeny", "progressSteps", "returnFocus", "reverseButtons", "showCancelButton", "showCloseButton", "showConfirmButton", "showDenyButton", "text", "title", "titleText", "theme", "willClose"], ys = {
1026
1026
  allowEnterKey: void 0
1027
- }, bs = ["allowOutsideClick", "allowEnterKey", "backdrop", "draggable", "focusConfirm", "focusDeny", "focusCancel", "returnFocus", "heightAuto", "keydownListenerCapture"], Xt = (e) => Object.prototype.hasOwnProperty.call(R, e), Kt = (e) => gs.indexOf(e) !== -1, Zt = (e) => ps[e], ys = (e) => {
1027
+ }, vs = ["allowOutsideClick", "allowEnterKey", "backdrop", "draggable", "focusConfirm", "focusDeny", "focusCancel", "returnFocus", "heightAuto", "keydownListenerCapture"], Xt = (e) => Object.prototype.hasOwnProperty.call(R, e), Kt = (e) => bs.indexOf(e) !== -1, Zt = (e) => ys[e], ks = (e) => {
1028
1028
  Xt(e) || v(`Unknown parameter "${e}"`);
1029
- }, vs = (e) => {
1030
- bs.includes(e) && v(`The parameter "${e}" is incompatible with toasts`);
1031
- }, ks = (e) => {
1029
+ }, xs = (e) => {
1030
+ vs.includes(e) && v(`The parameter "${e}" is incompatible with toasts`);
1031
+ }, Cs = (e) => {
1032
1032
  const t = Zt(e);
1033
1033
  t && mt(e, t);
1034
1034
  }, Jt = (e) => {
1035
1035
  e.backdrop === !1 && e.allowOutsideClick && v('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'), e.theme && !["light", "dark", "auto"].includes(e.theme) && v(`Invalid theme "${e.theme}". Expected "light", "dark", or "auto"`);
1036
1036
  for (const t in e)
1037
- ys(t), e.toast && vs(t), ks(t);
1037
+ ks(t), e.toast && xs(t), Cs(t);
1038
1038
  };
1039
1039
  function Gt(e) {
1040
1040
  const t = k(), n = u(), o = f.innerParams.get(this);
@@ -1042,7 +1042,7 @@ function Gt(e) {
1042
1042
  v("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");
1043
1043
  return;
1044
1044
  }
1045
- const s = xs(e), r = Object.assign({}, o, s);
1045
+ const s = As(e), r = Object.assign({}, o, s);
1046
1046
  Jt(r), t.dataset.swal2Theme = r.theme, Tt(this, r), f.innerParams.set(this, r), Object.defineProperties(this, {
1047
1047
  params: {
1048
1048
  value: Object.assign({}, this.params, e),
@@ -1051,7 +1051,7 @@ function Gt(e) {
1051
1051
  }
1052
1052
  });
1053
1053
  }
1054
- const xs = (e) => {
1054
+ const As = (e) => {
1055
1055
  const t = {};
1056
1056
  return Object.keys(e).forEach((n) => {
1057
1057
  Kt(n) ? t[n] = e[n] : v(`Invalid parameter to update: ${n}`);
@@ -1063,9 +1063,9 @@ function Qt() {
1063
1063
  en(this);
1064
1064
  return;
1065
1065
  }
1066
- e.popup && a.swalCloseEventFinishedCallback && (a.swalCloseEventFinishedCallback(), delete a.swalCloseEventFinishedCallback), typeof t.didDestroy == "function" && t.didDestroy(), a.eventEmitter.emit("didDestroy"), Cs(this);
1066
+ e.popup && a.swalCloseEventFinishedCallback && (a.swalCloseEventFinishedCallback(), delete a.swalCloseEventFinishedCallback), typeof t.didDestroy == "function" && t.didDestroy(), a.eventEmitter.emit("didDestroy"), Es(this);
1067
1067
  }
1068
- const Cs = (e) => {
1068
+ const Es = (e) => {
1069
1069
  en(e), delete e.params, delete a.keydownHandler, delete a.keydownTarget, delete a.currentInstance;
1070
1070
  }, en = (e) => {
1071
1071
  e.isAwaitingPromise ? (Pe(f, e), e.isAwaitingPromise = !0) : (Pe(W, e), Pe(f, e), delete e.isAwaitingPromise, delete e.disableButtons, delete e.enableButtons, delete e.getInput, delete e.disableInput, delete e.enableInput, delete e.hideLoading, delete e.disableLoading, delete e.showValidationMessage, delete e.resetValidationMessage, delete e.close, delete e.closePopup, delete e.closeModal, delete e.closeToast, delete e.rejectPromise, delete e.update, delete e._destroy);
@@ -1073,7 +1073,7 @@ const Cs = (e) => {
1073
1073
  for (const n in e)
1074
1074
  e[n].delete(t);
1075
1075
  };
1076
- var As = /* @__PURE__ */ Object.freeze({
1076
+ var Bs = /* @__PURE__ */ Object.freeze({
1077
1077
  __proto__: null,
1078
1078
  _destroy: Qt,
1079
1079
  close: D,
@@ -1093,29 +1093,29 @@ var As = /* @__PURE__ */ Object.freeze({
1093
1093
  showValidationMessage: _t,
1094
1094
  update: Gt
1095
1095
  });
1096
- const Es = (e, t, n) => {
1097
- e.toast ? Bs(e, t, n) : (Ts(t), Ls(t), $s(e, t, n));
1098
- }, Bs = (e, t, n) => {
1096
+ const Ps = (e, t, n) => {
1097
+ e.toast ? Ts(e, t, n) : ($s(t), Ss(t), Is(e, t, n));
1098
+ }, Ts = (e, t, n) => {
1099
1099
  t.popup.onclick = () => {
1100
- e && (Ps(e) || e.timer || e.input) || n(K.close);
1100
+ e && (Ls(e) || e.timer || e.input) || n(K.close);
1101
1101
  };
1102
- }, Ps = (e) => !!(e.showConfirmButton || e.showDenyButton || e.showCancelButton || e.showCloseButton);
1102
+ }, Ls = (e) => !!(e.showConfirmButton || e.showDenyButton || e.showCancelButton || e.showCloseButton);
1103
1103
  let ge = !1;
1104
- const Ts = (e) => {
1104
+ const $s = (e) => {
1105
1105
  e.popup.onmousedown = () => {
1106
1106
  e.container.onmouseup = function(t) {
1107
1107
  e.container.onmouseup = () => {
1108
1108
  }, t.target === e.container && (ge = !0);
1109
1109
  };
1110
1110
  };
1111
- }, Ls = (e) => {
1111
+ }, Ss = (e) => {
1112
1112
  e.container.onmousedown = (t) => {
1113
1113
  t.target === e.container && t.preventDefault(), e.popup.onmouseup = function(n) {
1114
1114
  e.popup.onmouseup = () => {
1115
1115
  }, (n.target === e.popup || n.target instanceof HTMLElement && e.popup.contains(n.target)) && (ge = !0);
1116
1116
  };
1117
1117
  };
1118
- }, $s = (e, t, n) => {
1118
+ }, Is = (e, t, n) => {
1119
1119
  t.container.onclick = (o) => {
1120
1120
  if (ge) {
1121
1121
  ge = !1;
@@ -1123,19 +1123,19 @@ const Ts = (e) => {
1123
1123
  }
1124
1124
  o.target === t.container && ye(e.allowOutsideClick) && n(K.backdrop);
1125
1125
  };
1126
- }, Ss = (e) => typeof e == "object" && e.jquery, at = (e) => e instanceof Element || Ss(e), Is = (e) => {
1126
+ }, Ms = (e) => typeof e == "object" && e.jquery, at = (e) => e instanceof Element || Ms(e), Os = (e) => {
1127
1127
  const t = {};
1128
1128
  return typeof e[0] == "object" && !at(e[0]) ? Object.assign(t, e[0]) : ["title", "html", "icon"].forEach((n, o) => {
1129
1129
  const s = e[o];
1130
1130
  typeof s == "string" || at(s) ? t[n] = s : s !== void 0 && q(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof s}`);
1131
1131
  }), t;
1132
1132
  };
1133
- function Ms() {
1133
+ function Ds() {
1134
1134
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
1135
1135
  t[n] = arguments[n];
1136
1136
  return new this(...t);
1137
1137
  }
1138
- function Os(e) {
1138
+ function Hs(e) {
1139
1139
  class t extends this {
1140
1140
  _main(o, s) {
1141
1141
  return super._main(o, Object.assign({}, e, s));
@@ -1143,30 +1143,30 @@ function Os(e) {
1143
1143
  }
1144
1144
  return t;
1145
1145
  }
1146
- const Ds = () => a.timeout && a.timeout.getTimerLeft(), tn = () => {
1146
+ const js = () => a.timeout && a.timeout.getTimerLeft(), tn = () => {
1147
1147
  if (a.timeout)
1148
- return Rn(), a.timeout.stop();
1148
+ return Un(), a.timeout.stop();
1149
1149
  }, nn = () => {
1150
1150
  if (a.timeout) {
1151
1151
  const e = a.timeout.start();
1152
1152
  return Fe(e), e;
1153
1153
  }
1154
- }, Hs = () => {
1154
+ }, zs = () => {
1155
1155
  const e = a.timeout;
1156
1156
  return e && (e.running ? tn() : nn());
1157
- }, js = (e) => {
1157
+ }, Fs = (e) => {
1158
1158
  if (a.timeout) {
1159
1159
  const t = a.timeout.increase(e);
1160
1160
  return Fe(t, !0), t;
1161
1161
  }
1162
- }, zs = () => !!(a.timeout && a.timeout.isRunning());
1162
+ }, qs = () => !!(a.timeout && a.timeout.isRunning());
1163
1163
  let lt = !1;
1164
1164
  const Le = {};
1165
- function Fs() {
1165
+ function Vs() {
1166
1166
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "data-swal-template";
1167
- Le[e] = this, lt || (document.body.addEventListener("click", qs), lt = !0);
1167
+ Le[e] = this, lt || (document.body.addEventListener("click", Ns), lt = !0);
1168
1168
  }
1169
- const qs = (e) => {
1169
+ const Ns = (e) => {
1170
1170
  for (let t = e.target; t && t !== document; t = t.parentNode)
1171
1171
  for (const n in Le) {
1172
1172
  const o = t.getAttribute(n);
@@ -1178,7 +1178,7 @@ const qs = (e) => {
1178
1178
  }
1179
1179
  }
1180
1180
  };
1181
- class Vs {
1181
+ class Rs {
1182
1182
  constructor() {
1183
1183
  this.events = {};
1184
1184
  }
@@ -1249,27 +1249,27 @@ class Vs {
1249
1249
  this.events = {};
1250
1250
  }
1251
1251
  }
1252
- a.eventEmitter = new Vs();
1253
- const Ns = (e, t) => {
1252
+ a.eventEmitter = new Rs();
1253
+ const Ws = (e, t) => {
1254
1254
  a.eventEmitter.on(e, t);
1255
- }, Rs = (e, t) => {
1255
+ }, Us = (e, t) => {
1256
1256
  a.eventEmitter.once(e, t);
1257
- }, Ws = (e, t) => {
1257
+ }, _s = (e, t) => {
1258
1258
  if (!e) {
1259
1259
  a.eventEmitter.reset();
1260
1260
  return;
1261
1261
  }
1262
1262
  t ? a.eventEmitter.removeListener(e, t) : a.eventEmitter.removeAllListeners(e);
1263
1263
  };
1264
- var Us = /* @__PURE__ */ Object.freeze({
1264
+ var Ys = /* @__PURE__ */ Object.freeze({
1265
1265
  __proto__: null,
1266
- argsToParams: Is,
1267
- bindClickHandler: Fs,
1268
- clickCancel: Io,
1266
+ argsToParams: Os,
1267
+ bindClickHandler: Vs,
1268
+ clickCancel: Oo,
1269
1269
  clickConfirm: Lt,
1270
- clickDeny: So,
1270
+ clickDeny: Mo,
1271
1271
  enableLoading: U,
1272
- fire: Ms,
1272
+ fire: Ds,
1273
1273
  getActions: ee,
1274
1274
  getCancelButton: Y,
1275
1275
  getCloseButton: De,
@@ -1280,33 +1280,33 @@ var Us = /* @__PURE__ */ Object.freeze({
1280
1280
  getFooter: pt,
1281
1281
  getHtmlContainer: Me,
1282
1282
  getIcon: _,
1283
- getIconContent: jn,
1283
+ getIconContent: Fn,
1284
1284
  getImage: gt,
1285
- getInputLabel: zn,
1285
+ getInputLabel: qn,
1286
1286
  getLoader: X,
1287
1287
  getPopup: u,
1288
1288
  getProgressSteps: Oe,
1289
- getTimerLeft: Ds,
1289
+ getTimerLeft: js,
1290
1290
  getTimerProgressBar: ke,
1291
1291
  getTitle: ht,
1292
1292
  getValidationMessage: ve,
1293
- increaseTimer: js,
1293
+ increaseTimer: Fs,
1294
1294
  isDeprecatedParameter: Zt,
1295
- isLoading: qn,
1296
- isTimerRunning: zs,
1295
+ isLoading: Nn,
1296
+ isTimerRunning: qs,
1297
1297
  isUpdatableParameter: Kt,
1298
1298
  isValidParameter: Xt,
1299
- isVisible: $o,
1300
- mixin: Os,
1301
- off: Ws,
1302
- on: Ns,
1303
- once: Rs,
1299
+ isVisible: Io,
1300
+ mixin: Hs,
1301
+ off: _s,
1302
+ on: Ws,
1303
+ once: Us,
1304
1304
  resumeTimer: nn,
1305
1305
  showLoading: U,
1306
1306
  stopTimer: tn,
1307
- toggleTimer: Hs
1307
+ toggleTimer: zs
1308
1308
  });
1309
- class _s {
1309
+ class Xs {
1310
1310
  /**
1311
1311
  * @param {Function} callback
1312
1312
  * @param {number} delay
@@ -1347,7 +1347,7 @@ class _s {
1347
1347
  return this.running;
1348
1348
  }
1349
1349
  }
1350
- const on = ["swal-title", "swal-html", "swal-footer"], Ys = (e) => {
1350
+ const on = ["swal-title", "swal-html", "swal-footer"], Ks = (e) => {
1351
1351
  const t = typeof e.template == "string" ? (
1352
1352
  /** @type {HTMLTemplateElement} */
1353
1353
  document.querySelector(e.template)
@@ -1355,8 +1355,8 @@ const on = ["swal-title", "swal-html", "swal-footer"], Ys = (e) => {
1355
1355
  if (!t)
1356
1356
  return {};
1357
1357
  const n = t.content;
1358
- return ti(n), Object.assign(Xs(n), Ks(n), Zs(n), Js(n), Gs(n), Qs(n), ei(n, on));
1359
- }, Xs = (e) => {
1358
+ return oi(n), Object.assign(Zs(n), Js(n), Gs(n), Qs(n), ei(n), ti(n), ni(n, on));
1359
+ }, Zs = (e) => {
1360
1360
  const t = {};
1361
1361
  return Array.from(e.querySelectorAll("swal-param")).forEach((o) => {
1362
1362
  F(o, ["name", "value"]);
@@ -1366,7 +1366,7 @@ const on = ["swal-title", "swal-html", "swal-footer"], Ys = (e) => {
1366
1366
  ), r = o.getAttribute("value");
1367
1367
  !s || !r || (typeof R[s] == "boolean" ? t[s] = r !== "false" : typeof R[s] == "object" ? t[s] = JSON.parse(r) : t[s] = r);
1368
1368
  }), t;
1369
- }, Ks = (e) => {
1369
+ }, Js = (e) => {
1370
1370
  const t = {};
1371
1371
  return Array.from(e.querySelectorAll("swal-function-param")).forEach((o) => {
1372
1372
  const s = (
@@ -1375,20 +1375,20 @@ const on = ["swal-title", "swal-html", "swal-footer"], Ys = (e) => {
1375
1375
  ), r = o.getAttribute("value");
1376
1376
  !s || !r || (t[s] = new Function(`return ${r}`)());
1377
1377
  }), t;
1378
- }, Zs = (e) => {
1378
+ }, Gs = (e) => {
1379
1379
  const t = {};
1380
1380
  return Array.from(e.querySelectorAll("swal-button")).forEach((o) => {
1381
1381
  F(o, ["type", "color", "aria-label"]);
1382
1382
  const s = o.getAttribute("type");
1383
1383
  !s || !["confirm", "cancel", "deny"].includes(s) || (t[`${s}ButtonText`] = o.innerHTML, t[`show${$e(s)}Button`] = !0, o.hasAttribute("color") && (t[`${s}ButtonColor`] = o.getAttribute("color")), o.hasAttribute("aria-label") && (t[`${s}ButtonAriaLabel`] = o.getAttribute("aria-label")));
1384
1384
  }), t;
1385
- }, Js = (e) => {
1385
+ }, Qs = (e) => {
1386
1386
  const t = {}, n = e.querySelector("swal-image");
1387
1387
  return n && (F(n, ["src", "width", "height", "alt"]), n.hasAttribute("src") && (t.imageUrl = n.getAttribute("src") || void 0), n.hasAttribute("width") && (t.imageWidth = n.getAttribute("width") || void 0), n.hasAttribute("height") && (t.imageHeight = n.getAttribute("height") || void 0), n.hasAttribute("alt") && (t.imageAlt = n.getAttribute("alt") || void 0)), t;
1388
- }, Gs = (e) => {
1388
+ }, ei = (e) => {
1389
1389
  const t = {}, n = e.querySelector("swal-icon");
1390
1390
  return n && (F(n, ["type", "color"]), n.hasAttribute("type") && (t.icon = n.getAttribute("type")), n.hasAttribute("color") && (t.iconColor = n.getAttribute("color")), t.iconHtml = n.innerHTML), t;
1391
- }, Qs = (e) => {
1391
+ }, ti = (e) => {
1392
1392
  const t = {}, n = e.querySelector("swal-input");
1393
1393
  n && (F(n, ["type", "label", "placeholder", "value"]), t.input = n.getAttribute("type") || "text", n.hasAttribute("label") && (t.inputLabel = n.getAttribute("label")), n.hasAttribute("placeholder") && (t.inputPlaceholder = n.getAttribute("placeholder")), n.hasAttribute("value") && (t.inputValue = n.getAttribute("value")));
1394
1394
  const o = Array.from(e.querySelectorAll("swal-input-option"));
@@ -1400,14 +1400,14 @@ const on = ["swal-title", "swal-html", "swal-footer"], Ys = (e) => {
1400
1400
  const l = s.innerHTML;
1401
1401
  t.inputOptions[r] = l;
1402
1402
  })), t;
1403
- }, ei = (e, t) => {
1403
+ }, ni = (e, t) => {
1404
1404
  const n = {};
1405
1405
  for (const o in t) {
1406
1406
  const s = t[o], r = e.querySelector(s);
1407
1407
  r && (F(r, []), n[s.replace(/^swal-/, "")] = r.innerHTML.trim());
1408
1408
  }
1409
1409
  return n;
1410
- }, ti = (e) => {
1410
+ }, oi = (e) => {
1411
1411
  const t = on.concat(["swal-param", "swal-function-param", "swal-button", "swal-image", "swal-icon", "swal-input", "swal-input-option"]);
1412
1412
  Array.from(e.children).forEach((n) => {
1413
1413
  const o = n.tagName.toLowerCase();
@@ -1417,26 +1417,26 @@ const on = ["swal-title", "swal-html", "swal-footer"], Ys = (e) => {
1417
1417
  Array.from(e.attributes).forEach((n) => {
1418
1418
  t.indexOf(n.name) === -1 && v([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`, `${t.length ? `Allowed attributes are: ${t.join(", ")}` : "To set the value, use HTML within the element."}`]);
1419
1419
  });
1420
- }, sn = 10, ni = (e) => {
1420
+ }, sn = 10, si = (e) => {
1421
1421
  const t = k(), n = u();
1422
1422
  typeof e.willOpen == "function" && e.willOpen(n), a.eventEmitter.emit("willOpen", n);
1423
1423
  const s = window.getComputedStyle(document.body).overflowY;
1424
- ii(t, n, e), setTimeout(() => {
1425
- oi(t, n);
1426
- }, sn), je() && (si(t, e.scrollbarPadding, s), qo()), !xe() && !a.previousActiveElement && (a.previousActiveElement = document.activeElement), typeof e.didOpen == "function" && setTimeout(() => e.didOpen(n)), a.eventEmitter.emit("didOpen", n), P(t, i["no-transition"]);
1424
+ ai(t, n, e), setTimeout(() => {
1425
+ ii(t, n);
1426
+ }, sn), je() && (ri(t, e.scrollbarPadding, s), No()), !xe() && !a.previousActiveElement && (a.previousActiveElement = document.activeElement), typeof e.didOpen == "function" && setTimeout(() => e.didOpen(n)), a.eventEmitter.emit("didOpen", n), P(t, i["no-transition"]);
1427
1427
  }, pe = (e) => {
1428
1428
  const t = u();
1429
1429
  if (e.target !== t)
1430
1430
  return;
1431
1431
  const n = k();
1432
1432
  t.removeEventListener("animationend", pe), t.removeEventListener("transitionend", pe), n.style.overflowY = "auto";
1433
- }, oi = (e, t) => {
1433
+ }, ii = (e, t) => {
1434
1434
  vt(t) ? (e.style.overflowY = "hidden", t.addEventListener("animationend", pe), t.addEventListener("transitionend", pe)) : e.style.overflowY = "auto";
1435
- }, si = (e, t, n) => {
1436
- Vo(), t && n !== "hidden" && Xo(n), setTimeout(() => {
1435
+ }, ri = (e, t, n) => {
1436
+ Ro(), t && n !== "hidden" && Zo(n), setTimeout(() => {
1437
1437
  e.scrollTop = 0;
1438
1438
  });
1439
- }, ii = (e, t, n) => {
1439
+ }, ai = (e, t, n) => {
1440
1440
  d(e, n.showClass.backdrop), n.animation ? (t.style.setProperty("opacity", "0", "important"), g(t, "grid"), setTimeout(() => {
1441
1441
  d(t, n.showClass.popup), t.style.removeProperty("opacity");
1442
1442
  }, sn)) : g(t, "grid"), d([document.documentElement, document.body], i.shown), n.heightAuto && n.backdrop && !n.toast && d([document.documentElement, document.body], i["height-auto"]);
@@ -1455,17 +1455,17 @@ var ct = {
1455
1455
  */
1456
1456
  url: (e, t) => /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e) ? Promise.resolve() : Promise.resolve(t || "Invalid URL")
1457
1457
  };
1458
- function ri(e) {
1458
+ function li(e) {
1459
1459
  e.inputValidator || (e.input === "email" && (e.inputValidator = ct.email), e.input === "url" && (e.inputValidator = ct.url));
1460
1460
  }
1461
- function ai(e) {
1461
+ function ci(e) {
1462
1462
  (!e.target || typeof e.target == "string" && !document.querySelector(e.target) || typeof e.target != "string" && !e.target.appendChild) && (v('Target parameter is not valid, defaulting to "body"'), e.target = "body");
1463
1463
  }
1464
- function li(e) {
1465
- ri(e), e.showLoaderOnConfirm && !e.preConfirm && v(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
1464
+ function di(e) {
1465
+ li(e), e.showLoaderOnConfirm && !e.preConfirm && v(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
1466
1466
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
1467
- https://sweetalert2.github.io/#ajax-request`), ai(e), typeof e.title == "string" && (e.title = e.title.split(`
1468
- `).join("<br />")), Jn(e);
1467
+ https://sweetalert2.github.io/#ajax-request`), ci(e), typeof e.title == "string" && (e.title = e.title.split(`
1468
+ `).join("<br />")), Qn(e);
1469
1469
  }
1470
1470
  let L;
1471
1471
  var le = /* @__PURE__ */ new WeakMap();
@@ -1475,13 +1475,13 @@ class h {
1475
1475
  * @this {SweetAlert}
1476
1476
  */
1477
1477
  constructor() {
1478
- if (Ln(this, le, void 0), typeof window > "u")
1478
+ if (Sn(this, le, void 0), typeof window > "u")
1479
1479
  return;
1480
1480
  L = this;
1481
1481
  for (var t = arguments.length, n = new Array(t), o = 0; o < t; o++)
1482
1482
  n[o] = arguments[o];
1483
1483
  const s = Object.freeze(this.constructor.argsToParams(n));
1484
- this.params = s, this.isAwaitingPromise = !1, $n(le, this, this._main(L.params));
1484
+ this.params = s, this.isAwaitingPromise = !1, In(le, this, this._main(L.params));
1485
1485
  }
1486
1486
  _main(t) {
1487
1487
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
@@ -1494,10 +1494,10 @@ class h {
1494
1494
  }), je() && It();
1495
1495
  }
1496
1496
  a.currentInstance = L;
1497
- const o = di(t, n);
1498
- li(o), Object.freeze(o), a.timeout && (a.timeout.stop(), delete a.timeout), clearTimeout(a.restoreFocusTimeout);
1499
- const s = ui(L);
1500
- return Tt(L, o), f.innerParams.set(L, o), ci(L, s, o);
1497
+ const o = wi(t, n);
1498
+ di(o), Object.freeze(o), a.timeout && (a.timeout.stop(), delete a.timeout), clearTimeout(a.restoreFocusTimeout);
1499
+ const s = fi(L);
1500
+ return Tt(L, o), f.innerParams.set(L, o), ui(L, s, o);
1501
1501
  }
1502
1502
  // `catch` cannot be the name of a module export, so we define our thenable methods here instead
1503
1503
  then(t) {
@@ -1507,7 +1507,7 @@ class h {
1507
1507
  return Ge(le, this).finally(t);
1508
1508
  }
1509
1509
  }
1510
- const ci = (e, t, n) => new Promise((o, s) => {
1510
+ const ui = (e, t, n) => new Promise((o, s) => {
1511
1511
  const r = (l) => {
1512
1512
  e.close({
1513
1513
  isDismissed: !0,
@@ -1515,22 +1515,22 @@ const ci = (e, t, n) => new Promise((o, s) => {
1515
1515
  });
1516
1516
  };
1517
1517
  W.swalPromiseResolve.set(e, o), W.swalPromiseReject.set(e, s), t.confirmButton.onclick = () => {
1518
- us(e);
1518
+ fs(e);
1519
1519
  }, t.denyButton.onclick = () => {
1520
- ws(e);
1520
+ ms(e);
1521
1521
  }, t.cancelButton.onclick = () => {
1522
- fs(e, r);
1522
+ hs(e, r);
1523
1523
  }, t.closeButton.onclick = () => {
1524
1524
  r(K.close);
1525
- }, Es(n, t, r), Mo(a, n, r), ns(e, n), ni(n), wi(a, n, r), fi(t, n), setTimeout(() => {
1525
+ }, Ps(n, t, r), Do(a, n, r), ss(e, n), si(n), mi(a, n, r), hi(t, n), setTimeout(() => {
1526
1526
  t.container.scrollTop = 0;
1527
1527
  });
1528
- }), di = (e, t) => {
1529
- const n = Ys(e), o = Object.assign({}, R, t, n, e);
1528
+ }), wi = (e, t) => {
1529
+ const n = Ks(e), o = Object.assign({}, R, t, n, e);
1530
1530
  return o.showClass = Object.assign({}, R.showClass, o.showClass), o.hideClass = Object.assign({}, R.hideClass, o.hideClass), o.animation === !1 && (o.showClass = {
1531
1531
  backdrop: "swal2-noanimation"
1532
1532
  }, o.hideClass = {}), o;
1533
- }, ui = (e) => {
1533
+ }, fi = (e) => {
1534
1534
  const t = {
1535
1535
  popup: u(),
1536
1536
  container: k(),
@@ -1544,28 +1544,28 @@ const ci = (e, t, n) => new Promise((o, s) => {
1544
1544
  progressSteps: Oe()
1545
1545
  };
1546
1546
  return f.domCache.set(e, t), t;
1547
- }, wi = (e, t, n) => {
1547
+ }, mi = (e, t, n) => {
1548
1548
  const o = ke();
1549
- y(o), t.timer && (e.timeout = new _s(() => {
1549
+ y(o), t.timer && (e.timeout = new Xs(() => {
1550
1550
  n("timer"), delete e.timeout;
1551
1551
  }, t.timer), t.timerProgressBar && (g(o), C(o, t, "timerProgressBar"), setTimeout(() => {
1552
1552
  e.timeout && e.timeout.running && Fe(t.timer);
1553
1553
  })));
1554
- }, fi = (e, t) => {
1554
+ }, hi = (e, t) => {
1555
1555
  if (!t.toast) {
1556
1556
  if (!ye(t.allowEnterKey)) {
1557
- mt("allowEnterKey"), gi();
1557
+ mt("allowEnterKey"), bi();
1558
1558
  return;
1559
1559
  }
1560
- mi(e) || hi(e, t) || Te(-1, 1);
1560
+ gi(e) || pi(e, t) || Te(-1, 1);
1561
1561
  }
1562
- }, mi = (e) => {
1562
+ }, gi = (e) => {
1563
1563
  const t = Array.from(e.popup.querySelectorAll("[autofocus]"));
1564
1564
  for (const n of t)
1565
1565
  if (n instanceof HTMLElement && x(n))
1566
1566
  return n.focus(), !0;
1567
1567
  return !1;
1568
- }, hi = (e, t) => t.focusDeny && x(e.denyButton) ? (e.denyButton.focus(), !0) : t.focusCancel && x(e.cancelButton) ? (e.cancelButton.focus(), !0) : t.focusConfirm && x(e.confirmButton) ? (e.confirmButton.focus(), !0) : !1, gi = () => {
1568
+ }, pi = (e, t) => t.focusDeny && x(e.denyButton) ? (e.denyButton.focus(), !0) : t.focusCancel && x(e.cancelButton) ? (e.cancelButton.focus(), !0) : t.focusConfirm && x(e.confirmButton) ? (e.confirmButton.focus(), !0) : !1, bi = () => {
1569
1569
  document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
1570
1570
  };
1571
1571
  if (typeof window < "u" && /^ru\b/.test(navigator.language) && location.host.match(/\.(ru|su|by|xn--p1ai)$/)) {
@@ -1595,8 +1595,8 @@ h.prototype.closeToast = D;
1595
1595
  h.prototype.rejectPromise = Dt;
1596
1596
  h.prototype.update = Gt;
1597
1597
  h.prototype._destroy = Qt;
1598
- Object.assign(h, Us);
1599
- Object.keys(As).forEach((e) => {
1598
+ Object.assign(h, Ys);
1599
+ Object.keys(Bs).forEach((e) => {
1600
1600
  h[e] = function() {
1601
1601
  return L && L[e] ? L[e](...arguments) : null;
1602
1602
  };
@@ -1614,7 +1614,7 @@ typeof document < "u" && function(e, t) {
1614
1614
  n.innerText = t;
1615
1615
  }
1616
1616
  }(document, ':root{--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-footer-border-color: #eee;--swal2-input-background: transparent;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666}[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)}@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)}}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:background-color .1s;-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) 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}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:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-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:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}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:box-shadow .1s;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:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}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);color:inherit;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:rgba(0,0,0,.2)}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){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:color .1s,box-shadow .1s;border:none;border-radius:var(--swal2-border-radius);background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}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:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-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:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:var(--swal2-input-background);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);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):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}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:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}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;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)}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}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}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}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)}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:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.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;background:var(--swal2-background);box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);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}.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:swal2-toast-show .5s}.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);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}}');
1617
- const pi = () => (/* @__PURE__ */ new Date()).getFullYear(), dt = (e) => e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase(), Ei = ({
1617
+ const yi = () => (/* @__PURE__ */ new Date()).getFullYear(), dt = (e) => e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase(), Pi = ({
1618
1618
  columns: e,
1619
1619
  data: t,
1620
1620
  renderModalContent: n,
@@ -1629,23 +1629,25 @@ const pi = () => (/* @__PURE__ */ new Date()).getFullYear(), dt = (e) => e.norma
1629
1629
  closeModalOut: rn = !0,
1630
1630
  enableColumnSearch: Ae = !1,
1631
1631
  enableColumnSorter: an = !1,
1632
- disableClose: ln = !1
1632
+ disableClose: ln = !1,
1633
+ enableRowSelection: cn = !1,
1634
+ onSelectionChange: dn
1633
1635
  }) => {
1634
- const [se, cn] = H(""), [J, dn] = H({}), [ie, Ue] = H(null), [un, re] = H(!1), [_e, Ye] = H(23), [wn, Xe] = H(t.length > 23), [fn, mn] = H(!1), hn = pi(), Ke = Pn();
1635
- vn(() => {
1636
- mn(t.length < 1), Ye(25), Xe(t.length > 25);
1636
+ const [se, un] = H(""), [J, wn] = H({}), [ie, Ue] = H(null), [fn, re] = H(!1), [_e, Ye] = H(23), [mn, Xe] = H(t.length > 23), [hn, gn] = H(!1), pn = yi(), Ke = Ln();
1637
+ xn(() => {
1638
+ gn(t.length < 1), Ye(25), Xe(t.length > 25);
1637
1639
  }, [se, J, t.length]);
1638
- const gn = (p, b) => {
1639
- dn((I) => ({ ...I, [p]: b }));
1640
- }, pn = t.filter(
1640
+ const bn = (p, b) => {
1641
+ wn((I) => ({ ...I, [p]: b }));
1642
+ }, yn = t.filter(
1641
1643
  (p) => e.every((b) => Ae && J[b.key] ? String(p[b.key]).toLowerCase().includes(J[b.key].toLowerCase()) : !0)
1642
- ), Ze = Object.values(J).some((p) => p.trim() !== ""), bn = t.slice().sort(
1644
+ ), Ze = Object.values(J).some((p) => p.trim() !== ""), vn = t.slice().sort(
1643
1645
  (p, b) => w ? new Date(b[w]).getTime() - new Date(p[w]).getTime() : 0
1644
1646
  ).filter(
1645
1647
  (p) => !Ze && e.some(
1646
1648
  (b) => dt(String(p[b.key])).includes(dt(se))
1647
1649
  )
1648
- ), ae = Ze ? pn : bn, yn = (p, b) => {
1650
+ ), ae = Ze ? yn : vn, kn = (p, b) => {
1649
1651
  if (p.redirectTo) {
1650
1652
  const I = p.redirectTo(b);
1651
1653
  typeof I == "string" ? Ke(I) : Ke(I.pathname, { state: I.state });
@@ -1666,48 +1668,50 @@ const pi = () => (/* @__PURE__ */ new Date()).getFullYear(), dt = (e) => e.norma
1666
1668
  };
1667
1669
  return /* @__PURE__ */ M(Je, { children: [
1668
1670
  /* @__PURE__ */ B(
1669
- Bn,
1671
+ Tn,
1670
1672
  {
1671
1673
  title: r,
1672
1674
  subtitle: c,
1673
1675
  data: t,
1674
- setSearchTerm: cn,
1676
+ setSearchTerm: un,
1675
1677
  extraInput: l,
1676
1678
  enableColumnSearch: Ae
1677
1679
  }
1678
1680
  ),
1679
1681
  Z ? /* @__PURE__ */ M("div", { className: "animation-container", children: [
1680
- /* @__PURE__ */ B("div", { style: { width: 500, height: 125 }, children: /* @__PURE__ */ B(Ee, { animationData: kn, loop: !0 }) }),
1682
+ /* @__PURE__ */ B("div", { style: { width: 500, height: 125 }, children: /* @__PURE__ */ B(Ee, { animationData: Cn, loop: !0 }) }),
1681
1683
  /* @__PURE__ */ B("span", { className: "lottie", children: "Actualizando y cargando registros, por favor espere..." })
1682
- ] }) : fn ? /* @__PURE__ */ M("div", { className: "animation-container", children: [
1683
- /* @__PURE__ */ B("div", { style: { width: 150, height: 150 }, children: /* @__PURE__ */ B(Ee, { animationData: xn, loop: !0 }) }),
1684
+ ] }) : hn ? /* @__PURE__ */ M("div", { className: "animation-container", children: [
1685
+ /* @__PURE__ */ B("div", { style: { width: 150, height: 150 }, children: /* @__PURE__ */ B(Ee, { animationData: An, loop: !0 }) }),
1684
1686
  /* @__PURE__ */ B("span", { className: "lottie", children: "No existen registros pendientes por tramitar" })
1685
1687
  ] }) : se && ae.length === 0 ? /* @__PURE__ */ M("div", { className: "animation-container", children: [
1686
- /* @__PURE__ */ B("div", { style: { width: 150, height: 150 }, children: /* @__PURE__ */ B(Ee, { animationData: Cn, loop: !0 }) }),
1688
+ /* @__PURE__ */ B("div", { style: { width: 150, height: 150 }, children: /* @__PURE__ */ B(Ee, { animationData: En, loop: !0 }) }),
1687
1689
  /* @__PURE__ */ B("span", { className: "lottie", children: "No se encontró registro con el criterio de búsqueda definido" })
1688
1690
  ] }) : /* @__PURE__ */ M(Je, { children: [
1689
1691
  /* @__PURE__ */ B(
1690
- An,
1692
+ Bn,
1691
1693
  {
1692
1694
  columns: e,
1693
1695
  displayedData: ae,
1694
- hasMoreData: wn,
1696
+ hasMoreData: mn,
1695
1697
  setHasMoreData: Xe,
1696
1698
  setVisibleData: Ye,
1697
1699
  visibleData: _e,
1698
1700
  searchTerm: se,
1699
- handleCellClick: yn,
1701
+ handleCellClick: kn,
1700
1702
  totalDias: s,
1701
1703
  isShared: T,
1702
1704
  enableColumnSearch: Ae,
1703
1705
  columnSearch: J,
1704
- handleColumnSearch: gn,
1705
- enableColumnSorter: an
1706
+ handleColumnSearch: bn,
1707
+ enableColumnSorter: an,
1708
+ enableRowSelection: cn,
1709
+ onSelectionChange: dn
1706
1710
  }
1707
1711
  ),
1708
1712
  /* @__PURE__ */ M("div", { className: "d-flex justify-content-between", children: [
1709
1713
  /* @__PURE__ */ M("div", { className: "data-unp", children: [
1710
- hn,
1714
+ pn,
1711
1715
  " • Unidad Nacional de Protección — UNP"
1712
1716
  ] }),
1713
1717
  /* @__PURE__ */ M("div", { className: "data-count", children: [
@@ -1721,9 +1725,9 @@ const pi = () => (/* @__PURE__ */ new Date()).getFullYear(), dt = (e) => e.norma
1721
1725
  ] })
1722
1726
  ] }),
1723
1727
  ie && n && /* @__PURE__ */ B(
1724
- En,
1728
+ Pn,
1725
1729
  {
1726
- show: un,
1730
+ show: fn,
1727
1731
  onHide: () => re(!1),
1728
1732
  title: `${ie.column.label}`,
1729
1733
  closeModalOut: rn,
@@ -1739,5 +1743,5 @@ const pi = () => (/* @__PURE__ */ new Date()).getFullYear(), dt = (e) => e.norma
1739
1743
  ] });
1740
1744
  };
1741
1745
  export {
1742
- Ei as TablaRegistros
1746
+ Pi as TablaRegistros
1743
1747
  };