@kvell-group/ui 1.9.3 → 1.11.0

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,20 +1,15 @@
1
- import { jsx as wt } from "react/jsx-runtime";
2
- import { InputBase as ue } from "@mantine/core";
3
- import * as Dt from "react";
4
1
  import X from "react";
5
- import { c as oe } from "../../Text.module-R-XLggXY.js";
6
- import { useCardLogo as le } from "./useCardLogo.js";
7
- import '../../assets/CardInput.css';function G(a) {
2
+ function G(a) {
8
3
  return typeof a == "string" || a instanceof String;
9
4
  }
10
- function Vt(a) {
5
+ function Mt(a) {
11
6
  var t;
12
7
  return typeof a == "object" && a != null && (a == null || (t = a.constructor) == null ? void 0 : t.name) === "Object";
13
8
  }
14
- function Wt(a, t) {
15
- return Array.isArray(t) ? Wt(a, (e, s) => t.includes(s)) : Object.entries(a).reduce((e, s) => {
16
- let [r, i] = s;
17
- return t(i, r) && (e[r] = i), e;
9
+ function zt(a, t) {
10
+ return Array.isArray(t) ? zt(a, (e, s) => t.includes(s)) : Object.entries(a).reduce((e, s) => {
11
+ let [i, r] = s;
12
+ return t(r, i) && (e[i] = r), e;
18
13
  }, {});
19
14
  }
20
15
  const m = {
@@ -24,7 +19,7 @@ const m = {
24
19
  RIGHT: "RIGHT",
25
20
  FORCE_RIGHT: "FORCE_RIGHT"
26
21
  };
27
- function he(a) {
22
+ function ee(a) {
28
23
  switch (a) {
29
24
  case m.LEFT:
30
25
  return m.FORCE_LEFT;
@@ -40,29 +35,29 @@ function Ct(a) {
40
35
  function ot(a, t) {
41
36
  if (t === a) return !0;
42
37
  const e = Array.isArray(t), s = Array.isArray(a);
43
- let r;
38
+ let i;
44
39
  if (e && s) {
45
40
  if (t.length != a.length) return !1;
46
- for (r = 0; r < t.length; r++) if (!ot(t[r], a[r])) return !1;
41
+ for (i = 0; i < t.length; i++) if (!ot(t[i], a[i])) return !1;
47
42
  return !0;
48
43
  }
49
44
  if (e != s) return !1;
50
45
  if (t && a && typeof t == "object" && typeof a == "object") {
51
- const i = t instanceof Date, n = a instanceof Date;
52
- if (i && n) return t.getTime() == a.getTime();
53
- if (i != n) return !1;
46
+ const r = t instanceof Date, n = a instanceof Date;
47
+ if (r && n) return t.getTime() == a.getTime();
48
+ if (r != n) return !1;
54
49
  const u = t instanceof RegExp, l = a instanceof RegExp;
55
50
  if (u && l) return t.toString() == a.toString();
56
51
  if (u != l) return !1;
57
52
  const h = Object.keys(t);
58
- for (r = 0; r < h.length; r++) if (!Object.prototype.hasOwnProperty.call(a, h[r])) return !1;
59
- for (r = 0; r < h.length; r++) if (!ot(a[h[r]], t[h[r]])) return !1;
53
+ for (i = 0; i < h.length; i++) if (!Object.prototype.hasOwnProperty.call(a, h[i])) return !1;
54
+ for (i = 0; i < h.length; i++) if (!ot(a[h[i]], t[h[i]])) return !1;
60
55
  return !0;
61
56
  } else if (t && a && typeof t == "function" && typeof a == "function")
62
57
  return t.toString() === a.toString();
63
58
  return !1;
64
59
  }
65
- class pe {
60
+ class se {
66
61
  /** Current input value */
67
62
  /** Current cursor position */
68
63
  /** Old input value */
@@ -112,7 +107,7 @@ class pe {
112
107
  function g(a, t) {
113
108
  return new g.InputMask(a, t);
114
109
  }
115
- function Zt(a) {
110
+ function Ht(a) {
116
111
  if (a == null) throw new Error("mask property should be defined");
117
112
  return a instanceof RegExp ? g.MaskedRegExp : G(a) ? g.MaskedPattern : a === Date ? g.MaskedDate : a === Number ? g.MaskedNumber : Array.isArray(a) || a === Array ? g.MaskedDynamic : g.Masked && a.prototype instanceof g.Masked ? a : g.Masked && a instanceof g.Masked ? a.constructor : a instanceof Function ? g.MaskedFunction : (console.warn("Mask not found for mask", a), g.Masked);
118
113
  }
@@ -127,18 +122,18 @@ function et(a) {
127
122
  ...e
128
123
  } = a instanceof g.Masked ? {
129
124
  mask: a
130
- } : Vt(a) && a.mask instanceof g.Masked ? a : {};
125
+ } : Mt(a) && a.mask instanceof g.Masked ? a : {};
131
126
  if (t) {
132
127
  const s = t.mask;
133
128
  return {
134
- ...Wt(t, (r, i) => !i.startsWith("_")),
129
+ ...zt(t, (i, r) => !r.startsWith("_")),
135
130
  mask: t.constructor,
136
131
  _mask: s,
137
132
  ...e
138
133
  };
139
134
  }
140
135
  }
141
- return Vt(a) ? {
136
+ return Mt(a) ? {
142
137
  ...a
143
138
  } : {
144
139
  mask: a
@@ -146,12 +141,12 @@ function et(a) {
146
141
  }
147
142
  function K(a) {
148
143
  if (g.Masked && a instanceof g.Masked) return a;
149
- const t = et(a), e = Zt(t.mask);
144
+ const t = et(a), e = Ht(t.mask);
150
145
  if (!e) throw new Error("Masked class is not found for provided mask " + t.mask + ", appropriate module needs to be imported manually before creating mask.");
151
146
  return t.mask === e && delete t.mask, t._mask && (t.mask = t._mask, delete t._mask), new e(t);
152
147
  }
153
148
  g.createMask = K;
154
- class Mt {
149
+ class Rt {
155
150
  /** */
156
151
  /** */
157
152
  /** */
@@ -189,9 +184,9 @@ class Mt {
189
184
  /** */
190
185
  /** */
191
186
  }
192
- g.MaskElement = Mt;
193
- const Pt = 90, ce = 89;
194
- class ht extends Mt {
187
+ g.MaskElement = Rt;
188
+ const Ot = 90, ie = 89;
189
+ class ht extends Rt {
195
190
  /** HTMLElement to use mask on */
196
191
  constructor(t) {
197
192
  super(), this.input = t, this._onKeydown = this._onKeydown.bind(this), this._onInput = this._onInput.bind(this), this._onBeforeinput = this._onBeforeinput.bind(this), this._onCompositionEnd = this._onCompositionEnd.bind(this);
@@ -209,9 +204,9 @@ class ht extends Mt {
209
204
  this.input.addEventListener("keydown", this._onKeydown), this.input.addEventListener("input", this._onInput), this.input.addEventListener("beforeinput", this._onBeforeinput), this.input.addEventListener("compositionend", this._onCompositionEnd), this.input.addEventListener("drop", t.drop), this.input.addEventListener("click", t.click), this.input.addEventListener("focus", t.focus), this.input.addEventListener("blur", t.commit), this._handlers = t;
210
205
  }
211
206
  _onKeydown(t) {
212
- if (this._handlers.redo && (t.keyCode === Pt && t.shiftKey && (t.metaKey || t.ctrlKey) || t.keyCode === ce && t.ctrlKey))
207
+ if (this._handlers.redo && (t.keyCode === Ot && t.shiftKey && (t.metaKey || t.ctrlKey) || t.keyCode === ie && t.ctrlKey))
213
208
  return t.preventDefault(), this._handlers.redo(t);
214
- if (this._handlers.undo && t.keyCode === Pt && (t.metaKey || t.ctrlKey))
209
+ if (this._handlers.undo && t.keyCode === Ot && (t.metaKey || t.ctrlKey))
215
210
  return t.preventDefault(), this._handlers.undo(t);
216
211
  t.isComposing || this._handlers.selectionChange(t);
217
212
  }
@@ -233,7 +228,7 @@ class ht extends Mt {
233
228
  }
234
229
  }
235
230
  g.HTMLMaskElement = ht;
236
- class de extends ht {
231
+ class re extends ht {
237
232
  /** InputElement to use mask on */
238
233
  constructor(t) {
239
234
  super(t), this.input = t;
@@ -258,24 +253,24 @@ class de extends ht {
258
253
  }
259
254
  }
260
255
  g.HTMLMaskElement = ht;
261
- class Xt extends ht {
256
+ class Kt extends ht {
262
257
  /** Returns HTMLElement selection start */
263
258
  get _unsafeSelectionStart() {
264
- const t = this.rootElement, e = t.getSelection && t.getSelection(), s = e && e.anchorOffset, r = e && e.focusOffset;
265
- return r == null || s == null || s < r ? s : r;
259
+ const t = this.rootElement, e = t.getSelection && t.getSelection(), s = e && e.anchorOffset, i = e && e.focusOffset;
260
+ return i == null || s == null || s < i ? s : i;
266
261
  }
267
262
  /** Returns HTMLElement selection end */
268
263
  get _unsafeSelectionEnd() {
269
- const t = this.rootElement, e = t.getSelection && t.getSelection(), s = e && e.anchorOffset, r = e && e.focusOffset;
270
- return r == null || s == null || s > r ? s : r;
264
+ const t = this.rootElement, e = t.getSelection && t.getSelection(), s = e && e.anchorOffset, i = e && e.focusOffset;
265
+ return i == null || s == null || s > i ? s : i;
271
266
  }
272
267
  /** Sets HTMLElement selection */
273
268
  _unsafeSelect(t, e) {
274
269
  if (!this.rootElement.createRange) return;
275
270
  const s = this.rootElement.createRange();
276
271
  s.setStart(this.input.firstChild || this.input, t), s.setEnd(this.input.lastChild || this.input, e);
277
- const r = this.rootElement, i = r.getSelection && r.getSelection();
278
- i && (i.removeAllRanges(), i.addRange(s));
272
+ const i = this.rootElement, r = i.getSelection && i.getSelection();
273
+ r && (r.removeAllRanges(), r.addRange(s));
279
274
  }
280
275
  /** HTMLElement value */
281
276
  get value() {
@@ -285,7 +280,7 @@ class Xt extends ht {
285
280
  this.input.textContent = t;
286
281
  }
287
282
  }
288
- g.HTMLContenteditableMaskElement = Xt;
283
+ g.HTMLContenteditableMaskElement = Kt;
289
284
  class pt {
290
285
  constructor() {
291
286
  this.states = [], this.currentIndex = 0;
@@ -313,13 +308,13 @@ class pt {
313
308
  }
314
309
  }
315
310
  pt.MAX_LENGTH = 100;
316
- class fe {
311
+ class ne {
317
312
  /**
318
313
  View element
319
314
  */
320
315
  /** Internal {@link Masked} model */
321
316
  constructor(t, e) {
322
- this.el = t instanceof Mt ? t : t.isContentEditable && t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" ? new Xt(t) : new de(t), this.masked = K(e), this._listeners = {}, this._value = "", this._unmaskedValue = "", this._rawInputValue = "", this.history = new pt(), this._saveSelection = this._saveSelection.bind(this), this._onInput = this._onInput.bind(this), this._onChange = this._onChange.bind(this), this._onDrop = this._onDrop.bind(this), this._onFocus = this._onFocus.bind(this), this._onClick = this._onClick.bind(this), this._onUndo = this._onUndo.bind(this), this._onRedo = this._onRedo.bind(this), this.alignCursor = this.alignCursor.bind(this), this.alignCursorFriendly = this.alignCursorFriendly.bind(this), this._bindEvents(), this.updateValue(), this._onChange();
317
+ this.el = t instanceof Rt ? t : t.isContentEditable && t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" ? new Kt(t) : new re(t), this.masked = K(e), this._listeners = {}, this._value = "", this._unmaskedValue = "", this._rawInputValue = "", this.history = new pt(), this._saveSelection = this._saveSelection.bind(this), this._onInput = this._onInput.bind(this), this._onChange = this._onChange.bind(this), this._onDrop = this._onDrop.bind(this), this._onFocus = this._onFocus.bind(this), this._onClick = this._onClick.bind(this), this._onUndo = this._onUndo.bind(this), this._onRedo = this._onRedo.bind(this), this.alignCursor = this.alignCursor.bind(this), this.alignCursorFriendly = this.alignCursorFriendly.bind(this), this._bindEvents(), this.updateValue(), this._onChange();
323
318
  }
324
319
  maskEquals(t) {
325
320
  var e;
@@ -331,7 +326,7 @@ class fe {
331
326
  }
332
327
  set mask(t) {
333
328
  if (this.maskEquals(t)) return;
334
- if (!(t instanceof g.Masked) && this.masked.constructor === Zt(t)) {
329
+ if (!(t instanceof g.Masked) && this.masked.constructor === Ht(t)) {
335
330
  this.masked.updateOptions({
336
331
  mask: t
337
332
  });
@@ -394,7 +389,7 @@ class fe {
394
389
  /** Fires custom event */
395
390
  _fireEvent(t, e) {
396
391
  const s = this._listeners[t];
397
- s && s.forEach((r) => r(e));
392
+ s && s.forEach((i) => i(e));
398
393
  }
399
394
  /** Current selection start */
400
395
  get selectionStart() {
@@ -420,8 +415,8 @@ class fe {
420
415
  }
421
416
  /** Syncronizes view from model value, fires change events */
422
417
  updateControl(t) {
423
- const e = this.masked.unmaskedValue, s = this.masked.value, r = this.masked.rawInputValue, i = this.displayValue, n = this.unmaskedValue !== e || this.value !== s || this._rawInputValue !== r;
424
- this._unmaskedValue = e, this._value = s, this._rawInputValue = r, this.el.value !== i && (this.el.value = i), t === "auto" ? this.alignCursor() : t != null && (this.cursorPos = t), n && this._fireChangeEvents(), !this._historyChanging && (n || this.history.isEmpty) && this.history.push({
418
+ const e = this.masked.unmaskedValue, s = this.masked.value, i = this.masked.rawInputValue, r = this.displayValue, n = this.unmaskedValue !== e || this.value !== s || this._rawInputValue !== i;
419
+ this._unmaskedValue = e, this._value = s, this._rawInputValue = i, this.el.value !== r && (this.el.value = r), t === "auto" ? this.alignCursor() : t != null && (this.cursorPos = t), n && this._fireChangeEvents(), !this._historyChanging && (n || this.history.isEmpty) && this.history.push({
425
420
  unmaskedValue: e,
426
421
  selection: {
427
422
  start: this.selectionStart,
@@ -434,8 +429,8 @@ class fe {
434
429
  const {
435
430
  mask: e,
436
431
  ...s
437
- } = t, r = !this.maskEquals(e), i = this.masked.optionsIsChanged(s);
438
- r && (this.mask = e), i && this.masked.updateOptions(s), (r || i) && this.updateControl();
432
+ } = t, i = !this.maskEquals(e), r = this.masked.optionsIsChanged(s);
433
+ i && (this.mask = e), r && this.masked.updateOptions(s), (i || r) && this.updateControl();
439
434
  }
440
435
  /** Updates cursor */
441
436
  updateCursor(t) {
@@ -478,19 +473,19 @@ class fe {
478
473
  /** Handles view input event */
479
474
  _onInput(t) {
480
475
  this._inputEvent = t, this._abortUpdateCursor();
481
- const e = new pe({
476
+ const e = new se({
482
477
  // new state
483
478
  value: this.el.value,
484
479
  cursorPos: this.cursorPos,
485
480
  // old state
486
481
  oldValue: this.displayValue,
487
482
  oldSelection: this._selection
488
- }), s = this.masked.rawInputValue, r = this.masked.splice(e.startChangePos, e.removed.length, e.inserted, e.removeDirection, {
483
+ }), s = this.masked.rawInputValue, i = this.masked.splice(e.startChangePos, e.removed.length, e.inserted, e.removeDirection, {
489
484
  input: !0,
490
485
  raw: !0
491
- }).offset, i = s === this.masked.rawInputValue ? e.removeDirection : m.NONE;
492
- let n = this.masked.nearestInputPos(e.startChangePos + r, i);
493
- i !== m.NONE && (n = this.masked.nearestInputPos(n, m.NONE)), this.updateControl(n), delete this._inputEvent;
486
+ }).offset, r = s === this.masked.rawInputValue ? e.removeDirection : m.NONE;
487
+ let n = this.masked.nearestInputPos(e.startChangePos + i, r);
488
+ r !== m.NONE && (n = this.masked.nearestInputPos(n, m.NONE)), this.updateControl(n), delete this._inputEvent;
494
489
  }
495
490
  /** Handles view change event and commits model value */
496
491
  _onChange() {
@@ -522,7 +517,7 @@ class fe {
522
517
  this._unbindEvents(), this._listeners.length = 0, delete this.el;
523
518
  }
524
519
  }
525
- g.InputMask = fe;
520
+ g.InputMask = ne;
526
521
  class E {
527
522
  /** Inserted symbols */
528
523
  /** Additional offset if any changes occurred before tail */
@@ -555,7 +550,7 @@ class E {
555
550
  }
556
551
  }
557
552
  g.ChangeDetails = E;
558
- class H {
553
+ class z {
559
554
  /** Tail value as string */
560
555
  /** Tail start position */
561
556
  /** Start position */
@@ -695,11 +690,11 @@ class P {
695
690
  }
696
691
  /** Extracts tail in range */
697
692
  extractTail(t, e) {
698
- return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), new H(this.extractInput(t, e), t);
693
+ return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), new z(this.extractInput(t, e), t);
699
694
  }
700
695
  /** Appends tail */
701
696
  appendTail(t) {
702
- return G(t) && (t = new H(String(t))), t.appendTo(this);
697
+ return G(t) && (t = new z(String(t))), t.appendTo(this);
703
698
  }
704
699
  /** Appends char */
705
700
  _appendCharRaw(t, e) {
@@ -711,36 +706,36 @@ class P {
711
706
  /** Appends char */
712
707
  _appendChar(t, e, s) {
713
708
  e === void 0 && (e = {});
714
- const r = this.state;
715
- let i;
716
- if ([t, i] = this.doPrepareChar(t, e), t && (i = i.aggregate(this._appendCharRaw(t, e)), !i.rawInserted && this.autofix === "pad")) {
709
+ const i = this.state;
710
+ let r;
711
+ if ([t, r] = this.doPrepareChar(t, e), t && (r = r.aggregate(this._appendCharRaw(t, e)), !r.rawInserted && this.autofix === "pad")) {
717
712
  const n = this.state;
718
- this.state = r;
713
+ this.state = i;
719
714
  let u = this.pad(e);
720
715
  const l = this._appendCharRaw(t, e);
721
- u = u.aggregate(l), l.rawInserted || u.equals(i) ? i = u : this.state = n;
716
+ u = u.aggregate(l), l.rawInserted || u.equals(r) ? r = u : this.state = n;
722
717
  }
723
- if (i.inserted) {
718
+ if (r.inserted) {
724
719
  let n, u = this.doValidate(e) !== !1;
725
720
  if (u && s != null) {
726
721
  const l = this.state;
727
722
  if (this.overwrite === !0) {
728
723
  n = s.state;
729
- for (let v = 0; v < i.rawInserted.length; ++v)
730
- s.unshift(this.displayValue.length - i.tailShift);
724
+ for (let v = 0; v < r.rawInserted.length; ++v)
725
+ s.unshift(this.displayValue.length - r.tailShift);
731
726
  }
732
727
  let h = this.appendTail(s);
733
728
  if (u = h.rawInserted.length === s.toString().length, !(u && h.inserted) && this.overwrite === "shift") {
734
729
  this.state = l, n = s.state;
735
- for (let v = 0; v < i.rawInserted.length; ++v)
730
+ for (let v = 0; v < r.rawInserted.length; ++v)
736
731
  s.shift();
737
732
  h = this.appendTail(s), u = h.rawInserted.length === s.toString().length;
738
733
  }
739
734
  u && h.inserted && (this.state = l);
740
735
  }
741
- u || (i = new E(), this.state = r, s && n && (s.state = n));
736
+ u || (r = new E(), this.state = i, s && n && (s.state = n));
742
737
  }
743
- return i;
738
+ return r;
744
739
  }
745
740
  /** Appends optional placeholder at the end */
746
741
  _appendPlaceholder() {
@@ -753,16 +748,16 @@ class P {
753
748
  /** Appends symbols considering flags */
754
749
  append(t, e, s) {
755
750
  if (!G(t)) throw new Error("value should be string");
756
- const r = G(s) ? new H(String(s)) : s;
751
+ const i = G(s) ? new z(String(s)) : s;
757
752
  e != null && e.tail && (e._beforeTailState = this.state);
758
- let i;
759
- [t, i] = this.doPrepare(t, e);
753
+ let r;
754
+ [t, r] = this.doPrepare(t, e);
760
755
  for (let n = 0; n < t.length; ++n) {
761
- const u = this._appendChar(t[n], e, r);
762
- if (!u.rawInserted && !this.doSkipInvalid(t[n], e, r)) break;
763
- i.aggregate(u);
756
+ const u = this._appendChar(t[n], e, i);
757
+ if (!u.rawInserted && !this.doSkipInvalid(t[n], e, i)) break;
758
+ r.aggregate(u);
764
759
  }
765
- return (this.eager === !0 || this.eager === "append") && e != null && e.input && t && i.aggregate(this._appendEager()), r != null && (i.tailShift += this.appendTail(r).tailShift), i;
760
+ return (this.eager === !0 || this.eager === "append") && e != null && e.input && t && r.aggregate(this._appendEager()), i != null && (r.tailShift += this.appendTail(i).tailShift), r;
766
761
  }
767
762
  remove(t, e) {
768
763
  return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), this._value = this.displayValue.slice(0, t) + this.displayValue.slice(e), new E();
@@ -771,8 +766,8 @@ class P {
771
766
  withValueRefresh(t) {
772
767
  if (this._refreshing || !this._initialized) return t();
773
768
  this._refreshing = !0;
774
- const e = this.rawInputValue, s = this.value, r = t();
775
- return this.rawInputValue = e, this.value && this.value !== s && s.indexOf(this.value) === 0 && (this.append(s.slice(this.displayValue.length), {}, ""), this.doCommit()), delete this._refreshing, r;
769
+ const e = this.rawInputValue, s = this.value, i = t();
770
+ return this.rawInputValue = e, this.value && this.value !== s && s.indexOf(this.value) === 0 && (this.append(s.slice(this.displayValue.length), {}, ""), this.doCommit()), delete this._refreshing, i;
776
771
  }
777
772
  runIsolated(t) {
778
773
  if (this._isolated || !this._initialized) return t(this);
@@ -799,26 +794,26 @@ class P {
799
794
  doCommit() {
800
795
  this.commit && this.commit(this.value, this);
801
796
  }
802
- splice(t, e, s, r, i) {
803
- s === void 0 && (s = ""), r === void 0 && (r = m.NONE), i === void 0 && (i = {
797
+ splice(t, e, s, i, r) {
798
+ s === void 0 && (s = ""), i === void 0 && (i = m.NONE), r === void 0 && (r = {
804
799
  input: !0
805
800
  });
806
801
  const n = t + e, u = this.extractTail(n), l = this.eager === !0 || this.eager === "remove";
807
802
  let h;
808
- l && (r = he(r), h = this.extractInput(0, n, {
803
+ l && (i = ee(i), h = this.extractInput(0, n, {
809
804
  raw: !0
810
805
  }));
811
806
  let v = t;
812
- const _ = new E();
813
- if (r !== m.NONE && (v = this.nearestInputPos(t, e > 1 && t !== 0 && !l ? m.NONE : r), _.tailShift = v - t), _.aggregate(this.remove(v)), l && r !== m.NONE && h === this.rawInputValue)
814
- if (r === m.FORCE_LEFT) {
815
- let S;
816
- for (; h === this.rawInputValue && (S = this.displayValue.length); )
817
- _.aggregate(new E({
807
+ const k = new E();
808
+ if (i !== m.NONE && (v = this.nearestInputPos(t, e > 1 && t !== 0 && !l ? m.NONE : i), k.tailShift = v - t), k.aggregate(this.remove(v)), l && i !== m.NONE && h === this.rawInputValue)
809
+ if (i === m.FORCE_LEFT) {
810
+ let F;
811
+ for (; h === this.rawInputValue && (F = this.displayValue.length); )
812
+ k.aggregate(new E({
818
813
  tailShift: -1
819
- })).aggregate(this.remove(S - 1));
820
- } else r === m.FORCE_RIGHT && u.unshift();
821
- return _.aggregate(this.append(s, i, u));
814
+ })).aggregate(this.remove(F - 1));
815
+ } else i === m.FORCE_RIGHT && u.unshift();
816
+ return k.aggregate(this.append(s, r, u));
822
817
  }
823
818
  maskEquals(t) {
824
819
  return this.mask === t;
@@ -849,39 +844,39 @@ class J {
849
844
  }
850
845
  extend(t) {
851
846
  if (!String(t)) return;
852
- t = G(t) ? new H(String(t)) : t;
847
+ t = G(t) ? new z(String(t)) : t;
853
848
  const e = this.chunks[this.chunks.length - 1], s = e && // if stops are same or tail has no stop
854
849
  (e.stop === t.stop || t.stop == null) && // if tail chunk goes just after last chunk
855
850
  t.from === e.from + e.toString().length;
856
- if (t instanceof H)
851
+ if (t instanceof z)
857
852
  s ? e.extend(t.toString()) : this.chunks.push(t);
858
853
  else if (t instanceof J) {
859
854
  if (t.stop == null) {
860
- let r;
855
+ let i;
861
856
  for (; t.chunks.length && t.chunks[0].stop == null; )
862
- r = t.chunks.shift(), r.from += t.from, this.extend(r);
857
+ i = t.chunks.shift(), i.from += t.from, this.extend(i);
863
858
  }
864
859
  t.toString() && (t.stop = t.blockIndex, this.chunks.push(t));
865
860
  }
866
861
  }
867
862
  appendTo(t) {
868
863
  if (!(t instanceof g.MaskedPattern))
869
- return new H(this.toString()).appendTo(t);
864
+ return new z(this.toString()).appendTo(t);
870
865
  const e = new E();
871
866
  for (let s = 0; s < this.chunks.length; ++s) {
872
- const r = this.chunks[s], i = t._mapPosToBlock(t.displayValue.length), n = r.stop;
867
+ const i = this.chunks[s], r = t._mapPosToBlock(t.displayValue.length), n = i.stop;
873
868
  let u;
874
869
  if (n != null && // if block not found or stop is behind lastBlock
875
- (!i || i.index <= n) && ((r instanceof J || // for continuous block also check if stop is exist
876
- t._stops.indexOf(n) >= 0) && e.aggregate(t._appendPlaceholder(n)), u = r instanceof J && t._blocks[n]), u) {
877
- const l = u.appendTail(r);
870
+ (!r || r.index <= n) && ((i instanceof J || // for continuous block also check if stop is exist
871
+ t._stops.indexOf(n) >= 0) && e.aggregate(t._appendPlaceholder(n)), u = i instanceof J && t._blocks[n]), u) {
872
+ const l = u.appendTail(i);
878
873
  e.aggregate(l);
879
- const h = r.toString().slice(l.rawInserted.length);
874
+ const h = i.toString().slice(l.rawInserted.length);
880
875
  h && e.aggregate(t.append(h, {
881
876
  tail: !0
882
877
  }));
883
878
  } else
884
- e.aggregate(t.append(r.toString(), {
879
+ e.aggregate(t.append(i.toString(), {
885
880
  tail: !0
886
881
  }));
887
882
  }
@@ -900,9 +895,9 @@ class J {
900
895
  chunks: e,
901
896
  ...s
902
897
  } = t;
903
- Object.assign(this, s), this.chunks = e.map((r) => {
904
- const i = "chunks" in r ? new J() : new H();
905
- return i.state = r, i;
898
+ Object.assign(this, s), this.chunks = e.map((i) => {
899
+ const r = "chunks" in i ? new J() : new z();
900
+ return r.state = i, r;
906
901
  });
907
902
  }
908
903
  unshift(t) {
@@ -910,13 +905,13 @@ class J {
910
905
  const e = t != null ? t - this.from : t;
911
906
  let s = 0;
912
907
  for (; s < this.chunks.length; ) {
913
- const r = this.chunks[s], i = r.unshift(e);
914
- if (r.toString()) {
915
- if (!i) break;
908
+ const i = this.chunks[s], r = i.unshift(e);
909
+ if (i.toString()) {
910
+ if (!r) break;
916
911
  ++s;
917
912
  } else
918
913
  this.chunks.splice(s, 1);
919
- if (i) return i;
914
+ if (r) return r;
920
915
  }
921
916
  return "";
922
917
  }
@@ -935,12 +930,12 @@ class J {
935
930
  return "";
936
931
  }
937
932
  }
938
- class me {
933
+ class ae {
939
934
  constructor(t, e) {
940
935
  this.masked = t, this._log = [];
941
936
  const {
942
937
  offset: s,
943
- index: r
938
+ index: i
944
939
  } = t._mapPosToBlock(e) || (e < 0 ? (
945
940
  // first
946
941
  {
@@ -954,7 +949,7 @@ class me {
954
949
  offset: 0
955
950
  }
956
951
  ));
957
- this.offset = s, this.index = r, this.ok = !1;
952
+ this.offset = s, this.index = i, this.ok = !1;
958
953
  }
959
954
  get block() {
960
955
  return this.masked._blocks[this.index];
@@ -1031,7 +1026,7 @@ class me {
1031
1026
  });
1032
1027
  }
1033
1028
  }
1034
- class Jt {
1029
+ class Gt {
1035
1030
  /** */
1036
1031
  /** */
1037
1032
  /** */
@@ -1061,7 +1056,7 @@ class Jt {
1061
1056
  }
1062
1057
  nearestInputPos(t, e) {
1063
1058
  e === void 0 && (e = m.NONE);
1064
- const s = 0, r = this._value.length;
1059
+ const s = 0, i = this._value.length;
1065
1060
  switch (e) {
1066
1061
  case m.LEFT:
1067
1062
  case m.FORCE_LEFT:
@@ -1070,7 +1065,7 @@ class Jt {
1070
1065
  case m.RIGHT:
1071
1066
  case m.FORCE_RIGHT:
1072
1067
  default:
1073
- return r;
1068
+ return i;
1074
1069
  }
1075
1070
  }
1076
1071
  totalInputPositions(t, e) {
@@ -1087,11 +1082,11 @@ class Jt {
1087
1082
  }
1088
1083
  _appendChar(t, e) {
1089
1084
  if (e === void 0 && (e = {}), this.isFilled) return new E();
1090
- const s = this.eager === !0 || this.eager === "append", i = this.char === t && (this.isUnmasking || e.input || e.raw) && (!e.raw || !s) && !e.tail, n = new E({
1085
+ const s = this.eager === !0 || this.eager === "append", r = this.char === t && (this.isUnmasking || e.input || e.raw) && (!e.raw || !s) && !e.tail, n = new E({
1091
1086
  inserted: this.char,
1092
- rawInserted: i ? this.char : ""
1087
+ rawInserted: r ? this.char : ""
1093
1088
  });
1094
- return this._value = this.char, this._isRawInput = i && (e.raw || e.input), n;
1089
+ return this._value = this.char, this._isRawInput = r && (e.raw || e.input), n;
1095
1090
  }
1096
1091
  _appendEager() {
1097
1092
  return this._appendChar(this.char, {
@@ -1103,14 +1098,14 @@ class Jt {
1103
1098
  return this.isFilled || (this._value = t.inserted = this.char), t;
1104
1099
  }
1105
1100
  extractTail() {
1106
- return new H("");
1101
+ return new z("");
1107
1102
  }
1108
1103
  appendTail(t) {
1109
- return G(t) && (t = new H(String(t))), t.appendTo(this);
1104
+ return G(t) && (t = new z(String(t))), t.appendTo(this);
1110
1105
  }
1111
1106
  append(t, e, s) {
1112
- const r = this._appendChar(t[0], e);
1113
- return s != null && (r.tailShift += this.appendTail(s).tailShift), r;
1107
+ const i = this._appendChar(t[0], e);
1108
+ return s != null && (i.tailShift += this.appendTail(s).tailShift), i;
1114
1109
  }
1115
1110
  doCommit() {
1116
1111
  }
@@ -1140,8 +1135,8 @@ class lt {
1140
1135
  const {
1141
1136
  parent: e,
1142
1137
  isOptional: s,
1143
- placeholderChar: r,
1144
- displayChar: i,
1138
+ placeholderChar: i,
1139
+ displayChar: r,
1145
1140
  lazy: n,
1146
1141
  eager: u,
1147
1142
  ...l
@@ -1149,8 +1144,8 @@ class lt {
1149
1144
  this.masked = K(l), Object.assign(this, {
1150
1145
  parent: e,
1151
1146
  isOptional: s,
1152
- placeholderChar: r,
1153
- displayChar: i,
1147
+ placeholderChar: i,
1148
+ displayChar: r,
1154
1149
  lazy: n,
1155
1150
  eager: u
1156
1151
  });
@@ -1179,8 +1174,8 @@ class lt {
1179
1174
  _appendChar(t, e) {
1180
1175
  if (e === void 0 && (e = {}), this.isFilled) return new E();
1181
1176
  const s = this.masked.state;
1182
- let r = this.masked._appendChar(t, this.currentMaskFlags(e));
1183
- return r.inserted && this.doValidate(e) === !1 && (r = new E(), this.masked.state = s), !r.inserted && !this.isOptional && !this.lazy && !e.input && (r.inserted = this.placeholderChar), r.skip = !r.inserted && !this.isOptional, this.isFilled = !!r.inserted, r;
1177
+ let i = this.masked._appendChar(t, this.currentMaskFlags(e));
1178
+ return i.inserted && this.doValidate(e) === !1 && (i = new E(), this.masked.state = s), !i.inserted && !this.isOptional && !this.lazy && !e.input && (i.inserted = this.placeholderChar), i.skip = !i.inserted && !this.isOptional, this.isFilled = !!i.inserted, i;
1184
1179
  }
1185
1180
  append(t, e, s) {
1186
1181
  return this.masked.append(t, this.currentMaskFlags(e), s);
@@ -1204,17 +1199,17 @@ class lt {
1204
1199
  }
1205
1200
  nearestInputPos(t, e) {
1206
1201
  e === void 0 && (e = m.NONE);
1207
- const s = 0, r = this.value.length, i = Math.min(Math.max(t, s), r);
1202
+ const s = 0, i = this.value.length, r = Math.min(Math.max(t, s), i);
1208
1203
  switch (e) {
1209
1204
  case m.LEFT:
1210
1205
  case m.FORCE_LEFT:
1211
- return this.isComplete ? i : s;
1206
+ return this.isComplete ? r : s;
1212
1207
  case m.RIGHT:
1213
1208
  case m.FORCE_RIGHT:
1214
- return this.isComplete ? i : r;
1209
+ return this.isComplete ? r : i;
1215
1210
  case m.NONE:
1216
1211
  default:
1217
- return i;
1212
+ return r;
1218
1213
  }
1219
1214
  }
1220
1215
  totalInputPositions(t, e) {
@@ -1254,7 +1249,7 @@ lt.DEFAULT_DEFINITIONS = {
1254
1249
  // http://stackoverflow.com/a/22075070
1255
1250
  "*": /./
1256
1251
  };
1257
- class ve extends P {
1252
+ class ue extends P {
1258
1253
  /** */
1259
1254
  /** Enable characters overwriting */
1260
1255
  /** */
@@ -1268,7 +1263,7 @@ class ve extends P {
1268
1263
  e && (t.validate = (s) => s.search(e) >= 0), super._update(t);
1269
1264
  }
1270
1265
  }
1271
- g.MaskedRegExp = ve;
1266
+ g.MaskedRegExp = ue;
1272
1267
  class L extends P {
1273
1268
  /** */
1274
1269
  /** */
@@ -1297,18 +1292,18 @@ class L extends P {
1297
1292
  this._blocks = [], this.exposeBlock = void 0, this._stops = [], this._maskedBlocks = {};
1298
1293
  const e = this.mask;
1299
1294
  if (!e || !t) return;
1300
- let s = !1, r = !1;
1301
- for (let i = 0; i < e.length; ++i) {
1295
+ let s = !1, i = !1;
1296
+ for (let r = 0; r < e.length; ++r) {
1302
1297
  if (this.blocks) {
1303
- const h = e.slice(i), v = Object.keys(this.blocks).filter((S) => h.indexOf(S) === 0);
1304
- v.sort((S, B) => B.length - S.length);
1305
- const _ = v[0];
1306
- if (_) {
1298
+ const h = e.slice(r), v = Object.keys(this.blocks).filter((F) => h.indexOf(F) === 0);
1299
+ v.sort((F, M) => M.length - F.length);
1300
+ const k = v[0];
1301
+ if (k) {
1307
1302
  const {
1308
- expose: S,
1309
- repeat: B,
1303
+ expose: F,
1304
+ repeat: M,
1310
1305
  ...N
1311
- } = et(this.blocks[_]), M = {
1306
+ } = et(this.blocks[k]), B = {
1312
1307
  lazy: this.lazy,
1313
1308
  eager: this.eager,
1314
1309
  placeholderChar: this.placeholderChar,
@@ -1316,17 +1311,17 @@ class L extends P {
1316
1311
  overwrite: this.overwrite,
1317
1312
  autofix: this.autofix,
1318
1313
  ...N,
1319
- repeat: B,
1314
+ repeat: M,
1320
1315
  parent: this
1321
- }, O = B != null ? new g.RepeatBlock(
1322
- M
1316
+ }, O = M != null ? new g.RepeatBlock(
1317
+ B
1323
1318
  /* TODO */
1324
- ) : K(M);
1325
- O && (this._blocks.push(O), S && (this.exposeBlock = O), this._maskedBlocks[_] || (this._maskedBlocks[_] = []), this._maskedBlocks[_].push(this._blocks.length - 1)), i += _.length - 1;
1319
+ ) : K(B);
1320
+ O && (this._blocks.push(O), F && (this.exposeBlock = O), this._maskedBlocks[k] || (this._maskedBlocks[k] = []), this._maskedBlocks[k].push(this._blocks.length - 1)), r += k.length - 1;
1326
1321
  continue;
1327
1322
  }
1328
1323
  }
1329
- let n = e[i], u = n in t;
1324
+ let n = e[r], u = n in t;
1330
1325
  if (n === L.STOP_CHAR) {
1331
1326
  this._stops.push(this._blocks.length);
1332
1327
  continue;
@@ -1336,22 +1331,22 @@ class L extends P {
1336
1331
  continue;
1337
1332
  }
1338
1333
  if (n === "[" || n === "]") {
1339
- r = !r;
1334
+ i = !i;
1340
1335
  continue;
1341
1336
  }
1342
1337
  if (n === L.ESCAPE_CHAR) {
1343
- if (++i, n = e[i], !n) break;
1338
+ if (++r, n = e[r], !n) break;
1344
1339
  u = !1;
1345
1340
  }
1346
1341
  const l = u ? new lt({
1347
- isOptional: r,
1342
+ isOptional: i,
1348
1343
  lazy: this.lazy,
1349
1344
  eager: this.eager,
1350
1345
  placeholderChar: this.placeholderChar,
1351
1346
  displayChar: this.displayChar,
1352
1347
  ...et(t[n]),
1353
1348
  parent: this
1354
- }) : new Jt({
1349
+ }) : new Gt({
1355
1350
  char: n,
1356
1351
  eager: this.eager,
1357
1352
  isUnmasking: s
@@ -1374,7 +1369,7 @@ class L extends P {
1374
1369
  _blocks: e,
1375
1370
  ...s
1376
1371
  } = t;
1377
- this._blocks.forEach((r, i) => r.state = e[i]), super.state = s;
1372
+ this._blocks.forEach((i, r) => i.state = e[r]), super.state = s;
1378
1373
  }
1379
1374
  reset() {
1380
1375
  super.reset(), this._blocks.forEach((t) => t.reset());
@@ -1436,47 +1431,47 @@ class L extends P {
1436
1431
  let s = (t = this._mapPosToBlock(this.displayValue.length)) == null ? void 0 : t.index;
1437
1432
  if (s == null) return e;
1438
1433
  this._blocks[s].isFilled && ++s;
1439
- for (let r = s; r < this._blocks.length; ++r) {
1440
- const i = this._blocks[r]._appendEager();
1441
- if (!i.inserted) break;
1442
- e.aggregate(i);
1434
+ for (let i = s; i < this._blocks.length; ++i) {
1435
+ const r = this._blocks[i]._appendEager();
1436
+ if (!r.inserted) break;
1437
+ e.aggregate(r);
1443
1438
  }
1444
1439
  return e;
1445
1440
  }
1446
1441
  _appendCharRaw(t, e) {
1447
1442
  e === void 0 && (e = {});
1448
- const s = this._mapPosToBlock(this.displayValue.length), r = new E();
1449
- if (!s) return r;
1443
+ const s = this._mapPosToBlock(this.displayValue.length), i = new E();
1444
+ if (!s) return i;
1450
1445
  for (let n = s.index, u; u = this._blocks[n]; ++n) {
1451
- var i;
1446
+ var r;
1452
1447
  const l = u._appendChar(t, {
1453
1448
  ...e,
1454
- _beforeTailState: (i = e._beforeTailState) == null || (i = i._blocks) == null ? void 0 : i[n]
1449
+ _beforeTailState: (r = e._beforeTailState) == null || (r = r._blocks) == null ? void 0 : r[n]
1455
1450
  });
1456
- if (r.aggregate(l), l.consumed) break;
1451
+ if (i.aggregate(l), l.consumed) break;
1457
1452
  }
1458
- return r;
1453
+ return i;
1459
1454
  }
1460
1455
  extractTail(t, e) {
1461
1456
  t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length);
1462
1457
  const s = new J();
1463
- return t === e || this._forEachBlocksInRange(t, e, (r, i, n, u) => {
1464
- const l = r.extractTail(n, u);
1465
- l.stop = this._findStopBefore(i), l.from = this._blockStartPos(i), l instanceof J && (l.blockIndex = i), s.extend(l);
1458
+ return t === e || this._forEachBlocksInRange(t, e, (i, r, n, u) => {
1459
+ const l = i.extractTail(n, u);
1460
+ l.stop = this._findStopBefore(r), l.from = this._blockStartPos(r), l instanceof J && (l.blockIndex = r), s.extend(l);
1466
1461
  }), s;
1467
1462
  }
1468
1463
  extractInput(t, e, s) {
1469
1464
  if (t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), s === void 0 && (s = {}), t === e) return "";
1470
- let r = "";
1471
- return this._forEachBlocksInRange(t, e, (i, n, u, l) => {
1472
- r += i.extractInput(u, l, s);
1473
- }), r;
1465
+ let i = "";
1466
+ return this._forEachBlocksInRange(t, e, (r, n, u, l) => {
1467
+ i += r.extractInput(u, l, s);
1468
+ }), i;
1474
1469
  }
1475
1470
  _findStopBefore(t) {
1476
1471
  let e;
1477
1472
  for (let s = 0; s < this._stops.length; ++s) {
1478
- const r = this._stops[s];
1479
- if (r <= t) e = r;
1473
+ const i = this._stops[s];
1474
+ if (i <= t) e = i;
1480
1475
  else break;
1481
1476
  }
1482
1477
  return e;
@@ -1487,8 +1482,8 @@ class L extends P {
1487
1482
  if (this.lazy && t == null) return e;
1488
1483
  const s = this._mapPosToBlock(this.displayValue.length);
1489
1484
  if (!s) return e;
1490
- const r = s.index, i = t ?? this._blocks.length;
1491
- return this._blocks.slice(r, i).forEach((n) => {
1485
+ const i = s.index, r = t ?? this._blocks.length;
1486
+ return this._blocks.slice(i, r).forEach((n) => {
1492
1487
  if (!n.lazy || t != null) {
1493
1488
  var u;
1494
1489
  e.aggregate(n._appendPlaceholder((u = n._blocks) == null ? void 0 : u.length));
@@ -1499,11 +1494,11 @@ class L extends P {
1499
1494
  _mapPosToBlock(t) {
1500
1495
  let e = "";
1501
1496
  for (let s = 0; s < this._blocks.length; ++s) {
1502
- const r = this._blocks[s], i = e.length;
1503
- if (e += r.displayValue, t <= e.length)
1497
+ const i = this._blocks[s], r = e.length;
1498
+ if (e += i.displayValue, t <= e.length)
1504
1499
  return {
1505
1500
  index: s,
1506
- offset: t - i
1501
+ offset: t - r
1507
1502
  };
1508
1503
  }
1509
1504
  }
@@ -1512,26 +1507,26 @@ class L extends P {
1512
1507
  }
1513
1508
  _forEachBlocksInRange(t, e, s) {
1514
1509
  e === void 0 && (e = this.displayValue.length);
1515
- const r = this._mapPosToBlock(t);
1516
- if (r) {
1517
- const i = this._mapPosToBlock(e), n = i && r.index === i.index, u = r.offset, l = i && n ? i.offset : this._blocks[r.index].displayValue.length;
1518
- if (s(this._blocks[r.index], r.index, u, l), i && !n) {
1519
- for (let h = r.index + 1; h < i.index; ++h)
1510
+ const i = this._mapPosToBlock(t);
1511
+ if (i) {
1512
+ const r = this._mapPosToBlock(e), n = r && i.index === r.index, u = i.offset, l = r && n ? r.offset : this._blocks[i.index].displayValue.length;
1513
+ if (s(this._blocks[i.index], i.index, u, l), r && !n) {
1514
+ for (let h = i.index + 1; h < r.index; ++h)
1520
1515
  s(this._blocks[h], h, 0, this._blocks[h].displayValue.length);
1521
- s(this._blocks[i.index], i.index, 0, i.offset);
1516
+ s(this._blocks[r.index], r.index, 0, r.offset);
1522
1517
  }
1523
1518
  }
1524
1519
  }
1525
1520
  remove(t, e) {
1526
1521
  t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length);
1527
1522
  const s = super.remove(t, e);
1528
- return this._forEachBlocksInRange(t, e, (r, i, n, u) => {
1529
- s.aggregate(r.remove(n, u));
1523
+ return this._forEachBlocksInRange(t, e, (i, r, n, u) => {
1524
+ s.aggregate(i.remove(n, u));
1530
1525
  }), s;
1531
1526
  }
1532
1527
  nearestInputPos(t, e) {
1533
1528
  if (e === void 0 && (e = m.NONE), !this._blocks.length) return 0;
1534
- const s = new me(this, t);
1529
+ const s = new ae(this, t);
1535
1530
  if (e === m.NONE)
1536
1531
  return s.pushRightBeforeInput() || (s.popState(), s.pushLeftBeforeInput()) ? s.pos : this.displayValue.length;
1537
1532
  if (e === m.LEFT || e === m.FORCE_LEFT) {
@@ -1550,8 +1545,8 @@ class L extends P {
1550
1545
  totalInputPositions(t, e) {
1551
1546
  t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length);
1552
1547
  let s = 0;
1553
- return this._forEachBlocksInRange(t, e, (r, i, n, u) => {
1554
- s += r.totalInputPositions(n, u);
1548
+ return this._forEachBlocksInRange(t, e, (i, r, n, u) => {
1549
+ s += i.totalInputPositions(n, u);
1555
1550
  }), s;
1556
1551
  }
1557
1552
  /** Get block by name */
@@ -1576,7 +1571,7 @@ L.DEFAULTS = {
1576
1571
  L.STOP_CHAR = "`";
1577
1572
  L.ESCAPE_CHAR = "\\";
1578
1573
  L.InputDefinition = lt;
1579
- L.FixedDefinition = Jt;
1574
+ L.FixedDefinition = Gt;
1580
1575
  g.MaskedPattern = L;
1581
1576
  class ut extends L {
1582
1577
  /**
@@ -1598,11 +1593,11 @@ class ut extends L {
1598
1593
  const {
1599
1594
  to: e = this.to || 0,
1600
1595
  from: s = this.from || 0,
1601
- maxLength: r = this.maxLength || 0,
1602
- autofix: i = this.autofix,
1596
+ maxLength: i = this.maxLength || 0,
1597
+ autofix: r = this.autofix,
1603
1598
  ...n
1604
1599
  } = t;
1605
- this.to = e, this.from = s, this.maxLength = Math.max(String(e).length, r), this.autofix = i;
1600
+ this.to = e, this.from = s, this.maxLength = Math.max(String(e).length, i), this.autofix = r;
1606
1601
  const u = String(this.from).padStart(this.maxLength, "0"), l = String(this.to).padStart(this.maxLength, "0");
1607
1602
  let h = 0;
1608
1603
  for (; h < l.length && l[h] === u[h]; ) ++h;
@@ -1613,8 +1608,8 @@ class ut extends L {
1613
1608
  }
1614
1609
  boundaries(t) {
1615
1610
  let e = "", s = "";
1616
- const [, r, i] = t.match(/^(\D*)(\d*)(\D*)/) || [];
1617
- return i && (e = "0".repeat(r.length) + i, s = "9".repeat(r.length) + i), e = e.padEnd(this.maxLength, "0"), s = s.padEnd(this.maxLength, "9"), [e, s];
1611
+ const [, i, r] = t.match(/^(\D*)(\d*)(\D*)/) || [];
1612
+ return r && (e = "0".repeat(i.length) + r, s = "9".repeat(i.length) + r), e = e.padEnd(this.maxLength, "0"), s = s.padEnd(this.maxLength, "9"), [e, s];
1618
1613
  }
1619
1614
  doPrepareChar(t, e) {
1620
1615
  e === void 0 && (e = {});
@@ -1623,39 +1618,39 @@ class ut extends L {
1623
1618
  }
1624
1619
  _appendCharRaw(t, e) {
1625
1620
  if (e === void 0 && (e = {}), !this.autofix || this.value.length + 1 > this.maxLength) return super._appendCharRaw(t, e);
1626
- const s = String(this.from).padStart(this.maxLength, "0"), r = String(this.to).padStart(this.maxLength, "0"), [i, n] = this.boundaries(this.value + t);
1627
- return Number(n) < this.from ? super._appendCharRaw(s[this.value.length], e) : Number(i) > this.to ? !e.tail && this.autofix === "pad" && this.value.length + 1 < this.maxLength ? super._appendCharRaw(s[this.value.length], e).aggregate(this._appendCharRaw(t, e)) : super._appendCharRaw(r[this.value.length], e) : super._appendCharRaw(t, e);
1621
+ const s = String(this.from).padStart(this.maxLength, "0"), i = String(this.to).padStart(this.maxLength, "0"), [r, n] = this.boundaries(this.value + t);
1622
+ return Number(n) < this.from ? super._appendCharRaw(s[this.value.length], e) : Number(r) > this.to ? !e.tail && this.autofix === "pad" && this.value.length + 1 < this.maxLength ? super._appendCharRaw(s[this.value.length], e).aggregate(this._appendCharRaw(t, e)) : super._appendCharRaw(i[this.value.length], e) : super._appendCharRaw(t, e);
1628
1623
  }
1629
1624
  doValidate(t) {
1630
1625
  const e = this.value;
1631
1626
  if (e.search(/[^0]/) === -1 && e.length <= this._matchFrom) return !0;
1632
- const [r, i] = this.boundaries(e);
1633
- return this.from <= Number(i) && Number(r) <= this.to && super.doValidate(t);
1627
+ const [i, r] = this.boundaries(e);
1628
+ return this.from <= Number(r) && Number(i) <= this.to && super.doValidate(t);
1634
1629
  }
1635
1630
  pad(t) {
1636
1631
  const e = new E();
1637
1632
  if (this.value.length === this.maxLength) return e;
1638
- const s = this.value, r = this.maxLength - this.value.length;
1639
- if (r) {
1633
+ const s = this.value, i = this.maxLength - this.value.length;
1634
+ if (i) {
1640
1635
  this.reset();
1641
- for (let i = 0; i < r; ++i)
1636
+ for (let r = 0; r < i; ++r)
1642
1637
  e.aggregate(super._appendCharRaw("0", t));
1643
- s.split("").forEach((i) => this._appendCharRaw(i));
1638
+ s.split("").forEach((r) => this._appendCharRaw(r));
1644
1639
  }
1645
1640
  return e;
1646
1641
  }
1647
1642
  }
1648
1643
  g.MaskedRange = ut;
1649
- const ge = "d{.}`m{.}`Y";
1650
- class z extends L {
1644
+ const oe = "d{.}`m{.}`Y";
1645
+ class H extends L {
1651
1646
  static extractPatternOptions(t) {
1652
1647
  const {
1653
1648
  mask: e,
1654
1649
  pattern: s,
1655
- ...r
1650
+ ...i
1656
1651
  } = t;
1657
1652
  return {
1658
- ...r,
1653
+ ...i,
1659
1654
  mask: G(e) ? e : s
1660
1655
  };
1661
1656
  }
@@ -1665,8 +1660,8 @@ class z extends L {
1665
1660
  /** Format typed value to string */
1666
1661
  /** Parse string to get typed value */
1667
1662
  constructor(t) {
1668
- super(z.extractPatternOptions({
1669
- ...z.DEFAULTS,
1663
+ super(H.extractPatternOptions({
1664
+ ...H.DEFAULTS,
1670
1665
  ...t
1671
1666
  }));
1672
1667
  }
@@ -1677,14 +1672,14 @@ class z extends L {
1677
1672
  const {
1678
1673
  mask: e,
1679
1674
  pattern: s,
1680
- blocks: r,
1681
- ...i
1675
+ blocks: i,
1676
+ ...r
1682
1677
  } = {
1683
- ...z.DEFAULTS,
1678
+ ...H.DEFAULTS,
1684
1679
  ...t
1685
- }, n = Object.assign({}, z.GET_DEFAULT_BLOCKS());
1686
- t.min && (n.Y.from = t.min.getFullYear()), t.max && (n.Y.to = t.max.getFullYear()), t.min && t.max && n.Y.from === n.Y.to && (n.m.from = t.min.getMonth() + 1, n.m.to = t.max.getMonth() + 1, n.m.from === n.m.to && (n.d.from = t.min.getDate(), n.d.to = t.max.getDate())), Object.assign(n, this.blocks, r), super._update({
1687
- ...i,
1680
+ }, n = Object.assign({}, H.GET_DEFAULT_BLOCKS());
1681
+ t.min && (n.Y.from = t.min.getFullYear()), t.max && (n.Y.to = t.max.getFullYear()), t.min && t.max && n.Y.from === n.Y.to && (n.m.from = t.min.getMonth() + 1, n.m.to = t.max.getMonth() + 1, n.m.from === n.m.to && (n.d.from = t.min.getDate(), n.d.to = t.max.getDate())), Object.assign(n, this.blocks, i), super._update({
1682
+ ...r,
1688
1683
  mask: G(e) ? e : s,
1689
1684
  blocks: n
1690
1685
  });
@@ -1714,10 +1709,10 @@ class z extends L {
1714
1709
  return t === Date || super.maskEquals(t);
1715
1710
  }
1716
1711
  optionsIsChanged(t) {
1717
- return super.optionsIsChanged(z.extractPatternOptions(t));
1712
+ return super.optionsIsChanged(H.extractPatternOptions(t));
1718
1713
  }
1719
1714
  }
1720
- z.GET_DEFAULT_BLOCKS = () => ({
1715
+ H.GET_DEFAULT_BLOCKS = () => ({
1721
1716
  d: {
1722
1717
  mask: ut,
1723
1718
  from: 1,
@@ -1736,21 +1731,21 @@ z.GET_DEFAULT_BLOCKS = () => ({
1736
1731
  to: 9999
1737
1732
  }
1738
1733
  });
1739
- z.DEFAULTS = {
1734
+ H.DEFAULTS = {
1740
1735
  ...L.DEFAULTS,
1741
1736
  mask: Date,
1742
- pattern: ge,
1737
+ pattern: oe,
1743
1738
  format: (a, t) => {
1744
1739
  if (!a) return "";
1745
- const e = String(a.getDate()).padStart(2, "0"), s = String(a.getMonth() + 1).padStart(2, "0"), r = a.getFullYear();
1746
- return [e, s, r].join(".");
1740
+ const e = String(a.getDate()).padStart(2, "0"), s = String(a.getMonth() + 1).padStart(2, "0"), i = a.getFullYear();
1741
+ return [e, s, i].join(".");
1747
1742
  },
1748
1743
  parse: (a, t) => {
1749
- const [e, s, r] = a.split(".").map(Number);
1750
- return new Date(r, s - 1, e);
1744
+ const [e, s, i] = a.split(".").map(Number);
1745
+ return new Date(i, s - 1, e);
1751
1746
  }
1752
1747
  };
1753
- g.MaskedDate = z;
1748
+ g.MaskedDate = H;
1754
1749
  class ct extends P {
1755
1750
  constructor(t) {
1756
1751
  super({
@@ -1765,14 +1760,14 @@ class ct extends P {
1765
1760
  super._update(t), "mask" in t && (this.exposeMask = void 0, this.compiledMasks = Array.isArray(t.mask) ? t.mask.map((e) => {
1766
1761
  const {
1767
1762
  expose: s,
1768
- ...r
1769
- } = et(e), i = K({
1763
+ ...i
1764
+ } = et(e), r = K({
1770
1765
  overwrite: this._overwrite,
1771
1766
  eager: this._eager,
1772
1767
  skipInvalid: this._skipInvalid,
1773
- ...r
1768
+ ...i
1774
1769
  });
1775
- return s && (this.exposeMask = i), i;
1770
+ return s && (this.exposeMask = r), r;
1776
1771
  }) : []);
1777
1772
  }
1778
1773
  _appendCharRaw(t, e) {
@@ -1782,12 +1777,12 @@ class ct extends P {
1782
1777
  }
1783
1778
  _applyDispatch(t, e, s) {
1784
1779
  t === void 0 && (t = ""), e === void 0 && (e = {}), s === void 0 && (s = "");
1785
- const r = e.tail && e._beforeTailState != null ? e._beforeTailState._value : this.value, i = this.rawInputValue, n = e.tail && e._beforeTailState != null ? e._beforeTailState._rawInputValue : i, u = i.slice(n.length), l = this.currentMask, h = new E(), v = l == null ? void 0 : l.state;
1780
+ const i = e.tail && e._beforeTailState != null ? e._beforeTailState._value : this.value, r = this.rawInputValue, n = e.tail && e._beforeTailState != null ? e._beforeTailState._rawInputValue : r, u = r.slice(n.length), l = this.currentMask, h = new E(), v = l == null ? void 0 : l.state;
1786
1781
  return this.currentMask = this.doDispatch(t, {
1787
1782
  ...e
1788
1783
  }, s), this.currentMask && (this.currentMask !== l ? (this.currentMask.reset(), n && (this.currentMask.append(n, {
1789
1784
  raw: !0
1790
- }), h.tailShift = this.currentMask.value.length - r.length), u && (h.tailShift += this.currentMask.append(u, {
1785
+ }), h.tailShift = this.currentMask.value.length - i.length), u && (h.tailShift += this.currentMask.append(u, {
1791
1786
  raw: !0,
1792
1787
  tail: !0
1793
1788
  }).tailShift)) : v && (this.currentMask.state = v)), h;
@@ -1819,21 +1814,21 @@ class ct extends P {
1819
1814
  }
1820
1815
  doPrepare(t, e) {
1821
1816
  e === void 0 && (e = {});
1822
- let [s, r] = super.doPrepare(t, e);
1817
+ let [s, i] = super.doPrepare(t, e);
1823
1818
  if (this.currentMask) {
1824
- let i;
1825
- [s, i] = super.doPrepare(s, this.currentMaskFlags(e)), r = r.aggregate(i);
1819
+ let r;
1820
+ [s, r] = super.doPrepare(s, this.currentMaskFlags(e)), i = i.aggregate(r);
1826
1821
  }
1827
- return [s, r];
1822
+ return [s, i];
1828
1823
  }
1829
1824
  doPrepareChar(t, e) {
1830
1825
  e === void 0 && (e = {});
1831
- let [s, r] = super.doPrepareChar(t, e);
1826
+ let [s, i] = super.doPrepareChar(t, e);
1832
1827
  if (this.currentMask) {
1833
- let i;
1834
- [s, i] = super.doPrepareChar(s, this.currentMaskFlags(e)), r = r.aggregate(i);
1828
+ let r;
1829
+ [s, r] = super.doPrepareChar(s, this.currentMaskFlags(e)), i = i.aggregate(r);
1835
1830
  }
1836
- return [s, r];
1831
+ return [s, i];
1837
1832
  }
1838
1833
  reset() {
1839
1834
  var t;
@@ -1891,10 +1886,10 @@ class ct extends P {
1891
1886
  const {
1892
1887
  compiledMasks: e,
1893
1888
  currentMaskRef: s,
1894
- currentMask: r,
1895
- ...i
1889
+ currentMask: i,
1890
+ ...r
1896
1891
  } = t;
1897
- e && this.compiledMasks.forEach((n, u) => n.state = e[u]), s != null && (this.currentMask = s, this.currentMask.state = r), super.state = i;
1892
+ e && this.compiledMasks.forEach((n, u) => n.state = e[u]), s != null && (this.currentMask = s, this.currentMask.state = i), super.state = r;
1898
1893
  }
1899
1894
  extractInput(t, e, s) {
1900
1895
  return this.currentMask ? this.currentMask.extractInput(t, e, s) : "";
@@ -1936,10 +1931,10 @@ class ct extends P {
1936
1931
  return Array.isArray(t) ? this.compiledMasks.every((e, s) => {
1937
1932
  if (!t[s]) return;
1938
1933
  const {
1939
- mask: r,
1940
- ...i
1934
+ mask: i,
1935
+ ...r
1941
1936
  } = t[s];
1942
- return ot(e, i) && e.maskEquals(r);
1937
+ return ot(e, r) && e.maskEquals(i);
1943
1938
  }) : super.maskEquals(t);
1944
1939
  }
1945
1940
  typedValueEquals(t) {
@@ -1951,9 +1946,9 @@ ct.DEFAULTS = {
1951
1946
  ...P.DEFAULTS,
1952
1947
  dispatch: (a, t, e, s) => {
1953
1948
  if (!t.compiledMasks.length) return;
1954
- const r = t.rawInputValue, i = t.compiledMasks.map((n, u) => {
1949
+ const i = t.rawInputValue, r = t.compiledMasks.map((n, u) => {
1955
1950
  const l = t.currentMask === n, h = l ? n.displayValue.length : n.nearestInputPos(n.displayValue.length, m.FORCE_LEFT);
1956
- return n.rawInputValue !== r ? (n.reset(), n.append(r, {
1951
+ return n.rawInputValue !== i ? (n.reset(), n.append(i, {
1957
1952
  raw: !0
1958
1953
  })) : l || n.remove(h), n.append(a, t.currentMaskFlags(e)), n.appendTail(s), {
1959
1954
  index: u,
@@ -1961,7 +1956,7 @@ ct.DEFAULTS = {
1961
1956
  totalInputPositions: n.totalInputPositions(0, Math.max(h, n.nearestInputPos(n.displayValue.length, m.FORCE_LEFT)))
1962
1957
  };
1963
1958
  });
1964
- return i.sort((n, u) => u.weight - n.weight || u.totalInputPositions - n.totalInputPositions), t.compiledMasks[i[0].index];
1959
+ return r.sort((n, u) => u.weight - n.weight || u.totalInputPositions - n.totalInputPositions), t.compiledMasks[r[0].index];
1965
1960
  }
1966
1961
  };
1967
1962
  g.MaskedDynamic = ct;
@@ -1981,37 +1976,37 @@ class dt extends L {
1981
1976
  ...s
1982
1977
  } = t;
1983
1978
  if (e) {
1984
- const r = e.map((u) => u.length), i = Math.min(...r), n = Math.max(...r) - i;
1985
- s.mask = "*".repeat(i), n && (s.mask += "[" + "*".repeat(n) + "]"), this.enum = e;
1979
+ const i = e.map((u) => u.length), r = Math.min(...i), n = Math.max(...i) - r;
1980
+ s.mask = "*".repeat(r), n && (s.mask += "[" + "*".repeat(n) + "]"), this.enum = e;
1986
1981
  }
1987
1982
  super._update(s);
1988
1983
  }
1989
1984
  _appendCharRaw(t, e) {
1990
1985
  e === void 0 && (e = {});
1991
- const s = Math.min(this.nearestInputPos(0, m.FORCE_RIGHT), this.value.length), r = this.enum.filter((i) => this.matchValue(i, this.unmaskedValue + t, s));
1992
- if (r.length) {
1993
- r.length === 1 && this._forEachBlocksInRange(0, this.value.length, (n, u) => {
1994
- const l = r[0][u];
1986
+ const s = Math.min(this.nearestInputPos(0, m.FORCE_RIGHT), this.value.length), i = this.enum.filter((r) => this.matchValue(r, this.unmaskedValue + t, s));
1987
+ if (i.length) {
1988
+ i.length === 1 && this._forEachBlocksInRange(0, this.value.length, (n, u) => {
1989
+ const l = i[0][u];
1995
1990
  u >= this.value.length || l === n.value || (n.reset(), n._appendChar(l, e));
1996
1991
  });
1997
- const i = super._appendCharRaw(r[0][this.value.length], e);
1998
- return r.length === 1 && r[0].slice(this.unmaskedValue.length).split("").forEach((n) => i.aggregate(super._appendCharRaw(n))), i;
1992
+ const r = super._appendCharRaw(i[0][this.value.length], e);
1993
+ return i.length === 1 && i[0].slice(this.unmaskedValue.length).split("").forEach((n) => r.aggregate(super._appendCharRaw(n))), r;
1999
1994
  }
2000
1995
  return new E({
2001
1996
  skip: !this.isComplete
2002
1997
  });
2003
1998
  }
2004
1999
  extractTail(t, e) {
2005
- return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), new H("", t);
2000
+ return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), new z("", t);
2006
2001
  }
2007
2002
  remove(t, e) {
2008
2003
  if (t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), t === e) return new E();
2009
2004
  const s = Math.min(super.nearestInputPos(0, m.FORCE_RIGHT), this.value.length);
2010
- let r;
2011
- for (r = t; r >= 0 && !(this.enum.filter((u) => this.matchValue(u, this.value.slice(s, r), s)).length > 1); --r)
2005
+ let i;
2006
+ for (i = t; i >= 0 && !(this.enum.filter((u) => this.matchValue(u, this.value.slice(s, i), s)).length > 1); --i)
2012
2007
  ;
2013
- const i = super.remove(r, e);
2014
- return i.tailShift += r - t, i;
2008
+ const r = super.remove(i, e);
2009
+ return r.tailShift += i - t, r;
2015
2010
  }
2016
2011
  get isComplete() {
2017
2012
  return this.enum.indexOf(this.value) >= 0;
@@ -2022,7 +2017,7 @@ dt.DEFAULTS = {
2022
2017
  matchValue: (a, t, e) => a.indexOf(t, e) === e
2023
2018
  };
2024
2019
  g.MaskedEnum = dt;
2025
- class _e extends P {
2020
+ class le extends P {
2026
2021
  /** */
2027
2022
  /** Enable characters overwriting */
2028
2023
  /** */
@@ -2038,8 +2033,8 @@ class _e extends P {
2038
2033
  });
2039
2034
  }
2040
2035
  }
2041
- g.MaskedFunction = _e;
2042
- var Qt;
2036
+ g.MaskedFunction = le;
2037
+ var Wt;
2043
2038
  class U extends P {
2044
2039
  /** Single char */
2045
2040
  /** Single char */
@@ -2080,7 +2075,7 @@ class U extends P {
2080
2075
  }
2081
2076
  doPrepareChar(t, e) {
2082
2077
  e === void 0 && (e = {});
2083
- const [s, r] = super.doPrepareChar(this._removeThousandsSeparators(this.scale && this.mapToRadix.length && /*
2078
+ const [s, i] = super.doPrepareChar(this._removeThousandsSeparators(this.scale && this.mapToRadix.length && /*
2084
2079
  radix should be mapped when
2085
2080
  1) input is done from keyboard = flags.input && flags.raw
2086
2081
  2) unmasked value is set = !flags.input && !flags.raw
@@ -2089,13 +2084,13 @@ class U extends P {
2089
2084
  2) raw value is set = !flags.input && flags.raw
2090
2085
  */
2091
2086
  (e.input && e.raw || !e.input && !e.raw) ? t.replace(this._mapToRadixRegExp, this.radix) : t), e);
2092
- return t && !s && (r.skip = !0), s && !this.allowPositive && !this.value && s !== "-" && r.aggregate(this._appendChar("-")), [s, r];
2087
+ return t && !s && (i.skip = !0), s && !this.allowPositive && !this.value && s !== "-" && i.aggregate(this._appendChar("-")), [s, i];
2093
2088
  }
2094
2089
  _separatorsCount(t, e) {
2095
2090
  e === void 0 && (e = !1);
2096
2091
  let s = 0;
2097
- for (let r = 0; r < t; ++r)
2098
- this._value.indexOf(this.thousandsSeparator, r) === r && (++s, e && (t += this.thousandsSeparator.length));
2092
+ for (let i = 0; i < t; ++i)
2093
+ this._value.indexOf(this.thousandsSeparator, i) === i && (++s, e && (t += this.thousandsSeparator.length));
2099
2094
  return s;
2100
2095
  }
2101
2096
  _separatorsCountFromSlice(t) {
@@ -2106,24 +2101,24 @@ class U extends P {
2106
2101
  }
2107
2102
  _appendCharRaw(t, e) {
2108
2103
  e === void 0 && (e = {});
2109
- const s = e.tail && e._beforeTailState ? e._beforeTailState._value : this._value, r = this._separatorsCountFromSlice(s);
2104
+ const s = e.tail && e._beforeTailState ? e._beforeTailState._value : this._value, i = this._separatorsCountFromSlice(s);
2110
2105
  this._value = this._removeThousandsSeparators(this.value);
2111
- const i = this._value;
2106
+ const r = this._value;
2112
2107
  this._value += t;
2113
2108
  const n = this.number;
2114
2109
  let u = !isNaN(n), l = !1;
2115
2110
  if (u) {
2116
- let S;
2117
- this.min != null && this.min < 0 && this.number < this.min && (S = this.min), this.max != null && this.max > 0 && this.number > this.max && (S = this.max), S != null && (this.autofix ? (this._value = this.format(S, this).replace(U.UNMASKED_RADIX, this.radix), l || (l = i === this._value && !e.tail)) : u = !1), u && (u = !!this._value.match(this._numberRegExp));
2111
+ let F;
2112
+ this.min != null && this.min < 0 && this.number < this.min && (F = this.min), this.max != null && this.max > 0 && this.number > this.max && (F = this.max), F != null && (this.autofix ? (this._value = this.format(F, this).replace(U.UNMASKED_RADIX, this.radix), l || (l = r === this._value && !e.tail)) : u = !1), u && (u = !!this._value.match(this._numberRegExp));
2118
2113
  }
2119
2114
  let h;
2120
2115
  u ? h = new E({
2121
- inserted: this._value.slice(i.length),
2116
+ inserted: this._value.slice(r.length),
2122
2117
  rawInserted: l ? "" : t,
2123
2118
  skip: l
2124
- }) : (this._value = i, h = new E()), this._value = this._insertThousandsSeparators(this._value);
2125
- const v = e.tail && e._beforeTailState ? e._beforeTailState._value : this._value, _ = this._separatorsCountFromSlice(v);
2126
- return h.tailShift += (_ - r) * this.thousandsSeparator.length, h;
2119
+ }) : (this._value = r, h = new E()), this._value = this._insertThousandsSeparators(this._value);
2120
+ const v = e.tail && e._beforeTailState ? e._beforeTailState._value : this._value, k = this._separatorsCountFromSlice(v);
2121
+ return h.tailShift += (k - i) * this.thousandsSeparator.length, h;
2127
2122
  }
2128
2123
  _findSeparatorAround(t) {
2129
2124
  if (this.thousandsSeparator) {
@@ -2135,16 +2130,16 @@ class U extends P {
2135
2130
  _adjustRangeWithSeparators(t, e) {
2136
2131
  const s = this._findSeparatorAround(t);
2137
2132
  s >= 0 && (t = s);
2138
- const r = this._findSeparatorAround(e);
2139
- return r >= 0 && (e = r + this.thousandsSeparator.length), [t, e];
2133
+ const i = this._findSeparatorAround(e);
2134
+ return i >= 0 && (e = i + this.thousandsSeparator.length), [t, e];
2140
2135
  }
2141
2136
  remove(t, e) {
2142
2137
  t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), [t, e] = this._adjustRangeWithSeparators(t, e);
2143
- const s = this.value.slice(0, t), r = this.value.slice(e), i = this._separatorsCount(s.length);
2144
- this._value = this._insertThousandsSeparators(this._removeThousandsSeparators(s + r));
2138
+ const s = this.value.slice(0, t), i = this.value.slice(e), r = this._separatorsCount(s.length);
2139
+ this._value = this._insertThousandsSeparators(this._removeThousandsSeparators(s + i));
2145
2140
  const n = this._separatorsCountFromSlice(s);
2146
2141
  return new E({
2147
- tailShift: (n - i) * this.thousandsSeparator.length
2142
+ tailShift: (n - r) * this.thousandsSeparator.length
2148
2143
  });
2149
2144
  }
2150
2145
  nearestInputPos(t, e) {
@@ -2155,8 +2150,8 @@ class U extends P {
2155
2150
  case m.FORCE_LEFT: {
2156
2151
  const s = this._findSeparatorAround(t - 1);
2157
2152
  if (s >= 0) {
2158
- const r = s + this.thousandsSeparator.length;
2159
- if (t < r || this.value.length <= r || e === m.FORCE_LEFT)
2153
+ const i = s + this.thousandsSeparator.length;
2154
+ if (t < i || this.value.length <= i || e === m.FORCE_LEFT)
2160
2155
  return s;
2161
2156
  }
2162
2157
  break;
@@ -2182,7 +2177,7 @@ class U extends P {
2182
2177
  }
2183
2178
  _normalizeZeros(t) {
2184
2179
  const e = this._removeThousandsSeparators(t).split(this.radix);
2185
- return e[0] = e[0].replace(/^(\D*)(0*)(\d*)/, (s, r, i, n) => r + n), t.length && !/\d$/.test(e[0]) && (e[0] = e[0] + "0"), e.length > 1 && (e[1] = e[1].replace(/0*$/, ""), e[1].length || (e.length = 1)), this._insertThousandsSeparators(e.join(this.radix));
2180
+ return e[0] = e[0].replace(/^(\D*)(0*)(\d*)/, (s, i, r, n) => i + n), t.length && !/\d$/.test(e[0]) && (e[0] = e[0] + "0"), e.length > 1 && (e[1] = e[1].replace(/0*$/, ""), e[1].length || (e.length = 1)), this._insertThousandsSeparators(e.join(this.radix));
2186
2181
  }
2187
2182
  _padFractionalZeros(t) {
2188
2183
  if (!t) return t;
@@ -2191,8 +2186,8 @@ class U extends P {
2191
2186
  }
2192
2187
  doSkipInvalid(t, e, s) {
2193
2188
  e === void 0 && (e = {});
2194
- const r = this.scale === 0 && t !== this.thousandsSeparator && (t === this.radix || t === U.UNMASKED_RADIX || this.mapToRadix.includes(t));
2195
- return super.doSkipInvalid(t, e, s) && !r;
2189
+ const i = this.scale === 0 && t !== this.thousandsSeparator && (t === this.radix || t === U.UNMASKED_RADIX || this.mapToRadix.includes(t));
2190
+ return super.doSkipInvalid(t, e, s) && !i;
2196
2191
  }
2197
2192
  get unmaskedValue() {
2198
2193
  return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix, U.UNMASKED_RADIX);
@@ -2223,7 +2218,7 @@ class U extends P {
2223
2218
  return (super.typedValueEquals(t) || U.EMPTY_VALUES.includes(t) && U.EMPTY_VALUES.includes(this.typedValue)) && !(t === 0 && this.value === "");
2224
2219
  }
2225
2220
  }
2226
- Qt = U;
2221
+ Wt = U;
2227
2222
  U.UNMASKED_RADIX = ".";
2228
2223
  U.EMPTY_VALUES = [...P.EMPTY_VALUES, 0];
2229
2224
  U.DEFAULTS = {
@@ -2231,7 +2226,7 @@ U.DEFAULTS = {
2231
2226
  mask: Number,
2232
2227
  radix: ",",
2233
2228
  thousandsSeparator: "",
2234
- mapToRadix: [Qt.UNMASKED_RADIX],
2229
+ mapToRadix: [Wt.UNMASKED_RADIX],
2235
2230
  min: Number.MIN_SAFE_INTEGER,
2236
2231
  max: Number.MAX_SAFE_INTEGER,
2237
2232
  scale: 2,
@@ -2244,23 +2239,23 @@ U.DEFAULTS = {
2244
2239
  })
2245
2240
  };
2246
2241
  g.MaskedNumber = U;
2247
- const Rt = {
2242
+ const It = {
2248
2243
  MASKED: "value",
2249
2244
  UNMASKED: "unmaskedValue",
2250
2245
  TYPED: "typedValue"
2251
2246
  };
2252
- function te(a, t, e) {
2253
- t === void 0 && (t = Rt.MASKED), e === void 0 && (e = Rt.MASKED);
2247
+ function Zt(a, t, e) {
2248
+ t === void 0 && (t = It.MASKED), e === void 0 && (e = It.MASKED);
2254
2249
  const s = K(a);
2255
- return (r) => s.runIsolated((i) => (i[t] = r, i[e]));
2250
+ return (i) => s.runIsolated((r) => (r[t] = i, r[e]));
2256
2251
  }
2257
- function ke(a, t, e, s) {
2258
- return te(t, e, s)(a);
2252
+ function he(a, t, e, s) {
2253
+ return Zt(t, e, s)(a);
2259
2254
  }
2260
- g.PIPE_TYPE = Rt;
2261
- g.createPipe = te;
2262
- g.pipe = ke;
2263
- class Ee extends L {
2255
+ g.PIPE_TYPE = It;
2256
+ g.createPipe = Zt;
2257
+ g.pipe = he;
2258
+ class pe extends L {
2264
2259
  get repeatFrom() {
2265
2260
  var t;
2266
2261
  return (t = Array.isArray(this.repeat) ? this.repeat[0] : this.repeat === 1 / 0 ? 0 : this.repeat) != null ? t : 0;
@@ -2276,15 +2271,15 @@ class Ee extends L {
2276
2271
  super.updateOptions(t);
2277
2272
  }
2278
2273
  _update(t) {
2279
- var e, s, r;
2274
+ var e, s, i;
2280
2275
  const {
2281
- repeat: i,
2276
+ repeat: r,
2282
2277
  ...n
2283
2278
  } = et(t);
2284
2279
  this._blockOpts = Object.assign({}, this._blockOpts, n);
2285
2280
  const u = K(this._blockOpts);
2286
- this.repeat = (e = (s = i ?? u.repeat) != null ? s : this.repeat) != null ? e : 1 / 0, super._update({
2287
- mask: "m".repeat(Math.max(this.repeatTo === 1 / 0 && ((r = this._blocks) == null ? void 0 : r.length) || 0, this.repeatFrom)),
2281
+ this.repeat = (e = (s = r ?? u.repeat) != null ? s : this.repeat) != null ? e : 1 / 0, super._update({
2282
+ mask: "m".repeat(Math.max(this.repeatTo === 1 / 0 && ((i = this._blocks) == null ? void 0 : i.length) || 0, this.repeatFrom)),
2288
2283
  blocks: {
2289
2284
  m: u
2290
2285
  },
@@ -2305,33 +2300,33 @@ class Ee extends L {
2305
2300
  e === void 0 && (e = {});
2306
2301
  const s = new E();
2307
2302
  for (
2308
- let l = (r = (i = this._mapPosToBlock(this.displayValue.length)) == null ? void 0 : i.index) != null ? r : Math.max(this._blocks.length - 1, 0), h, v;
2303
+ let l = (i = (r = this._mapPosToBlock(this.displayValue.length)) == null ? void 0 : r.index) != null ? i : Math.max(this._blocks.length - 1, 0), h, v;
2309
2304
  // try to get a block or
2310
2305
  // try to allocate a new block if not allocated already
2311
2306
  h = (n = this._blocks[l]) != null ? n : v = !v && this._allocateBlock(l);
2312
2307
  ++l
2313
2308
  ) {
2314
- var r, i, n, u;
2315
- const _ = h._appendChar(t, {
2309
+ var i, r, n, u;
2310
+ const k = h._appendChar(t, {
2316
2311
  ...e,
2317
2312
  _beforeTailState: (u = e._beforeTailState) == null || (u = u._blocks) == null ? void 0 : u[l]
2318
2313
  });
2319
- if (_.skip && v) {
2314
+ if (k.skip && v) {
2320
2315
  this._blocks.pop(), this.mask = this.mask.slice(1);
2321
2316
  break;
2322
2317
  }
2323
- if (s.aggregate(_), _.consumed) break;
2318
+ if (s.aggregate(k), k.consumed) break;
2324
2319
  }
2325
2320
  return s;
2326
2321
  }
2327
2322
  _trimEmptyTail(t, e) {
2328
- var s, r;
2323
+ var s, i;
2329
2324
  t === void 0 && (t = 0);
2330
- const i = Math.max(((s = this._mapPosToBlock(t)) == null ? void 0 : s.index) || 0, this.repeatFrom, 0);
2325
+ const r = Math.max(((s = this._mapPosToBlock(t)) == null ? void 0 : s.index) || 0, this.repeatFrom, 0);
2331
2326
  let n;
2332
- e != null && (n = (r = this._mapPosToBlock(e)) == null ? void 0 : r.index), n == null && (n = this._blocks.length - 1);
2327
+ e != null && (n = (i = this._mapPosToBlock(e)) == null ? void 0 : i.index), n == null && (n = this._blocks.length - 1);
2333
2328
  let u = 0;
2334
- for (let l = n; i <= l && !this._blocks[l].unmaskedValue; --l, ++u)
2329
+ for (let l = n; r <= l && !this._blocks[l].unmaskedValue; --l, ++u)
2335
2330
  ;
2336
2331
  u && (this._blocks.splice(n - u + 1, u), this.mask = this.mask.slice(u));
2337
2332
  }
@@ -2353,12 +2348,12 @@ class Ee extends L {
2353
2348
  this._blocks.length = t._blocks.length, this.mask = this.mask.slice(0, this._blocks.length), super.state = t;
2354
2349
  }
2355
2350
  }
2356
- g.RepeatBlock = Ee;
2351
+ g.RepeatBlock = pe;
2357
2352
  try {
2358
2353
  globalThis.IMask = g;
2359
2354
  } catch {
2360
2355
  }
2361
- function ee(a) {
2356
+ function ce(a) {
2362
2357
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
2363
2358
  }
2364
2359
  var nt = { exports: {} }, at = { exports: {} }, I = {};
@@ -2370,11 +2365,11 @@ var nt = { exports: {} }, at = { exports: {} }, I = {};
2370
2365
  * This source code is licensed under the MIT license found in the
2371
2366
  * LICENSE file in the root directory of this source tree.
2372
2367
  */
2373
- var Lt;
2374
- function ye() {
2375
- if (Lt) return I;
2376
- Lt = 1;
2377
- var a = typeof Symbol == "function" && Symbol.for, t = a ? Symbol.for("react.element") : 60103, e = a ? Symbol.for("react.portal") : 60106, s = a ? Symbol.for("react.fragment") : 60107, r = a ? Symbol.for("react.strict_mode") : 60108, i = a ? Symbol.for("react.profiler") : 60114, n = a ? Symbol.for("react.provider") : 60109, u = a ? Symbol.for("react.context") : 60110, l = a ? Symbol.for("react.async_mode") : 60111, h = a ? Symbol.for("react.concurrent_mode") : 60111, v = a ? Symbol.for("react.forward_ref") : 60112, _ = a ? Symbol.for("react.suspense") : 60113, S = a ? Symbol.for("react.suspense_list") : 60120, B = a ? Symbol.for("react.memo") : 60115, N = a ? Symbol.for("react.lazy") : 60116, M = a ? Symbol.for("react.block") : 60121, O = a ? Symbol.for("react.fundamental") : 60117, q = a ? Symbol.for("react.responder") : 60118, tt = a ? Symbol.for("react.scope") : 60119;
2368
+ var Dt;
2369
+ function de() {
2370
+ if (Dt) return I;
2371
+ Dt = 1;
2372
+ var a = typeof Symbol == "function" && Symbol.for, t = a ? Symbol.for("react.element") : 60103, e = a ? Symbol.for("react.portal") : 60106, s = a ? Symbol.for("react.fragment") : 60107, i = a ? Symbol.for("react.strict_mode") : 60108, r = a ? Symbol.for("react.profiler") : 60114, n = a ? Symbol.for("react.provider") : 60109, u = a ? Symbol.for("react.context") : 60110, l = a ? Symbol.for("react.async_mode") : 60111, h = a ? Symbol.for("react.concurrent_mode") : 60111, v = a ? Symbol.for("react.forward_ref") : 60112, k = a ? Symbol.for("react.suspense") : 60113, F = a ? Symbol.for("react.suspense_list") : 60120, M = a ? Symbol.for("react.memo") : 60115, N = a ? Symbol.for("react.lazy") : 60116, B = a ? Symbol.for("react.block") : 60121, O = a ? Symbol.for("react.fundamental") : 60117, $ = a ? Symbol.for("react.responder") : 60118, tt = a ? Symbol.for("react.scope") : 60119;
2378
2373
  function V(c) {
2379
2374
  if (typeof c == "object" && c !== null) {
2380
2375
  var W = c.$$typeof;
@@ -2384,16 +2379,16 @@ function ye() {
2384
2379
  case l:
2385
2380
  case h:
2386
2381
  case s:
2387
- case i:
2388
2382
  case r:
2389
- case _:
2383
+ case i:
2384
+ case k:
2390
2385
  return c;
2391
2386
  default:
2392
2387
  switch (c = c && c.$$typeof, c) {
2393
2388
  case u:
2394
2389
  case v:
2395
2390
  case N:
2396
- case B:
2391
+ case M:
2397
2392
  case n:
2398
2393
  return c;
2399
2394
  default:
@@ -2408,7 +2403,7 @@ function ye() {
2408
2403
  function D(c) {
2409
2404
  return V(c) === h;
2410
2405
  }
2411
- return I.AsyncMode = l, I.ConcurrentMode = h, I.ContextConsumer = u, I.ContextProvider = n, I.Element = t, I.ForwardRef = v, I.Fragment = s, I.Lazy = N, I.Memo = B, I.Portal = e, I.Profiler = i, I.StrictMode = r, I.Suspense = _, I.isAsyncMode = function(c) {
2406
+ return I.AsyncMode = l, I.ConcurrentMode = h, I.ContextConsumer = u, I.ContextProvider = n, I.Element = t, I.ForwardRef = v, I.Fragment = s, I.Lazy = N, I.Memo = M, I.Portal = e, I.Profiler = r, I.StrictMode = i, I.Suspense = k, I.isAsyncMode = function(c) {
2412
2407
  return D(c) || V(c) === l;
2413
2408
  }, I.isConcurrentMode = D, I.isContextConsumer = function(c) {
2414
2409
  return V(c) === u;
@@ -2423,20 +2418,20 @@ function ye() {
2423
2418
  }, I.isLazy = function(c) {
2424
2419
  return V(c) === N;
2425
2420
  }, I.isMemo = function(c) {
2426
- return V(c) === B;
2421
+ return V(c) === M;
2427
2422
  }, I.isPortal = function(c) {
2428
2423
  return V(c) === e;
2429
2424
  }, I.isProfiler = function(c) {
2430
- return V(c) === i;
2431
- }, I.isStrictMode = function(c) {
2432
2425
  return V(c) === r;
2426
+ }, I.isStrictMode = function(c) {
2427
+ return V(c) === i;
2433
2428
  }, I.isSuspense = function(c) {
2434
- return V(c) === _;
2429
+ return V(c) === k;
2435
2430
  }, I.isValidElementType = function(c) {
2436
- return typeof c == "string" || typeof c == "function" || c === s || c === h || c === i || c === r || c === _ || c === S || typeof c == "object" && c !== null && (c.$$typeof === N || c.$$typeof === B || c.$$typeof === n || c.$$typeof === u || c.$$typeof === v || c.$$typeof === O || c.$$typeof === q || c.$$typeof === tt || c.$$typeof === M);
2431
+ return typeof c == "string" || typeof c == "function" || c === s || c === h || c === r || c === i || c === k || c === F || typeof c == "object" && c !== null && (c.$$typeof === N || c.$$typeof === M || c.$$typeof === n || c.$$typeof === u || c.$$typeof === v || c.$$typeof === O || c.$$typeof === $ || c.$$typeof === tt || c.$$typeof === B);
2437
2432
  }, I.typeOf = V, I;
2438
2433
  }
2439
- var w = {};
2434
+ var R = {};
2440
2435
  /** @license React v16.13.1
2441
2436
  * react-is.development.js
2442
2437
  *
@@ -2445,13 +2440,13 @@ var w = {};
2445
2440
  * This source code is licensed under the MIT license found in the
2446
2441
  * LICENSE file in the root directory of this source tree.
2447
2442
  */
2448
- var Nt;
2449
- function Ce() {
2450
- return Nt || (Nt = 1, process.env.NODE_ENV !== "production" && function() {
2451
- var a = typeof Symbol == "function" && Symbol.for, t = a ? Symbol.for("react.element") : 60103, e = a ? Symbol.for("react.portal") : 60106, s = a ? Symbol.for("react.fragment") : 60107, r = a ? Symbol.for("react.strict_mode") : 60108, i = a ? Symbol.for("react.profiler") : 60114, n = a ? Symbol.for("react.provider") : 60109, u = a ? Symbol.for("react.context") : 60110, l = a ? Symbol.for("react.async_mode") : 60111, h = a ? Symbol.for("react.concurrent_mode") : 60111, v = a ? Symbol.for("react.forward_ref") : 60112, _ = a ? Symbol.for("react.suspense") : 60113, S = a ? Symbol.for("react.suspense_list") : 60120, B = a ? Symbol.for("react.memo") : 60115, N = a ? Symbol.for("react.lazy") : 60116, M = a ? Symbol.for("react.block") : 60121, O = a ? Symbol.for("react.fundamental") : 60117, q = a ? Symbol.for("react.responder") : 60118, tt = a ? Symbol.for("react.scope") : 60119;
2443
+ var Vt;
2444
+ function fe() {
2445
+ return Vt || (Vt = 1, process.env.NODE_ENV !== "production" && function() {
2446
+ var a = typeof Symbol == "function" && Symbol.for, t = a ? Symbol.for("react.element") : 60103, e = a ? Symbol.for("react.portal") : 60106, s = a ? Symbol.for("react.fragment") : 60107, i = a ? Symbol.for("react.strict_mode") : 60108, r = a ? Symbol.for("react.profiler") : 60114, n = a ? Symbol.for("react.provider") : 60109, u = a ? Symbol.for("react.context") : 60110, l = a ? Symbol.for("react.async_mode") : 60111, h = a ? Symbol.for("react.concurrent_mode") : 60111, v = a ? Symbol.for("react.forward_ref") : 60112, k = a ? Symbol.for("react.suspense") : 60113, F = a ? Symbol.for("react.suspense_list") : 60120, M = a ? Symbol.for("react.memo") : 60115, N = a ? Symbol.for("react.lazy") : 60116, B = a ? Symbol.for("react.block") : 60121, O = a ? Symbol.for("react.fundamental") : 60117, $ = a ? Symbol.for("react.responder") : 60118, tt = a ? Symbol.for("react.scope") : 60119;
2452
2447
  function V(p) {
2453
2448
  return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2454
- p === s || p === h || p === i || p === r || p === _ || p === S || typeof p == "object" && p !== null && (p.$$typeof === N || p.$$typeof === B || p.$$typeof === n || p.$$typeof === u || p.$$typeof === v || p.$$typeof === O || p.$$typeof === q || p.$$typeof === tt || p.$$typeof === M);
2449
+ p === s || p === h || p === r || p === i || p === k || p === F || typeof p == "object" && p !== null && (p.$$typeof === N || p.$$typeof === M || p.$$typeof === n || p.$$typeof === u || p.$$typeof === v || p.$$typeof === O || p.$$typeof === $ || p.$$typeof === tt || p.$$typeof === B);
2455
2450
  }
2456
2451
  function D(p) {
2457
2452
  if (typeof p == "object" && p !== null) {
@@ -2463,19 +2458,19 @@ function Ce() {
2463
2458
  case l:
2464
2459
  case h:
2465
2460
  case s:
2466
- case i:
2467
2461
  case r:
2468
- case _:
2462
+ case i:
2463
+ case k:
2469
2464
  return rt;
2470
2465
  default:
2471
- var Ot = rt && rt.$$typeof;
2472
- switch (Ot) {
2466
+ var Bt = rt && rt.$$typeof;
2467
+ switch (Bt) {
2473
2468
  case u:
2474
2469
  case v:
2475
2470
  case N:
2476
- case B:
2471
+ case M:
2477
2472
  case n:
2478
- return Ot;
2473
+ return Bt;
2479
2474
  default:
2480
2475
  return Y;
2481
2476
  }
@@ -2485,7 +2480,7 @@ function Ce() {
2485
2480
  }
2486
2481
  }
2487
2482
  }
2488
- var c = l, W = h, ft = u, mt = n, vt = t, gt = v, st = s, _t = N, kt = B, Q = e, Et = i, $ = r, Z = _, it = !1;
2483
+ var c = l, W = h, ft = u, mt = n, vt = t, gt = v, st = s, kt = N, _t = M, Q = e, Et = r, q = i, Z = k, it = !1;
2489
2484
  function yt(p) {
2490
2485
  return it || (it = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), o(p) || D(p) === l;
2491
2486
  }
@@ -2501,58 +2496,58 @@ function Ce() {
2501
2496
  function C(p) {
2502
2497
  return typeof p == "object" && p !== null && p.$$typeof === t;
2503
2498
  }
2504
- function k(p) {
2499
+ function _(p) {
2505
2500
  return D(p) === v;
2506
2501
  }
2507
- function F(p) {
2502
+ function S(p) {
2508
2503
  return D(p) === s;
2509
2504
  }
2510
2505
  function y(p) {
2511
2506
  return D(p) === N;
2512
2507
  }
2513
2508
  function A(p) {
2514
- return D(p) === B;
2509
+ return D(p) === M;
2515
2510
  }
2516
2511
  function x(p) {
2517
2512
  return D(p) === e;
2518
2513
  }
2519
- function R(p) {
2520
- return D(p) === i;
2514
+ function w(p) {
2515
+ return D(p) === r;
2521
2516
  }
2522
2517
  function T(p) {
2523
- return D(p) === r;
2518
+ return D(p) === i;
2524
2519
  }
2525
2520
  function j(p) {
2526
- return D(p) === _;
2521
+ return D(p) === k;
2527
2522
  }
2528
- w.AsyncMode = c, w.ConcurrentMode = W, w.ContextConsumer = ft, w.ContextProvider = mt, w.Element = vt, w.ForwardRef = gt, w.Fragment = st, w.Lazy = _t, w.Memo = kt, w.Portal = Q, w.Profiler = Et, w.StrictMode = $, w.Suspense = Z, w.isAsyncMode = yt, w.isConcurrentMode = o, w.isContextConsumer = d, w.isContextProvider = b, w.isElement = C, w.isForwardRef = k, w.isFragment = F, w.isLazy = y, w.isMemo = A, w.isPortal = x, w.isProfiler = R, w.isStrictMode = T, w.isSuspense = j, w.isValidElementType = V, w.typeOf = D;
2529
- }()), w;
2523
+ R.AsyncMode = c, R.ConcurrentMode = W, R.ContextConsumer = ft, R.ContextProvider = mt, R.Element = vt, R.ForwardRef = gt, R.Fragment = st, R.Lazy = kt, R.Memo = _t, R.Portal = Q, R.Profiler = Et, R.StrictMode = q, R.Suspense = Z, R.isAsyncMode = yt, R.isConcurrentMode = o, R.isContextConsumer = d, R.isContextProvider = b, R.isElement = C, R.isForwardRef = _, R.isFragment = S, R.isLazy = y, R.isMemo = A, R.isPortal = x, R.isProfiler = w, R.isStrictMode = T, R.isSuspense = j, R.isValidElementType = V, R.typeOf = D;
2524
+ }()), R;
2530
2525
  }
2531
- var jt;
2532
- function se() {
2533
- return jt || (jt = 1, process.env.NODE_ENV === "production" ? at.exports = ye() : at.exports = Ce()), at.exports;
2526
+ var Pt;
2527
+ function Xt() {
2528
+ return Pt || (Pt = 1, process.env.NODE_ENV === "production" ? at.exports = de() : at.exports = fe()), at.exports;
2534
2529
  }
2535
2530
  /*
2536
2531
  object-assign
2537
2532
  (c) Sindre Sorhus
2538
2533
  @license MIT
2539
2534
  */
2540
- var At, Ut;
2541
- function Ae() {
2542
- if (Ut) return At;
2543
- Ut = 1;
2535
+ var At, Lt;
2536
+ function me() {
2537
+ if (Lt) return At;
2538
+ Lt = 1;
2544
2539
  var a = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, e = Object.prototype.propertyIsEnumerable;
2545
- function s(i) {
2546
- if (i == null)
2540
+ function s(r) {
2541
+ if (r == null)
2547
2542
  throw new TypeError("Object.assign cannot be called with null or undefined");
2548
- return Object(i);
2543
+ return Object(r);
2549
2544
  }
2550
- function r() {
2545
+ function i() {
2551
2546
  try {
2552
2547
  if (!Object.assign)
2553
2548
  return !1;
2554
- var i = new String("abc");
2555
- if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
2549
+ var r = new String("abc");
2550
+ if (r[5] = "de", Object.getOwnPropertyNames(r)[0] === "5")
2556
2551
  return !1;
2557
2552
  for (var n = {}, u = 0; u < 10; u++)
2558
2553
  n["_" + String.fromCharCode(u)] = u;
@@ -2569,41 +2564,41 @@ function Ae() {
2569
2564
  return !1;
2570
2565
  }
2571
2566
  }
2572
- return At = r() ? Object.assign : function(i, n) {
2573
- for (var u, l = s(i), h, v = 1; v < arguments.length; v++) {
2567
+ return At = i() ? Object.assign : function(r, n) {
2568
+ for (var u, l = s(r), h, v = 1; v < arguments.length; v++) {
2574
2569
  u = Object(arguments[v]);
2575
- for (var _ in u)
2576
- t.call(u, _) && (l[_] = u[_]);
2570
+ for (var k in u)
2571
+ t.call(u, k) && (l[k] = u[k]);
2577
2572
  if (a) {
2578
2573
  h = a(u);
2579
- for (var S = 0; S < h.length; S++)
2580
- e.call(u, h[S]) && (l[h[S]] = u[h[S]]);
2574
+ for (var F = 0; F < h.length; F++)
2575
+ e.call(u, h[F]) && (l[h[F]] = u[h[F]]);
2581
2576
  }
2582
2577
  }
2583
2578
  return l;
2584
2579
  }, At;
2585
2580
  }
2586
- var bt, qt;
2587
- function Bt() {
2588
- if (qt) return bt;
2589
- qt = 1;
2581
+ var bt, Nt;
2582
+ function wt() {
2583
+ if (Nt) return bt;
2584
+ Nt = 1;
2590
2585
  var a = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
2591
2586
  return bt = a, bt;
2592
2587
  }
2593
- var St, $t;
2594
- function ie() {
2595
- return $t || ($t = 1, St = Function.call.bind(Object.prototype.hasOwnProperty)), St;
2588
+ var Ft, jt;
2589
+ function Jt() {
2590
+ return jt || (jt = 1, Ft = Function.call.bind(Object.prototype.hasOwnProperty)), Ft;
2596
2591
  }
2597
- var Ft, Yt;
2598
- function be() {
2599
- if (Yt) return Ft;
2600
- Yt = 1;
2592
+ var St, Ut;
2593
+ function ve() {
2594
+ if (Ut) return St;
2595
+ Ut = 1;
2601
2596
  var a = function() {
2602
2597
  };
2603
2598
  if (process.env.NODE_ENV !== "production") {
2604
- var t = /* @__PURE__ */ Bt(), e = {}, s = /* @__PURE__ */ ie();
2605
- a = function(i) {
2606
- var n = "Warning: " + i;
2599
+ var t = /* @__PURE__ */ wt(), e = {}, s = /* @__PURE__ */ Jt();
2600
+ a = function(r) {
2601
+ var n = "Warning: " + r;
2607
2602
  typeof console < "u" && console.error(n);
2608
2603
  try {
2609
2604
  throw new Error(n);
@@ -2611,45 +2606,45 @@ function be() {
2611
2606
  }
2612
2607
  };
2613
2608
  }
2614
- function r(i, n, u, l, h) {
2609
+ function i(r, n, u, l, h) {
2615
2610
  if (process.env.NODE_ENV !== "production") {
2616
- for (var v in i)
2617
- if (s(i, v)) {
2618
- var _;
2611
+ for (var v in r)
2612
+ if (s(r, v)) {
2613
+ var k;
2619
2614
  try {
2620
- if (typeof i[v] != "function") {
2621
- var S = Error(
2622
- (l || "React class") + ": " + u + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
2615
+ if (typeof r[v] != "function") {
2616
+ var F = Error(
2617
+ (l || "React class") + ": " + u + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
2623
2618
  );
2624
- throw S.name = "Invariant Violation", S;
2619
+ throw F.name = "Invariant Violation", F;
2625
2620
  }
2626
- _ = i[v](n, v, l, u, null, t);
2621
+ k = r[v](n, v, l, u, null, t);
2627
2622
  } catch (N) {
2628
- _ = N;
2623
+ k = N;
2629
2624
  }
2630
- if (_ && !(_ instanceof Error) && a(
2631
- (l || "React class") + ": type specification of " + u + " `" + v + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof _ + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
2632
- ), _ instanceof Error && !(_.message in e)) {
2633
- e[_.message] = !0;
2634
- var B = h ? h() : "";
2625
+ if (k && !(k instanceof Error) && a(
2626
+ (l || "React class") + ": type specification of " + u + " `" + v + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof k + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
2627
+ ), k instanceof Error && !(k.message in e)) {
2628
+ e[k.message] = !0;
2629
+ var M = h ? h() : "";
2635
2630
  a(
2636
- "Failed " + u + " type: " + _.message + (B ?? "")
2631
+ "Failed " + u + " type: " + k.message + (M ?? "")
2637
2632
  );
2638
2633
  }
2639
2634
  }
2640
2635
  }
2641
2636
  }
2642
- return r.resetWarningCache = function() {
2637
+ return i.resetWarningCache = function() {
2643
2638
  process.env.NODE_ENV !== "production" && (e = {});
2644
- }, Ft = r, Ft;
2639
+ }, St = i, St;
2645
2640
  }
2646
- var xt, Ht;
2647
- function Se() {
2648
- if (Ht) return xt;
2649
- Ht = 1;
2650
- var a = se(), t = Ae(), e = /* @__PURE__ */ Bt(), s = /* @__PURE__ */ ie(), r = /* @__PURE__ */ be(), i = function() {
2641
+ var xt, $t;
2642
+ function ge() {
2643
+ if ($t) return xt;
2644
+ $t = 1;
2645
+ var a = Xt(), t = me(), e = /* @__PURE__ */ wt(), s = /* @__PURE__ */ Jt(), i = /* @__PURE__ */ ve(), r = function() {
2651
2646
  };
2652
- process.env.NODE_ENV !== "production" && (i = function(u) {
2647
+ process.env.NODE_ENV !== "production" && (r = function(u) {
2653
2648
  var l = "Warning: " + u;
2654
2649
  typeof console < "u" && console.error(l);
2655
2650
  try {
@@ -2662,20 +2657,20 @@ function Se() {
2662
2657
  }
2663
2658
  return xt = function(u, l) {
2664
2659
  var h = typeof Symbol == "function" && Symbol.iterator, v = "@@iterator";
2665
- function _(o) {
2660
+ function k(o) {
2666
2661
  var d = o && (h && o[h] || o[v]);
2667
2662
  if (typeof d == "function")
2668
2663
  return d;
2669
2664
  }
2670
- var S = "<<anonymous>>", B = {
2671
- array: q("array"),
2672
- bigint: q("bigint"),
2673
- bool: q("boolean"),
2674
- func: q("function"),
2675
- number: q("number"),
2676
- object: q("object"),
2677
- string: q("string"),
2678
- symbol: q("symbol"),
2665
+ var F = "<<anonymous>>", M = {
2666
+ array: $("array"),
2667
+ bigint: $("bigint"),
2668
+ bool: $("boolean"),
2669
+ func: $("function"),
2670
+ number: $("number"),
2671
+ object: $("object"),
2672
+ string: $("string"),
2673
+ symbol: $("symbol"),
2679
2674
  any: tt(),
2680
2675
  arrayOf: V,
2681
2676
  element: D(),
@@ -2685,21 +2680,21 @@ function Se() {
2685
2680
  objectOf: mt,
2686
2681
  oneOf: ft,
2687
2682
  oneOfType: vt,
2688
- shape: _t,
2689
- exact: kt
2683
+ shape: kt,
2684
+ exact: _t
2690
2685
  };
2691
2686
  function N(o, d) {
2692
2687
  return o === d ? o !== 0 || 1 / o === 1 / d : o !== o && d !== d;
2693
2688
  }
2694
- function M(o, d) {
2689
+ function B(o, d) {
2695
2690
  this.message = o, this.data = d && typeof d == "object" ? d : {}, this.stack = "";
2696
2691
  }
2697
- M.prototype = Error.prototype;
2692
+ B.prototype = Error.prototype;
2698
2693
  function O(o) {
2699
2694
  if (process.env.NODE_ENV !== "production")
2700
2695
  var d = {}, b = 0;
2701
- function C(F, y, A, x, R, T, j) {
2702
- if (x = x || S, T = T || A, j !== e) {
2696
+ function C(S, y, A, x, w, T, j) {
2697
+ if (x = x || F, T = T || A, j !== e) {
2703
2698
  if (l) {
2704
2699
  var p = new Error(
2705
2700
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
@@ -2708,23 +2703,23 @@ function Se() {
2708
2703
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
2709
2704
  var Y = x + ":" + A;
2710
2705
  !d[Y] && // Avoid spamming the console because they are often not actionable except for lib authors
2711
- b < 3 && (i(
2706
+ b < 3 && (r(
2712
2707
  "You are manually calling a React.PropTypes validation function for the `" + T + "` prop on `" + x + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
2713
2708
  ), d[Y] = !0, b++);
2714
2709
  }
2715
2710
  }
2716
- return y[A] == null ? F ? y[A] === null ? new M("The " + R + " `" + T + "` is marked as required " + ("in `" + x + "`, but its value is `null`.")) : new M("The " + R + " `" + T + "` is marked as required in " + ("`" + x + "`, but its value is `undefined`.")) : null : o(y, A, x, R, T);
2711
+ return y[A] == null ? S ? y[A] === null ? new B("The " + w + " `" + T + "` is marked as required " + ("in `" + x + "`, but its value is `null`.")) : new B("The " + w + " `" + T + "` is marked as required in " + ("`" + x + "`, but its value is `undefined`.")) : null : o(y, A, x, w, T);
2717
2712
  }
2718
- var k = C.bind(null, !1);
2719
- return k.isRequired = C.bind(null, !0), k;
2713
+ var _ = C.bind(null, !1);
2714
+ return _.isRequired = C.bind(null, !0), _;
2720
2715
  }
2721
- function q(o) {
2722
- function d(b, C, k, F, y, A) {
2723
- var x = b[C], R = $(x);
2724
- if (R !== o) {
2716
+ function $(o) {
2717
+ function d(b, C, _, S, y, A) {
2718
+ var x = b[C], w = q(x);
2719
+ if (w !== o) {
2725
2720
  var T = Z(x);
2726
- return new M(
2727
- "Invalid " + F + " `" + y + "` of type " + ("`" + T + "` supplied to `" + k + "`, expected ") + ("`" + o + "`."),
2721
+ return new B(
2722
+ "Invalid " + S + " `" + y + "` of type " + ("`" + T + "` supplied to `" + _ + "`, expected ") + ("`" + o + "`."),
2728
2723
  { expectedType: o }
2729
2724
  );
2730
2725
  }
@@ -2736,16 +2731,16 @@ function Se() {
2736
2731
  return O(n);
2737
2732
  }
2738
2733
  function V(o) {
2739
- function d(b, C, k, F, y) {
2734
+ function d(b, C, _, S, y) {
2740
2735
  if (typeof o != "function")
2741
- return new M("Property `" + y + "` of component `" + k + "` has invalid PropType notation inside arrayOf.");
2736
+ return new B("Property `" + y + "` of component `" + _ + "` has invalid PropType notation inside arrayOf.");
2742
2737
  var A = b[C];
2743
2738
  if (!Array.isArray(A)) {
2744
- var x = $(A);
2745
- return new M("Invalid " + F + " `" + y + "` of type " + ("`" + x + "` supplied to `" + k + "`, expected an array."));
2739
+ var x = q(A);
2740
+ return new B("Invalid " + S + " `" + y + "` of type " + ("`" + x + "` supplied to `" + _ + "`, expected an array."));
2746
2741
  }
2747
- for (var R = 0; R < A.length; R++) {
2748
- var T = o(A, R, k, F, y + "[" + R + "]", e);
2742
+ for (var w = 0; w < A.length; w++) {
2743
+ var T = o(A, w, _, S, y + "[" + w + "]", e);
2749
2744
  if (T instanceof Error)
2750
2745
  return T;
2751
2746
  }
@@ -2754,32 +2749,32 @@ function Se() {
2754
2749
  return O(d);
2755
2750
  }
2756
2751
  function D() {
2757
- function o(d, b, C, k, F) {
2752
+ function o(d, b, C, _, S) {
2758
2753
  var y = d[b];
2759
2754
  if (!u(y)) {
2760
- var A = $(y);
2761
- return new M("Invalid " + k + " `" + F + "` of type " + ("`" + A + "` supplied to `" + C + "`, expected a single ReactElement."));
2755
+ var A = q(y);
2756
+ return new B("Invalid " + _ + " `" + S + "` of type " + ("`" + A + "` supplied to `" + C + "`, expected a single ReactElement."));
2762
2757
  }
2763
2758
  return null;
2764
2759
  }
2765
2760
  return O(o);
2766
2761
  }
2767
2762
  function c() {
2768
- function o(d, b, C, k, F) {
2763
+ function o(d, b, C, _, S) {
2769
2764
  var y = d[b];
2770
2765
  if (!a.isValidElementType(y)) {
2771
- var A = $(y);
2772
- return new M("Invalid " + k + " `" + F + "` of type " + ("`" + A + "` supplied to `" + C + "`, expected a single ReactElement type."));
2766
+ var A = q(y);
2767
+ return new B("Invalid " + _ + " `" + S + "` of type " + ("`" + A + "` supplied to `" + C + "`, expected a single ReactElement type."));
2773
2768
  }
2774
2769
  return null;
2775
2770
  }
2776
2771
  return O(o);
2777
2772
  }
2778
2773
  function W(o) {
2779
- function d(b, C, k, F, y) {
2774
+ function d(b, C, _, S, y) {
2780
2775
  if (!(b[C] instanceof o)) {
2781
- var A = o.name || S, x = yt(b[C]);
2782
- return new M("Invalid " + F + " `" + y + "` of type " + ("`" + x + "` supplied to `" + k + "`, expected ") + ("instance of `" + A + "`."));
2776
+ var A = o.name || F, x = yt(b[C]);
2777
+ return new B("Invalid " + S + " `" + y + "` of type " + ("`" + x + "` supplied to `" + _ + "`, expected ") + ("instance of `" + A + "`."));
2783
2778
  }
2784
2779
  return null;
2785
2780
  }
@@ -2787,31 +2782,31 @@ function Se() {
2787
2782
  }
2788
2783
  function ft(o) {
2789
2784
  if (!Array.isArray(o))
2790
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
2785
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? r(
2791
2786
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
2792
- ) : i("Invalid argument supplied to oneOf, expected an array.")), n;
2793
- function d(b, C, k, F, y) {
2787
+ ) : r("Invalid argument supplied to oneOf, expected an array.")), n;
2788
+ function d(b, C, _, S, y) {
2794
2789
  for (var A = b[C], x = 0; x < o.length; x++)
2795
2790
  if (N(A, o[x]))
2796
2791
  return null;
2797
- var R = JSON.stringify(o, function(j, p) {
2792
+ var w = JSON.stringify(o, function(j, p) {
2798
2793
  var Y = Z(p);
2799
2794
  return Y === "symbol" ? String(p) : p;
2800
2795
  });
2801
- return new M("Invalid " + F + " `" + y + "` of value `" + String(A) + "` " + ("supplied to `" + k + "`, expected one of " + R + "."));
2796
+ return new B("Invalid " + S + " `" + y + "` of value `" + String(A) + "` " + ("supplied to `" + _ + "`, expected one of " + w + "."));
2802
2797
  }
2803
2798
  return O(d);
2804
2799
  }
2805
2800
  function mt(o) {
2806
- function d(b, C, k, F, y) {
2801
+ function d(b, C, _, S, y) {
2807
2802
  if (typeof o != "function")
2808
- return new M("Property `" + y + "` of component `" + k + "` has invalid PropType notation inside objectOf.");
2809
- var A = b[C], x = $(A);
2803
+ return new B("Property `" + y + "` of component `" + _ + "` has invalid PropType notation inside objectOf.");
2804
+ var A = b[C], x = q(A);
2810
2805
  if (x !== "object")
2811
- return new M("Invalid " + F + " `" + y + "` of type " + ("`" + x + "` supplied to `" + k + "`, expected an object."));
2812
- for (var R in A)
2813
- if (s(A, R)) {
2814
- var T = o(A, R, k, F, y + "." + R, e);
2806
+ return new B("Invalid " + S + " `" + y + "` of type " + ("`" + x + "` supplied to `" + _ + "`, expected an object."));
2807
+ for (var w in A)
2808
+ if (s(A, w)) {
2809
+ var T = o(A, w, _, S, y + "." + w, e);
2815
2810
  if (T instanceof Error)
2816
2811
  return T;
2817
2812
  }
@@ -2821,47 +2816,47 @@ function Se() {
2821
2816
  }
2822
2817
  function vt(o) {
2823
2818
  if (!Array.isArray(o))
2824
- return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), n;
2819
+ return process.env.NODE_ENV !== "production" && r("Invalid argument supplied to oneOfType, expected an instance of array."), n;
2825
2820
  for (var d = 0; d < o.length; d++) {
2826
2821
  var b = o[d];
2827
2822
  if (typeof b != "function")
2828
- return i(
2823
+ return r(
2829
2824
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + it(b) + " at index " + d + "."
2830
2825
  ), n;
2831
2826
  }
2832
- function C(k, F, y, A, x) {
2833
- for (var R = [], T = 0; T < o.length; T++) {
2834
- var j = o[T], p = j(k, F, y, A, x, e);
2827
+ function C(_, S, y, A, x) {
2828
+ for (var w = [], T = 0; T < o.length; T++) {
2829
+ var j = o[T], p = j(_, S, y, A, x, e);
2835
2830
  if (p == null)
2836
2831
  return null;
2837
- p.data && s(p.data, "expectedType") && R.push(p.data.expectedType);
2832
+ p.data && s(p.data, "expectedType") && w.push(p.data.expectedType);
2838
2833
  }
2839
- var Y = R.length > 0 ? ", expected one of type [" + R.join(", ") + "]" : "";
2840
- return new M("Invalid " + A + " `" + x + "` supplied to " + ("`" + y + "`" + Y + "."));
2834
+ var Y = w.length > 0 ? ", expected one of type [" + w.join(", ") + "]" : "";
2835
+ return new B("Invalid " + A + " `" + x + "` supplied to " + ("`" + y + "`" + Y + "."));
2841
2836
  }
2842
2837
  return O(C);
2843
2838
  }
2844
2839
  function gt() {
2845
- function o(d, b, C, k, F) {
2846
- return Q(d[b]) ? null : new M("Invalid " + k + " `" + F + "` supplied to " + ("`" + C + "`, expected a ReactNode."));
2840
+ function o(d, b, C, _, S) {
2841
+ return Q(d[b]) ? null : new B("Invalid " + _ + " `" + S + "` supplied to " + ("`" + C + "`, expected a ReactNode."));
2847
2842
  }
2848
2843
  return O(o);
2849
2844
  }
2850
- function st(o, d, b, C, k) {
2851
- return new M(
2852
- (o || "React class") + ": " + d + " type `" + b + "." + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + k + "`."
2845
+ function st(o, d, b, C, _) {
2846
+ return new B(
2847
+ (o || "React class") + ": " + d + " type `" + b + "." + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + _ + "`."
2853
2848
  );
2854
2849
  }
2855
- function _t(o) {
2856
- function d(b, C, k, F, y) {
2857
- var A = b[C], x = $(A);
2850
+ function kt(o) {
2851
+ function d(b, C, _, S, y) {
2852
+ var A = b[C], x = q(A);
2858
2853
  if (x !== "object")
2859
- return new M("Invalid " + F + " `" + y + "` of type `" + x + "` " + ("supplied to `" + k + "`, expected `object`."));
2860
- for (var R in o) {
2861
- var T = o[R];
2854
+ return new B("Invalid " + S + " `" + y + "` of type `" + x + "` " + ("supplied to `" + _ + "`, expected `object`."));
2855
+ for (var w in o) {
2856
+ var T = o[w];
2862
2857
  if (typeof T != "function")
2863
- return st(k, F, y, R, Z(T));
2864
- var j = T(A, R, k, F, y + "." + R, e);
2858
+ return st(_, S, y, w, Z(T));
2859
+ var j = T(A, w, _, S, y + "." + w, e);
2865
2860
  if (j)
2866
2861
  return j;
2867
2862
  }
@@ -2869,22 +2864,22 @@ function Se() {
2869
2864
  }
2870
2865
  return O(d);
2871
2866
  }
2872
- function kt(o) {
2873
- function d(b, C, k, F, y) {
2874
- var A = b[C], x = $(A);
2867
+ function _t(o) {
2868
+ function d(b, C, _, S, y) {
2869
+ var A = b[C], x = q(A);
2875
2870
  if (x !== "object")
2876
- return new M("Invalid " + F + " `" + y + "` of type `" + x + "` " + ("supplied to `" + k + "`, expected `object`."));
2877
- var R = t({}, b[C], o);
2878
- for (var T in R) {
2871
+ return new B("Invalid " + S + " `" + y + "` of type `" + x + "` " + ("supplied to `" + _ + "`, expected `object`."));
2872
+ var w = t({}, b[C], o);
2873
+ for (var T in w) {
2879
2874
  var j = o[T];
2880
2875
  if (s(o, T) && typeof j != "function")
2881
- return st(k, F, y, T, Z(j));
2876
+ return st(_, S, y, T, Z(j));
2882
2877
  if (!j)
2883
- return new M(
2884
- "Invalid " + F + " `" + y + "` key `" + T + "` supplied to `" + k + "`.\nBad object: " + JSON.stringify(b[C], null, " ") + `
2878
+ return new B(
2879
+ "Invalid " + S + " `" + y + "` key `" + T + "` supplied to `" + _ + "`.\nBad object: " + JSON.stringify(b[C], null, " ") + `
2885
2880
  Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
2886
2881
  );
2887
- var p = j(A, T, k, F, y + "." + T, e);
2882
+ var p = j(A, T, _, S, y + "." + T, e);
2888
2883
  if (p)
2889
2884
  return p;
2890
2885
  }
@@ -2905,7 +2900,7 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
2905
2900
  return o.every(Q);
2906
2901
  if (o === null || u(o))
2907
2902
  return !0;
2908
- var d = _(o);
2903
+ var d = k(o);
2909
2904
  if (d) {
2910
2905
  var b = d.call(o), C;
2911
2906
  if (d !== o.entries) {
@@ -2914,8 +2909,8 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
2914
2909
  return !1;
2915
2910
  } else
2916
2911
  for (; !(C = b.next()).done; ) {
2917
- var k = C.value;
2918
- if (k && !Q(k[1]))
2912
+ var _ = C.value;
2913
+ if (_ && !Q(_[1]))
2919
2914
  return !1;
2920
2915
  }
2921
2916
  } else
@@ -2928,14 +2923,14 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
2928
2923
  function Et(o, d) {
2929
2924
  return o === "symbol" ? !0 : d ? d["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && d instanceof Symbol : !1;
2930
2925
  }
2931
- function $(o) {
2926
+ function q(o) {
2932
2927
  var d = typeof o;
2933
2928
  return Array.isArray(o) ? "array" : o instanceof RegExp ? "object" : Et(d, o) ? "symbol" : d;
2934
2929
  }
2935
2930
  function Z(o) {
2936
2931
  if (typeof o > "u" || o === null)
2937
2932
  return "" + o;
2938
- var d = $(o);
2933
+ var d = q(o);
2939
2934
  if (d === "object") {
2940
2935
  if (o instanceof Date)
2941
2936
  return "date";
@@ -2959,34 +2954,34 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
2959
2954
  }
2960
2955
  }
2961
2956
  function yt(o) {
2962
- return !o.constructor || !o.constructor.name ? S : o.constructor.name;
2957
+ return !o.constructor || !o.constructor.name ? F : o.constructor.name;
2963
2958
  }
2964
- return B.checkPropTypes = r, B.resetWarningCache = r.resetWarningCache, B.PropTypes = B, B;
2959
+ return M.checkPropTypes = i, M.resetWarningCache = i.resetWarningCache, M.PropTypes = M, M;
2965
2960
  }, xt;
2966
2961
  }
2967
- var Tt, zt;
2968
- function Fe() {
2969
- if (zt) return Tt;
2970
- zt = 1;
2971
- var a = /* @__PURE__ */ Bt();
2962
+ var Tt, qt;
2963
+ function ke() {
2964
+ if (qt) return Tt;
2965
+ qt = 1;
2966
+ var a = /* @__PURE__ */ wt();
2972
2967
  function t() {
2973
2968
  }
2974
2969
  function e() {
2975
2970
  }
2976
2971
  return e.resetWarningCache = t, Tt = function() {
2977
- function s(n, u, l, h, v, _) {
2978
- if (_ !== a) {
2979
- var S = new Error(
2972
+ function s(n, u, l, h, v, k) {
2973
+ if (k !== a) {
2974
+ var F = new Error(
2980
2975
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
2981
2976
  );
2982
- throw S.name = "Invariant Violation", S;
2977
+ throw F.name = "Invariant Violation", F;
2983
2978
  }
2984
2979
  }
2985
2980
  s.isRequired = s;
2986
- function r() {
2981
+ function i() {
2987
2982
  return s;
2988
2983
  }
2989
- var i = {
2984
+ var r = {
2990
2985
  array: s,
2991
2986
  bigint: s,
2992
2987
  bool: s,
@@ -2996,34 +2991,34 @@ function Fe() {
2996
2991
  string: s,
2997
2992
  symbol: s,
2998
2993
  any: s,
2999
- arrayOf: r,
2994
+ arrayOf: i,
3000
2995
  element: s,
3001
2996
  elementType: s,
3002
- instanceOf: r,
2997
+ instanceOf: i,
3003
2998
  node: s,
3004
- objectOf: r,
3005
- oneOf: r,
3006
- oneOfType: r,
3007
- shape: r,
3008
- exact: r,
2999
+ objectOf: i,
3000
+ oneOf: i,
3001
+ oneOfType: i,
3002
+ shape: i,
3003
+ exact: i,
3009
3004
  checkPropTypes: e,
3010
3005
  resetWarningCache: t
3011
3006
  };
3012
- return i.PropTypes = i, i;
3007
+ return r.PropTypes = r, r;
3013
3008
  }, Tt;
3014
3009
  }
3015
- var Kt;
3016
- function xe() {
3017
- if (Kt) return nt.exports;
3018
- if (Kt = 1, process.env.NODE_ENV !== "production") {
3019
- var a = se(), t = !0;
3020
- nt.exports = /* @__PURE__ */ Se()(a.isElement, t);
3010
+ var Yt;
3011
+ function _e() {
3012
+ if (Yt) return nt.exports;
3013
+ if (Yt = 1, process.env.NODE_ENV !== "production") {
3014
+ var a = Xt(), t = !0;
3015
+ nt.exports = /* @__PURE__ */ ge()(a.isElement, t);
3021
3016
  } else
3022
- nt.exports = /* @__PURE__ */ Fe()();
3017
+ nt.exports = /* @__PURE__ */ ke()();
3023
3018
  return nt.exports;
3024
3019
  }
3025
- var Te = /* @__PURE__ */ xe();
3026
- const f = /* @__PURE__ */ ee(Te), re = {
3020
+ var Ee = /* @__PURE__ */ _e();
3021
+ const f = /* @__PURE__ */ ce(Ee), Qt = {
3027
3022
  // common
3028
3023
  mask: f.oneOfType([f.array, f.func, f.string, f.instanceOf(RegExp), f.oneOf([Date, Number, g.Masked]), f.instanceOf(g.Masked)]),
3029
3024
  value: f.any,
@@ -3070,64 +3065,64 @@ const f = /* @__PURE__ */ ee(Te), re = {
3070
3065
  inputRef: f.oneOfType([f.func, f.shape({
3071
3066
  current: f.object
3072
3067
  })])
3073
- }, ne = Object.keys(re).filter((a) => a !== "value"), Ie = ["value", "unmask", "onAccept", "onComplete", "inputRef"], we = ne.filter((a) => Ie.indexOf(a) < 0);
3074
- function Re(a) {
3068
+ }, te = Object.keys(Qt).filter((a) => a !== "value"), ye = ["value", "unmask", "onAccept", "onComplete", "inputRef"], Ce = te.filter((a) => ye.indexOf(a) < 0);
3069
+ function Ae(a) {
3075
3070
  var t;
3076
3071
  const e = (t = class extends X.Component {
3077
- constructor(i) {
3078
- super(i), this._inputRef = this._inputRef.bind(this);
3072
+ constructor(r) {
3073
+ super(r), this._inputRef = this._inputRef.bind(this);
3079
3074
  }
3080
3075
  componentDidMount() {
3081
3076
  this.props.mask && this.initMask();
3082
3077
  }
3083
3078
  componentDidUpdate() {
3084
- const i = this.props, n = this._extractMaskOptionsFromProps(i);
3079
+ const r = this.props, n = this._extractMaskOptionsFromProps(r);
3085
3080
  if (n.mask)
3086
- this.maskRef ? (this.maskRef.updateOptions(n), "value" in i && i.value !== void 0 && (this.maskValue = i.value)) : this.initMask(n);
3087
- else if (this.destroyMask(), "value" in i && i.value !== void 0) {
3081
+ this.maskRef ? (this.maskRef.updateOptions(n), "value" in r && r.value !== void 0 && (this.maskValue = r.value)) : this.initMask(n);
3082
+ else if (this.destroyMask(), "value" in r && r.value !== void 0) {
3088
3083
  var u;
3089
- (u = this.element) != null && u.isContentEditable && this.element.tagName !== "INPUT" && this.element.tagName !== "TEXTAREA" ? this.element.textContent = i.value : this.element.value = i.value;
3084
+ (u = this.element) != null && u.isContentEditable && this.element.tagName !== "INPUT" && this.element.tagName !== "TEXTAREA" ? this.element.textContent = r.value : this.element.value = r.value;
3090
3085
  }
3091
3086
  }
3092
3087
  componentWillUnmount() {
3093
3088
  this.destroyMask();
3094
3089
  }
3095
- _inputRef(i) {
3096
- this.element = i, this.props.inputRef && (Object.prototype.hasOwnProperty.call(this.props.inputRef, "current") ? this.props.inputRef.current = i : this.props.inputRef(i));
3090
+ _inputRef(r) {
3091
+ this.element = r, this.props.inputRef && (Object.prototype.hasOwnProperty.call(this.props.inputRef, "current") ? this.props.inputRef.current = r : this.props.inputRef(r));
3097
3092
  }
3098
- initMask(i) {
3099
- i === void 0 && (i = this._extractMaskOptionsFromProps(this.props)), this.maskRef = g(this.element, i).on("accept", this._onAccept.bind(this)).on("complete", this._onComplete.bind(this)), "value" in this.props && this.props.value !== void 0 && (this.maskValue = this.props.value);
3093
+ initMask(r) {
3094
+ r === void 0 && (r = this._extractMaskOptionsFromProps(this.props)), this.maskRef = g(this.element, r).on("accept", this._onAccept.bind(this)).on("complete", this._onComplete.bind(this)), "value" in this.props && this.props.value !== void 0 && (this.maskValue = this.props.value);
3100
3095
  }
3101
3096
  destroyMask() {
3102
3097
  this.maskRef && (this.maskRef.destroy(), delete this.maskRef);
3103
3098
  }
3104
- _extractMaskOptionsFromProps(i) {
3099
+ _extractMaskOptionsFromProps(r) {
3105
3100
  const {
3106
3101
  ...n
3107
- } = i;
3108
- return Object.keys(n).filter((u) => we.indexOf(u) < 0).forEach((u) => {
3102
+ } = r;
3103
+ return Object.keys(n).filter((u) => Ce.indexOf(u) < 0).forEach((u) => {
3109
3104
  delete n[u];
3110
3105
  }), n;
3111
3106
  }
3112
- _extractNonMaskProps(i) {
3107
+ _extractNonMaskProps(r) {
3113
3108
  const {
3114
3109
  ...n
3115
- } = i;
3116
- return ne.forEach((u) => {
3110
+ } = r;
3111
+ return te.forEach((u) => {
3117
3112
  u !== "maxLength" && delete n[u];
3118
- }), "defaultValue" in n || (n.defaultValue = i.mask ? "" : n.value), delete n.value, n;
3113
+ }), "defaultValue" in n || (n.defaultValue = r.mask ? "" : n.value), delete n.value, n;
3119
3114
  }
3120
3115
  get maskValue() {
3121
3116
  return this.maskRef ? this.props.unmask === "typed" ? this.maskRef.typedValue : this.props.unmask ? this.maskRef.unmaskedValue : this.maskRef.value : "";
3122
3117
  }
3123
- set maskValue(i) {
3124
- this.maskRef && (i = i == null && this.props.unmask !== "typed" ? "" : i, this.props.unmask === "typed" ? this.maskRef.typedValue = i : this.props.unmask ? this.maskRef.unmaskedValue = i : this.maskRef.value = i);
3118
+ set maskValue(r) {
3119
+ this.maskRef && (r = r == null && this.props.unmask !== "typed" ? "" : r, this.props.unmask === "typed" ? this.maskRef.typedValue = r : this.props.unmask ? this.maskRef.unmaskedValue = r : this.maskRef.value = r);
3125
3120
  }
3126
- _onAccept(i) {
3127
- this.props.onAccept && this.maskRef && this.props.onAccept(this.maskValue, this.maskRef, i);
3121
+ _onAccept(r) {
3122
+ this.props.onAccept && this.maskRef && this.props.onAccept(this.maskValue, this.maskRef, r);
3128
3123
  }
3129
- _onComplete(i) {
3130
- this.props.onComplete && this.maskRef && this.props.onComplete(this.maskValue, this.maskRef, i);
3124
+ _onComplete(r) {
3125
+ this.props.onComplete && this.maskRef && this.props.onComplete(this.maskValue, this.maskRef, r);
3131
3126
  }
3132
3127
  render() {
3133
3128
  return X.createElement(a, {
@@ -3136,12 +3131,12 @@ function Re(a) {
3136
3131
  });
3137
3132
  }
3138
3133
  }, t.displayName = void 0, t.propTypes = void 0, t), s = a.displayName || a.name || "Component";
3139
- return e.displayName = "IMask(" + s + ")", e.propTypes = re, X.forwardRef((r, i) => X.createElement(e, {
3140
- ...r,
3141
- ref: i
3134
+ return e.displayName = "IMask(" + s + ")", e.propTypes = Qt, X.forwardRef((i, r) => X.createElement(e, {
3135
+ ...i,
3136
+ ref: r
3142
3137
  }));
3143
3138
  }
3144
- const Me = Re((a) => {
3139
+ const be = Ae((a) => {
3145
3140
  let {
3146
3141
  inputRef: t,
3147
3142
  ...e
@@ -3150,74 +3145,10 @@ const Me = Re((a) => {
3150
3145
  ...e,
3151
3146
  ref: t
3152
3147
  });
3153
- }), Be = (a, t) => X.createElement(Me, {
3148
+ }), Fe = (a, t) => X.createElement(be, {
3154
3149
  ...a,
3155
3150
  ref: t
3156
- }), Oe = X.forwardRef(Be), De = "_input_u23b9_1", Ve = "_section_u23b9_7", ae = {
3157
- input: De,
3158
- section: Ve
3159
- }, Pe = (a) => /* @__PURE__ */ Dt.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ Dt.createElement("path", { d: "M2.49984 2.5H17.4998C17.7209 2.5 17.9328 2.5878 18.0891 2.74408C18.2454 2.90036 18.3332 3.11232 18.3332 3.33333V16.6667C18.3332 16.8877 18.2454 17.0996 18.0891 17.2559C17.9328 17.4122 17.7209 17.5 17.4998 17.5H2.49984C2.27882 17.5 2.06686 17.4122 1.91058 17.2559C1.7543 17.0996 1.6665 16.8877 1.6665 16.6667V3.33333C1.6665 3.11232 1.7543 2.90036 1.91058 2.74408C2.06686 2.5878 2.27882 2.5 2.49984 2.5ZM16.6665 9.16667H3.33317V15.8333H16.6665V9.16667ZM16.6665 7.5V4.16667H3.33317V7.5H16.6665ZM11.6665 12.5H14.9998V14.1667H11.6665V12.5Z", fill: "currentColor", fillOpacity: 0.4, style: {
3160
- fill: "#0D1126",
3161
- fill: "color(display-p3 0.0510 0.0667 0.1490)",
3162
- fillOpacity: 0.4
3163
- } }));
3164
- var It = { exports: {} };
3165
- /*!
3166
- Copyright (c) 2018 Jed Watson.
3167
- Licensed under the MIT License (MIT), see
3168
- http://jedwatson.github.io/classnames
3169
- */
3170
- var Gt;
3171
- function Le() {
3172
- return Gt || (Gt = 1, function(a) {
3173
- (function() {
3174
- var t = {}.hasOwnProperty;
3175
- function e() {
3176
- for (var i = "", n = 0; n < arguments.length; n++) {
3177
- var u = arguments[n];
3178
- u && (i = r(i, s(u)));
3179
- }
3180
- return i;
3181
- }
3182
- function s(i) {
3183
- if (typeof i == "string" || typeof i == "number")
3184
- return i;
3185
- if (typeof i != "object")
3186
- return "";
3187
- if (Array.isArray(i))
3188
- return e.apply(null, i);
3189
- if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]"))
3190
- return i.toString();
3191
- var n = "";
3192
- for (var u in i)
3193
- t.call(i, u) && i[u] && (n = r(n, u));
3194
- return n;
3195
- }
3196
- function r(i, n) {
3197
- return n ? i ? i + " " + n : i + n : i;
3198
- }
3199
- a.exports ? (e.default = e, a.exports = e) : window.classNames = e;
3200
- })();
3201
- }(It)), It.exports;
3202
- }
3203
- var Ne = Le();
3204
- const je = /* @__PURE__ */ ee(Ne), Ue = je(ae.input, oe["caption-l-regular"]), qe = ue.withProps({
3205
- leftSection: /* @__PURE__ */ wt(Pe, {}),
3206
- component: Oe,
3207
- mask: "0000 0000 0000 0000",
3208
- placeholder: "____ ____ ____ ____",
3209
- classNames: { input: Ue, section: ae.section }
3210
- }), We = (a) => {
3211
- const t = le(a.value);
3212
- return /* @__PURE__ */ wt(
3213
- qe,
3214
- {
3215
- ...a,
3216
- rightSection: t && /* @__PURE__ */ wt(t, {})
3217
- }
3218
- );
3219
- };
3151
+ }), Te = X.forwardRef(Fe);
3220
3152
  export {
3221
- We as CardInput,
3222
- qe as CardInputBase
3153
+ Te as I
3223
3154
  };