@lzzjokerzzl/react-ui-components 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2657,7 +2657,7 @@ function mn(e, { forwardMotionProps: t = !1 } = {}, r, n) {
2657
2657
  }, { isStatic: u } = d, f = Mf(i), p = s(i, u);
2658
2658
  if (!u && fs) {
2659
2659
  Qf(d, r);
2660
- const m = eh(d);
2660
+ const m = e0(d);
2661
2661
  c = m.MeasureLayout, f.visualElement = qf(e, p, d, n, m.ProjectionNode);
2662
2662
  }
2663
2663
  return F(tn.Provider, { value: f, children: [c && f.visualElement ? h(c, { visualElement: f.visualElement, ...d }) : null, Wf(e, i, Xf(p, f.visualElement, l), p, u, t)] });
@@ -2677,7 +2677,7 @@ function Qf(e, t) {
2677
2677
  e.ignoreStrict ? Ot(!1, n, "lazy-strict-mode") : Se(!1, n, "lazy-strict-mode");
2678
2678
  }
2679
2679
  }
2680
- function eh(e) {
2680
+ function e0(e) {
2681
2681
  const { drag: t, layout: r } = Rt;
2682
2682
  if (!t && !r)
2683
2683
  return {};
@@ -2687,7 +2687,7 @@ function eh(e) {
2687
2687
  ProjectionNode: n.ProjectionNode
2688
2688
  };
2689
2689
  }
2690
- function th(e, t) {
2690
+ function t0(e, t) {
2691
2691
  if (typeof Proxy > "u")
2692
2692
  return mn;
2693
2693
  const r = /* @__PURE__ */ new Map(), n = (a, o) => mn(a, o, e, t), s = (a, o) => (process.env.NODE_ENV !== "production" && Zr(!1, "motion() is deprecated. Use motion.create() instead."), n(a, o));
@@ -2706,10 +2706,10 @@ function fl({ top: e, left: t, right: r, bottom: n }) {
2706
2706
  y: { min: e, max: n }
2707
2707
  };
2708
2708
  }
2709
- function rh({ x: e, y: t }) {
2709
+ function r0({ x: e, y: t }) {
2710
2710
  return { top: t.min, right: e.max, bottom: t.max, left: e.min };
2711
2711
  }
2712
- function nh(e, t) {
2712
+ function n0(e, t) {
2713
2713
  if (!t)
2714
2714
  return e;
2715
2715
  const r = t({ x: e.left, y: e.top }), n = t({ x: e.right, y: e.bottom });
@@ -2749,7 +2749,7 @@ function pl(e, { x: t, y: r }) {
2749
2749
  _n(e.x, t.translate, t.scale, t.originPoint), _n(e.y, r.translate, r.scale, r.originPoint);
2750
2750
  }
2751
2751
  const Ra = 0.999999999999, ja = 1.0000000000001;
2752
- function sh(e, t, r, n = !1) {
2752
+ function s0(e, t, r, n = !1) {
2753
2753
  const s = r.length;
2754
2754
  if (!s)
2755
2755
  return;
@@ -2776,9 +2776,9 @@ function Dt(e, t) {
2776
2776
  Oa(e.x, t.x, t.scaleX, t.scale, t.originX), Oa(e.y, t.y, t.scaleY, t.scale, t.originY);
2777
2777
  }
2778
2778
  function ml(e, t) {
2779
- return fl(nh(e.getBoundingClientRect(), t));
2779
+ return fl(n0(e.getBoundingClientRect(), t));
2780
2780
  }
2781
- function ah(e, t, r) {
2781
+ function a0(e, t, r) {
2782
2782
  const n = ml(e, r), { scroll: s } = t;
2783
2783
  return s && (Nt(n.x, s.offset.x), Nt(n.y, s.offset.y)), n;
2784
2784
  }
@@ -2794,7 +2794,7 @@ const $a = () => ({
2794
2794
  x: za(),
2795
2795
  y: za()
2796
2796
  }), Gn = { current: null }, gl = { current: !1 };
2797
- function oh() {
2797
+ function o0() {
2798
2798
  if (gl.current = !0, !!fs)
2799
2799
  if (window.matchMedia) {
2800
2800
  const e = window.matchMedia("(prefers-reduced-motion)"), t = () => Gn.current = e.matches;
@@ -2803,7 +2803,7 @@ function oh() {
2803
2803
  Gn.current = !1;
2804
2804
  }
2805
2805
  const dr = /* @__PURE__ */ new WeakMap();
2806
- function ih(e, t, r) {
2806
+ function i0(e, t, r) {
2807
2807
  for (const n in t) {
2808
2808
  const s = t[n], a = r[n];
2809
2809
  if (ve(s))
@@ -2859,7 +2859,7 @@ class bl {
2859
2859
  }
2860
2860
  }
2861
2861
  mount(t) {
2862
- this.current = t, dr.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((r, n) => this.bindToMotionValue(n, r)), gl.current || oh(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Gn.current, process.env.NODE_ENV !== "production" && Zr(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.parent?.addChild(this), this.update(this.props, this.presenceContext);
2862
+ this.current = t, dr.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((r, n) => this.bindToMotionValue(n, r)), gl.current || o0(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Gn.current, process.env.NODE_ENV !== "production" && Zr(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.parent?.addChild(this), this.update(this.props, this.presenceContext);
2863
2863
  }
2864
2864
  unmount() {
2865
2865
  this.projection && this.projection.unmount(), Ke(this.notifyUpdate), Ke(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
@@ -2934,7 +2934,7 @@ class bl {
2934
2934
  const a = "on" + s, o = t[a];
2935
2935
  o && (this.propEventSubscriptions[s] = this.on(s, o));
2936
2936
  }
2937
- this.prevMotionValues = ih(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2937
+ this.prevMotionValues = i0(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2938
2938
  }
2939
2939
  getProps() {
2940
2940
  return this.props;
@@ -3064,7 +3064,7 @@ function vl(e, { style: t, vars: r }, n, s) {
3064
3064
  for (o in r)
3065
3065
  a.setProperty(o, r[o]);
3066
3066
  }
3067
- function lh(e) {
3067
+ function l0(e) {
3068
3068
  return window.getComputedStyle(e);
3069
3069
  }
3070
3070
  class xl extends yl {
@@ -3075,7 +3075,7 @@ class xl extends yl {
3075
3075
  if (Ft.has(r))
3076
3076
  return this.projection?.isProjecting ? Ln(r) : fu(t, r);
3077
3077
  {
3078
- const n = lh(t), s = (vs(r) ? n.getPropertyValue(r) : n[r]) || 0;
3078
+ const n = l0(t), s = (vs(r) ? n.getPropertyValue(r) : n[r]) || 0;
3079
3079
  return typeof s == "string" ? s.trim() : s;
3080
3080
  }
3081
3081
  }
@@ -3114,7 +3114,7 @@ const wl = /* @__PURE__ */ new Set([
3114
3114
  "textLength",
3115
3115
  "lengthAdjust"
3116
3116
  ]);
3117
- function ch(e, t, r, n) {
3117
+ function c0(e, t, r, n) {
3118
3118
  vl(e, t, void 0, n);
3119
3119
  for (const s in t.attrs)
3120
3120
  e.setAttribute(wl.has(s) ? s : _s(s), t.attrs[s]);
@@ -3140,13 +3140,13 @@ class kl extends yl {
3140
3140
  sl(t, r, this.isSVGTag, n.transformTemplate, n.style);
3141
3141
  }
3142
3142
  renderInstance(t, r, n, s) {
3143
- ch(t, r, n, s);
3143
+ c0(t, r, n, s);
3144
3144
  }
3145
3145
  mount(t) {
3146
3146
  this.isSVGTag = ol(t.tagName), super.mount(t);
3147
3147
  }
3148
3148
  }
3149
- const dh = (e, t) => zs(e) ? new kl(t) : new xl(t, {
3149
+ const d0 = (e, t) => zs(e) ? new kl(t) : new xl(t, {
3150
3150
  allowProjection: e !== ri
3151
3151
  });
3152
3152
  function Lt(e, t, r) {
@@ -3154,10 +3154,10 @@ function Lt(e, t, r) {
3154
3154
  return Fs(n, t, r !== void 0 ? r : n.custom, e);
3155
3155
  }
3156
3156
  const Un = (e) => Array.isArray(e);
3157
- function uh(e, t, r) {
3157
+ function u0(e, t, r) {
3158
3158
  e.hasValue(t) ? e.getValue(t).set(r) : e.addValue(t, Ue(r));
3159
3159
  }
3160
- function fh(e) {
3160
+ function f0(e) {
3161
3161
  return Un(e) ? e[e.length - 1] || 0 : e;
3162
3162
  }
3163
3163
  function Gs(e, t) {
@@ -3165,16 +3165,16 @@ function Gs(e, t) {
3165
3165
  let { transitionEnd: n = {}, transition: s = {}, ...a } = r || {};
3166
3166
  a = { ...a, ...n };
3167
3167
  for (const o in a) {
3168
- const i = fh(a[o]);
3169
- uh(e, o, i);
3168
+ const i = f0(a[o]);
3169
+ u0(e, o, i);
3170
3170
  }
3171
3171
  }
3172
- function hh(e) {
3172
+ function h0(e) {
3173
3173
  return !!(ve(e) && e.add);
3174
3174
  }
3175
3175
  function Kn(e, t) {
3176
3176
  const r = e.getValue("willChange");
3177
- if (hh(r))
3177
+ if (h0(r))
3178
3178
  return r.add(t);
3179
3179
  if (!r && rt.WillChange) {
3180
3180
  const n = new rt.WillChange("auto");
@@ -3184,30 +3184,30 @@ function Kn(e, t) {
3184
3184
  function Cl(e) {
3185
3185
  return e.props[cl];
3186
3186
  }
3187
- const ph = (e) => e !== null;
3188
- function mh(e, { repeat: t, repeatType: r = "loop" }, n) {
3189
- const s = e.filter(ph), a = t && r !== "loop" && t % 2 === 1 ? 0 : s.length - 1;
3187
+ const p0 = (e) => e !== null;
3188
+ function m0(e, { repeat: t, repeatType: r = "loop" }, n) {
3189
+ const s = e.filter(p0), a = t && r !== "loop" && t % 2 === 1 ? 0 : s.length - 1;
3190
3190
  return s[a];
3191
3191
  }
3192
- const gh = {
3192
+ const g0 = {
3193
3193
  type: "spring",
3194
3194
  stiffness: 500,
3195
3195
  damping: 25,
3196
3196
  restSpeed: 10
3197
- }, bh = (e) => ({
3197
+ }, b0 = (e) => ({
3198
3198
  type: "spring",
3199
3199
  stiffness: 550,
3200
3200
  damping: e === 0 ? 2 * Math.sqrt(550) : 30,
3201
3201
  restSpeed: 10
3202
- }), yh = {
3202
+ }), y0 = {
3203
3203
  type: "keyframes",
3204
3204
  duration: 0.8
3205
- }, vh = {
3205
+ }, v0 = {
3206
3206
  type: "keyframes",
3207
3207
  ease: [0.25, 0.1, 0.35, 1],
3208
3208
  duration: 0.3
3209
- }, xh = (e, { keyframes: t }) => t.length > 2 ? yh : Ft.has(e) ? e.startsWith("scale") ? bh(t[1]) : gh : vh;
3210
- function wh({ when: e, delay: t, delayChildren: r, staggerChildren: n, staggerDirection: s, repeat: a, repeatType: o, repeatDelay: i, from: l, elapsed: c, ...d }) {
3209
+ }, x0 = (e, { keyframes: t }) => t.length > 2 ? y0 : Ft.has(e) ? e.startsWith("scale") ? b0(t[1]) : g0 : v0;
3210
+ function w0({ when: e, delay: t, delayChildren: r, staggerChildren: n, staggerDirection: s, repeat: a, repeatType: o, repeatDelay: i, from: l, elapsed: c, ...d }) {
3211
3211
  return !!Object.keys(d).length;
3212
3212
  }
3213
3213
  const Us = (e, t, r, n = {}, s, a) => (o) => {
@@ -3230,10 +3230,10 @@ const Us = (e, t, r, n = {}, s, a) => (o) => {
3230
3230
  motionValue: t,
3231
3231
  element: a ? void 0 : s
3232
3232
  };
3233
- wh(i) || Object.assign(d, xh(e, d)), d.duration && (d.duration = /* @__PURE__ */ We(d.duration)), d.repeatDelay && (d.repeatDelay = /* @__PURE__ */ We(d.repeatDelay)), d.from !== void 0 && (d.keyframes[0] = d.from);
3233
+ w0(i) || Object.assign(d, x0(e, d)), d.duration && (d.duration = /* @__PURE__ */ We(d.duration)), d.repeatDelay && (d.repeatDelay = /* @__PURE__ */ We(d.repeatDelay)), d.from !== void 0 && (d.keyframes[0] = d.from);
3234
3234
  let u = !1;
3235
3235
  if ((d.type === !1 || d.duration === 0 && !d.repeatDelay) && (zn(d), d.delay === 0 && (u = !0)), (rt.instantAnimations || rt.skipAnimations) && (u = !0, zn(d), d.delay = 0), d.allowFlatten = !i.type && !i.ease, u && !a && t.get() !== void 0) {
3236
- const f = mh(d.keyframes, i);
3236
+ const f = m0(d.keyframes, i);
3237
3237
  if (f !== void 0) {
3238
3238
  le.update(() => {
3239
3239
  d.onUpdate(f), d.onComplete();
@@ -3243,7 +3243,7 @@ const Us = (e, t, r, n = {}, s, a) => (o) => {
3243
3243
  }
3244
3244
  return i.isSync ? new Jr(d) : new Bu(d);
3245
3245
  };
3246
- function kh({ protectedKeys: e, needsAnimating: t }, r) {
3246
+ function k0({ protectedKeys: e, needsAnimating: t }, r) {
3247
3247
  const n = e.hasOwnProperty(r) && t[r] !== !0;
3248
3248
  return t[r] = !1, n;
3249
3249
  }
@@ -3253,7 +3253,7 @@ function Ks(e, t, { delay: r = 0, transitionOverride: n, type: s } = {}) {
3253
3253
  const l = [], c = s && e.animationState && e.animationState.getState()[s];
3254
3254
  for (const d in i) {
3255
3255
  const u = e.getValue(d, e.latestValues[d] ?? null), f = i[d];
3256
- if (f === void 0 || c && kh(c, d))
3256
+ if (f === void 0 || c && k0(c, d))
3257
3257
  continue;
3258
3258
  const p = {
3259
3259
  delay: r,
@@ -3289,7 +3289,7 @@ function Hn(e, t, r = {}) {
3289
3289
  r.transitionOverride && (s = r.transitionOverride);
3290
3290
  const a = n ? () => Promise.all(Ks(e, n, r)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (l = 0) => {
3291
3291
  const { delayChildren: c = 0, staggerChildren: d, staggerDirection: u } = s;
3292
- return Ch(e, t, l, c, d, u, r);
3292
+ return C0(e, t, l, c, d, u, r);
3293
3293
  } : () => Promise.resolve(), { when: i } = s;
3294
3294
  if (i) {
3295
3295
  const [l, c] = i === "beforeChildren" ? [a, o] : [o, a];
@@ -3297,7 +3297,7 @@ function Hn(e, t, r = {}) {
3297
3297
  } else
3298
3298
  return Promise.all([a(), o(r.delay)]);
3299
3299
  }
3300
- function Ch(e, t, r = 0, n = 0, s = 0, a = 1, o) {
3300
+ function C0(e, t, r = 0, n = 0, s = 0, a = 1, o) {
3301
3301
  const i = [];
3302
3302
  for (const l of e.variantChildren)
3303
3303
  l.notify("AnimationStart", t), i.push(Hn(l, t, {
@@ -3333,7 +3333,7 @@ function Al(e, t) {
3333
3333
  return !1;
3334
3334
  return !0;
3335
3335
  }
3336
- const Th = js.length;
3336
+ const T0 = js.length;
3337
3337
  function Vl(e) {
3338
3338
  if (!e)
3339
3339
  return;
@@ -3342,18 +3342,18 @@ function Vl(e) {
3342
3342
  return e.props.initial !== void 0 && (r.initial = e.props.initial), r;
3343
3343
  }
3344
3344
  const t = {};
3345
- for (let r = 0; r < Th; r++) {
3345
+ for (let r = 0; r < T0; r++) {
3346
3346
  const n = js[r], s = e.props[n];
3347
3347
  (lr(s) || s === !1) && (t[n] = s);
3348
3348
  }
3349
3349
  return t;
3350
3350
  }
3351
- const Sh = [...Rs].reverse(), Ah = Rs.length;
3352
- function Vh(e) {
3351
+ const S0 = [...Rs].reverse(), A0 = Rs.length;
3352
+ function V0(e) {
3353
3353
  return (t) => Promise.all(t.map(({ animation: r, options: n }) => Sl(e, r, n)));
3354
3354
  }
3355
- function Ph(e) {
3356
- let t = Vh(e), r = Wa(), n = !0;
3355
+ function P0(e) {
3356
+ let t = V0(e), r = Wa(), n = !0;
3357
3357
  const s = (l) => (c, d) => {
3358
3358
  const u = Lt(e, d, l === "exit" ? e.presenceContext?.custom : void 0);
3359
3359
  if (u) {
@@ -3368,8 +3368,8 @@ function Ph(e) {
3368
3368
  function o(l) {
3369
3369
  const { props: c } = e, d = Vl(e.parent) || {}, u = [], f = /* @__PURE__ */ new Set();
3370
3370
  let p = {}, m = 1 / 0;
3371
- for (let y = 0; y < Ah; y++) {
3372
- const g = Sh[y], b = r[g], x = c[g] !== void 0 ? c[g] : d[g], w = lr(x), C = g === l ? b.isActive : null;
3371
+ for (let y = 0; y < A0; y++) {
3372
+ const g = S0[y], b = r[g], x = c[g] !== void 0 ? c[g] : d[g], w = lr(x), C = g === l ? b.isActive : null;
3373
3373
  C === !1 && (m = y);
3374
3374
  let T = x === d[g] && x !== c[g] && w;
3375
3375
  if (T && n && e.manuallyAnimateOnMount && (T = !1), b.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
@@ -3377,7 +3377,7 @@ function Ph(e) {
3377
3377
  !x && !b.prevProp || // Or if the prop doesn't define an animation
3378
3378
  rn(x) || typeof x == "boolean")
3379
3379
  continue;
3380
- const S = Mh(b.prevProp, x);
3380
+ const S = M0(b.prevProp, x);
3381
3381
  let k = S || // If we're making this variant active, we want to always make it active
3382
3382
  g === l && b.isActive && !T && w || // If we removed a higher-priority variant (i is in reverse order)
3383
3383
  y > m && w, P = !1;
@@ -3449,7 +3449,7 @@ function Ph(e) {
3449
3449
  }
3450
3450
  };
3451
3451
  }
3452
- function Mh(e, t) {
3452
+ function M0(e, t) {
3453
3453
  return typeof t == "string" ? t !== e : Array.isArray(t) ? !Al(t, e) : !1;
3454
3454
  }
3455
3455
  function gt(e = !1) {
@@ -3478,14 +3478,14 @@ class ft {
3478
3478
  update() {
3479
3479
  }
3480
3480
  }
3481
- class Eh extends ft {
3481
+ class E0 extends ft {
3482
3482
  /**
3483
3483
  * We dynamically generate the AnimationState manager as it contains a reference
3484
3484
  * to the underlying animation library. We only want to load that if we load this,
3485
3485
  * so people can optionally code split it out using the `m` component.
3486
3486
  */
3487
3487
  constructor(t) {
3488
- super(t), t.animationState || (t.animationState = Ph(t));
3488
+ super(t), t.animationState || (t.animationState = P0(t));
3489
3489
  }
3490
3490
  updateAnimationControlsSubscription() {
3491
3491
  const { animate: t } = this.node.getProps();
@@ -3505,10 +3505,10 @@ class Eh extends ft {
3505
3505
  this.node.animationState.reset(), this.unmountControls?.();
3506
3506
  }
3507
3507
  }
3508
- let Ih = 0;
3509
- class Nh extends ft {
3508
+ let I0 = 0;
3509
+ class N0 extends ft {
3510
3510
  constructor() {
3511
- super(...arguments), this.id = Ih++;
3511
+ super(...arguments), this.id = I0++;
3512
3512
  }
3513
3513
  update() {
3514
3514
  if (!this.node.presenceContext)
@@ -3528,12 +3528,12 @@ class Nh extends ft {
3528
3528
  unmount() {
3529
3529
  }
3530
3530
  }
3531
- const Dh = {
3531
+ const D0 = {
3532
3532
  animation: {
3533
- Feature: Eh
3533
+ Feature: E0
3534
3534
  },
3535
3535
  exit: {
3536
- Feature: Nh
3536
+ Feature: N0
3537
3537
  }
3538
3538
  };
3539
3539
  function ur(e, t, r, n = { passive: !0 }) {
@@ -3547,19 +3547,19 @@ function yr(e) {
3547
3547
  }
3548
3548
  };
3549
3549
  }
3550
- const Bh = (e) => (t) => Ls(t) && e(t, yr(t));
3550
+ const B0 = (e) => (t) => Ls(t) && e(t, yr(t));
3551
3551
  function tr(e, t, r, n) {
3552
- return ur(e, t, Bh(r), n);
3552
+ return ur(e, t, B0(r), n);
3553
3553
  }
3554
- const Pl = 1e-4, Lh = 1 - Pl, Rh = 1 + Pl, Ml = 0.01, jh = 0 - Ml, Oh = 0 + Ml;
3554
+ const Pl = 1e-4, L0 = 1 - Pl, R0 = 1 + Pl, Ml = 0.01, j0 = 0 - Ml, O0 = 0 + Ml;
3555
3555
  function Me(e) {
3556
3556
  return e.max - e.min;
3557
3557
  }
3558
- function $h(e, t, r) {
3558
+ function $0(e, t, r) {
3559
3559
  return Math.abs(e - t) <= r;
3560
3560
  }
3561
3561
  function _a(e, t, r, n = 0.5) {
3562
- e.origin = n, e.originPoint = he(t.min, t.max, e.origin), e.scale = Me(r) / Me(t), e.translate = he(r.min, r.max, e.origin) - e.originPoint, (e.scale >= Lh && e.scale <= Rh || isNaN(e.scale)) && (e.scale = 1), (e.translate >= jh && e.translate <= Oh || isNaN(e.translate)) && (e.translate = 0);
3562
+ e.origin = n, e.originPoint = he(t.min, t.max, e.origin), e.scale = Me(r) / Me(t), e.translate = he(r.min, r.max, e.origin) - e.originPoint, (e.scale >= L0 && e.scale <= R0 || isNaN(e.scale)) && (e.scale = 1), (e.translate >= j0 && e.translate <= O0 || isNaN(e.translate)) && (e.translate = 0);
3563
3563
  }
3564
3564
  function rr(e, t, r, n) {
3565
3565
  _a(e.x, t.x, r.x, n ? n.originX : void 0), _a(e.y, t.y, r.y, n ? n.originY : void 0);
@@ -3567,7 +3567,7 @@ function rr(e, t, r, n) {
3567
3567
  function Ga(e, t, r) {
3568
3568
  e.min = r.min + t.min, e.max = e.min + Me(t);
3569
3569
  }
3570
- function zh(e, t, r) {
3570
+ function z0(e, t, r) {
3571
3571
  Ga(e.x, t.x, r.x), Ga(e.y, t.y, r.y);
3572
3572
  }
3573
3573
  function Ua(e, t, r) {
@@ -3580,7 +3580,7 @@ function ze(e) {
3580
3580
  return [e("x"), e("y")];
3581
3581
  }
3582
3582
  const El = ({ current: e }) => e ? e.ownerDocument.defaultView : null, Ka = (e, t) => Math.abs(e - t);
3583
- function Fh(e, t) {
3583
+ function F0(e, t) {
3584
3584
  const r = Ka(e.x, t.x), n = Ka(e.y, t.y);
3585
3585
  return Math.sqrt(r ** 2 + n ** 2);
3586
3586
  }
@@ -3589,7 +3589,7 @@ class Il {
3589
3589
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
3590
3590
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
3591
3591
  return;
3592
- const f = yn(this.lastMoveEventInfo, this.history), p = this.startEvent !== null, m = Fh(f.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
3592
+ const f = yn(this.lastMoveEventInfo, this.history), p = this.startEvent !== null, m = F0(f.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
3593
3593
  if (!p && !m)
3594
3594
  return;
3595
3595
  const { point: v } = f, { timestamp: y } = ke;
@@ -3630,17 +3630,17 @@ function yn({ point: e }, t) {
3630
3630
  return {
3631
3631
  point: e,
3632
3632
  delta: Ha(e, Nl(t)),
3633
- offset: Ha(e, Wh(t)),
3634
- velocity: _h(t, 0.1)
3633
+ offset: Ha(e, W0(t)),
3634
+ velocity: _0(t, 0.1)
3635
3635
  };
3636
3636
  }
3637
- function Wh(e) {
3637
+ function W0(e) {
3638
3638
  return e[0];
3639
3639
  }
3640
3640
  function Nl(e) {
3641
3641
  return e[e.length - 1];
3642
3642
  }
3643
- function _h(e, t) {
3643
+ function _0(e, t) {
3644
3644
  if (e.length < 2)
3645
3645
  return { x: 0, y: 0 };
3646
3646
  let r = e.length - 1, n = null;
@@ -3658,7 +3658,7 @@ function _h(e, t) {
3658
3658
  };
3659
3659
  return o.x === 1 / 0 && (o.x = 0), o.y === 1 / 0 && (o.y = 0), o;
3660
3660
  }
3661
- function Gh(e, { min: t, max: r }, n) {
3661
+ function G0(e, { min: t, max: r }, n) {
3662
3662
  return t !== void 0 && e < t ? e = n ? he(t, e, n.min) : Math.max(e, t) : r !== void 0 && e > r && (e = n ? he(r, e, n.max) : Math.min(e, r)), e;
3663
3663
  }
3664
3664
  function Xa(e, t, r) {
@@ -3667,7 +3667,7 @@ function Xa(e, t, r) {
3667
3667
  max: r !== void 0 ? e.max + r - (e.max - e.min) : void 0
3668
3668
  };
3669
3669
  }
3670
- function Uh(e, { top: t, left: r, bottom: n, right: s }) {
3670
+ function U0(e, { top: t, left: r, bottom: n, right: s }) {
3671
3671
  return {
3672
3672
  x: Xa(e.x, r, s),
3673
3673
  y: Xa(e.y, t, n)
@@ -3677,23 +3677,23 @@ function Ya(e, t) {
3677
3677
  let r = t.min - e.min, n = t.max - e.max;
3678
3678
  return t.max - t.min < e.max - e.min && ([r, n] = [n, r]), { min: r, max: n };
3679
3679
  }
3680
- function Kh(e, t) {
3680
+ function K0(e, t) {
3681
3681
  return {
3682
3682
  x: Ya(e.x, t.x),
3683
3683
  y: Ya(e.y, t.y)
3684
3684
  };
3685
3685
  }
3686
- function Hh(e, t) {
3686
+ function H0(e, t) {
3687
3687
  let r = 0.5;
3688
3688
  const n = Me(e), s = Me(t);
3689
3689
  return s > n ? r = /* @__PURE__ */ Ct(t.min, t.max - n, e.min) : n > s && (r = /* @__PURE__ */ Ct(e.min, e.max - s, t.min)), Ze(0, 1, r);
3690
3690
  }
3691
- function Xh(e, t) {
3691
+ function X0(e, t) {
3692
3692
  const r = {};
3693
3693
  return t.min !== void 0 && (r.min = t.min - e.min), t.max !== void 0 && (r.max = t.max - e.min), r;
3694
3694
  }
3695
3695
  const Xn = 0.35;
3696
- function Yh(e = Xn) {
3696
+ function Y0(e = Xn) {
3697
3697
  return e === !1 ? e = 0 : e === !0 && (e = Xn), {
3698
3698
  x: qa(e, "left", "right"),
3699
3699
  y: qa(e, "top", "bottom")
@@ -3708,8 +3708,8 @@ function qa(e, t, r) {
3708
3708
  function Za(e, t) {
3709
3709
  return typeof e == "number" ? e : e[t] || 0;
3710
3710
  }
3711
- const qh = /* @__PURE__ */ new WeakMap();
3712
- class Zh {
3711
+ const q0 = /* @__PURE__ */ new WeakMap();
3712
+ class Z0 {
3713
3713
  constructor(t) {
3714
3714
  this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = ge(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = t;
3715
3715
  }
@@ -3744,7 +3744,7 @@ class Zh {
3744
3744
  return;
3745
3745
  const { offset: g } = f;
3746
3746
  if (m && this.currentDirection === null) {
3747
- this.currentDirection = Jh(g), this.currentDirection !== null && v && v(this.currentDirection);
3747
+ this.currentDirection = J0(g), this.currentDirection !== null && v && v(this.currentDirection);
3748
3748
  return;
3749
3749
  }
3750
3750
  this.updateAxis("x", f.point, g), this.updateAxis("y", f.point, g), this.visualElement.render(), y && y(u, f);
@@ -3792,12 +3792,12 @@ class Zh {
3792
3792
  return;
3793
3793
  const a = this.getAxisMotionValue(t);
3794
3794
  let o = this.originPoint[t] + n[t];
3795
- this.constraints && this.constraints[t] && (o = Gh(o, this.constraints[t], this.elastic[t])), a.set(o);
3795
+ this.constraints && this.constraints[t] && (o = G0(o, this.constraints[t], this.elastic[t])), a.set(o);
3796
3796
  }
3797
3797
  resolveConstraints() {
3798
3798
  const { dragConstraints: t, dragElastic: r } = this.getProps(), n = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, s = this.constraints;
3799
- t && It(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && n ? this.constraints = Uh(n.layoutBox, t) : this.constraints = !1, this.elastic = Yh(r), s !== this.constraints && n && this.constraints && !this.hasMutatedConstraints && ze((a) => {
3800
- this.constraints !== !1 && this.getAxisMotionValue(a) && (this.constraints[a] = Xh(n.layoutBox[a], this.constraints[a]));
3799
+ t && It(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && n ? this.constraints = U0(n.layoutBox, t) : this.constraints = !1, this.elastic = Y0(r), s !== this.constraints && n && this.constraints && !this.hasMutatedConstraints && ze((a) => {
3800
+ this.constraints !== !1 && this.getAxisMotionValue(a) && (this.constraints[a] = X0(n.layoutBox[a], this.constraints[a]));
3801
3801
  });
3802
3802
  }
3803
3803
  resolveRefConstraints() {
@@ -3809,10 +3809,10 @@ class Zh {
3809
3809
  const { projection: s } = this.visualElement;
3810
3810
  if (!s || !s.layout)
3811
3811
  return !1;
3812
- const a = ah(n, s.root, this.visualElement.getTransformPagePoint());
3813
- let o = Kh(s.layout.layoutBox, a);
3812
+ const a = a0(n, s.root, this.visualElement.getTransformPagePoint());
3813
+ let o = K0(s.layout.layoutBox, a);
3814
3814
  if (r) {
3815
- const i = r(rh(o));
3815
+ const i = r(r0(o));
3816
3816
  this.hasMutatedConstraints = !!i, i && (o = fl(i));
3817
3817
  }
3818
3818
  return o;
@@ -3890,7 +3890,7 @@ class Zh {
3890
3890
  const i = this.getAxisMotionValue(o);
3891
3891
  if (i && this.constraints !== !1) {
3892
3892
  const l = i.get();
3893
- s[o] = Hh({ min: l, max: l }, this.constraints[o]);
3893
+ s[o] = H0({ min: l, max: l }, this.constraints[o]);
3894
3894
  }
3895
3895
  });
3896
3896
  const { transformTemplate: a } = this.visualElement.getProps();
@@ -3904,7 +3904,7 @@ class Zh {
3904
3904
  addListeners() {
3905
3905
  if (!this.visualElement.current)
3906
3906
  return;
3907
- qh.set(this.visualElement, this);
3907
+ q0.set(this.visualElement, this);
3908
3908
  const t = this.visualElement.current, r = tr(t, "pointerdown", (l) => {
3909
3909
  const { drag: c, dragListener: d = !0 } = this.getProps();
3910
3910
  c && d && this.start(l);
@@ -3939,13 +3939,13 @@ class Zh {
3939
3939
  function Ar(e, t, r) {
3940
3940
  return (t === !0 || t === e) && (r === null || r === e);
3941
3941
  }
3942
- function Jh(e, t = 10) {
3942
+ function J0(e, t = 10) {
3943
3943
  let r = null;
3944
3944
  return Math.abs(e.y) > t ? r = "y" : Math.abs(e.x) > t && (r = "x"), r;
3945
3945
  }
3946
- class Qh extends ft {
3946
+ class Q0 extends ft {
3947
3947
  constructor(t) {
3948
- super(t), this.removeGroupControls = Ne, this.removeListeners = Ne, this.controls = new Zh(t);
3948
+ super(t), this.removeGroupControls = Ne, this.removeListeners = Ne, this.controls = new Z0(t);
3949
3949
  }
3950
3950
  mount() {
3951
3951
  const { dragControls: t } = this.node.getProps();
@@ -3958,7 +3958,7 @@ class Qh extends ft {
3958
3958
  const Ja = (e) => (t, r) => {
3959
3959
  e && le.postRender(() => e(t, r));
3960
3960
  };
3961
- class e0 extends ft {
3961
+ class eh extends ft {
3962
3962
  constructor() {
3963
3963
  super(...arguments), this.removePointerDownListener = Ne;
3964
3964
  }
@@ -4016,7 +4016,7 @@ const Xt = {
4016
4016
  const r = Qa(e, t.target.x), n = Qa(e, t.target.y);
4017
4017
  return `${r}% ${n}%`;
4018
4018
  }
4019
- }, t0 = {
4019
+ }, th = {
4020
4020
  correct: (e, { treeScale: t, projectionDelta: r }) => {
4021
4021
  const n = e, s = ut.parse(e);
4022
4022
  if (s.length > 5)
@@ -4028,7 +4028,7 @@ const Xt = {
4028
4028
  }
4029
4029
  };
4030
4030
  let vn = !1;
4031
- class r0 extends ud {
4031
+ class rh extends ud {
4032
4032
  /**
4033
4033
  * This only mounts projection nodes for components that
4034
4034
  * need measuring, we might want to do it for all components
@@ -4036,7 +4036,7 @@ class r0 extends ud {
4036
4036
  */
4037
4037
  componentDidMount() {
4038
4038
  const { visualElement: t, layoutGroup: r, switchLayoutGroup: n, layoutId: s } = this.props, { projection: a } = t;
4039
- Ef(n0), a && (r.group && r.group.add(a), n && n.register && s && n.register(a), vn && a.root.didUpdate(), a.addEventListener("animationComplete", () => {
4039
+ Ef(nh), a && (r.group && r.group.add(a), n && n.register && s && n.register(a), vn && a.root.didUpdate(), a.addEventListener("animationComplete", () => {
4040
4040
  this.safeToRemove();
4041
4041
  }), a.setOptions({
4042
4042
  ...a.options,
@@ -4070,9 +4070,9 @@ class r0 extends ud {
4070
4070
  }
4071
4071
  function Dl(e) {
4072
4072
  const [t, r] = Ji(), n = ce(us);
4073
- return h(r0, { ...e, layoutGroup: n, switchLayoutGroup: ce(dl), isPresent: t, safeToRemove: r });
4073
+ return h(rh, { ...e, layoutGroup: n, switchLayoutGroup: ce(dl), isPresent: t, safeToRemove: r });
4074
4074
  }
4075
- const n0 = {
4075
+ const nh = {
4076
4076
  borderRadius: {
4077
4077
  ...Xt,
4078
4078
  applyTo: [
@@ -4086,14 +4086,14 @@ const n0 = {
4086
4086
  borderTopRightRadius: Xt,
4087
4087
  borderBottomLeftRadius: Xt,
4088
4088
  borderBottomRightRadius: Xt,
4089
- boxShadow: t0
4089
+ boxShadow: th
4090
4090
  };
4091
4091
  function Bl(e, t, r) {
4092
4092
  const n = ve(e) ? e : Ue(e);
4093
4093
  return n.start(Us("", n, t, r)), n.animation;
4094
4094
  }
4095
- const s0 = (e, t) => e.depth - t.depth;
4096
- class a0 {
4095
+ const sh = (e, t) => e.depth - t.depth;
4096
+ class ah {
4097
4097
  constructor() {
4098
4098
  this.children = [], this.isDirty = !1;
4099
4099
  }
@@ -4104,20 +4104,20 @@ class a0 {
4104
4104
  qr(this.children, t), this.isDirty = !0;
4105
4105
  }
4106
4106
  forEach(t) {
4107
- this.isDirty && this.children.sort(s0), this.isDirty = !1, this.children.forEach(t);
4107
+ this.isDirty && this.children.sort(sh), this.isDirty = !1, this.children.forEach(t);
4108
4108
  }
4109
4109
  }
4110
- function o0(e, t) {
4110
+ function oh(e, t) {
4111
4111
  const r = Ie.now(), n = ({ timestamp: s }) => {
4112
4112
  const a = s - r;
4113
4113
  a >= t && (Ke(n), e(a - t));
4114
4114
  };
4115
4115
  return le.setup(n, !0), () => Ke(n);
4116
4116
  }
4117
- const Ll = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], i0 = Ll.length, eo = (e) => typeof e == "string" ? parseFloat(e) : e, to = (e) => typeof e == "number" || Q.test(e);
4118
- function l0(e, t, r, n, s, a) {
4119
- s ? (e.opacity = he(0, r.opacity ?? 1, c0(n)), e.opacityExit = he(t.opacity ?? 1, 0, d0(n))) : a && (e.opacity = he(t.opacity ?? 1, r.opacity ?? 1, n));
4120
- for (let o = 0; o < i0; o++) {
4117
+ const Ll = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], ih = Ll.length, eo = (e) => typeof e == "string" ? parseFloat(e) : e, to = (e) => typeof e == "number" || Q.test(e);
4118
+ function lh(e, t, r, n, s, a) {
4119
+ s ? (e.opacity = he(0, r.opacity ?? 1, ch(n)), e.opacityExit = he(t.opacity ?? 1, 0, dh(n))) : a && (e.opacity = he(t.opacity ?? 1, r.opacity ?? 1, n));
4120
+ for (let o = 0; o < ih; o++) {
4121
4121
  const i = `border${Ll[o]}Radius`;
4122
4122
  let l = ro(t, i), c = ro(r, i);
4123
4123
  if (l === void 0 && c === void 0)
@@ -4129,7 +4129,7 @@ function l0(e, t, r, n, s, a) {
4129
4129
  function ro(e, t) {
4130
4130
  return e[t] !== void 0 ? e[t] : e.borderRadius;
4131
4131
  }
4132
- const c0 = /* @__PURE__ */ Rl(0, 0.5, hi), d0 = /* @__PURE__ */ Rl(0.5, 0.95, Ne);
4132
+ const ch = /* @__PURE__ */ Rl(0, 0.5, hi), dh = /* @__PURE__ */ Rl(0.5, 0.95, Ne);
4133
4133
  function Rl(e, t, r) {
4134
4134
  return (n) => n < e ? 0 : n > t ? 1 : r(/* @__PURE__ */ Ct(e, t, n));
4135
4135
  }
@@ -4145,18 +4145,18 @@ function so(e, t) {
4145
4145
  function ao(e, t, r, n, s) {
4146
4146
  return e -= t, e = Gr(e, 1 / r, n), s !== void 0 && (e = Gr(e, 1 / s, n)), e;
4147
4147
  }
4148
- function u0(e, t = 0, r = 1, n = 0.5, s, a = e, o = e) {
4148
+ function uh(e, t = 0, r = 1, n = 0.5, s, a = e, o = e) {
4149
4149
  if (qe.test(t) && (t = parseFloat(t), t = he(o.min, o.max, t / 100) - o.min), typeof t != "number")
4150
4150
  return;
4151
4151
  let i = he(a.min, a.max, n);
4152
4152
  e === a && (i -= t), e.min = ao(e.min, t, r, i, s), e.max = ao(e.max, t, r, i, s);
4153
4153
  }
4154
4154
  function oo(e, t, [r, n, s], a, o) {
4155
- u0(e, t[r], t[n], t[s], t.scale, a, o);
4155
+ uh(e, t[r], t[n], t[s], t.scale, a, o);
4156
4156
  }
4157
- const f0 = ["x", "scaleX", "originX"], h0 = ["y", "scaleY", "originY"];
4157
+ const fh = ["x", "scaleX", "originX"], hh = ["y", "scaleY", "originY"];
4158
4158
  function io(e, t, r, n) {
4159
- oo(e.x, t, f0, r ? r.x : void 0, n ? n.x : void 0), oo(e.y, t, h0, r ? r.y : void 0, n ? n.y : void 0);
4159
+ oo(e.x, t, fh, r ? r.x : void 0, n ? n.x : void 0), oo(e.y, t, hh, r ? r.y : void 0, n ? n.y : void 0);
4160
4160
  }
4161
4161
  function lo(e) {
4162
4162
  return e.translate === 0 && e.scale === 1;
@@ -4167,7 +4167,7 @@ function jl(e) {
4167
4167
  function co(e, t) {
4168
4168
  return e.min === t.min && e.max === t.max;
4169
4169
  }
4170
- function p0(e, t) {
4170
+ function ph(e, t) {
4171
4171
  return co(e.x, t.x) && co(e.y, t.y);
4172
4172
  }
4173
4173
  function uo(e, t) {
@@ -4182,7 +4182,7 @@ function fo(e) {
4182
4182
  function ho(e, t) {
4183
4183
  return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
4184
4184
  }
4185
- class m0 {
4185
+ class mh {
4186
4186
  constructor() {
4187
4187
  this.members = [];
4188
4188
  }
@@ -4236,7 +4236,7 @@ class m0 {
4236
4236
  this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
4237
4237
  }
4238
4238
  }
4239
- function g0(e, t, r) {
4239
+ function gh(e, t, r) {
4240
4240
  let n = "";
4241
4241
  const s = e.x.translate / t.x, a = e.y.translate / t.y, o = r?.z || 0;
4242
4242
  if ((s || a || o) && (n = `translate3d(${s}px, ${a}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (n += `scale(${1 / t.x}, ${1 / t.y}) `), r) {
@@ -4246,8 +4246,8 @@ function g0(e, t, r) {
4246
4246
  const i = e.x.scale * t.x, l = e.y.scale * t.y;
4247
4247
  return (i !== 1 || l !== 1) && (n += `scale(${i}, ${l})`), n || "none";
4248
4248
  }
4249
- const xn = ["", "X", "Y", "Z"], b0 = 1e3;
4250
- let y0 = 0;
4249
+ const xn = ["", "X", "Y", "Z"], bh = 1e3;
4250
+ let yh = 0;
4251
4251
  function wn(e, t, r, n) {
4252
4252
  const { latestValues: s } = t;
4253
4253
  s[e] && (r[e] = s[e], t.setStaticValue(e, 0), n && (n[e] = 0));
@@ -4269,14 +4269,14 @@ function $l(e) {
4269
4269
  function zl({ attachResizeListener: e, defaultParent: t, measureScroll: r, checkIsScrollRoot: n, resetTransform: s }) {
4270
4270
  return class {
4271
4271
  constructor(o = {}, i = t?.()) {
4272
- this.id = y0++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
4272
+ this.id = yh++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
4273
4273
  this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
4274
4274
  }, this.updateProjection = () => {
4275
- this.projectionUpdateScheduled = !1, this.nodes.forEach(w0), this.nodes.forEach(S0), this.nodes.forEach(A0), this.nodes.forEach(k0);
4275
+ this.projectionUpdateScheduled = !1, this.nodes.forEach(wh), this.nodes.forEach(Sh), this.nodes.forEach(Ah), this.nodes.forEach(kh);
4276
4276
  }, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = o, this.root = i ? i.root || i : this, this.path = i ? [...i.path, i] : [], this.parent = i, this.depth = i ? i.depth + 1 : 0;
4277
4277
  for (let l = 0; l < this.path.length; l++)
4278
4278
  this.path[l].shouldResetTransform = !0;
4279
- this.root === this && (this.nodes = new a0());
4279
+ this.root === this && (this.nodes = new ah());
4280
4280
  }
4281
4281
  addEventListener(o, i) {
4282
4282
  return this.eventHandlers.has(o) || this.eventHandlers.set(o, new ms()), this.eventHandlers.get(o).add(i);
@@ -4303,7 +4303,7 @@ function zl({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
4303
4303
  u = window.innerWidth;
4304
4304
  }), e(o, () => {
4305
4305
  const p = window.innerWidth;
4306
- p !== u && (u = p, this.root.updateBlockedByResize = !0, d && d(), d = o0(f, 250), zr.hasAnimatedSinceResize && (zr.hasAnimatedSinceResize = !1, this.nodes.forEach(go)));
4306
+ p !== u && (u = p, this.root.updateBlockedByResize = !0, d && d(), d = oh(f, 250), zr.hasAnimatedSinceResize && (zr.hasAnimatedSinceResize = !1, this.nodes.forEach(go)));
4307
4307
  });
4308
4308
  }
4309
4309
  i && this.root.registerSharedNode(i, this), this.options.animate !== !1 && c && (i || l) && this.addEventListener("didUpdate", ({ delta: d, hasLayoutChanged: u, hasRelativeLayoutChanged: f, layout: p }) => {
@@ -4311,7 +4311,7 @@ function zl({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
4311
4311
  this.target = void 0, this.relativeTarget = void 0;
4312
4312
  return;
4313
4313
  }
4314
- const m = this.options.transition || c.getDefaultTransition() || I0, { onLayoutAnimationStart: v, onLayoutAnimationComplete: y } = c.getProps(), g = !this.targetLayout || !Ol(this.targetLayout, p), b = !u && f;
4314
+ const m = this.options.transition || c.getDefaultTransition() || Ih, { onLayoutAnimationStart: v, onLayoutAnimationComplete: y } = c.getProps(), g = !this.targetLayout || !Ol(this.targetLayout, p), b = !u && f;
4315
4315
  if (this.options.layoutRoot || this.resumeFrom || b || u && (g || !this.currentAnimation)) {
4316
4316
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
4317
4317
  const x = {
@@ -4345,7 +4345,7 @@ function zl({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
4345
4345
  }
4346
4346
  // Note: currently only running on root node
4347
4347
  startUpdate() {
4348
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(V0), this.animationId++);
4348
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Vh), this.animationId++);
4349
4349
  }
4350
4350
  getTransformTemplate() {
4351
4351
  const { visualElement: o } = this.options;
@@ -4378,7 +4378,7 @@ function zl({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
4378
4378
  this.nodes.forEach(mo);
4379
4379
  return;
4380
4380
  }
4381
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(T0), this.nodes.forEach(v0), this.nodes.forEach(x0)) : this.nodes.forEach(mo), this.clearAllSnapshots();
4381
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Th), this.nodes.forEach(vh), this.nodes.forEach(xh)) : this.nodes.forEach(mo), this.clearAllSnapshots();
4382
4382
  const i = Ie.now();
4383
4383
  ke.delta = Ze(0, 1e3 / 60, i - ke.timestamp), ke.timestamp = i, ke.isProcessing = !0, cn.update.process(ke), cn.preRender.process(ke), cn.render.process(ke), ke.isProcessing = !1;
4384
4384
  }
@@ -4386,7 +4386,7 @@ function zl({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
4386
4386
  this.updateScheduled || (this.updateScheduled = !0, Bs.read(this.scheduleUpdate));
4387
4387
  }
4388
4388
  clearAllSnapshots() {
4389
- this.nodes.forEach(C0), this.sharedNodes.forEach(P0);
4389
+ this.nodes.forEach(Ch), this.sharedNodes.forEach(Ph);
4390
4390
  }
4391
4391
  scheduleUpdateProjection() {
4392
4392
  this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, le.preRender(this.updateProjection, !1, !0));
@@ -4435,7 +4435,7 @@ function zl({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
4435
4435
  measure(o = !0) {
4436
4436
  const i = this.measurePageBox();
4437
4437
  let l = this.removeElementScroll(i);
4438
- return o && (l = this.removeTransform(l)), N0(l), {
4438
+ return o && (l = this.removeTransform(l)), Nh(l), {
4439
4439
  animationId: this.root.animationId,
4440
4440
  measuredBox: i,
4441
4441
  layoutBox: l,
@@ -4448,7 +4448,7 @@ function zl({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
4448
4448
  if (!o)
4449
4449
  return ge();
4450
4450
  const i = o.measureViewportBox();
4451
- if (!(this.scroll?.wasRoot || this.path.some(D0))) {
4451
+ if (!(this.scroll?.wasRoot || this.path.some(Dh))) {
4452
4452
  const { scroll: c } = this.root;
4453
4453
  c && (Nt(i.x, c.offset.x), Nt(i.y, c.offset.y));
4454
4454
  }
@@ -4517,7 +4517,7 @@ function zl({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
4517
4517
  const f = this.getClosestProjectingParent();
4518
4518
  f && f.layout && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ge(), this.relativeTargetOrigin = ge(), nr(this.relativeTargetOrigin, this.layout.layoutBox, f.layout.layoutBox), Oe(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4519
4519
  }
4520
- if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = ge(), this.targetWithTransforms = ge()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), zh(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Oe(this.target, this.layout.layoutBox), pl(this.target, this.targetDelta)) : Oe(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
4520
+ if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = ge(), this.targetWithTransforms = ge()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), z0(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Oe(this.target, this.layout.layoutBox), pl(this.target, this.targetDelta)) : Oe(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
4521
4521
  this.attemptToResolveRelativeTarget = !1;
4522
4522
  const f = this.getClosestProjectingParent();
4523
4523
  f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ge(), this.relativeTargetOrigin = ge(), nr(this.relativeTargetOrigin, this.target, f.target), Oe(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
@@ -4541,7 +4541,7 @@ function zl({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
4541
4541
  return;
4542
4542
  Oe(this.layoutCorrected, this.layout.layoutBox);
4543
4543
  const u = this.treeScale.x, f = this.treeScale.y;
4544
- sh(this.layoutCorrected, this.treeScale, this.path, i), o.layout && !o.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (o.target = o.layout.layoutBox, o.targetWithTransforms = ge());
4544
+ s0(this.layoutCorrected, this.treeScale, this.path, i), o.layout && !o.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (o.target = o.layout.layoutBox, o.targetWithTransforms = ge());
4545
4545
  const { target: p } = o;
4546
4546
  if (!p) {
4547
4547
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
@@ -4568,12 +4568,12 @@ function zl({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
4568
4568
  setAnimationOrigin(o, i = !1) {
4569
4569
  const l = this.snapshot, c = l ? l.latestValues : {}, d = { ...this.latestValues }, u = Bt();
4570
4570
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !i;
4571
- const f = ge(), p = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, v = p !== m, y = this.getStack(), g = !y || y.members.length <= 1, b = !!(v && !g && this.options.crossfade === !0 && !this.path.some(E0));
4571
+ const f = ge(), p = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, v = p !== m, y = this.getStack(), g = !y || y.members.length <= 1, b = !!(v && !g && this.options.crossfade === !0 && !this.path.some(Eh));
4572
4572
  this.animationProgress = 0;
4573
4573
  let x;
4574
4574
  this.mixTargetDelta = (w) => {
4575
4575
  const C = w / 1e3;
4576
- bo(u.x, o.x, C), bo(u.y, o.y, C), this.setTargetDelta(u), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (nr(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), M0(this.relativeTarget, this.relativeTargetOrigin, f, C), x && p0(this.relativeTarget, x) && (this.isProjectionDirty = !1), x || (x = ge()), Oe(x, this.relativeTarget)), v && (this.animationValues = d, l0(d, c, this.latestValues, C, b, g)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = C;
4576
+ bo(u.x, o.x, C), bo(u.y, o.y, C), this.setTargetDelta(u), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (nr(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Mh(this.relativeTarget, this.relativeTargetOrigin, f, C), x && ph(this.relativeTarget, x) && (this.isProjectionDirty = !1), x || (x = ge()), Oe(x, this.relativeTarget)), v && (this.animationValues = d, lh(d, c, this.latestValues, C, b, g)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = C;
4577
4577
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
4578
4578
  }
4579
4579
  startAnimation(o) {
@@ -4599,7 +4599,7 @@ function zl({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
4599
4599
  o && o.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
4600
4600
  }
4601
4601
  finishAnimation() {
4602
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(b0), this.currentAnimation.stop()), this.completeAnimation();
4602
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(bh), this.currentAnimation.stop()), this.completeAnimation();
4603
4603
  }
4604
4604
  applyTransformsToTarget() {
4605
4605
  const o = this.getLead();
@@ -4616,7 +4616,7 @@ function zl({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
4616
4616
  }
4617
4617
  }
4618
4618
  registerSharedNode(o, i) {
4619
- this.sharedNodes.has(o) || this.sharedNodes.set(o, new m0()), this.sharedNodes.get(o).add(i);
4619
+ this.sharedNodes.has(o) || this.sharedNodes.set(o, new mh()), this.sharedNodes.get(o).add(i);
4620
4620
  const c = i.options.initialPromotionConfig;
4621
4621
  i.promote({
4622
4622
  transition: c ? c.transition : void 0,
@@ -4685,7 +4685,7 @@ function zl({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
4685
4685
  o.visibility = "";
4686
4686
  const d = c.animationValues || c.latestValues;
4687
4687
  this.applyTransformsToTarget();
4688
- let u = g0(this.projectionDeltaWithTransform, this.treeScale, d);
4688
+ let u = gh(this.projectionDeltaWithTransform, this.treeScale, d);
4689
4689
  l && (u = l(d, u)), o.transform = u;
4690
4690
  const { x: f, y: p } = this.projectionDelta;
4691
4691
  o.transformOrigin = `${f.origin * 100}% ${p.origin * 100}% 0`, c.animationValues ? o.opacity = c === this ? d.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : d.opacityExit : o.opacity = c === this ? d.opacity !== void 0 ? d.opacity : "" : d.opacityExit !== void 0 ? d.opacityExit : 0;
@@ -4711,10 +4711,10 @@ function zl({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
4711
4711
  }
4712
4712
  };
4713
4713
  }
4714
- function v0(e) {
4714
+ function vh(e) {
4715
4715
  e.updateLayout();
4716
4716
  }
4717
- function x0(e) {
4717
+ function xh(e) {
4718
4718
  const t = e.resumeFrom?.snapshot || e.snapshot;
4719
4719
  if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
4720
4720
  const { layoutBox: r, measuredBox: n } = e.layout, { animationType: s } = e.options, a = t.source !== e.layout.source;
@@ -4757,13 +4757,13 @@ function x0(e) {
4757
4757
  }
4758
4758
  e.options.transition = void 0;
4759
4759
  }
4760
- function w0(e) {
4760
+ function wh(e) {
4761
4761
  e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty || (e.isSharedProjectionDirty = !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty)), e.isTransformDirty || (e.isTransformDirty = e.parent.isTransformDirty));
4762
4762
  }
4763
- function k0(e) {
4763
+ function kh(e) {
4764
4764
  e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
4765
4765
  }
4766
- function C0(e) {
4766
+ function Ch(e) {
4767
4767
  e.clearSnapshot();
4768
4768
  }
4769
4769
  function po(e) {
@@ -4772,23 +4772,23 @@ function po(e) {
4772
4772
  function mo(e) {
4773
4773
  e.isLayoutDirty = !1;
4774
4774
  }
4775
- function T0(e) {
4775
+ function Th(e) {
4776
4776
  const { visualElement: t } = e.options;
4777
4777
  t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
4778
4778
  }
4779
4779
  function go(e) {
4780
4780
  e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
4781
4781
  }
4782
- function S0(e) {
4782
+ function Sh(e) {
4783
4783
  e.resolveTargetDelta();
4784
4784
  }
4785
- function A0(e) {
4785
+ function Ah(e) {
4786
4786
  e.calcProjection();
4787
4787
  }
4788
- function V0(e) {
4788
+ function Vh(e) {
4789
4789
  e.resetSkewAndRotation();
4790
4790
  }
4791
- function P0(e) {
4791
+ function Ph(e) {
4792
4792
  e.removeLeadSnapshot();
4793
4793
  }
4794
4794
  function bo(e, t, r) {
@@ -4797,29 +4797,29 @@ function bo(e, t, r) {
4797
4797
  function yo(e, t, r, n) {
4798
4798
  e.min = he(t.min, r.min, n), e.max = he(t.max, r.max, n);
4799
4799
  }
4800
- function M0(e, t, r, n) {
4800
+ function Mh(e, t, r, n) {
4801
4801
  yo(e.x, t.x, r.x, n), yo(e.y, t.y, r.y, n);
4802
4802
  }
4803
- function E0(e) {
4803
+ function Eh(e) {
4804
4804
  return e.animationValues && e.animationValues.opacityExit !== void 0;
4805
4805
  }
4806
- const I0 = {
4806
+ const Ih = {
4807
4807
  duration: 0.45,
4808
4808
  ease: [0.4, 0, 0.1, 1]
4809
4809
  }, vo = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), xo = vo("applewebkit/") && !vo("chrome/") ? Math.round : Ne;
4810
4810
  function wo(e) {
4811
4811
  e.min = xo(e.min), e.max = xo(e.max);
4812
4812
  }
4813
- function N0(e) {
4813
+ function Nh(e) {
4814
4814
  wo(e.x), wo(e.y);
4815
4815
  }
4816
4816
  function Fl(e, t, r) {
4817
- return e === "position" || e === "preserve-aspect" && !$h(fo(t), fo(r), 0.2);
4817
+ return e === "position" || e === "preserve-aspect" && !$0(fo(t), fo(r), 0.2);
4818
4818
  }
4819
- function D0(e) {
4819
+ function Dh(e) {
4820
4820
  return e !== e.root && e.scroll?.wasRoot;
4821
4821
  }
4822
- const B0 = zl({
4822
+ const Bh = zl({
4823
4823
  attachResizeListener: (e, t) => ur(e, "resize", t),
4824
4824
  measureScroll: () => ({
4825
4825
  x: document.documentElement.scrollLeft || document.body.scrollLeft,
@@ -4835,7 +4835,7 @@ const B0 = zl({
4835
4835
  }),
4836
4836
  defaultParent: () => {
4837
4837
  if (!kn.current) {
4838
- const e = new B0({});
4838
+ const e = new Bh({});
4839
4839
  e.mount(window), e.setOptions({ layoutScroll: !0 }), kn.current = e;
4840
4840
  }
4841
4841
  return kn.current;
@@ -4844,12 +4844,12 @@ const B0 = zl({
4844
4844
  e.style.transform = t !== void 0 ? t : "none";
4845
4845
  },
4846
4846
  checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
4847
- }), L0 = {
4847
+ }), Lh = {
4848
4848
  pan: {
4849
- Feature: e0
4849
+ Feature: eh
4850
4850
  },
4851
4851
  drag: {
4852
- Feature: Qh,
4852
+ Feature: Q0,
4853
4853
  ProjectionNode: Wl,
4854
4854
  MeasureLayout: Dl
4855
4855
  }
@@ -4860,7 +4860,7 @@ function ko(e, t, r) {
4860
4860
  const s = "onHover" + r, a = n[s];
4861
4861
  a && le.postRender(() => a(t, yr(t)));
4862
4862
  }
4863
- class R0 extends ft {
4863
+ class Rh extends ft {
4864
4864
  mount() {
4865
4865
  const { current: t } = this.node;
4866
4866
  t && (this.unmount = Qu(t, (r, n) => (ko(this.node, n, "Start"), (s) => ko(this.node, s, "End"))));
@@ -4868,7 +4868,7 @@ class R0 extends ft {
4868
4868
  unmount() {
4869
4869
  }
4870
4870
  }
4871
- class j0 extends ft {
4871
+ class jh extends ft {
4872
4872
  constructor() {
4873
4873
  super(...arguments), this.isActive = !1;
4874
4874
  }
@@ -4898,7 +4898,7 @@ function Co(e, t, r) {
4898
4898
  const s = "onTap" + (r === "End" ? "" : r), a = n[s];
4899
4899
  a && le.postRender(() => a(t, yr(t)));
4900
4900
  }
4901
- class O0 extends ft {
4901
+ class Oh extends ft {
4902
4902
  mount() {
4903
4903
  const { current: t } = this.node;
4904
4904
  t && (this.unmount = nf(t, (r, n) => (Co(this.node, n, "Start"), (s, { success: a }) => Co(this.node, s, a ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
@@ -4906,29 +4906,29 @@ class O0 extends ft {
4906
4906
  unmount() {
4907
4907
  }
4908
4908
  }
4909
- const Yn = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakMap(), $0 = (e) => {
4909
+ const Yn = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakMap(), $h = (e) => {
4910
4910
  const t = Yn.get(e.target);
4911
4911
  t && t(e);
4912
- }, z0 = (e) => {
4913
- e.forEach($0);
4912
+ }, zh = (e) => {
4913
+ e.forEach($h);
4914
4914
  };
4915
- function F0({ root: e, ...t }) {
4915
+ function Fh({ root: e, ...t }) {
4916
4916
  const r = e || document;
4917
4917
  Cn.has(r) || Cn.set(r, {});
4918
4918
  const n = Cn.get(r), s = JSON.stringify(t);
4919
- return n[s] || (n[s] = new IntersectionObserver(z0, { root: e, ...t })), n[s];
4919
+ return n[s] || (n[s] = new IntersectionObserver(zh, { root: e, ...t })), n[s];
4920
4920
  }
4921
- function W0(e, t, r) {
4922
- const n = F0(t);
4921
+ function Wh(e, t, r) {
4922
+ const n = Fh(t);
4923
4923
  return Yn.set(e, r), n.observe(e), () => {
4924
4924
  Yn.delete(e), n.unobserve(e);
4925
4925
  };
4926
4926
  }
4927
- const _0 = {
4927
+ const _h = {
4928
4928
  some: 0,
4929
4929
  all: 1
4930
4930
  };
4931
- class G0 extends ft {
4931
+ class Gh extends ft {
4932
4932
  constructor() {
4933
4933
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
4934
4934
  }
@@ -4937,7 +4937,7 @@ class G0 extends ft {
4937
4937
  const { viewport: t = {} } = this.node.getProps(), { root: r, margin: n, amount: s = "some", once: a } = t, o = {
4938
4938
  root: r ? r.current : void 0,
4939
4939
  rootMargin: n,
4940
- threshold: typeof s == "number" ? s : _0[s]
4940
+ threshold: typeof s == "number" ? s : _h[s]
4941
4941
  }, i = (l) => {
4942
4942
  const { isIntersecting: c } = l;
4943
4943
  if (this.isInView === c || (this.isInView = c, a && !c && this.hasEnteredView))
@@ -4946,7 +4946,7 @@ class G0 extends ft {
4946
4946
  const { onViewportEnter: d, onViewportLeave: u } = this.node.getProps(), f = c ? d : u;
4947
4947
  f && f(l);
4948
4948
  };
4949
- return W0(this.node.current, o, i);
4949
+ return Wh(this.node.current, o, i);
4950
4950
  }
4951
4951
  mount() {
4952
4952
  this.startObserver();
@@ -4955,38 +4955,38 @@ class G0 extends ft {
4955
4955
  if (typeof IntersectionObserver > "u")
4956
4956
  return;
4957
4957
  const { props: t, prevProps: r } = this.node;
4958
- ["amount", "margin", "root"].some(U0(t, r)) && this.startObserver();
4958
+ ["amount", "margin", "root"].some(Uh(t, r)) && this.startObserver();
4959
4959
  }
4960
4960
  unmount() {
4961
4961
  }
4962
4962
  }
4963
- function U0({ viewport: e = {} }, { viewport: t = {} } = {}) {
4963
+ function Uh({ viewport: e = {} }, { viewport: t = {} } = {}) {
4964
4964
  return (r) => e[r] !== t[r];
4965
4965
  }
4966
- const K0 = {
4966
+ const Kh = {
4967
4967
  inView: {
4968
- Feature: G0
4968
+ Feature: Gh
4969
4969
  },
4970
4970
  tap: {
4971
- Feature: O0
4971
+ Feature: Oh
4972
4972
  },
4973
4973
  focus: {
4974
- Feature: j0
4974
+ Feature: jh
4975
4975
  },
4976
4976
  hover: {
4977
- Feature: R0
4977
+ Feature: Rh
4978
4978
  }
4979
- }, H0 = {
4979
+ }, Hh = {
4980
4980
  layout: {
4981
4981
  ProjectionNode: Wl,
4982
4982
  MeasureLayout: Dl
4983
4983
  }
4984
- }, X0 = {
4985
- ...Dh,
4986
- ...K0,
4987
- ...L0,
4988
- ...H0
4989
- }, K = /* @__PURE__ */ th(X0, dh), Y0 = 50, To = () => ({
4984
+ }, Xh = {
4985
+ ...D0,
4986
+ ...Kh,
4987
+ ...Lh,
4988
+ ...Hh
4989
+ }, K = /* @__PURE__ */ t0(Xh, d0), Yh = 50, To = () => ({
4990
4990
  current: 0,
4991
4991
  offset: [],
4992
4992
  progress: 0,
@@ -4995,11 +4995,11 @@ const K0 = {
4995
4995
  targetLength: 0,
4996
4996
  containerLength: 0,
4997
4997
  velocity: 0
4998
- }), q0 = () => ({
4998
+ }), qh = () => ({
4999
4999
  time: 0,
5000
5000
  x: To(),
5001
5001
  y: To()
5002
- }), Z0 = {
5002
+ }), Zh = {
5003
5003
  x: {
5004
5004
  length: "Width",
5005
5005
  position: "Left"
@@ -5010,15 +5010,15 @@ const K0 = {
5010
5010
  }
5011
5011
  };
5012
5012
  function So(e, t, r, n) {
5013
- const s = r[t], { length: a, position: o } = Z0[t], i = s.current, l = r.time;
5013
+ const s = r[t], { length: a, position: o } = Zh[t], i = s.current, l = r.time;
5014
5014
  s.current = e[`scroll${o}`], s.scrollLength = e[`scroll${a}`] - e[`client${a}`], s.offset.length = 0, s.offset[0] = 0, s.offset[1] = s.scrollLength, s.progress = /* @__PURE__ */ Ct(0, s.scrollLength, s.current);
5015
5015
  const c = n - l;
5016
- s.velocity = c > Y0 ? 0 : gs(s.current - i, c);
5016
+ s.velocity = c > Yh ? 0 : gs(s.current - i, c);
5017
5017
  }
5018
- function J0(e, t, r) {
5018
+ function Jh(e, t, r) {
5019
5019
  So(e, "x", t, r), So(e, "y", t, r), t.time = r;
5020
5020
  }
5021
- function Q0(e, t) {
5021
+ function Qh(e, t) {
5022
5022
  const r = { x: 0, y: 0 };
5023
5023
  let n = e;
5024
5024
  for (; n && n !== t; )
@@ -5068,7 +5068,7 @@ function sp(e) {
5068
5068
  return "getBBox" in e && e.tagName !== "svg" ? e.getBBox() : { width: e.clientWidth, height: e.clientHeight };
5069
5069
  }
5070
5070
  function ap(e, t, r) {
5071
- const { offset: n = rp.All } = r, { target: s = e, axis: a = "y" } = r, o = a === "y" ? "height" : "width", i = s !== e ? Q0(s, e) : np, l = s === e ? { width: e.scrollWidth, height: e.scrollHeight } : sp(s), c = {
5071
+ const { offset: n = rp.All } = r, { target: s = e, axis: a = "y" } = r, o = a === "y" ? "height" : "width", i = s !== e ? Qh(s, e) : np, l = s === e ? { width: e.scrollWidth, height: e.scrollHeight } : sp(s), c = {
5072
5072
  width: e.clientWidth,
5073
5073
  height: e.clientHeight
5074
5074
  };
@@ -5092,7 +5092,7 @@ function op(e, t = e, r) {
5092
5092
  function ip(e, t, r, n = {}) {
5093
5093
  return {
5094
5094
  measure: (s) => {
5095
- op(e, n.target, r), J0(e, r, s), (n.offset || n.target) && ap(e, r, n);
5095
+ op(e, n.target, r), Jh(e, r, s), (n.offset || n.target) && ap(e, r, n);
5096
5096
  },
5097
5097
  notify: () => t(r)
5098
5098
  };
@@ -5103,7 +5103,7 @@ function _l(e, { container: t = document.scrollingElement, ...r } = {}) {
5103
5103
  return Ne;
5104
5104
  let n = Tn.get(t);
5105
5105
  n || (n = /* @__PURE__ */ new Set(), Tn.set(t, n));
5106
- const s = q0(), a = ip(t, e, s, r);
5106
+ const s = qh(), a = ip(t, e, s, r);
5107
5107
  if (n.add(a), !Yt.has(t)) {
5108
5108
  const i = () => {
5109
5109
  for (const u of n)
@@ -10973,28 +10973,28 @@ const rg = J({
10973
10973
  // Color variants with background and text colors
10974
10974
  color: {
10975
10975
  default: [
10976
- "bg-default-100 text-default-foreground",
10977
- "focus:ring-default-500"
10976
+ "bg-gray-100 text-gray-900 dark:bg-gray-800 dark:text-gray-100",
10977
+ "focus:ring-gray-500"
10978
10978
  ],
10979
10979
  primary: [
10980
- "bg-primary-100 text-primary-foreground",
10981
- "focus:ring-primary-500"
10980
+ "bg-blue-100 text-blue-900 dark:bg-blue-900 dark:text-blue-100",
10981
+ "focus:ring-blue-500"
10982
10982
  ],
10983
10983
  secondary: [
10984
- "bg-secondary-100 text-secondary-foreground",
10985
- "focus:ring-secondary-500"
10984
+ "bg-purple-100 text-purple-900 dark:bg-purple-900 dark:text-purple-100",
10985
+ "focus:ring-purple-500"
10986
10986
  ],
10987
10987
  success: [
10988
- "bg-success-100 text-success-foreground",
10989
- "focus:ring-success-500"
10988
+ "bg-green-100 text-green-900 dark:bg-green-900 dark:text-green-100",
10989
+ "focus:ring-green-500"
10990
10990
  ],
10991
10991
  warning: [
10992
- "bg-warning-100 text-warning-foreground",
10993
- "focus:ring-warning-500"
10992
+ "bg-yellow-100 text-yellow-900 dark:bg-yellow-900 dark:text-yellow-100",
10993
+ "focus:ring-yellow-500"
10994
10994
  ],
10995
10995
  danger: [
10996
- "bg-danger-100 text-danger-foreground",
10997
- "focus:ring-danger-500"
10996
+ "bg-red-100 text-red-900 dark:bg-red-900 dark:text-red-100",
10997
+ "focus:ring-red-500"
10998
10998
  ]
10999
10999
  },
11000
11000
  // Radius variants
@@ -11026,32 +11026,32 @@ const rg = J({
11026
11026
  {
11027
11027
  color: "default",
11028
11028
  isBordered: !0,
11029
- class: "ring-default-300 dark:ring-default-600"
11029
+ class: "ring-gray-300 dark:ring-gray-600"
11030
11030
  },
11031
11031
  {
11032
11032
  color: "primary",
11033
11033
  isBordered: !0,
11034
- class: "ring-primary-300 dark:ring-primary-600"
11034
+ class: "ring-blue-300 dark:ring-blue-600"
11035
11035
  },
11036
11036
  {
11037
11037
  color: "secondary",
11038
11038
  isBordered: !0,
11039
- class: "ring-secondary-300 dark:ring-secondary-600"
11039
+ class: "ring-purple-300 dark:ring-purple-600"
11040
11040
  },
11041
11041
  {
11042
11042
  color: "success",
11043
11043
  isBordered: !0,
11044
- class: "ring-success-300 dark:ring-success-600"
11044
+ class: "ring-green-300 dark:ring-green-600"
11045
11045
  },
11046
11046
  {
11047
11047
  color: "warning",
11048
11048
  isBordered: !0,
11049
- class: "ring-warning-300 dark:ring-warning-600"
11049
+ class: "ring-yellow-300 dark:ring-yellow-600"
11050
11050
  },
11051
11051
  {
11052
11052
  color: "danger",
11053
11053
  isBordered: !0,
11054
- class: "ring-danger-300 dark:ring-danger-600"
11054
+ class: "ring-red-300 dark:ring-red-600"
11055
11055
  },
11056
11056
  // Disabled state removes cursor pointer
11057
11057
  {
@@ -11081,7 +11081,7 @@ const rg = J({
11081
11081
  }), ag = J({
11082
11082
  base: [
11083
11083
  "font-medium uppercase select-none",
11084
- "text-inherit leading-none"
11084
+ "text-inherit flex items-center justify-center"
11085
11085
  ]
11086
11086
  }), og = J({
11087
11087
  base: [
@@ -11176,29 +11176,29 @@ const rg = J({
11176
11176
  return;
11177
11177
  }
11178
11178
  p(!1), v(!1);
11179
- const T = new Image();
11180
- return T.onload = () => {
11179
+ const k = new Image();
11180
+ return k.onload = () => {
11181
11181
  p(!0), v(!1);
11182
- }, T.onerror = () => {
11182
+ }, k.onerror = () => {
11183
11183
  p(!1), v(!0);
11184
- }, T.src = t, () => {
11185
- T.onload = null, T.onerror = null;
11184
+ }, k.src = t, () => {
11185
+ k.onload = null, k.onerror = null;
11186
11186
  };
11187
11187
  }, [t]);
11188
11188
  const y = G(() => r ? s(r) : "", [r, s]), g = G(() => !!(n && (!t || m) || r && !t || t && m), [n, t, m, r]), b = G(() => {
11189
11189
  if (!(!r || t))
11190
11190
  return hg(r);
11191
- }, [r, t]), x = G(() => ({
11191
+ }, [r, t]), x = _((k) => {
11192
+ p(!0), v(!1), o.onLoad?.(k);
11193
+ }, [o.onLoad]), w = _((k) => {
11194
+ p(!1), v(!0), o.onError?.(k);
11195
+ }, [o.onError]), C = G(() => ({
11192
11196
  ...o,
11193
11197
  src: t,
11194
11198
  alt: r || "Avatar",
11195
- onLoad: _((T) => {
11196
- p(!0), v(!1), o.onLoad?.(T);
11197
- }, [o]),
11198
- onError: _((T) => {
11199
- p(!1), v(!0), o.onError?.(T);
11200
- }, [o])
11201
- }), [o, t, r]), w = G(() => ({
11199
+ onLoad: x,
11200
+ onError: w
11201
+ }), [o, t, r, x, w]), T = G(() => ({
11202
11202
  ...u,
11203
11203
  className: c,
11204
11204
  "data-testid": d,
@@ -11228,7 +11228,7 @@ const rg = J({
11228
11228
  b,
11229
11229
  g,
11230
11230
  t
11231
- ]), C = G(() => ({
11231
+ ]), S = G(() => ({
11232
11232
  "aria-hidden": !0,
11233
11233
  style: {
11234
11234
  // Inherit background color from parent
@@ -11239,9 +11239,9 @@ const rg = J({
11239
11239
  isImgLoaded: f,
11240
11240
  shouldShowFallback: g,
11241
11241
  initials: y,
11242
- imgProps: x,
11243
- baseProps: w,
11244
- fallbackProps: C
11242
+ imgProps: C,
11243
+ baseProps: T,
11244
+ fallbackProps: S
11245
11245
  };
11246
11246
  }, gc = ({
11247
11247
  size: e = 24,