etudes 14.6.1 → 14.6.2

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/build/etudes.js CHANGED
@@ -1,4 +1,4 @@
1
- import vs, { useState as Ne, useEffect as he, useRef as Ee, Fragment as _o, cloneElement as ys, Children as sn, isValidElement as an, forwardRef as _e, useCallback as ve, useLayoutEffect as xs, createContext as Oo, useContext as cn } from "react";
1
+ import vs, { useState as Ne, useEffect as pe, useRef as Ee, Fragment as _o, cloneElement as ys, Children as sn, isValidElement as an, forwardRef as _e, useCallback as ye, useLayoutEffect as xs, createContext as Oo, useContext as cn } from "react";
2
2
  import { Link as bs, NavLink as ws, useSearchParams as Es } from "react-router";
3
3
  function Po(e) {
4
4
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -77,7 +77,7 @@ function Ss() {
77
77
  return (_.displayName || "Context") + ".Provider";
78
78
  case q:
79
79
  return (_._context.displayName || "Context") + ".Consumer";
80
- case B:
80
+ case H:
81
81
  var M = _.render;
82
82
  return _ = _.displayName, _ || (_ = M.displayName || M.name || "", _ = _ !== "" ? "ForwardRef(" + _ + ")" : "ForwardRef"), _;
83
83
  case w:
@@ -186,24 +186,24 @@ function Ss() {
186
186
  }), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
187
187
  }
188
188
  function T(_, M, te, oe, ue, se, Se, Oe) {
189
- var me = M.children;
190
- if (me !== void 0)
189
+ var ve = M.children;
190
+ if (ve !== void 0)
191
191
  if (oe)
192
- if (H(me)) {
193
- for (oe = 0; oe < me.length; oe++)
194
- P(me[oe]);
195
- Object.freeze && Object.freeze(me);
192
+ if (B(ve)) {
193
+ for (oe = 0; oe < ve.length; oe++)
194
+ P(ve[oe]);
195
+ Object.freeze && Object.freeze(ve);
196
196
  } else
197
197
  console.error(
198
198
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
199
199
  );
200
- else P(me);
200
+ else P(ve);
201
201
  if (K.call(M, "key")) {
202
- me = e(_);
202
+ ve = e(_);
203
203
  var Q = Object.keys(M).filter(function(Ie) {
204
204
  return Ie !== "key";
205
205
  });
206
- oe = 0 < Q.length ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}", G[me + oe] || (Q = 0 < Q.length ? "{" + Q.join(": ..., ") + ": ...}" : "{}", console.error(
206
+ oe = 0 < Q.length ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}", G[ve + oe] || (Q = 0 < Q.length ? "{" + Q.join(": ..., ") + ": ...}" : "{}", console.error(
207
207
  `A props object containing a "key" prop is being spread into JSX:
208
208
  let props = %s;
209
209
  <%s {...props} />
@@ -211,22 +211,22 @@ React keys must be passed directly to JSX without using spread:
211
211
  let props = %s;
212
212
  <%s key={someKey} {...props} />`,
213
213
  oe,
214
- me,
214
+ ve,
215
215
  Q,
216
- me
217
- ), G[me + oe] = !0);
216
+ ve
217
+ ), G[ve + oe] = !0);
218
218
  }
219
- if (me = null, te !== void 0 && (s(te), me = "" + te), p(M) && (s(M.key), me = "" + M.key), "key" in M) {
219
+ if (ve = null, te !== void 0 && (s(te), ve = "" + te), p(M) && (s(M.key), ve = "" + M.key), "key" in M) {
220
220
  te = {};
221
221
  for (var ke in M)
222
222
  ke !== "key" && (te[ke] = M[ke]);
223
223
  } else te = M;
224
- return me && g(
224
+ return ve && g(
225
225
  te,
226
226
  typeof _ == "function" ? _.displayName || _.name || "Unknown" : _
227
227
  ), N(
228
228
  _,
229
- me,
229
+ ve,
230
230
  se,
231
231
  ue,
232
232
  l(),
@@ -238,7 +238,7 @@ React keys must be passed directly to JSX without using spread:
238
238
  function P(_) {
239
239
  typeof _ == "object" && _ !== null && _.$$typeof === I && _._store && (_._store.validated = 1);
240
240
  }
241
- var k = vs, I = Symbol.for("react.transitional.element"), R = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), W = Symbol.for("react.profiler"), q = Symbol.for("react.consumer"), D = Symbol.for("react.context"), B = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), z = Symbol.for("react.lazy"), Y = Symbol.for("react.activity"), U = Symbol.for("react.client.reference"), ne = k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, K = Object.prototype.hasOwnProperty, H = Array.isArray, L = console.createTask ? console.createTask : function() {
241
+ var k = vs, I = Symbol.for("react.transitional.element"), R = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), W = Symbol.for("react.profiler"), q = Symbol.for("react.consumer"), D = Symbol.for("react.context"), H = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), z = Symbol.for("react.lazy"), Y = Symbol.for("react.activity"), U = Symbol.for("react.client.reference"), ne = k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, K = Object.prototype.hasOwnProperty, B = Array.isArray, L = console.createTask ? console.createTask : function() {
242
242
  return null;
243
243
  };
244
244
  k = {
@@ -328,11 +328,11 @@ var Os = /* @__PURE__ */ _s();
328
328
  const qe = /* @__PURE__ */ Po(Os);
329
329
  function Ps() {
330
330
  const [e, r] = Ne(!1);
331
- return he(() => (r(!0), () => {
331
+ return pe(() => (r(!0), () => {
332
332
  r(!1);
333
333
  }), []), e;
334
334
  }
335
- var pe;
335
+ var he;
336
336
  ((e) => {
337
337
  e.zero = r();
338
338
  function r(b = 0, j = 0) {
@@ -421,14 +421,14 @@ var pe;
421
421
  return b.x === 0 && b.y === 0;
422
422
  }
423
423
  e.isZero = R;
424
- })(pe || (pe = {}));
424
+ })(he || (he = {}));
425
425
  function ks(e, r) {
426
426
  try {
427
- const s = pe.isValidDescriptor(e) && pe.make(e), a = pe.isValidDescriptor(r) && pe.make(r);
427
+ const s = he.isValidDescriptor(e) && he.make(e), a = he.isValidDescriptor(r) && he.make(r);
428
428
  if (s && !a) {
429
429
  const l = r instanceof Array ? r : [r], u = l.length;
430
430
  for (let p = 0; p < u; p++) {
431
- const g = ye.from(l[p]);
431
+ const g = me.from(l[p]);
432
432
  if (!g) continue;
433
433
  const m = s.x >= g.left && s.x <= g.right, N = s.y >= g.top && s.y <= g.bottom;
434
434
  if (m && N) return !0;
@@ -437,7 +437,7 @@ function ks(e, r) {
437
437
  } else if (!s && a) {
438
438
  const l = e instanceof Array ? e : [e], u = l.length;
439
439
  for (let p = 0; p < u; p++) {
440
- const g = ye.from(l[p]);
440
+ const g = me.from(l[p]);
441
441
  if (!g) continue;
442
442
  const m = a.x >= g.left && a.x <= g.right, N = a.y >= g.top && a.y <= g.bottom;
443
443
  if (m && N) return !0;
@@ -445,12 +445,12 @@ function ks(e, r) {
445
445
  return !1;
446
446
  } else {
447
447
  if (s && a)
448
- return pe.isEqual(s, a);
448
+ return he.isEqual(s, a);
449
449
  {
450
450
  const l = [
451
451
  ...e instanceof Array ? e : [e],
452
452
  ...r instanceof Array ? r : [r]
453
- ], u = ye.intersecting.apply(null, l);
453
+ ], u = me.intersecting.apply(null, l);
454
454
  return u ? u.width * u.height !== 0 : !1;
455
455
  }
456
456
  }
@@ -548,7 +548,7 @@ var ze;
548
548
  }
549
549
  e.isZero = R;
550
550
  })(ze || (ze = {}));
551
- var ye;
551
+ var me;
552
552
  ((e) => {
553
553
  e.zero = r();
554
554
  function r(S = 0, C = 0, w = 0, z = 0) {
@@ -562,7 +562,7 @@ var ye;
562
562
  width: w,
563
563
  height: z
564
564
  };
565
- } else if (pe.isPoint(S) && ze.isSize(C)) {
565
+ } else if (he.isPoint(S) && ze.isSize(C)) {
566
566
  const Y = S, U = C;
567
567
  return {
568
568
  top: Y.y,
@@ -587,7 +587,7 @@ var ye;
587
587
  }
588
588
  e.make = r;
589
589
  function s(S) {
590
- return pe.make({
590
+ return he.make({
591
591
  x: (S.right - S.left) / 2 + S.left,
592
592
  y: (S.bottom - S.top) / 2 + S.top
593
593
  });
@@ -608,8 +608,8 @@ var ye;
608
608
  const w = S instanceof Array ? S : [S], z = w.length, Y = C.reference || window, U = u(), ne = St(Y) ? U : l(C.reference);
609
609
  if (!U || !ne) return;
610
610
  let K;
611
- for (let H = 0; H < z; H++) {
612
- const L = w[H], A = L.getBoundingClientRect(), J = r({
611
+ for (let B = 0; B < z; B++) {
612
+ const L = w[B], A = L.getBoundingClientRect(), J = r({
613
613
  x: A.left + U.left - (St(Y) ? 0 : ne.left),
614
614
  y: A.top + U.top - (St(Y) ? 0 : ne.top),
615
615
  width: C.overflow ? L.scrollWidth : L instanceof HTMLElement ? L.offsetWidth : A.width,
@@ -736,41 +736,41 @@ var ye;
736
736
  return typeof S == "object" && typeof S.top == "number" && typeof S.right == "number" && typeof S.bottom == "number" && typeof S.left == "number" && typeof S.width == "number" && typeof S.height == "number";
737
737
  }
738
738
  e.isRect = D;
739
- function B(S) {
739
+ function H(S) {
740
740
  return S.top === 0 && S.right === 0 && S.bottom === 0 && S.left === 0 && S.width === 0 && S.height === 0;
741
741
  }
742
- e.isZero = B;
743
- })(ye || (ye = {}));
742
+ e.isZero = H;
743
+ })(me || (me = {}));
744
744
  function St(e) {
745
745
  return e === window;
746
746
  }
747
747
  function Te(e) {
748
748
  const r = Ee(e);
749
- return he(() => {
749
+ return pe(() => {
750
750
  r.current = e;
751
751
  }, [e]), r;
752
752
  }
753
753
  function dr(e, { onResize: r }) {
754
754
  const s = Te(r);
755
- he(() => {
755
+ pe(() => {
756
756
  const a = e.current;
757
757
  if (!a) return;
758
758
  const l = new ResizeObserver(() => {
759
- s.current(a);
759
+ s.current?.(a);
760
760
  });
761
761
  return l.observe(a), () => {
762
762
  l.disconnect();
763
763
  };
764
- }, [e]);
764
+ }, [e.current]);
765
765
  }
766
766
  function Co(e) {
767
- const [r, s] = Ne(ye.zero);
767
+ const [r, s] = Ne(me.zero);
768
768
  return dr(e, {
769
769
  onResize: (a) => {
770
- const l = ye.from(a);
770
+ const l = me.from(a);
771
771
  l && s(l);
772
772
  }
773
- }), ye.size(r);
773
+ }), me.size(r);
774
774
  }
775
775
  function ln({
776
776
  in: e,
@@ -826,7 +826,7 @@ function Le(e, r = {}) {
826
826
  l[g] = u;
827
827
  }), l;
828
828
  }
829
- function gl(e) {
829
+ function ml(e) {
830
830
  return e;
831
831
  }
832
832
  function le(...e) {
@@ -856,51 +856,51 @@ const hr = /* @__PURE__ */ _e(({
856
856
  ItemComponent: W,
857
857
  ...q
858
858
  }, D) => {
859
- const B = js(T ?? [], p), S = Is({ itemLength: l, itemPadding: u, layout: g, numSegments: m, orientation: N }), C = (H) => B.indexOf(H) >= 0, w = (H) => {
860
- C(H) ? Y(H) : z(H);
861
- }, z = (H) => {
862
- if (C(H)) return;
859
+ const H = js(T ?? [], p), S = Is({ itemLength: l, itemPadding: u, layout: g, numSegments: m, orientation: N }), C = (B) => H.indexOf(B) >= 0, w = (B) => {
860
+ C(B) ? Y(B) : z(B);
861
+ }, z = (B) => {
862
+ if (C(B)) return;
863
863
  let L;
864
864
  switch (P) {
865
865
  case "multiple": {
866
- L = (Z) => jo([...Z.filter((ae) => ae !== H), H]);
866
+ L = (Z) => jo([...Z.filter((ae) => ae !== B), B]);
867
867
  break;
868
868
  }
869
869
  case "single": {
870
- L = (Z) => [H];
870
+ L = (Z) => [B];
871
871
  break;
872
872
  }
873
873
  default:
874
874
  return;
875
875
  }
876
- const A = B, J = L(B);
876
+ const A = H, J = L(H);
877
877
  ne(A, J);
878
- }, Y = (H) => {
879
- if (!C(H)) return;
880
- const L = (Z) => Z.filter((ae) => ae !== H), A = B, J = L(B);
878
+ }, Y = (B) => {
879
+ if (!C(B)) return;
880
+ const L = (Z) => Z.filter((ae) => ae !== B), A = H, J = L(H);
881
881
  ne(A, J);
882
- }, U = (H) => {
883
- k?.(H), P !== "none" && (a ? w(H) : z(H));
884
- }, ne = (H, L) => {
885
- if (qe(H, L)) return;
886
- const A = H?.filter((Z) => L.indexOf(Z) === -1) ?? [], J = L.filter((Z) => H?.indexOf(Z) === -1);
882
+ }, U = (B) => {
883
+ k?.(B), P !== "none" && (a ? w(B) : z(B));
884
+ }, ne = (B, L) => {
885
+ if (qe(B, L)) return;
886
+ const A = B?.filter((Z) => L.indexOf(Z) === -1) ?? [], J = L.filter((Z) => B?.indexOf(Z) === -1);
887
887
  A.forEach((Z) => I?.(Z)), J.forEach((Z) => b?.(Z)), j?.(L);
888
888
  };
889
- he(() => {
890
- const H = B;
889
+ pe(() => {
890
+ const B = H;
891
891
  let L;
892
892
  switch (P) {
893
893
  case "multiple":
894
- L = B;
894
+ L = H;
895
895
  break;
896
896
  case "single":
897
- L = B.slice(-1);
897
+ L = H.slice(-1);
898
898
  break;
899
899
  default:
900
900
  L = [];
901
901
  break;
902
902
  }
903
- ne(H, L);
903
+ ne(B, L);
904
904
  }, [P]);
905
905
  const K = Le(r, {
906
906
  item: Pt
@@ -914,7 +914,7 @@ const hr = /* @__PURE__ */ _e(({
914
914
  className: ie(e),
915
915
  role: g === "grid" ? "grid" : P === "none" ? "list" : "listbox",
916
916
  style: le(s, S.root),
917
- children: /* @__PURE__ */ x.jsx(ln, { in: p, children: (H, L) => {
917
+ children: /* @__PURE__ */ x.jsx(ln, { in: p, children: (B, L) => {
918
918
  const A = g === "grid" ? "gridcell" : P === "none" ? "listitem" : "option", J = C(L), Z = le(S.item, {
919
919
  pointerEvents: a !== !0 && C(L) ? "none" : "auto",
920
920
  ...L >= p.length - 1 ? {} : {
@@ -934,7 +934,7 @@ const hr = /* @__PURE__ */ _e(({
934
934
  className: ie({ selected: J }),
935
935
  index: L,
936
936
  isSelected: C(L),
937
- item: H,
937
+ item: B,
938
938
  orientation: N,
939
939
  role: A,
940
940
  style: Z,
@@ -952,7 +952,7 @@ const hr = /* @__PURE__ */ _e(({
952
952
  style: Z,
953
953
  onActivateAt: k,
954
954
  onClick: () => U(L),
955
- children: `${H}`
955
+ children: `${B}`
956
956
  }
957
957
  );
958
958
  } })
@@ -1030,11 +1030,11 @@ const $s = /* @__PURE__ */ _e(({
1030
1030
  onSelectionChange: W,
1031
1031
  HeaderComponent: q,
1032
1032
  ItemComponent: D,
1033
- ...B
1033
+ ...H
1034
1034
  }, S) => {
1035
- const C = Ps(), w = Rs(g ?? {}, p), z = Ms(a ?? [], p), Y = zs({ orientation: l }), U = p.map(() => Ee(null)), ne = U.map((_) => Co(_)), K = (_, M) => (w[M]?.indexOf(_) ?? -1) >= 0, H = (_) => z.indexOf(_) >= 0, L = (_) => {
1035
+ const C = Ps(), w = Rs(g ?? {}, p), z = Ms(a ?? [], p), Y = zs({ orientation: l }), U = p.map(() => Ee(null)), ne = U.map((_) => Co(_)), K = (_, M) => (w[M]?.indexOf(_) ?? -1) >= 0, B = (_) => z.indexOf(_) >= 0, L = (_) => {
1036
1036
  let M;
1037
- H(_) ? M = (te) => te.filter((oe) => oe !== _) : s ? M = (te) => [_] : M = (te) => [...te.filter((oe) => oe !== _), _], Z(z, M(z));
1037
+ B(_) ? M = (te) => te.filter((oe) => oe !== _) : s ? M = (te) => [_] : M = (te) => [...te.filter((oe) => oe !== _), _], Z(z, M(z));
1038
1038
  }, A = (_, M) => {
1039
1039
  if (K(_, M)) return;
1040
1040
  let te;
@@ -1071,8 +1071,8 @@ const $s = /* @__PURE__ */ _e(({
1071
1071
  const te = p.length;
1072
1072
  let oe = [], ue = [];
1073
1073
  for (let se = 0; se < te; se++) {
1074
- const Se = _?.[se] ?? [], Oe = M[se] ?? [], me = Se.filter((ke) => Oe.indexOf(ke) === -1), Q = Oe.filter((ke) => Se?.indexOf(ke) === -1);
1075
- oe = [...oe, ...me.map((ke) => [ke, se])], ue = [...ue, ...Q.map((ke) => [ke, se])];
1074
+ const Se = _?.[se] ?? [], Oe = M[se] ?? [], ve = Se.filter((ke) => Oe.indexOf(ke) === -1), Q = Oe.filter((ke) => Se?.indexOf(ke) === -1);
1075
+ oe = [...oe, ...ve.map((ke) => [ke, se])], ue = [...ue, ...Q.map((ke) => [ke, se])];
1076
1076
  }
1077
1077
  oe.forEach((se) => P?.(se[0], se[1])), ue.forEach((se) => j?.(se[0], se[1])), W?.(M);
1078
1078
  }, G = Le(e, {
@@ -1082,8 +1082,8 @@ const $s = /* @__PURE__ */ _e(({
1082
1082
  item: Dn,
1083
1083
  section: uo
1084
1084
  });
1085
- return /* @__PURE__ */ x.jsx("div", { ...B, ref: S, style: le(r, Y.root), children: /* @__PURE__ */ x.jsx(ln, { in: p, children: (_, M) => {
1086
- const { collectionPadding: te = 0, items: oe = [], itemLength: ue = 50, itemPadding: se = 0, isSelectionTogglable: Se, layout: Oe = "list", maxVisible: me = -1, numSegments: Q = 1 } = _, ke = Oe === "list" ? oe.length : Math.ceil(oe.length / Q), Ie = me < 0 ? ke : Math.min(ke, me), Be = ue * Ie + se * (Ie - 1), je = !H(M), De = ne[M];
1085
+ return /* @__PURE__ */ x.jsx("div", { ...H, ref: S, style: le(r, Y.root), children: /* @__PURE__ */ x.jsx(ln, { in: p, children: (_, M) => {
1086
+ const { collectionPadding: te = 0, items: oe = [], itemLength: ue = 50, itemPadding: se = 0, isSelectionTogglable: Se, layout: Oe = "list", maxVisible: ve = -1, numSegments: Q = 1 } = _, ke = Oe === "list" ? oe.length : Math.ceil(oe.length / Q), Ie = ve < 0 ? ke : Math.min(ke, ve), He = ue * Ie + se * (Ie - 1), je = !B(M), De = ne[M];
1087
1087
  return /* @__PURE__ */ x.jsxs(
1088
1088
  ge,
1089
1089
  {
@@ -1091,12 +1091,12 @@ const $s = /* @__PURE__ */ _e(({
1091
1091
  style: le(Y.section, l === "vertical" ? {
1092
1092
  marginTop: M === 0 ? "0px" : `${u}px`,
1093
1093
  ...De.height > 0 ? {
1094
- height: je ? `${De.height}px` : `${Be + De.height + te}px`
1094
+ height: je ? `${De.height}px` : `${He + De.height + te}px`
1095
1095
  } : {}
1096
1096
  } : {
1097
1097
  marginLeft: M === 0 ? "0px" : `${u}px`,
1098
1098
  ...De.width > 0 ? {
1099
- width: je ? `${De.width}px` : `${Be + De.width + te}px`
1099
+ width: je ? `${De.width}px` : `${He + De.width + te}px`
1100
1100
  } : {}
1101
1101
  }, {
1102
1102
  visibility: C ? "visible" : "hidden"
@@ -1152,13 +1152,13 @@ const $s = /* @__PURE__ */ _e(({
1152
1152
  pointerEvents: je ? "none" : "auto"
1153
1153
  }, l === "vertical" ? {
1154
1154
  width: "100%",
1155
- height: `${Be}px`,
1155
+ height: `${He}px`,
1156
1156
  marginTop: `${te}px`,
1157
- overflowY: me < 0 || me >= ke ? "hidden" : "scroll"
1157
+ overflowY: ve < 0 || ve >= ke ? "hidden" : "scroll"
1158
1158
  } : {
1159
1159
  marginLeft: `${te}px`,
1160
- overflowX: me < 0 || me >= ke ? "hidden" : "scroll",
1161
- width: `${Be}px`,
1160
+ overflowX: ve < 0 || ve >= ke ? "hidden" : "scroll",
1161
+ width: `${He}px`,
1162
1162
  height: "100%"
1163
1163
  }),
1164
1164
  children: /* @__PURE__ */ x.jsx(
@@ -1282,7 +1282,7 @@ function Vn({
1282
1282
  return /* @__PURE__ */ x.jsx(x.Fragment, { children: [...Array(e)].map((a, l) => /* @__PURE__ */ x.jsx(_o, { children: s?.(l) ?? (typeof r == "function" ? r(l) : r) }, `element-${l}`)) });
1283
1283
  }
1284
1284
  process.env.NODE_ENV !== "production" && (Vn.displayName = "Repeat");
1285
- function ml(e) {
1285
+ function vl(e) {
1286
1286
  return e;
1287
1287
  }
1288
1288
  const Mo = /* @__PURE__ */ _e(({
@@ -1446,9 +1446,9 @@ function Vs() {
1446
1446
  };
1447
1447
  }
1448
1448
  process.env.NODE_ENV !== "production" && (Fs.displayName = "BurgerButton", Ds.displayName = "BurgerButtonBar");
1449
- function Hs(e) {
1449
+ function Bs(e) {
1450
1450
  switch (!0) {
1451
- case Bs(e): {
1451
+ case Hs(e): {
1452
1452
  const { action: r, children: s, isNav: a, className: l, isDisabled: u, label: p, ...g } = e;
1453
1453
  return /* @__PURE__ */ x.jsx(
1454
1454
  ws,
@@ -1512,7 +1512,7 @@ function Hs(e) {
1512
1512
  return console.error("[etudes::Button] Unknown button type"), /* @__PURE__ */ x.jsx(x.Fragment, {});
1513
1513
  }
1514
1514
  }
1515
- function Bs(e) {
1515
+ function Hs(e) {
1516
1516
  return !(typeof e.action != "string" || !e.action.startsWith("/") || !("isNav" in e) || !e.isNav);
1517
1517
  }
1518
1518
  function Ys(e) {
@@ -1524,7 +1524,7 @@ function Xs(e) {
1524
1524
  function Us(e) {
1525
1525
  return typeof e.action == "function";
1526
1526
  }
1527
- process.env.NODE_ENV !== "production" && (Hs.displayName = "Button");
1527
+ process.env.NODE_ENV !== "production" && (Bs.displayName = "Button");
1528
1528
  function qs(e, {
1529
1529
  isEnabled: r = !0,
1530
1530
  updatesCursor: s = !0,
@@ -1532,30 +1532,30 @@ function qs(e, {
1532
1532
  onDragMove: l,
1533
1533
  onDragEnd: u
1534
1534
  }) {
1535
- const p = Ee(void 0), g = Ee(void 0), m = Te(a), N = Te(l), T = Te(u), P = ve((R) => {
1535
+ const p = Ee(void 0), g = Ee(void 0), m = Te(a), N = Te(l), T = Te(u), P = ye((R) => {
1536
1536
  if (!p.current) return;
1537
- const b = pe.make(R.clientX, R.clientY), j = pe.subtract(b, g.current ?? p.current);
1537
+ const b = he.make(R.clientX, R.clientY), j = he.subtract(b, g.current ?? p.current);
1538
1538
  g.current = b, N.current?.(j, b, p.current);
1539
- }, []), k = ve((R) => {
1539
+ }, []), k = ye((R) => {
1540
1540
  const b = e.current;
1541
1541
  if (!b || !p.current) return;
1542
- const j = pe.make(R.clientX, R.clientY), W = pe.subtract(g.current ?? p.current, j);
1542
+ const j = he.make(R.clientX, R.clientY), W = he.subtract(g.current ?? p.current, j);
1543
1543
  T.current?.(j, W, p.current), p.current = void 0, g.current = void 0, b.removeEventListener("mousemove", P), b.removeEventListener("mouseup", k, { capture: !0 }), b.removeEventListener("mouseleave", k), s && (b.style.cursor = "grab");
1544
- }, [s, P]), I = ve((R) => {
1544
+ }, [s, P]), I = ye((R) => {
1545
1545
  const b = e.current;
1546
1546
  if (!b) return;
1547
1547
  R.preventDefault();
1548
- const j = pe.make(R.clientX, R.clientY);
1548
+ const j = he.make(R.clientX, R.clientY);
1549
1549
  p.current = j, g.current = j, b.addEventListener("mousemove", P), b.addEventListener("mouseup", k, { capture: !0 }), b.addEventListener("mouseleave", k), s && (b.style.cursor = "grabbing"), m.current?.(j);
1550
1550
  }, [s, P, k]);
1551
- he(() => {
1551
+ pe(() => {
1552
1552
  const R = e.current;
1553
1553
  if (!R || !r || !s) return;
1554
1554
  const b = R.style.cursor;
1555
1555
  return R.style.cursor = "grab", () => {
1556
1556
  R.style.cursor = b;
1557
1557
  };
1558
- }, [r, s]), he(() => {
1558
+ }, [r, s]), pe(() => {
1559
1559
  const R = e.current;
1560
1560
  if (!(!R || !r))
1561
1561
  return R.addEventListener("mousedown", I), () => {
@@ -1568,14 +1568,14 @@ function Gs(e, {
1568
1568
  shouldInvokeInitially: s = !1,
1569
1569
  onInterval: a
1570
1570
  }) {
1571
- const l = Ee(void 0), u = Te(a), p = ve(() => {
1571
+ const l = Ee(void 0), u = Te(a), p = ye(() => {
1572
1572
  clearInterval(l.current), l.current = void 0;
1573
- }, []), g = ve(() => {
1573
+ }, []), g = ye(() => {
1574
1574
  p(), !(e < 0) && (s && u.current(), l.current = setInterval(() => {
1575
1575
  u.current();
1576
1576
  }, e));
1577
1577
  }, [e, s, p]);
1578
- return he(() => (r && e > 0 && g(), p), [r, e, g, p]), { start: g, stop: p };
1578
+ return pe(() => (r && e > 0 && g(), p), [r, e, g, p]), { start: g, stop: p };
1579
1579
  }
1580
1580
  const Ws = /* @__PURE__ */ _e(({
1581
1581
  autoAdvanceInterval: e = 0,
@@ -1590,25 +1590,25 @@ const Ws = /* @__PURE__ */ _e(({
1590
1590
  ItemComponent: N,
1591
1591
  ...T
1592
1592
  }, P) => {
1593
- const k = Ee(void 0), I = Ee(null), R = Ee(void 0), b = Ee(void 0), j = Ee(void 0), W = 1e3, [q, D] = Ne($n(I, l)), [B, S] = Ne(!1), C = Zs({ scrollSnapEnabled: !B, orientation: l }), w = e > 0, z = ve((A) => {
1593
+ const k = Ee(void 0), I = Ee(null), R = Ee(void 0), b = Ee(void 0), j = Ee(void 0), W = 1e3, [q, D] = Ne($n(I, l)), [H, S] = Ne(!1), C = Zs({ scrollSnapEnabled: !H, orientation: l }), w = e > 0, z = ye((A) => {
1594
1594
  m?.(A);
1595
- }, [m]), Y = ve((A) => {
1596
- R.current = pe.make(A.clientX, A.clientY), S(!0);
1597
- }, []), U = ve((A) => {
1595
+ }, [m]), Y = ye((A) => {
1596
+ R.current = he.make(A.clientX, A.clientY), S(!0);
1597
+ }, []), U = ye((A) => {
1598
1598
  const J = R.current, Z = b.current;
1599
1599
  if (!J || !Z) return;
1600
- const ae = 5, G = pe.subtract(J, Z);
1600
+ const ae = 5, G = he.subtract(J, Z);
1601
1601
  (Math.abs(G.x) > ae || Math.abs(G.y) > ae) && A.stopPropagation(), R.current = void 0, b.current = void 0;
1602
- }, []), ne = ve((A) => {
1603
- b.current = pe.make(A.clientX, A.clientY), B && S(!1);
1604
- }, [B]), K = ve(() => {
1602
+ }, []), ne = ye((A) => {
1603
+ b.current = he.make(A.clientX, A.clientY), H && S(!1);
1604
+ }, [H]), K = ye(() => {
1605
1605
  Ks(I, r, l), clearTimeout(j.current), j.current = setTimeout(() => {
1606
1606
  clearTimeout(j.current), j.current = void 0;
1607
1607
  }, W);
1608
- }, [I.current, r, l, W]), H = ve(() => {
1608
+ }, [I.current, r, l, W]), B = ye(() => {
1609
1609
  const A = (r + a.length + 1) % a.length;
1610
1610
  z(A);
1611
- }, [B, r, a.length, z]), L = ve(({ x: A, y: J }) => {
1611
+ }, [H, r, a.length, z]), L = ye(({ x: A, y: J }) => {
1612
1612
  const Z = I.current;
1613
1613
  switch (l) {
1614
1614
  case "horizontal":
@@ -1625,7 +1625,7 @@ const Ws = /* @__PURE__ */ _e(({
1625
1625
  console.error(`[etudes::Carousel] Unsupported orientation: ${l}`);
1626
1626
  }
1627
1627
  }, [l, I.current]);
1628
- return he(() => {
1628
+ return pe(() => {
1629
1629
  const A = I.current;
1630
1630
  if (!A) return;
1631
1631
  const J = k.current === void 0, Z = k.current === r, ae = (G) => {
@@ -1636,13 +1636,13 @@ const Ws = /* @__PURE__ */ _e(({
1636
1636
  return A.addEventListener("scroll", ae), u && D($n(I, l)), Z || (k.current = r, J || (z(r), K())), () => {
1637
1637
  A.removeEventListener("scroll", ae);
1638
1638
  };
1639
- }, [r, l, u]), he(() => {
1640
- w && (B ? p?.() : g?.());
1641
- }, [B, w]), qs(I, {
1639
+ }, [r, l, u]), pe(() => {
1640
+ w && (H ? p?.() : g?.());
1641
+ }, [H, w]), qs(I, {
1642
1642
  isEnabled: s && a.length > 1,
1643
1643
  onDragMove: L
1644
- }), Gs(B || !w ? -1 : e, {
1645
- onInterval: H
1644
+ }), Gs(H || !w ? -1 : e, {
1645
+ onInterval: B
1646
1646
  }), /* @__PURE__ */ x.jsx(
1647
1647
  "div",
1648
1648
  {
@@ -1683,7 +1683,7 @@ function $n(e, r) {
1683
1683
  function Js(e, r, s) {
1684
1684
  const a = r?.current, l = a?.children[e];
1685
1685
  if (!l) return 0;
1686
- const u = ye.intersecting(l, a);
1686
+ const u = me.intersecting(l, a);
1687
1687
  if (!u) return 0;
1688
1688
  switch (s) {
1689
1689
  case "horizontal":
@@ -1734,7 +1734,7 @@ function Zs({ scrollSnapEnabled: e = !1, orientation: r = "horizontal" }) {
1734
1734
  process.env.NODE_ENV !== "production" && (Ws.displayName = "Carousel");
1735
1735
  function Qs(e) {
1736
1736
  const r = Ee(void 0);
1737
- return he(() => {
1737
+ return pe(() => {
1738
1738
  r.current = e;
1739
1739
  }, [e]), r.current;
1740
1740
  }
@@ -1751,7 +1751,7 @@ const Ro = /* @__PURE__ */ _e(({
1751
1751
  onChange: N,
1752
1752
  ...T
1753
1753
  }, P) => {
1754
- const k = ve((I) => {
1754
+ const k = ye((I) => {
1755
1755
  const R = (p?.(I) ?? I) || r;
1756
1756
  N?.(R);
1757
1757
  }, [N, p]);
@@ -1801,22 +1801,22 @@ const ea = /* @__PURE__ */ _e(({
1801
1801
  }, b = (C) => {
1802
1802
  let w = C;
1803
1803
  return isNaN(l) || (w = Math.max(l, w)), isNaN(a) || (w = Math.min(a, w)), w;
1804
- }, [j, W] = Ne(I(u)), q = Qs(u), D = !isNaN(a) && u + 1 > a, B = !isNaN(l) && u - 1 < l;
1805
- he(() => {
1804
+ }, [j, W] = Ne(I(u)), q = Qs(u), D = !isNaN(a) && u + 1 > a, H = !isNaN(l) && u - 1 < l;
1805
+ pe(() => {
1806
1806
  if (q === void 0 || q === u) return;
1807
1807
  const C = b(u);
1808
1808
  W(I(C));
1809
1809
  }, [u, l, a]);
1810
1810
  const S = Le(e, {
1811
- textField: Hn,
1812
- addButton: Bn,
1811
+ textField: Bn,
1812
+ addButton: Hn,
1813
1813
  subscribeButton: Yn
1814
1814
  });
1815
1815
  return /* @__PURE__ */ x.jsxs("div", { ...g, ref: m, style: le(r, Ut.root), children: [
1816
1816
  /* @__PURE__ */ x.jsx(
1817
1817
  ge,
1818
1818
  {
1819
- className: ie({ disabled: B }),
1819
+ className: ie({ disabled: H }),
1820
1820
  element: S.subscribeButton ?? /* @__PURE__ */ x.jsx(Yn, {}),
1821
1821
  style: le(Ut.subtract),
1822
1822
  onClick: () => N()
@@ -1825,7 +1825,7 @@ const ea = /* @__PURE__ */ _e(({
1825
1825
  /* @__PURE__ */ x.jsx(
1826
1826
  ge,
1827
1827
  {
1828
- element: S.textField ?? /* @__PURE__ */ x.jsx(Hn, {}),
1828
+ element: S.textField ?? /* @__PURE__ */ x.jsx(Bn, {}),
1829
1829
  isDisabled: !s,
1830
1830
  style: le(Ut.textField),
1831
1831
  value: j,
@@ -1837,13 +1837,13 @@ const ea = /* @__PURE__ */ _e(({
1837
1837
  ge,
1838
1838
  {
1839
1839
  className: ie({ disabled: D }),
1840
- element: S.addButton ?? /* @__PURE__ */ x.jsx(Bn, {}),
1840
+ element: S.addButton ?? /* @__PURE__ */ x.jsx(Hn, {}),
1841
1841
  style: le(Ut.add),
1842
1842
  onClick: () => T()
1843
1843
  }
1844
1844
  )
1845
1845
  ] });
1846
- }), Hn = ({ ...e }) => /* @__PURE__ */ x.jsx(Ro, { ...e }), Bn = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("button", { ...r, children: e }), Yn = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("button", { ...r, children: e }), Ut = {
1846
+ }), Bn = ({ ...e }) => /* @__PURE__ */ x.jsx(Ro, { ...e }), Hn = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("button", { ...r, children: e }), Yn = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("button", { ...r, children: e }), Ut = {
1847
1847
  root: {
1848
1848
  alignItems: "stretch",
1849
1849
  display: "flex",
@@ -1860,17 +1860,32 @@ const ea = /* @__PURE__ */ _e(({
1860
1860
  width: "100%"
1861
1861
  }
1862
1862
  };
1863
- process.env.NODE_ENV !== "production" && (ea.displayName = "Counter", Bn.displayName = "CounterAddButton", Yn.displayName = "CounterSubtractButton", Hn.displayName = "CounterTextField");
1863
+ process.env.NODE_ENV !== "production" && (ea.displayName = "Counter", Hn.displayName = "CounterAddButton", Yn.displayName = "CounterSubtractButton", Bn.displayName = "CounterTextField");
1864
+ function ta() {
1865
+ const [e, r] = Ne(ze.zero);
1866
+ return pe(() => {
1867
+ const s = () => {
1868
+ const a = me.size(me.fromViewport());
1869
+ r(a);
1870
+ };
1871
+ return window.addEventListener("resize", s), s(), () => {
1872
+ window.removeEventListener("resize", s);
1873
+ };
1874
+ }, []), e;
1875
+ }
1864
1876
  function tt(e) {
1865
- const [r, s] = Ne(ye.zero);
1877
+ const [r, s] = Ne(me.zero), a = ta();
1866
1878
  return dr(e, {
1867
- onResize: (a) => {
1868
- const l = ye.from(a);
1869
- l && s(l);
1879
+ onResize: (l) => {
1880
+ const u = me.from(l);
1881
+ u && s(u);
1870
1882
  }
1871
- }), r;
1883
+ }), pe(() => {
1884
+ const l = e.current, u = me.from(l);
1885
+ u && s(u);
1886
+ }, [ze.toString(a)]), r;
1872
1887
  }
1873
- function ta({
1888
+ function na({
1874
1889
  src: e,
1875
1890
  srcSet: r,
1876
1891
  sizes: s
@@ -1880,7 +1895,7 @@ function ta({
1880
1895
  onLoadError: u
1881
1896
  } = {}) {
1882
1897
  const p = Ee(void 0), g = Te(a), m = Te(l), N = Te(u);
1883
- he(() => {
1898
+ pe(() => {
1884
1899
  const T = (k) => {
1885
1900
  const I = k.currentTarget;
1886
1901
  m.current?.(I);
@@ -1903,20 +1918,20 @@ function zo({
1903
1918
  onLoadComplete: u,
1904
1919
  onLoadError: p
1905
1920
  } = {}) {
1906
- const [g, m] = Ne(), N = Te(l), T = Te(u), P = Te(p), k = ve((b) => {
1921
+ const [g, m] = Ne(), N = Te(l), T = Te(u), P = Te(p), k = ye((b) => {
1907
1922
  a || m(void 0), N.current?.(b);
1908
- }, [a]), I = ve((b) => {
1909
- m(na(b)), T.current?.(b);
1910
- }, []), R = ve((b) => {
1923
+ }, [a]), I = ye((b) => {
1924
+ m(ra(b)), T.current?.(b);
1925
+ }, []), R = ye((b) => {
1911
1926
  a || m(void 0), P.current?.(b);
1912
1927
  }, [a]);
1913
- return ta({ src: e, srcSet: r, sizes: s }, {
1928
+ return na({ src: e, srcSet: r, sizes: s }, {
1914
1929
  onLoadStart: k,
1915
1930
  onLoadComplete: I,
1916
1931
  onLoadError: R
1917
1932
  }), g;
1918
1933
  }
1919
- function na(e) {
1934
+ function ra(e) {
1920
1935
  if (e && typeof e.width == "number" && typeof e.height == "number")
1921
1936
  return ze.make(e.width, e.height);
1922
1937
  }
@@ -1974,7 +1989,7 @@ const Lo = /* @__PURE__ */ _e(({
1974
1989
  onLoadComplete: p,
1975
1990
  onLoadError: g
1976
1991
  });
1977
- return he(() => {
1992
+ return pe(() => {
1978
1993
  m?.(I);
1979
1994
  }, [I?.width, I?.height]), /* @__PURE__ */ x.jsx(
1980
1995
  "img",
@@ -1990,7 +2005,7 @@ const Lo = /* @__PURE__ */ _e(({
1990
2005
  );
1991
2006
  });
1992
2007
  process.env.NODE_ENV !== "production" && (Lo.displayName = "Image");
1993
- const ra = /* @__PURE__ */ _e(({
2008
+ const oa = /* @__PURE__ */ _e(({
1994
2009
  children: e,
1995
2010
  style: r,
1996
2011
  alt: s,
@@ -2006,9 +2021,9 @@ const ra = /* @__PURE__ */ _e(({
2006
2021
  }, k) => {
2007
2022
  const I = (w) => {
2008
2023
  W(w ? w.width / w.height : NaN);
2009
- }, R = Ee(null), b = k ?? R, [j, W] = Ne(NaN), q = isNaN(a) ? j : a, D = tt(b), B = D.width / D.height, S = ze.make(
2010
- B > 1 ? Math.max(D.width, D.height * q) : Math.max(D.width, Math.max(D.height, D.width / q) * q),
2011
- B > 1 ? Math.max(D.height, Math.max(D.width, D.height * q) / q) : Math.max(D.height, D.width / q)
2024
+ }, R = Ee(null), b = k ?? R, [j, W] = Ne(NaN), q = isNaN(a) ? j : a, D = tt(b), H = D.width / D.height, S = ze.make(
2025
+ H > 1 ? Math.max(D.width, D.height * q) : Math.max(D.width, Math.max(D.height, D.width / q) * q),
2026
+ H > 1 ? Math.max(D.height, Math.max(D.width, D.height * q) / q) : Math.max(D.height, D.width / q)
2012
2027
  ), C = Le(e, {
2013
2028
  content: Fo,
2014
2029
  viewport: Do
@@ -2065,14 +2080,14 @@ const ra = /* @__PURE__ */ _e(({
2065
2080
  transform: "translate(-50%, -50%)"
2066
2081
  }
2067
2082
  };
2068
- process.env.NODE_ENV !== "production" && (ra.displayName = "CoverImage", Fo.displayName = "CoverImageContent", Do.displayName = "CoverImageViewport");
2069
- function oa(e, {
2083
+ process.env.NODE_ENV !== "production" && (oa.displayName = "CoverImage", Fo.displayName = "CoverImageContent", Do.displayName = "CoverImageViewport");
2084
+ function ia(e, {
2070
2085
  onLoadStart: r,
2071
2086
  onLoadComplete: s,
2072
2087
  onLoadError: a
2073
2088
  } = {}) {
2074
2089
  const l = Te(r), u = Te(s), p = Te(a);
2075
- he(() => {
2090
+ pe(() => {
2076
2091
  if (!e) return;
2077
2092
  const g = document.createElement("video"), m = () => u.current?.(g), N = () => p.current?.(g);
2078
2093
  return g.addEventListener("loadedmetadata", m), g.addEventListener("error", N), g.src = e, l.current?.(g), () => {
@@ -2080,26 +2095,26 @@ function oa(e, {
2080
2095
  };
2081
2096
  }, [e]);
2082
2097
  }
2083
- function ia(e, {
2098
+ function sa(e, {
2084
2099
  preservesSizeBetweenLoads: r = !0,
2085
2100
  onLoadStart: s,
2086
2101
  onLoadComplete: a,
2087
2102
  onLoadError: l
2088
2103
  } = {}) {
2089
- const [u, p] = Ne(), g = Te(s), m = Te(a), N = Te(l), T = ve((I) => {
2104
+ const [u, p] = Ne(), g = Te(s), m = Te(a), N = Te(l), T = ye((I) => {
2090
2105
  r || p(void 0), g.current?.(I);
2091
- }, [r]), P = ve((I) => {
2092
- p(sa(I)), m.current?.(I);
2093
- }, []), k = ve((I) => {
2106
+ }, [r]), P = ye((I) => {
2107
+ p(aa(I)), m.current?.(I);
2108
+ }, []), k = ye((I) => {
2094
2109
  r || p(void 0), N.current?.(I);
2095
2110
  }, [r]);
2096
- return oa(e, {
2111
+ return ia(e, {
2097
2112
  onLoadStart: T,
2098
2113
  onLoadComplete: P,
2099
2114
  onLoadError: k
2100
2115
  }), u;
2101
2116
  }
2102
- function sa(e) {
2117
+ function aa(e) {
2103
2118
  if (e && typeof e.videoWidth == "number" && typeof e.videoHeight == "number")
2104
2119
  return ze.make(e.videoWidth, e.videoHeight);
2105
2120
  }
@@ -2123,52 +2138,52 @@ const Vo = /* @__PURE__ */ _e(({
2123
2138
  onTimeUpdate: j,
2124
2139
  ...W
2125
2140
  }, q) => {
2126
- const D = Ee(null), B = q ?? D, S = ia(p, {
2141
+ const D = Ee(null), H = q ?? D, S = sa(p, {
2127
2142
  onLoadStart: T,
2128
2143
  onLoadComplete: P,
2129
2144
  onLoadError: k
2130
2145
  });
2131
- he(() => {
2132
- if (!B.current) return;
2146
+ pe(() => {
2147
+ if (!H.current) return;
2133
2148
  if (p.toLowerCase().endsWith(".m3u8")) {
2134
- const L = !!B.current.canPlayType("application/x-mpegURL"), A = typeof window < "u" && typeof window.Hls < "u" ? window.Hls : void 0;
2149
+ const L = !!H.current.canPlayType("application/x-mpegURL"), A = typeof window < "u" && typeof window.Hls < "u" ? window.Hls : void 0;
2135
2150
  if (!L && A?.isSupported()) {
2136
2151
  const J = new A();
2137
- J.loadSource(p), J.attachMedia(B.current);
2152
+ J.loadSource(p), J.attachMedia(H.current);
2138
2153
  }
2139
2154
  }
2140
- const H = (L) => {
2155
+ const B = (L) => {
2141
2156
  const A = document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen;
2142
2157
  A !== void 0 && N?.(A);
2143
2158
  };
2144
- return B.current.muted = a, B.current.load(), B.current.addEventListener("webkitfullscreenchange", H), B.current.addEventListener("mozfullscreenchange", H), B.current.addEventListener("fullscreenchange", H), () => {
2145
- K(), B.current?.removeEventListener("webkitfullscreenchange", H), B.current?.removeEventListener("mozfullscreenchange", H), B.current?.removeEventListener("fullscreenchange", H);
2159
+ return H.current.muted = a, H.current.load(), H.current.addEventListener("webkitfullscreenchange", B), H.current.addEventListener("mozfullscreenchange", B), H.current.addEventListener("fullscreenchange", B), () => {
2160
+ K(), H.current?.removeEventListener("webkitfullscreenchange", B), H.current?.removeEventListener("mozfullscreenchange", B), H.current?.removeEventListener("fullscreenchange", B);
2146
2161
  };
2147
- }, [p]), he(() => {
2162
+ }, [p]), pe(() => {
2148
2163
  b?.(S);
2149
2164
  }, [S]);
2150
- const C = (H) => {
2151
- const L = H.currentTarget;
2165
+ const C = (B) => {
2166
+ const L = B.currentTarget;
2152
2167
  r && L.paused && ne(), g?.();
2153
- }, w = (H) => {
2168
+ }, w = (B) => {
2154
2169
  R?.();
2155
- }, z = (H) => {
2170
+ }, z = (B) => {
2156
2171
  I?.();
2157
- }, Y = (H) => {
2172
+ }, Y = (B) => {
2158
2173
  m?.();
2159
- }, U = (H) => {
2160
- const L = H.currentTarget;
2174
+ }, U = (B) => {
2175
+ const L = B.currentTarget;
2161
2176
  j?.(L.currentTime, L.duration);
2162
2177
  }, ne = () => {
2163
- B.current && B.current.play();
2178
+ H.current && H.current.play();
2164
2179
  }, K = () => {
2165
- B.current && B.current.pause();
2180
+ H.current && H.current.pause();
2166
2181
  };
2167
2182
  return /* @__PURE__ */ x.jsx(
2168
2183
  "video",
2169
2184
  {
2170
2185
  ...W,
2171
- ref: B,
2186
+ ref: H,
2172
2187
  autoPlay: r,
2173
2188
  controls: s,
2174
2189
  loop: e,
@@ -2185,7 +2200,7 @@ const Vo = /* @__PURE__ */ _e(({
2185
2200
  );
2186
2201
  });
2187
2202
  process.env.NODE_ENV !== "production" && (Vo.displayName = "Video");
2188
- const aa = /* @__PURE__ */ _e(({
2203
+ const ca = /* @__PURE__ */ _e(({
2189
2204
  className: e,
2190
2205
  children: r,
2191
2206
  style: s,
@@ -2206,21 +2221,21 @@ const aa = /* @__PURE__ */ _e(({
2206
2221
  onPause: W,
2207
2222
  onPlay: q,
2208
2223
  onSizeChange: D,
2209
- ...B
2224
+ ...H
2210
2225
  }, S) => {
2211
2226
  const C = (A) => {
2212
2227
  U(A ? A.width / A.height : NaN), D?.(A);
2213
- }, w = S ?? Ee(null), z = tt(w), [Y, U] = Ne(NaN), ne = isNaN(a) ? Y : a, K = z.width / z.height, H = ze.make(
2228
+ }, w = S ?? Ee(null), z = tt(w), [Y, U] = Ne(NaN), ne = isNaN(a) ? Y : a, K = z.width / z.height, B = ze.make(
2214
2229
  K > 1 ? Math.max(z.width, z.height * ne) : Math.max(z.width, Math.max(z.height, z.width / ne) * ne),
2215
2230
  K > 1 ? Math.max(z.height, Math.max(z.width, z.height * ne) / ne) : Math.max(z.height, z.width / ne)
2216
2231
  ), L = Le(r, {
2217
- content: Ho,
2218
- viewport: Bo
2232
+ content: Bo,
2233
+ viewport: Ho
2219
2234
  });
2220
2235
  return /* @__PURE__ */ x.jsxs(
2221
2236
  "div",
2222
2237
  {
2223
- ...B,
2238
+ ...H,
2224
2239
  ref: w,
2225
2240
  className: e,
2226
2241
  style: le(s, Mn.root),
@@ -2236,8 +2251,8 @@ const aa = /* @__PURE__ */ _e(({
2236
2251
  posterSrc: N,
2237
2252
  src: T,
2238
2253
  style: le(Mn.viewport, {
2239
- width: `${H.width}px`,
2240
- height: `${H.height}px`,
2254
+ width: `${B.width}px`,
2255
+ height: `${B.height}px`,
2241
2256
  maxWidth: "unset"
2242
2257
  }),
2243
2258
  onCanPlay: P,
@@ -2256,9 +2271,9 @@ const aa = /* @__PURE__ */ _e(({
2256
2271
  {
2257
2272
  element: L.viewport,
2258
2273
  style: le(Mn.viewport, {
2259
- height: `${H.height}px`,
2274
+ height: `${B.height}px`,
2260
2275
  pointerEvents: "none",
2261
- width: `${H.width}px`
2276
+ width: `${B.width}px`
2262
2277
  })
2263
2278
  }
2264
2279
  ),
@@ -2266,7 +2281,7 @@ const aa = /* @__PURE__ */ _e(({
2266
2281
  ]
2267
2282
  }
2268
2283
  );
2269
- }), Ho = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("div", { ...r, children: e }), Bo = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("div", { ...r, children: e }), Mn = {
2284
+ }), Bo = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("div", { ...r, children: e }), Ho = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("div", { ...r, children: e }), Mn = {
2270
2285
  root: {
2271
2286
  overflow: "hidden"
2272
2287
  },
@@ -2278,8 +2293,8 @@ const aa = /* @__PURE__ */ _e(({
2278
2293
  transform: "translate(-50%, -50%)"
2279
2294
  }
2280
2295
  };
2281
- process.env.NODE_ENV !== "production" && (aa.displayName = "CoverVideo", Ho.displayName = "CoverVideoContent", Bo.displayName = "CoverVideoViewport");
2282
- const ca = /* @__PURE__ */ _e(({
2296
+ process.env.NODE_ENV !== "production" && (ca.displayName = "CoverVideo", Bo.displayName = "CoverVideoContent", Ho.displayName = "CoverVideoViewport");
2297
+ const la = /* @__PURE__ */ _e(({
2283
2298
  children: e,
2284
2299
  style: r,
2285
2300
  angle: s = 0,
@@ -2293,7 +2308,7 @@ const ca = /* @__PURE__ */ _e(({
2293
2308
  const T = u * 2, P = Math.max(0, Math.min(360, a)), k = Le(e, {
2294
2309
  track: Xn,
2295
2310
  knob: Un
2296
- }), I = ua({ angle: s, diameter: T });
2311
+ }), I = fa({ angle: s, diameter: T });
2297
2312
  return /* @__PURE__ */ x.jsxs("div", { ...m, ref: N, style: le(r, I.root), children: [
2298
2313
  /* @__PURE__ */ x.jsx("div", { style: I.trackContainer, children: /* @__PURE__ */ x.jsx("svg", { height: T, style: I.svgContainer, viewBox: `0 0 ${T} ${T}`, width: T, children: /* @__PURE__ */ x.jsx(
2299
2314
  ge,
@@ -2310,7 +2325,7 @@ const ca = /* @__PURE__ */ _e(({
2310
2325
  /* @__PURE__ */ x.jsx("div", { style: le(I.knobContainer), children: /* @__PURE__ */ x.jsx("svg", { style: I.svgContainer, viewBox: `0 0 ${T} ${T}`, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ x.jsx(
2311
2326
  ge,
2312
2327
  {
2313
- d: la(u, u, u - l / 2 - (g - l) / 2, -P / 2, P / 2),
2328
+ d: ua(u, u, u - l / 2 - (g - l) / 2, -P / 2, P / 2),
2314
2329
  element: k.knob ?? /* @__PURE__ */ x.jsx(Un, {}),
2315
2330
  fill: "none",
2316
2331
  strokeWidth: l
@@ -2325,7 +2340,7 @@ function fo(e, r, s, a) {
2325
2340
  y: r + s * Math.sin(l)
2326
2341
  };
2327
2342
  }
2328
- function la(e, r, s, a, l) {
2343
+ function ua(e, r, s, a, l) {
2329
2344
  const u = fo(e, r, s, l), p = fo(e, r, s, a), g = l - a <= 180 ? "0" : "1";
2330
2345
  return [
2331
2346
  "M",
@@ -2341,7 +2356,7 @@ function la(e, r, s, a, l) {
2341
2356
  p.y
2342
2357
  ].join(" ");
2343
2358
  }
2344
- function ua({ diameter: e = 0, angle: r = 0 }) {
2359
+ function fa({ diameter: e = 0, angle: r = 0 }) {
2345
2360
  return {
2346
2361
  root: {
2347
2362
  height: `${e}px`,
@@ -2375,8 +2390,8 @@ function ua({ diameter: e = 0, angle: r = 0 }) {
2375
2390
  }
2376
2391
  };
2377
2392
  }
2378
- process.env.NODE_ENV !== "production" && (ca.displayName = "Dial", Xn.displayName = "DialTrack", Un.displayName = "DialKnob");
2379
- const fa = /* @__PURE__ */ _e(({
2393
+ process.env.NODE_ENV !== "production" && (la.displayName = "Dial", Xn.displayName = "DialTrack", Un.displayName = "DialKnob");
2394
+ const da = /* @__PURE__ */ _e(({
2380
2395
  children: e,
2381
2396
  className: r,
2382
2397
  style: s,
@@ -2397,7 +2412,7 @@ const fa = /* @__PURE__ */ _e(({
2397
2412
  selectionMode: W = "single",
2398
2413
  onActivateAt: q,
2399
2414
  onCollapse: D,
2400
- onDeselectAt: B,
2415
+ onDeselectAt: H,
2401
2416
  onExpand: S,
2402
2417
  onSelectAt: C,
2403
2418
  onSelectionChange: w,
@@ -2406,7 +2421,7 @@ const fa = /* @__PURE__ */ _e(({
2406
2421
  ToggleComponent: U,
2407
2422
  ...ne
2408
2423
  }, K) => {
2409
- const H = Ee(null), L = tt(H), A = k.length, J = ga(k, I, R, m), Z = T ?? (b === "vertical" ? L.height : L.width), ae = Z * J + P * (J - 1), G = pa(j, k), [_, M] = Ne(u ?? !0), te = ma({ isCollapsed: _, collectionPadding: l, isInverted: p, maxVisibleItems: I, menuLength: ae, numItems: A, orientation: b }), oe = Le(e, {
2424
+ const B = Ee(null), L = tt(B), A = k.length, J = ma(k, I, R, m), Z = T ?? (b === "vertical" ? L.height : L.width), ae = Z * J + P * (J - 1), G = ha(j, k), [_, M] = Ne(u ?? !0), te = va({ isCollapsed: _, collectionPadding: l, isInverted: p, maxVisibleItems: I, menuLength: ae, numItems: A, orientation: b }), oe = Le(e, {
2410
2425
  collapseIcon: Yo,
2411
2426
  collection: qn,
2412
2427
  expandIcon: Xo,
@@ -2418,17 +2433,17 @@ const fa = /* @__PURE__ */ _e(({
2418
2433
  _ || (M(!0), D?.());
2419
2434
  }, Se = () => {
2420
2435
  _ ? ue() : se();
2421
- }, Oe = (me) => {
2422
- C?.(me), W === "single" && a && se();
2436
+ }, Oe = (ve) => {
2437
+ C?.(ve), W === "single" && a && se();
2423
2438
  };
2424
- return he(() => {
2439
+ return pe(() => {
2425
2440
  u !== void 0 && M(u);
2426
- }, [u]), he(() => {
2427
- const me = (Q) => {
2441
+ }, [u]), pe(() => {
2442
+ const ve = (Q) => {
2428
2443
  if (_ || !(Q.target instanceof Node)) return;
2429
2444
  let ke = !0, Ie = Q.target;
2430
2445
  for (; Ie; ) {
2431
- if (Ie === H.current) {
2446
+ if (Ie === B.current) {
2432
2447
  ke = !1;
2433
2448
  break;
2434
2449
  }
@@ -2437,8 +2452,8 @@ const fa = /* @__PURE__ */ _e(({
2437
2452
  }
2438
2453
  ke && se();
2439
2454
  };
2440
- return window.addEventListener("click", me), () => {
2441
- window.removeEventListener("click", me);
2455
+ return window.addEventListener("click", ve), () => {
2456
+ window.removeEventListener("click", ve);
2442
2457
  };
2443
2458
  }, [_]), /* @__PURE__ */ x.jsx(
2444
2459
  "div",
@@ -2447,7 +2462,7 @@ const fa = /* @__PURE__ */ _e(({
2447
2462
  ref: K,
2448
2463
  className: ie(r, { collapsed: _, expanded: !_ }),
2449
2464
  style: le(s, te.root),
2450
- children: /* @__PURE__ */ x.jsxs("div", { ref: H, style: le(te.body), children: [
2465
+ children: /* @__PURE__ */ x.jsxs("div", { ref: B, style: le(te.body), children: [
2451
2466
  U ? /* @__PURE__ */ x.jsx(
2452
2467
  U,
2453
2468
  {
@@ -2456,7 +2471,7 @@ const fa = /* @__PURE__ */ _e(({
2456
2471
  className: ie({ collapsed: _, expanded: !_ }),
2457
2472
  style: le(te.toggle),
2458
2473
  onClick: Se,
2459
- onCustomEvent: (me, Q) => z?.(me, Q)
2474
+ onCustomEvent: (ve, Q) => z?.(ve, Q)
2460
2475
  }
2461
2476
  ) : /* @__PURE__ */ x.jsxs(
2462
2477
  ge,
@@ -2468,7 +2483,7 @@ const fa = /* @__PURE__ */ _e(({
2468
2483
  style: le(te.toggle),
2469
2484
  onClick: Se,
2470
2485
  children: [
2471
- /* @__PURE__ */ x.jsx("span", { dangerouslySetInnerHTML: { __html: g?.(G) ?? (G.length > 0 ? G.map((me) => k[me]).join(", ") : "") } }),
2486
+ /* @__PURE__ */ x.jsx("span", { dangerouslySetInnerHTML: { __html: g?.(G) ?? (G.length > 0 ? G.map((ve) => k[ve]).join(", ") : "") } }),
2472
2487
  oe.expandIcon && /* @__PURE__ */ x.jsx(
2473
2488
  ge,
2474
2489
  {
@@ -2496,7 +2511,7 @@ const fa = /* @__PURE__ */ _e(({
2496
2511
  selectionMode: W,
2497
2512
  style: le(te.collection),
2498
2513
  onActivateAt: q,
2499
- onDeselectAt: B,
2514
+ onDeselectAt: H,
2500
2515
  onSelectAt: Oe,
2501
2516
  onSelectionChange: w,
2502
2517
  children: !Y && (oe.item ?? /* @__PURE__ */ x.jsx(Gn, {}))
@@ -2506,16 +2521,16 @@ const fa = /* @__PURE__ */ _e(({
2506
2521
  }
2507
2522
  );
2508
2523
  }), qn = hr, Gn = Pt, Wn = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("button", { ...r, children: e }), Yo = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("figure", { ...r, "aria-hidden": !0, children: e }), Xo = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("figure", { ...r, "aria-hidden": !0, children: e });
2509
- function da(e, r) {
2524
+ function pa(e, r) {
2510
2525
  return !!(isNaN(e) || e >= r.length || e < 0);
2511
2526
  }
2512
- function pa(e, r) {
2513
- return ha(e).filter((s) => !da(s, r));
2527
+ function ha(e, r) {
2528
+ return ga(e).filter((s) => !pa(s, r));
2514
2529
  }
2515
- function ha(e) {
2530
+ function ga(e) {
2516
2531
  return e.sort((r, s) => r - s);
2517
2532
  }
2518
- function ga(e, r, s, a) {
2533
+ function ma(e, r, s, a) {
2519
2534
  const l = e.length;
2520
2535
  switch (a) {
2521
2536
  case "grid": {
@@ -2526,7 +2541,7 @@ function ga(e, r, s, a) {
2526
2541
  return r < 0 ? l : Math.min(l, r);
2527
2542
  }
2528
2543
  }
2529
- function ma({ isCollapsed: e = !0, isInverted: r = !1, collectionPadding: s = 0, maxVisibleItems: a = 0, menuLength: l = NaN, numItems: u = 0, orientation: p = "vertical" }) {
2544
+ function va({ isCollapsed: e = !0, isInverted: r = !1, collectionPadding: s = 0, maxVisibleItems: a = 0, menuLength: l = NaN, numItems: u = 0, orientation: p = "vertical" }) {
2530
2545
  return {
2531
2546
  root: {
2532
2547
  alignItems: "center",
@@ -2589,8 +2604,8 @@ function ma({ isCollapsed: e = !0, isInverted: r = !1, collectionPadding: s = 0,
2589
2604
  }
2590
2605
  };
2591
2606
  }
2592
- process.env.NODE_ENV !== "production" && (fa.displayName = "Dropdown", qn.displayName = "DropdownCollection", Yo.displayName = "DropdownCollapseIcon", Xo.displayName = "DropdownExpandIcon", Gn.displayName = "DropdownItem", Wn.displayName = "DropdownToggle");
2593
- const Uo = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", va = Uo + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040", ya = "[" + Uo + "][" + va + "]*", xa = new RegExp("^" + ya + "$");
2607
+ process.env.NODE_ENV !== "production" && (da.displayName = "Dropdown", qn.displayName = "DropdownCollection", Yo.displayName = "DropdownCollapseIcon", Xo.displayName = "DropdownExpandIcon", Gn.displayName = "DropdownItem", Wn.displayName = "DropdownToggle");
2608
+ const Uo = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", ya = Uo + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040", xa = "[" + Uo + "][" + ya + "]*", ba = new RegExp("^" + xa + "$");
2594
2609
  function qo(e, r) {
2595
2610
  const s = [];
2596
2611
  let a = r.exec(e);
@@ -2605,19 +2620,19 @@ function qo(e, r) {
2605
2620
  return s;
2606
2621
  }
2607
2622
  const gr = function(e) {
2608
- const r = xa.exec(e);
2623
+ const r = ba.exec(e);
2609
2624
  return !(r === null || typeof r > "u");
2610
2625
  };
2611
- function ba(e) {
2626
+ function wa(e) {
2612
2627
  return typeof e < "u";
2613
2628
  }
2614
- const wa = {
2629
+ const Ea = {
2615
2630
  allowBooleanAttributes: !1,
2616
2631
  //A tag can have attributes without any value
2617
2632
  unpairedTags: []
2618
2633
  };
2619
- function Ea(e, r) {
2620
- r = Object.assign({}, wa, r);
2634
+ function Na(e, r) {
2635
+ r = Object.assign({}, Ea, r);
2621
2636
  const s = [];
2622
2637
  let a = !1, l = !1;
2623
2638
  e[0] === "\uFEFF" && (e = e.substr(1));
@@ -2636,11 +2651,11 @@ function Ea(e, r) {
2636
2651
  for (; u < e.length && e[u] !== ">" && e[u] !== " " && e[u] !== " " && e[u] !== `
2637
2652
  ` && e[u] !== "\r"; u++)
2638
2653
  m += e[u];
2639
- if (m = m.trim(), m[m.length - 1] === "/" && (m = m.substring(0, m.length - 1), u--), !Ca(m)) {
2654
+ if (m = m.trim(), m[m.length - 1] === "/" && (m = m.substring(0, m.length - 1), u--), !ja(m)) {
2640
2655
  let P;
2641
2656
  return m.trim().length === 0 ? P = "Invalid space after '<'." : P = "Tag '" + m + "' is an invalid name.", Ce("InvalidTag", P, Re(e, u));
2642
2657
  }
2643
- const N = Ta(e, u);
2658
+ const N = _a(e, u);
2644
2659
  if (N === !1)
2645
2660
  return Ce("InvalidAttr", "Attributes for '" + m + "' have open quote.", Re(e, u));
2646
2661
  let T = N.value;
@@ -2689,7 +2704,7 @@ function Ea(e, r) {
2689
2704
  } else
2690
2705
  break;
2691
2706
  else if (e[u] === "&") {
2692
- const P = Pa(e, u);
2707
+ const P = ka(e, u);
2693
2708
  if (P == -1)
2694
2709
  return Ce("InvalidChar", "char '&' is not expected.", Re(e, u));
2695
2710
  u = P;
@@ -2752,11 +2767,11 @@ function go(e, r) {
2752
2767
  }
2753
2768
  return r;
2754
2769
  }
2755
- const Na = '"', Sa = "'";
2756
- function Ta(e, r) {
2770
+ const Sa = '"', Ta = "'";
2771
+ function _a(e, r) {
2757
2772
  let s = "", a = "", l = !1;
2758
2773
  for (; r < e.length; r++) {
2759
- if (e[r] === Na || e[r] === Sa)
2774
+ if (e[r] === Sa || e[r] === Ta)
2760
2775
  a === "" ? a = e[r] : a !== e[r] || (a = "");
2761
2776
  else if (e[r] === ">" && a === "") {
2762
2777
  l = !0;
@@ -2770,9 +2785,9 @@ function Ta(e, r) {
2770
2785
  tagClosed: l
2771
2786
  };
2772
2787
  }
2773
- const _a = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
2788
+ const Oa = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
2774
2789
  function mo(e, r) {
2775
- const s = qo(e, _a), a = {};
2790
+ const s = qo(e, Oa), a = {};
2776
2791
  for (let l = 0; l < s.length; l++) {
2777
2792
  if (s[l][1].length === 0)
2778
2793
  return Ce("InvalidAttr", "Attribute '" + s[l][2] + "' has no space in starting.", Tt(s[l]));
@@ -2781,7 +2796,7 @@ function mo(e, r) {
2781
2796
  if (s[l][3] === void 0 && !r.allowBooleanAttributes)
2782
2797
  return Ce("InvalidAttr", "boolean attribute '" + s[l][2] + "' is not allowed.", Tt(s[l]));
2783
2798
  const u = s[l][2];
2784
- if (!ka(u))
2799
+ if (!Ca(u))
2785
2800
  return Ce("InvalidAttr", "Attribute '" + u + "' is an invalid name.", Tt(s[l]));
2786
2801
  if (!a.hasOwnProperty(u))
2787
2802
  a[u] = 1;
@@ -2790,7 +2805,7 @@ function mo(e, r) {
2790
2805
  }
2791
2806
  return !0;
2792
2807
  }
2793
- function Oa(e, r) {
2808
+ function Pa(e, r) {
2794
2809
  let s = /\d/;
2795
2810
  for (e[r] === "x" && (r++, s = /[\da-fA-F]/); r < e.length; r++) {
2796
2811
  if (e[r] === ";")
@@ -2800,11 +2815,11 @@ function Oa(e, r) {
2800
2815
  }
2801
2816
  return -1;
2802
2817
  }
2803
- function Pa(e, r) {
2818
+ function ka(e, r) {
2804
2819
  if (r++, e[r] === ";")
2805
2820
  return -1;
2806
2821
  if (e[r] === "#")
2807
- return r++, Oa(e, r);
2822
+ return r++, Pa(e, r);
2808
2823
  let s = 0;
2809
2824
  for (; r < e.length; r++, s++)
2810
2825
  if (!(e[r].match(/\w/) && s < 20)) {
@@ -2824,10 +2839,10 @@ function Ce(e, r, s) {
2824
2839
  }
2825
2840
  };
2826
2841
  }
2827
- function ka(e) {
2842
+ function Ca(e) {
2828
2843
  return gr(e);
2829
2844
  }
2830
- function Ca(e) {
2845
+ function ja(e) {
2831
2846
  return gr(e);
2832
2847
  }
2833
2848
  function Re(e, r) {
@@ -2841,7 +2856,7 @@ function Re(e, r) {
2841
2856
  function Tt(e) {
2842
2857
  return e.startIndex + e[1].length;
2843
2858
  }
2844
- const ja = {
2859
+ const Ia = {
2845
2860
  preserveOrder: !1,
2846
2861
  attributeNamePrefix: "@_",
2847
2862
  attributesGroupName: !1,
@@ -2885,8 +2900,8 @@ const ja = {
2885
2900
  },
2886
2901
  // skipEmptyListItem: false
2887
2902
  captureMetaData: !1
2888
- }, Ia = function(e) {
2889
- return Object.assign({}, ja, e);
2903
+ }, $a = function(e) {
2904
+ return Object.assign({}, Ia, e);
2890
2905
  };
2891
2906
  let on;
2892
2907
  typeof Symbol != "function" ? on = "@@xmlMetadata" : on = Symbol("XML Node Metadata");
@@ -2905,7 +2920,7 @@ class st {
2905
2920
  return on;
2906
2921
  }
2907
2922
  }
2908
- function $a(e, r) {
2923
+ function Aa(e, r) {
2909
2924
  const s = {};
2910
2925
  if (e[r + 3] === "O" && e[r + 4] === "C" && e[r + 5] === "T" && e[r + 6] === "Y" && e[r + 7] === "P" && e[r + 8] === "E") {
2911
2926
  r = r + 9;
@@ -2915,19 +2930,19 @@ function $a(e, r) {
2915
2930
  if (l && at(e, "!ENTITY", r)) {
2916
2931
  r += 7;
2917
2932
  let p, g;
2918
- [p, g, r] = Aa(e, r + 1), g.indexOf("&") === -1 && (s[p] = {
2933
+ [p, g, r] = Ma(e, r + 1), g.indexOf("&") === -1 && (s[p] = {
2919
2934
  regx: RegExp(`&${p};`, "g"),
2920
2935
  val: g
2921
2936
  });
2922
2937
  } else if (l && at(e, "!ELEMENT", r)) {
2923
2938
  r += 8;
2924
- const { index: p } = Ra(e, r + 1);
2939
+ const { index: p } = za(e, r + 1);
2925
2940
  r = p;
2926
2941
  } else if (l && at(e, "!ATTLIST", r))
2927
2942
  r += 8;
2928
2943
  else if (l && at(e, "!NOTATION", r)) {
2929
2944
  r += 9;
2930
- const { index: p } = Ma(e, r + 1);
2945
+ const { index: p } = Ra(e, r + 1);
2931
2946
  r = p;
2932
2947
  } else if (at(e, "!--", r)) u = !0;
2933
2948
  else throw new Error("Invalid DOCTYPE");
@@ -2947,7 +2962,7 @@ const et = (e, r) => {
2947
2962
  r++;
2948
2963
  return r;
2949
2964
  };
2950
- function Aa(e, r) {
2965
+ function Ma(e, r) {
2951
2966
  r = et(e, r);
2952
2967
  let s = "";
2953
2968
  for (; r < e.length && !/\s/.test(e[r]) && e[r] !== '"' && e[r] !== "'"; )
@@ -2959,7 +2974,7 @@ function Aa(e, r) {
2959
2974
  let a = "";
2960
2975
  return [r, a] = Gt(e, r, "entity"), r--, [s, a, r];
2961
2976
  }
2962
- function Ma(e, r) {
2977
+ function Ra(e, r) {
2963
2978
  r = et(e, r);
2964
2979
  let s = "";
2965
2980
  for (; r < e.length && !/\s/.test(e[r]); )
@@ -2987,7 +3002,7 @@ function Gt(e, r, s) {
2987
3002
  throw new Error(`Unterminated ${s} value`);
2988
3003
  return r++, [r, a];
2989
3004
  }
2990
- function Ra(e, r) {
3005
+ function za(e, r) {
2991
3006
  r = et(e, r);
2992
3007
  let s = "";
2993
3008
  for (; r < e.length && !/\s/.test(e[r]); )
@@ -3021,7 +3036,7 @@ function mr(e) {
3021
3036
  return e;
3022
3037
  throw new Error(`Invalid entity name ${e}`);
3023
3038
  }
3024
- const za = /^[-+]?0x[a-fA-F0-9]+$/, La = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, Fa = {
3039
+ const La = /^[-+]?0x[a-fA-F0-9]+$/, Fa = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, Da = {
3025
3040
  hex: !0,
3026
3041
  // oct: false,
3027
3042
  leadingZeros: !0,
@@ -3029,20 +3044,20 @@ const za = /^[-+]?0x[a-fA-F0-9]+$/, La = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, F
3029
3044
  eNotation: !0
3030
3045
  //skipLike: /regex/
3031
3046
  };
3032
- function Da(e, r = {}) {
3033
- if (r = Object.assign({}, Fa, r), !e || typeof e != "string") return e;
3047
+ function Va(e, r = {}) {
3048
+ if (r = Object.assign({}, Da, r), !e || typeof e != "string") return e;
3034
3049
  let s = e.trim();
3035
3050
  if (r.skipLike !== void 0 && r.skipLike.test(s)) return e;
3036
3051
  if (e === "0") return 0;
3037
- if (r.hex && za.test(s))
3038
- return Ya(s, 16);
3052
+ if (r.hex && La.test(s))
3053
+ return Xa(s, 16);
3039
3054
  if (s.search(/.+[eE].+/) !== -1)
3040
3055
  return Ha(e, s, r);
3041
3056
  {
3042
- const a = La.exec(s);
3057
+ const a = Fa.exec(s);
3043
3058
  if (a) {
3044
3059
  const l = a[1] || "", u = a[2];
3045
- let p = Ba(a[3]);
3060
+ let p = Ya(a[3]);
3046
3061
  const g = l ? (
3047
3062
  // 0., -00., 000.
3048
3063
  e[u.length + 1] === "."
@@ -3063,10 +3078,10 @@ function Da(e, r = {}) {
3063
3078
  return e;
3064
3079
  }
3065
3080
  }
3066
- const Va = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
3081
+ const Ba = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
3067
3082
  function Ha(e, r, s) {
3068
3083
  if (!s.eNotation) return e;
3069
- const a = r.match(Va);
3084
+ const a = r.match(Ba);
3070
3085
  if (a) {
3071
3086
  let l = a[1] || "";
3072
3087
  const u = a[3].indexOf("e") === -1 ? "E" : "e", p = a[2], g = l ? (
@@ -3077,10 +3092,10 @@ function Ha(e, r, s) {
3077
3092
  } else
3078
3093
  return e;
3079
3094
  }
3080
- function Ba(e) {
3095
+ function Ya(e) {
3081
3096
  return e && e.indexOf(".") !== -1 && (e = e.replace(/0+$/, ""), e === "." ? e = "0" : e[0] === "." ? e = "0" + e : e[e.length - 1] === "." && (e = e.substring(0, e.length - 1))), e;
3082
3097
  }
3083
- function Ya(e, r) {
3098
+ function Xa(e, r) {
3084
3099
  if (parseInt) return parseInt(e, r);
3085
3100
  if (Number.parseInt) return Number.parseInt(e, r);
3086
3101
  if (window && window.parseInt) return window.parseInt(e, r);
@@ -3093,7 +3108,7 @@ function Go(e) {
3093
3108
  return !0;
3094
3109
  } : () => !1;
3095
3110
  }
3096
- class Xa {
3111
+ class Ua {
3097
3112
  constructor(r) {
3098
3113
  this.options = r, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = {
3099
3114
  apos: { regex: /&(apos|#39|#x27);/g, val: "'" },
@@ -3116,10 +3131,10 @@ class Xa {
3116
3131
  inr: { regex: /&(inr|#8377);/g, val: "₹" },
3117
3132
  num_dec: { regex: /&#([0-9]{1,7});/g, val: (s, a) => String.fromCodePoint(Number.parseInt(a, 10)) },
3118
3133
  num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (s, a) => String.fromCodePoint(Number.parseInt(a, 16)) }
3119
- }, this.addExternalEntities = Ua, this.parseXml = Ja, this.parseTextData = qa, this.resolveNameSpace = Ga, this.buildAttributesMap = Ka, this.isItStopNode = tc, this.replaceEntitiesValue = Qa, this.readStopNodeData = rc, this.saveTextToParentTag = ec, this.addChild = Za, this.ignoreAttributesFn = Go(this.options.ignoreAttributes);
3134
+ }, this.addExternalEntities = qa, this.parseXml = Za, this.parseTextData = Ga, this.resolveNameSpace = Wa, this.buildAttributesMap = Ja, this.isItStopNode = nc, this.replaceEntitiesValue = ec, this.readStopNodeData = oc, this.saveTextToParentTag = tc, this.addChild = Qa, this.ignoreAttributesFn = Go(this.options.ignoreAttributes);
3120
3135
  }
3121
3136
  }
3122
- function Ua(e) {
3137
+ function qa(e) {
3123
3138
  const r = Object.keys(e);
3124
3139
  for (let s = 0; s < r.length; s++) {
3125
3140
  const a = r[s];
@@ -3129,14 +3144,14 @@ function Ua(e) {
3129
3144
  };
3130
3145
  }
3131
3146
  }
3132
- function qa(e, r, s, a, l, u, p) {
3147
+ function Ga(e, r, s, a, l, u, p) {
3133
3148
  if (e !== void 0 && (this.options.trimValues && !a && (e = e.trim()), e.length > 0)) {
3134
3149
  p || (e = this.replaceEntitiesValue(e));
3135
3150
  const g = this.options.tagValueProcessor(r, e, s, l, u);
3136
3151
  return g == null ? e : typeof g != typeof e || g !== e ? g : this.options.trimValues ? Jn(e, this.options.parseTagValue, this.options.numberParseOptions) : e.trim() === e ? Jn(e, this.options.parseTagValue, this.options.numberParseOptions) : e;
3137
3152
  }
3138
3153
  }
3139
- function Ga(e) {
3154
+ function Wa(e) {
3140
3155
  if (this.options.removeNSPrefix) {
3141
3156
  const r = e.split(":"), s = e.charAt(0) === "/" ? "/" : "";
3142
3157
  if (r[0] === "xmlns")
@@ -3145,10 +3160,10 @@ function Ga(e) {
3145
3160
  }
3146
3161
  return e;
3147
3162
  }
3148
- const Wa = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
3149
- function Ka(e, r, s) {
3163
+ const Ka = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
3164
+ function Ja(e, r, s) {
3150
3165
  if (this.options.ignoreAttributes !== !0 && typeof e == "string") {
3151
- const a = qo(e, Wa), l = a.length, u = {};
3166
+ const a = qo(e, Ka), l = a.length, u = {};
3152
3167
  for (let p = 0; p < l; p++) {
3153
3168
  const g = this.resolveNameSpace(a[p][1]);
3154
3169
  if (this.ignoreAttributesFn(g, r))
@@ -3174,7 +3189,7 @@ function Ka(e, r, s) {
3174
3189
  return u;
3175
3190
  }
3176
3191
  }
3177
- const Ja = function(e) {
3192
+ const Za = function(e) {
3178
3193
  e = e.replace(/\r\n?/g, `
3179
3194
  `);
3180
3195
  const r = new st("!xml");
@@ -3210,7 +3225,7 @@ const Ja = function(e) {
3210
3225
  }
3211
3226
  u = g;
3212
3227
  } else if (e.substr(u + 1, 2) === "!D") {
3213
- const g = $a(e, u);
3228
+ const g = Aa(e, u);
3214
3229
  this.docTypeEntities = g.entities, u = g.i;
3215
3230
  } else if (e.substr(u + 1, 2) === "![") {
3216
3231
  const g = ct(e, "]]>", u, "CDATA is not closed.") - 2, m = e.substring(u + 9, g);
@@ -3254,12 +3269,12 @@ const Ja = function(e) {
3254
3269
  a += e[u];
3255
3270
  return r.child;
3256
3271
  };
3257
- function Za(e, r, s, a) {
3272
+ function Qa(e, r, s, a) {
3258
3273
  this.options.captureMetaData || (a = void 0);
3259
3274
  const l = this.options.updateTag(r.tagname, s, r[":@"]);
3260
3275
  l === !1 || (typeof l == "string" && (r.tagname = l), e.addChild(r, a));
3261
3276
  }
3262
- const Qa = function(e) {
3277
+ const ec = function(e) {
3263
3278
  if (this.options.processEntities) {
3264
3279
  for (let r in this.docTypeEntities) {
3265
3280
  const s = this.docTypeEntities[r];
@@ -3278,7 +3293,7 @@ const Qa = function(e) {
3278
3293
  }
3279
3294
  return e;
3280
3295
  };
3281
- function ec(e, r, s, a) {
3296
+ function tc(e, r, s, a) {
3282
3297
  return e && (a === void 0 && (a = r.child.length === 0), e = this.parseTextData(
3283
3298
  e,
3284
3299
  r.tagname,
@@ -3288,7 +3303,7 @@ function ec(e, r, s, a) {
3288
3303
  a
3289
3304
  ), e !== void 0 && e !== "" && r.add(this.options.textNodeName, e), e = ""), e;
3290
3305
  }
3291
- function tc(e, r, s) {
3306
+ function nc(e, r, s) {
3292
3307
  const a = "*." + s;
3293
3308
  for (const l in e) {
3294
3309
  const u = e[l];
@@ -3296,7 +3311,7 @@ function tc(e, r, s) {
3296
3311
  }
3297
3312
  return !1;
3298
3313
  }
3299
- function nc(e, r, s = ">") {
3314
+ function rc(e, r, s = ">") {
3300
3315
  let a, l = "";
3301
3316
  for (let u = r; u < e.length; u++) {
3302
3317
  let p = e[u];
@@ -3327,7 +3342,7 @@ function ct(e, r, s, a) {
3327
3342
  return l + r.length - 1;
3328
3343
  }
3329
3344
  function Kn(e, r, s, a = ">") {
3330
- const l = nc(e, r + 1, a);
3345
+ const l = rc(e, r + 1, a);
3331
3346
  if (!l) return;
3332
3347
  let u = l.data;
3333
3348
  const p = l.index, g = u.search(/\s/);
@@ -3346,7 +3361,7 @@ function Kn(e, r, s, a = ">") {
3346
3361
  rawTagName: T
3347
3362
  };
3348
3363
  }
3349
- function rc(e, r, s) {
3364
+ function oc(e, r, s) {
3350
3365
  const a = s;
3351
3366
  let l = 1;
3352
3367
  for (; s < e.length; s++)
@@ -3373,19 +3388,19 @@ function rc(e, r, s) {
3373
3388
  function Jn(e, r, s) {
3374
3389
  if (r && typeof e == "string") {
3375
3390
  const a = e.trim();
3376
- return a === "true" ? !0 : a === "false" ? !1 : Da(e, s);
3391
+ return a === "true" ? !0 : a === "false" ? !1 : Va(e, s);
3377
3392
  } else
3378
- return ba(e) ? e : "";
3393
+ return wa(e) ? e : "";
3379
3394
  }
3380
3395
  const Rn = st.getMetaDataSymbol();
3381
- function oc(e, r) {
3396
+ function ic(e, r) {
3382
3397
  return Wo(e, r);
3383
3398
  }
3384
3399
  function Wo(e, r, s) {
3385
3400
  let a;
3386
3401
  const l = {};
3387
3402
  for (let u = 0; u < e.length; u++) {
3388
- const p = e[u], g = ic(p);
3403
+ const p = e[u], g = sc(p);
3389
3404
  let m = "";
3390
3405
  if (s === void 0 ? m = g : m = s + "." + g, g === r.textNodeName)
3391
3406
  a === void 0 ? a = p[g] : a += "" + p[g];
@@ -3394,21 +3409,21 @@ function Wo(e, r, s) {
3394
3409
  continue;
3395
3410
  if (p[g]) {
3396
3411
  let N = Wo(p[g], r, m);
3397
- const T = ac(N, r);
3398
- p[Rn] !== void 0 && (N[Rn] = p[Rn]), p[":@"] ? sc(N, p[":@"], m, r) : Object.keys(N).length === 1 && N[r.textNodeName] !== void 0 && !r.alwaysCreateTextNode ? N = N[r.textNodeName] : Object.keys(N).length === 0 && (r.alwaysCreateTextNode ? N[r.textNodeName] = "" : N = ""), l[g] !== void 0 && l.hasOwnProperty(g) ? (Array.isArray(l[g]) || (l[g] = [l[g]]), l[g].push(N)) : r.isArray(g, m, T) ? l[g] = [N] : l[g] = N;
3412
+ const T = cc(N, r);
3413
+ p[Rn] !== void 0 && (N[Rn] = p[Rn]), p[":@"] ? ac(N, p[":@"], m, r) : Object.keys(N).length === 1 && N[r.textNodeName] !== void 0 && !r.alwaysCreateTextNode ? N = N[r.textNodeName] : Object.keys(N).length === 0 && (r.alwaysCreateTextNode ? N[r.textNodeName] = "" : N = ""), l[g] !== void 0 && l.hasOwnProperty(g) ? (Array.isArray(l[g]) || (l[g] = [l[g]]), l[g].push(N)) : r.isArray(g, m, T) ? l[g] = [N] : l[g] = N;
3399
3414
  }
3400
3415
  }
3401
3416
  }
3402
3417
  return typeof a == "string" ? a.length > 0 && (l[r.textNodeName] = a) : a !== void 0 && (l[r.textNodeName] = a), l;
3403
3418
  }
3404
- function ic(e) {
3419
+ function sc(e) {
3405
3420
  const r = Object.keys(e);
3406
3421
  for (let s = 0; s < r.length; s++) {
3407
3422
  const a = r[s];
3408
3423
  if (a !== ":@") return a;
3409
3424
  }
3410
3425
  }
3411
- function sc(e, r, s, a) {
3426
+ function ac(e, r, s, a) {
3412
3427
  if (r) {
3413
3428
  const l = Object.keys(r), u = l.length;
3414
3429
  for (let p = 0; p < u; p++) {
@@ -3417,13 +3432,13 @@ function sc(e, r, s, a) {
3417
3432
  }
3418
3433
  }
3419
3434
  }
3420
- function ac(e, r) {
3435
+ function cc(e, r) {
3421
3436
  const { textNodeName: s } = r, a = Object.keys(e).length;
3422
3437
  return !!(a === 0 || a === 1 && (e[s] || typeof e[s] == "boolean" || e[s] === 0));
3423
3438
  }
3424
- class cc {
3439
+ class lc {
3425
3440
  constructor(r) {
3426
- this.externalEntities = {}, this.options = Ia(r);
3441
+ this.externalEntities = {}, this.options = $a(r);
3427
3442
  }
3428
3443
  /**
3429
3444
  * Parse XML dats to JS object
@@ -3437,14 +3452,14 @@ class cc {
3437
3452
  throw new Error("XML data is accepted in String or Bytes[] form.");
3438
3453
  if (s) {
3439
3454
  s === !0 && (s = {});
3440
- const u = Ea(r, s);
3455
+ const u = Na(r, s);
3441
3456
  if (u !== !0)
3442
3457
  throw Error(`${u.err.msg}:${u.err.line}:${u.err.col}`);
3443
3458
  }
3444
- const a = new Xa(this.options);
3459
+ const a = new Ua(this.options);
3445
3460
  a.addExternalEntities(this.externalEntities);
3446
3461
  const l = a.parseXml(r);
3447
- return this.options.preserveOrder || l === void 0 ? l : oc(l, this.options);
3462
+ return this.options.preserveOrder || l === void 0 ? l : ic(l, this.options);
3448
3463
  }
3449
3464
  /**
3450
3465
  * Add Entity which is not by default supported by this library
@@ -3474,21 +3489,21 @@ class cc {
3474
3489
  return st.getMetaDataSymbol();
3475
3490
  }
3476
3491
  }
3477
- const lc = `
3492
+ const uc = `
3478
3493
  `;
3479
- function uc(e, r) {
3494
+ function fc(e, r) {
3480
3495
  let s = "";
3481
- return r.format && r.indentBy.length > 0 && (s = lc), Ko(e, r, "", s);
3496
+ return r.format && r.indentBy.length > 0 && (s = uc), Ko(e, r, "", s);
3482
3497
  }
3483
3498
  function Ko(e, r, s, a) {
3484
3499
  let l = "", u = !1;
3485
3500
  for (let p = 0; p < e.length; p++) {
3486
- const g = e[p], m = fc(g);
3501
+ const g = e[p], m = dc(g);
3487
3502
  if (m === void 0) continue;
3488
3503
  let N = "";
3489
3504
  if (s.length === 0 ? N = m : N = `${s}.${m}`, m === r.textNodeName) {
3490
3505
  let R = g[m];
3491
- dc(N, r) || (R = r.tagValueProcessor(m, R), R = Jo(R, r)), u && (l += a), l += R, u = !1;
3506
+ pc(N, r) || (R = r.tagValueProcessor(m, R), R = Jo(R, r)), u && (l += a), l += R, u = !1;
3492
3507
  continue;
3493
3508
  } else if (m === r.cdataPropName) {
3494
3509
  u && (l += a), l += `<![CDATA[${g[m][0][r.textNodeName]}]]>`, u = !1;
@@ -3509,7 +3524,7 @@ function Ko(e, r, s, a) {
3509
3524
  }
3510
3525
  return l;
3511
3526
  }
3512
- function fc(e) {
3527
+ function dc(e) {
3513
3528
  const r = Object.keys(e);
3514
3529
  for (let s = 0; s < r.length; s++) {
3515
3530
  const a = r[s];
@@ -3527,7 +3542,7 @@ function vo(e, r) {
3527
3542
  }
3528
3543
  return s;
3529
3544
  }
3530
- function dc(e, r) {
3545
+ function pc(e, r) {
3531
3546
  e = e.substr(0, e.length - r.textNodeName.length - 1);
3532
3547
  let s = e.substr(e.lastIndexOf(".") + 1);
3533
3548
  for (let a in r.stopNodes)
@@ -3542,7 +3557,7 @@ function Jo(e, r) {
3542
3557
  }
3543
3558
  return e;
3544
3559
  }
3545
- const pc = {
3560
+ const hc = {
3546
3561
  attributeNamePrefix: "@_",
3547
3562
  attributesGroupName: !1,
3548
3563
  textNodeName: "#text",
@@ -3577,16 +3592,16 @@ const pc = {
3577
3592
  oneListGroup: !1
3578
3593
  };
3579
3594
  function nt(e) {
3580
- this.options = Object.assign({}, pc, e), this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
3595
+ this.options = Object.assign({}, hc, e), this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
3581
3596
  return !1;
3582
- } : (this.ignoreAttributesFn = Go(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = mc), this.processTextOrObjNode = hc, this.options.format ? (this.indentate = gc, this.tagEndChar = `>
3597
+ } : (this.ignoreAttributesFn = Go(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = vc), this.processTextOrObjNode = gc, this.options.format ? (this.indentate = mc, this.tagEndChar = `>
3583
3598
  `, this.newLine = `
3584
3599
  `) : (this.indentate = function() {
3585
3600
  return "";
3586
3601
  }, this.tagEndChar = ">", this.newLine = "");
3587
3602
  }
3588
3603
  nt.prototype.build = function(e) {
3589
- return this.options.preserveOrder ? uc(e, this.options) : (Array.isArray(e) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (e = {
3604
+ return this.options.preserveOrder ? fc(e, this.options) : (Array.isArray(e) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (e = {
3590
3605
  [this.options.arrayNodeName]: e
3591
3606
  }), this.j2x(e, 0, []).val);
3592
3607
  };
@@ -3642,7 +3657,7 @@ nt.prototype.j2x = function(e, r, s) {
3642
3657
  nt.prototype.buildAttrPairStr = function(e, r) {
3643
3658
  return r = this.options.attributeValueProcessor(e, "" + r), r = this.replaceEntitiesValue(r), this.options.suppressBooleanAttributes && r === "true" ? " " + e : " " + e + '="' + r + '"';
3644
3659
  };
3645
- function hc(e, r, s, a) {
3660
+ function gc(e, r, s, a) {
3646
3661
  const l = this.j2x(e, s + 1, a.concat(r));
3647
3662
  return e[this.options.textNodeName] !== void 0 && Object.keys(e).length === 1 ? this.buildTextValNode(e[this.options.textNodeName], r, l.attrStr, s) : this.buildObjectNode(l.val, r, l.attrStr, s);
3648
3663
  }
@@ -3678,13 +3693,13 @@ nt.prototype.replaceEntitiesValue = function(e) {
3678
3693
  }
3679
3694
  return e;
3680
3695
  };
3681
- function gc(e) {
3696
+ function mc(e) {
3682
3697
  return this.options.indentBy.repeat(e);
3683
3698
  }
3684
- function mc(e) {
3699
+ function vc(e) {
3685
3700
  return e.startsWith(this.options.attributeNamePrefix) && e !== this.options.textNodeName ? e.substr(this.attrPrefixLen) : !1;
3686
3701
  }
3687
- const vc = /* @__PURE__ */ _e(({
3702
+ const yc = /* @__PURE__ */ _e(({
3688
3703
  fillMode: e = "preserve",
3689
3704
  svg: r,
3690
3705
  shouldStripClasses: s = !0,
@@ -3694,7 +3709,7 @@ const vc = /* @__PURE__ */ _e(({
3694
3709
  ...p
3695
3710
  }, g) => {
3696
3711
  const m = "@_", N = ["id"].map((R) => `${m}${R}`), T = ["class"].map((R) => `${m}${R}`), P = ["fill", "stroke", "style"].map((R) => `${m}${R}`), k = ["x", "y"].map((R) => `${m}${R}`), I = () => {
3697
- const R = new cc({
3712
+ const R = new lc({
3698
3713
  attributeNamePrefix: m,
3699
3714
  ignoreAttributes: !1,
3700
3715
  ignoreDeclaration: !0,
@@ -3703,8 +3718,8 @@ const vc = /* @__PURE__ */ _e(({
3703
3718
  trimValues: !0,
3704
3719
  updateTag: (W, q, D) => {
3705
3720
  if (u && W.toLowerCase() === "style") return !1;
3706
- const B = Object.keys(D);
3707
- for (const S of B)
3721
+ const H = Object.keys(D);
3722
+ for (const S of H)
3708
3723
  W.toLowerCase() === "svg" && (l && k.includes(S.toLowerCase()) && delete D[S], e !== "preserve" && (S.toLowerCase() === `${m}width` && delete D[S], S.toLowerCase() === `${m}height` && delete D[S])), a && N.includes(S.toLowerCase()) && delete D[S], s && T.includes(S.toLowerCase()) && delete D[S], u && P.includes(S.toLowerCase()) && delete D[S];
3709
3724
  if (W.toLowerCase() === "svg")
3710
3725
  switch (e) {
@@ -3737,8 +3752,8 @@ const vc = /* @__PURE__ */ _e(({
3737
3752
  }
3738
3753
  );
3739
3754
  });
3740
- process.env.NODE_ENV !== "production" && (vc.displayName = "FlatSVG");
3741
- const yo = "base-", yc = /* @__PURE__ */ _e(({
3755
+ process.env.NODE_ENV !== "production" && (yc.displayName = "FlatSVG");
3756
+ const yo = "base-", xc = /* @__PURE__ */ _e(({
3742
3757
  alignSections: e = !1,
3743
3758
  children: r,
3744
3759
  className: s,
@@ -3749,7 +3764,7 @@ const yo = "base-", yc = /* @__PURE__ */ _e(({
3749
3764
  verticalSpacing: g = 0,
3750
3765
  ...m
3751
3766
  }, N) => {
3752
- const T = Ee(null), [P, k] = Ne(NaN), [I, R] = Ne(NaN), [b, j] = Ne(NaN), [W, q] = Ne(NaN), D = () => ye.from(T.current)?.width ?? 0, B = () => ye.from(T.current)?.height ?? 0, S = () => {
3767
+ const T = Ee(null), [P, k] = Ne(NaN), [I, R] = Ne(NaN), [b, j] = Ne(NaN), [W, q] = Ne(NaN), D = () => me.from(T.current)?.width ?? 0, H = () => me.from(T.current)?.height ?? 0, S = () => {
3753
3768
  const Y = T.current;
3754
3769
  if (!Y) return;
3755
3770
  const U = Y.children, ne = p;
@@ -3764,17 +3779,17 @@ const yo = "base-", yc = /* @__PURE__ */ _e(({
3764
3779
  const J = bo(A, p), [Z, ae] = xo(K, J);
3765
3780
  A.role = "gridcell", A.style.position = "absolute", A.style.width = `calc(${100 / ne * J}% - ${a * (ne - 1) / ne * J}px + ${a * (J - 1)}px)`, A.style.height = "", A.style.left = `calc(${100 / ne * Z}% - ${a * (ne - 1) / ne * Z}px + ${a * Z}px)`, A.style.top = `${ae + (ae === 0 ? 0 : g)}px`;
3766
3781
  for (let G = 0; G < J; G++)
3767
- K[Z + G] = ae + (ae === 0 ? 0 : g) + (ye.from(A)?.height ?? 0);
3782
+ K[Z + G] = ae + (ae === 0 ? 0 : g) + (me.from(A)?.height ?? 0);
3768
3783
  if (e && Z + J === ne) {
3769
3784
  const G = Ot(K);
3770
3785
  for (let _ = 0; _ < ne; _++)
3771
3786
  K[_] = G;
3772
3787
  }
3773
3788
  }
3774
- const H = D(), L = Ot(K, ne);
3775
- if (k(H), R(L), isNaN(L) || (Y.style.height = `${L}px`), l)
3789
+ const B = D(), L = Ot(K, ne);
3790
+ if (k(B), R(L), isNaN(L) || (Y.style.height = `${L}px`), l)
3776
3791
  for (const A of Array.from(U))
3777
- A instanceof HTMLElement && (A.style.left = `calc(${H}px - ${A.style.left} - ${A.getBoundingClientRect().width}px)`);
3792
+ A instanceof HTMLElement && (A.style.left = `calc(${B}px - ${A.style.left} - ${A.getBoundingClientRect().width}px)`);
3778
3793
  } else {
3779
3794
  const K = [...new Array(ne)].map(() => 0);
3780
3795
  for (const A of Array.from(U)) {
@@ -3782,34 +3797,34 @@ const yo = "base-", yc = /* @__PURE__ */ _e(({
3782
3797
  const J = bo(A, p), [Z, ae] = xo(K, J);
3783
3798
  A.style.position = "absolute", A.style.width = "", A.style.height = `calc(${100 / ne * J}% - ${g * (ne - 1) / ne * J}px + ${g * (J - 1)}px)`, A.style.top = `calc(${100 / ne * Z}% - ${g * (ne - 1) / ne * Z}px + ${g * Z}px)`, A.style.left = `${ae + (ae === 0 ? 0 : a)}px`;
3784
3799
  for (let G = 0; G < J; G++)
3785
- K[Z + G] = ae + (ae === 0 ? 0 : a) + (ye.from(A)?.width ?? 0);
3800
+ K[Z + G] = ae + (ae === 0 ? 0 : a) + (me.from(A)?.width ?? 0);
3786
3801
  if (e && Z + J === ne) {
3787
3802
  const G = Ot(K);
3788
3803
  for (let _ = 0; _ < ne; _++)
3789
3804
  K[_] = G;
3790
3805
  }
3791
3806
  }
3792
- const H = B(), L = Ot(K, ne);
3793
- if (R(H), k(L), isNaN(L) || (Y.style.width = `${L}px`), l)
3807
+ const B = H(), L = Ot(K, ne);
3808
+ if (R(B), k(L), isNaN(L) || (Y.style.width = `${L}px`), l)
3794
3809
  for (const A of Array.from(U))
3795
- A instanceof HTMLElement && (A.style.top = `calc(${H}px - ${A.style.top} - ${A.getBoundingClientRect().height}px)`);
3810
+ A instanceof HTMLElement && (A.style.top = `calc(${B}px - ${A.style.top} - ${A.getBoundingClientRect().height}px)`);
3796
3811
  }
3797
- }, C = ve((Y) => {
3798
- const U = ye.size(ye.from(Y) ?? ye.zero), ne = D(), K = B();
3812
+ }, C = ye((Y) => {
3813
+ const U = me.size(me.from(Y) ?? me.zero), ne = D(), K = H();
3799
3814
  (P !== ne || I !== K || U.width !== b || U.height !== W) && (S(), j(U.width), q(U.height));
3800
3815
  }, [e, a, l, p, g, u]);
3801
3816
  dr(T, {
3802
3817
  onResize: C
3803
- }), he(() => {
3804
- const Y = wc(T.current?.innerHTML);
3818
+ }), pe(() => {
3819
+ const Y = Ec(T.current?.innerHTML);
3805
3820
  if (Y.length === 0) return S();
3806
3821
  const U = Y.length;
3807
3822
  for (let ne = 0; ne < U; ne++) {
3808
- const K = Y[ne], H = new Image();
3809
- H.src = K, H.onload = () => S();
3823
+ const K = Y[ne], B = new Image();
3824
+ B.src = K, B.onload = () => S();
3810
3825
  }
3811
3826
  }, [r]);
3812
- const w = xc({ orientation: u }), z = bc({ orientation: u, minHeight: I, minWidth: P });
3827
+ const w = bc({ orientation: u }), z = wc({ orientation: u, minHeight: I, minWidth: P });
3813
3828
  return /* @__PURE__ */ x.jsx(
3814
3829
  "div",
3815
3830
  {
@@ -3821,12 +3836,12 @@ const yo = "base-", yc = /* @__PURE__ */ _e(({
3821
3836
  }
3822
3837
  );
3823
3838
  });
3824
- function xc({ orientation: e = "horizontal" }) {
3839
+ function bc({ orientation: e = "horizontal" }) {
3825
3840
  return {
3826
3841
  root: ie(e)
3827
3842
  };
3828
3843
  }
3829
- function bc({ orientation: e = "horizontal", minHeight: r = NaN, minWidth: s = NaN }) {
3844
+ function wc({ orientation: e = "horizontal", minHeight: r = NaN, minWidth: s = NaN }) {
3830
3845
  return {
3831
3846
  body: {
3832
3847
  height: e === "horizontal" ? "100%" : "auto",
@@ -3862,7 +3877,7 @@ function bo(e, r) {
3862
3877
  }
3863
3878
  return 1;
3864
3879
  }
3865
- function wc(e) {
3880
+ function Ec(e) {
3866
3881
  if (!e) return [];
3867
3882
  const r = /<img.*?src=(["'])(.*?)\1/g, s = /<img.*?src=(["'])(.*?)\1/, a = r.exec(e) ?? [], l = [];
3868
3883
  for (const u of a) {
@@ -3871,8 +3886,8 @@ function wc(e) {
3871
3886
  }
3872
3887
  return l;
3873
3888
  }
3874
- process.env.NODE_ENV !== "production" && (yc.displayName = "MasonryGrid");
3875
- const Ec = /* @__PURE__ */ _e(({
3889
+ process.env.NODE_ENV !== "production" && (xc.displayName = "MasonryGrid");
3890
+ const Nc = /* @__PURE__ */ _e(({
3876
3891
  index: e = 0,
3877
3892
  isDisabled: r = !1,
3878
3893
  options: s,
@@ -3897,13 +3912,13 @@ const Ec = /* @__PURE__ */ _e(({
3897
3912
  }
3898
3913
  );
3899
3914
  });
3900
- process.env.NODE_ENV !== "production" && (Ec.displayName = "OptionButton");
3901
- var Wt = { exports: {} }, Nc = Wt.exports, wo;
3902
- function Sc() {
3915
+ process.env.NODE_ENV !== "production" && (Nc.displayName = "OptionButton");
3916
+ var Wt = { exports: {} }, Sc = Wt.exports, wo;
3917
+ function Tc() {
3903
3918
  return wo || (wo = 1, function(e, r) {
3904
3919
  (function(s, a) {
3905
3920
  e.exports = a();
3906
- })(Nc, function() {
3921
+ })(Sc, function() {
3907
3922
  function s(n, t) {
3908
3923
  var o = Object.keys(n);
3909
3924
  if (Object.getOwnPropertySymbols) {
@@ -4022,7 +4037,7 @@ function Sc() {
4022
4037
  var t = n.document.createTextNode("");
4023
4038
  t.ownerDocument !== n.document && typeof n.wrap == "function" && n.wrap(t) === t && (n = n.wrap(n)), q = n;
4024
4039
  }
4025
- function B(n) {
4040
+ function H(n) {
4026
4041
  return j(n) ? n : (n.ownerDocument || n).defaultView || q.window;
4027
4042
  }
4028
4043
  typeof window < "u" && window && D(window);
@@ -4042,7 +4057,7 @@ function Sc() {
4042
4057
  return typeof n == "string";
4043
4058
  }, element: function(n) {
4044
4059
  if (!n || l(n) !== "object") return !1;
4045
- var t = B(n) || q;
4060
+ var t = H(n) || q;
4046
4061
  return /object|function/.test(typeof Element > "u" ? "undefined" : l(Element)) ? n instanceof Element || n instanceof t.Element : n.nodeType === 1 && typeof n.nodeName == "string";
4047
4062
  }, plainObject: function(n) {
4048
4063
  return S(n) && !!n.constructor && /function Object\b/.test(n.constructor.toString());
@@ -4080,9 +4095,9 @@ function Sc() {
4080
4095
  return n.search("drag") === 0;
4081
4096
  } }, ne = U, K = { init: function(n) {
4082
4097
  var t = n;
4083
- K.document = t.document, K.DocumentFragment = t.DocumentFragment || H, K.SVGElement = t.SVGElement || H, K.SVGSVGElement = t.SVGSVGElement || H, K.SVGElementInstance = t.SVGElementInstance || H, K.Element = t.Element || H, K.HTMLElement = t.HTMLElement || K.Element, K.Event = t.Event, K.Touch = t.Touch || H, K.PointerEvent = t.PointerEvent || t.MSPointerEvent;
4098
+ K.document = t.document, K.DocumentFragment = t.DocumentFragment || B, K.SVGElement = t.SVGElement || B, K.SVGSVGElement = t.SVGSVGElement || B, K.SVGElementInstance = t.SVGElementInstance || B, K.Element = t.Element || B, K.HTMLElement = t.HTMLElement || K.Element, K.Event = t.Event, K.Touch = t.Touch || B, K.PointerEvent = t.PointerEvent || t.MSPointerEvent;
4084
4099
  }, document: null, DocumentFragment: null, SVGElement: null, SVGSVGElement: null, SVGElementInstance: null, Element: null, HTMLElement: null, Event: null, Touch: null, PointerEvent: null };
4085
- function H() {
4100
+ function B() {
4086
4101
  }
4087
4102
  var L = K, A = { init: function(n) {
4088
4103
  var t = L.Element, o = n.navigator || {};
@@ -4138,7 +4153,7 @@ function Sc() {
4138
4153
  function Se(n) {
4139
4154
  var t, o = se(n);
4140
4155
  if (!J.isIOS7 && o) {
4141
- var i = { x: (t = (t = B(n)) || q).scrollX || t.document.documentElement.scrollLeft, y: t.scrollY || t.document.documentElement.scrollTop };
4156
+ var i = { x: (t = (t = H(n)) || q).scrollX || t.document.documentElement.scrollLeft, y: t.scrollY || t.document.documentElement.scrollTop };
4142
4157
  o.left += i.x, o.right += i.x, o.top += i.y, o.bottom += i.y;
4143
4158
  }
4144
4159
  return o;
@@ -4147,7 +4162,7 @@ function Sc() {
4147
4162
  for (var t = []; n; ) t.push(n), n = G(n);
4148
4163
  return t;
4149
4164
  }
4150
- function me(n) {
4165
+ function ve(n) {
4151
4166
  return !!w.string(n) && (L.document.querySelector(n), !0);
4152
4167
  }
4153
4168
  function Q(n, t) {
@@ -4161,7 +4176,7 @@ function Sc() {
4161
4176
  var c = n;
4162
4177
  return w.string(c) ? c = ke(c, t, o) : w.func(c) && (c = c.apply(void 0, i)), w.element(c) && (c = Se(c)), c;
4163
4178
  }
4164
- function Be(n) {
4179
+ function He(n) {
4165
4180
  return n && { x: "x" in n ? n.x : n.left, y: "y" in n ? n.y : n.top };
4166
4181
  }
4167
4182
  function je(n) {
@@ -4172,7 +4187,7 @@ function Sc() {
4172
4187
  }
4173
4188
  function $e(n, t, o) {
4174
4189
  var i = o && n.options[o];
4175
- return Be(Ie(i && i.origin || n.options.origin, n, t, [n && t])) || { x: 0, y: 0 };
4190
+ return He(Ie(i && i.origin || n.options.origin, n, t, [n && t])) || { x: 0, y: 0 };
4176
4191
  }
4177
4192
  function Ve(n, t) {
4178
4193
  var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function(v) {
@@ -4366,17 +4381,17 @@ function Sc() {
4366
4381
  if (fe === Pe) continue;
4367
4382
  Fe = fe.ownerSVGElement;
4368
4383
  } else Fe = fe;
4369
- for (var He = te(Fe, be.ownerDocument), Ue = 0; He[Ue] && He[Ue] === xe[Ue]; ) Ue++;
4370
- var Yt = [He[Ue - 1], He[Ue], xe[Ue]];
4384
+ for (var Be = te(Fe, be.ownerDocument), Ue = 0; Be[Ue] && Be[Ue] === xe[Ue]; ) Ue++;
4385
+ var Yt = [Be[Ue - 1], Be[Ue], xe[Ue]];
4371
4386
  if (Yt[0]) for (var wt = Yt[0].lastChild; wt; ) {
4372
4387
  if (wt === Yt[1]) {
4373
- re = we, xe = He;
4388
+ re = we, xe = Be;
4374
4389
  break;
4375
4390
  }
4376
4391
  if (wt === Yt[2]) break;
4377
4392
  wt = wt.previousSibling;
4378
4393
  }
4379
- } else ce = be, (parseInt(B(ee = fe).getComputedStyle(ee).zIndex, 10) || 0) >= (parseInt(B(ce).getComputedStyle(ce).zIndex, 10) || 0) && (re = we);
4394
+ } else ce = be, (parseInt(H(ee = fe).getComputedStyle(ee).zIndex, 10) || 0) >= (parseInt(H(ce).getComputedStyle(ce).zIndex, 10) || 0) && (re = we);
4380
4395
  else re = we;
4381
4396
  } else re = we;
4382
4397
  }
@@ -4429,8 +4444,8 @@ function Sc() {
4429
4444
  }
4430
4445
  var Pe = F.getRect(X);
4431
4446
  if (Pe && xe === "center") {
4432
- var Fe = Pe.left + Pe.width / 2, He = Pe.top + Pe.height / 2;
4433
- ce = Fe >= ee.left && Fe <= ee.right && He >= ee.top && He <= ee.bottom;
4447
+ var Fe = Pe.left + Pe.width / 2, Be = Pe.top + Pe.height / 2;
4448
+ ce = Fe >= ee.left && Fe <= ee.right && Be >= ee.top && Be <= ee.bottom;
4434
4449
  }
4435
4450
  return Pe && w.number(xe) && (ce = Math.max(0, Math.min(ee.right, Pe.right) - Math.max(ee.left, Pe.left)) * Math.max(0, Math.min(ee.bottom, Pe.bottom) - Math.max(ee.top, Pe.top)) / (Pe.width * Pe.height) >= xe), O.options.drop.checker && (ce = O.options.drop.checker($, V, ce, O, re, F, X)), ce;
4436
4451
  }(this, f, d, h, v, E, y);
@@ -4649,7 +4664,7 @@ function Sc() {
4649
4664
  }
4650
4665
  } };
4651
4666
  function jr(n, t, o) {
4652
- return (w.string(n) ? ke(n, t, o) : n) || B(o);
4667
+ return (w.string(n) ? ke(n, t, o) : n) || H(o);
4653
4668
  }
4654
4669
  function Ir(n) {
4655
4670
  return w.window(n) && (n = window.document.body), { x: n.scrollLeft, y: n.scrollTop };
@@ -4843,7 +4858,7 @@ function Sc() {
4843
4858
  var d = i.options.preventDefault;
4844
4859
  if (d !== "never") if (d !== "always") {
4845
4860
  if (c.events.supportsPassive && /^touch(start|move)$/.test(f.type)) {
4846
- var h = B(f.target).document, v = c.getDocOptions(h);
4861
+ var h = H(f.target).document, v = c.getDocOptions(h);
4847
4862
  if (!v || !v.events || v.events.passive !== !1) return;
4848
4863
  }
4849
4864
  /^(mouse|pointer|touch)*(down|start)/i.test(f.type) || w.element(f.target) && _(f.target, "input,select,textarea,[contenteditable=true],[contenteditable=true] *") || f.preventDefault();
@@ -5167,10 +5182,10 @@ function Sc() {
5167
5182
  return Date.now();
5168
5183
  } }]), n;
5169
5184
  }();
5170
- function Hr(n) {
5171
- Br(n.interaction);
5172
- }
5173
5185
  function Br(n) {
5186
+ Hr(n.interaction);
5187
+ }
5188
+ function Hr(n) {
5174
5189
  if (!function(o) {
5175
5190
  return !(!o.offset.pending.x && !o.offset.pending.y);
5176
5191
  }(n)) return !1;
@@ -5194,9 +5209,9 @@ function Sc() {
5194
5209
  return function(t) {
5195
5210
  t.pointerIsDown && (Tn(t.coords.cur, t.offset.total), t.offset.pending.x = 0, t.offset.pending.y = 0);
5196
5211
  }(n.interaction);
5197
- }, "interactions:before-action-start": Hr, "interactions:before-action-move": Hr, "interactions:before-action-end": function(n) {
5212
+ }, "interactions:before-action-start": Br, "interactions:before-action-move": Br, "interactions:before-action-end": function(n) {
5198
5213
  var t = n.interaction;
5199
- if (Br(t)) return t.move({ offset: !0 }), t.end(), !1;
5214
+ if (Hr(t)) return t.move({ offset: !0 }), t.end(), !1;
5200
5215
  }, "interactions:stop": function(n) {
5201
5216
  var t = n.interaction;
5202
5217
  t.offset.total.x = 0, t.offset.total.y = 0, t.offset.pending.x = 0, t.offset.pending.y = 0;
@@ -5588,7 +5603,7 @@ function Sc() {
5588
5603
  return n[n.On = 0] = "On", n[n.Off = 1] = "Off", n;
5589
5604
  }(Je || {}), Fi = function() {
5590
5605
  function n(t, o, i, c) {
5591
- u(this, n), this.target = void 0, this.options = void 0, this._actions = void 0, this.events = new Gr(), this._context = void 0, this._win = void 0, this._doc = void 0, this._scopeEvents = void 0, this._actions = o.actions, this.target = t, this._context = o.context || i, this._win = B(me(t) ? this._context : t), this._doc = this._win.document, this._scopeEvents = c, this.set(o);
5606
+ u(this, n), this.target = void 0, this.options = void 0, this._actions = void 0, this.events = new Gr(), this._context = void 0, this._win = void 0, this._doc = void 0, this._scopeEvents = void 0, this._actions = o.actions, this.target = t, this._context = o.context || i, this._win = H(ve(t) ? this._context : t), this._doc = this._win.document, this._scopeEvents = c, this.set(o);
5592
5607
  }
5593
5608
  return g(n, [{ key: "_defaults", get: function() {
5594
5609
  return { base: {}, perAction: {}, actions: {} };
@@ -5614,7 +5629,7 @@ function Sc() {
5614
5629
  return "width" in c || (c.width = c.right - c.left, c.height = c.bottom - c.top), c;
5615
5630
  }, this) : t === null ? (delete this.getRect, this) : this.getRect;
5616
5631
  } }, { key: "_backCompatOption", value: function(t, o) {
5617
- if (me(o) || w.object(o)) {
5632
+ if (ve(o) || w.object(o)) {
5618
5633
  for (var i in this.options[t] = o, this._actions.map) this.options[i][t] = o;
5619
5634
  return this;
5620
5635
  }
@@ -5799,10 +5814,10 @@ function Sc() {
5799
5814
  return this;
5800
5815
  } }, { key: "addDocument", value: function(t, o) {
5801
5816
  if (this.getDocIndex(t) !== -1) return !1;
5802
- var i = B(t);
5817
+ var i = H(t);
5803
5818
  o = o ? Q({}, o) : {}, this.documents.push({ doc: t, options: o }), this.events.documents.push(t), t !== this.document && this.events.add(i, "unload", this.onWindowUnload), this.fire("scope:add-document", { doc: t, window: i, scope: this, options: o });
5804
5819
  } }, { key: "removeDocument", value: function(t) {
5805
- var o = this.getDocIndex(t), i = B(t), c = this.documents[o].options;
5820
+ var o = this.getDocIndex(t), i = H(t), c = this.documents[o].options;
5806
5821
  this.events.remove(i, "unload", this.onWindowUnload), this.documents.splice(o, 1), this.events.documents.splice(o, 1), this.fire("scope:remove-document", { doc: t, window: i, scope: this, options: c });
5807
5822
  } }, { key: "getDocIndex", value: function(t) {
5808
5823
  for (var o = 0; o < this.documents.length; o++) if (this.documents[o].doc === t) return o;
@@ -5817,9 +5832,9 @@ function Sc() {
5817
5832
  function Zr(n) {
5818
5833
  return n && n.replace(/\/.*$/, "");
5819
5834
  }
5820
- var Qr = new Vi(), Ae = Qr.interactStatic, Hi = typeof globalThis < "u" ? globalThis : window;
5821
- Qr.init(Hi);
5822
- var Bi = Object.freeze({ __proto__: null, edgeTarget: function() {
5835
+ var Qr = new Vi(), Ae = Qr.interactStatic, Bi = typeof globalThis < "u" ? globalThis : window;
5836
+ Qr.init(Bi);
5837
+ var Hi = Object.freeze({ __proto__: null, edgeTarget: function() {
5823
5838
  }, elements: function() {
5824
5839
  }, grid: function(n) {
5825
5840
  var t = [["x", "y"], ["left", "top"], ["right", "bottom"], ["width", "height"]].filter(function(i) {
@@ -5835,7 +5850,7 @@ function Sc() {
5835
5850
  return o.grid = n, o.coordFields = t, o;
5836
5851
  } }), Yi = { id: "snappers", install: function(n) {
5837
5852
  var t = n.interactStatic;
5838
- t.snappers = Q(t.snappers || {}, Bi), t.createSnapGrid = t.snappers.grid;
5853
+ t.snappers = Q(t.snappers || {}, Hi), t.createSnapGrid = t.snappers.grid;
5839
5854
  } }, Xi = Yi, Ui = { start: function(n) {
5840
5855
  var t = n.state, o = n.rect, i = n.edges, c = n.pageCoords, f = t.options, d = f.ratio, h = f.enabled, v = t.options, E = v.equalDelta, y = v.modifiers;
5841
5856
  d === "preserve" && (d = o.width / o.height), t.startCoords = Q({}, c), t.startRect = Q({}, o), t.ratio = d, t.equalDelta = E;
@@ -5877,7 +5892,7 @@ function Sc() {
5877
5892
  function ot(n, t, o) {
5878
5893
  return w.func(n) ? Ie(n, t.interactable, t.element, [o.x, o.y, t]) : Ie(n, t.interactable, t.element);
5879
5894
  }
5880
- var Ht = { start: function(n) {
5895
+ var Bt = { start: function(n) {
5881
5896
  var t = n.rect, o = n.startOffset, i = n.state, c = n.interaction, f = n.pageCoords, d = i.options, h = d.elementRect, v = Q({ left: 0, top: 0, right: 0, bottom: 0 }, d.offset || {});
5882
5897
  if (t && h) {
5883
5898
  var E = ot(d.restriction, c, f);
@@ -5896,7 +5911,7 @@ function Sc() {
5896
5911
  }(d);
5897
5912
  t.x = Math.max(Math.min(h.right - f.right, t.x), h.left + f.left), t.y = Math.max(Math.min(h.bottom - f.bottom, t.y), h.top + f.top);
5898
5913
  }
5899
- }, defaults: { restriction: null, elementRect: null, offset: null, endOnly: !1, enabled: !1 } }, Ki = Ke(Ht, "restrict"), to = { top: 1 / 0, left: 1 / 0, bottom: -1 / 0, right: -1 / 0 }, no = { top: -1 / 0, left: -1 / 0, bottom: 1 / 0, right: 1 / 0 };
5914
+ }, defaults: { restriction: null, elementRect: null, offset: null, endOnly: !1, enabled: !1 } }, Ki = Ke(Bt, "restrict"), to = { top: 1 / 0, left: 1 / 0, bottom: -1 / 0, right: -1 / 0 }, no = { top: -1 / 0, left: -1 / 0, bottom: 1 / 0, right: 1 / 0 };
5900
5915
  function ro(n, t) {
5901
5916
  for (var o = 0, i = ["top", "left", "bottom", "right"]; o < i.length; o++) {
5902
5917
  var c = i[o];
@@ -5906,7 +5921,7 @@ function Sc() {
5906
5921
  }
5907
5922
  var xt = { noInner: to, noOuter: no, start: function(n) {
5908
5923
  var t, o = n.interaction, i = n.startOffset, c = n.state, f = c.options;
5909
- f && (t = Be(ot(f.offset, o, o.coords.start.page))), t = t || { x: 0, y: 0 }, c.offset = { top: t.y + i.top, left: t.x + i.left, bottom: t.y - i.bottom, right: t.x - i.right };
5924
+ f && (t = He(ot(f.offset, o, o.coords.start.page))), t = t || { x: 0, y: 0 }, c.offset = { top: t.y + i.top, left: t.x + i.left, bottom: t.y - i.bottom, right: t.x - i.right };
5910
5925
  }, set: function(n) {
5911
5926
  var t = n.coords, o = n.edges, i = n.interaction, c = n.state, f = c.offset, d = c.options;
5912
5927
  if (o) {
@@ -5916,7 +5931,7 @@ function Sc() {
5916
5931
  }, defaults: { inner: null, outer: null, offset: null, endOnly: !1, enabled: !1 } }, Ji = Ke(xt, "restrictEdges"), Zi = Q({ get elementRect() {
5917
5932
  return { top: 0, left: 0, bottom: 1, right: 1 };
5918
5933
  }, set elementRect(n) {
5919
- } }, Ht.defaults), Qi = Ke({ start: Ht.start, set: Ht.set, defaults: Zi }, "restrictRect"), es = { width: -1 / 0, height: -1 / 0 }, ts = { width: 1 / 0, height: 1 / 0 }, ns = Ke({ start: function(n) {
5934
+ } }, Bt.defaults), Qi = Ke({ start: Bt.start, set: Bt.set, defaults: Zi }, "restrictRect"), es = { width: -1 / 0, height: -1 / 0 }, ts = { width: 1 / 0, height: 1 / 0 }, ns = Ke({ start: function(n) {
5920
5935
  return xt.start(n);
5921
5936
  }, set: function(n) {
5922
5937
  var t = n.interaction, o = n.state, i = n.rect, c = n.edges, f = o.options;
@@ -5926,13 +5941,13 @@ function Sc() {
5926
5941
  }
5927
5942
  }, defaults: { min: null, max: null, endOnly: !1, enabled: !1 } }, "restrictSize"), kn = { start: function(n) {
5928
5943
  var t, o = n.interaction, i = n.interactable, c = n.element, f = n.rect, d = n.state, h = n.startOffset, v = d.options, E = v.offsetWithOrigin ? function($) {
5929
- var V = $.interaction.element, F = Be(Ie($.state.options.origin, null, null, [V])), X = F || $e($.interactable, V, $.interaction.prepared.name);
5944
+ var V = $.interaction.element, F = He(Ie($.state.options.origin, null, null, [V])), X = F || $e($.interactable, V, $.interaction.prepared.name);
5930
5945
  return X;
5931
5946
  }(n) : { x: 0, y: 0 };
5932
5947
  if (v.offset === "startCoords") t = { x: o.coords.start.page.x, y: o.coords.start.page.y };
5933
5948
  else {
5934
5949
  var y = Ie(v.offset, i, c, [o]);
5935
- (t = Be(y) || { x: 0, y: 0 }).x += E.x, t.y += E.y;
5950
+ (t = He(y) || { x: 0, y: 0 }).x += E.x, t.y += E.y;
5936
5951
  }
5937
5952
  var O = v.relativePoints;
5938
5953
  d.offsets = f && O && O.length ? O.map(function($, V) {
@@ -5950,7 +5965,7 @@ function Sc() {
5950
5965
  fe === 1 / 0 && ce.inRange && ce.range !== 1 / 0 && (Fe = !1), ce.target && !(Fe ? ce.inRange && fe !== 1 / 0 ? Pe / fe < ce.distance / ce.range : fe === 1 / 0 && ce.range !== 1 / 0 || Pe < ce.distance : !ce.inRange && Pe < ce.distance) || (ce.target = we, ce.distance = Pe, ce.range = fe, ce.inRange = Fe, ce.delta.x = be, ce.delta.y = Me);
5951
5966
  }
5952
5967
  return ce.inRange && (o.x = ce.target.x, o.y = ce.target.y), i.closest = ce, ce;
5953
- }, defaults: { range: 1 / 0, targets: null, offset: null, offsetWithOrigin: !0, origin: null, relativePoints: null, endOnly: !1, enabled: !1 } }, rs = Ke(kn, "snap"), Bt = { start: function(n) {
5968
+ }, defaults: { range: 1 / 0, targets: null, offset: null, offsetWithOrigin: !0, origin: null, relativePoints: null, endOnly: !1, enabled: !1 } }, rs = Ke(kn, "snap"), Ht = { start: function(n) {
5954
5969
  var t = n.state, o = n.edges, i = t.options;
5955
5970
  if (!o) return null;
5956
5971
  n.state = { options: { targets: null, relativePoints: [{ x: o.left ? 0 : 1, y: o.top ? 0 : 1 }], offset: i.offset || "self", origin: { x: 0, y: 0 }, range: i.range } }, t.targetFields = t.targetFields || [["width", "height"], ["x", "y"]], kn.start(n), t.offsets = n.state.offsets, n.state = t;
@@ -5972,10 +5987,10 @@ function Sc() {
5972
5987
  }
5973
5988
  var re = kn.set(n);
5974
5989
  return o.options = c, re;
5975
- }, defaults: { range: 1 / 0, targets: null, offset: null, endOnly: !1, enabled: !1 } }, os = Ke(Bt, "snapSize"), Cn = { aspectRatio: Wi, restrictEdges: Ji, restrict: Ki, restrictRect: Qi, restrictSize: ns, snapEdges: Ke({ start: function(n) {
5990
+ }, defaults: { range: 1 / 0, targets: null, offset: null, endOnly: !1, enabled: !1 } }, os = Ke(Ht, "snapSize"), Cn = { aspectRatio: Wi, restrictEdges: Ji, restrict: Ki, restrictRect: Qi, restrictSize: ns, snapEdges: Ke({ start: function(n) {
5976
5991
  var t = n.edges;
5977
- return t ? (n.state.targetFields = n.state.targetFields || [[t.left ? "left" : "right", t.top ? "top" : "bottom"]], Bt.start(n)) : null;
5978
- }, set: Bt.set, defaults: Q(ut(Bt.defaults), { targets: void 0, range: void 0, offset: { x: 0, y: 0 } }) }, "snapEdges"), snap: rs, snapSize: os, spring: Vt, avoid: Vt, transform: Vt, rubberband: Vt }, is = { id: "modifiers", install: function(n) {
5992
+ return t ? (n.state.targetFields = n.state.targetFields || [[t.left ? "left" : "right", t.top ? "top" : "bottom"]], Ht.start(n)) : null;
5993
+ }, set: Ht.set, defaults: Q(ut(Ht.defaults), { targets: void 0, range: void 0, offset: { x: 0, y: 0 } }) }, "snapEdges"), snap: rs, snapSize: os, spring: Vt, avoid: Vt, transform: Vt, rubberband: Vt }, is = { id: "modifiers", install: function(n) {
5979
5994
  var t = n.interactStatic;
5980
5995
  for (var o in n.usePlugin(Fr), n.usePlugin(Xi), t.modifiers = Cn, Cn) {
5981
5996
  var i = Cn[o], c = i._defaults, f = i._methods;
@@ -6162,10 +6177,10 @@ function Sc() {
6162
6177
  V = function(ee, ce, xe, we, fe) {
6163
6178
  var be = ee.interactions.new({ pointerType: "reflow" }), Me = { interaction: be, event: fe, pointer: fe, eventTarget: xe, phase: "reflow" };
6164
6179
  be.interactable = ce, be.element = xe, be.prevEvent = fe, be.updatePointer(fe, fe, xe, !0), vr(be.coords.delta), xn(be.prepared, we), be._doPhase(Me);
6165
- var Pe = ee.window, Fe = Pe.Promise, He = Fe ? new Fe(function(Ue) {
6180
+ var Pe = ee.window, Fe = Pe.Promise, Be = Fe ? new Fe(function(Ue) {
6166
6181
  be._reflowResolve = Ue;
6167
6182
  }) : void 0;
6168
- return be._reflowPromise = He, be.start(we, ce, xe), be._interacting ? (be.move(Me), be.end(fe)) : (be.stop(), be._reflowResolve()), be.removePointer(fe, fe), He;
6183
+ return be._reflowPromise = Be, be.start(we, ce, xe), be._interacting ? (be.move(Me), be.end(fe)) : (be.stop(), be._reflowResolve()), be.removePointer(fe, fe), Be;
6169
6184
  }(f, i, O, c, re);
6170
6185
  }
6171
6186
  v && v.push(V);
@@ -6189,12 +6204,12 @@ function Sc() {
6189
6204
  });
6190
6205
  }(Wt)), Wt.exports;
6191
6206
  }
6192
- var Tc = /* @__PURE__ */ Sc();
6193
- const _c = /* @__PURE__ */ Po(Tc);
6207
+ var _c = /* @__PURE__ */ Tc();
6208
+ const Oc = /* @__PURE__ */ Po(_c);
6194
6209
  function Ge(e) {
6195
6210
  return e == null ? "" : typeof e == "string" || typeof e == "number" || typeof e == "boolean" ? String(e) : typeof e == "function" ? e.toString() : e instanceof Date ? e.toISOString() : e instanceof RegExp ? e.toString() : e instanceof Map ? JSON.stringify(Array.from(e.entries())) : e instanceof Set ? JSON.stringify(Array.from(e.values())) : e instanceof WeakMap || e instanceof WeakSet ? "" : e instanceof ArrayBuffer ? e.toString() : Array.isArray(e) ? JSON.stringify(e.map(Ge)) : typeof e == "object" ? JSON.stringify(Object.entries(e).sort(([r], [s]) => r.localeCompare(s))) : "";
6196
6211
  }
6197
- function Oc(e, {
6212
+ function Pc(e, {
6198
6213
  isEnabled: r = !0,
6199
6214
  onDragStart: s,
6200
6215
  onDragMove: a,
@@ -6206,24 +6221,24 @@ function Oc(e, {
6206
6221
  if (!r) return;
6207
6222
  const N = e.current;
6208
6223
  if (!N) return;
6209
- const T = _c(N).draggable({
6224
+ const T = Oc(N).draggable({
6210
6225
  inertia: !0,
6211
6226
  ...u,
6212
6227
  onstart: ({ client: P }) => {
6213
- const k = pe.make(P);
6228
+ const k = he.make(P);
6214
6229
  p.current?.(k);
6215
6230
  },
6216
6231
  onmove: ({ client: P, clientX0: k, clientY0: I, dx: R, dy: b }) => {
6217
- const j = pe.make(k, I), W = pe.make(P), q = pe.make(R, b);
6232
+ const j = he.make(k, I), W = he.make(P), q = he.make(R, b);
6218
6233
  g.current?.(q, W, j);
6219
6234
  },
6220
6235
  onend: ({ client: P, clientX0: k, clientY0: I }) => {
6221
- const R = pe.make(k, I), b = pe.make(P);
6236
+ const R = he.make(k, I), b = he.make(P);
6222
6237
  m.current?.(b, R);
6223
6238
  }
6224
6239
  });
6225
6240
  return () => {
6226
- T.unset(), m.current?.(pe.zero, pe.zero);
6241
+ T.unset(), m.current?.(he.zero, he.zero);
6227
6242
  };
6228
6243
  }, [r, Ge(u)]);
6229
6244
  }
@@ -6236,7 +6251,7 @@ function kt(e, {
6236
6251
  ...p
6237
6252
  }) {
6238
6253
  const g = Ee(r), [m, N] = Ne(!1), [T, P] = Ne(!1), [k, I] = Ne(r), R = Te(a), b = Te(l), j = Te(u), W = Te(s);
6239
- return Oc(e, {
6254
+ return Pc(e, {
6240
6255
  onDragStart: (S) => {
6241
6256
  N(!0), P(!1), R.current?.(S);
6242
6257
  },
@@ -6248,7 +6263,7 @@ function kt(e, {
6248
6263
  N(!1), P(!0), j.current?.(S, C);
6249
6264
  },
6250
6265
  ...p
6251
- }), he(() => {
6266
+ }), pe(() => {
6252
6267
  Eo(g, k);
6253
6268
  }, [k]), {
6254
6269
  isDragging: m,
@@ -6275,30 +6290,30 @@ const Zo = /* @__PURE__ */ _e(({
6275
6290
  onImageSizeChange: P,
6276
6291
  ...k
6277
6292
  }, I) => {
6278
- const R = ve((z, Y, U) => z - Y * r, [r]), b = Ee(null), j = tt(b), W = zo({ src: s }, {
6293
+ const R = ye((z, Y, U) => z - Y * r, [r]), b = Ee(null), j = tt(b), W = zo({ src: s }, {
6279
6294
  onLoadStart: m,
6280
6295
  onLoadComplete: N,
6281
6296
  onLoadError: T
6282
- }), [q, D] = Ne(e), { isDragging: B, value: S, setValue: C } = kt(b, {
6297
+ }), [q, D] = Ne(e), { isDragging: H, value: S, setValue: C } = kt(b, {
6283
6298
  initialValue: 0,
6284
6299
  transform: R,
6285
6300
  onDragStart: p,
6286
6301
  onDragEnd: g
6287
6302
  });
6288
- he(() => {
6289
- if (B || !W) return;
6290
- const z = kc(e, W, ye.size(j), a);
6303
+ pe(() => {
6304
+ if (H || !W) return;
6305
+ const z = Cc(e, W, me.size(j), a);
6291
6306
  z !== S && C(z), e !== q && D(e);
6292
- }, [e, W, j.width, j.height, a]), he(() => {
6293
- if (!B || !W) return;
6294
- const z = Cc(S, W, ye.size(j), a);
6307
+ }, [e, W, j.width, j.height, a]), pe(() => {
6308
+ if (!H || !W) return;
6309
+ const z = jc(S, W, me.size(j), a);
6295
6310
  q !== z && D(z);
6296
- }, [S, W, j.width, j.height, a]), he(() => {
6297
- l?.(q, B), u?.(q / 360, B);
6298
- }, [q]), he(() => {
6311
+ }, [S, W, j.width, j.height, a]), pe(() => {
6312
+ l?.(q, H), u?.(q / 360, H);
6313
+ }, [q]), pe(() => {
6299
6314
  P?.(W);
6300
6315
  }, [W?.width, W?.height]);
6301
- const w = Pc({ src: s, displacement: S });
6316
+ const w = kc({ src: s, displacement: S });
6302
6317
  return /* @__PURE__ */ x.jsx(
6303
6318
  "div",
6304
6319
  {
@@ -6310,7 +6325,7 @@ const Zo = /* @__PURE__ */ _e(({
6310
6325
  }
6311
6326
  );
6312
6327
  });
6313
- function Pc({ src: e = "", displacement: r = NaN }) {
6328
+ function kc({ src: e = "", displacement: r = NaN }) {
6314
6329
  return {
6315
6330
  body: {
6316
6331
  backgroundImage: `url(${e})`,
@@ -6329,18 +6344,18 @@ function Qo(e, r) {
6329
6344
  const p = l / a * s;
6330
6345
  return ze.make(p, l);
6331
6346
  }
6332
- function kc(e, r, s, a) {
6347
+ function Cc(e, r, s, a) {
6333
6348
  const { width: l } = Qo(r, s), { width: u } = s, p = u * a;
6334
6349
  return e / 360 * l - p;
6335
6350
  }
6336
- function Cc(e, r, s, a) {
6351
+ function jc(e, r, s, a) {
6337
6352
  const { width: l } = Qo(r, s), { width: u } = s, p = u * a;
6338
6353
  let g = (e + p) % l / l * 360;
6339
6354
  for (; g < 0; ) g += 360;
6340
6355
  return g;
6341
6356
  }
6342
6357
  process.env.NODE_ENV !== "production" && (Zo.displayName = "Panorama");
6343
- const jc = /* @__PURE__ */ _e(({
6358
+ const Ic = /* @__PURE__ */ _e(({
6344
6359
  className: e,
6345
6360
  style: r,
6346
6361
  angle: s = 0,
@@ -6361,22 +6376,22 @@ const jc = /* @__PURE__ */ _e(({
6361
6376
  onPositionChange: W,
6362
6377
  ...q
6363
6378
  }, D) => {
6364
- const B = Ee(null), S = tt(B), [C, w] = Ne(), [z, Y] = Ne(!1), ne = ve(() => {
6379
+ const H = Ee(null), S = tt(H), [C, w] = Ne(), [z, Y] = Ne(!1), ne = ye(() => {
6365
6380
  if (!C) return 0;
6366
6381
  const { width: _, height: M } = C;
6367
6382
  return M === 0 ? 0 : _ / M;
6368
- }, [C?.width, C?.height])(), H = ve(() => {
6383
+ }, [C?.width, C?.height])(), B = ye(() => {
6369
6384
  const _ = Math.min(360, Math.max(0, u ?? (m ? m.width / (m.height * ne) * 360 : 0)));
6370
6385
  return S.width * (_ / 360);
6371
- }, [m?.width, m?.height, ne, S.width, u])(), A = ve(() => S.width <= 0 ? N : ((S.width - H) * 0.5 + N * H) / S.width, [S.width, H, N])(), J = ve(() => {
6386
+ }, [m?.width, m?.height, ne, S.width, u])(), A = ye(() => S.width <= 0 ? N : ((S.width - B) * 0.5 + N * B) / S.width, [S.width, B, N])(), J = ye(() => {
6372
6387
  Y(!0), k?.();
6373
- }, [k]), Z = ve(() => {
6388
+ }, [k]), Z = ye(() => {
6374
6389
  Y(!1), P?.();
6375
6390
  }, [P]), ae = Le(l, {
6376
6391
  track: Kt,
6377
6392
  reticle: Qn,
6378
6393
  indicator: Zn
6379
- }), G = Ic({ autoDimension: a, panoramaRect: S, aspectRatio: ne, reticleWidth: H });
6394
+ }), G = $c({ autoDimension: a, panoramaRect: S, aspectRatio: ne, reticleWidth: B });
6380
6395
  return /* @__PURE__ */ x.jsxs(
6381
6396
  "div",
6382
6397
  {
@@ -6388,7 +6403,7 @@ const jc = /* @__PURE__ */ _e(({
6388
6403
  /* @__PURE__ */ x.jsx(
6389
6404
  Zo,
6390
6405
  {
6391
- ref: B,
6406
+ ref: H,
6392
6407
  angle: s,
6393
6408
  speed: p,
6394
6409
  src: g,
@@ -6414,7 +6429,7 @@ const jc = /* @__PURE__ */ _e(({
6414
6429
  }
6415
6430
  );
6416
6431
  }), Zn = ({ ...e }) => /* @__PURE__ */ x.jsx("div", { ...e }), Qn = ({ ...e }) => /* @__PURE__ */ x.jsx("div", { ...e }), Kt = ({ ...e }) => /* @__PURE__ */ x.jsx("div", { ...e });
6417
- function Ic({ autoDimension: e = "width", panoramaRect: r = ye.zero, aspectRatio: s = 0, reticleWidth: a = 0 }) {
6432
+ function $c({ autoDimension: e = "width", panoramaRect: r = me.zero, aspectRatio: s = 0, reticleWidth: a = 0 }) {
6418
6433
  return {
6419
6434
  root: {
6420
6435
  ...e === "width" ? {
@@ -6458,8 +6473,8 @@ function Ic({ autoDimension: e = "width", panoramaRect: r = ye.zero, aspectRatio
6458
6473
  }
6459
6474
  };
6460
6475
  }
6461
- process.env.NODE_ENV !== "production" && (jc.displayName = "PanoramaSlider", Zn.displayName = "PanoramaSliderIndicator", Qn.displayName = "PanoramaSliderReticle", Kt.displayName = "PanoramaSliderTrack");
6462
- const $c = /* @__PURE__ */ _e(({
6476
+ process.env.NODE_ENV !== "production" && (Ic.displayName = "PanoramaSlider", Zn.displayName = "PanoramaSliderIndicator", Qn.displayName = "PanoramaSliderReticle", Kt.displayName = "PanoramaSliderTrack");
6477
+ const Ac = /* @__PURE__ */ _e(({
6463
6478
  children: e,
6464
6479
  className: r,
6465
6480
  decimalPlaces: s = 2,
@@ -6475,34 +6490,34 @@ const $c = /* @__PURE__ */ _e(({
6475
6490
  onChange: k,
6476
6491
  ...I
6477
6492
  }, R) => {
6478
- const b = Ee(null), j = tt(b), W = Ee(null), q = Ee(null), [D, B] = Ne(T ?? [m, g]), S = Dc(m, g, P), [C, w] = D.map((te) => it(te, m, g, N, j, p, l, a)), z = w - C, Y = Le(e, {
6493
+ const b = Ee(null), j = tt(b), W = Ee(null), q = Ee(null), [D, H] = Ne(T ?? [m, g]), S = Vc(m, g, P), [C, w] = D.map((te) => it(te, m, g, N, j, p, l, a)), z = w - C, Y = Le(e, {
6479
6494
  gutter: er,
6480
6495
  highlight: tr,
6481
6496
  knob: Zt,
6482
6497
  knobContainer: zn,
6483
6498
  label: Jt
6484
- }), U = ve((te, oe, ue) => {
6485
- const se = N === "horizontal" ? oe : ue, Se = it(m, m, g, N, j, p, l, a), Oe = it(D[1], m, g, N, j, p, l, a), me = it(te, m, g, N, j, p, l, a) + se;
6486
- return No(Math.max(Se, Math.min(Oe, me)), m, g, N, j, p, l, a);
6487
- }, [p, l, a, m, g, N, D[1], ye.toString(j)]), ne = ve((te, oe, ue) => {
6488
- const se = N === "horizontal" ? oe : ue, Se = it(D[0], m, g, N, j, p, l, a), Oe = it(g, m, g, N, j, p, l, a), me = it(te, m, g, N, j, p, l, a) + se;
6489
- return No(Math.max(Se, Math.min(Oe, me)), m, g, N, j, p, l, a);
6490
- }, [p, l, a, m, g, N, D[0], ye.toString(j)]), { isDragging: K, isReleasing: H, value: L, setValue: A } = kt(W, {
6499
+ }), U = ye((te, oe, ue) => {
6500
+ const se = N === "horizontal" ? oe : ue, Se = it(m, m, g, N, j, p, l, a), Oe = it(D[1], m, g, N, j, p, l, a), ve = it(te, m, g, N, j, p, l, a) + se;
6501
+ return No(Math.max(Se, Math.min(Oe, ve)), m, g, N, j, p, l, a);
6502
+ }, [p, l, a, m, g, N, D[1], me.toString(j)]), ne = ye((te, oe, ue) => {
6503
+ const se = N === "horizontal" ? oe : ue, Se = it(D[0], m, g, N, j, p, l, a), Oe = it(g, m, g, N, j, p, l, a), ve = it(te, m, g, N, j, p, l, a) + se;
6504
+ return No(Math.max(Se, Math.min(Oe, ve)), m, g, N, j, p, l, a);
6505
+ }, [p, l, a, m, g, N, D[0], me.toString(j)]), { isDragging: K, isReleasing: B, value: L, setValue: A } = kt(W, {
6491
6506
  initialValue: T?.[0] ?? m,
6492
6507
  transform: U
6493
6508
  }), { isDragging: J, isReleasing: Z, value: ae, setValue: G } = kt(q, {
6494
6509
  initialValue: T?.[1] ?? g,
6495
6510
  transform: ne
6496
- }), _ = Ac({ isDraggingEndKnob: J, isDraggingStartKnob: K, isReleasingEndKnob: Z, isReleasingStartKnob: H }), M = Mc({ orientation: N, highlightLength: z, start: C, knobPadding: u, knobWidth: p, knobHeight: l });
6497
- return he(() => {
6498
- B([L, ae]);
6499
- }, [L, ae]), he(() => {
6511
+ }), _ = Mc({ isDraggingEndKnob: J, isDraggingStartKnob: K, isReleasingEndKnob: Z, isReleasingStartKnob: B }), M = Rc({ orientation: N, highlightLength: z, start: C, knobPadding: u, knobWidth: p, knobHeight: l });
6512
+ return pe(() => {
6513
+ H([L, ae]);
6514
+ }, [L, ae]), pe(() => {
6500
6515
  k?.(D);
6501
- }, [D[0], D[1]]), he(() => {
6502
- K || J || Z || qe(T, D) || (B(T ?? [m, g]), A(T?.[0] ?? m), G(T?.[1] ?? g));
6503
- }, [T?.[0], T?.[1], K, J, Z]), he(() => {
6516
+ }, [D[0], D[1]]), pe(() => {
6517
+ K || J || Z || qe(T, D) || (H(T ?? [m, g]), A(T?.[0] ?? m), G(T?.[1] ?? g));
6518
+ }, [T?.[0], T?.[1], K, J, Z]), pe(() => {
6504
6519
  S && A(So(L, S));
6505
- }, [H, Ge(S)]), he(() => {
6520
+ }, [B, Ge(S)]), pe(() => {
6506
6521
  !S || !Z || G(So(ae, S));
6507
6522
  }, [Z, Ge(S)]), /* @__PURE__ */ x.jsx(
6508
6523
  "div",
@@ -6564,7 +6579,7 @@ const $c = /* @__PURE__ */ _e(({
6564
6579
  }
6565
6580
  );
6566
6581
  }), er = ({ ...e }) => /* @__PURE__ */ x.jsx("div", { ...e }), Jt = ({ ...e }) => /* @__PURE__ */ x.jsx("div", { ...e }), tr = ({ ...e }) => /* @__PURE__ */ x.jsx("div", { ...e }), Zt = ({ ...e }) => /* @__PURE__ */ x.jsx("div", { ...e }), zn = ({ ...e }) => /* @__PURE__ */ x.jsx("button", { ...e });
6567
- function Ac({ isDraggingStartKnob: e = !1, isReleasingStartKnob: r = !1, isDraggingEndKnob: s = !1, isReleasingEndKnob: a = !1 }) {
6582
+ function Mc({ isDraggingStartKnob: e = !1, isReleasingStartKnob: r = !1, isDraggingEndKnob: s = !1, isReleasingEndKnob: a = !1 }) {
6568
6583
  return {
6569
6584
  startKnobContainer: ie({
6570
6585
  dragging: e,
@@ -6592,7 +6607,7 @@ function Ac({ isDraggingStartKnob: e = !1, isReleasingStartKnob: r = !1, isDragg
6592
6607
  })
6593
6608
  };
6594
6609
  }
6595
- function Mc({ orientation: e = "horizontal", knobWidth: r = 0, knobHeight: s = 0, highlightLength: a = 0, start: l = 0, knobPadding: u = 0 }) {
6610
+ function Rc({ orientation: e = "horizontal", knobWidth: r = 0, knobHeight: s = 0, highlightLength: a = 0, start: l = 0, knobPadding: u = 0 }) {
6596
6611
  return {
6597
6612
  body: {
6598
6613
  height: "100%",
@@ -6649,10 +6664,10 @@ function Mc({ orientation: e = "horizontal", knobWidth: r = 0, knobHeight: s = 0
6649
6664
  }
6650
6665
  };
6651
6666
  }
6652
- function Rc(e, r, s) {
6667
+ function zc(e, r, s) {
6653
6668
  return (e - r) / (s - r);
6654
6669
  }
6655
- function zc(e, r, s, a, l, u) {
6670
+ function Lc(e, r, s, a, l, u) {
6656
6671
  switch (r) {
6657
6672
  case "horizontal": {
6658
6673
  const p = u ? s.width - a : s.width;
@@ -6666,14 +6681,14 @@ function zc(e, r, s, a, l, u) {
6666
6681
  return console.error(`[etudes::RangeSlider] Invalid orientation: ${r}`), NaN;
6667
6682
  }
6668
6683
  }
6669
- function Lc(e, r, s) {
6684
+ function Fc(e, r, s) {
6670
6685
  return e * (s - r) + r;
6671
6686
  }
6672
6687
  function No(e, r, s, a, l, u, p, g) {
6673
- const m = zc(e, a, l, u, p, g);
6674
- return Lc(m, r, s);
6688
+ const m = Lc(e, a, l, u, p, g);
6689
+ return Fc(m, r, s);
6675
6690
  }
6676
- function Fc(e, r, s, a, l, u) {
6691
+ function Dc(e, r, s, a, l, u) {
6677
6692
  switch (r) {
6678
6693
  case "horizontal": {
6679
6694
  const p = u ? s.width - a : s.width;
@@ -6688,8 +6703,8 @@ function Fc(e, r, s, a, l, u) {
6688
6703
  }
6689
6704
  }
6690
6705
  function it(e, r, s, a, l, u, p, g) {
6691
- const m = Rc(e, r, s);
6692
- return Fc(m, a, l, u, p, g);
6706
+ const m = zc(e, r, s);
6707
+ return Dc(m, a, l, u, p, g);
6693
6708
  }
6694
6709
  function So(e, r) {
6695
6710
  const s = r.length;
@@ -6700,7 +6715,7 @@ function So(e, r) {
6700
6715
  }
6701
6716
  return r[a];
6702
6717
  }
6703
- function Dc(e, r, s) {
6718
+ function Vc(e, r, s) {
6704
6719
  if (!(s < 0))
6705
6720
  return [
6706
6721
  e,
@@ -6708,8 +6723,8 @@ function Dc(e, r, s) {
6708
6723
  r
6709
6724
  ];
6710
6725
  }
6711
- process.env.NODE_ENV !== "production" && ($c.displayName = "RangeSlider", er.displayName = "RangeSliderGutter", Jt.displayName = "RangeSliderLabel", tr.displayName = "RangeSliderHighlight", Zt.displayName = "RangeSliderKnob");
6712
- const Vc = _e(({
6726
+ process.env.NODE_ENV !== "production" && (Ac.displayName = "RangeSlider", er.displayName = "RangeSliderGutter", Jt.displayName = "RangeSliderLabel", tr.displayName = "RangeSliderHighlight", Zt.displayName = "RangeSliderKnob");
6727
+ const Bc = _e(({
6713
6728
  children: e,
6714
6729
  id: r,
6715
6730
  isRequired: s = !1,
@@ -6766,7 +6781,7 @@ const Vc = _e(({
6766
6781
  zIndex: 1
6767
6782
  }
6768
6783
  };
6769
- process.env.NODE_ENV !== "production" && (Vc.displayName = "Select", ei.displayName = "SelectExpandIcon", Qt.displayName = "SelectOption", nr.displayName = "SelectToggle");
6784
+ process.env.NODE_ENV !== "production" && (Bc.displayName = "Select", ei.displayName = "SelectExpandIcon", Qt.displayName = "SelectOption", nr.displayName = "SelectToggle");
6770
6785
  const Hc = /* @__PURE__ */ _e(({
6771
6786
  children: e,
6772
6787
  className: r,
@@ -6803,7 +6818,7 @@ const Hc = /* @__PURE__ */ _e(({
6803
6818
  );
6804
6819
  });
6805
6820
  process.env.NODE_ENV !== "production" && (Hc.displayName = "SelectableButton");
6806
- const Bc = /* @__PURE__ */ _e(({
6821
+ const Yc = /* @__PURE__ */ _e(({
6807
6822
  children: e,
6808
6823
  className: r,
6809
6824
  isClipped: s = !1,
@@ -6822,8 +6837,8 @@ const Bc = /* @__PURE__ */ _e(({
6822
6837
  onChange: b,
6823
6838
  ...j
6824
6839
  }, W) => {
6825
- const q = Ee(null), D = Ee(null), B = ve((J, Z, ae) => {
6826
- const G = ye.from(q.current) ?? ye.zero, _ = a ? 1 - J : J;
6840
+ const q = Ee(null), D = Ee(null), H = ye((J, Z, ae) => {
6841
+ const G = me.from(q.current) ?? me.zero, _ = a ? 1 - J : J;
6827
6842
  switch (N) {
6828
6843
  case "horizontal": {
6829
6844
  const M = s ? G.width - g : G.width, te = _ * M + Z, oe = Math.max(0, Math.min(1, te / M));
@@ -6836,9 +6851,9 @@ const Bc = /* @__PURE__ */ _e(({
6836
6851
  default:
6837
6852
  return console.error(`[etudes::Slider] Invalid orientation: ${N}`), NaN;
6838
6853
  }
6839
- }, [q.current, s, a, g, u, N]), S = ve((J) => {
6854
+ }, [q.current, s, a, g, u, N]), S = ye((J) => {
6840
6855
  if (!l) return;
6841
- const Z = ye.from(q.current) ?? ye.zero, ae = ye.fromViewport();
6856
+ const Z = me.from(q.current) ?? me.zero, ae = me.fromViewport();
6842
6857
  switch (N) {
6843
6858
  case "horizontal": {
6844
6859
  const G = (J.clientX + ae.left - Z.left) / Z.width, _ = a ? 1 - G : G;
@@ -6855,15 +6870,15 @@ const Bc = /* @__PURE__ */ _e(({
6855
6870
  }
6856
6871
  }, [q.current, a, l, N]), { isDragging: C, isReleasing: w, value: z, setValue: Y } = kt(D, {
6857
6872
  initialValue: T,
6858
- transform: B,
6873
+ transform: H,
6859
6874
  onDragStart: R,
6860
6875
  onDragEnd: I
6861
- }), U = a ? 1 - z : z, H = Yc({ orientation: N, isAtEnd: a ? z === 0 : z === 1, isAtStart: a ? z === 1 : z === 0, isDragging: C, isReleasing: w }), L = Xc({ orientation: N, isClipped: s, naturalPosition: U, knobPadding: p, knobHeight: u, knobWidth: g, isTrackInteractive: l });
6862
- he(() => {
6876
+ }), U = a ? 1 - z : z, B = Xc({ orientation: N, isAtEnd: a ? z === 0 : z === 1, isAtStart: a ? z === 1 : z === 0, isDragging: C, isReleasing: w }), L = Uc({ orientation: N, isClipped: s, naturalPosition: U, knobPadding: p, knobHeight: u, knobWidth: g, isTrackInteractive: l });
6877
+ pe(() => {
6863
6878
  C || T === z || Y(T);
6864
- }, [T]), he(() => {
6879
+ }, [T]), pe(() => {
6865
6880
  C && m || b?.(z, C);
6866
- }, [z]), he(() => {
6881
+ }, [z]), pe(() => {
6867
6882
  C || !m || b?.(z, !0);
6868
6883
  }, [C]);
6869
6884
  const A = Le(e, {
@@ -6879,7 +6894,7 @@ const Bc = /* @__PURE__ */ _e(({
6879
6894
  ref: W,
6880
6895
  "aria-orientation": N,
6881
6896
  "aria-valuenow": z,
6882
- className: ie(r, H.root),
6897
+ className: ie(r, B.root),
6883
6898
  role: "slider",
6884
6899
  children: /* @__PURE__ */ x.jsxs("div", { ref: q, style: L.body, children: [
6885
6900
  /* @__PURE__ */ x.jsx(
@@ -6916,12 +6931,12 @@ const Bc = /* @__PURE__ */ _e(({
6916
6931
  ge,
6917
6932
  {
6918
6933
  ref: D,
6919
- className: ie(H.knobContainer),
6934
+ className: ie(B.knobContainer),
6920
6935
  element: A.knobContainer ?? /* @__PURE__ */ x.jsx(or, {}),
6921
6936
  style: L.knobContainer,
6922
- children: /* @__PURE__ */ x.jsxs(ge, { className: ie(H.knob), element: A.knob ?? /* @__PURE__ */ x.jsx(rr, {}), style: le(L.knob), children: [
6937
+ children: /* @__PURE__ */ x.jsxs(ge, { className: ie(B.knob), element: A.knob ?? /* @__PURE__ */ x.jsx(rr, {}), style: le(L.knob), children: [
6923
6938
  /* @__PURE__ */ x.jsx("div", { style: L.knobHitBox }),
6924
- k && /* @__PURE__ */ x.jsx(ge, { className: ie(H.label), element: A.label ?? /* @__PURE__ */ x.jsx(ir, {}), style: le(L.label), children: k(z) })
6939
+ k && /* @__PURE__ */ x.jsx(ge, { className: ie(B.label), element: A.label ?? /* @__PURE__ */ x.jsx(ir, {}), style: le(L.label), children: k(z) })
6925
6940
  ] })
6926
6941
  }
6927
6942
  )
@@ -6929,7 +6944,7 @@ const Bc = /* @__PURE__ */ _e(({
6929
6944
  }
6930
6945
  );
6931
6946
  }), en = ({ ...e }) => /* @__PURE__ */ x.jsx("div", { ...e }), rr = ({ ...e }) => /* @__PURE__ */ x.jsx("div", { ...e }), or = ({ ...e }) => /* @__PURE__ */ x.jsx("button", { ...e }), ir = ({ ...e }) => /* @__PURE__ */ x.jsx("div", { ...e });
6932
- function Yc({ orientation: e = "vertical", isAtEnd: r = !1, isAtStart: s = !1, isDragging: a = !1, isReleasing: l = !1 }) {
6947
+ function Xc({ orientation: e = "vertical", isAtEnd: r = !1, isAtStart: s = !1, isDragging: a = !1, isReleasing: l = !1 }) {
6933
6948
  return {
6934
6949
  root: ie(e, {
6935
6950
  "at-end": r,
@@ -6963,7 +6978,7 @@ function Yc({ orientation: e = "vertical", isAtEnd: r = !1, isAtStart: s = !1, i
6963
6978
  })
6964
6979
  };
6965
6980
  }
6966
- function Xc({ orientation: e = "vertical", isClipped: r = !1, naturalPosition: s = 0, knobPadding: a = 0, knobHeight: l = 0, knobWidth: u = 0, isTrackInteractive: p = !0 }) {
6981
+ function Uc({ orientation: e = "vertical", isClipped: r = !1, naturalPosition: s = 0, knobPadding: a = 0, knobHeight: l = 0, knobWidth: u = 0, isTrackInteractive: p = !0 }) {
6967
6982
  return {
6968
6983
  body: {
6969
6984
  height: "100%",
@@ -7028,8 +7043,8 @@ function Xc({ orientation: e = "vertical", isClipped: r = !1, naturalPosition: s
7028
7043
  }
7029
7044
  };
7030
7045
  }
7031
- process.env.NODE_ENV !== "production" && (Bc.displayName = "Slider", en.displayName = "SliderTrack", rr.displayName = "SliderKnob", or.displayName = "SliderKnobContainer", ir.displayName = "SliderLabel");
7032
- const Uc = /* @__PURE__ */ _e(({
7046
+ process.env.NODE_ENV !== "production" && (Yc.displayName = "Slider", en.displayName = "SliderTrack", rr.displayName = "SliderKnob", or.displayName = "SliderKnobContainer", ir.displayName = "SliderLabel");
7047
+ const qc = /* @__PURE__ */ _e(({
7033
7048
  children: e,
7034
7049
  className: r,
7035
7050
  index: s = 0,
@@ -7042,7 +7057,7 @@ const Uc = /* @__PURE__ */ _e(({
7042
7057
  labelProvider: N,
7043
7058
  onlyDispatchesOnDragEnd: T = !1,
7044
7059
  orientation: P = "vertical",
7045
- steps: k = qc(10),
7060
+ steps: k = Gc(10),
7046
7061
  trackPadding: I = 0,
7047
7062
  onDragEnd: R,
7048
7063
  onDragStart: b,
@@ -7050,7 +7065,7 @@ const Uc = /* @__PURE__ */ _e(({
7050
7065
  onPositionChange: W,
7051
7066
  ...q
7052
7067
  }, D) => {
7053
- const B = Ee(null), S = Ee(null), C = tt(B), [w, z] = Ne(s), Y = ve((M, te, oe) => {
7068
+ const H = Ee(null), S = Ee(null), C = tt(H), [w, z] = Ne(s), Y = ye((M, te, oe) => {
7054
7069
  const ue = l ? Qe(M) : M;
7055
7070
  switch (P) {
7056
7071
  case "horizontal": {
@@ -7064,14 +7079,14 @@ const Uc = /* @__PURE__ */ _e(({
7064
7079
  default:
7065
7080
  return console.error(`[etudes::StepSlider] Invalid orientation: ${P}`), NaN;
7066
7081
  }
7067
- }, [C.width, C.height, a, l, m, p, P]), { isDragging: U, isReleasing: ne, value: K, setValue: H } = kt(S, {
7082
+ }, [C.width, C.height, a, l, m, p, P]), { isDragging: U, isReleasing: ne, value: K, setValue: B } = kt(S, {
7068
7083
  initialValue: ft(s, k),
7069
7084
  transform: Y,
7070
7085
  onDragStart: b,
7071
7086
  onDragEnd: R
7072
- }), L = ve((M) => {
7087
+ }), L = ye((M) => {
7073
7088
  if (!u) return;
7074
- const te = ye.fromViewport();
7089
+ const te = me.fromViewport();
7075
7090
  switch (P) {
7076
7091
  case "horizontal": {
7077
7092
  const oe = (M.clientX + te.left - C.left) / C.width, ue = l ? Qe(oe) : oe, se = _t(ue, k);
@@ -7086,35 +7101,35 @@ const Uc = /* @__PURE__ */ _e(({
7086
7101
  const oe = (M.clientY + te.top - C.top) / C.height, ue = l ? Qe(oe) : oe, se = _t(ue, k);
7087
7102
  if (se === w) {
7088
7103
  const Se = ue > K ? se + 1 : se - 1, Oe = ft(Se, k);
7089
- H(Oe), z(qt(Se, k.length - 1));
7104
+ B(Oe), z(qt(Se, k.length - 1));
7090
7105
  } else {
7091
7106
  const Se = ft(se, k);
7092
- H(Se), z(se);
7107
+ B(Se), z(se);
7093
7108
  }
7094
7109
  break;
7095
7110
  }
7096
7111
  default:
7097
7112
  console.error(`[etudes::StepSlider] Invalid orientation: ${P}`);
7098
7113
  }
7099
- }, [C.width, C.height, K, l, u, P, Ge(k)]), A = l ? Qe(K) : K, ae = Gc({ orientation: P, isAtEnd: l ? K === 0 : K === 1, isAtStart: l ? K === 1 : K === 0, isDragging: U, isReleasing: ne }), G = Wc({ orientation: P, naturalPosition: A, isClipped: a, knobPadding: g, knobHeight: p, knobWidth: m, isTrackInteractive: u }), _ = Le(e, {
7114
+ }, [C.width, C.left, C.top, C.height, w, K, l, u, P, Ge(k)]), A = l ? Qe(K) : K, ae = Wc({ orientation: P, isAtEnd: l ? K === 0 : K === 1, isAtStart: l ? K === 1 : K === 0, isDragging: U, isReleasing: ne }), G = Kc({ orientation: P, naturalPosition: A, isClipped: a, knobPadding: g, knobHeight: p, knobWidth: m, isTrackInteractive: u }), _ = Le(e, {
7100
7115
  knob: sr,
7101
7116
  knobContainer: ar,
7102
7117
  label: cr,
7103
7118
  track: tn
7104
7119
  });
7105
- return he(() => {
7106
- U || (H(ft(s, k)), z(s));
7107
- }, [s, U, Ge(k)]), he(() => {
7120
+ return pe(() => {
7121
+ U || (B(ft(s, k)), z(s));
7122
+ }, [s, U, Ge(k)]), pe(() => {
7108
7123
  if (U) {
7109
7124
  if (T) return;
7110
7125
  z(_t(K, k));
7111
7126
  } else {
7112
7127
  const M = _t(K, k), te = ft(M, k);
7113
- H(te), z(M);
7128
+ B(te), z(M);
7114
7129
  }
7115
- }, [K, U, T, Ge(k)]), he(() => {
7130
+ }, [K, U, T, Ge(k)]), pe(() => {
7116
7131
  W?.(K, U);
7117
- }, [K, U]), he(() => {
7132
+ }, [K, U]), pe(() => {
7118
7133
  j?.(w, U);
7119
7134
  }, [w, U]), /* @__PURE__ */ x.jsx(
7120
7135
  "div",
@@ -7124,7 +7139,7 @@ const Uc = /* @__PURE__ */ _e(({
7124
7139
  "aria-valuenow": w,
7125
7140
  className: ie(r, ae.root),
7126
7141
  role: "slider",
7127
- children: /* @__PURE__ */ x.jsxs("div", { ref: B, style: G.body, children: [
7142
+ children: /* @__PURE__ */ x.jsxs("div", { ref: H, style: G.body, children: [
7128
7143
  /* @__PURE__ */ x.jsx(
7129
7144
  ge,
7130
7145
  {
@@ -7174,7 +7189,7 @@ const Uc = /* @__PURE__ */ _e(({
7174
7189
  }
7175
7190
  );
7176
7191
  }), sr = ({ ...e }) => /* @__PURE__ */ x.jsx("div", { ...e }), ar = ({ ...e }) => /* @__PURE__ */ x.jsx("button", { ...e }), cr = ({ ...e }) => /* @__PURE__ */ x.jsx("div", { ...e }), tn = ({ ...e }) => /* @__PURE__ */ x.jsx("div", { ...e });
7177
- function qc(e) {
7192
+ function Gc(e) {
7178
7193
  if (e <= 1)
7179
7194
  return console.error("[etudes::StepSlider] `length` value must be greater than or equal to 2"), [];
7180
7195
  if (Math.round(e) !== e)
@@ -7195,7 +7210,7 @@ function _t(e, r) {
7195
7210
  function ft(e, r) {
7196
7211
  return e >= r.length ? NaN : r[e];
7197
7212
  }
7198
- function Gc({ orientation: e = "vertical", isAtEnd: r = !1, isAtStart: s = !1, isDragging: a = !1, isReleasing: l = !1 }) {
7213
+ function Wc({ orientation: e = "vertical", isAtEnd: r = !1, isAtStart: s = !1, isDragging: a = !1, isReleasing: l = !1 }) {
7199
7214
  return {
7200
7215
  root: ie(e, {
7201
7216
  "at-end": r,
@@ -7229,7 +7244,7 @@ function Gc({ orientation: e = "vertical", isAtEnd: r = !1, isAtStart: s = !1, i
7229
7244
  })
7230
7245
  };
7231
7246
  }
7232
- function Wc({ orientation: e = "vertical", naturalPosition: r = 0, isClipped: s = !1, knobPadding: a = 0, knobHeight: l = 0, knobWidth: u = 0, isTrackInteractive: p = !1 }) {
7247
+ function Kc({ orientation: e = "vertical", naturalPosition: r = 0, isClipped: s = !1, knobPadding: a = 0, knobHeight: l = 0, knobWidth: u = 0, isTrackInteractive: p = !1 }) {
7233
7248
  return {
7234
7249
  body: {
7235
7250
  height: "100%",
@@ -7300,8 +7315,8 @@ function Qe(e) {
7300
7315
  function qt(e, r = 1, s = 0) {
7301
7316
  return Math.max(s, Math.min(r, e));
7302
7317
  }
7303
- process.env.NODE_ENV !== "production" && (Uc.displayName = "StepSlider", tn.displayName = "StepSliderTrack", sr.displayName = "StepSliderKnob", ar.displayName = "StepSliderKnobContainer", cr.displayName = "StepSliderLabel");
7304
- const Kc = /* @__PURE__ */ _e(({
7318
+ process.env.NODE_ENV !== "production" && (qc.displayName = "StepSlider", tn.displayName = "StepSliderTrack", sr.displayName = "StepSliderKnob", ar.displayName = "StepSliderKnobContainer", cr.displayName = "StepSliderLabel");
7319
+ const Jc = /* @__PURE__ */ _e(({
7305
7320
  children: e,
7306
7321
  isEnabled: r = !0,
7307
7322
  threshold: s = 0.5,
@@ -7311,18 +7326,18 @@ const Kc = /* @__PURE__ */ _e(({
7311
7326
  onSwipeUp: p,
7312
7327
  ...g
7313
7328
  }, m) => {
7314
- const [N, T] = Ne(void 0), [P, k] = Ne(void 0), [I, R] = Ne(NaN), b = (D, B) => {
7315
- if (isNaN(D) || isNaN(B)) return q();
7316
- T(pe.make(D, B));
7317
- }, j = (D, B) => {
7329
+ const [N, T] = Ne(void 0), [P, k] = Ne(void 0), [I, R] = Ne(NaN), b = (D, H) => {
7330
+ if (isNaN(D) || isNaN(H)) return q();
7331
+ T(he.make(D, H));
7332
+ }, j = (D, H) => {
7318
7333
  const S = N;
7319
7334
  if (S === void 0) return;
7320
- const C = S.x !== D || S.y !== B, w = !isNaN(I);
7321
- C && (w || R(Date.now()), k(pe.make(D, B)));
7335
+ const C = S.x !== D || S.y !== H, w = !isNaN(I);
7336
+ C && (w || R(Date.now()), k(he.make(D, H)));
7322
7337
  }, W = () => {
7323
- const D = I, B = N, S = P;
7324
- if (isNaN(D) || B === void 0 || S === void 0) return;
7325
- const C = Date.now() - D, w = S.x - B.x, z = S.y - B.y, Y = w / C, U = z / C;
7338
+ const D = I, H = N, S = P;
7339
+ if (isNaN(D) || H === void 0 || S === void 0) return;
7340
+ const C = Date.now() - D, w = S.x - H.x, z = S.y - H.y, Y = w / C, U = z / C;
7326
7341
  r && (Math.abs(Y) >= s && Math.abs(Y) > Math.abs(U) ? Y > 0 ? u?.() : l?.() : Math.abs(U) >= s && Math.abs(U) > Math.abs(Y) && (U > 0 ? a?.() : p?.())), q();
7327
7342
  }, q = () => {
7328
7343
  T(void 0), k(void 0), R(NaN);
@@ -7343,8 +7358,8 @@ const Kc = /* @__PURE__ */ _e(({
7343
7358
  }
7344
7359
  );
7345
7360
  });
7346
- process.env.NODE_ENV !== "production" && (Kc.displayName = "SwipeRegion");
7347
- const Jc = _e(({
7361
+ process.env.NODE_ENV !== "production" && (Jc.displayName = "SwipeRegion");
7362
+ const Zc = _e(({
7348
7363
  onChange: e,
7349
7364
  ...r
7350
7365
  }, s) => /* @__PURE__ */ x.jsx(
@@ -7355,8 +7370,8 @@ const Jc = _e(({
7355
7370
  onChange: (a) => e(a.target.value)
7356
7371
  }
7357
7372
  ));
7358
- process.env.NODE_ENV !== "production" && (Jc.displayName = "TextArea");
7359
- const Zc = _e(({
7373
+ process.env.NODE_ENV !== "production" && (Zc.displayName = "TextArea");
7374
+ const Qc = _e(({
7360
7375
  className: e,
7361
7376
  children: r,
7362
7377
  isInverted: s = !1,
@@ -7369,20 +7384,20 @@ const Zc = _e(({
7369
7384
  const N = Ee(null), T = Co(N), P = Le(r, {
7370
7385
  knob: ur,
7371
7386
  track: lr
7372
- }), k = Qc({ isOn: a }), I = el({ isOn: a, isInverted: s, orientation: l, knobSize: T });
7387
+ }), k = el({ isOn: a }), I = tl({ isOn: a, isInverted: s, orientation: l, knobSize: T });
7373
7388
  return /* @__PURE__ */ x.jsxs("label", { ...g, ref: m, className: ie(e, k.root), style: le(u, I.root), children: [
7374
7389
  /* @__PURE__ */ x.jsx("input", { checked: a, style: I.input, type: "checkbox", onChange: (R) => p?.(R.target.checked) }),
7375
7390
  /* @__PURE__ */ x.jsx(ge, { className: k.track, element: P.track ?? /* @__PURE__ */ x.jsx(lr, {}), style: I.track, children: /* @__PURE__ */ x.jsx("div", { style: { position: "relative", width: "100%", height: "100%" }, children: /* @__PURE__ */ x.jsx(ge, { ref: N, className: k.knob, element: P.knob ?? /* @__PURE__ */ x.jsx(ur, {}), style: I.knob }) }) })
7376
7391
  ] });
7377
7392
  }), lr = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("div", { ...r, children: e }), ur = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("div", { ...r, children: e });
7378
- function Qc({ isOn: e = !1 }) {
7393
+ function el({ isOn: e = !1 }) {
7379
7394
  return {
7380
7395
  root: ie({ on: e }),
7381
7396
  knob: ie({ on: e }),
7382
7397
  track: ie({ on: e })
7383
7398
  };
7384
7399
  }
7385
- function el({ isOn: e = !1, isInverted: r = !1, knobSize: s = ze.zero, orientation: a = "horizontal" }) {
7400
+ function tl({ isOn: e = !1, isInverted: r = !1, knobSize: s = ze.zero, orientation: a = "horizontal" }) {
7386
7401
  return {
7387
7402
  root: {
7388
7403
  alignItems: "center",
@@ -7426,7 +7441,7 @@ function el({ isOn: e = !1, isInverted: r = !1, knobSize: s = ze.zero, orientati
7426
7441
  }
7427
7442
  };
7428
7443
  }
7429
- process.env.NODE_ENV !== "production" && (Zc.displayName = "Toggle", ur.displayName = "ToggleKnob", lr.displayName = "ToggleTrack");
7444
+ process.env.NODE_ENV !== "production" && (Qc.displayName = "Toggle", ur.displayName = "ToggleKnob", lr.displayName = "ToggleTrack");
7430
7445
  const ti = /* @__PURE__ */ _e(({
7431
7446
  children: e,
7432
7447
  ...r
@@ -7435,7 +7450,7 @@ const ti = /* @__PURE__ */ _e(({
7435
7450
  return an(a) ? pr(a, { ...r, ref: s }) : a;
7436
7451
  })));
7437
7452
  process.env.NODE_ENV !== "production" && (ti.displayName = "ExtractChild");
7438
- function tl({
7453
+ function nl({
7439
7454
  children: e,
7440
7455
  className: r,
7441
7456
  style: s,
@@ -7447,19 +7462,19 @@ function tl({
7447
7462
  maxWidth: m = 200,
7448
7463
  threshold: N = 100
7449
7464
  }) {
7450
- const T = Ee(null), P = Ee(void 0), k = tt(T), I = ve(() => {
7465
+ const T = Ee(null), P = Ee(void 0), k = tt(T), I = ye(() => {
7451
7466
  const j = document.createElement("span");
7452
7467
  j.className = ie(r), j.innerHTML = g, j.role = "tooltip";
7453
- const W = a ?? (T.current ? rl(T.current, N) : "tl"), q = nl(j), D = sl({ alignment: W, arrowSize: ze.make(u, l), gap: p, maxDialogWidth: m, fullDialogWidth: q.width, targetWidth: k.width }), B = le(s, D.dialog);
7454
- Object.keys(B).forEach((C) => j.style[C] = B[C]);
7468
+ const W = a ?? (T.current ? ol(T.current, N) : "tl"), q = rl(j), D = al({ alignment: W, arrowSize: ze.make(u, l), gap: p, maxDialogWidth: m, fullDialogWidth: q.width, targetWidth: k.width }), H = le(s, D.dialog);
7469
+ Object.keys(H).forEach((C) => j.style[C] = H[C]);
7455
7470
  const S = document.createElement("span");
7456
7471
  return Object.keys(D.arrow).forEach((C) => S.style[C] = D.arrow[C]), j.appendChild(S), j;
7457
- }, [r, a, g, m, Ge(s), k.width, N, l, u, p]), R = ve(() => {
7472
+ }, [r, a, g, m, Ge(s), k.width, N, l, u, p]), R = ye(() => {
7458
7473
  P.current && (P.current.style.opacity = "1", P.current.ariaHidden = "false");
7459
- }, []), b = ve(() => {
7474
+ }, []), b = ye(() => {
7460
7475
  P.current && (P.current.style.opacity = "0", P.current.ariaHidden = "true");
7461
7476
  }, []);
7462
- return he(() => {
7477
+ return pe(() => {
7463
7478
  const j = I();
7464
7479
  return T.current?.appendChild(j), P.current = j, () => {
7465
7480
  T.current?.removeChild(j), P.current = void 0;
@@ -7474,14 +7489,14 @@ function tl({
7474
7489
  }
7475
7490
  );
7476
7491
  }
7477
- function nl(e) {
7492
+ function rl(e) {
7478
7493
  const r = e.cloneNode(!1);
7479
7494
  r.innerHTML = e.innerHTML, r.style.visibility = "hidden", r.style.whiteSpace = "pre", document.body.appendChild(r);
7480
7495
  const s = r.getBoundingClientRect();
7481
7496
  return document.body.removeChild(r), ze.make(s.width, s.height);
7482
7497
  }
7483
- function rl(e, r) {
7484
- const s = ye.fromViewport(), a = ye.intersecting(e);
7498
+ function ol(e, r) {
7499
+ const s = me.fromViewport(), a = me.intersecting(e);
7485
7500
  if (a) {
7486
7501
  const l = a.left - s.left < r, u = s.right - a.right < r, p = a.top - s.top < r, g = s.bottom - a.bottom < r;
7487
7502
  if (l && p) return "br";
@@ -7494,7 +7509,7 @@ function rl(e, r) {
7494
7509
  }
7495
7510
  return "tc";
7496
7511
  }
7497
- function ol({ alignment: e, arrowSize: r, fullDialogWidth: s, gap: a, maxDialogWidth: l, targetWidth: u }) {
7512
+ function il({ alignment: e, arrowSize: r, fullDialogWidth: s, gap: a, maxDialogWidth: l, targetWidth: u }) {
7498
7513
  const p = Math.min(s, l), g = u > p;
7499
7514
  switch (e) {
7500
7515
  case "tl":
@@ -7551,7 +7566,7 @@ function ol({ alignment: e, arrowSize: r, fullDialogWidth: s, gap: a, maxDialogW
7551
7566
  return console.error(`[etudes::WithTooltip] Invalid alignment: ${e}`), {};
7552
7567
  }
7553
7568
  }
7554
- function il({ alignment: e, arrowSize: r, fullDialogWidth: s, maxDialogWidth: a, targetWidth: l }) {
7569
+ function sl({ alignment: e, arrowSize: r, fullDialogWidth: s, maxDialogWidth: a, targetWidth: l }) {
7555
7570
  const u = Math.min(s, a), p = l > u;
7556
7571
  switch (e) {
7557
7572
  case "tl":
@@ -7632,7 +7647,7 @@ function il({ alignment: e, arrowSize: r, fullDialogWidth: s, maxDialogWidth: a,
7632
7647
  return console.error(`[etudes::WithTooltip] Invalid alignment: ${e}`), {};
7633
7648
  }
7634
7649
  }
7635
- function sl({ alignment: e, arrowSize: r, fullDialogWidth: s, gap: a, maxDialogWidth: l, targetWidth: u }) {
7650
+ function al({ alignment: e, arrowSize: r, fullDialogWidth: s, gap: a, maxDialogWidth: l, targetWidth: u }) {
7636
7651
  return {
7637
7652
  dialog: {
7638
7653
  boxSizing: "border-box",
@@ -7644,19 +7659,19 @@ function sl({ alignment: e, arrowSize: r, fullDialogWidth: s, gap: a, maxDialogW
7644
7659
  userSelect: "none",
7645
7660
  whiteSpace: s > l ? "normal" : "pre",
7646
7661
  width: s > l ? `${l}px` : "",
7647
- ...ol({ alignment: e, arrowSize: r, fullDialogWidth: s, gap: a, maxDialogWidth: l, targetWidth: u })
7662
+ ...il({ alignment: e, arrowSize: r, fullDialogWidth: s, gap: a, maxDialogWidth: l, targetWidth: u })
7648
7663
  },
7649
7664
  arrow: {
7650
7665
  background: "inherit",
7651
7666
  position: "absolute",
7652
- ...il({ alignment: e, arrowSize: r, fullDialogWidth: s, maxDialogWidth: l, targetWidth: u })
7667
+ ...sl({ alignment: e, arrowSize: r, fullDialogWidth: s, maxDialogWidth: l, targetWidth: u })
7653
7668
  }
7654
7669
  };
7655
7670
  }
7656
- process.env.NODE_ENV !== "production" && (tl.displayName = "WithTooltip");
7657
- function vl(e, r) {
7671
+ process.env.NODE_ENV !== "production" && (nl.displayName = "WithTooltip");
7672
+ function yl(e, r) {
7658
7673
  const s = Te(r);
7659
- he(() => {
7674
+ pe(() => {
7660
7675
  const a = (l) => {
7661
7676
  if (!(l.target instanceof Node)) return;
7662
7677
  let u = !0, p = l.target;
@@ -7676,12 +7691,12 @@ function vl(e, r) {
7676
7691
  };
7677
7692
  }, []);
7678
7693
  }
7679
- function yl(e) {
7680
- const [r, s] = Ne(!1), a = ve((p) => {
7694
+ function xl(e) {
7695
+ const [r, s] = Ne(!1), a = ye((p) => {
7681
7696
  p.preventDefault(), p.stopPropagation(), s(!0);
7682
- }, []), l = ve((p) => {
7697
+ }, []), l = ye((p) => {
7683
7698
  p.preventDefault(), p.stopPropagation(), s(!1);
7684
- }, []), u = ve((p) => {
7699
+ }, []), u = ye((p) => {
7685
7700
  p.preventDefault(), p.stopPropagation(), s(!1);
7686
7701
  const g = p.dataTransfer.files;
7687
7702
  if (g && g.length > 0) {
@@ -7696,9 +7711,9 @@ function yl(e) {
7696
7711
  onDrop: u
7697
7712
  };
7698
7713
  }
7699
- function xl(e, r) {
7714
+ function bl(e, r) {
7700
7715
  const s = Te(r);
7701
- he(() => {
7716
+ pe(() => {
7702
7717
  const a = (l) => {
7703
7718
  l.key === e && s.current?.();
7704
7719
  };
@@ -7707,11 +7722,11 @@ function xl(e, r) {
7707
7722
  };
7708
7723
  }, [e]);
7709
7724
  }
7710
- function bl({ onChange: e }) {
7725
+ function wl({ onChange: e }) {
7711
7726
  const r = Te(e), s = Ee(void 0), a = Ee(!1);
7712
- he(() => {
7727
+ pe(() => {
7713
7728
  const l = () => {
7714
- const p = al();
7729
+ const p = cl();
7715
7730
  p && (r.current(p, s.current), s.current = p);
7716
7731
  }, u = () => {
7717
7732
  a.current || typeof requestAnimationFrame == "function" && (a.current = !0, requestAnimationFrame(() => {
@@ -7723,54 +7738,42 @@ function bl({ onChange: e }) {
7723
7738
  };
7724
7739
  }, []);
7725
7740
  }
7726
- function al() {
7727
- const e = ye.fromViewport(), r = ye.clone(e, { x: 0, y: 0 }), s = ye.from(window, { overflow: !0 });
7741
+ function cl() {
7742
+ const e = me.fromViewport(), r = me.clone(e, { x: 0, y: 0 }), s = me.from(window, { overflow: !0 });
7728
7743
  if (!s) return;
7729
- const a = ye.clone(r, { x: s.width - e.width, y: s.height - e.height }), l = pe.make(e.left / a.left, e.top / a.top);
7744
+ const a = me.clone(r, { x: s.width - e.width, y: s.height - e.height }), l = he.make(e.left / a.left, e.top / a.top);
7730
7745
  return {
7731
- minPos: pe.make(r.left, r.top),
7732
- maxPos: pe.make(a.left, a.top),
7733
- pos: pe.make(e.left, e.top),
7746
+ minPos: he.make(r.left, r.top),
7747
+ maxPos: he.make(a.left, a.top),
7748
+ pos: he.make(e.left, e.top),
7734
7749
  step: l
7735
7750
  };
7736
7751
  }
7737
- function wl(e, r, {
7752
+ function El(e, r, {
7738
7753
  mapSearchParamToState: s,
7739
7754
  mapStateToSearchParam: a,
7740
7755
  shouldPopulateDefaultState: l = !1
7741
7756
  } = {}) {
7742
- const u = ve((k, I) => s ? s(k) : k || I, [s]), p = ve((k) => a ? a(k) : !l && k === r ? void 0 : `${k}`, [r, l, a]), [g, m] = Es(), N = u(g.get(e) ?? void 0, r), [T, P] = Ne(N);
7743
- return he(() => {
7757
+ const u = ye((k, I) => s ? s(k) : k || I, [s]), p = ye((k) => a ? a(k) : !l && k === r ? void 0 : `${k}`, [r, l, a]), [g, m] = Es(), N = u(g.get(e) ?? void 0, r), [T, P] = Ne(N);
7758
+ return pe(() => {
7744
7759
  const k = g.get(e), I = p(T);
7745
7760
  I !== k && (I ? g.set(e, I) : g.delete(e), m(g));
7746
7761
  }, [T, p]), [T, P];
7747
7762
  }
7748
- function El(e, {
7763
+ function Nl(e, {
7749
7764
  autoStarts: r = !0,
7750
7765
  onTimeout: s
7751
7766
  }) {
7752
- const a = Ee(void 0), l = Te(s), u = ve(() => {
7767
+ const a = Ee(void 0), l = Te(s), u = ye(() => {
7753
7768
  a.current !== void 0 && (clearTimeout(a.current), a.current = void 0);
7754
- }, []), p = ve(() => {
7769
+ }, []), p = ye(() => {
7755
7770
  u(), !(e < 0) && (a.current = setTimeout(() => {
7756
7771
  u(), l.current();
7757
7772
  }, e));
7758
7773
  }, [e, u]);
7759
- return he(() => (r && e >= 0 && p(), u), [r, e, p, u]), { start: p, stop: u };
7760
- }
7761
- function Nl() {
7762
- const [e, r] = Ne(ze.zero);
7763
- return he(() => {
7764
- const s = () => {
7765
- const a = ye.size(ye.fromViewport());
7766
- r(a);
7767
- };
7768
- return window.addEventListener("resize", s), s(), () => {
7769
- window.removeEventListener("resize", s);
7770
- };
7771
- }, []), e;
7774
+ return pe(() => (r && e >= 0 && p(), u), [r, e, p, u]), { start: p, stop: u };
7772
7775
  }
7773
- function cl({ children: e, if: r }) {
7776
+ function ll({ children: e, if: r }) {
7774
7777
  switch (typeof r) {
7775
7778
  case "function":
7776
7779
  return r() ? /* @__PURE__ */ x.jsx(x.Fragment, { children: e }) : /* @__PURE__ */ x.jsx(x.Fragment, {});
@@ -7778,14 +7781,14 @@ function cl({ children: e, if: r }) {
7778
7781
  return r ? /* @__PURE__ */ x.jsx(x.Fragment, { children: e }) : /* @__PURE__ */ x.jsx(x.Fragment, {});
7779
7782
  }
7780
7783
  }
7781
- process.env.NODE_ENV !== "production" && (cl.displayName = "Conditional");
7782
- function ll({
7784
+ process.env.NODE_ENV !== "production" && (ll.displayName = "Conditional");
7785
+ function ul({
7783
7786
  children: e,
7784
7787
  ...r
7785
7788
  }) {
7786
7789
  return /* @__PURE__ */ x.jsx(x.Fragment, { children: sn.map(e, (s) => an(s) ? pr(s, { ...r }) : s) });
7787
7790
  }
7788
- process.env.NODE_ENV !== "production" && (ll.displayName = "ExtractChildren");
7791
+ process.env.NODE_ENV !== "production" && (ul.displayName = "ExtractChildren");
7789
7792
  function Sl({
7790
7793
  children: e,
7791
7794
  condition: r
@@ -7793,7 +7796,7 @@ function Sl({
7793
7796
  const s = sn.toArray(e);
7794
7797
  if (s.length === 0)
7795
7798
  return console.error("[etudes::Switch] `Switch` must have at least one child"), /* @__PURE__ */ x.jsx(x.Fragment, {});
7796
- if (!fl(s))
7799
+ if (!dl(s))
7797
7800
  return console.error("[etudes::Switch] `Switch` children must be of `Case` type or `Default` type"), /* @__PURE__ */ x.jsx(x.Fragment, {});
7798
7801
  const a = s.filter((u) => u.type === ni);
7799
7802
  if (a.length > 1)
@@ -7808,14 +7811,14 @@ function Sl({
7808
7811
  if (l)
7809
7812
  return l;
7810
7813
  }
7811
- function ul({ children: e }) {
7814
+ function fl({ children: e }) {
7812
7815
  return e;
7813
7816
  }
7814
7817
  function ni({ children: e }) {
7815
7818
  return e;
7816
7819
  }
7817
- function fl(e) {
7818
- return e.every((r) => an(r) && (r.type === ul || r.type === ni));
7820
+ function dl(e) {
7821
+ return e.every((r) => an(r) && (r.type === fl || r.type === ni));
7819
7822
  }
7820
7823
  var fr;
7821
7824
  ((e) => {
@@ -7829,7 +7832,7 @@ function Tl({ children: e }) {
7829
7832
  const l = localStorage.getItem("color-scheme");
7830
7833
  return l || (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
7831
7834
  }, [s, a] = Ne(r());
7832
- return he(() => {
7835
+ return pe(() => {
7833
7836
  localStorage.setItem("color-scheme", s), document.documentElement.classList.toggle("dark", s === "dark");
7834
7837
  }, [s]), /* @__PURE__ */ x.jsx(Ct.Provider, { value: { colorScheme: s, setColorScheme: a }, children: e });
7835
7838
  }
@@ -7845,29 +7848,29 @@ function Ol() {
7845
7848
  }
7846
7849
  function Pl() {
7847
7850
  const e = cn(Ct);
7848
- return e ? ve(() => {
7851
+ return e ? ye(() => {
7849
7852
  e.setColorScheme((r) => fr.toggled(r));
7850
7853
  }, []) : (console.error("useToggleColorScheme must be used within a ColorSchemeProvider"), () => {
7851
7854
  });
7852
7855
  }
7853
7856
  process.env.NODE_ENV !== "production" && (Ct.displayName = "ColorSchemeContext");
7854
7857
  const ri = /* @__PURE__ */ Oo(void 0);
7855
- function dl({ children: e }) {
7858
+ function pl({ children: e }) {
7856
7859
  const r = Ee(!1), [s, a] = Ne({
7857
- minPos: pe.zero,
7858
- maxPos: pe.zero,
7859
- pos: pe.zero,
7860
- step: pe.zero
7860
+ minPos: he.zero,
7861
+ maxPos: he.zero,
7862
+ pos: he.zero,
7863
+ step: he.zero
7861
7864
  });
7862
- return he(() => {
7865
+ return pe(() => {
7863
7866
  const l = () => {
7864
- const p = ye.fromViewport(), g = ye.clone(p, { x: 0, y: 0 }), m = ye.from(window, { overflow: !0 });
7867
+ const p = me.fromViewport(), g = me.clone(p, { x: 0, y: 0 }), m = me.from(window, { overflow: !0 });
7865
7868
  if (!m) return;
7866
- const N = ye.clone(g, { x: m.width - p.width, y: m.height - p.height }), T = pe.make(p.left / N.left, p.top / N.top);
7869
+ const N = me.clone(g, { x: m.width - p.width, y: m.height - p.height }), T = he.make(p.left / N.left, p.top / N.top);
7867
7870
  a({
7868
- minPos: pe.make(g.left, g.top),
7869
- maxPos: pe.make(N.left, N.top),
7870
- pos: pe.make(p.left, p.top),
7871
+ minPos: he.make(g.left, g.top),
7872
+ maxPos: he.make(N.left, N.top),
7873
+ pos: he.make(p.left, p.top),
7871
7874
  step: T
7872
7875
  });
7873
7876
  }, u = () => {
@@ -7884,27 +7887,27 @@ function kl(e) {
7884
7887
  const r = cn(ri);
7885
7888
  if (!r)
7886
7889
  return console.error("Cannot fetch the current scroll position context, is the corresponding provider instated?"), {
7887
- pos: pe.zero,
7888
- step: pe.zero
7890
+ pos: he.zero,
7891
+ step: he.zero
7889
7892
  };
7890
7893
  if (!e)
7891
7894
  return {
7892
7895
  pos: r.pos,
7893
7896
  step: r.step
7894
7897
  };
7895
- const s = e.current, a = ye.fromViewport(), l = ye.from(s);
7898
+ const s = e.current, a = me.fromViewport(), l = me.from(s);
7896
7899
  if (!a || !l)
7897
7900
  return {
7898
- pos: pe.zero,
7899
- step: pe.zero
7901
+ pos: he.zero,
7902
+ step: he.zero
7900
7903
  };
7901
7904
  const u = a.right - l.left, p = a.bottom - l.top, g = u / l.width, m = p / l.height;
7902
7905
  return {
7903
- pos: pe.make(u, p),
7904
- step: pe.make(g, m)
7906
+ pos: he.make(u, p),
7907
+ step: he.make(g, m)
7905
7908
  };
7906
7909
  }
7907
- process.env.NODE_ENV !== "production" && (dl.displayName = "ScrollPositionProvider");
7910
+ process.env.NODE_ENV !== "production" && (pl.displayName = "ScrollPositionProvider");
7908
7911
  function To(e) {
7909
7912
  return e == null ? "" : Array.isArray(e) ? JSON.stringify(e.map(To)) : typeof e == "object" ? JSON.stringify(Object.entries(e).sort(([r], [s]) => r.localeCompare(s)).map(([r, s]) => [r, To(s)])) : Ge(e);
7910
7913
  }
@@ -7919,30 +7922,30 @@ export {
7919
7922
  rn as BurgerBar,
7920
7923
  Fs as BurgerButton,
7921
7924
  Ds as BurgerButtonBar,
7922
- Hs as Button,
7925
+ Bs as Button,
7923
7926
  Ws as Carousel,
7924
- ul as Case,
7927
+ fl as Case,
7925
7928
  hr as Collection,
7926
7929
  Pt as CollectionItem,
7927
7930
  fr as ColorScheme,
7928
7931
  Ct as ColorSchemeContext,
7929
7932
  Tl as ColorSchemeProvider,
7930
- cl as Conditional,
7933
+ ll as Conditional,
7931
7934
  ea as Counter,
7932
- Bn as CounterAddButton,
7935
+ Hn as CounterAddButton,
7933
7936
  Yn as CounterSubtractButton,
7934
- Hn as CounterTextField,
7935
- ra as CoverImage,
7937
+ Bn as CounterTextField,
7938
+ oa as CoverImage,
7936
7939
  Fo as CoverImageContent,
7937
7940
  Do as CoverImageViewport,
7938
- aa as CoverVideo,
7939
- Ho as CoverVideoContent,
7940
- Bo as CoverVideoViewport,
7941
+ ca as CoverVideo,
7942
+ Bo as CoverVideoContent,
7943
+ Ho as CoverVideoViewport,
7941
7944
  ni as Default,
7942
- ca as Dial,
7945
+ la as Dial,
7943
7946
  Un as DialKnob,
7944
7947
  Xn as DialTrack,
7945
- fa as Dropdown,
7948
+ da as Dropdown,
7946
7949
  Yo as DropdownCollapseIcon,
7947
7950
  qn as DropdownCollection,
7948
7951
  Xo as DropdownExpandIcon,
@@ -7950,17 +7953,17 @@ export {
7950
7953
  Wn as DropdownToggle,
7951
7954
  ln as Each,
7952
7955
  ti as ExtractChild,
7953
- ll as ExtractChildren,
7954
- vc as FlatSVG,
7956
+ ul as ExtractChildren,
7957
+ yc as FlatSVG,
7955
7958
  Lo as Image,
7956
- yc as MasonryGrid,
7957
- Ec as OptionButton,
7959
+ xc as MasonryGrid,
7960
+ Nc as OptionButton,
7958
7961
  Zo as Panorama,
7959
- jc as PanoramaSlider,
7962
+ Ic as PanoramaSlider,
7960
7963
  Zn as PanoramaSliderIndicator,
7961
7964
  Qn as PanoramaSliderReticle,
7962
7965
  Kt as PanoramaSliderTrack,
7963
- $c as RangeSlider,
7966
+ Ac as RangeSlider,
7964
7967
  er as RangeSliderGutter,
7965
7968
  tr as RangeSliderHighlight,
7966
7969
  Zt as RangeSliderKnob,
@@ -7968,62 +7971,62 @@ export {
7968
7971
  Jt as RangeSliderLabel,
7969
7972
  Vn as Repeat,
7970
7973
  ri as ScrollPositionContext,
7971
- dl as ScrollPositionProvider,
7972
- Vc as Select,
7974
+ pl as ScrollPositionProvider,
7975
+ Bc as Select,
7973
7976
  ei as SelectExpandIcon,
7974
7977
  Qt as SelectOption,
7975
7978
  nr as SelectToggle,
7976
7979
  Hc as SelectableButton,
7977
- Bc as Slider,
7980
+ Yc as Slider,
7978
7981
  rr as SliderKnob,
7979
7982
  or as SliderKnobContainer,
7980
7983
  ir as SliderLabel,
7981
7984
  en as SliderTrack,
7982
- Uc as StepSlider,
7985
+ qc as StepSlider,
7983
7986
  sr as StepSliderKnob,
7984
7987
  ar as StepSliderKnobContainer,
7985
7988
  cr as StepSliderLabel,
7986
7989
  tn as StepSliderTrack,
7987
- Kc as SwipeRegion,
7990
+ Jc as SwipeRegion,
7988
7991
  Sl as Switch,
7989
- Jc as TextArea,
7992
+ Zc as TextArea,
7990
7993
  Ro as TextField,
7991
- Zc as Toggle,
7994
+ Qc as Toggle,
7992
7995
  ur as ToggleKnob,
7993
7996
  lr as ToggleTrack,
7994
7997
  Vo as Video,
7995
- tl as WithTooltip,
7996
- ml as asClassNameDict,
7998
+ nl as WithTooltip,
7999
+ vl as asClassNameDict,
7997
8000
  Le as asComponentDict,
7998
- gl as asStyleDict,
8001
+ ml as asStyleDict,
7999
8002
  pr as cloneStyledElement,
8000
8003
  Ge as createKey,
8001
8004
  To as createKeyDeep,
8002
- qc as generateSteps,
8005
+ Gc as generateSteps,
8003
8006
  le as styles,
8004
- vl as useClickOutside,
8007
+ yl as useClickOutside,
8005
8008
  _l as useColorScheme,
8006
8009
  qs as useDrag,
8007
- yl as useDropzone,
8008
- ta as useImageLoader,
8010
+ xl as useDropzone,
8011
+ na as useImageLoader,
8009
8012
  zo as useImageSize,
8010
- Oc as useInertiaDrag,
8013
+ Pc as useInertiaDrag,
8011
8014
  kt as useInertiaDragValue,
8012
8015
  Gs as useInterval,
8013
- xl as useKeyboardShortcut,
8016
+ bl as useKeyboardShortcut,
8014
8017
  Te as useLatest,
8015
8018
  Ps as useMounted,
8016
- bl as usePosition,
8019
+ wl as usePosition,
8017
8020
  Qs as usePrevious,
8018
8021
  tt as useRect,
8019
8022
  kl as useScrollPosition,
8020
- wl as useSearchState,
8023
+ El as useSearchState,
8021
8024
  Ol as useSetColorScheme,
8022
8025
  Co as useSize,
8023
8026
  dr as useSizeObserver,
8024
- El as useTimeout,
8027
+ Nl as useTimeout,
8025
8028
  Pl as useToggleColorScheme,
8026
- oa as useVideoMetadataLoader,
8027
- ia as useVideoSize,
8028
- Nl as useViewportSize
8029
+ ia as useVideoMetadataLoader,
8030
+ sa as useVideoSize,
8031
+ ta as useViewportSize
8029
8032
  };