ymy-components 0.1.2 → 0.1.3

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.
Files changed (3) hide show
  1. package/dist/index.cjs +14 -13
  2. package/dist/index.js +229 -228
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as m, jsxs as C, Fragment as Jt } from "react/jsx-runtime";
2
2
  import * as Lt from "react";
3
- import Q, { useState as B, useRef as I, useEffect as F, useLayoutEffect as Rn, forwardRef as Ln, useCallback as G, useContext as Vt, useMemo as He, createContext as Vn, memo as Mn } from "react";
3
+ import Q, { useState as B, useRef as $, useEffect as F, useLayoutEffect as Rn, forwardRef as Ln, useCallback as G, useContext as Vt, useMemo as He, createContext as Vn, memo as Mn } from "react";
4
4
  import { unstable_batchedUpdates as Fn } from "react-dom";
5
5
  import _, { keyframes as Z, css as gt } from "styled-components";
6
6
  import { createSlice as zn, combineReducers as Nn, configureStore as jn } from "@reduxjs/toolkit";
@@ -137,7 +137,7 @@ function X(e, t) {
137
137
  }
138
138
  return e === t;
139
139
  }
140
- var A = (e, t) => e.forEach(t);
140
+ var P = (e, t) => e.forEach(t);
141
141
  function Y(e, t, r) {
142
142
  if (h.arr(e)) {
143
143
  for (let n = 0; n < e.length; n++)
@@ -151,7 +151,7 @@ var M = (e) => h.und(e) ? [] : h.arr(e) ? e : [e];
151
151
  function ke(e, t) {
152
152
  if (e.size) {
153
153
  const r = Array.from(e);
154
- e.clear(), A(r, t);
154
+ e.clear(), P(r, t);
155
155
  }
156
156
  }
157
157
  var xe = (e, ...t) => ke(e, (r) => r(...t)), Bt = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), Ht, Br, ne = null, Hr = !1, Ut = Tt, Wn = (e) => {
@@ -162,10 +162,10 @@ var xe = (e, ...t) => ke(e, (r) => r(...t)), Bt = () => typeof window > "u" || !
162
162
  },
163
163
  /** Advance the given animation on every frame until idle. */
164
164
  start(e) {
165
- Ye > e.priority ? (Se.add(e), S.onStart(Gn)) : (Ur(e), S(At));
165
+ Ye > e.priority ? (Se.add(e), S.onStart(Gn)) : (Ur(e), S(Pt));
166
166
  },
167
167
  /** Advance all animations by the given time. */
168
- advance: At,
168
+ advance: Pt,
169
169
  /** Call this when an animation's priority changes. */
170
170
  sort(e) {
171
171
  if (Ye)
@@ -185,7 +185,7 @@ var xe = (e, ...t) => ke(e, (r) => r(...t)), Bt = () => typeof window > "u" || !
185
185
  }
186
186
  };
187
187
  function Gn() {
188
- Se.forEach(Ur), Se.clear(), S(At);
188
+ Se.forEach(Ur), Se.clear(), S(Pt);
189
189
  }
190
190
  function Ur(e) {
191
191
  j.includes(e) || qr(e);
@@ -197,7 +197,7 @@ function qr(e) {
197
197
  e
198
198
  );
199
199
  }
200
- function At(e) {
200
+ function Pt(e) {
201
201
  const t = mt;
202
202
  for (let r = 0; r < j.length; r++) {
203
203
  const n = j[r];
@@ -439,11 +439,11 @@ function nr(e) {
439
439
  const r = (t & 4278190080) >>> 24, n = (t & 16711680) >>> 16, i = (t & 65280) >>> 8, s = (t & 255) / 255;
440
440
  return `rgba(${r}, ${n}, ${i}, ${s})`;
441
441
  }
442
- var Pe = (e, t, r) => {
442
+ var Ae = (e, t, r) => {
443
443
  if (h.fun(e))
444
444
  return e;
445
445
  if (h.arr(e))
446
- return Pe({
446
+ return Ae({
447
447
  range: e,
448
448
  output: t,
449
449
  extrapolate: r
@@ -511,7 +511,7 @@ function ge(e, t) {
511
511
  }
512
512
  return t;
513
513
  }
514
- function De(e, t) {
514
+ function Oe(e, t) {
515
515
  const r = e[he];
516
516
  if (r && r.has(t)) {
517
517
  const n = r.size - 1;
@@ -560,7 +560,7 @@ var Gr = (e, t, r) => Object.defineProperty(e, t, {
560
560
  return a[o];
561
561
  })
562
562
  ).map(
563
- (s) => Pe({ ...e, output: s })
563
+ (s) => Ae({ ...e, output: s })
564
564
  );
565
565
  return (s) => {
566
566
  var l;
@@ -596,7 +596,7 @@ function ct(e) {
596
596
  !Bt() && at.test(e) || e in (ne || {}));
597
597
  }
598
598
  var Wt = Bt() ? F : Rn, bi = () => {
599
- const e = I(!1);
599
+ const e = $(!1);
600
600
  return Wt(() => (e.current = !0, () => {
601
601
  e.current = !1;
602
602
  }), []), e;
@@ -613,7 +613,7 @@ function vi(e, t) {
613
613
  inputs: t,
614
614
  result: e()
615
615
  })
616
- ), n = I(), i = n.current;
616
+ ), n = $(), i = n.current;
617
617
  let s = i;
618
618
  return s ? t && s.inputs && wi(t, s.inputs) || (s = {
619
619
  inputs: t,
@@ -632,12 +632,12 @@ function wi(e, t) {
632
632
  }
633
633
  var Zr = (e) => F(e, _i), _i = [];
634
634
  function or(e) {
635
- const t = I();
635
+ const t = $();
636
636
  return F(() => {
637
637
  t.current = e;
638
638
  }), t.current;
639
639
  }
640
- var Oe = Symbol.for("Animated:node"), xi = (e) => !!e && e[Oe] === e, W = (e) => e && e[Oe], Gt = (e, t) => qn(e, Oe, t), ut = (e) => e && e[Oe] && e[Oe].getPayload(), Jr = class {
640
+ var De = Symbol.for("Animated:node"), xi = (e) => !!e && e[De] === e, W = (e) => e && e[De], Gt = (e, t) => qn(e, De, t), ut = (e) => e && e[De] && e[De].getPayload(), Jr = class {
641
641
  constructor() {
642
642
  Gt(this, this);
643
643
  }
@@ -666,15 +666,15 @@ var Oe = Symbol.for("Animated:node"), xi = (e) => !!e && e[Oe] === e, W = (e) =>
666
666
  const { done: e } = this;
667
667
  this.done = !1, h.num(this._value) && (this.elapsedTime = 0, this.durationProgress = 0, this.lastPosition = this._value, e && (this.lastVelocity = null), this.v0 = null);
668
668
  }
669
- }, Ie = class extends Fe {
669
+ }, $e = class extends Fe {
670
670
  constructor(e) {
671
- super(0), this._string = null, this._toString = Pe({
671
+ super(0), this._string = null, this._toString = Ae({
672
672
  output: [e, e]
673
673
  });
674
674
  }
675
675
  /** @internal */
676
676
  static create(e) {
677
- return new Ie(e);
677
+ return new $e(e);
678
678
  }
679
679
  getValue() {
680
680
  const e = this._string;
@@ -692,7 +692,7 @@ var Oe = Symbol.for("Animated:node"), xi = (e) => !!e && e[Oe] === e, W = (e) =>
692
692
  return !0;
693
693
  }
694
694
  reset(e) {
695
- e && (this._toString = Pe({
695
+ e && (this._toString = Ae({
696
696
  output: [this.getValue(), e]
697
697
  })), this._value = 0, super.reset();
698
698
  }
@@ -711,7 +711,7 @@ var Oe = Symbol.for("Animated:node"), xi = (e) => !!e && e[Oe] === e, W = (e) =>
711
711
  this.source = e, this.payload = this._makePayload(e);
712
712
  }
713
713
  reset() {
714
- this.payload && A(this.payload, (e) => e.reset());
714
+ this.payload && P(this.payload, (e) => e.reset());
715
715
  }
716
716
  /** Create a payload set. */
717
717
  _makePayload(e) {
@@ -724,7 +724,7 @@ var Oe = Symbol.for("Animated:node"), xi = (e) => !!e && e[Oe] === e, W = (e) =>
724
724
  _addToPayload(e) {
725
725
  Xe.dependencies && z(e) && Xe.dependencies.add(e);
726
726
  const t = ut(e);
727
- t && A(t, (r) => this.add(r));
727
+ t && P(t, (r) => this.add(r));
728
728
  }
729
729
  }, en = class extends lt {
730
730
  constructor(e) {
@@ -743,11 +743,11 @@ var Oe = Symbol.for("Animated:node"), xi = (e) => !!e && e[Oe] === e, W = (e) =>
743
743
  }
744
744
  };
745
745
  function ki(e) {
746
- return (ct(e) ? Ie : Fe).create(e);
746
+ return (ct(e) ? $e : Fe).create(e);
747
747
  }
748
- function Pt(e) {
748
+ function At(e) {
749
749
  const t = W(e);
750
- return t ? t.constructor : h.arr(e) ? en : ct(e) ? Ie : Fe;
750
+ return t ? t.constructor : h.arr(e) ? en : ct(e) ? $e : Fe;
751
751
  }
752
752
  var ar = (e, t) => {
753
753
  const r = (
@@ -756,10 +756,10 @@ var ar = (e, t) => {
756
756
  !h.fun(e) || e.prototype && e.prototype.isReactComponent
757
757
  );
758
758
  return Ln((n, i) => {
759
- const s = I(null), o = r && // eslint-disable-next-line react-hooks/rules-of-hooks
759
+ const s = $(null), o = r && // eslint-disable-next-line react-hooks/rules-of-hooks
760
760
  G(
761
761
  (b) => {
762
- s.current = Ai(i, b);
762
+ s.current = Pi(i, b);
763
763
  },
764
764
  [i]
765
765
  ), [a, l] = Ti(n, t), c = Xr(), u = () => {
@@ -767,15 +767,15 @@ var ar = (e, t) => {
767
767
  if (r && !b)
768
768
  return;
769
769
  (b ? t.applyAnimatedValues(b, a.getValue(!0)) : !1) === !1 && c();
770
- }, d = new Si(u, l), f = I();
771
- Wt(() => (f.current = d, A(l, (b) => ge(b, d)), () => {
772
- f.current && (A(
770
+ }, d = new Si(u, l), f = $();
771
+ Wt(() => (f.current = d, P(l, (b) => ge(b, d)), () => {
772
+ f.current && (P(
773
773
  f.current.deps,
774
- (b) => De(b, f.current)
774
+ (b) => Oe(b, f.current)
775
775
  ), S.cancel(f.current.update));
776
776
  })), F(u, []), Zr(() => () => {
777
777
  const b = f.current;
778
- A(b.deps, (g) => De(g, b));
778
+ P(b.deps, (g) => Oe(g, b));
779
779
  });
780
780
  const p = t.getComponentProps(a.getValue());
781
781
  return /* @__PURE__ */ Lt.createElement(e, { ...p, ref: o });
@@ -795,10 +795,10 @@ function Ti(e, t) {
795
795
  style: t.createAnimatedStyle(e.style)
796
796
  }), e = new lt(e), Xe.dependencies = null, [e, r];
797
797
  }
798
- function Ai(e, t) {
798
+ function Pi(e, t) {
799
799
  return e && (h.fun(e) ? e(t) : e.current = t), t;
800
800
  }
801
- var cr = Symbol.for("AnimatedComponent"), Pi = (e, {
801
+ var cr = Symbol.for("AnimatedComponent"), Ai = (e, {
802
802
  applyAnimatedValues: t = () => !1,
803
803
  createAnimatedStyle: r = (i) => new lt(i),
804
804
  getComponentProps: n = (i) => i
@@ -837,7 +837,7 @@ var Te = (e, t) => e === !0 || !!(t && e && (h.fun(e) ? e(t) : M(e).includes(t))
837
837
  "onPause",
838
838
  "onResume",
839
839
  "onRest"
840
- ], Di = {
840
+ ], Oi = {
841
841
  config: 1,
842
842
  from: 1,
843
843
  to: 1,
@@ -873,29 +873,29 @@ var Te = (e, t) => e === !0 || !!(t && e && (h.fun(e) ? e(t) : M(e).includes(t))
873
873
  callId: 1,
874
874
  parentId: 1
875
875
  };
876
- function Oi(e) {
876
+ function Di(e) {
877
877
  const t = {};
878
878
  let r = 0;
879
879
  if (Y(e, (n, i) => {
880
- Di[i] || (t[i] = n, r++);
880
+ Oi[i] || (t[i] = n, r++);
881
881
  }), r)
882
882
  return t;
883
883
  }
884
884
  function nn(e) {
885
- const t = Oi(e);
885
+ const t = Di(e);
886
886
  if (t) {
887
887
  const r = { to: t };
888
888
  return Y(e, (n, i) => i in t || (r[i] = n)), r;
889
889
  }
890
890
  return { ...e };
891
891
  }
892
- function $e(e) {
893
- return e = L(e), h.arr(e) ? e.map($e) : ct(e) ? q.createStringInterpolator({
892
+ function Ie(e) {
893
+ return e = L(e), h.arr(e) ? e.map(Ie) : ct(e) ? q.createStringInterpolator({
894
894
  range: [0, 1],
895
895
  output: [e, e]
896
896
  })(1) : e;
897
897
  }
898
- function Ii(e) {
898
+ function $i(e) {
899
899
  for (const t in e)
900
900
  return !0;
901
901
  return !1;
@@ -903,7 +903,7 @@ function Ii(e) {
903
903
  function Et(e) {
904
904
  return h.fun(e) || h.arr(e) && h.obj(e[0]);
905
905
  }
906
- function $i(e, t) {
906
+ function Ii(e, t) {
907
907
  var r;
908
908
  (r = e.ref) == null || r.delete(e), t == null || t.delete(e);
909
909
  }
@@ -1017,8 +1017,8 @@ function an(e, t, r, n) {
1017
1017
  throw Re(r), w.result = H(n, !1), d(w), w;
1018
1018
  p(x);
1019
1019
  const T = h.obj(v) ? { ...v } : { ...y, to: v };
1020
- T.parentId = i, Y(c, (E, D) => {
1021
- h.und(T[D]) && (T[D] = E);
1020
+ T.parentId = i, Y(c, (E, O) => {
1021
+ h.und(T[O]) && (T[O] = E);
1022
1022
  });
1023
1023
  const k = await n.start(T);
1024
1024
  return p(x), r.paused && await new Promise((E) => {
@@ -1063,7 +1063,7 @@ var fr = class extends Error {
1063
1063
  constructor() {
1064
1064
  super("SkipAnimationSignal");
1065
1065
  }
1066
- }, Dt = (e) => e instanceof Kt, zi = 1, Kt = class extends Wr {
1066
+ }, Ot = (e) => e instanceof Kt, zi = 1, Kt = class extends Wr {
1067
1067
  constructor() {
1068
1068
  super(...arguments), this.id = zi++, this._priority = 0;
1069
1069
  }
@@ -1179,7 +1179,7 @@ var fr = class extends Error {
1179
1179
  return;
1180
1180
  const d = (
1181
1181
  // Animated strings always go from 0 to 1.
1182
- c.constructor == Ie ? 1 : o ? o[u].lastPosition : i[u]
1182
+ c.constructor == $e ? 1 : o ? o[u].lastPosition : i[u]
1183
1183
  );
1184
1184
  let f = n.immediate, p = d;
1185
1185
  if (!f) {
@@ -1198,12 +1198,12 @@ var fr = class extends Error {
1198
1198
  } else {
1199
1199
  y = c.lastVelocity == null ? v : c.lastVelocity;
1200
1200
  const w = s.restVelocity || x / 10, T = s.clamp ? 0 : s.bounce, k = !h.und(T), E = g == d ? c.v0 > 0 : g < d;
1201
- let D, ce = !1;
1202
- const $ = 1, se = Math.ceil(e / $);
1203
- for (let V = 0; V < se && (D = Math.abs(y) > w, !(!D && (f = Math.abs(d - p) <= x, f))); ++V) {
1201
+ let O, ce = !1;
1202
+ const I = 1, se = Math.ceil(e / I);
1203
+ for (let V = 0; V < se && (O = Math.abs(y) > w, !(!O && (f = Math.abs(d - p) <= x, f))); ++V) {
1204
1204
  k && (ce = p == d || p > d == E, ce && (y = -y * T, p = d));
1205
1205
  const K = -s.tension * 1e-6 * (p - d), J = -s.friction * 1e-3 * y, ht = (K + J) / s.mass;
1206
- y = y + ht * $, p = p + y * $;
1206
+ y = y + ht * I, p = p + y * I;
1207
1207
  }
1208
1208
  }
1209
1209
  else {
@@ -1368,11 +1368,11 @@ var fr = class extends Error {
1368
1368
  // except for declarative updates. When `reset` is defined, there
1369
1369
  // must exist a value to animate from.
1370
1370
  h.und(t.reset) ? i && !t.default : !h.und(d) && Te(t.reset, s)
1371
- ), T = w ? d : this.get(), k = $e(u), E = h.num(k) || h.arr(k) || ct(k), D = !b && (!E || Te(o.immediate || t.immediate, s));
1371
+ ), T = w ? d : this.get(), k = Ie(u), E = h.num(k) || h.arr(k) || ct(k), O = !b && (!E || Te(o.immediate || t.immediate, s));
1372
1372
  if (p) {
1373
- const V = Pt(u);
1373
+ const V = At(u);
1374
1374
  if (V !== x.constructor)
1375
- if (D)
1375
+ if (O)
1376
1376
  x = this._set(k);
1377
1377
  else
1378
1378
  throw Error(
@@ -1380,21 +1380,21 @@ var fr = class extends Error {
1380
1380
  );
1381
1381
  }
1382
1382
  const ce = x.constructor;
1383
- let $ = z(u), se = !1;
1384
- if (!$) {
1383
+ let I = z(u), se = !1;
1384
+ if (!I) {
1385
1385
  const V = w || !vt(this) && f;
1386
- (p || V) && (se = X($e(T), k), $ = !se), (!X(a.immediate, D) && !D || !X(g.decay, v) || !X(g.velocity, y)) && ($ = !0);
1386
+ (p || V) && (se = X(Ie(T), k), I = !se), (!X(a.immediate, O) && !O || !X(g.decay, v) || !X(g.velocity, y)) && (I = !0);
1387
1387
  }
1388
- if (se && ee(this) && (a.changed && !w ? $ = !0 : $ || this._stop(l)), !b && (($ || z(l)) && (a.values = x.getPayload(), a.toValues = z(u) ? null : ce == Ie ? [1] : M(k)), a.immediate != D && (a.immediate = D, !D && !w && this._set(l)), $)) {
1388
+ if (se && ee(this) && (a.changed && !w ? I = !0 : I || this._stop(l)), !b && ((I || z(l)) && (a.values = x.getPayload(), a.toValues = z(u) ? null : ce == $e ? [1] : M(k)), a.immediate != O && (a.immediate = O, !O && !w && this._set(l)), I)) {
1389
1389
  const { onRest: V } = a;
1390
- A(Bi, (J) => yr(this, t, J));
1390
+ P(Bi, (J) => yr(this, t, J));
1391
1391
  const K = H(this, ye(this, l));
1392
1392
  xe(this._pendingCalls, K), this._pendingCalls.add(r), a.changed && S.batchedUpdates(() => {
1393
1393
  var J;
1394
1394
  a.changed = !w, V == null || V(K, this), w ? oe(o.onRest, K) : (J = a.onStart) == null || J.call(a, K, this);
1395
1395
  });
1396
1396
  }
1397
- w && this._set(T), b ? r(an(t.to, t, this._state, this)) : $ ? this._start() : ee(this) && !p ? this._pendingCalls.add(r) : r(on(T));
1397
+ w && this._set(T), b ? r(an(t.to, t, this._state, this)) : I ? this._start() : ee(this) && !p ? this._pendingCalls.add(r) : r(on(T));
1398
1398
  }
1399
1399
  /** Update the `animation.to` value, which might be a `FluidValue` */
1400
1400
  _focus(e) {
@@ -1404,11 +1404,11 @@ var fr = class extends Error {
1404
1404
  _attach() {
1405
1405
  let e = 0;
1406
1406
  const { to: t } = this.animation;
1407
- z(t) && (ge(t, this), Dt(t) && (e = t.priority + 1)), this.priority = e;
1407
+ z(t) && (ge(t, this), Ot(t) && (e = t.priority + 1)), this.priority = e;
1408
1408
  }
1409
1409
  _detach() {
1410
1410
  const { to: e } = this.animation;
1411
- z(e) && De(e, this);
1411
+ z(e) && Oe(e, this);
1412
1412
  }
1413
1413
  /**
1414
1414
  * Update the current value from outside the frameloop,
@@ -1419,7 +1419,7 @@ var fr = class extends Error {
1419
1419
  if (!h.und(r)) {
1420
1420
  const n = W(this);
1421
1421
  if (!n || !X(r, n.getValue())) {
1422
- const i = Pt(r);
1422
+ const i = At(r);
1423
1423
  !n || n.constructor != i ? Gt(this, i.create(r)) : n.setValue(r), n && S.batchedUpdates(() => {
1424
1424
  this._onChange(r, t);
1425
1425
  });
@@ -1458,7 +1458,7 @@ var fr = class extends Error {
1458
1458
  if (ee(this)) {
1459
1459
  pr(this, !1);
1460
1460
  const r = this.animation;
1461
- A(r.values, (i) => {
1461
+ P(r.values, (i) => {
1462
1462
  i.done = !0;
1463
1463
  }), r.toValues && (r.onChange = r.onPause = r.onResume = void 0), Ce(this, {
1464
1464
  type: "idle",
@@ -1470,7 +1470,7 @@ var fr = class extends Error {
1470
1470
  }
1471
1471
  };
1472
1472
  function ye(e, t) {
1473
- const r = $e(t), n = $e(e.get());
1473
+ const r = Ie(t), n = Ie(e.get());
1474
1474
  return X(n, r);
1475
1475
  }
1476
1476
  function dn(e, t = e.loop, r = e.to) {
@@ -1573,13 +1573,13 @@ var Hi = ["onStart", "onChange", "onRest"], Ui = 1, qi = class {
1573
1573
  */
1574
1574
  start(t) {
1575
1575
  let { queue: r } = this;
1576
- return t ? r = M(t).map(Le) : this.queue = [], this._flush ? this._flush(this, r) : (mn(this, r), Ot(this, r));
1576
+ return t ? r = M(t).map(Le) : this.queue = [], this._flush ? this._flush(this, r) : (mn(this, r), Dt(this, r));
1577
1577
  }
1578
1578
  /** @internal */
1579
1579
  stop(t, r) {
1580
1580
  if (t !== !!t && (r = t), r) {
1581
1581
  const n = this.springs;
1582
- A(M(r), (i) => n[i].stop(!!t));
1582
+ P(M(r), (i) => n[i].stop(!!t));
1583
1583
  } else
1584
1584
  Re(this._state, this._lastAsyncId), this.each((n) => n.stop(!!t));
1585
1585
  return this;
@@ -1590,7 +1590,7 @@ var Hi = ["onStart", "onChange", "onRest"], Ui = 1, qi = class {
1590
1590
  this.start({ pause: !0 });
1591
1591
  else {
1592
1592
  const r = this.springs;
1593
- A(M(t), (n) => r[n].pause());
1593
+ P(M(t), (n) => r[n].pause());
1594
1594
  }
1595
1595
  return this;
1596
1596
  }
@@ -1600,7 +1600,7 @@ var Hi = ["onStart", "onChange", "onRest"], Ui = 1, qi = class {
1600
1600
  this.start({ pause: !1 });
1601
1601
  else {
1602
1602
  const r = this.springs;
1603
- A(M(t), (n) => r[n].resume());
1603
+ P(M(t), (n) => r[n].resume());
1604
1604
  }
1605
1605
  return this;
1606
1606
  }
@@ -1632,7 +1632,7 @@ var Hi = ["onStart", "onChange", "onRest"], Ui = 1, qi = class {
1632
1632
  S.onFrame(this._onFrame);
1633
1633
  }
1634
1634
  };
1635
- function Ot(e, t) {
1635
+ function Dt(e, t) {
1636
1636
  return Promise.all(t.map((r) => fn(e, r))).then(
1637
1637
  (r) => Yt(e, r)
1638
1638
  );
@@ -1641,7 +1641,7 @@ async function fn(e, t, r) {
1641
1641
  const { keys: n, to: i, from: s, loop: o, onRest: a, onResolve: l } = t, c = h.obj(t.default) && t.default;
1642
1642
  o && (t.loop = !1), i === !1 && (t.to = null), s === !1 && (t.from = null);
1643
1643
  const u = h.arr(i) || h.fun(i) ? i : void 0;
1644
- u ? (t.to = void 0, t.onRest = void 0, c && (c.onRest = void 0)) : A(Hi, (g) => {
1644
+ u ? (t.to = void 0, t.onRest = void 0, c && (c.onRest = void 0)) : P(Hi, (g) => {
1645
1645
  const v = t[g];
1646
1646
  if (h.fun(v)) {
1647
1647
  const y = e._events[g];
@@ -1692,7 +1692,7 @@ async function fn(e, t, r) {
1692
1692
  }
1693
1693
  function br(e, t) {
1694
1694
  const r = { ...e.springs };
1695
- return t && A(M(t), (n) => {
1695
+ return t && P(M(t), (n) => {
1696
1696
  h.und(n.keys) && (n = Le(n)), h.obj(n.to) || (n = { ...n, to: void 0 }), gn(r, n, (i) => pn(i));
1697
1697
  }), hn(e, r), r;
1698
1698
  }
@@ -1706,12 +1706,12 @@ function pn(e, t) {
1706
1706
  return r.key = e, t && ge(r, t), r;
1707
1707
  }
1708
1708
  function gn(e, t, r) {
1709
- t.keys && A(t.keys, (n) => {
1709
+ t.keys && P(t.keys, (n) => {
1710
1710
  (e[n] || (e[n] = r(n)))._prepareNode(t);
1711
1711
  });
1712
1712
  }
1713
1713
  function mn(e, t) {
1714
- A(t, (r) => {
1714
+ P(t, (r) => {
1715
1715
  gn(e.springs, r, (n) => pn(n, e));
1716
1716
  });
1717
1717
  }
@@ -1733,7 +1733,7 @@ var Gi = () => {
1733
1733
  const e = [], t = function(n) {
1734
1734
  yi();
1735
1735
  const i = [];
1736
- return A(e, (s, o) => {
1736
+ return P(e, (s, o) => {
1737
1737
  if (h.und(n))
1738
1738
  i.push(s.start());
1739
1739
  else {
@@ -1748,17 +1748,17 @@ var Gi = () => {
1748
1748
  const i = e.indexOf(n);
1749
1749
  ~i && e.splice(i, 1);
1750
1750
  }, t.pause = function() {
1751
- return A(e, (n) => n.pause(...arguments)), this;
1751
+ return P(e, (n) => n.pause(...arguments)), this;
1752
1752
  }, t.resume = function() {
1753
- return A(e, (n) => n.resume(...arguments)), this;
1753
+ return P(e, (n) => n.resume(...arguments)), this;
1754
1754
  }, t.set = function(n) {
1755
- A(e, (i, s) => {
1755
+ P(e, (i, s) => {
1756
1756
  const o = h.fun(n) ? n(s, i) : n;
1757
1757
  o && i.set(o);
1758
1758
  });
1759
1759
  }, t.start = function(n) {
1760
1760
  const i = [];
1761
- return A(e, (s, o) => {
1761
+ return P(e, (s, o) => {
1762
1762
  if (h.und(n))
1763
1763
  i.push(s.start());
1764
1764
  else {
@@ -1767,9 +1767,9 @@ var Gi = () => {
1767
1767
  }
1768
1768
  }), i;
1769
1769
  }, t.stop = function() {
1770
- return A(e, (n) => n.stop(...arguments)), this;
1770
+ return P(e, (n) => n.stop(...arguments)), this;
1771
1771
  }, t.update = function(n) {
1772
- return A(e, (i, s) => i.update(this._getProps(n, i, s))), this;
1772
+ return P(e, (i, s) => i.update(this._getProps(n, i, s))), this;
1773
1773
  };
1774
1774
  const r = function(n, i, s) {
1775
1775
  return h.fun(n) ? n(s, i) : n;
@@ -1782,24 +1782,24 @@ function Qi(e, t, r) {
1782
1782
  const i = He(
1783
1783
  () => n || arguments.length == 3 ? Gi() : void 0,
1784
1784
  []
1785
- ), s = I(0), o = Xr(), a = He(
1785
+ ), s = $(0), o = Xr(), a = He(
1786
1786
  () => ({
1787
1787
  ctrls: [],
1788
1788
  queue: [],
1789
1789
  flush(y, x) {
1790
1790
  const w = br(y, x);
1791
- return s.current > 0 && !a.queue.length && !Object.keys(w).some((k) => !y.springs[k]) ? Ot(y, x) : new Promise((k) => {
1791
+ return s.current > 0 && !a.queue.length && !Object.keys(w).some((k) => !y.springs[k]) ? Dt(y, x) : new Promise((k) => {
1792
1792
  hn(y, w), a.queue.push(() => {
1793
- k(Ot(y, x));
1793
+ k(Dt(y, x));
1794
1794
  }), o();
1795
1795
  });
1796
1796
  }
1797
1797
  }),
1798
1798
  []
1799
- ), l = I([...a.ctrls]), c = [], u = or(e) || 0;
1799
+ ), l = $([...a.ctrls]), c = [], u = or(e) || 0;
1800
1800
  He(() => {
1801
- A(l.current.slice(e, u), (y) => {
1802
- $i(y, i), y.stop(!0);
1801
+ P(l.current.slice(e, u), (y) => {
1802
+ Ii(y, i), y.stop(!0);
1803
1803
  }), l.current.length = e, d(u, e);
1804
1804
  }, [e]), He(() => {
1805
1805
  d(0, Math.min(u, e));
@@ -1810,17 +1810,17 @@ function Qi(e, t, r) {
1810
1810
  k && (c[w] = ji(k));
1811
1811
  }
1812
1812
  }
1813
- const f = l.current.map((y, x) => br(y, c[x])), p = Vt(dt), b = or(p), g = p !== b && Ii(p);
1813
+ const f = l.current.map((y, x) => br(y, c[x])), p = Vt(dt), b = or(p), g = p !== b && $i(p);
1814
1814
  Wt(() => {
1815
1815
  s.current++, a.ctrls = l.current;
1816
1816
  const { queue: y } = a;
1817
- y.length && (a.queue = [], A(y, (x) => x())), A(l.current, (x, w) => {
1817
+ y.length && (a.queue = [], P(y, (x) => x())), P(l.current, (x, w) => {
1818
1818
  i == null || i.add(x), g && x.start({ default: p });
1819
1819
  const T = c[w];
1820
1820
  T && (Ri(x, T.ref), x.ref ? x.queue.push(T) : x.start(T));
1821
1821
  });
1822
1822
  }), Zr(() => () => {
1823
- A(a.ctrls, (y) => y.stop(!0));
1823
+ P(a.ctrls, (y) => y.stop(!0));
1824
1824
  });
1825
1825
  const v = f.map((y) => ({ ...y }));
1826
1826
  return i ? [v, i] : v;
@@ -1835,8 +1835,8 @@ function ze(e, t) {
1835
1835
  }
1836
1836
  var Yi = class extends Kt {
1837
1837
  constructor(e, t) {
1838
- super(), this.source = e, this.idle = !0, this._active = /* @__PURE__ */ new Set(), this.calc = Pe(...t);
1839
- const r = this._get(), n = Pt(r);
1838
+ super(), this.source = e, this.idle = !0, this._active = /* @__PURE__ */ new Set(), this.calc = Ae(...t);
1839
+ const r = this._get(), n = At(r);
1840
1840
  Gt(this, n.create(r));
1841
1841
  }
1842
1842
  advance(e) {
@@ -1848,27 +1848,27 @@ var Yi = class extends Kt {
1848
1848
  return this.calc(...e);
1849
1849
  }
1850
1850
  _start() {
1851
- this.idle && !vr(this._active) && (this.idle = !1, A(ut(this), (e) => {
1851
+ this.idle && !vr(this._active) && (this.idle = !1, P(ut(this), (e) => {
1852
1852
  e.done = !1;
1853
1853
  }), q.skipAnimation ? (S.batchedUpdates(() => this.advance()), wt(this)) : st.start(this));
1854
1854
  }
1855
1855
  // Observe our sources only when we're observed.
1856
1856
  _attach() {
1857
1857
  let e = 1;
1858
- A(M(this.source), (t) => {
1859
- z(t) && ge(t, this), Dt(t) && (t.idle || this._active.add(t), e = Math.max(e, t.priority + 1));
1858
+ P(M(this.source), (t) => {
1859
+ z(t) && ge(t, this), Ot(t) && (t.idle || this._active.add(t), e = Math.max(e, t.priority + 1));
1860
1860
  }), this.priority = e, this._start();
1861
1861
  }
1862
1862
  // Stop observing our sources once we have no observers.
1863
1863
  _detach() {
1864
- A(M(this.source), (e) => {
1865
- z(e) && De(e, this);
1864
+ P(M(this.source), (e) => {
1865
+ z(e) && Oe(e, this);
1866
1866
  }), this._active.clear(), wt(this);
1867
1867
  }
1868
1868
  /** @internal */
1869
1869
  eventObserved(e) {
1870
1870
  e.type == "change" ? e.idle ? this.advance() : (this._active.add(e.parent), this._start()) : e.type == "idle" ? this._active.delete(e.parent) : e.type == "priority" && (this.priority = M(this.source).reduce(
1871
- (t, r) => Math.max(t, (Dt(r) ? r.priority : 0) + 1),
1871
+ (t, r) => Math.max(t, (Ot(r) ? r.priority : 0) + 1),
1872
1872
  0
1873
1873
  ));
1874
1874
  }
@@ -1880,7 +1880,7 @@ function vr(e) {
1880
1880
  return !e.size || Array.from(e).every(Ki);
1881
1881
  }
1882
1882
  function wt(e) {
1883
- e.idle || (e.idle = !0, A(ut(e), (t) => {
1883
+ e.idle || (e.idle = !0, P(ut(e), (t) => {
1884
1884
  t.done = !0;
1885
1885
  }), Ce(e, {
1886
1886
  type: "idle",
@@ -1893,7 +1893,7 @@ q.assign({
1893
1893
  });
1894
1894
  var yn = /^--/;
1895
1895
  function Xi(e, t) {
1896
- return t == null || typeof t == "boolean" || t === "" ? "" : typeof t == "number" && t !== 0 && !yn.test(e) && !(Ae.hasOwnProperty(e) && Ae[e]) ? t + "px" : ("" + t).trim();
1896
+ return t == null || typeof t == "boolean" || t === "" ? "" : typeof t == "number" && t !== 0 && !yn.test(e) && !(Pe.hasOwnProperty(e) && Pe[e]) ? t + "px" : ("" + t).trim();
1897
1897
  }
1898
1898
  var wr = {};
1899
1899
  function Zi(e, t) {
@@ -1924,7 +1924,7 @@ function Zi(e, t) {
1924
1924
  e.setAttribute(f, u[p]);
1925
1925
  }), n !== void 0 && (e.className = n), o !== void 0 && (e.scrollTop = o), a !== void 0 && (e.scrollLeft = a), l !== void 0 && e.setAttribute("viewBox", l);
1926
1926
  }
1927
- var Ae = {
1927
+ var Pe = {
1928
1928
  animationIterationCount: !0,
1929
1929
  borderImageOutset: !0,
1930
1930
  borderImageSlice: !0,
@@ -1968,7 +1968,7 @@ var Ae = {
1968
1968
  strokeOpacity: !0,
1969
1969
  strokeWidth: !0
1970
1970
  }, Ji = (e, t) => e + t.charAt(0).toUpperCase() + t.substring(1), es = ["Webkit", "Ms", "Moz", "O"];
1971
- Ae = Object.keys(Ae).reduce((e, t) => (es.forEach((r) => e[Ji(r, t)] = e[t]), e), Ae);
1971
+ Pe = Object.keys(Pe).reduce((e, t) => (es.forEach((r) => e[Ji(r, t)] = e[t]), e), Pe);
1972
1972
  var ts = /^(matrix|translate|scale|rotate|skew)/, rs = /^(translate)/, ns = /^(rotate|skew)/, _t = (e, t) => h.num(e) && e !== 0 ? e + t : e, Ge = (e, t) => h.arr(e) ? e.every((r) => Ge(r, t)) : h.num(e) ? e === t : parseFloat(e) === t, is = class extends lt {
1973
1973
  constructor({ x: e, y: t, z: r, ...n }) {
1974
1974
  const i = [], s = [];
@@ -2004,7 +2004,7 @@ var ts = /^(matrix|translate|scale|rotate|skew)/, rs = /^(translate)/, ns = /^(r
2004
2004
  }
2005
2005
  _get() {
2006
2006
  let e = "", t = !0;
2007
- return A(this.inputs, (r, n) => {
2007
+ return P(this.inputs, (r, n) => {
2008
2008
  const i = L(r[0]), [s, o] = this.transforms[n](
2009
2009
  h.arr(i) ? i : r.map(L)
2010
2010
  );
@@ -2013,9 +2013,9 @@ var ts = /^(matrix|translate|scale|rotate|skew)/, rs = /^(translate)/, ns = /^(r
2013
2013
  }
2014
2014
  // Start observing our inputs once we have an observer.
2015
2015
  observerAdded(e) {
2016
- e == 1 && A(
2016
+ e == 1 && P(
2017
2017
  this.inputs,
2018
- (t) => A(
2018
+ (t) => P(
2019
2019
  t,
2020
2020
  (r) => z(r) && ge(r, this)
2021
2021
  )
@@ -2023,11 +2023,11 @@ var ts = /^(matrix|translate|scale|rotate|skew)/, rs = /^(translate)/, ns = /^(r
2023
2023
  }
2024
2024
  // Stop observing our inputs once we have no observers.
2025
2025
  observerRemoved(e) {
2026
- e == 0 && A(
2026
+ e == 0 && P(
2027
2027
  this.inputs,
2028
- (t) => A(
2028
+ (t) => P(
2029
2029
  t,
2030
- (r) => z(r) && De(r, this)
2030
+ (r) => z(r) && Oe(r, this)
2031
2031
  )
2032
2032
  );
2033
2033
  }
@@ -2175,14 +2175,14 @@ q.assign({
2175
2175
  createStringInterpolator: Yr,
2176
2176
  colors: Yn
2177
2177
  });
2178
- var as = Pi(os, {
2178
+ var as = Ai(os, {
2179
2179
  applyAnimatedValues: Zi,
2180
2180
  createAnimatedStyle: (e) => new is(e),
2181
2181
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2182
2182
  getComponentProps: ({ scrollTop: e, scrollLeft: t, ...r }) => r
2183
2183
  }), pe = as.animated;
2184
2184
  const bn = Vn({});
2185
- function Oa({
2185
+ function Da({
2186
2186
  children: e,
2187
2187
  ...t
2188
2188
  }) {
@@ -2204,38 +2204,38 @@ function vn({
2204
2204
  const l = cs(), c = e ?? l.animate ?? !0, u = s ?? l.characterPreference ?? "simplified", d = a ?? l.staticLanguage ?? "english", f = n ?? "div", [p, b] = B(!1), [g, v] = ze(() => ({
2205
2205
  opacity: i ? 0 : 1,
2206
2206
  config: { duration: 600 }
2207
- })), y = I(c);
2207
+ })), y = $(c);
2208
2208
  F(() => {
2209
2209
  if (!c) {
2210
2210
  y.current = c;
2211
2211
  return;
2212
2212
  }
2213
- const Dn = !y.current && c;
2213
+ const On = !y.current && c;
2214
2214
  y.current = c;
2215
- const On = Dn ? 500 : Math.floor(Math.random() * (o - 3500 + 1)) + 3500, In = setTimeout(() => {
2215
+ const Dn = On ? 500 : Math.floor(Math.random() * (o - 3500 + 1)) + 3500, $n = setTimeout(() => {
2216
2216
  v.start({
2217
2217
  opacity: 0,
2218
2218
  onRest: () => {
2219
- b(($n) => !$n), v.start({ opacity: 1 });
2219
+ b((In) => !In), v.start({ opacity: 1 });
2220
2220
  }
2221
2221
  });
2222
- }, On);
2223
- return () => clearTimeout(In);
2222
+ }, Dn);
2223
+ return () => clearTimeout($n);
2224
2224
  }, [p, c, v, o]);
2225
2225
  const x = u === "traditional" ? t.traditional : t.simplified, w = d === "chinese" ? x : t.english, T = c ? p ? x : t.english : w, {
2226
2226
  fontSize: k,
2227
2227
  fontFamily: E,
2228
- fontWeight: D,
2228
+ fontWeight: O,
2229
2229
  fontStyle: ce,
2230
- letterSpacing: $,
2230
+ letterSpacing: I,
2231
2231
  lineHeight: se,
2232
2232
  ...V
2233
2233
  } = r || {}, K = {
2234
2234
  fontSize: k,
2235
2235
  fontFamily: E,
2236
- fontWeight: D,
2236
+ fontWeight: O,
2237
2237
  fontStyle: ce,
2238
- letterSpacing: $,
2238
+ letterSpacing: I,
2239
2239
  lineHeight: se
2240
2240
  }, J = {
2241
2241
  ...V,
@@ -2445,7 +2445,7 @@ function ws(e) {
2445
2445
  function _s(e) {
2446
2446
  return ie({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "line", attr: { x1: "22", y1: "2", x2: "11", y2: "13" }, child: [] }, { tag: "polygon", attr: { points: "22 2 15 22 11 13 2 9 22 2" }, child: [] }] })(e);
2447
2447
  }
2448
- const Ia = ({
2448
+ const $a = ({
2449
2449
  iconComponent: e,
2450
2450
  buttonText: t,
2451
2451
  buttonType: r = "primary",
@@ -2494,7 +2494,7 @@ function Ss(e) {
2494
2494
  function Ts(e) {
2495
2495
  return ie({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M0 .5A.5.5 0 0 1 .5 0h3a.5.5 0 0 1 0 1H1v2.5a.5.5 0 0 1-1 0zm12 0a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-1 0V1h-2.5a.5.5 0 0 1-.5-.5M.5 12a.5.5 0 0 1 .5.5V15h2.5a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5m15 0a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1 0-1H15v-2.5a.5.5 0 0 1 .5-.5M4 4h1v1H4z" }, child: [] }, { tag: "path", attr: { d: "M7 2H2v5h5zM3 3h3v3H3zm2 8H4v1h1z" }, child: [] }, { tag: "path", attr: { d: "M7 9H2v5h5zm-4 1h3v3H3zm8-6h1v1h-1z" }, child: [] }, { tag: "path", attr: { d: "M9 2h5v5H9zm1 1v3h3V3zM8 8v2h1v1H8v1h2v-2h1v2h1v-1h2v-1h-3V8zm2 2H9V9h1zm4 2h-1v1h-2v1h3zm-4 2v-1H8v1z" }, child: [] }, { tag: "path", attr: { d: "M12 9h2V8h-2z" }, child: [] }] })(e);
2496
2496
  }
2497
- const $a = ({ iconComponent: e, onClick: t }) => {
2497
+ const Ia = ({ iconComponent: e, onClick: t }) => {
2498
2498
  const r = ze({
2499
2499
  from: { opacity: 0, transform: "scale(0.5)" },
2500
2500
  to: { opacity: 1, transform: "scale(1)" }
@@ -2504,12 +2504,12 @@ const $a = ({ iconComponent: e, onClick: t }) => {
2504
2504
  let i;
2505
2505
  return e === "person" ? i = /* @__PURE__ */ m(Ss, {}) : e === "qr" && (i = /* @__PURE__ */ m(Ts, {})), /* @__PURE__ */ m(xs, { style: r, onClick: n, children: /* @__PURE__ */ m(ks, { children: i }) });
2506
2506
  };
2507
- function As(e) {
2507
+ function Ps(e) {
2508
2508
  return ie({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "48", d: "M328 112 184 256l144 144" }, child: [] }] })(e);
2509
2509
  }
2510
- const Ra = ({ size: e, onClick: t }) => /* @__PURE__ */ m(As, { size: e ?? "1.5rem", onClick: () => {
2510
+ const Ra = ({ size: e, onClick: t }) => /* @__PURE__ */ m(Ps, { size: e ?? "1.5rem", onClick: () => {
2511
2511
  t && t();
2512
- } }), Ps = Z`
2512
+ } }), As = Z`
2513
2513
  0% {
2514
2514
  transform: scale(0);
2515
2515
  opacity: 0.6;
@@ -2532,7 +2532,7 @@ const Ra = ({ size: e, onClick: t }) => /* @__PURE__ */ m(As, { size: e ?? "1.5r
2532
2532
  return ((t = e.colors) == null ? void 0 : t.ripple) || "rgba(0, 0, 0, 0.1)";
2533
2533
  }};
2534
2534
  pointer-events: none;
2535
- animation: ${Ps} 0.4s ease-out forwards;
2535
+ animation: ${As} 0.4s ease-out forwards;
2536
2536
  `;
2537
2537
  _.div`
2538
2538
  position: absolute;
@@ -2579,7 +2579,7 @@ const La = _.ul`
2579
2579
  justify-content: space-between;
2580
2580
  align-items: center;
2581
2581
  padding: 0.5rem 0.75rem;
2582
- `, Ds = _.div`
2582
+ `, Os = _.div`
2583
2583
  display: flex;
2584
2584
  flex-direction: row;
2585
2585
  gap: 2rem;
@@ -2588,13 +2588,13 @@ const La = _.ul`
2588
2588
  display: flex;
2589
2589
  flex-direction: column;
2590
2590
  justify-content: center;
2591
- `, Os = _.span`
2591
+ `, Ds = _.span`
2592
2592
  font-size: 1rem;
2593
2593
  `;
2594
- function Is(e) {
2594
+ function $s(e) {
2595
2595
  return ie({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "m12.87 15.07-2.54-2.51.03-.03A17.52 17.52 0 0 0 14.07 6H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7 1.62-4.33L19.12 17h-3.24z" }, child: [] }] })(e);
2596
2596
  }
2597
- function $s(e) {
2597
+ function Is(e) {
2598
2598
  return ie({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" }, child: [] }] })(e);
2599
2599
  }
2600
2600
  function Rs(e) {
@@ -2605,7 +2605,7 @@ const Ls = _.input`
2605
2605
  width: 0;
2606
2606
  height: 0;
2607
2607
  position: absolute;
2608
- `, It = _.span`
2608
+ `, $t = _.span`
2609
2609
  position: absolute;
2610
2610
  top: 50%;
2611
2611
  left: ${({ $checked: e }) => e ? "14px" : "0px"};
@@ -2615,7 +2615,7 @@ const Ls = _.input`
2615
2615
  border-radius: 50%;
2616
2616
  background-color: transparent;
2617
2617
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
2618
- left 150ms cubic-bezier(0.4, 0, 0.2, 1);
2618
+ left 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
2619
2619
  pointer-events: none;
2620
2620
  `, Vs = _.label`
2621
2621
  position: relative;
@@ -2625,7 +2625,7 @@ const Ls = _.input`
2625
2625
  -webkit-tap-highlight-color: transparent;
2626
2626
 
2627
2627
  @media (hover: hover) {
2628
- &:hover ${It} {
2628
+ &:hover ${$t} {
2629
2629
  background-color: ${({ $checked: e, theme: t }) => {
2630
2630
  var r, n;
2631
2631
  return e ? ((r = t.colors) == null ? void 0 : r.toggleHoverOn) || "rgba(72, 159, 181, 0.08)" : ((n = t.colors) == null ? void 0 : n.toggleHoverOff) || "rgba(0, 0, 0, 0.04)";
@@ -2633,7 +2633,7 @@ const Ls = _.input`
2633
2633
  }
2634
2634
  }
2635
2635
 
2636
- &:focus-within ${It} {
2636
+ &:focus-within ${$t} {
2637
2637
  background-color: ${({ $checked: e, theme: t }) => {
2638
2638
  var r, n;
2639
2639
  return e ? ((r = t.colors) == null ? void 0 : r.toggleFocusOn) || "rgba(72, 159, 181, 0.12)" : ((n = t.colors) == null ? void 0 : n.toggleFocusOff) || "rgba(0, 0, 0, 0.06)";
@@ -2652,7 +2652,7 @@ const Ls = _.input`
2652
2652
  position: absolute;
2653
2653
  top: 50%;
2654
2654
  left: ${({ $checked: e }) => e ? "14px" : "0px"};
2655
- transform: translateY(-50%);
2655
+ transform: translateY(-50%) scale(${({ $checked: e }) => e ? 1.1 : 1});
2656
2656
  width: 20px;
2657
2657
  height: 20px;
2658
2658
  background-color: ${({ $checked: e, theme: t }) => {
@@ -2672,7 +2672,8 @@ const Ls = _.input`
2672
2672
  var t;
2673
2673
  return ((t = e.colors) == null ? void 0 : t.shadowLighter) || "rgba(0, 0, 0, 0.12)";
2674
2674
  }};
2675
- transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1),
2675
+ transition: left 400ms cubic-bezier(0.34, 1.56, 0.64, 1),
2676
+ transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1),
2676
2677
  background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
2677
2678
  pointer-events: none;
2678
2679
  `, zs = ({
@@ -2698,11 +2699,11 @@ const Ls = _.input`
2698
2699
  }
2699
2700
  ),
2700
2701
  /* @__PURE__ */ m(Ms, { $checked: a }),
2701
- /* @__PURE__ */ m(It, { $checked: a }),
2702
+ /* @__PURE__ */ m($t, { $checked: a }),
2702
2703
  /* @__PURE__ */ m(Fs, { $checked: a })
2703
2704
  ] });
2704
2705
  }, Ns = {
2705
- translate: Is,
2706
+ translate: $s,
2706
2707
  sunny: Rs,
2707
2708
  character: ({ size: e }) => /* @__PURE__ */ m("span", { style: { fontSize: e || "1rem", height: e || "1rem", lineHeight: e || "1rem", display: "inline-flex", alignItems: "center" }, children: "字" })
2708
2709
  }, Va = ({
@@ -2728,13 +2729,13 @@ const Ls = _.input`
2728
2729
  checked: c,
2729
2730
  onChange: u
2730
2731
  }
2731
- ) : /* @__PURE__ */ m($s, {});
2732
+ ) : /* @__PURE__ */ m(Is, {});
2732
2733
  return /* @__PURE__ */ C(Es, { onClick: g, style: l, children: [
2733
2734
  p && /* @__PURE__ */ m(tt, { $x: p.x, $y: p.y }, p.key),
2734
2735
  /* @__PURE__ */ C(Cs, { children: [
2735
- /* @__PURE__ */ C(Ds, { children: [
2736
+ /* @__PURE__ */ C(Os, { children: [
2736
2737
  /* @__PURE__ */ m(kr, { children: /* @__PURE__ */ m(f, { size: "1rem" }) }),
2737
- /* @__PURE__ */ m(Os, { children: r ? /* @__PURE__ */ m(
2738
+ /* @__PURE__ */ m(Ds, { children: r ? /* @__PURE__ */ m(
2738
2739
  vn,
2739
2740
  {
2740
2741
  content: r,
@@ -2748,9 +2749,9 @@ const Ls = _.input`
2748
2749
  /* @__PURE__ */ m(kr, { children: v() })
2749
2750
  ] })
2750
2751
  ] });
2751
- }, $t = { tension: 200, friction: 25 }, Ma = { tension: 150, friction: 25 }, Fa = {
2752
- tension: $t.tension + 125,
2753
- friction: $t.friction + 5
2752
+ }, It = { tension: 200, friction: 25 }, Ma = { tension: 150, friction: 25 }, Fa = {
2753
+ tension: It.tension + 125,
2754
+ friction: It.friction + 5
2754
2755
  }, rt = { tension: 300, friction: 30 }, za = {
2755
2756
  tension: rt.tension * 2.5,
2756
2757
  friction: rt.friction
@@ -2933,7 +2934,7 @@ const Ls = _.input`
2933
2934
  e || c.start({
2934
2935
  opacity: 0,
2935
2936
  scale: 1.1,
2936
- config: $t,
2937
+ config: It,
2937
2938
  onRest: () => {
2938
2939
  a(!1), t == null || t();
2939
2940
  }
@@ -3112,7 +3113,7 @@ const eo = _.div`
3112
3113
  incorrectKeys: a,
3113
3114
  shaking: l = !1
3114
3115
  }) => {
3115
- const [c, u] = B(""), d = I(null), f = (k) => k ? ro.has(k) ? no : io : xt, [p, b] = ze(() => ({
3116
+ const [c, u] = B(""), d = $(null), f = (k) => k ? ro.has(k) ? no : io : xt, [p, b] = ze(() => ({
3116
3117
  height: xt,
3117
3118
  config: { tension: 300, friction: 26 }
3118
3119
  }));
@@ -3247,7 +3248,7 @@ function Wa({
3247
3248
  onClose: n,
3248
3249
  closeOnSameValue: i = !0
3249
3250
  }) {
3250
- const s = I(null), [o, a] = B(null), l = e.findIndex((u) => u.value === t), c = (u, d) => {
3251
+ const s = $(null), [o, a] = B(null), l = e.findIndex((u) => u.value === t), c = (u, d) => {
3251
3252
  const f = u.currentTarget.getBoundingClientRect(), p = u.clientX - f.left, b = u.clientY - f.top;
3252
3253
  if (a({ x: p, y: b, key: Date.now(), target: d.value }), d.value === t) {
3253
3254
  i && n && n();
@@ -3283,7 +3284,7 @@ function Wa({
3283
3284
  function ho(e, t, r) {
3284
3285
  return Math.max(t, Math.min(e, r));
3285
3286
  }
3286
- const O = {
3287
+ const D = {
3287
3288
  toVector(e, t) {
3288
3289
  return e === void 0 && (e = t), Array.isArray(e) ? e : [e, e];
3289
3290
  },
@@ -3303,12 +3304,12 @@ const O = {
3303
3304
  function Tr(e, t, r) {
3304
3305
  return t === 0 || Math.abs(t) === 1 / 0 ? Math.pow(e, r * 5) : e * t * r / (t + r * e);
3305
3306
  }
3306
- function Ar(e, t, r, n = 0.15) {
3307
+ function Pr(e, t, r, n = 0.15) {
3307
3308
  return n === 0 ? ho(e, t, r) : e < t ? -Tr(t - e, r - t, n) + t : e > r ? +Tr(e - r, r - t, n) + r : e;
3308
3309
  }
3309
3310
  function po(e, [t, r], [n, i]) {
3310
3311
  const [[s, o], [a, l]] = e;
3311
- return [Ar(t, s, o, n), Ar(r, a, l, i)];
3312
+ return [Pr(t, s, o, n), Pr(r, a, l, i)];
3312
3313
  }
3313
3314
  function go(e, t) {
3314
3315
  if (typeof e != "object" || e === null) return e;
@@ -3332,7 +3333,7 @@ function R(e, t, r) {
3332
3333
  writable: !0
3333
3334
  }) : e[t] = r, e;
3334
3335
  }
3335
- function Pr(e, t) {
3336
+ function Ar(e, t) {
3336
3337
  var r = Object.keys(e);
3337
3338
  if (Object.getOwnPropertySymbols) {
3338
3339
  var n = Object.getOwnPropertySymbols(e);
@@ -3342,12 +3343,12 @@ function Pr(e, t) {
3342
3343
  }
3343
3344
  return r;
3344
3345
  }
3345
- function P(e) {
3346
+ function A(e) {
3346
3347
  for (var t = 1; t < arguments.length; t++) {
3347
3348
  var r = arguments[t] != null ? arguments[t] : {};
3348
- t % 2 ? Pr(Object(r), !0).forEach(function(n) {
3349
+ t % 2 ? Ar(Object(r), !0).forEach(function(n) {
3349
3350
  R(e, n, r[n]);
3350
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Pr(Object(r)).forEach(function(n) {
3351
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ar(Object(r)).forEach(function(n) {
3351
3352
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
3352
3353
  });
3353
3354
  }
@@ -3431,7 +3432,7 @@ function Cr(e) {
3431
3432
  const t = Tn(e);
3432
3433
  return [t.clientX, t.clientY];
3433
3434
  }
3434
- function Ao(e) {
3435
+ function Po(e) {
3435
3436
  const t = {};
3436
3437
  if ("buttons" in e && (t.buttons = e.buttons), "shiftKey" in e) {
3437
3438
  const {
@@ -3452,21 +3453,21 @@ function Ao(e) {
3452
3453
  function nt(e, ...t) {
3453
3454
  return typeof e == "function" ? e(...t) : e;
3454
3455
  }
3455
- function Po() {
3456
+ function Ao() {
3456
3457
  }
3457
3458
  function Eo(...e) {
3458
- return e.length === 0 ? Po : e.length === 1 ? e[0] : function() {
3459
+ return e.length === 0 ? Ao : e.length === 1 ? e[0] : function() {
3459
3460
  let t;
3460
3461
  for (const r of e)
3461
3462
  t = r.apply(this, arguments) || t;
3462
3463
  return t;
3463
3464
  };
3464
3465
  }
3465
- function Dr(e, t) {
3466
+ function Or(e, t) {
3466
3467
  return Object.assign({}, t, e || {});
3467
3468
  }
3468
3469
  const Co = 32;
3469
- class Do {
3470
+ class Oo {
3470
3471
  constructor(t, r, n) {
3471
3472
  this.ctrl = t, this.args = r, this.key = n, this.state || (this.state = {}, this.computeValues([0, 0]), this.computeInitial(), this.init && this.init(), this.reset());
3472
3473
  }
@@ -3523,9 +3524,9 @@ class Do {
3523
3524
  } = this;
3524
3525
  r.args = this.args;
3525
3526
  let s = 0;
3526
- if (t && (r.event = t, n.preventDefault && t.cancelable && r.event.preventDefault(), r.type = t.type, i.touches = this.ctrl.pointerIds.size || this.ctrl.touchIds.size, i.locked = !!document.pointerLockElement, Object.assign(i, Ao(t)), i.down = i.pressed = i.buttons % 2 === 1 || i.touches > 0, s = t.timeStamp - r.timeStamp, r.timeStamp = t.timeStamp, r.elapsedTime = r.timeStamp - r.startTime), r._active) {
3527
+ if (t && (r.event = t, n.preventDefault && t.cancelable && r.event.preventDefault(), r.type = t.type, i.touches = this.ctrl.pointerIds.size || this.ctrl.touchIds.size, i.locked = !!document.pointerLockElement, Object.assign(i, Po(t)), i.down = i.pressed = i.buttons % 2 === 1 || i.touches > 0, s = t.timeStamp - r.timeStamp, r.timeStamp = t.timeStamp, r.elapsedTime = r.timeStamp - r.startTime), r._active) {
3527
3528
  const E = r._delta.map(Math.abs);
3528
- O.addTo(r._distance, E);
3529
+ D.addTo(r._distance, E);
3529
3530
  }
3530
3531
  this.axisIntent && this.axisIntent(t);
3531
3532
  const [o, a] = r._movement, [l, c] = n.threshold, {
@@ -3535,8 +3536,8 @@ class Do {
3535
3536
  if (n.hasCustomTransform ? (u[0] === !1 && (u[0] = Math.abs(o) >= l && d[0]), u[1] === !1 && (u[1] = Math.abs(a) >= c && d[1])) : (u[0] === !1 && (u[0] = Math.abs(o) >= l && Math.sign(o) * l), u[1] === !1 && (u[1] = Math.abs(a) >= c && Math.sign(a) * c)), r.intentional = u[0] !== !1 || u[1] !== !1, !r.intentional) return;
3536
3537
  const f = [0, 0];
3537
3538
  if (n.hasCustomTransform) {
3538
- const [E, D] = d;
3539
- f[0] = u[0] !== !1 ? E - u[0] : 0, f[1] = u[1] !== !1 ? D - u[1] : 0;
3539
+ const [E, O] = d;
3540
+ f[0] = u[0] !== !1 ? E - u[0] : 0, f[1] = u[1] !== !1 ? O - u[1] : 0;
3540
3541
  } else
3541
3542
  f[0] = u[0] !== !1 ? o - u[0] : 0, f[1] = u[1] !== !1 ? a - u[1] : 0;
3542
3543
  this.restrictToAxis && !r._blocked && this.restrictToAxis(f);
@@ -3545,16 +3546,16 @@ class Do {
3545
3546
  const [g, v] = r.offset, [[y, x], [w, T]] = r._bounds;
3546
3547
  r.overflow = [g < y ? -1 : g > x ? 1 : 0, v < w ? -1 : v > T ? 1 : 0], r._movementBound[0] = r.overflow[0] ? r._movementBound[0] === !1 ? r._movement[0] : r._movementBound[0] : !1, r._movementBound[1] = r.overflow[1] ? r._movementBound[1] === !1 ? r._movement[1] : r._movementBound[1] : !1;
3547
3548
  const k = r._active ? n.rubberband || [0, 0] : [0, 0];
3548
- if (r.offset = po(r._bounds, r.offset, k), r.delta = O.sub(r.offset, p), this.computeMovement(), b && (!r.last || s > Co)) {
3549
- r.delta = O.sub(r.offset, p);
3549
+ if (r.offset = po(r._bounds, r.offset, k), r.delta = D.sub(r.offset, p), this.computeMovement(), b && (!r.last || s > Co)) {
3550
+ r.delta = D.sub(r.offset, p);
3550
3551
  const E = r.delta.map(Math.abs);
3551
- O.addTo(r.distance, E), r.direction = r.delta.map(Math.sign), r._direction = r._delta.map(Math.sign), !r.first && s > 0 && (r.velocity = [E[0] / s, E[1] / s], r.timeDelta = s);
3552
+ D.addTo(r.distance, E), r.direction = r.delta.map(Math.sign), r._direction = r._delta.map(Math.sign), !r.first && s > 0 && (r.velocity = [E[0] / s, E[1] / s], r.timeDelta = s);
3552
3553
  }
3553
3554
  }
3554
3555
  emit() {
3555
3556
  const t = this.state, r = this.shared, n = this.config;
3556
3557
  if (t._active || this.clean(), (t._blocked || !t.intentional) && !t._force && !n.triggerAllEvents) return;
3557
- const i = this.handler(P(P(P({}, r), t), {}, {
3558
+ const i = this.handler(A(A(A({}, r), t), {}, {
3558
3559
  [this.aliasKey]: t.values
3559
3560
  }));
3560
3561
  i !== void 0 && (t.memo = i);
@@ -3563,14 +3564,14 @@ class Do {
3563
3564
  this.eventStore.clean(), this.timeoutStore.clean();
3564
3565
  }
3565
3566
  }
3566
- function Oo([e, t], r) {
3567
+ function Do([e, t], r) {
3567
3568
  const n = Math.abs(e), i = Math.abs(t);
3568
3569
  if (n > i && n > r)
3569
3570
  return "x";
3570
3571
  if (i > n && i > r)
3571
3572
  return "y";
3572
3573
  }
3573
- class Io extends Do {
3574
+ class $o extends Oo {
3574
3575
  constructor(...t) {
3575
3576
  super(...t), R(this, "aliasKey", "xy");
3576
3577
  }
@@ -3581,16 +3582,16 @@ class Io extends Do {
3581
3582
  this.state.offset = [0, 0], this.state.lastOffset = [0, 0];
3582
3583
  }
3583
3584
  computeOffset() {
3584
- this.state.offset = O.add(this.state.lastOffset, this.state.movement);
3585
+ this.state.offset = D.add(this.state.lastOffset, this.state.movement);
3585
3586
  }
3586
3587
  computeMovement() {
3587
- this.state.movement = O.sub(this.state.offset, this.state.lastOffset);
3588
+ this.state.movement = D.sub(this.state.offset, this.state.lastOffset);
3588
3589
  }
3589
3590
  axisIntent(t) {
3590
3591
  const r = this.state, n = this.config;
3591
3592
  if (!r.axis && t) {
3592
3593
  const i = typeof n.axisThreshold == "object" ? n.axisThreshold[Sn(t)] : n.axisThreshold;
3593
- r.axis = Oo(r._movement, i);
3594
+ r.axis = Do(r._movement, i);
3594
3595
  }
3595
3596
  r._blocked = (n.lockDirection || !!n.axis) && !r.axis || !!n.axis && n.axis !== r.axis;
3596
3597
  }
@@ -3606,12 +3607,12 @@ class Io extends Do {
3606
3607
  }
3607
3608
  }
3608
3609
  }
3609
- const Or = (e) => e, Ir = 0.15, Xt = {
3610
+ const Dr = (e) => e, $r = 0.15, Xt = {
3610
3611
  enabled(e = !0) {
3611
3612
  return e;
3612
3613
  },
3613
3614
  eventOptions(e, t, r) {
3614
- return P(P({}, r.shared.eventOptions), e);
3615
+ return A(A({}, r.shared.eventOptions), e);
3615
3616
  },
3616
3617
  preventDefault(e = !1) {
3617
3618
  return e;
@@ -3622,30 +3623,30 @@ const Or = (e) => e, Ir = 0.15, Xt = {
3622
3623
  rubberband(e = 0) {
3623
3624
  switch (e) {
3624
3625
  case !0:
3625
- return [Ir, Ir];
3626
+ return [$r, $r];
3626
3627
  case !1:
3627
3628
  return [0, 0];
3628
3629
  default:
3629
- return O.toVector(e);
3630
+ return D.toVector(e);
3630
3631
  }
3631
3632
  },
3632
3633
  from(e) {
3633
3634
  if (typeof e == "function") return e;
3634
- if (e != null) return O.toVector(e);
3635
+ if (e != null) return D.toVector(e);
3635
3636
  },
3636
3637
  transform(e, t, r) {
3637
3638
  const n = e || r.shared.transform;
3638
3639
  if (this.hasCustomTransform = !!n, process.env.NODE_ENV === "development") {
3639
- const i = n || Or;
3640
+ const i = n || Dr;
3640
3641
  return (s) => {
3641
3642
  const o = i(s);
3642
3643
  return (!isFinite(o[0]) || !isFinite(o[1])) && console.warn(`[@use-gesture]: config.transform() must produce a valid result, but it was: [${o[0]},${[1]}]`), o;
3643
3644
  };
3644
3645
  }
3645
- return n || Or;
3646
+ return n || Dr;
3646
3647
  },
3647
3648
  threshold(e) {
3648
- return O.toVector(e, 0);
3649
+ return D.toVector(e, 0);
3649
3650
  }
3650
3651
  };
3651
3652
  process.env.NODE_ENV === "development" && Object.assign(Xt, {
@@ -3665,13 +3666,13 @@ process.env.NODE_ENV === "development" && Object.assign(Xt, {
3665
3666
  return NaN;
3666
3667
  }
3667
3668
  });
3668
- const $o = 0, je = P(P({}, Xt), {}, {
3669
+ const Io = 0, je = A(A({}, Xt), {}, {
3669
3670
  axis(e, t, {
3670
3671
  axis: r
3671
3672
  }) {
3672
3673
  if (this.lockDirection = r === "lock", !this.lockDirection) return r;
3673
3674
  },
3674
- axisThreshold(e = $o) {
3675
+ axisThreshold(e = Io) {
3675
3676
  return e;
3676
3677
  },
3677
3678
  bounds(e = {}) {
@@ -3689,13 +3690,13 @@ const $o = 0, je = P(P({}, Xt), {}, {
3689
3690
  } = e;
3690
3691
  return [[t, r], [n, i]];
3691
3692
  }
3692
- }), $r = {
3693
+ }), Ir = {
3693
3694
  ArrowRight: (e, t = 1) => [e * t, 0],
3694
3695
  ArrowLeft: (e, t = 1) => [-1 * e * t, 0],
3695
3696
  ArrowUp: (e, t = 1) => [0, -1 * e * t],
3696
3697
  ArrowDown: (e, t = 1) => [0, e * t]
3697
3698
  };
3698
- class Ro extends Io {
3699
+ class Ro extends $o {
3699
3700
  constructor(...t) {
3700
3701
  super(...t), R(this, "ingKey", "dragging");
3701
3702
  }
@@ -3744,7 +3745,7 @@ class Ro extends Io {
3744
3745
  const i = kt(t);
3745
3746
  if (r._pointerId !== void 0 && i !== r._pointerId) return;
3746
3747
  const s = Cr(t);
3747
- if (document.pointerLockElement === t.target ? r._delta = [t.movementX, t.movementY] : (r._delta = O.sub(s, r._values), this.computeValues(s)), O.addTo(r._movement, r._delta), this.compute(t), r._delayed && r.intentional) {
3748
+ if (document.pointerLockElement === t.target ? r._delta = [t.movementX, t.movementY] : (r._delta = D.sub(s, r._values), this.computeValues(s)), D.addTo(r._movement, r._delta), this.compute(t), r._delayed && r.intentional) {
3748
3749
  this.timeoutStore.remove("dragDelay"), r.active = !1, this.startPointerDrag(t);
3749
3750
  return;
3750
3751
  }
@@ -3819,14 +3820,14 @@ class Ro extends Io {
3819
3820
  }, this.config.delay);
3820
3821
  }
3821
3822
  keyDown(t) {
3822
- const r = $r[t.key];
3823
+ const r = Ir[t.key];
3823
3824
  if (r) {
3824
3825
  const n = this.state, i = t.shiftKey ? 10 : t.altKey ? 0.1 : 1;
3825
- this.start(t), n._delta = r(this.config.keyboardDisplacement, i), n._keyboardActive = !0, O.addTo(n._movement, n._delta), this.compute(t), this.emit();
3826
+ this.start(t), n._delta = r(this.config.keyboardDisplacement, i), n._keyboardActive = !0, D.addTo(n._movement, n._delta), this.compute(t), this.emit();
3826
3827
  }
3827
3828
  }
3828
3829
  keyUp(t) {
3829
- t.key in $r && (this.state._keyboardActive = !1, this.setActive(), this.compute(t), this.emit());
3830
+ t.key in Ir && (this.state._keyboardActive = !1, this.setActive(), this.compute(t), this.emit());
3830
3831
  }
3831
3832
  bind(t) {
3832
3833
  const r = this.config.device;
@@ -3840,11 +3841,11 @@ function Lo(e) {
3840
3841
  "persist" in e && typeof e.persist == "function" && e.persist();
3841
3842
  }
3842
3843
  const Be = typeof window < "u" && window.document && window.document.createElement;
3843
- function An() {
3844
+ function Pn() {
3844
3845
  return Be && "ontouchstart" in window;
3845
3846
  }
3846
3847
  function Vo() {
3847
- return An() || Be && window.navigator.maxTouchPoints > 1;
3848
+ return Pn() || Be && window.navigator.maxTouchPoints > 1;
3848
3849
  }
3849
3850
  function Mo() {
3850
3851
  return Be && "onpointerdown" in window;
@@ -3862,7 +3863,7 @@ function zo() {
3862
3863
  const N = {
3863
3864
  isBrowser: Be,
3864
3865
  gesture: zo(),
3865
- touch: An(),
3866
+ touch: Pn(),
3866
3867
  touchscreen: Vo(),
3867
3868
  pointer: Mo(),
3868
3869
  pointerLock: Fo()
@@ -3870,7 +3871,7 @@ const N = {
3870
3871
  mouse: 0,
3871
3872
  touch: 0,
3872
3873
  pen: 8
3873
- }, Pn = P(P({}, je), {}, {
3874
+ }, An = A(A({}, je), {}, {
3874
3875
  device(e, t, {
3875
3876
  pointer: {
3876
3877
  touch: r = !1,
@@ -3900,7 +3901,7 @@ const N = {
3900
3901
  tapsThreshold: n = 3,
3901
3902
  axis: i = void 0
3902
3903
  }) {
3903
- const s = O.toVector(e, r ? n : i ? 1 : 0);
3904
+ const s = D.toVector(e, r ? n : i ? 1 : 0);
3904
3905
  return this.filterTaps = r, this.tapsThreshold = n, s;
3905
3906
  },
3906
3907
  swipe({
@@ -3909,8 +3910,8 @@ const N = {
3909
3910
  duration: r = Uo
3910
3911
  } = {}) {
3911
3912
  return {
3912
- velocity: this.transform(O.toVector(e)),
3913
- distance: this.transform(O.toVector(t)),
3913
+ velocity: this.transform(D.toVector(e)),
3914
+ distance: this.transform(D.toVector(t)),
3914
3915
  duration: r
3915
3916
  };
3916
3917
  },
@@ -3925,13 +3926,13 @@ const N = {
3925
3926
  }
3926
3927
  },
3927
3928
  axisThreshold(e) {
3928
- return e ? P(P({}, Rr), e) : Rr;
3929
+ return e ? A(A({}, Rr), e) : Rr;
3929
3930
  },
3930
3931
  keyboardDisplacement(e = qo) {
3931
3932
  return e;
3932
3933
  }
3933
3934
  });
3934
- process.env.NODE_ENV === "development" && Object.assign(Pn, {
3935
+ process.env.NODE_ENV === "development" && Object.assign(An, {
3935
3936
  useTouch(e) {
3936
3937
  if (e !== void 0)
3937
3938
  throw Error("[@use-gesture]: `useTouch` option has been renamed to `pointer.touch`. Use it as in `{ pointer: { touch: true } }`.");
@@ -3958,7 +3959,7 @@ process.env.NODE_ENV === "development" && Object.assign(Pn, {
3958
3959
  return NaN;
3959
3960
  }
3960
3961
  });
3961
- P(P({}, Xt), {}, {
3962
+ A(A({}, Xt), {}, {
3962
3963
  device(e, t, {
3963
3964
  shared: r,
3964
3965
  pointer: {
@@ -3977,13 +3978,13 @@ P(P({}, Xt), {}, {
3977
3978
  angleBounds: n = {}
3978
3979
  }) {
3979
3980
  const i = (o) => {
3980
- const a = Dr(nt(r, o), {
3981
+ const a = Or(nt(r, o), {
3981
3982
  min: -1 / 0,
3982
3983
  max: 1 / 0
3983
3984
  });
3984
3985
  return [a.min, a.max];
3985
3986
  }, s = (o) => {
3986
- const a = Dr(nt(n, o), {
3987
+ const a = Or(nt(n, o), {
3987
3988
  min: -1 / 0,
3988
3989
  max: 1 / 0
3989
3990
  });
@@ -3992,7 +3993,7 @@ P(P({}, Xt), {}, {
3992
3993
  return typeof r != "function" && typeof n != "function" ? [i(), s()] : (o) => [i(o), s(o)];
3993
3994
  },
3994
3995
  threshold(e, t, r) {
3995
- return this.lockDirection = r.axis === "lock", O.toVector(e, this.lockDirection ? [0.1, 3] : 0);
3996
+ return this.lockDirection = r.axis === "lock", D.toVector(e, this.lockDirection ? [0.1, 3] : 0);
3996
3997
  },
3997
3998
  modifierKey(e) {
3998
3999
  return e === void 0 ? "ctrlKey" : e;
@@ -4001,10 +4002,10 @@ P(P({}, Xt), {}, {
4001
4002
  return e;
4002
4003
  }
4003
4004
  });
4004
- P(P({}, je), {}, {
4005
+ A(A({}, je), {}, {
4005
4006
  mouseOnly: (e = !0) => e
4006
4007
  });
4007
- P(P({}, je), {}, {
4008
+ A(A({}, je), {}, {
4008
4009
  mouseOnly: (e = !0) => e
4009
4010
  });
4010
4011
  const En = /* @__PURE__ */ new Map(), Rt = /* @__PURE__ */ new Map();
@@ -4014,7 +4015,7 @@ function Wo(e) {
4014
4015
  const Go = {
4015
4016
  key: "drag",
4016
4017
  engine: Ro,
4017
- resolver: Pn
4018
+ resolver: An
4018
4019
  };
4019
4020
  function Qo(e, t) {
4020
4021
  if (e == null) return {};
@@ -4093,14 +4094,14 @@ function Zo(e, t, r = {}) {
4093
4094
  transform: l
4094
4095
  }, Ko), t) {
4095
4096
  const u = Rt.get(t);
4096
- r[t] = Qe(P({
4097
+ r[t] = Qe(A({
4097
4098
  shared: r.shared
4098
4099
  }, c), u);
4099
4100
  } else
4100
4101
  for (const u in c) {
4101
4102
  const d = Rt.get(u);
4102
4103
  if (d)
4103
- r[u] = Qe(P({
4104
+ r[u] = Qe(A({
4104
4105
  shared: r.shared
4105
4106
  }, c[u]), d);
4106
4107
  else if (process.env.NODE_ENV === "development" && !["drag", "pinch", "scroll", "wheel", "move", "hover"].includes(u)) {
@@ -4116,7 +4117,7 @@ class Cn {
4116
4117
  R(this, "_listeners", /* @__PURE__ */ new Set()), this._ctrl = t, this._gestureKey = r;
4117
4118
  }
4118
4119
  add(t, r, n, i, s) {
4119
- const o = this._listeners, a = xo(r, n), l = this._gestureKey ? this._ctrl.config[this._gestureKey].eventOptions : {}, c = P(P({}, l), s);
4120
+ const o = this._listeners, a = xo(r, n), l = this._gestureKey ? this._ctrl.config[this._gestureKey].eventOptions : {}, c = A(A({}, l), s);
4120
4121
  t.addEventListener(a, i, c);
4121
4122
  const u = () => {
4122
4123
  t.removeEventListener(a, i, c), o.delete(u);
@@ -4187,7 +4188,7 @@ class ea {
4187
4188
  }
4188
4189
  const s = Lr(n, r.eventOptions, !!i);
4189
4190
  for (const o in this.nativeHandlers)
4190
- s(o, "", (a) => this.nativeHandlers[o](P(P({}, this.state.shared), {}, {
4191
+ s(o, "", (a) => this.nativeHandlers[o](A(A({}, this.state.shared), {}, {
4191
4192
  event: a,
4192
4193
  args: t
4193
4194
  })), void 0, !0);
@@ -4291,7 +4292,7 @@ function Ga({
4291
4292
  closeThreshold: o = 0.25,
4292
4293
  onExitComplete: a
4293
4294
  }) {
4294
- const l = I(null), [c, u] = B(e), [d, f] = ze(() => ({
4295
+ const l = $(null), [c, u] = B(e), [d, f] = ze(() => ({
4295
4296
  y: i,
4296
4297
  opacity: 0,
4297
4298
  config: { tension: 300, friction: 30 }
@@ -4567,7 +4568,7 @@ function wa(e, t) {
4567
4568
  }, i;
4568
4569
  }
4569
4570
  function ec(e, t = {}) {
4570
- const { enabled: r = !0, includeMargins: n = !0, throttleMs: i = 16 } = t, s = I(null), o = I(null), a = I(null), l = I(e);
4571
+ const { enabled: r = !0, includeMargins: n = !0, throttleMs: i = 16 } = t, s = $(null), o = $(null), a = $(null), l = $(e);
4571
4572
  F(() => {
4572
4573
  l.current = e;
4573
4574
  }, [e]);
@@ -4612,13 +4613,13 @@ function ec(e, t = {}) {
4612
4613
  };
4613
4614
  }
4614
4615
  const _a = {
4615
- // Primary — deep navy, confident and grounded
4616
- primary: "#0D47A1",
4616
+ // Primary — refined teal, calm and grounded
4617
+ primary: "#2E7D8C",
4617
4618
  onPrimary: "#ffffff",
4618
- primaryContainer: "#BBDEFB",
4619
- onPrimaryContainer: "#0D3B70",
4620
- primaryDark: "#0A3A86",
4621
- primaryDarker: "#08306B",
4619
+ primaryContainer: "#B2EBF2",
4620
+ onPrimaryContainer: "#1A5C68",
4621
+ primaryDark: "#256A77",
4622
+ primaryDarker: "#1C5561",
4622
4623
  // Secondary — bold goldenrod yellow
4623
4624
  secondary: "#E8C840",
4624
4625
  onSecondary: "#1A1A1A",
@@ -4673,19 +4674,19 @@ const _a = {
4673
4674
  keyDefaultText: "#1A1A1A",
4674
4675
  keyWrong: "#B5B2AE",
4675
4676
  keyWrongMuted: "#B5B2AE",
4676
- keyCorrect: "#0D47A1",
4677
- keyCorrectMuted: "#0A3A86",
4677
+ keyCorrect: "#2E7D8C",
4678
+ keyCorrectMuted: "#256A77",
4678
4679
  keyAccentText: "#ffffff",
4679
4680
  keyDisabled: "#6E6E6E",
4680
4681
  keyDisabledText: "#9E9E9E",
4681
- // Toggle/Switch — deep blue
4682
- toggleTrackOn: "rgba(13, 71, 161, 0.5)",
4682
+ // Toggle/Switch — teal
4683
+ toggleTrackOn: "rgba(46, 125, 140, 0.5)",
4683
4684
  toggleTrackOff: "rgba(0, 0, 0, 0.38)",
4684
- toggleThumbOn: "#0D47A1",
4685
+ toggleThumbOn: "#2E7D8C",
4685
4686
  toggleThumbOff: "#FAFAFA",
4686
- toggleHoverOn: "rgba(13, 71, 161, 0.08)",
4687
+ toggleHoverOn: "rgba(46, 125, 140, 0.08)",
4687
4688
  toggleHoverOff: "rgba(0, 0, 0, 0.04)",
4688
- toggleFocusOn: "rgba(13, 71, 161, 0.12)",
4689
+ toggleFocusOn: "rgba(46, 125, 140, 0.12)",
4689
4690
  toggleFocusOff: "rgba(0, 0, 0, 0.06)",
4690
4691
  // 3D text shadows
4691
4692
  textShadowDark: "#505050",
@@ -4693,10 +4694,10 @@ const _a = {
4693
4694
  textShadow2: "#D0D0D0",
4694
4695
  textShadow3: "#B8B8B8",
4695
4696
  // RGB decompositions
4696
- primaryRgb: "13, 71, 161",
4697
+ primaryRgb: "46, 125, 140",
4697
4698
  backgroundRgb: "100, 181, 246",
4698
4699
  surfaceRgb: "255, 255, 255",
4699
- primaryDarkerRgb: "8, 48, 107"
4700
+ primaryDarkerRgb: "28, 85, 97"
4700
4701
  }, xa = {
4701
4702
  // Primary — soft green for contrast on near-black
4702
4703
  primary: "#81c784",
@@ -4886,18 +4887,18 @@ function Sa(e) {
4886
4887
  const rc = Sa("light");
4887
4888
  export {
4888
4889
  vn as AnimatedText,
4889
- Oa as AnimatedTextProvider,
4890
+ Da as AnimatedTextProvider,
4890
4891
  Ra as BackButton,
4891
4892
  Ya as Badge,
4892
- Ia as BannerButton,
4893
+ $a as BannerButton,
4893
4894
  Ga as BottomSheet,
4894
- $a as CircleIconButton,
4895
+ Ia as CircleIconButton,
4895
4896
  Qa as ConfirmDialog,
4896
4897
  Va as ListItem,
4897
4898
  qa as LoadingScreen,
4898
4899
  Wa as OptionPicker,
4899
4900
  tt as Ripple,
4900
- $t as SPRING_COMFORTABLE,
4901
+ It as SPRING_COMFORTABLE,
4901
4902
  Ma as SPRING_COMFORTABLE_SLOW,
4902
4903
  ja as SPRING_GENTLE,
4903
4904
  Na as SPRING_INSTANT,
@@ -4914,7 +4915,7 @@ export {
4914
4915
  xa as darkPalette,
4915
4916
  tc as hexToRgb,
4916
4917
  _a as lightPalette,
4917
- Ps as rippleAnimation,
4918
+ As as rippleAnimation,
4918
4919
  rc as theme,
4919
4920
  wa as throttle,
4920
4921
  Za as useReducedMotion,