@moneyto/components 0.0.13 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
- var Ct = Object.defineProperty;
2
- var St = (e, t, s) => t in e ? Ct(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
3
- var q = (e, t, s) => St(e, typeof t != "symbol" ? t + "" : t, s);
4
- import { z as _t, X as Rt, h as X, Y as Nt, Z as ft, A as ht, _ as kt, $ as F, a0 as dt, T as bt, a1 as Q, a2 as K, a3 as $, a4 as j, a5 as It, a6 as z, F as R, a7 as pt, a8 as Lt, a9 as Gt, aa as Ot, ab as Pt, E as Bt, I as Ut, ac as Ft, L as w, D as wt, G as Dt, ad as Ht, ae as Kt, af as tt, ag as D, H as G, ah as jt } from "./Styles-Dmz3r-1B.js";
1
+ var _t = Object.defineProperty;
2
+ var Ct = (e, t, s) => t in e ? _t(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
3
+ var q = (e, t, s) => Ct(e, typeof t != "symbol" ? t + "" : t, s);
4
+ import { y as St, Y as Rt, j as X, Z as Nt, _ as ft, z as ht, $ as kt, a0 as F, a1 as pt, U as bt, G as Q, a2 as K, a3 as $, a4 as j, a5 as It, a6 as z, C as R, a7 as dt, a8 as Lt, a9 as Gt, aa as Ot, ab as Pt, A as Bt, I as Ut, ac as Ft, M as w, O as wt, F as Dt, ad as Ht, ae as Kt, af as jt, ag as tt, ah as D, D as G, ai as Wt } from "./Styles-BlozloOq.js";
5
5
  let H = null;
6
- function zr(e, t) {
6
+ function ta(e, t) {
7
7
  return t;
8
8
  }
9
- function Wt(e, t, s, n) {
9
+ function xt(e, t, s, n) {
10
10
  for (var o = [], r = t.length, c = 0; c < r; c++)
11
11
  Gt(t[c].e, o, !0);
12
12
  var u = r > 0 && o.length === 0 && s !== null;
@@ -19,17 +19,17 @@ function Wt(e, t, s, n) {
19
19
  Ot(d), d.append(
20
20
  /** @type {Element} */
21
21
  s
22
- ), n.clear(), _(e, t[0].prev, t[r - 1].next);
22
+ ), n.clear(), S(e, t[0].prev, t[r - 1].next);
23
23
  }
24
24
  Pt(o, () => {
25
25
  for (var f = 0; f < r; f++) {
26
- var E = t[f];
27
- u || (n.delete(E.k), _(e, E.prev, E.next)), Bt(E.e, !u);
26
+ var g = t[f];
27
+ u || (n.delete(g.k), S(e, g.prev, g.next)), Bt(g.e, !u);
28
28
  }
29
29
  });
30
30
  }
31
- function ta(e, t, s, n, o, r = null) {
32
- var c = e, u = { items: /* @__PURE__ */ new Map(), first: null }, d = (t & pt) !== 0;
31
+ function ea(e, t, s, n, o, r = null) {
32
+ var c = e, u = { flags: t, items: /* @__PURE__ */ new Map(), first: null }, d = (t & dt) !== 0;
33
33
  if (d) {
34
34
  var f = (
35
35
  /** @type {Element} */
@@ -41,36 +41,33 @@ function ta(e, t, s, n, o, r = null) {
41
41
  ) : f.appendChild(Rt());
42
42
  }
43
43
  R && Dt();
44
- var E = null, T = !1, m = Nt(() => {
45
- var g = s();
46
- return Ht(g) ? g : g == null ? [] : dt(g);
44
+ var g = null, y = !1, p = Nt(() => {
45
+ var A = s();
46
+ return Ht(A) ? A : A == null ? [] : pt(A);
47
47
  });
48
- _t(() => {
49
- var g = X(m), p = g.length;
50
- if (T && p === 0)
48
+ St(() => {
49
+ var A = X(p), m = A.length;
50
+ if (y && m === 0)
51
51
  return;
52
- T = p === 0;
53
- let A = !1;
52
+ y = m === 0;
53
+ let E = !1;
54
54
  if (R) {
55
- var h = (
56
- /** @type {Comment} */
57
- c.data === Kt
58
- );
59
- h !== (p === 0) && (c = tt(), w(c), D(!1), A = !0);
55
+ var h = Kt(c) === jt;
56
+ h !== (m === 0) && (c = tt(), w(c), D(!1), E = !0);
60
57
  }
61
58
  if (R) {
62
- for (var y = null, v, a = 0; a < p; a++) {
59
+ for (var v = null, M, a = 0; a < m; a++) {
63
60
  if (G.nodeType === 8 && /** @type {Comment} */
64
- G.data === jt) {
61
+ G.data === Wt) {
65
62
  c = /** @type {Comment} */
66
- G, A = !0, D(!1);
63
+ G, E = !0, D(!1);
67
64
  break;
68
65
  }
69
- var i = g[a], l = n(i, a);
70
- v = mt(
66
+ var i = A[a], l = n(i, a);
67
+ M = mt(
71
68
  G,
72
69
  u,
73
- y,
70
+ v,
74
71
  null,
75
72
  i,
76
73
  l,
@@ -78,97 +75,97 @@ function ta(e, t, s, n, o, r = null) {
78
75
  o,
79
76
  t,
80
77
  s
81
- ), u.items.set(l, v), y = v;
78
+ ), u.items.set(l, M), v = M;
82
79
  }
83
- p > 0 && w(tt());
80
+ m > 0 && w(tt());
84
81
  }
85
- R || xt(g, u, c, o, t, n, s), r !== null && (p === 0 ? E ? ft(E) : E = ht(() => r(c)) : E !== null && kt(E, () => {
86
- E = null;
87
- })), A && D(!0), X(m);
82
+ R || Yt(A, u, c, o, t, n, s), r !== null && (m === 0 ? g ? ft(g) : g = ht(() => r(c)) : g !== null && kt(g, () => {
83
+ g = null;
84
+ })), E && D(!0), X(p);
88
85
  }), R && (c = G);
89
86
  }
90
- function xt(e, t, s, n, o, r, c) {
87
+ function Yt(e, t, s, n, o, r, c) {
91
88
  var x, Y, Z, V;
92
- var u = (o & Lt) !== 0, d = (o & (K | j)) !== 0, f = e.length, E = t.items, T = t.first, m = T, g, p = null, A, h = [], y = [], v, a, i, l;
89
+ var u = (o & Lt) !== 0, d = (o & (K | j)) !== 0, f = e.length, g = t.items, y = t.first, p = y, A, m = null, E, h = [], v = [], M, a, i, l;
93
90
  if (u)
94
91
  for (l = 0; l < f; l += 1)
95
- v = e[l], a = r(v, l), i = E.get(a), i !== void 0 && ((x = i.a) == null || x.measure(), (A ?? (A = /* @__PURE__ */ new Set())).add(i));
92
+ M = e[l], a = r(M, l), i = g.get(a), i !== void 0 && ((x = i.a) == null || x.measure(), (E ?? (E = /* @__PURE__ */ new Set())).add(i));
96
93
  for (l = 0; l < f; l += 1) {
97
- if (v = e[l], a = r(v, l), i = E.get(a), i === void 0) {
98
- var C = m ? (
94
+ if (M = e[l], a = r(M, l), i = g.get(a), i === void 0) {
95
+ var _ = p ? (
99
96
  /** @type {TemplateNode} */
100
- m.e.nodes_start
97
+ p.e.nodes_start
101
98
  ) : s;
102
- p = mt(
103
- C,
99
+ m = mt(
100
+ _,
104
101
  t,
105
- p,
106
- p === null ? t.first : p.next,
107
- v,
102
+ m,
103
+ m === null ? t.first : m.next,
104
+ M,
108
105
  a,
109
106
  l,
110
107
  n,
111
108
  o,
112
109
  c
113
- ), E.set(a, p), h = [], y = [], m = p.next;
110
+ ), g.set(a, m), h = [], v = [], p = m.next;
114
111
  continue;
115
112
  }
116
- if (d && Yt(i, v, l, o), i.e.f & F && (ft(i.e), u && ((Y = i.a) == null || Y.unfix(), (A ?? (A = /* @__PURE__ */ new Set())).delete(i))), i !== m) {
117
- if (g !== void 0 && g.has(i)) {
118
- if (h.length < y.length) {
119
- var S = y[0], M;
120
- p = S.prev;
113
+ if (d && Zt(i, M, l, o), (i.e.f & F) !== 0 && (ft(i.e), u && ((Y = i.a) == null || Y.unfix(), (E ?? (E = /* @__PURE__ */ new Set())).delete(i))), i !== p) {
114
+ if (A !== void 0 && A.has(i)) {
115
+ if (h.length < v.length) {
116
+ var C = v[0], T;
117
+ m = C.prev;
121
118
  var W = h[0], B = h[h.length - 1];
122
- for (M = 0; M < h.length; M += 1)
123
- et(h[M], S, s);
124
- for (M = 0; M < y.length; M += 1)
125
- g.delete(y[M]);
126
- _(t, W.prev, B.next), _(t, p, W), _(t, B, S), m = S, p = B, l -= 1, h = [], y = [];
119
+ for (T = 0; T < h.length; T += 1)
120
+ et(h[T], C, s);
121
+ for (T = 0; T < v.length; T += 1)
122
+ A.delete(v[T]);
123
+ S(t, W.prev, B.next), S(t, m, W), S(t, B, C), p = C, m = B, l -= 1, h = [], v = [];
127
124
  } else
128
- g.delete(i), et(i, m, s), _(t, i.prev, i.next), _(t, i, p === null ? t.first : p.next), _(t, p, i), p = i;
125
+ A.delete(i), et(i, p, s), S(t, i.prev, i.next), S(t, i, m === null ? t.first : m.next), S(t, m, i), m = i;
129
126
  continue;
130
127
  }
131
- for (h = [], y = []; m !== null && m.k !== a; )
132
- m.e.f & F || (g ?? (g = /* @__PURE__ */ new Set())).add(m), y.push(m), m = m.next;
133
- if (m === null)
128
+ for (h = [], v = []; p !== null && p.k !== a; )
129
+ (p.e.f & F) === 0 && (A ?? (A = /* @__PURE__ */ new Set())).add(p), v.push(p), p = p.next;
130
+ if (p === null)
134
131
  continue;
135
- i = m;
132
+ i = p;
136
133
  }
137
- h.push(i), p = i, m = i.next;
134
+ h.push(i), m = i, p = i.next;
138
135
  }
139
- if (m !== null || g !== void 0) {
140
- for (var L = g === void 0 ? [] : dt(g); m !== null; )
141
- m.e.f & F || L.push(m), m = m.next;
136
+ if (p !== null || A !== void 0) {
137
+ for (var L = A === void 0 ? [] : pt(A); p !== null; )
138
+ (p.e.f & F) === 0 && L.push(p), p = p.next;
142
139
  var U = L.length;
143
140
  if (U > 0) {
144
- var vt = o & pt && f === 0 ? s : null;
141
+ var Mt = (o & dt) !== 0 && f === 0 ? s : null;
145
142
  if (u) {
146
143
  for (l = 0; l < U; l += 1)
147
144
  (Z = L[l].a) == null || Z.measure();
148
145
  for (l = 0; l < U; l += 1)
149
146
  (V = L[l].a) == null || V.fix();
150
147
  }
151
- Wt(t, L, vt, E);
148
+ xt(t, L, Mt, g);
152
149
  }
153
150
  }
154
151
  u && bt(() => {
155
152
  var J;
156
- if (A !== void 0)
157
- for (i of A)
153
+ if (E !== void 0)
154
+ for (i of E)
158
155
  (J = i.a) == null || J.apply();
159
- }), Q.first = t.first && t.first.e, Q.last = p && p.e;
156
+ }), Q.first = t.first && t.first.e, Q.last = m && m.e;
160
157
  }
161
- function Yt(e, t, s, n) {
162
- n & K && $(e.v, t), n & j ? $(
158
+ function Zt(e, t, s, n) {
159
+ (n & K) !== 0 && $(e.v, t), (n & j) !== 0 ? $(
163
160
  /** @type {Value<number>} */
164
161
  e.i,
165
162
  s
166
163
  ) : e.i = s;
167
164
  }
168
165
  function mt(e, t, s, n, o, r, c, u, d, f) {
169
- var E = H, T = (d & K) !== 0, m = (d & Ft) === 0, g = T ? m ? It(o) : z(o) : o, p = d & j ? z(c) : c, A = {
170
- i: p,
171
- v: g,
166
+ var g = H, y = (d & K) !== 0, p = (d & Ft) === 0, A = y ? p ? It(o) : z(o) : o, m = (d & j) === 0 ? c : z(c), E = {
167
+ i: m,
168
+ v: A,
172
169
  k: r,
173
170
  a: null,
174
171
  // @ts-expect-error
@@ -176,11 +173,11 @@ function mt(e, t, s, n, o, r, c, u, d, f) {
176
173
  prev: s,
177
174
  next: n
178
175
  };
179
- H = A;
176
+ H = E;
180
177
  try {
181
- return A.e = ht(() => u(e, g, p, f), R), A.e.prev = s && s.e, A.e.next = n && n.e, s === null ? t.first = A : (s.next = A, s.e.next = A.e), n !== null && (n.prev = A, n.e.prev = A.e), A;
178
+ return E.e = ht(() => u(e, A, m, f), R), E.e.prev = s && s.e, E.e.next = n && n.e, s === null ? t.first = E : (s.next = E, s.e.next = E.e), n !== null && (n.prev = E, n.e.prev = E.e), E;
182
179
  } finally {
183
- H = E;
180
+ H = g;
184
181
  }
185
182
  }
186
183
  function et(e, t, s) {
@@ -201,286 +198,286 @@ function et(e, t, s) {
201
198
  o.before(r), r = c;
202
199
  }
203
200
  }
204
- function _(e, t, s) {
201
+ function S(e, t, s) {
205
202
  t === null ? e.first = s : (t.next = s, t.e.next = s && s.e), s !== null && (s.prev = t, s.e.prev = t && t.e);
206
203
  }
207
- function Zt(e) {
204
+ function Vt(e) {
208
205
  return String.fromCodePoint(e.toLowerCase().charCodeAt(0) + 127365);
209
206
  }
210
- function Vt(e) {
207
+ function Jt(e) {
211
208
  return e.split("-").pop().toUpperCase();
212
209
  }
213
- function ea(e) {
210
+ function sa(e) {
214
211
  if (!e)
215
212
  throw new Error("countryCode is required");
216
- return Array.from(Vt(e)).map(Zt).join("");
213
+ return Array.from(Jt(e)).map(Vt).join("");
217
214
  }
218
- const Jt = "AD", qt = "AE", Xt = "AF", Qt = "AG", $t = "AI", zt = "AL", te = "AM", ee = "AO", se = "AQ", ne = "AR", oe = "AS", re = "AT", ae = "AU", ie = "AW", ce = "AX", le = "AZ", ue = "BA", fe = "BB", he = "BD", de = "BE", pe = "BF", me = "BG", Ae = "BH", Ee = "BI", ge = "BJ", ye = "BL", Te = "BM", Me = "BN", ve = "BO", Ce = "BQ", Se = "BR", _e = "BS", Re = "BT", Ne = "BV", ke = "BW", be = "BY", Ie = "BZ", Le = "CA", Ge = "CC", Oe = "CD", Pe = "CF", Be = "CG", Ue = "CH", Fe = "CI", we = "CK", De = "CL", He = "CM", Ke = "CN", je = "CO", We = "CR", xe = "CU", Ye = "CV", Ze = "CW", Ve = "CX", Je = "CY", qe = "CZ", Xe = "DE", Qe = "DJ", $e = "DK", ze = "DM", ts = "DO", es = "DZ", ss = "EC", ns = "EE", os = "EG", rs = "EH", as = "ER", is = "ES", cs = "ET", ls = "FI", us = "FJ", fs = "FK", hs = "FM", ds = "FO", ps = "FR", ms = "GA", As = "GB", Es = "GD", gs = "GE", ys = "GF", Ts = "GG", Ms = "GH", vs = "GI", Cs = "GL", Ss = "GM", _s = "GN", Rs = "GP", Ns = "GQ", ks = "GR", bs = "GS", Is = "GT", Ls = "GU", Gs = "GW", Os = "GY", Ps = "HK", Bs = "HM", Us = "HN", Fs = "HR", ws = "HT", Ds = "HU", Hs = "ID", Ks = "IE", js = "IL", Ws = "IM", xs = "IN", Ys = "IO", Zs = "IQ", Vs = "IR", Js = "IS", qs = "IT", Xs = "JE", Qs = "JM", $s = "JO", zs = "JP", tn = "KE", en = "KG", sn = "KH", nn = "KI", on = "KM", rn = "KN", an = "KP", cn = "KR", ln = "KW", un = "KY", fn = "KZ", hn = "LA", dn = "LB", pn = "LC", mn = "LI", An = "LK", En = "LR", gn = "LS", yn = "LT", Tn = "LU", Mn = "LV", vn = "LY", Cn = "MA", Sn = "MC", _n = "MD", Rn = "ME", Nn = "MF", kn = "MG", bn = "MH", In = "MK", Ln = "ML", Gn = "MM", On = "MN", Pn = "MO", Bn = "MP", Un = "MQ", Fn = "MR", wn = "MS", Dn = "MT", Hn = "MU", Kn = "MV", jn = "MW", Wn = "MX", xn = "MY", Yn = "MZ", Zn = "NA", Vn = "NC", Jn = "NE", qn = "NF", Xn = "NG", Qn = "NI", $n = "NL", zn = "NO", to = "NP", eo = "NR", so = "NU", no = "NZ", oo = "OM", ro = "PA", ao = "PE", io = "PF", co = "PG", lo = "PH", uo = "PK", fo = "PL", ho = "PM", po = "PN", mo = "PR", Ao = "PS", Eo = "PT", go = "PW", yo = "PY", To = "QA", Mo = "RE", vo = "RO", Co = "RS", So = "RU", _o = "RW", Ro = "SA", No = "SB", ko = "SC", bo = "SD", Io = "SE", Lo = "SG", Go = "SH", Oo = "SI", Po = "SJ", Bo = "SK", Uo = "SL", Fo = "SM", wo = "SN", Do = "SO", Ho = "SR", Ko = "SS", jo = "ST", Wo = "SV", xo = "SX", Yo = "SY", Zo = "SZ", Vo = "TC", Jo = "TD", qo = "TF", Xo = "TG", Qo = "TH", $o = "TJ", zo = "TK", tr = "TL", er = "TM", sr = "TN", nr = "TO", or = "TR", rr = "TT", ar = "TV", ir = "TW", cr = "TZ", lr = "UA", ur = "UG", fr = "UM", hr = "US", dr = "UY", pr = "UZ", mr = "VA", Ar = "VC", Er = "VE", gr = "VG", yr = "VI", Tr = "VN", Mr = "VU", vr = "WF", Cr = "WS", Sr = "XK", _r = "YE", Rr = "YT", Nr = "ZA", kr = "ZM", br = "ZW", sa = {
219
- AND: Jt,
220
- ARE: qt,
221
- AFG: Xt,
222
- ATG: Qt,
223
- AIA: $t,
224
- ALB: zt,
225
- ARM: te,
226
- AGO: ee,
227
- ATA: se,
228
- ARG: ne,
229
- ASM: oe,
230
- AUT: re,
231
- AUS: ae,
232
- ABW: ie,
233
- ALA: ce,
234
- AZE: le,
235
- BIH: ue,
236
- BRB: fe,
237
- BGD: he,
215
+ const qt = "AD", Xt = "AE", Qt = "AF", $t = "AG", zt = "AI", te = "AL", ee = "AM", se = "AO", ne = "AQ", oe = "AR", re = "AS", ae = "AT", ie = "AU", ce = "AW", le = "AX", ue = "AZ", fe = "BA", he = "BB", pe = "BD", de = "BE", me = "BF", Ae = "BG", Ee = "BH", ge = "BI", ve = "BJ", ye = "BL", Te = "BM", Me = "BN", _e = "BO", Ce = "BQ", Se = "BR", Re = "BS", Ne = "BT", ke = "BV", be = "BW", Ie = "BY", Le = "BZ", Ge = "CA", Oe = "CC", Pe = "CD", Be = "CF", Ue = "CG", Fe = "CH", we = "CI", De = "CK", He = "CL", Ke = "CM", je = "CN", We = "CO", xe = "CR", Ye = "CU", Ze = "CV", Ve = "CW", Je = "CX", qe = "CY", Xe = "CZ", Qe = "DE", $e = "DJ", ze = "DK", ts = "DM", es = "DO", ss = "DZ", ns = "EC", os = "EE", rs = "EG", as = "EH", is = "ER", cs = "ES", ls = "ET", us = "FI", fs = "FJ", hs = "FK", ps = "FM", ds = "FO", ms = "FR", As = "GA", Es = "GB", gs = "GD", vs = "GE", ys = "GF", Ts = "GG", Ms = "GH", _s = "GI", Cs = "GL", Ss = "GM", Rs = "GN", Ns = "GP", ks = "GQ", bs = "GR", Is = "GS", Ls = "GT", Gs = "GU", Os = "GW", Ps = "GY", Bs = "HK", Us = "HM", Fs = "HN", ws = "HR", Ds = "HT", Hs = "HU", Ks = "ID", js = "IE", Ws = "IL", xs = "IM", Ys = "IN", Zs = "IO", Vs = "IQ", Js = "IR", qs = "IS", Xs = "IT", Qs = "JE", $s = "JM", zs = "JO", tn = "JP", en = "KE", sn = "KG", nn = "KH", on = "KI", rn = "KM", an = "KN", cn = "KP", ln = "KR", un = "KW", fn = "KY", hn = "KZ", pn = "LA", dn = "LB", mn = "LC", An = "LI", En = "LK", gn = "LR", vn = "LS", yn = "LT", Tn = "LU", Mn = "LV", _n = "LY", Cn = "MA", Sn = "MC", Rn = "MD", Nn = "ME", kn = "MF", bn = "MG", In = "MH", Ln = "MK", Gn = "ML", On = "MM", Pn = "MN", Bn = "MO", Un = "MP", Fn = "MQ", wn = "MR", Dn = "MS", Hn = "MT", Kn = "MU", jn = "MV", Wn = "MW", xn = "MX", Yn = "MY", Zn = "MZ", Vn = "NA", Jn = "NC", qn = "NE", Xn = "NF", Qn = "NG", $n = "NI", zn = "NL", to = "NO", eo = "NP", so = "NR", no = "NU", oo = "NZ", ro = "OM", ao = "PA", io = "PE", co = "PF", lo = "PG", uo = "PH", fo = "PK", ho = "PL", po = "PM", mo = "PN", Ao = "PR", Eo = "PS", go = "PT", vo = "PW", yo = "PY", To = "QA", Mo = "RE", _o = "RO", Co = "RS", So = "RU", Ro = "RW", No = "SA", ko = "SB", bo = "SC", Io = "SD", Lo = "SE", Go = "SG", Oo = "SH", Po = "SI", Bo = "SJ", Uo = "SK", Fo = "SL", wo = "SM", Do = "SN", Ho = "SO", Ko = "SR", jo = "SS", Wo = "ST", xo = "SV", Yo = "SX", Zo = "SY", Vo = "SZ", Jo = "TC", qo = "TD", Xo = "TF", Qo = "TG", $o = "TH", zo = "TJ", tr = "TK", er = "TL", sr = "TM", nr = "TN", or = "TO", rr = "TR", ar = "TT", ir = "TV", cr = "TW", lr = "TZ", ur = "UA", fr = "UG", hr = "UM", pr = "US", dr = "UY", mr = "UZ", Ar = "VA", Er = "VC", gr = "VE", vr = "VG", yr = "VI", Tr = "VN", Mr = "VU", _r = "WF", Cr = "WS", Sr = "XK", Rr = "YE", Nr = "YT", kr = "ZA", br = "ZM", Ir = "ZW", na = {
216
+ AND: qt,
217
+ ARE: Xt,
218
+ AFG: Qt,
219
+ ATG: $t,
220
+ AIA: zt,
221
+ ALB: te,
222
+ ARM: ee,
223
+ AGO: se,
224
+ ATA: ne,
225
+ ARG: oe,
226
+ ASM: re,
227
+ AUT: ae,
228
+ AUS: ie,
229
+ ABW: ce,
230
+ ALA: le,
231
+ AZE: ue,
232
+ BIH: fe,
233
+ BRB: he,
234
+ BGD: pe,
238
235
  BEL: de,
239
- BFA: pe,
240
- BGR: me,
241
- BHR: Ae,
242
- BDI: Ee,
243
- BEN: ge,
236
+ BFA: me,
237
+ BGR: Ae,
238
+ BHR: Ee,
239
+ BDI: ge,
240
+ BEN: ve,
244
241
  BLM: ye,
245
242
  BMU: Te,
246
243
  BRN: Me,
247
- BOL: ve,
244
+ BOL: _e,
248
245
  BES: Ce,
249
246
  BRA: Se,
250
- BHS: _e,
251
- BTN: Re,
252
- BVT: Ne,
253
- BWA: ke,
254
- BLR: be,
255
- BLZ: Ie,
256
- CAN: Le,
257
- CCK: Ge,
258
- COD: Oe,
259
- CAF: Pe,
260
- COG: Be,
261
- CHE: Ue,
262
- CIV: Fe,
263
- COK: we,
264
- CHL: De,
265
- CMR: He,
266
- CHN: Ke,
267
- COL: je,
268
- CRI: We,
269
- CUB: xe,
270
- CPV: Ye,
271
- CUW: Ze,
272
- CXR: Ve,
273
- CYP: Je,
274
- CZE: qe,
275
- DEU: Xe,
276
- DJI: Qe,
277
- DNK: $e,
278
- DMA: ze,
279
- DOM: ts,
280
- DZA: es,
281
- ECU: ss,
282
- EST: ns,
283
- EGY: os,
284
- ESH: rs,
285
- ERI: as,
286
- ESP: is,
287
- ETH: cs,
288
- FIN: ls,
289
- FJI: us,
290
- FLK: fs,
291
- FSM: hs,
247
+ BHS: Re,
248
+ BTN: Ne,
249
+ BVT: ke,
250
+ BWA: be,
251
+ BLR: Ie,
252
+ BLZ: Le,
253
+ CAN: Ge,
254
+ CCK: Oe,
255
+ COD: Pe,
256
+ CAF: Be,
257
+ COG: Ue,
258
+ CHE: Fe,
259
+ CIV: we,
260
+ COK: De,
261
+ CHL: He,
262
+ CMR: Ke,
263
+ CHN: je,
264
+ COL: We,
265
+ CRI: xe,
266
+ CUB: Ye,
267
+ CPV: Ze,
268
+ CUW: Ve,
269
+ CXR: Je,
270
+ CYP: qe,
271
+ CZE: Xe,
272
+ DEU: Qe,
273
+ DJI: $e,
274
+ DNK: ze,
275
+ DMA: ts,
276
+ DOM: es,
277
+ DZA: ss,
278
+ ECU: ns,
279
+ EST: os,
280
+ EGY: rs,
281
+ ESH: as,
282
+ ERI: is,
283
+ ESP: cs,
284
+ ETH: ls,
285
+ FIN: us,
286
+ FJI: fs,
287
+ FLK: hs,
288
+ FSM: ps,
292
289
  FRO: ds,
293
- FRA: ps,
294
- GAB: ms,
295
- GBR: As,
296
- GRD: Es,
297
- GEO: gs,
290
+ FRA: ms,
291
+ GAB: As,
292
+ GBR: Es,
293
+ GRD: gs,
294
+ GEO: vs,
298
295
  GUF: ys,
299
296
  GGY: Ts,
300
297
  GHA: Ms,
301
- GIB: vs,
298
+ GIB: _s,
302
299
  GRL: Cs,
303
300
  GMB: Ss,
304
- GIN: _s,
305
- GLP: Rs,
306
- GNQ: Ns,
307
- GRC: ks,
308
- SGS: bs,
309
- GTM: Is,
310
- GUM: Ls,
311
- GNB: Gs,
312
- GUY: Os,
313
- HKG: Ps,
314
- HMD: Bs,
315
- HND: Us,
316
- HRV: Fs,
317
- HTI: ws,
318
- HUN: Ds,
319
- IDN: Hs,
320
- IRL: Ks,
321
- ISR: js,
322
- IMN: Ws,
323
- IND: xs,
324
- IOT: Ys,
325
- IRQ: Zs,
326
- IRN: Vs,
327
- ISL: Js,
328
- ITA: qs,
329
- JEY: Xs,
330
- JAM: Qs,
331
- JOR: $s,
332
- JPN: zs,
333
- KEN: tn,
334
- KGZ: en,
335
- KHM: sn,
336
- KIR: nn,
337
- COM: on,
338
- KNA: rn,
339
- PRK: an,
340
- KOR: cn,
341
- KWT: ln,
342
- CYM: un,
343
- KAZ: fn,
344
- LAO: hn,
301
+ GIN: Rs,
302
+ GLP: Ns,
303
+ GNQ: ks,
304
+ GRC: bs,
305
+ SGS: Is,
306
+ GTM: Ls,
307
+ GUM: Gs,
308
+ GNB: Os,
309
+ GUY: Ps,
310
+ HKG: Bs,
311
+ HMD: Us,
312
+ HND: Fs,
313
+ HRV: ws,
314
+ HTI: Ds,
315
+ HUN: Hs,
316
+ IDN: Ks,
317
+ IRL: js,
318
+ ISR: Ws,
319
+ IMN: xs,
320
+ IND: Ys,
321
+ IOT: Zs,
322
+ IRQ: Vs,
323
+ IRN: Js,
324
+ ISL: qs,
325
+ ITA: Xs,
326
+ JEY: Qs,
327
+ JAM: $s,
328
+ JOR: zs,
329
+ JPN: tn,
330
+ KEN: en,
331
+ KGZ: sn,
332
+ KHM: nn,
333
+ KIR: on,
334
+ COM: rn,
335
+ KNA: an,
336
+ PRK: cn,
337
+ KOR: ln,
338
+ KWT: un,
339
+ CYM: fn,
340
+ KAZ: hn,
341
+ LAO: pn,
345
342
  LBN: dn,
346
- LCA: pn,
347
- LIE: mn,
348
- LKA: An,
349
- LBR: En,
350
- LSO: gn,
343
+ LCA: mn,
344
+ LIE: An,
345
+ LKA: En,
346
+ LBR: gn,
347
+ LSO: vn,
351
348
  LTU: yn,
352
349
  LUX: Tn,
353
350
  LVA: Mn,
354
- LBY: vn,
351
+ LBY: _n,
355
352
  MAR: Cn,
356
353
  MCO: Sn,
357
- MDA: _n,
358
- MNE: Rn,
359
- MAF: Nn,
360
- MDG: kn,
361
- MHL: bn,
362
- MKD: In,
363
- MLI: Ln,
364
- MMR: Gn,
365
- MNG: On,
366
- MAC: Pn,
367
- MNP: Bn,
368
- MTQ: Un,
369
- MRT: Fn,
370
- MSR: wn,
371
- MLT: Dn,
372
- MUS: Hn,
373
- MDV: Kn,
374
- MWI: jn,
375
- MEX: Wn,
376
- MYS: xn,
377
- MOZ: Yn,
378
- NAM: Zn,
379
- NCL: Vn,
380
- NER: Jn,
381
- NFK: qn,
382
- NGA: Xn,
383
- NIC: Qn,
384
- NLD: $n,
385
- NOR: zn,
386
- NPL: to,
387
- NRU: eo,
388
- NIU: so,
389
- NZL: no,
390
- OMN: oo,
391
- PAN: ro,
392
- PER: ao,
393
- PYF: io,
394
- PNG: co,
395
- PHL: lo,
396
- PAK: uo,
397
- POL: fo,
398
- SPM: ho,
399
- PCN: po,
400
- PRI: mo,
401
- PSE: Ao,
402
- PRT: Eo,
403
- PLW: go,
354
+ MDA: Rn,
355
+ MNE: Nn,
356
+ MAF: kn,
357
+ MDG: bn,
358
+ MHL: In,
359
+ MKD: Ln,
360
+ MLI: Gn,
361
+ MMR: On,
362
+ MNG: Pn,
363
+ MAC: Bn,
364
+ MNP: Un,
365
+ MTQ: Fn,
366
+ MRT: wn,
367
+ MSR: Dn,
368
+ MLT: Hn,
369
+ MUS: Kn,
370
+ MDV: jn,
371
+ MWI: Wn,
372
+ MEX: xn,
373
+ MYS: Yn,
374
+ MOZ: Zn,
375
+ NAM: Vn,
376
+ NCL: Jn,
377
+ NER: qn,
378
+ NFK: Xn,
379
+ NGA: Qn,
380
+ NIC: $n,
381
+ NLD: zn,
382
+ NOR: to,
383
+ NPL: eo,
384
+ NRU: so,
385
+ NIU: no,
386
+ NZL: oo,
387
+ OMN: ro,
388
+ PAN: ao,
389
+ PER: io,
390
+ PYF: co,
391
+ PNG: lo,
392
+ PHL: uo,
393
+ PAK: fo,
394
+ POL: ho,
395
+ SPM: po,
396
+ PCN: mo,
397
+ PRI: Ao,
398
+ PSE: Eo,
399
+ PRT: go,
400
+ PLW: vo,
404
401
  PRY: yo,
405
402
  QAT: To,
406
403
  REU: Mo,
407
- ROU: vo,
404
+ ROU: _o,
408
405
  SRB: Co,
409
406
  RUS: So,
410
- RWA: _o,
411
- SAU: Ro,
412
- SLB: No,
413
- SYC: ko,
414
- SDN: bo,
415
- SWE: Io,
416
- SGP: Lo,
417
- SHN: Go,
418
- SVN: Oo,
419
- SJM: Po,
420
- SVK: Bo,
421
- SLE: Uo,
422
- SMR: Fo,
423
- SEN: wo,
424
- SOM: Do,
425
- SUR: Ho,
426
- SSD: Ko,
427
- STP: jo,
428
- SLV: Wo,
429
- SXM: xo,
430
- SYR: Yo,
431
- SWZ: Zo,
432
- TCA: Vo,
433
- TCD: Jo,
434
- ATF: qo,
435
- TGO: Xo,
436
- THA: Qo,
437
- TJK: $o,
438
- TKL: zo,
439
- TLS: tr,
440
- TKM: er,
441
- TUN: sr,
442
- TON: nr,
443
- TUR: or,
444
- TTO: rr,
445
- TUV: ar,
446
- TWN: ir,
447
- TZA: cr,
448
- UKR: lr,
449
- UGA: ur,
450
- UMI: fr,
451
- USA: hr,
407
+ RWA: Ro,
408
+ SAU: No,
409
+ SLB: ko,
410
+ SYC: bo,
411
+ SDN: Io,
412
+ SWE: Lo,
413
+ SGP: Go,
414
+ SHN: Oo,
415
+ SVN: Po,
416
+ SJM: Bo,
417
+ SVK: Uo,
418
+ SLE: Fo,
419
+ SMR: wo,
420
+ SEN: Do,
421
+ SOM: Ho,
422
+ SUR: Ko,
423
+ SSD: jo,
424
+ STP: Wo,
425
+ SLV: xo,
426
+ SXM: Yo,
427
+ SYR: Zo,
428
+ SWZ: Vo,
429
+ TCA: Jo,
430
+ TCD: qo,
431
+ ATF: Xo,
432
+ TGO: Qo,
433
+ THA: $o,
434
+ TJK: zo,
435
+ TKL: tr,
436
+ TLS: er,
437
+ TKM: sr,
438
+ TUN: nr,
439
+ TON: or,
440
+ TUR: rr,
441
+ TTO: ar,
442
+ TUV: ir,
443
+ TWN: cr,
444
+ TZA: lr,
445
+ UKR: ur,
446
+ UGA: fr,
447
+ UMI: hr,
448
+ USA: pr,
452
449
  URY: dr,
453
- UZB: pr,
454
- VAT: mr,
455
- VCT: Ar,
456
- VEN: Er,
457
- VGB: gr,
450
+ UZB: mr,
451
+ VAT: Ar,
452
+ VCT: Er,
453
+ VEN: gr,
454
+ VGB: vr,
458
455
  VIR: yr,
459
456
  VNM: Tr,
460
457
  VUT: Mr,
461
- WLF: vr,
458
+ WLF: _r,
462
459
  WSM: Cr,
463
460
  XKX: Sr,
464
- YEM: _r,
465
- MYT: Rr,
466
- ZAF: Nr,
467
- ZMB: kr,
468
- ZWE: br
469
- }, Ir = '"Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji","EmojiOne Color","Android Emoji",sans-serif';
470
- function Lr() {
461
+ YEM: Rr,
462
+ MYT: Nr,
463
+ ZAF: kr,
464
+ ZMB: br,
465
+ ZWE: Ir
466
+ }, Lr = '"Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji","EmojiOne Color","Android Emoji",sans-serif';
467
+ function Gr() {
471
468
  const e = document.createElement("canvas");
472
469
  e.width = e.height = 1;
473
470
  const t = e.getContext("2d", { willReadFrequently: !0 });
474
- return t.textBaseline = "top", t.font = `100px ${Ir}`, t.scale(0.01, 0.01), t;
471
+ return t.textBaseline = "top", t.font = `100px ${Lr}`, t.scale(0.01, 0.01), t;
475
472
  }
476
473
  function st(e, t, s) {
477
474
  return e.clearRect(0, 0, 100, 100), e.fillStyle = s, e.fillText(t, 0, 0), e.getImageData(0, 0, 1, 1).data.join(",");
478
475
  }
479
476
  function nt(e) {
480
- const t = Lr(), s = st(t, e, "#fff"), n = st(t, e, "#000");
477
+ const t = Gr(), s = st(t, e, "#fff"), n = st(t, e, "#000");
481
478
  return n === s && !n.startsWith("0,0,0,");
482
479
  }
483
- function na(e = "Twemoji Country Flags", t = "https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1/dist/TwemojiCountryFlags.woff2") {
480
+ function oa(e = "Twemoji Country Flags", t = "https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1/dist/TwemojiCountryFlags.woff2") {
484
481
  if (typeof window < "u" && nt("😊") && !nt("🇨🇭")) {
485
482
  const s = document.createElement("style");
486
483
  return s.textContent = `@font-face {
@@ -493,7 +490,7 @@ function na(e = "Twemoji Country Flags", t = "https://cdn.jsdelivr.net/npm/count
493
490
  }
494
491
  return !1;
495
492
  }
496
- var Gr = Object.defineProperty, Or = (e, t, s) => t in e ? Gr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, O = (e, t, s) => Or(e, typeof t != "symbol" ? t + "" : t, s);
493
+ var Or = Object.defineProperty, Pr = (e, t, s) => t in e ? Or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, O = (e, t, s) => Pr(e, typeof t != "symbol" ? t + "" : t, s);
497
494
  const ot = {
498
495
  "#": { pattern: /[0-9]/ },
499
496
  "@": { pattern: /[a-zA-Z]/ },
@@ -505,19 +502,19 @@ const ot = {
505
502
  maximumFractionDigits: t,
506
503
  roundingMode: "trunc"
507
504
  });
508
- }, Pr = (e, t = !0, s) => {
505
+ }, Br = (e, t = !0, s) => {
509
506
  var n, o, r, c;
510
507
  const u = ((n = s.number) == null ? void 0 : n.unsigned) !== !0 && e.startsWith("-") ? "-" : "", d = ((o = s.number) == null ? void 0 : o.fraction) ?? 0;
511
508
  let f = at(0, d, s);
512
- const E = f.formatToParts(1000.12), T = ((r = E.find((h) => h.type === "group")) == null ? void 0 : r.value) ?? " ", m = ((c = E.find((h) => h.type === "decimal")) == null ? void 0 : c.value) ?? ".", g = rt(e, T, m);
513
- if (Number.isNaN(parseFloat(g))) return u;
514
- const p = g.split(".");
515
- if (p[1] != null && p[1].length >= 1) {
516
- const h = p[1].length <= d ? p[1].length : d;
509
+ const g = f.formatToParts(1000.12), y = ((r = g.find((h) => h.type === "group")) == null ? void 0 : r.value) ?? " ", p = ((c = g.find((h) => h.type === "decimal")) == null ? void 0 : c.value) ?? ".", A = rt(e, y, p);
510
+ if (Number.isNaN(parseFloat(A))) return u;
511
+ const m = A.split(".");
512
+ if (m[1] != null && m[1].length >= 1) {
513
+ const h = m[1].length <= d ? m[1].length : d;
517
514
  f = at(h, d, s);
518
515
  }
519
- let A = f.format(parseFloat(g));
520
- return t ? d > 0 && g.endsWith(".") && !g.slice(0, -1).includes(".") && (A += m) : A = rt(A, T, m), u + A;
516
+ let E = f.format(parseFloat(A));
517
+ return t ? d > 0 && A.endsWith(".") && !A.slice(0, -1).includes(".") && (E += p) : E = rt(E, y, p), u + E;
521
518
  };
522
519
  class At {
523
520
  constructor(t = {}) {
@@ -567,34 +564,34 @@ class At {
567
564
  }), { mask: s.join(""), escaped: n };
568
565
  }
569
566
  process(t, s, n = !0) {
570
- if (this.opts.number != null) return Pr(t, n, this.opts);
567
+ if (this.opts.number != null) return Br(t, n, this.opts);
571
568
  if (s == null) return t;
572
569
  const o = `v=${t},mr=${s},m=${n ? 1 : 0}`;
573
570
  if (this.memo.has(o)) return this.memo.get(o);
574
- const { mask: r, escaped: c } = this.escapeMask(s), u = [], d = this.opts.tokens != null ? this.opts.tokens : {}, f = this.isReversed() ? -1 : 1, E = this.isReversed() ? "unshift" : "push", T = this.isReversed() ? 0 : r.length - 1, m = this.isReversed() ? () => h > -1 && y > -1 : () => h < r.length && y < t.length, g = (a) => !this.isReversed() && a <= T || this.isReversed() && a >= T;
575
- let p, A = -1, h = this.isReversed() ? r.length - 1 : 0, y = this.isReversed() ? t.length - 1 : 0, v = !1;
576
- for (; m(); ) {
577
- const a = r.charAt(h), i = d[a], l = (i == null ? void 0 : i.transform) != null ? i.transform(t.charAt(y)) : t.charAt(y);
578
- if (!c.includes(h) && i != null ? (l.match(i.pattern) != null ? (u[E](l), i.repeated ? (A === -1 ? A = h : h === T && h !== A && (h = A - f), T === A && (h -= f)) : i.multiple && (v = !0, h -= f), h += f) : i.multiple ? v && (h += f, y -= f, v = !1) : l === p ? p = void 0 : i.optional && (h += f, y -= f), y += f) : (n && !this.isEager() && u[E](a), l === a && !this.isEager() ? y += f : p = a, this.isEager() || (h += f)), this.isEager())
579
- for (; g(h) && (d[r.charAt(h)] == null || c.includes(h)); ) {
571
+ const { mask: r, escaped: c } = this.escapeMask(s), u = [], d = this.opts.tokens != null ? this.opts.tokens : {}, f = this.isReversed() ? -1 : 1, g = this.isReversed() ? "unshift" : "push", y = this.isReversed() ? 0 : r.length - 1, p = this.isReversed() ? () => h > -1 && v > -1 : () => h < r.length && v < t.length, A = (a) => !this.isReversed() && a <= y || this.isReversed() && a >= y;
572
+ let m, E = -1, h = this.isReversed() ? r.length - 1 : 0, v = this.isReversed() ? t.length - 1 : 0, M = !1;
573
+ for (; p(); ) {
574
+ const a = r.charAt(h), i = d[a], l = (i == null ? void 0 : i.transform) != null ? i.transform(t.charAt(v)) : t.charAt(v);
575
+ if (!c.includes(h) && i != null ? (l.match(i.pattern) != null ? (u[g](l), i.repeated ? (E === -1 ? E = h : h === y && h !== E && (h = E - f), y === E && (h -= f)) : i.multiple && (M = !0, h -= f), h += f) : i.multiple ? M && (h += f, v -= f, M = !1) : l === m ? m = void 0 : i.optional && (h += f, v -= f), v += f) : (n && !this.isEager() && u[g](a), l === a && !this.isEager() ? v += f : m = a, this.isEager() || (h += f)), this.isEager())
576
+ for (; A(h) && (d[r.charAt(h)] == null || c.includes(h)); ) {
580
577
  if (n) {
581
- if (u[E](r.charAt(h)), t.charAt(y) === r.charAt(h)) {
582
- h += f, y += f;
578
+ if (u[g](r.charAt(h)), t.charAt(v) === r.charAt(h)) {
579
+ h += f, v += f;
583
580
  continue;
584
581
  }
585
- } else r.charAt(h) === t.charAt(y) && (y += f);
582
+ } else r.charAt(h) === t.charAt(v) && (v += f);
586
583
  h += f;
587
584
  }
588
585
  }
589
586
  return this.memo.set(o, u.join("")), this.memo.get(o);
590
587
  }
591
588
  }
592
- const Et = (e) => JSON.parse(e.replaceAll("'", '"')), Br = (e, t = {}) => {
589
+ const Et = (e) => JSON.parse(e.replaceAll("'", '"')), Ur = (e, t = {}) => {
593
590
  const s = { ...t };
594
- e.dataset.maska != null && e.dataset.maska !== "" && (s.mask = Ur(e.dataset.maska)), e.dataset.maskaEager != null && (s.eager = P(e.dataset.maskaEager)), e.dataset.maskaReversed != null && (s.reversed = P(e.dataset.maskaReversed)), e.dataset.maskaTokensReplace != null && (s.tokensReplace = P(e.dataset.maskaTokensReplace)), e.dataset.maskaTokens != null && (s.tokens = Fr(e.dataset.maskaTokens));
591
+ e.dataset.maska != null && e.dataset.maska !== "" && (s.mask = Fr(e.dataset.maska)), e.dataset.maskaEager != null && (s.eager = P(e.dataset.maskaEager)), e.dataset.maskaReversed != null && (s.reversed = P(e.dataset.maskaReversed)), e.dataset.maskaTokensReplace != null && (s.tokensReplace = P(e.dataset.maskaTokensReplace)), e.dataset.maskaTokens != null && (s.tokens = wr(e.dataset.maskaTokens));
595
592
  const n = {};
596
593
  return e.dataset.maskaNumberLocale != null && (n.locale = e.dataset.maskaNumberLocale), e.dataset.maskaNumberFraction != null && (n.fraction = parseInt(e.dataset.maskaNumberFraction)), e.dataset.maskaNumberUnsigned != null && (n.unsigned = P(e.dataset.maskaNumberUnsigned)), (e.dataset.maskaNumber != null || Object.values(n).length > 0) && (s.number = n), s;
597
- }, P = (e) => e !== "" ? !!JSON.parse(e) : !0, Ur = (e) => e.startsWith("[") && e.endsWith("]") ? Et(e) : e, Fr = (e) => {
594
+ }, P = (e) => e !== "" ? !!JSON.parse(e) : !0, Fr = (e) => e.startsWith("[") && e.endsWith("]") ? Et(e) : e, wr = (e) => {
598
595
  if (e.startsWith("{") && e.endsWith("}"))
599
596
  return Et(e);
600
597
  const t = {};
@@ -608,12 +605,14 @@ const Et = (e) => JSON.parse(e.replaceAll("'", '"')), Br = (e, t = {}) => {
608
605
  };
609
606
  }), t;
610
607
  };
611
- class oa {
608
+ class ra {
612
609
  constructor(t, s = {}) {
613
610
  O(this, "items", /* @__PURE__ */ new Map()), O(this, "eventAbortController"), O(this, "onInput", (n) => {
614
611
  if (n instanceof CustomEvent && n.type === "input" && !n.isTrusted && !n.bubbles)
615
612
  return;
616
- const o = n.target, r = this.items.get(o), c = "inputType" in n && n.inputType.startsWith("delete"), u = r.isEager(), d = c && u && r.unmasked(o.value) === "" ? "" : o.value;
613
+ const o = n.target, r = this.items.get(o);
614
+ if (r === void 0) return;
615
+ const c = "inputType" in n && n.inputType.startsWith("delete"), u = r.isEager(), d = c && u && r.unmasked(o.value) === "" ? "" : o.value;
617
616
  this.fixCursor(o, c, () => this.setValue(o, d));
618
617
  }), this.options = s, this.eventAbortController = new AbortController(), this.init(this.getInputs(t));
619
618
  }
@@ -621,7 +620,8 @@ class oa {
621
620
  this.options = { ...t }, this.init(Array.from(this.items.keys()));
622
621
  }
623
622
  updateValue(t) {
624
- t.value !== "" && t.value !== this.processInput(t).masked && this.setValue(t, t.value);
623
+ var s;
624
+ t.value !== "" && t.value !== ((s = this.processInput(t)) == null ? void 0 : s.masked) && this.setValue(t, t.value);
625
625
  }
626
626
  destroy() {
627
627
  this.eventAbortController.abort(), this.items.clear();
@@ -633,7 +633,7 @@ class oa {
633
633
  const { signal: r } = this.eventAbortController;
634
634
  n.addEventListener("input", this.onInput, { capture: !0, signal: r });
635
635
  }
636
- const o = new At(Br(n, s));
636
+ const o = new At(Ur(n, s));
637
637
  this.items.set(n, o), queueMicrotask(() => this.updateValue(n)), n.selectionStart === null && o.isEager() && console.warn("Maska: input of `%s` type is not supported", n.type);
638
638
  }
639
639
  }
@@ -645,18 +645,21 @@ class oa {
645
645
  return r;
646
646
  }
647
647
  fixCursor(t, s, n) {
648
- const o = t.selectionStart, r = t.value;
649
- if (n(), o === null || o === r.length && !s) return;
650
- const c = t.value, u = r.slice(0, o), d = c.slice(0, o), f = this.processInput(t, u).unmasked, E = this.processInput(t, d).unmasked;
651
- let T = o;
652
- u !== d && (T += s ? c.length - r.length : f.length - E.length), t.setSelectionRange(T, T);
648
+ var o, r;
649
+ const c = t.selectionStart, u = t.value;
650
+ if (n(), c === null || c === u.length && !s) return;
651
+ const d = t.value, f = u.slice(0, c), g = d.slice(0, c), y = (o = this.processInput(t, f)) == null ? void 0 : o.unmasked, p = (r = this.processInput(t, g)) == null ? void 0 : r.unmasked;
652
+ if (y === void 0 || p === void 0) return;
653
+ let A = c;
654
+ f !== g && (A += s ? d.length - u.length : y.length - p.length), t.setSelectionRange(A, A);
653
655
  }
654
656
  setValue(t, s) {
655
657
  const n = this.processInput(t, s);
656
- t.value = n.masked, this.options.onMaska != null && (Array.isArray(this.options.onMaska) ? this.options.onMaska.forEach((o) => o(n)) : this.options.onMaska(n)), t.dispatchEvent(new CustomEvent("maska", { detail: n })), t.dispatchEvent(new CustomEvent("input", { detail: n.masked }));
658
+ n !== void 0 && (t.value = n.masked, this.options.onMaska != null && (Array.isArray(this.options.onMaska) ? this.options.onMaska.forEach((o) => o(n)) : this.options.onMaska(n)), t.dispatchEvent(new CustomEvent("maska", { detail: n })), t.dispatchEvent(new CustomEvent("input", { detail: n.masked })));
657
659
  }
658
660
  processInput(t, s) {
659
661
  const n = this.items.get(t);
662
+ if (n === void 0) return;
660
663
  let o = s ?? t.value;
661
664
  this.options.preProcess != null && (o = this.options.preProcess(o));
662
665
  let r = n.masked(o);
@@ -667,7 +670,7 @@ class oa {
667
670
  };
668
671
  }
669
672
  }
670
- const wr = "application/json", gt = "Content-Type", b = Symbol(), yt = Symbol();
673
+ const Dr = "application/json", gt = "Content-Type", b = Symbol(), vt = Symbol();
671
674
  function it(e = {}) {
672
675
  var t;
673
676
  const s = e instanceof Array ? Object.fromEntries(e) : e;
@@ -703,49 +706,49 @@ const N = function(e, t, s = !1) {
703
706
  return s && o ? new o(...n) : o;
704
707
  }
705
708
  };
706
- function Dr(e, t = !1) {
709
+ function Hr(e, t = !1) {
707
710
  I.options = t ? e : N(I.options, e);
708
711
  }
709
- function Hr(e, t = !1) {
712
+ function Kr(e, t = !1) {
710
713
  I.polyfills = t ? e : N(I.polyfills, e);
711
714
  }
712
- function Kr(e) {
715
+ function jr(e) {
713
716
  I.errorType = e;
714
717
  }
715
- const jr = (e) => (t) => e.reduceRight((s, n) => n(s), t) || t;
716
- class Tt extends Error {
718
+ const Wr = (e) => (t) => e.reduceRight((s, n) => n(s), t) || t;
719
+ class yt extends Error {
717
720
  }
718
- const Wr = (e) => {
721
+ const xr = (e) => {
719
722
  const t = /* @__PURE__ */ Object.create(null);
720
723
  e = e._addons.reduce((a, i) => i.beforeRequest && i.beforeRequest(a, e._options, t) || a, e);
721
- const { _url: s, _options: n, _config: o, _catchers: r, _resolvers: c, _middlewares: u, _addons: d } = e, f = new Map(r), E = N(o.options, n);
722
- let T = s;
723
- const m = jr(u)((a, i) => (T = a, o.polyfill("fetch")(a, i)))(s, E), g = new Error(), p = m.catch((a) => {
724
+ const { _url: s, _options: n, _config: o, _catchers: r, _resolvers: c, _middlewares: u, _addons: d } = e, f = new Map(r), g = N(o.options, n);
725
+ let y = s;
726
+ const p = Wr(u)((a, i) => (y = a, o.polyfill("fetch")(a, i)))(s, g), A = new Error(), m = p.catch((a) => {
724
727
  throw { [b]: a };
725
728
  }).then((a) => {
726
729
  var i;
727
730
  if (!a.ok) {
728
- const l = new Tt();
729
- if (l.cause = g, l.stack = l.stack + `
730
- CAUSE: ` + g.stack, l.response = a, l.status = a.status, l.url = T, a.type === "opaque")
731
+ const l = new yt();
732
+ if (l.cause = A, l.stack = l.stack + `
733
+ CAUSE: ` + A.stack, l.response = a, l.status = a.status, l.url = y, a.type === "opaque")
731
734
  throw l;
732
- const C = o.errorType === "json" || ((i = a.headers.get("Content-Type")) === null || i === void 0 ? void 0 : i.split(";")[0]) === "application/json";
733
- return (o.errorType ? C ? a.text() : a[o.errorType]() : Promise.resolve(a.body)).then((M) => {
734
- throw l.message = typeof M == "string" ? M : a.statusText, M && (C && typeof M == "string" ? (l.text = M, l.json = JSON.parse(M)) : l[o.errorType] = M), l;
735
+ const _ = o.errorType === "json" || ((i = a.headers.get("Content-Type")) === null || i === void 0 ? void 0 : i.split(";")[0]) === "application/json";
736
+ return (o.errorType ? _ ? a.text() : a[o.errorType]() : Promise.resolve(a.body)).then((T) => {
737
+ throw l.message = typeof T == "string" ? T : a.statusText, T && (_ && typeof T == "string" ? (l.text = T, l.json = JSON.parse(T)) : l[o.errorType] = T), l;
735
738
  });
736
739
  }
737
740
  return a;
738
- }), A = (a) => a.catch((i) => {
739
- const l = Object.prototype.hasOwnProperty.call(i, b), C = l ? i[b] : i, S = (C == null ? void 0 : C.status) && f.get(C.status) || f.get(C == null ? void 0 : C.name) || l && f.has(b) && f.get(b);
740
- if (S)
741
- return S(C, e);
742
- const M = f.get(yt);
743
- if (M)
744
- return M(C, e);
745
- throw C;
746
- }), h = (a) => (i) => /* If a callback is provided, then callback with the body result otherwise return the parsed body itself. */ A(a ? p.then((l) => l && l[a]()).then((l) => i ? i(l) : l) : p.then((l) => i ? i(l) : l)), y = {
741
+ }), E = (a) => a.catch((i) => {
742
+ const l = Object.prototype.hasOwnProperty.call(i, b), _ = l ? i[b] : i, C = (_ == null ? void 0 : _.status) && f.get(_.status) || f.get(_ == null ? void 0 : _.name) || l && f.has(b) && f.get(b);
743
+ if (C)
744
+ return C(_, e);
745
+ const T = f.get(vt);
746
+ if (T)
747
+ return T(_, e);
748
+ throw _;
749
+ }), h = (a) => (i) => /* If a callback is provided, then callback with the body result otherwise return the parsed body itself. */ E(a ? m.then((l) => l && l[a]()).then((l) => i ? i(l) : l) : m.then((l) => i ? i(l) : l)), v = {
747
750
  _wretchReq: e,
748
- _fetchReq: m,
751
+ _fetchReq: p,
749
752
  _sharedState: t,
750
753
  res: h(null),
751
754
  json: h("json"),
@@ -777,12 +780,12 @@ CAUSE: ` + g.stack, l.response = a, l.status = a.status, l.url = T, a.type === "
777
780
  fetchError(a) {
778
781
  return this.error(b, a);
779
782
  }
780
- }, v = d.reduce((a, i) => ({
783
+ }, M = d.reduce((a, i) => ({
781
784
  ...a,
782
785
  ...typeof i.resolver == "function" ? i.resolver(a) : i.resolver
783
- }), y);
784
- return c.reduce((a, i) => i(a, e), v);
785
- }, xr = {
786
+ }), v);
787
+ return c.reduce((a, i) => i(a, e), M);
788
+ }, Yr = {
786
789
  _url: "",
787
790
  _options: {},
788
791
  _config: I,
@@ -842,7 +845,7 @@ CAUSE: ` + g.stack, l.response = a, l.status = a.status, l.url = T, a.type === "
842
845
  return s.set(e, t), { ...this, _catchers: s };
843
846
  },
844
847
  catcherFallback(e) {
845
- return this.catcher(yt, e);
848
+ return this.catcher(vt, e);
846
849
  },
847
850
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
848
851
  resolve(e, t = !1) {
@@ -863,7 +866,7 @@ CAUSE: ` + g.stack, l.response = a, l.status = a.status, l.url = T, a.type === "
863
866
  fetch(e = this._options.method, t = "", s = null) {
864
867
  let n = this.url(t).options({ method: e });
865
868
  const o = it(n._options.headers), r = this._config.polyfill("FormData", !1), c = typeof s == "object" && !(r && s instanceof r) && (!n._options.headers || !o || ct(o));
866
- return n = s ? c ? n.json(s, o) : n.body(s) : n, Wr(n._deferred.reduce((u, d) => d(u, u._url, u._options), n));
869
+ return n = s ? c ? n.json(s, o) : n.body(s) : n, xr(n._deferred.reduce((u, d) => d(u, u._url, u._options), n));
867
870
  },
868
871
  get(e = "") {
869
872
  return this.fetch("GET", e);
@@ -891,18 +894,18 @@ CAUSE: ` + g.stack, l.response = a, l.status = a.status, l.url = T, a.type === "
891
894
  },
892
895
  json(e, t) {
893
896
  const s = it(this._options.headers);
894
- return this.content(t || ct(s) && s || wr).body(JSON.stringify(e));
897
+ return this.content(t || ct(s) && s || Dr).body(JSON.stringify(e));
895
898
  }
896
899
  };
897
900
  function k(e = "", t = {}) {
898
- return { ...xr, _url: e, _options: t };
901
+ return { ...Yr, _url: e, _options: t };
899
902
  }
900
903
  k.default = k;
901
- k.options = Dr;
902
- k.errorType = Kr;
903
- k.polyfills = Hr;
904
- k.WretchError = Tt;
905
- const Yr = () => ({
904
+ k.options = Hr;
905
+ k.errorType = jr;
906
+ k.polyfills = Kr;
907
+ k.WretchError = yt;
908
+ const Zr = () => ({
906
909
  beforeRequest(e, t, s) {
907
910
  const n = e._config.polyfill("AbortController", !1, !0);
908
911
  !t.signal && n && (t.signal = n.signal);
@@ -935,26 +938,26 @@ const Yr = () => ({
935
938
  }
936
939
  }
937
940
  });
938
- function Mt(e, t = !1, s, n = s.polyfill("FormData", !0, !0), o = []) {
941
+ function Tt(e, t = !1, s, n = s.polyfill("FormData", !0, !0), o = []) {
939
942
  return Object.entries(e).forEach(([r, c]) => {
940
943
  let u = o.reduce((d, f) => d ? `${d}[${f}]` : f, null);
941
944
  if (u = u ? `${u}[${r}]` : r, c instanceof Array || globalThis.FileList && c instanceof FileList)
942
945
  for (const d of c)
943
946
  n.append(u, d);
944
- else t && typeof c == "object" && (!(t instanceof Array) || !t.includes(r)) ? c !== null && Mt(c, t, s, n, [...o, r]) : n.append(u, c);
947
+ else t && typeof c == "object" && (!(t instanceof Array) || !t.includes(r)) ? c !== null && Tt(c, t, s, n, [...o, r]) : n.append(u, c);
945
948
  }), n;
946
949
  }
947
- const Zr = {
950
+ const Vr = {
948
951
  wretch: {
949
952
  formData(e, t = !1) {
950
- return this.body(Mt(e, t, this._config));
953
+ return this.body(Tt(e, t, this._config));
951
954
  }
952
955
  }
953
956
  };
954
957
  function lt(e) {
955
958
  return typeof e < "u" ? e : "";
956
959
  }
957
- const Vr = (e, t, s, n, o) => {
960
+ const Jr = (e, t, s, n, o) => {
958
961
  let r;
959
962
  if (typeof t == "string")
960
963
  r = t;
@@ -964,8 +967,8 @@ const Vr = (e, t, s, n, o) => {
964
967
  const f = t[d];
965
968
  if (!(n && f == null))
966
969
  if (t[d] instanceof Array)
967
- for (const E of f)
968
- u.append(d, lt(E));
970
+ for (const g of f)
971
+ u.append(d, lt(g));
969
972
  else
970
973
  u.append(d, lt(f));
971
974
  }
@@ -973,29 +976,29 @@ const Vr = (e, t, s, n, o) => {
973
976
  }
974
977
  const c = e.split("?");
975
978
  return r ? s || c.length < 2 ? c[0] + "?" + r : e + "&" + r : s ? c[0] : e;
976
- }, Jr = {
979
+ }, qr = {
977
980
  wretch: {
978
981
  query(e, t = !1, s = !1) {
979
- return { ...this, _url: Vr(this._url, e, t, s, this._config) };
982
+ return { ...this, _url: Jr(this._url, e, t, s, this._config) };
980
983
  }
981
984
  }
982
- }, qr = {
985
+ }, Xr = {
983
986
  number: {
984
987
  locale: "uk",
985
988
  fraction: 2,
986
989
  unsigned: !0
987
990
  }
988
- }, ra = {
991
+ }, aa = {
989
992
  number: {
990
993
  locale: "uk",
991
994
  fraction: 0,
992
995
  unsigned: !0
993
996
  }
994
- }, aa = (e) => {
997
+ }, ia = (e) => {
995
998
  const t = e.split(",");
996
999
  return t.length > 1 && t[1].length === 1 ? e.padEnd(e.length + 1, "0") : e;
997
- }, Xr = (e) => new At(qr).unmasked(e), ut = Symbol("aborted");
998
- class ia {
1000
+ }, Qr = (e) => new At(Xr).unmasked(e), ut = Symbol("aborted");
1001
+ class ca {
999
1002
  constructor(t) {
1000
1003
  q(this, "abort");
1001
1004
  this.version = t;
@@ -1014,7 +1017,7 @@ class ia {
1014
1017
  const n = t.isReceive ? t.payoutAmount : t.sendAmount, o = new URLSearchParams(window.location.search), r = {
1015
1018
  country: t.country,
1016
1019
  method: t.payoutType,
1017
- amount: Xr(n),
1020
+ amount: Qr(n),
1018
1021
  currency: t.payoutCurrency,
1019
1022
  send_currency: t.sendCurrency,
1020
1023
  is_receive: t.isReceive ? 1 : 0,
@@ -1035,23 +1038,23 @@ class ia {
1035
1038
  }
1036
1039
  }
1037
1040
  makeRequest() {
1038
- let t = k().errorType("json").addon(Yr()).addon(Zr).addon(Jr).resolve((s) => s.json());
1041
+ let t = k().errorType("json").addon(Zr()).addon(Vr).addon(qr).resolve((s) => s.json());
1039
1042
  return this.version && (t = t.query({ api_version: this.version })), t;
1040
1043
  }
1041
1044
  }
1042
1045
  export {
1043
- ia as A,
1046
+ ca as A,
1044
1047
  At as F,
1045
- oa as V,
1046
- sa as a,
1048
+ ra as V,
1049
+ na as a,
1047
1050
  H as b,
1048
- ea as c,
1049
- ra as d,
1050
- ta as e,
1051
- na as f,
1052
- qr as g,
1051
+ sa as c,
1052
+ aa as d,
1053
+ ea as e,
1054
+ oa as f,
1055
+ Xr as g,
1053
1056
  ut as h,
1054
- zr as i,
1055
- Xr as j,
1056
- aa as p
1057
+ ta as i,
1058
+ Qr as j,
1059
+ ia as p
1057
1060
  };