@iccandle/reactjs-widget 0.2.41 → 0.2.43

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.
@@ -566,13 +566,13 @@ const vd = (e) => {
566
566
  ]), xe = Y.useMemo(() => l.duration || H || ho, [
567
567
  l.duration,
568
568
  H
569
- ]), we = Y.useRef(0), Re = Y.useRef(0), gt = Y.useRef(0), _e = Y.useRef(null), [pn, qt] = I.split("-"), Je = Y.useMemo(() => y.reduce((ge, Ge, We) => We >= $ ? ge : ge + Ge.height, 0), [
569
+ ]), we = Y.useRef(0), Re = Y.useRef(0), gt = Y.useRef(0), _e = Y.useRef(null), [pn, qt] = I.split("-"), Ze = Y.useMemo(() => y.reduce((ge, Be, qe) => qe >= $ ? ge : ge + Be.height, 0), [
570
570
  y,
571
571
  $
572
572
  ]), mn = rd(), Dn = l.invert || d, fn = M === "loading";
573
- Re.current = Y.useMemo(() => $ * U + Je, [
573
+ Re.current = Y.useMemo(() => $ * U + Ze, [
574
574
  $,
575
- Je
575
+ Ze
576
576
  ]), Y.useEffect(() => {
577
577
  It.current = xe;
578
578
  }, [
@@ -582,34 +582,34 @@ const vd = (e) => {
582
582
  }, []), Y.useEffect(() => {
583
583
  const ge = De.current;
584
584
  if (ge) {
585
- const Ge = ge.getBoundingClientRect().height;
586
- return xt(Ge), p((We) => [
585
+ const Be = ge.getBoundingClientRect().height;
586
+ return xt(Be), p((qe) => [
587
587
  {
588
588
  toastId: l.id,
589
- height: Ge,
589
+ height: Be,
590
590
  position: l.position
591
591
  },
592
- ...We
593
- ]), () => p((We) => We.filter((Xe) => Xe.toastId !== l.id));
592
+ ...qe
593
+ ]), () => p((qe) => qe.filter((Qe) => Qe.toastId !== l.id));
594
594
  }
595
595
  }, [
596
596
  p,
597
597
  l.id
598
598
  ]), Y.useLayoutEffect(() => {
599
599
  if (!O) return;
600
- const ge = De.current, Ge = ge.style.height;
600
+ const ge = De.current, Be = ge.style.height;
601
601
  ge.style.height = "auto";
602
- const We = ge.getBoundingClientRect().height;
603
- ge.style.height = Ge, xt(We), p((Xe) => Xe.find((ue) => ue.toastId === l.id) ? Xe.map((ue) => ue.toastId === l.id ? {
602
+ const qe = ge.getBoundingClientRect().height;
603
+ ge.style.height = Be, xt(qe), p((Qe) => Qe.find((ue) => ue.toastId === l.id) ? Qe.map((ue) => ue.toastId === l.id ? {
604
604
  ...ue,
605
- height: We
605
+ height: qe
606
606
  } : ue) : [
607
607
  {
608
608
  toastId: l.id,
609
- height: We,
609
+ height: qe,
610
610
  position: l.position
611
611
  },
612
- ...Xe
612
+ ...Qe
613
613
  ]);
614
614
  }, [
615
615
  O,
@@ -621,8 +621,8 @@ const vd = (e) => {
621
621
  l.action,
622
622
  l.cancel
623
623
  ]);
624
- const tt = Y.useCallback(() => {
625
- D(!0), Ne(Re.current), p((ge) => ge.filter((Ge) => Ge.toastId !== l.id)), setTimeout(() => {
624
+ const nt = Y.useCallback(() => {
625
+ D(!0), Ne(Re.current), p((ge) => ge.filter((Be) => Be.toastId !== l.id)), setTimeout(() => {
626
626
  k(l);
627
627
  }, yd);
628
628
  }, [
@@ -636,12 +636,12 @@ const vd = (e) => {
636
636
  let ge;
637
637
  return N || m || mn ? (() => {
638
638
  if (gt.current < we.current) {
639
- const Xe = (/* @__PURE__ */ new Date()).getTime() - we.current;
640
- It.current = It.current - Xe;
639
+ const Qe = (/* @__PURE__ */ new Date()).getTime() - we.current;
640
+ It.current = It.current - Qe;
641
641
  }
642
642
  gt.current = (/* @__PURE__ */ new Date()).getTime();
643
643
  })() : It.current !== 1 / 0 && (we.current = (/* @__PURE__ */ new Date()).getTime(), ge = setTimeout(() => {
644
- l.onAutoClose == null || l.onAutoClose.call(l, l), tt();
644
+ l.onAutoClose == null || l.onAutoClose.call(l, l), nt();
645
645
  }, It.current)), () => clearTimeout(ge);
646
646
  }, [
647
647
  N,
@@ -649,19 +649,19 @@ const vd = (e) => {
649
649
  l,
650
650
  M,
651
651
  mn,
652
- tt
652
+ nt
653
653
  ]), Y.useEffect(() => {
654
- l.delete && (tt(), l.onDismiss == null || l.onDismiss.call(l, l));
654
+ l.delete && (nt(), l.onDismiss == null || l.onDismiss.call(l, l));
655
655
  }, [
656
- tt,
656
+ nt,
657
657
  l.delete
658
658
  ]);
659
659
  function Sr() {
660
660
  var ge;
661
661
  if (_?.loading) {
662
- var Ge;
662
+ var Be;
663
663
  return /* @__PURE__ */ Y.createElement("div", {
664
- className: Gt(G?.loader, l == null || (Ge = l.classNames) == null ? void 0 : Ge.loader, "sonner-loader"),
664
+ className: Gt(G?.loader, l == null || (Be = l.classNames) == null ? void 0 : Be.loader, "sonner-loader"),
665
665
  "data-visible": M === "loading"
666
666
  }, _.loading);
667
667
  }
@@ -715,47 +715,47 @@ const vd = (e) => {
715
715
  })));
716
716
  },
717
717
  onPointerUp: () => {
718
- var ge, Ge, We;
718
+ var ge, Be, qe;
719
719
  if (Z || !B) return;
720
720
  _e.current = null;
721
- const Xe = Number(((ge = De.current) == null ? void 0 : ge.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), te = Number(((Ge = De.current) == null ? void 0 : Ge.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), ue = (/* @__PURE__ */ new Date()).getTime() - ((We = ft.current) == null ? void 0 : We.getTime()), Se = oe === "x" ? Xe : te, me = Math.abs(Se) / ue;
721
+ const Qe = Number(((ge = De.current) == null ? void 0 : ge.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), te = Number(((Be = De.current) == null ? void 0 : Be.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), ue = (/* @__PURE__ */ new Date()).getTime() - ((qe = ft.current) == null ? void 0 : qe.getTime()), Se = oe === "x" ? Qe : te, me = Math.abs(Se) / ue;
722
722
  if (Math.abs(Se) >= gd || me > 0.11) {
723
- Ne(Re.current), l.onDismiss == null || l.onDismiss.call(l, l), q(oe === "x" ? Xe > 0 ? "right" : "left" : te > 0 ? "down" : "up"), tt(), re(!0);
723
+ Ne(Re.current), l.onDismiss == null || l.onDismiss.call(l, l), q(oe === "x" ? Qe > 0 ? "right" : "left" : te > 0 ? "down" : "up"), nt(), re(!0);
724
724
  return;
725
725
  } else {
726
- var Be, je;
727
- (Be = De.current) == null || Be.style.setProperty("--swipe-amount-x", "0px"), (je = De.current) == null || je.style.setProperty("--swipe-amount-y", "0px");
726
+ var je, Ue;
727
+ (je = De.current) == null || je.style.setProperty("--swipe-amount-x", "0px"), (Ue = De.current) == null || Ue.style.setProperty("--swipe-amount-y", "0px");
728
728
  }
729
729
  J(!1), W(!1), T(null);
730
730
  },
731
731
  onPointerMove: (ge) => {
732
- var Ge, We, Xe;
733
- if (!_e.current || !B || ((Ge = window.getSelection()) == null ? void 0 : Ge.toString().length) > 0) return;
732
+ var Be, qe, Qe;
733
+ if (!_e.current || !B || ((Be = window.getSelection()) == null ? void 0 : Be.toString().length) > 0) return;
734
734
  const ue = ge.clientY - _e.current.y, Se = ge.clientX - _e.current.x;
735
735
  var me;
736
- const Be = (me = e.swipeDirections) != null ? me : bd(I);
736
+ const je = (me = e.swipeDirections) != null ? me : bd(I);
737
737
  !oe && (Math.abs(Se) > 1 || Math.abs(ue) > 1) && T(Math.abs(Se) > Math.abs(ue) ? "x" : "y");
738
- let je = {
738
+ let Ue = {
739
739
  x: 0,
740
740
  y: 0
741
741
  };
742
742
  const _t = (Pt) => 1 / (1.5 + Math.abs(Pt) / 20);
743
743
  if (oe === "y") {
744
- if (Be.includes("top") || Be.includes("bottom"))
745
- if (Be.includes("top") && ue < 0 || Be.includes("bottom") && ue > 0)
746
- je.y = ue;
744
+ if (je.includes("top") || je.includes("bottom"))
745
+ if (je.includes("top") && ue < 0 || je.includes("bottom") && ue > 0)
746
+ Ue.y = ue;
747
747
  else {
748
748
  const Pt = ue * _t(ue);
749
- je.y = Math.abs(Pt) < Math.abs(ue) ? Pt : ue;
749
+ Ue.y = Math.abs(Pt) < Math.abs(ue) ? Pt : ue;
750
750
  }
751
- } else if (oe === "x" && (Be.includes("left") || Be.includes("right")))
752
- if (Be.includes("left") && Se < 0 || Be.includes("right") && Se > 0)
753
- je.x = Se;
751
+ } else if (oe === "x" && (je.includes("left") || je.includes("right")))
752
+ if (je.includes("left") && Se < 0 || je.includes("right") && Se > 0)
753
+ Ue.x = Se;
754
754
  else {
755
755
  const Pt = Se * _t(Se);
756
- je.x = Math.abs(Pt) < Math.abs(Se) ? Pt : Se;
756
+ Ue.x = Math.abs(Pt) < Math.abs(Se) ? Pt : Se;
757
757
  }
758
- (Math.abs(je.x) > 0 || Math.abs(je.y) > 0) && J(!0), (We = De.current) == null || We.style.setProperty("--swipe-amount-x", `${je.x}px`), (Xe = De.current) == null || Xe.style.setProperty("--swipe-amount-y", `${je.y}px`);
758
+ (Math.abs(Ue.x) > 0 || Math.abs(Ue.y) > 0) && J(!0), (qe = De.current) == null || qe.style.setProperty("--swipe-amount-x", `${Ue.x}px`), (Qe = De.current) == null || Qe.style.setProperty("--swipe-amount-y", `${Ue.y}px`);
759
759
  }
760
760
  }, ce && !l.jsx && M !== "loading" ? /* @__PURE__ */ Y.createElement("button", {
761
761
  "aria-label": X,
@@ -763,7 +763,7 @@ const vd = (e) => {
763
763
  "data-close-button": !0,
764
764
  onClick: fn || !B ? () => {
765
765
  } : () => {
766
- tt(), l.onDismiss == null || l.onDismiss.call(l, l);
766
+ nt(), l.onDismiss == null || l.onDismiss.call(l, l);
767
767
  },
768
768
  className: Gt(G?.closeButton, l == null || (i = l.classNames) == null ? void 0 : i.closeButton)
769
769
  }, (Mn = _?.close) != null ? Mn : id) : null, (M || l.icon || l.promise) && l.icon !== null && (_?.[M] !== null || l.icon) ? /* @__PURE__ */ Y.createElement("div", {
@@ -783,7 +783,7 @@ const vd = (e) => {
783
783
  "data-cancel": !0,
784
784
  style: l.cancelButtonStyle || w,
785
785
  onClick: (ge) => {
786
- ki(l.cancel) && B && (l.cancel.onClick == null || l.cancel.onClick.call(l.cancel, ge), tt());
786
+ ki(l.cancel) && B && (l.cancel.onClick == null || l.cancel.onClick.call(l.cancel, ge), nt());
787
787
  },
788
788
  className: Gt(G?.cancelButton, l == null || (u = l.classNames) == null ? void 0 : u.cancelButton)
789
789
  }, l.cancel.label) : null, /* @__PURE__ */ Y.isValidElement(l.action) ? l.action : l.action && ki(l.action) ? /* @__PURE__ */ Y.createElement("button", {
@@ -791,7 +791,7 @@ const vd = (e) => {
791
791
  "data-action": !0,
792
792
  style: l.actionButtonStyle || E,
793
793
  onClick: (ge) => {
794
- ki(l.action) && (l.action.onClick == null || l.action.onClick.call(l.action, ge), !ge.defaultPrevented && tt());
794
+ ki(l.action) && (l.action.onClick == null || l.action.onClick.call(l.action, ge), !ge.defaultPrevented && nt());
795
795
  },
796
796
  className: Gt(G?.actionButton, l == null || (c = l.classNames) == null ? void 0 : c.actionButton)
797
797
  }, l.action.label) : null);
@@ -1663,7 +1663,7 @@ function Nd() {
1663
1663
  }
1664
1664
  return Ni.exports = t, Ni.exports.clsx = t, Ni.exports;
1665
1665
  }
1666
- var Fe = {}, en = {}, ko;
1666
+ var Ge = {}, en = {}, ko;
1667
1667
  function ir() {
1668
1668
  if (ko) return en;
1669
1669
  ko = 1, Object.defineProperty(en, "__esModule", {
@@ -1720,10 +1720,10 @@ function Dd() {
1720
1720
  }
1721
1721
  var Ao;
1722
1722
  function Sa() {
1723
- if (Ao) return Fe;
1724
- Ao = 1, Object.defineProperty(Fe, "__esModule", {
1723
+ if (Ao) return Ge;
1724
+ Ao = 1, Object.defineProperty(Ge, "__esModule", {
1725
1725
  value: !0
1726
- }), Fe.addClassName = g, Fe.addEvent = o, Fe.addUserSelectStyles = x, Fe.createCSSTransform = m, Fe.createSVGTransform = p, Fe.getTouch = y, Fe.getTouchIdentifier = P, Fe.getTranslation = b, Fe.innerHeight = d, Fe.innerWidth = l, Fe.matchesSelector = r, Fe.matchesSelectorAndParentsTo = a, Fe.offsetXYFromParent = f, Fe.outerHeight = u, Fe.outerWidth = c, Fe.removeClassName = C, Fe.removeEvent = s, Fe.scheduleRemoveUserSelectStyles = N;
1726
+ }), Ge.addClassName = g, Ge.addEvent = o, Ge.addUserSelectStyles = x, Ge.createCSSTransform = m, Ge.createSVGTransform = p, Ge.getTouch = y, Ge.getTouchIdentifier = P, Ge.getTranslation = b, Ge.innerHeight = d, Ge.innerWidth = l, Ge.matchesSelector = r, Ge.matchesSelectorAndParentsTo = a, Ge.offsetXYFromParent = f, Ge.outerHeight = u, Ge.outerWidth = c, Ge.removeClassName = C, Ge.removeEvent = s, Ge.scheduleRemoveUserSelectStyles = N;
1727
1727
  var e = ir(), t = n(Dd());
1728
1728
  function n(v, w) {
1729
1729
  if (typeof WeakMap == "function") var E = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap();
@@ -1857,7 +1857,7 @@ function Sa() {
1857
1857
  function C(v, w) {
1858
1858
  v.classList ? v.classList.remove(w) : v.className = v.className.replace(new RegExp(`(?:^|\\s)${w}(?!\\S)`, "g"), "");
1859
1859
  }
1860
- return Fe;
1860
+ return Ge;
1861
1861
  }
1862
1862
  var Bt = {}, No;
1863
1863
  function ll() {
@@ -3336,14 +3336,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", rp
3336
3336
  hasStandardBrowserWebWorkerEnv: ip,
3337
3337
  navigator: Xr,
3338
3338
  origin: rp
3339
- }, Symbol.toStringTag, { value: "Module" })), Ke = {
3339
+ }, Symbol.toStringTag, { value: "Module" })), Xe = {
3340
3340
  ...ap,
3341
3341
  ...tp
3342
3342
  };
3343
3343
  function op(e, t) {
3344
- return lr(e, new Ke.classes.URLSearchParams(), {
3344
+ return lr(e, new Xe.classes.URLSearchParams(), {
3345
3345
  visitor: function(n, i, r, a) {
3346
- return Ke.isNode && j.isBuffer(n) ? (this.append(i, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
3346
+ return Xe.isNode && j.isBuffer(n) ? (this.append(i, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
3347
3347
  },
3348
3348
  ...t
3349
3349
  });
@@ -3438,8 +3438,8 @@ const bi = {
3438
3438
  maxContentLength: -1,
3439
3439
  maxBodyLength: -1,
3440
3440
  env: {
3441
- FormData: Ke.classes.FormData,
3442
- Blob: Ke.classes.Blob
3441
+ FormData: Xe.classes.FormData,
3442
+ Blob: Xe.classes.Blob
3443
3443
  },
3444
3444
  validateStatus: function(t) {
3445
3445
  return t >= 200 && t < 300;
@@ -3747,10 +3747,10 @@ const zi = (e, t, n = 3) => {
3747
3747
  total: e,
3748
3748
  loaded: i
3749
3749
  }), t[1]];
3750
- }, Uo = (e) => (...t) => j.asap(() => e(...t)), vp = Ke.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, Ke.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
3751
- new URL(Ke.origin),
3752
- Ke.navigator && /(msie|trident)/i.test(Ke.navigator.userAgent)
3753
- ) : () => !0, wp = Ke.hasStandardBrowserEnv ? (
3750
+ }, Uo = (e) => (...t) => j.asap(() => e(...t)), vp = Xe.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, Xe.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
3751
+ new URL(Xe.origin),
3752
+ Xe.navigator && /(msie|trident)/i.test(Xe.navigator.userAgent)
3753
+ ) : () => !0, wp = Xe.hasStandardBrowserEnv ? (
3754
3754
  // Standard browser envs support document.cookie
3755
3755
  {
3756
3756
  write(e, t, n, i, r, a, o) {
@@ -3866,7 +3866,7 @@ const Ml = (e) => {
3866
3866
  "Authorization",
3867
3867
  "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
3868
3868
  ), j.isFormData(n)) {
3869
- if (Ke.hasStandardBrowserEnv || Ke.hasStandardBrowserWebWorkerEnv)
3869
+ if (Xe.hasStandardBrowserEnv || Xe.hasStandardBrowserWebWorkerEnv)
3870
3870
  o.setContentType(void 0);
3871
3871
  else if (j.isFunction(n.getHeaders)) {
3872
3872
  const u = n.getHeaders(), c = ["content-type", "content-length"];
@@ -3875,7 +3875,7 @@ const Ml = (e) => {
3875
3875
  });
3876
3876
  }
3877
3877
  }
3878
- if (Ke.hasStandardBrowserEnv && (i && j.isFunction(i) && (i = i(t)), i || i !== !1 && vp(t.url))) {
3878
+ if (Xe.hasStandardBrowserEnv && (i && j.isFunction(i) && (i = i(t)), i || i !== !1 && vp(t.url))) {
3879
3879
  const u = r && a && wp.read(a);
3880
3880
  u && o.set(r, u);
3881
3881
  }
@@ -3932,7 +3932,7 @@ const Ml = (e) => {
3932
3932
  y && (i(!N || N.type ? new vi(null, e, y) : N), y.abort(), y = null);
3933
3933
  }, r.cancelToken && r.cancelToken.subscribe(d), r.signal && (r.signal.aborted ? d() : r.signal.addEventListener("abort", d)));
3934
3934
  const x = gp(r.url);
3935
- if (x && Ke.protocols.indexOf(x) === -1) {
3935
+ if (x && Xe.protocols.indexOf(x) === -1) {
3936
3936
  i(new he("Unsupported protocol " + x + ":", he.ERR_BAD_REQUEST, e));
3937
3937
  return;
3938
3938
  }
@@ -4039,7 +4039,7 @@ const Ml = (e) => {
4039
4039
  return !1;
4040
4040
  const s = r && Ri(Wo), u = r && (typeof qo == "function" ? /* @__PURE__ */ ((p) => (b) => p.encode(b))(new qo()) : async (p) => new Uint8Array(await new n(p).arrayBuffer())), c = a && s && _o(() => {
4041
4041
  let p = !1;
4042
- const b = new n(Ke.origin, {
4042
+ const b = new n(Xe.origin, {
4043
4043
  body: new Wo(),
4044
4044
  method: "POST",
4045
4045
  get duplex() {
@@ -4064,7 +4064,7 @@ const Ml = (e) => {
4064
4064
  if (j.isBlob(p))
4065
4065
  return p.size;
4066
4066
  if (j.isSpecCompliantForm(p))
4067
- return (await new n(Ke.origin, {
4067
+ return (await new n(Xe.origin, {
4068
4068
  method: "POST",
4069
4069
  body: p
4070
4070
  }).arrayBuffer()).byteLength;
@@ -5190,7 +5190,7 @@ const Hl = Yu({
5190
5190
  function ct() {
5191
5191
  return Wu(Hl);
5192
5192
  }
5193
- const gn = { min: 10, max: 50, custom: [60, 70, 80, 90, 100] }, $e = [
5193
+ const gn = { min: 10, max: 50, custom: [60, 70, 80, 90, 100] }, et = [
5194
5194
  {
5195
5195
  ticker: "EUR_JPY",
5196
5196
  display_name: "EURJPY",
@@ -5721,7 +5721,7 @@ function eb({
5721
5721
  types: D.symbolTypes || []
5722
5722
  };
5723
5723
  else if (!D.isAllSelected) {
5724
- const J = $e.find(
5724
+ const J = et.find(
5725
5725
  (ye) => ye.ticker === n
5726
5726
  )?.type;
5727
5727
  Z.filter = {
@@ -6339,7 +6339,7 @@ const rb = (e, t) => {
6339
6339
  return r(u, d), d;
6340
6340
  };
6341
6341
  return a = o, (...u) => a(Sb(...u));
6342
- }, kb = [], Ye = (e) => {
6342
+ }, kb = [], We = (e) => {
6343
6343
  const t = (n) => n[e] || kb;
6344
6344
  return t.isThemeGetter = !0, t;
6345
6345
  }, nc = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ic = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Cb = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Ab = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Nb = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Db = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Rb = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Eb = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, nn = (e) => Cb.test(e), ve = (e) => !!e && !Number.isNaN(Number(e)), rn = (e) => !!e && Number.isInteger(Number(e)), Gr = (e) => e.endsWith("%") && ve(e.slice(0, -1)), Kt = (e) => Ab.test(e), rc = () => !0, Mb = (e) => (
@@ -6354,7 +6354,7 @@ const rb = (e, t) => {
6354
6354
  const i = ic.exec(e);
6355
6355
  return i ? i[1] ? t(i[1]) : n : !1;
6356
6356
  }, ac = (e) => e === "position" || e === "percentage", oc = (e) => e === "image" || e === "url", sc = (e) => e === "length" || e === "size" || e === "bg-size", lc = (e) => e === "length", Wb = (e) => e === "number", cc = (e) => e === "family-name", uc = (e) => e === "number" || e === "weight", dc = (e) => e === "shadow", qb = () => {
6357
- const e = Ye("color"), t = Ye("font"), n = Ye("text"), i = Ye("font-weight"), r = Ye("tracking"), a = Ye("leading"), o = Ye("breakpoint"), s = Ye("container"), u = Ye("spacing"), c = Ye("radius"), d = Ye("shadow"), l = Ye("inset-shadow"), f = Ye("text-shadow"), m = Ye("drop-shadow"), p = Ye("blur"), b = Ye("perspective"), y = Ye("aspect"), P = Ye("ease"), x = Ye("animate"), N = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], k = () => [
6357
+ const e = We("color"), t = We("font"), n = We("text"), i = We("font-weight"), r = We("tracking"), a = We("leading"), o = We("breakpoint"), s = We("container"), u = We("spacing"), c = We("radius"), d = We("shadow"), l = We("inset-shadow"), f = We("text-shadow"), m = We("drop-shadow"), p = We("blur"), b = We("perspective"), y = We("aspect"), P = We("ease"), x = We("animate"), N = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], k = () => [
6358
6358
  "center",
6359
6359
  "top",
6360
6360
  "bottom",
@@ -9033,30 +9033,30 @@ const qn = (e) => e === "1D" || e === "D" || e === "1440", an = (e) => {
9033
9033
  }, Kb = (e) => e > 1e11 ? Math.floor(e / 1e3) : e;
9034
9034
  var wi = (e) => e.type === "checkbox", vn = (e) => e instanceof Date, rt = (e) => e == null;
9035
9035
  const hc = (e) => typeof e == "object";
9036
- var He = (e) => !rt(e) && !Array.isArray(e) && hc(e) && !vn(e), pc = (e) => He(e) && e.target ? wi(e.target) ? e.target.checked : e.target.value : e, Jb = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, mc = (e, t) => e.has(Jb(t)), Xb = (e) => {
9036
+ var Ye = (e) => !rt(e) && !Array.isArray(e) && hc(e) && !vn(e), pc = (e) => Ye(e) && e.target ? wi(e.target) ? e.target.checked : e.target.value : e, Jb = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, mc = (e, t) => e.has(Jb(t)), Xb = (e) => {
9037
9037
  const t = e.constructor && e.constructor.prototype;
9038
- return He(t) && t.hasOwnProperty("isPrototypeOf");
9038
+ return Ye(t) && t.hasOwnProperty("isPrototypeOf");
9039
9039
  }, Ia = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
9040
- function Ue(e) {
9040
+ function ze(e) {
9041
9041
  if (e instanceof Date)
9042
9042
  return new Date(e);
9043
9043
  const t = typeof FileList < "u" && e instanceof FileList;
9044
9044
  if (Ia && (e instanceof Blob || t))
9045
9045
  return e;
9046
9046
  const n = Array.isArray(e);
9047
- if (!n && !(He(e) && Xb(e)))
9047
+ if (!n && !(Ye(e) && Xb(e)))
9048
9048
  return e;
9049
9049
  const i = n ? [] : Object.create(Object.getPrototypeOf(e));
9050
9050
  for (const r in e)
9051
- Object.prototype.hasOwnProperty.call(e, r) && (i[r] = Ue(e[r]));
9051
+ Object.prototype.hasOwnProperty.call(e, r) && (i[r] = ze(e[r]));
9052
9052
  return i;
9053
9053
  }
9054
9054
  var dr = (e) => /^\w*$/.test(e), Ee = (e) => e === void 0, La = (e) => Array.isArray(e) ? e.filter(Boolean) : [], Fa = (e) => La(e.replace(/["|']|\]/g, "").split(/\.|\[/)), ie = (e, t, n) => {
9055
- if (!t || !He(e))
9055
+ if (!t || !Ye(e))
9056
9056
  return n;
9057
9057
  const i = (dr(t) ? [t] : Fa(t)).reduce((r, a) => rt(r) ? r : r[a], e);
9058
9058
  return Ee(i) || i === e ? Ee(e[t]) ? n : e[t] : i;
9059
- }, ut = (e) => typeof e == "boolean", et = (e) => typeof e == "function", Ae = (e, t, n) => {
9059
+ }, ut = (e) => typeof e == "boolean", tt = (e) => typeof e == "function", Ae = (e, t, n) => {
9060
9060
  let i = -1;
9061
9061
  const r = dr(t) ? [t] : Fa(t), a = r.length, o = a - 1;
9062
9062
  for (; ++i < a; ) {
@@ -9064,7 +9064,7 @@ var dr = (e) => /^\w*$/.test(e), Ee = (e) => e === void 0, La = (e) => Array.isA
9064
9064
  let u = n;
9065
9065
  if (i !== o) {
9066
9066
  const c = e[s];
9067
- u = He(c) || Array.isArray(c) ? c : isNaN(+r[i + 1]) ? {} : [];
9067
+ u = Ye(c) || Array.isArray(c) ? c : isNaN(+r[i + 1]) ? {} : [];
9068
9068
  }
9069
9069
  if (s === "__proto__" || s === "constructor" || s === "prototype")
9070
9070
  return;
@@ -9149,7 +9149,7 @@ function At(e, t, n = /* @__PURE__ */ new WeakSet()) {
9149
9149
  return !1;
9150
9150
  if (a !== "ref") {
9151
9151
  const s = t[a];
9152
- if (vn(o) && vn(s) || He(o) && He(s) || Array.isArray(o) && Array.isArray(s) ? !At(o, s, n) : !Object.is(o, s))
9152
+ if (vn(o) && vn(s) || Ye(o) && Ye(s) || Array.isArray(o) && Array.isArray(s) ? !At(o, s, n) : !Object.is(o, s))
9153
9153
  return !1;
9154
9154
  }
9155
9155
  }
@@ -9244,10 +9244,10 @@ function Qb(e) {
9244
9244
  }), [n, r._formValues]), x = Y.useCallback((k) => {
9245
9245
  const g = ie(r._fields, n);
9246
9246
  g && g._f && k && (g._f.ref = {
9247
- focus: () => et(k.focus) && k.focus(),
9248
- select: () => et(k.select) && k.select(),
9249
- setCustomValidity: (C) => et(k.setCustomValidity) && k.setCustomValidity(C),
9250
- reportValidity: () => et(k.reportValidity) && k.reportValidity()
9247
+ focus: () => tt(k.focus) && k.focus(),
9248
+ select: () => tt(k.select) && k.select(),
9249
+ setCustomValidity: (C) => tt(k.setCustomValidity) && k.setCustomValidity(C),
9250
+ reportValidity: () => tt(k.reportValidity) && k.reportValidity()
9251
9251
  });
9252
9252
  }, [r._fields, n]), N = Y.useMemo(() => ({
9253
9253
  name: n,
@@ -9268,7 +9268,7 @@ function Qb(e) {
9268
9268
  E && E._f && (E._f.mount = w);
9269
9269
  };
9270
9270
  if (C(n, !0), k) {
9271
- const v = Ue(ie(r._options.defaultValues, n, f.current.defaultValue));
9271
+ const v = ze(ie(r._options.defaultValues, n, f.current.defaultValue));
9272
9272
  Ae(r._defaultValues, n, v), Ee(ie(r._formValues, n)) && Ae(r._formValues, n, v);
9273
9273
  }
9274
9274
  return !u && r.register(n), m.current = n, () => {
@@ -9360,14 +9360,14 @@ function yc(e, t) {
9360
9360
  for (const i in e)
9361
9361
  if (e.hasOwnProperty(i)) {
9362
9362
  const r = e[i], a = t[i];
9363
- if (r && He(r) && a) {
9363
+ if (r && Ye(r) && a) {
9364
9364
  const o = yc(r, a);
9365
- He(o) && (n[i] = o);
9365
+ Ye(o) && (n[i] = o);
9366
9366
  } else e[i] && (n[i] = a);
9367
9367
  }
9368
9368
  return n;
9369
9369
  }
9370
- var Qe = (e) => He(e) && !Object.keys(e).length, Ua = (e) => e.type === "file", Ki = (e) => {
9370
+ var $e = (e) => Ye(e) && !Object.keys(e).length, Ua = (e) => e.type === "file", Ki = (e) => {
9371
9371
  if (!Ia)
9372
9372
  return !1;
9373
9373
  const t = e ? e.ownerDocument : 0;
@@ -9386,18 +9386,18 @@ function iv(e) {
9386
9386
  return !1;
9387
9387
  return !0;
9388
9388
  }
9389
- function ze(e, t) {
9389
+ function He(e, t) {
9390
9390
  const n = Array.isArray(t) ? t : dr(t) ? [t] : Fa(t), i = n.length === 1 ? e : nv(e, n), r = n.length - 1, a = n[r];
9391
- return i && delete i[a], r !== 0 && (He(i) && Qe(i) || Array.isArray(i) && iv(i)) && ze(e, n.slice(0, -1)), e;
9391
+ return i && delete i[a], r !== 0 && (Ye(i) && $e(i) || Array.isArray(i) && iv(i)) && He(e, n.slice(0, -1)), e;
9392
9392
  }
9393
9393
  var rv = (e) => {
9394
9394
  for (const t in e)
9395
- if (et(e[t]))
9395
+ if (tt(e[t]))
9396
9396
  return !0;
9397
9397
  return !1;
9398
9398
  };
9399
9399
  function vc(e) {
9400
- return Array.isArray(e) || He(e) && !rv(e);
9400
+ return Array.isArray(e) || Ye(e) && !rv(e);
9401
9401
  }
9402
9402
  function ia(e, t = {}) {
9403
9403
  for (const n in e) {
@@ -9460,7 +9460,7 @@ var av = (e, t, n, i) => {
9460
9460
  fields: r,
9461
9461
  shouldUseNativeValidation: i
9462
9462
  };
9463
- }, Ji = (e) => e instanceof RegExp, ei = (e) => Ee(e) ? e : Ji(e) ? e.source : He(e) ? Ji(e.value) ? e.value.source : e.value : e, fs = (e) => ({
9463
+ }, Ji = (e) => e instanceof RegExp, ei = (e) => Ee(e) ? e : Ji(e) ? e.source : Ye(e) ? Ji(e.value) ? e.value.source : e.value : e, fs = (e) => ({
9464
9464
  isOnSubmit: !e || e === Ct.onSubmit,
9465
9465
  isOnBlur: e === Ct.onBlur,
9466
9466
  isOnChange: e === Ct.onChange,
@@ -9468,7 +9468,7 @@ var av = (e, t, n, i) => {
9468
9468
  isOnTouch: e === Ct.onTouched
9469
9469
  });
9470
9470
  const gs = "AsyncFunction";
9471
- var ov = (e) => !!e && !!e.validate && !!(et(e.validate) && e.validate.constructor.name === gs || He(e.validate) && Object.values(e.validate).find((t) => t.constructor.name === gs)), sv = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), ys = (e, t, n) => !n && (t.watchAll || t.watch.has(e) || [...t.watch].some((i) => e.startsWith(i) && /^\.\w+/.test(e.slice(i.length))));
9471
+ var ov = (e) => !!e && !!e.validate && !!(tt(e.validate) && e.validate.constructor.name === gs || Ye(e.validate) && Object.values(e.validate).find((t) => t.constructor.name === gs)), sv = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), ys = (e, t, n) => !n && (t.watchAll || t.watch.has(e) || [...t.watch].some((i) => e.startsWith(i) && /^\.\w+/.test(e.slice(i.length))));
9472
9472
  const ai = (e, t, n, i) => {
9473
9473
  for (const r of n || Object.keys(e)) {
9474
9474
  const a = ie(e, r);
@@ -9481,7 +9481,7 @@ const ai = (e, t, n, i) => {
9481
9481
  return !0;
9482
9482
  if (ai(s, t))
9483
9483
  break;
9484
- } else if (He(s) && ai(s, t))
9484
+ } else if (Ye(s) && ai(s, t))
9485
9485
  break;
9486
9486
  }
9487
9487
  }
@@ -9517,8 +9517,8 @@ function bs(e, t, n) {
9517
9517
  var lv = (e, t, n, i) => {
9518
9518
  n(e);
9519
9519
  const { name: r, ...a } = e;
9520
- return Qe(a) || Object.keys(a).length >= Object.keys(t).length || Object.keys(a).find((o) => t[o] === (!i || Ct.all));
9521
- }, cv = (e, t, n) => !e || !t || e === t || ri(e).some((i) => i && (n ? i === t : i.startsWith(t) || t.startsWith(i))), uv = (e, t, n, i, r) => r.isOnAll ? !1 : !n && r.isOnTouch ? !(t || e) : (n ? i.isOnBlur : r.isOnBlur) ? !e : (n ? i.isOnChange : r.isOnChange) ? e : !0, dv = (e, t) => !La(ie(e, t)).length && ze(e, t), hv = (e, t, n) => {
9520
+ return $e(a) || Object.keys(a).length >= Object.keys(t).length || Object.keys(a).find((o) => t[o] === (!i || Ct.all));
9521
+ }, cv = (e, t, n) => !e || !t || e === t || ri(e).some((i) => i && (n ? i === t : i.startsWith(t) || t.startsWith(i))), uv = (e, t, n, i, r) => r.isOnAll ? !1 : !n && r.isOnTouch ? !(t || e) : (n ? i.isOnBlur : r.isOnBlur) ? !e : (n ? i.isOnChange : r.isOnChange) ? e : !0, dv = (e, t) => !La(ie(e, t)).length && He(e, t), hv = (e, t, n) => {
9522
9522
  const i = ri(ie(e, n));
9523
9523
  return Ae(i, "root", t[n]), Ae(e, n, i), e;
9524
9524
  };
@@ -9530,7 +9530,7 @@ function vs(e, t, n = "validate") {
9530
9530
  ref: t
9531
9531
  };
9532
9532
  }
9533
- var Ln = (e) => He(e) && !Ji(e) ? e : {
9533
+ var Ln = (e) => Ye(e) && !Ji(e) ? e : {
9534
9534
  value: e,
9535
9535
  message: ""
9536
9536
  }, ws = async (e, t, n, i, r, a) => {
@@ -9587,17 +9587,17 @@ var Ln = (e) => He(e) && !Ji(e) ? e : {
9587
9587
  return k(I), g;
9588
9588
  }
9589
9589
  if (p) {
9590
- if (et(p)) {
9590
+ if (tt(p)) {
9591
9591
  const H = await p(x, n), I = vs(H, N);
9592
9592
  if (I && (g[b] = {
9593
9593
  ...I,
9594
9594
  ...V(Jt.validate, I.message)
9595
9595
  }, !i))
9596
9596
  return k(I.message), g;
9597
- } else if (He(p)) {
9597
+ } else if (Ye(p)) {
9598
9598
  let H = {};
9599
9599
  for (const I in p) {
9600
- if (!Qe(H) && !i)
9600
+ if (!$e(H) && !i)
9601
9601
  break;
9602
9602
  const U = vs(await p[I](x, n), N, I);
9603
9603
  U && (H = {
@@ -9605,7 +9605,7 @@ var Ln = (e) => He(e) && !Ji(e) ? e : {
9605
9605
  ...V(I, U.message)
9606
9606
  }, k(U.message), i && (g[b] = H));
9607
9607
  }
9608
- if (!Qe(H) && (g[b] = {
9608
+ if (!$e(H) && (g[b] = {
9609
9609
  ref: N,
9610
9610
  ...H
9611
9611
  }, !i))
@@ -9627,7 +9627,7 @@ function mv(e = {}) {
9627
9627
  submitCount: 0,
9628
9628
  isDirty: !1,
9629
9629
  isReady: !1,
9630
- isLoading: et(t.defaultValues),
9630
+ isLoading: tt(t.defaultValues),
9631
9631
  isValidating: !1,
9632
9632
  isSubmitted: !1,
9633
9633
  isSubmitting: !1,
@@ -9638,7 +9638,7 @@ function mv(e = {}) {
9638
9638
  validatingFields: {},
9639
9639
  errors: t.errors || {},
9640
9640
  disabled: t.disabled || !1
9641
- }, i = {}, r = He(t.defaultValues) || He(t.values) ? Ue(t.defaultValues || t.values) || {} : {}, a = t.shouldUnregister ? {} : Ue(r), o = {
9641
+ }, i = {}, r = Ye(t.defaultValues) || Ye(t.values) ? ze(t.defaultValues || t.values) || {} : {}, a = t.shouldUnregister ? {} : ze(r), o = {
9642
9642
  action: !1,
9643
9643
  mount: !1,
9644
9644
  watch: !1,
@@ -9672,16 +9672,16 @@ function mv(e = {}) {
9672
9672
  }, y = async (A) => {
9673
9673
  if (!o.keepIsValid && !t.disabled && (l.isValid || f.isValid || A)) {
9674
9674
  let M;
9675
- t.resolver ? (M = Qe((await w()).errors), P()) : M = await V(i, !0), M !== n.isValid && m.state.next({
9675
+ t.resolver ? (M = $e((await w()).errors), P()) : M = await V(i, !0), M !== n.isValid && m.state.next({
9676
9676
  isValid: M
9677
9677
  });
9678
9678
  }
9679
9679
  }, P = (A, M) => {
9680
9680
  !t.disabled && (l.isValidating || l.validatingFields || f.isValidating || f.validatingFields) && ((A || Array.from(s.mount)).forEach((B) => {
9681
- B && (M ? Ae(n.validatingFields, B, M) : ze(n.validatingFields, B));
9681
+ B && (M ? Ae(n.validatingFields, B, M) : He(n.validatingFields, B));
9682
9682
  }), m.state.next({
9683
9683
  validatingFields: n.validatingFields,
9684
- isValidating: !Qe(n.validatingFields)
9684
+ isValidating: !$e(n.validatingFields)
9685
9685
  }));
9686
9686
  }, x = (A, M = [], B, ne, ee = !0, $ = !0) => {
9687
9687
  if (ne && B && !t.disabled) {
@@ -9730,7 +9730,7 @@ function mv(e = {}) {
9730
9730
  if (!B || ne) {
9731
9731
  (l.isDirty || f.isDirty) && (ce = n.isDirty, n.isDirty = xe.isDirty = H(), $ = ce !== xe.isDirty);
9732
9732
  const we = At(ie(r, A), M);
9733
- ce = !!ie(n.dirtyFields, A), we ? ze(n.dirtyFields, A) : Ae(n.dirtyFields, A, !0), xe.dirtyFields = n.dirtyFields, $ = $ || (l.dirtyFields || f.dirtyFields) && ce !== !we;
9733
+ ce = !!ie(n.dirtyFields, A), we ? He(n.dirtyFields, A) : Ae(n.dirtyFields, A, !0), xe.dirtyFields = n.dirtyFields, $ = $ || (l.dirtyFields || f.dirtyFields) && ce !== !we;
9734
9734
  }
9735
9735
  if (B) {
9736
9736
  const we = ie(n.touchedFields, A);
@@ -9741,7 +9741,7 @@ function mv(e = {}) {
9741
9741
  return $ ? xe : {};
9742
9742
  }, v = (A, M, B, ne) => {
9743
9743
  const ee = ie(n.errors, A), $ = (l.isValid || f.isValid) && ut(M) && n.isValid !== M;
9744
- if (t.delayError && B ? (u = b(() => N(A, B)), u(t.delayError)) : (clearTimeout(c), u = null, B ? Ae(n.errors, A, B) : ze(n.errors, A)), (B ? !At(ee, B) : ee) || !Qe(ne) || $) {
9744
+ if (t.delayError && B ? (u = b(() => N(A, B)), u(t.delayError)) : (clearTimeout(c), u = null, B ? Ae(n.errors, A, B) : He(n.errors, A)), (B ? !At(ee, B) : ee) || !$e(ne) || $) {
9745
9745
  const ce = {
9746
9746
  ...ne,
9747
9747
  ...$ && ut(M) ? { isValid: M } : {},
@@ -9758,7 +9758,7 @@ function mv(e = {}) {
9758
9758
  if (P(A), A)
9759
9759
  for (const B of A) {
9760
9760
  const ne = ie(M, B);
9761
- ne ? Ae(n.errors, B, ne) : ze(n.errors, B);
9761
+ ne ? Ae(n.errors, B, ne) : He(n.errors, B);
9762
9762
  }
9763
9763
  else
9764
9764
  n.errors = M;
@@ -9776,9 +9776,9 @@ function mv(e = {}) {
9776
9776
  const Re = await ws(ee, s.disabled, a, p, t.shouldUseNativeValidation && !M, xe);
9777
9777
  if (we && l.validatingFields && P([$.name]), Re[$.name] && (B.valid = !1, M || e.shouldUseNativeValidation))
9778
9778
  break;
9779
- !M && (ie(Re, $.name) ? xe ? hv(n.errors, Re, $.name) : Ae(n.errors, $.name, Re[$.name]) : ze(n.errors, $.name));
9779
+ !M && (ie(Re, $.name) ? xe ? hv(n.errors, Re, $.name) : Ae(n.errors, $.name, Re[$.name]) : He(n.errors, $.name));
9780
9780
  }
9781
- !Qe(ce) && await V(ce, M, B);
9781
+ !$e(ce) && await V(ce, M, B);
9782
9782
  }
9783
9783
  }
9784
9784
  return B.valid;
@@ -9799,7 +9799,7 @@ function mv(e = {}) {
9799
9799
  (!ce.defaultChecked || !ce.disabled) && (Array.isArray(ee) ? ce.checked = !!ee.find((xe) => xe === ce.value) : ce.checked = ee === ce.value || !!ee);
9800
9800
  }) : $.refs.forEach((ce) => ce.checked = ce.value === ee) : Ua($.ref) ? $.ref.value = "" : ($.ref.value = ee, $.ref.type || m.state.next({
9801
9801
  name: A,
9802
- values: Ue(a)
9802
+ values: ze(a)
9803
9803
  })));
9804
9804
  }
9805
9805
  (B.shouldDirty || B.shouldTouch) && C(A, ee, B.shouldTouch, B.shouldDirty, !0), B.shouldValidate && T(A);
@@ -9808,13 +9808,13 @@ function mv(e = {}) {
9808
9808
  if (!M.hasOwnProperty(ne))
9809
9809
  return;
9810
9810
  const ee = M[ne], $ = A + "." + ne, ce = ie(i, $);
9811
- (s.array.has(A) || He(ee) || ce && !ce._f) && !vn(ee) ? G($, ee, B) : Q($, ee, B);
9811
+ (s.array.has(A) || Ye(ee) || ce && !ce._f) && !vn(ee) ? G($, ee, B) : Q($, ee, B);
9812
9812
  }
9813
9813
  }, _ = (A, M, B = {}) => {
9814
- const ne = ie(i, A), ee = s.array.has(A), $ = Ue(M);
9814
+ const ne = ie(i, A), ee = s.array.has(A), $ = ze(M);
9815
9815
  Ae(a, A, $), ee ? (m.array.next({
9816
9816
  name: A,
9817
- values: Ue(a)
9817
+ values: ze(a)
9818
9818
  }), (l.isDirty || l.dirtyFields || f.isDirty || f.dirtyFields) && B.shouldDirty && m.state.next({
9819
9819
  name: A,
9820
9820
  dirtyFields: Gn(r, a),
@@ -9822,10 +9822,10 @@ function mv(e = {}) {
9822
9822
  })) : ne && !ne._f && !rt($) ? G(A, $, B) : Q(A, $, B), ys(A, s) ? m.state.next({
9823
9823
  ...n,
9824
9824
  name: A,
9825
- values: Ue(a)
9825
+ values: ze(a)
9826
9826
  }) : m.state.next({
9827
9827
  name: o.mount ? A : void 0,
9828
- values: Ue(a)
9828
+ values: ze(a)
9829
9829
  });
9830
9830
  }, X = async (A) => {
9831
9831
  o.mount = !0;
@@ -9838,22 +9838,22 @@ function mv(e = {}) {
9838
9838
  let we, Re;
9839
9839
  const gt = M.type ? ms(ee._f) : pc(A), _e = A.type === Vi.BLUR || A.type === Vi.FOCUS_OUT, pn = !sv(ee._f) && !t.resolver && !ie(n.errors, B) && !ee._f.deps || uv(_e, ie(n.touchedFields, B), n.isSubmitted, xe, ce), qt = ys(B, s, _e);
9840
9840
  Ae(a, B, gt), _e ? (!M || !M.readOnly) && (ee._f.onBlur && ee._f.onBlur(A), u && u(0)) : ee._f.onChange && ee._f.onChange(A);
9841
- const Je = C(B, gt, _e), mn = !Qe(Je) || qt;
9841
+ const Ze = C(B, gt, _e), mn = !$e(Ze) || qt;
9842
9842
  if (!_e && m.state.next({
9843
9843
  name: B,
9844
9844
  type: A.type,
9845
- values: Ue(a)
9845
+ values: ze(a)
9846
9846
  }), pn)
9847
- return (l.isValid || f.isValid) && (t.mode === "onBlur" ? _e && y() : _e || y()), mn && m.state.next({ name: B, ...qt ? {} : Je });
9847
+ return (l.isValid || f.isValid) && (t.mode === "onBlur" ? _e && y() : _e || y()), mn && m.state.next({ name: B, ...qt ? {} : Ze });
9848
9848
  if (!_e && qt && m.state.next({ ...n }), t.resolver) {
9849
9849
  const { errors: Dn } = await w([B]);
9850
9850
  if (P([B]), $(gt), ne) {
9851
- const fn = bs(n.errors, i, B), tt = bs(Dn, i, fn.name || B);
9852
- we = tt.error, B = tt.name, Re = Qe(Dn);
9851
+ const fn = bs(n.errors, i, B), nt = bs(Dn, i, fn.name || B);
9852
+ we = nt.error, B = nt.name, Re = $e(Dn);
9853
9853
  }
9854
9854
  } else
9855
9855
  P([B], !0), we = (await ws(ee, s.disabled, a, p, t.shouldUseNativeValidation))[B], P([B]), $(gt), ne && (we ? Re = !1 : (l.isValid || f.isValid) && (Re = await V(i, !0)));
9856
- ne && (ee._f.deps && (!Array.isArray(ee._f.deps) || ee._f.deps.length > 0) && T(ee._f.deps), v(B, Re, we, Je));
9856
+ ne && (ee._f.deps && (!Array.isArray(ee._f.deps) || ee._f.deps.length > 0) && T(ee._f.deps), v(B, Re, we, Ze));
9857
9857
  }
9858
9858
  }, oe = (A, M) => {
9859
9859
  if (ie(n.errors, M) && A.focus)
@@ -9863,7 +9863,7 @@ function mv(e = {}) {
9863
9863
  const ee = ri(A);
9864
9864
  if (t.resolver) {
9865
9865
  const $ = await E(Ee(A) ? A : ee);
9866
- B = Qe($), ne = A ? !ee.some((ce) => ie($, ce)) : B;
9866
+ B = $e($), ne = A ? !ee.some((ce) => ie($, ce)) : B;
9867
9867
  } else A ? (ne = (await Promise.all(ee.map(async ($) => {
9868
9868
  const ce = ie(i, $);
9869
9869
  return await V(ce && ce._f ? { [$]: ce } : ce);
@@ -9886,7 +9886,7 @@ function mv(e = {}) {
9886
9886
  isTouched: !!ie((M || n).touchedFields, A)
9887
9887
  }), O = (A) => {
9888
9888
  const M = A ? ri(A) : void 0;
9889
- M?.forEach((B) => ze(n.errors, B)), M ? M.forEach((B) => {
9889
+ M?.forEach((B) => He(n.errors, B)), M ? M.forEach((B) => {
9890
9890
  m.state.next({
9891
9891
  name: B,
9892
9892
  errors: n.errors
@@ -9905,7 +9905,7 @@ function mv(e = {}) {
9905
9905
  errors: n.errors,
9906
9906
  isValid: !1
9907
9907
  }), B && B.shouldFocus && ne && ne.focus && ne.focus();
9908
- }, z = (A, M) => et(A) ? m.state.subscribe({
9908
+ }, z = (A, M) => tt(A) ? m.state.subscribe({
9909
9909
  next: (B) => "values" in B && A(I(void 0, M), B)
9910
9910
  }) : I(A, M, !0), D = (A) => m.state.subscribe({
9911
9911
  next: (M) => {
@@ -9927,9 +9927,9 @@ function mv(e = {}) {
9927
9927
  }
9928
9928
  })), W = (A, M = {}) => {
9929
9929
  for (const B of A ? ri(A) : s.mount)
9930
- s.mount.delete(B), s.array.delete(B), M.keepValue || (ze(i, B), ze(a, B)), !M.keepError && ze(n.errors, B), !M.keepDirty && ze(n.dirtyFields, B), !M.keepTouched && ze(n.touchedFields, B), !M.keepIsValidating && ze(n.validatingFields, B), !t.shouldUnregister && !M.keepDefaultValue && ze(r, B);
9930
+ s.mount.delete(B), s.array.delete(B), M.keepValue || (He(i, B), He(a, B)), !M.keepError && He(n.errors, B), !M.keepDirty && He(n.dirtyFields, B), !M.keepTouched && He(n.touchedFields, B), !M.keepIsValidating && He(n.validatingFields, B), !t.shouldUnregister && !M.keepDefaultValue && He(r, B);
9931
9931
  m.state.next({
9932
- values: Ue(a)
9932
+ values: ze(a)
9933
9933
  }), m.state.next({
9934
9934
  ...n,
9935
9935
  ...M.keepDirty ? { isDirty: H() } : {}
@@ -9999,18 +9999,18 @@ function mv(e = {}) {
9999
9999
  }, ye = (A, M) => async (B) => {
10000
10000
  let ne;
10001
10001
  B && (B.preventDefault && B.preventDefault(), B.persist && B.persist());
10002
- let ee = Ue(a);
10002
+ let ee = ze(a);
10003
10003
  if (m.state.next({
10004
10004
  isSubmitting: !0
10005
10005
  }), t.resolver) {
10006
10006
  const { errors: $, values: ce } = await w();
10007
- P(), n.errors = $, ee = Ue(ce);
10007
+ P(), n.errors = $, ee = ze(ce);
10008
10008
  } else
10009
10009
  await V(i);
10010
10010
  if (s.disabled.size)
10011
10011
  for (const $ of s.disabled)
10012
- ze(ee, $);
10013
- if (ze(n.errors, "root"), Qe(n.errors)) {
10012
+ He(ee, $);
10013
+ if (He(n.errors, "root"), $e(n.errors)) {
10014
10014
  m.state.next({
10015
10015
  errors: {}
10016
10016
  });
@@ -10024,15 +10024,15 @@ function mv(e = {}) {
10024
10024
  if (m.state.next({
10025
10025
  isSubmitted: !0,
10026
10026
  isSubmitting: !1,
10027
- isSubmitSuccessful: Qe(n.errors) && !ne,
10027
+ isSubmitSuccessful: $e(n.errors) && !ne,
10028
10028
  submitCount: n.submitCount + 1,
10029
10029
  errors: n.errors
10030
10030
  }), ne)
10031
10031
  throw ne;
10032
10032
  }, Ne = (A, M = {}) => {
10033
- ie(i, A) && (Ee(M.defaultValue) ? _(A, Ue(ie(r, A))) : (_(A, M.defaultValue), Ae(r, A, Ue(M.defaultValue))), M.keepTouched || ze(n.touchedFields, A), M.keepDirty || (ze(n.dirtyFields, A), n.isDirty = M.defaultValue ? H(A, Ue(ie(r, A))) : H()), M.keepError || (ze(n.errors, A), l.isValid && y()), m.state.next({ ...n }));
10033
+ ie(i, A) && (Ee(M.defaultValue) ? _(A, ze(ie(r, A))) : (_(A, M.defaultValue), Ae(r, A, ze(M.defaultValue))), M.keepTouched || He(n.touchedFields, A), M.keepDirty || (He(n.dirtyFields, A), n.isDirty = M.defaultValue ? H(A, ze(ie(r, A))) : H()), M.keepError || (He(n.errors, A), l.isValid && y()), m.state.next({ ...n }));
10034
10034
  }, wt = (A, M = {}) => {
10035
- const B = A ? Ue(A) : r, ne = Ue(B), ee = Qe(A), $ = ee ? r : ne;
10035
+ const B = A ? ze(A) : r, ne = ze(B), ee = $e(A), $ = ee ? r : ne;
10036
10036
  if (M.keepDefaultValues || (r = B), !M.keepValues) {
10037
10037
  if (M.keepDirtyValues) {
10038
10038
  const ce = /* @__PURE__ */ new Set([
@@ -10064,7 +10064,7 @@ function mv(e = {}) {
10064
10064
  else
10065
10065
  i = {};
10066
10066
  }
10067
- a = t.shouldUnregister ? M.keepDefaultValues ? Ue(r) : {} : Ue($), m.array.next({
10067
+ a = t.shouldUnregister ? M.keepDefaultValues ? ze(r) : {} : ze($), m.array.next({
10068
10068
  values: { ...$ }
10069
10069
  }), m.state.next({
10070
10070
  values: { ...$ }
@@ -10078,7 +10078,7 @@ function mv(e = {}) {
10078
10078
  watch: /* @__PURE__ */ new Set(),
10079
10079
  watchAll: !1,
10080
10080
  focus: ""
10081
- }, o.mount = !l.isValid || !!M.keepIsValid || !!M.keepDirtyValues || !t.shouldUnregister && !Qe($), o.watch = !!t.shouldUnregister, o.keepIsValid = !!M.keepIsValid, o.action = !1, M.keepErrors || (n.errors = {}), m.state.next({
10081
+ }, o.mount = !l.isValid || !!M.keepIsValid || !!M.keepDirtyValues || !t.shouldUnregister && !$e($), o.watch = !!t.shouldUnregister, o.keepIsValid = !!M.keepIsValid, o.action = !1, M.keepErrors || (n.errors = {}), m.state.next({
10082
10082
  submitCount: M.keepSubmitCount ? n.submitCount : 0,
10083
10083
  isDirty: ee ? !1 : M.keepDirty ? n.isDirty : !!(M.keepDefaultValues && !At(A, r)),
10084
10084
  isSubmitted: M.keepIsSubmitted ? n.isSubmitted : !1,
@@ -10089,12 +10089,12 @@ function mv(e = {}) {
10089
10089
  isSubmitting: !1,
10090
10090
  defaultValues: r
10091
10091
  });
10092
- }, xt = (A, M) => wt(et(A) ? A(a) : A, { ...t.resetOptions, ...M }), It = (A, M = {}) => {
10092
+ }, xt = (A, M) => wt(tt(A) ? A(a) : A, { ...t.resetOptions, ...M }), It = (A, M = {}) => {
10093
10093
  const B = ie(i, A), ne = B && B._f;
10094
10094
  if (ne) {
10095
10095
  const ee = ne.refs ? ne.refs[0] : ne.ref;
10096
10096
  ee.focus && setTimeout(() => {
10097
- ee.focus(), M.shouldSelect && et(ee.select) && ee.select();
10097
+ ee.focus(), M.shouldSelect && tt(ee.select) && ee.select();
10098
10098
  });
10099
10099
  }
10100
10100
  }, ft = (A) => {
@@ -10121,7 +10121,7 @@ function mv(e = {}) {
10121
10121
  _setErrors: k,
10122
10122
  _getFieldArray: U,
10123
10123
  _reset: wt,
10124
- _resetDefaultValues: () => et(t.defaultValues) && t.defaultValues().then((A) => {
10124
+ _resetDefaultValues: () => tt(t.defaultValues) && t.defaultValues().then((A) => {
10125
10125
  xt(A, t.resetOptions), m.state.next({
10126
10126
  isLoading: !1
10127
10127
  });
@@ -10188,7 +10188,7 @@ function Sc(e = {}) {
10188
10188
  const t = Y.useRef(void 0), n = Y.useRef(void 0), [i, r] = Y.useState({
10189
10189
  isDirty: !1,
10190
10190
  isValidating: !1,
10191
- isLoading: et(e.defaultValues),
10191
+ isLoading: tt(e.defaultValues),
10192
10192
  isSubmitted: !1,
10193
10193
  isSubmitting: !1,
10194
10194
  isSubmitSuccessful: !1,
@@ -10200,14 +10200,14 @@ function Sc(e = {}) {
10200
10200
  errors: e.errors || {},
10201
10201
  disabled: e.disabled || !1,
10202
10202
  isReady: !1,
10203
- defaultValues: et(e.defaultValues) ? void 0 : e.defaultValues
10203
+ defaultValues: tt(e.defaultValues) ? void 0 : e.defaultValues
10204
10204
  });
10205
10205
  if (!t.current)
10206
10206
  if (e.formControl)
10207
10207
  t.current = {
10208
10208
  ...e.formControl,
10209
10209
  formState: i
10210
- }, e.defaultValues && !et(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
10210
+ }, e.defaultValues && !tt(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
10211
10211
  else {
10212
10212
  const { formControl: o, ...s } = mv(e);
10213
10213
  t.current = {
@@ -13161,7 +13161,7 @@ const Yx = [
13161
13161
  ] })
13162
13162
  ] });
13163
13163
  }, ua = ({ name: e }) => {
13164
- const t = $e?.find((n) => n.ticker === e)?.logo_urls.map((n) => n) || [];
13164
+ const t = et?.find((n) => n.ticker === e)?.logo_urls.map((n) => n) || [];
13165
13165
  return /* @__PURE__ */ h.jsxs("div", { className: "iccandle-forexIcons", children: [
13166
13166
  t.length === 1 && /* @__PURE__ */ h.jsx(
13167
13167
  "img",
@@ -13698,12 +13698,12 @@ const aP = ({
13698
13698
  }, [K, b]);
13699
13699
  const I = Ce(() => {
13700
13700
  const O = /* @__PURE__ */ new Map();
13701
- return $e.forEach((R) => {
13701
+ return et.forEach((R) => {
13702
13702
  O.set(R.ticker, R.logo_urls);
13703
13703
  }), O;
13704
13704
  }, []), U = Ce(() => {
13705
13705
  const O = x.toLowerCase();
13706
- return $e.filter(
13706
+ return et.filter(
13707
13707
  (R) => R.display_name.toLowerCase().includes(O)
13708
13708
  );
13709
13709
  }, [x]), Q = Ce(
@@ -13757,9 +13757,9 @@ const aP = ({
13757
13757
  }
13758
13758
  const z = Array.from(
13759
13759
  new Set(
13760
- $e.filter((W) => R.includes(W.ticker)).map((W) => W.type)
13760
+ et.filter((W) => R.includes(W.ticker)).map((W) => W.type)
13761
13761
  )
13762
- ), D = $e.every((W) => E[W.ticker]) ?? !1, L = {
13762
+ ), D = et.every((W) => E[W.ticker]) ?? !1, L = {
13763
13763
  probability: 0,
13764
13764
  top_k: O.top_k,
13765
13765
  timeframe: O.timeframe,
@@ -13816,7 +13816,7 @@ const aP = ({
13816
13816
  filteredSymbols: U,
13817
13817
  selectedCount: Q,
13818
13818
  logoByTicker: I,
13819
- allSymbols: $e
13819
+ allSymbols: et
13820
13820
  }
13821
13821
  )
13822
13822
  ] }),
@@ -14830,7 +14830,7 @@ const Yr = (e, t) => {
14830
14830
  if (!f) {
14831
14831
  if (r?.length && s.length > 0) {
14832
14832
  if (l.current === r) return;
14833
- const g = s[s.length - 1], C = Nt(n) ? g.timestamp > 1e11 ? g.timestamp : g.timestamp * 1e3 : at(g.timestamp, n), v = c != null && Number.isFinite(c) ? li(c) : null, w = v != null ? Au(v, n) : null, E = w != null && w > C && !di(w, C, n), K = $e.find(
14833
+ const g = s[s.length - 1], C = Nt(n) ? g.timestamp > 1e11 ? g.timestamp : g.timestamp * 1e3 : at(g.timestamp, n), v = c != null && Number.isFinite(c) ? li(c) : null, w = v != null ? Au(v, n) : null, E = w != null && w > C && !di(w, C, n), K = et.find(
14834
14834
  (O) => O.ticker === i || O.display_name === i
14835
14835
  )?.session || "24x7", H = E && v != null ? xP(
14836
14836
  C,
@@ -15095,7 +15095,7 @@ const Yr = (e, t) => {
15095
15095
  o,
15096
15096
  a,
15097
15097
  r
15098
- ), l = i.symbol(), f = $e.find(
15098
+ ), l = i.symbol(), f = et.find(
15099
15099
  (C) => C.ticker === l || C.display_name === l
15100
15100
  )?.session || "24x7";
15101
15101
  n.clearSelectedCandles();
@@ -15935,7 +15935,7 @@ const aS = il(function({
15935
15935
  [a]
15936
15936
  ), s = Ce(() => {
15937
15937
  const m = r.toLowerCase();
15938
- return $e.filter(
15938
+ return et.filter(
15939
15939
  (p) => p.display_name.toLowerCase().includes(m) || p.description.toLowerCase().includes(m)
15940
15940
  );
15941
15941
  }, [r]), u = Ce(
@@ -15943,7 +15943,7 @@ const aS = il(function({
15943
15943
  [o]
15944
15944
  ), c = Ce(() => {
15945
15945
  const m = /* @__PURE__ */ new Map();
15946
- return $e.forEach((p) => {
15946
+ return et.forEach((p) => {
15947
15947
  m.set(p.ticker, p.logo_urls);
15948
15948
  }), m;
15949
15949
  }, []), d = ae(
@@ -15951,7 +15951,7 @@ const aS = il(function({
15951
15951
  e.setValue(
15952
15952
  "symbols",
15953
15953
  Object.entries(m).filter(([, p]) => p).map(([p]) => {
15954
- const b = $e.find(
15954
+ const b = et.find(
15955
15955
  (y) => y.ticker === p
15956
15956
  );
15957
15957
  return {
@@ -15990,7 +15990,7 @@ const aS = il(function({
15990
15990
  filteredSymbols: s,
15991
15991
  selectedCount: u,
15992
15992
  logoByTicker: c,
15993
- allSymbols: $e
15993
+ allSymbols: et
15994
15994
  }
15995
15995
  )
15996
15996
  ] });
@@ -17145,7 +17145,7 @@ const nT = ({
17145
17145
  te = De;
17146
17146
  }
17147
17147
  Ks(u?.current, te);
17148
- }, [e, De, u]), qt = fe([]), Je = ae(
17148
+ }, [e, De, u]), qt = fe([]), Ze = ae(
17149
17149
  (te) => {
17150
17150
  qt.current.forEach((Se) => window.clearTimeout(Se));
17151
17151
  const ue = () => {
@@ -17229,7 +17229,7 @@ const nT = ({
17229
17229
  a,
17230
17230
  A
17231
17231
  ]
17232
- ), tt = ae(
17232
+ ), nt = ae(
17233
17233
  (te) => {
17234
17234
  if (!te || !e) return;
17235
17235
  let ue;
@@ -17242,32 +17242,32 @@ const nT = ({
17242
17242
  if (!ue) return;
17243
17243
  const Se = ue.getTimeScale(), me = ue.getVisibleRange();
17244
17244
  if (!me?.from || !me?.to) return;
17245
- const Be = v.current?.firstElementChild || v.current;
17246
- if (!Be) return;
17247
- const je = Be.getBoundingClientRect(), _t = Se.width(), Pt = (Tt) => {
17248
- let qe = 0, Ve = _t, nt = _t / 2;
17249
- const Le = 0.1;
17245
+ const je = v.current?.firstElementChild || v.current;
17246
+ if (!je) return;
17247
+ const Ue = je.getBoundingClientRect(), _t = Se.width(), Pt = (Tt) => {
17248
+ let Le = 0, Ve = _t, Je = _t / 2;
17249
+ const Fe = 0.1;
17250
17250
  for (let Tr = 0; Tr < 30; Tr++) {
17251
- const On = (qe + Ve) / 2, $t = Se.coordinateToTime(On);
17251
+ const On = (Le + Ve) / 2, $t = Se.coordinateToTime(On);
17252
17252
  if ($t === null) {
17253
17253
  const Ie = (Tt - me.from) / (me.to - me.from);
17254
- nt = Math.max(0, Math.min(_t, Ie * _t));
17254
+ Je = Math.max(0, Math.min(_t, Ie * _t));
17255
17255
  break;
17256
17256
  }
17257
17257
  const Si = $t - Tt;
17258
- if (Math.abs(Si) < Le) {
17259
- nt = On;
17258
+ if (Math.abs(Si) < Fe) {
17259
+ Je = On;
17260
17260
  break;
17261
17261
  }
17262
- Si > 0 ? Ve = On : qe = On, nt = On;
17262
+ Si > 0 ? Ve = On : Le = On, Je = On;
17263
17263
  }
17264
- const oo = je.left + nt + 53, Ft = je.bottom - 103;
17264
+ const oo = Ue.left + Je + 53, Ft = Ue.bottom - 103;
17265
17265
  return { x: oo, y: Ft };
17266
17266
  }, Oe = DS(te);
17267
17267
  if (!RS(Oe))
17268
17268
  return;
17269
- const St = Oe.timestamp ? Oe.timestamp / 1e3 : null, yt = me.to - me.from, Vt = St ?? me.from + yt * 0.5, Ze = Pt(Vt);
17270
- Ze && G(Ze), U(Oe), H(!0);
17269
+ const St = Oe.timestamp ? Oe.timestamp / 1e3 : null, yt = me.to - me.from, Vt = St ?? me.from + yt * 0.5, Ke = Pt(Vt);
17270
+ Ke && G(Ke), U(Oe), H(!0);
17271
17271
  },
17272
17272
  [e]
17273
17273
  ), Sr = ae(() => {
@@ -17276,7 +17276,7 @@ const nT = ({
17276
17276
  k.current || (x.current = null, W(!1));
17277
17277
  }, []), En = ae(
17278
17278
  (te) => {
17279
- ft(te), Lt(te), Je(te), Rn(), p != null && !p.includes(String(te)) && (Ne(null), xt(!1)), (an(String(te)) || on(String(te))) && R(!1), k.current || _?.length && (Pe.getState().setPlayEndTimestamp(null), Pe.getState().setGapCount(0), X(null), pt(!1));
17279
+ ft(te), Lt(te), Ze(te), Rn(), p != null && !p.includes(String(te)) && (Ne(null), xt(!1)), (an(String(te)) || on(String(te))) && R(!1), k.current || _?.length && (Pe.getState().setPlayEndTimestamp(null), Pe.getState().setGapCount(0), X(null), pt(!1));
17280
17280
  let ue = null;
17281
17281
  try {
17282
17282
  ue = JSON.parse(
@@ -17302,59 +17302,59 @@ const nT = ({
17302
17302
  N
17303
17303
  )))();
17304
17304
  },
17305
- [p, e, Rn, Je, _, w]
17305
+ [p, e, Rn, Ze, _, w]
17306
17306
  ), Mn = ae(
17307
17307
  (te) => {
17308
17308
  M(
17309
17309
  te.library_custom_fields?.ticker || te.ticker || te.name || te.base_name + "" || ""
17310
- ), Rn(), Je(), !(k.current || !_?.length) && (Pe.getState().setPlayEndTimestamp(null), Pe.getState().setGapCount(0), X(null), pt(!1));
17310
+ ), Rn(), Ze(), !(k.current || !_?.length) && (Pe.getState().setPlayEndTimestamp(null), Pe.getState().setGapCount(0), X(null), pt(!1));
17311
17311
  },
17312
- [Rn, Je, _]
17312
+ [Rn, Ze, _]
17313
17313
  );
17314
17314
  be(() => {
17315
17315
  let te, ue, Se;
17316
17316
  return e && e.onChartReady(() => {
17317
17317
  const me = e.activeChart();
17318
17318
  if (me) {
17319
- const Be = me.resolution(), je = $e?.find(
17319
+ const je = me.resolution(), Ue = et?.find(
17320
17320
  (Oe) => Oe.display_name === me.symbol()
17321
17321
  );
17322
- ft(Be), Lt(Be), M(je?.ticker || me.symbol());
17322
+ ft(je), Lt(je), M(Ue?.ticker || me.symbol());
17323
17323
  const _t = async (Oe, St) => {
17324
17324
  if (me?.getAllShapes()?.filter(
17325
- (Ze) => Ze.name === "date_range"
17326
- )?.forEach((Ze) => {
17327
- me?.removeEntity(Ze.id);
17325
+ (Ke) => Ke.name === "date_range"
17326
+ )?.forEach((Ke) => {
17327
+ me?.removeEntity(Ke.id);
17328
17328
  }), St) {
17329
- const { data: Ze } = await me.exportData(), Tt = me.resolution();
17330
- let qe = Br(
17331
- Ze,
17329
+ const { data: Ke } = await me.exportData(), Tt = me.resolution();
17330
+ let Le = Br(
17331
+ Ke,
17332
17332
  St,
17333
17333
  Tt
17334
17334
  );
17335
- qe === -1 && (qe = Ze.length - 1);
17336
- const Ve = Ze.slice(
17337
- Math.max(0, qe - Fr + 1),
17338
- qe + 1
17339
- ), nt = Ze.slice(
17340
- Math.max(0, qe - 49),
17341
- qe + 1
17335
+ (Le === -1 || Le === Ke.length - 1) && (Le = Math.max(0, Ke.length - 2));
17336
+ const Ve = Ke.slice(
17337
+ Math.max(0, Le - Fr + 1),
17338
+ Le + 1
17339
+ ), Je = Ke.slice(
17340
+ Math.max(0, Le - 49),
17341
+ Le + 1
17342
17342
  );
17343
17343
  if (re(Ve.length), J(
17344
- Ve.map((Le) => ({
17345
- o: Le[1],
17346
- h: Le[2],
17347
- l: Le[3],
17348
- c: Le[4],
17349
- timestamp: Le[0]
17344
+ Ve.map((Fe) => ({
17345
+ o: Fe[1],
17346
+ h: Fe[2],
17347
+ l: Fe[3],
17348
+ c: Fe[4],
17349
+ timestamp: Fe[0]
17350
17350
  }))
17351
17351
  ), w(
17352
- nt.map((Le) => ({
17353
- o: Le[1],
17354
- h: Le[2],
17355
- l: Le[3],
17356
- c: Le[4],
17357
- timestamp: Le[0]
17352
+ Je.map((Fe) => ({
17353
+ o: Fe[1],
17354
+ h: Fe[2],
17355
+ l: Fe[3],
17356
+ c: Fe[4],
17357
+ timestamp: Fe[0]
17358
17358
  }))
17359
17359
  ), W(!0), x.current = await me.createMultipointShape(
17360
17360
  [
@@ -17373,13 +17373,13 @@ const nT = ({
17373
17373
  ],
17374
17374
  Qr(T.current())
17375
17375
  ), x.current) {
17376
- const Le = me.getShapeById(x.current);
17377
- Le && Le.setSavingEnabled && (Le.setProperties({
17376
+ const Fe = me.getShapeById(x.current);
17377
+ Fe && Fe.setSavingEnabled && (Fe.setProperties({
17378
17378
  customText: {
17379
17379
  visible: !0,
17380
17380
  text: ns
17381
17381
  }
17382
- }), Le.setSavingEnabled(!1));
17382
+ }), Fe.setSavingEnabled(!1));
17383
17383
  }
17384
17384
  }
17385
17385
  };
@@ -17388,27 +17388,27 @@ const nT = ({
17388
17388
  if (!k.current && (St === "remove" && (x.current === Oe && (x.current = null), W(!1)), St === "points_changed" && me.getAllShapes().filter((yt) => yt.name === "date_range").some((yt) => yt.id === Oe) && e)) {
17389
17389
  const yt = me.getShapeById(Oe);
17390
17390
  if (!yt) return;
17391
- const Vt = yt.getPoints(), Ze = Vt[0].time, Tt = Vt[1].time, { data: qe } = await me.exportData(), Ve = me.resolution();
17392
- let nt = Br(
17393
- qe,
17391
+ const Vt = yt.getPoints(), Ke = Vt[0].time, Tt = Vt[1].time, { data: Le } = await me.exportData(), Ve = me.resolution();
17392
+ let Je = Br(
17393
+ Le,
17394
17394
  Tt,
17395
17395
  Ve
17396
- ), Le = Br(
17397
- qe,
17398
- Ze,
17396
+ ), Fe = Br(
17397
+ Le,
17398
+ Ke,
17399
17399
  Ve
17400
17400
  );
17401
- nt === -1 && (nt = qe.length - 2, Le = qe.length - 1 - Fr);
17402
- let Ft = qe.slice(Le, nt + 1).length - 1;
17403
- Ft > gn.max ? (Ft = Math.round(Ft / 10) * 10 - 1, Ft > gn.custom[gn.custom.length - 1] && (Ft = gn.custom[gn.custom.length - 1] - 1)) : Ft <= gn.min && (Ft = gn.min - 1), x.current && me.removeEntity(x.current), me.getAllShapes().filter(
17401
+ Je === -1 && (Je = Le.length - 2, Fe = Le.length - 1 - Fr), Je >= Le.length - 1 && (Je = Math.max(0, Le.length - 2));
17402
+ let Ft = Le.slice(Fe, Je + 1).length - 1;
17403
+ Ft >= gn.max ? (Ft = Math.round(Ft / 10) * 10 - 1, Ft > gn.custom[gn.custom.length - 1] && (Ft = gn.custom[gn.custom.length - 1] - 1)) : Ft <= gn.min && (Ft = gn.min - 1), x.current && me.removeEntity(x.current), me.getAllShapes().filter(
17404
17404
  (Ie) => Ie.name === "date_range"
17405
17405
  ).forEach((Ie) => {
17406
17406
  me.removeEntity(Ie.id);
17407
17407
  });
17408
- const $t = qe.slice(
17409
- nt - Ft,
17410
- nt + 1
17411
- ), Si = qe.slice(nt - 49, nt + 1);
17408
+ const $t = Le.slice(
17409
+ Je - Ft,
17410
+ Je + 1
17411
+ ), Si = Le.slice(Je - 49, Je + 1);
17412
17412
  if (x.current = await me.createMultipointShape(
17413
17413
  [
17414
17414
  {
@@ -17467,8 +17467,8 @@ const nT = ({
17467
17467
  if (yt.length === 0) return !1;
17468
17468
  const Vt = yt.map((Ve) => Ve.time).filter((Ve) => typeof Ve == "number");
17469
17469
  if (Vt.length === 0) return !1;
17470
- const Ze = Math.min(...Vt);
17471
- return Math.max(...Vt) < Oe.from || Ze > Oe.to;
17470
+ const Ke = Math.min(...Vt);
17471
+ return Math.max(...Vt) < Oe.from || Ke > Oe.to;
17472
17472
  } catch {
17473
17473
  return !1;
17474
17474
  }
@@ -17496,7 +17496,7 @@ const nT = ({
17496
17496
  w
17497
17497
  ]), be(() => {
17498
17498
  if (!e) return;
17499
- const te = tt;
17499
+ const te = nt;
17500
17500
  return e.onChartReady(() => {
17501
17501
  e.subscribe("onTimescaleMarkClick", te);
17502
17502
  }), () => {
@@ -17505,7 +17505,7 @@ const nT = ({
17505
17505
  } catch {
17506
17506
  }
17507
17507
  };
17508
- }, [e, tt]), sP(e, C);
17508
+ }, [e, nt]), sP(e, C);
17509
17509
  const ge = Ce(
17510
17510
  () => ({
17511
17511
  lastEntity: x,
@@ -17532,21 +17532,21 @@ const nT = ({
17532
17532
  p,
17533
17533
  pn
17534
17534
  ), be(() => {
17535
- s && Je();
17536
- }, [s, Je]), be(() => {
17535
+ s && Ze();
17536
+ }, [s, Ze]), be(() => {
17537
17537
  if (typeof document > "u") return;
17538
17538
  let te;
17539
17539
  const ue = new MutationObserver((Se) => {
17540
17540
  Se.some(
17541
- (Be) => [...Be.addedNodes, ...Be.removedNodes].some(
17542
- (je) => je instanceof HTMLIFrameElement || je instanceof Element && je.querySelector("iframe")
17541
+ (je) => [...je.addedNodes, ...je.removedNodes].some(
17542
+ (Ue) => Ue instanceof HTMLIFrameElement || Ue instanceof Element && Ue.querySelector("iframe")
17543
17543
  )
17544
- ) && (window.clearTimeout(te), te = window.setTimeout(() => Je(), 200));
17544
+ ) && (window.clearTimeout(te), te = window.setTimeout(() => Ze(), 200));
17545
17545
  });
17546
17546
  return ue.observe(document.body, { childList: !0, subtree: !0 }), () => {
17547
17547
  ue.disconnect(), window.clearTimeout(te);
17548
17548
  };
17549
- }, [Je]), be(() => {
17549
+ }, [Ze]), be(() => {
17550
17550
  if (!e) return;
17551
17551
  let te = !1;
17552
17552
  return e.onChartReady(async () => {
@@ -17571,7 +17571,7 @@ const nT = ({
17571
17571
  _,
17572
17572
  q
17573
17573
  );
17574
- const Ge = ae(() => {
17574
+ const Be = ae(() => {
17575
17575
  try {
17576
17576
  localStorage.removeItem(Hi), localStorage.removeItem(Pn);
17577
17577
  } catch {
@@ -17589,7 +17589,7 @@ const nT = ({
17589
17589
  } catch {
17590
17590
  }
17591
17591
  }
17592
- }, [e]), We = p == null ? !0 : p.includes(String(De)), Xe = !an(String(De)) && !on(String(De));
17592
+ }, [e]), qe = p == null ? !0 : p.includes(String(De)), Qe = !an(String(De)) && !on(String(De));
17593
17593
  return /* @__PURE__ */ h.jsx(NS, { language: b, children: /* @__PURE__ */ h.jsxs(
17594
17594
  "div",
17595
17595
  {
@@ -17601,9 +17601,9 @@ const nT = ({
17601
17601
  /* @__PURE__ */ h.jsx(
17602
17602
  eb,
17603
17603
  {
17604
- hide: !l || !We,
17604
+ hide: !l || !qe,
17605
17605
  hideScanButton: !c,
17606
- hideTrackerButton: !d || !Xe,
17606
+ hideTrackerButton: !d || !Qe,
17607
17607
  submitCallback: a,
17608
17608
  handleShowDialog: xe,
17609
17609
  onOpenScanConfig: () => Ne("scan"),
@@ -17624,7 +17624,7 @@ const nT = ({
17624
17624
  hasActiveShape: L,
17625
17625
  theme: S,
17626
17626
  language: b,
17627
- clearScannerNewsMarks: Ge,
17627
+ clearScannerNewsMarks: Be,
17628
17628
  selectedCandles: _,
17629
17629
  iframeLoaded: s,
17630
17630
  isLoading: E,
@@ -17637,7 +17637,7 @@ const nT = ({
17637
17637
  open: O,
17638
17638
  onOpenChange: R,
17639
17639
  resolution: De,
17640
- type: $e.find((te) => te.ticker === A)?.type ?? "forex",
17640
+ type: et.find((te) => te.ticker === A)?.type ?? "forex",
17641
17641
  symbol: A,
17642
17642
  candles: pe,
17643
17643
  percent: 90,