@sofiakb/elf-js 0.2.1-dev.1 → 0.2.1-dev.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,6 +11,7 @@ export declare const useConfirm: () => {
11
11
  url?: string;
12
12
  width?: number;
13
13
  height?: number;
14
+ color?: string;
14
15
  };
15
16
  imageUrl?: string;
16
17
  classes?: SweetAlertOptions["customClass"];
package/dist/elf-js.es.js CHANGED
@@ -1,6 +1,6 @@
1
- var vt = typeof global == "object" && global && global.Object === Object && global, En = typeof self == "object" && self && self.Object === Object && self, j = vt || En || Function("return this")(), se = j.Symbol, kt = Object.prototype, Tn = kt.hasOwnProperty, Pn = kt.toString, K = se ? se.toStringTag : void 0;
2
- function Bn(e) {
3
- var t = Tn.call(e, K), n = e[K];
1
+ var vt = typeof global == "object" && global && global.Object === Object && global, Tn = typeof self == "object" && self && self.Object === Object && self, j = vt || Tn || Function("return this")(), se = j.Symbol, kt = Object.prototype, En = kt.hasOwnProperty, Pn = kt.toString, K = se ? se.toStringTag : void 0;
2
+ function $n(e) {
3
+ var t = En.call(e, K), n = e[K];
4
4
  try {
5
5
  e[K] = void 0;
6
6
  var o = !0;
@@ -9,13 +9,13 @@ function Bn(e) {
9
9
  var r = Pn.call(e);
10
10
  return o && (t ? e[K] = n : delete e[K]), r;
11
11
  }
12
- var $n = Object.prototype, Sn = $n.toString;
12
+ var Bn = Object.prototype, Sn = Bn.toString;
13
13
  function jn(e) {
14
14
  return Sn.call(e);
15
15
  }
16
16
  var In = "[object Null]", Ln = "[object Undefined]", Ze = se ? se.toStringTag : void 0;
17
17
  function Z(e) {
18
- return e == null ? e === void 0 ? Ln : In : Ze && Ze in Object(e) ? Bn(e) : jn(e);
18
+ return e == null ? e === void 0 ? Ln : In : Ze && Ze in Object(e) ? $n(e) : jn(e);
19
19
  }
20
20
  function Oe(e) {
21
21
  return e != null && typeof e == "object";
@@ -77,7 +77,7 @@ function Jn(e) {
77
77
  return e != null && At(e.length) && !Ct(e);
78
78
  }
79
79
  var Qn = Object.prototype;
80
- function Et(e) {
80
+ function Tt(e) {
81
81
  var t = e && e.constructor, n = typeof t == "function" && t.prototype || Qn;
82
82
  return e === n;
83
83
  }
@@ -85,7 +85,7 @@ var eo = "[object Arguments]";
85
85
  function Je(e) {
86
86
  return Oe(e) && Z(e) == eo;
87
87
  }
88
- var Tt = Object.prototype, to = Tt.hasOwnProperty, no = Tt.propertyIsEnumerable, oo = Je(/* @__PURE__ */ function() {
88
+ var Et = Object.prototype, to = Et.hasOwnProperty, no = Et.propertyIsEnumerable, oo = Je(/* @__PURE__ */ function() {
89
89
  return arguments;
90
90
  }()) ? Je : function(e) {
91
91
  return Oe(e) && to.call(e, "callee") && !no.call(e, "callee");
@@ -93,8 +93,8 @@ var Tt = Object.prototype, to = Tt.hasOwnProperty, no = Tt.propertyIsEnumerable,
93
93
  function ro() {
94
94
  return !1;
95
95
  }
96
- var Pt = typeof exports == "object" && exports && !exports.nodeType && exports, Qe = Pt && typeof module == "object" && module && !module.nodeType && module, so = Qe && Qe.exports === Pt, et = so ? j.Buffer : void 0, io = et ? et.isBuffer : void 0, ao = io || ro, lo = "[object Arguments]", co = "[object Array]", uo = "[object Boolean]", wo = "[object Date]", fo = "[object Error]", mo = "[object Function]", go = "[object Map]", ho = "[object Number]", po = "[object Object]", bo = "[object RegExp]", yo = "[object Set]", vo = "[object String]", ko = "[object WeakMap]", xo = "[object ArrayBuffer]", Co = "[object DataView]", Ao = "[object Float32Array]", Eo = "[object Float64Array]", To = "[object Int8Array]", Po = "[object Int16Array]", Bo = "[object Int32Array]", $o = "[object Uint8Array]", So = "[object Uint8ClampedArray]", jo = "[object Uint16Array]", Io = "[object Uint32Array]", f = {};
97
- f[Ao] = f[Eo] = f[To] = f[Po] = f[Bo] = f[$o] = f[So] = f[jo] = f[Io] = !0;
96
+ var Pt = typeof exports == "object" && exports && !exports.nodeType && exports, Qe = Pt && typeof module == "object" && module && !module.nodeType && module, so = Qe && Qe.exports === Pt, et = so ? j.Buffer : void 0, io = et ? et.isBuffer : void 0, ao = io || ro, lo = "[object Arguments]", co = "[object Array]", uo = "[object Boolean]", wo = "[object Date]", fo = "[object Error]", mo = "[object Function]", go = "[object Map]", ho = "[object Number]", po = "[object Object]", bo = "[object RegExp]", yo = "[object Set]", vo = "[object String]", ko = "[object WeakMap]", xo = "[object ArrayBuffer]", Co = "[object DataView]", Ao = "[object Float32Array]", To = "[object Float64Array]", Eo = "[object Int8Array]", Po = "[object Int16Array]", $o = "[object Int32Array]", Bo = "[object Uint8Array]", So = "[object Uint8ClampedArray]", jo = "[object Uint16Array]", Io = "[object Uint32Array]", f = {};
97
+ f[Ao] = f[To] = f[Eo] = f[Po] = f[$o] = f[Bo] = f[So] = f[jo] = f[Io] = !0;
98
98
  f[lo] = f[co] = f[xo] = f[uo] = f[Co] = f[wo] = f[fo] = f[mo] = f[go] = f[ho] = f[po] = f[bo] = f[yo] = f[vo] = f[ko] = !1;
99
99
  function Lo(e) {
100
100
  return Oe(e) && At(e.length) && !!f[Z(e)];
@@ -104,7 +104,7 @@ function Oo(e) {
104
104
  return e(t);
105
105
  };
106
106
  }
107
- var Bt = typeof exports == "object" && exports && !exports.nodeType && exports, X = Bt && typeof module == "object" && module && !module.nodeType && module, Mo = X && X.exports === Bt, Ce = Mo && vt.process, tt = function() {
107
+ var $t = typeof exports == "object" && exports && !exports.nodeType && exports, X = $t && typeof module == "object" && module && !module.nodeType && module, Mo = X && X.exports === $t, Ce = Mo && vt.process, tt = function() {
108
108
  try {
109
109
  var e = X && X.require && X.require("util").types;
110
110
  return e || Ce && Ce.binding && Ce.binding("util");
@@ -118,15 +118,15 @@ function Ho(e, t) {
118
118
  }
119
119
  var Fo = Ho(Object.keys, Object), zo = Object.prototype, Vo = zo.hasOwnProperty;
120
120
  function qo(e) {
121
- if (!Et(e))
121
+ if (!Tt(e))
122
122
  return Fo(e);
123
123
  var t = [];
124
124
  for (var n in Object(e))
125
125
  Vo.call(e, n) && n != "constructor" && t.push(n);
126
126
  return t;
127
127
  }
128
- var Be = G(j, "Map"), $e = G(j, "DataView"), Se = G(j, "Promise"), je = G(j, "Set"), ot = "[object Map]", Ro = "[object Object]", rt = "[object Promise]", st = "[object Set]", it = "[object WeakMap]", at = "[object DataView]", No = D($e), Wo = D(Be), Uo = D(Se), _o = D(je), Yo = D(Pe), L = Z;
129
- ($e && L(new $e(new ArrayBuffer(1))) != at || Be && L(new Be()) != ot || Se && L(Se.resolve()) != rt || je && L(new je()) != st || Pe && L(new Pe()) != it) && (L = function(e) {
128
+ var $e = G(j, "Map"), Be = G(j, "DataView"), Se = G(j, "Promise"), je = G(j, "Set"), ot = "[object Map]", Ro = "[object Object]", rt = "[object Promise]", st = "[object Set]", it = "[object WeakMap]", at = "[object DataView]", No = D(Be), Wo = D($e), Uo = D(Se), _o = D(je), Yo = D(Pe), L = Z;
129
+ (Be && L(new Be(new ArrayBuffer(1))) != at || $e && L(new $e()) != ot || Se && L(Se.resolve()) != rt || je && L(new je()) != st || Pe && L(new Pe()) != it) && (L = function(e) {
130
130
  var t = Z(e), n = t == Ro ? e.constructor : void 0, o = n ? D(n) : "";
131
131
  if (o)
132
132
  switch (o) {
@@ -152,7 +152,7 @@ function Jo(e) {
152
152
  var t = L(e);
153
153
  if (t == Ko || t == Xo)
154
154
  return !e.size;
155
- if (Et(e))
155
+ if (Tt(e))
156
156
  return !qo(e).length;
157
157
  for (var n in e)
158
158
  if (Go.call(e, n))
@@ -162,29 +162,29 @@ function Jo(e) {
162
162
  function Qo(e) {
163
163
  return e == null;
164
164
  }
165
- const Ni = (e) => {
165
+ const Yi = (e) => {
166
166
  if (Jo(e == null ? void 0 : e.toString()))
167
167
  return null;
168
168
  const t = (e == null ? void 0 : e.toString()) ?? "", o = /calc\(([^)]+)\)/.exec(t);
169
169
  return Qo(o == null ? void 0 : o[1]) ? t.includes("%") || isNaN(Number(t)) ? isNaN(parseInt(t)) ? null : t : parseInt(t) + "px" : t;
170
- }, Wi = (e) => btoa(encodeURI(`${e.name ?? e ?? "name"}-${e.id ?? -1}`)), Ui = (e, t = !0) => typeof e < "u" && (t ? e !== null : !0), $t = (e, t) => {
170
+ }, Ki = (e) => btoa(encodeURI(`${e.name ?? e ?? "name"}-${e.id ?? -1}`)), Xi = (e, t = !0) => typeof e < "u" && (t ? e !== null : !0), Bt = (e, t) => {
171
171
  if (e = e.replace(/^#/, ""), !/^([0-9A-Fa-f]{6})$/.test(e))
172
172
  throw new Error("Invalid hex color code");
173
173
  const n = parseInt(e, 16), o = n >> 16 & 255, r = n >> 8 & 255, i = n & 255;
174
174
  if (isNaN(o) || isNaN(r) || isNaN(i))
175
175
  throw new Error("Invalid hex color code");
176
176
  return { r: o, g: r, b: i, a: t > 1 ? t / 100 : t };
177
- }, _i = (e, t) => {
178
- const { r: n, g: o, b: r, a: i } = $t(e, t);
177
+ }, Zi = (e, t) => {
178
+ const { r: n, g: o, b: r, a: i } = Bt(e, t);
179
179
  return `rgba(${n}, ${o}, ${r}, ${i})`;
180
- }, Yi = (e) => {
181
- const { r: t, g: n, b: o } = $t(e, 1);
180
+ }, Gi = (e) => {
181
+ const { r: t, g: n, b: o } = Bt(e, 1);
182
182
  return { r: t, g: n, b: o };
183
- }, Ki = () => {
183
+ }, Ji = () => {
184
184
  var l;
185
185
  const e = ((l = navigator == null ? void 0 : navigator.userAgentData) == null ? void 0 : l.platform) ?? (navigator == null ? void 0 : navigator.platform), t = navigator.userAgent ?? "", o = ["iPad Simulator", "iPhone Simulator", "iPod Simulator", "iPad", "iPhone", "iPod"].includes(e), r = t.includes("Mac") && "ontouchend" in document, i = t.includes("Safari") && !t.includes("Chrome") && !t.includes("Firefox");
186
186
  return o || r && i;
187
- }, er = (e = 768) => window.innerWidth < e, Xi = () => /Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini|mobile/i.test(navigator.userAgent) && er();
187
+ }, er = (e = 768) => window.innerWidth < e, Qi = () => /Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini|mobile/i.test(navigator.userAgent) && er();
188
188
  /*!
189
189
  * sweetalert2 v11.19.1
190
190
  * Released under the MIT License.
@@ -267,9 +267,9 @@ const rr = 100, a = {}, sr = () => {
267
267
  return c > m ? 1 : c < m ? -1 : 0;
268
268
  }), o = e.querySelectorAll(wr), r = Array.from(o).filter((i) => i.getAttribute("tabindex") !== "-1");
269
269
  return [...new Set(n.concat(r))].filter((i) => k(i));
270
- }, Re = () => B(document.body, s.shown) && !B(document.body, s["toast-shown"]) && !B(document.body, s["no-backdrop"]), ye = () => {
270
+ }, Re = () => $(document.body, s.shown) && !$(document.body, s["toast-shown"]) && !$(document.body, s["no-backdrop"]), ye = () => {
271
271
  const e = d();
272
- return e ? B(e, s.toast) : !1;
272
+ return e ? $(e, s.toast) : !1;
273
273
  }, fr = () => {
274
274
  const e = d();
275
275
  return e ? e.hasAttribute("data-loading") : !1;
@@ -284,7 +284,7 @@ const rr = 100, a = {}, sr = () => {
284
284
  l instanceof HTMLVideoElement || l instanceof HTMLAudioElement ? e.appendChild(l.cloneNode(!0)) : e.appendChild(l);
285
285
  });
286
286
  }
287
- }, B = (e, t) => {
287
+ }, $ = (e, t) => {
288
288
  if (!t)
289
289
  return !1;
290
290
  const n = t.split(/\s+/);
@@ -340,13 +340,13 @@ const rr = 100, a = {}, sr = () => {
340
340
  }));
341
341
  }, u = (e, t) => {
342
342
  Ft(e, t, !0);
343
- }, E = (e, t) => {
343
+ }, T = (e, t) => {
344
344
  Ft(e, t, !1);
345
- }, $ = (e, t) => {
345
+ }, B = (e, t) => {
346
346
  const n = Array.from(e.children);
347
347
  for (let o = 0; o < n.length; o++) {
348
348
  const r = n[o];
349
- if (r instanceof HTMLElement && B(r, t))
349
+ if (r instanceof HTMLElement && $(r, t))
350
350
  return r;
351
351
  }
352
352
  }, O = (e, t, n) => {
@@ -422,11 +422,11 @@ const rr = 100, a = {}, sr = () => {
422
422
  </div>
423
423
  `.replace(/(^|\n)\s*/g, ""), yr = () => {
424
424
  const e = v();
425
- return e ? (e.remove(), E([document.documentElement, document.body], [s["no-backdrop"], s["toast-shown"], s["has-column"]]), !0) : !1;
425
+ return e ? (e.remove(), T([document.documentElement, document.body], [s["no-backdrop"], s["toast-shown"], s["has-column"]]), !0) : !1;
426
426
  }, I = () => {
427
427
  a.currentInstance.resetValidationMessage();
428
428
  }, vr = () => {
429
- const e = d(), t = $(e, s.input), n = $(e, s.file), o = e.querySelector(`.${s.range} input`), r = e.querySelector(`.${s.range} output`), i = $(e, s.select), l = e.querySelector(`.${s.checkbox} input`), c = $(e, s.textarea);
429
+ const e = d(), t = B(e, s.input), n = B(e, s.file), o = e.querySelector(`.${s.range} input`), r = e.querySelector(`.${s.range} output`), i = B(e, s.select), l = e.querySelector(`.${s.checkbox} input`), c = B(e, s.textarea);
430
430
  t.oninput = I, n.onchange = I, i.onchange = I, l.onchange = I, c.oninput = I, o.oninput = () => {
431
431
  I(), r.value = o.value;
432
432
  }, o.onchange = () => {
@@ -448,10 +448,10 @@ const rr = 100, a = {}, sr = () => {
448
448
  const o = kr(e.target);
449
449
  o.appendChild(n), xr(e), Cr(o), vr();
450
450
  }, Ue = (e, t) => {
451
- e instanceof HTMLElement ? t.appendChild(e) : typeof e == "object" ? Er(e, t) : e && A(t, e);
452
- }, Er = (e, t) => {
453
- e.jquery ? Tr(t, e) : A(t, e.toString());
451
+ e instanceof HTMLElement ? t.appendChild(e) : typeof e == "object" ? Tr(e, t) : e && A(t, e);
454
452
  }, Tr = (e, t) => {
453
+ e.jquery ? Er(t, e) : A(t, e.toString());
454
+ }, Er = (e, t) => {
455
455
  if (e.textContent = "", 0 in t)
456
456
  for (let n = 0; n in t; n++)
457
457
  e.appendChild(t[n].cloneNode(!0));
@@ -459,15 +459,15 @@ const rr = 100, a = {}, sr = () => {
459
459
  e.appendChild(t.cloneNode(!0));
460
460
  }, Pr = (e, t) => {
461
461
  const n = ee(), o = _();
462
- !n || !o || (!t.showConfirmButton && !t.showDenyButton && !t.showCancelButton ? b(n) : p(n), x(n, t, "actions"), Br(n, o, t), A(o, t.loaderHtml || ""), x(o, t, "loader"));
462
+ !n || !o || (!t.showConfirmButton && !t.showDenyButton && !t.showCancelButton ? b(n) : p(n), x(n, t, "actions"), $r(n, o, t), A(o, t.loaderHtml || ""), x(o, t, "loader"));
463
463
  };
464
- function Br(e, t, n) {
464
+ function $r(e, t, n) {
465
465
  const o = P(), r = F(), i = U();
466
- !o || !r || !i || (Ee(o, "confirm", n), Ee(r, "deny", n), Ee(i, "cancel", n), $r(o, r, i, n), n.reverseButtons && (n.toast ? (e.insertBefore(i, o), e.insertBefore(r, o)) : (e.insertBefore(i, t), e.insertBefore(r, t), e.insertBefore(o, t))));
466
+ !o || !r || !i || (Te(o, "confirm", n), Te(r, "deny", n), Te(i, "cancel", n), Br(o, r, i, n), n.reverseButtons && (n.toast ? (e.insertBefore(i, o), e.insertBefore(r, o)) : (e.insertBefore(i, t), e.insertBefore(r, t), e.insertBefore(o, t))));
467
467
  }
468
- function $r(e, t, n, o) {
468
+ function Br(e, t, n, o) {
469
469
  if (!o.buttonsStyling) {
470
- E([e, t, n], s.styled);
470
+ T([e, t, n], s.styled);
471
471
  return;
472
472
  }
473
473
  u([e, t, n], s.styled), o.confirmButtonColor && e.style.setProperty("--swal2-confirm-button-background-color", o.confirmButtonColor), o.denyButtonColor && t.style.setProperty("--swal2-deny-button-background-color", o.denyButtonColor), o.cancelButtonColor && n.style.setProperty("--swal2-cancel-button-background-color", o.cancelButtonColor), Ae(e), Ae(t), Ae(n);
@@ -476,7 +476,7 @@ function Ae(e) {
476
476
  const t = window.getComputedStyle(e), n = t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/, "rgba($1, $2, $3, 0.5)");
477
477
  e.style.setProperty("--swal2-action-button-outline", t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/, ` ${n}`));
478
478
  }
479
- function Ee(e, t, n) {
479
+ function Te(e, t, n) {
480
480
  const o = (
481
481
  /** @type {'Confirm' | 'Deny' | 'Cancel'} */
482
482
  Me(t)
@@ -509,7 +509,7 @@ const Mr = ["input", "file", "range", "select", "radio", "checkbox", "textarea"]
509
509
  return;
510
510
  const o = w.innerParams.get(e), r = !o || t.input !== o.input;
511
511
  Mr.forEach((i) => {
512
- const l = $(n, s[i]);
512
+ const l = B(n, s[i]);
513
513
  l && (zr(i, t.inputAttributes), l.className = s[i], r && b(l));
514
514
  }), t.input && (r && Hr(t), Vr(t));
515
515
  }, Hr = (e) => {
@@ -556,7 +556,7 @@ const Mr = ["input", "file", "range", "select", "radio", "checkbox", "textarea"]
556
556
  }, Vt = (e) => {
557
557
  const t = d();
558
558
  if (t)
559
- return $(t, s[
559
+ return B(t, s[
560
560
  /** @type {SwalClass} */
561
561
  e
562
562
  ] || s.input);
@@ -627,7 +627,7 @@ const qr = (e, t) => {
627
627
  p(o), ft(o, t), wt(o, t), u(o, t.showClass && t.showClass.icon), window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", qt);
628
628
  }, wt = (e, t) => {
629
629
  for (const [n, o] of Object.entries(ie))
630
- t.icon !== n && E(e, o);
630
+ t.icon !== n && T(e, o);
631
631
  u(e, t.icon && ie[t.icon]), _r(e, t), qt(), x(e, t, "icon");
632
632
  }, qt = () => {
633
633
  const e = d();
@@ -698,7 +698,7 @@ const Kr = (e) => {
698
698
  }
699
699
  }, de = () => {
700
700
  const e = d();
701
- Ye = !1, E(e, "swal2-dragging");
701
+ Ye = !1, T(e, "swal2-dragging");
702
702
  }, _t = (e) => {
703
703
  let t = 0, n = 0;
704
704
  return e.type.startsWith("mouse") ? (t = /** @type {MouseEvent} */
@@ -718,7 +718,7 @@ const Kr = (e) => {
718
718
  r && o.insertBefore(r, W());
719
719
  } else
720
720
  O(o, "width", t.width);
721
- O(o, "padding", t.padding), t.color && (o.style.color = t.color), t.background && (o.style.background = t.background), b(pe()), Gr(o, t), t.draggable && !t.toast ? (u(o, s.draggable), Kr(o)) : (E(o, s.draggable), Xr(o));
721
+ O(o, "padding", t.padding), t.color && (o.style.color = t.color), t.background && (o.style.background = t.background), b(pe()), Gr(o, t), t.draggable && !t.toast ? (u(o, s.draggable), Kr(o)) : (T(o, s.draggable), Xr(o));
722
722
  }
723
723
  }, Gr = (e, t) => {
724
724
  const n = t.showClass || {};
@@ -841,7 +841,7 @@ const ws = () => {
841
841
  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");
842
842
  });
843
843
  }, Jt = typeof window < "u" && !!window.GestureEvent, fs = () => {
844
- if (Jt && !B(document.body, s.iosfix)) {
844
+ if (Jt && !$(document.body, s.iosfix)) {
845
845
  const e = document.body.scrollTop;
846
846
  document.body.style.top = `${e * -1}px`, u(document.body, s.iosfix), ms();
847
847
  }
@@ -862,9 +862,9 @@ const ws = () => {
862
862
  !(ut(o) && // #1944
863
863
  o.contains(t));
864
864
  }, hs = (e) => e.touches && e.touches.length && e.touches[0].touchType === "stylus", ps = (e) => e.touches && e.touches.length > 1, bs = () => {
865
- if (B(document.body, s.iosfix)) {
865
+ if ($(document.body, s.iosfix)) {
866
866
  const e = parseInt(document.body.style.top, 10);
867
- E(document.body, s.iosfix), document.body.style.top = "", document.body.scrollTop = e * -1;
867
+ T(document.body, s.iosfix), document.body.style.top = "", document.body.scrollTop = e * -1;
868
868
  }
869
869
  }, ys = () => {
870
870
  const e = document.createElement("div");
@@ -882,7 +882,7 @@ function Qt(e, t, n, o) {
882
882
  ye() ? gt(e, o) : (ir(n).then(() => gt(e, o)), Xt(a)), Jt ? (t.setAttribute("style", "display:none !important"), t.removeAttribute("class"), t.innerHTML = "") : t.remove(), Re() && (ks(), bs(), Gt()), xs();
883
883
  }
884
884
  function xs() {
885
- E([document.documentElement, document.body], [s.shown, s["height-auto"], s["no-backdrop"], s["toast-shown"]]);
885
+ T([document.documentElement, document.body], [s.shown, s["height-auto"], s["no-backdrop"], s["toast-shown"]]);
886
886
  }
887
887
  function S(e) {
888
888
  e = As(e);
@@ -894,11 +894,11 @@ const Cs = (e) => {
894
894
  if (!t)
895
895
  return !1;
896
896
  const n = w.innerParams.get(e);
897
- if (!n || B(t, n.hideClass.popup))
897
+ if (!n || $(t, n.hideClass.popup))
898
898
  return !1;
899
- E(t, n.showClass.popup), u(t, n.hideClass.popup);
899
+ T(t, n.showClass.popup), u(t, n.hideClass.popup);
900
900
  const o = v();
901
- return E(o, n.showClass.backdrop), u(o, n.hideClass.backdrop), Es(e, t, n), !0;
901
+ return T(o, n.showClass.backdrop), u(o, n.hideClass.backdrop), Ts(e, t, n), !0;
902
902
  };
903
903
  function en(e) {
904
904
  const t = R.swalPromiseReject.get(this);
@@ -914,11 +914,11 @@ const oe = (e) => {
914
914
  isConfirmed: !1,
915
915
  isDenied: !1,
916
916
  isDismissed: !1
917
- }, e), Es = (e, t, n) => {
917
+ }, e), Ts = (e, t, n) => {
918
918
  var o;
919
919
  const r = v(), i = zt(t);
920
- typeof n.willClose == "function" && n.willClose(t), (o = a.eventEmitter) === null || o === void 0 || o.emit("willClose", t), i ? Ts(e, t, r, n.returnFocus, n.didClose) : Qt(e, r, n.returnFocus, n.didClose);
921
- }, Ts = (e, t, n, o, r) => {
920
+ typeof n.willClose == "function" && n.willClose(t), (o = a.eventEmitter) === null || o === void 0 || o.emit("willClose", t), i ? Es(e, t, r, n.returnFocus, n.didClose) : Qt(e, r, n.returnFocus, n.didClose);
921
+ }, Es = (e, t, n, o, r) => {
922
922
  a.swalCloseEventFinishedCallback = Qt.bind(null, e, n, o, r);
923
923
  const i = function(l) {
924
924
  if (l.target === t) {
@@ -941,9 +941,9 @@ const oe = (e) => {
941
941
  }, Ps = (e, t) => {
942
942
  const n = ee(), o = _();
943
943
  !n || !o || (!t && k(P()) && (t = P()), p(n), t && (b(t), o.setAttribute("data-button-to-replace", t.className), n.insertBefore(o, t)), u([e, n], s.loading));
944
- }, Bs = (e, t) => {
945
- t.input === "select" || t.input === "radio" ? Ls(e, t) : ["text", "email", "number", "tel", "textarea"].some((n) => n === t.input) && (De(t.inputValue) || He(t.inputValue)) && (N(P()), Os(e, t));
946
944
  }, $s = (e, t) => {
945
+ t.input === "select" || t.input === "radio" ? Ls(e, t) : ["text", "email", "number", "tel", "textarea"].some((n) => n === t.input) && (De(t.inputValue) || He(t.inputValue)) && (N(P()), Os(e, t));
946
+ }, Bs = (e, t) => {
947
947
  const n = e.getInput();
948
948
  if (!n)
949
949
  return null;
@@ -976,7 +976,7 @@ const oe = (e) => {
976
976
  }));
977
977
  };
978
978
  function Ms(e, t, n) {
979
- const o = $(e, s.select);
979
+ const o = B(e, s.select);
980
980
  if (!o)
981
981
  return;
982
982
  const r = (i, l, c) => {
@@ -993,7 +993,7 @@ function Ms(e, t, n) {
993
993
  }), o.focus();
994
994
  }
995
995
  function Ds(e, t, n) {
996
- const o = $(e, s.radio);
996
+ const o = B(e, s.radio);
997
997
  if (!o)
998
998
  return;
999
999
  t.forEach((i) => {
@@ -1028,7 +1028,7 @@ const ue = (e) => {
1028
1028
  H(`The "input" parameter is needed to be set when using returnInputValueOn${Me(t)}`);
1029
1029
  return;
1030
1030
  }
1031
- const o = e.getInput(), r = $s(e, n);
1031
+ const o = e.getInput(), r = Bs(e, n);
1032
1032
  n.inputValidator ? Vs(e, r, t) : o && !o.checkValidity() ? (e.enableButtons(), e.showValidationMessage(n.validationMessage || o.validationMessage)) : t === "deny" ? Ke(e, r) : Xe(e, r);
1033
1033
  }, Vs = (e, t, n) => {
1034
1034
  const o = w.innerParams.get(e);
@@ -1064,7 +1064,7 @@ function we() {
1064
1064
  if (!e)
1065
1065
  return;
1066
1066
  const t = w.domCache.get(this);
1067
- b(t.loader), ye() ? e.icon && p(W()) : qs(t), E([t.popup, t.actions], s.loading), t.popup.removeAttribute("aria-busy"), t.popup.removeAttribute("data-loading"), t.confirmButton.disabled = !1, t.denyButton.disabled = !1, t.cancelButton.disabled = !1;
1067
+ b(t.loader), ye() ? e.icon && p(W()) : qs(t), T([t.popup, t.actions], s.loading), t.popup.removeAttribute("aria-busy"), t.popup.removeAttribute("data-loading"), t.confirmButton.disabled = !1, t.denyButton.disabled = !1, t.cancelButton.disabled = !1;
1068
1068
  }
1069
1069
  const qs = (e) => {
1070
1070
  const t = e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));
@@ -1112,7 +1112,7 @@ function fn() {
1112
1112
  const e = w.domCache.get(this);
1113
1113
  e.validationMessage && b(e.validationMessage);
1114
1114
  const t = this.getInput();
1115
- t && (t.removeAttribute("aria-invalid"), t.removeAttribute("aria-describedby"), E(t, s.inputerror));
1115
+ t && (t.removeAttribute("aria-invalid"), t.removeAttribute("aria-describedby"), T(t, s.inputerror));
1116
1116
  }
1117
1117
  const q = {
1118
1118
  title: "",
@@ -1222,7 +1222,7 @@ const q = {
1222
1222
  };
1223
1223
  function bn(e) {
1224
1224
  const t = v(), n = d(), o = w.innerParams.get(this);
1225
- if (!n || B(n, o.hideClass.popup)) {
1225
+ if (!n || $(n, o.hideClass.popup)) {
1226
1226
  y("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.");
1227
1227
  return;
1228
1228
  }
@@ -1252,8 +1252,8 @@ function yn() {
1252
1252
  const Xs = (e) => {
1253
1253
  vn(e), delete e.params, delete a.keydownHandler, delete a.keydownTarget, delete a.currentInstance;
1254
1254
  }, vn = (e) => {
1255
- e.isAwaitingPromise ? (Te(w, e), e.isAwaitingPromise = !0) : (Te(R, e), Te(w, 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);
1256
- }, Te = (e, t) => {
1255
+ e.isAwaitingPromise ? (Ee(w, e), e.isAwaitingPromise = !0) : (Ee(R, e), Ee(w, 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);
1256
+ }, Ee = (e, t) => {
1257
1257
  for (const n in e)
1258
1258
  e[n].delete(t);
1259
1259
  };
@@ -1539,7 +1539,7 @@ const Cn = ["swal-title", "swal-html", "swal-footer"], yi = (e) => {
1539
1539
  if (!t)
1540
1540
  return {};
1541
1541
  const n = t.content;
1542
- return Pi(n), Object.assign(vi(n), ki(n), xi(n), Ci(n), Ai(n), Ei(n), Ti(n, Cn));
1542
+ return Pi(n), Object.assign(vi(n), ki(n), xi(n), Ci(n), Ai(n), Ti(n), Ei(n, Cn));
1543
1543
  }, vi = (e) => {
1544
1544
  const t = {};
1545
1545
  return Array.from(e.querySelectorAll("swal-param")).forEach((o) => {
@@ -1572,7 +1572,7 @@ const Cn = ["swal-title", "swal-html", "swal-footer"], yi = (e) => {
1572
1572
  }, Ai = (e) => {
1573
1573
  const t = {}, n = e.querySelector("swal-icon");
1574
1574
  return n && (M(n, ["type", "color"]), n.hasAttribute("type") && (t.icon = n.getAttribute("type")), n.hasAttribute("color") && (t.iconColor = n.getAttribute("color")), t.iconHtml = n.innerHTML), t;
1575
- }, Ei = (e) => {
1575
+ }, Ti = (e) => {
1576
1576
  const t = {}, n = e.querySelector("swal-input");
1577
1577
  n && (M(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")));
1578
1578
  const o = Array.from(e.querySelectorAll("swal-input-option"));
@@ -1584,7 +1584,7 @@ const Cn = ["swal-title", "swal-html", "swal-footer"], yi = (e) => {
1584
1584
  const l = r.innerHTML;
1585
1585
  t.inputOptions[i] = l;
1586
1586
  })), t;
1587
- }, Ti = (e, t) => {
1587
+ }, Ei = (e, t) => {
1588
1588
  const n = {};
1589
1589
  for (const o in t) {
1590
1590
  const r = t[o], i = e.querySelector(r);
@@ -1601,20 +1601,20 @@ const Cn = ["swal-title", "swal-html", "swal-footer"], yi = (e) => {
1601
1601
  Array.from(e.attributes).forEach((n) => {
1602
1602
  t.indexOf(n.name) === -1 && y([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`, `${t.length ? `Allowed attributes are: ${t.join(", ")}` : "To set the value, use HTML within the element."}`]);
1603
1603
  });
1604
- }, An = 10, Bi = (e) => {
1604
+ }, An = 10, $i = (e) => {
1605
1605
  const t = v(), n = d();
1606
1606
  typeof e.willOpen == "function" && e.willOpen(n), a.eventEmitter.emit("willOpen", n);
1607
1607
  const r = window.getComputedStyle(document.body).overflowY;
1608
1608
  ji(t, n, e), setTimeout(() => {
1609
- $i(t, n);
1610
- }, An), Re() && (Si(t, e.scrollbarPadding, r), ws()), !ye() && !a.previousActiveElement && (a.previousActiveElement = document.activeElement), typeof e.didOpen == "function" && setTimeout(() => e.didOpen(n)), a.eventEmitter.emit("didOpen", n), E(t, s["no-transition"]);
1609
+ Bi(t, n);
1610
+ }, An), Re() && (Si(t, e.scrollbarPadding, r), ws()), !ye() && !a.previousActiveElement && (a.previousActiveElement = document.activeElement), typeof e.didOpen == "function" && setTimeout(() => e.didOpen(n)), a.eventEmitter.emit("didOpen", n), T(t, s["no-transition"]);
1611
1611
  }, me = (e) => {
1612
1612
  const t = d();
1613
1613
  if (e.target !== t)
1614
1614
  return;
1615
1615
  const n = v();
1616
1616
  t.removeEventListener("animationend", me), t.removeEventListener("transitionend", me), n.style.overflowY = "auto";
1617
- }, $i = (e, t) => {
1617
+ }, Bi = (e, t) => {
1618
1618
  zt(t) ? (e.style.overflowY = "hidden", t.addEventListener("animationend", me), t.addEventListener("transitionend", me)) : e.style.overflowY = "auto";
1619
1619
  }, Si = (e, t, n) => {
1620
1620
  fs(), t && n !== "hidden" && vs(n), setTimeout(() => {
@@ -1651,7 +1651,7 @@ showLoaderOnConfirm should be used together with preConfirm, see usage example:
1651
1651
  https://sweetalert2.github.io/#ajax-request`), Li(e), typeof e.title == "string" && (e.title = e.title.split(`
1652
1652
  `).join("<br />")), Ar(e);
1653
1653
  }
1654
- let T;
1654
+ let E;
1655
1655
  var re = /* @__PURE__ */ new WeakMap();
1656
1656
  class h {
1657
1657
  /**
@@ -1661,11 +1661,11 @@ class h {
1661
1661
  constructor() {
1662
1662
  if (nr(this, re, void 0), typeof window > "u")
1663
1663
  return;
1664
- T = this;
1664
+ E = this;
1665
1665
  for (var t = arguments.length, n = new Array(t), o = 0; o < t; o++)
1666
1666
  n[o] = arguments[o];
1667
1667
  const r = Object.freeze(this.constructor.argsToParams(n));
1668
- this.params = r, this.isAwaitingPromise = !1, or(re, this, this._main(T.params));
1668
+ this.params = r, this.isAwaitingPromise = !1, or(re, this, this._main(E.params));
1669
1669
  }
1670
1670
  _main(t) {
1671
1671
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
@@ -1677,11 +1677,11 @@ class h {
1677
1677
  isDismissed: !0
1678
1678
  }), Re() && Gt();
1679
1679
  }
1680
- a.currentInstance = T;
1680
+ a.currentInstance = E;
1681
1681
  const o = Di(t, n);
1682
1682
  Oi(o), Object.freeze(o), a.timeout && (a.timeout.stop(), delete a.timeout), clearTimeout(a.restoreFocusTimeout);
1683
- const r = Hi(T);
1684
- return Yt(T, o), w.innerParams.set(T, o), Mi(T, r, o);
1683
+ const r = Hi(E);
1684
+ return Yt(E, o), w.innerParams.set(E, o), Mi(E, r, o);
1685
1685
  }
1686
1686
  // `catch` cannot be the name of a module export, so we define our thenable methods here instead
1687
1687
  then(t) {
@@ -1706,7 +1706,7 @@ const Mi = (e, t, n) => new Promise((o, r) => {
1706
1706
  zs(e, i);
1707
1707
  }, t.closeButton.onclick = () => {
1708
1708
  i(Y.close);
1709
- }, Gs(n, t, i), ss(a, n, i), Bs(e, n), Bi(n), Fi(a, n, i), zi(t, n), setTimeout(() => {
1709
+ }, Gs(n, t, i), ss(a, n, i), $s(e, n), $i(n), Fi(a, n, i), zi(t, n), setTimeout(() => {
1710
1710
  t.container.scrollTop = 0;
1711
1711
  });
1712
1712
  }), Di = (e, t) => {
@@ -1782,7 +1782,7 @@ h.prototype._destroy = yn;
1782
1782
  Object.assign(h, pi);
1783
1783
  Object.keys(Zs).forEach((e) => {
1784
1784
  h[e] = function() {
1785
- return T && T[e] ? T[e](...arguments) : null;
1785
+ return E && E[e] ? E[e](...arguments) : null;
1786
1786
  };
1787
1787
  });
1788
1788
  h.DismissReason = Y;
@@ -1798,13 +1798,40 @@ typeof document < "u" && function(e, t) {
1798
1798
  n.innerText = t;
1799
1799
  }
1800
1800
  }(document, ':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-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-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-background: transparent;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.1s, box-shadow 0.1s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-confirm-button-background-color: #7066e0;--swal2-deny-button-background-color: #dc3741;--swal2-cancel-button-background-color: #6e7881}[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:var(--swal2-title-padding);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:var(--swal2-confirm-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:var(--swal2-deny-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:var(--swal2-cancel-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-outline)}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){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;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:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;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:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;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}}');
1801
- const Zi = () => ({
1801
+ const Ni = (e, t = "black") => {
1802
+ if (!e.trim()) return "";
1803
+ if (Ui(e)) {
1804
+ const i = Wi(e);
1805
+ if (!i) return "";
1806
+ e = i;
1807
+ }
1808
+ const o = e.replace(/fill="(?!none)[^"]*"/gi, `fill="${t}"`).replace(/stroke="(?!none)[^"]*"/gi, `stroke="${t}"`);
1809
+ return `data:image/svg+xml;charset=UTF-8,${encodeURIComponent(o).replace(/'/g, "%27").replace(/"/g, "%22")}`;
1810
+ }, Wi = (e) => {
1811
+ if (!e.startsWith("data:image/svg+xml")) return null;
1812
+ const t = e.indexOf(",");
1813
+ if (t === -1) return null;
1814
+ const n = e.slice(t + 1);
1815
+ if (e.includes(";charset=UTF-8,"))
1816
+ try {
1817
+ return decodeURIComponent(n);
1818
+ } catch {
1819
+ return null;
1820
+ }
1821
+ if (e.includes(";base64,"))
1822
+ try {
1823
+ return atob(n);
1824
+ } catch {
1825
+ return null;
1826
+ }
1827
+ return null;
1828
+ }, Ui = (e) => /^data:image\/(svg\+xml|png|jpeg|jpg|gif|webp);/i.test(e), _i = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='icon%20icon-tabler%20icon-tabler-question-mark'%20viewBox='0%200%2024%2024'%3e%3cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M8%208a3.5%203%200%200%201%203.5%20-3h1a3.5%203%200%200%201%203.5%203a3%203%200%200%201%20-2%203a3%204%200%200%200%20-2%204'%20/%3e%3cpath%20d='M12%2019l0%20.01'%20/%3e%3c/svg%3e", ea = () => ({
1802
1829
  confirm: async (t, n) => {
1803
- var r, i;
1830
+ var r, i, l;
1804
1831
  (await ge.fire({
1805
- imageUrl: (n == null ? void 0 : n.imageUrl) ?? "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20stroke%3D%22none%22%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22/%3E%3Cpath%20d%3D%22M8%208a3.5%203%200%200%201%203.5%20-3h1a3.5%203%200%200%201%203.5%203a3%203%200%200%201%20-2%203a3%204%200%200%200%20-2%204%22/%3E%3Cpath%20d%3D%22M12%2019l0%20.01%22/%3E%3C/svg%3E",
1806
- imageWidth: ((r = n == null ? void 0 : n.image) == null ? void 0 : r.width) ?? 100,
1807
- imageHeight: ((i = n == null ? void 0 : n.image) == null ? void 0 : i.height) ?? 100,
1832
+ imageUrl: (n == null ? void 0 : n.imageUrl) ?? Ni(_i, ((r = n == null ? void 0 : n.image) == null ? void 0 : r.color) ?? "black"),
1833
+ imageWidth: ((i = n == null ? void 0 : n.image) == null ? void 0 : i.width) ?? 50,
1834
+ imageHeight: ((l = n == null ? void 0 : n.image) == null ? void 0 : l.height) ?? 50,
1808
1835
  text: t,
1809
1836
  denyButtonText: (n == null ? void 0 : n.denyText) || "Non",
1810
1837
  confirmButtonText: (n == null ? void 0 : n.confirmText) || "Oui",
@@ -1826,14 +1853,14 @@ const Zi = () => ({
1826
1853
  }
1827
1854
  });
1828
1855
  export {
1829
- Ui as defined,
1830
- Yi as hexToRgb,
1831
- $t as hexToRgba,
1832
- _i as hexToRgbaStyle,
1833
- Ki as isIOS,
1834
- Xi as isMobileDevice,
1856
+ Xi as defined,
1857
+ Gi as hexToRgb,
1858
+ Bt as hexToRgba,
1859
+ Zi as hexToRgbaStyle,
1860
+ Ji as isIOS,
1861
+ Qi as isMobileDevice,
1835
1862
  er as isSmallScreen,
1836
- Wi as key,
1837
- Ni as numberToCssStyle,
1838
- Zi as useConfirm
1863
+ Ki as key,
1864
+ Yi as numberToCssStyle,
1865
+ ea as useConfirm
1839
1866
  };
@@ -1,7 +1,7 @@
1
- (function(m,V){typeof exports=="object"&&typeof module<"u"?V(exports):typeof define=="function"&&define.amd?define(["exports"],V):(m=typeof globalThis<"u"?globalThis:m||self,V(m["elf-js"]={}))})(this,function(m){"use strict";var V=typeof global=="object"&&global&&global.Object===Object&&global,Pn=typeof self=="object"&&self&&self.Object===Object&&self,S=V||Pn||Function("return this")(),ie=S.Symbol,Qe=Object.prototype,Bn=Qe.hasOwnProperty,$n=Qe.toString,Z=ie?ie.toStringTag:void 0;function Sn(e){var t=Bn.call(e,Z),n=e[Z];try{e[Z]=void 0;var o=!0}catch{}var r=$n.call(e);return o&&(t?e[Z]=n:delete e[Z]),r}var jn=Object.prototype,In=jn.toString;function Ln(e){return In.call(e)}var On="[object Null]",Mn="[object Undefined]",et=ie?ie.toStringTag:void 0;function G(e){return e==null?e===void 0?Mn:On:et&&et in Object(e)?Sn(e):Ln(e)}function xe(e){return e!=null&&typeof e=="object"}var Dn=Array.isArray;function tt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Hn="[object AsyncFunction]",Fn="[object Function]",zn="[object GeneratorFunction]",Vn="[object Proxy]";function nt(e){if(!tt(e))return!1;var t=G(e);return t==Fn||t==zn||t==Hn||t==Vn}var Ae=S["__core-js_shared__"],ot=function(){var e=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function qn(e){return!!ot&&ot in e}var Rn=Function.prototype,Nn=Rn.toString;function L(e){if(e!=null){try{return Nn.call(e)}catch{}try{return e+""}catch{}}return""}var Wn=/[\\^$.*+?()[\]{}|]/g,Un=/^\[object .+?Constructor\]$/,_n=Function.prototype,Yn=Object.prototype,Kn=_n.toString,Xn=Yn.hasOwnProperty,Zn=RegExp("^"+Kn.call(Xn).replace(Wn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Gn(e){if(!tt(e)||qn(e))return!1;var t=nt(e)?Zn:Un;return t.test(L(e))}function Jn(e,t){return e==null?void 0:e[t]}function J(e,t){var n=Jn(e,t);return Gn(n)?n:void 0}var Te=J(S,"WeakMap"),Qn=9007199254740991;function rt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Qn}function eo(e){return e!=null&&rt(e.length)&&!nt(e)}var to=Object.prototype;function st(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||to;return e===n}var no="[object Arguments]";function it(e){return xe(e)&&G(e)==no}var at=Object.prototype,oo=at.hasOwnProperty,ro=at.propertyIsEnumerable,so=it(function(){return arguments}())?it:function(e){return xe(e)&&oo.call(e,"callee")&&!ro.call(e,"callee")};function io(){return!1}var lt=typeof m=="object"&&m&&!m.nodeType&&m,ct=lt&&typeof module=="object"&&module&&!module.nodeType&&module,ao=ct&&ct.exports===lt,dt=ao?S.Buffer:void 0,lo=dt?dt.isBuffer:void 0,co=lo||io,uo="[object Arguments]",wo="[object Array]",fo="[object Boolean]",mo="[object Date]",go="[object Error]",ho="[object Function]",po="[object Map]",bo="[object Number]",yo="[object Object]",vo="[object RegExp]",ko="[object Set]",Co="[object String]",xo="[object WeakMap]",Ao="[object ArrayBuffer]",To="[object DataView]",Eo="[object Float32Array]",Po="[object Float64Array]",Bo="[object Int8Array]",$o="[object Int16Array]",So="[object Int32Array]",jo="[object Uint8Array]",Io="[object Uint8ClampedArray]",Lo="[object Uint16Array]",Oo="[object Uint32Array]",f={};f[Eo]=f[Po]=f[Bo]=f[$o]=f[So]=f[jo]=f[Io]=f[Lo]=f[Oo]=!0,f[uo]=f[wo]=f[Ao]=f[fo]=f[To]=f[mo]=f[go]=f[ho]=f[po]=f[bo]=f[yo]=f[vo]=f[ko]=f[Co]=f[xo]=!1;function Mo(e){return xe(e)&&rt(e.length)&&!!f[G(e)]}function Do(e){return function(t){return e(t)}}var ut=typeof m=="object"&&m&&!m.nodeType&&m,Q=ut&&typeof module=="object"&&module&&!module.nodeType&&module,Ho=Q&&Q.exports===ut,Ee=Ho&&V.process,wt=function(){try{var e=Q&&Q.require&&Q.require("util").types;return e||Ee&&Ee.binding&&Ee.binding("util")}catch{}}(),ft=wt&&wt.isTypedArray,Fo=ft?Do(ft):Mo;function zo(e,t){return function(n){return e(t(n))}}var Vo=zo(Object.keys,Object),qo=Object.prototype,Ro=qo.hasOwnProperty;function No(e){if(!st(e))return Vo(e);var t=[];for(var n in Object(e))Ro.call(e,n)&&n!="constructor"&&t.push(n);return t}var Pe=J(S,"Map"),Be=J(S,"DataView"),$e=J(S,"Promise"),Se=J(S,"Set"),mt="[object Map]",Wo="[object Object]",gt="[object Promise]",ht="[object Set]",pt="[object WeakMap]",bt="[object DataView]",Uo=L(Be),_o=L(Pe),Yo=L($e),Ko=L(Se),Xo=L(Te),O=G;(Be&&O(new Be(new ArrayBuffer(1)))!=bt||Pe&&O(new Pe)!=mt||$e&&O($e.resolve())!=gt||Se&&O(new Se)!=ht||Te&&O(new Te)!=pt)&&(O=function(e){var t=G(e),n=t==Wo?e.constructor:void 0,o=n?L(n):"";if(o)switch(o){case Uo:return bt;case _o:return mt;case Yo:return gt;case Ko:return ht;case Xo:return pt}return t});var Zo="[object Map]",Go="[object Set]",Jo=Object.prototype,Qo=Jo.hasOwnProperty;function er(e){if(e==null)return!0;if(eo(e)&&(Dn(e)||typeof e=="string"||typeof e.splice=="function"||co(e)||Fo(e)||so(e)))return!e.length;var t=O(e);if(t==Zo||t==Go)return!e.size;if(st(e))return!No(e).length;for(var n in e)if(Qo.call(e,n))return!1;return!0}function tr(e){return e==null}const nr=e=>{if(er(e==null?void 0:e.toString()))return null;const t=(e==null?void 0:e.toString())??"",o=/calc\(([^)]+)\)/.exec(t);return tr(o==null?void 0:o[1])?t.includes("%")||isNaN(Number(t))?isNaN(parseInt(t))?null:t:parseInt(t)+"px":t},or=e=>btoa(encodeURI(`${e.name??e??"name"}-${e.id??-1}`)),rr=(e,t=!0)=>typeof e<"u"&&(t?e!==null:!0),je=(e,t)=>{if(e=e.replace(/^#/,""),!/^([0-9A-Fa-f]{6})$/.test(e))throw new Error("Invalid hex color code");const n=parseInt(e,16),o=n>>16&255,r=n>>8&255,i=n&255;if(isNaN(o)||isNaN(r)||isNaN(i))throw new Error("Invalid hex color code");return{r:o,g:r,b:i,a:t>1?t/100:t}},sr=(e,t)=>{const{r:n,g:o,b:r,a:i}=je(e,t);return`rgba(${n}, ${o}, ${r}, ${i})`},ir=e=>{const{r:t,g:n,b:o}=je(e,1);return{r:t,g:n,b:o}},ar=()=>{var l;const e=((l=navigator==null?void 0:navigator.userAgentData)==null?void 0:l.platform)??(navigator==null?void 0:navigator.platform),t=navigator.userAgent??"",o=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(e),r=t.includes("Mac")&&"ontouchend"in document,i=t.includes("Safari")&&!t.includes("Chrome")&&!t.includes("Firefox");return o||r&&i},yt=(e=768)=>window.innerWidth<e,lr=()=>/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini|mobile/i.test(navigator.userAgent)&&yt();/*!
1
+ (function(m,V){typeof exports=="object"&&typeof module<"u"?V(exports):typeof define=="function"&&define.amd?define(["exports"],V):(m=typeof globalThis<"u"?globalThis:m||self,V(m["elf-js"]={}))})(this,function(m){"use strict";var V=typeof global=="object"&&global&&global.Object===Object&&global,Pn=typeof self=="object"&&self&&self.Object===Object&&self,S=V||Pn||Function("return this")(),ie=S.Symbol,Qe=Object.prototype,$n=Qe.hasOwnProperty,Bn=Qe.toString,Z=ie?ie.toStringTag:void 0;function Sn(e){var t=$n.call(e,Z),n=e[Z];try{e[Z]=void 0;var o=!0}catch{}var r=Bn.call(e);return o&&(t?e[Z]=n:delete e[Z]),r}var jn=Object.prototype,In=jn.toString;function On(e){return In.call(e)}var Ln="[object Null]",Mn="[object Undefined]",et=ie?ie.toStringTag:void 0;function G(e){return e==null?e===void 0?Mn:Ln:et&&et in Object(e)?Sn(e):On(e)}function xe(e){return e!=null&&typeof e=="object"}var Dn=Array.isArray;function tt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Hn="[object AsyncFunction]",Fn="[object Function]",zn="[object GeneratorFunction]",Vn="[object Proxy]";function nt(e){if(!tt(e))return!1;var t=G(e);return t==Fn||t==zn||t==Hn||t==Vn}var Ae=S["__core-js_shared__"],ot=function(){var e=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function qn(e){return!!ot&&ot in e}var Rn=Function.prototype,Nn=Rn.toString;function O(e){if(e!=null){try{return Nn.call(e)}catch{}try{return e+""}catch{}}return""}var Wn=/[\\^$.*+?()[\]{}|]/g,Un=/^\[object .+?Constructor\]$/,_n=Function.prototype,Yn=Object.prototype,Kn=_n.toString,Xn=Yn.hasOwnProperty,Zn=RegExp("^"+Kn.call(Xn).replace(Wn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Gn(e){if(!tt(e)||qn(e))return!1;var t=nt(e)?Zn:Un;return t.test(O(e))}function Jn(e,t){return e==null?void 0:e[t]}function J(e,t){var n=Jn(e,t);return Gn(n)?n:void 0}var Te=J(S,"WeakMap"),Qn=9007199254740991;function rt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Qn}function eo(e){return e!=null&&rt(e.length)&&!nt(e)}var to=Object.prototype;function st(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||to;return e===n}var no="[object Arguments]";function it(e){return xe(e)&&G(e)==no}var at=Object.prototype,oo=at.hasOwnProperty,ro=at.propertyIsEnumerable,so=it(function(){return arguments}())?it:function(e){return xe(e)&&oo.call(e,"callee")&&!ro.call(e,"callee")};function io(){return!1}var lt=typeof m=="object"&&m&&!m.nodeType&&m,ct=lt&&typeof module=="object"&&module&&!module.nodeType&&module,ao=ct&&ct.exports===lt,dt=ao?S.Buffer:void 0,lo=dt?dt.isBuffer:void 0,co=lo||io,uo="[object Arguments]",wo="[object Array]",fo="[object Boolean]",mo="[object Date]",go="[object Error]",ho="[object Function]",po="[object Map]",bo="[object Number]",yo="[object Object]",vo="[object RegExp]",ko="[object Set]",Co="[object String]",xo="[object WeakMap]",Ao="[object ArrayBuffer]",To="[object DataView]",Eo="[object Float32Array]",Po="[object Float64Array]",$o="[object Int8Array]",Bo="[object Int16Array]",So="[object Int32Array]",jo="[object Uint8Array]",Io="[object Uint8ClampedArray]",Oo="[object Uint16Array]",Lo="[object Uint32Array]",f={};f[Eo]=f[Po]=f[$o]=f[Bo]=f[So]=f[jo]=f[Io]=f[Oo]=f[Lo]=!0,f[uo]=f[wo]=f[Ao]=f[fo]=f[To]=f[mo]=f[go]=f[ho]=f[po]=f[bo]=f[yo]=f[vo]=f[ko]=f[Co]=f[xo]=!1;function Mo(e){return xe(e)&&rt(e.length)&&!!f[G(e)]}function Do(e){return function(t){return e(t)}}var ut=typeof m=="object"&&m&&!m.nodeType&&m,Q=ut&&typeof module=="object"&&module&&!module.nodeType&&module,Ho=Q&&Q.exports===ut,Ee=Ho&&V.process,wt=function(){try{var e=Q&&Q.require&&Q.require("util").types;return e||Ee&&Ee.binding&&Ee.binding("util")}catch{}}(),ft=wt&&wt.isTypedArray,Fo=ft?Do(ft):Mo;function zo(e,t){return function(n){return e(t(n))}}var Vo=zo(Object.keys,Object),qo=Object.prototype,Ro=qo.hasOwnProperty;function No(e){if(!st(e))return Vo(e);var t=[];for(var n in Object(e))Ro.call(e,n)&&n!="constructor"&&t.push(n);return t}var Pe=J(S,"Map"),$e=J(S,"DataView"),Be=J(S,"Promise"),Se=J(S,"Set"),mt="[object Map]",Wo="[object Object]",gt="[object Promise]",ht="[object Set]",pt="[object WeakMap]",bt="[object DataView]",Uo=O($e),_o=O(Pe),Yo=O(Be),Ko=O(Se),Xo=O(Te),L=G;($e&&L(new $e(new ArrayBuffer(1)))!=bt||Pe&&L(new Pe)!=mt||Be&&L(Be.resolve())!=gt||Se&&L(new Se)!=ht||Te&&L(new Te)!=pt)&&(L=function(e){var t=G(e),n=t==Wo?e.constructor:void 0,o=n?O(n):"";if(o)switch(o){case Uo:return bt;case _o:return mt;case Yo:return gt;case Ko:return ht;case Xo:return pt}return t});var Zo="[object Map]",Go="[object Set]",Jo=Object.prototype,Qo=Jo.hasOwnProperty;function er(e){if(e==null)return!0;if(eo(e)&&(Dn(e)||typeof e=="string"||typeof e.splice=="function"||co(e)||Fo(e)||so(e)))return!e.length;var t=L(e);if(t==Zo||t==Go)return!e.size;if(st(e))return!No(e).length;for(var n in e)if(Qo.call(e,n))return!1;return!0}function tr(e){return e==null}const nr=e=>{if(er(e==null?void 0:e.toString()))return null;const t=(e==null?void 0:e.toString())??"",o=/calc\(([^)]+)\)/.exec(t);return tr(o==null?void 0:o[1])?t.includes("%")||isNaN(Number(t))?isNaN(parseInt(t))?null:t:parseInt(t)+"px":t},or=e=>btoa(encodeURI(`${e.name??e??"name"}-${e.id??-1}`)),rr=(e,t=!0)=>typeof e<"u"&&(t?e!==null:!0),je=(e,t)=>{if(e=e.replace(/^#/,""),!/^([0-9A-Fa-f]{6})$/.test(e))throw new Error("Invalid hex color code");const n=parseInt(e,16),o=n>>16&255,r=n>>8&255,i=n&255;if(isNaN(o)||isNaN(r)||isNaN(i))throw new Error("Invalid hex color code");return{r:o,g:r,b:i,a:t>1?t/100:t}},sr=(e,t)=>{const{r:n,g:o,b:r,a:i}=je(e,t);return`rgba(${n}, ${o}, ${r}, ${i})`},ir=e=>{const{r:t,g:n,b:o}=je(e,1);return{r:t,g:n,b:o}},ar=()=>{var l;const e=((l=navigator==null?void 0:navigator.userAgentData)==null?void 0:l.platform)??(navigator==null?void 0:navigator.platform),t=navigator.userAgent??"",o=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(e),r=t.includes("Mac")&&"ontouchend"in document,i=t.includes("Safari")&&!t.includes("Chrome")&&!t.includes("Firefox");return o||r&&i},yt=(e=768)=>window.innerWidth<e,lr=()=>/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini|mobile/i.test(navigator.userAgent)&&yt();/*!
2
2
  * sweetalert2 v11.19.1
3
3
  * Released under the MIT License.
4
- */function vt(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function cr(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function kt(e,t){return e.get(vt(e,t))}function dr(e,t,n){cr(e,t),t.set(e,n)}function ur(e,t,n){return e.set(vt(e,t),n),n}const wr=100,a={},fr=()=>{a.previousActiveElement instanceof HTMLElement?(a.previousActiveElement.focus(),a.previousActiveElement=null):document.body&&document.body.focus()},mr=e=>new Promise(t=>{if(!e)return t();const n=window.scrollX,o=window.scrollY;a.restoreFocusTimeout=setTimeout(()=>{fr(),t()},wr),window.scrollTo(n,o)}),Ct="swal2-",s=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"].reduce((e,t)=>(e[t]=Ct+t,e),{}),ae=["success","warning","info","question","error"].reduce((e,t)=>(e[t]=Ct+t,e),{}),xt="SweetAlert2:",Ie=e=>e.charAt(0).toUpperCase()+e.slice(1),v=e=>{console.warn(`${xt} ${typeof e=="object"?e.join(" "):e}`)},M=e=>{console.error(`${xt} ${e}`)},At=[],gr=e=>{At.includes(e)||(At.push(e),v(e))},Tt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;gr(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},le=e=>typeof e=="function"?e():e,Le=e=>e&&typeof e.toPromise=="function",ee=e=>Le(e)?e.toPromise():Promise.resolve(e),Oe=e=>e&&Promise.resolve(e)===e,k=()=>document.body.querySelector(`.${s.container}`),te=e=>{const t=k();return t?t.querySelector(e):null},x=e=>te(`.${e}`),d=()=>x(s.popup),q=()=>x(s.icon),hr=()=>x(s["icon-content"]),Et=()=>x(s.title),Me=()=>x(s["html-container"]),Pt=()=>x(s.image),De=()=>x(s["progress-steps"]),ce=()=>x(s["validation-message"]),P=()=>te(`.${s.actions} .${s.confirm}`),R=()=>te(`.${s.actions} .${s.cancel}`),D=()=>te(`.${s.actions} .${s.deny}`),pr=()=>x(s["input-label"]),N=()=>te(`.${s.loader}`),ne=()=>x(s.actions),Bt=()=>x(s.footer),de=()=>x(s["timer-progress-bar"]),He=()=>x(s.close),br=`
4
+ */function vt(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function cr(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function kt(e,t){return e.get(vt(e,t))}function dr(e,t,n){cr(e,t),t.set(e,n)}function ur(e,t,n){return e.set(vt(e,t),n),n}const wr=100,a={},fr=()=>{a.previousActiveElement instanceof HTMLElement?(a.previousActiveElement.focus(),a.previousActiveElement=null):document.body&&document.body.focus()},mr=e=>new Promise(t=>{if(!e)return t();const n=window.scrollX,o=window.scrollY;a.restoreFocusTimeout=setTimeout(()=>{fr(),t()},wr),window.scrollTo(n,o)}),Ct="swal2-",s=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"].reduce((e,t)=>(e[t]=Ct+t,e),{}),ae=["success","warning","info","question","error"].reduce((e,t)=>(e[t]=Ct+t,e),{}),xt="SweetAlert2:",Ie=e=>e.charAt(0).toUpperCase()+e.slice(1),v=e=>{console.warn(`${xt} ${typeof e=="object"?e.join(" "):e}`)},M=e=>{console.error(`${xt} ${e}`)},At=[],gr=e=>{At.includes(e)||(At.push(e),v(e))},Tt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;gr(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},le=e=>typeof e=="function"?e():e,Oe=e=>e&&typeof e.toPromise=="function",ee=e=>Oe(e)?e.toPromise():Promise.resolve(e),Le=e=>e&&Promise.resolve(e)===e,k=()=>document.body.querySelector(`.${s.container}`),te=e=>{const t=k();return t?t.querySelector(e):null},x=e=>te(`.${e}`),d=()=>x(s.popup),q=()=>x(s.icon),hr=()=>x(s["icon-content"]),Et=()=>x(s.title),Me=()=>x(s["html-container"]),Pt=()=>x(s.image),De=()=>x(s["progress-steps"]),ce=()=>x(s["validation-message"]),P=()=>te(`.${s.actions} .${s.confirm}`),R=()=>te(`.${s.actions} .${s.cancel}`),D=()=>te(`.${s.actions} .${s.deny}`),pr=()=>x(s["input-label"]),N=()=>te(`.${s.loader}`),ne=()=>x(s.actions),$t=()=>x(s.footer),de=()=>x(s["timer-progress-bar"]),He=()=>x(s.close),br=`
5
5
  a[href],
6
6
  area[href],
7
7
  input:not([disabled]),
@@ -16,7 +16,7 @@
16
16
  audio[controls],
17
17
  video[controls],
18
18
  summary
19
- `,Fe=()=>{const e=d();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort((i,l)=>{const c=parseInt(i.getAttribute("tabindex")||"0"),g=parseInt(l.getAttribute("tabindex")||"0");return c>g?1:c<g?-1:0}),o=e.querySelectorAll(br),r=Array.from(o).filter(i=>i.getAttribute("tabindex")!=="-1");return[...new Set(n.concat(r))].filter(i=>C(i))},ze=()=>$(document.body,s.shown)&&!$(document.body,s["toast-shown"])&&!$(document.body,s["no-backdrop"]),ue=()=>{const e=d();return e?$(e,s.toast):!1},yr=()=>{const e=d();return e?e.hasAttribute("data-loading"):!1},A=(e,t)=>{if(e.textContent="",t){const o=new DOMParser().parseFromString(t,"text/html"),r=o.querySelector("head");r&&Array.from(r.childNodes).forEach(l=>{e.appendChild(l)});const i=o.querySelector("body");i&&Array.from(i.childNodes).forEach(l=>{l instanceof HTMLVideoElement||l instanceof HTMLAudioElement?e.appendChild(l.cloneNode(!0)):e.appendChild(l)})}},$=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let o=0;o<n.length;o++)if(!e.classList.contains(n[o]))return!1;return!0},vr=(e,t)=>{Array.from(e.classList).forEach(n=>{!Object.values(s).includes(n)&&!Object.values(ae).includes(n)&&!Object.values(t.showClass||{}).includes(n)&&e.classList.remove(n)})},T=(e,t,n)=>{if(vr(e,t),!t.customClass)return;const o=t.customClass[n];if(o){if(typeof o!="string"&&!o.forEach){v(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof o}"`);return}u(e,o)}},we=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${s.popup} > .${s[t]}`);case"checkbox":return e.querySelector(`.${s.popup} > .${s.checkbox} input`);case"radio":return e.querySelector(`.${s.popup} > .${s.radio} input:checked`)||e.querySelector(`.${s.popup} > .${s.radio} input:first-child`);case"range":return e.querySelector(`.${s.popup} > .${s.range} input`);default:return e.querySelector(`.${s.popup} > .${s.input}`)}},$t=e=>{if(e.focus(),e.type!=="file"){const t=e.value;e.value="",e.value=t}},St=(e,t,n)=>{!e||!t||(typeof t=="string"&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(o=>{Array.isArray(e)?e.forEach(r=>{n?r.classList.add(o):r.classList.remove(o)}):n?e.classList.add(o):e.classList.remove(o)}))},u=(e,t)=>{St(e,t,!0)},E=(e,t)=>{St(e,t,!1)},j=(e,t)=>{const n=Array.from(e.children);for(let o=0;o<n.length;o++){const r=n[o];if(r instanceof HTMLElement&&$(r,t))return r}},H=(e,t,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||parseInt(n)===0?e.style.setProperty(t,typeof n=="number"?`${n}px`:n):e.style.removeProperty(t)},b=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";e&&(e.style.display=t)},y=e=>{e&&(e.style.display="none")},Ve=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"block";e&&new MutationObserver(()=>{oe(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},jt=(e,t,n,o)=>{const r=e.querySelector(t);r&&r.style.setProperty(n,o)},oe=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";t?b(e,n):y(e)},C=e=>!!(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),kr=()=>!C(P())&&!C(D())&&!C(R()),It=e=>e.scrollHeight>e.clientHeight,Lt=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),o=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||o>0},qe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=de();n&&C(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"},10))},Cr=()=>{const e=de();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=parseInt(window.getComputedStyle(e).width),o=t/n*100;e.style.width=`${o}%`},xr=()=>typeof window>"u"||typeof document>"u",Ar=`
19
+ `,Fe=()=>{const e=d();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort((i,l)=>{const c=parseInt(i.getAttribute("tabindex")||"0"),g=parseInt(l.getAttribute("tabindex")||"0");return c>g?1:c<g?-1:0}),o=e.querySelectorAll(br),r=Array.from(o).filter(i=>i.getAttribute("tabindex")!=="-1");return[...new Set(n.concat(r))].filter(i=>C(i))},ze=()=>B(document.body,s.shown)&&!B(document.body,s["toast-shown"])&&!B(document.body,s["no-backdrop"]),ue=()=>{const e=d();return e?B(e,s.toast):!1},yr=()=>{const e=d();return e?e.hasAttribute("data-loading"):!1},A=(e,t)=>{if(e.textContent="",t){const o=new DOMParser().parseFromString(t,"text/html"),r=o.querySelector("head");r&&Array.from(r.childNodes).forEach(l=>{e.appendChild(l)});const i=o.querySelector("body");i&&Array.from(i.childNodes).forEach(l=>{l instanceof HTMLVideoElement||l instanceof HTMLAudioElement?e.appendChild(l.cloneNode(!0)):e.appendChild(l)})}},B=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let o=0;o<n.length;o++)if(!e.classList.contains(n[o]))return!1;return!0},vr=(e,t)=>{Array.from(e.classList).forEach(n=>{!Object.values(s).includes(n)&&!Object.values(ae).includes(n)&&!Object.values(t.showClass||{}).includes(n)&&e.classList.remove(n)})},T=(e,t,n)=>{if(vr(e,t),!t.customClass)return;const o=t.customClass[n];if(o){if(typeof o!="string"&&!o.forEach){v(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof o}"`);return}u(e,o)}},we=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${s.popup} > .${s[t]}`);case"checkbox":return e.querySelector(`.${s.popup} > .${s.checkbox} input`);case"radio":return e.querySelector(`.${s.popup} > .${s.radio} input:checked`)||e.querySelector(`.${s.popup} > .${s.radio} input:first-child`);case"range":return e.querySelector(`.${s.popup} > .${s.range} input`);default:return e.querySelector(`.${s.popup} > .${s.input}`)}},Bt=e=>{if(e.focus(),e.type!=="file"){const t=e.value;e.value="",e.value=t}},St=(e,t,n)=>{!e||!t||(typeof t=="string"&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(o=>{Array.isArray(e)?e.forEach(r=>{n?r.classList.add(o):r.classList.remove(o)}):n?e.classList.add(o):e.classList.remove(o)}))},u=(e,t)=>{St(e,t,!0)},E=(e,t)=>{St(e,t,!1)},j=(e,t)=>{const n=Array.from(e.children);for(let o=0;o<n.length;o++){const r=n[o];if(r instanceof HTMLElement&&B(r,t))return r}},H=(e,t,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||parseInt(n)===0?e.style.setProperty(t,typeof n=="number"?`${n}px`:n):e.style.removeProperty(t)},b=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";e&&(e.style.display=t)},y=e=>{e&&(e.style.display="none")},Ve=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"block";e&&new MutationObserver(()=>{oe(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},jt=(e,t,n,o)=>{const r=e.querySelector(t);r&&r.style.setProperty(n,o)},oe=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";t?b(e,n):y(e)},C=e=>!!(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),kr=()=>!C(P())&&!C(D())&&!C(R()),It=e=>e.scrollHeight>e.clientHeight,Ot=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),o=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||o>0},qe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=de();n&&C(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"},10))},Cr=()=>{const e=de();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=parseInt(window.getComputedStyle(e).width),o=t/n*100;e.style.width=`${o}%`},xr=()=>typeof window>"u"||typeof document>"u",Ar=`
20
20
  <div aria-labelledby="${s.title}" aria-describedby="${s["html-container"]}" class="${s.popup}" tabindex="-1">
21
21
  <button type="button" class="${s.close}"></button>
22
22
  <ul class="${s["progress-steps"]}"></ul>
@@ -49,7 +49,7 @@
49
49
  <div class="${s["timer-progress-bar"]}"></div>
50
50
  </div>
51
51
  </div>
52
- `.replace(/(^|\n)\s*/g,""),Tr=()=>{const e=k();return e?(e.remove(),E([document.documentElement,document.body],[s["no-backdrop"],s["toast-shown"],s["has-column"]]),!0):!1},F=()=>{a.currentInstance.resetValidationMessage()},Er=()=>{const e=d(),t=j(e,s.input),n=j(e,s.file),o=e.querySelector(`.${s.range} input`),r=e.querySelector(`.${s.range} output`),i=j(e,s.select),l=e.querySelector(`.${s.checkbox} input`),c=j(e,s.textarea);t.oninput=F,n.onchange=F,i.onchange=F,l.onchange=F,c.oninput=F,o.oninput=()=>{F(),r.value=o.value},o.onchange=()=>{F(),r.value=o.value}},Pr=e=>typeof e=="string"?document.querySelector(e):e,Br=e=>{const t=d();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},$r=e=>{window.getComputedStyle(e).direction==="rtl"&&u(k(),s.rtl)},Sr=e=>{const t=Tr();if(xr()){M("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=s.container,t&&u(n,s["no-transition"]),A(n,Ar),n.dataset.swal2Theme=e.theme;const o=Pr(e.target);o.appendChild(n),Br(e),$r(o),Er()},Re=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):typeof e=="object"?jr(e,t):e&&A(t,e)},jr=(e,t)=>{e.jquery?Ir(t,e):A(t,e.toString())},Ir=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},Lr=(e,t)=>{const n=ne(),o=N();!n||!o||(!t.showConfirmButton&&!t.showDenyButton&&!t.showCancelButton?y(n):b(n),T(n,t,"actions"),Or(n,o,t),A(o,t.loaderHtml||""),T(o,t,"loader"))};function Or(e,t,n){const o=P(),r=D(),i=R();!o||!r||!i||(We(o,"confirm",n),We(r,"deny",n),We(i,"cancel",n),Mr(o,r,i,n),n.reverseButtons&&(n.toast?(e.insertBefore(i,o),e.insertBefore(r,o)):(e.insertBefore(i,t),e.insertBefore(r,t),e.insertBefore(o,t))))}function Mr(e,t,n,o){if(!o.buttonsStyling){E([e,t,n],s.styled);return}u([e,t,n],s.styled),o.confirmButtonColor&&e.style.setProperty("--swal2-confirm-button-background-color",o.confirmButtonColor),o.denyButtonColor&&t.style.setProperty("--swal2-deny-button-background-color",o.denyButtonColor),o.cancelButtonColor&&n.style.setProperty("--swal2-cancel-button-background-color",o.cancelButtonColor),Ne(e),Ne(t),Ne(n)}function Ne(e){const t=window.getComputedStyle(e),n=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-outline",t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${n}`))}function We(e,t,n){const o=Ie(t);oe(e,n[`show${o}Button`],"inline-block"),A(e,n[`${t}ButtonText`]||""),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]||""),e.className=s[t],T(e,n,`${t}Button`)}const Dr=(e,t)=>{const n=He();n&&(A(n,t.closeButtonHtml||""),T(n,t,"closeButton"),oe(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))},Hr=(e,t)=>{const n=k();n&&(Fr(n,t.backdrop),zr(n,t.position),Vr(n,t.grow),T(n,t,"container"))};function Fr(e,t){typeof t=="string"?e.style.background=t:t||u([document.documentElement,document.body],s["no-backdrop"])}function zr(e,t){t&&(t in s?u(e,s[t]):(v('The "position" parameter is not valid, defaulting to "center"'),u(e,s.center)))}function Vr(e,t){t&&u(e,s[`grow-${t}`])}var w={innerParams:new WeakMap,domCache:new WeakMap};const qr=["input","file","range","select","radio","checkbox","textarea"],Rr=(e,t)=>{const n=d();if(!n)return;const o=w.innerParams.get(e),r=!o||t.input!==o.input;qr.forEach(i=>{const l=j(n,s[i]);l&&(Ur(i,t.inputAttributes),l.className=s[i],r&&y(l))}),t.input&&(r&&Nr(t),_r(t))},Nr=e=>{if(!e.input)return;if(!h[e.input]){M(`Unexpected type of input! Expected ${Object.keys(h).join(" | ")}, got "${e.input}"`);return}const t=Ot(e.input);if(!t)return;const n=h[e.input](t,e);b(t),e.inputAutoFocus&&setTimeout(()=>{$t(n)})},Wr=e=>{for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name;["id","type","value","style"].includes(n)||e.removeAttribute(n)}},Ur=(e,t)=>{const n=d();if(!n)return;const o=we(n,e);if(o){Wr(o);for(const r in t)o.setAttribute(r,t[r])}},_r=e=>{if(!e.input)return;const t=Ot(e.input);t&&T(t,e,"input")},Ue=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},re=(e,t,n)=>{if(n.inputLabel){const o=document.createElement("label"),r=s["input-label"];o.setAttribute("for",e.id),o.className=r,typeof n.customClass=="object"&&u(o,n.customClass.inputLabel),o.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",o)}},Ot=e=>{const t=d();if(t)return j(t,s[e]||s.input)},fe=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:Oe(t)||v(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},h={};h.text=h.email=h.password=h.number=h.tel=h.url=h.search=h.date=h["datetime-local"]=h.time=h.week=h.month=(e,t)=>(fe(e,t.inputValue),re(e,e,t),Ue(e,t),e.type=t.input,e),h.file=(e,t)=>(re(e,e,t),Ue(e,t),e),h.range=(e,t)=>{const n=e.querySelector("input"),o=e.querySelector("output");return fe(n,t.inputValue),n.type=t.input,fe(o,t.inputValue),re(n,e,t),e},h.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");A(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return re(e,e,t),e},h.radio=e=>(e.textContent="",e),h.checkbox=(e,t)=>{const n=we(d(),"checkbox");n.value="1",n.checked=!!t.inputValue;const o=e.querySelector("span");return A(o,t.inputPlaceholder||t.inputLabel),n},h.textarea=(e,t)=>{fe(e,t.inputValue),Ue(e,t),re(e,e,t);const n=o=>parseInt(window.getComputedStyle(o).marginLeft)+parseInt(window.getComputedStyle(o).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const o=parseInt(window.getComputedStyle(d()).width),r=()=>{if(!document.body.contains(e))return;const i=e.offsetWidth+n(e);i>o?d().style.width=`${i}px`:H(d(),"width",t.width)};new MutationObserver(r).observe(e,{attributes:!0,attributeFilter:["style"]})}}),e};const Yr=(e,t)=>{const n=Me();n&&(Ve(n),T(n,t,"htmlContainer"),t.html?(Re(t.html,n),b(n,"block")):t.text?(n.textContent=t.text,b(n,"block")):y(n),Rr(e,t))},Kr=(e,t)=>{const n=Bt();n&&(Ve(n),oe(n,t.footer,"block"),t.footer&&Re(t.footer,n),T(n,t,"footer"))},Xr=(e,t)=>{const n=w.innerParams.get(e),o=q();if(!o)return;if(n&&t.icon===n.icon){Ht(o,t),Mt(o,t);return}if(!t.icon&&!t.iconHtml){y(o);return}if(t.icon&&Object.keys(ae).indexOf(t.icon)===-1){M(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),y(o);return}b(o),Ht(o,t),Mt(o,t),u(o,t.showClass&&t.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",Dt)},Mt=(e,t)=>{for(const[n,o]of Object.entries(ae))t.icon!==n&&E(e,o);u(e,t.icon&&ae[t.icon]),Jr(e,t),Dt(),T(e,t,"icon")},Dt=()=>{const e=d();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let o=0;o<n.length;o++)n[o].style.backgroundColor=t},Zr=`
52
+ `.replace(/(^|\n)\s*/g,""),Tr=()=>{const e=k();return e?(e.remove(),E([document.documentElement,document.body],[s["no-backdrop"],s["toast-shown"],s["has-column"]]),!0):!1},F=()=>{a.currentInstance.resetValidationMessage()},Er=()=>{const e=d(),t=j(e,s.input),n=j(e,s.file),o=e.querySelector(`.${s.range} input`),r=e.querySelector(`.${s.range} output`),i=j(e,s.select),l=e.querySelector(`.${s.checkbox} input`),c=j(e,s.textarea);t.oninput=F,n.onchange=F,i.onchange=F,l.onchange=F,c.oninput=F,o.oninput=()=>{F(),r.value=o.value},o.onchange=()=>{F(),r.value=o.value}},Pr=e=>typeof e=="string"?document.querySelector(e):e,$r=e=>{const t=d();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},Br=e=>{window.getComputedStyle(e).direction==="rtl"&&u(k(),s.rtl)},Sr=e=>{const t=Tr();if(xr()){M("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=s.container,t&&u(n,s["no-transition"]),A(n,Ar),n.dataset.swal2Theme=e.theme;const o=Pr(e.target);o.appendChild(n),$r(e),Br(o),Er()},Re=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):typeof e=="object"?jr(e,t):e&&A(t,e)},jr=(e,t)=>{e.jquery?Ir(t,e):A(t,e.toString())},Ir=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},Or=(e,t)=>{const n=ne(),o=N();!n||!o||(!t.showConfirmButton&&!t.showDenyButton&&!t.showCancelButton?y(n):b(n),T(n,t,"actions"),Lr(n,o,t),A(o,t.loaderHtml||""),T(o,t,"loader"))};function Lr(e,t,n){const o=P(),r=D(),i=R();!o||!r||!i||(We(o,"confirm",n),We(r,"deny",n),We(i,"cancel",n),Mr(o,r,i,n),n.reverseButtons&&(n.toast?(e.insertBefore(i,o),e.insertBefore(r,o)):(e.insertBefore(i,t),e.insertBefore(r,t),e.insertBefore(o,t))))}function Mr(e,t,n,o){if(!o.buttonsStyling){E([e,t,n],s.styled);return}u([e,t,n],s.styled),o.confirmButtonColor&&e.style.setProperty("--swal2-confirm-button-background-color",o.confirmButtonColor),o.denyButtonColor&&t.style.setProperty("--swal2-deny-button-background-color",o.denyButtonColor),o.cancelButtonColor&&n.style.setProperty("--swal2-cancel-button-background-color",o.cancelButtonColor),Ne(e),Ne(t),Ne(n)}function Ne(e){const t=window.getComputedStyle(e),n=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-outline",t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${n}`))}function We(e,t,n){const o=Ie(t);oe(e,n[`show${o}Button`],"inline-block"),A(e,n[`${t}ButtonText`]||""),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]||""),e.className=s[t],T(e,n,`${t}Button`)}const Dr=(e,t)=>{const n=He();n&&(A(n,t.closeButtonHtml||""),T(n,t,"closeButton"),oe(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))},Hr=(e,t)=>{const n=k();n&&(Fr(n,t.backdrop),zr(n,t.position),Vr(n,t.grow),T(n,t,"container"))};function Fr(e,t){typeof t=="string"?e.style.background=t:t||u([document.documentElement,document.body],s["no-backdrop"])}function zr(e,t){t&&(t in s?u(e,s[t]):(v('The "position" parameter is not valid, defaulting to "center"'),u(e,s.center)))}function Vr(e,t){t&&u(e,s[`grow-${t}`])}var w={innerParams:new WeakMap,domCache:new WeakMap};const qr=["input","file","range","select","radio","checkbox","textarea"],Rr=(e,t)=>{const n=d();if(!n)return;const o=w.innerParams.get(e),r=!o||t.input!==o.input;qr.forEach(i=>{const l=j(n,s[i]);l&&(Ur(i,t.inputAttributes),l.className=s[i],r&&y(l))}),t.input&&(r&&Nr(t),_r(t))},Nr=e=>{if(!e.input)return;if(!h[e.input]){M(`Unexpected type of input! Expected ${Object.keys(h).join(" | ")}, got "${e.input}"`);return}const t=Lt(e.input);if(!t)return;const n=h[e.input](t,e);b(t),e.inputAutoFocus&&setTimeout(()=>{Bt(n)})},Wr=e=>{for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name;["id","type","value","style"].includes(n)||e.removeAttribute(n)}},Ur=(e,t)=>{const n=d();if(!n)return;const o=we(n,e);if(o){Wr(o);for(const r in t)o.setAttribute(r,t[r])}},_r=e=>{if(!e.input)return;const t=Lt(e.input);t&&T(t,e,"input")},Ue=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},re=(e,t,n)=>{if(n.inputLabel){const o=document.createElement("label"),r=s["input-label"];o.setAttribute("for",e.id),o.className=r,typeof n.customClass=="object"&&u(o,n.customClass.inputLabel),o.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",o)}},Lt=e=>{const t=d();if(t)return j(t,s[e]||s.input)},fe=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:Le(t)||v(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},h={};h.text=h.email=h.password=h.number=h.tel=h.url=h.search=h.date=h["datetime-local"]=h.time=h.week=h.month=(e,t)=>(fe(e,t.inputValue),re(e,e,t),Ue(e,t),e.type=t.input,e),h.file=(e,t)=>(re(e,e,t),Ue(e,t),e),h.range=(e,t)=>{const n=e.querySelector("input"),o=e.querySelector("output");return fe(n,t.inputValue),n.type=t.input,fe(o,t.inputValue),re(n,e,t),e},h.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");A(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return re(e,e,t),e},h.radio=e=>(e.textContent="",e),h.checkbox=(e,t)=>{const n=we(d(),"checkbox");n.value="1",n.checked=!!t.inputValue;const o=e.querySelector("span");return A(o,t.inputPlaceholder||t.inputLabel),n},h.textarea=(e,t)=>{fe(e,t.inputValue),Ue(e,t),re(e,e,t);const n=o=>parseInt(window.getComputedStyle(o).marginLeft)+parseInt(window.getComputedStyle(o).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const o=parseInt(window.getComputedStyle(d()).width),r=()=>{if(!document.body.contains(e))return;const i=e.offsetWidth+n(e);i>o?d().style.width=`${i}px`:H(d(),"width",t.width)};new MutationObserver(r).observe(e,{attributes:!0,attributeFilter:["style"]})}}),e};const Yr=(e,t)=>{const n=Me();n&&(Ve(n),T(n,t,"htmlContainer"),t.html?(Re(t.html,n),b(n,"block")):t.text?(n.textContent=t.text,b(n,"block")):y(n),Rr(e,t))},Kr=(e,t)=>{const n=$t();n&&(Ve(n),oe(n,t.footer,"block"),t.footer&&Re(t.footer,n),T(n,t,"footer"))},Xr=(e,t)=>{const n=w.innerParams.get(e),o=q();if(!o)return;if(n&&t.icon===n.icon){Ht(o,t),Mt(o,t);return}if(!t.icon&&!t.iconHtml){y(o);return}if(t.icon&&Object.keys(ae).indexOf(t.icon)===-1){M(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),y(o);return}b(o),Ht(o,t),Mt(o,t),u(o,t.showClass&&t.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",Dt)},Mt=(e,t)=>{for(const[n,o]of Object.entries(ae))t.icon!==n&&E(e,o);u(e,t.icon&&ae[t.icon]),Jr(e,t),Dt(),T(e,t,"icon")},Dt=()=>{const e=d();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let o=0;o<n.length;o++)n[o].style.backgroundColor=t},Zr=`
53
53
  <div class="swal2-success-circular-line-left"></div>
54
54
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
55
55
  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
@@ -59,7 +59,7 @@
59
59
  <span class="swal2-x-mark-line-left"></span>
60
60
  <span class="swal2-x-mark-line-right"></span>
61
61
  </span>
62
- `,Ht=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,o="";t.iconHtml?o=Ft(t.iconHtml):t.icon==="success"?(o=Zr,n=n.replace(/ style=".*?"/g,"")):t.icon==="error"?o=Gr:t.icon&&(o=Ft({question:"?",warning:"!",info:"i"}[t.icon])),n.trim()!==o.trim()&&A(e,o)},Jr=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])jt(e,n,"background-color",t.iconColor);jt(e,".swal2-success-ring","border-color",t.iconColor)}},Ft=e=>`<div class="${s["icon-content"]}">${e}</div>`,Qr=(e,t)=>{const n=Pt();if(n){if(!t.imageUrl){y(n);return}b(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),H(n,"width",t.imageWidth),H(n,"height",t.imageHeight),n.className=s.image,T(n,t,"image")}};let _e=!1,zt=0,Vt=0,qt=0,Rt=0;const es=e=>{e.addEventListener("mousedown",me),document.body.addEventListener("mousemove",ge),e.addEventListener("mouseup",he),e.addEventListener("touchstart",me),document.body.addEventListener("touchmove",ge),e.addEventListener("touchend",he)},ts=e=>{e.removeEventListener("mousedown",me),document.body.removeEventListener("mousemove",ge),e.removeEventListener("mouseup",he),e.removeEventListener("touchstart",me),document.body.removeEventListener("touchmove",ge),e.removeEventListener("touchend",he)},me=e=>{const t=d();if(e.target===t||q().contains(e.target)){_e=!0;const n=Nt(e);zt=n.clientX,Vt=n.clientY,qt=parseInt(t.style.insetInlineStart)||0,Rt=parseInt(t.style.insetBlockStart)||0,u(t,"swal2-dragging")}},ge=e=>{const t=d();if(_e){let{clientX:n,clientY:o}=Nt(e);t.style.insetInlineStart=`${qt+(n-zt)}px`,t.style.insetBlockStart=`${Rt+(o-Vt)}px`}},he=()=>{const e=d();_e=!1,E(e,"swal2-dragging")},Nt=e=>{let t=0,n=0;return e.type.startsWith("mouse")?(t=e.clientX,n=e.clientY):e.type.startsWith("touch")&&(t=e.touches[0].clientX,n=e.touches[0].clientY),{clientX:t,clientY:n}},ns=(e,t)=>{const n=k(),o=d();if(!(!n||!o)){if(t.toast){H(n,"width",t.width),o.style.width="100%";const r=N();r&&o.insertBefore(r,q())}else H(o,"width",t.width);H(o,"padding",t.padding),t.color&&(o.style.color=t.color),t.background&&(o.style.background=t.background),y(ce()),os(o,t),t.draggable&&!t.toast?(u(o,s.draggable),es(o)):(E(o,s.draggable),ts(o))}},os=(e,t)=>{const n=t.showClass||{};e.className=`${s.popup} ${C(e)?n.popup:""}`,t.toast?(u([document.documentElement,document.body],s["toast-shown"]),u(e,s.toast)):u(e,s.modal),T(e,t,"popup"),typeof t.customClass=="string"&&u(e,t.customClass),t.icon&&u(e,s[`icon-${t.icon}`])},rs=(e,t)=>{const n=De();if(!n)return;const{progressSteps:o,currentProgressStep:r}=t;if(!o||o.length===0||r===void 0){y(n);return}b(n),n.textContent="",r>=o.length&&v("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),o.forEach((i,l)=>{const c=ss(i);if(n.appendChild(c),l===r&&u(c,s["active-progress-step"]),l!==o.length-1){const g=is(t);n.appendChild(g)}})},ss=e=>{const t=document.createElement("li");return u(t,s["progress-step"]),A(t,e),t},is=e=>{const t=document.createElement("li");return u(t,s["progress-step-line"]),e.progressStepsDistance&&H(t,"width",e.progressStepsDistance),t},as=(e,t)=>{const n=Et();n&&(Ve(n),oe(n,t.title||t.titleText,"block"),t.title&&Re(t.title,n),t.titleText&&(n.innerText=t.titleText),T(n,t,"title"))},Wt=(e,t)=>{ns(e,t),Hr(e,t),rs(e,t),Xr(e,t),Qr(e,t),as(e,t),Dr(e,t),Yr(e,t),Lr(e,t),Kr(e,t);const n=d();typeof t.didRender=="function"&&n&&t.didRender(n),a.eventEmitter.emit("didRender",n)},ls=()=>C(d()),Ut=()=>{var e;return(e=P())===null||e===void 0?void 0:e.click()},cs=()=>{var e;return(e=D())===null||e===void 0?void 0:e.click()},ds=()=>{var e;return(e=R())===null||e===void 0?void 0:e.click()},W=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),_t=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},us=(e,t,n)=>{_t(e),t.toast||(e.keydownHandler=o=>fs(t,o,n),e.keydownTarget=t.keydownListenerCapture?window:d(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Ye=(e,t)=>{var n;const o=Fe();if(o.length){e=e+t,e===-2&&(e=o.length-1),e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();return}(n=d())===null||n===void 0||n.focus()},Yt=["ArrowRight","ArrowDown"],ws=["ArrowLeft","ArrowUp"],fs=(e,t,n)=>{e&&(t.isComposing||t.keyCode===229||(e.stopKeydownPropagation&&t.stopPropagation(),t.key==="Enter"?ms(t,e):t.key==="Tab"?gs(t):[...Yt,...ws].includes(t.key)?hs(t.key):t.key==="Escape"&&ps(t,e,n)))},ms=(e,t)=>{if(!le(t.allowEnterKey))return;const n=we(d(),t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;Ut(),e.preventDefault()}},gs=e=>{const t=e.target,n=Fe();let o=-1;for(let r=0;r<n.length;r++)if(t===n[r]){o=r;break}e.shiftKey?Ye(o,-1):Ye(o,1),e.stopPropagation(),e.preventDefault()},hs=e=>{const t=ne(),n=P(),o=D(),r=R();if(!t||!n||!o||!r)return;const i=[n,o,r];if(document.activeElement instanceof HTMLElement&&!i.includes(document.activeElement))return;const l=Yt.includes(e)?"nextElementSibling":"previousElementSibling";let c=document.activeElement;if(c){for(let g=0;g<t.children.length;g++){if(c=c[l],!c)return;if(c instanceof HTMLButtonElement&&C(c))break}c instanceof HTMLButtonElement&&c.focus()}},ps=(e,t,n)=>{le(t.allowEscapeKey)&&(e.preventDefault(),n(W.esc))};var U={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const bs=()=>{const e=k();Array.from(document.body.children).forEach(n=>{n.contains(e)||(n.hasAttribute("aria-hidden")&&n.setAttribute("data-previous-aria-hidden",n.getAttribute("aria-hidden")||""),n.setAttribute("aria-hidden","true"))})},Kt=()=>{Array.from(document.body.children).forEach(t=>{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")})},Xt=typeof window<"u"&&!!window.GestureEvent,ys=()=>{if(Xt&&!$(document.body,s.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,u(document.body,s.iosfix),vs()}},vs=()=>{const e=k();if(!e)return;let t;e.ontouchstart=n=>{t=ks(n)},e.ontouchmove=n=>{t&&(n.preventDefault(),n.stopPropagation())}},ks=e=>{const t=e.target,n=k(),o=Me();return!n||!o||Cs(e)||xs(e)?!1:t===n||!It(n)&&t instanceof HTMLElement&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"&&!(It(o)&&o.contains(t))},Cs=e=>e.touches&&e.touches.length&&e.touches[0].touchType==="stylus",xs=e=>e.touches&&e.touches.length>1,As=()=>{if($(document.body,s.iosfix)){const e=parseInt(document.body.style.top,10);E(document.body,s.iosfix),document.body.style.top="",document.body.scrollTop=e*-1}},Ts=()=>{const e=document.createElement("div");e.className=s["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let _=null;const Es=e=>{_===null&&(document.body.scrollHeight>window.innerHeight||e==="scroll")&&(_=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${_+Ts()}px`)},Ps=()=>{_!==null&&(document.body.style.paddingRight=`${_}px`,_=null)};function Zt(e,t,n,o){ue()?Jt(e,o):(mr(n).then(()=>Jt(e,o)),_t(a)),Xt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),ze()&&(Ps(),As(),Kt()),Bs()}function Bs(){E([document.documentElement,document.body],[s.shown,s["height-auto"],s["no-backdrop"],s["toast-shown"]])}function I(e){e=Ss(e);const t=U.swalPromiseResolve.get(this),n=$s(this);this.isAwaitingPromise?e.isDismissed||(se(this),t(e)):n&&t(e)}const $s=e=>{const t=d();if(!t)return!1;const n=w.innerParams.get(e);if(!n||$(t,n.hideClass.popup))return!1;E(t,n.showClass.popup),u(t,n.hideClass.popup);const o=k();return E(o,n.showClass.backdrop),u(o,n.hideClass.backdrop),js(e,t,n),!0};function Gt(e){const t=U.swalPromiseReject.get(this);se(this),t&&t(e)}const se=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,w.innerParams.get(e)||e._destroy())},Ss=e=>typeof e>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),js=(e,t,n)=>{var o;const r=k(),i=Lt(t);typeof n.willClose=="function"&&n.willClose(t),(o=a.eventEmitter)===null||o===void 0||o.emit("willClose",t),i?Is(e,t,r,n.returnFocus,n.didClose):Zt(e,r,n.returnFocus,n.didClose)},Is=(e,t,n,o,r)=>{a.swalCloseEventFinishedCallback=Zt.bind(null,e,n,o,r);const i=function(l){if(l.target===t){var c;(c=a.swalCloseEventFinishedCallback)===null||c===void 0||c.call(a),delete a.swalCloseEventFinishedCallback,t.removeEventListener("animationend",i),t.removeEventListener("transitionend",i)}};t.addEventListener("animationend",i),t.addEventListener("transitionend",i)},Jt=(e,t)=>{setTimeout(()=>{var n;typeof t=="function"&&t.bind(e.params)(),(n=a.eventEmitter)===null||n===void 0||n.emit("didClose"),e._destroy&&e._destroy()})},Y=e=>{let t=d();if(t||new Ce,t=d(),!t)return;const n=N();ue()?y(q()):Ls(t,e),b(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},Ls=(e,t)=>{const n=ne(),o=N();!n||!o||(!t&&C(P())&&(t=P()),b(n),t&&(y(t),o.setAttribute("data-button-to-replace",t.className),n.insertBefore(o,t)),u([e,n],s.loading))},Os=(e,t)=>{t.input==="select"||t.input==="radio"?zs(e,t):["text","email","number","tel","textarea"].some(n=>n===t.input)&&(Le(t.inputValue)||Oe(t.inputValue))&&(Y(P()),Vs(e,t))},Ms=(e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return Ds(n);case"radio":return Hs(n);case"file":return Fs(n);default:return t.inputAutoTrim?n.value.trim():n.value}},Ds=e=>e.checked?1:0,Hs=e=>e.checked?e.value:null,Fs=e=>e.files&&e.files.length?e.getAttribute("multiple")!==null?e.files:e.files[0]:null,zs=(e,t)=>{const n=d();if(!n)return;const o=r=>{t.input==="select"?qs(n,pe(r),t):t.input==="radio"&&Rs(n,pe(r),t)};Le(t.inputOptions)||Oe(t.inputOptions)?(Y(P()),ee(t.inputOptions).then(r=>{e.hideLoading(),o(r)})):typeof t.inputOptions=="object"?o(t.inputOptions):M(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`)},Vs=(e,t)=>{const n=e.getInput();n&&(y(n),ee(t.inputValue).then(o=>{n.value=t.input==="number"?`${parseFloat(o)||0}`:`${o}`,b(n),n.focus(),e.hideLoading()}).catch(o=>{M(`Error in inputValue promise: ${o}`),n.value="",b(n),n.focus(),e.hideLoading()}))};function qs(e,t,n){const o=j(e,s.select);if(!o)return;const r=(i,l,c)=>{const g=document.createElement("option");g.value=c,A(g,l),g.selected=Qt(c,n.inputValue),i.appendChild(g)};t.forEach(i=>{const l=i[0],c=i[1];if(Array.isArray(c)){const g=document.createElement("optgroup");g.label=l,g.disabled=!1,o.appendChild(g),c.forEach(X=>r(g,X[1],X[0]))}else r(o,c,l)}),o.focus()}function Rs(e,t,n){const o=j(e,s.radio);if(!o)return;t.forEach(i=>{const l=i[0],c=i[1],g=document.createElement("input"),X=document.createElement("label");g.type="radio",g.name=s.radio,g.value=l,Qt(l,n.inputValue)&&(g.checked=!0);const Je=document.createElement("span");A(Je,c),Je.className=s.label,X.appendChild(g),X.appendChild(Je),o.appendChild(X)});const r=o.querySelectorAll("input");r.length&&r[0].focus()}const pe=e=>{const t=[];return e instanceof Map?e.forEach((n,o)=>{let r=n;typeof r=="object"&&(r=pe(r)),t.push([o,r])}):Object.keys(e).forEach(n=>{let o=e[n];typeof o=="object"&&(o=pe(o)),t.push([n,o])}),t},Qt=(e,t)=>!!t&&t.toString()===e.toString(),Ns=e=>{const t=w.innerParams.get(e);e.disableButtons(),t.input?en(e,"confirm"):Xe(e,!0)},Ws=e=>{const t=w.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?en(e,"deny"):Ke(e,!1)},Us=(e,t)=>{e.disableButtons(),t(W.cancel)},en=(e,t)=>{const n=w.innerParams.get(e);if(!n.input){M(`The "input" parameter is needed to be set when using returnInputValueOn${Ie(t)}`);return}const o=e.getInput(),r=Ms(e,n);n.inputValidator?_s(e,r,t):o&&!o.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||o.validationMessage)):t==="deny"?Ke(e,r):Xe(e,r)},_s=(e,t,n)=>{const o=w.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>ee(o.inputValidator(t,o.validationMessage))).then(i=>{e.enableButtons(),e.enableInput(),i?e.showValidationMessage(i):n==="deny"?Ke(e,t):Xe(e,t)})},Ke=(e,t)=>{const n=w.innerParams.get(e||void 0);n.showLoaderOnDeny&&Y(D()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>ee(n.preDeny(t,n.validationMessage))).then(r=>{r===!1?(e.hideLoading(),se(e)):e.close({isDenied:!0,value:typeof r>"u"?t:r})}).catch(r=>nn(e||void 0,r))):e.close({isDenied:!0,value:t})},tn=(e,t)=>{e.close({isConfirmed:!0,value:t})},nn=(e,t)=>{e.rejectPromise(t)},Xe=(e,t)=>{const n=w.innerParams.get(e||void 0);n.showLoaderOnConfirm&&Y(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>ee(n.preConfirm(t,n.validationMessage))).then(r=>{C(ce())||r===!1?(e.hideLoading(),se(e)):tn(e,typeof r>"u"?t:r)}).catch(r=>nn(e||void 0,r))):tn(e,t)};function be(){const e=w.innerParams.get(this);if(!e)return;const t=w.domCache.get(this);y(t.loader),ue()?e.icon&&b(q()):Ys(t),E([t.popup,t.actions],s.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Ys=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?b(t[0],"inline-block"):kr()&&y(e.actions)};function on(){const e=w.innerParams.get(this),t=w.domCache.get(this);return t?we(t.popup,e.input):null}function rn(e,t,n){const o=w.domCache.get(e);t.forEach(r=>{o[r].disabled=n})}function sn(e,t){const n=d();if(!(!n||!e))if(e.type==="radio"){const o=n.querySelectorAll(`[name="${s.radio}"]`);for(let r=0;r<o.length;r++)o[r].disabled=t}else e.disabled=t}function an(){rn(this,["confirmButton","denyButton","cancelButton"],!1)}function ln(){rn(this,["confirmButton","denyButton","cancelButton"],!0)}function cn(){sn(this.getInput(),!1)}function dn(){sn(this.getInput(),!0)}function un(e){const t=w.domCache.get(this),n=w.innerParams.get(this);A(t.validationMessage,e),t.validationMessage.className=s["validation-message"],n.customClass&&n.customClass.validationMessage&&u(t.validationMessage,n.customClass.validationMessage),b(t.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid","true"),o.setAttribute("aria-describedby",s["validation-message"]),$t(o),u(o,s.inputerror))}function wn(){const e=w.domCache.get(this);e.validationMessage&&y(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),E(t,s.inputerror))}const K={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},Ks=["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"],Xs={allowEnterKey:void 0},Zs=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],fn=e=>Object.prototype.hasOwnProperty.call(K,e),mn=e=>Ks.indexOf(e)!==-1,gn=e=>Xs[e],Gs=e=>{fn(e)||v(`Unknown parameter "${e}"`)},Js=e=>{Zs.includes(e)&&v(`The parameter "${e}" is incompatible with toasts`)},Qs=e=>{const t=gn(e);t&&Tt(e,t)},hn=e=>{e.backdrop===!1&&e.allowOutsideClick&&v('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","borderless","embed-iframe"].includes(e.theme)&&v(`Invalid theme "${e.theme}". Expected "light", "dark", "auto", "borderless", or "embed-iframe"`);for(const t in e)Gs(t),e.toast&&Js(t),Qs(t)};function pn(e){const t=k(),n=d(),o=w.innerParams.get(this);if(!n||$(n,o.hideClass.popup)){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.");return}const r=ei(e),i=Object.assign({},o,r);hn(i),t.dataset.swal2Theme=i.theme,Wt(this,i),w.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const ei=e=>{const t={};return Object.keys(e).forEach(n=>{mn(n)?t[n]=e[n]:v(`Invalid parameter to update: ${n}`)}),t};function bn(){const e=w.domCache.get(this),t=w.innerParams.get(this);if(!t){yn(this);return}e.popup&&a.swalCloseEventFinishedCallback&&(a.swalCloseEventFinishedCallback(),delete a.swalCloseEventFinishedCallback),typeof t.didDestroy=="function"&&t.didDestroy(),a.eventEmitter.emit("didDestroy"),ti(this)}const ti=e=>{yn(e),delete e.params,delete a.keydownHandler,delete a.keydownTarget,delete a.currentInstance},yn=e=>{e.isAwaitingPromise?(Ze(w,e),e.isAwaitingPromise=!0):(Ze(U,e),Ze(w,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)},Ze=(e,t)=>{for(const n in e)e[n].delete(t)};var ni=Object.freeze({__proto__:null,_destroy:bn,close:I,closeModal:I,closePopup:I,closeToast:I,disableButtons:ln,disableInput:dn,disableLoading:be,enableButtons:an,enableInput:cn,getInput:on,handleAwaitingPromise:se,hideLoading:be,rejectPromise:Gt,resetValidationMessage:wn,showValidationMessage:un,update:pn});const oi=(e,t,n)=>{e.toast?ri(e,t,n):(ii(t),ai(t),li(e,t,n))},ri=(e,t,n)=>{t.popup.onclick=()=>{e&&(si(e)||e.timer||e.input)||n(W.close)}},si=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let ye=!1;const ii=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(ye=!0)}}},ai=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(n){e.popup.onmouseup=()=>{},(n.target===e.popup||n.target instanceof HTMLElement&&e.popup.contains(n.target))&&(ye=!0)}}},li=(e,t,n)=>{t.container.onclick=o=>{if(ye){ye=!1;return}o.target===t.container&&le(e.allowOutsideClick)&&n(W.backdrop)}},ci=e=>typeof e=="object"&&e.jquery,vn=e=>e instanceof Element||ci(e),di=e=>{const t={};return typeof e[0]=="object"&&!vn(e[0])?Object.assign(t,e[0]):["title","html","icon"].forEach((n,o)=>{const r=e[o];typeof r=="string"||vn(r)?t[n]=r:r!==void 0&&M(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`)}),t};function ui(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new this(...t)}function wi(e){class t extends this{_main(o,r){return super._main(o,Object.assign({},e,r))}}return t}const fi=()=>a.timeout&&a.timeout.getTimerLeft(),kn=()=>{if(a.timeout)return Cr(),a.timeout.stop()},Cn=()=>{if(a.timeout){const e=a.timeout.start();return qe(e),e}},mi=()=>{const e=a.timeout;return e&&(e.running?kn():Cn())},gi=e=>{if(a.timeout){const t=a.timeout.increase(e);return qe(t,!0),t}},hi=()=>!!(a.timeout&&a.timeout.isRunning());let xn=!1;const Ge={};function pi(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";Ge[e]=this,xn||(document.body.addEventListener("click",bi),xn=!0)}const bi=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const n in Ge){const o=t.getAttribute(n);if(o){Ge[n].fire({template:o});return}}};class yi{constructor(){this.events={}}_getHandlersByEventName(t){return typeof this.events[t]>"u"&&(this.events[t]=[]),this.events[t]}on(t,n){const o=this._getHandlersByEventName(t);o.includes(n)||o.push(n)}once(t,n){var o=this;const r=function(){o.removeListener(t,r);for(var i=arguments.length,l=new Array(i),c=0;c<i;c++)l[c]=arguments[c];n.apply(o,l)};this.on(t,r)}emit(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];this._getHandlersByEventName(t).forEach(i=>{try{i.apply(this,o)}catch(l){console.error(l)}})}removeListener(t,n){const o=this._getHandlersByEventName(t),r=o.indexOf(n);r>-1&&o.splice(r,1)}removeAllListeners(t){this.events[t]!==void 0&&(this.events[t].length=0)}reset(){this.events={}}}a.eventEmitter=new yi;var vi=Object.freeze({__proto__:null,argsToParams:di,bindClickHandler:pi,clickCancel:ds,clickConfirm:Ut,clickDeny:cs,enableLoading:Y,fire:ui,getActions:ne,getCancelButton:R,getCloseButton:He,getConfirmButton:P,getContainer:k,getDenyButton:D,getFocusableElements:Fe,getFooter:Bt,getHtmlContainer:Me,getIcon:q,getIconContent:hr,getImage:Pt,getInputLabel:pr,getLoader:N,getPopup:d,getProgressSteps:De,getTimerLeft:fi,getTimerProgressBar:de,getTitle:Et,getValidationMessage:ce,increaseTimer:gi,isDeprecatedParameter:gn,isLoading:yr,isTimerRunning:hi,isUpdatableParameter:mn,isValidParameter:fn,isVisible:ls,mixin:wi,off:(e,t)=>{if(!e){a.eventEmitter.reset();return}t?a.eventEmitter.removeListener(e,t):a.eventEmitter.removeAllListeners(e)},on:(e,t)=>{a.eventEmitter.on(e,t)},once:(e,t)=>{a.eventEmitter.once(e,t)},resumeTimer:Cn,showLoading:Y,stopTimer:kn,toggleTimer:mi});class ki{constructor(t,n){this.callback=t,this.remaining=n,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(t){const n=this.running;return n&&this.stop(),this.remaining+=t,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const An=["swal-title","swal-html","swal-footer"],Ci=e=>{const t=typeof e.template=="string"?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return Si(n),Object.assign(xi(n),Ai(n),Ti(n),Ei(n),Pi(n),Bi(n),$i(n,An))},xi=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach(o=>{z(o,["name","value"]);const r=o.getAttribute("name"),i=o.getAttribute("value");!r||!i||(typeof K[r]=="boolean"?t[r]=i!=="false":typeof K[r]=="object"?t[r]=JSON.parse(i):t[r]=i)}),t},Ai=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(o=>{const r=o.getAttribute("name"),i=o.getAttribute("value");!r||!i||(t[r]=new Function(`return ${i}`)())}),t},Ti=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach(o=>{z(o,["type","color","aria-label"]);const r=o.getAttribute("type");!r||!["confirm","cancel","deny"].includes(r)||(t[`${r}ButtonText`]=o.innerHTML,t[`show${Ie(r)}Button`]=!0,o.hasAttribute("color")&&(t[`${r}ButtonColor`]=o.getAttribute("color")),o.hasAttribute("aria-label")&&(t[`${r}ButtonAriaLabel`]=o.getAttribute("aria-label")))}),t},Ei=e=>{const t={},n=e.querySelector("swal-image");return n&&(z(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},Pi=e=>{const t={},n=e.querySelector("swal-icon");return n&&(z(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},Bi=e=>{const t={},n=e.querySelector("swal-input");n&&(z(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")));const o=Array.from(e.querySelectorAll("swal-input-option"));return o.length&&(t.inputOptions={},o.forEach(r=>{z(r,["value"]);const i=r.getAttribute("value");if(!i)return;const l=r.innerHTML;t.inputOptions[i]=l})),t},$i=(e,t)=>{const n={};for(const o in t){const r=t[o],i=e.querySelector(r);i&&(z(i,[]),n[r.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},Si=e=>{const t=An.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(n=>{const o=n.tagName.toLowerCase();t.includes(o)||v(`Unrecognized element <${o}>`)})},z=(e,t)=>{Array.from(e.attributes).forEach(n=>{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."}`])})},Tn=10,ji=e=>{const t=k(),n=d();typeof e.willOpen=="function"&&e.willOpen(n),a.eventEmitter.emit("willOpen",n);const r=window.getComputedStyle(document.body).overflowY;Oi(t,n,e),setTimeout(()=>{Ii(t,n)},Tn),ze()&&(Li(t,e.scrollbarPadding,r),bs()),!ue()&&!a.previousActiveElement&&(a.previousActiveElement=document.activeElement),typeof e.didOpen=="function"&&setTimeout(()=>e.didOpen(n)),a.eventEmitter.emit("didOpen",n),E(t,s["no-transition"])},ve=e=>{const t=d();if(e.target!==t)return;const n=k();t.removeEventListener("animationend",ve),t.removeEventListener("transitionend",ve),n.style.overflowY="auto"},Ii=(e,t)=>{Lt(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",ve),t.addEventListener("transitionend",ve)):e.style.overflowY="auto"},Li=(e,t,n)=>{ys(),t&&n!=="hidden"&&Es(n),setTimeout(()=>{e.scrollTop=0})},Oi=(e,t,n)=>{u(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),b(t,"grid"),setTimeout(()=>{u(t,n.showClass.popup),t.style.removeProperty("opacity")},Tn)):b(t,"grid"),u([document.documentElement,document.body],s.shown),n.heightAuto&&n.backdrop&&!n.toast&&u([document.documentElement,document.body],s["height-auto"])};var En={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),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")};function Mi(e){e.inputValidator||(e.input==="email"&&(e.inputValidator=En.email),e.input==="url"&&(e.inputValidator=En.url))}function Di(e){(!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")}function Hi(e){Mi(e),e.showLoaderOnConfirm&&!e.preConfirm&&v(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
62
+ `,Ht=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,o="";t.iconHtml?o=Ft(t.iconHtml):t.icon==="success"?(o=Zr,n=n.replace(/ style=".*?"/g,"")):t.icon==="error"?o=Gr:t.icon&&(o=Ft({question:"?",warning:"!",info:"i"}[t.icon])),n.trim()!==o.trim()&&A(e,o)},Jr=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])jt(e,n,"background-color",t.iconColor);jt(e,".swal2-success-ring","border-color",t.iconColor)}},Ft=e=>`<div class="${s["icon-content"]}">${e}</div>`,Qr=(e,t)=>{const n=Pt();if(n){if(!t.imageUrl){y(n);return}b(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),H(n,"width",t.imageWidth),H(n,"height",t.imageHeight),n.className=s.image,T(n,t,"image")}};let _e=!1,zt=0,Vt=0,qt=0,Rt=0;const es=e=>{e.addEventListener("mousedown",me),document.body.addEventListener("mousemove",ge),e.addEventListener("mouseup",he),e.addEventListener("touchstart",me),document.body.addEventListener("touchmove",ge),e.addEventListener("touchend",he)},ts=e=>{e.removeEventListener("mousedown",me),document.body.removeEventListener("mousemove",ge),e.removeEventListener("mouseup",he),e.removeEventListener("touchstart",me),document.body.removeEventListener("touchmove",ge),e.removeEventListener("touchend",he)},me=e=>{const t=d();if(e.target===t||q().contains(e.target)){_e=!0;const n=Nt(e);zt=n.clientX,Vt=n.clientY,qt=parseInt(t.style.insetInlineStart)||0,Rt=parseInt(t.style.insetBlockStart)||0,u(t,"swal2-dragging")}},ge=e=>{const t=d();if(_e){let{clientX:n,clientY:o}=Nt(e);t.style.insetInlineStart=`${qt+(n-zt)}px`,t.style.insetBlockStart=`${Rt+(o-Vt)}px`}},he=()=>{const e=d();_e=!1,E(e,"swal2-dragging")},Nt=e=>{let t=0,n=0;return e.type.startsWith("mouse")?(t=e.clientX,n=e.clientY):e.type.startsWith("touch")&&(t=e.touches[0].clientX,n=e.touches[0].clientY),{clientX:t,clientY:n}},ns=(e,t)=>{const n=k(),o=d();if(!(!n||!o)){if(t.toast){H(n,"width",t.width),o.style.width="100%";const r=N();r&&o.insertBefore(r,q())}else H(o,"width",t.width);H(o,"padding",t.padding),t.color&&(o.style.color=t.color),t.background&&(o.style.background=t.background),y(ce()),os(o,t),t.draggable&&!t.toast?(u(o,s.draggable),es(o)):(E(o,s.draggable),ts(o))}},os=(e,t)=>{const n=t.showClass||{};e.className=`${s.popup} ${C(e)?n.popup:""}`,t.toast?(u([document.documentElement,document.body],s["toast-shown"]),u(e,s.toast)):u(e,s.modal),T(e,t,"popup"),typeof t.customClass=="string"&&u(e,t.customClass),t.icon&&u(e,s[`icon-${t.icon}`])},rs=(e,t)=>{const n=De();if(!n)return;const{progressSteps:o,currentProgressStep:r}=t;if(!o||o.length===0||r===void 0){y(n);return}b(n),n.textContent="",r>=o.length&&v("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),o.forEach((i,l)=>{const c=ss(i);if(n.appendChild(c),l===r&&u(c,s["active-progress-step"]),l!==o.length-1){const g=is(t);n.appendChild(g)}})},ss=e=>{const t=document.createElement("li");return u(t,s["progress-step"]),A(t,e),t},is=e=>{const t=document.createElement("li");return u(t,s["progress-step-line"]),e.progressStepsDistance&&H(t,"width",e.progressStepsDistance),t},as=(e,t)=>{const n=Et();n&&(Ve(n),oe(n,t.title||t.titleText,"block"),t.title&&Re(t.title,n),t.titleText&&(n.innerText=t.titleText),T(n,t,"title"))},Wt=(e,t)=>{ns(e,t),Hr(e,t),rs(e,t),Xr(e,t),Qr(e,t),as(e,t),Dr(e,t),Yr(e,t),Or(e,t),Kr(e,t);const n=d();typeof t.didRender=="function"&&n&&t.didRender(n),a.eventEmitter.emit("didRender",n)},ls=()=>C(d()),Ut=()=>{var e;return(e=P())===null||e===void 0?void 0:e.click()},cs=()=>{var e;return(e=D())===null||e===void 0?void 0:e.click()},ds=()=>{var e;return(e=R())===null||e===void 0?void 0:e.click()},W=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),_t=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},us=(e,t,n)=>{_t(e),t.toast||(e.keydownHandler=o=>fs(t,o,n),e.keydownTarget=t.keydownListenerCapture?window:d(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Ye=(e,t)=>{var n;const o=Fe();if(o.length){e=e+t,e===-2&&(e=o.length-1),e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();return}(n=d())===null||n===void 0||n.focus()},Yt=["ArrowRight","ArrowDown"],ws=["ArrowLeft","ArrowUp"],fs=(e,t,n)=>{e&&(t.isComposing||t.keyCode===229||(e.stopKeydownPropagation&&t.stopPropagation(),t.key==="Enter"?ms(t,e):t.key==="Tab"?gs(t):[...Yt,...ws].includes(t.key)?hs(t.key):t.key==="Escape"&&ps(t,e,n)))},ms=(e,t)=>{if(!le(t.allowEnterKey))return;const n=we(d(),t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;Ut(),e.preventDefault()}},gs=e=>{const t=e.target,n=Fe();let o=-1;for(let r=0;r<n.length;r++)if(t===n[r]){o=r;break}e.shiftKey?Ye(o,-1):Ye(o,1),e.stopPropagation(),e.preventDefault()},hs=e=>{const t=ne(),n=P(),o=D(),r=R();if(!t||!n||!o||!r)return;const i=[n,o,r];if(document.activeElement instanceof HTMLElement&&!i.includes(document.activeElement))return;const l=Yt.includes(e)?"nextElementSibling":"previousElementSibling";let c=document.activeElement;if(c){for(let g=0;g<t.children.length;g++){if(c=c[l],!c)return;if(c instanceof HTMLButtonElement&&C(c))break}c instanceof HTMLButtonElement&&c.focus()}},ps=(e,t,n)=>{le(t.allowEscapeKey)&&(e.preventDefault(),n(W.esc))};var U={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const bs=()=>{const e=k();Array.from(document.body.children).forEach(n=>{n.contains(e)||(n.hasAttribute("aria-hidden")&&n.setAttribute("data-previous-aria-hidden",n.getAttribute("aria-hidden")||""),n.setAttribute("aria-hidden","true"))})},Kt=()=>{Array.from(document.body.children).forEach(t=>{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")})},Xt=typeof window<"u"&&!!window.GestureEvent,ys=()=>{if(Xt&&!B(document.body,s.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,u(document.body,s.iosfix),vs()}},vs=()=>{const e=k();if(!e)return;let t;e.ontouchstart=n=>{t=ks(n)},e.ontouchmove=n=>{t&&(n.preventDefault(),n.stopPropagation())}},ks=e=>{const t=e.target,n=k(),o=Me();return!n||!o||Cs(e)||xs(e)?!1:t===n||!It(n)&&t instanceof HTMLElement&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"&&!(It(o)&&o.contains(t))},Cs=e=>e.touches&&e.touches.length&&e.touches[0].touchType==="stylus",xs=e=>e.touches&&e.touches.length>1,As=()=>{if(B(document.body,s.iosfix)){const e=parseInt(document.body.style.top,10);E(document.body,s.iosfix),document.body.style.top="",document.body.scrollTop=e*-1}},Ts=()=>{const e=document.createElement("div");e.className=s["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let _=null;const Es=e=>{_===null&&(document.body.scrollHeight>window.innerHeight||e==="scroll")&&(_=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${_+Ts()}px`)},Ps=()=>{_!==null&&(document.body.style.paddingRight=`${_}px`,_=null)};function Zt(e,t,n,o){ue()?Jt(e,o):(mr(n).then(()=>Jt(e,o)),_t(a)),Xt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),ze()&&(Ps(),As(),Kt()),$s()}function $s(){E([document.documentElement,document.body],[s.shown,s["height-auto"],s["no-backdrop"],s["toast-shown"]])}function I(e){e=Ss(e);const t=U.swalPromiseResolve.get(this),n=Bs(this);this.isAwaitingPromise?e.isDismissed||(se(this),t(e)):n&&t(e)}const Bs=e=>{const t=d();if(!t)return!1;const n=w.innerParams.get(e);if(!n||B(t,n.hideClass.popup))return!1;E(t,n.showClass.popup),u(t,n.hideClass.popup);const o=k();return E(o,n.showClass.backdrop),u(o,n.hideClass.backdrop),js(e,t,n),!0};function Gt(e){const t=U.swalPromiseReject.get(this);se(this),t&&t(e)}const se=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,w.innerParams.get(e)||e._destroy())},Ss=e=>typeof e>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),js=(e,t,n)=>{var o;const r=k(),i=Ot(t);typeof n.willClose=="function"&&n.willClose(t),(o=a.eventEmitter)===null||o===void 0||o.emit("willClose",t),i?Is(e,t,r,n.returnFocus,n.didClose):Zt(e,r,n.returnFocus,n.didClose)},Is=(e,t,n,o,r)=>{a.swalCloseEventFinishedCallback=Zt.bind(null,e,n,o,r);const i=function(l){if(l.target===t){var c;(c=a.swalCloseEventFinishedCallback)===null||c===void 0||c.call(a),delete a.swalCloseEventFinishedCallback,t.removeEventListener("animationend",i),t.removeEventListener("transitionend",i)}};t.addEventListener("animationend",i),t.addEventListener("transitionend",i)},Jt=(e,t)=>{setTimeout(()=>{var n;typeof t=="function"&&t.bind(e.params)(),(n=a.eventEmitter)===null||n===void 0||n.emit("didClose"),e._destroy&&e._destroy()})},Y=e=>{let t=d();if(t||new Ce,t=d(),!t)return;const n=N();ue()?y(q()):Os(t,e),b(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},Os=(e,t)=>{const n=ne(),o=N();!n||!o||(!t&&C(P())&&(t=P()),b(n),t&&(y(t),o.setAttribute("data-button-to-replace",t.className),n.insertBefore(o,t)),u([e,n],s.loading))},Ls=(e,t)=>{t.input==="select"||t.input==="radio"?zs(e,t):["text","email","number","tel","textarea"].some(n=>n===t.input)&&(Oe(t.inputValue)||Le(t.inputValue))&&(Y(P()),Vs(e,t))},Ms=(e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return Ds(n);case"radio":return Hs(n);case"file":return Fs(n);default:return t.inputAutoTrim?n.value.trim():n.value}},Ds=e=>e.checked?1:0,Hs=e=>e.checked?e.value:null,Fs=e=>e.files&&e.files.length?e.getAttribute("multiple")!==null?e.files:e.files[0]:null,zs=(e,t)=>{const n=d();if(!n)return;const o=r=>{t.input==="select"?qs(n,pe(r),t):t.input==="radio"&&Rs(n,pe(r),t)};Oe(t.inputOptions)||Le(t.inputOptions)?(Y(P()),ee(t.inputOptions).then(r=>{e.hideLoading(),o(r)})):typeof t.inputOptions=="object"?o(t.inputOptions):M(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`)},Vs=(e,t)=>{const n=e.getInput();n&&(y(n),ee(t.inputValue).then(o=>{n.value=t.input==="number"?`${parseFloat(o)||0}`:`${o}`,b(n),n.focus(),e.hideLoading()}).catch(o=>{M(`Error in inputValue promise: ${o}`),n.value="",b(n),n.focus(),e.hideLoading()}))};function qs(e,t,n){const o=j(e,s.select);if(!o)return;const r=(i,l,c)=>{const g=document.createElement("option");g.value=c,A(g,l),g.selected=Qt(c,n.inputValue),i.appendChild(g)};t.forEach(i=>{const l=i[0],c=i[1];if(Array.isArray(c)){const g=document.createElement("optgroup");g.label=l,g.disabled=!1,o.appendChild(g),c.forEach(X=>r(g,X[1],X[0]))}else r(o,c,l)}),o.focus()}function Rs(e,t,n){const o=j(e,s.radio);if(!o)return;t.forEach(i=>{const l=i[0],c=i[1],g=document.createElement("input"),X=document.createElement("label");g.type="radio",g.name=s.radio,g.value=l,Qt(l,n.inputValue)&&(g.checked=!0);const Je=document.createElement("span");A(Je,c),Je.className=s.label,X.appendChild(g),X.appendChild(Je),o.appendChild(X)});const r=o.querySelectorAll("input");r.length&&r[0].focus()}const pe=e=>{const t=[];return e instanceof Map?e.forEach((n,o)=>{let r=n;typeof r=="object"&&(r=pe(r)),t.push([o,r])}):Object.keys(e).forEach(n=>{let o=e[n];typeof o=="object"&&(o=pe(o)),t.push([n,o])}),t},Qt=(e,t)=>!!t&&t.toString()===e.toString(),Ns=e=>{const t=w.innerParams.get(e);e.disableButtons(),t.input?en(e,"confirm"):Xe(e,!0)},Ws=e=>{const t=w.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?en(e,"deny"):Ke(e,!1)},Us=(e,t)=>{e.disableButtons(),t(W.cancel)},en=(e,t)=>{const n=w.innerParams.get(e);if(!n.input){M(`The "input" parameter is needed to be set when using returnInputValueOn${Ie(t)}`);return}const o=e.getInput(),r=Ms(e,n);n.inputValidator?_s(e,r,t):o&&!o.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||o.validationMessage)):t==="deny"?Ke(e,r):Xe(e,r)},_s=(e,t,n)=>{const o=w.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>ee(o.inputValidator(t,o.validationMessage))).then(i=>{e.enableButtons(),e.enableInput(),i?e.showValidationMessage(i):n==="deny"?Ke(e,t):Xe(e,t)})},Ke=(e,t)=>{const n=w.innerParams.get(e||void 0);n.showLoaderOnDeny&&Y(D()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>ee(n.preDeny(t,n.validationMessage))).then(r=>{r===!1?(e.hideLoading(),se(e)):e.close({isDenied:!0,value:typeof r>"u"?t:r})}).catch(r=>nn(e||void 0,r))):e.close({isDenied:!0,value:t})},tn=(e,t)=>{e.close({isConfirmed:!0,value:t})},nn=(e,t)=>{e.rejectPromise(t)},Xe=(e,t)=>{const n=w.innerParams.get(e||void 0);n.showLoaderOnConfirm&&Y(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>ee(n.preConfirm(t,n.validationMessage))).then(r=>{C(ce())||r===!1?(e.hideLoading(),se(e)):tn(e,typeof r>"u"?t:r)}).catch(r=>nn(e||void 0,r))):tn(e,t)};function be(){const e=w.innerParams.get(this);if(!e)return;const t=w.domCache.get(this);y(t.loader),ue()?e.icon&&b(q()):Ys(t),E([t.popup,t.actions],s.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Ys=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?b(t[0],"inline-block"):kr()&&y(e.actions)};function on(){const e=w.innerParams.get(this),t=w.domCache.get(this);return t?we(t.popup,e.input):null}function rn(e,t,n){const o=w.domCache.get(e);t.forEach(r=>{o[r].disabled=n})}function sn(e,t){const n=d();if(!(!n||!e))if(e.type==="radio"){const o=n.querySelectorAll(`[name="${s.radio}"]`);for(let r=0;r<o.length;r++)o[r].disabled=t}else e.disabled=t}function an(){rn(this,["confirmButton","denyButton","cancelButton"],!1)}function ln(){rn(this,["confirmButton","denyButton","cancelButton"],!0)}function cn(){sn(this.getInput(),!1)}function dn(){sn(this.getInput(),!0)}function un(e){const t=w.domCache.get(this),n=w.innerParams.get(this);A(t.validationMessage,e),t.validationMessage.className=s["validation-message"],n.customClass&&n.customClass.validationMessage&&u(t.validationMessage,n.customClass.validationMessage),b(t.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid","true"),o.setAttribute("aria-describedby",s["validation-message"]),Bt(o),u(o,s.inputerror))}function wn(){const e=w.domCache.get(this);e.validationMessage&&y(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),E(t,s.inputerror))}const K={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},Ks=["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"],Xs={allowEnterKey:void 0},Zs=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],fn=e=>Object.prototype.hasOwnProperty.call(K,e),mn=e=>Ks.indexOf(e)!==-1,gn=e=>Xs[e],Gs=e=>{fn(e)||v(`Unknown parameter "${e}"`)},Js=e=>{Zs.includes(e)&&v(`The parameter "${e}" is incompatible with toasts`)},Qs=e=>{const t=gn(e);t&&Tt(e,t)},hn=e=>{e.backdrop===!1&&e.allowOutsideClick&&v('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","borderless","embed-iframe"].includes(e.theme)&&v(`Invalid theme "${e.theme}". Expected "light", "dark", "auto", "borderless", or "embed-iframe"`);for(const t in e)Gs(t),e.toast&&Js(t),Qs(t)};function pn(e){const t=k(),n=d(),o=w.innerParams.get(this);if(!n||B(n,o.hideClass.popup)){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.");return}const r=ei(e),i=Object.assign({},o,r);hn(i),t.dataset.swal2Theme=i.theme,Wt(this,i),w.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const ei=e=>{const t={};return Object.keys(e).forEach(n=>{mn(n)?t[n]=e[n]:v(`Invalid parameter to update: ${n}`)}),t};function bn(){const e=w.domCache.get(this),t=w.innerParams.get(this);if(!t){yn(this);return}e.popup&&a.swalCloseEventFinishedCallback&&(a.swalCloseEventFinishedCallback(),delete a.swalCloseEventFinishedCallback),typeof t.didDestroy=="function"&&t.didDestroy(),a.eventEmitter.emit("didDestroy"),ti(this)}const ti=e=>{yn(e),delete e.params,delete a.keydownHandler,delete a.keydownTarget,delete a.currentInstance},yn=e=>{e.isAwaitingPromise?(Ze(w,e),e.isAwaitingPromise=!0):(Ze(U,e),Ze(w,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)},Ze=(e,t)=>{for(const n in e)e[n].delete(t)};var ni=Object.freeze({__proto__:null,_destroy:bn,close:I,closeModal:I,closePopup:I,closeToast:I,disableButtons:ln,disableInput:dn,disableLoading:be,enableButtons:an,enableInput:cn,getInput:on,handleAwaitingPromise:se,hideLoading:be,rejectPromise:Gt,resetValidationMessage:wn,showValidationMessage:un,update:pn});const oi=(e,t,n)=>{e.toast?ri(e,t,n):(ii(t),ai(t),li(e,t,n))},ri=(e,t,n)=>{t.popup.onclick=()=>{e&&(si(e)||e.timer||e.input)||n(W.close)}},si=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let ye=!1;const ii=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(ye=!0)}}},ai=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(n){e.popup.onmouseup=()=>{},(n.target===e.popup||n.target instanceof HTMLElement&&e.popup.contains(n.target))&&(ye=!0)}}},li=(e,t,n)=>{t.container.onclick=o=>{if(ye){ye=!1;return}o.target===t.container&&le(e.allowOutsideClick)&&n(W.backdrop)}},ci=e=>typeof e=="object"&&e.jquery,vn=e=>e instanceof Element||ci(e),di=e=>{const t={};return typeof e[0]=="object"&&!vn(e[0])?Object.assign(t,e[0]):["title","html","icon"].forEach((n,o)=>{const r=e[o];typeof r=="string"||vn(r)?t[n]=r:r!==void 0&&M(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`)}),t};function ui(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new this(...t)}function wi(e){class t extends this{_main(o,r){return super._main(o,Object.assign({},e,r))}}return t}const fi=()=>a.timeout&&a.timeout.getTimerLeft(),kn=()=>{if(a.timeout)return Cr(),a.timeout.stop()},Cn=()=>{if(a.timeout){const e=a.timeout.start();return qe(e),e}},mi=()=>{const e=a.timeout;return e&&(e.running?kn():Cn())},gi=e=>{if(a.timeout){const t=a.timeout.increase(e);return qe(t,!0),t}},hi=()=>!!(a.timeout&&a.timeout.isRunning());let xn=!1;const Ge={};function pi(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";Ge[e]=this,xn||(document.body.addEventListener("click",bi),xn=!0)}const bi=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const n in Ge){const o=t.getAttribute(n);if(o){Ge[n].fire({template:o});return}}};class yi{constructor(){this.events={}}_getHandlersByEventName(t){return typeof this.events[t]>"u"&&(this.events[t]=[]),this.events[t]}on(t,n){const o=this._getHandlersByEventName(t);o.includes(n)||o.push(n)}once(t,n){var o=this;const r=function(){o.removeListener(t,r);for(var i=arguments.length,l=new Array(i),c=0;c<i;c++)l[c]=arguments[c];n.apply(o,l)};this.on(t,r)}emit(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];this._getHandlersByEventName(t).forEach(i=>{try{i.apply(this,o)}catch(l){console.error(l)}})}removeListener(t,n){const o=this._getHandlersByEventName(t),r=o.indexOf(n);r>-1&&o.splice(r,1)}removeAllListeners(t){this.events[t]!==void 0&&(this.events[t].length=0)}reset(){this.events={}}}a.eventEmitter=new yi;var vi=Object.freeze({__proto__:null,argsToParams:di,bindClickHandler:pi,clickCancel:ds,clickConfirm:Ut,clickDeny:cs,enableLoading:Y,fire:ui,getActions:ne,getCancelButton:R,getCloseButton:He,getConfirmButton:P,getContainer:k,getDenyButton:D,getFocusableElements:Fe,getFooter:$t,getHtmlContainer:Me,getIcon:q,getIconContent:hr,getImage:Pt,getInputLabel:pr,getLoader:N,getPopup:d,getProgressSteps:De,getTimerLeft:fi,getTimerProgressBar:de,getTitle:Et,getValidationMessage:ce,increaseTimer:gi,isDeprecatedParameter:gn,isLoading:yr,isTimerRunning:hi,isUpdatableParameter:mn,isValidParameter:fn,isVisible:ls,mixin:wi,off:(e,t)=>{if(!e){a.eventEmitter.reset();return}t?a.eventEmitter.removeListener(e,t):a.eventEmitter.removeAllListeners(e)},on:(e,t)=>{a.eventEmitter.on(e,t)},once:(e,t)=>{a.eventEmitter.once(e,t)},resumeTimer:Cn,showLoading:Y,stopTimer:kn,toggleTimer:mi});class ki{constructor(t,n){this.callback=t,this.remaining=n,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(t){const n=this.running;return n&&this.stop(),this.remaining+=t,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const An=["swal-title","swal-html","swal-footer"],Ci=e=>{const t=typeof e.template=="string"?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return Si(n),Object.assign(xi(n),Ai(n),Ti(n),Ei(n),Pi(n),$i(n),Bi(n,An))},xi=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach(o=>{z(o,["name","value"]);const r=o.getAttribute("name"),i=o.getAttribute("value");!r||!i||(typeof K[r]=="boolean"?t[r]=i!=="false":typeof K[r]=="object"?t[r]=JSON.parse(i):t[r]=i)}),t},Ai=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(o=>{const r=o.getAttribute("name"),i=o.getAttribute("value");!r||!i||(t[r]=new Function(`return ${i}`)())}),t},Ti=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach(o=>{z(o,["type","color","aria-label"]);const r=o.getAttribute("type");!r||!["confirm","cancel","deny"].includes(r)||(t[`${r}ButtonText`]=o.innerHTML,t[`show${Ie(r)}Button`]=!0,o.hasAttribute("color")&&(t[`${r}ButtonColor`]=o.getAttribute("color")),o.hasAttribute("aria-label")&&(t[`${r}ButtonAriaLabel`]=o.getAttribute("aria-label")))}),t},Ei=e=>{const t={},n=e.querySelector("swal-image");return n&&(z(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},Pi=e=>{const t={},n=e.querySelector("swal-icon");return n&&(z(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},$i=e=>{const t={},n=e.querySelector("swal-input");n&&(z(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")));const o=Array.from(e.querySelectorAll("swal-input-option"));return o.length&&(t.inputOptions={},o.forEach(r=>{z(r,["value"]);const i=r.getAttribute("value");if(!i)return;const l=r.innerHTML;t.inputOptions[i]=l})),t},Bi=(e,t)=>{const n={};for(const o in t){const r=t[o],i=e.querySelector(r);i&&(z(i,[]),n[r.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},Si=e=>{const t=An.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(n=>{const o=n.tagName.toLowerCase();t.includes(o)||v(`Unrecognized element <${o}>`)})},z=(e,t)=>{Array.from(e.attributes).forEach(n=>{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."}`])})},Tn=10,ji=e=>{const t=k(),n=d();typeof e.willOpen=="function"&&e.willOpen(n),a.eventEmitter.emit("willOpen",n);const r=window.getComputedStyle(document.body).overflowY;Li(t,n,e),setTimeout(()=>{Ii(t,n)},Tn),ze()&&(Oi(t,e.scrollbarPadding,r),bs()),!ue()&&!a.previousActiveElement&&(a.previousActiveElement=document.activeElement),typeof e.didOpen=="function"&&setTimeout(()=>e.didOpen(n)),a.eventEmitter.emit("didOpen",n),E(t,s["no-transition"])},ve=e=>{const t=d();if(e.target!==t)return;const n=k();t.removeEventListener("animationend",ve),t.removeEventListener("transitionend",ve),n.style.overflowY="auto"},Ii=(e,t)=>{Ot(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",ve),t.addEventListener("transitionend",ve)):e.style.overflowY="auto"},Oi=(e,t,n)=>{ys(),t&&n!=="hidden"&&Es(n),setTimeout(()=>{e.scrollTop=0})},Li=(e,t,n)=>{u(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),b(t,"grid"),setTimeout(()=>{u(t,n.showClass.popup),t.style.removeProperty("opacity")},Tn)):b(t,"grid"),u([document.documentElement,document.body],s.shown),n.heightAuto&&n.backdrop&&!n.toast&&u([document.documentElement,document.body],s["height-auto"])};var En={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),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")};function Mi(e){e.inputValidator||(e.input==="email"&&(e.inputValidator=En.email),e.input==="url"&&(e.inputValidator=En.url))}function Di(e){(!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")}function Hi(e){Mi(e),e.showLoaderOnConfirm&&!e.preConfirm&&v(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
63
63
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
64
64
  https://sweetalert2.github.io/#ajax-request`),Di(e),typeof e.title=="string"&&(e.title=e.title.split(`
65
- `).join("<br />")),Sr(e)}let B;var ke=new WeakMap;class p{constructor(){if(dr(this,ke,void 0),typeof window>"u")return;B=this;for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];const r=Object.freeze(this.constructor.argsToParams(n));this.params=r,this.isAwaitingPromise=!1,ur(ke,this,this._main(B.params))}_main(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(hn(Object.assign({},n,t)),a.currentInstance){const i=U.swalPromiseResolve.get(a.currentInstance),{isAwaitingPromise:l}=a.currentInstance;a.currentInstance._destroy(),l||i({isDismissed:!0}),ze()&&Kt()}a.currentInstance=B;const o=zi(t,n);Hi(o),Object.freeze(o),a.timeout&&(a.timeout.stop(),delete a.timeout),clearTimeout(a.restoreFocusTimeout);const r=Vi(B);return Wt(B,o),w.innerParams.set(B,o),Fi(B,r,o)}then(t){return kt(ke,this).then(t)}finally(t){return kt(ke,this).finally(t)}}const Fi=(e,t,n)=>new Promise((o,r)=>{const i=l=>{e.close({isDismissed:!0,dismiss:l})};U.swalPromiseResolve.set(e,o),U.swalPromiseReject.set(e,r),t.confirmButton.onclick=()=>{Ns(e)},t.denyButton.onclick=()=>{Ws(e)},t.cancelButton.onclick=()=>{Us(e,i)},t.closeButton.onclick=()=>{i(W.close)},oi(n,t,i),us(a,n,i),Os(e,n),ji(n),qi(a,n,i),Ri(t,n),setTimeout(()=>{t.container.scrollTop=0})}),zi=(e,t)=>{const n=Ci(e),o=Object.assign({},K,t,n,e);return o.showClass=Object.assign({},K.showClass,o.showClass),o.hideClass=Object.assign({},K.hideClass,o.hideClass),o.animation===!1&&(o.showClass={backdrop:"swal2-noanimation"},o.hideClass={}),o},Vi=e=>{const t={popup:d(),container:k(),actions:ne(),confirmButton:P(),denyButton:D(),cancelButton:R(),loader:N(),closeButton:He(),validationMessage:ce(),progressSteps:De()};return w.domCache.set(e,t),t},qi=(e,t,n)=>{const o=de();y(o),t.timer&&(e.timeout=new ki(()=>{n("timer"),delete e.timeout},t.timer),t.timerProgressBar&&(b(o),T(o,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&qe(t.timer)})))},Ri=(e,t)=>{if(!t.toast){if(!le(t.allowEnterKey)){Tt("allowEnterKey"),Ui();return}Ni(e)||Wi(e,t)||Ye(-1,1)}},Ni=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const n of t)if(n instanceof HTMLElement&&C(n))return n.focus(),!0;return!1},Wi=(e,t)=>t.focusDeny&&C(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&C(e.cancelButton)?(e.cancelButton.focus(),!0):t.focusConfirm&&C(e.confirmButton)?(e.confirmButton.focus(),!0):!1,Ui=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const n=document.createElement("audio");n.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",n.loop=!0,document.body.appendChild(n),setTimeout(()=>{n.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${e}`)}p.prototype.disableButtons=ln,p.prototype.enableButtons=an,p.prototype.getInput=on,p.prototype.disableInput=dn,p.prototype.enableInput=cn,p.prototype.hideLoading=be,p.prototype.disableLoading=be,p.prototype.showValidationMessage=un,p.prototype.resetValidationMessage=wn,p.prototype.close=I,p.prototype.closePopup=I,p.prototype.closeModal=I,p.prototype.closeToast=I,p.prototype.rejectPromise=Gt,p.prototype.update=pn,p.prototype._destroy=bn,Object.assign(p,vi),Object.keys(ni).forEach(e=>{p[e]=function(){return B&&B[e]?B[e](...arguments):null}}),p.DismissReason=W,p.version="11.19.1";const Ce=p;Ce.default=Ce,typeof document<"u"&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch{n.innerText=t}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-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-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-background: transparent;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.1s, box-shadow 0.1s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-confirm-button-background-color: #7066e0;--swal2-deny-button-background-color: #dc3741;--swal2-cancel-button-background-color: #6e7881}[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:var(--swal2-title-padding);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:var(--swal2-confirm-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:var(--swal2-deny-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:var(--swal2-cancel-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-outline)}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){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;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:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;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:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;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}}');const _i=()=>({confirm:async(t,n)=>{var r,i;(await Ce.fire({imageUrl:(n==null?void 0:n.imageUrl)??"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20stroke%3D%22none%22%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22/%3E%3Cpath%20d%3D%22M8%208a3.5%203%200%200%201%203.5%20-3h1a3.5%203%200%200%201%203.5%203a3%203%200%200%201%20-2%203a3%204%200%200%200%20-2%204%22/%3E%3Cpath%20d%3D%22M12%2019l0%20.01%22/%3E%3C/svg%3E",imageWidth:((r=n==null?void 0:n.image)==null?void 0:r.width)??100,imageHeight:((i=n==null?void 0:n.image)==null?void 0:i.height)??100,text:t,denyButtonText:(n==null?void 0:n.denyText)||"Non",confirmButtonText:(n==null?void 0:n.confirmText)||"Oui",confirmButtonColor:"var(--useConfirm-confirm-button-color, #02182b)",denyButtonColor:"var(--useConfirm-cancel-button-color, transparent)",showDenyButton:!0,showCloseButton:!0,reverseButtons:!0,customClass:{...(n==null?void 0:n.classes)??{},popup:"radius-m py-3 px-4",confirmButton:`v-btn v-btn--slim v-theme--light v-btn--density-default v-btn--size-large v-btn--variant-${n.confirmButtonVariant??"flat"} s-btn ma-0`,denyButton:`v-btn v-btn--slim v-theme--light v-btn--density-default v-btn--size-large v-btn--variant-${n.cancelButtonVariant??"outlined"} s-btn ma-0`,actions:"w-100 justify-end ga-2",image:"my-0",htmlContainer:"pa-0 p1-paragraph"}})).isConfirmed?n.onConfirm():n.onCancel&&n.onCancel()}});m.defined=rr,m.hexToRgb=ir,m.hexToRgba=je,m.hexToRgbaStyle=sr,m.isIOS=ar,m.isMobileDevice=lr,m.isSmallScreen=yt,m.key=or,m.numberToCssStyle=nr,m.useConfirm=_i,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})});
65
+ `).join("<br />")),Sr(e)}let $;var ke=new WeakMap;class p{constructor(){if(dr(this,ke,void 0),typeof window>"u")return;$=this;for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];const r=Object.freeze(this.constructor.argsToParams(n));this.params=r,this.isAwaitingPromise=!1,ur(ke,this,this._main($.params))}_main(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(hn(Object.assign({},n,t)),a.currentInstance){const i=U.swalPromiseResolve.get(a.currentInstance),{isAwaitingPromise:l}=a.currentInstance;a.currentInstance._destroy(),l||i({isDismissed:!0}),ze()&&Kt()}a.currentInstance=$;const o=zi(t,n);Hi(o),Object.freeze(o),a.timeout&&(a.timeout.stop(),delete a.timeout),clearTimeout(a.restoreFocusTimeout);const r=Vi($);return Wt($,o),w.innerParams.set($,o),Fi($,r,o)}then(t){return kt(ke,this).then(t)}finally(t){return kt(ke,this).finally(t)}}const Fi=(e,t,n)=>new Promise((o,r)=>{const i=l=>{e.close({isDismissed:!0,dismiss:l})};U.swalPromiseResolve.set(e,o),U.swalPromiseReject.set(e,r),t.confirmButton.onclick=()=>{Ns(e)},t.denyButton.onclick=()=>{Ws(e)},t.cancelButton.onclick=()=>{Us(e,i)},t.closeButton.onclick=()=>{i(W.close)},oi(n,t,i),us(a,n,i),Ls(e,n),ji(n),qi(a,n,i),Ri(t,n),setTimeout(()=>{t.container.scrollTop=0})}),zi=(e,t)=>{const n=Ci(e),o=Object.assign({},K,t,n,e);return o.showClass=Object.assign({},K.showClass,o.showClass),o.hideClass=Object.assign({},K.hideClass,o.hideClass),o.animation===!1&&(o.showClass={backdrop:"swal2-noanimation"},o.hideClass={}),o},Vi=e=>{const t={popup:d(),container:k(),actions:ne(),confirmButton:P(),denyButton:D(),cancelButton:R(),loader:N(),closeButton:He(),validationMessage:ce(),progressSteps:De()};return w.domCache.set(e,t),t},qi=(e,t,n)=>{const o=de();y(o),t.timer&&(e.timeout=new ki(()=>{n("timer"),delete e.timeout},t.timer),t.timerProgressBar&&(b(o),T(o,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&qe(t.timer)})))},Ri=(e,t)=>{if(!t.toast){if(!le(t.allowEnterKey)){Tt("allowEnterKey"),Ui();return}Ni(e)||Wi(e,t)||Ye(-1,1)}},Ni=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const n of t)if(n instanceof HTMLElement&&C(n))return n.focus(),!0;return!1},Wi=(e,t)=>t.focusDeny&&C(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&C(e.cancelButton)?(e.cancelButton.focus(),!0):t.focusConfirm&&C(e.confirmButton)?(e.confirmButton.focus(),!0):!1,Ui=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const n=document.createElement("audio");n.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",n.loop=!0,document.body.appendChild(n),setTimeout(()=>{n.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${e}`)}p.prototype.disableButtons=ln,p.prototype.enableButtons=an,p.prototype.getInput=on,p.prototype.disableInput=dn,p.prototype.enableInput=cn,p.prototype.hideLoading=be,p.prototype.disableLoading=be,p.prototype.showValidationMessage=un,p.prototype.resetValidationMessage=wn,p.prototype.close=I,p.prototype.closePopup=I,p.prototype.closeModal=I,p.prototype.closeToast=I,p.prototype.rejectPromise=Gt,p.prototype.update=pn,p.prototype._destroy=bn,Object.assign(p,vi),Object.keys(ni).forEach(e=>{p[e]=function(){return $&&$[e]?$[e](...arguments):null}}),p.DismissReason=W,p.version="11.19.1";const Ce=p;Ce.default=Ce,typeof document<"u"&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch{n.innerText=t}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-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-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-background: transparent;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.1s, box-shadow 0.1s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-confirm-button-background-color: #7066e0;--swal2-deny-button-background-color: #dc3741;--swal2-cancel-button-background-color: #6e7881}[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:var(--swal2-title-padding);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:var(--swal2-confirm-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:var(--swal2-deny-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:var(--swal2-cancel-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-outline)}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){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;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:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;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:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;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}}');const _i=(e,t="black")=>{if(!e.trim())return"";if(Ki(e)){const i=Yi(e);if(!i)return"";e=i}const o=e.replace(/fill="(?!none)[^"]*"/gi,`fill="${t}"`).replace(/stroke="(?!none)[^"]*"/gi,`stroke="${t}"`);return`data:image/svg+xml;charset=UTF-8,${encodeURIComponent(o).replace(/'/g,"%27").replace(/"/g,"%22")}`},Yi=e=>{if(!e.startsWith("data:image/svg+xml"))return null;const t=e.indexOf(",");if(t===-1)return null;const n=e.slice(t+1);if(e.includes(";charset=UTF-8,"))try{return decodeURIComponent(n)}catch{return null}if(e.includes(";base64,"))try{return atob(n)}catch{return null}return null},Ki=e=>/^data:image\/(svg\+xml|png|jpeg|jpg|gif|webp);/i.test(e),Xi="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='icon%20icon-tabler%20icon-tabler-question-mark'%20viewBox='0%200%2024%2024'%3e%3cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M8%208a3.5%203%200%200%201%203.5%20-3h1a3.5%203%200%200%201%203.5%203a3%203%200%200%201%20-2%203a3%204%200%200%200%20-2%204'%20/%3e%3cpath%20d='M12%2019l0%20.01'%20/%3e%3c/svg%3e",Zi=()=>({confirm:async(t,n)=>{var r,i,l;(await Ce.fire({imageUrl:(n==null?void 0:n.imageUrl)??_i(Xi,((r=n==null?void 0:n.image)==null?void 0:r.color)??"black"),imageWidth:((i=n==null?void 0:n.image)==null?void 0:i.width)??50,imageHeight:((l=n==null?void 0:n.image)==null?void 0:l.height)??50,text:t,denyButtonText:(n==null?void 0:n.denyText)||"Non",confirmButtonText:(n==null?void 0:n.confirmText)||"Oui",confirmButtonColor:"var(--useConfirm-confirm-button-color, #02182b)",denyButtonColor:"var(--useConfirm-cancel-button-color, transparent)",showDenyButton:!0,showCloseButton:!0,reverseButtons:!0,customClass:{...(n==null?void 0:n.classes)??{},popup:"radius-m py-3 px-4",confirmButton:`v-btn v-btn--slim v-theme--light v-btn--density-default v-btn--size-large v-btn--variant-${n.confirmButtonVariant??"flat"} s-btn ma-0`,denyButton:`v-btn v-btn--slim v-theme--light v-btn--density-default v-btn--size-large v-btn--variant-${n.cancelButtonVariant??"outlined"} s-btn ma-0`,actions:"w-100 justify-end ga-2",image:"my-0",htmlContainer:"pa-0 p1-paragraph"}})).isConfirmed?n.onConfirm():n.onCancel&&n.onCancel()}});m.defined=rr,m.hexToRgb=ir,m.hexToRgba=je,m.hexToRgbaStyle=sr,m.isIOS=ar,m.isMobileDevice=lr,m.isSmallScreen=yt,m.key=or,m.numberToCssStyle=nr,m.useConfirm=Zi,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})});
package/dist/svg.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ declare module '*.svg' {
2
+ const content: string;
3
+ export default content;
4
+ }
@@ -0,0 +1,3 @@
1
+ export declare const encodeSvgAsDataUrl: (svg: string, color?: string) => string;
2
+ export declare const decodeSvgDataUrl: (dataUrl: string) => string | null;
3
+ export declare const isImageDataUrl: (dataUrl: string) => boolean;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sofiakb/elf-js",
3
- "version": "0.2.1-dev.1",
3
+ "version": "0.2.1-dev.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [