etudes 32.6.0 → 32.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/etudes.js CHANGED
@@ -4713,9 +4713,9 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
4713
4713
  function an(e) {
4714
4714
  return e && e.replace(/\/.*$/, "");
4715
4715
  }
4716
- var on = new rn(), Q = on.interactStatic, sn = typeof globalThis < "u" ? globalThis : window;
4717
- on.init(sn);
4718
- var cn = Object.freeze({
4716
+ var on = new rn(), sn = on.interactStatic, cn = typeof globalThis < "u" ? globalThis : window;
4717
+ on.init(cn);
4718
+ var ln = Object.freeze({
4719
4719
  __proto__: null,
4720
4720
  edgeTarget: function() {},
4721
4721
  elements: function() {},
@@ -4750,13 +4750,13 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
4750
4750
  };
4751
4751
  return n.grid = e, n.coordFields = t, n;
4752
4752
  }
4753
- }), ln = {
4753
+ }), un = {
4754
4754
  id: "snappers",
4755
4755
  install: function(e) {
4756
4756
  var t = e.interactStatic;
4757
- t.snappers = W(t.snappers || {}, cn), t.createSnapGrid = t.snappers.grid;
4757
+ t.snappers = W(t.snappers || {}, ln), t.createSnapGrid = t.snappers.grid;
4758
4758
  }
4759
- }, un = {
4759
+ }, dn = {
4760
4760
  start: function(e) {
4761
4761
  var t = e.state, r = e.rect, i = e.edges, a = e.pageCoords, o = t.options, s = o.ratio, c = o.enabled, l = t.options, u = l.equalDelta, d = l.modifiers;
4762
4762
  s === "preserve" && (s = r.width / r.height), t.startCoords = W({}, a), t.startRect = W({}, r), t.ratio = s, t.equalDelta = u;
@@ -4782,7 +4782,7 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
4782
4782
  }
4783
4783
  },
4784
4784
  set: function(e) {
4785
- var t = e.state, r = e.rect, i = e.coords, a = t.linkedEdges, o = W({}, i), s = t.equalDelta ? dn : fn;
4785
+ var t = e.state, r = e.rect, i = e.coords, a = t.linkedEdges, o = W({}, i), s = t.equalDelta ? fn : pn;
4786
4786
  if (W(e.edges, a), s(t, t.xIsPrimaryAxis, i, r), !t.subModification) return null;
4787
4787
  var c = W({}, r);
4788
4788
  re(a, c, {
@@ -4805,11 +4805,11 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
4805
4805
  enabled: !1
4806
4806
  }
4807
4807
  };
4808
- function dn(e, t, n) {
4808
+ function fn(e, t, n) {
4809
4809
  var r = e.startCoords, i = e.edgeSign;
4810
4810
  t ? n.y = r.y + (n.x - r.x) * i.y : n.x = r.x + (n.y - r.y) * i.x;
4811
4811
  }
4812
- function fn(e, t, n, r) {
4812
+ function pn(e, t, n, r) {
4813
4813
  var i = e.startRect, a = e.startCoords, o = e.ratio, s = e.edgeSign;
4814
4814
  if (t) {
4815
4815
  var c = r.width / o;
@@ -4819,17 +4819,17 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
4819
4819
  n.x = a.x + (l - i.width) * s.x;
4820
4820
  }
4821
4821
  }
4822
- var pn = yt(un, "aspectRatio"), mn = function() {};
4823
- mn._defaults = {};
4824
- var hn = mn;
4825
- function gn(e, t, n) {
4822
+ var mn = yt(dn, "aspectRatio"), hn = function() {};
4823
+ hn._defaults = {};
4824
+ var gn = hn;
4825
+ function _n(e, t, n) {
4826
4826
  return S.func(e) ? te(e, t.interactable, t.element, [
4827
4827
  n.x,
4828
4828
  n.y,
4829
4829
  t
4830
4830
  ]) : te(e, t.interactable, t.element);
4831
4831
  }
4832
- var _n = {
4832
+ var vn = {
4833
4833
  start: function(e) {
4834
4834
  var t = e.rect, n = e.startOffset, r = e.state, i = e.interaction, a = e.pageCoords, o = r.options, s = o.elementRect, c = W({
4835
4835
  left: 0,
@@ -4838,7 +4838,7 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
4838
4838
  bottom: 0
4839
4839
  }, o.offset || {});
4840
4840
  if (t && s) {
4841
- var l = gn(o.restriction, i, a);
4841
+ var l = _n(o.restriction, i, a);
4842
4842
  if (l) {
4843
4843
  var u = l.right - l.left - t.width, d = l.bottom - l.top - t.height;
4844
4844
  u < 0 && (c.left += u, c.right += u), d < 0 && (c.top += d, c.bottom += d);
@@ -4848,7 +4848,7 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
4848
4848
  r.offset = c;
4849
4849
  },
4850
4850
  set: function(e) {
4851
- var t = e.coords, n = e.interaction, r = e.state, i = r.options, a = r.offset, o = gn(i.restriction, n, t);
4851
+ var t = e.coords, n = e.interaction, r = e.state, i = r.options, a = r.offset, o = _n(i.restriction, n, t);
4852
4852
  if (o) {
4853
4853
  var s = function(e) {
4854
4854
  return !e || "left" in e && "top" in e || ((e = W({}, e)).left = e.x || 0, e.top = e.y || 0, e.right = e.right || e.left + e.width, e.bottom = e.bottom || e.top + e.height), e;
@@ -4863,18 +4863,18 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
4863
4863
  endOnly: !1,
4864
4864
  enabled: !1
4865
4865
  }
4866
- }, vn = yt(_n, "restrict"), yn = {
4866
+ }, yn = yt(vn, "restrict"), bn = {
4867
4867
  top: Infinity,
4868
4868
  left: Infinity,
4869
4869
  bottom: -Infinity,
4870
4870
  right: -Infinity
4871
- }, bn = {
4871
+ }, xn = {
4872
4872
  top: -Infinity,
4873
4873
  left: -Infinity,
4874
4874
  bottom: Infinity,
4875
4875
  right: Infinity
4876
4876
  };
4877
- function xn(e, t) {
4877
+ function Sn(e, t) {
4878
4878
  for (var n = 0, r = [
4879
4879
  "top",
4880
4880
  "left",
@@ -4886,12 +4886,12 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
4886
4886
  }
4887
4887
  return e;
4888
4888
  }
4889
- var Sn = {
4890
- noInner: yn,
4891
- noOuter: bn,
4889
+ var Cn = {
4890
+ noInner: bn,
4891
+ noOuter: xn,
4892
4892
  start: function(e) {
4893
4893
  var t, n = e.interaction, r = e.startOffset, i = e.state, a = i.options;
4894
- a && (t = G(gn(a.offset, n, n.coords.start.page))), t ||= {
4894
+ a && (t = G(_n(a.offset, n, n.coords.start.page))), t ||= {
4895
4895
  x: 0,
4896
4896
  y: 0
4897
4897
  }, i.offset = {
@@ -4904,8 +4904,8 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
4904
4904
  set: function(e) {
4905
4905
  var t = e.coords, n = e.edges, r = e.interaction, i = e.state, a = i.offset, o = i.options;
4906
4906
  if (n) {
4907
- var s = W({}, t), c = gn(o.inner, r, s) || {}, l = gn(o.outer, r, s) || {};
4908
- xn(c, yn), xn(l, bn), n.top ? t.y = Math.min(Math.max(l.top + a.top, s.y), c.top + a.top) : n.bottom && (t.y = Math.max(Math.min(l.bottom + a.bottom, s.y), c.bottom + a.bottom)), n.left ? t.x = Math.min(Math.max(l.left + a.left, s.x), c.left + a.left) : n.right && (t.x = Math.max(Math.min(l.right + a.right, s.x), c.right + a.right));
4907
+ var s = W({}, t), c = _n(o.inner, r, s) || {}, l = _n(o.outer, r, s) || {};
4908
+ Sn(c, bn), Sn(l, xn), n.top ? t.y = Math.min(Math.max(l.top + a.top, s.y), c.top + a.top) : n.bottom && (t.y = Math.max(Math.min(l.bottom + a.bottom, s.y), c.bottom + a.bottom)), n.left ? t.x = Math.min(Math.max(l.left + a.left, s.x), c.left + a.left) : n.right && (t.x = Math.max(Math.min(l.right + a.right, s.x), c.right + a.right));
4909
4909
  }
4910
4910
  },
4911
4911
  defaults: {
@@ -4915,7 +4915,7 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
4915
4915
  endOnly: !1,
4916
4916
  enabled: !1
4917
4917
  }
4918
- }, Cn = yt(Sn, "restrictEdges"), wn = W({
4918
+ }, wn = yt(Cn, "restrictEdges"), Tn = W({
4919
4919
  get elementRect() {
4920
4920
  return {
4921
4921
  top: 0,
@@ -4925,29 +4925,29 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
4925
4925
  };
4926
4926
  },
4927
4927
  set elementRect(e) {}
4928
- }, _n.defaults), Tn = yt({
4929
- start: _n.start,
4930
- set: _n.set,
4931
- defaults: wn
4932
- }, "restrictRect"), En = {
4928
+ }, vn.defaults), En = yt({
4929
+ start: vn.start,
4930
+ set: vn.set,
4931
+ defaults: Tn
4932
+ }, "restrictRect"), Dn = {
4933
4933
  width: -Infinity,
4934
4934
  height: -Infinity
4935
- }, Dn = {
4935
+ }, On = {
4936
4936
  width: Infinity,
4937
4937
  height: Infinity
4938
- }, On = yt({
4938
+ }, kn = yt({
4939
4939
  start: function(e) {
4940
- return Sn.start(e);
4940
+ return Cn.start(e);
4941
4941
  },
4942
4942
  set: function(e) {
4943
4943
  var t = e.interaction, n = e.state, r = e.rect, i = e.edges, a = n.options;
4944
4944
  if (i) {
4945
- var o = ne(gn(a.min, t, e.coords)) || En, s = ne(gn(a.max, t, e.coords)) || Dn;
4945
+ var o = ne(_n(a.min, t, e.coords)) || Dn, s = ne(_n(a.max, t, e.coords)) || On;
4946
4946
  n.options = {
4947
4947
  endOnly: a.endOnly,
4948
- inner: W({}, Sn.noInner),
4949
- outer: W({}, Sn.noOuter)
4950
- }, i.top ? (n.options.inner.top = r.bottom - o.height, n.options.outer.top = r.bottom - s.height) : i.bottom && (n.options.inner.bottom = r.top + o.height, n.options.outer.bottom = r.top + s.height), i.left ? (n.options.inner.left = r.right - o.width, n.options.outer.left = r.right - s.width) : i.right && (n.options.inner.right = r.left + o.width, n.options.outer.right = r.left + s.width), Sn.set(e), n.options = a;
4948
+ inner: W({}, Cn.noInner),
4949
+ outer: W({}, Cn.noOuter)
4950
+ }, i.top ? (n.options.inner.top = r.bottom - o.height, n.options.outer.top = r.bottom - s.height) : i.bottom && (n.options.inner.bottom = r.top + o.height, n.options.outer.bottom = r.top + s.height), i.left ? (n.options.inner.left = r.right - o.width, n.options.outer.left = r.right - s.width) : i.right && (n.options.inner.right = r.left + o.width, n.options.outer.right = r.left + s.width), Cn.set(e), n.options = a;
4951
4951
  }
4952
4952
  },
4953
4953
  defaults: {
@@ -4956,7 +4956,7 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
4956
4956
  endOnly: !1,
4957
4957
  enabled: !1
4958
4958
  }
4959
- }, "restrictSize"), kn = {
4959
+ }, "restrictSize"), An = {
4960
4960
  start: function(e) {
4961
4961
  var t, n = e.interaction, r = e.interactable, i = e.element, a = e.rect, o = e.state, s = e.startOffset, c = o.options, l = c.offsetWithOrigin ? function(e) {
4962
4962
  var t = e.interaction.element;
@@ -5030,7 +5030,7 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
5030
5030
  endOnly: !1,
5031
5031
  enabled: !1
5032
5032
  }
5033
- }, An = yt(kn, "snap"), jn = {
5033
+ }, jn = yt(An, "snap"), Mn = {
5034
5034
  start: function(e) {
5035
5035
  var t = e.state, n = e.edges, r = t.options;
5036
5036
  if (!n) return null;
@@ -5046,7 +5046,7 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
5046
5046
  y: 0
5047
5047
  },
5048
5048
  range: r.range
5049
- } }, t.targetFields = t.targetFields || [["width", "height"], ["x", "y"]], kn.start(e), t.offsets = e.state.offsets, e.state = t;
5049
+ } }, t.targetFields = t.targetFields || [["width", "height"], ["x", "y"]], An.start(e), t.offsets = e.state.offsets, e.state = t;
5050
5050
  },
5051
5051
  set: function(e) {
5052
5052
  var t = e.interaction, n = e.state, r = e.coords, i = n.options, a = n.offsets, o = {
@@ -5067,7 +5067,7 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
5067
5067
  n.options.targets.push(u);
5068
5068
  }
5069
5069
  }
5070
- var g = kn.set(e);
5070
+ var g = An.set(e);
5071
5071
  return n.options = i, g;
5072
5072
  },
5073
5073
  defaults: {
@@ -5077,19 +5077,19 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
5077
5077
  endOnly: !1,
5078
5078
  enabled: !1
5079
5079
  }
5080
- }, Mn = yt(jn, "snapSize"), Nn = {
5081
- aspectRatio: pn,
5082
- restrictEdges: Cn,
5083
- restrict: vn,
5084
- restrictRect: Tn,
5085
- restrictSize: On,
5080
+ }, Nn = yt(Mn, "snapSize"), Pn = {
5081
+ aspectRatio: mn,
5082
+ restrictEdges: wn,
5083
+ restrict: yn,
5084
+ restrictRect: En,
5085
+ restrictSize: kn,
5086
5086
  snapEdges: yt({
5087
5087
  start: function(e) {
5088
5088
  var t = e.edges;
5089
- return t ? (e.state.targetFields = e.state.targetFields || [[t.left ? "left" : "right", t.top ? "top" : "bottom"]], jn.start(e)) : null;
5089
+ return t ? (e.state.targetFields = e.state.targetFields || [[t.left ? "left" : "right", t.top ? "top" : "bottom"]], Mn.start(e)) : null;
5090
5090
  },
5091
- set: jn.set,
5092
- defaults: W(gt(jn.defaults), {
5091
+ set: Mn.set,
5092
+ defaults: W(gt(Mn.defaults), {
5093
5093
  targets: void 0,
5094
5094
  range: void 0,
5095
5095
  offset: {
@@ -5098,22 +5098,22 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
5098
5098
  }
5099
5099
  })
5100
5100
  }, "snapEdges"),
5101
- snap: An,
5102
- snapSize: Mn,
5103
- spring: hn,
5104
- avoid: hn,
5105
- transform: hn,
5106
- rubberband: hn
5107
- }, Pn = {
5101
+ snap: jn,
5102
+ snapSize: Nn,
5103
+ spring: gn,
5104
+ avoid: gn,
5105
+ transform: gn,
5106
+ rubberband: gn
5107
+ }, Fn = {
5108
5108
  id: "modifiers",
5109
5109
  install: function(e) {
5110
5110
  var t = e.interactStatic;
5111
- for (var n in e.usePlugin(xt), e.usePlugin(ln), t.modifiers = Nn, Nn) {
5112
- var r = Nn[n], i = r._defaults;
5111
+ for (var n in e.usePlugin(xt), e.usePlugin(un), t.modifiers = Pn, Pn) {
5112
+ var r = Pn[n], i = r._defaults;
5113
5113
  i._methods = r._methods, e.defaults.perAction[n] = i;
5114
5114
  }
5115
5115
  }
5116
- }, Fn = function(e) {
5116
+ }, In = function(e) {
5117
5117
  c(n, e);
5118
5118
  var t = f(n);
5119
5119
  function n(e, r, a, o, s, c) {
@@ -5148,7 +5148,7 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
5148
5148
  }
5149
5149
  }
5150
5150
  ]), n;
5151
- }(Ce), In = {
5151
+ }(Ce), Ln = {
5152
5152
  id: "pointer-events/base",
5153
5153
  before: [
5154
5154
  "inertia",
@@ -5157,7 +5157,7 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
5157
5157
  "actions"
5158
5158
  ],
5159
5159
  install: function(e) {
5160
- e.pointerEvents = In, e.defaults.actions.pointerEvents = In.defaults, W(e.actions.phaselessTypes, In.types);
5160
+ e.pointerEvents = Ln, e.defaults.actions.pointerEvents = Ln.defaults, W(e.actions.phaselessTypes, Ln.types);
5161
5161
  },
5162
5162
  listeners: {
5163
5163
  "interactions:new": function(e) {
@@ -5173,7 +5173,7 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
5173
5173
  },
5174
5174
  "interactions:move": function(e, t) {
5175
5175
  var n = e.interaction, r = e.pointer, i = e.event, a = e.eventTarget;
5176
- e.duplicate || n.pointerIsDown && !n.pointerWasMoved || (n.pointerIsDown && zn(e), Ln({
5176
+ e.duplicate || n.pointerIsDown && !n.pointerWasMoved || (n.pointerIsDown && Bn(e), Rn({
5177
5177
  interaction: n,
5178
5178
  pointer: r,
5179
5179
  event: i,
@@ -5199,7 +5199,7 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
5199
5199
  m < d && (d = m);
5200
5200
  }
5201
5201
  s.duration = d, s.timeout = setTimeout((function() {
5202
- Ln({
5202
+ Rn({
5203
5203
  interaction: n,
5204
5204
  eventTarget: a,
5205
5205
  pointer: r,
@@ -5208,12 +5208,12 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
5208
5208
  }, t);
5209
5209
  }), d);
5210
5210
  }
5211
- })(e, t), Ln(e, t);
5211
+ })(e, t), Rn(e, t);
5212
5212
  },
5213
5213
  "interactions:up": function(e, t) {
5214
- zn(e), Ln(e, t), function(e, t) {
5214
+ Bn(e), Rn(e, t), function(e, t) {
5215
5215
  var n = e.interaction, r = e.pointer, i = e.event, a = e.eventTarget;
5216
- n.pointerWasMoved || Ln({
5216
+ n.pointerWasMoved || Rn({
5217
5217
  interaction: n,
5218
5218
  eventTarget: a,
5219
5219
  pointer: r,
@@ -5223,12 +5223,12 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
5223
5223
  }(e, t);
5224
5224
  },
5225
5225
  "interactions:cancel": function(e, t) {
5226
- zn(e), Ln(e, t);
5226
+ Bn(e), Rn(e, t);
5227
5227
  }
5228
5228
  },
5229
- PointerEvent: Fn,
5230
- fire: Ln,
5231
- collectEventTargets: Rn,
5229
+ PointerEvent: In,
5230
+ fire: Rn,
5231
+ collectEventTargets: zn,
5232
5232
  defaults: {
5233
5233
  holdDuration: 600,
5234
5234
  ignoreFrom: null,
@@ -5248,8 +5248,8 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
5248
5248
  hold: !0
5249
5249
  }
5250
5250
  };
5251
- function Ln(e, t) {
5252
- var n = e.interaction, r = e.pointer, i = e.event, a = e.eventTarget, o = e.type, s = e.targets, c = s === void 0 ? Rn(e, t) : s, l = new Fn(o, r, i, a, n, t.now());
5251
+ function Rn(e, t) {
5252
+ var n = e.interaction, r = e.pointer, i = e.event, a = e.eventTarget, o = e.type, s = e.targets, c = s === void 0 ? zn(e, t) : s, l = new In(o, r, i, a, n, t.now());
5253
5253
  t.fire("pointerEvents:new", { pointerEvent: l });
5254
5254
  for (var u = {
5255
5255
  interaction: n,
@@ -5266,7 +5266,7 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
5266
5266
  if (l._subtractOrigin(m), l.eventable = f.eventable, l.currentTarget = f.node, f.eventable.fire(l), l._addOrigin(m), l.immediatePropagationStopped || l.propagationStopped && d + 1 < c.length && c[d + 1].node !== l.currentTarget) break;
5267
5267
  }
5268
5268
  if (t.fire("pointerEvents:fired", u), o === "tap") {
5269
- var h = l.double ? Ln({
5269
+ var h = l.double ? Rn({
5270
5270
  interaction: n,
5271
5271
  pointer: r,
5272
5272
  event: i,
@@ -5277,7 +5277,7 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
5277
5277
  }
5278
5278
  return l;
5279
5279
  }
5280
- function Rn(e, t) {
5280
+ function zn(e, t) {
5281
5281
  var n = e.interaction, r = e.pointer, i = e.event, a = e.eventTarget, o = e.type, s = n.getPointerIndex(r), c = n.pointers[s];
5282
5282
  if (o === "tap" && (n.pointerWasMoved || !c || c.downTarget !== a)) return [];
5283
5283
  for (var l = H(a), u = {
@@ -5295,22 +5295,22 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
5295
5295
  return e.eventable.options.holdDuration === ((t = n.pointers[s]) == null || (r = t.hold) == null ? void 0 : r.duration);
5296
5296
  }))), u.targets;
5297
5297
  }
5298
- function zn(e) {
5298
+ function Bn(e) {
5299
5299
  var t = e.interaction, n = e.pointerIndex, r = t.pointers[n].hold;
5300
5300
  r && r.timeout && (clearTimeout(r.timeout), r.timeout = null);
5301
5301
  }
5302
- var Bn = Object.freeze({
5302
+ var Vn = Object.freeze({
5303
5303
  __proto__: null,
5304
- default: In
5304
+ default: Ln
5305
5305
  });
5306
- function Vn(e) {
5306
+ function Hn(e) {
5307
5307
  var t = e.interaction;
5308
5308
  t.holdIntervalHandle &&= (clearInterval(t.holdIntervalHandle), null);
5309
5309
  }
5310
- var Hn = {
5310
+ var Un = {
5311
5311
  id: "pointer-events/holdRepeat",
5312
5312
  install: function(e) {
5313
- e.usePlugin(In);
5313
+ e.usePlugin(Ln);
5314
5314
  var t = e.pointerEvents;
5315
5315
  t.defaults.holdRepeatInterval = 0, t.types.holdrepeat = e.actions.phaselessTypes.holdrepeat = !0;
5316
5316
  },
@@ -5320,7 +5320,7 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
5320
5320
  "cancel",
5321
5321
  "endall"
5322
5322
  ].reduce((function(e, t) {
5323
- return e[`pointerEvents:${t}`] = Vn, e;
5323
+ return e[`pointerEvents:${t}`] = Hn, e;
5324
5324
  }), {
5325
5325
  "pointerEvents:new": function(e) {
5326
5326
  var t = e.pointerEvent;
@@ -5342,7 +5342,7 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
5342
5342
  }
5343
5343
  }
5344
5344
  })
5345
- }, Un = {
5345
+ }, Wn = {
5346
5346
  id: "pointer-events/interactableTargets",
5347
5347
  install: function(e) {
5348
5348
  var t = e.Interactable;
@@ -5379,12 +5379,12 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
5379
5379
  }
5380
5380
  }
5381
5381
  };
5382
- if (Q.use(mt), Q.use(Nt), Q.use({
5382
+ if (sn.use(mt), sn.use(Nt), sn.use({
5383
5383
  id: "pointer-events",
5384
5384
  install: function(e) {
5385
- e.usePlugin(Bn), e.usePlugin(Hn), e.usePlugin(Un);
5385
+ e.usePlugin(Vn), e.usePlugin(Un), e.usePlugin(Wn);
5386
5386
  }
5387
- }), Q.use(zt), Q.use(Pn), Q.use(dt), Q.use(We), Q.use(Z), Q.use({
5387
+ }), sn.use(zt), sn.use(Fn), sn.use(dt), sn.use(We), sn.use(Z), sn.use({
5388
5388
  id: "reflow",
5389
5389
  install: function(e) {
5390
5390
  var t = e.Interactable;
@@ -5481,10 +5481,10 @@ var gt = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
5481
5481
  e.splice(e.indexOf(t), 1);
5482
5482
  }(t.interactions.list, n));
5483
5483
  } }
5484
- }), Q.default = Q, (t === void 0 ? "undefined" : r(t)) === "object" && t) try {
5485
- t.exports = Q;
5484
+ }), sn.default = sn, (t === void 0 ? "undefined" : r(t)) === "object" && t) try {
5485
+ t.exports = sn;
5486
5486
  } catch {}
5487
- return Q.default = Q, Q;
5487
+ return sn.default = sn, sn;
5488
5488
  }));
5489
5489
  })))(), 1);
5490
5490
  function _t(e) {
@@ -6295,12 +6295,12 @@ function on(e, t, n) {
6295
6295
  }
6296
6296
  //#endregion
6297
6297
  //#region src/hooks/useLocalCache.ts
6298
- function Q(e) {
6298
+ function sn(e) {
6299
6299
  return d(() => tn({ defaultTTL: e }), [e]);
6300
6300
  }
6301
6301
  //#endregion
6302
6302
  //#region src/hooks/useMouseEnter.ts
6303
- function sn(e, t, { isEnabled: n = !0 } = {}) {
6303
+ function cn(e, t, { isEnabled: n = !0 } = {}) {
6304
6304
  let r = Z(t);
6305
6305
  u(() => {
6306
6306
  if (!n) return;
@@ -6317,7 +6317,7 @@ function sn(e, t, { isEnabled: n = !0 } = {}) {
6317
6317
  }
6318
6318
  //#endregion
6319
6319
  //#region src/hooks/useMouseLeave.ts
6320
- function cn(e, t, { isEnabled: n = !0 } = {}) {
6320
+ function ln(e, t, { isEnabled: n = !0 } = {}) {
6321
6321
  let r = Z(t);
6322
6322
  u(() => {
6323
6323
  if (!n) return;
@@ -6334,7 +6334,7 @@ function cn(e, t, { isEnabled: n = !0 } = {}) {
6334
6334
  }
6335
6335
  //#endregion
6336
6336
  //#region src/hooks/useOS.ts
6337
- function ln() {
6337
+ function un() {
6338
6338
  let e = navigator.userAgent || navigator.vendor || window.opera;
6339
6339
  return d(() => {
6340
6340
  switch (!0) {
@@ -6349,7 +6349,7 @@ function ln() {
6349
6349
  }
6350
6350
  //#endregion
6351
6351
  //#region src/hooks/usePrevious.ts
6352
- function un(e, t) {
6352
+ function dn(e, t) {
6353
6353
  let n = f(t);
6354
6354
  return u(() => {
6355
6355
  n.current = e;
@@ -6357,7 +6357,7 @@ function un(e, t) {
6357
6357
  }
6358
6358
  //#endregion
6359
6359
  //#region src/hooks/useRightClick.ts
6360
- function dn(e, t, n = {}) {
6360
+ function fn(e, t, n = {}) {
6361
6361
  let r = Z(typeof e == "function" ? e : typeof t == "function" ? t : () => {}), i = typeof e == "function" ? void 0 : e, { isEnabled: a = !0 } = typeof t == "function" ? n : t ?? {}, o = typeof e == "function";
6362
6362
  l(() => {
6363
6363
  if (a) if (o) {
@@ -6383,11 +6383,11 @@ function dn(e, t, n = {}) {
6383
6383
  }
6384
6384
  //#endregion
6385
6385
  //#region src/hooks/useScrollPositionObserver.ts
6386
- function fn(...e) {
6386
+ function pn(...e) {
6387
6387
  let t = typeof e[0] == "function" ? void 0 : e[0], n = typeof e[0] == "function" ? e[0] : e[1], r = typeof e[0] == "function" ? e[1] ?? [] : e[2] ?? [], i = Z(n), a = f(void 0), o = f(!1);
6388
6388
  u(() => {
6389
- let e = pn(t), n = () => {
6390
- let t = e ? hn(e) : mn();
6389
+ let e = mn(t), n = () => {
6390
+ let t = e ? gn(e) : hn();
6391
6391
  t && (i.current(t, a.current), a.current = t);
6392
6392
  }, r = () => {
6393
6393
  o.current || typeof requestAnimationFrame == "function" && (o.current = !0, requestAnimationFrame(() => {
@@ -6399,10 +6399,10 @@ function fn(...e) {
6399
6399
  };
6400
6400
  }, [...r]);
6401
6401
  }
6402
- function pn(e) {
6402
+ function mn(e) {
6403
6403
  if (e != null) return e instanceof HTMLElement ? e : e.current ?? void 0;
6404
6404
  }
6405
- function mn() {
6405
+ function hn() {
6406
6406
  let e = window.scrollX, t = window.scrollY, n = document.documentElement.scrollWidth - window.innerWidth, r = document.documentElement.scrollHeight - window.innerHeight;
6407
6407
  return {
6408
6408
  current: K.make(e, t),
@@ -6411,7 +6411,7 @@ function mn() {
6411
6411
  start: K.make(0, 0)
6412
6412
  };
6413
6413
  }
6414
- function hn(e) {
6414
+ function gn(e) {
6415
6415
  let t = e.scrollLeft, n = e.scrollTop, r = e.scrollWidth - e.clientWidth, i = e.scrollHeight - e.clientHeight;
6416
6416
  return {
6417
6417
  current: K.make(t, n),
@@ -6422,68 +6422,68 @@ function hn(e) {
6422
6422
  }
6423
6423
  //#endregion
6424
6424
  //#region src/utils/createSessionCache.ts
6425
- var gn = typeof window < "u" ? window.sessionStorage : void 0;
6426
- function _n({ defaultTTL: e = 300 } = {}) {
6425
+ var _n = typeof window < "u" ? window.sessionStorage : void 0;
6426
+ function vn({ defaultTTL: e = 300 } = {}) {
6427
6427
  return {
6428
- get: bn,
6429
- invalidate: vn,
6430
- set: (t, n, r = e) => xn(t, n, r)
6428
+ get: xn,
6429
+ invalidate: yn,
6430
+ set: (t, n, r = e) => Sn(t, n, r)
6431
6431
  };
6432
6432
  }
6433
- function vn(e) {
6434
- gn?.removeItem(e);
6435
- }
6436
6433
  function yn(e) {
6434
+ _n?.removeItem(e);
6435
+ }
6436
+ function bn(e) {
6437
6437
  let { timestamp: t, ttl: n } = e;
6438
6438
  return (Date.now() - t) / 1e3 >= n;
6439
6439
  }
6440
- function bn(e) {
6441
- let t = gn?.getItem(e);
6440
+ function xn(e) {
6441
+ let t = _n?.getItem(e);
6442
6442
  if (!t) return;
6443
6443
  let n = JSON.parse(t);
6444
- if (n) if (yn(n)) {
6445
- vn(e);
6444
+ if (n) if (bn(n)) {
6445
+ yn(e);
6446
6446
  return;
6447
6447
  } else return n.value;
6448
6448
  }
6449
- function xn(e, t, n) {
6449
+ function Sn(e, t, n) {
6450
6450
  let r = {
6451
6451
  timestamp: Date.now(),
6452
6452
  ttl: n,
6453
6453
  value: e
6454
6454
  };
6455
- return gn?.setItem(t, JSON.stringify(r)), e;
6455
+ return _n?.setItem(t, JSON.stringify(r)), e;
6456
6456
  }
6457
6457
  //#endregion
6458
6458
  //#region src/hooks/useSessionCache.ts
6459
- function Sn(e) {
6460
- return d(() => _n({ defaultTTL: e }), [e]);
6459
+ function Cn(e) {
6460
+ return d(() => vn({ defaultTTL: e }), [e]);
6461
6461
  }
6462
6462
  //#endregion
6463
6463
  //#region src/utils/getStyle.ts
6464
- function Cn(e, { computed: t, target: n }) {
6464
+ function wn(e, { computed: t, target: n }) {
6465
6465
  if (typeof window > "u") return;
6466
6466
  let r = n ?? window.document.documentElement;
6467
6467
  return t ? window.getComputedStyle(r).getPropertyValue(e) || void 0 : r.style.getPropertyValue(e) || void 0;
6468
6468
  }
6469
6469
  //#endregion
6470
6470
  //#region src/utils/setStyle.ts
6471
- function wn(e, t, { target: n } = {}) {
6471
+ function Tn(e, t, { target: n } = {}) {
6472
6472
  if (typeof window > "u") return;
6473
6473
  let r = n ?? window.document.documentElement;
6474
6474
  t === void 0 ? r.style.removeProperty(e) : r.style.setProperty(e, t);
6475
6475
  }
6476
6476
  //#endregion
6477
6477
  //#region src/hooks/useStyle.ts
6478
- function Tn(e, t, { target: n, isEnabled: r = !0 } = {}) {
6478
+ function En(e, t, { target: n, isEnabled: r = !0 } = {}) {
6479
6479
  u(() => {
6480
6480
  if (!r) return;
6481
- let i = n ?? window.document.documentElement, a = Cn(e, {
6481
+ let i = n ?? window.document.documentElement, a = wn(e, {
6482
6482
  computed: !1,
6483
6483
  target: i
6484
6484
  });
6485
- return wn(e, t, { target: i }), () => {
6486
- wn(e, a, { target: i });
6485
+ return Tn(e, t, { target: i }), () => {
6486
+ Tn(e, a, { target: i });
6487
6487
  };
6488
6488
  }, [
6489
6489
  e,
@@ -6494,7 +6494,7 @@ function Tn(e, t, { target: n, isEnabled: r = !0 } = {}) {
6494
6494
  }
6495
6495
  //#endregion
6496
6496
  //#region src/hooks/useSystemColorScheme.ts
6497
- function En(e = "light") {
6497
+ function Dn(e = "light") {
6498
6498
  let [t, n] = p(e);
6499
6499
  return u(() => {
6500
6500
  let e = window.matchMedia("(prefers-color-scheme: dark)");
@@ -6508,7 +6508,7 @@ function En(e = "light") {
6508
6508
  }
6509
6509
  //#endregion
6510
6510
  //#region src/hooks/useTimeout.ts
6511
- function Dn(e, t, { isEnabled: n = !0, shouldAutoStart: r = !0 } = {}, i = []) {
6511
+ function On(e, t, { isEnabled: n = !0, shouldAutoStart: r = !0 } = {}, i = []) {
6512
6512
  let a = f(void 0), o = Z(t), s = c(() => {
6513
6513
  a.current !== void 0 && (clearTimeout(a.current), a.current = void 0);
6514
6514
  }, []), u = c(() => {
@@ -6534,7 +6534,7 @@ function Dn(e, t, { isEnabled: n = !0, shouldAutoStart: r = !0 } = {}, i = []) {
6534
6534
  }
6535
6535
  //#endregion
6536
6536
  //#region src/primitives/Collection.tsx
6537
- var On = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
6537
+ var kn = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
6538
6538
  t.exports = function e(t, n) {
6539
6539
  if (t === n) return !0;
6540
6540
  if (t && n && typeof t == "object" && typeof n == "object") {
@@ -6559,8 +6559,8 @@ var On = /* @__PURE__ */ S((/* @__PURE__ */ b(((e, t) => {
6559
6559
  return t !== t && n !== n;
6560
6560
  };
6561
6561
  })))(), 1);
6562
- function kn({ className: e, ref: t, style: n, children: r, ItemComponent: i, itemLength: a, itemPadding: o = 0, items: s = [], layout: c = "list", numSegments: u = 1, orientation: d = "vertical", selection: f, selectionMode: p = "none", isSelectionTogglable: m = !1, onActivateAt: h, onCustomEvent: g, onDeselectAt: _, onSelectAt: v, onSelectionChange: y, ...b }) {
6563
- let x = jn(f ?? [], s), S = Nn({
6562
+ function An({ className: e, ref: t, style: n, children: r, ItemComponent: i, itemLength: a, itemPadding: o = 0, items: s = [], layout: c = "list", numSegments: u = 1, orientation: d = "vertical", selection: f, selectionMode: p = "none", isSelectionTogglable: m = !1, onActivateAt: h, onCustomEvent: g, onDeselectAt: _, onSelectAt: v, onSelectionChange: y, ...b }) {
6563
+ let x = Mn(f ?? [], s), S = Pn({
6564
6564
  itemLength: a,
6565
6565
  itemPadding: o,
6566
6566
  layout: c,
@@ -6573,7 +6573,7 @@ function kn({ className: e, ref: t, style: n, children: r, ItemComponent: i, ite
6573
6573
  let t;
6574
6574
  switch (p) {
6575
6575
  case "multiple":
6576
- t = (t) => Mn([...t.filter((t) => t !== e), e]);
6576
+ t = (t) => Nn([...t.filter((t) => t !== e), e]);
6577
6577
  break;
6578
6578
  case "single":
6579
6579
  t = (t) => [e];
@@ -6586,7 +6586,7 @@ function kn({ className: e, ref: t, style: n, children: r, ItemComponent: i, ite
6586
6586
  }, k = (e) => {
6587
6587
  h?.(e), p !== "none" && (m ? T(e) : E(e));
6588
6588
  }, A = (e, t) => {
6589
- if ((0, On.default)(e, t)) return;
6589
+ if ((0, kn.default)(e, t)) return;
6590
6590
  let n = e?.filter((e) => t.indexOf(e) === -1) ?? [], r = t.filter((t) => e?.indexOf(t) === -1);
6591
6591
  n.forEach((e) => _?.(e)), r.forEach((e) => v?.(e)), y?.(t);
6592
6592
  };
@@ -6605,7 +6605,7 @@ function kn({ className: e, ref: t, style: n, children: r, ItemComponent: i, ite
6605
6605
  }
6606
6606
  A(e, t);
6607
6607
  }, [p]);
6608
- let M = j(r, { item: kn.Item });
6608
+ let M = j(r, { item: An.Item });
6609
6609
  return /* @__PURE__ */ (0, O.jsx)("div", {
6610
6610
  ...b,
6611
6611
  className: w(e),
@@ -6635,7 +6635,7 @@ function kn({ className: e, ref: t, style: n, children: r, ItemComponent: i, ite
6635
6635
  className: w({ active: r }),
6636
6636
  style: a,
6637
6637
  "aria-selected": r,
6638
- element: M.item ?? /* @__PURE__ */ (0, O.jsx)(kn.Item, {}),
6638
+ element: M.item ?? /* @__PURE__ */ (0, O.jsx)(An.Item, {}),
6639
6639
  role: n,
6640
6640
  selectionMode: p,
6641
6641
  onActivateAt: h,
@@ -6654,17 +6654,17 @@ function kn({ className: e, ref: t, style: n, children: r, ItemComponent: i, ite
6654
6654
  ...r,
6655
6655
  children: e
6656
6656
  });
6657
- })(kn ||= {});
6658
- function An(e, t) {
6657
+ })(An ||= {});
6658
+ function jn(e, t) {
6659
6659
  return !!(isNaN(e) || e >= t.length || e < 0);
6660
6660
  }
6661
- function jn(e, t) {
6662
- return Mn(e).filter((e) => !An(e, t));
6661
+ function Mn(e, t) {
6662
+ return Nn(e).filter((e) => !jn(e, t));
6663
6663
  }
6664
- function Mn(e) {
6664
+ function Nn(e) {
6665
6665
  return e.sort((e, t) => e - t);
6666
6666
  }
6667
- function Nn({ itemLength: e = NaN, itemPadding: t = 0, layout: n = "collection", numSegments: r = 1, orientation: i = "vertical" }) {
6667
+ function Pn({ itemLength: e = NaN, itemPadding: t = 0, layout: n = "collection", numSegments: r = 1, orientation: i = "vertical" }) {
6668
6668
  return M({
6669
6669
  item: {
6670
6670
  counterIncrement: "item-counter",
@@ -6702,11 +6702,11 @@ function Nn({ itemLength: e = NaN, itemPadding: t = 0, layout: n = "collection",
6702
6702
  }
6703
6703
  });
6704
6704
  }
6705
- process.env.NODE_ENV === "development" && (kn.displayName = "Collection", kn.Item.displayName = "Collection.Item");
6705
+ process.env.NODE_ENV === "development" && (An.displayName = "Collection", An.Item.displayName = "Collection.Item");
6706
6706
  //#endregion
6707
6707
  //#region src/primitives/Accordion.tsx
6708
- function Pn({ ref: e, style: t, children: n, expandedSectionIndices: r, HeaderComponent: i, ItemComponent: a, orientation: o = "vertical", sectionPadding: s = 0, sections: c, selection: l, selectionMode: u = "single", shouldAutoCollapse: d = !1, onActivateAt: p, onCollapseSectionAt: m, onDeselectAt: h, onExpandedSectionsChange: g, onExpandSectionAt: _, onHeaderCustomEvent: v, onItemCustomEvent: y, onSelectAt: b, onSelectionChange: x, ...S }) {
6709
- let C = Rn(l ?? {}, c), T = Ln(r ?? [], c), E = Bn({ orientation: o }), D = c.map(() => f(null)), k = D.map(yt), A = (e, t) => (C[t]?.indexOf(e) ?? -1) >= 0, M = (e) => T.indexOf(e) >= 0, N = (e) => {
6708
+ function Fn({ ref: e, style: t, children: n, expandedSectionIndices: r, HeaderComponent: i, ItemComponent: a, orientation: o = "vertical", sectionPadding: s = 0, sections: c, selection: l, selectionMode: u = "single", shouldAutoCollapse: d = !1, onActivateAt: p, onCollapseSectionAt: m, onDeselectAt: h, onExpandedSectionsChange: g, onExpandSectionAt: _, onHeaderCustomEvent: v, onItemCustomEvent: y, onSelectAt: b, onSelectionChange: x, ...S }) {
6709
+ let C = zn(l ?? {}, c), T = Rn(r ?? [], c), E = Vn({ orientation: o }), D = c.map(() => f(null)), k = D.map(yt), A = (e, t) => (C[t]?.indexOf(e) ?? -1) >= 0, M = (e) => T.indexOf(e) >= 0, N = (e) => {
6710
6710
  let t;
6711
6711
  t = M(e) ? (t) => t.filter((t) => t !== e) : d ? (t) => [e] : (t) => [...t.filter((t) => t !== e), e], R(T, t(T));
6712
6712
  }, I = (e, t) => {
@@ -6716,7 +6716,7 @@ function Pn({ ref: e, style: t, children: n, expandedSectionIndices: r, HeaderCo
6716
6716
  case "multiple":
6717
6717
  n = (n) => ({
6718
6718
  ...n,
6719
- [t]: zn([...(n[t] ?? []).filter((t) => t !== e), e])
6719
+ [t]: Bn([...(n[t] ?? []).filter((t) => t !== e), e])
6720
6720
  });
6721
6721
  break;
6722
6722
  case "single":
@@ -6731,11 +6731,11 @@ function Pn({ ref: e, style: t, children: n, expandedSectionIndices: r, HeaderCo
6731
6731
  [t]: (n[t] ?? []).filter((t) => t !== e)
6732
6732
  }))(C));
6733
6733
  }, R = (e, t) => {
6734
- if ((0, On.default)(e, t)) return;
6734
+ if ((0, kn.default)(e, t)) return;
6735
6735
  let n = e?.filter((e) => t.indexOf(e) === -1) ?? [], r = t.filter((t) => e?.indexOf(t) === -1);
6736
6736
  n.forEach((e) => m?.(e)), r.forEach((e) => _?.(e)), g?.(t);
6737
6737
  }, z = (e, t) => {
6738
- if ((0, On.default)(e, t)) return;
6738
+ if ((0, kn.default)(e, t)) return;
6739
6739
  let n = c.length, r = [], i = [];
6740
6740
  for (let a = 0; a < n; a++) {
6741
6741
  let n = e?.[a] ?? [], o = t[a] ?? [], s = n.filter((e) => o.indexOf(e) === -1), c = o.filter((e) => n?.indexOf(e) === -1);
@@ -6743,11 +6743,11 @@ function Pn({ ref: e, style: t, children: n, expandedSectionIndices: r, HeaderCo
6743
6743
  }
6744
6744
  r.forEach((e) => h?.(e[0], e[1])), i.forEach((e) => b?.(e[0], e[1])), x?.(t);
6745
6745
  }, B = j(n, {
6746
- collapseIcon: Pn.CollapseIcon,
6747
- expandIcon: Pn.ExpandIcon,
6748
- header: Pn.Header,
6749
- item: Pn.Item,
6750
- section: Pn.Section
6746
+ collapseIcon: Fn.CollapseIcon,
6747
+ expandIcon: Fn.ExpandIcon,
6748
+ header: Fn.Header,
6749
+ item: Fn.Item,
6750
+ section: Fn.Section
6751
6751
  });
6752
6752
  return /* @__PURE__ */ (0, O.jsx)("div", {
6753
6753
  ref: e,
@@ -6765,7 +6765,7 @@ function Pn({ ref: e, style: t, children: n, expandedSectionIndices: r, HeaderCo
6765
6765
  marginLeft: t === 0 ? "0px" : `${s}px`,
6766
6766
  ...S.width > 0 ? { width: `${T}px` } : { visibility: "hidden" }
6767
6767
  }),
6768
- element: B.section ?? /* @__PURE__ */ (0, O.jsx)(Pn.Section, {}),
6768
+ element: B.section ?? /* @__PURE__ */ (0, O.jsx)(Fn.Section, {}),
6769
6769
  children: [/* @__PURE__ */ (0, O.jsx)("div", {
6770
6770
  ref: D[t],
6771
6771
  style: F(E.headerContainer),
@@ -6789,7 +6789,7 @@ function Pn({ ref: e, style: t, children: n, expandedSectionIndices: r, HeaderCo
6789
6789
  }),
6790
6790
  style: F(E.header),
6791
6791
  "aria-expanded": !x,
6792
- element: B.header ?? /* @__PURE__ */ (0, O.jsx)(Pn.Header, {}),
6792
+ element: B.header ?? /* @__PURE__ */ (0, O.jsx)(Fn.Header, {}),
6793
6793
  role: "button",
6794
6794
  onClick: () => N(t),
6795
6795
  children: [/* @__PURE__ */ (0, O.jsx)("span", { dangerouslySetInnerHTML: { __html: e.label } }), B.expandIcon && /* @__PURE__ */ (0, O.jsx)(P, {
@@ -6814,7 +6814,7 @@ function Pn({ ref: e, style: t, children: n, expandedSectionIndices: r, HeaderCo
6814
6814
  width: `${b}px`
6815
6815
  }),
6816
6816
  role: "region",
6817
- children: /* @__PURE__ */ (0, O.jsx)(kn, {
6817
+ children: /* @__PURE__ */ (0, O.jsx)(An, {
6818
6818
  className: w({
6819
6819
  collapsed: x,
6820
6820
  expanded: !x
@@ -6834,7 +6834,7 @@ function Pn({ ref: e, style: t, children: n, expandedSectionIndices: r, HeaderCo
6834
6834
  onCustomEvent: (e, n, r) => y?.(e, t, n, r),
6835
6835
  onDeselectAt: (e) => L(e, t),
6836
6836
  onSelectAt: (e) => I(e, t),
6837
- children: !a && (B.item ?? /* @__PURE__ */ (0, O.jsx)(Pn.Item, {}))
6837
+ children: !a && (B.item ?? /* @__PURE__ */ (0, O.jsx)(Fn.Item, {}))
6838
6838
  })
6839
6839
  })]
6840
6840
  });
@@ -6855,30 +6855,30 @@ function Pn({ ref: e, style: t, children: n, expandedSectionIndices: r, HeaderCo
6855
6855
  }), e.Section = ({ children: e, ...t }) => /* @__PURE__ */ (0, O.jsx)("div", {
6856
6856
  ...t,
6857
6857
  children: e
6858
- }), e.Item = kn.Item;
6859
- })(Pn ||= {});
6860
- function Fn(e, t) {
6858
+ }), e.Item = An.Item;
6859
+ })(Fn ||= {});
6860
+ function In(e, t) {
6861
6861
  return e >= t.length || e < 0;
6862
6862
  }
6863
- function In(e, t, n) {
6864
- return !!(Fn(t, n) || e >= (n[t].items ?? []).length || e < 0);
6865
- }
6866
- function Ln(e, t) {
6867
- return zn(e).filter((e) => !Fn(e, t));
6863
+ function Ln(e, t, n) {
6864
+ return !!(In(t, n) || e >= (n[t].items ?? []).length || e < 0);
6868
6865
  }
6869
6866
  function Rn(e, t) {
6867
+ return Bn(e).filter((e) => !In(e, t));
6868
+ }
6869
+ function zn(e, t) {
6870
6870
  let n = {};
6871
6871
  for (let r in t) {
6872
6872
  if (!Object.hasOwn(t, r)) continue;
6873
- let i = zn([...e[r] ?? []]);
6874
- n[Number(r)] = zn(i).filter((e) => !In(e, Number(r), t));
6873
+ let i = Bn([...e[r] ?? []]);
6874
+ n[Number(r)] = Bn(i).filter((e) => !Ln(e, Number(r), t));
6875
6875
  }
6876
6876
  return n;
6877
6877
  }
6878
- function zn(e) {
6878
+ function Bn(e) {
6879
6879
  return e.sort((e, t) => e - t);
6880
6880
  }
6881
- function Bn({ orientation: e = "vertical" }) {
6881
+ function Vn({ orientation: e = "vertical" }) {
6882
6882
  return M({
6883
6883
  collapseIcon: {
6884
6884
  pointerEvents: "none",
@@ -6930,162 +6930,189 @@ function Bn({ orientation: e = "vertical" }) {
6930
6930
  }
6931
6931
  });
6932
6932
  }
6933
- process.env.NODE_ENV === "development" && (Pn.displayName = "Accordion", Pn.Header.displayName = "Accordion.Header", Pn.ExpandIcon.displayName = "Accordion.ExpandIcon", Pn.CollapseIcon.displayName = "Accordion.CollapseIcon", Pn.Item.displayName = "Accordion.Item");
6933
+ process.env.NODE_ENV === "development" && (Fn.displayName = "Accordion", Fn.Header.displayName = "Accordion.Header", Fn.ExpandIcon.displayName = "Accordion.ExpandIcon", Fn.CollapseIcon.displayName = "Accordion.CollapseIcon", Fn.Item.displayName = "Accordion.Item");
6934
6934
  //#endregion
6935
6935
  //#region src/primitives/Carousel.tsx
6936
- var Vn = .55, Hn = .05, Un = .55, Wn = .5, Gn = .02, Kn = 100, qn = 1e3 / 60;
6937
- function Jn({ ref: e, autoAdvanceInterval: n = 0, children: r, dragSpeed: i = 1, dragStartThreshold: a = 5, index: o = 0, orientation: s = "horizontal", overscrollResistance: c = .7, swipeLiftWindow: d = 100, swipeVelocityThreshold: m = .4, shouldTrackExposure: h = !1, onAutoAdvancePause: g, onAutoAdvanceResume: _, onIndexChange: v, ...y }) {
6938
- let b = f(null), x = f(null), S = f(0), C = f(0), w = f(0), T = f(0), E = f([]), D = f(0), k = f(0), A = f(0), M = f(0), N = f("idle"), I = f(null), L = f(!1), R = f(0), z = Z(g), B = Z(_), V = Z(v), [H, U] = p(), [W, ee] = p(!1), te = un(W, W), G = j(r, {
6939
- content: Jn.Content,
6940
- itemContainer: Jn.ItemContainer,
6941
- viewport: Jn.Viewport
6942
- }), ne = t.toArray(G.content?.props.children), re = ne.length, ie = Xn(o, re), { height: ae, width: oe } = yt(b), se = s === "horizontal" ? oe : ae, ce = -se * Math.max(0, re - 1), le = f(void 0);
6943
- le.current = {
6936
+ var Hn = .5, Un = .02, Wn = 1e3 / 60, Gn = 5, Kn = .7, qn = .5, Jn = .9, Yn = .08, Xn = 100, Zn = .4 * Wn;
6937
+ function Qn({ ref: e, autoAdvanceInterval: n = 0, children: r, dragSpeed: i = 1, index: a = 0, orientation: o = "horizontal", shouldTrackExposure: s = !1, onAutoAdvancePause: c, onAutoAdvanceResume: l, onIndexChange: u, ...d }) {
6938
+ let f = j(r, {
6939
+ content: Qn.Content,
6940
+ item: Qn.Item,
6941
+ viewport: Qn.Viewport
6942
+ }), p = t.toArray(f.content?.props.children), m = p.length, { clickHandler: h, contentRef: g, exposures: _, safeIndex: v, viewportRef: y, isDragging: b } = $n({
6944
6943
  dragSpeed: i,
6945
- dragStartThreshold: a,
6946
- itemCount: re,
6947
- maxDisplacement: 0,
6948
- minDisplacement: ce,
6949
- orientation: s,
6950
- overscrollResistance: c,
6951
- safeIndex: ie,
6952
- swipeLiftWindow: d,
6953
- swipeVelocityThreshold: m,
6954
- viewportLength: se,
6955
- shouldTrackExposure: h
6944
+ index: a,
6945
+ itemCount: m,
6946
+ orientation: o,
6947
+ shouldTrackExposure: s,
6948
+ onIndexChange: u
6949
+ });
6950
+ return er({
6951
+ index: v,
6952
+ interval: n,
6953
+ itemCount: m,
6954
+ isDragging: b,
6955
+ onIndexChange: u,
6956
+ onPause: c,
6957
+ onResume: l
6958
+ }), /* @__PURE__ */ (0, O.jsx)("div", {
6959
+ ...d,
6960
+ ref: e,
6961
+ role: "region",
6962
+ onClick: h,
6963
+ children: /* @__PURE__ */ (0, O.jsx)(P, {
6964
+ ref: y,
6965
+ style: F(lr.viewport, {
6966
+ cursor: b ? "grabbing" : "grab",
6967
+ touchAction: m > 1 ? o === "horizontal" ? "pan-y" : "pan-x" : "auto"
6968
+ }),
6969
+ element: f.viewport ?? /* @__PURE__ */ (0, O.jsx)(Qn.Viewport, {}),
6970
+ children: /* @__PURE__ */ (0, O.jsx)(P, {
6971
+ ref: g,
6972
+ style: {
6973
+ ...lr.content,
6974
+ flexDirection: o === "horizontal" ? "row" : "column"
6975
+ },
6976
+ element: f.content ?? /* @__PURE__ */ (0, O.jsx)(Qn.Content, {}),
6977
+ children: p.map((e, t) => {
6978
+ let n = e.key ?? t, r = _?.[t], i = t === v;
6979
+ return /* @__PURE__ */ (0, O.jsx)(Qn.ItemContext, {
6980
+ value: {
6981
+ exposure: r,
6982
+ index: t,
6983
+ isActive: i
6984
+ },
6985
+ children: /* @__PURE__ */ (0, O.jsx)(P, {
6986
+ style: lr.itemContainer,
6987
+ "aria-hidden": !i,
6988
+ element: f.item ?? /* @__PURE__ */ (0, O.jsx)(Qn.Item, {}),
6989
+ children: e
6990
+ })
6991
+ }, n);
6992
+ })
6993
+ })
6994
+ })
6995
+ });
6996
+ }
6997
+ function $n({ dragSpeed: e, index: t, itemCount: n, orientation: r, shouldTrackExposure: i, onIndexChange: a }) {
6998
+ let o = f(null), s = f(null), c = f(0), d = f(0), m = f(0), h = f(0), g = f(cr(Xn)), _ = f({
6999
+ activeId: void 0,
7000
+ didDrag: !1,
7001
+ gesture: "idle",
7002
+ startAxial: 0,
7003
+ startPosition: K.zero,
7004
+ startTranslation: 0
7005
+ }), v = f(0), y = Z(a), [b, x] = p(), [S, C] = p(!1), { height: w, width: T } = yt(o), E = ar(T, w, r), D = sr(t, n), O = -E * Math.max(0, n - 1), k = f(void 0);
7006
+ k.current = {
7007
+ dragSpeed: e,
7008
+ itemCount: n,
7009
+ maxTranslation: 0,
7010
+ minTranslation: O,
7011
+ orientation: r,
7012
+ safeIndex: D,
7013
+ viewportLength: E,
7014
+ shouldTrackExposure: i
6956
7015
  };
6957
- let ue = (e) => {
6958
- L.current &&= (e.stopPropagation(), !1);
6959
- }, K = () => {
6960
- if (re <= 1) return;
6961
- let e = (ie + 1) % re;
6962
- V.current?.(e);
6963
- }, de = () => {
6964
- let e = le.current;
6965
- if (!e.shouldTrackExposure) return;
6966
- let t = Qn(S.current, e.viewportLength, e.itemCount);
6967
- U((e) => Zn(e, t) ? e : t);
6968
- }, fe = () => {
6969
- T.current ||= requestAnimationFrame(me);
6970
- }, pe = () => {
6971
- T.current &&= (cancelAnimationFrame(T.current), 0);
6972
- }, me = () => {
6973
- let { maxDisplacement: e, minDisplacement: t, orientation: n } = le.current, r = w.current, i = (r - S.current) * Hn;
6974
- if (C.current = C.current * Vn + i, S.current += C.current, (S.current > e || S.current < t) && (C.current *= Un), Math.abs(C.current) < Gn && Math.abs(r - S.current) < Wn) {
6975
- S.current = r, C.current = 0, T.current = 0, Yn(x.current, r, n), de();
7016
+ let A = (e) => {
7017
+ _.current.didDrag && (e.stopPropagation(), _.current.didDrag = !1);
7018
+ }, j = () => {
7019
+ let e = s.current;
7020
+ if (e) {
7021
+ let t = c.current;
7022
+ e.style.transform = k.current.orientation === "horizontal" ? `translate3d(${t}px,0,0)` : `translate3d(0,${t}px,0)`;
7023
+ }
7024
+ }, M = () => {
7025
+ let e = k.current, t = e.shouldTrackExposure ? nr(c.current, e.viewportLength, e.itemCount) : void 0;
7026
+ x((e) => tr(e, t) ? e : t);
7027
+ }, N = () => {
7028
+ j(), M();
7029
+ }, P = () => {
7030
+ h.current ||= requestAnimationFrame(I);
7031
+ }, F = () => {
7032
+ h.current &&= (cancelAnimationFrame(h.current), 0);
7033
+ }, I = () => {
7034
+ let e = k.current, t = m.current, n = (t - c.current) * Yn;
7035
+ if (d.current = d.current * qn + n, c.current += d.current, (c.current > e.maxTranslation || c.current < e.minTranslation) && (d.current *= Jn), Math.abs(d.current) < Un && Math.abs(t - c.current) < Hn) {
7036
+ c.current = t, d.current = 0, h.current = 0, N();
6976
7037
  return;
6977
7038
  }
6978
- Yn(x.current, S.current, n), de(), T.current = requestAnimationFrame(me);
7039
+ N(), h.current = requestAnimationFrame(I);
6979
7040
  };
6980
7041
  return u(() => {
6981
- let e = b.current;
7042
+ let e = o.current;
6982
7043
  if (!e) return;
6983
7044
  let t = (e) => {
6984
- let { itemCount: t, orientation: n } = le.current;
6985
- if (!e.isPrimary || e.button !== 0 || t <= 1 || I.current !== null) return;
6986
- I.current = e.pointerId;
6987
- let r = n === "horizontal" ? e.clientX : e.clientY;
6988
- D.current = S.current, k.current = r, A.current = e.clientX, M.current = e.clientY, E.current = [{
6989
- p: r,
6990
- t: performance.now()
6991
- }], L.current = !1, N.current = "pending";
7045
+ let t = k.current;
7046
+ if (!e.isPrimary || e.button !== 0 || t.itemCount <= 1 || _.current.activeId !== void 0) return;
7047
+ let n = ar(e.clientX, e.clientY, t.orientation);
7048
+ _.current.activeId = e.pointerId, _.current.didDrag = !1, _.current.gesture = "pending", _.current.startAxial = n, _.current.startPosition = K.make(e.clientX, e.clientY), _.current.startTranslation = c.current, g.current.reset(n);
6992
7049
  }, n = (t) => {
6993
- if (I.current !== t.pointerId || N.current === "idle" || N.current === "cross") return;
6994
- let { dragSpeed: n, dragStartThreshold: r, maxDisplacement: i, minDisplacement: a, orientation: o, overscrollResistance: s } = le.current;
6995
- if (N.current === "pending") {
6996
- let n = Math.abs(t.clientX - A.current), i = Math.abs(t.clientY - M.current), a = o === "horizontal" ? n : i, s = o === "horizontal" ? i : n;
6997
- if (Math.max(a, s) < r) return;
6998
- if (a >= s) N.current = "axis", pe(), e.setPointerCapture(t.pointerId), ee(!0);
6999
- else {
7000
- N.current = "cross";
7050
+ if (_.current.activeId !== t.pointerId || _.current.gesture === "idle" || _.current.gesture === "cross") return;
7051
+ let n = k.current, r = _.current, i = ar(t.clientX, t.clientY, n.orientation);
7052
+ if (r.gesture === "pending") {
7053
+ let a = Math.abs(t.clientX - r.startPosition.x), o = Math.abs(t.clientY - r.startPosition.y), s = ar(a, o, n.orientation), l = or(a, o, n.orientation), u = Math.max(s, l) >= Gn, f = l > s;
7054
+ if (!u) return;
7055
+ if (f) {
7056
+ r.gesture = "cross";
7001
7057
  return;
7002
7058
  }
7059
+ F(), d.current = 0, r.gesture = "axis", r.startTranslation = ir(c.current, n.minTranslation, n.maxTranslation, Kn), r.startAxial = i, e.setPointerCapture(t.pointerId), C(!0);
7003
7060
  }
7004
- let c = o === "horizontal" ? t.clientX : t.clientY, l = (c - k.current) * n;
7005
- S.current = $n(D.current + l, a, i, s), Yn(x.current, S.current, o), de(), Math.abs(l) > r && (L.current = !0);
7006
- let u = performance.now(), d = E.current;
7007
- for (d.push({
7008
- p: c,
7009
- t: u
7010
- }); d.length > 0 && u - d[0].t > Kn;) d.shift();
7061
+ let a = (i - r.startAxial) * n.dragSpeed;
7062
+ c.current = rr(r.startTranslation + a, n.minTranslation, n.maxTranslation, Kn), N(), Math.abs(a) >= Gn && (r.didDrag = !0), g.current.add(i);
7011
7063
  }, r = (t) => {
7012
- if (I.current !== t.pointerId) return;
7013
- e.hasPointerCapture(t.pointerId) && e.releasePointerCapture(t.pointerId), I.current = null;
7014
- let n = N.current === "axis";
7015
- if (N.current = "idle", !n) {
7016
- E.current = [];
7064
+ if (_.current.activeId !== t.pointerId) return;
7065
+ e.hasPointerCapture(t.pointerId) && e.releasePointerCapture(t.pointerId), _.current.activeId = void 0;
7066
+ let n = _.current.gesture === "axis";
7067
+ if (_.current.gesture = "idle", !n) {
7068
+ g.current.clear();
7017
7069
  return;
7018
7070
  }
7019
- let { dragSpeed: r, itemCount: i, safeIndex: a, swipeLiftWindow: o, swipeVelocityThreshold: s, viewportLength: c } = le.current, l = E.current, u = performance.now(), d = 0;
7020
- if (l.length >= 2) {
7021
- let e = l[0], t = l[l.length - 1], n = t.t - e.t;
7022
- n > 0 && (d = (t.p - e.p) / n);
7023
- }
7024
- let f = Xn((l.length > 0 ? u - l[l.length - 1].t : Infinity) <= o && Math.abs(d) > s ? a + (d < 0 ? 1 : -1) : c > 0 ? Math.round(-S.current / c) : a, i);
7025
- E.current = [], w.current = -c * f, C.current = d * r * qn, fe(), ee(!1), f !== a && V.current?.(f);
7071
+ let r = k.current, { sinceLast: i, velocity: a } = g.current.release(), o = sr(i <= Xn && Math.abs(a) > Zn ? r.safeIndex + (a < 0 ? 1 : -1) : r.viewportLength > 0 ? Math.round(-c.current / r.viewportLength) : r.safeIndex, r.itemCount);
7072
+ g.current.clear(), m.current = -r.viewportLength * o;
7073
+ let s = a * r.dragSpeed, l = m.current - c.current;
7074
+ d.current = Math.sign(s) === Math.sign(l) ? s : 0, P(), C(!1), o !== r.safeIndex && y.current?.(o);
7026
7075
  }, i = (e) => {
7027
- let t = N.current;
7076
+ e.preventDefault();
7077
+ }, a = (e) => {
7078
+ let t = _.current.gesture;
7028
7079
  (t === "pending" || t === "axis") && e.cancelable && e.preventDefault();
7029
7080
  };
7030
- return e.addEventListener("pointerdown", t, { passive: !0 }), e.addEventListener("pointermove", n, { passive: !0 }), e.addEventListener("pointerup", r, { passive: !0 }), e.addEventListener("pointercancel", r, { passive: !0 }), e.addEventListener("touchmove", i, { passive: !1 }), () => {
7031
- pe(), e.removeEventListener("pointerdown", t), e.removeEventListener("pointermove", n), e.removeEventListener("pointerup", r), e.removeEventListener("pointercancel", r), e.removeEventListener("touchmove", i), I.current = null, N.current = "idle";
7081
+ return e.addEventListener("dragstart", i), e.addEventListener("pointerdown", t, { passive: !0 }), e.addEventListener("pointermove", n, { passive: !0 }), e.addEventListener("pointerup", r, { passive: !0 }), e.addEventListener("pointercancel", r, { passive: !0 }), e.addEventListener("touchmove", a, { passive: !1 }), () => {
7082
+ F(), e.removeEventListener("dragstart", i), e.removeEventListener("pointerdown", t), e.removeEventListener("pointermove", n), e.removeEventListener("pointerup", r), e.removeEventListener("pointercancel", r), e.removeEventListener("touchmove", a), _.current.activeId = void 0, _.current.gesture = "idle";
7032
7083
  };
7033
7084
  }, []), u(() => {
7034
- if (W || se <= 0) return;
7035
- let e = -se * ie, t = R.current !== se;
7036
- R.current = se, w.current = e, t ? (pe(), S.current = e, C.current = 0, Yn(x.current, e, s), de()) : (S.current !== e || C.current !== 0) && fe();
7085
+ if (S || E <= 0) return;
7086
+ let e = -E * D, t = v.current !== E, n = c.current !== e, r = d.current !== 0;
7087
+ v.current = E, m.current = e, t ? (F(), c.current = e, d.current = 0, N()) : (n || r) && P();
7037
7088
  }, [
7038
- ie,
7039
- se,
7040
- W,
7041
- s,
7042
- h
7089
+ D,
7090
+ E,
7091
+ S,
7092
+ r,
7093
+ i
7043
7094
  ]), l(() => {
7044
- h ? de() : U(void 0);
7095
+ M();
7045
7096
  }, [
7046
- h,
7047
- se,
7048
- re
7049
- ]), Yt(n, K, { isEnabled: !W }, [ie]), l(() => {
7050
- n <= 0 || te !== W && (W ? z.current?.() : B.current?.());
7051
- }, [W, n]), /* @__PURE__ */ (0, O.jsx)("div", {
7052
- ...y,
7053
- ref: e,
7054
- role: "region",
7055
- onClick: ue,
7056
- children: /* @__PURE__ */ (0, O.jsx)(P, {
7057
- ref: b,
7058
- style: F(er.viewport, {
7059
- cursor: W ? "grabbing" : "grab",
7060
- touchAction: re > 1 ? s === "horizontal" ? "pan-y" : "pan-x" : "auto"
7061
- }),
7062
- element: G.viewport ?? /* @__PURE__ */ (0, O.jsx)(Jn.Viewport, {}),
7063
- children: /* @__PURE__ */ (0, O.jsx)(P, {
7064
- ref: x,
7065
- style: {
7066
- ...er.content,
7067
- flexDirection: s === "horizontal" ? "row" : "column"
7068
- },
7069
- element: G.content ?? /* @__PURE__ */ (0, O.jsx)(Jn.Content, {}),
7070
- children: ne.map((e, t) => {
7071
- let n = e.key ?? t, r = H?.[t], i = t === ie;
7072
- return /* @__PURE__ */ (0, O.jsx)(Jn.ItemContext, {
7073
- value: {
7074
- exposure: r,
7075
- index: t,
7076
- isActive: i
7077
- },
7078
- children: /* @__PURE__ */ (0, O.jsx)(P, {
7079
- style: F(er.itemContainer),
7080
- "aria-hidden": !i,
7081
- element: G.itemContainer ?? /* @__PURE__ */ (0, O.jsx)(Jn.ItemContainer, {}),
7082
- children: e
7083
- })
7084
- }, n);
7085
- })
7086
- })
7087
- })
7088
- });
7097
+ E,
7098
+ n,
7099
+ i
7100
+ ]), {
7101
+ clickHandler: A,
7102
+ contentRef: s,
7103
+ exposures: b,
7104
+ safeIndex: D,
7105
+ viewportRef: o,
7106
+ isDragging: S
7107
+ };
7108
+ }
7109
+ function er({ index: e, interval: t, itemCount: n, isDragging: r, onIndexChange: i, onPause: a, onResume: o }) {
7110
+ let s = Z(i), c = Z(a), u = Z(o), d = dn(r, r);
7111
+ l(() => {
7112
+ t <= 0 || d !== r && (r ? c.current?.() : u.current?.());
7113
+ }, [r, t]), Yt(t, () => {
7114
+ n <= 1 || s.current?.((e + 1) % n);
7115
+ }, { isEnabled: !r }, [e]);
7089
7116
  }
7090
7117
  (function(e) {
7091
7118
  let t = e.ItemContext = a(void 0);
@@ -7095,7 +7122,7 @@ function Jn({ ref: e, autoAdvanceInterval: n = 0, children: r, dragSpeed: i = 1,
7095
7122
  }), e.Content = ({ children: e, ...t }) => /* @__PURE__ */ (0, O.jsx)("div", {
7096
7123
  ...t,
7097
7124
  children: e
7098
- }), e.ItemContainer = ({ children: e, ...t }) => /* @__PURE__ */ (0, O.jsx)("div", {
7125
+ }), e.Item = ({ children: e, ...t }) => /* @__PURE__ */ (0, O.jsx)("div", {
7099
7126
  ...t,
7100
7127
  children: e
7101
7128
  });
@@ -7105,20 +7132,14 @@ function Jn({ ref: e, autoAdvanceInterval: n = 0, children: r, dragSpeed: i = 1,
7105
7132
  return e;
7106
7133
  }
7107
7134
  e.useItem = n;
7108
- })(Jn ||= {});
7109
- function Yn(e, t, n) {
7110
- e && (n === "horizontal" ? e.style.transform = `translate3d(${t}px,0,0)` : e.style.transform = `translate3d(0,${t}px,0)`);
7111
- }
7112
- function Xn(e, t) {
7113
- return t <= 0 ? 0 : Math.max(0, Math.min(t - 1, e));
7114
- }
7115
- function Zn(e, t) {
7135
+ })(Qn ||= {});
7136
+ function tr(e, t) {
7116
7137
  if (e === t) return !0;
7117
7138
  if (!e || !t || e.length !== t.length) return !1;
7118
7139
  for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
7119
7140
  return !0;
7120
7141
  }
7121
- function Qn(e, t, n) {
7142
+ function nr(e, t, n) {
7122
7143
  if (n <= 0) return [];
7123
7144
  if (t <= 0) return Array(n).fill(0);
7124
7145
  let r = [];
@@ -7128,11 +7149,56 @@ function Qn(e, t, n) {
7128
7149
  }
7129
7150
  return r;
7130
7151
  }
7131
- function $n(e, t, n, r) {
7152
+ function rr(e, t, n, r) {
7132
7153
  let i = 1 - r;
7133
7154
  return e > n ? n + (e - n) * i : e < t ? t + (e - t) * i : e;
7134
7155
  }
7135
- var er = M({
7156
+ function ir(e, t, n, r) {
7157
+ let i = 1 - r;
7158
+ return i <= 0 ? e : e > n ? n + (e - n) / i : e < t ? t + (e - t) / i : e;
7159
+ }
7160
+ function ar(e, t, n) {
7161
+ return n === "horizontal" ? e : t;
7162
+ }
7163
+ function or(e, t, n) {
7164
+ return n === "horizontal" ? t : e;
7165
+ }
7166
+ function sr(e, t) {
7167
+ return t <= 0 ? 0 : Math.max(0, Math.min(t - 1, e));
7168
+ }
7169
+ function cr(e) {
7170
+ let t = [];
7171
+ return {
7172
+ add: (n) => {
7173
+ let r = performance.now();
7174
+ for (t.push({
7175
+ p: n,
7176
+ t: r
7177
+ }); t.length > 0 && r - t[0].t > e;) t.shift();
7178
+ },
7179
+ clear: () => {
7180
+ t = [];
7181
+ },
7182
+ release: () => {
7183
+ let e = performance.now(), n = 0;
7184
+ if (t.length >= 2) {
7185
+ let e = t[0], r = t[t.length - 1], i = r.t - e.t;
7186
+ i > 0 && (n = (r.p - e.p) / i * Wn);
7187
+ }
7188
+ return {
7189
+ sinceLast: t.length > 0 ? e - t[t.length - 1].t : Infinity,
7190
+ velocity: n
7191
+ };
7192
+ },
7193
+ reset: (e) => {
7194
+ t = [{
7195
+ p: e,
7196
+ t: performance.now()
7197
+ }];
7198
+ }
7199
+ };
7200
+ }
7201
+ var lr = M({
7136
7202
  content: {
7137
7203
  alignItems: "center",
7138
7204
  display: "flex",
@@ -7157,15 +7223,15 @@ var er = M({
7157
7223
  width: "100%"
7158
7224
  }
7159
7225
  });
7160
- process.env.NODE_ENV === "development" && (Jn.displayName = "Carousel", Jn.Viewport.displayName = "Carousel.Viewport", Jn.Content.displayName = "Carousel.Content", Jn.ItemContainer.displayName = "Carousel.ItemContainer");
7226
+ process.env.NODE_ENV === "development" && (Qn.displayName = "Carousel", Qn.Viewport.displayName = "Carousel.Viewport", Qn.Content.displayName = "Carousel.Content", Qn.Item.displayName = "Carousel.Item");
7161
7227
  //#endregion
7162
7228
  //#region src/primitives/CodeInput.tsx
7163
- function tr({ ref: e, style: t, autoComplete: n = "one-time-code", autoFocus: r = !1, children: i, inputMode: a = "numeric", placeholder: o, size: s, value: c, isDisabled: u = !1, isRequired: d = !0, onChange: p, ...m }) {
7164
- let h = rr(c, s), g = f([]), _ = nr(), v = j(i, { field: tr.Field }), y = (e) => {
7229
+ function ur({ ref: e, style: t, autoComplete: n = "one-time-code", autoFocus: r = !1, children: i, inputMode: a = "numeric", placeholder: o, size: s, value: c, isDisabled: u = !1, isRequired: d = !0, onChange: p, ...m }) {
7230
+ let h = fr(c, s), g = f([]), _ = dr(), v = j(i, { field: ur.Field }), y = (e) => {
7165
7231
  e < 0 ? g.current[0]?.focus() : e >= s ? g.current[s - 1]?.focus() : g.current[e]?.focus();
7166
7232
  }, b = (e) => (t) => {
7167
- let n = h[e], r = ar(t.target.value, n);
7168
- p(ir(h.slice(), r.split("").slice(0, s), e)), y(Math.min(e + r.length, s - 1));
7233
+ let n = h[e], r = mr(t.target.value, n);
7234
+ p(pr(h.slice(), r.split("").slice(0, s), e)), y(Math.min(e + r.length, s - 1));
7169
7235
  }, x = (e) => (t) => {
7170
7236
  switch (t.key) {
7171
7237
  case "ArrowLeft":
@@ -7185,7 +7251,7 @@ function tr({ ref: e, style: t, autoComplete: n = "one-time-code", autoFocus: r
7185
7251
  }, S = (e) => (t) => {
7186
7252
  t.preventDefault();
7187
7253
  let n = t.clipboardData.getData("text").trim();
7188
- p(ir(h.slice(), n.split("").slice(0, s), e)), y(Math.min(e + n.length, s - 1));
7254
+ p(pr(h.slice(), n.split("").slice(0, s), e)), y(Math.min(e + n.length, s - 1));
7189
7255
  };
7190
7256
  return l(() => {
7191
7257
  if (!r) return;
@@ -7204,7 +7270,7 @@ function tr({ ref: e, style: t, autoComplete: n = "one-time-code", autoFocus: r
7204
7270
  "aria-required": d,
7205
7271
  autoComplete: n,
7206
7272
  disabled: u,
7207
- element: v.field ?? /* @__PURE__ */ (0, O.jsx)(tr.Field, {}),
7273
+ element: v.field ?? /* @__PURE__ */ (0, O.jsx)(ur.Field, {}),
7208
7274
  inputMode: a,
7209
7275
  placeholder: o,
7210
7276
  required: d,
@@ -7223,8 +7289,8 @@ function tr({ ref: e, style: t, autoComplete: n = "one-time-code", autoFocus: r
7223
7289
  autoCorrect: "off",
7224
7290
  type: "text"
7225
7291
  });
7226
- })(tr ||= {});
7227
- function nr() {
7292
+ })(ur ||= {});
7293
+ function dr() {
7228
7294
  return M({
7229
7295
  field: {
7230
7296
  caretColor: "transparent",
@@ -7238,24 +7304,24 @@ function nr() {
7238
7304
  }
7239
7305
  });
7240
7306
  }
7241
- function rr(e, t) {
7307
+ function fr(e, t) {
7242
7308
  let n = e.slice(0, t);
7243
7309
  for (; n.length < t;) n.push("");
7244
7310
  return n;
7245
7311
  }
7246
- function ir(e, t, n = 0) {
7312
+ function pr(e, t, n = 0) {
7247
7313
  let r = n, i = 0;
7248
7314
  for (; i < t.length && r < e.length;) e[r] = t[i], r++, i++;
7249
7315
  for (; i < t.length;) e.shift(), e.push(t[i]), i++;
7250
7316
  return e;
7251
7317
  }
7252
- function ar(e, t) {
7318
+ function mr(e, t) {
7253
7319
  return t === "" ? e : e.startsWith(t) ? e.slice(t.length) : e.endsWith(t) ? e.slice(0, -t.length) : e;
7254
7320
  }
7255
- process.env.NODE_ENV === "development" && (tr.displayName = "CodeInput", tr.Field.displayName = "CodeInput.Field");
7321
+ process.env.NODE_ENV === "development" && (ur.displayName = "CodeInput", ur.Field.displayName = "CodeInput.Field");
7256
7322
  //#endregion
7257
7323
  //#region src/primitives/TextField.tsx
7258
- function or({ className: e, ref: t, emptyValue: n = "", formatter: r, placeholder: i, type: a = "text", value: o, isDisabled: s = !1, isRequired: l = !1, onChange: u, onFocus: d, onUnfocus: f, ...p }) {
7324
+ function hr({ className: e, ref: t, emptyValue: n = "", formatter: r, placeholder: i, type: a = "text", value: o, isDisabled: s = !1, isRequired: l = !1, onChange: u, onFocus: d, onUnfocus: f, ...p }) {
7259
7325
  let m = c((e) => {
7260
7326
  let t = (r?.(e) ?? e) || n;
7261
7327
  u?.(t);
@@ -7277,10 +7343,10 @@ function or({ className: e, ref: t, emptyValue: n = "", formatter: r, placeholde
7277
7343
  onFocus: ({ target: e }) => d?.(e.value)
7278
7344
  });
7279
7345
  }
7280
- process.env.NODE_ENV === "development" && (or.displayName = "TextField");
7346
+ process.env.NODE_ENV === "development" && (hr.displayName = "TextField");
7281
7347
  //#endregion
7282
7348
  //#region src/primitives/Counter.tsx
7283
- function sr({ ref: e, style: t, allowsInput: n = !0, children: r, max: i = NaN, min: a = NaN, quantity: o = 0, onChange: s, ...c }) {
7349
+ function gr({ ref: e, style: t, allowsInput: n = !0, children: r, max: i = NaN, min: a = NaN, quantity: o = 0, onChange: s, ...c }) {
7284
7350
  let u = () => {
7285
7351
  s?.(_(o - 1));
7286
7352
  }, d = () => {
@@ -7296,7 +7362,7 @@ function sr({ ref: e, style: t, allowsInput: n = !0, children: r, max: i = NaN,
7296
7362
  }, _ = (e) => {
7297
7363
  let t = e;
7298
7364
  return isNaN(a) || (t = Math.max(a, t)), isNaN(i) || (t = Math.min(i, t)), t;
7299
- }, [v, y] = p(h(o)), b = un(o), x = !isNaN(i) && o + 1 > i, S = !isNaN(a) && o - 1 < a;
7365
+ }, [v, y] = p(h(o)), b = dn(o), x = !isNaN(i) && o + 1 > i, S = !isNaN(a) && o - 1 < a;
7300
7366
  l(() => {
7301
7367
  b === void 0 || b === o || y(h(_(o)));
7302
7368
  }, [
@@ -7305,24 +7371,24 @@ function sr({ ref: e, style: t, allowsInput: n = !0, children: r, max: i = NaN,
7305
7371
  i
7306
7372
  ]);
7307
7373
  let C = j(r, {
7308
- addButton: sr.AddButton,
7309
- subscribeButton: sr.SubtractButton,
7310
- textField: sr.TextField
7374
+ addButton: gr.AddButton,
7375
+ subscribeButton: gr.SubtractButton,
7376
+ textField: gr.TextField
7311
7377
  });
7312
7378
  return /* @__PURE__ */ (0, O.jsxs)("div", {
7313
7379
  ...c,
7314
7380
  ref: e,
7315
- style: F(t, cr.root),
7381
+ style: F(t, _r.root),
7316
7382
  children: [
7317
7383
  /* @__PURE__ */ (0, O.jsx)(P, {
7318
7384
  className: w({ disabled: S }),
7319
- style: F(cr.subtract),
7320
- element: C.subscribeButton ?? /* @__PURE__ */ (0, O.jsx)(sr.SubtractButton, {}),
7385
+ style: F(_r.subtract),
7386
+ element: C.subscribeButton ?? /* @__PURE__ */ (0, O.jsx)(gr.SubtractButton, {}),
7321
7387
  onClick: () => u()
7322
7388
  }),
7323
7389
  /* @__PURE__ */ (0, O.jsx)(P, {
7324
- style: F(cr.textField),
7325
- element: C.textField ?? /* @__PURE__ */ (0, O.jsx)(sr.TextField, {}),
7390
+ style: F(_r.textField),
7391
+ element: C.textField ?? /* @__PURE__ */ (0, O.jsx)(gr.TextField, {}),
7326
7392
  value: v,
7327
7393
  isDisabled: !n,
7328
7394
  onChange: f,
@@ -7330,23 +7396,23 @@ function sr({ ref: e, style: t, allowsInput: n = !0, children: r, max: i = NaN,
7330
7396
  }),
7331
7397
  /* @__PURE__ */ (0, O.jsx)(P, {
7332
7398
  className: w({ disabled: x }),
7333
- style: F(cr.add),
7334
- element: C.addButton ?? /* @__PURE__ */ (0, O.jsx)(sr.AddButton, {}),
7399
+ style: F(_r.add),
7400
+ element: C.addButton ?? /* @__PURE__ */ (0, O.jsx)(gr.AddButton, {}),
7335
7401
  onClick: () => d()
7336
7402
  })
7337
7403
  ]
7338
7404
  });
7339
7405
  }
7340
7406
  (function(e) {
7341
- e.TextField = ({ ...e }) => /* @__PURE__ */ (0, O.jsx)(or, { ...e }), e.AddButton = ({ children: e, ...t }) => /* @__PURE__ */ (0, O.jsx)("button", {
7407
+ e.TextField = ({ ...e }) => /* @__PURE__ */ (0, O.jsx)(hr, { ...e }), e.AddButton = ({ children: e, ...t }) => /* @__PURE__ */ (0, O.jsx)("button", {
7342
7408
  ...t,
7343
7409
  children: e
7344
7410
  }), e.SubtractButton = ({ children: e, ...t }) => /* @__PURE__ */ (0, O.jsx)("button", {
7345
7411
  ...t,
7346
7412
  children: e
7347
7413
  });
7348
- })(sr ||= {});
7349
- var cr = M({
7414
+ })(gr ||= {});
7415
+ var _r = M({
7350
7416
  add: { flex: "0 0 auto" },
7351
7417
  root: {
7352
7418
  alignItems: "stretch",
@@ -7357,14 +7423,14 @@ var cr = M({
7357
7423
  subtract: { flex: "0 0 auto" },
7358
7424
  textField: { width: "100%" }
7359
7425
  });
7360
- process.env.NODE_ENV === "development" && (sr.displayName = "Counter", sr.AddButton.displayName = "Counter.AddButton", sr.SubtractButton.displayName = "Counter.SubtractButton", sr.TextField.displayName = "Counter.TextField");
7426
+ process.env.NODE_ENV === "development" && (gr.displayName = "Counter", gr.AddButton.displayName = "Counter.AddButton", gr.SubtractButton.displayName = "Counter.SubtractButton", gr.TextField.displayName = "Counter.TextField");
7361
7427
  //#endregion
7362
7428
  //#region src/primitives/Dial.tsx
7363
- function lr({ ref: e, style: t, angle: n = 0, children: r, knobLength: i = 30, knobThickness: a = 10, radius: o = 50, trackGap: s = 0, trackThickness: c = 2, ...l }) {
7429
+ function vr({ ref: e, style: t, angle: n = 0, children: r, knobLength: i = 30, knobThickness: a = 10, radius: o = 50, trackGap: s = 0, trackThickness: c = 2, ...l }) {
7364
7430
  let u = o * 2, d = Math.max(0, Math.min(360, i)), f = j(r, {
7365
- knob: lr.Knob,
7366
- track: lr.Track
7367
- }), p = fr({
7431
+ knob: vr.Knob,
7432
+ track: vr.Track
7433
+ }), p = xr({
7368
7434
  angle: n,
7369
7435
  diameter: u
7370
7436
  });
@@ -7382,7 +7448,7 @@ function lr({ ref: e, style: t, angle: n = 0, children: r, knobLength: i = 30, k
7382
7448
  children: /* @__PURE__ */ (0, O.jsx)(P, {
7383
7449
  cx: o,
7384
7450
  cy: o,
7385
- element: f.track ?? /* @__PURE__ */ (0, O.jsx)(lr.Track, {}),
7451
+ element: f.track ?? /* @__PURE__ */ (0, O.jsx)(vr.Track, {}),
7386
7452
  fill: "none",
7387
7453
  r: o - c / 2,
7388
7454
  strokeDasharray: s,
@@ -7396,8 +7462,8 @@ function lr({ ref: e, style: t, angle: n = 0, children: r, knobLength: i = 30, k
7396
7462
  viewBox: `0 0 ${u} ${u}`,
7397
7463
  xmlns: "http://www.w3.org/2000/svg",
7398
7464
  children: /* @__PURE__ */ (0, O.jsx)(P, {
7399
- d: dr(o, o, o - a / 2 - (c - a) / 2, -d / 2, d / 2),
7400
- element: f.knob ?? /* @__PURE__ */ (0, O.jsx)(lr.Knob, {}),
7465
+ d: br(o, o, o - a / 2 - (c - a) / 2, -d / 2, d / 2),
7466
+ element: f.knob ?? /* @__PURE__ */ (0, O.jsx)(vr.Knob, {}),
7401
7467
  fill: "none",
7402
7468
  strokeWidth: a
7403
7469
  })
@@ -7407,16 +7473,16 @@ function lr({ ref: e, style: t, angle: n = 0, children: r, knobLength: i = 30, k
7407
7473
  }
7408
7474
  (function(e) {
7409
7475
  e.Track = ({ ...e }) => /* @__PURE__ */ (0, O.jsx)("circle", { ...e }), e.Knob = ({ ...e }) => /* @__PURE__ */ (0, O.jsx)("path", { ...e });
7410
- })(lr ||= {});
7411
- function ur(e, t, n, r) {
7476
+ })(vr ||= {});
7477
+ function yr(e, t, n, r) {
7412
7478
  let i = (r - 90) * Math.PI / 180;
7413
7479
  return {
7414
7480
  x: e + n * Math.cos(i),
7415
7481
  y: t + n * Math.sin(i)
7416
7482
  };
7417
7483
  }
7418
- function dr(e, t, n, r, i) {
7419
- let a = ur(e, t, n, i), o = ur(e, t, n, r), s = i - r <= 180 ? "0" : "1";
7484
+ function br(e, t, n, r, i) {
7485
+ let a = yr(e, t, n, i), o = yr(e, t, n, r), s = i - r <= 180 ? "0" : "1";
7420
7486
  return [
7421
7487
  "M",
7422
7488
  a.x,
@@ -7431,7 +7497,7 @@ function dr(e, t, n, r, i) {
7431
7497
  o.y
7432
7498
  ].join(" ");
7433
7499
  }
7434
- function fr({ angle: e = 0, diameter: t = 0 }) {
7500
+ function xr({ angle: e = 0, diameter: t = 0 }) {
7435
7501
  return M({
7436
7502
  knobContainer: {
7437
7503
  backgroundPosition: "center",
@@ -7465,11 +7531,11 @@ function fr({ angle: e = 0, diameter: t = 0 }) {
7465
7531
  }
7466
7532
  });
7467
7533
  }
7468
- process.env.NODE_ENV === "development" && (lr.displayName = "Dial", lr.Track.displayName = "Dial.Track", lr.Knob.displayName = "Dial.Knob");
7534
+ process.env.NODE_ENV === "development" && (vr.displayName = "Dial", vr.Track.displayName = "Dial.Track", vr.Knob.displayName = "Dial.Knob");
7469
7535
  //#endregion
7470
7536
  //#region src/primitives/Dropdown.tsx
7471
- function pr({ className: e, ref: t, style: n, children: r, collectionPadding: i = 0, ItemComponent: a, itemLength: o, itemPadding: s = 0, items: c = [], label: u, layout: d = "list", maxVisibleItems: m = -1, numSegments: h = 1, orientation: g = "vertical", selection: _ = [], selectionMode: v = "single", ToggleComponent: y, isCollapsed: b, isInverted: x = !1, isSelectionTogglable: S = !1, shouldCollapseOnSelect: C = !0, onActivateAt: T, onCollapse: E, onDeselectAt: D, onExpand: k, onSelectAt: A, onSelectionChange: M, onToggleCustomEvent: N, ...I }) {
7472
- let L = f(null), R = Ze(L), z = c.length, B = _r(c, m, h, d), V = o ?? (g === "vertical" ? R.height : R.width), H = V * B + s * (B - 1), U = hr(_, c), [W, ee] = p(b ?? !0), te = vr({
7537
+ function Sr({ className: e, ref: t, style: n, children: r, collectionPadding: i = 0, ItemComponent: a, itemLength: o, itemPadding: s = 0, items: c = [], label: u, layout: d = "list", maxVisibleItems: m = -1, numSegments: h = 1, orientation: g = "vertical", selection: _ = [], selectionMode: v = "single", ToggleComponent: y, isCollapsed: b, isInverted: x = !1, isSelectionTogglable: S = !1, shouldCollapseOnSelect: C = !0, onActivateAt: T, onCollapse: E, onDeselectAt: D, onExpand: k, onSelectAt: A, onSelectionChange: M, onToggleCustomEvent: N, ...I }) {
7538
+ let L = f(null), R = Ze(L), z = c.length, B = Er(c, m, h, d), V = o ?? (g === "vertical" ? R.height : R.width), H = V * B + s * (B - 1), U = wr(_, c), [W, ee] = p(b ?? !0), te = Dr({
7473
7539
  collectionPadding: i,
7474
7540
  maxVisibleItems: m,
7475
7541
  menuLength: H,
@@ -7478,11 +7544,11 @@ function pr({ className: e, ref: t, style: n, children: r, collectionPadding: i
7478
7544
  isCollapsed: W,
7479
7545
  isInverted: x
7480
7546
  }), G = j(r, {
7481
- collapseIcon: pr.CollapseIcon,
7482
- collection: pr.Collection,
7483
- expandIcon: pr.ExpandIcon,
7484
- item: pr.Item,
7485
- toggle: pr.Toggle
7547
+ collapseIcon: Sr.CollapseIcon,
7548
+ collection: Sr.Collection,
7549
+ expandIcon: Sr.ExpandIcon,
7550
+ item: Sr.Item,
7551
+ toggle: Sr.Toggle
7486
7552
  }), ne = () => {
7487
7553
  W && (ee(!1), k?.());
7488
7554
  }, re = () => {
@@ -7540,7 +7606,7 @@ function pr({ className: e, ref: t, style: n, children: r, collectionPadding: i
7540
7606
  style: F(te.toggle),
7541
7607
  "aria-expanded": !W,
7542
7608
  "aria-haspopup": "listbox",
7543
- element: G.toggle ?? /* @__PURE__ */ (0, O.jsx)(pr.Toggle, {}),
7609
+ element: G.toggle ?? /* @__PURE__ */ (0, O.jsx)(Sr.Toggle, {}),
7544
7610
  onClick: ie,
7545
7611
  children: [/* @__PURE__ */ (0, O.jsx)("span", { dangerouslySetInnerHTML: { __html: u?.(U) ?? (U.length > 0 ? U.map((e) => c[e]).join(", ") : "") } }), G.expandIcon && /* @__PURE__ */ (0, O.jsx)(P, {
7546
7612
  className: w({
@@ -7552,7 +7618,7 @@ function pr({ className: e, ref: t, style: n, children: r, collectionPadding: i
7552
7618
  })]
7553
7619
  }), /* @__PURE__ */ (0, O.jsx)(P, {
7554
7620
  style: F(te.collection),
7555
- element: G.collection ?? /* @__PURE__ */ (0, O.jsx)(pr.Collection, {}),
7621
+ element: G.collection ?? /* @__PURE__ */ (0, O.jsx)(Sr.Collection, {}),
7556
7622
  ItemComponent: a,
7557
7623
  itemLength: V,
7558
7624
  itemPadding: s,
@@ -7567,13 +7633,13 @@ function pr({ className: e, ref: t, style: n, children: r, collectionPadding: i
7567
7633
  onDeselectAt: D,
7568
7634
  onSelectAt: ae,
7569
7635
  onSelectionChange: M,
7570
- children: !a && (G.item ?? /* @__PURE__ */ (0, O.jsx)(pr.Item, {}))
7636
+ children: !a && (G.item ?? /* @__PURE__ */ (0, O.jsx)(Sr.Item, {}))
7571
7637
  }, g)]
7572
7638
  })
7573
7639
  });
7574
7640
  }
7575
7641
  (function(e) {
7576
- e.Collection = kn, e.CollapseIcon = ({ children: e, ...t }) => /* @__PURE__ */ (0, O.jsx)("figure", {
7642
+ e.Collection = An, e.CollapseIcon = ({ children: e, ...t }) => /* @__PURE__ */ (0, O.jsx)("figure", {
7577
7643
  ...t,
7578
7644
  "aria-hidden": !0,
7579
7645
  children: e
@@ -7581,21 +7647,21 @@ function pr({ className: e, ref: t, style: n, children: r, collectionPadding: i
7581
7647
  ...t,
7582
7648
  "aria-hidden": !0,
7583
7649
  children: e
7584
- }), e.Item = kn.Item, e.Toggle = ({ children: e, ...t }) => /* @__PURE__ */ (0, O.jsx)("button", {
7650
+ }), e.Item = An.Item, e.Toggle = ({ children: e, ...t }) => /* @__PURE__ */ (0, O.jsx)("button", {
7585
7651
  ...t,
7586
7652
  children: e
7587
7653
  });
7588
- })(pr ||= {});
7589
- function mr(e, t) {
7654
+ })(Sr ||= {});
7655
+ function Cr(e, t) {
7590
7656
  return !!(isNaN(e) || e >= t.length || e < 0);
7591
7657
  }
7592
- function hr(e, t) {
7593
- return gr(e).filter((e) => !mr(e, t));
7658
+ function wr(e, t) {
7659
+ return Tr(e).filter((e) => !Cr(e, t));
7594
7660
  }
7595
- function gr(e) {
7661
+ function Tr(e) {
7596
7662
  return e.sort((e, t) => e - t);
7597
7663
  }
7598
- function _r(e, t, n, r) {
7664
+ function Er(e, t, n, r) {
7599
7665
  let i = e.length;
7600
7666
  switch (r) {
7601
7667
  case "grid": {
@@ -7605,7 +7671,7 @@ function _r(e, t, n, r) {
7605
7671
  default: return t < 0 ? i : Math.min(i, t);
7606
7672
  }
7607
7673
  }
7608
- function vr({ collectionPadding: e = 0, maxVisibleItems: t = 0, menuLength: n = NaN, numItems: r = 0, orientation: i = "vertical", isCollapsed: a = !0, isInverted: o = !1 }) {
7674
+ function Dr({ collectionPadding: e = 0, maxVisibleItems: t = 0, menuLength: n = NaN, numItems: r = 0, orientation: i = "vertical", isCollapsed: a = !0, isInverted: o = !1 }) {
7609
7675
  return M({
7610
7676
  body: {
7611
7677
  height: "100%",
@@ -7664,10 +7730,10 @@ function vr({ collectionPadding: e = 0, maxVisibleItems: t = 0, menuLength: n =
7664
7730
  }
7665
7731
  });
7666
7732
  }
7667
- process.env.NODE_ENV === "development" && (pr.displayName = "Dropdown", pr.Collection.displayName = "Dropdown.Collection", pr.CollapseIcon.displayName = "Dropdown.CollapseIcon", pr.ExpandIcon.displayName = "Dropdown.ExpandIcon", pr.Item.displayName = "Dropdown.Item", pr.Toggle.displayName = "Dropdown.Toggle");
7733
+ process.env.NODE_ENV === "development" && (Sr.displayName = "Dropdown", Sr.Collection.displayName = "Dropdown.Collection", Sr.CollapseIcon.displayName = "Dropdown.CollapseIcon", Sr.ExpandIcon.displayName = "Dropdown.ExpandIcon", Sr.Item.displayName = "Dropdown.Item", Sr.Toggle.displayName = "Dropdown.Toggle");
7668
7734
  //#endregion
7669
7735
  //#region src/primitives/Form.tsx
7670
- function yr({ ref: e, onSubmit: t, ...n }) {
7736
+ function Or({ ref: e, onSubmit: t, ...n }) {
7671
7737
  return /* @__PURE__ */ (0, O.jsx)("form", {
7672
7738
  ...n,
7673
7739
  ref: e,
@@ -7676,11 +7742,11 @@ function yr({ ref: e, onSubmit: t, ...n }) {
7676
7742
  }
7677
7743
  });
7678
7744
  }
7679
- process.env.NODE_ENV !== "production" && (yr.displayName = "Form");
7745
+ process.env.NODE_ENV !== "production" && (Or.displayName = "Form");
7680
7746
  //#endregion
7681
7747
  //#region src/primitives/MasonryGrid.tsx
7682
- var br = "base-";
7683
- function xr({ className: e, ref: t, alignSections: n = !1, children: r, horizontalSpacing: i = 0, orientation: a = "vertical", sections: o = 3, verticalSpacing: s = 0, isReversed: u = !1, ...d }) {
7748
+ var kr = "base-";
7749
+ function Ar({ className: e, ref: t, alignSections: n = !1, children: r, horizontalSpacing: i = 0, orientation: a = "vertical", sections: o = 3, verticalSpacing: s = 0, isReversed: u = !1, ...d }) {
7684
7750
  let m = f(null), [h, g] = p(NaN), [_, v] = p(NaN), [y, b] = p(NaN), [x, S] = p(NaN), C = () => X.from(m.current).width, T = () => X.from(m.current).height, E = () => {
7685
7751
  let e = m.current;
7686
7752
  if (!e) return;
@@ -7693,29 +7759,29 @@ function xr({ className: e, ref: t, alignSections: n = !1, children: r, horizont
7693
7759
  let a = [...Array(r)].map(() => 0);
7694
7760
  for (let e of Array.from(t)) {
7695
7761
  if (!(e instanceof HTMLElement)) continue;
7696
- let t = Er(e, o), [c, l] = wr(a, t);
7762
+ let t = Fr(e, o), [c, l] = Nr(a, t);
7697
7763
  e.role = "gridcell", e.style.position = "absolute", e.style.width = `calc(${100 / r * t}% - ${i * (r - 1) / r * t}px + ${i * (t - 1)}px)`, e.style.height = "", e.style.left = `calc(${100 / r * c}% - ${i * (r - 1) / r * c}px + ${i * c}px)`, e.style.top = `${l + (l === 0 ? 0 : s)}px`;
7698
7764
  for (let n = 0; n < t; n++) a[c + n] = l + (l === 0 ? 0 : s) + X.from(e).height;
7699
7765
  if (n && c + t === r) {
7700
- let e = Tr(a);
7766
+ let e = Pr(a);
7701
7767
  for (let t = 0; t < r; t++) a[t] = e;
7702
7768
  }
7703
7769
  }
7704
- let c = C(), l = Tr(a, r);
7770
+ let c = C(), l = Pr(a, r);
7705
7771
  if (g(c), v(l), isNaN(l) || (e.style.height = `${l}px`), u) for (let e of Array.from(t)) e instanceof HTMLElement && (e.style.left = `calc(${c}px - ${e.style.left} - ${e.getBoundingClientRect().width}px)`);
7706
7772
  } else {
7707
7773
  let a = [...Array(r)].map(() => 0);
7708
7774
  for (let e of Array.from(t)) {
7709
7775
  if (!(e instanceof HTMLElement)) continue;
7710
- let t = Er(e, o), [c, l] = wr(a, t);
7776
+ let t = Fr(e, o), [c, l] = Nr(a, t);
7711
7777
  e.style.position = "absolute", e.style.width = "", e.style.height = `calc(${100 / r * t}% - ${s * (r - 1) / r * t}px + ${s * (t - 1)}px)`, e.style.top = `calc(${100 / r * c}% - ${s * (r - 1) / r * c}px + ${s * c}px)`, e.style.left = `${l + (l === 0 ? 0 : i)}px`;
7712
7778
  for (let n = 0; n < t; n++) a[c + n] = l + (l === 0 ? 0 : i) + X.from(e).width;
7713
7779
  if (n && c + t === r) {
7714
- let e = Tr(a);
7780
+ let e = Pr(a);
7715
7781
  for (let t = 0; t < r; t++) a[t] = e;
7716
7782
  }
7717
7783
  }
7718
- let c = T(), l = Tr(a, r);
7784
+ let c = T(), l = Pr(a, r);
7719
7785
  if (v(c), g(l), isNaN(l) || (e.style.width = `${l}px`), u) for (let e of Array.from(t)) e instanceof HTMLElement && (e.style.top = `calc(${c}px - ${e.style.top} - ${e.getBoundingClientRect().height}px)`);
7720
7786
  }
7721
7787
  };
@@ -7730,7 +7796,7 @@ function xr({ className: e, ref: t, alignSections: n = !1, children: r, horizont
7730
7796
  s,
7731
7797
  a
7732
7798
  ])), l(() => {
7733
- let e = Dr(m.current?.innerHTML);
7799
+ let e = Ir(m.current?.innerHTML);
7734
7800
  if (e.length === 0) return E();
7735
7801
  let t = e.length;
7736
7802
  for (let n = 0; n < t; n++) {
@@ -7738,7 +7804,7 @@ function xr({ className: e, ref: t, alignSections: n = !1, children: r, horizont
7738
7804
  r.src = t, r.onload = () => E();
7739
7805
  }
7740
7806
  }, [r]);
7741
- let D = Sr({ orientation: a }), k = Cr({
7807
+ let D = jr({ orientation: a }), k = Mr({
7742
7808
  minHeight: _,
7743
7809
  minWidth: h,
7744
7810
  orientation: a
@@ -7755,10 +7821,10 @@ function xr({ className: e, ref: t, alignSections: n = !1, children: r, horizont
7755
7821
  })
7756
7822
  });
7757
7823
  }
7758
- function Sr({ orientation: e = "horizontal" }) {
7824
+ function jr({ orientation: e = "horizontal" }) {
7759
7825
  return A({ root: w(e) });
7760
7826
  }
7761
- function Cr({ minHeight: e = NaN, minWidth: t = NaN, orientation: n = "horizontal" }) {
7827
+ function Mr({ minHeight: e = NaN, minWidth: t = NaN, orientation: n = "horizontal" }) {
7762
7828
  return M({ body: {
7763
7829
  height: n === "horizontal" ? "100%" : "auto",
7764
7830
  minHeight: n === "vertical" && !isNaN(e) ? `${e}px` : "",
@@ -7767,28 +7833,28 @@ function Cr({ minHeight: e = NaN, minWidth: t = NaN, orientation: n = "horizonta
7767
7833
  width: n === "horizontal" ? "auto" : "100%"
7768
7834
  } });
7769
7835
  }
7770
- function wr(e, t) {
7836
+ function Nr(e, t) {
7771
7837
  let n = e.length, r = NaN, i = Infinity;
7772
7838
  for (let a = 0; a < n; a++) {
7773
7839
  let o = e[a], s = o < i, c = a + t <= n, l = !0;
7774
7840
  for (let n = 1; n < t; n++) e[a + n] > o && (l = !1);
7775
7841
  s && c && l && (r = a, i = o);
7776
7842
  }
7777
- return isNaN(r) ? [0, Tr(e, t)] : [r, i];
7843
+ return isNaN(r) ? [0, Pr(e, t)] : [r, i];
7778
7844
  }
7779
- function Tr(e, t) {
7845
+ function Pr(e, t) {
7780
7846
  let n = e;
7781
7847
  return t != null && !isNaN(t) && (n = n.slice(0, Math.max(1, Math.min(t, e.length)))), n.reduce((e, t, n) => t > e ? t : e, 0);
7782
7848
  }
7783
- function Er(e, t) {
7849
+ function Fr(e, t) {
7784
7850
  let n = e.classList;
7785
- for (let e of Array.from(n)) if (e.startsWith(br)) {
7786
- let n = parseFloat(e.replace(br, ""));
7851
+ for (let e of Array.from(n)) if (e.startsWith(kr)) {
7852
+ let n = parseFloat(e.replace(kr, ""));
7787
7853
  if (!isNaN(n)) return Math.min(Math.max(n, 1), t);
7788
7854
  }
7789
7855
  return 1;
7790
7856
  }
7791
- function Dr(e) {
7857
+ function Ir(e) {
7792
7858
  if (!e) return [];
7793
7859
  let t = /<img.*?src=(["'])(.*?)\1/g, n = /<img.*?src=(["'])(.*?)\1/, r = t.exec(e) ?? [], i = [];
7794
7860
  for (let e of r) {
@@ -7797,23 +7863,23 @@ function Dr(e) {
7797
7863
  }
7798
7864
  return i;
7799
7865
  }
7800
- process.env.NODE_ENV === "development" && (xr.displayName = "MasonryGrid");
7866
+ process.env.NODE_ENV === "development" && (Ar.displayName = "MasonryGrid");
7801
7867
  //#endregion
7802
7868
  //#region src/primitives/RangeSlider.tsx
7803
- function $({ ref: e, children: t, knobHeight: n = 28, knobPadding: r = 0, knobWidth: i = 40, max: a, min: o, orientation: s = "vertical", range: l = [o, a], steps: p = -1, isClipped: m = !1, formatLabel: h, onChange: g, onDragEnd: _, onDragStart: v, ...y }) {
7804
- let b = e ?? f(null), x = f(null), S = f(null), C = f(null), w = f(null), T = f(!1), E = f(!1), [D, k] = l, A = f(D), M = f(k), N = yt(x), I = d(() => Ir(o, a, p), [
7869
+ function Q({ ref: e, children: t, knobHeight: n = 28, knobPadding: r = 0, knobWidth: i = 40, max: a, min: o, orientation: s = "vertical", range: l = [o, a], steps: p = -1, isClipped: m = !1, formatLabel: h, onChange: g, onDragEnd: _, onDragStart: v, ...y }) {
7870
+ let b = e ?? f(null), x = f(null), S = f(null), C = f(null), w = f(null), T = f(!1), E = f(!1), [D, k] = l, A = f(D), M = f(k), N = yt(x), I = d(() => Gr(o, a, p), [
7805
7871
  o,
7806
7872
  a,
7807
7873
  p
7808
7874
  ]), L = j(t, {
7809
- knob: $.Knob,
7810
- knobContainer: $.KnobContainer,
7811
- label: $.Label,
7812
- track: $.Track,
7813
- trackHighlight: $.TrackHighlight
7875
+ knob: Q.Knob,
7876
+ knobContainer: Q.KnobContainer,
7877
+ label: Q.Label,
7878
+ track: Q.Track,
7879
+ trackHighlight: Q.TrackHighlight
7814
7880
  }), R = c((e, t, r) => {
7815
- let c = s === "horizontal" ? t : r, l = Pr(o, o, a, s, N.width, N.height, i, n, m), u = Pr(M.current, o, a, s, N.width, N.height, i, n, m);
7816
- return Mr(Lr(Pr(e, o, a, s, N.width, N.height, i, n, m) + c, u, l), o, a, s, N.width, N.height, i, n, m);
7881
+ let c = s === "horizontal" ? t : r, l = Ur(o, o, a, s, N.width, N.height, i, n, m), u = Ur(M.current, o, a, s, N.width, N.height, i, n, m);
7882
+ return Vr(Kr(Ur(e, o, a, s, N.width, N.height, i, n, m) + c, u, l), o, a, s, N.width, N.height, i, n, m);
7817
7883
  }, [
7818
7884
  i,
7819
7885
  n,
@@ -7824,8 +7890,8 @@ function $({ ref: e, children: t, knobHeight: n = 28, knobPadding: r = 0, knobWi
7824
7890
  N.width,
7825
7891
  N.height
7826
7892
  ]), z = c((e, t, r) => {
7827
- let c = s === "horizontal" ? t : r, l = Pr(A.current, o, a, s, N.width, N.height, i, n, m), u = Pr(a, o, a, s, N.width, N.height, i, n, m);
7828
- return Mr(Lr(Pr(e, o, a, s, N.width, N.height, i, n, m) + c, u, l), o, a, s, N.width, N.height, i, n, m);
7893
+ let c = s === "horizontal" ? t : r, l = Ur(A.current, o, a, s, N.width, N.height, i, n, m), u = Ur(a, o, a, s, N.width, N.height, i, n, m);
7894
+ return Vr(Kr(Ur(e, o, a, s, N.width, N.height, i, n, m) + c, u, l), o, a, s, N.width, N.height, i, n, m);
7829
7895
  }, [
7830
7896
  i,
7831
7897
  n,
@@ -7836,7 +7902,7 @@ function $({ ref: e, children: t, knobHeight: n = 28, knobPadding: r = 0, knobWi
7836
7902
  N.width,
7837
7903
  N.height
7838
7904
  ]), B = c(([e, t]) => {
7839
- let r = S.current, c = C.current, l = w.current, u = kr(e, o, a), d = `${u * 100}%`, f = kr(t, o, a), p = `${f * 100}%`;
7905
+ let r = S.current, c = C.current, l = w.current, u = Rr(e, o, a), d = `${u * 100}%`, f = Rr(t, o, a), p = `${f * 100}%`;
7840
7906
  s === "horizontal" ? (r && (r.style.left = m ? `calc(${d} + ${i * .5 - u * i}px)` : d), c && (c.style.left = m ? `calc(${p} + ${i * .5 - f * i}px)` : p), l && (l.style.left = d, l.style.width = `${(f - u) * 100}%`)) : (r && (r.style.top = m ? `calc(${d} + ${n * .5 - u * n}px)` : d), c && (c.style.top = m ? `calc(${p} + ${n * .5 - f * n}px)` : p), l && (l.style.top = d, l.style.height = `${(f - u) * 100}%`));
7841
7907
  }, [
7842
7908
  m,
@@ -7852,7 +7918,7 @@ function $({ ref: e, children: t, knobHeight: n = 28, knobPadding: r = 0, knobWi
7852
7918
  vt(S, {
7853
7919
  onDragEnd: () => {
7854
7920
  V(S.current, !1);
7855
- let e = I ? Fr(A.current, I) : A.current;
7921
+ let e = I ? Wr(A.current, I) : A.current;
7856
7922
  A.current = e, T.current = !1, b.current?.classList.remove("dragging"), S.current?.classList.remove("dragging"), C.current?.classList.remove("dragging"), g?.([e, M.current], !1), _?.();
7857
7923
  },
7858
7924
  onDragMove: ({ x: e, y: t }) => {
@@ -7865,7 +7931,7 @@ function $({ ref: e, children: t, knobHeight: n = 28, knobPadding: r = 0, knobWi
7865
7931
  }), vt(C, {
7866
7932
  onDragEnd: () => {
7867
7933
  V(C.current, !1);
7868
- let e = I ? Fr(M.current, I) : M.current;
7934
+ let e = I ? Wr(M.current, I) : M.current;
7869
7935
  M.current = e, E.current = !1, b.current?.classList.remove("dragging"), S.current?.classList.remove("dragging"), C.current?.classList.remove("dragging"), g?.([A.current, e], !1), _?.();
7870
7936
  },
7871
7937
  onDragMove: ({ x: e, y: t }) => {
@@ -7882,7 +7948,7 @@ function $({ ref: e, children: t, knobHeight: n = 28, knobPadding: r = 0, knobWi
7882
7948
  k,
7883
7949
  B
7884
7950
  ]);
7885
- let H = d(() => Or({
7951
+ let H = d(() => Lr({
7886
7952
  knobHeight: n,
7887
7953
  knobPadding: r,
7888
7954
  knobWidth: i,
@@ -7907,39 +7973,39 @@ function $({ ref: e, children: t, knobHeight: n = 28, knobPadding: r = 0, knobWi
7907
7973
  children: [
7908
7974
  /* @__PURE__ */ (0, O.jsx)(P, {
7909
7975
  style: F(H.track),
7910
- element: L.track ?? /* @__PURE__ */ (0, O.jsx)($.Track, {})
7976
+ element: L.track ?? /* @__PURE__ */ (0, O.jsx)(Q.Track, {})
7911
7977
  }),
7912
7978
  /* @__PURE__ */ (0, O.jsx)(P, {
7913
7979
  ref: w,
7914
7980
  style: F(H.trackHighlight),
7915
- element: L.trackHighlight ?? /* @__PURE__ */ (0, O.jsx)($.TrackHighlight, {})
7981
+ element: L.trackHighlight ?? /* @__PURE__ */ (0, O.jsx)(Q.TrackHighlight, {})
7916
7982
  }),
7917
7983
  /* @__PURE__ */ (0, O.jsx)(P, {
7918
7984
  ref: S,
7919
- style: F(H.knobContainer, { pointerEvents: (0, On.default)([D, k], [o, o]) ? "none" : "auto" }, s === "horizontal" ? { top: "50%" } : { left: "50%" }),
7920
- disabled: (0, On.default)([D, k], [o, o]),
7921
- element: L.knobContainer ?? /* @__PURE__ */ (0, O.jsx)($.KnobContainer, {}),
7985
+ style: F(H.knobContainer, { pointerEvents: (0, kn.default)([D, k], [o, o]) ? "none" : "auto" }, s === "horizontal" ? { top: "50%" } : { left: "50%" }),
7986
+ disabled: (0, kn.default)([D, k], [o, o]),
7987
+ element: L.knobContainer ?? /* @__PURE__ */ (0, O.jsx)(Q.KnobContainer, {}),
7922
7988
  children: /* @__PURE__ */ (0, O.jsxs)(P, {
7923
7989
  style: F(H.knob),
7924
- element: L.knob ?? /* @__PURE__ */ (0, O.jsx)($.Knob, {}),
7990
+ element: L.knob ?? /* @__PURE__ */ (0, O.jsx)(Q.Knob, {}),
7925
7991
  children: [/* @__PURE__ */ (0, O.jsx)("div", { style: H.knobHitBox }), L.label && h && /* @__PURE__ */ (0, O.jsx)(P, {
7926
7992
  style: F(H.label),
7927
- element: L.label ?? /* @__PURE__ */ (0, O.jsx)($.Label, {}),
7993
+ element: L.label ?? /* @__PURE__ */ (0, O.jsx)(Q.Label, {}),
7928
7994
  children: h(D, "start")
7929
7995
  })]
7930
7996
  })
7931
7997
  }),
7932
7998
  /* @__PURE__ */ (0, O.jsx)(P, {
7933
7999
  ref: C,
7934
- style: F(H.knobContainer, { pointerEvents: (0, On.default)([D, k], [a, a]) ? "none" : "auto" }, s === "horizontal" ? { top: "50%" } : { left: "50%" }),
7935
- disabled: (0, On.default)([D, k], [a, a]),
7936
- element: L.knobContainer ?? /* @__PURE__ */ (0, O.jsx)($.KnobContainer, {}),
8000
+ style: F(H.knobContainer, { pointerEvents: (0, kn.default)([D, k], [a, a]) ? "none" : "auto" }, s === "horizontal" ? { top: "50%" } : { left: "50%" }),
8001
+ disabled: (0, kn.default)([D, k], [a, a]),
8002
+ element: L.knobContainer ?? /* @__PURE__ */ (0, O.jsx)(Q.KnobContainer, {}),
7937
8003
  children: /* @__PURE__ */ (0, O.jsxs)(P, {
7938
8004
  style: F(H.knob),
7939
- element: L.knob ?? /* @__PURE__ */ (0, O.jsx)($.Knob, {}),
8005
+ element: L.knob ?? /* @__PURE__ */ (0, O.jsx)(Q.Knob, {}),
7940
8006
  children: [/* @__PURE__ */ (0, O.jsx)("div", { style: H.knobHitBox }), L.label && h && /* @__PURE__ */ (0, O.jsx)(P, {
7941
8007
  style: F(H.label),
7942
- element: L.label ?? /* @__PURE__ */ (0, O.jsx)($.Label, {}),
8008
+ element: L.label ?? /* @__PURE__ */ (0, O.jsx)(Q.Label, {}),
7943
8009
  children: h(k, "end")
7944
8010
  })]
7945
8011
  })
@@ -7950,8 +8016,8 @@ function $({ ref: e, children: t, knobHeight: n = 28, knobPadding: r = 0, knobWi
7950
8016
  }
7951
8017
  (function(e) {
7952
8018
  e.Track = ({ ...e }) => /* @__PURE__ */ (0, O.jsx)("div", { ...e }), e.TrackHighlight = ({ ...e }) => /* @__PURE__ */ (0, O.jsx)("div", { ...e }), e.Knob = ({ ...e }) => /* @__PURE__ */ (0, O.jsx)("div", { ...e }), e.KnobContainer = ({ ...e }) => /* @__PURE__ */ (0, O.jsx)("button", { ...e }), e.Label = ({ ...e }) => /* @__PURE__ */ (0, O.jsx)("div", { ...e });
7953
- })($ ||= {});
7954
- function Or({ knobHeight: e = 0, knobPadding: t = 0, knobWidth: n = 0, orientation: r = "horizontal" }) {
8019
+ })(Q ||= {});
8020
+ function Lr({ knobHeight: e = 0, knobPadding: t = 0, knobWidth: n = 0, orientation: r = "horizontal" }) {
7955
8021
  return M({
7956
8022
  body: {
7957
8023
  height: "100%",
@@ -8000,10 +8066,10 @@ function Or({ knobHeight: e = 0, knobPadding: t = 0, knobWidth: n = 0, orientati
8000
8066
  }
8001
8067
  });
8002
8068
  }
8003
- function kr(e, t, n) {
8069
+ function Rr(e, t, n) {
8004
8070
  return (e - t) / (n - t);
8005
8071
  }
8006
- function Ar(e, t, n, r, i, a, o) {
8072
+ function zr(e, t, n, r, i, a, o) {
8007
8073
  switch (t) {
8008
8074
  case "horizontal": {
8009
8075
  let t = o ? n - i : n;
@@ -8016,23 +8082,23 @@ function Ar(e, t, n, r, i, a, o) {
8016
8082
  default: return console.error(`[etudes::RangeSlider] Invalid orientation: ${t}`), NaN;
8017
8083
  }
8018
8084
  }
8019
- function jr(e, t, n) {
8085
+ function Br(e, t, n) {
8020
8086
  return e * (n - t) + t;
8021
8087
  }
8022
- function Mr(e, t, n, r, i, a, o, s, c) {
8023
- return jr(Ar(e, r, i, a, o, s, c), t, n);
8088
+ function Vr(e, t, n, r, i, a, o, s, c) {
8089
+ return Br(zr(e, r, i, a, o, s, c), t, n);
8024
8090
  }
8025
- function Nr(e, t, n, r, i, a, o) {
8091
+ function Hr(e, t, n, r, i, a, o) {
8026
8092
  switch (t) {
8027
8093
  case "horizontal": return e * (o ? n - i : n) + (o ? i * .5 : 0);
8028
8094
  case "vertical": return e * (o ? r - a : r) + (o ? a * .5 : 0);
8029
8095
  default: return console.error(`[etudes::RangeSlider] Invalid orientation: ${t}`), NaN;
8030
8096
  }
8031
8097
  }
8032
- function Pr(e, t, n, r, i, a, o, s, c) {
8033
- return Nr(kr(e, t, n), r, i, a, o, s, c);
8098
+ function Ur(e, t, n, r, i, a, o, s, c) {
8099
+ return Hr(Rr(e, t, n), r, i, a, o, s, c);
8034
8100
  }
8035
- function Fr(e, t) {
8101
+ function Wr(e, t) {
8036
8102
  let n = t.length, r = 0, i = Infinity;
8037
8103
  for (let a = 0; a < n; a++) {
8038
8104
  let n = t[a], o = Math.abs(e - n);
@@ -8040,21 +8106,21 @@ function Fr(e, t) {
8040
8106
  }
8041
8107
  return t[r];
8042
8108
  }
8043
- function Ir(e, t, n) {
8109
+ function Gr(e, t, n) {
8044
8110
  if (!(n < 0)) return [
8045
8111
  e,
8046
8112
  ...[...Array(n)].map((r, i) => e + (i + 1) * (t - e) / (1 + n)),
8047
8113
  t
8048
8114
  ];
8049
8115
  }
8050
- function Lr(e, t, n) {
8116
+ function Kr(e, t, n) {
8051
8117
  return Math.max(n, Math.min(t, e));
8052
8118
  }
8053
- process.env.NODE_ENV === "development" && ($.displayName = "RangeSlider", $.Knob.displayName = "RangeSlider.Knob", $.Label.displayName = "RangeSlider.Label", $.Track.displayName = "RangeSlider.Track", $.TrackHighlight.displayName = "RangeSlider.TrackHighlight");
8119
+ process.env.NODE_ENV === "development" && (Q.displayName = "RangeSlider", Q.Knob.displayName = "RangeSlider.Knob", Q.Label.displayName = "RangeSlider.Label", Q.Track.displayName = "RangeSlider.Track", Q.TrackHighlight.displayName = "RangeSlider.TrackHighlight");
8054
8120
  //#endregion
8055
8121
  //#region src/primitives/ScrollableCarousel.tsx
8056
- function Rr({ ref: e, autoAdvanceInterval: t = 0, dragSpeed: n = 1, index: r = 0, ItemComponent: i, items: a = [], orientation: o = "horizontal", isDragEnabled: s = !0, shouldTrackExposure: l = !1, onAutoAdvancePause: d, onAutoAdvanceResume: m, onIndexChange: h, ...g }) {
8057
- let _ = f(void 0), v = f(null), y = f(void 0), b = f(void 0), x = f(void 0), S = 1e3, C = Z(d), w = Z(m), T = Z(h), E = f(K.zero), D = f(!1), k = f(!1), A = Qt(), [j, M] = p(Br(v, o)), [N, P] = p(!1), I = Hr({
8122
+ function qr({ ref: e, autoAdvanceInterval: t = 0, dragSpeed: n = 1, index: r = 0, ItemComponent: i, items: a = [], orientation: o = "horizontal", isDragEnabled: s = !0, shouldTrackExposure: l = !1, onAutoAdvancePause: d, onAutoAdvanceResume: m, onIndexChange: h, ...g }) {
8123
+ let _ = f(void 0), v = f(null), y = f(void 0), b = f(void 0), x = f(void 0), S = 1e3, C = Z(d), w = Z(m), T = Z(h), E = f(K.zero), D = f(!1), k = f(!1), A = Qt(), [j, M] = p(Yr(v, o)), [N, P] = p(!1), I = Zr({
8058
8124
  orientation: o,
8059
8125
  scrollSnapEnabled: A || !N
8060
8126
  }), L = t > 0, R = c(() => {
@@ -8064,9 +8130,9 @@ function Rr({ ref: e, autoAdvanceInterval: t = 0, dragSpeed: n = 1, index: r = 0
8064
8130
  clearTimeout(x.current), x.current = void 0;
8065
8131
  }, S);
8066
8132
  }, [S, R]), B = c(() => {
8067
- zr(v, r, o), z();
8133
+ Jr(v, r, o), z();
8068
8134
  }, [r, o]), V = c(() => {
8069
- M(Br(v, o));
8135
+ M(Yr(v, o));
8070
8136
  }, [o]), H = c((e) => {
8071
8137
  A || (y.current = K.make(e.clientX, e.clientY), P(!0));
8072
8138
  }, [A]), U = c((e) => {
@@ -8163,7 +8229,7 @@ function Rr({ ref: e, autoAdvanceInterval: t = 0, dragSpeed: n = 1, index: r = 0
8163
8229
  })
8164
8230
  });
8165
8231
  }
8166
- function zr(e, t, n) {
8232
+ function Jr(e, t, n) {
8167
8233
  let r = e?.current;
8168
8234
  if (!r) return;
8169
8235
  let i = n === "horizontal" ? 0 : r.clientHeight * t, a = n === "horizontal" ? r.clientWidth * t : 0;
@@ -8173,14 +8239,14 @@ function zr(e, t, n) {
8173
8239
  top: i
8174
8240
  });
8175
8241
  }
8176
- function Br(e, t) {
8242
+ function Yr(e, t) {
8177
8243
  let n = e?.current;
8178
8244
  if (!n) return;
8179
8245
  let r = [];
8180
- for (let i = 0; i < n.children.length; i++) r.push(Vr(i, e, t));
8246
+ for (let i = 0; i < n.children.length; i++) r.push(Xr(i, e, t));
8181
8247
  return r;
8182
8248
  }
8183
- function Vr(e, t, n) {
8249
+ function Xr(e, t, n) {
8184
8250
  let r = t?.current, i = r?.children[e];
8185
8251
  if (!i) return 0;
8186
8252
  let a = X.intersecting(i, r);
@@ -8190,7 +8256,7 @@ function Vr(e, t, n) {
8190
8256
  default: return console.error(`[etudes::ScrollableCarousel] Unsupported orientation: ${n}`), NaN;
8191
8257
  }
8192
8258
  }
8193
- function Hr({ orientation: e = "horizontal", scrollSnapEnabled: t = !1 }) {
8259
+ function Zr({ orientation: e = "horizontal", scrollSnapEnabled: t = !1 }) {
8194
8260
  return M({
8195
8261
  item: {
8196
8262
  height: "100%",
@@ -8226,40 +8292,40 @@ function Hr({ orientation: e = "horizontal", scrollSnapEnabled: t = !1 }) {
8226
8292
  }
8227
8293
  });
8228
8294
  }
8229
- process.env.NODE_ENV === "development" && (Rr.displayName = "ScrollableCarousel");
8295
+ process.env.NODE_ENV === "development" && (qr.displayName = "ScrollableCarousel");
8230
8296
  //#endregion
8231
8297
  //#region src/primitives/Select.tsx
8232
- function Ur({ id: e, ref: t, children: n, name: r, options: i, placeholder: a, value: o, isRequired: s = !1, formatValue: c = (e) => e, onChange: l, ...u }) {
8298
+ function Qr({ id: e, ref: t, children: n, name: r, options: i, placeholder: a, value: o, isRequired: s = !1, formatValue: c = (e) => e, onChange: l, ...u }) {
8233
8299
  let d = j(n, {
8234
- expandIcon: Ur.ExpandIcon,
8235
- option: Ur.Option,
8236
- toggle: Ur.Toggle
8300
+ expandIcon: Qr.ExpandIcon,
8301
+ option: Qr.Option,
8302
+ toggle: Qr.Toggle
8237
8303
  });
8238
8304
  return /* @__PURE__ */ (0, O.jsxs)("div", {
8239
8305
  ...u,
8240
8306
  ref: t,
8241
- style: Wr.root,
8307
+ style: $r.root,
8242
8308
  children: [/* @__PURE__ */ (0, O.jsxs)(P, {
8243
- style: Wr.select,
8309
+ style: $r.select,
8244
8310
  "aria-required": s ? "true" : void 0,
8245
- element: d.toggle ?? /* @__PURE__ */ (0, O.jsx)(Ur.Toggle, {}),
8311
+ element: d.toggle ?? /* @__PURE__ */ (0, O.jsx)(Qr.Toggle, {}),
8246
8312
  name: r,
8247
8313
  required: s,
8248
8314
  value: o,
8249
8315
  onChange: (e) => l?.(e.target.value),
8250
8316
  children: [a !== void 0 && /* @__PURE__ */ (0, O.jsx)(P, {
8251
8317
  disabled: !0,
8252
- element: d.option ?? /* @__PURE__ */ (0, O.jsx)(Ur.Option, {}),
8318
+ element: d.option ?? /* @__PURE__ */ (0, O.jsx)(Qr.Option, {}),
8253
8319
  hidden: !0,
8254
8320
  value: "",
8255
8321
  children: a
8256
8322
  }), i.map((e, t) => /* @__PURE__ */ (0, O.jsx)(P, {
8257
- element: d.option ?? /* @__PURE__ */ (0, O.jsx)(Ur.Option, {}),
8323
+ element: d.option ?? /* @__PURE__ */ (0, O.jsx)(Qr.Option, {}),
8258
8324
  value: e,
8259
8325
  children: c(e)
8260
8326
  }, `${t}-${e}`))]
8261
8327
  }), d.expandIcon && /* @__PURE__ */ (0, O.jsx)(P, {
8262
- style: Wr.expandIcon,
8328
+ style: $r.expandIcon,
8263
8329
  element: d.expandIcon
8264
8330
  })]
8265
8331
  });
@@ -8274,8 +8340,8 @@ function Ur({ id: e, ref: t, children: n, name: r, options: i, placeholder: a, v
8274
8340
  ...t,
8275
8341
  children: e
8276
8342
  });
8277
- })(Ur ||= {});
8278
- var Wr = M({
8343
+ })(Qr ||= {});
8344
+ var $r = M({
8279
8345
  expandIcon: {
8280
8346
  pointerEvents: "none",
8281
8347
  zIndex: 1
@@ -8297,20 +8363,20 @@ var Wr = M({
8297
8363
  width: "100%"
8298
8364
  }
8299
8365
  });
8300
- process.env.NODE_ENV === "development" && (Ur.displayName = "Select", Ur.ExpandIcon.displayName = "Select.ExpandIcon", Ur.Option.displayName = "Select.Option", Ur.Toggle.displayName = "Select.Toggle");
8366
+ process.env.NODE_ENV === "development" && (Qr.displayName = "Select", Qr.ExpandIcon.displayName = "Select.ExpandIcon", Qr.Option.displayName = "Select.Option", Qr.Toggle.displayName = "Select.Toggle");
8301
8367
  //#endregion
8302
8368
  //#region src/primitives/Slider.tsx
8303
- function Gr({ ref: e, children: t, knobHeight: n = 30, knobPadding: r = 0, knobWidth: i = 30, orientation: a = "vertical", position: o = 0, trackPadding: s = 0, isClipped: l = !1, isInverted: p = !1, isTrackInteractive: m = !0, formatLabel: h, onChange: g, onDragEnd: _, onDragStart: v, ...y }) {
8369
+ function ei({ ref: e, children: t, knobHeight: n = 30, knobPadding: r = 0, knobWidth: i = 30, orientation: a = "vertical", position: o = 0, trackPadding: s = 0, isClipped: l = !1, isInverted: p = !1, isTrackInteractive: m = !0, formatLabel: h, onChange: g, onDragEnd: _, onDragStart: v, ...y }) {
8304
8370
  let b = e ?? f(null), x = f(null), S = f(null), C = f(null), w = f(null), T = f(o), E = f(!1), D = Ze(x), k = c((e, t, r) => {
8305
- let o = Jr(e, p);
8371
+ let o = ri(e, p);
8306
8372
  switch (a) {
8307
8373
  case "horizontal": {
8308
8374
  let n = l ? D.width - i : D.width;
8309
- return n <= 0 ? e : qr(Yr((o * n + t) / n), p);
8375
+ return n <= 0 ? e : ni(ii((o * n + t) / n), p);
8310
8376
  }
8311
8377
  case "vertical": {
8312
8378
  let t = l ? D.height - n : D.height;
8313
- return t <= 0 ? e : qr(Yr((o * t + r) / t), p);
8379
+ return t <= 0 ? e : ni(ii((o * t + r) / t), p);
8314
8380
  }
8315
8381
  default: return console.error(`[etudes::Slider] Invalid orientation: ${a}`), NaN;
8316
8382
  }
@@ -8323,7 +8389,7 @@ function Gr({ ref: e, children: t, knobHeight: n = 30, knobPadding: r = 0, knobW
8323
8389
  n,
8324
8390
  a
8325
8391
  ]), A = c((e) => {
8326
- let t = Jr(e, p), r = S.current, o = C.current, c = w.current, u = (e) => `${s <= 0 ? 0 : e * .5}px - ${s}px`;
8392
+ let t = ri(e, p), r = S.current, o = C.current, c = w.current, u = (e) => `${s <= 0 ? 0 : e * .5}px - ${s}px`;
8327
8393
  switch (a) {
8328
8394
  case "horizontal":
8329
8395
  r && (r.style.left = l ? `calc(${t * 100}% + ${i * .5 - t * i}px)` : `${t * 100}%`), o && (o.style.width = `calc(${t * 100}% - ${u(i)})`), c && (c.style.width = `calc(${(1 - t) * 100}% - ${u(i)})`);
@@ -8353,11 +8419,11 @@ function Gr({ ref: e, children: t, knobHeight: n = 30, knobPadding: r = 0, knobW
8353
8419
  switch (a) {
8354
8420
  case "horizontal":
8355
8421
  if (D.width <= 0) return;
8356
- n = qr((e.clientX + t.left - D.left) / D.width, p);
8422
+ n = ni((e.clientX + t.left - D.left) / D.width, p);
8357
8423
  break;
8358
8424
  case "vertical":
8359
8425
  if (D.height <= 0) return;
8360
- n = qr((e.clientY + t.top - D.top) / D.height, p);
8426
+ n = ni((e.clientY + t.top - D.top) / D.height, p);
8361
8427
  break;
8362
8428
  default:
8363
8429
  console.error(`[etudes::Slider] Invalid orientation: ${a}`);
@@ -8387,7 +8453,7 @@ function Gr({ ref: e, children: t, knobHeight: n = 30, knobPadding: r = 0, knobW
8387
8453
  }), u(() => {
8388
8454
  E.current || (T.current = o, A(o));
8389
8455
  }, [o, A]);
8390
- let I = p ? o === 0 : o === 1, L = p ? o === 1 : o === 0, R = d(() => Kr({
8456
+ let I = p ? o === 0 : o === 1, L = p ? o === 1 : o === 0, R = d(() => ti({
8391
8457
  knobHeight: n,
8392
8458
  knobPadding: r,
8393
8459
  knobWidth: i,
@@ -8400,10 +8466,10 @@ function Gr({ ref: e, children: t, knobHeight: n = 30, knobPadding: r = 0, knobW
8400
8466
  a,
8401
8467
  m
8402
8468
  ]), z = j(t, {
8403
- knob: Gr.Knob,
8404
- knobContainer: Gr.KnobContainer,
8405
- label: Gr.Label,
8406
- track: Gr.Track
8469
+ knob: ei.Knob,
8470
+ knobContainer: ei.KnobContainer,
8471
+ label: ei.Label,
8472
+ track: ei.Track
8407
8473
  });
8408
8474
  return /* @__PURE__ */ (0, O.jsx)("div", {
8409
8475
  ...y,
@@ -8422,7 +8488,7 @@ function Gr({ ref: e, children: t, knobHeight: n = 30, knobPadding: r = 0, knobW
8422
8488
  ref: C,
8423
8489
  style: F(R.track, a === "vertical" ? { top: "0" } : { left: "0" }),
8424
8490
  "data-side": p ? "end" : "start",
8425
- element: z.track ?? /* @__PURE__ */ (0, O.jsx)(Gr.Track, {}),
8491
+ element: z.track ?? /* @__PURE__ */ (0, O.jsx)(ei.Track, {}),
8426
8492
  onClick: N,
8427
8493
  children: /* @__PURE__ */ (0, O.jsx)("div", { style: R.trackHitBox })
8428
8494
  }),
@@ -8430,20 +8496,20 @@ function Gr({ ref: e, children: t, knobHeight: n = 30, knobPadding: r = 0, knobW
8430
8496
  ref: w,
8431
8497
  style: F(R.track, a === "vertical" ? { bottom: "0" } : { right: "0" }),
8432
8498
  "data-side": p ? "start" : "end",
8433
- element: z.track ?? /* @__PURE__ */ (0, O.jsx)(Gr.Track, {}),
8499
+ element: z.track ?? /* @__PURE__ */ (0, O.jsx)(ei.Track, {}),
8434
8500
  onClick: N,
8435
8501
  children: /* @__PURE__ */ (0, O.jsx)("div", { style: R.trackHitBox })
8436
8502
  }),
8437
8503
  /* @__PURE__ */ (0, O.jsx)(P, {
8438
8504
  ref: S,
8439
8505
  style: R.knobContainer,
8440
- element: z.knobContainer ?? /* @__PURE__ */ (0, O.jsx)(Gr.KnobContainer, {}),
8506
+ element: z.knobContainer ?? /* @__PURE__ */ (0, O.jsx)(ei.KnobContainer, {}),
8441
8507
  children: /* @__PURE__ */ (0, O.jsxs)(P, {
8442
8508
  style: F(R.knob),
8443
- element: z.knob ?? /* @__PURE__ */ (0, O.jsx)(Gr.Knob, {}),
8509
+ element: z.knob ?? /* @__PURE__ */ (0, O.jsx)(ei.Knob, {}),
8444
8510
  children: [/* @__PURE__ */ (0, O.jsx)("div", { style: R.knobHitBox }), h && /* @__PURE__ */ (0, O.jsx)(P, {
8445
8511
  style: F(R.label),
8446
- element: z.label ?? /* @__PURE__ */ (0, O.jsx)(Gr.Label, {}),
8512
+ element: z.label ?? /* @__PURE__ */ (0, O.jsx)(ei.Label, {}),
8447
8513
  children: h(o)
8448
8514
  })]
8449
8515
  })
@@ -8454,8 +8520,8 @@ function Gr({ ref: e, children: t, knobHeight: n = 30, knobPadding: r = 0, knobW
8454
8520
  }
8455
8521
  (function(e) {
8456
8522
  e.Track = ({ ...e }) => /* @__PURE__ */ (0, O.jsx)("div", { ...e }), e.Knob = ({ ...e }) => /* @__PURE__ */ (0, O.jsx)("div", { ...e }), e.KnobContainer = ({ ...e }) => /* @__PURE__ */ (0, O.jsx)("button", { ...e }), e.Label = ({ ...e }) => /* @__PURE__ */ (0, O.jsx)("div", { ...e });
8457
- })(Gr ||= {});
8458
- function Kr({ knobHeight: e = 0, knobPadding: t = 0, knobWidth: n = 0, orientation: r = "vertical", isTrackInteractive: i = !0 }) {
8523
+ })(ei ||= {});
8524
+ function ti({ knobHeight: e = 0, knobPadding: t = 0, knobWidth: n = 0, orientation: r = "vertical", isTrackInteractive: i = !0 }) {
8459
8525
  return M({
8460
8526
  body: {
8461
8527
  height: "100%",
@@ -8514,29 +8580,29 @@ function Kr({ knobHeight: e = 0, knobPadding: t = 0, knobWidth: n = 0, orientati
8514
8580
  }
8515
8581
  });
8516
8582
  }
8517
- function qr(e, t) {
8583
+ function ni(e, t) {
8518
8584
  return t ? 1 - e : e;
8519
8585
  }
8520
- function Jr(e, t) {
8586
+ function ri(e, t) {
8521
8587
  return t ? 1 - e : e;
8522
8588
  }
8523
- function Yr(e, t = 1, n = 0) {
8589
+ function ii(e, t = 1, n = 0) {
8524
8590
  return Math.max(n, Math.min(t, e));
8525
8591
  }
8526
- process.env.NODE_ENV === "development" && (Gr.displayName = "Slider", Gr.Track.displayName = "Slider.Track", Gr.Knob.displayName = "Slider.Knob", Gr.KnobContainer.displayName = "Slider.KnobContainer", Gr.Label.displayName = "Slider.Label");
8592
+ process.env.NODE_ENV === "development" && (ei.displayName = "Slider", ei.Track.displayName = "Slider.Track", ei.Knob.displayName = "Slider.Knob", ei.KnobContainer.displayName = "Slider.KnobContainer", ei.Label.displayName = "Slider.Label");
8527
8593
  //#endregion
8528
8594
  //#region src/primitives/StepSlider.tsx
8529
- function Xr({ ref: e, children: t, index: n = 0, knobHeight: r = 30, knobPadding: i = 0, knobWidth: a = 30, orientation: o = "vertical", steps: s = Qr(10), trackPadding: l = 0, isClipped: p = !1, isInverted: m = !1, isTrackInteractive: h = !0, formatLabel: g, onDragEnd: _, onDragStart: v, onIndexChange: y, onPositionChange: b, ...x }) {
8530
- let S = e || f(null), C = f(null), w = f(null), T = f(null), E = f(null), D = f(ei(n, s)), k = f(n), A = f(!1), M = Ze(C), N = c((e, t, n) => {
8531
- let i = ni(e, m);
8595
+ function $({ ref: e, children: t, index: n = 0, knobHeight: r = 30, knobPadding: i = 0, knobWidth: a = 30, orientation: o = "vertical", steps: s = oi(10), trackPadding: l = 0, isClipped: p = !1, isInverted: m = !1, isTrackInteractive: h = !0, formatLabel: g, onDragEnd: _, onDragStart: v, onIndexChange: y, onPositionChange: b, ...x }) {
8596
+ let S = e || f(null), C = f(null), w = f(null), T = f(null), E = f(null), D = f(ci(n, s)), k = f(n), A = f(!1), M = Ze(C), N = c((e, t, n) => {
8597
+ let i = ui(e, m);
8532
8598
  switch (o) {
8533
8599
  case "horizontal": {
8534
8600
  let n = p ? M.width - a : M.width;
8535
- return n <= 0 ? e : ti(ri((i * n + t) / n), m);
8601
+ return n <= 0 ? e : li(di((i * n + t) / n), m);
8536
8602
  }
8537
8603
  case "vertical": {
8538
8604
  let t = p ? M.height - r : M.height;
8539
- return t <= 0 ? e : ti(ri((i * t + n) / t), m);
8605
+ return t <= 0 ? e : li(di((i * t + n) / t), m);
8540
8606
  }
8541
8607
  default: return console.error(`[etudes::StepSlider] Invalid orientation: ${o}`), NaN;
8542
8608
  }
@@ -8549,7 +8615,7 @@ function Xr({ ref: e, children: t, index: n = 0, knobHeight: r = 30, knobPadding
8549
8615
  r,
8550
8616
  o
8551
8617
  ]), I = c((e) => {
8552
- let t = ni(e, m), n = w.current, i = T.current, s = E.current, c = (e) => `${l <= 0 ? 0 : e * .5}px - ${l}px`;
8618
+ let t = ui(e, m), n = w.current, i = T.current, s = E.current, c = (e) => `${l <= 0 ? 0 : e * .5}px - ${l}px`;
8553
8619
  switch (o) {
8554
8620
  case "horizontal":
8555
8621
  n && (n.style.left = p ? `calc(${t * 100}% + ${a * .5 - t * a}px)` : `${t * 100}%`), i && (i.style.width = `calc(${t * 100}% - ${c(a)})`), s && (s.style.width = `calc(${(1 - t) * 100}% - ${c(a)})`);
@@ -8579,19 +8645,19 @@ function Xr({ ref: e, children: t, index: n = 0, knobHeight: r = 30, knobPadding
8579
8645
  switch (o) {
8580
8646
  case "horizontal":
8581
8647
  if (M.width <= 0) return;
8582
- n = ti((e.clientX + t.left - M.left) / M.width, m);
8648
+ n = li((e.clientX + t.left - M.left) / M.width, m);
8583
8649
  break;
8584
8650
  case "vertical":
8585
8651
  if (M.height <= 0) return;
8586
- n = ti((e.clientY + t.top - M.top) / M.height, m);
8652
+ n = li((e.clientY + t.top - M.top) / M.height, m);
8587
8653
  break;
8588
8654
  default:
8589
8655
  console.error(`[etudes::StepSlider] Invalid orientation: ${o}`);
8590
8656
  return;
8591
8657
  }
8592
- let r = $r(n, s), i = r === k.current ? ri(n > D.current ? r + 1 : r - 1, s.length - 1) : r;
8658
+ let r = si(n, s), i = r === k.current ? di(n > D.current ? r + 1 : r - 1, s.length - 1) : r;
8593
8659
  if (i !== k.current) {
8594
- let e = ei(i, s);
8660
+ let e = ci(i, s);
8595
8661
  k.current = i, D.current = e, I(e), b?.(e, !1), y?.(i, !1);
8596
8662
  }
8597
8663
  }, [
@@ -8608,14 +8674,14 @@ function Xr({ ref: e, children: t, index: n = 0, knobHeight: r = 30, knobPadding
8608
8674
  vt(w, {
8609
8675
  onDragEnd: () => {
8610
8676
  L(!1), A.current = !1, S.current?.classList.remove("dragging"), w.current?.classList.remove("dragging");
8611
- let e = $r(D.current, s), t = ei(e, s);
8677
+ let e = si(D.current, s), t = ci(e, s);
8612
8678
  D.current = t, k.current = e, I(t), b?.(t, !1), y?.(e, !1), _?.();
8613
8679
  },
8614
8680
  onDragMove: ({ x: e, y: t }) => {
8615
8681
  let n = N(D.current, e, t);
8616
8682
  if (n !== D.current) {
8617
8683
  D.current = n, I(n), b?.(n, !0);
8618
- let e = $r(n, s);
8684
+ let e = si(n, s);
8619
8685
  e !== k.current && (k.current = e, y?.(e, !0));
8620
8686
  }
8621
8687
  A.current = !0, S.current?.classList.add("dragging"), w.current?.classList.add("dragging");
@@ -8625,14 +8691,14 @@ function Xr({ ref: e, children: t, index: n = 0, knobHeight: r = 30, knobPadding
8625
8691
  }
8626
8692
  }), u(() => {
8627
8693
  if (A.current) return;
8628
- let e = ei(n, s);
8694
+ let e = ci(n, s);
8629
8695
  k.current = n, D.current = e, I(e);
8630
8696
  }, [
8631
8697
  n,
8632
8698
  I,
8633
8699
  _t(s)
8634
8700
  ]);
8635
- let z = ei(n, s), B = m ? z === 0 : z === 1, V = m ? z === 1 : z === 0, H = d(() => Zr({
8701
+ let z = ci(n, s), B = m ? z === 0 : z === 1, V = m ? z === 1 : z === 0, H = d(() => ai({
8636
8702
  knobHeight: r,
8637
8703
  knobPadding: i,
8638
8704
  knobWidth: a,
@@ -8645,10 +8711,10 @@ function Xr({ ref: e, children: t, index: n = 0, knobHeight: r = 30, knobPadding
8645
8711
  o,
8646
8712
  h
8647
8713
  ]), U = j(t, {
8648
- knob: Xr.Knob,
8649
- knobContainer: Xr.KnobContainer,
8650
- label: Xr.Label,
8651
- track: Xr.Track
8714
+ knob: $.Knob,
8715
+ knobContainer: $.KnobContainer,
8716
+ label: $.Label,
8717
+ track: $.Track
8652
8718
  });
8653
8719
  return /* @__PURE__ */ (0, O.jsx)("div", {
8654
8720
  ...x,
@@ -8667,7 +8733,7 @@ function Xr({ ref: e, children: t, index: n = 0, knobHeight: r = 30, knobPadding
8667
8733
  ref: T,
8668
8734
  style: F(H.track, o === "vertical" ? { top: "0" } : { left: "0" }),
8669
8735
  "data-side": m ? "end" : "start",
8670
- element: U.track ?? /* @__PURE__ */ (0, O.jsx)(Xr.Track, {}),
8736
+ element: U.track ?? /* @__PURE__ */ (0, O.jsx)($.Track, {}),
8671
8737
  onClick: R,
8672
8738
  children: /* @__PURE__ */ (0, O.jsx)("div", { style: H.trackHitBox })
8673
8739
  }),
@@ -8675,20 +8741,20 @@ function Xr({ ref: e, children: t, index: n = 0, knobHeight: r = 30, knobPadding
8675
8741
  ref: E,
8676
8742
  style: F(H.track, o === "vertical" ? { bottom: "0" } : { right: "0" }),
8677
8743
  "data-side": m ? "start" : "end",
8678
- element: U.track ?? /* @__PURE__ */ (0, O.jsx)(Xr.Track, {}),
8744
+ element: U.track ?? /* @__PURE__ */ (0, O.jsx)($.Track, {}),
8679
8745
  onClick: R,
8680
8746
  children: /* @__PURE__ */ (0, O.jsx)("div", { style: H.trackHitBox })
8681
8747
  }),
8682
8748
  /* @__PURE__ */ (0, O.jsx)(P, {
8683
8749
  ref: w,
8684
8750
  style: F(H.knobContainer),
8685
- element: U.knobContainer ?? /* @__PURE__ */ (0, O.jsx)(Xr.KnobContainer, {}),
8751
+ element: U.knobContainer ?? /* @__PURE__ */ (0, O.jsx)($.KnobContainer, {}),
8686
8752
  children: /* @__PURE__ */ (0, O.jsxs)(P, {
8687
8753
  style: F(H.knob),
8688
- element: U.knob ?? /* @__PURE__ */ (0, O.jsx)(Xr.Knob, {}),
8754
+ element: U.knob ?? /* @__PURE__ */ (0, O.jsx)($.Knob, {}),
8689
8755
  children: [/* @__PURE__ */ (0, O.jsx)("div", { style: H.knobHitBox }), g && /* @__PURE__ */ (0, O.jsx)(P, {
8690
8756
  style: F(H.label),
8691
- element: U.label ?? /* @__PURE__ */ (0, O.jsx)(Xr.Label, {}),
8757
+ element: U.label ?? /* @__PURE__ */ (0, O.jsx)($.Label, {}),
8692
8758
  children: g(z, n)
8693
8759
  })]
8694
8760
  })
@@ -8698,9 +8764,9 @@ function Xr({ ref: e, children: t, index: n = 0, knobHeight: r = 30, knobPadding
8698
8764
  });
8699
8765
  }
8700
8766
  (function(e) {
8701
- e.Knob = ({ ...e }) => /* @__PURE__ */ (0, O.jsx)("div", { ...e }), e.KnobContainer = ({ ...e }) => /* @__PURE__ */ (0, O.jsx)("button", { ...e }), e.Label = ({ ...e }) => /* @__PURE__ */ (0, O.jsx)("div", { ...e }), e.Track = ({ ...e }) => /* @__PURE__ */ (0, O.jsx)("div", { ...e }), e.generateSteps = Qr;
8702
- })(Xr ||= {});
8703
- function Zr({ knobHeight: e = 0, knobPadding: t = 0, knobWidth: n = 0, orientation: r = "vertical", isTrackInteractive: i = !1 }) {
8767
+ e.Knob = ({ ...e }) => /* @__PURE__ */ (0, O.jsx)("div", { ...e }), e.KnobContainer = ({ ...e }) => /* @__PURE__ */ (0, O.jsx)("button", { ...e }), e.Label = ({ ...e }) => /* @__PURE__ */ (0, O.jsx)("div", { ...e }), e.Track = ({ ...e }) => /* @__PURE__ */ (0, O.jsx)("div", { ...e }), e.generateSteps = oi;
8768
+ })($ ||= {});
8769
+ function ai({ knobHeight: e = 0, knobPadding: t = 0, knobWidth: n = 0, orientation: r = "vertical", isTrackInteractive: i = !1 }) {
8704
8770
  return M({
8705
8771
  body: {
8706
8772
  height: "100%",
@@ -8759,38 +8825,38 @@ function Zr({ knobHeight: e = 0, knobPadding: t = 0, knobWidth: n = 0, orientati
8759
8825
  }
8760
8826
  });
8761
8827
  }
8762
- function Qr(e) {
8828
+ function oi(e) {
8763
8829
  if (e <= 1) return console.error("[etudes::StepSlider] `length` value must be greater than or equal to 2"), [];
8764
8830
  if (Math.round(e) !== e) return console.error("[etudes::StepSlider] `length` value must be an integer"), [];
8765
8831
  let t = 1 / (e - 1);
8766
8832
  return Array(e).fill(null).map((e, n) => t * n);
8767
8833
  }
8768
- function $r(e, t) {
8834
+ function si(e, t) {
8769
8835
  let n = -1, r = NaN;
8770
8836
  for (let i = 0, a = t.length; i < a; i++) {
8771
- let a = ei(i, t);
8837
+ let a = ci(i, t);
8772
8838
  if (isNaN(a)) continue;
8773
8839
  let o = Math.abs(e - a);
8774
8840
  (isNaN(r) || o < r) && (r = o, n = i);
8775
8841
  }
8776
8842
  return n;
8777
8843
  }
8778
- function ei(e, t) {
8844
+ function ci(e, t) {
8779
8845
  return e >= t.length ? NaN : t[e];
8780
8846
  }
8781
- function ti(e, t) {
8847
+ function li(e, t) {
8782
8848
  return t ? 1 - e : e;
8783
8849
  }
8784
- function ni(e, t) {
8850
+ function ui(e, t) {
8785
8851
  return t ? 1 - e : e;
8786
8852
  }
8787
- function ri(e, t = 1, n = 0) {
8853
+ function di(e, t = 1, n = 0) {
8788
8854
  return Math.max(n, Math.min(t, e));
8789
8855
  }
8790
- process.env.NODE_ENV === "development" && (Xr.displayName = "StepSlider", Xr.Track.displayName = "StepSlider.Track", Xr.Knob.displayName = "StepSlider.Knob", Xr.KnobContainer.displayName = "StepSlider.KnobContainer", Xr.Label.displayName = "StepSlider.Label");
8856
+ process.env.NODE_ENV === "development" && ($.displayName = "StepSlider", $.Track.displayName = "StepSlider.Track", $.Knob.displayName = "StepSlider.Knob", $.KnobContainer.displayName = "StepSlider.KnobContainer", $.Label.displayName = "StepSlider.Label");
8791
8857
  //#endregion
8792
8858
  //#region src/primitives/SwipeRegion.tsx
8793
- function ii({ ref: e, children: t, threshold: n = .5, isEnabled: r = !0, onSwipeDown: i, onSwipeLeft: a, onSwipeRight: o, onSwipeUp: s, ...c }) {
8859
+ function fi({ ref: e, children: t, threshold: n = .5, isEnabled: r = !0, onSwipeDown: i, onSwipeLeft: a, onSwipeRight: o, onSwipeUp: s, ...c }) {
8794
8860
  let [l, u] = p(void 0), [d, f] = p(void 0), [m, h] = p(NaN), g = (e, t) => {
8795
8861
  if (isNaN(e) || isNaN(t)) return y();
8796
8862
  u(K.make(e, t));
@@ -8818,24 +8884,24 @@ function ii({ ref: e, children: t, threshold: n = .5, isEnabled: r = !0, onSwipe
8818
8884
  children: t
8819
8885
  });
8820
8886
  }
8821
- process.env.NODE_ENV === "development" && (ii.displayName = "SwipeRegion");
8887
+ process.env.NODE_ENV === "development" && (fi.displayName = "SwipeRegion");
8822
8888
  //#endregion
8823
8889
  //#region src/primitives/TextArea.tsx
8824
- function ai({ ref: e, onChange: t, ...n }) {
8890
+ function pi({ ref: e, onChange: t, ...n }) {
8825
8891
  return /* @__PURE__ */ (0, O.jsx)("textarea", {
8826
8892
  ...n,
8827
8893
  ref: e,
8828
8894
  onChange: (e) => t(e.target.value)
8829
8895
  });
8830
8896
  }
8831
- process.env.NODE_ENV === "development" && (ai.displayName = "TextArea");
8897
+ process.env.NODE_ENV === "development" && (pi.displayName = "TextArea");
8832
8898
  //#endregion
8833
8899
  //#region src/primitives/Toggle.tsx
8834
- function oi({ className: e, ref: t, style: n, children: r, orientation: i = "horizontal", isInverted: a = !1, isOn: o = !1, onChange: s, ...c }) {
8900
+ function mi({ className: e, ref: t, style: n, children: r, orientation: i = "horizontal", isInverted: a = !1, isOn: o = !1, onChange: s, ...c }) {
8835
8901
  let l = f(null), u = yt(l), d = j(r, {
8836
- knob: oi.Knob,
8837
- track: oi.Track
8838
- }), p = si({ isOn: o }), m = ci({
8902
+ knob: mi.Knob,
8903
+ track: mi.Track
8904
+ }), p = hi({ isOn: o }), m = gi({
8839
8905
  knobSize: u,
8840
8906
  orientation: i,
8841
8907
  isInverted: a,
@@ -8854,7 +8920,7 @@ function oi({ className: e, ref: t, style: n, children: r, orientation: i = "hor
8854
8920
  }), /* @__PURE__ */ (0, O.jsx)(P, {
8855
8921
  className: p.track,
8856
8922
  style: m.track,
8857
- element: d.track ?? /* @__PURE__ */ (0, O.jsx)(oi.Track, {}),
8923
+ element: d.track ?? /* @__PURE__ */ (0, O.jsx)(mi.Track, {}),
8858
8924
  children: /* @__PURE__ */ (0, O.jsx)("div", {
8859
8925
  style: {
8860
8926
  height: "100%",
@@ -8865,7 +8931,7 @@ function oi({ className: e, ref: t, style: n, children: r, orientation: i = "hor
8865
8931
  className: p.knob,
8866
8932
  ref: l,
8867
8933
  style: m.knob,
8868
- element: d.knob ?? /* @__PURE__ */ (0, O.jsx)(oi.Knob, {})
8934
+ element: d.knob ?? /* @__PURE__ */ (0, O.jsx)(mi.Knob, {})
8869
8935
  })
8870
8936
  })
8871
8937
  })]
@@ -8879,15 +8945,15 @@ function oi({ className: e, ref: t, style: n, children: r, orientation: i = "hor
8879
8945
  ...t,
8880
8946
  children: e
8881
8947
  });
8882
- })(oi ||= {});
8883
- function si({ isOn: e = !1 }) {
8948
+ })(mi ||= {});
8949
+ function hi({ isOn: e = !1 }) {
8884
8950
  return A({
8885
8951
  knob: w({ active: e }),
8886
8952
  root: w({ active: e }),
8887
8953
  track: w({ active: e })
8888
8954
  });
8889
8955
  }
8890
- function ci({ knobSize: e = q.zero, orientation: t = "horizontal", isInverted: n = !1, isOn: r = !1 }) {
8956
+ function gi({ knobSize: e = q.zero, orientation: t = "horizontal", isInverted: n = !1, isOn: r = !1 }) {
8891
8957
  return M({
8892
8958
  input: {
8893
8959
  height: 0,
@@ -8917,40 +8983,40 @@ function ci({ knobSize: e = q.zero, orientation: t = "horizontal", isInverted: n
8917
8983
  track: { position: "relative" }
8918
8984
  });
8919
8985
  }
8920
- process.env.NODE_ENV === "development" && (oi.displayName = "Toggle", oi.Knob.displayName = "Toggle.Knob", oi.Track.displayName = "Toggle.Track");
8986
+ process.env.NODE_ENV === "development" && (mi.displayName = "Toggle", mi.Knob.displayName = "Toggle.Knob", mi.Track.displayName = "Toggle.Track");
8921
8987
  //#endregion
8922
8988
  //#region src/providers/ScrollPositionProvider.tsx
8923
- var li = {
8989
+ var _i = {
8924
8990
  current: K.zero,
8925
8991
  end: K.zero,
8926
8992
  progress: K.zero,
8927
8993
  start: K.zero
8928
- }, ui = a(li), di = a(!0), fi = a(!1);
8929
- function pi({ children: e, scrollBottomOffset: t = 0, scrollTopOffset: n = 0, target: r }) {
8930
- let [i, a] = p(!0), [o, s] = p(!1), [c, l] = p(li);
8931
- return fn(r, (e) => {
8994
+ }, vi = a(_i), yi = a(!0), bi = a(!1);
8995
+ function xi({ children: e, scrollBottomOffset: t = 0, scrollTopOffset: n = 0, target: r }) {
8996
+ let [i, a] = p(!0), [o, s] = p(!1), [c, l] = p(_i);
8997
+ return pn(r, (e) => {
8932
8998
  l(e), a(e.current.y <= e.start.y + n), s(e.current.y >= e.end.y - t);
8933
- }), /* @__PURE__ */ (0, O.jsx)(di.Provider, {
8999
+ }), /* @__PURE__ */ (0, O.jsx)(yi.Provider, {
8934
9000
  value: i,
8935
- children: /* @__PURE__ */ (0, O.jsx)(fi.Provider, {
9001
+ children: /* @__PURE__ */ (0, O.jsx)(bi.Provider, {
8936
9002
  value: o,
8937
- children: /* @__PURE__ */ (0, O.jsx)(ui.Provider, {
9003
+ children: /* @__PURE__ */ (0, O.jsx)(vi.Provider, {
8938
9004
  value: c,
8939
9005
  children: e
8940
9006
  })
8941
9007
  })
8942
9008
  });
8943
9009
  }
8944
- function mi() {
8945
- let e = s(di);
9010
+ function Si() {
9011
+ let e = s(yi);
8946
9012
  return e === void 0 && console.warn("[etudes::useIsScrollTop] `useIsScrollTop` must be used within a `ScrollPositionProvider`"), e ?? !0;
8947
9013
  }
8948
- function hi() {
8949
- let e = s(fi);
9014
+ function Ci() {
9015
+ let e = s(bi);
8950
9016
  return e === void 0 && console.warn("[etudes::useIsScrollBottom] `useIsScrollBottom` must be used within a `ScrollPositionProvider`"), e ?? !1;
8951
9017
  }
8952
- function gi() {
8953
- let e = s(ui);
9018
+ function wi() {
9019
+ let e = s(vi);
8954
9020
  return e || console.warn("[etudes::useScrollPosition] `useScrollPosition` must be used within a `ScrollPositionProvider`"), e ?? {
8955
9021
  current: K.zero,
8956
9022
  end: K.zero,
@@ -8958,26 +9024,26 @@ function gi() {
8958
9024
  start: K.zero
8959
9025
  };
8960
9026
  }
8961
- process.env.NODE_ENV === "development" && (pi.displayName = "ScrollPositionProvider", ui.displayName = "ScrollPositionContext", di.displayName = "ScrollTopContext", fi.displayName = "ScrollBottomContext");
9027
+ process.env.NODE_ENV === "development" && (xi.displayName = "ScrollPositionProvider", vi.displayName = "ScrollPositionContext", yi.displayName = "ScrollTopContext", bi.displayName = "ScrollBottomContext");
8962
9028
  //#endregion
8963
9029
  //#region src/utils/createKeyDeep.ts
8964
- function _i(e) {
8965
- return e == null ? "" : Array.isArray(e) ? JSON.stringify(e.map(_i)) : typeof e == "object" ? JSON.stringify(Object.entries(e).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => [e, _i(t)])) : _t(e);
9030
+ function Ti(e) {
9031
+ return e == null ? "" : Array.isArray(e) ? JSON.stringify(e.map(Ti)) : typeof e == "object" ? JSON.stringify(Object.entries(e).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => [e, Ti(t)])) : _t(e);
8966
9032
  }
8967
9033
  //#endregion
8968
9034
  //#region src/utils/ExtractChildren.tsx
8969
- function vi({ children: e, ...n }) {
9035
+ function Ei({ children: e, ...n }) {
8970
9036
  return /* @__PURE__ */ (0, O.jsx)(O.Fragment, { children: t.map(e, (e) => o(e) ? N(e, { ...n }) : e) });
8971
9037
  }
8972
- process.env.NODE_ENV === "development" && (vi.displayName = "ExtractChildren");
9038
+ process.env.NODE_ENV === "development" && (Ei.displayName = "ExtractChildren");
8973
9039
  //#endregion
8974
9040
  //#region src/utils/getSystemColorScheme.ts
8975
- function yi() {
9041
+ function Di() {
8976
9042
  return typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
8977
9043
  }
8978
9044
  //#endregion
8979
9045
  //#region src/utils/NoSSR.tsx
8980
- function bi({ children: e, fallback: t = void 0 }) {
9046
+ function Oi({ children: e, fallback: t = void 0 }) {
8981
9047
  let [n, i] = p(!1);
8982
9048
  if (l(() => {
8983
9049
  i(typeof window < "u");
@@ -8987,4 +9053,4 @@ function bi({ children: e, fallback: t = void 0 }) {
8987
9053
  });
8988
9054
  }
8989
9055
  //#endregion
8990
- export { Pn as Accordion, I as Burger, R as BurgerButton, ft as Button, Jn as Carousel, tr as CodeInput, kn as Collection, kt as Conditional, sr as Counter, it as CoverImage, ut as CoverVideo, lr as Dial, pr as Dropdown, At as Each, Nt as ExtractChild, vi as ExtractChildren, yr as Form, nt as Image, Qe as ImageSource, xr as MasonryGrid, bi as NoSSR, ht as OptionButton, bt as Panorama, Et as PanoramaSlider, rt as Picture, $ as RangeSlider, k as Repeat, pi as ScrollPositionProvider, Rr as ScrollableCarousel, Ur as Select, Ot as SelectableButton, Gr as Slider, Xr as StepSlider, P as Styled, ii as SwipeRegion, jt as Switch, ai as TextArea, or as TextField, oi as Toggle, lt as Video, It as WithTooltip, A as asClassNameDict, j as asComponentDict, M as asStyleDict, N as cloneStyledElement, _t as createKey, _i as createKeyDeep, tn as createLocalCache, _n as createSessionCache, Cn as getStyle, yi as getSystemColorScheme, Zt as isTouchDevice, Pt as measureIntrinsicSize, wn as setStyle, Ft as setStyles, F as styles, Vt as useClassName, Ht as useClickOutside, Ut as useCopyBlobToClipboard, Kt as useDPR, Wt as useDownloadBlob, qt as useDrag, Jt as useDropzone, $e as useImageLoader, et as useImageSize, vt as useInertiaDrag, Je as useIntersectionObserver, Yt as useInterval, Xt as useIsMounted, hi as useIsScrollBottom, mi as useIsScrollTop, Qt as useIsTouchDevice, $t as useKeyboardShortcut, Z as useLatest, Q as useLocalCache, sn as useMouseEnter, cn as useMouseLeave, ln as useOS, un as usePrevious, Ze as useRect, dn as useRightClick, gi as useScrollPosition, fn as useScrollPositionObserver, Sn as useSessionCache, yt as useSize, Ye as useSizeObserver, Tn as useStyle, En as useSystemColorScheme, Dn as useTimeout, ot as useVideoMetadataLoader, st as useVideoSize, Xe as useViewportSize };
9056
+ export { Fn as Accordion, I as Burger, R as BurgerButton, ft as Button, Qn as Carousel, ur as CodeInput, An as Collection, kt as Conditional, gr as Counter, it as CoverImage, ut as CoverVideo, vr as Dial, Sr as Dropdown, At as Each, Nt as ExtractChild, Ei as ExtractChildren, Or as Form, nt as Image, Qe as ImageSource, Ar as MasonryGrid, Oi as NoSSR, ht as OptionButton, bt as Panorama, Et as PanoramaSlider, rt as Picture, Q as RangeSlider, k as Repeat, xi as ScrollPositionProvider, qr as ScrollableCarousel, Qr as Select, Ot as SelectableButton, ei as Slider, $ as StepSlider, P as Styled, fi as SwipeRegion, jt as Switch, pi as TextArea, hr as TextField, mi as Toggle, lt as Video, It as WithTooltip, A as asClassNameDict, j as asComponentDict, M as asStyleDict, N as cloneStyledElement, _t as createKey, Ti as createKeyDeep, tn as createLocalCache, vn as createSessionCache, wn as getStyle, Di as getSystemColorScheme, Zt as isTouchDevice, Pt as measureIntrinsicSize, Tn as setStyle, Ft as setStyles, F as styles, Vt as useClassName, Ht as useClickOutside, Ut as useCopyBlobToClipboard, Kt as useDPR, Wt as useDownloadBlob, qt as useDrag, Jt as useDropzone, $e as useImageLoader, et as useImageSize, vt as useInertiaDrag, Je as useIntersectionObserver, Yt as useInterval, Xt as useIsMounted, Ci as useIsScrollBottom, Si as useIsScrollTop, Qt as useIsTouchDevice, $t as useKeyboardShortcut, Z as useLatest, sn as useLocalCache, cn as useMouseEnter, ln as useMouseLeave, un as useOS, dn as usePrevious, Ze as useRect, fn as useRightClick, wi as useScrollPosition, pn as useScrollPositionObserver, Cn as useSessionCache, yt as useSize, Ye as useSizeObserver, En as useStyle, Dn as useSystemColorScheme, On as useTimeout, ot as useVideoMetadataLoader, st as useVideoSize, Xe as useViewportSize };