@babylonlabs-io/core-ui 1.10.2 → 1.12.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.
package/dist/index.es.js CHANGED
@@ -1,15 +1,15 @@
1
- import { jsx as c, jsxs as x, Fragment as Ft } from "react/jsx-runtime";
1
+ import { jsx as c, jsxs as N, Fragment as rt } from "react/jsx-runtime";
2
2
  import * as Pe from "react";
3
- import R, { useState as oe, useRef as rt, useCallback as ae, createContext as sr, useMemo as Ue, forwardRef as De, useContext as Lt, useEffect as ce, createElement as br, Children as Xt, cloneElement as yr, isValidElement as wr, useImperativeHandle as Sn, useId as An } from "react";
4
- import { twJoin as S, twMerge as be } from "tailwind-merge";
3
+ import R, { useState as oe, useRef as nt, useCallback as ae, createContext as sr, useMemo as Ue, forwardRef as De, useContext as Lt, useEffect as ce, createElement as br, Children as Xt, cloneElement as yr, isValidElement as wr, useImperativeHandle as En, useId as Sn } from "react";
4
+ import { twJoin as E, twMerge as be } from "tailwind-merge";
5
5
  import * as Ti from "react-dom";
6
6
  import { createPortal as Mi } from "react-dom";
7
- function ot({
7
+ function at({
8
8
  value: e,
9
9
  defaultValue: t,
10
10
  onStateChange: r
11
11
  } = {}) {
12
- const [n, i] = oe(t), { current: s } = rt(e != null), o = s ? e : n, a = ae(
12
+ const [n, i] = oe(t), { current: s } = nt(e != null), o = s ? e : n, a = ae(
13
13
  (l) => {
14
14
  s || i(l), r == null || r(l);
15
15
  },
@@ -21,7 +21,7 @@ const xr = sr({
21
21
  disabled: !1,
22
22
  expanded: !1
23
23
  });
24
- function il({
24
+ function sl({
25
25
  expanded: e,
26
26
  defaultExpanded: t,
27
27
  onChange: r,
@@ -29,7 +29,7 @@ function il({
29
29
  disabled: i = !1,
30
30
  children: s
31
31
  }) {
32
- const [o = !1, a] = ot({
32
+ const [o = !1, a] = at({
33
33
  value: e,
34
34
  defaultValue: t,
35
35
  onStateChange: r
@@ -44,16 +44,16 @@ function il({
44
44
  }),
45
45
  [t, o, i, l]
46
46
  );
47
- return /* @__PURE__ */ c(xr.Provider, { value: f, children: /* @__PURE__ */ c("div", { className: S("bbn-accordion", i && "bbn-accordion-disabled", n), children: s }) });
47
+ return /* @__PURE__ */ c(xr.Provider, { value: f, children: /* @__PURE__ */ c("div", { className: E("bbn-accordion", i && "bbn-accordion-disabled", n), children: s }) });
48
48
  }
49
- const at = De(
49
+ const lt = De(
50
50
  ({ variant: e = "contained", size: t = "large", color: r = "primary", fluid: n = !1, className: i, disabled: s, ...o }, a) => /* @__PURE__ */ c(
51
51
  "button",
52
52
  {
53
53
  ...o,
54
54
  disabled: s,
55
55
  ref: a,
56
- className: S(
56
+ className: E(
57
57
  "bbn-btn",
58
58
  `bbn-btn-${e}`,
59
59
  `bbn-btn-${r}`,
@@ -64,39 +64,39 @@ const at = De(
64
64
  }
65
65
  )
66
66
  );
67
- at.displayName = "Button";
68
- const Fn = ({ className: e, ...t }) => /* @__PURE__ */ c("button", { ...t, className: S("bbn-btn-icon", e) }), Ln = De(
67
+ lt.displayName = "Button";
68
+ const An = ({ className: e, ...t }) => /* @__PURE__ */ c("button", { ...t, className: E("bbn-btn-icon", e) }), Fn = De(
69
69
  ({ className: e, ...t }, r) => /* @__PURE__ */ c(
70
- at,
70
+ lt,
71
71
  {
72
72
  ...t,
73
73
  ref: r,
74
74
  variant: "contained",
75
- className: S(
75
+ className: E(
76
76
  "!bg-error-main text-white font-medium !text-sm hover:!bg-error-main/90 transition-colors",
77
77
  e
78
78
  )
79
79
  }
80
80
  )
81
81
  );
82
- Ln.displayName = "WalletDisconnectButton";
83
- function sl({
82
+ Fn.displayName = "WalletDisconnectButton";
83
+ function ol({
84
84
  className: e,
85
85
  iconClassName: t,
86
86
  children: r,
87
87
  renderIcon: n = () => null
88
88
  }) {
89
89
  const { expanded: i, toggle: s } = Lt(xr), o = n(i);
90
- return /* @__PURE__ */ x("div", { className: S("bbn-accordion-summary", e), onClick: s, children: [
90
+ return /* @__PURE__ */ N("div", { className: E("bbn-accordion-summary", e), onClick: s, children: [
91
91
  r,
92
- o && /* @__PURE__ */ c(Fn, { className: S("bbn-accordion-icon", t), children: o })
92
+ o && /* @__PURE__ */ c(An, { className: E("bbn-accordion-icon", t), children: o })
93
93
  ] });
94
94
  }
95
95
  function Nr(e, t) {
96
96
  return typeof e != "number" ? typeof t == "number" ? Nr(t) : t : `${e}px`;
97
97
  }
98
98
  function Pi(e = !0) {
99
- const [t, r] = oe("0px"), [n, i] = oe(), s = rt(null);
99
+ const [t, r] = oe("0px"), [n, i] = oe(), s = nt(null);
100
100
  return ce(() => {
101
101
  const o = new ResizeObserver((a) => {
102
102
  const [l] = a;
@@ -114,7 +114,7 @@ function Pi(e = !0) {
114
114
  [e, n]
115
115
  ), { height: t, ref: s };
116
116
  }
117
- function ol({
117
+ function al({
118
118
  unmountOnExit: e = !1,
119
119
  animationDuration: t = 200,
120
120
  className: r,
@@ -130,22 +130,22 @@ function ol({
130
130
  a(!0);
131
131
  return;
132
132
  }
133
- const p = setTimeout(a, t, !1);
133
+ const m = setTimeout(a, t, !1);
134
134
  return () => {
135
- clearTimeout(p);
135
+ clearTimeout(m);
136
136
  };
137
137
  },
138
138
  [s, o, t]
139
139
  ), /* @__PURE__ */ c(
140
140
  "div",
141
141
  {
142
- className: S("bbn-accordion-details", n),
142
+ className: E("bbn-accordion-details", n),
143
143
  style: {
144
144
  height: s ? f : "0px",
145
145
  visibility: o ? "visible" : "hidden",
146
146
  transitionDuration: `${t}ms`
147
147
  },
148
- children: l ? /* @__PURE__ */ c("div", { ref: u, className: S("bbn-accordion-content", r), children: i }) : null
148
+ children: l ? /* @__PURE__ */ c("div", { ref: u, className: E("bbn-accordion-content", r), children: i }) : null
149
149
  }
150
150
  );
151
151
  }
@@ -155,7 +155,7 @@ const W = De(
155
155
  {
156
156
  ...i,
157
157
  ref: s,
158
- className: S(`bbn-text-${e}`, n)
158
+ className: E(`bbn-text-${e}`, n)
159
159
  },
160
160
  r
161
161
  )
@@ -167,16 +167,16 @@ const Cr = De(
167
167
  {
168
168
  ...i,
169
169
  ref: s,
170
- className: S(`bbn-${e}`, n)
170
+ className: E(`bbn-${e}`, n)
171
171
  },
172
172
  r
173
173
  )
174
174
  );
175
175
  Cr.displayName = "Heading";
176
176
  function Yt({ className: e, style: t, size: r = "large", variant: n = "circular", alt: i, url: s, children: o }) {
177
- return /* @__PURE__ */ c("div", { style: t, className: S("bbn-avatar", `bbn-avatar-${r}`, `bbn-avatar-${n}`, e), children: s ? /* @__PURE__ */ c("img", { className: "bbn-avatar-img", src: s, alt: i }) : o });
177
+ return /* @__PURE__ */ c("div", { style: t, className: E("bbn-avatar", `bbn-avatar-${r}`, `bbn-avatar-${n}`, e), children: s ? /* @__PURE__ */ c("img", { className: "bbn-avatar-img", src: s, alt: i }) : o });
178
178
  }
179
- const al = ({
179
+ const ll = ({
180
180
  max: e = 1 / 0,
181
181
  className: t,
182
182
  children: r,
@@ -185,7 +185,7 @@ const al = ({
185
185
  ...s
186
186
  }) => {
187
187
  const o = Xt.count(r);
188
- return /* @__PURE__ */ x("div", { className: S("bbn-avatar-group", t), children: [
188
+ return /* @__PURE__ */ N("div", { className: E("bbn-avatar-group", t), children: [
189
189
  Xt.map(
190
190
  r,
191
191
  (a, l) => wr(a) && l + 1 <= e ? yr(a, {
@@ -194,12 +194,12 @@ const al = ({
194
194
  variant: i
195
195
  }) : null
196
196
  ),
197
- o > e && /* @__PURE__ */ x(Yt, { size: s.size, variant: i, className: n, children: [
197
+ o > e && /* @__PURE__ */ N(Yt, { size: s.size, variant: i, className: n, children: [
198
198
  "+",
199
199
  o - e
200
200
  ] })
201
201
  ] });
202
- }, Vn = De(function({
202
+ }, Ln = De(function({
203
203
  label: t,
204
204
  checked: r,
205
205
  defaultChecked: n = !1,
@@ -211,19 +211,19 @@ const al = ({
211
211
  labelClassName: f,
212
212
  renderIcon: u,
213
213
  onChange: d,
214
- ...p
214
+ ...m
215
215
  }, v) {
216
- const [N = !1, b] = ot({
216
+ const [x = !1, y] = at({
217
217
  value: r,
218
218
  defaultValue: n,
219
219
  onStateChange: d
220
220
  });
221
- function y(w) {
221
+ function b(w) {
222
222
  var M;
223
- b(w.currentTarget.checked), (M = i == null ? void 0 : i.onChange) == null || M.call(i, w);
223
+ y(w.currentTarget.checked), (M = i == null ? void 0 : i.onChange) == null || M.call(i, w);
224
224
  }
225
- const _ = /* @__PURE__ */ x("span", { className: S("bbn-switcher", o && "bbn-switcher-disabled", a), children: [
226
- u(N),
225
+ const _ = /* @__PURE__ */ N("span", { className: E("bbn-switcher", o && "bbn-switcher-disabled", a), children: [
226
+ u(x),
227
227
  /* @__PURE__ */ c(
228
228
  "input",
229
229
  {
@@ -231,19 +231,19 @@ const al = ({
231
231
  type: l,
232
232
  disabled: o,
233
233
  className: "bbn-switcher-input",
234
- ...p,
234
+ ...m,
235
235
  ...i,
236
- checked: N,
237
- onChange: y
236
+ checked: x,
237
+ onChange: b
238
238
  }
239
239
  )
240
240
  ] });
241
- return t ? /* @__PURE__ */ x(
241
+ return t ? /* @__PURE__ */ N(
242
242
  W,
243
243
  {
244
244
  as: "label",
245
245
  variant: "body1",
246
- className: S(
246
+ className: E(
247
247
  "bbn-switcher-label",
248
248
  s === "left" ? "bbn-switcher-left" : "bbn-switcher-right",
249
249
  f
@@ -270,7 +270,7 @@ const al = ({
270
270
  }
271
271
  ) })
272
272
  }, Ri = De(function(t, r) {
273
- return /* @__PURE__ */ c(Vn, { ref: r, ...t, inputType: "checkbox", renderIcon: (n) => Bi[n.toString()] });
273
+ return /* @__PURE__ */ c(Ln, { ref: r, ...t, inputType: "checkbox", renderIcon: (n) => Bi[n.toString()] });
274
274
  }), ji = {
275
275
  true: /* @__PURE__ */ c("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ c(
276
276
  "path",
@@ -287,15 +287,15 @@ const al = ({
287
287
  }
288
288
  ) })
289
289
  }, Ii = De(function(t, r) {
290
- return /* @__PURE__ */ c(Vn, { ref: r, ...t, inputType: "radio", renderIcon: (n) => ji[n.toString()] });
290
+ return /* @__PURE__ */ c(Ln, { ref: r, ...t, inputType: "radio", renderIcon: (n) => ji[n.toString()] });
291
291
  });
292
- var _n = {
292
+ var Vn = {
293
293
  color: void 0,
294
294
  size: void 0,
295
295
  className: void 0,
296
296
  style: void 0,
297
297
  attr: void 0
298
- }, Xr = R.createContext && /* @__PURE__ */ R.createContext(_n), $i = ["attr", "size", "title"];
298
+ }, Xr = R.createContext && /* @__PURE__ */ R.createContext(Vn), $i = ["attr", "size", "title"];
299
299
  function Hi(e, t) {
300
300
  if (e == null) return {};
301
301
  var r = Wi(e, t), n, i;
@@ -364,15 +364,15 @@ function zi(e, t) {
364
364
  }
365
365
  return (t === "string" ? String : Number)(e);
366
366
  }
367
- function Dn(e) {
367
+ function _n(e) {
368
368
  return e && e.map((t, r) => /* @__PURE__ */ R.createElement(t.tag, Kt({
369
369
  key: r
370
- }, t.attr), Dn(t.child)));
370
+ }, t.attr), _n(t.child)));
371
371
  }
372
372
  function Vt(e) {
373
373
  return (t) => /* @__PURE__ */ R.createElement(Zi, Gt({
374
374
  attr: Kt({}, e.attr)
375
- }, t), Dn(e.child));
375
+ }, t), _n(e.child));
376
376
  }
377
377
  function Zi(e) {
378
378
  var t = (r) => {
@@ -395,7 +395,7 @@ function Zi(e) {
395
395
  xmlns: "http://www.w3.org/2000/svg"
396
396
  }), s && /* @__PURE__ */ R.createElement("title", null, s), e.children);
397
397
  };
398
- return Xr !== void 0 ? /* @__PURE__ */ R.createElement(Xr.Consumer, null, (r) => t(r)) : t(_n);
398
+ return Xr !== void 0 ? /* @__PURE__ */ R.createElement(Xr.Consumer, null, (r) => t(r)) : t(Vn);
399
399
  }
400
400
  function Xi(e) {
401
401
  return Vt({ attr: { viewBox: "0 0 24 24", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M12 16L6 10H18L12 16Z" }, child: [] }] })(e);
@@ -411,10 +411,10 @@ var Gr = function(t) {
411
411
  var i = n[0], s = n[1];
412
412
  return r[i] = s, r;
413
413
  }, {});
414
- }, Kr = typeof window < "u" && window.document && window.document.createElement ? Pe.useLayoutEffect : Pe.useEffect, de = "top", we = "bottom", xe = "right", he = "left", kr = "auto", _t = [de, we, xe, he], lt = "start", Ot = "end", Ki = "clippingParents", Tn = "viewport", bt = "popper", Ji = "reference", Jr = /* @__PURE__ */ _t.reduce(function(e, t) {
415
- return e.concat([t + "-" + lt, t + "-" + Ot]);
416
- }, []), Mn = /* @__PURE__ */ [].concat(_t, [kr]).reduce(function(e, t) {
417
- return e.concat([t, t + "-" + lt, t + "-" + Ot]);
414
+ }, Kr = typeof window < "u" && window.document && window.document.createElement ? Pe.useLayoutEffect : Pe.useEffect, de = "top", we = "bottom", xe = "right", he = "left", kr = "auto", _t = [de, we, xe, he], ct = "start", Et = "end", Ki = "clippingParents", Dn = "viewport", yt = "popper", Ji = "reference", Jr = /* @__PURE__ */ _t.reduce(function(e, t) {
415
+ return e.concat([t + "-" + ct, t + "-" + Et]);
416
+ }, []), Tn = /* @__PURE__ */ [].concat(_t, [kr]).reduce(function(e, t) {
417
+ return e.concat([t, t + "-" + ct, t + "-" + Et]);
418
418
  }, []), Qi = "beforeRead", es = "read", ts = "afterRead", rs = "beforeMain", ns = "main", is = "afterMain", ss = "beforeWrite", os = "write", as = "afterWrite", ls = [Qi, es, ts, rs, ns, is, ss, os, as];
419
419
  function Ve(e) {
420
420
  return e ? (e.nodeName || "").toLowerCase() : null;
@@ -487,34 +487,34 @@ const fs = {
487
487
  function Le(e) {
488
488
  return e.split("-")[0];
489
489
  }
490
- var Je = Math.max, Jt = Math.min, ct = Math.round;
491
- function mr() {
490
+ var Je = Math.max, Jt = Math.min, ut = Math.round;
491
+ function pr() {
492
492
  var e = navigator.userAgentData;
493
493
  return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
494
494
  return t.brand + "/" + t.version;
495
495
  }).join(" ") : navigator.userAgent;
496
496
  }
497
- function Pn() {
498
- return !/^((?!chrome|android).)*safari/i.test(mr());
497
+ function Mn() {
498
+ return !/^((?!chrome|android).)*safari/i.test(pr());
499
499
  }
500
- function ut(e, t, r) {
500
+ function ft(e, t, r) {
501
501
  t === void 0 && (t = !1), r === void 0 && (r = !1);
502
502
  var n = e.getBoundingClientRect(), i = 1, s = 1;
503
- t && ye(e) && (i = e.offsetWidth > 0 && ct(n.width) / e.offsetWidth || 1, s = e.offsetHeight > 0 && ct(n.height) / e.offsetHeight || 1);
504
- var o = et(e) ? ve(e) : window, a = o.visualViewport, l = !Pn() && r, f = (n.left + (l && a ? a.offsetLeft : 0)) / i, u = (n.top + (l && a ? a.offsetTop : 0)) / s, d = n.width / i, p = n.height / s;
503
+ t && ye(e) && (i = e.offsetWidth > 0 && ut(n.width) / e.offsetWidth || 1, s = e.offsetHeight > 0 && ut(n.height) / e.offsetHeight || 1);
504
+ var o = et(e) ? ve(e) : window, a = o.visualViewport, l = !Mn() && r, f = (n.left + (l && a ? a.offsetLeft : 0)) / i, u = (n.top + (l && a ? a.offsetTop : 0)) / s, d = n.width / i, m = n.height / s;
505
505
  return {
506
506
  width: d,
507
- height: p,
507
+ height: m,
508
508
  top: u,
509
509
  right: f + d,
510
- bottom: u + p,
510
+ bottom: u + m,
511
511
  left: f,
512
512
  x: f,
513
513
  y: u
514
514
  };
515
515
  }
516
516
  function Er(e) {
517
- var t = ut(e), r = e.offsetWidth, n = e.offsetHeight;
517
+ var t = ft(e), r = e.offsetWidth, n = e.offsetHeight;
518
518
  return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
519
519
  x: e.offsetLeft,
520
520
  y: e.offsetTop,
@@ -522,7 +522,7 @@ function Er(e) {
522
522
  height: n
523
523
  };
524
524
  }
525
- function Bn(e, t) {
525
+ function Pn(e, t) {
526
526
  var r = t.getRootNode && t.getRootNode();
527
527
  if (e.contains(t))
528
528
  return !0;
@@ -565,7 +565,7 @@ function Qr(e) {
565
565
  Re(e).position === "fixed" ? null : e.offsetParent;
566
566
  }
567
567
  function hs(e) {
568
- var t = /firefox/i.test(mr()), r = /Trident/i.test(mr());
568
+ var t = /firefox/i.test(pr()), r = /Trident/i.test(pr());
569
569
  if (r && ye(e)) {
570
570
  var n = Re(e);
571
571
  if (n.position === "fixed")
@@ -588,14 +588,14 @@ function Dt(e) {
588
588
  function Sr(e) {
589
589
  return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
590
590
  }
591
- function xt(e, t, r) {
591
+ function Nt(e, t, r) {
592
592
  return Je(e, Jt(t, r));
593
593
  }
594
- function ps(e, t, r) {
595
- var n = xt(e, t, r);
594
+ function ms(e, t, r) {
595
+ var n = Nt(e, t, r);
596
596
  return n > r ? r : n;
597
597
  }
598
- function Rn() {
598
+ function Bn() {
599
599
  return {
600
600
  top: 0,
601
601
  right: 0,
@@ -603,29 +603,29 @@ function Rn() {
603
603
  left: 0
604
604
  };
605
605
  }
606
- function jn(e) {
607
- return Object.assign({}, Rn(), e);
606
+ function Rn(e) {
607
+ return Object.assign({}, Bn(), e);
608
608
  }
609
- function In(e, t) {
609
+ function jn(e, t) {
610
610
  return t.reduce(function(r, n) {
611
611
  return r[n] = e, r;
612
612
  }, {});
613
613
  }
614
- var ms = function(t, r) {
614
+ var ps = function(t, r) {
615
615
  return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
616
616
  placement: r.placement
617
- })) : t, jn(typeof t != "number" ? t : In(t, _t));
617
+ })) : t, Rn(typeof t != "number" ? t : jn(t, _t));
618
618
  };
619
619
  function vs(e) {
620
620
  var t, r = e.state, n = e.name, i = e.options, s = r.elements.arrow, o = r.modifiersData.popperOffsets, a = Le(r.placement), l = Sr(a), f = [he, xe].indexOf(a) >= 0, u = f ? "height" : "width";
621
621
  if (!(!s || !o)) {
622
- var d = ms(i.padding, r), p = Er(s), v = l === "y" ? de : he, N = l === "y" ? we : xe, b = r.rects.reference[u] + r.rects.reference[l] - o[l] - r.rects.popper[u], y = o[l] - r.rects.reference[l], _ = Dt(s), w = _ ? l === "y" ? _.clientHeight || 0 : _.clientWidth || 0 : 0, M = b / 2 - y / 2, E = d[v], F = w - p[u] - d[N], L = w / 2 - p[u] / 2 + M, k = xt(E, L, F), $ = l;
622
+ var d = ps(i.padding, r), m = Er(s), v = l === "y" ? de : he, x = l === "y" ? we : xe, y = r.rects.reference[u] + r.rects.reference[l] - o[l] - r.rects.popper[u], b = o[l] - r.rects.reference[l], _ = Dt(s), w = _ ? l === "y" ? _.clientHeight || 0 : _.clientWidth || 0 : 0, M = y / 2 - b / 2, S = d[v], F = w - m[u] - d[x], L = w / 2 - m[u] / 2 + M, k = Nt(S, L, F), $ = l;
623
623
  r.modifiersData[n] = (t = {}, t[$] = k, t.centerOffset = k - L, t);
624
624
  }
625
625
  }
626
626
  function gs(e) {
627
627
  var t = e.state, r = e.options, n = r.element, i = n === void 0 ? "[data-popper-arrow]" : n;
628
- i != null && (typeof i == "string" && (i = t.elements.popper.querySelector(i), !i) || Bn(t.elements.popper, i) && (t.elements.arrow = i));
628
+ i != null && (typeof i == "string" && (i = t.elements.popper.querySelector(i), !i) || Pn(t.elements.popper, i) && (t.elements.arrow = i));
629
629
  }
630
630
  const bs = {
631
631
  name: "arrow",
@@ -636,7 +636,7 @@ const bs = {
636
636
  requires: ["popperOffsets"],
637
637
  requiresIfExists: ["preventOverflow"]
638
638
  };
639
- function ft(e) {
639
+ function dt(e) {
640
640
  return e.split("-")[1];
641
641
  }
642
642
  var ys = {
@@ -648,31 +648,31 @@ var ys = {
648
648
  function ws(e, t) {
649
649
  var r = e.x, n = e.y, i = t.devicePixelRatio || 1;
650
650
  return {
651
- x: ct(r * i) / i || 0,
652
- y: ct(n * i) / i || 0
651
+ x: ut(r * i) / i || 0,
652
+ y: ut(n * i) / i || 0
653
653
  };
654
654
  }
655
655
  function en(e) {
656
- var t, r = e.popper, n = e.popperRect, i = e.placement, s = e.variation, o = e.offsets, a = e.position, l = e.gpuAcceleration, f = e.adaptive, u = e.roundOffsets, d = e.isFixed, p = o.x, v = p === void 0 ? 0 : p, N = o.y, b = N === void 0 ? 0 : N, y = typeof u == "function" ? u({
656
+ var t, r = e.popper, n = e.popperRect, i = e.placement, s = e.variation, o = e.offsets, a = e.position, l = e.gpuAcceleration, f = e.adaptive, u = e.roundOffsets, d = e.isFixed, m = o.x, v = m === void 0 ? 0 : m, x = o.y, y = x === void 0 ? 0 : x, b = typeof u == "function" ? u({
657
657
  x: v,
658
- y: b
658
+ y
659
659
  }) : {
660
660
  x: v,
661
- y: b
661
+ y
662
662
  };
663
- v = y.x, b = y.y;
664
- var _ = o.hasOwnProperty("x"), w = o.hasOwnProperty("y"), M = he, E = de, F = window;
663
+ v = b.x, y = b.y;
664
+ var _ = o.hasOwnProperty("x"), w = o.hasOwnProperty("y"), M = he, S = de, F = window;
665
665
  if (f) {
666
666
  var L = Dt(r), k = "clientHeight", $ = "clientWidth";
667
- if (L === ve(r) && (L = qe(r), Re(L).position !== "static" && a === "absolute" && (k = "scrollHeight", $ = "scrollWidth")), L = L, i === de || (i === he || i === xe) && s === Ot) {
668
- E = we;
667
+ if (L === ve(r) && (L = qe(r), Re(L).position !== "static" && a === "absolute" && (k = "scrollHeight", $ = "scrollWidth")), L = L, i === de || (i === he || i === xe) && s === Et) {
668
+ S = we;
669
669
  var j = d && L === F && F.visualViewport ? F.visualViewport.height : (
670
670
  // $FlowFixMe[prop-missing]
671
671
  L[k]
672
672
  );
673
- b -= j - n.height, b *= l ? 1 : -1;
673
+ y -= j - n.height, y *= l ? 1 : -1;
674
674
  }
675
- if (i === he || (i === de || i === we) && s === Ot) {
675
+ if (i === he || (i === de || i === we) && s === Et) {
676
676
  M = xe;
677
677
  var H = d && L === F && F.visualViewport ? F.visualViewport.width : (
678
678
  // $FlowFixMe[prop-missing]
@@ -685,21 +685,21 @@ function en(e) {
685
685
  position: a
686
686
  }, f && ys), D = u === !0 ? ws({
687
687
  x: v,
688
- y: b
688
+ y
689
689
  }, ve(r)) : {
690
690
  x: v,
691
- y: b
691
+ y
692
692
  };
693
- if (v = D.x, b = D.y, l) {
693
+ if (v = D.x, y = D.y, l) {
694
694
  var I;
695
- return Object.assign({}, B, (I = {}, I[E] = w ? "0" : "", I[M] = _ ? "0" : "", I.transform = (F.devicePixelRatio || 1) <= 1 ? "translate(" + v + "px, " + b + "px)" : "translate3d(" + v + "px, " + b + "px, 0)", I));
695
+ return Object.assign({}, B, (I = {}, I[S] = w ? "0" : "", I[M] = _ ? "0" : "", I.transform = (F.devicePixelRatio || 1) <= 1 ? "translate(" + v + "px, " + y + "px)" : "translate3d(" + v + "px, " + y + "px, 0)", I));
696
696
  }
697
- return Object.assign({}, B, (t = {}, t[E] = w ? b + "px" : "", t[M] = _ ? v + "px" : "", t.transform = "", t));
697
+ return Object.assign({}, B, (t = {}, t[S] = w ? y + "px" : "", t[M] = _ ? v + "px" : "", t.transform = "", t));
698
698
  }
699
699
  function xs(e) {
700
700
  var t = e.state, r = e.options, n = r.gpuAcceleration, i = n === void 0 ? !0 : n, s = r.adaptive, o = s === void 0 ? !0 : s, a = r.roundOffsets, l = a === void 0 ? !0 : a, f = {
701
701
  placement: Le(t.placement),
702
- variation: ft(t.placement),
702
+ variation: dt(t.placement),
703
703
  popper: t.elements.popper,
704
704
  popperRect: t.rects.popper,
705
705
  gpuAcceleration: i,
@@ -776,13 +776,13 @@ function Ar(e) {
776
776
  };
777
777
  }
778
778
  function Fr(e) {
779
- return ut(qe(e)).left + Ar(e).scrollLeft;
779
+ return ft(qe(e)).left + Ar(e).scrollLeft;
780
780
  }
781
781
  function Ss(e, t) {
782
782
  var r = ve(e), n = qe(e), i = r.visualViewport, s = n.clientWidth, o = n.clientHeight, a = 0, l = 0;
783
783
  if (i) {
784
784
  s = i.width, o = i.height;
785
- var f = Pn();
785
+ var f = Mn();
786
786
  (f || !f && t === "fixed") && (a = i.offsetLeft, l = i.offsetTop);
787
787
  }
788
788
  return {
@@ -805,16 +805,16 @@ function Lr(e) {
805
805
  var t = Re(e), r = t.overflow, n = t.overflowX, i = t.overflowY;
806
806
  return /auto|scroll|overlay|hidden/.test(r + i + n);
807
807
  }
808
- function $n(e) {
809
- return ["html", "body", "#document"].indexOf(Ve(e)) >= 0 ? e.ownerDocument.body : ye(e) && Lr(e) ? e : $n(or(e));
808
+ function In(e) {
809
+ return ["html", "body", "#document"].indexOf(Ve(e)) >= 0 ? e.ownerDocument.body : ye(e) && Lr(e) ? e : In(or(e));
810
810
  }
811
- function Nt(e, t) {
811
+ function Ct(e, t) {
812
812
  var r;
813
813
  t === void 0 && (t = []);
814
- var n = $n(e), i = n === ((r = e.ownerDocument) == null ? void 0 : r.body), s = ve(n), o = i ? [s].concat(s.visualViewport || [], Lr(n) ? n : []) : n, a = t.concat(o);
814
+ var n = In(e), i = n === ((r = e.ownerDocument) == null ? void 0 : r.body), s = ve(n), o = i ? [s].concat(s.visualViewport || [], Lr(n) ? n : []) : n, a = t.concat(o);
815
815
  return i ? a : (
816
816
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
817
- a.concat(Nt(or(o)))
817
+ a.concat(Ct(or(o)))
818
818
  );
819
819
  }
820
820
  function vr(e) {
@@ -826,16 +826,16 @@ function vr(e) {
826
826
  });
827
827
  }
828
828
  function Fs(e, t) {
829
- var r = ut(e, !1, t === "fixed");
829
+ var r = ft(e, !1, t === "fixed");
830
830
  return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
831
831
  }
832
832
  function rn(e, t, r) {
833
- return t === Tn ? vr(Ss(e, r)) : et(t) ? Fs(t, r) : vr(As(qe(e)));
833
+ return t === Dn ? vr(Ss(e, r)) : et(t) ? Fs(t, r) : vr(As(qe(e)));
834
834
  }
835
835
  function Ls(e) {
836
- var t = Nt(or(e)), r = ["absolute", "fixed"].indexOf(Re(e).position) >= 0, n = r && ye(e) ? Dt(e) : e;
836
+ var t = Ct(or(e)), r = ["absolute", "fixed"].indexOf(Re(e).position) >= 0, n = r && ye(e) ? Dt(e) : e;
837
837
  return et(n) ? t.filter(function(i) {
838
- return et(i) && Bn(i, n) && Ve(i) !== "body";
838
+ return et(i) && Pn(i, n) && Ve(i) !== "body";
839
839
  }) : [];
840
840
  }
841
841
  function Vs(e, t, r, n) {
@@ -845,8 +845,8 @@ function Vs(e, t, r, n) {
845
845
  }, rn(e, o, n));
846
846
  return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
847
847
  }
848
- function Hn(e) {
849
- var t = e.reference, r = e.element, n = e.placement, i = n ? Le(n) : null, s = n ? ft(n) : null, o = t.x + t.width / 2 - r.width / 2, a = t.y + t.height / 2 - r.height / 2, l;
848
+ function $n(e) {
849
+ var t = e.reference, r = e.element, n = e.placement, i = n ? Le(n) : null, s = n ? dt(n) : null, o = t.x + t.width / 2 - r.width / 2, a = t.y + t.height / 2 - r.height / 2, l;
850
850
  switch (i) {
851
851
  case de:
852
852
  l = {
@@ -882,29 +882,29 @@ function Hn(e) {
882
882
  if (f != null) {
883
883
  var u = f === "y" ? "height" : "width";
884
884
  switch (s) {
885
- case lt:
885
+ case ct:
886
886
  l[f] = l[f] - (t[u] / 2 - r[u] / 2);
887
887
  break;
888
- case Ot:
888
+ case Et:
889
889
  l[f] = l[f] + (t[u] / 2 - r[u] / 2);
890
890
  break;
891
891
  }
892
892
  }
893
893
  return l;
894
894
  }
895
- function Et(e, t) {
895
+ function St(e, t) {
896
896
  t === void 0 && (t = {});
897
- var r = t, n = r.placement, i = n === void 0 ? e.placement : n, s = r.strategy, o = s === void 0 ? e.strategy : s, a = r.boundary, l = a === void 0 ? Ki : a, f = r.rootBoundary, u = f === void 0 ? Tn : f, d = r.elementContext, p = d === void 0 ? bt : d, v = r.altBoundary, N = v === void 0 ? !1 : v, b = r.padding, y = b === void 0 ? 0 : b, _ = jn(typeof y != "number" ? y : In(y, _t)), w = p === bt ? Ji : bt, M = e.rects.popper, E = e.elements[N ? w : p], F = Vs(et(E) ? E : E.contextElement || qe(e.elements.popper), l, u, o), L = ut(e.elements.reference), k = Hn({
897
+ var r = t, n = r.placement, i = n === void 0 ? e.placement : n, s = r.strategy, o = s === void 0 ? e.strategy : s, a = r.boundary, l = a === void 0 ? Ki : a, f = r.rootBoundary, u = f === void 0 ? Dn : f, d = r.elementContext, m = d === void 0 ? yt : d, v = r.altBoundary, x = v === void 0 ? !1 : v, y = r.padding, b = y === void 0 ? 0 : y, _ = Rn(typeof b != "number" ? b : jn(b, _t)), w = m === yt ? Ji : yt, M = e.rects.popper, S = e.elements[x ? w : m], F = Vs(et(S) ? S : S.contextElement || qe(e.elements.popper), l, u, o), L = ft(e.elements.reference), k = $n({
898
898
  reference: L,
899
899
  element: M,
900
900
  placement: i
901
- }), $ = vr(Object.assign({}, M, k)), j = p === bt ? $ : L, H = {
901
+ }), $ = vr(Object.assign({}, M, k)), j = m === yt ? $ : L, H = {
902
902
  top: F.top - j.top + _.top,
903
903
  bottom: j.bottom - F.bottom + _.bottom,
904
904
  left: F.left - j.left + _.left,
905
905
  right: j.right - F.right + _.right
906
906
  }, B = e.modifiersData.offset;
907
- if (p === bt && B) {
907
+ if (m === yt && B) {
908
908
  var D = B[i];
909
909
  Object.keys(H).forEach(function(I) {
910
910
  var q = [xe, we].indexOf(I) >= 0 ? 1 : -1, J = [de, we].indexOf(I) >= 0 ? "y" : "x";
@@ -915,22 +915,22 @@ function Et(e, t) {
915
915
  }
916
916
  function _s(e, t) {
917
917
  t === void 0 && (t = {});
918
- var r = t, n = r.placement, i = r.boundary, s = r.rootBoundary, o = r.padding, a = r.flipVariations, l = r.allowedAutoPlacements, f = l === void 0 ? Mn : l, u = ft(n), d = u ? a ? Jr : Jr.filter(function(N) {
919
- return ft(N) === u;
920
- }) : _t, p = d.filter(function(N) {
921
- return f.indexOf(N) >= 0;
918
+ var r = t, n = r.placement, i = r.boundary, s = r.rootBoundary, o = r.padding, a = r.flipVariations, l = r.allowedAutoPlacements, f = l === void 0 ? Tn : l, u = dt(n), d = u ? a ? Jr : Jr.filter(function(x) {
919
+ return dt(x) === u;
920
+ }) : _t, m = d.filter(function(x) {
921
+ return f.indexOf(x) >= 0;
922
922
  });
923
- p.length === 0 && (p = d);
924
- var v = p.reduce(function(N, b) {
925
- return N[b] = Et(e, {
926
- placement: b,
923
+ m.length === 0 && (m = d);
924
+ var v = m.reduce(function(x, y) {
925
+ return x[y] = St(e, {
926
+ placement: y,
927
927
  boundary: i,
928
928
  rootBoundary: s,
929
929
  padding: o
930
- })[Le(b)], N;
930
+ })[Le(y)], x;
931
931
  }, {});
932
- return Object.keys(v).sort(function(N, b) {
933
- return v[N] - v[b];
932
+ return Object.keys(v).sort(function(x, y) {
933
+ return v[x] - v[y];
934
934
  });
935
935
  }
936
936
  function Ds(e) {
@@ -942,21 +942,21 @@ function Ds(e) {
942
942
  function Ts(e) {
943
943
  var t = e.state, r = e.options, n = e.name;
944
944
  if (!t.modifiersData[n]._skip) {
945
- for (var i = r.mainAxis, s = i === void 0 ? !0 : i, o = r.altAxis, a = o === void 0 ? !0 : o, l = r.fallbackPlacements, f = r.padding, u = r.boundary, d = r.rootBoundary, p = r.altBoundary, v = r.flipVariations, N = v === void 0 ? !0 : v, b = r.allowedAutoPlacements, y = t.options.placement, _ = Le(y), w = _ === y, M = l || (w || !N ? [qt(y)] : Ds(y)), E = [y].concat(M).reduce(function(je, Ce) {
945
+ for (var i = r.mainAxis, s = i === void 0 ? !0 : i, o = r.altAxis, a = o === void 0 ? !0 : o, l = r.fallbackPlacements, f = r.padding, u = r.boundary, d = r.rootBoundary, m = r.altBoundary, v = r.flipVariations, x = v === void 0 ? !0 : v, y = r.allowedAutoPlacements, b = t.options.placement, _ = Le(b), w = _ === b, M = l || (w || !x ? [qt(b)] : Ds(b)), S = [b].concat(M).reduce(function(je, Ce) {
946
946
  return je.concat(Le(Ce) === kr ? _s(t, {
947
947
  placement: Ce,
948
948
  boundary: u,
949
949
  rootBoundary: d,
950
950
  padding: f,
951
- flipVariations: N,
952
- allowedAutoPlacements: b
951
+ flipVariations: x,
952
+ allowedAutoPlacements: y
953
953
  }) : Ce);
954
- }, []), F = t.rects.reference, L = t.rects.popper, k = /* @__PURE__ */ new Map(), $ = !0, j = E[0], H = 0; H < E.length; H++) {
955
- var B = E[H], D = Le(B), I = ft(B) === lt, q = [de, we].indexOf(D) >= 0, J = q ? "width" : "height", X = Et(t, {
954
+ }, []), F = t.rects.reference, L = t.rects.popper, k = /* @__PURE__ */ new Map(), $ = !0, j = S[0], H = 0; H < S.length; H++) {
955
+ var B = S[H], D = Le(B), I = dt(B) === ct, q = [de, we].indexOf(D) >= 0, J = q ? "width" : "height", X = St(t, {
956
956
  placement: B,
957
957
  boundary: u,
958
958
  rootBoundary: d,
959
- altBoundary: p,
959
+ altBoundary: m,
960
960
  padding: f
961
961
  }), Q = q ? I ? xe : he : I ? we : de;
962
962
  F[J] > L[J] && (Q = qt(Q));
@@ -970,8 +970,8 @@ function Ts(e) {
970
970
  k.set(B, ue);
971
971
  }
972
972
  if ($)
973
- for (var Te = N ? 3 : 1, it = function(Ce) {
974
- var Xe = E.find(function(Ie) {
973
+ for (var Te = x ? 3 : 1, st = function(Ce) {
974
+ var Xe = S.find(function(Ie) {
975
975
  var Se = k.get(Ie);
976
976
  if (Se)
977
977
  return Se.slice(0, Ce).every(function(Ye) {
@@ -981,7 +981,7 @@ function Ts(e) {
981
981
  if (Xe)
982
982
  return j = Xe, "break";
983
983
  }, ze = Te; ze > 0; ze--) {
984
- var Ze = it(ze);
984
+ var Ze = st(ze);
985
985
  if (Ze === "break") break;
986
986
  }
987
987
  t.placement !== j && (t.modifiersData[n]._skip = !0, t.placement = j, t.reset = !0);
@@ -1014,9 +1014,9 @@ function sn(e) {
1014
1014
  });
1015
1015
  }
1016
1016
  function Ps(e) {
1017
- var t = e.state, r = e.name, n = t.rects.reference, i = t.rects.popper, s = t.modifiersData.preventOverflow, o = Et(t, {
1017
+ var t = e.state, r = e.name, n = t.rects.reference, i = t.rects.popper, s = t.modifiersData.preventOverflow, o = St(t, {
1018
1018
  elementContext: "reference"
1019
- }), a = Et(t, {
1019
+ }), a = St(t, {
1020
1020
  altBoundary: !0
1021
1021
  }), l = nn(o, n), f = nn(a, i, s), u = sn(l), d = sn(f);
1022
1022
  t.modifiersData[r] = {
@@ -1049,7 +1049,7 @@ function Rs(e, t, r) {
1049
1049
  };
1050
1050
  }
1051
1051
  function js(e) {
1052
- var t = e.state, r = e.options, n = e.name, i = r.offset, s = i === void 0 ? [0, 0] : i, o = Mn.reduce(function(u, d) {
1052
+ var t = e.state, r = e.options, n = e.name, i = r.offset, s = i === void 0 ? [0, 0] : i, o = Tn.reduce(function(u, d) {
1053
1053
  return u[d] = Rs(d, t.rects, s), u;
1054
1054
  }, {}), a = o[t.placement], l = a.x, f = a.y;
1055
1055
  t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += l, t.modifiersData.popperOffsets.y += f), t.modifiersData[n] = o;
@@ -1063,7 +1063,7 @@ const Is = {
1063
1063
  };
1064
1064
  function $s(e) {
1065
1065
  var t = e.state, r = e.name;
1066
- t.modifiersData[r] = Hn({
1066
+ t.modifiersData[r] = $n({
1067
1067
  reference: t.rects.reference,
1068
1068
  element: t.rects.popper,
1069
1069
  placement: t.placement
@@ -1080,14 +1080,14 @@ function Ws(e) {
1080
1080
  return e === "x" ? "y" : "x";
1081
1081
  }
1082
1082
  function Us(e) {
1083
- var t = e.state, r = e.options, n = e.name, i = r.mainAxis, s = i === void 0 ? !0 : i, o = r.altAxis, a = o === void 0 ? !1 : o, l = r.boundary, f = r.rootBoundary, u = r.altBoundary, d = r.padding, p = r.tether, v = p === void 0 ? !0 : p, N = r.tetherOffset, b = N === void 0 ? 0 : N, y = Et(t, {
1083
+ var t = e.state, r = e.options, n = e.name, i = r.mainAxis, s = i === void 0 ? !0 : i, o = r.altAxis, a = o === void 0 ? !1 : o, l = r.boundary, f = r.rootBoundary, u = r.altBoundary, d = r.padding, m = r.tether, v = m === void 0 ? !0 : m, x = r.tetherOffset, y = x === void 0 ? 0 : x, b = St(t, {
1084
1084
  boundary: l,
1085
1085
  rootBoundary: f,
1086
1086
  padding: d,
1087
1087
  altBoundary: u
1088
- }), _ = Le(t.placement), w = ft(t.placement), M = !w, E = Sr(_), F = Ws(E), L = t.modifiersData.popperOffsets, k = t.rects.reference, $ = t.rects.popper, j = typeof b == "function" ? b(Object.assign({}, t.rects, {
1088
+ }), _ = Le(t.placement), w = dt(t.placement), M = !w, S = Sr(_), F = Ws(S), L = t.modifiersData.popperOffsets, k = t.rects.reference, $ = t.rects.popper, j = typeof y == "function" ? y(Object.assign({}, t.rects, {
1089
1089
  placement: t.placement
1090
- })) : b, H = typeof j == "number" ? {
1090
+ })) : y, H = typeof j == "number" ? {
1091
1091
  mainAxis: j,
1092
1092
  altAxis: j
1093
1093
  } : Object.assign({
@@ -1099,14 +1099,14 @@ function Us(e) {
1099
1099
  };
1100
1100
  if (L) {
1101
1101
  if (s) {
1102
- var I, q = E === "y" ? de : he, J = E === "y" ? we : xe, X = E === "y" ? "height" : "width", Q = L[E], Ee = Q + y[q], ue = Q - y[J], Te = v ? -$[X] / 2 : 0, it = w === lt ? k[X] : $[X], ze = w === lt ? -$[X] : -k[X], Ze = t.elements.arrow, je = v && Ze ? Er(Ze) : {
1102
+ var I, q = S === "y" ? de : he, J = S === "y" ? we : xe, X = S === "y" ? "height" : "width", Q = L[S], Ee = Q + b[q], ue = Q - b[J], Te = v ? -$[X] / 2 : 0, st = w === ct ? k[X] : $[X], ze = w === ct ? -$[X] : -k[X], Ze = t.elements.arrow, je = v && Ze ? Er(Ze) : {
1103
1103
  width: 0,
1104
1104
  height: 0
1105
- }, Ce = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Rn(), Xe = Ce[q], Ie = Ce[J], Se = xt(0, k[X], je[X]), Ye = M ? k[X] / 2 - Te - Se - Xe - H.mainAxis : it - Se - Xe - H.mainAxis, vt = M ? -k[X] / 2 + Te + Se + Ie + H.mainAxis : ze + Se + Ie + H.mainAxis, gt = t.elements.arrow && Dt(t.elements.arrow), Mt = gt ? E === "y" ? gt.clientTop || 0 : gt.clientLeft || 0 : 0, Pt = (I = B == null ? void 0 : B[E]) != null ? I : 0, Bt = Q + Ye - Pt - Mt, Rt = Q + vt - Pt, jt = xt(v ? Jt(Ee, Bt) : Ee, Q, v ? Je(ue, Rt) : ue);
1106
- L[E] = jt, D[E] = jt - Q;
1105
+ }, Ce = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Bn(), Xe = Ce[q], Ie = Ce[J], Se = Nt(0, k[X], je[X]), Ye = M ? k[X] / 2 - Te - Se - Xe - H.mainAxis : st - Se - Xe - H.mainAxis, gt = M ? -k[X] / 2 + Te + Se + Ie + H.mainAxis : ze + Se + Ie + H.mainAxis, bt = t.elements.arrow && Dt(t.elements.arrow), Mt = bt ? S === "y" ? bt.clientTop || 0 : bt.clientLeft || 0 : 0, Pt = (I = B == null ? void 0 : B[S]) != null ? I : 0, Bt = Q + Ye - Pt - Mt, Rt = Q + gt - Pt, jt = Nt(v ? Jt(Ee, Bt) : Ee, Q, v ? Je(ue, Rt) : ue);
1106
+ L[S] = jt, D[S] = jt - Q;
1107
1107
  }
1108
1108
  if (a) {
1109
- var It, qr = E === "x" ? de : he, $t = E === "x" ? we : xe, h = L[F], m = F === "y" ? "height" : "width", g = h + y[qr], V = h - y[$t], O = [de, he].indexOf(_) !== -1, C = (It = B == null ? void 0 : B[F]) != null ? It : 0, P = O ? g : h - k[m] - $[m] - C + H.altAxis, U = O ? h + k[m] + $[m] - C - H.altAxis : V, z = v && O ? ps(P, h, U) : xt(v ? P : g, h, v ? U : V);
1109
+ var It, qr = S === "x" ? de : he, $t = S === "x" ? we : xe, h = L[F], p = F === "y" ? "height" : "width", g = h + b[qr], V = h - b[$t], O = [de, he].indexOf(_) !== -1, C = (It = B == null ? void 0 : B[F]) != null ? It : 0, P = O ? g : h - k[p] - $[p] - C + H.altAxis, U = O ? h + k[p] + $[p] - C - H.altAxis : V, z = v && O ? ms(P, h, U) : Nt(v ? P : g, h, v ? U : V);
1110
1110
  L[F] = z, D[F] = z - h;
1111
1111
  }
1112
1112
  t.modifiersData[n] = D;
@@ -1129,12 +1129,12 @@ function Zs(e) {
1129
1129
  return e === ve(e) || !ye(e) ? Ar(e) : zs(e);
1130
1130
  }
1131
1131
  function Xs(e) {
1132
- var t = e.getBoundingClientRect(), r = ct(t.width) / e.offsetWidth || 1, n = ct(t.height) / e.offsetHeight || 1;
1132
+ var t = e.getBoundingClientRect(), r = ut(t.width) / e.offsetWidth || 1, n = ut(t.height) / e.offsetHeight || 1;
1133
1133
  return r !== 1 || n !== 1;
1134
1134
  }
1135
1135
  function Ys(e, t, r) {
1136
1136
  r === void 0 && (r = !1);
1137
- var n = ye(t), i = ye(t) && Xs(t), s = qe(t), o = ut(e, i, r), a = {
1137
+ var n = ye(t), i = ye(t) && Xs(t), s = qe(t), o = ft(e, i, r), a = {
1138
1138
  scrollLeft: 0,
1139
1139
  scrollTop: 0
1140
1140
  }, l = {
@@ -1142,7 +1142,7 @@ function Ys(e, t, r) {
1142
1142
  y: 0
1143
1143
  };
1144
1144
  return (n || !n && !r) && ((Ve(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
1145
- Lr(s)) && (a = Zs(t)), ye(t) ? (l = ut(t, !0), l.x += t.clientLeft, l.y += t.clientTop) : s && (l.x = Fr(s))), {
1145
+ Lr(s)) && (a = Zs(t)), ye(t) ? (l = ft(t, !0), l.x += t.clientLeft, l.y += t.clientTop) : s && (l.x = Fr(s))), {
1146
1146
  x: o.left + a.scrollLeft - l.x,
1147
1147
  y: o.top + a.scrollTop - l.y,
1148
1148
  width: o.width,
@@ -1226,18 +1226,18 @@ function eo(e) {
1226
1226
  },
1227
1227
  attributes: {},
1228
1228
  styles: {}
1229
- }, d = [], p = !1, v = {
1229
+ }, d = [], m = !1, v = {
1230
1230
  state: u,
1231
1231
  setOptions: function(_) {
1232
1232
  var w = typeof _ == "function" ? _(u.options) : _;
1233
- b(), u.options = Object.assign({}, s, u.options, w), u.scrollParents = {
1234
- reference: et(a) ? Nt(a) : a.contextElement ? Nt(a.contextElement) : [],
1235
- popper: Nt(l)
1233
+ y(), u.options = Object.assign({}, s, u.options, w), u.scrollParents = {
1234
+ reference: et(a) ? Ct(a) : a.contextElement ? Ct(a.contextElement) : [],
1235
+ popper: Ct(l)
1236
1236
  };
1237
1237
  var M = Ks(Qs([].concat(n, u.options.modifiers)));
1238
- return u.orderedModifiers = M.filter(function(E) {
1239
- return E.enabled;
1240
- }), N(), v.update();
1238
+ return u.orderedModifiers = M.filter(function(S) {
1239
+ return S.enabled;
1240
+ }), x(), v.update();
1241
1241
  },
1242
1242
  // Sync update – it will always be executed, even if not necessary. This
1243
1243
  // is useful for low frequency updates where sync behavior simplifies the
@@ -1245,7 +1245,7 @@ function eo(e) {
1245
1245
  // For high frequency updates (e.g. `resize` and `scroll` events), always
1246
1246
  // prefer the async Popper#update method
1247
1247
  forceUpdate: function() {
1248
- if (!p) {
1248
+ if (!m) {
1249
1249
  var _ = u.elements, w = _.reference, M = _.popper;
1250
1250
  if (an(w, M)) {
1251
1251
  u.rects = {
@@ -1254,12 +1254,12 @@ function eo(e) {
1254
1254
  }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(H) {
1255
1255
  return u.modifiersData[H.name] = Object.assign({}, H.data);
1256
1256
  });
1257
- for (var E = 0; E < u.orderedModifiers.length; E++) {
1257
+ for (var S = 0; S < u.orderedModifiers.length; S++) {
1258
1258
  if (u.reset === !0) {
1259
- u.reset = !1, E = -1;
1259
+ u.reset = !1, S = -1;
1260
1260
  continue;
1261
1261
  }
1262
- var F = u.orderedModifiers[E], L = F.fn, k = F.options, $ = k === void 0 ? {} : k, j = F.name;
1262
+ var F = u.orderedModifiers[S], L = F.fn, k = F.options, $ = k === void 0 ? {} : k, j = F.name;
1263
1263
  typeof L == "function" && (u = L({
1264
1264
  state: u,
1265
1265
  options: $,
@@ -1273,24 +1273,24 @@ function eo(e) {
1273
1273
  // Async and optimistically optimized update – it will not be executed if
1274
1274
  // not necessary (debounced to run at most once-per-tick)
1275
1275
  update: Js(function() {
1276
- return new Promise(function(y) {
1277
- v.forceUpdate(), y(u);
1276
+ return new Promise(function(b) {
1277
+ v.forceUpdate(), b(u);
1278
1278
  });
1279
1279
  }),
1280
1280
  destroy: function() {
1281
- b(), p = !0;
1281
+ y(), m = !0;
1282
1282
  }
1283
1283
  };
1284
1284
  if (!an(a, l))
1285
1285
  return v;
1286
- v.setOptions(f).then(function(y) {
1287
- !p && f.onFirstUpdate && f.onFirstUpdate(y);
1286
+ v.setOptions(f).then(function(b) {
1287
+ !m && f.onFirstUpdate && f.onFirstUpdate(b);
1288
1288
  });
1289
- function N() {
1290
- u.orderedModifiers.forEach(function(y) {
1291
- var _ = y.name, w = y.options, M = w === void 0 ? {} : w, E = y.effect;
1292
- if (typeof E == "function") {
1293
- var F = E({
1289
+ function x() {
1290
+ u.orderedModifiers.forEach(function(b) {
1291
+ var _ = b.name, w = b.options, M = w === void 0 ? {} : w, S = b.effect;
1292
+ if (typeof S == "function") {
1293
+ var F = S({
1294
1294
  state: u,
1295
1295
  name: _,
1296
1296
  instance: v,
@@ -1301,9 +1301,9 @@ function eo(e) {
1301
1301
  }
1302
1302
  });
1303
1303
  }
1304
- function b() {
1305
- d.forEach(function(y) {
1306
- return y();
1304
+ function y() {
1305
+ d.forEach(function(b) {
1306
+ return b();
1307
1307
  }), d = [];
1308
1308
  }
1309
1309
  return v;
@@ -1312,7 +1312,7 @@ function eo(e) {
1312
1312
  var to = [ks, Hs, Ns, fs, Is, Ms, qs, bs, Bs], ro = /* @__PURE__ */ eo({
1313
1313
  defaultModifiers: to
1314
1314
  }), Ut = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1315
- function Wn(e) {
1315
+ function Hn(e) {
1316
1316
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1317
1317
  }
1318
1318
  var no = typeof Element < "u", io = typeof Map == "function", so = typeof Set == "function", oo = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
@@ -1371,7 +1371,7 @@ var ao = function(t, r) {
1371
1371
  throw n;
1372
1372
  }
1373
1373
  };
1374
- const lo = /* @__PURE__ */ Wn(ao);
1374
+ const lo = /* @__PURE__ */ Hn(ao);
1375
1375
  var co = [], uo = function(t, r, n) {
1376
1376
  n === void 0 && (n = {});
1377
1377
  var i = Pe.useRef(null), s = {
@@ -1397,14 +1397,14 @@ var co = [], uo = function(t, r, n) {
1397
1397
  enabled: !0,
1398
1398
  phase: "write",
1399
1399
  fn: function(v) {
1400
- var N = v.state, b = Object.keys(N.elements);
1400
+ var x = v.state, y = Object.keys(x.elements);
1401
1401
  Ti.flushSync(function() {
1402
1402
  l({
1403
- styles: Gr(b.map(function(y) {
1404
- return [y, N.styles[y] || {}];
1403
+ styles: Gr(y.map(function(b) {
1404
+ return [b, x.styles[b] || {}];
1405
1405
  })),
1406
- attributes: Gr(b.map(function(y) {
1407
- return [y, N.attributes[y]];
1406
+ attributes: Gr(y.map(function(b) {
1407
+ return [b, x.attributes[b]];
1408
1408
  }))
1409
1409
  });
1410
1410
  });
@@ -1412,7 +1412,7 @@ var co = [], uo = function(t, r, n) {
1412
1412
  requires: ["computeStyles"]
1413
1413
  };
1414
1414
  }, []), u = Pe.useMemo(function() {
1415
- var p = {
1415
+ var m = {
1416
1416
  onFirstUpdate: s.onFirstUpdate,
1417
1417
  placement: s.placement,
1418
1418
  strategy: s.strategy,
@@ -1421,13 +1421,13 @@ var co = [], uo = function(t, r, n) {
1421
1421
  enabled: !1
1422
1422
  }])
1423
1423
  };
1424
- return lo(i.current, p) ? i.current || p : (i.current = p, p);
1424
+ return lo(i.current, m) ? i.current || m : (i.current = m, m);
1425
1425
  }, [s.onFirstUpdate, s.placement, s.strategy, s.modifiers, f]), d = Pe.useRef();
1426
1426
  return Kr(function() {
1427
1427
  d.current && d.current.setOptions(u);
1428
1428
  }, [u]), Kr(function() {
1429
1429
  if (!(t == null || r == null)) {
1430
- var p = n.createPopper || ro, v = p(t, r, u);
1430
+ var m = n.createPopper || ro, v = m(t, r, u);
1431
1431
  return d.current = v, function() {
1432
1432
  v.destroy(), d.current = null;
1433
1433
  };
@@ -1476,10 +1476,10 @@ function fo(e, t) {
1476
1476
  return !0;
1477
1477
  }
1478
1478
  function ho(e) {
1479
- const t = rt(e);
1479
+ const t = nt(e);
1480
1480
  return fo(t.current, e) || (t.current = e), t.current;
1481
1481
  }
1482
- function po(e, t = () => null, { enabled: r = !0 } = {}) {
1482
+ function mo(e, t = () => null, { enabled: r = !0 } = {}) {
1483
1483
  const n = Array.isArray(e) ? e : [e], i = ho(n);
1484
1484
  ce(() => {
1485
1485
  function s(o) {
@@ -1490,7 +1490,7 @@ function po(e, t = () => null, { enabled: r = !0 } = {}) {
1490
1490
  };
1491
1491
  }, [i, r, t]);
1492
1492
  }
1493
- function Un({
1493
+ function Wn({
1494
1494
  open: e = !1,
1495
1495
  className: t,
1496
1496
  anchorEl: r,
@@ -1504,9 +1504,9 @@ function Un({
1504
1504
  placement: n,
1505
1505
  modifiers: [{ name: "offset", options: { offset: i } }]
1506
1506
  });
1507
- return po([l, r], a, { enabled: e }), /* @__PURE__ */ c(ar, { mounted: e, children: /* @__PURE__ */ c("div", { ref: f, style: { ...u.popper, ...o }, className: S("bbn-popover", t), children: s }) });
1507
+ return mo([l, r], a, { enabled: e }), /* @__PURE__ */ c(ar, { mounted: e, children: /* @__PURE__ */ c("div", { ref: f, style: { ...u.popper, ...o }, className: E("bbn-popover", t), children: s }) });
1508
1508
  }
1509
- function mo(e) {
1509
+ function po(e) {
1510
1510
  const [t, r] = oe({ width: 0, height: 0 });
1511
1511
  return ce(() => {
1512
1512
  if (!e) {
@@ -1524,7 +1524,7 @@ function mo(e) {
1524
1524
  };
1525
1525
  }, [e]), t;
1526
1526
  }
1527
- const vo = (e) => e.label, qn = De(
1527
+ const vo = (e) => e.label, Un = De(
1528
1528
  ({
1529
1529
  disabled: e,
1530
1530
  className: t,
@@ -1538,54 +1538,54 @@ const vo = (e) => e.label, qn = De(
1538
1538
  popoverClassName: f,
1539
1539
  state: u = "default",
1540
1540
  onOpen: d,
1541
- onSelect: p,
1541
+ onSelect: m,
1542
1542
  onClose: v,
1543
- renderSelectedOption: N = vo,
1544
- ...b
1545
- }, y) => {
1546
- const _ = rt(null);
1547
- Sn(y, () => _.current, []);
1548
- const { width: w } = mo(_.current), [M, E] = ot({
1543
+ renderSelectedOption: x = vo,
1544
+ ...y
1545
+ }, b) => {
1546
+ const _ = nt(null);
1547
+ En(b, () => _.current, []);
1548
+ const { width: w } = po(_.current), [M, S] = at({
1549
1549
  value: s,
1550
1550
  defaultValue: o,
1551
1551
  onStateChange: (B) => void (B ? d == null ? void 0 : d() : v == null ? void 0 : v())
1552
- }), [F, L] = ot({
1552
+ }), [F, L] = at({
1553
1553
  value: r,
1554
1554
  defaultValue: n,
1555
- onStateChange: p
1555
+ onStateChange: m
1556
1556
  }), k = Ue(
1557
1557
  () => a.find((B) => B.value === F),
1558
1558
  [a, F]
1559
1559
  ), $ = ae(
1560
1560
  (B) => {
1561
- L(B.value), E(!1);
1561
+ L(B.value), S(!1);
1562
1562
  },
1563
- [L, E]
1563
+ [L, S]
1564
1564
  ), j = ae(() => {
1565
- E(!1);
1566
- }, [E]), H = ae(() => {
1567
- e || E(!M);
1568
- }, [M, e, E]);
1569
- return /* @__PURE__ */ x(Ft, { children: [
1570
- /* @__PURE__ */ x(
1565
+ S(!1);
1566
+ }, [S]), H = ae(() => {
1567
+ e || S(!M);
1568
+ }, [M, e, S]);
1569
+ return /* @__PURE__ */ N(rt, { children: [
1570
+ /* @__PURE__ */ N(
1571
1571
  "div",
1572
1572
  {
1573
1573
  ref: _,
1574
- className: S("bbn-select", e && "bbn-select-disabled", `bbn-select-${u}`, t),
1574
+ className: E("bbn-select", e && "bbn-select-disabled", `bbn-select-${u}`, t),
1575
1575
  onClick: H,
1576
1576
  tabIndex: e ? -1 : 0,
1577
- ...b,
1577
+ ...y,
1578
1578
  children: [
1579
- /* @__PURE__ */ c("span", { children: k ? N(k) : i }),
1580
- /* @__PURE__ */ c(Yi, { className: S("bbn-select-icon", M && "bbn-select-icon-open"), size: 20 })
1579
+ /* @__PURE__ */ c("span", { children: k ? x(k) : i }),
1580
+ /* @__PURE__ */ c(Yi, { className: E("bbn-select-icon", M && "bbn-select-icon-open"), size: 20 })
1581
1581
  ]
1582
1582
  }
1583
1583
  ),
1584
1584
  /* @__PURE__ */ c(
1585
- Un,
1585
+ Wn,
1586
1586
  {
1587
1587
  anchorEl: _.current,
1588
- className: S("bbn-select-menu custom-scrollbar", f),
1588
+ className: E("bbn-select-menu custom-scrollbar", f),
1589
1589
  open: M && !e,
1590
1590
  onClickOutside: j,
1591
1591
  offset: [0, 4],
@@ -1594,7 +1594,7 @@ const vo = (e) => e.label, qn = De(
1594
1594
  children: a.map((B) => /* @__PURE__ */ c(
1595
1595
  "div",
1596
1596
  {
1597
- className: S(
1597
+ className: E(
1598
1598
  "bbn-select-option",
1599
1599
  (k == null ? void 0 : k.value) === B.value && "bbn-select-option-selected",
1600
1600
  l
@@ -1609,29 +1609,29 @@ const vo = (e) => e.label, qn = De(
1609
1609
  ] });
1610
1610
  }
1611
1611
  );
1612
- qn.displayName = "Select";
1612
+ Un.displayName = "Select";
1613
1613
  const Vr = De(
1614
- ({ className: e, prefix: t, suffix: r, disabled: n = !1, state: i = "default", ...s }, o) => /* @__PURE__ */ x("div", { className: S("bbn-input", n && "bbn-input-disabled", `bbn-input-${i}`), children: [
1614
+ ({ className: e, prefix: t, suffix: r, disabled: n = !1, state: i = "default", ...s }, o) => /* @__PURE__ */ N("div", { className: E("bbn-input", n && "bbn-input-disabled", `bbn-input-${i}`), children: [
1615
1615
  t && /* @__PURE__ */ c("div", { className: "bbn-input-prefix", children: t }),
1616
- /* @__PURE__ */ c("input", { ref: o, className: S("bbn-input-field", e), disabled: n, ...s }),
1616
+ /* @__PURE__ */ c("input", { ref: o, className: E("bbn-input-field", e), disabled: n, ...s }),
1617
1617
  r && /* @__PURE__ */ c("div", { className: "bbn-input-suffix", children: r })
1618
1618
  ] })
1619
1619
  );
1620
1620
  Vr.displayName = "Input";
1621
1621
  function lr({ children: e, label: t, hint: r, state: n = "default", className: i }) {
1622
- return /* @__PURE__ */ x("div", { className: S("bbn-form-control", i), children: [
1623
- t ? /* @__PURE__ */ x("label", { className: "bbn-form-control-label", children: [
1622
+ return /* @__PURE__ */ N("div", { className: E("bbn-form-control", i), children: [
1623
+ t ? /* @__PURE__ */ N("label", { className: "bbn-form-control-label", children: [
1624
1624
  /* @__PURE__ */ c("div", { className: "bbn-form-control-title", children: t }),
1625
1625
  e
1626
1626
  ] }) : e,
1627
- r && /* @__PURE__ */ c("div", { className: S("bbn-form-control-hint", `bbn-form-control-hint-${n}`), children: r })
1627
+ r && /* @__PURE__ */ c("div", { className: E("bbn-form-control-hint", `bbn-form-control-hint-${n}`), children: r })
1628
1628
  ] });
1629
1629
  }
1630
- const zn = sr({
1630
+ const qn = sr({
1631
1631
  removeDialog: () => null,
1632
1632
  updateDialog: () => null
1633
1633
  });
1634
- function ll({ children: e }) {
1634
+ function cl({ children: e }) {
1635
1635
  const [t, r] = oe({}), n = Ue(() => Object.values(t).some((a) => a), [t]);
1636
1636
  ce(
1637
1637
  function() {
@@ -1648,10 +1648,10 @@ function ll({ children: e }) {
1648
1648
  }, []), s = ae((a, l) => {
1649
1649
  r((f) => ({ ...f, [a]: l }));
1650
1650
  }, []), o = Ue(() => ({ removeDialog: i, updateDialog: s }), [i, s]);
1651
- return /* @__PURE__ */ c(zn.Provider, { value: o, children: e });
1651
+ return /* @__PURE__ */ c(qn.Provider, { value: o, children: e });
1652
1652
  }
1653
- function Zn({ open: e = !1 } = {}) {
1654
- const t = An(), [r, n] = oe(e), { updateDialog: i, removeDialog: s } = Lt(zn), o = e || r;
1653
+ function zn({ open: e = !1 } = {}) {
1654
+ const t = Sn(), [r, n] = oe(e), { updateDialog: i, removeDialog: s } = Lt(qn), o = e || r;
1655
1655
  ce(
1656
1656
  () => () => {
1657
1657
  s(t);
@@ -1670,11 +1670,11 @@ function Zn({ open: e = !1 } = {}) {
1670
1670
  unmount: a
1671
1671
  };
1672
1672
  }
1673
- const Xn = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
1673
+ const Zn = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
1674
1674
  "div",
1675
1675
  {
1676
1676
  ...t,
1677
- className: S("bbn-backdrop", e ? "animate-backdrop-in" : "animate-backdrop-out", t.className)
1677
+ className: E("bbn-backdrop", e ? "animate-backdrop-in" : "animate-backdrop-out", t.className)
1678
1678
  }
1679
1679
  ), go = ({
1680
1680
  children: e,
@@ -1686,17 +1686,17 @@ const Xn = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
1686
1686
  dialogClassName: o,
1687
1687
  ...a
1688
1688
  }) => {
1689
- const { mounted: l, unmount: f } = Zn({ open: t });
1690
- return /* @__PURE__ */ x(ar, { mounted: l, children: [
1691
- /* @__PURE__ */ c("div", { ...a, className: S("bbn-dialog-wrapper", r), children: /* @__PURE__ */ c(
1689
+ const { mounted: l, unmount: f } = zn({ open: t });
1690
+ return /* @__PURE__ */ N(ar, { mounted: l, children: [
1691
+ /* @__PURE__ */ c("div", { ...a, className: E("bbn-dialog-wrapper", r), children: /* @__PURE__ */ c(
1692
1692
  "div",
1693
1693
  {
1694
- className: S("bbn-dialog", t ? "animate-modal-in" : "animate-modal-out", o),
1694
+ className: E("bbn-dialog", t ? "animate-modal-in" : "animate-modal-out", o),
1695
1695
  onAnimationEnd: f,
1696
1696
  children: e
1697
1697
  }
1698
1698
  ) }),
1699
- i && /* @__PURE__ */ c(Xn, { className: s, open: t, onClick: n })
1699
+ i && /* @__PURE__ */ c(Zn, { className: s, open: t, onClick: n })
1700
1700
  ] });
1701
1701
  }, _r = ({
1702
1702
  children: e,
@@ -1718,7 +1718,7 @@ const Xn = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
1718
1718
  return /* @__PURE__ */ c(
1719
1719
  "div",
1720
1720
  {
1721
- className: S(
1721
+ className: E(
1722
1722
  "flex items-center justify-center",
1723
1723
  i && {
1724
1724
  default: "bg-accent-secondary/10",
@@ -1770,7 +1770,7 @@ const Xn = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
1770
1770
  className: e = "",
1771
1771
  size: t = 24,
1772
1772
  variant: r = "primary"
1773
- }) => /* @__PURE__ */ c(_r, { variant: r, background: !0, rounded: !0, className: e, children: /* @__PURE__ */ x(
1773
+ }) => /* @__PURE__ */ c(_r, { variant: r, background: !0, rounded: !0, className: e, children: /* @__PURE__ */ N(
1774
1774
  "svg",
1775
1775
  {
1776
1776
  style: { width: t, height: t },
@@ -1782,7 +1782,7 @@ const Xn = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
1782
1782
  /* @__PURE__ */ c("path", { d: "M10 15C12.7614 15 15 12.7614 15 10C15 7.23858 12.7614 5 10 5C7.23858 5 5 7.23858 5 10C5 12.7614 7.23858 15 10 15Z" })
1783
1783
  ]
1784
1784
  }
1785
- ) }), Yn = ({
1785
+ ) }), Xn = ({
1786
1786
  className: e = "",
1787
1787
  size: t = 16,
1788
1788
  variant: r = "default",
@@ -1796,7 +1796,7 @@ const Xn = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
1796
1796
  viewBox: "0 0 14 16",
1797
1797
  fill: "none",
1798
1798
  xmlns: "http://www.w3.org/2000/svg",
1799
- className: S("transition-opacity duration-200", i, e),
1799
+ className: E("transition-opacity duration-200", i, e),
1800
1800
  children: /* @__PURE__ */ c(
1801
1801
  "path",
1802
1802
  {
@@ -1806,7 +1806,7 @@ const Xn = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
1806
1806
  )
1807
1807
  }
1808
1808
  );
1809
- }, xo = ({
1809
+ }, Yn = ({
1810
1810
  className: e = "",
1811
1811
  size: t = 14,
1812
1812
  variant: r = "default",
@@ -1820,7 +1820,7 @@ const Xn = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
1820
1820
  viewBox: "0 0 14 14",
1821
1821
  fill: "none",
1822
1822
  xmlns: "http://www.w3.org/2000/svg",
1823
- className: S("transition-opacity duration-200", i, e),
1823
+ className: E("transition-opacity duration-200", i, e),
1824
1824
  children: /* @__PURE__ */ c(
1825
1825
  "path",
1826
1826
  {
@@ -1839,13 +1839,13 @@ const Xn = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
1839
1839
  "accent-primary": "text-accent-primary",
1840
1840
  "accent-secondary": "text-accent-secondary"
1841
1841
  }, Kn = ({ children: e, open: t = !1, className: r, onClose: n, ...i }) => {
1842
- const { mounted: s, unmount: o } = Zn({ open: t });
1843
- return /* @__PURE__ */ x(ar, { mounted: s, children: [
1844
- /* @__PURE__ */ x(
1842
+ const { mounted: s, unmount: o } = zn({ open: t });
1843
+ return /* @__PURE__ */ N(ar, { mounted: s, children: [
1844
+ /* @__PURE__ */ N(
1845
1845
  "div",
1846
1846
  {
1847
1847
  ...i,
1848
- className: S(
1848
+ className: E(
1849
1849
  "bbn-dialog-mobile",
1850
1850
  t ? "animate-mobile-modal-in" : "animate-mobile-modal-out",
1851
1851
  r
@@ -1858,19 +1858,19 @@ const Xn = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
1858
1858
  onClick: n,
1859
1859
  className: "absolute top-4 left-4 z-10 p-1.5 rounded-full bg-surface-tertiary hover:bg-surface-quaternary transition-colors",
1860
1860
  "aria-label": "Close",
1861
- children: /* @__PURE__ */ c(xo, { size: 14, variant: "accent-primary" })
1861
+ children: /* @__PURE__ */ c(Yn, { size: 14, variant: "accent-primary" })
1862
1862
  }
1863
1863
  ),
1864
1864
  e
1865
1865
  ]
1866
1866
  }
1867
1867
  ),
1868
- /* @__PURE__ */ c(Xn, { open: t, onClick: n })
1868
+ /* @__PURE__ */ c(Zn, { open: t, onClick: n })
1869
1869
  ] });
1870
- }, No = ({ className: e, children: t, title: r, onClose: n }) => /* @__PURE__ */ x("div", { className: S("bbn-dialog-header", e), children: [
1871
- /* @__PURE__ */ x("div", { className: "bbn-dialog-title", children: [
1870
+ }, xo = ({ className: e, children: t, title: r, onClose: n }) => /* @__PURE__ */ N("div", { className: E("bbn-dialog-header", e), children: [
1871
+ /* @__PURE__ */ N("div", { className: "bbn-dialog-title", children: [
1872
1872
  /* @__PURE__ */ c(Cr, { variant: "h5", children: r }),
1873
- !!n && /* @__PURE__ */ c(Fn, { className: "shrink-0", onClick: n, children: /* @__PURE__ */ c("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ c(
1873
+ !!n && /* @__PURE__ */ c(An, { className: "shrink-0", onClick: n, children: /* @__PURE__ */ c("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ c(
1874
1874
  "path",
1875
1875
  {
1876
1876
  d: "M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",
@@ -1879,68 +1879,68 @@ const Xn = ({ open: e = !1, ...t }) => /* @__PURE__ */ c(
1879
1879
  ) }) })
1880
1880
  ] }),
1881
1881
  t
1882
- ] }), Co = (e) => /* @__PURE__ */ c("div", { ...e, className: S("bbn-dialog-body", e.className) }), ko = (e) => /* @__PURE__ */ c("div", { ...e, className: S("bbn-dialog-footer", e.className) });
1883
- function cl({ className: e, ...t }) {
1884
- return /* @__PURE__ */ c("span", { ...t, className: S("bbn-chip", e) });
1882
+ ] }), No = (e) => /* @__PURE__ */ c("div", { ...e, className: E("bbn-dialog-body", e.className) }), Co = (e) => /* @__PURE__ */ c("div", { ...e, className: E("bbn-dialog-footer", e.className) });
1883
+ function ul({ className: e, ...t }) {
1884
+ return /* @__PURE__ */ c("span", { ...t, className: E("bbn-chip", e) });
1885
1885
  }
1886
- function ul({ size: e = 40, className: t }) {
1886
+ function fl({ size: e = 40, className: t }) {
1887
1887
  return /* @__PURE__ */ c("span", { className: be("bbn-loader text-current", t), style: { width: e, height: e }, children: /* @__PURE__ */ c("svg", { viewBox: "22 22 44 44", children: /* @__PURE__ */ c("circle", { cx: "44", cy: "44", r: "20.2", fill: "none", stroke: "currentColor", strokeWidth: "3.6" }) }) });
1888
1888
  }
1889
- var Jn = "Expected a function", ln = NaN, Oo = "[object Symbol]", Eo = /^\s+|\s+$/g, So = /^[-+]0x[0-9a-f]+$/i, Ao = /^0b[01]+$/i, Fo = /^0o[0-7]+$/i, Lo = parseInt, Vo = typeof Ut == "object" && Ut && Ut.Object === Object && Ut, _o = typeof self == "object" && self && self.Object === Object && self, Do = Vo || _o || Function("return this")(), To = Object.prototype, Mo = To.toString, Po = Math.max, Bo = Math.min, dr = function() {
1890
- return Do.Date.now();
1889
+ var Jn = "Expected a function", ln = NaN, ko = "[object Symbol]", Oo = /^\s+|\s+$/g, Eo = /^[-+]0x[0-9a-f]+$/i, So = /^0b[01]+$/i, Ao = /^0o[0-7]+$/i, Fo = parseInt, Lo = typeof Ut == "object" && Ut && Ut.Object === Object && Ut, Vo = typeof self == "object" && self && self.Object === Object && self, _o = Lo || Vo || Function("return this")(), Do = Object.prototype, To = Do.toString, Mo = Math.max, Po = Math.min, dr = function() {
1890
+ return _o.Date.now();
1891
1891
  };
1892
- function Ro(e, t, r) {
1893
- var n, i, s, o, a, l, f = 0, u = !1, d = !1, p = !0;
1892
+ function Bo(e, t, r) {
1893
+ var n, i, s, o, a, l, f = 0, u = !1, d = !1, m = !0;
1894
1894
  if (typeof e != "function")
1895
1895
  throw new TypeError(Jn);
1896
- t = cn(t) || 0, Qt(r) && (u = !!r.leading, d = "maxWait" in r, s = d ? Po(cn(r.maxWait) || 0, t) : s, p = "trailing" in r ? !!r.trailing : p);
1896
+ t = cn(t) || 0, Qt(r) && (u = !!r.leading, d = "maxWait" in r, s = d ? Mo(cn(r.maxWait) || 0, t) : s, m = "trailing" in r ? !!r.trailing : m);
1897
1897
  function v(L) {
1898
1898
  var k = n, $ = i;
1899
1899
  return n = i = void 0, f = L, o = e.apply($, k), o;
1900
1900
  }
1901
- function N(L) {
1901
+ function x(L) {
1902
1902
  return f = L, a = setTimeout(_, t), u ? v(L) : o;
1903
1903
  }
1904
- function b(L) {
1904
+ function y(L) {
1905
1905
  var k = L - l, $ = L - f, j = t - k;
1906
- return d ? Bo(j, s - $) : j;
1906
+ return d ? Po(j, s - $) : j;
1907
1907
  }
1908
- function y(L) {
1908
+ function b(L) {
1909
1909
  var k = L - l, $ = L - f;
1910
1910
  return l === void 0 || k >= t || k < 0 || d && $ >= s;
1911
1911
  }
1912
1912
  function _() {
1913
1913
  var L = dr();
1914
- if (y(L))
1914
+ if (b(L))
1915
1915
  return w(L);
1916
- a = setTimeout(_, b(L));
1916
+ a = setTimeout(_, y(L));
1917
1917
  }
1918
1918
  function w(L) {
1919
- return a = void 0, p && n ? v(L) : (n = i = void 0, o);
1919
+ return a = void 0, m && n ? v(L) : (n = i = void 0, o);
1920
1920
  }
1921
1921
  function M() {
1922
1922
  a !== void 0 && clearTimeout(a), f = 0, n = l = i = a = void 0;
1923
1923
  }
1924
- function E() {
1924
+ function S() {
1925
1925
  return a === void 0 ? o : w(dr());
1926
1926
  }
1927
1927
  function F() {
1928
- var L = dr(), k = y(L);
1928
+ var L = dr(), k = b(L);
1929
1929
  if (n = arguments, i = this, l = L, k) {
1930
1930
  if (a === void 0)
1931
- return N(l);
1931
+ return x(l);
1932
1932
  if (d)
1933
1933
  return a = setTimeout(_, t), v(l);
1934
1934
  }
1935
1935
  return a === void 0 && (a = setTimeout(_, t)), o;
1936
1936
  }
1937
- return F.cancel = M, F.flush = E, F;
1937
+ return F.cancel = M, F.flush = S, F;
1938
1938
  }
1939
- function jo(e, t, r) {
1939
+ function Ro(e, t, r) {
1940
1940
  var n = !0, i = !0;
1941
1941
  if (typeof e != "function")
1942
1942
  throw new TypeError(Jn);
1943
- return Qt(r) && (n = "leading" in r ? !!r.leading : n, i = "trailing" in r ? !!r.trailing : i), Ro(e, t, {
1943
+ return Qt(r) && (n = "leading" in r ? !!r.leading : n, i = "trailing" in r ? !!r.trailing : i), Bo(e, t, {
1944
1944
  leading: n,
1945
1945
  maxWait: t,
1946
1946
  trailing: i
@@ -1950,16 +1950,16 @@ function Qt(e) {
1950
1950
  var t = typeof e;
1951
1951
  return !!e && (t == "object" || t == "function");
1952
1952
  }
1953
- function Io(e) {
1953
+ function jo(e) {
1954
1954
  return !!e && typeof e == "object";
1955
1955
  }
1956
- function $o(e) {
1957
- return typeof e == "symbol" || Io(e) && Mo.call(e) == Oo;
1956
+ function Io(e) {
1957
+ return typeof e == "symbol" || jo(e) && To.call(e) == ko;
1958
1958
  }
1959
1959
  function cn(e) {
1960
1960
  if (typeof e == "number")
1961
1961
  return e;
1962
- if ($o(e))
1962
+ if (Io(e))
1963
1963
  return ln;
1964
1964
  if (Qt(e)) {
1965
1965
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
@@ -1967,13 +1967,13 @@ function cn(e) {
1967
1967
  }
1968
1968
  if (typeof e != "string")
1969
1969
  return e === 0 ? e : +e;
1970
- e = e.replace(Eo, "");
1971
- var r = Ao.test(e);
1972
- return r || Fo.test(e) ? Lo(e.slice(2), r ? 2 : 8) : So.test(e) ? ln : +e;
1970
+ e = e.replace(Oo, "");
1971
+ var r = So.test(e);
1972
+ return r || Ao.test(e) ? Fo(e.slice(2), r ? 2 : 8) : Eo.test(e) ? ln : +e;
1973
1973
  }
1974
- var Ho = jo;
1975
- const Qn = /* @__PURE__ */ Wn(Ho);
1976
- function Wo(e, { onLoadMore: t, hasMore: r = !1, loading: n = !1 } = {}) {
1974
+ var $o = Ro;
1975
+ const Qn = /* @__PURE__ */ Hn($o);
1976
+ function Ho(e, { onLoadMore: t, hasMore: r = !1, loading: n = !1 } = {}) {
1977
1977
  const [i, s] = oe(!1);
1978
1978
  return ce(() => {
1979
1979
  const o = Qn((l) => {
@@ -1993,7 +1993,7 @@ const ei = sr({
1993
1993
  onColumnSort: void 0,
1994
1994
  onRowSelect: void 0
1995
1995
  });
1996
- function Uo({
1996
+ function Wo({
1997
1997
  name: e,
1998
1998
  className: t,
1999
1999
  children: r,
@@ -2006,7 +2006,7 @@ function Uo({
2006
2006
  {
2007
2007
  variant: "caption",
2008
2008
  as: "th",
2009
- className: S("bbn-cell-left", n && "bbn-table-sortable", t),
2009
+ className: E("bbn-cell-left", n && "bbn-table-sortable", t),
2010
2010
  onClick: () => {
2011
2011
  if (n && e) {
2012
2012
  const u = s.find((d) => d.key === e);
@@ -2015,13 +2015,13 @@ function Uo({
2015
2015
  },
2016
2016
  "data-column": e,
2017
2017
  ...i,
2018
- children: /* @__PURE__ */ x("div", { className: "flex items-center justify-between gap-1", children: [
2018
+ children: /* @__PURE__ */ N("div", { className: "flex items-center justify-between gap-1", children: [
2019
2019
  /* @__PURE__ */ c("span", { children: r }),
2020
- n && /* @__PURE__ */ x("span", { className: "bbn-table-sort-icons", children: [
2020
+ n && /* @__PURE__ */ N("span", { className: "bbn-table-sort-icons", children: [
2021
2021
  /* @__PURE__ */ c(
2022
2022
  Gi,
2023
2023
  {
2024
- className: S(
2024
+ className: E(
2025
2025
  "bbn-sort-icon bbn-sort-icon-up",
2026
2026
  f === "asc" ? "bbn-sort-icon-active" : "bbn-sort-icon-inactive"
2027
2027
  )
@@ -2030,7 +2030,7 @@ function Uo({
2030
2030
  /* @__PURE__ */ c(
2031
2031
  Xi,
2032
2032
  {
2033
- className: S(
2033
+ className: E(
2034
2034
  "bbn-sort-icon bbn-sort-icon-down",
2035
2035
  f === "desc" ? "bbn-sort-icon-active" : "bbn-sort-icon-inactive"
2036
2036
  )
@@ -2041,16 +2041,16 @@ function Uo({
2041
2041
  }
2042
2042
  );
2043
2043
  }
2044
- function qo(e, t) {
2044
+ function Uo(e, t) {
2045
2045
  const [r, n] = oe({}), i = ae((o, a) => {
2046
2046
  a && n((l) => {
2047
- var p;
2048
- const f = ((p = l[o]) == null ? void 0 : p.direction) ?? null, u = f === null ? "asc" : f === "asc" ? "desc" : null;
2047
+ var m;
2048
+ const f = ((m = l[o]) == null ? void 0 : m.direction) ?? null, u = f === null ? "asc" : f === "asc" ? "desc" : null;
2049
2049
  if (u === null)
2050
2050
  return Object.fromEntries(
2051
- Object.entries(l).filter(([v]) => v !== o).map(([v, N]) => [
2051
+ Object.entries(l).filter(([v]) => v !== o).map(([v, x]) => [
2052
2052
  v,
2053
- { ...N, priority: N.priority > l[o].priority ? N.priority - 1 : N.priority }
2053
+ { ...x, priority: x.priority > l[o].priority ? x.priority - 1 : x.priority }
2054
2054
  ])
2055
2055
  );
2056
2056
  const d = Math.max(0, ...Object.values(l).map((v) => v.priority));
@@ -2074,7 +2074,7 @@ function qo(e, t) {
2074
2074
  }, [e, t, r]);
2075
2075
  return { sortStates: r, handleColumnSort: i, sortedData: s };
2076
2076
  }
2077
- function zo({
2077
+ function qo({
2078
2078
  className: e,
2079
2079
  render: t,
2080
2080
  value: r,
@@ -2086,14 +2086,14 @@ function zo({
2086
2086
  {
2087
2087
  variant: "body2",
2088
2088
  as: "td",
2089
- className: S("bbn-cell-left", e),
2089
+ className: E("bbn-cell-left", e),
2090
2090
  "data-column": n,
2091
2091
  ...i,
2092
2092
  children: t ? t(r) : r
2093
2093
  }
2094
2094
  );
2095
2095
  }
2096
- function Zo({
2096
+ function zo({
2097
2097
  row: e,
2098
2098
  columns: t,
2099
2099
  isSelected: r,
@@ -2103,14 +2103,14 @@ function Zo({
2103
2103
  return /* @__PURE__ */ c(
2104
2104
  "tr",
2105
2105
  {
2106
- className: S(
2106
+ className: E(
2107
2107
  r && "selected",
2108
2108
  !!i && n && "cursor-pointer",
2109
2109
  !n && "opacity-50"
2110
2110
  ),
2111
2111
  onClick: () => i(e),
2112
2112
  children: t.map((s) => /* @__PURE__ */ c(
2113
- zo,
2113
+ qo,
2114
2114
  {
2115
2115
  value: e[s.key],
2116
2116
  columnName: s.key,
@@ -2122,7 +2122,7 @@ function Zo({
2122
2122
  }
2123
2123
  );
2124
2124
  }
2125
- function Xo({
2125
+ function Zo({
2126
2126
  data: e,
2127
2127
  columns: t,
2128
2128
  className: r,
@@ -2135,11 +2135,11 @@ function Xo({
2135
2135
  selectedRow: f,
2136
2136
  defaultSelectedRow: u,
2137
2137
  onSelectedRowChange: d,
2138
- ...p
2138
+ ...m
2139
2139
  }, v) {
2140
- const N = rt(null);
2141
- Sn(v, () => N.current, []);
2142
- const { sortStates: b, handleColumnSort: y, sortedData: _ } = qo(e, t), { isScrolledTop: w } = Wo(N, { onLoadMore: o, hasMore: i, loading: s }), [M, E] = ot({
2140
+ const x = nt(null);
2141
+ En(v, () => x.current, []);
2142
+ const { sortStates: y, handleColumnSort: b, sortedData: _ } = Uo(e, t), { isScrolledTop: w } = Ho(x, { onLoadMore: o, hasMore: i, loading: s }), [M, S] = at({
2143
2143
  value: f,
2144
2144
  defaultValue: u ?? null,
2145
2145
  onStateChange: d
@@ -2147,23 +2147,23 @@ function Xo({
2147
2147
  (k) => {
2148
2148
  if (!a || l && !l(k)) return;
2149
2149
  const $ = M === k.id ? null : k.id;
2150
- E($), a($ === null ? null : k);
2150
+ S($), a($ === null ? null : k);
2151
2151
  },
2152
- [a, l, M, E]
2152
+ [a, l, M, S]
2153
2153
  ), L = Ue(
2154
2154
  () => ({
2155
2155
  data: _,
2156
2156
  columns: t,
2157
- sortStates: b,
2158
- onColumnSort: y,
2157
+ sortStates: y,
2158
+ onColumnSort: b,
2159
2159
  onRowSelect: F
2160
2160
  }),
2161
- [_, t, b, y, F]
2161
+ [_, t, y, b, F]
2162
2162
  );
2163
- return /* @__PURE__ */ c(ei.Provider, { value: L, children: /* @__PURE__ */ c("div", { ref: N, className: S("bbn-table-wrapper", n), children: /* @__PURE__ */ x("table", { className: S("bbn-table", r), ...p, children: [
2164
- /* @__PURE__ */ c("thead", { className: S("bbn-table-header", w && "scrolled-top"), children: /* @__PURE__ */ c("tr", { children: t.map((k) => /* @__PURE__ */ c(Uo, { className: k.headerClassName, name: k.key, sorter: k.sorter, children: k.header }, k.key)) }) }),
2163
+ return /* @__PURE__ */ c(ei.Provider, { value: L, children: /* @__PURE__ */ c("div", { ref: x, className: E("bbn-table-wrapper", n), children: /* @__PURE__ */ N("table", { className: E("bbn-table", r), ...m, children: [
2164
+ /* @__PURE__ */ c("thead", { className: E("bbn-table-header", w && "scrolled-top"), children: /* @__PURE__ */ c("tr", { children: t.map((k) => /* @__PURE__ */ c(Wo, { className: k.headerClassName, name: k.key, sorter: k.sorter, children: k.header }, k.key)) }) }),
2165
2165
  /* @__PURE__ */ c("tbody", { className: "bbn-table-body", children: _.map((k) => /* @__PURE__ */ c(
2166
- Zo,
2166
+ zo,
2167
2167
  {
2168
2168
  row: k,
2169
2169
  columns: t,
@@ -2175,53 +2175,53 @@ function Xo({
2175
2175
  )) })
2176
2176
  ] }) }) });
2177
2177
  }
2178
- const fl = De(Xo);
2179
- function Yo({ as: e = "div", className: t, children: r }) {
2180
- return br(e, { className: S("bbn-card", t) }, r);
2178
+ const dl = De(Zo);
2179
+ function Xo({ as: e = "div", className: t, children: r }) {
2180
+ return br(e, { className: E("bbn-card", t) }, r);
2181
2181
  }
2182
- function dl(e) {
2183
- const [t = !1, r] = ot({
2182
+ function hl(e) {
2183
+ const [t = !1, r] = at({
2184
2184
  value: e.value,
2185
2185
  defaultValue: e.defaultValue,
2186
2186
  onStateChange: e.onChange
2187
2187
  });
2188
- return /* @__PURE__ */ x("div", { className: "bbn-toggle", onClick: () => void r(!t), children: [
2188
+ return /* @__PURE__ */ N("div", { className: "bbn-toggle", onClick: () => void r(!t), children: [
2189
2189
  /* @__PURE__ */ c("span", { className: "bbn-toggle-bg", children: e.activeIcon }),
2190
- /* @__PURE__ */ c("span", { className: S("bbn-toggle-control", t && "bbn-toggle-control-active") }),
2190
+ /* @__PURE__ */ c("span", { className: E("bbn-toggle-control", t && "bbn-toggle-control-active") }),
2191
2191
  /* @__PURE__ */ c("span", { className: "bbn-toggle-bg", children: e.inactiveIcon })
2192
2192
  ] });
2193
2193
  }
2194
- const Go = {
2194
+ const Yo = {
2195
2195
  adaptive: "adaptive",
2196
2196
  horizontal: "vertical",
2197
2197
  vertical: "horizontal"
2198
2198
  };
2199
- function hl({ className: e, orientation: t = "vertical", children: r }) {
2199
+ function ml({ className: e, orientation: t = "vertical", children: r }) {
2200
2200
  return /* @__PURE__ */ c("div", { className: be("bbn-list", `bbn-list-${t}`, e), children: Xt.map(
2201
2201
  r,
2202
2202
  (n) => wr(n) ? yr(n, {
2203
- orientation: Go[t]
2203
+ orientation: Yo[t]
2204
2204
  }) : n
2205
2205
  ) });
2206
2206
  }
2207
2207
  function pl({ className: e, orientation: t = "horizontal", title: r, value: n, suffix: i }) {
2208
- return /* @__PURE__ */ x("div", { className: S("bbn-list-item", `bbn-list-item-${t}`, e), children: [
2208
+ return /* @__PURE__ */ N("div", { className: E("bbn-list-item", `bbn-list-item-${t}`, e), children: [
2209
2209
  /* @__PURE__ */ c(
2210
2210
  W,
2211
2211
  {
2212
2212
  as: "div",
2213
- className: S("bbn-list-title", `bbn-list-title-${t}`),
2213
+ className: E("bbn-list-title", `bbn-list-title-${t}`),
2214
2214
  variant: t === "horizontal" ? "body1" : "body2",
2215
2215
  children: r
2216
2216
  }
2217
2217
  ),
2218
- /* @__PURE__ */ x(W, { as: "div", className: S("bbn-list-value", `bbn-list-value-${t}`), variant: "body1", children: [
2218
+ /* @__PURE__ */ N(W, { as: "div", className: E("bbn-list-value", `bbn-list-value-${t}`), variant: "body1", children: [
2219
2219
  n,
2220
2220
  i
2221
2221
  ] })
2222
2222
  ] });
2223
2223
  }
2224
- function ml({
2224
+ function vl({
2225
2225
  children: e,
2226
2226
  count: t = 0,
2227
2227
  max: r = 99,
@@ -2232,25 +2232,25 @@ function ml({
2232
2232
  contentClassName: a
2233
2233
  }) {
2234
2234
  const l = typeof t == "number" ? t > 0 : t != null, f = typeof t == "number" && t > r ? `${r}+` : t, u = `bbn-badge-${n}`, d = `bbn-badge-${i}`;
2235
- return /* @__PURE__ */ x("div", { className: S("bbn-badge", s), children: [
2235
+ return /* @__PURE__ */ N("div", { className: E("bbn-badge", s), children: [
2236
2236
  e,
2237
- l && /* @__PURE__ */ c("span", { className: S("bbn-badge-indicator", u, d, o), children: /* @__PURE__ */ c("span", { className: S("bbn-badge-content", a), children: f }) })
2237
+ l && /* @__PURE__ */ c("span", { className: E("bbn-badge-indicator", u, d, o), children: /* @__PURE__ */ c("span", { className: E("bbn-badge-content", a), children: f }) })
2238
2238
  ] });
2239
2239
  }
2240
2240
  const Dr = ({
2241
2241
  children: e,
2242
2242
  style: t,
2243
2243
  className: r
2244
- }) => /* @__PURE__ */ c("div", { className: S("flex rounded bg-secondary-highlight p-4 text-accent-primary", r), style: t, children: e });
2245
- function Ko(e) {
2244
+ }) => /* @__PURE__ */ c("div", { className: E("flex rounded bg-secondary-highlight p-4 text-accent-primary", r), style: t, children: e });
2245
+ function Go(e) {
2246
2246
  return Vt({ attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8Z" }, child: [] }, { tag: "path", attr: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8Z" }, child: [] }] })(e);
2247
2247
  }
2248
- function Jo({ counter: e, max: t, onAdd: r, alwaysShowCounter: n = !1 }) {
2248
+ function Ko({ counter: e, max: t, onAdd: r, alwaysShowCounter: n = !1 }) {
2249
2249
  const i = e < t, s = 0 < e || n && e === 0;
2250
- return /* @__PURE__ */ x(
2250
+ return /* @__PURE__ */ N(
2251
2251
  "div",
2252
2252
  {
2253
- className: S(
2253
+ className: E(
2254
2254
  "bg-primary-highlight flex overflow-hidden rounded-md border border-accent-primary w-fit",
2255
2255
  i && "cursor-pointer",
2256
2256
  !s && !i && "hidden",
@@ -2258,8 +2258,8 @@ function Jo({ counter: e, max: t, onAdd: r, alwaysShowCounter: n = !1 }) {
2258
2258
  ),
2259
2259
  onClick: i ? r : void 0,
2260
2260
  children: [
2261
- i && /* @__PURE__ */ c("div", { className: "flex h-10 w-10 items-center justify-center", children: /* @__PURE__ */ c(Ko, { size: 20 }) }),
2262
- s && /* @__PURE__ */ x("div", { className: S(
2261
+ i && /* @__PURE__ */ c("div", { className: "flex h-10 w-10 items-center justify-center", children: /* @__PURE__ */ c(Go, { size: 20 }) }),
2262
+ s && /* @__PURE__ */ N("div", { className: E(
2263
2263
  "flex h-10 items-center px-2 text-sm sm:px-4 sm:text-base",
2264
2264
  i && "border-l border-accent-primary"
2265
2265
  ), children: [
@@ -2271,7 +2271,7 @@ function Jo({ counter: e, max: t, onAdd: r, alwaysShowCounter: n = !1 }) {
2271
2271
  }
2272
2272
  );
2273
2273
  }
2274
- const ti = sr(void 0), ri = () => Lt(ti), Qo = ({ children: e, value: t }) => /* @__PURE__ */ c(ti.Provider, { value: t, children: e }), ni = ({
2274
+ const ti = sr(void 0), ri = () => Lt(ti), Jo = ({ children: e, value: t }) => /* @__PURE__ */ c(ti.Provider, { value: t, children: e }), ni = ({
2275
2275
  isOpen: e,
2276
2276
  onClose: t,
2277
2277
  title: r,
@@ -2285,14 +2285,14 @@ const ti = sr(void 0), ri = () => Lt(ti), Qo = ({ children: e, value: t }) => /*
2285
2285
  showDivider: u = !0,
2286
2286
  onBackdropClick: d
2287
2287
  }) => {
2288
- const p = {
2288
+ const m = {
2289
2289
  left: "text-left",
2290
2290
  center: "text-center",
2291
2291
  right: "text-right"
2292
- }, v = () => f || r ? /* @__PURE__ */ x(
2292
+ }, v = () => f || r ? /* @__PURE__ */ N(
2293
2293
  "div",
2294
2294
  {
2295
- className: S(
2295
+ className: E(
2296
2296
  "flex items-center p-4",
2297
2297
  u && "border-b border-[#38708533] dark:border-[#404040]"
2298
2298
  ),
@@ -2329,25 +2329,25 @@ const ti = sr(void 0), ri = () => Lt(ti), Qo = ({ children: e, value: t }) => /*
2329
2329
  r && /* @__PURE__ */ c(
2330
2330
  "h3",
2331
2331
  {
2332
- className: S(
2332
+ className: E(
2333
2333
  "flex-1 text-sm font-medium text-accent-primary",
2334
2334
  f ? "ml-3" : "",
2335
- p[s]
2335
+ m[s]
2336
2336
  ),
2337
2337
  children: r
2338
2338
  }
2339
2339
  )
2340
2340
  ]
2341
2341
  }
2342
- ) : null, N = () => /* @__PURE__ */ x(Ft, { children: [
2342
+ ) : null, x = () => /* @__PURE__ */ N(rt, { children: [
2343
2343
  v(),
2344
2344
  /* @__PURE__ */ c("div", { className: "flex-1 overflow-y-auto", children: n })
2345
2345
  ] });
2346
- return a ? /* @__PURE__ */ x(ar, { mounted: !0, rootClassName: "menu-drawer-portal", children: [
2346
+ return a ? /* @__PURE__ */ N(ar, { mounted: !0, rootClassName: "menu-drawer-portal", children: [
2347
2347
  d && /* @__PURE__ */ c(
2348
2348
  "div",
2349
2349
  {
2350
- className: S(
2350
+ className: E(
2351
2351
  "fixed inset-0 z-40 bg-black/50 transition-opacity duration-300",
2352
2352
  e ? "opacity-100" : "pointer-events-none opacity-0"
2353
2353
  ),
@@ -2357,7 +2357,7 @@ const ti = sr(void 0), ri = () => Lt(ti), Qo = ({ children: e, value: t }) => /*
2357
2357
  /* @__PURE__ */ c(
2358
2358
  "div",
2359
2359
  {
2360
- className: S(
2360
+ className: E(
2361
2361
  "transform transition-transform duration-300 ease-in-out",
2362
2362
  "bg-[#FFFFFF] dark:bg-[#252525]",
2363
2363
  "fixed inset-y-0 right-0 z-50",
@@ -2365,25 +2365,25 @@ const ti = sr(void 0), ri = () => Lt(ti), Qo = ({ children: e, value: t }) => /*
2365
2365
  e ? "translate-x-0" : "translate-x-full",
2366
2366
  i
2367
2367
  ),
2368
- children: N()
2368
+ children: x()
2369
2369
  }
2370
2370
  )
2371
2371
  ] }) : /* @__PURE__ */ c(
2372
2372
  "div",
2373
2373
  {
2374
- className: S(
2374
+ className: E(
2375
2375
  "transform transition-transform duration-300 ease-in-out",
2376
2376
  "bg-[#FFFFFF] dark:bg-[#252525]",
2377
2377
  "absolute inset-0 rounded-lg",
2378
2378
  e ? "translate-x-0" : "translate-x-full",
2379
2379
  i
2380
2380
  ),
2381
- children: N()
2381
+ children: x()
2382
2382
  }
2383
2383
  );
2384
2384
  };
2385
2385
  function ii(e = 768, t = 100) {
2386
- const [r, n] = oe(() => typeof window < "u" ? window.innerWidth < e : !1), i = rt(), s = ae(() => {
2386
+ const [r, n] = oe(() => typeof window < "u" ? window.innerWidth < e : !1), i = nt(), s = ae(() => {
2387
2387
  n(window.innerWidth < e);
2388
2388
  }, [e]);
2389
2389
  return ce(() => (i.current = Qn(s, t), s(), window.addEventListener("resize", i.current), () => {
@@ -2400,56 +2400,56 @@ const si = ({
2400
2400
  className: o,
2401
2401
  mobileMode: a = "dialog"
2402
2402
  }) => {
2403
- const [l, f] = oe(!1), u = rt(null), d = ii(), p = r !== void 0 ? r : l, v = (_) => {
2403
+ const [l, f] = oe(!1), u = nt(null), d = ii(), m = r !== void 0 ? r : l, v = (_) => {
2404
2404
  r === void 0 && f(_), n == null || n(_);
2405
- }, N = () => v(!1), b = /* @__PURE__ */ c("div", { className: "relative w-full overflow-hidden", children: e }), y = t || /* @__PURE__ */ c("button", { className: "rounded p-2 hover:bg-gray-100 dark:hover:bg-gray-800", onClick: () => v(!p), children: "Menu" });
2406
- return /* @__PURE__ */ x(Qo, { value: { isOpen: p, setIsOpen: v, onClose: N, isMobile: d }, children: [
2407
- /* @__PURE__ */ c("div", { ref: u, className: "inline-block", children: R.isValidElement(y) && R.cloneElement(y, {
2408
- onClick: () => v(!p),
2405
+ }, x = () => v(!1), y = /* @__PURE__ */ c("div", { className: "relative w-full overflow-hidden", children: e }), b = t || /* @__PURE__ */ c("button", { className: "rounded p-2 hover:bg-gray-100 dark:hover:bg-gray-800", onClick: () => v(!m), children: "Menu" });
2406
+ return /* @__PURE__ */ N(Jo, { value: { isOpen: m, setIsOpen: v, onClose: x, isMobile: d }, children: [
2407
+ /* @__PURE__ */ c("div", { ref: u, className: "inline-block", children: R.isValidElement(b) && R.cloneElement(b, {
2408
+ onClick: () => v(!m),
2409
2409
  "aria-haspopup": "true",
2410
- "aria-expanded": p
2410
+ "aria-expanded": m
2411
2411
  }) }),
2412
2412
  d ? a === "dialog" ? /* @__PURE__ */ c(
2413
2413
  Kn,
2414
2414
  {
2415
- open: p,
2416
- onClose: N,
2417
- className: S(
2415
+ open: m,
2416
+ onClose: x,
2417
+ className: E(
2418
2418
  "relative bg-[#FFFFFF] dark:bg-[#252525] text-primary-main",
2419
2419
  o
2420
2420
  ),
2421
- children: b
2421
+ children: y
2422
2422
  }
2423
2423
  ) : /* @__PURE__ */ c(
2424
2424
  ni,
2425
2425
  {
2426
- isOpen: p,
2427
- onClose: N,
2428
- onBackdropClick: N,
2426
+ isOpen: m,
2427
+ onClose: x,
2428
+ onBackdropClick: x,
2429
2429
  fullHeight: !0,
2430
2430
  fullWidth: !0,
2431
2431
  showBackButton: !0,
2432
2432
  showDivider: !1,
2433
- children: b
2433
+ children: y
2434
2434
  }
2435
2435
  ) : /* @__PURE__ */ c(
2436
- Un,
2436
+ Wn,
2437
2437
  {
2438
2438
  anchorEl: u.current,
2439
- open: p,
2439
+ open: m,
2440
2440
  offset: s,
2441
2441
  placement: i,
2442
- onClickOutside: N,
2443
- className: S(
2442
+ onClickOutside: x,
2443
+ className: E(
2444
2444
  "rounded-lg border border-[#38708533] bg-[#FFFFFF] shadow-lg dark:border-[#404040] dark:bg-[#252525]",
2445
2445
  "min-w-[294px]",
2446
2446
  o
2447
2447
  ),
2448
- children: b
2448
+ children: y
2449
2449
  }
2450
2450
  )
2451
2451
  ] });
2452
- }, ea = ({
2452
+ }, Qo = ({
2453
2453
  icon: e,
2454
2454
  name: t,
2455
2455
  description: r,
@@ -2469,15 +2469,15 @@ const si = ({
2469
2469
  {
2470
2470
  onClick: d,
2471
2471
  disabled: i,
2472
- className: S("w-full text-left", i && "cursor-not-allowed opacity-50", s),
2472
+ className: E("w-full text-left", i && "cursor-not-allowed opacity-50", s),
2473
2473
  children: o
2474
2474
  }
2475
- ) : /* @__PURE__ */ x(
2475
+ ) : /* @__PURE__ */ N(
2476
2476
  "button",
2477
2477
  {
2478
2478
  onClick: d,
2479
2479
  disabled: i,
2480
- className: S(
2480
+ className: E(
2481
2481
  "flex w-full items-center justify-between p-6",
2482
2482
  "transition-colors hover:bg-accent-secondary/5",
2483
2483
  "text-left",
@@ -2490,9 +2490,9 @@ const si = ({
2490
2490
  "aria-selected": l,
2491
2491
  tabIndex: i ? -1 : 0,
2492
2492
  children: [
2493
- /* @__PURE__ */ x("div", { className: "flex items-center gap-3", children: [
2493
+ /* @__PURE__ */ N("div", { className: "flex items-center gap-3", children: [
2494
2494
  e && /* @__PURE__ */ c("div", { className: "flex-shrink-0", children: e }),
2495
- /* @__PURE__ */ x("div", { className: "flex flex-col", children: [
2495
+ /* @__PURE__ */ N("div", { className: "flex flex-col", children: [
2496
2496
  /* @__PURE__ */ c("div", { className: "text-sm font-medium text-accent-primary", children: t }),
2497
2497
  r && /* @__PURE__ */ c("div", { className: "text-xs text-accent-secondary", children: r })
2498
2498
  ] })
@@ -2501,7 +2501,7 @@ const si = ({
2501
2501
  ]
2502
2502
  }
2503
2503
  );
2504
- }, ta = ({
2504
+ }, ea = ({
2505
2505
  children: e,
2506
2506
  name: t,
2507
2507
  description: r,
@@ -2512,7 +2512,7 @@ const si = ({
2512
2512
  contentClassName: a,
2513
2513
  titleAlign: l = "left"
2514
2514
  }) => {
2515
- const [f, u] = oe(!1), d = ri(), p = /* @__PURE__ */ c(
2515
+ const [f, u] = oe(!1), d = ri(), m = /* @__PURE__ */ c(
2516
2516
  "svg",
2517
2517
  {
2518
2518
  width: "16",
@@ -2535,12 +2535,12 @@ const si = ({
2535
2535
  children: /* @__PURE__ */ c("path", { d: "M6 4L10 8L6 12", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
2536
2536
  }
2537
2537
  );
2538
- return /* @__PURE__ */ x(Ft, { children: [
2539
- /* @__PURE__ */ x(
2538
+ return /* @__PURE__ */ N(rt, { children: [
2539
+ /* @__PURE__ */ N(
2540
2540
  "button",
2541
2541
  {
2542
2542
  onClick: () => u(!0),
2543
- className: S(
2543
+ className: E(
2544
2544
  "flex w-full items-center justify-between p-6",
2545
2545
  "transition-colors hover:bg-accent-secondary/5",
2546
2546
  "text-left focus:outline-none",
@@ -2548,9 +2548,9 @@ const si = ({
2548
2548
  ),
2549
2549
  role: "menuitem",
2550
2550
  children: [
2551
- /* @__PURE__ */ x("div", { className: "flex items-center gap-3", children: [
2551
+ /* @__PURE__ */ N("div", { className: "flex items-center gap-3", children: [
2552
2552
  n && /* @__PURE__ */ c("div", { className: "flex-shrink-0", children: n }),
2553
- /* @__PURE__ */ x("div", { className: "flex flex-col", children: [
2553
+ /* @__PURE__ */ N("div", { className: "flex flex-col", children: [
2554
2554
  /* @__PURE__ */ c("span", { className: "text-sm font-medium text-accent-primary", children: t }),
2555
2555
  r && /* @__PURE__ */ c("span", { className: "mt-0.5 text-xs text-accent-secondary", children: r })
2556
2556
  ] })
@@ -2566,16 +2566,16 @@ const si = ({
2566
2566
  onClose: () => u(!1),
2567
2567
  title: t || "",
2568
2568
  titleAlign: l,
2569
- backIcon: i || p,
2569
+ backIcon: i || m,
2570
2570
  fullHeight: d == null ? void 0 : d.isMobile,
2571
2571
  fullWidth: d == null ? void 0 : d.isMobile,
2572
2572
  onBackdropClick: d != null && d.isMobile ? void 0 : () => u(!1),
2573
- className: S(d != null && d.isMobile ? "z-60" : "z-50", a),
2573
+ className: E(d != null && d.isMobile ? "z-60" : "z-50", a),
2574
2574
  children: e
2575
2575
  }
2576
2576
  )
2577
2577
  ] });
2578
- }, vl = ({
2578
+ }, gl = ({
2579
2579
  label: e,
2580
2580
  description: t,
2581
2581
  onClick: r,
@@ -2594,13 +2594,13 @@ const si = ({
2594
2594
  strokeLinejoin: "round"
2595
2595
  }
2596
2596
  ) });
2597
- return /* @__PURE__ */ x(
2597
+ return /* @__PURE__ */ N(
2598
2598
  "button",
2599
2599
  {
2600
2600
  role: "menuitem",
2601
2601
  onClick: r,
2602
2602
  disabled: o,
2603
- className: S(
2603
+ className: E(
2604
2604
  "flex w-full items-center justify-between p-4",
2605
2605
  "transition-colors hover:bg-accent-secondary/5",
2606
2606
  "text-left focus:outline-none",
@@ -2611,7 +2611,7 @@ const si = ({
2611
2611
  "aria-selected": n,
2612
2612
  tabIndex: o ? -1 : 0,
2613
2613
  children: [
2614
- /* @__PURE__ */ x("div", { className: "flex flex-col items-start", children: [
2614
+ /* @__PURE__ */ N("div", { className: "flex flex-col items-start", children: [
2615
2615
  /* @__PURE__ */ c("span", { className: "font-medium text-accent-primary", children: e }),
2616
2616
  t && /* @__PURE__ */ c("span", { className: "text-sm text-accent-secondary", children: t })
2617
2617
  ] }),
@@ -2620,7 +2620,7 @@ const si = ({
2620
2620
  }
2621
2621
  );
2622
2622
  };
2623
- function ra(e, t = 8) {
2623
+ function ta(e, t = 8) {
2624
2624
  if (!e || e.length <= t * 2)
2625
2625
  return e;
2626
2626
  const r = e.slice(0, t), n = e.slice(-t);
@@ -2631,15 +2631,15 @@ const oi = ({
2631
2631
  symbols: t = 8,
2632
2632
  size: r = "body2",
2633
2633
  className: n
2634
- }) => e ? /* @__PURE__ */ c(W, { variant: r, className: S("text-accent-primary", n), children: /* @__PURE__ */ c("span", { children: ra(e, t) ?? e }) }) : null;
2634
+ }) => e ? /* @__PURE__ */ c(W, { variant: r, className: E("text-accent-primary", n), children: /* @__PURE__ */ c("span", { children: ta(e, t) ?? e }) }) : null;
2635
2635
  function ai(e = {}) {
2636
2636
  const { copiedText: t = "Copied ✓", timeout: r = 2e3 } = e, [n, i] = oe({}), [s, o] = oe({}), a = ae(
2637
- (d, p) => {
2638
- !d || !p || (navigator.clipboard.writeText(p), i((v) => ({ ...v, [d]: !0 })), o((v) => ({ ...v, [d]: t })));
2637
+ (d, m) => {
2638
+ !d || !m || (navigator.clipboard.writeText(m), i((v) => ({ ...v, [d]: !0 })), o((v) => ({ ...v, [d]: t })));
2639
2639
  },
2640
2640
  [t]
2641
2641
  ), l = ae((d) => {
2642
- d && (i((p) => ({ ...p, [d]: !1 })), o((p) => ({ ...p, [d]: "" })));
2642
+ d && (i((m) => ({ ...m, [d]: !1 })), o((m) => ({ ...m, [d]: "" })));
2643
2643
  }, []), f = ae(
2644
2644
  (d) => d && n[d] || !1,
2645
2645
  [n]
@@ -2649,12 +2649,12 @@ function ai(e = {}) {
2649
2649
  );
2650
2650
  return ce(() => {
2651
2651
  const d = {};
2652
- return Object.entries(n).forEach(([p, v]) => {
2653
- v && (d[p] = setTimeout(() => {
2654
- l(p);
2652
+ return Object.entries(n).forEach(([m, v]) => {
2653
+ v && (d[m] = setTimeout(() => {
2654
+ l(m);
2655
2655
  }, r));
2656
2656
  }), () => {
2657
- Object.values(d).forEach((p) => clearTimeout(p));
2657
+ Object.values(d).forEach((m) => clearTimeout(m));
2658
2658
  };
2659
2659
  }, [n, r, l]), {
2660
2660
  isCopied: f,
@@ -2662,7 +2662,7 @@ function ai(e = {}) {
2662
2662
  copyToClipboard: a
2663
2663
  };
2664
2664
  }
2665
- const gl = ({
2665
+ const bl = ({
2666
2666
  children: e,
2667
2667
  value: t,
2668
2668
  className: r,
@@ -2671,15 +2671,15 @@ const gl = ({
2671
2671
  copiedText: s,
2672
2672
  timeout: o = 2e3
2673
2673
  }) => {
2674
- const a = An(), l = {
2674
+ const a = Sn(), l = {
2675
2675
  copiedText: s,
2676
2676
  timeout: o
2677
2677
  }, {
2678
2678
  isCopied: f,
2679
2679
  copiedText: u,
2680
2680
  copyToClipboard: d
2681
- } = ai(l), p = i !== void 0, v = p ? i : f(a), N = p ? s || "Copied ✓" : u(a), b = (y) => {
2682
- y.stopPropagation(), p && n ? n(t) : d(a, t);
2681
+ } = ai(l), m = i !== void 0, v = m ? i : f(a), x = m ? s || "Copied ✓" : u(a), y = (b) => {
2682
+ b.stopPropagation(), m && n ? n(t) : d(a, t);
2683
2683
  };
2684
2684
  return /* @__PURE__ */ c(
2685
2685
  "div",
@@ -2688,8 +2688,8 @@ const gl = ({
2688
2688
  "inline-flex items-center cursor-pointer hover:opacity-100 transition-opacity duration-200",
2689
2689
  r
2690
2690
  ),
2691
- onClick: b,
2692
- children: /* @__PURE__ */ x("div", { className: "relative", children: [
2691
+ onClick: y,
2692
+ children: /* @__PURE__ */ N("div", { className: "relative", children: [
2693
2693
  /* @__PURE__ */ c(
2694
2694
  "div",
2695
2695
  {
@@ -2707,16 +2707,22 @@ const gl = ({
2707
2707
  "absolute inset-0 flex items-center transition-opacity duration-300 ease-in-out text-green-600",
2708
2708
  "opacity-100"
2709
2709
  ),
2710
- children: N
2710
+ children: x
2711
2711
  }
2712
2712
  )
2713
2713
  ] })
2714
2714
  }
2715
2715
  );
2716
2716
  };
2717
+ function yl({ children: e, className: t }) {
2718
+ return /* @__PURE__ */ N("div", { className: E("bbn-warning", t), children: [
2719
+ /* @__PURE__ */ c("img", { src: "/images/status/warning_dark2.svg", alt: "Warning icon", className: "bbn-warning-icon" }),
2720
+ /* @__PURE__ */ c("p", { className: "bbn-warning-message", children: e })
2721
+ ] });
2722
+ }
2717
2723
  var Tt = (e) => e.type === "checkbox", Ke = (e) => e instanceof Date, le = (e) => e == null;
2718
2724
  const li = (e) => typeof e == "object";
2719
- var te = (e) => !le(e) && !Array.isArray(e) && li(e) && !Ke(e), ci = (e) => te(e) && e.target ? Tt(e.target) ? e.target.checked : e.target.value : e, na = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, ui = (e, t) => e.has(na(t)), ia = (e) => {
2725
+ var te = (e) => !le(e) && !Array.isArray(e) && li(e) && !Ke(e), ci = (e) => te(e) && e.target ? Tt(e.target) ? e.target.checked : e.target.value : e, ra = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, ui = (e, t) => e.has(ra(t)), na = (e) => {
2720
2726
  const t = e.constructor && e.constructor.prototype;
2721
2727
  return te(t) && t.hasOwnProperty("isPrototypeOf");
2722
2728
  }, Tr = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
@@ -2726,7 +2732,7 @@ function ie(e) {
2726
2732
  if (e instanceof Date)
2727
2733
  t = new Date(e);
2728
2734
  else if (!(Tr && (e instanceof Blob || n)) && (r || te(e)))
2729
- if (t = r ? [] : {}, !r && !ia(e))
2735
+ if (t = r ? [] : {}, !r && !na(e))
2730
2736
  t = e;
2731
2737
  else
2732
2738
  for (const i in e)
@@ -2740,7 +2746,7 @@ var cr = (e) => /^\w*$/.test(e), ee = (e) => e === void 0, Mr = (e) => Array.isA
2740
2746
  return r;
2741
2747
  const n = (cr(t) ? [t] : Pr(t)).reduce((i, s) => le(i) ? i : i[s], e);
2742
2748
  return ee(n) || n === e ? ee(e[t]) ? r : e[t] : n;
2743
- }, pe = (e) => typeof e == "boolean", Z = (e, t, r) => {
2749
+ }, me = (e) => typeof e == "boolean", Z = (e, t, r) => {
2744
2750
  let n = -1;
2745
2751
  const i = cr(t) ? [t] : Pr(t), s = i.length, o = s - 1;
2746
2752
  for (; ++n < s; ) {
@@ -2775,7 +2781,7 @@ const er = {
2775
2781
  validate: "validate"
2776
2782
  }, Br = R.createContext(null);
2777
2783
  Br.displayName = "HookFormContext";
2778
- const dt = () => R.useContext(Br), sa = (e) => {
2784
+ const ht = () => R.useContext(Br), ia = (e) => {
2779
2785
  const { children: t, ...r } = e;
2780
2786
  return R.createElement(Br.Provider, { value: r }, t);
2781
2787
  };
@@ -2794,7 +2800,7 @@ var fi = (e, t, r, n = !0) => {
2794
2800
  };
2795
2801
  const Rr = typeof window < "u" ? Pe.useLayoutEffect : Pe.useEffect;
2796
2802
  function di(e) {
2797
- const t = dt(), { control: r = t.control, disabled: n, name: i, exact: s } = e || {}, [o, a] = R.useState(r._formState), l = R.useRef({
2803
+ const t = ht(), { control: r = t.control, disabled: n, name: i, exact: s } = e || {}, [o, a] = R.useState(r._formState), l = R.useRef({
2798
2804
  isDirty: !1,
2799
2805
  isLoading: !1,
2800
2806
  dirtyFields: !1,
@@ -2819,8 +2825,8 @@ function di(e) {
2819
2825
  }, [r]), R.useMemo(() => fi(o, r, l.current, !1), [o, r]);
2820
2826
  }
2821
2827
  var Ae = (e) => typeof e == "string", hi = (e, t, r, n, i) => Ae(e) ? (n && t.watch.add(e), A(r, e, i)) : Array.isArray(e) ? e.map((s) => (n && t.watch.add(s), A(r, s))) : (n && (t.watchAll = !0), r);
2822
- function pi(e) {
2823
- const t = dt(), { control: r = t.control, name: n, defaultValue: i, disabled: s, exact: o } = e || {}, a = R.useRef(i), [l, f] = R.useState(r._getWatch(n, a.current));
2828
+ function mi(e) {
2829
+ const t = ht(), { control: r = t.control, name: n, defaultValue: i, disabled: s, exact: o } = e || {}, a = R.useRef(i), [l, f] = R.useState(r._getWatch(n, a.current));
2824
2830
  return Rr(() => r._subscribe({
2825
2831
  name: n,
2826
2832
  formState: {
@@ -2830,8 +2836,8 @@ function pi(e) {
2830
2836
  callback: (u) => !s && f(hi(n, r._names, u.values || r._formValues, !1, a.current))
2831
2837
  }), [n, r, s, o]), R.useEffect(() => r._removeUnmounted()), l;
2832
2838
  }
2833
- function oa(e) {
2834
- const t = dt(), { name: r, disabled: n, control: i = t.control, shouldUnregister: s } = e, o = ui(i._names.array, r), a = pi({
2839
+ function sa(e) {
2840
+ const t = ht(), { name: r, disabled: n, control: i = t.control, shouldUnregister: s } = e, o = ui(i._names.array, r), a = mi({
2835
2841
  control: i,
2836
2842
  name: r,
2837
2843
  defaultValue: A(i._formValues, r, A(i._defaultValues, r, e.defaultValue)),
@@ -2843,7 +2849,7 @@ function oa(e) {
2843
2849
  }), f = R.useRef(e), u = R.useRef(i.register(r, {
2844
2850
  ...e.rules,
2845
2851
  value: a,
2846
- ...pe(e.disabled) ? { disabled: e.disabled } : {}
2852
+ ...me(e.disabled) ? { disabled: e.disabled } : {}
2847
2853
  })), d = R.useMemo(() => Object.defineProperties({}, {
2848
2854
  invalid: {
2849
2855
  enumerable: !0,
@@ -2865,9 +2871,9 @@ function oa(e) {
2865
2871
  enumerable: !0,
2866
2872
  get: () => A(l.errors, r)
2867
2873
  }
2868
- }), [l, r]), p = R.useCallback((y) => u.current.onChange({
2874
+ }), [l, r]), m = R.useCallback((b) => u.current.onChange({
2869
2875
  target: {
2870
- value: ci(y),
2876
+ value: ci(b),
2871
2877
  name: r
2872
2878
  },
2873
2879
  type: er.CHANGE
@@ -2877,38 +2883,38 @@ function oa(e) {
2877
2883
  name: r
2878
2884
  },
2879
2885
  type: er.BLUR
2880
- }), [r, i._formValues]), N = R.useCallback((y) => {
2886
+ }), [r, i._formValues]), x = R.useCallback((b) => {
2881
2887
  const _ = A(i._fields, r);
2882
- _ && y && (_._f.ref = {
2883
- focus: () => y.focus && y.focus(),
2884
- select: () => y.select && y.select(),
2885
- setCustomValidity: (w) => y.setCustomValidity(w),
2886
- reportValidity: () => y.reportValidity()
2888
+ _ && b && (_._f.ref = {
2889
+ focus: () => b.focus && b.focus(),
2890
+ select: () => b.select && b.select(),
2891
+ setCustomValidity: (w) => b.setCustomValidity(w),
2892
+ reportValidity: () => b.reportValidity()
2887
2893
  });
2888
- }, [i._fields, r]), b = R.useMemo(() => ({
2894
+ }, [i._fields, r]), y = R.useMemo(() => ({
2889
2895
  name: r,
2890
2896
  value: a,
2891
- ...pe(n) || l.disabled ? { disabled: l.disabled || n } : {},
2892
- onChange: p,
2897
+ ...me(n) || l.disabled ? { disabled: l.disabled || n } : {},
2898
+ onChange: m,
2893
2899
  onBlur: v,
2894
- ref: N
2895
- }), [r, n, l.disabled, p, v, N, a]);
2900
+ ref: x
2901
+ }), [r, n, l.disabled, m, v, x, a]);
2896
2902
  return R.useEffect(() => {
2897
- const y = i._options.shouldUnregister || s;
2903
+ const b = i._options.shouldUnregister || s;
2898
2904
  i.register(r, {
2899
2905
  ...f.current.rules,
2900
- ...pe(f.current.disabled) ? { disabled: f.current.disabled } : {}
2906
+ ...me(f.current.disabled) ? { disabled: f.current.disabled } : {}
2901
2907
  });
2902
2908
  const _ = (w, M) => {
2903
- const E = A(i._fields, w);
2904
- E && E._f && (E._f.mount = M);
2909
+ const S = A(i._fields, w);
2910
+ S && S._f && (S._f.mount = M);
2905
2911
  };
2906
- if (_(r, !0), y) {
2912
+ if (_(r, !0), b) {
2907
2913
  const w = ie(A(i._options.defaultValues, r));
2908
2914
  Z(i._defaultValues, r, w), ee(A(i._formValues, r)) && Z(i._formValues, r, w);
2909
2915
  }
2910
2916
  return !o && i.register(r), () => {
2911
- (o ? y && !i._state.action : y) ? i.unregister(r) : _(r, !1);
2917
+ (o ? b && !i._state.action : b) ? i.unregister(r) : _(r, !1);
2912
2918
  };
2913
2919
  }, [r, i, o, s]), R.useEffect(() => {
2914
2920
  i._setDisabledField({
@@ -2916,18 +2922,18 @@ function oa(e) {
2916
2922
  name: r
2917
2923
  });
2918
2924
  }, [n, r, i]), R.useMemo(() => ({
2919
- field: b,
2925
+ field: y,
2920
2926
  formState: l,
2921
2927
  fieldState: d
2922
- }), [b, l, d]);
2928
+ }), [y, l, d]);
2923
2929
  }
2924
- var mi = (e, t, r, n, i) => t ? {
2930
+ var pi = (e, t, r, n, i) => t ? {
2925
2931
  ...r[e],
2926
2932
  types: {
2927
2933
  ...r[e] && r[e].types ? r[e].types : {},
2928
2934
  [n]: i || !0
2929
2935
  }
2930
- } : {}, Ct = (e) => Array.isArray(e) ? e : [e], un = () => {
2936
+ } : {}, kt = (e) => Array.isArray(e) ? e : [e], un = () => {
2931
2937
  let e = [];
2932
2938
  return {
2933
2939
  get observers() {
@@ -2975,23 +2981,23 @@ var fe = (e) => te(e) && !Object.keys(e).length, jr = (e) => e.type === "file",
2975
2981
  return !1;
2976
2982
  const t = e ? e.ownerDocument : 0;
2977
2983
  return e instanceof (t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement);
2978
- }, vi = (e) => e.type === "select-multiple", Ir = (e) => e.type === "radio", aa = (e) => Ir(e) || Tt(e), hr = (e) => tr(e) && e.isConnected;
2979
- function la(e, t) {
2984
+ }, vi = (e) => e.type === "select-multiple", Ir = (e) => e.type === "radio", oa = (e) => Ir(e) || Tt(e), hr = (e) => tr(e) && e.isConnected;
2985
+ function aa(e, t) {
2980
2986
  const r = t.slice(0, -1).length;
2981
2987
  let n = 0;
2982
2988
  for (; n < r; )
2983
2989
  e = ee(e) ? n++ : e[t[n++]];
2984
2990
  return e;
2985
2991
  }
2986
- function ca(e) {
2992
+ function la(e) {
2987
2993
  for (const t in e)
2988
2994
  if (e.hasOwnProperty(t) && !ee(e[t]))
2989
2995
  return !1;
2990
2996
  return !0;
2991
2997
  }
2992
2998
  function re(e, t) {
2993
- const r = Array.isArray(t) ? t : cr(t) ? [t] : Pr(t), n = r.length === 1 ? e : la(e, r), i = r.length - 1, s = r[i];
2994
- return n && delete n[s], i !== 0 && (te(n) && fe(n) || Array.isArray(n) && ca(n)) && re(e, r.slice(0, -1)), e;
2999
+ const r = Array.isArray(t) ? t : cr(t) ? [t] : Pr(t), n = r.length === 1 ? e : aa(e, r), i = r.length - 1, s = r[i];
3000
+ return n && delete n[s], i !== 0 && (te(n) && fe(n) || Array.isArray(n) && la(n)) && re(e, r.slice(0, -1)), e;
2995
3001
  }
2996
3002
  var gi = (e) => {
2997
3003
  for (const t in e)
@@ -3013,7 +3019,7 @@ function bi(e, t, r) {
3013
3019
  Array.isArray(e[i]) || te(e[i]) && !gi(e[i]) ? ee(t) || gr(r[i]) ? r[i] = Array.isArray(e[i]) ? rr(e[i], []) : { ...rr(e[i]) } : bi(e[i], le(t) ? {} : t[i], r[i]) : r[i] = !We(e[i], t[i]);
3014
3020
  return r;
3015
3021
  }
3016
- var yt = (e, t) => bi(e, t, rr(t));
3022
+ var wt = (e, t) => bi(e, t, rr(t));
3017
3023
  const fn = {
3018
3024
  value: !1,
3019
3025
  isValid: !1
@@ -3039,11 +3045,11 @@ var xi = (e) => Array.isArray(e) ? e.reduce((t, r) => r && r.checked && !r.disab
3039
3045
  isValid: !0,
3040
3046
  value: r.value
3041
3047
  } : t, hn) : hn;
3042
- function pn(e) {
3048
+ function mn(e) {
3043
3049
  const t = e.ref;
3044
3050
  return jr(t) ? t.files : Ir(t) ? xi(e.refs).value : vi(t) ? [...t.selectedOptions].map(({ value: r }) => r) : Tt(t) ? yi(e.refs).value : wi(ee(t.value) ? e.ref.value : t.value, e);
3045
3051
  }
3046
- var ua = (e, t, r, n) => {
3052
+ var ca = (e, t, r, n) => {
3047
3053
  const i = {};
3048
3054
  for (const s of e) {
3049
3055
  const o = A(t, s);
@@ -3055,7 +3061,7 @@ var ua = (e, t, r, n) => {
3055
3061
  fields: i,
3056
3062
  shouldUseNativeValidation: n
3057
3063
  };
3058
- }, nr = (e) => e instanceof RegExp, wt = (e) => ee(e) ? e : nr(e) ? e.source : te(e) ? nr(e.value) ? e.value.source : e.value : e, mn = (e) => ({
3064
+ }, nr = (e) => e instanceof RegExp, xt = (e) => ee(e) ? e : nr(e) ? e.source : te(e) ? nr(e.value) ? e.value.source : e.value : e, pn = (e) => ({
3059
3065
  isOnSubmit: !e || e === ke.onSubmit,
3060
3066
  isOnBlur: e === ke.onBlur,
3061
3067
  isOnChange: e === ke.onChange,
@@ -3063,8 +3069,8 @@ var ua = (e, t, r, n) => {
3063
3069
  isOnTouch: e === ke.onTouched
3064
3070
  });
3065
3071
  const vn = "AsyncFunction";
3066
- var fa = (e) => !!e && !!e.validate && !!(Oe(e.validate) && e.validate.constructor.name === vn || te(e.validate) && Object.values(e.validate).find((t) => t.constructor.name === vn)), da = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), gn = (e, t, r) => !r && (t.watchAll || t.watch.has(e) || [...t.watch].some((n) => e.startsWith(n) && /^\.\w+/.test(e.slice(n.length))));
3067
- const kt = (e, t, r, n) => {
3072
+ var ua = (e) => !!e && !!e.validate && !!(Oe(e.validate) && e.validate.constructor.name === vn || te(e.validate) && Object.values(e.validate).find((t) => t.constructor.name === vn)), fa = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), gn = (e, t, r) => !r && (t.watchAll || t.watch.has(e) || [...t.watch].some((n) => e.startsWith(n) && /^\.\w+/.test(e.slice(n.length))));
3073
+ const Ot = (e, t, r, n) => {
3068
3074
  for (const i of r || Object.keys(e)) {
3069
3075
  const s = A(e, i);
3070
3076
  if (s) {
@@ -3074,9 +3080,9 @@ const kt = (e, t, r, n) => {
3074
3080
  return !0;
3075
3081
  if (o.ref && t(o.ref, o.name) && !n)
3076
3082
  return !0;
3077
- if (kt(a, t))
3083
+ if (Ot(a, t))
3078
3084
  break;
3079
- } else if (te(a) && kt(a, t))
3085
+ } else if (te(a) && Ot(a, t))
3080
3086
  break;
3081
3087
  }
3082
3088
  }
@@ -3109,53 +3115,53 @@ function bn(e, t, r) {
3109
3115
  name: r
3110
3116
  };
3111
3117
  }
3112
- var ha = (e, t, r, n) => {
3118
+ var da = (e, t, r, n) => {
3113
3119
  r(e);
3114
3120
  const { name: i, ...s } = e;
3115
3121
  return fe(s) || Object.keys(s).length >= Object.keys(t).length || Object.keys(s).find((o) => t[o] === (!n || ke.all));
3116
- }, pa = (e, t, r) => !e || !t || e === t || Ct(e).some((n) => n && (r ? n === t : n.startsWith(t) || t.startsWith(n))), ma = (e, t, r, n, i) => i.isOnAll ? !1 : !r && i.isOnTouch ? !(t || e) : (r ? n.isOnBlur : i.isOnBlur) ? !e : (r ? n.isOnChange : i.isOnChange) ? e : !0, va = (e, t) => !Mr(A(e, t)).length && re(e, t), ga = (e, t, r) => {
3117
- const n = Ct(A(e, r));
3122
+ }, ha = (e, t, r) => !e || !t || e === t || kt(e).some((n) => n && (r ? n === t : n.startsWith(t) || t.startsWith(n))), ma = (e, t, r, n, i) => i.isOnAll ? !1 : !r && i.isOnTouch ? !(t || e) : (r ? n.isOnBlur : i.isOnBlur) ? !e : (r ? n.isOnChange : i.isOnChange) ? e : !0, pa = (e, t) => !Mr(A(e, t)).length && re(e, t), va = (e, t, r) => {
3123
+ const n = kt(A(e, r));
3118
3124
  return Z(n, "root", t[r]), Z(e, r, n), e;
3119
3125
  }, Zt = (e) => Ae(e);
3120
3126
  function yn(e, t, r = "validate") {
3121
- if (Zt(e) || Array.isArray(e) && e.every(Zt) || pe(e) && !e)
3127
+ if (Zt(e) || Array.isArray(e) && e.every(Zt) || me(e) && !e)
3122
3128
  return {
3123
3129
  type: r,
3124
3130
  message: Zt(e) ? e : "",
3125
3131
  ref: t
3126
3132
  };
3127
3133
  }
3128
- var st = (e) => te(e) && !nr(e) ? e : {
3134
+ var ot = (e) => te(e) && !nr(e) ? e : {
3129
3135
  value: e,
3130
3136
  message: ""
3131
3137
  }, wn = async (e, t, r, n, i, s) => {
3132
- const { ref: o, refs: a, required: l, maxLength: f, minLength: u, min: d, max: p, pattern: v, validate: N, name: b, valueAsNumber: y, mount: _ } = e._f, w = A(r, b);
3133
- if (!_ || t.has(b))
3138
+ const { ref: o, refs: a, required: l, maxLength: f, minLength: u, min: d, max: m, pattern: v, validate: x, name: y, valueAsNumber: b, mount: _ } = e._f, w = A(r, y);
3139
+ if (!_ || t.has(y))
3134
3140
  return {};
3135
- const M = a ? a[0] : o, E = (D) => {
3136
- i && M.reportValidity && (M.setCustomValidity(pe(D) ? "" : D || ""), M.reportValidity());
3137
- }, F = {}, L = Ir(o), k = Tt(o), $ = L || k, j = (y || jr(o)) && ee(o.value) && ee(w) || tr(o) && o.value === "" || w === "" || Array.isArray(w) && !w.length, H = mi.bind(null, b, n, F), B = (D, I, q, J = Me.maxLength, X = Me.minLength) => {
3141
+ const M = a ? a[0] : o, S = (D) => {
3142
+ i && M.reportValidity && (M.setCustomValidity(me(D) ? "" : D || ""), M.reportValidity());
3143
+ }, F = {}, L = Ir(o), k = Tt(o), $ = L || k, j = (b || jr(o)) && ee(o.value) && ee(w) || tr(o) && o.value === "" || w === "" || Array.isArray(w) && !w.length, H = pi.bind(null, y, n, F), B = (D, I, q, J = Me.maxLength, X = Me.minLength) => {
3138
3144
  const Q = D ? I : q;
3139
- F[b] = {
3145
+ F[y] = {
3140
3146
  type: D ? J : X,
3141
3147
  message: Q,
3142
3148
  ref: o,
3143
3149
  ...H(D ? J : X, Q)
3144
3150
  };
3145
3151
  };
3146
- if (s ? !Array.isArray(w) || !w.length : l && (!$ && (j || le(w)) || pe(w) && !w || k && !yi(a).isValid || L && !xi(a).isValid)) {
3147
- const { value: D, message: I } = Zt(l) ? { value: !!l, message: l } : st(l);
3148
- if (D && (F[b] = {
3152
+ if (s ? !Array.isArray(w) || !w.length : l && (!$ && (j || le(w)) || me(w) && !w || k && !yi(a).isValid || L && !xi(a).isValid)) {
3153
+ const { value: D, message: I } = Zt(l) ? { value: !!l, message: l } : ot(l);
3154
+ if (D && (F[y] = {
3149
3155
  type: Me.required,
3150
3156
  message: I,
3151
3157
  ref: M,
3152
3158
  ...H(Me.required, I)
3153
3159
  }, !n))
3154
- return E(I), F;
3160
+ return S(I), F;
3155
3161
  }
3156
- if (!j && (!le(d) || !le(p))) {
3162
+ if (!j && (!le(d) || !le(m))) {
3157
3163
  let D, I;
3158
- const q = st(p), J = st(d);
3164
+ const q = ot(m), J = ot(d);
3159
3165
  if (!le(w) && !isNaN(w)) {
3160
3166
  const X = o.valueAsNumber || w && +w;
3161
3167
  le(q.value) || (D = X > q.value), le(J.value) || (I = X < J.value);
@@ -3164,59 +3170,59 @@ var st = (e) => te(e) && !nr(e) ? e : {
3164
3170
  Ae(q.value) && w && (D = Ee ? Q(w) > Q(q.value) : ue ? w > q.value : X > new Date(q.value)), Ae(J.value) && w && (I = Ee ? Q(w) < Q(J.value) : ue ? w < J.value : X < new Date(J.value));
3165
3171
  }
3166
3172
  if ((D || I) && (B(!!D, q.message, J.message, Me.max, Me.min), !n))
3167
- return E(F[b].message), F;
3173
+ return S(F[y].message), F;
3168
3174
  }
3169
3175
  if ((f || u) && !j && (Ae(w) || s && Array.isArray(w))) {
3170
- const D = st(f), I = st(u), q = !le(D.value) && w.length > +D.value, J = !le(I.value) && w.length < +I.value;
3176
+ const D = ot(f), I = ot(u), q = !le(D.value) && w.length > +D.value, J = !le(I.value) && w.length < +I.value;
3171
3177
  if ((q || J) && (B(q, D.message, I.message), !n))
3172
- return E(F[b].message), F;
3178
+ return S(F[y].message), F;
3173
3179
  }
3174
3180
  if (v && !j && Ae(w)) {
3175
- const { value: D, message: I } = st(v);
3176
- if (nr(D) && !w.match(D) && (F[b] = {
3181
+ const { value: D, message: I } = ot(v);
3182
+ if (nr(D) && !w.match(D) && (F[y] = {
3177
3183
  type: Me.pattern,
3178
3184
  message: I,
3179
3185
  ref: o,
3180
3186
  ...H(Me.pattern, I)
3181
3187
  }, !n))
3182
- return E(I), F;
3188
+ return S(I), F;
3183
3189
  }
3184
- if (N) {
3185
- if (Oe(N)) {
3186
- const D = await N(w, r), I = yn(D, M);
3187
- if (I && (F[b] = {
3190
+ if (x) {
3191
+ if (Oe(x)) {
3192
+ const D = await x(w, r), I = yn(D, M);
3193
+ if (I && (F[y] = {
3188
3194
  ...I,
3189
3195
  ...H(Me.validate, I.message)
3190
3196
  }, !n))
3191
- return E(I.message), F;
3192
- } else if (te(N)) {
3197
+ return S(I.message), F;
3198
+ } else if (te(x)) {
3193
3199
  let D = {};
3194
- for (const I in N) {
3200
+ for (const I in x) {
3195
3201
  if (!fe(D) && !n)
3196
3202
  break;
3197
- const q = yn(await N[I](w, r), M, I);
3203
+ const q = yn(await x[I](w, r), M, I);
3198
3204
  q && (D = {
3199
3205
  ...q,
3200
3206
  ...H(I, q.message)
3201
- }, E(q.message), n && (F[b] = D));
3207
+ }, S(q.message), n && (F[y] = D));
3202
3208
  }
3203
- if (!fe(D) && (F[b] = {
3209
+ if (!fe(D) && (F[y] = {
3204
3210
  ref: M,
3205
3211
  ...D
3206
3212
  }, !n))
3207
3213
  return F;
3208
3214
  }
3209
3215
  }
3210
- return E(!0), F;
3216
+ return S(!0), F;
3211
3217
  };
3212
- const ba = {
3218
+ const ga = {
3213
3219
  mode: ke.onSubmit,
3214
3220
  reValidateMode: ke.onChange,
3215
3221
  shouldFocusError: !0
3216
3222
  };
3217
- function ya(e = {}) {
3223
+ function ba(e = {}) {
3218
3224
  let t = {
3219
- ...ba,
3225
+ ...ga,
3220
3226
  ...e
3221
3227
  }, r = {
3222
3228
  submitCount: 0,
@@ -3256,26 +3262,26 @@ function ya(e = {}) {
3256
3262
  let d = {
3257
3263
  ...u
3258
3264
  };
3259
- const p = {
3265
+ const m = {
3260
3266
  array: un(),
3261
3267
  state: un()
3262
- }, v = t.criteriaMode === ke.all, N = (h) => (m) => {
3263
- clearTimeout(f), f = setTimeout(h, m);
3264
- }, b = async (h) => {
3268
+ }, v = t.criteriaMode === ke.all, x = (h) => (p) => {
3269
+ clearTimeout(f), f = setTimeout(h, p);
3270
+ }, y = async (h) => {
3265
3271
  if (!t.disabled && (u.isValid || d.isValid || h)) {
3266
- const m = t.resolver ? fe((await k()).errors) : await j(n, !0);
3267
- m !== r.isValid && p.state.next({
3268
- isValid: m
3272
+ const p = t.resolver ? fe((await k()).errors) : await j(n, !0);
3273
+ p !== r.isValid && m.state.next({
3274
+ isValid: p
3269
3275
  });
3270
3276
  }
3271
- }, y = (h, m) => {
3277
+ }, b = (h, p) => {
3272
3278
  !t.disabled && (u.isValidating || u.validatingFields || d.isValidating || d.validatingFields) && ((h || Array.from(a.mount)).forEach((g) => {
3273
- g && (m ? Z(r.validatingFields, g, m) : re(r.validatingFields, g));
3274
- }), p.state.next({
3279
+ g && (p ? Z(r.validatingFields, g, p) : re(r.validatingFields, g));
3280
+ }), m.state.next({
3275
3281
  validatingFields: r.validatingFields,
3276
3282
  isValidating: !fe(r.validatingFields)
3277
3283
  }));
3278
- }, _ = (h, m = [], g, V, O = !0, C = !0) => {
3284
+ }, _ = (h, p = [], g, V, O = !0, C = !0) => {
3279
3285
  if (V && g && !t.disabled) {
3280
3286
  if (o.action = !0, C && Array.isArray(A(n, h))) {
3281
3287
  const P = g(A(n, h), V.argA, V.argB);
@@ -3283,37 +3289,37 @@ function ya(e = {}) {
3283
3289
  }
3284
3290
  if (C && Array.isArray(A(r.errors, h))) {
3285
3291
  const P = g(A(r.errors, h), V.argA, V.argB);
3286
- O && Z(r.errors, h, P), va(r.errors, h);
3292
+ O && Z(r.errors, h, P), pa(r.errors, h);
3287
3293
  }
3288
3294
  if ((u.touchedFields || d.touchedFields) && C && Array.isArray(A(r.touchedFields, h))) {
3289
3295
  const P = g(A(r.touchedFields, h), V.argA, V.argB);
3290
3296
  O && Z(r.touchedFields, h, P);
3291
3297
  }
3292
- (u.dirtyFields || d.dirtyFields) && (r.dirtyFields = yt(i, s)), p.state.next({
3298
+ (u.dirtyFields || d.dirtyFields) && (r.dirtyFields = wt(i, s)), m.state.next({
3293
3299
  name: h,
3294
- isDirty: B(h, m),
3300
+ isDirty: B(h, p),
3295
3301
  dirtyFields: r.dirtyFields,
3296
3302
  errors: r.errors,
3297
3303
  isValid: r.isValid
3298
3304
  });
3299
3305
  } else
3300
- Z(s, h, m);
3301
- }, w = (h, m) => {
3302
- Z(r.errors, h, m), p.state.next({
3306
+ Z(s, h, p);
3307
+ }, w = (h, p) => {
3308
+ Z(r.errors, h, p), m.state.next({
3303
3309
  errors: r.errors
3304
3310
  });
3305
3311
  }, M = (h) => {
3306
- r.errors = h, p.state.next({
3312
+ r.errors = h, m.state.next({
3307
3313
  errors: r.errors,
3308
3314
  isValid: !1
3309
3315
  });
3310
- }, E = (h, m, g, V) => {
3316
+ }, S = (h, p, g, V) => {
3311
3317
  const O = A(n, h);
3312
3318
  if (O) {
3313
3319
  const C = A(s, h, ee(g) ? A(i, h) : g);
3314
- ee(C) || V && V.defaultChecked || m ? Z(s, h, m ? C : pn(O._f)) : q(h, C), o.mount && b();
3320
+ ee(C) || V && V.defaultChecked || p ? Z(s, h, p ? C : mn(O._f)) : q(h, C), o.mount && y();
3315
3321
  }
3316
- }, F = (h, m, g, V, O) => {
3322
+ }, F = (h, p, g, V, O) => {
3317
3323
  let C = !1, P = !1;
3318
3324
  const U = {
3319
3325
  name: h
@@ -3321,45 +3327,45 @@ function ya(e = {}) {
3321
3327
  if (!t.disabled) {
3322
3328
  if (!g || V) {
3323
3329
  (u.isDirty || d.isDirty) && (P = r.isDirty, r.isDirty = U.isDirty = B(), C = P !== U.isDirty);
3324
- const z = We(A(i, h), m);
3330
+ const z = We(A(i, h), p);
3325
3331
  P = !!A(r.dirtyFields, h), z ? re(r.dirtyFields, h) : Z(r.dirtyFields, h, !0), U.dirtyFields = r.dirtyFields, C = C || (u.dirtyFields || d.dirtyFields) && P !== !z;
3326
3332
  }
3327
3333
  if (g) {
3328
3334
  const z = A(r.touchedFields, h);
3329
3335
  z || (Z(r.touchedFields, h, g), U.touchedFields = r.touchedFields, C = C || (u.touchedFields || d.touchedFields) && z !== g);
3330
3336
  }
3331
- C && O && p.state.next(U);
3337
+ C && O && m.state.next(U);
3332
3338
  }
3333
3339
  return C ? U : {};
3334
- }, L = (h, m, g, V) => {
3335
- const O = A(r.errors, h), C = (u.isValid || d.isValid) && pe(m) && r.isValid !== m;
3336
- if (t.delayError && g ? (l = N(() => w(h, g)), l(t.delayError)) : (clearTimeout(f), l = null, g ? Z(r.errors, h, g) : re(r.errors, h)), (g ? !We(O, g) : O) || !fe(V) || C) {
3340
+ }, L = (h, p, g, V) => {
3341
+ const O = A(r.errors, h), C = (u.isValid || d.isValid) && me(p) && r.isValid !== p;
3342
+ if (t.delayError && g ? (l = x(() => w(h, g)), l(t.delayError)) : (clearTimeout(f), l = null, g ? Z(r.errors, h, g) : re(r.errors, h)), (g ? !We(O, g) : O) || !fe(V) || C) {
3337
3343
  const P = {
3338
3344
  ...V,
3339
- ...C && pe(m) ? { isValid: m } : {},
3345
+ ...C && me(p) ? { isValid: p } : {},
3340
3346
  errors: r.errors,
3341
3347
  name: h
3342
3348
  };
3343
3349
  r = {
3344
3350
  ...r,
3345
3351
  ...P
3346
- }, p.state.next(P);
3352
+ }, m.state.next(P);
3347
3353
  }
3348
3354
  }, k = async (h) => {
3349
- y(h, !0);
3350
- const m = await t.resolver(s, t.context, ua(h || a.mount, n, t.criteriaMode, t.shouldUseNativeValidation));
3351
- return y(h), m;
3355
+ b(h, !0);
3356
+ const p = await t.resolver(s, t.context, ca(h || a.mount, n, t.criteriaMode, t.shouldUseNativeValidation));
3357
+ return b(h), p;
3352
3358
  }, $ = async (h) => {
3353
- const { errors: m } = await k(h);
3359
+ const { errors: p } = await k(h);
3354
3360
  if (h)
3355
3361
  for (const g of h) {
3356
- const V = A(m, g);
3362
+ const V = A(p, g);
3357
3363
  V ? Z(r.errors, g, V) : re(r.errors, g);
3358
3364
  }
3359
3365
  else
3360
- r.errors = m;
3361
- return m;
3362
- }, j = async (h, m, g = {
3366
+ r.errors = p;
3367
+ return p;
3368
+ }, j = async (h, p, g = {
3363
3369
  valid: !0
3364
3370
  }) => {
3365
3371
  for (const V in h) {
@@ -3367,138 +3373,138 @@ function ya(e = {}) {
3367
3373
  if (O) {
3368
3374
  const { _f: C, ...P } = O;
3369
3375
  if (C) {
3370
- const U = a.array.has(C.name), z = O._f && fa(O._f);
3371
- z && u.validatingFields && y([V], !0);
3372
- const ge = await wn(O, a.disabled, s, v, t.shouldUseNativeValidation && !m, U);
3373
- if (z && u.validatingFields && y([V]), ge[C.name] && (g.valid = !1, m))
3376
+ const U = a.array.has(C.name), z = O._f && ua(O._f);
3377
+ z && u.validatingFields && b([V], !0);
3378
+ const ge = await wn(O, a.disabled, s, v, t.shouldUseNativeValidation && !p, U);
3379
+ if (z && u.validatingFields && b([V]), ge[C.name] && (g.valid = !1, p))
3374
3380
  break;
3375
- !m && (A(ge, C.name) ? U ? ga(r.errors, ge, C.name) : Z(r.errors, C.name, ge[C.name]) : re(r.errors, C.name));
3381
+ !p && (A(ge, C.name) ? U ? va(r.errors, ge, C.name) : Z(r.errors, C.name, ge[C.name]) : re(r.errors, C.name));
3376
3382
  }
3377
- !fe(P) && await j(P, m, g);
3383
+ !fe(P) && await j(P, p, g);
3378
3384
  }
3379
3385
  }
3380
3386
  return g.valid;
3381
3387
  }, H = () => {
3382
3388
  for (const h of a.unMount) {
3383
- const m = A(n, h);
3384
- m && (m._f.refs ? m._f.refs.every((g) => !hr(g)) : !hr(m._f.ref)) && Ie(h);
3389
+ const p = A(n, h);
3390
+ p && (p._f.refs ? p._f.refs.every((g) => !hr(g)) : !hr(p._f.ref)) && Ie(h);
3385
3391
  }
3386
3392
  a.unMount = /* @__PURE__ */ new Set();
3387
- }, B = (h, m) => !t.disabled && (h && m && Z(s, h, m), !We(Te(), i)), D = (h, m, g) => hi(h, a, {
3388
- ...o.mount ? s : ee(m) ? i : Ae(h) ? { [h]: m } : m
3389
- }, g, m), I = (h) => Mr(A(o.mount ? s : i, h, t.shouldUnregister ? A(i, h, []) : [])), q = (h, m, g = {}) => {
3393
+ }, B = (h, p) => !t.disabled && (h && p && Z(s, h, p), !We(Te(), i)), D = (h, p, g) => hi(h, a, {
3394
+ ...o.mount ? s : ee(p) ? i : Ae(h) ? { [h]: p } : p
3395
+ }, g, p), I = (h) => Mr(A(o.mount ? s : i, h, t.shouldUnregister ? A(i, h, []) : [])), q = (h, p, g = {}) => {
3390
3396
  const V = A(n, h);
3391
- let O = m;
3397
+ let O = p;
3392
3398
  if (V) {
3393
3399
  const C = V._f;
3394
- C && (!C.disabled && Z(s, h, wi(m, C)), O = tr(C.ref) && le(m) ? "" : m, vi(C.ref) ? [...C.ref.options].forEach((P) => P.selected = O.includes(P.value)) : C.refs ? Tt(C.ref) ? C.refs.forEach((P) => {
3400
+ C && (!C.disabled && Z(s, h, wi(p, C)), O = tr(C.ref) && le(p) ? "" : p, vi(C.ref) ? [...C.ref.options].forEach((P) => P.selected = O.includes(P.value)) : C.refs ? Tt(C.ref) ? C.refs.forEach((P) => {
3395
3401
  (!P.defaultChecked || !P.disabled) && (Array.isArray(O) ? P.checked = !!O.find((U) => U === P.value) : P.checked = O === P.value || !!O);
3396
- }) : C.refs.forEach((P) => P.checked = P.value === O) : jr(C.ref) ? C.ref.value = "" : (C.ref.value = O, C.ref.type || p.state.next({
3402
+ }) : C.refs.forEach((P) => P.checked = P.value === O) : jr(C.ref) ? C.ref.value = "" : (C.ref.value = O, C.ref.type || m.state.next({
3397
3403
  name: h,
3398
3404
  values: ie(s)
3399
3405
  })));
3400
3406
  }
3401
3407
  (g.shouldDirty || g.shouldTouch) && F(h, O, g.shouldTouch, g.shouldDirty, !0), g.shouldValidate && ue(h);
3402
- }, J = (h, m, g) => {
3403
- for (const V in m) {
3404
- if (!m.hasOwnProperty(V))
3408
+ }, J = (h, p, g) => {
3409
+ for (const V in p) {
3410
+ if (!p.hasOwnProperty(V))
3405
3411
  return;
3406
- const O = m[V], C = h + "." + V, P = A(n, C);
3412
+ const O = p[V], C = h + "." + V, P = A(n, C);
3407
3413
  (a.array.has(h) || te(O) || P && !P._f) && !Ke(O) ? J(C, O, g) : q(C, O, g);
3408
3414
  }
3409
- }, X = (h, m, g = {}) => {
3410
- const V = A(n, h), O = a.array.has(h), C = ie(m);
3411
- Z(s, h, C), O ? (p.array.next({
3415
+ }, X = (h, p, g = {}) => {
3416
+ const V = A(n, h), O = a.array.has(h), C = ie(p);
3417
+ Z(s, h, C), O ? (m.array.next({
3412
3418
  name: h,
3413
3419
  values: ie(s)
3414
- }), (u.isDirty || u.dirtyFields || d.isDirty || d.dirtyFields) && g.shouldDirty && p.state.next({
3420
+ }), (u.isDirty || u.dirtyFields || d.isDirty || d.dirtyFields) && g.shouldDirty && m.state.next({
3415
3421
  name: h,
3416
- dirtyFields: yt(i, s),
3422
+ dirtyFields: wt(i, s),
3417
3423
  isDirty: B(h, C)
3418
- })) : V && !V._f && !le(C) ? J(h, C, g) : q(h, C, g), gn(h, a) && p.state.next({ ...r }), p.state.next({
3424
+ })) : V && !V._f && !le(C) ? J(h, C, g) : q(h, C, g), gn(h, a) && m.state.next({ ...r }), m.state.next({
3419
3425
  name: o.mount ? h : void 0,
3420
3426
  values: ie(s)
3421
3427
  });
3422
3428
  }, Q = async (h) => {
3423
3429
  o.mount = !0;
3424
- const m = h.target;
3425
- let g = m.name, V = !0;
3430
+ const p = h.target;
3431
+ let g = p.name, V = !0;
3426
3432
  const O = A(n, g), C = (z) => {
3427
3433
  V = Number.isNaN(z) || Ke(z) && isNaN(z.getTime()) || We(z, A(s, g, z));
3428
- }, P = mn(t.mode), U = mn(t.reValidateMode);
3434
+ }, P = pn(t.mode), U = pn(t.reValidateMode);
3429
3435
  if (O) {
3430
3436
  let z, ge;
3431
- const Ht = m.type ? pn(O._f) : ci(h), $e = h.type === er.BLUR || h.type === er.FOCUS_OUT, Vi = !da(O._f) && !t.resolver && !A(r.errors, g) && !O._f.deps || ma($e, A(r.touchedFields, g), r.isSubmitted, U, P), ur = gn(g, a, $e);
3437
+ const Ht = p.type ? mn(O._f) : ci(h), $e = h.type === er.BLUR || h.type === er.FOCUS_OUT, Vi = !fa(O._f) && !t.resolver && !A(r.errors, g) && !O._f.deps || ma($e, A(r.touchedFields, g), r.isSubmitted, U, P), ur = gn(g, a, $e);
3432
3438
  Z(s, g, Ht), $e ? (O._f.onBlur && O._f.onBlur(h), l && l(0)) : O._f.onChange && O._f.onChange(h);
3433
3439
  const fr = F(g, Ht, $e), _i = !fe(fr) || ur;
3434
- if (!$e && p.state.next({
3440
+ if (!$e && m.state.next({
3435
3441
  name: g,
3436
3442
  type: h.type,
3437
3443
  values: ie(s)
3438
3444
  }), Vi)
3439
- return (u.isValid || d.isValid) && (t.mode === "onBlur" ? $e && b() : $e || b()), _i && p.state.next({ name: g, ...ur ? {} : fr });
3440
- if (!$e && ur && p.state.next({ ...r }), t.resolver) {
3445
+ return (u.isValid || d.isValid) && (t.mode === "onBlur" ? $e && y() : $e || y()), _i && m.state.next({ name: g, ...ur ? {} : fr });
3446
+ if (!$e && ur && m.state.next({ ...r }), t.resolver) {
3441
3447
  const { errors: zr } = await k([g]);
3442
3448
  if (C(Ht), V) {
3443
3449
  const Di = bn(r.errors, n, g), Zr = bn(zr, n, Di.name || g);
3444
3450
  z = Zr.error, g = Zr.name, ge = fe(zr);
3445
3451
  }
3446
3452
  } else
3447
- y([g], !0), z = (await wn(O, a.disabled, s, v, t.shouldUseNativeValidation))[g], y([g]), C(Ht), V && (z ? ge = !1 : (u.isValid || d.isValid) && (ge = await j(n, !0)));
3453
+ b([g], !0), z = (await wn(O, a.disabled, s, v, t.shouldUseNativeValidation))[g], b([g]), C(Ht), V && (z ? ge = !1 : (u.isValid || d.isValid) && (ge = await j(n, !0)));
3448
3454
  V && (O._f.deps && ue(O._f.deps), L(g, ge, z, fr));
3449
3455
  }
3450
- }, Ee = (h, m) => {
3451
- if (A(r.errors, m) && h.focus)
3456
+ }, Ee = (h, p) => {
3457
+ if (A(r.errors, p) && h.focus)
3452
3458
  return h.focus(), 1;
3453
- }, ue = async (h, m = {}) => {
3459
+ }, ue = async (h, p = {}) => {
3454
3460
  let g, V;
3455
- const O = Ct(h);
3461
+ const O = kt(h);
3456
3462
  if (t.resolver) {
3457
3463
  const C = await $(ee(h) ? h : O);
3458
3464
  g = fe(C), V = h ? !O.some((P) => A(C, P)) : g;
3459
3465
  } else h ? (V = (await Promise.all(O.map(async (C) => {
3460
3466
  const P = A(n, C);
3461
3467
  return await j(P && P._f ? { [C]: P } : P);
3462
- }))).every(Boolean), !(!V && !r.isValid) && b()) : V = g = await j(n);
3463
- return p.state.next({
3468
+ }))).every(Boolean), !(!V && !r.isValid) && y()) : V = g = await j(n);
3469
+ return m.state.next({
3464
3470
  ...!Ae(h) || (u.isValid || d.isValid) && g !== r.isValid ? {} : { name: h },
3465
3471
  ...t.resolver || !h ? { isValid: g } : {},
3466
3472
  errors: r.errors
3467
- }), m.shouldFocus && !V && kt(n, Ee, h ? O : a.mount), V;
3473
+ }), p.shouldFocus && !V && Ot(n, Ee, h ? O : a.mount), V;
3468
3474
  }, Te = (h) => {
3469
- const m = {
3475
+ const p = {
3470
3476
  ...o.mount ? s : i
3471
3477
  };
3472
- return ee(h) ? m : Ae(h) ? A(m, h) : h.map((g) => A(m, g));
3473
- }, it = (h, m) => ({
3474
- invalid: !!A((m || r).errors, h),
3475
- isDirty: !!A((m || r).dirtyFields, h),
3476
- error: A((m || r).errors, h),
3478
+ return ee(h) ? p : Ae(h) ? A(p, h) : h.map((g) => A(p, g));
3479
+ }, st = (h, p) => ({
3480
+ invalid: !!A((p || r).errors, h),
3481
+ isDirty: !!A((p || r).dirtyFields, h),
3482
+ error: A((p || r).errors, h),
3477
3483
  isValidating: !!A(r.validatingFields, h),
3478
- isTouched: !!A((m || r).touchedFields, h)
3484
+ isTouched: !!A((p || r).touchedFields, h)
3479
3485
  }), ze = (h) => {
3480
- h && Ct(h).forEach((m) => re(r.errors, m)), p.state.next({
3486
+ h && kt(h).forEach((p) => re(r.errors, p)), m.state.next({
3481
3487
  errors: h ? r.errors : {}
3482
3488
  });
3483
- }, Ze = (h, m, g) => {
3489
+ }, Ze = (h, p, g) => {
3484
3490
  const V = (A(n, h, { _f: {} })._f || {}).ref, O = A(r.errors, h) || {}, { ref: C, message: P, type: U, ...z } = O;
3485
3491
  Z(r.errors, h, {
3486
3492
  ...z,
3487
- ...m,
3493
+ ...p,
3488
3494
  ref: V
3489
- }), p.state.next({
3495
+ }), m.state.next({
3490
3496
  name: h,
3491
3497
  errors: r.errors,
3492
3498
  isValid: !1
3493
3499
  }), g && g.shouldFocus && V && V.focus && V.focus();
3494
- }, je = (h, m) => Oe(h) ? p.state.subscribe({
3495
- next: (g) => h(D(void 0, m), g)
3496
- }) : D(h, m, !0), Ce = (h) => p.state.subscribe({
3497
- next: (m) => {
3498
- pa(h.name, m.name, h.exact) && ha(m, h.formState || u, It, h.reRenderRoot) && h.callback({
3500
+ }, je = (h, p) => Oe(h) ? m.state.subscribe({
3501
+ next: (g) => h(D(void 0, p), g)
3502
+ }) : D(h, p, !0), Ce = (h) => m.state.subscribe({
3503
+ next: (p) => {
3504
+ ha(h.name, p.name, h.exact) && da(p, h.formState || u, It, h.reRenderRoot) && h.callback({
3499
3505
  values: { ...s },
3500
3506
  ...r,
3501
- ...m
3507
+ ...p
3502
3508
  });
3503
3509
  }
3504
3510
  }).unsubscribe, Xe = (h) => (o.mount = !0, d = {
@@ -3507,48 +3513,48 @@ function ya(e = {}) {
3507
3513
  }, Ce({
3508
3514
  ...h,
3509
3515
  formState: d
3510
- })), Ie = (h, m = {}) => {
3511
- for (const g of h ? Ct(h) : a.mount)
3512
- a.mount.delete(g), a.array.delete(g), m.keepValue || (re(n, g), re(s, g)), !m.keepError && re(r.errors, g), !m.keepDirty && re(r.dirtyFields, g), !m.keepTouched && re(r.touchedFields, g), !m.keepIsValidating && re(r.validatingFields, g), !t.shouldUnregister && !m.keepDefaultValue && re(i, g);
3513
- p.state.next({
3516
+ })), Ie = (h, p = {}) => {
3517
+ for (const g of h ? kt(h) : a.mount)
3518
+ a.mount.delete(g), a.array.delete(g), p.keepValue || (re(n, g), re(s, g)), !p.keepError && re(r.errors, g), !p.keepDirty && re(r.dirtyFields, g), !p.keepTouched && re(r.touchedFields, g), !p.keepIsValidating && re(r.validatingFields, g), !t.shouldUnregister && !p.keepDefaultValue && re(i, g);
3519
+ m.state.next({
3514
3520
  values: ie(s)
3515
- }), p.state.next({
3521
+ }), m.state.next({
3516
3522
  ...r,
3517
- ...m.keepDirty ? { isDirty: B() } : {}
3518
- }), !m.keepIsValid && b();
3519
- }, Se = ({ disabled: h, name: m }) => {
3520
- (pe(h) && o.mount || h || a.disabled.has(m)) && (h ? a.disabled.add(m) : a.disabled.delete(m));
3521
- }, Ye = (h, m = {}) => {
3523
+ ...p.keepDirty ? { isDirty: B() } : {}
3524
+ }), !p.keepIsValid && y();
3525
+ }, Se = ({ disabled: h, name: p }) => {
3526
+ (me(h) && o.mount || h || a.disabled.has(p)) && (h ? a.disabled.add(p) : a.disabled.delete(p));
3527
+ }, Ye = (h, p = {}) => {
3522
3528
  let g = A(n, h);
3523
- const V = pe(m.disabled) || pe(t.disabled);
3529
+ const V = me(p.disabled) || me(t.disabled);
3524
3530
  return Z(n, h, {
3525
3531
  ...g || {},
3526
3532
  _f: {
3527
3533
  ...g && g._f ? g._f : { ref: { name: h } },
3528
3534
  name: h,
3529
3535
  mount: !0,
3530
- ...m
3536
+ ...p
3531
3537
  }
3532
3538
  }), a.mount.add(h), g ? Se({
3533
- disabled: pe(m.disabled) ? m.disabled : t.disabled,
3539
+ disabled: me(p.disabled) ? p.disabled : t.disabled,
3534
3540
  name: h
3535
- }) : E(h, !0, m.value), {
3536
- ...V ? { disabled: m.disabled || t.disabled } : {},
3541
+ }) : S(h, !0, p.value), {
3542
+ ...V ? { disabled: p.disabled || t.disabled } : {},
3537
3543
  ...t.progressive ? {
3538
- required: !!m.required,
3539
- min: wt(m.min),
3540
- max: wt(m.max),
3541
- minLength: wt(m.minLength),
3542
- maxLength: wt(m.maxLength),
3543
- pattern: wt(m.pattern)
3544
+ required: !!p.required,
3545
+ min: xt(p.min),
3546
+ max: xt(p.max),
3547
+ minLength: xt(p.minLength),
3548
+ maxLength: xt(p.maxLength),
3549
+ pattern: xt(p.pattern)
3544
3550
  } : {},
3545
3551
  name: h,
3546
3552
  onChange: Q,
3547
3553
  onBlur: Q,
3548
3554
  ref: (O) => {
3549
3555
  if (O) {
3550
- Ye(h, m), g = A(n, h);
3551
- const C = ee(O.value) && O.querySelectorAll && O.querySelectorAll("input,select,textarea")[0] || O, P = aa(C), U = g._f.refs || [];
3556
+ Ye(h, p), g = A(n, h);
3557
+ const C = ee(O.value) && O.querySelectorAll && O.querySelectorAll("input,select,textarea")[0] || O, P = oa(C), U = g._f.refs || [];
3552
3558
  if (P ? U.find((z) => z === C) : C === g._f.ref)
3553
3559
  return;
3554
3560
  Z(n, h, {
@@ -3563,23 +3569,23 @@ function ya(e = {}) {
3563
3569
  ref: { type: C.type, name: h }
3564
3570
  } : { ref: C }
3565
3571
  }
3566
- }), E(h, !1, void 0, C);
3572
+ }), S(h, !1, void 0, C);
3567
3573
  } else
3568
- g = A(n, h, {}), g._f && (g._f.mount = !1), (t.shouldUnregister || m.shouldUnregister) && !(ui(a.array, h) && o.action) && a.unMount.add(h);
3574
+ g = A(n, h, {}), g._f && (g._f.mount = !1), (t.shouldUnregister || p.shouldUnregister) && !(ui(a.array, h) && o.action) && a.unMount.add(h);
3569
3575
  }
3570
3576
  };
3571
- }, vt = () => t.shouldFocusError && kt(n, Ee, a.mount), gt = (h) => {
3572
- pe(h) && (p.state.next({ disabled: h }), kt(n, (m, g) => {
3577
+ }, gt = () => t.shouldFocusError && Ot(n, Ee, a.mount), bt = (h) => {
3578
+ me(h) && (m.state.next({ disabled: h }), Ot(n, (p, g) => {
3573
3579
  const V = A(n, g);
3574
- V && (m.disabled = V._f.disabled || h, Array.isArray(V._f.refs) && V._f.refs.forEach((O) => {
3580
+ V && (p.disabled = V._f.disabled || h, Array.isArray(V._f.refs) && V._f.refs.forEach((O) => {
3575
3581
  O.disabled = V._f.disabled || h;
3576
3582
  }));
3577
3583
  }, 0, !1));
3578
- }, Mt = (h, m) => async (g) => {
3584
+ }, Mt = (h, p) => async (g) => {
3579
3585
  let V;
3580
3586
  g && (g.preventDefault && g.preventDefault(), g.persist && g.persist());
3581
3587
  let O = ie(s);
3582
- if (p.state.next({
3588
+ if (m.state.next({
3583
3589
  isSubmitting: !0
3584
3590
  }), t.resolver) {
3585
3591
  const { errors: C, values: P } = await k();
@@ -3590,7 +3596,7 @@ function ya(e = {}) {
3590
3596
  for (const C of a.disabled)
3591
3597
  re(O, C);
3592
3598
  if (re(r.errors, "root"), fe(r.errors)) {
3593
- p.state.next({
3599
+ m.state.next({
3594
3600
  errors: {}
3595
3601
  });
3596
3602
  try {
@@ -3599,8 +3605,8 @@ function ya(e = {}) {
3599
3605
  V = C;
3600
3606
  }
3601
3607
  } else
3602
- m && await m({ ...r.errors }, g), vt(), setTimeout(vt);
3603
- if (p.state.next({
3608
+ p && await p({ ...r.errors }, g), gt(), setTimeout(gt);
3609
+ if (m.state.next({
3604
3610
  isSubmitted: !0,
3605
3611
  isSubmitting: !1,
3606
3612
  isSubmitSuccessful: fe(r.errors) && !V,
@@ -3608,15 +3614,15 @@ function ya(e = {}) {
3608
3614
  errors: r.errors
3609
3615
  }), V)
3610
3616
  throw V;
3611
- }, Pt = (h, m = {}) => {
3612
- A(n, h) && (ee(m.defaultValue) ? X(h, ie(A(i, h))) : (X(h, m.defaultValue), Z(i, h, ie(m.defaultValue))), m.keepTouched || re(r.touchedFields, h), m.keepDirty || (re(r.dirtyFields, h), r.isDirty = m.defaultValue ? B(h, ie(A(i, h))) : B()), m.keepError || (re(r.errors, h), u.isValid && b()), p.state.next({ ...r }));
3613
- }, Bt = (h, m = {}) => {
3617
+ }, Pt = (h, p = {}) => {
3618
+ A(n, h) && (ee(p.defaultValue) ? X(h, ie(A(i, h))) : (X(h, p.defaultValue), Z(i, h, ie(p.defaultValue))), p.keepTouched || re(r.touchedFields, h), p.keepDirty || (re(r.dirtyFields, h), r.isDirty = p.defaultValue ? B(h, ie(A(i, h))) : B()), p.keepError || (re(r.errors, h), u.isValid && y()), m.state.next({ ...r }));
3619
+ }, Bt = (h, p = {}) => {
3614
3620
  const g = h ? ie(h) : i, V = ie(g), O = fe(h), C = O ? i : V;
3615
- if (m.keepDefaultValues || (i = g), !m.keepValues) {
3616
- if (m.keepDirtyValues) {
3621
+ if (p.keepDefaultValues || (i = g), !p.keepValues) {
3622
+ if (p.keepDirtyValues) {
3617
3623
  const P = /* @__PURE__ */ new Set([
3618
3624
  ...a.mount,
3619
- ...Object.keys(yt(i, s))
3625
+ ...Object.keys(wt(i, s))
3620
3626
  ]);
3621
3627
  for (const U of Array.from(P))
3622
3628
  A(r.dirtyFields, U) ? Z(C, U, A(s, U)) : X(U, A(C, U));
@@ -3635,41 +3641,41 @@ function ya(e = {}) {
3635
3641
  }
3636
3642
  }
3637
3643
  }
3638
- if (m.keepFieldsRef)
3644
+ if (p.keepFieldsRef)
3639
3645
  for (const P of a.mount)
3640
3646
  X(P, A(C, P));
3641
3647
  else
3642
3648
  n = {};
3643
3649
  }
3644
- s = t.shouldUnregister ? m.keepDefaultValues ? ie(i) : {} : ie(C), p.array.next({
3650
+ s = t.shouldUnregister ? p.keepDefaultValues ? ie(i) : {} : ie(C), m.array.next({
3645
3651
  values: { ...C }
3646
- }), p.state.next({
3652
+ }), m.state.next({
3647
3653
  values: { ...C }
3648
3654
  });
3649
3655
  }
3650
3656
  a = {
3651
- mount: m.keepDirtyValues ? a.mount : /* @__PURE__ */ new Set(),
3657
+ mount: p.keepDirtyValues ? a.mount : /* @__PURE__ */ new Set(),
3652
3658
  unMount: /* @__PURE__ */ new Set(),
3653
3659
  array: /* @__PURE__ */ new Set(),
3654
3660
  disabled: /* @__PURE__ */ new Set(),
3655
3661
  watch: /* @__PURE__ */ new Set(),
3656
3662
  watchAll: !1,
3657
3663
  focus: ""
3658
- }, o.mount = !u.isValid || !!m.keepIsValid || !!m.keepDirtyValues, o.watch = !!t.shouldUnregister, p.state.next({
3659
- submitCount: m.keepSubmitCount ? r.submitCount : 0,
3660
- isDirty: O ? !1 : m.keepDirty ? r.isDirty : !!(m.keepDefaultValues && !We(h, i)),
3661
- isSubmitted: m.keepIsSubmitted ? r.isSubmitted : !1,
3662
- dirtyFields: O ? {} : m.keepDirtyValues ? m.keepDefaultValues && s ? yt(i, s) : r.dirtyFields : m.keepDefaultValues && h ? yt(i, h) : m.keepDirty ? r.dirtyFields : {},
3663
- touchedFields: m.keepTouched ? r.touchedFields : {},
3664
- errors: m.keepErrors ? r.errors : {},
3665
- isSubmitSuccessful: m.keepIsSubmitSuccessful ? r.isSubmitSuccessful : !1,
3664
+ }, o.mount = !u.isValid || !!p.keepIsValid || !!p.keepDirtyValues, o.watch = !!t.shouldUnregister, m.state.next({
3665
+ submitCount: p.keepSubmitCount ? r.submitCount : 0,
3666
+ isDirty: O ? !1 : p.keepDirty ? r.isDirty : !!(p.keepDefaultValues && !We(h, i)),
3667
+ isSubmitted: p.keepIsSubmitted ? r.isSubmitted : !1,
3668
+ dirtyFields: O ? {} : p.keepDirtyValues ? p.keepDefaultValues && s ? wt(i, s) : r.dirtyFields : p.keepDefaultValues && h ? wt(i, h) : p.keepDirty ? r.dirtyFields : {},
3669
+ touchedFields: p.keepTouched ? r.touchedFields : {},
3670
+ errors: p.keepErrors ? r.errors : {},
3671
+ isSubmitSuccessful: p.keepIsSubmitSuccessful ? r.isSubmitSuccessful : !1,
3666
3672
  isSubmitting: !1
3667
3673
  });
3668
- }, Rt = (h, m) => Bt(Oe(h) ? h(s) : h, m), jt = (h, m = {}) => {
3674
+ }, Rt = (h, p) => Bt(Oe(h) ? h(s) : h, p), jt = (h, p = {}) => {
3669
3675
  const g = A(n, h), V = g && g._f;
3670
3676
  if (V) {
3671
3677
  const O = V.refs ? V.refs[0] : V.ref;
3672
- O.focus && (O.focus(), m.shouldSelect && Oe(O.select) && O.select());
3678
+ O.focus && (O.focus(), p.shouldSelect && Oe(O.select) && O.select());
3673
3679
  }
3674
3680
  }, It = (h) => {
3675
3681
  r = {
@@ -3680,28 +3686,28 @@ function ya(e = {}) {
3680
3686
  control: {
3681
3687
  register: Ye,
3682
3688
  unregister: Ie,
3683
- getFieldState: it,
3689
+ getFieldState: st,
3684
3690
  handleSubmit: Mt,
3685
3691
  setError: Ze,
3686
3692
  _subscribe: Ce,
3687
3693
  _runSchema: k,
3688
- _focusError: vt,
3694
+ _focusError: gt,
3689
3695
  _getWatch: D,
3690
3696
  _getDirty: B,
3691
- _setValid: b,
3697
+ _setValid: y,
3692
3698
  _setFieldArray: _,
3693
3699
  _setDisabledField: Se,
3694
3700
  _setErrors: M,
3695
3701
  _getFieldArray: I,
3696
3702
  _reset: Bt,
3697
3703
  _resetDefaultValues: () => Oe(t.defaultValues) && t.defaultValues().then((h) => {
3698
- Rt(h, t.resetOptions), p.state.next({
3704
+ Rt(h, t.resetOptions), m.state.next({
3699
3705
  isLoading: !1
3700
3706
  });
3701
3707
  }),
3702
3708
  _removeUnmounted: H,
3703
- _disableForm: gt,
3704
- _subjects: p,
3709
+ _disableForm: bt,
3710
+ _subjects: m,
3705
3711
  _proxyFormState: u,
3706
3712
  get _fields() {
3707
3713
  return n;
@@ -3750,14 +3756,14 @@ function ya(e = {}) {
3750
3756
  unregister: Ie,
3751
3757
  setError: Ze,
3752
3758
  setFocus: jt,
3753
- getFieldState: it
3759
+ getFieldState: st
3754
3760
  };
3755
3761
  return {
3756
3762
  ...$t,
3757
3763
  formControl: $t
3758
3764
  };
3759
3765
  }
3760
- function wa(e = {}) {
3766
+ function ya(e = {}) {
3761
3767
  const t = R.useRef(void 0), r = R.useRef(void 0), [n, i] = R.useState({
3762
3768
  isDirty: !1,
3763
3769
  isValidating: !1,
@@ -3782,7 +3788,7 @@ function wa(e = {}) {
3782
3788
  formState: n
3783
3789
  }, e.defaultValues && !Oe(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
3784
3790
  else {
3785
- const { formControl: o, ...a } = ya(e);
3791
+ const { formControl: o, ...a } = ba(e);
3786
3792
  t.current = {
3787
3793
  ...a,
3788
3794
  formState: n
@@ -3833,19 +3839,19 @@ const xn = (e, t, r) => {
3833
3839
  const n = t.fields[r];
3834
3840
  n && n.ref && "reportValidity" in n.ref ? xn(n.ref, r, e) : n.refs && n.refs.forEach((i) => xn(i, r, e));
3835
3841
  }
3836
- }, xa = (e, t) => {
3842
+ }, wa = (e, t) => {
3837
3843
  t.shouldUseNativeValidation && Ni(e, t);
3838
3844
  const r = {};
3839
3845
  for (const n in e) {
3840
3846
  const i = A(t.fields, n), s = Object.assign(e[n] || {}, { ref: i && i.ref });
3841
- if (Na(t.names || Object.keys(e), n)) {
3847
+ if (xa(t.names || Object.keys(e), n)) {
3842
3848
  const o = Object.assign({}, A(r, n));
3843
3849
  Z(o, "root", s), Z(r, n, o);
3844
3850
  } else Z(r, n, s);
3845
3851
  }
3846
3852
  return r;
3847
- }, Na = (e, t) => e.some((r) => r.startsWith(t + "."));
3848
- function Ca(e, t, r) {
3853
+ }, xa = (e, t) => e.some((r) => r.startsWith(t + "."));
3854
+ function Na(e, t, r) {
3849
3855
  return t === void 0 && (t = {}), r === void 0 && (r = {}), function(n, i, s) {
3850
3856
  try {
3851
3857
  return Promise.resolve(function(o, a) {
@@ -3859,10 +3865,10 @@ function Ca(e, t, r) {
3859
3865
  return l && l.then ? l.then(void 0, a) : l;
3860
3866
  }(0, function(o) {
3861
3867
  if (!o.inner) throw o;
3862
- return { values: {}, errors: xa((a = o, l = !s.shouldUseNativeValidation && s.criteriaMode === "all", (a.inner || []).reduce(function(f, u) {
3868
+ return { values: {}, errors: wa((a = o, l = !s.shouldUseNativeValidation && s.criteriaMode === "all", (a.inner || []).reduce(function(f, u) {
3863
3869
  if (f[u.path] || (f[u.path] = { message: u.message, type: u.type }), l) {
3864
- var d = f[u.path].types, p = d && d[u.type];
3865
- f[u.path] = mi(u.path, l, f, u.type, p ? [].concat(p, u.message) : u.message);
3870
+ var d = f[u.path].types, m = d && d[u.type];
3871
+ f[u.path] = pi(u.path, l, f, u.type, m ? [].concat(m, u.message) : u.message);
3866
3872
  }
3867
3873
  return f;
3868
3874
  }, {})), s) };
@@ -3873,7 +3879,7 @@ function Ca(e, t, r) {
3873
3879
  }
3874
3880
  };
3875
3881
  }
3876
- function bl({
3882
+ function wl({
3877
3883
  className: e,
3878
3884
  name: t,
3879
3885
  children: r,
@@ -3885,20 +3891,20 @@ function bl({
3885
3891
  onSubmit: l = () => null,
3886
3892
  onChange: f
3887
3893
  }) {
3888
- const u = wa({
3894
+ const u = ya({
3889
3895
  mode: n,
3890
3896
  reValidateMode: i,
3891
3897
  defaultValues: s,
3892
- resolver: o ? Ca(o) : void 0
3898
+ resolver: o ? Na(o) : void 0
3893
3899
  });
3894
3900
  return ce(() => {
3895
3901
  if (!f) return;
3896
3902
  const { unsubscribe: d } = u.watch(f);
3897
3903
  return d;
3898
- }, [f, u.watch]), /* @__PURE__ */ c(sa, { ...u, children: /* @__PURE__ */ c(
3904
+ }, [f, u.watch]), /* @__PURE__ */ c(ia, { ...u, children: /* @__PURE__ */ c(
3899
3905
  "form",
3900
3906
  {
3901
- className: S("bbn-form", e),
3907
+ className: E("bbn-form", e),
3902
3908
  name: t,
3903
3909
  onSubmit: u.handleSubmit(l),
3904
3910
  ...a,
@@ -3906,7 +3912,7 @@ function bl({
3906
3912
  }
3907
3913
  ) });
3908
3914
  }
3909
- function ht({
3915
+ function mt({
3910
3916
  name: e,
3911
3917
  defaultValue: t,
3912
3918
  disabled: r = !1,
@@ -3914,22 +3920,22 @@ function ht({
3914
3920
  shouldUnregister: i = !1,
3915
3921
  validateOnMount: s = !0
3916
3922
  }) {
3917
- const { setFocus: o, trigger: a } = dt(), { field: l, fieldState: f } = oa({ name: e, defaultValue: t, disabled: r, shouldUnregister: i }), { invalid: u, isTouched: d, error: p } = f;
3923
+ const { setFocus: o, trigger: a } = ht(), { field: l, fieldState: f } = sa({ name: e, defaultValue: t, disabled: r, shouldUnregister: i }), { invalid: u, isTouched: d, error: m } = f;
3918
3924
  return ce(() => {
3919
3925
  s ? a(e, { shouldFocus: n }) : n && o(e);
3920
3926
  }, [e, s]), {
3921
3927
  ...l,
3922
3928
  value: l.value,
3923
3929
  invalid: u && d,
3924
- error: (p == null ? void 0 : p.message) ?? ""
3930
+ error: (m == null ? void 0 : m.message) ?? ""
3925
3931
  };
3926
3932
  }
3927
- function yl(e) {
3928
- const { getFieldState: t } = dt(), r = di({ name: e });
3933
+ function xl(e) {
3934
+ const { getFieldState: t } = ht(), r = di({ name: e });
3929
3935
  return Array.isArray(e) ? e.map((i) => t(i, r)) : t(e, r);
3930
3936
  }
3931
- const ka = /^-?\d*\.?\d*$/;
3932
- function wl({
3937
+ const Ca = /^-?\d*\.?\d*$/;
3938
+ function Nl({
3933
3939
  name: e,
3934
3940
  id: t = e,
3935
3941
  label: r,
@@ -3942,25 +3948,25 @@ function wl({
3942
3948
  placeholder: f,
3943
3949
  type: u,
3944
3950
  suffix: d,
3945
- prefix: p,
3951
+ prefix: m,
3946
3952
  shouldUnregister: v,
3947
- state: N,
3948
- validateOnMount: b
3953
+ state: x,
3954
+ validateOnMount: y
3949
3955
  }) {
3950
3956
  const {
3951
- ref: y,
3957
+ ref: b,
3952
3958
  value: _ = "",
3953
3959
  error: w,
3954
3960
  invalid: M,
3955
- onChange: E,
3961
+ onChange: S,
3956
3962
  onBlur: F
3957
- } = ht({ name: e, defaultValue: l, autoFocus: a, shouldUnregister: v, validateOnMount: b }), L = M ? "error" : N;
3963
+ } = mt({ name: e, defaultValue: l, autoFocus: a, shouldUnregister: v, validateOnMount: y }), L = M ? "error" : x;
3958
3964
  return /* @__PURE__ */ c(lr, { label: r, className: s, state: L, hint: M ? w : n, children: /* @__PURE__ */ c(
3959
3965
  Vr,
3960
3966
  {
3961
3967
  inputMode: "decimal",
3962
3968
  pattern: "^-?\\d*\\.?\\d*$",
3963
- ref: y,
3969
+ ref: b,
3964
3970
  value: _,
3965
3971
  id: t,
3966
3972
  name: e,
@@ -3970,16 +3976,16 @@ function wl({
3970
3976
  autoFocus: a,
3971
3977
  placeholder: f,
3972
3978
  suffix: d,
3973
- prefix: p,
3979
+ prefix: m,
3974
3980
  state: L,
3975
3981
  onChange: (j) => {
3976
- ka.test(j.target.value) && E(j.target.value);
3982
+ Ca.test(j.target.value) && S(j.target.value);
3977
3983
  },
3978
3984
  onBlur: F
3979
3985
  }
3980
3986
  ) });
3981
3987
  }
3982
- function xl({
3988
+ function Cl({
3983
3989
  name: e,
3984
3990
  id: t = e,
3985
3991
  label: r,
@@ -3992,23 +3998,23 @@ function xl({
3992
3998
  placeholder: f,
3993
3999
  type: u,
3994
4000
  suffix: d,
3995
- prefix: p,
4001
+ prefix: m,
3996
4002
  shouldUnregister: v,
3997
- state: N,
3998
- validateOnMount: b
4003
+ state: x,
4004
+ validateOnMount: y
3999
4005
  }) {
4000
4006
  const {
4001
- ref: y,
4007
+ ref: b,
4002
4008
  value: _ = "",
4003
4009
  error: w,
4004
4010
  invalid: M,
4005
- onChange: E,
4011
+ onChange: S,
4006
4012
  onBlur: F
4007
- } = ht({ name: e, defaultValue: l, autoFocus: a, shouldUnregister: v, validateOnMount: b }), L = M ? "error" : N;
4013
+ } = mt({ name: e, defaultValue: l, autoFocus: a, shouldUnregister: v, validateOnMount: y }), L = M ? "error" : x;
4008
4014
  return /* @__PURE__ */ c(lr, { label: r, className: s, state: L, hint: M ? w : n, children: /* @__PURE__ */ c(
4009
4015
  Vr,
4010
4016
  {
4011
- ref: y,
4017
+ ref: b,
4012
4018
  value: _,
4013
4019
  id: t,
4014
4020
  name: e,
@@ -4018,14 +4024,14 @@ function xl({
4018
4024
  autoFocus: a,
4019
4025
  placeholder: f,
4020
4026
  suffix: d,
4021
- prefix: p,
4027
+ prefix: m,
4022
4028
  state: L,
4023
- onChange: E,
4029
+ onChange: S,
4024
4030
  onBlur: F
4025
4031
  }
4026
4032
  ) });
4027
4033
  }
4028
- function Nl({
4034
+ function kl({
4029
4035
  name: e,
4030
4036
  id: t = e,
4031
4037
  label: r,
@@ -4036,7 +4042,7 @@ function Nl({
4036
4042
  labelClassName: a,
4037
4043
  orientation: l
4038
4044
  }) {
4039
- const { ref: f, value: u = !1, onChange: d, onBlur: p } = ht({ name: e });
4045
+ const { ref: f, value: u = !1, onChange: d, onBlur: m } = mt({ name: e });
4040
4046
  return /* @__PURE__ */ c(
4041
4047
  Ri,
4042
4048
  {
@@ -4051,11 +4057,11 @@ function Nl({
4051
4057
  defaultChecked: o,
4052
4058
  labelClassName: a,
4053
4059
  orientation: l,
4054
- inputProps: { onChange: d, onBlur: p }
4060
+ inputProps: { onChange: d, onBlur: m }
4055
4061
  }
4056
4062
  );
4057
4063
  }
4058
- function Cl({
4064
+ function Ol({
4059
4065
  name: e,
4060
4066
  id: t = e,
4061
4067
  label: r,
@@ -4070,8 +4076,8 @@ function Cl({
4070
4076
  ref: f,
4071
4077
  value: u,
4072
4078
  onChange: d,
4073
- onBlur: p
4074
- } = ht({ name: e, disabled: i, defaultValue: o ? s : void 0 });
4079
+ onBlur: m
4080
+ } = mt({ name: e, disabled: i, defaultValue: o ? s : void 0 });
4075
4081
  return /* @__PURE__ */ c(
4076
4082
  Ii,
4077
4083
  {
@@ -4085,11 +4091,11 @@ function Cl({
4085
4091
  value: s,
4086
4092
  labelClassName: a,
4087
4093
  orientation: l,
4088
- inputProps: { onChange: d, onBlur: p }
4094
+ inputProps: { onChange: d, onBlur: m }
4089
4095
  }
4090
4096
  );
4091
4097
  }
4092
- function kl({
4098
+ function El({
4093
4099
  open: e,
4094
4100
  defaultOpen: t,
4095
4101
  options: r,
@@ -4102,15 +4108,15 @@ function kl({
4102
4108
  className: f,
4103
4109
  controlClassName: u,
4104
4110
  disabled: d,
4105
- autoFocus: p,
4111
+ autoFocus: m,
4106
4112
  defaultValue: v,
4107
- placeholder: N,
4108
- shouldUnregister: b,
4109
- state: y,
4113
+ placeholder: x,
4114
+ shouldUnregister: y,
4115
+ state: b,
4110
4116
  validateOnMount: _,
4111
4117
  onOpen: w,
4112
4118
  onClose: M,
4113
- renderSelectedOption: E
4119
+ renderSelectedOption: S
4114
4120
  }) {
4115
4121
  const {
4116
4122
  ref: F,
@@ -4119,9 +4125,9 @@ function kl({
4119
4125
  invalid: $,
4120
4126
  onChange: j,
4121
4127
  onBlur: H
4122
- } = ht({ name: s, defaultValue: v, autoFocus: p, shouldUnregister: b, validateOnMount: _ }), B = $ ? "error" : y;
4128
+ } = mt({ name: s, defaultValue: v, autoFocus: m, shouldUnregister: y, validateOnMount: _ }), B = $ ? "error" : b;
4123
4129
  return /* @__PURE__ */ c(lr, { label: a, className: u, state: B, hint: $ ? k : l, children: /* @__PURE__ */ c(
4124
- qn,
4130
+ Un,
4125
4131
  {
4126
4132
  open: e,
4127
4133
  defaultOpen: t,
@@ -4132,7 +4138,7 @@ function kl({
4132
4138
  name: s,
4133
4139
  className: f,
4134
4140
  disabled: d,
4135
- placeholder: N,
4141
+ placeholder: x,
4136
4142
  state: B,
4137
4143
  optionClassName: n,
4138
4144
  popoverClassName: i,
@@ -4142,15 +4148,15 @@ function kl({
4142
4148
  onClose: () => {
4143
4149
  H == null || H(), M == null || M();
4144
4150
  },
4145
- renderSelectedOption: E
4151
+ renderSelectedOption: S
4146
4152
  }
4147
4153
  ) });
4148
4154
  }
4149
- function Oa({ displayError: e = !1, ...t }) {
4150
- const { error: r, value: n, onChange: i, onBlur: s, disabled: o, name: a, ref: l } = ht(t), f = /* @__PURE__ */ c("input", { ref: l, type: "hidden", name: a, disabled: o, value: n, onChange: i, onBlur: s });
4155
+ function ka({ displayError: e = !1, ...t }) {
4156
+ const { error: r, value: n, onChange: i, onBlur: s, disabled: o, name: a, ref: l } = mt(t), f = /* @__PURE__ */ c("input", { ref: l, type: "hidden", name: a, disabled: o, value: n, onChange: i, onBlur: s });
4151
4157
  return e ? /* @__PURE__ */ c(lr, { hint: e ? r : "", state: e ? "error" : "default", children: f }) : f;
4152
4158
  }
4153
- const Ea = {
4159
+ const Oa = {
4154
4160
  lg: {
4155
4161
  logo: "size-10",
4156
4162
  subLogo: "text-[0.8rem]"
@@ -4163,8 +4169,8 @@ const Ea = {
4163
4169
  logo: "size-5",
4164
4170
  subLogo: "text-[0.4rem]"
4165
4171
  }
4166
- }, Sa = ({ logoUrl: e, rank: t, moniker: r, size: n = "md", className: i }) => {
4167
- const [s, o] = oe(!1), a = Ea[n], l = (r == null ? void 0 : r.charAt(0).toUpperCase()) ?? String(t);
4172
+ }, Ea = ({ logoUrl: e, rank: t, moniker: r, size: n = "md", className: i }) => {
4173
+ const [s, o] = oe(!1), a = Oa[n], l = (r == null ? void 0 : r.charAt(0).toUpperCase()) ?? String(t);
4168
4174
  return /* @__PURE__ */ c("span", { className: be("relative inline-block", a.logo, i), children: e && !s ? /* @__PURE__ */ c(
4169
4175
  "img",
4170
4176
  {
@@ -4197,14 +4203,14 @@ function Ci({ bsnId: e, bsnName: t, bsnLogoUrl: r, address: n, provider: i, onRe
4197
4203
  children: d
4198
4204
  }
4199
4205
  ) });
4200
- }, a = (d) => !d || d.length <= 6 * 2 ? d : `${d.slice(0, 6)}...${d.slice(-6)}`, l = () => n ? /* @__PURE__ */ c("div", { className: "text-xs text-accent-secondary", children: a(n) }) : /* @__PURE__ */ x("div", { className: "flex items-center text-xs text-accent-secondary", children: [
4206
+ }, a = (d) => !d || d.length <= 6 * 2 ? d : `${d.slice(0, 6)}...${d.slice(-6)}`, l = () => n ? /* @__PURE__ */ c("div", { className: "text-xs text-accent-secondary", children: a(n) }) : /* @__PURE__ */ N("div", { className: "flex items-center text-xs text-accent-secondary", children: [
4201
4207
  o(),
4202
4208
  t
4203
4209
  ] });
4204
- return /* @__PURE__ */ x("div", { className: "flex flex-row items-center justify-between", children: [
4205
- /* @__PURE__ */ x("div", { className: "flex h-10 flex-row gap-2", children: [
4210
+ return /* @__PURE__ */ N("div", { className: "flex flex-row items-center justify-between", children: [
4211
+ /* @__PURE__ */ N("div", { className: "flex h-10 flex-row gap-2", children: [
4206
4212
  /* @__PURE__ */ c("div", { className: "shrink-0", children: /* @__PURE__ */ c(
4207
- Sa,
4213
+ Ea,
4208
4214
  {
4209
4215
  logoUrl: i.logo_url,
4210
4216
  rank: i.rank,
@@ -4212,7 +4218,7 @@ function Ci({ bsnId: e, bsnName: t, bsnLogoUrl: r, address: n, provider: i, onRe
4212
4218
  size: "lg"
4213
4219
  }
4214
4220
  ) }),
4215
- /* @__PURE__ */ x("div", { className: "flex flex-col justify-center text-accent-primary", children: [
4221
+ /* @__PURE__ */ N("div", { className: "flex flex-col justify-center text-accent-primary", children: [
4216
4222
  l(),
4217
4223
  /* @__PURE__ */ c(W, { as: "div", className: "text-base font-medium text-accent-primary", children: (u = i.description) == null ? void 0 : u.moniker })
4218
4224
  ] })
@@ -4221,22 +4227,22 @@ function Ci({ bsnId: e, bsnName: t, bsnLogoUrl: r, address: n, provider: i, onRe
4221
4227
  "button",
4222
4228
  {
4223
4229
  onClick: () => s(e),
4224
- className: "ml-[10px] cursor-pointer rounded bg-accent-secondary/20 px-2 py-0.5 text-xs tracking-[0.4px] text-accent-primary",
4225
- children: "Remove"
4230
+ className: "ml-[10px] flex items-center justify-center cursor-pointer p-1",
4231
+ children: /* @__PURE__ */ c(Yn, { size: 12 })
4226
4232
  }
4227
4233
  ) : null
4228
4234
  ] });
4229
4235
  }
4230
- const Ol = ({
4236
+ const Sl = ({
4231
4237
  attributes: e,
4232
4238
  providerItemProps: t,
4233
4239
  isSelected: r = !1,
4234
4240
  isSelectable: n = !0,
4235
4241
  onSelect: i
4236
- }) => /* @__PURE__ */ x("div", { className: "bg-secondary-highlight h-[316px] overflow-hidden p-4 flex flex-col rounded justify-between", children: [
4242
+ }) => /* @__PURE__ */ N("div", { className: "bg-secondary-highlight h-[316px] overflow-hidden p-4 flex flex-col rounded justify-between", children: [
4237
4243
  /* @__PURE__ */ c(Ci, { ...t }),
4238
4244
  /* @__PURE__ */ c("div", { className: "w-full h-px bg-secondary-strokeLight" }),
4239
- Object.entries(e).map(([s, o]) => /* @__PURE__ */ x(
4245
+ Object.entries(e).map(([s, o]) => /* @__PURE__ */ N(
4240
4246
  "div",
4241
4247
  {
4242
4248
  className: "text-sm flex flex-row justify-between first:mt-0 mt-1",
@@ -4248,7 +4254,7 @@ const Ol = ({
4248
4254
  s
4249
4255
  )),
4250
4256
  i && /* @__PURE__ */ c(
4251
- at,
4257
+ lt,
4252
4258
  {
4253
4259
  className: "mt-4",
4254
4260
  onClick: i,
@@ -4257,6 +4263,50 @@ const Ol = ({
4257
4263
  children: r ? "Selected" : "Select"
4258
4264
  }
4259
4265
  )
4266
+ ] }), Sa = ({
4267
+ amount: e,
4268
+ currencyIcon: t,
4269
+ currencyName: r,
4270
+ placeholder: n = "Enter Amount",
4271
+ subtitle: i,
4272
+ displayBalance: s,
4273
+ balanceDetails: o,
4274
+ min: a,
4275
+ step: l,
4276
+ autoFocus: f,
4277
+ onChange: u,
4278
+ onKeyDown: d,
4279
+ amountUsd: m,
4280
+ disabled: v = !1
4281
+ }) => /* @__PURE__ */ N(rt, { children: [
4282
+ /* @__PURE__ */ N("div", { className: "flex w-full flex-row content-center items-center justify-between font-normal", children: [
4283
+ /* @__PURE__ */ N("div", { className: "flex items-center gap-2", children: [
4284
+ /* @__PURE__ */ c("img", { src: t, alt: r, className: "h-10 max-h-[2.5rem] w-10 max-w-[2.5rem]" }),
4285
+ /* @__PURE__ */ c("div", { className: "text-lg", children: r })
4286
+ ] }),
4287
+ /* @__PURE__ */ c(
4288
+ "input",
4289
+ {
4290
+ type: "number",
4291
+ value: e ?? "",
4292
+ min: a,
4293
+ step: l,
4294
+ onChange: u,
4295
+ onKeyDown: d,
4296
+ disabled: v,
4297
+ placeholder: n,
4298
+ autoFocus: f,
4299
+ className: "w-2/3 bg-transparent text-right text-lg outline-none appearance-none [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"
4300
+ }
4301
+ )
4302
+ ] }),
4303
+ o && s ? /* @__PURE__ */ N("div", { className: "flex w-full flex-row content-center justify-between text-sm", children: [
4304
+ /* @__PURE__ */ c("span", { className: "cursor-default", children: i }),
4305
+ o.displayUSD && o.price !== void 0 && /* @__PURE__ */ N("div", { children: [
4306
+ m,
4307
+ " USD"
4308
+ ] })
4309
+ ] }) : null
4260
4310
  ] });
4261
4311
  var pt = 1e9, Aa = {
4262
4312
  // These values must be integers within the stated ranges (inclusive).
@@ -4294,7 +4344,7 @@ var pt = 1e9, Aa = {
4294
4344
  // The natural logarithm of 10.
4295
4345
  // 115 digits
4296
4346
  LN10: "2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"
4297
- }, Hr, K = !0, Ne = "[DecimalError] ", Qe = Ne + "Invalid argument: ", $r = Ne + "Exponent out of range: ", mt = Math.floor, Ge = Math.pow, Fa = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, me, se = 1e7, G = 7, ki = 9007199254740991, ir = mt(ki / G), T = {};
4347
+ }, Hr, K = !0, Ne = "[DecimalError] ", Qe = Ne + "Invalid argument: ", $r = Ne + "Exponent out of range: ", vt = Math.floor, Ge = Math.pow, Fa = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, pe, se = 1e7, G = 7, ki = 9007199254740991, ir = vt(ki / G), T = {};
4298
4348
  T.absoluteValue = T.abs = function() {
4299
4349
  var e = new this.constructor(this);
4300
4350
  return e.s && (e.s = 1), e;
@@ -4353,9 +4403,9 @@ T.logarithm = T.log = function(e) {
4353
4403
  var t, r = this, n = r.constructor, i = n.precision, s = i + 5;
4354
4404
  if (e === void 0)
4355
4405
  e = new n(10);
4356
- else if (e = new n(e), e.s < 1 || e.eq(me)) throw Error(Ne + "NaN");
4406
+ else if (e = new n(e), e.s < 1 || e.eq(pe)) throw Error(Ne + "NaN");
4357
4407
  if (r.s < 1) throw Error(Ne + (r.s ? "NaN" : "-Infinity"));
4358
- return r.eq(me) ? new n(0) : (K = !1, t = Be(St(r, s), St(e, s), s), K = !0, Y(t, i));
4408
+ return r.eq(pe) ? new n(0) : (K = !1, t = Be(At(r, s), At(e, s), s), K = !0, Y(t, i));
4359
4409
  };
4360
4410
  T.minus = T.sub = function(e) {
4361
4411
  var t = this;
@@ -4370,7 +4420,7 @@ T.naturalExponential = T.exp = function() {
4370
4420
  return Ei(this);
4371
4421
  };
4372
4422
  T.naturalLogarithm = T.ln = function() {
4373
- return St(this);
4423
+ return At(this);
4374
4424
  };
4375
4425
  T.negated = T.neg = function() {
4376
4426
  var e = new this.constructor(this);
@@ -4395,7 +4445,7 @@ T.squareRoot = T.sqrt = function() {
4395
4445
  if (!a.s) return new l(0);
4396
4446
  throw Error(Ne + "NaN");
4397
4447
  }
4398
- for (e = ne(a), K = !1, i = Math.sqrt(+a), i == 0 || i == 1 / 0 ? (t = Fe(a.d), (t.length + e) % 2 == 0 && (t += "0"), i = Math.sqrt(t), e = mt((e + 1) / 2) - (e < 0 || e % 2), i == 1 / 0 ? t = "5e" + e : (t = i.toExponential(), t = t.slice(0, t.indexOf("e") + 1) + e), n = new l(t)) : n = new l(i.toString()), r = l.precision, i = o = r + 3; ; )
4448
+ for (e = ne(a), K = !1, i = Math.sqrt(+a), i == 0 || i == 1 / 0 ? (t = Fe(a.d), (t.length + e) % 2 == 0 && (t += "0"), i = Math.sqrt(t), e = vt((e + 1) / 2) - (e < 0 || e % 2), i == 1 / 0 ? t = "5e" + e : (t = i.toExponential(), t = t.slice(0, t.indexOf("e") + 1) + e), n = new l(t)) : n = new l(i.toString()), r = l.precision, i = o = r + 3; ; )
4399
4449
  if (s = n, n = s.plus(Be(a, s, o + 2)).times(0.5), Fe(s.d).slice(0, o) === (t = Fe(n.d)).slice(0, o)) {
4400
4450
  if (t = t.slice(o - 3, o + 1), i == o && t == "4999") {
4401
4451
  if (Y(s, r + 1, 0), s.times(s).eq(a)) {
@@ -4409,12 +4459,12 @@ T.squareRoot = T.sqrt = function() {
4409
4459
  return K = !0, Y(n, r);
4410
4460
  };
4411
4461
  T.times = T.mul = function(e) {
4412
- var t, r, n, i, s, o, a, l, f, u = this, d = u.constructor, p = u.d, v = (e = new d(e)).d;
4462
+ var t, r, n, i, s, o, a, l, f, u = this, d = u.constructor, m = u.d, v = (e = new d(e)).d;
4413
4463
  if (!u.s || !e.s) return new d(0);
4414
- for (e.s *= u.s, r = u.e + e.e, l = p.length, f = v.length, l < f && (s = p, p = v, v = s, o = l, l = f, f = o), s = [], o = l + f, n = o; n--; ) s.push(0);
4464
+ for (e.s *= u.s, r = u.e + e.e, l = m.length, f = v.length, l < f && (s = m, m = v, v = s, o = l, l = f, f = o), s = [], o = l + f, n = o; n--; ) s.push(0);
4415
4465
  for (n = f; --n >= 0; ) {
4416
4466
  for (t = 0, i = l + n; i > n; )
4417
- a = s[i] + v[n] * p[i - n - 1] + t, s[i--] = a % se | 0, t = a / se | 0;
4467
+ a = s[i] + v[n] * m[i - n - 1] + t, s[i--] = a % se | 0, t = a / se | 0;
4418
4468
  s[i] = (s[i] + t) % se | 0;
4419
4469
  }
4420
4470
  for (; !s[--o]; ) s.pop();
@@ -4441,21 +4491,21 @@ T.toNumber = function() {
4441
4491
  };
4442
4492
  T.toPower = T.pow = function(e) {
4443
4493
  var t, r, n, i, s, o, a = this, l = a.constructor, f = 12, u = +(e = new l(e));
4444
- if (!e.s) return new l(me);
4494
+ if (!e.s) return new l(pe);
4445
4495
  if (a = new l(a), !a.s) {
4446
4496
  if (e.s < 1) throw Error(Ne + "Infinity");
4447
4497
  return a;
4448
4498
  }
4449
- if (a.eq(me)) return a;
4450
- if (n = l.precision, e.eq(me)) return Y(a, n);
4499
+ if (a.eq(pe)) return a;
4500
+ if (n = l.precision, e.eq(pe)) return Y(a, n);
4451
4501
  if (t = e.e, r = e.d.length - 1, o = t >= r, s = a.s, o) {
4452
4502
  if ((r = u < 0 ? -u : u) <= ki) {
4453
- for (i = new l(me), t = Math.ceil(n / G + 4), K = !1; r % 2 && (i = i.times(a), Cn(i.d, t)), r = mt(r / 2), r !== 0; )
4503
+ for (i = new l(pe), t = Math.ceil(n / G + 4), K = !1; r % 2 && (i = i.times(a), Cn(i.d, t)), r = vt(r / 2), r !== 0; )
4454
4504
  a = a.times(a), Cn(a.d, t);
4455
- return K = !0, e.s < 0 ? new l(me).div(i) : Y(i, n);
4505
+ return K = !0, e.s < 0 ? new l(pe).div(i) : Y(i, n);
4456
4506
  }
4457
4507
  } else if (s < 0) throw Error(Ne + "NaN");
4458
- return s = s < 0 && e.d[Math.max(t, r)] & 1 ? -1 : 1, a.s = 1, K = !1, i = e.times(St(a, n + f)), K = !0, i = Ei(i), i.s = s, i;
4508
+ return s = s < 0 && e.d[Math.max(t, r)] & 1 ? -1 : 1, a.s = 1, K = !1, i = e.times(At(a, n + f)), K = !0, i = Ei(i), i.s = s, i;
4459
4509
  };
4460
4510
  T.toPrecision = function(e, t) {
4461
4511
  var r, n, i = this, s = i.constructor;
@@ -4522,31 +4572,31 @@ var Be = /* @__PURE__ */ function() {
4522
4572
  for (; !n[0] && n.length > 1; ) n.shift();
4523
4573
  }
4524
4574
  return function(n, i, s, o) {
4525
- var a, l, f, u, d, p, v, N, b, y, _, w, M, E, F, L, k, $, j = n.constructor, H = n.s == i.s ? 1 : -1, B = n.d, D = i.d;
4575
+ var a, l, f, u, d, m, v, x, y, b, _, w, M, S, F, L, k, $, j = n.constructor, H = n.s == i.s ? 1 : -1, B = n.d, D = i.d;
4526
4576
  if (!n.s) return new j(n);
4527
4577
  if (!i.s) throw Error(Ne + "Division by zero");
4528
- for (l = n.e - i.e, k = D.length, F = B.length, v = new j(H), N = v.d = [], f = 0; D[f] == (B[f] || 0); ) ++f;
4578
+ for (l = n.e - i.e, k = D.length, F = B.length, v = new j(H), x = v.d = [], f = 0; D[f] == (B[f] || 0); ) ++f;
4529
4579
  if (D[f] > (B[f] || 0) && --l, s == null ? w = s = j.precision : o ? w = s + (ne(n) - ne(i)) + 1 : w = s, w < 0) return new j(0);
4530
4580
  if (w = w / G + 2 | 0, f = 0, k == 1)
4531
4581
  for (u = 0, D = D[0], w++; (f < F || u) && w--; f++)
4532
- M = u * se + (B[f] || 0), N[f] = M / D | 0, u = M % D | 0;
4582
+ M = u * se + (B[f] || 0), x[f] = M / D | 0, u = M % D | 0;
4533
4583
  else {
4534
- for (u = se / (D[0] + 1) | 0, u > 1 && (D = e(D, u), B = e(B, u), k = D.length, F = B.length), E = k, b = B.slice(0, k), y = b.length; y < k; ) b[y++] = 0;
4584
+ for (u = se / (D[0] + 1) | 0, u > 1 && (D = e(D, u), B = e(B, u), k = D.length, F = B.length), S = k, y = B.slice(0, k), b = y.length; b < k; ) y[b++] = 0;
4535
4585
  $ = D.slice(), $.unshift(0), L = D[0], D[1] >= se / 2 && ++L;
4536
4586
  do
4537
- u = 0, a = t(D, b, k, y), a < 0 ? (_ = b[0], k != y && (_ = _ * se + (b[1] || 0)), u = _ / L | 0, u > 1 ? (u >= se && (u = se - 1), d = e(D, u), p = d.length, y = b.length, a = t(d, b, p, y), a == 1 && (u--, r(d, k < p ? $ : D, p))) : (u == 0 && (a = u = 1), d = D.slice()), p = d.length, p < y && d.unshift(0), r(b, d, y), a == -1 && (y = b.length, a = t(D, b, k, y), a < 1 && (u++, r(b, k < y ? $ : D, y))), y = b.length) : a === 0 && (u++, b = [0]), N[f++] = u, a && b[0] ? b[y++] = B[E] || 0 : (b = [B[E]], y = 1);
4538
- while ((E++ < F || b[0] !== void 0) && w--);
4587
+ u = 0, a = t(D, y, k, b), a < 0 ? (_ = y[0], k != b && (_ = _ * se + (y[1] || 0)), u = _ / L | 0, u > 1 ? (u >= se && (u = se - 1), d = e(D, u), m = d.length, b = y.length, a = t(d, y, m, b), a == 1 && (u--, r(d, k < m ? $ : D, m))) : (u == 0 && (a = u = 1), d = D.slice()), m = d.length, m < b && d.unshift(0), r(y, d, b), a == -1 && (b = y.length, a = t(D, y, k, b), a < 1 && (u++, r(y, k < b ? $ : D, b))), b = y.length) : a === 0 && (u++, y = [0]), x[f++] = u, a && y[0] ? y[b++] = B[S] || 0 : (y = [B[S]], b = 1);
4588
+ while ((S++ < F || y[0] !== void 0) && w--);
4539
4589
  }
4540
- return N[0] || N.shift(), v.e = l, Y(v, o ? s + ne(v) + 1 : s);
4590
+ return x[0] || x.shift(), v.e = l, Y(v, o ? s + ne(v) + 1 : s);
4541
4591
  };
4542
4592
  }();
4543
4593
  function Ei(e, t) {
4544
4594
  var r, n, i, s, o, a, l = 0, f = 0, u = e.constructor, d = u.precision;
4545
4595
  if (ne(e) > 16) throw Error($r + ne(e));
4546
- if (!e.s) return new u(me);
4596
+ if (!e.s) return new u(pe);
4547
4597
  for (K = !1, a = d, o = new u(0.03125); e.abs().gte(0.1); )
4548
4598
  e = e.times(o), f += 5;
4549
- for (n = Math.log(Ge(2, f)) / Math.LN10 * 2 + 5 | 0, a += n, r = i = s = new u(me), u.precision = a; ; ) {
4599
+ for (n = Math.log(Ge(2, f)) / Math.LN10 * 2 + 5 | 0, a += n, r = i = s = new u(pe), u.precision = a; ; ) {
4550
4600
  if (i = Y(i.times(e), a), r = r.times(++l), o = s.plus(Be(i, r, a)), Fe(o.d).slice(0, a) === Fe(s.d).slice(0, a)) {
4551
4601
  for (; f--; ) s = Y(s.times(s), a);
4552
4602
  return u.precision = d, t == null ? (K = !0, Y(s, d)) : s;
@@ -4558,7 +4608,7 @@ function ne(e) {
4558
4608
  for (var t = e.e * G, r = e.d[0]; r >= 10; r /= 10) t++;
4559
4609
  return t;
4560
4610
  }
4561
- function pr(e, t, r) {
4611
+ function mr(e, t, r) {
4562
4612
  if (t > e.LN10.sd())
4563
4613
  throw K = !0, r && (e.precision = r), Error(Ne + "LN10 precision limit exceeded");
4564
4614
  return Y(new e(e.LN10), t);
@@ -4567,21 +4617,21 @@ function He(e) {
4567
4617
  for (var t = ""; e--; ) t += "0";
4568
4618
  return t;
4569
4619
  }
4570
- function St(e, t) {
4571
- var r, n, i, s, o, a, l, f, u, d = 1, p = 10, v = e, N = v.d, b = v.constructor, y = b.precision;
4620
+ function At(e, t) {
4621
+ var r, n, i, s, o, a, l, f, u, d = 1, m = 10, v = e, x = v.d, y = v.constructor, b = y.precision;
4572
4622
  if (v.s < 1) throw Error(Ne + (v.s ? "NaN" : "-Infinity"));
4573
- if (v.eq(me)) return new b(0);
4574
- if (t == null ? (K = !1, f = y) : f = t, v.eq(10))
4575
- return t == null && (K = !0), pr(b, f);
4576
- if (f += p, b.precision = f, r = Fe(N), n = r.charAt(0), s = ne(v), Math.abs(s) < 15e14) {
4623
+ if (v.eq(pe)) return new y(0);
4624
+ if (t == null ? (K = !1, f = b) : f = t, v.eq(10))
4625
+ return t == null && (K = !0), mr(y, f);
4626
+ if (f += m, y.precision = f, r = Fe(x), n = r.charAt(0), s = ne(v), Math.abs(s) < 15e14) {
4577
4627
  for (; n < 7 && n != 1 || n == 1 && r.charAt(1) > 3; )
4578
4628
  v = v.times(e), r = Fe(v.d), n = r.charAt(0), d++;
4579
- s = ne(v), n > 1 ? (v = new b("0." + r), s++) : v = new b(n + "." + r.slice(1));
4629
+ s = ne(v), n > 1 ? (v = new y("0." + r), s++) : v = new y(n + "." + r.slice(1));
4580
4630
  } else
4581
- return l = pr(b, f + 2, y).times(s + ""), v = St(new b(n + "." + r.slice(1)), f - p).plus(l), b.precision = y, t == null ? (K = !0, Y(v, y)) : v;
4582
- for (a = o = v = Be(v.minus(me), v.plus(me), f), u = Y(v.times(v), f), i = 3; ; ) {
4583
- if (o = Y(o.times(u), f), l = a.plus(Be(o, new b(i), f)), Fe(l.d).slice(0, f) === Fe(a.d).slice(0, f))
4584
- return a = a.times(2), s !== 0 && (a = a.plus(pr(b, f + 2, y).times(s + ""))), a = Be(a, new b(d), f), b.precision = y, t == null ? (K = !0, Y(a, y)) : a;
4631
+ return l = mr(y, f + 2, b).times(s + ""), v = At(new y(n + "." + r.slice(1)), f - m).plus(l), y.precision = b, t == null ? (K = !0, Y(v, b)) : v;
4632
+ for (a = o = v = Be(v.minus(pe), v.plus(pe), f), u = Y(v.times(v), f), i = 3; ; ) {
4633
+ if (o = Y(o.times(u), f), l = a.plus(Be(o, new y(i), f)), Fe(l.d).slice(0, f) === Fe(a.d).slice(0, f))
4634
+ return a = a.times(2), s !== 0 && (a = a.plus(mr(y, f + 2, b).times(s + ""))), a = Be(a, new y(d), f), y.precision = b, t == null ? (K = !0, Y(a, b)) : a;
4585
4635
  a = l, i += 2;
4586
4636
  }
4587
4637
  }
@@ -4590,7 +4640,7 @@ function Nn(e, t) {
4590
4640
  for ((r = t.indexOf(".")) > -1 && (t = t.replace(".", "")), (n = t.search(/e/i)) > 0 ? (r < 0 && (r = n), r += +t.slice(n + 1), t = t.substring(0, n)) : r < 0 && (r = t.length), n = 0; t.charCodeAt(n) === 48; ) ++n;
4591
4641
  for (i = t.length; t.charCodeAt(i - 1) === 48; ) --i;
4592
4642
  if (t = t.slice(n, i), t) {
4593
- if (i -= n, r = r - n - 1, e.e = mt(r / G), e.d = [], n = (r + 1) % G, r < 0 && (n += G), n < i) {
4643
+ if (i -= n, r = r - n - 1, e.e = vt(r / G), e.d = [], n = (r + 1) % G, r < 0 && (n += G), n < i) {
4594
4644
  for (n && e.d.push(+t.slice(0, n)), i -= G; n < i; ) e.d.push(+t.slice(n, n += G));
4595
4645
  t = t.slice(n), n = G - t.length;
4596
4646
  } else
@@ -4613,7 +4663,7 @@ function Y(e, t, r) {
4613
4663
  }
4614
4664
  if (r !== void 0 && (s = Ge(10, o - i - 1), a = f / s % 10 | 0, l = t < 0 || d[u + 1] !== void 0 || f % s, l = r < 4 ? (a || l) && (r == 0 || r == (e.s < 0 ? 3 : 2)) : a > 5 || a == 5 && (r == 4 || l || r == 6 && // Check whether the digit to the left of the rounding digit is odd.
4615
4665
  (n > 0 ? i > 0 ? f / Ge(10, o - i) : 0 : d[u - 1]) % 10 & 1 || r == (e.s < 0 ? 8 : 7))), t < 1 || !d[0])
4616
- return l ? (s = ne(e), d.length = 1, t = t - s - 1, d[0] = Ge(10, (G - t % G) % G), e.e = mt(-t / G) || 0) : (d.length = 1, d[0] = e.e = e.s = 0), e;
4666
+ return l ? (s = ne(e), d.length = 1, t = t - s - 1, d[0] = Ge(10, (G - t % G) % G), e.e = vt(-t / G) || 0) : (d.length = 1, d[0] = e.e = e.s = 0), e;
4617
4667
  if (n == 0 ? (d.length = u, s = 1, u--) : (d.length = u + 1, s = Ge(10, G - n), d[u] = i > 0 ? (f / Ge(10, o - i) % Ge(10, i) | 0) * s : 0), l)
4618
4668
  for (; ; )
4619
4669
  if (u == 0) {
@@ -4629,9 +4679,9 @@ function Y(e, t, r) {
4629
4679
  return e;
4630
4680
  }
4631
4681
  function Si(e, t) {
4632
- var r, n, i, s, o, a, l, f, u, d, p = e.constructor, v = p.precision;
4682
+ var r, n, i, s, o, a, l, f, u, d, m = e.constructor, v = m.precision;
4633
4683
  if (!e.s || !t.s)
4634
- return t.s ? t.s = -t.s : t = new p(e), K ? Y(t, v) : t;
4684
+ return t.s ? t.s = -t.s : t = new m(e), K ? Y(t, v) : t;
4635
4685
  if (l = e.d, d = t.d, n = t.e, f = e.e, l = l.slice(), o = f - n, o) {
4636
4686
  for (u = o < 0, u ? (r = l, o = -o, a = d.length) : (r = d, n = f, a = l.length), i = Math.max(Math.ceil(v / G), a) + 2, o > i && (o = i, r.length = 1), r.reverse(), i = o; i--; ) r.push(0);
4637
4687
  r.reverse();
@@ -4653,7 +4703,7 @@ function Si(e, t) {
4653
4703
  }
4654
4704
  for (; l[--a] === 0; ) l.pop();
4655
4705
  for (; l[0] === 0; l.shift()) --n;
4656
- return l[0] ? (t.d = l, t.e = n, K ? Y(t, v) : t) : new p(0);
4706
+ return l[0] ? (t.d = l, t.e = n, K ? Y(t, v) : t) : new m(0);
4657
4707
  }
4658
4708
  function tt(e, t, r) {
4659
4709
  var n, i = ne(e), s = Fe(e.d), o = s.length;
@@ -4716,7 +4766,7 @@ function La(e) {
4716
4766
  ];
4717
4767
  for (t = 0; t < i.length; t += 3)
4718
4768
  if ((n = e[r = i[t]]) !== void 0)
4719
- if (mt(n) === n && n >= i[t + 1] && n <= i[t + 2]) this[r] = n;
4769
+ if (vt(n) === n && n >= i[t + 1] && n <= i[t + 2]) this[r] = n;
4720
4770
  else throw Error(Qe + r + ": " + n);
4721
4771
  if ((n = e[r = "LN10"]) !== void 0)
4722
4772
  if (n == Math.LN10) this[r] = new this(n);
@@ -4724,7 +4774,7 @@ function La(e) {
4724
4774
  return this;
4725
4775
  }
4726
4776
  var Hr = Ai(Aa);
4727
- me = new Hr(1);
4777
+ pe = new Hr(1);
4728
4778
  const Va = {
4729
4779
  prefix: "$",
4730
4780
  precision: 2,
@@ -4747,7 +4797,7 @@ function Da(e, t, r) {
4747
4797
  const n = e * t;
4748
4798
  return _a(n, r);
4749
4799
  }
4750
- const Ta = (e, t, r) => new Hr(e).toDecimalPlaces(t, r).toNumber(), Wr = 8, Ma = 5, El = ({
4800
+ const Ta = (e, t, r) => new Hr(e).toDecimalPlaces(t, r).toNumber(), Wr = 8, Ma = 5, Pa = 640, Al = ({
4751
4801
  fieldName: e,
4752
4802
  currencyIcon: t,
4753
4803
  currencyName: r,
@@ -4758,55 +4808,40 @@ const Ta = (e, t, r) => new Hr(e).toDecimalPlaces(t, r).toNumber(), Wr = 8, Ma =
4758
4808
  step: a = "any",
4759
4809
  autoFocus: l = !0
4760
4810
  }) => {
4761
- const f = pi({ name: e, defaultValue: "" }), { setValue: u } = dt(), d = parseFloat(f || "0"), p = Da(d, (s == null ? void 0 : s.price) ?? 0, {
4811
+ const f = mi({ name: e, defaultValue: "" }), { setValue: u } = ht(), d = parseFloat(f || "0"), m = Da(d, (s == null ? void 0 : s.price) ?? 0, {
4762
4812
  zeroDisplay: "$0.00"
4763
- });
4764
- return /* @__PURE__ */ x(Dr, { className: "flex w-full flex-col content-center justify-between gap-4", children: [
4765
- /* @__PURE__ */ x("div", { className: "flex w-full flex-row content-center items-center justify-between font-normal", children: [
4766
- /* @__PURE__ */ x("div", { className: "flex items-center gap-2", children: [
4767
- /* @__PURE__ */ c("img", { src: t, alt: r, className: "h-10 max-h-[2.5rem] w-10 max-w-[2.5rem]" }),
4768
- /* @__PURE__ */ c("div", { className: "text-lg", children: r })
4769
- ] }),
4770
- /* @__PURE__ */ c(
4771
- "input",
4772
- {
4773
- type: "number",
4774
- value: f ?? "",
4775
- min: o,
4776
- step: a,
4777
- onChange: (b) => {
4778
- u(e, b.target.value, {
4779
- shouldValidate: !0,
4780
- shouldDirty: !0,
4781
- shouldTouch: !0
4782
- });
4783
- },
4784
- onKeyDown: (b) => {
4785
- (b.key === "ArrowUp" || b.key === "ArrowDown") && b.preventDefault();
4786
- },
4787
- placeholder: i,
4788
- autoFocus: l,
4789
- className: "w-2/3 bg-transparent text-right text-lg outline-none appearance-none [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"
4790
- }
4791
- )
4792
- ] }),
4793
- /* @__PURE__ */ c(Oa, { name: e, defaultValue: "" }),
4794
- s && n ? /* @__PURE__ */ x("div", { className: "flex w-full flex-row content-center justify-between text-sm", children: [
4795
- /* @__PURE__ */ x("div", { children: [
4796
- "Stakable:",
4797
- " ",
4798
- /* @__PURE__ */ c("span", { className: "cursor-default", children: Ta(Number(s.balance), s.decimals ?? Wr) }),
4799
- " ",
4800
- s.symbol
4801
- ] }),
4802
- s.displayUSD && s.price !== void 0 && /* @__PURE__ */ x("div", { children: [
4803
- p,
4804
- " USD"
4805
- ] })
4806
- ] }) : null
4813
+ }), v = (b) => {
4814
+ u(e, b.target.value, {
4815
+ shouldValidate: !0,
4816
+ shouldDirty: !0,
4817
+ shouldTouch: !0
4818
+ });
4819
+ }, x = (b) => {
4820
+ (b.key === "ArrowUp" || b.key === "ArrowDown") && b.preventDefault();
4821
+ }, y = `Stakable: ${Ta(Number(s == null ? void 0 : s.balance), (s == null ? void 0 : s.decimals) ?? Wr)} ${s == null ? void 0 : s.symbol}`;
4822
+ return /* @__PURE__ */ N(rt, { children: [
4823
+ /* @__PURE__ */ c(ka, { name: e, defaultValue: "" }),
4824
+ /* @__PURE__ */ c(Dr, { className: "flex w-full flex-col content-center justify-between gap-4", children: /* @__PURE__ */ c(
4825
+ Sa,
4826
+ {
4827
+ amount: f,
4828
+ currencyIcon: t,
4829
+ currencyName: r,
4830
+ placeholder: i,
4831
+ displayBalance: n,
4832
+ balanceDetails: s,
4833
+ min: o,
4834
+ step: a,
4835
+ autoFocus: l,
4836
+ onChange: v,
4837
+ onKeyDown: x,
4838
+ amountUsd: m,
4839
+ subtitle: y
4840
+ }
4841
+ ) })
4807
4842
  ] });
4808
4843
  };
4809
- function Pa({ items: e, onRemove: t }) {
4844
+ function Ba({ items: e, onRemove: t }) {
4810
4845
  const r = Ue(() => e, [e]);
4811
4846
  return r.length === 0 ? null : /* @__PURE__ */ c("div", { className: "flex flex-col gap-8", children: r.map(({ bsnId: n, bsnName: i, bsnLogoUrl: s, provider: o }) => /* @__PURE__ */ c(
4812
4847
  Ci,
@@ -4820,18 +4855,18 @@ function Pa({ items: e, onRemove: t }) {
4820
4855
  `${n}-${o.rank}`
4821
4856
  )) });
4822
4857
  }
4823
- function Sl({ max: e, items: t = [], actionText: r, onAdd: n, onRemove: i }) {
4858
+ function Fl({ max: e, items: t = [], actionText: r, onAdd: n, onRemove: i }) {
4824
4859
  const s = Ue(() => t.length, [t]);
4825
- return /* @__PURE__ */ c(Dr, { children: /* @__PURE__ */ x("div", { className: "flex w-full flex-col gap-4", children: [
4826
- /* @__PURE__ */ c("div", { className: "flex flex-row", children: /* @__PURE__ */ x("div", { className: "flex w-full flex-row content-center items-center justify-between font-normal", children: [
4860
+ return /* @__PURE__ */ c(Dr, { children: /* @__PURE__ */ N("div", { className: "flex w-full flex-col gap-4", children: [
4861
+ /* @__PURE__ */ c("div", { className: "flex flex-row", children: /* @__PURE__ */ N("div", { className: "flex w-full flex-row content-center items-center justify-between font-normal", children: [
4827
4862
  /* @__PURE__ */ c("span", { className: "text-sm sm:text-base", children: r }),
4828
- /* @__PURE__ */ c(Jo, { counter: s, max: e, onAdd: n })
4863
+ /* @__PURE__ */ c(Ko, { counter: s, max: e, onAdd: n })
4829
4864
  ] }) }),
4830
- s > 0 && /* @__PURE__ */ c(Pa, { items: t, onRemove: i })
4865
+ s > 0 && /* @__PURE__ */ c(Ba, { items: t, onRemove: i })
4831
4866
  ] }) });
4832
4867
  }
4833
4868
  function Ur({ title: e, children: t, className: r, hint: n }) {
4834
- return /* @__PURE__ */ x(
4869
+ return /* @__PURE__ */ N(
4835
4870
  "div",
4836
4871
  {
4837
4872
  className: be(
@@ -4841,7 +4876,7 @@ function Ur({ title: e, children: t, className: r, hint: n }) {
4841
4876
  ),
4842
4877
  children: [
4843
4878
  /* @__PURE__ */ c(W, { as: "div", variant: "body1", children: e }),
4844
- n ? /* @__PURE__ */ x("div", { className: "flex flex-col items-end", children: [
4879
+ n ? /* @__PURE__ */ N("div", { className: "flex flex-col items-end", children: [
4845
4880
  /* @__PURE__ */ c(W, { as: "div", className: "flex items-center gap-2", children: t }),
4846
4881
  /* @__PURE__ */ c(W, { as: "div", variant: "body2", className: "text-accent-secondary", children: n })
4847
4882
  ] }) : /* @__PURE__ */ c(W, { as: "div", className: "flex items-center gap-2", children: t })
@@ -4849,40 +4884,40 @@ function Ur({ title: e, children: t, className: r, hint: n }) {
4849
4884
  }
4850
4885
  );
4851
4886
  }
4852
- function Ba(e) {
4887
+ function Ra(e) {
4853
4888
  return Vt({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M362.7 19.3L314.3 67.7 444.3 197.7l48.4-48.4c25-25 25-65.5 0-90.5L453.3 19.3c-25-25-65.5-25-90.5 0zm-71 71L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4L1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L421.7 220.3 291.7 90.3z" }, child: [] }] })(e);
4854
4889
  }
4855
- function Ra({ value: e, onEdit: t, title: r = "Network Fee Rate", className: n }) {
4856
- return /* @__PURE__ */ x(Ur, { title: r, className: n, children: [
4857
- /* @__PURE__ */ x("span", { children: [
4890
+ function ja({ value: e, onEdit: t, title: r = "Network Fee Rate", className: n }) {
4891
+ return /* @__PURE__ */ N(Ur, { title: r, className: n, children: [
4892
+ /* @__PURE__ */ N("span", { children: [
4858
4893
  e,
4859
4894
  " sats/vB"
4860
4895
  ] }),
4861
- t && /* @__PURE__ */ c(at, { size: "small", variant: "outlined", className: "h-6 w-6 pl-1 text-secondary-strokeDark", onClick: t, children: /* @__PURE__ */ c(Ba, { size: 16, className: "text-secondary-strokeDark" }) })
4896
+ t && /* @__PURE__ */ c(lt, { size: "small", variant: "outlined", className: "h-6 w-6 pl-1 text-secondary-strokeDark", onClick: t, children: /* @__PURE__ */ c(Ra, { size: 16, className: "text-secondary-strokeDark" }) })
4862
4897
  ] });
4863
4898
  }
4864
- function ja({ amount: e, coinSymbol: t, hint: r, title: n, className: i, decimals: s = Wr }) {
4899
+ function Ia({ amount: e, coinSymbol: t, hint: r, title: n, className: i, decimals: s = Wr }) {
4865
4900
  let o;
4866
- return typeof e == "number" ? e === 0 ? o = "0" : o = e.toFixed(s).replace(/0+$/, "").replace(/\.$/, "") : o = e, /* @__PURE__ */ x(Ur, { title: n ?? `${t} Network Fee`, hint: r, className: i, children: [
4901
+ return typeof e == "number" ? e === 0 ? o = "0" : o = e.toFixed(s).replace(/0+$/, "").replace(/\.$/, "") : o = e, /* @__PURE__ */ N(Ur, { title: n ?? `${t} Network Fee`, hint: r, className: i, children: [
4867
4902
  o,
4868
4903
  " ",
4869
4904
  t
4870
4905
  ] });
4871
4906
  }
4872
- function Ia({ amount: e, coinSymbol: t, hint: r, title: n, className: i, decimals: s = Ma }) {
4907
+ function $a({ amount: e, coinSymbol: t, hint: r, title: n, className: i, decimals: s = Ma }) {
4873
4908
  const o = typeof e == "number" ? e.toFixed(s) : e;
4874
- return /* @__PURE__ */ x(Ur, { title: n ?? `${t} Network Fee`, hint: r, className: i, children: [
4909
+ return /* @__PURE__ */ N(Ur, { title: n ?? `${t} Network Fee`, hint: r, className: i, children: [
4875
4910
  o,
4876
4911
  " ",
4877
4912
  t
4878
4913
  ] });
4879
4914
  }
4880
- function $a({ total: e, coinSymbol: t, hint: r, title: n = "Total", className: i, decimals: s = Wr }) {
4915
+ function Ha({ total: e, coinSymbol: t, hint: r, title: n = "Total", className: i, decimals: s = Wr }) {
4881
4916
  let o;
4882
- return typeof e == "number" ? e === 0 ? o = "0" : o = e.toFixed(s).replace(/0+$/, "").replace(/\.$/, "") : o = e, /* @__PURE__ */ x("div", { className: be("flex flex-row items-start justify-between text-accent-primary", i), children: [
4917
+ return typeof e == "number" ? e === 0 ? o = "0" : o = e.toFixed(s).replace(/0+$/, "").replace(/\.$/, "") : o = e, /* @__PURE__ */ N("div", { className: be("flex flex-row items-start justify-between text-accent-primary", i), children: [
4883
4918
  /* @__PURE__ */ c(W, { variant: "body1", className: "font-bold", children: n }),
4884
- /* @__PURE__ */ x("div", { className: "flex flex-col items-end justify-center", children: [
4885
- /* @__PURE__ */ x(W, { variant: "body1", className: "font-bold", children: [
4919
+ /* @__PURE__ */ N("div", { className: "flex flex-col items-end justify-center", children: [
4920
+ /* @__PURE__ */ N(W, { variant: "body1", className: "font-bold", children: [
4886
4921
  o,
4887
4922
  " ",
4888
4923
  t
@@ -4891,7 +4926,7 @@ function $a({ total: e, coinSymbol: t, hint: r, title: n = "Total", className: i
4891
4926
  ] })
4892
4927
  ] });
4893
4928
  }
4894
- function Al({
4929
+ function Ll({
4895
4930
  className: e,
4896
4931
  feeRate: t,
4897
4932
  onFeeRateEdit: r,
@@ -4905,11 +4940,11 @@ function Al({
4905
4940
  bbnFeeAmountHint: u,
4906
4941
  bbnFeeDecimals: d
4907
4942
  }) {
4908
- return /* @__PURE__ */ c(Dr, { className: be("flex w-full flex-col content-center justify-between gap-4", e), children: /* @__PURE__ */ x("div", { className: "flex flex-col gap-6 p-4", children: [
4909
- /* @__PURE__ */ c(Ra, { value: t, onEdit: r }),
4910
- /* @__PURE__ */ c(ja, { amount: n, coinSymbol: i, hint: s }),
4943
+ return /* @__PURE__ */ c(Dr, { className: be("flex w-full flex-col content-center justify-between gap-4", e), children: /* @__PURE__ */ N("div", { className: "flex flex-col gap-6 p-4", children: [
4944
+ /* @__PURE__ */ c(ja, { value: t, onEdit: r }),
4945
+ /* @__PURE__ */ c(Ia, { amount: n, coinSymbol: i, hint: s }),
4911
4946
  l !== void 0 && f ? /* @__PURE__ */ c(
4912
- Ia,
4947
+ $a,
4913
4948
  {
4914
4949
  amount: l,
4915
4950
  coinSymbol: f,
@@ -4918,22 +4953,46 @@ function Al({
4918
4953
  }
4919
4954
  ) : null,
4920
4955
  /* @__PURE__ */ c("div", { className: "divider my-4" }),
4921
- /* @__PURE__ */ c($a, { total: o, coinSymbol: i, hint: a })
4956
+ /* @__PURE__ */ c(Ha, { total: o, coinSymbol: i, hint: a })
4922
4957
  ] }) });
4923
4958
  }
4924
- const kn = (e) => {
4925
- let t = "";
4926
- for (let r = 0; r < e.length; r++) {
4927
- const n = e[r].toLowerCase();
4928
- n >= "a" && n <= "z" || n >= "0" && n <= "9" ? t += n : t.length > 0 && t[t.length - 1] !== "-" && (t += "-");
4929
- }
4930
- return t.endsWith("-") && (t = t.slice(0, -1)), t;
4931
- }, Ha = 640;
4932
- function Wa({ className: e, ...t }) {
4933
- const n = ii(Ha) ? Kn : go;
4959
+ const Wa = ({ data: e }) => {
4960
+ if (!e || e.length === 0) return null;
4961
+ const t = e[0], r = e.slice(1), i = {
4962
+ gridTemplateColumns: `repeat(${t.length}, minmax(0, 1fr))`
4963
+ };
4964
+ return /* @__PURE__ */ c(Xo, { className: "p-6 pt-4", children: /* @__PURE__ */ N("div", { className: "flex flex-col", children: [
4965
+ /* @__PURE__ */ c(
4966
+ "div",
4967
+ {
4968
+ className: "items-center gap-4 pb-4 grid",
4969
+ style: i,
4970
+ children: t.map((s, o) => /* @__PURE__ */ c(W, { variant: "caption", className: "text-secondary text-center", children: s }, `header-${o}`))
4971
+ }
4972
+ ),
4973
+ r.map((s, o) => /* @__PURE__ */ c(
4974
+ "div",
4975
+ {
4976
+ className: "items-center gap-4 rounded bg-primary-contrast p-1 grid",
4977
+ style: i,
4978
+ children: s.map((a, l) => /* @__PURE__ */ c(
4979
+ "div",
4980
+ {
4981
+ className: "flex w-full items-center justify-center gap-2 py-1",
4982
+ children: a
4983
+ },
4984
+ `cell-${o}-${l}`
4985
+ ))
4986
+ },
4987
+ `row-${o}`
4988
+ ))
4989
+ ] }) });
4990
+ };
4991
+ function Ua({ className: e, ...t }) {
4992
+ const n = ii(Pa) ? Kn : go;
4934
4993
  return /* @__PURE__ */ c(n, { ...t, className: be("w-[41.25rem] max-w-full", e) });
4935
4994
  }
4936
- const Fl = ({
4995
+ const Vl = ({
4937
4996
  open: e,
4938
4997
  processing: t = !1,
4939
4998
  onClose: r,
@@ -4948,7 +5007,7 @@ const Fl = ({
4948
5007
  { label: "Transaction Fees", value: o.transactionFees },
4949
5008
  {
4950
5009
  label: "Term",
4951
- value: /* @__PURE__ */ x(Ft, { children: [
5010
+ value: /* @__PURE__ */ N(rt, { children: [
4952
5011
  o.term.blocks,
4953
5012
  /* @__PURE__ */ c("br", {}),
4954
5013
  /* @__PURE__ */ c("span", { className: "text-md text-secondary", children: o.term.duration })
@@ -4957,57 +5016,62 @@ const Fl = ({
4957
5016
  { label: "Unbonding", value: o.unbonding },
4958
5017
  { label: "Unbonding Fee", value: o.unbondingFee }
4959
5018
  ];
4960
- return /* @__PURE__ */ x(Wa, { open: e, onClose: r, children: [
4961
- /* @__PURE__ */ c(No, { title: "Preview", onClose: r, className: "text-accent-primary" }),
4962
- /* @__PURE__ */ x(Co, { className: "no-scrollbar mb-8 mt-4 flex max-h-[calc(100vh-12rem)] flex-col gap-4 overflow-y-auto text-accent-primary", children: [
4963
- /* @__PURE__ */ c(Yo, { className: "p-6 pt-4", children: /* @__PURE__ */ x("div", { className: "flex flex-col", children: [
4964
- i.length > 1 ? /* @__PURE__ */ x("div", { className: "grid grid-cols-2 items-center gap-4 pb-4", children: [
4965
- /* @__PURE__ */ c(W, { variant: "caption", className: "text-secondary text-center", children: "BSNs" }),
4966
- /* @__PURE__ */ c(W, { variant: "caption", className: "text-secondary text-center", children: "Finality Provider" })
4967
- ] }) : null,
4968
- /* @__PURE__ */ x("div", { className: "grid grid-cols-2 items-center gap-4 rounded bg-primary-contrast p-4", children: [
4969
- /* @__PURE__ */ c("div", { className: "flex flex-col gap-3", children: i.map((l, f) => /* @__PURE__ */ x("div", { className: "flex w-full items-center justify-center gap-2 py-1", children: [
4970
- l.icon,
4971
- /* @__PURE__ */ c(W, { variant: "body2", className: "font-medium", children: l.name })
4972
- ] }, `bsn-${kn(l.name)}-${f}`)) }),
4973
- /* @__PURE__ */ c("div", { className: "flex flex-col gap-3", children: s.map((l, f) => /* @__PURE__ */ x("div", { className: "flex w-full items-center justify-center gap-2 py-1", children: [
4974
- l.icon,
4975
- /* @__PURE__ */ c(W, { variant: "body2", className: "font-medium", children: l.name })
4976
- ] }, `fp-${kn(l.name)}-${f}`)) })
4977
- ] })
4978
- ] }) }),
4979
- /* @__PURE__ */ c("div", { className: "flex flex-col", children: a.map((l, f) => /* @__PURE__ */ x("div", { className: "flex flex-row items-center justify-between py-3", children: [
5019
+ return /* @__PURE__ */ N(Ua, { open: e, onClose: r, children: [
5020
+ /* @__PURE__ */ c(xo, { title: "Preview", onClose: r, className: "text-accent-primary" }),
5021
+ /* @__PURE__ */ N(No, { className: "no-scrollbar mb-8 mt-4 flex max-h-[calc(100vh-12rem)] flex-col gap-4 overflow-y-auto text-accent-primary", children: [
5022
+ /* @__PURE__ */ c(
5023
+ Wa,
5024
+ {
5025
+ data: [
5026
+ ["BSNs", "Finality Provider"],
5027
+ ...i.map((l, f) => {
5028
+ const u = s[f];
5029
+ return [
5030
+ /* @__PURE__ */ N("div", { className: "flex w-full items-center justify-center gap-2 py-1", children: [
5031
+ l.icon,
5032
+ /* @__PURE__ */ c(W, { variant: "body2", className: "font-medium", children: l.name })
5033
+ ] }, `bsn-${f}`),
5034
+ u ? /* @__PURE__ */ N("div", { className: "flex w-full items-center justify-center gap-2 py-1", children: [
5035
+ u.icon,
5036
+ /* @__PURE__ */ c(W, { variant: "body2", className: "font-medium", children: u.name })
5037
+ ] }, `fp-${f}`) : /* @__PURE__ */ c("div", {}, `fp-${f}`)
5038
+ ];
5039
+ })
5040
+ ]
5041
+ }
5042
+ ),
5043
+ /* @__PURE__ */ c("div", { className: "flex flex-col", children: a.map((l, f) => /* @__PURE__ */ N("div", { className: "flex flex-row items-center justify-between py-3", children: [
4980
5044
  /* @__PURE__ */ c(W, { variant: "body1", className: "text-secondary font-normal", children: l.label }),
4981
5045
  /* @__PURE__ */ c(W, { variant: "body1", className: "text-right font-normal", children: l.value })
4982
5046
  ] }, f)) }),
4983
5047
  /* @__PURE__ */ c("div", { className: "border-divider w-full border-t" }),
4984
- /* @__PURE__ */ x("div", { className: "pt-2", children: [
5048
+ /* @__PURE__ */ N("div", { className: "pt-2", children: [
4985
5049
  /* @__PURE__ */ c(Cr, { variant: "h6", className: "text-primary mb-2", children: "Attention!" }),
4986
5050
  /* @__PURE__ */ c(W, { variant: "body2", className: "text-secondary", children: "1. No third party possesses your staked BTC. You are the only one who can unbond and withdraw your stake." }),
4987
5051
  /* @__PURE__ */ c(W, { variant: "body2", className: "text-secondary", children: "2. Your stake will first be sent to Babylon Genesis for verification (~20 seconds), then you will be prompted to submit it to the Bitcoin ledger. It will be marked as 'Pending' until it receives 10 Bitcoin confirmations." })
4988
5052
  ] })
4989
5053
  ] }),
4990
- /* @__PURE__ */ x(ko, { className: "flex flex-col gap-4 pb-8 pt-0 sm:flex-row", children: [
4991
- /* @__PURE__ */ c(at, { variant: "contained", color: "primary", onClick: n, className: "w-full sm:flex-1 sm:order-2", disabled: t, children: t ? "Processing..." : "Proceed to Signing" }),
4992
- /* @__PURE__ */ c(at, { variant: "outlined", color: "primary", onClick: r, className: "w-full sm:flex-1 sm:order-1", children: "Cancel" })
5054
+ /* @__PURE__ */ N(Co, { className: "flex flex-col gap-4 pb-8 pt-0 sm:flex-row", children: [
5055
+ /* @__PURE__ */ c(lt, { variant: "contained", color: "primary", onClick: n, className: "w-full sm:flex-1 sm:order-2", disabled: t, children: t ? "Processing..." : "Proceed to Signing" }),
5056
+ /* @__PURE__ */ c(lt, { variant: "outlined", color: "primary", onClick: r, className: "w-full sm:flex-1 sm:order-1", children: "Cancel" })
4993
5057
  ] })
4994
5058
  ] });
4995
- }, Ua = ({ size: e = "md" }) => /* @__PURE__ */ c("div", { className: {
5059
+ }, qa = ({ size: e = "md" }) => /* @__PURE__ */ c("div", { className: {
4996
5060
  sm: "mt-2",
4997
5061
  md: "mt-4",
4998
5062
  lg: "mt-6"
4999
- }[e] }), qa = () => /* @__PURE__ */ c("svg", { width: "29", height: "28", viewBox: "0 0 29 28", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ c(
5063
+ }[e] }), za = () => /* @__PURE__ */ c("svg", { width: "29", height: "28", viewBox: "0 0 29 28", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ c(
5000
5064
  "path",
5001
5065
  {
5002
5066
  d: "M24.9127 15.3708C24.9711 14.9333 25.0002 14.4812 25.0002 14C25.0002 13.5333 24.9711 13.0667 24.8982 12.6292L27.8586 10.325C28.1211 10.1208 28.194 9.72708 28.0336 9.43542L25.2336 4.59375C25.0586 4.27292 24.694 4.17083 24.3732 4.27292L20.8877 5.67292C20.1586 5.11875 19.3857 4.65208 18.5252 4.30208L18.0002 0.597916C17.9419 0.247916 17.6502 0 17.3002 0H11.7002C11.3502 0 11.0732 0.247916 11.0148 0.597916L10.4898 4.30208C9.62941 4.65208 8.84191 5.13333 8.12732 5.67292L4.64191 4.27292C4.32107 4.15625 3.95649 4.27292 3.78149 4.59375L0.996075 9.43542C0.821075 9.74167 0.879408 10.1208 1.17107 10.325L4.13149 12.6292C4.05857 13.0667 4.00024 13.5479 4.00024 14C4.00024 14.4521 4.02941 14.9333 4.10232 15.3708L1.14191 17.675C0.879408 17.8792 0.806491 18.2729 0.966908 18.5646L3.76691 23.4062C3.94191 23.7271 4.30649 23.8292 4.62732 23.7271L8.11274 22.3271C8.84191 22.8812 9.61482 23.3479 10.4752 23.6979L11.0002 27.4021C11.0732 27.7521 11.3502 28 11.7002 28H17.3002C17.6502 28 17.9419 27.7521 17.9857 27.4021L18.5107 23.6979C19.3711 23.3479 20.1586 22.8812 20.8732 22.3271L24.3586 23.7271C24.6794 23.8438 25.044 23.7271 25.219 23.4062L28.019 18.5646C28.194 18.2437 28.1211 17.8792 27.844 17.675L24.9127 15.3708ZM14.5002 19.25C11.6127 19.25 9.25024 16.8875 9.25024 14C9.25024 11.1125 11.6127 8.75 14.5002 8.75C17.3877 8.75 19.7502 11.1125 19.7502 14C19.7502 16.8875 17.3877 19.25 14.5002 19.25Z",
5003
5067
  fill: "#9E9E9E"
5004
5068
  }
5005
- ) }), Fi = () => /* @__PURE__ */ c("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ c("path", { d: "M9 18L15 12L9 6", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), za = ({ children: e, className: t = "" }) => /* @__PURE__ */ c(W, { variant: "body1", className: S("px-7 pb-6 text-accent-primary md:hidden", t), children: e }), Za = ({
5069
+ ) }), Fi = () => /* @__PURE__ */ c("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ c("path", { d: "M9 18L15 12L9 6", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), Za = ({ children: e, className: t = "" }) => /* @__PURE__ */ c(W, { variant: "body1", className: E("px-7 pb-6 text-accent-primary md:hidden", t), children: e }), Xa = ({
5006
5070
  background: e = "none",
5007
5071
  backgroundClassName: t = "",
5008
5072
  className: r = "",
5009
5073
  children: n
5010
- }) => /* @__PURE__ */ c("div", { className: S((() => {
5074
+ }) => /* @__PURE__ */ c("div", { className: E((() => {
5011
5075
  switch (e) {
5012
5076
  case "secondary":
5013
5077
  return "mx-[21px] rounded-lg bg-secondary-highlight md:mx-0 md:bg-transparent";
@@ -5016,7 +5080,7 @@ const Fl = ({
5016
5080
  default:
5017
5081
  return "";
5018
5082
  }
5019
- })(), r), children: n }), At = ({ children: e }) => /* @__PURE__ */ c(Ft, { children: e }), Li = ({
5083
+ })(), r), children: n }), Ft = ({ children: e }) => /* @__PURE__ */ c(rt, { children: e }), Li = ({
5020
5084
  icon: e,
5021
5085
  suffix: t,
5022
5086
  onClick: r,
@@ -5026,12 +5090,12 @@ const Fl = ({
5026
5090
  children: o
5027
5091
  }) => {
5028
5092
  const a = R.Children.toArray(o), l = a.find(
5029
- (p) => typeof p == "string" || R.isValidElement(p) && p.type !== At
5093
+ (m) => typeof m == "string" || R.isValidElement(m) && m.type !== Ft
5030
5094
  ), f = a.find(
5031
- (p) => R.isValidElement(p) && p.type === At
5095
+ (m) => R.isValidElement(m) && m.type === Ft
5032
5096
  ), u = typeof l == "string" ? l : "", d = r ? /* @__PURE__ */ c(Fi, {}) : void 0;
5033
5097
  return /* @__PURE__ */ c(
5034
- ea,
5098
+ Qo,
5035
5099
  {
5036
5100
  icon: e,
5037
5101
  name: u,
@@ -5043,14 +5107,14 @@ const Fl = ({
5043
5107
  suffix: t || d
5044
5108
  }
5045
5109
  );
5046
- }, Xa = ({ icon: e, className: t = "", children: r }) => {
5110
+ }, Ya = ({ icon: e, className: t = "", children: r }) => {
5047
5111
  const n = R.Children.toArray(r), i = n.find(
5048
- (l) => typeof l == "string" || R.isValidElement(l) && l.type !== At
5112
+ (l) => typeof l == "string" || R.isValidElement(l) && l.type !== Ft
5049
5113
  ), s = n.find(
5050
- (l) => R.isValidElement(l) && l.type === At
5114
+ (l) => R.isValidElement(l) && l.type === Ft
5051
5115
  ), o = n.filter((l) => R.isValidElement(l) && l.type === Li);
5052
5116
  return /* @__PURE__ */ c(
5053
- ta,
5117
+ ea,
5054
5118
  {
5055
5119
  icon: e,
5056
5120
  name: typeof i == "string" ? i : "",
@@ -5060,7 +5124,7 @@ const Fl = ({
5060
5124
  children: o
5061
5125
  }
5062
5126
  );
5063
- }, Ya = ({ children: e, className: t = "" }) => /* @__PURE__ */ c("div", { className: t, children: e }), Ga = ({
5127
+ }, Ga = ({ children: e, className: t = "" }) => /* @__PURE__ */ c("div", { className: t, children: e }), Ka = ({
5064
5128
  trigger: e,
5065
5129
  open: t,
5066
5130
  onOpenChange: r,
@@ -5076,7 +5140,7 @@ const Fl = ({
5076
5140
  {
5077
5141
  className: "flex h-10 w-10 items-center justify-center rounded-lg transition-colors hover:bg-accent-primary/10",
5078
5142
  "aria-label": "Settings menu",
5079
- children: /* @__PURE__ */ c(qa, {})
5143
+ children: /* @__PURE__ */ c(za, {})
5080
5144
  }
5081
5145
  ),
5082
5146
  open: t,
@@ -5086,15 +5150,15 @@ const Fl = ({
5086
5150
  offset: s,
5087
5151
  children: o
5088
5152
  }
5089
- ), nt = Ga;
5090
- nt.Title = za;
5091
- nt.Group = Za;
5092
- nt.Item = Li;
5093
- nt.SubMenu = Xa;
5094
- nt.Description = At;
5095
- nt.CustomContent = Ya;
5096
- nt.Spacer = Ua;
5097
- const On = ({
5153
+ ), it = Ka;
5154
+ it.Title = Za;
5155
+ it.Group = Xa;
5156
+ it.Item = Li;
5157
+ it.SubMenu = Ya;
5158
+ it.Description = Ft;
5159
+ it.CustomContent = Ga;
5160
+ it.Spacer = qa;
5161
+ const kn = ({
5098
5162
  walletType: e,
5099
5163
  walletName: t,
5100
5164
  walletIcon: r,
@@ -5102,10 +5166,10 @@ const On = ({
5102
5166
  isCopied: i,
5103
5167
  onCopy: s,
5104
5168
  className: o
5105
- }) => /* @__PURE__ */ c("div", { className: S(
5169
+ }) => /* @__PURE__ */ c("div", { className: E(
5106
5170
  "bg-secondary-highlight dark:bg-secondary-strokeLight rounded-[4px] p-3 flex-1 md:p-4",
5107
5171
  o
5108
- ), children: /* @__PURE__ */ x("div", { className: "flex flex-col w-full", children: [
5172
+ ), children: /* @__PURE__ */ N("div", { className: "flex flex-col w-full", children: [
5109
5173
  /* @__PURE__ */ c("div", { className: "flex justify-start mb-2 md:mb-3", children: /* @__PURE__ */ c(
5110
5174
  Yt,
5111
5175
  {
@@ -5115,7 +5179,7 @@ const On = ({
5115
5179
  className: "w-8 h-8 md:w-10 md:h-10"
5116
5180
  }
5117
5181
  ) }),
5118
- /* @__PURE__ */ c("div", { className: "flex justify-start mb-[1px]", children: /* @__PURE__ */ x(
5182
+ /* @__PURE__ */ c("div", { className: "flex justify-start mb-[1px]", children: /* @__PURE__ */ N(
5119
5183
  W,
5120
5184
  {
5121
5185
  variant: "body1",
@@ -5126,7 +5190,7 @@ const On = ({
5126
5190
  ]
5127
5191
  }
5128
5192
  ) }),
5129
- /* @__PURE__ */ x("div", { className: "flex items-center justify-between w-full", children: [
5193
+ /* @__PURE__ */ N("div", { className: "flex items-center justify-between w-full", children: [
5130
5194
  /* @__PURE__ */ c("div", { className: "flex-1 min-w-0", children: i ? /* @__PURE__ */ c(W, { className: "text-accent-primary !text-sm truncate whitespace-nowrap", children: "Copied ✓" }) : /* @__PURE__ */ c(
5131
5195
  oi,
5132
5196
  {
@@ -5140,11 +5204,11 @@ const On = ({
5140
5204
  {
5141
5205
  onClick: s,
5142
5206
  className: "flex-shrink-0 ml-3 p-1 rounded hover:bg-surface-tertiary transition-colors h-6 w-6 flex items-center justify-center hover:opacity-80",
5143
- children: /* @__PURE__ */ c(Yn, { size: 14, className: "md:w-4 md:h-4" })
5207
+ children: /* @__PURE__ */ c(Xn, { size: 14, className: "md:w-4 md:h-4" })
5144
5208
  }
5145
5209
  )
5146
5210
  ] })
5147
- ] }) }), Ka = ({
5211
+ ] }) }), Ja = ({
5148
5212
  value: e,
5149
5213
  onChange: t,
5150
5214
  className: r = "",
@@ -5157,7 +5221,7 @@ const On = ({
5157
5221
  n || t(!e);
5158
5222
  },
5159
5223
  disabled: n,
5160
- className: S(
5224
+ className: E(
5161
5225
  "relative inline-flex h-[31px] w-[55px] items-center rounded-full transition-colors duration-300 ease-in-out",
5162
5226
  "focus:outline-none focus:ring-2 focus:ring-primary-main focus:ring-offset-2",
5163
5227
  e ? "bg-primary-main dark:bg-primary-light" : "bg-[#78788029]",
@@ -5172,7 +5236,7 @@ const On = ({
5172
5236
  children: /* @__PURE__ */ c(
5173
5237
  "span",
5174
5238
  {
5175
- className: S(
5239
+ className: E(
5176
5240
  "inline-block w-[27px] h-[27px] transform rounded-full bg-white transition-transform duration-300 ease-in-out",
5177
5241
  "flex items-center justify-center shadow-sm",
5178
5242
  e ? "translate-x-[26px]" : "translate-x-[2px]"
@@ -5180,20 +5244,20 @@ const On = ({
5180
5244
  }
5181
5245
  )
5182
5246
  }
5183
- ), En = ({
5247
+ ), On = ({
5184
5248
  icon: e,
5185
5249
  title: t,
5186
5250
  status: r,
5187
5251
  value: n,
5188
5252
  onChange: i,
5189
5253
  className: s
5190
- }) => /* @__PURE__ */ x("div", { className: S(
5254
+ }) => /* @__PURE__ */ N("div", { className: E(
5191
5255
  "flex items-center justify-between w-full bg-secondary-highlight dark:bg-secondary-strokeLight rounded-[4px] p-3 md:bg-transparent md:dark:bg-transparent md:p-0 md:mb-0",
5192
5256
  s
5193
5257
  ), children: [
5194
- /* @__PURE__ */ x("div", { className: "flex items-center gap-4", children: [
5258
+ /* @__PURE__ */ N("div", { className: "flex items-center gap-4", children: [
5195
5259
  e,
5196
- /* @__PURE__ */ x("div", { className: "flex flex-col", children: [
5260
+ /* @__PURE__ */ N("div", { className: "flex flex-col", children: [
5197
5261
  /* @__PURE__ */ c(
5198
5262
  W,
5199
5263
  {
@@ -5206,26 +5270,26 @@ const On = ({
5206
5270
  ] })
5207
5271
  ] }),
5208
5272
  /* @__PURE__ */ c(
5209
- Ka,
5273
+ Ja,
5210
5274
  {
5211
5275
  value: n,
5212
5276
  onChange: i
5213
5277
  }
5214
5278
  )
5215
- ] }), Ja = ({
5279
+ ] }), Qa = ({
5216
5280
  title: e,
5217
5281
  value: t,
5218
5282
  isCopied: r,
5219
5283
  onCopy: n,
5220
5284
  className: i,
5221
5285
  icon: s
5222
- }) => /* @__PURE__ */ c("div", { className: S(
5286
+ }) => /* @__PURE__ */ c("div", { className: E(
5223
5287
  "flex items-center justify-between w-full bg-secondary-highlight dark:bg-secondary-strokeLight rounded-[4px] p-3 md:bg-transparent md:dark:bg-transparent md:p-0 md:mb-0",
5224
5288
  i
5225
- ), children: /* @__PURE__ */ c("div", { className: "flex flex-col w-full", children: /* @__PURE__ */ x("div", { className: "flex items-center gap-4 mb-3", children: [
5289
+ ), children: /* @__PURE__ */ c("div", { className: "flex flex-col w-full", children: /* @__PURE__ */ N("div", { className: "flex items-center gap-4 mb-3", children: [
5226
5290
  s && /* @__PURE__ */ c("div", { className: "flex-shrink-0", children: s }),
5227
- /* @__PURE__ */ x("div", { className: "flex w-full", children: [
5228
- /* @__PURE__ */ x("div", { className: "flex flex-col w-full", children: [
5291
+ /* @__PURE__ */ N("div", { className: "flex w-full", children: [
5292
+ /* @__PURE__ */ N("div", { className: "flex flex-col w-full", children: [
5229
5293
  /* @__PURE__ */ c(
5230
5294
  W,
5231
5295
  {
@@ -5248,11 +5312,11 @@ const On = ({
5248
5312
  {
5249
5313
  onClick: n,
5250
5314
  className: "flex-shrink-0 ml-3 p-1 rounded hover:bg-surface-tertiary transition-colors h-6 w-6 flex items-center justify-center hover:opacity-80 self-center",
5251
- children: /* @__PURE__ */ c(Yn, { size: 16 })
5315
+ children: /* @__PURE__ */ c(Xn, { size: 16 })
5252
5316
  }
5253
5317
  )
5254
5318
  ] })
5255
- ] }) }) }), Ll = ({
5319
+ ] }) }) }), _l = ({
5256
5320
  trigger: e,
5257
5321
  btcAddress: t,
5258
5322
  bbnAddress: r,
@@ -5265,50 +5329,50 @@ const On = ({
5265
5329
  publicKeyNoCoord: f,
5266
5330
  onDisconnect: u,
5267
5331
  forceOpen: d = !1,
5268
- onOpenChange: p
5332
+ onOpenChange: m
5269
5333
  }) => {
5270
- var M, E, F, L;
5271
- const { copyToClipboard: v, isCopied: N } = ai(), [b, y] = oe(d), _ = ae((k) => {
5272
- y(k), p == null || p(k);
5273
- }, [p]), w = ae(() => {
5274
- y(!1), u();
5334
+ var M, S, F, L;
5335
+ const { copyToClipboard: v, isCopied: x } = ai(), [y, b] = oe(d), _ = ae((k) => {
5336
+ b(k), m == null || m(k);
5337
+ }, [m]), w = ae(() => {
5338
+ b(!1), u();
5275
5339
  }, [u]);
5276
5340
  return /* @__PURE__ */ c(
5277
5341
  si,
5278
5342
  {
5279
5343
  trigger: e,
5280
- open: b,
5344
+ open: y,
5281
5345
  onOpenChange: _,
5282
5346
  mobileMode: "dialog",
5283
5347
  className: "shadow-lg border border-[#38708533] bg-[#FFFFFF] dark:bg-[#252525] dark:border-[#404040] rounded-lg",
5284
- children: /* @__PURE__ */ x("div", { className: "p-4 space-y-6 w-full text-primary-main", children: [
5285
- /* @__PURE__ */ x("div", { className: "flex flex-row gap-2 w-full md:flex-col overflow-x-auto", children: [
5348
+ children: /* @__PURE__ */ N("div", { className: "p-4 space-y-6 w-full text-primary-main", children: [
5349
+ /* @__PURE__ */ N("div", { className: "flex flex-row gap-2 w-full md:flex-col overflow-x-auto", children: [
5286
5350
  /* @__PURE__ */ c(
5287
- On,
5351
+ kn,
5288
5352
  {
5289
5353
  walletType: "Bitcoin",
5290
5354
  walletName: (M = n.BTC) == null ? void 0 : M.name,
5291
- walletIcon: (E = n.BTC) == null ? void 0 : E.icon,
5355
+ walletIcon: (S = n.BTC) == null ? void 0 : S.icon,
5292
5356
  address: t,
5293
- isCopied: N("btc"),
5357
+ isCopied: x("btc"),
5294
5358
  onCopy: () => v("btc", t)
5295
5359
  }
5296
5360
  ),
5297
5361
  /* @__PURE__ */ c(
5298
- On,
5362
+ kn,
5299
5363
  {
5300
5364
  walletType: "Babylon",
5301
5365
  walletName: (F = n.BBN) == null ? void 0 : F.name,
5302
5366
  walletIcon: (L = n.BBN) == null ? void 0 : L.icon,
5303
5367
  address: r,
5304
- isCopied: N("bbn"),
5368
+ isCopied: x("bbn"),
5305
5369
  onCopy: () => v("bbn", r)
5306
5370
  }
5307
5371
  )
5308
5372
  ] }),
5309
- /* @__PURE__ */ x("div", { className: "flex flex-col gap-8 w-full", children: [
5373
+ /* @__PURE__ */ N("div", { className: "flex flex-col gap-8 w-full", children: [
5310
5374
  /* @__PURE__ */ c(
5311
- En,
5375
+ On,
5312
5376
  {
5313
5377
  icon: /* @__PURE__ */ c(wo, {}),
5314
5378
  title: "Using Inscriptions",
@@ -5318,7 +5382,7 @@ const On = ({
5318
5382
  }
5319
5383
  ),
5320
5384
  /* @__PURE__ */ c(
5321
- En,
5385
+ On,
5322
5386
  {
5323
5387
  icon: /* @__PURE__ */ c(yo, {}),
5324
5388
  title: "Linked Wallet Stakes",
@@ -5328,18 +5392,18 @@ const On = ({
5328
5392
  }
5329
5393
  ),
5330
5394
  /* @__PURE__ */ c(
5331
- Ja,
5395
+ Qa,
5332
5396
  {
5333
5397
  title: "Bitcoin Public Key",
5334
5398
  value: f,
5335
- isCopied: N("publicKey"),
5399
+ isCopied: x("publicKey"),
5336
5400
  onCopy: () => v("publicKey", f),
5337
5401
  icon: /* @__PURE__ */ c(bo, {})
5338
5402
  }
5339
5403
  )
5340
5404
  ] }),
5341
5405
  /* @__PURE__ */ c("div", { className: "pt-2", children: /* @__PURE__ */ c(
5342
- Ln,
5406
+ Fn,
5343
5407
  {
5344
5408
  onClick: w,
5345
5409
  fluid: !0,
@@ -5349,35 +5413,35 @@ const On = ({
5349
5413
  ] })
5350
5414
  }
5351
5415
  );
5352
- }, Qa = {
5416
+ }, el = {
5353
5417
  adaptive: "adaptive",
5354
5418
  horizontal: "vertical",
5355
5419
  vertical: "horizontal"
5356
5420
  };
5357
- function Vl({ className: e, orientation: t = "vertical", children: r }) {
5421
+ function Dl({ className: e, orientation: t = "vertical", children: r }) {
5358
5422
  return /* @__PURE__ */ c("div", { className: be("bbn-list-legacy", `bbn-list-legacy-${t}`, e), children: Xt.map(
5359
5423
  r,
5360
5424
  (n) => wr(n) ? yr(n, {
5361
- orientation: Qa[t]
5425
+ orientation: el[t]
5362
5426
  }) : n
5363
5427
  ) });
5364
5428
  }
5365
- function _l({ className: e, orientation: t = "horizontal", title: r, value: n, suffix: i }) {
5366
- return /* @__PURE__ */ x("div", { className: S("bbn-list-item-legacy", `bbn-list-item-legacy-${t}`, e), children: [
5429
+ function Tl({ className: e, orientation: t = "horizontal", title: r, value: n, suffix: i }) {
5430
+ return /* @__PURE__ */ N("div", { className: E("bbn-list-item-legacy", `bbn-list-item-legacy-${t}`, e), children: [
5367
5431
  /* @__PURE__ */ c(
5368
5432
  W,
5369
5433
  {
5370
5434
  as: "div",
5371
- className: S("bbn-list-title-legacy", `bbn-list-title-legacy-${t}`),
5435
+ className: E("bbn-list-title-legacy", `bbn-list-title-legacy-${t}`),
5372
5436
  variant: t === "horizontal" ? "body1" : "body2",
5373
5437
  children: r
5374
5438
  }
5375
5439
  ),
5376
- /* @__PURE__ */ x(
5440
+ /* @__PURE__ */ N(
5377
5441
  W,
5378
5442
  {
5379
5443
  as: "div",
5380
- className: S("bbn-list-value-legacy", `bbn-list-value-legacy-${t}`),
5444
+ className: E("bbn-list-value-legacy", `bbn-list-value-legacy-${t}`),
5381
5445
  variant: "body1",
5382
5446
  children: [
5383
5447
  n,
@@ -5388,102 +5452,103 @@ function _l({ className: e, orientation: t = "horizontal", title: r, value: n, s
5388
5452
  ] });
5389
5453
  }
5390
5454
  export {
5391
- il as Accordion,
5392
- ol as AccordionDetails,
5393
- sl as AccordionSummary,
5394
- El as AmountSubsection,
5455
+ sl as Accordion,
5456
+ al as AccordionDetails,
5457
+ ol as AccordionSummary,
5458
+ Al as AmountSubsection,
5395
5459
  Yt as Avatar,
5396
- al as AvatarGroup,
5397
- Ia as BBNFeeAmount,
5398
- ja as BTCFeeAmount,
5399
- Ra as BTCFeeRate,
5400
- ml as Badge,
5460
+ ll as AvatarGroup,
5461
+ $a as BBNFeeAmount,
5462
+ Ia as BTCFeeAmount,
5463
+ ja as BTCFeeRate,
5464
+ vl as Badge,
5401
5465
  bo as BitcoinPublicKeyIcon,
5402
- at as Button,
5403
- Yo as Card,
5404
- zo as Cell,
5466
+ lt as Button,
5467
+ Xo as Card,
5468
+ qo as Cell,
5405
5469
  Ri as Checkbox,
5406
- Nl as CheckboxField,
5407
- cl as Chip,
5408
- xo as CloseIcon,
5409
- Uo as Column,
5410
- gl as Copy,
5411
- Yn as CopyIcon,
5412
- Jo as CounterButton,
5470
+ kl as CheckboxField,
5471
+ ul as Chip,
5472
+ Yn as CloseIcon,
5473
+ Wo as Column,
5474
+ bl as Copy,
5475
+ Xn as CopyIcon,
5476
+ Ko as CounterButton,
5413
5477
  go as Dialog,
5414
- Co as DialogBody,
5415
- ko as DialogFooter,
5416
- No as DialogHeader,
5478
+ No as DialogBody,
5479
+ Co as DialogFooter,
5480
+ xo as DialogHeader,
5417
5481
  oi as DisplayHash,
5418
5482
  Ur as FeeItem,
5419
- Al as FeesSection,
5483
+ Ll as FeesSection,
5420
5484
  Ci as FinalityProviderItem,
5421
- Sa as FinalityProviderLogo,
5422
- Sl as FinalityProviderSubsection,
5423
- bl as Form,
5485
+ Ea as FinalityProviderLogo,
5486
+ Fl as FinalityProviderSubsection,
5487
+ wl as Form,
5424
5488
  lr as FormControl,
5425
5489
  Cr as Heading,
5426
- Oa as HiddenField,
5427
- Fn as IconButton,
5490
+ ka as HiddenField,
5491
+ An as IconButton,
5428
5492
  Vr as Input,
5429
5493
  yo as LinkWalletIcon,
5430
- hl as List,
5494
+ ml as List,
5431
5495
  pl as ListItem,
5432
- _l as ListItemLegacy,
5433
- Vl as ListLegacy,
5434
- ul as Loader,
5496
+ Tl as ListItemLegacy,
5497
+ Dl as ListLegacy,
5498
+ fl as Loader,
5435
5499
  si as Menu,
5436
5500
  ni as MenuDrawer,
5437
- ea as MenuItem,
5501
+ Qo as MenuItem,
5438
5502
  Kn as MobileDialog,
5439
- wl as NumberField,
5440
- Un as Popover,
5503
+ Nl as NumberField,
5504
+ Wn as Popover,
5441
5505
  ar as Portal,
5442
- Fl as PreviewModal,
5506
+ Vl as PreviewModal,
5443
5507
  Ii as Radio,
5444
- Cl as RadioField,
5445
- ll as ScrollLocker,
5446
- qn as Select,
5447
- kl as SelectField,
5448
- nt as SettingMenu,
5449
- Ya as SettingMenuCustomContent,
5450
- At as SettingMenuDescription,
5451
- Za as SettingMenuGroup,
5508
+ Ol as RadioField,
5509
+ cl as ScrollLocker,
5510
+ Un as Select,
5511
+ El as SelectField,
5512
+ it as SettingMenu,
5513
+ Ga as SettingMenuCustomContent,
5514
+ Ft as SettingMenuDescription,
5515
+ Xa as SettingMenuGroup,
5452
5516
  Li as SettingMenuItem,
5453
- Xa as SettingMenuSubMenu,
5454
- za as SettingMenuTitle,
5455
- ta as SubMenu,
5456
- vl as SubMenuItem,
5517
+ Ya as SettingMenuSubMenu,
5518
+ Za as SettingMenuTitle,
5519
+ ea as SubMenu,
5520
+ gl as SubMenuItem,
5457
5521
  Dr as SubSection,
5458
- fl as Table,
5459
- Ol as TableElement,
5522
+ dl as Table,
5523
+ Sl as TableElement,
5460
5524
  W as Text,
5461
- xl as TextField,
5525
+ Cl as TextField,
5462
5526
  _r as ThemedIcon,
5463
- dl as Toggle,
5464
- $a as Total,
5527
+ hl as Toggle,
5528
+ Ha as Total,
5465
5529
  wo as UsingInscriptionIcon,
5466
- Ln as WalletDisconnectButton,
5467
- On as WalletInfoCard,
5468
- Ja as WalletInfoSection,
5469
- Ll as WalletMenu,
5470
- En as WalletSettingItem,
5471
- Ka as WalletToggle,
5530
+ Fn as WalletDisconnectButton,
5531
+ kn as WalletInfoCard,
5532
+ Qa as WalletInfoSection,
5533
+ _l as WalletMenu,
5534
+ On as WalletSettingItem,
5535
+ Ja as WalletToggle,
5536
+ yl as Warning,
5472
5537
  Gn as iconColorVariants,
5473
- po as useClickOutside,
5474
- ot as useControlledState,
5538
+ mo as useClickOutside,
5539
+ at as useControlledState,
5475
5540
  ai as useCopy,
5476
- ht as useField,
5477
- yl as useFieldState,
5478
- dt as useFormContext,
5541
+ mt as useField,
5542
+ xl as useFieldState,
5543
+ ht as useFormContext,
5479
5544
  di as useFormState,
5480
5545
  ii as useIsMobile,
5481
5546
  ho as useMemoizedArray,
5482
5547
  ri as useMenuContext,
5483
- Zn as useModalManager,
5484
- mo as useResizeObserver,
5485
- Wo as useTableScroll,
5486
- qo as useTableSort,
5487
- pi as useWatch
5548
+ zn as useModalManager,
5549
+ po as useResizeObserver,
5550
+ Ho as useTableScroll,
5551
+ Uo as useTableSort,
5552
+ mi as useWatch
5488
5553
  };
5489
5554
  //# sourceMappingURL=index.es.js.map