@cyca/react-timeline-editor 0.2.4-alpha.0 → 0.2.4-alpha.1

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.
@@ -1,12 +1,12 @@
1
- import * as g from "react";
2
- import qe, { useRef as ce, useEffect as Ct, useLayoutEffect as gn, useImperativeHandle as Zn, useState as Mt, useMemo as Tr, useCallback as Pr, createElement as Dr } from "react";
3
- import { D as En, a as Xt, b as Qn, c as Gt, d as Zt, M as Lr, P as fn, e as dn, f as hn, p as At, g as vn, h as Dt, i as Or, j as Rt, k as Mr, l as Nr, S as yn } from "./index-Do2XgyZc.js";
4
- import { flushSync as Ir } from "react-dom";
5
- var jt = { exports: {} }, Lt = {};
6
- var xn;
7
- function kr() {
8
- if (xn) return Lt;
9
- xn = 1;
1
+ import * as b from "react";
2
+ import Je, { useRef as ne, useEffect as Tt, useLayoutEffect as Nt, useImperativeHandle as Zn, useState as Mt, useMemo as Ar, useCallback as Pr, createElement as Dr, Activity as Lr } from "react";
3
+ import { D as En, a as Gt, b as Qn, c as Kt, d as Qt, M as Or, P as dn, e as hn, f as mn, p as Ye, g as vn, h as Dt, i as Mr, j as Ct, k as Nr, l as Ir, S as yn } from "./index-Do2XgyZc.js";
4
+ import { flushSync as kr } from "react-dom";
5
+ var Ft = { exports: {} }, Lt = {};
6
+ var Rn;
7
+ function Wr() {
8
+ if (Rn) return Lt;
9
+ Rn = 1;
10
10
  var n = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
11
11
  function t(r, s, o) {
12
12
  var i = null;
@@ -26,47 +26,47 @@ function kr() {
26
26
  return Lt.Fragment = e, Lt.jsx = t, Lt.jsxs = t, Lt;
27
27
  }
28
28
  var Ot = {};
29
- var Rn;
30
- function Wr() {
31
- return Rn || (Rn = 1, process.env.NODE_ENV !== "production" && (function() {
29
+ var xn;
30
+ function zr() {
31
+ return xn || (xn = 1, process.env.NODE_ENV !== "production" && (function() {
32
32
  function n(f) {
33
33
  if (f == null) return null;
34
34
  if (typeof f == "function")
35
- return f.$$typeof === z ? null : f.displayName || f.name || null;
35
+ return f.$$typeof === F ? null : f.displayName || f.name || null;
36
36
  if (typeof f == "string") return f;
37
37
  switch (f) {
38
- case p:
38
+ case _:
39
39
  return "Fragment";
40
- case b:
40
+ case g:
41
41
  return "Profiler";
42
- case R:
42
+ case p:
43
43
  return "StrictMode";
44
- case T:
44
+ case y:
45
45
  return "Suspense";
46
- case D:
46
+ case A:
47
47
  return "SuspenseList";
48
- case W:
48
+ case j:
49
49
  return "Activity";
50
50
  }
51
51
  if (typeof f == "object")
52
52
  switch (typeof f.tag == "number" && console.error(
53
53
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
54
54
  ), f.$$typeof) {
55
- case v:
55
+ case S:
56
56
  return "Portal";
57
- case _:
57
+ case w:
58
58
  return f.displayName || "Context";
59
- case S:
59
+ case v:
60
60
  return (f._context.displayName || "Context") + ".Consumer";
61
- case P:
62
- var y = f.render;
63
- return f = f.displayName, f || (f = y.displayName || y.name || "", f = f !== "" ? "ForwardRef(" + f + ")" : "ForwardRef"), f;
64
- case U:
65
- return y = f.displayName || null, y !== null ? y : n(f.type) || "Memo";
61
+ case T:
62
+ var x = f.render;
63
+ return f = f.displayName, f || (f = x.displayName || x.name || "", f = f !== "" ? "ForwardRef(" + f + ")" : "ForwardRef"), f;
64
+ case z:
65
+ return x = f.displayName || null, x !== null ? x : n(f.type) || "Memo";
66
66
  case O:
67
- y = f._payload, f = f._init;
67
+ x = f._payload, f = f._init;
68
68
  try {
69
- return n(f(y));
69
+ return n(f(x));
70
70
  } catch {
71
71
  }
72
72
  }
@@ -78,72 +78,72 @@ function Wr() {
78
78
  function t(f) {
79
79
  try {
80
80
  e(f);
81
- var y = !1;
81
+ var x = !1;
82
82
  } catch {
83
- y = !0;
83
+ x = !0;
84
84
  }
85
- if (y) {
86
- y = console;
87
- var N = y.error, H = typeof Symbol == "function" && Symbol.toStringTag && f[Symbol.toStringTag] || f.constructor.name || "Object";
88
- return N.call(
89
- y,
85
+ if (x) {
86
+ x = console;
87
+ var D = x.error, W = typeof Symbol == "function" && Symbol.toStringTag && f[Symbol.toStringTag] || f.constructor.name || "Object";
88
+ return D.call(
89
+ x,
90
90
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
91
- H
91
+ W
92
92
  ), e(f);
93
93
  }
94
94
  }
95
95
  function r(f) {
96
- if (f === p) return "<>";
96
+ if (f === _) return "<>";
97
97
  if (typeof f == "object" && f !== null && f.$$typeof === O)
98
98
  return "<...>";
99
99
  try {
100
- var y = n(f);
101
- return y ? "<" + y + ">" : "<...>";
100
+ var x = n(f);
101
+ return x ? "<" + x + ">" : "<...>";
102
102
  } catch {
103
103
  return "<...>";
104
104
  }
105
105
  }
106
106
  function s() {
107
- var f = Y.A;
107
+ var f = q.A;
108
108
  return f === null ? null : f.getOwner();
109
109
  }
110
110
  function o() {
111
111
  return Error("react-stack-top-frame");
112
112
  }
113
113
  function i(f) {
114
- if (C.call(f, "key")) {
115
- var y = Object.getOwnPropertyDescriptor(f, "key").get;
116
- if (y && y.isReactWarning) return !1;
114
+ if (V.call(f, "key")) {
115
+ var x = Object.getOwnPropertyDescriptor(f, "key").get;
116
+ if (x && x.isReactWarning) return !1;
117
117
  }
118
118
  return f.key !== void 0;
119
119
  }
120
- function c(f, y) {
121
- function N() {
122
- E || (E = !0, console.error(
120
+ function c(f, x) {
121
+ function D() {
122
+ C || (C = !0, console.error(
123
123
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
124
- y
124
+ x
125
125
  ));
126
126
  }
127
- N.isReactWarning = !0, Object.defineProperty(f, "key", {
128
- get: N,
127
+ D.isReactWarning = !0, Object.defineProperty(f, "key", {
128
+ get: D,
129
129
  configurable: !0
130
130
  });
131
131
  }
132
132
  function a() {
133
133
  var f = n(this.type);
134
- return A[f] || (A[f] = !0, console.error(
134
+ return M[f] || (M[f] = !0, console.error(
135
135
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
136
136
  )), f = this.props.ref, f !== void 0 ? f : null;
137
137
  }
138
- function u(f, y, N, H, Q, X) {
139
- var B = N.ref;
138
+ function u(f, x, D, W, Z, H) {
139
+ var $ = D.ref;
140
140
  return f = {
141
- $$typeof: w,
141
+ $$typeof: E,
142
142
  type: f,
143
- key: y,
144
- props: N,
145
- _owner: H
146
- }, (B !== void 0 ? B : null) !== null ? Object.defineProperty(f, "ref", {
143
+ key: x,
144
+ props: D,
145
+ _owner: W
146
+ }, ($ !== void 0 ? $ : null) !== null ? Object.defineProperty(f, "ref", {
147
147
  enumerable: !1,
148
148
  get: a
149
149
  }) : Object.defineProperty(f, "ref", { enumerable: !1, value: null }), f._store = {}, Object.defineProperty(f._store, "validated", {
@@ -160,69 +160,69 @@ function Wr() {
160
160
  configurable: !1,
161
161
  enumerable: !1,
162
162
  writable: !0,
163
- value: Q
163
+ value: Z
164
164
  }), Object.defineProperty(f, "_debugTask", {
165
165
  configurable: !1,
166
166
  enumerable: !1,
167
167
  writable: !0,
168
- value: X
168
+ value: H
169
169
  }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
170
170
  }
171
- function l(f, y, N, H, Q, X) {
172
- var B = y.children;
173
- if (B !== void 0)
174
- if (H)
175
- if (j(B)) {
176
- for (H = 0; H < B.length; H++)
177
- h(B[H]);
178
- Object.freeze && Object.freeze(B);
171
+ function l(f, x, D, W, Z, H) {
172
+ var $ = x.children;
173
+ if ($ !== void 0)
174
+ if (W)
175
+ if (J($)) {
176
+ for (W = 0; W < $.length; W++)
177
+ h($[W]);
178
+ Object.freeze && Object.freeze($);
179
179
  } else
180
180
  console.error(
181
181
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
182
182
  );
183
- else h(B);
184
- if (C.call(y, "key")) {
185
- B = n(f);
186
- var L = Object.keys(y).filter(function($) {
187
- return $ !== "key";
183
+ else h($);
184
+ if (V.call(x, "key")) {
185
+ $ = n(f);
186
+ var P = Object.keys(x).filter(function(k) {
187
+ return k !== "key";
188
188
  });
189
- H = 0 < L.length ? "{key: someKey, " + L.join(": ..., ") + ": ...}" : "{key: someKey}", ee[B + H] || (L = 0 < L.length ? "{" + L.join(": ..., ") + ": ...}" : "{}", console.error(
189
+ W = 0 < P.length ? "{key: someKey, " + P.join(": ..., ") + ": ...}" : "{key: someKey}", re[$ + W] || (P = 0 < P.length ? "{" + P.join(": ..., ") + ": ...}" : "{}", console.error(
190
190
  `A props object containing a "key" prop is being spread into JSX:
191
191
  let props = %s;
192
192
  <%s {...props} />
193
193
  React keys must be passed directly to JSX without using spread:
194
194
  let props = %s;
195
195
  <%s key={someKey} {...props} />`,
196
- H,
197
- B,
198
- L,
199
- B
200
- ), ee[B + H] = !0);
196
+ W,
197
+ $,
198
+ P,
199
+ $
200
+ ), re[$ + W] = !0);
201
201
  }
202
- if (B = null, N !== void 0 && (t(N), B = "" + N), i(y) && (t(y.key), B = "" + y.key), "key" in y) {
203
- N = {};
204
- for (var k in y)
205
- k !== "key" && (N[k] = y[k]);
206
- } else N = y;
207
- return B && c(
208
- N,
202
+ if ($ = null, D !== void 0 && (t(D), $ = "" + D), i(x) && (t(x.key), $ = "" + x.key), "key" in x) {
203
+ D = {};
204
+ for (var L in x)
205
+ L !== "key" && (D[L] = x[L]);
206
+ } else D = x;
207
+ return $ && c(
208
+ D,
209
209
  typeof f == "function" ? f.displayName || f.name || "Unknown" : f
210
210
  ), u(
211
211
  f,
212
- B,
213
- N,
212
+ $,
213
+ D,
214
214
  s(),
215
- Q,
216
- X
215
+ Z,
216
+ H
217
217
  );
218
218
  }
219
219
  function h(f) {
220
220
  d(f) ? f._store && (f._store.validated = 1) : typeof f == "object" && f !== null && f.$$typeof === O && (f._payload.status === "fulfilled" ? d(f._payload.value) && f._payload.value._store && (f._payload.value._store.validated = 1) : f._store && (f._store.validated = 1));
221
221
  }
222
222
  function d(f) {
223
- return typeof f == "object" && f !== null && f.$$typeof === w;
223
+ return typeof f == "object" && f !== null && f.$$typeof === E;
224
224
  }
225
- var m = qe, w = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), P = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), U = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), z = Symbol.for("react.client.reference"), Y = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, C = Object.prototype.hasOwnProperty, j = Array.isArray, I = console.createTask ? console.createTask : function() {
225
+ var m = Je, E = Symbol.for("react.transitional.element"), S = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), v = Symbol.for("react.consumer"), w = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), A = Symbol.for("react.suspense_list"), z = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), j = Symbol.for("react.activity"), F = Symbol.for("react.client.reference"), q = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, V = Object.prototype.hasOwnProperty, J = Array.isArray, U = console.createTask ? console.createTask : function() {
226
226
  return null;
227
227
  };
228
228
  m = {
@@ -230,53 +230,53 @@ React keys must be passed directly to JSX without using spread:
230
230
  return f();
231
231
  }
232
232
  };
233
- var E, A = {}, M = m.react_stack_bottom_frame.bind(
233
+ var C, M = {}, G = m.react_stack_bottom_frame.bind(
234
234
  m,
235
235
  o
236
- )(), Z = I(r(o)), ee = {};
237
- Ot.Fragment = p, Ot.jsx = function(f, y, N) {
238
- var H = 1e4 > Y.recentlyCreatedOwnerStacks++;
236
+ )(), ee = U(r(o)), re = {};
237
+ Ot.Fragment = _, Ot.jsx = function(f, x, D) {
238
+ var W = 1e4 > q.recentlyCreatedOwnerStacks++;
239
239
  return l(
240
240
  f,
241
- y,
242
- N,
241
+ x,
242
+ D,
243
243
  !1,
244
- H ? Error("react-stack-top-frame") : M,
245
- H ? I(r(f)) : Z
244
+ W ? Error("react-stack-top-frame") : G,
245
+ W ? U(r(f)) : ee
246
246
  );
247
- }, Ot.jsxs = function(f, y, N) {
248
- var H = 1e4 > Y.recentlyCreatedOwnerStacks++;
247
+ }, Ot.jsxs = function(f, x, D) {
248
+ var W = 1e4 > q.recentlyCreatedOwnerStacks++;
249
249
  return l(
250
250
  f,
251
- y,
252
- N,
251
+ x,
252
+ D,
253
253
  !0,
254
- H ? Error("react-stack-top-frame") : M,
255
- H ? I(r(f)) : Z
254
+ W ? Error("react-stack-top-frame") : G,
255
+ W ? U(r(f)) : ee
256
256
  );
257
257
  };
258
258
  })()), Ot;
259
259
  }
260
260
  var Cn;
261
- function zr() {
262
- return Cn || (Cn = 1, process.env.NODE_ENV === "production" ? jt.exports = kr() : jt.exports = Wr()), jt.exports;
261
+ function jr() {
262
+ return Cn || (Cn = 1, process.env.NODE_ENV === "production" ? Ft.exports = Wr() : Ft.exports = zr()), Ft.exports;
263
263
  }
264
- var x = zr();
265
- const rn = {
264
+ var R = jr();
265
+ const sn = {
266
266
  trace: 0,
267
267
  debug: 1,
268
268
  info: 2,
269
269
  warn: 3,
270
270
  error: 4,
271
271
  silent: 5
272
- }, jr = [
272
+ }, Fr = [
273
273
  "trace",
274
274
  "debug",
275
275
  "info",
276
276
  "warn",
277
277
  "error"
278
278
  ];
279
- var Fr = class er {
279
+ var Vr = class er {
280
280
  s;
281
281
  ls = /* @__PURE__ */ new Map();
282
282
  lvl;
@@ -296,10 +296,10 @@ var Fr = class er {
296
296
  noop = () => {
297
297
  };
298
298
  bindMethods() {
299
- jr.forEach((e) => {
299
+ Fr.forEach((e) => {
300
300
  const t = this.e.bind(this.c, e, this.n);
301
301
  Object.defineProperty(this, e, {
302
- get: () => rn[e] >= rn[this.currentLevel()] ? t : this.noop,
302
+ get: () => sn[e] >= sn[this.currentLevel()] ? t : this.noop,
303
303
  configurable: !0
304
304
  });
305
305
  });
@@ -310,7 +310,7 @@ var Fr = class er {
310
310
  currentLevel() {
311
311
  if (this.lvl) return this.lvl;
312
312
  const e = this.s.get(this.storageKey());
313
- return e && e in rn ? (this.lvl = e, this.lvl) : this.def ? this.def : this.r ? this.r.currentLevel() : "trace";
313
+ return e && e in sn ? (this.lvl = e, this.lvl) : this.def ? this.def : this.r ? this.r.currentLevel() : "trace";
314
314
  }
315
315
  setLevel(e) {
316
316
  return this.lvl = e, this.s.set(this.storageKey(), e), this;
@@ -346,7 +346,7 @@ function tr(n) {
346
346
  return typeof s == "function" ? s.bind(e.c) : s;
347
347
  } });
348
348
  }
349
- var Vr = class {
349
+ var Ur = class {
350
350
  get(n) {
351
351
  return localStorage.getItem(n);
352
352
  }
@@ -357,13 +357,13 @@ var Vr = class {
357
357
  localStorage.removeItem(n);
358
358
  }
359
359
  };
360
- const Ur = {
360
+ const $r = {
361
361
  trace: "#95bdb7",
362
362
  debug: "#ad95b8",
363
363
  info: "#b6bd73",
364
364
  warn: "#88a1bb",
365
365
  error: "#bf6c69"
366
- }, An = {
366
+ }, Tn = {
367
367
  info: "⚡️",
368
368
  success: "✔",
369
369
  warn: "▲",
@@ -371,23 +371,23 @@ const Ur = {
371
371
  log: "●",
372
372
  trace: "◔",
373
373
  debug: "◌"
374
- }, $r = { bind(n, e, t) {
375
- const r = t ? `${An[e]} ${String(t)}:` : `${An[e]}`;
376
- return (n[e] || n.log).bind(n, `%c${r}%c`, `color: ${Ur[e]}; font-weight: bold;`, "color: inherit");
377
- } }, Ge = tr(new Fr(new Vr(), $r));
378
- function Hr(n) {
374
+ }, Hr = { bind(n, e, t) {
375
+ const r = t ? `${Tn[e]} ${String(t)}:` : `${Tn[e]}`;
376
+ return (n[e] || n.log).bind(n, `%c${r}%c`, `color: ${$r[e]}; font-weight: bold;`, "color: inherit");
377
+ } }, Ke = tr(new Vr(new Ur(), Hr));
378
+ function Br(n) {
379
379
  let {
380
380
  editorData: e = [],
381
381
  effects: t = {},
382
- scale: r = Xt,
382
+ scale: r = Gt,
383
383
  scaleSplitCount: s = Qn,
384
- scaleWidth: o = Gt,
385
- startLeft: i = Zt,
384
+ scaleWidth: o = Kt,
385
+ startLeft: i = Qt,
386
386
  minScaleCount: c,
387
387
  maxScaleCount: a = 1 / 0,
388
388
  rowHeight: u = En
389
389
  } = n;
390
- r <= 0 && (Ge.error("Error: scale must be greater than 0!"), r = Xt), s <= 0 && (Ge.warn("Warning: scaleSplitCount cannot be less than 1!"), s = 1), o <= 0 && (Ge.warn("Warning: scaleWidth must be greater than 0!"), o = Gt), i < 0 && (Ge.warn("Warning: startLeft cannot be less than 0!"), i = 0), c && typeof c == "number" && (c < 1 && (Ge.warn("Warning: minScaleCount must be greater than 1!"), c = Lr), c = parseInt(c + ""), a < c && (Ge.warn("Warning: maxScaleCount cannot be less than minScaleCount!"), a = c)), a = a === 1 / 0 ? 1 / 0 : parseInt(a + ""), u <= 0 && (Ge.warn("Warning: rowHeight must be greater than 0!"), u = En);
390
+ r <= 0 && (Ke.error("Error: scale must be greater than 0!"), r = Gt), s <= 0 && (Ke.warn("Warning: scaleSplitCount cannot be less than 1!"), s = 1), o <= 0 && (Ke.warn("Warning: scaleWidth must be greater than 0!"), o = Kt), i < 0 && (Ke.warn("Warning: startLeft cannot be less than 0!"), i = 0), c && typeof c == "number" && (c < 1 && (Ke.warn("Warning: minScaleCount must be greater than 1!"), c = Or), c = parseInt(c + ""), a < c && (Ke.warn("Warning: maxScaleCount cannot be less than minScaleCount!"), a = c)), a = a === 1 / 0 ? 1 / 0 : parseInt(a + ""), u <= 0 && (Ke.warn("Warning: rowHeight must be greater than 0!"), u = En);
391
391
  const l = {
392
392
  ...n
393
393
  };
@@ -404,22 +404,34 @@ function Hr(n) {
404
404
  rowHeight: u
405
405
  };
406
406
  }
407
- var Ft = { exports: {} }, sn = {};
408
- var Tn;
409
- function Br() {
410
- if (Tn) return sn;
411
- Tn = 1;
412
- var n = qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
413
- return sn.c = function(e) {
407
+ function Yr(n) {
408
+ for (var e = [], t = 1; t < arguments.length; t++)
409
+ e[t - 1] = arguments[t];
410
+ return e.map(function(r) {
411
+ return r.split(" ").map(function(s) {
412
+ return s ? "" + n + s : "";
413
+ }).join(" ");
414
+ }).join(" ");
415
+ }
416
+ function fe(...n) {
417
+ return Yr(`${dn}-`, ...n);
418
+ }
419
+ var Vt = { exports: {} }, on = {};
420
+ var An;
421
+ function Xr() {
422
+ if (An) return on;
423
+ An = 1;
424
+ var n = Je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
425
+ return on.c = function(e) {
414
426
  return n.H.useMemoCache(e);
415
- }, sn;
427
+ }, on;
416
428
  }
417
- var on = {};
429
+ var cn = {};
418
430
  var Pn;
419
- function Yr() {
431
+ function Gr() {
420
432
  return Pn || (Pn = 1, process.env.NODE_ENV !== "production" && (function() {
421
- var n = qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
422
- on.c = function(e) {
433
+ var n = Je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
434
+ cn.c = function(e) {
423
435
  var t = n.H;
424
436
  return t === null && console.error(
425
437
  `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
@@ -429,26 +441,14 @@ function Yr() {
429
441
  See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
430
442
  ), t.useMemoCache(e);
431
443
  };
432
- })()), on;
444
+ })()), cn;
433
445
  }
434
446
  var Dn;
435
- function Xr() {
436
- return Dn || (Dn = 1, process.env.NODE_ENV === "production" ? Ft.exports = Br() : Ft.exports = Yr()), Ft.exports;
447
+ function Kr() {
448
+ return Dn || (Dn = 1, process.env.NODE_ENV === "production" ? Vt.exports = Xr() : Vt.exports = Gr()), Vt.exports;
437
449
  }
438
- var Pe = Xr();
439
- function Gr(n) {
440
- for (var e = [], t = 1; t < arguments.length; t++)
441
- e[t - 1] = arguments[t];
442
- return e.map(function(r) {
443
- return r.split(" ").map(function(s) {
444
- return s ? "" + n + s : "";
445
- }).join(" ");
446
- }).join(" ");
447
- }
448
- function fe(...n) {
449
- return Gr(`${fn}-`, ...n);
450
- }
451
- const Kr = (n) => {
450
+ var Pe = Kr();
451
+ const qr = (n) => {
452
452
  const e = Pe.c(11), {
453
453
  isMoving: t,
454
454
  movePositions: r,
@@ -460,56 +460,56 @@ const Kr = (n) => {
460
460
  let u;
461
461
  e[5] !== s ? (u = s === void 0 ? [] : s, e[5] = s, e[6] = u) : u = e[6];
462
462
  const l = u;
463
- e[7] === Symbol.for("react.memo_cache_sentinel") ? (o = fe("snap-line-container"), e[7] = o) : o = e[7], i = t && a.filter((h) => l.includes(h)).map(qr), e[0] = t, e[1] = r, e[2] = s, e[3] = o, e[4] = i;
463
+ e[7] === Symbol.for("react.memo_cache_sentinel") ? (o = fe("snap-line-container"), e[7] = o) : o = e[7], i = t && a.filter((h) => l.includes(h)).map(Jr), e[0] = t, e[1] = r, e[2] = s, e[3] = o, e[4] = i;
464
464
  } else
465
465
  o = e[3], i = e[4];
466
466
  let c;
467
- return e[8] !== o || e[9] !== i ? (c = /* @__PURE__ */ x.jsx("div", { className: o, children: i }), e[8] = o, e[9] = i, e[10] = c) : c = e[10], c;
467
+ return e[8] !== o || e[9] !== i ? (c = /* @__PURE__ */ R.jsx("div", { className: o, children: i }), e[8] = o, e[9] = i, e[10] = c) : c = e[10], c;
468
468
  };
469
- function qr(n, e) {
470
- return /* @__PURE__ */ x.jsx("div", { className: fe("snap-line"), style: {
469
+ function Jr(n, e) {
470
+ return /* @__PURE__ */ R.jsx("div", { className: fe("snap-line"), style: {
471
471
  left: n
472
472
  } }, e);
473
473
  }
474
- const Vt = 1, Ln = 10, On = 10;
475
- function Jr(n) {
476
- const e = Pe.c(7), t = ce(Number.MIN_SAFE_INTEGER), r = ce(Number.MAX_SAFE_INTEGER), s = ce(Vt), o = ce(void 0);
474
+ const Ut = 1, Ln = 10, On = 10;
475
+ function Zr(n) {
476
+ const e = Pe.c(7), t = ne(Number.MIN_SAFE_INTEGER), r = ne(Number.MAX_SAFE_INTEGER), s = ne(Ut), o = ne(void 0);
477
477
  let i;
478
478
  e[0] !== n ? (i = () => {
479
479
  if (n?.current) {
480
480
  const {
481
- left: v,
482
- width: p
481
+ left: S,
482
+ width: _
483
483
  } = n.current.getBoundingClientRect();
484
- t.current = v, r.current = v + p;
484
+ t.current = S, r.current = S + _;
485
485
  }
486
486
  }, e[0] = n, e[1] = i) : i = e[1];
487
487
  const c = i;
488
488
  let a;
489
- e[2] === Symbol.for("react.memo_cache_sentinel") ? (a = (v, p) => {
490
- if (v.clientX >= r.current || v.clientX <= t.current) {
489
+ e[2] === Symbol.for("react.memo_cache_sentinel") ? (a = (S, _) => {
490
+ if (S.clientX >= r.current || S.clientX <= t.current) {
491
491
  o.current !== void 0 && cancelAnimationFrame(o.current);
492
- const R = Math.abs(v.clientX >= r.current ? v.clientX - r.current : v.clientX - t.current);
493
- s.current = Math.min(Number((R / On).toFixed(0)) * Vt, Ln);
494
- const S = (v.clientX >= r.current ? 1 : -1) * s.current, _ = () => {
495
- p && p(S), o.current = requestAnimationFrame(_);
492
+ const p = Math.abs(S.clientX >= r.current ? S.clientX - r.current : S.clientX - t.current);
493
+ s.current = Math.min(Number((p / On).toFixed(0)) * Ut, Ln);
494
+ const v = (S.clientX >= r.current ? 1 : -1) * s.current, w = () => {
495
+ _ && _(v), o.current = requestAnimationFrame(w);
496
496
  };
497
- return o.current = requestAnimationFrame(_), !1;
497
+ return o.current = requestAnimationFrame(w), !1;
498
498
  } else
499
499
  o.current !== void 0 && cancelAnimationFrame(o.current);
500
500
  return !0;
501
501
  }, e[2] = a) : a = e[2];
502
502
  const u = a;
503
503
  let l;
504
- e[3] === Symbol.for("react.memo_cache_sentinel") ? (l = (v, p, R) => {
505
- if (v.clientX >= r.current || v.clientX < t.current) {
504
+ e[3] === Symbol.for("react.memo_cache_sentinel") ? (l = (S, _, p) => {
505
+ if (S.clientX >= r.current || S.clientX < t.current) {
506
506
  o.current !== void 0 && cancelAnimationFrame(o.current);
507
- const b = Math.abs(v.clientX >= r.current ? v.clientX - r.current : v.clientX - t.current);
508
- s.current = Math.min(Number((b / On).toFixed(0)) * Vt, Ln);
509
- const _ = (v.clientX >= r.current ? 1 : -1) * s.current, P = () => {
510
- R && R(_), o.current = requestAnimationFrame(P);
507
+ const g = Math.abs(S.clientX >= r.current ? S.clientX - r.current : S.clientX - t.current);
508
+ s.current = Math.min(Number((g / On).toFixed(0)) * Ut, Ln);
509
+ const w = (S.clientX >= r.current ? 1 : -1) * s.current, T = () => {
510
+ p && p(w), o.current = requestAnimationFrame(T);
511
511
  };
512
- return o.current = requestAnimationFrame(P), !1;
512
+ return o.current = requestAnimationFrame(T), !1;
513
513
  } else
514
514
  o.current !== void 0 && cancelAnimationFrame(o.current);
515
515
  return !0;
@@ -517,18 +517,18 @@ function Jr(n) {
517
517
  const h = l;
518
518
  let d;
519
519
  e[4] === Symbol.for("react.memo_cache_sentinel") ? (d = () => {
520
- t.current = Number.MIN_SAFE_INTEGER, r.current = Number.MAX_SAFE_INTEGER, s.current = Vt, o.current !== void 0 && cancelAnimationFrame(o.current);
520
+ t.current = Number.MIN_SAFE_INTEGER, r.current = Number.MAX_SAFE_INTEGER, s.current = Ut, o.current !== void 0 && cancelAnimationFrame(o.current);
521
521
  }, e[4] = d) : d = e[4];
522
522
  const m = d;
523
- let w;
524
- return e[5] !== c ? (w = {
523
+ let E;
524
+ return e[5] !== c ? (E = {
525
525
  initAutoScroll: c,
526
526
  dealDragAutoScroll: u,
527
527
  dealResizeAutoScroll: h,
528
528
  stopAutoScroll: m
529
- }, e[5] = c, e[6] = w) : w = e[6], w;
529
+ }, e[5] = c, e[6] = E) : E = e[6], E;
530
530
  }
531
- function Zr(n, e, t) {
531
+ function Qr(n, e, t) {
532
532
  return Math.max(e, Math.min(n, t));
533
533
  }
534
534
  const de = {
@@ -552,13 +552,13 @@ function Mn(n, e, t) {
552
552
  return e === 0 || Math.abs(e) === 1 / 0 ? Math.pow(n, t * 5) : n * e * t / (e + t * n);
553
553
  }
554
554
  function Nn(n, e, t, r = 0.15) {
555
- return r === 0 ? Zr(n, e, t) : n < e ? -Mn(e - n, t - e, r) + e : n > t ? +Mn(n - t, t - e, r) + t : n;
555
+ return r === 0 ? Qr(n, e, t) : n < e ? -Mn(e - n, t - e, r) + e : n > t ? +Mn(n - t, t - e, r) + t : n;
556
556
  }
557
- function Qr(n, [e, t], [r, s]) {
557
+ function es(n, [e, t], [r, s]) {
558
558
  const [[o, i], [c, a]] = n;
559
559
  return [Nn(e, o, i, r), Nn(t, c, a, s)];
560
560
  }
561
- function es(n, e) {
561
+ function ts(n, e) {
562
562
  if (typeof n != "object" || n === null) return n;
563
563
  var t = n[Symbol.toPrimitive];
564
564
  if (t !== void 0) {
@@ -568,12 +568,12 @@ function es(n, e) {
568
568
  }
569
569
  return (e === "string" ? String : Number)(n);
570
570
  }
571
- function ts(n) {
572
- var e = es(n, "string");
571
+ function ns(n) {
572
+ var e = ts(n, "string");
573
573
  return typeof e == "symbol" ? e : String(e);
574
574
  }
575
575
  function Se(n, e, t) {
576
- return e = ts(e), e in n ? Object.defineProperty(n, e, {
576
+ return e = ns(e), e in n ? Object.defineProperty(n, e, {
577
577
  value: t,
578
578
  enumerable: !0,
579
579
  configurable: !0,
@@ -590,7 +590,7 @@ function In(n, e) {
590
590
  }
591
591
  return t;
592
592
  }
593
- function te(n) {
593
+ function Q(n) {
594
594
  for (var e = 1; e < arguments.length; e++) {
595
595
  var t = arguments[e] != null ? arguments[e] : {};
596
596
  e % 2 ? In(Object(t), !0).forEach(function(r) {
@@ -626,60 +626,60 @@ const nr = {
626
626
  function kn(n) {
627
627
  return n ? n[0].toUpperCase() + n.slice(1) : "";
628
628
  }
629
- const ns = ["enter", "leave"];
630
- function rs(n = !1, e) {
631
- return n && !ns.includes(e);
629
+ const rs = ["enter", "leave"];
630
+ function ss(n = !1, e) {
631
+ return n && !rs.includes(e);
632
632
  }
633
- function ss(n, e = "", t = !1) {
633
+ function os(n, e = "", t = !1) {
634
634
  const r = nr[n], s = r && r[e] || e;
635
- return "on" + kn(n) + kn(s) + (rs(t, s) ? "Capture" : "");
635
+ return "on" + kn(n) + kn(s) + (ss(t, s) ? "Capture" : "");
636
636
  }
637
- const os = ["gotpointercapture", "lostpointercapture"];
638
- function is(n) {
637
+ const is = ["gotpointercapture", "lostpointercapture"];
638
+ function cs(n) {
639
639
  let e = n.substring(2).toLowerCase();
640
640
  const t = !!~e.indexOf("passive");
641
641
  t && (e = e.replace("passive", ""));
642
- const r = os.includes(e) ? "capturecapture" : "capture", s = !!~e.indexOf(r);
642
+ const r = is.includes(e) ? "capturecapture" : "capture", s = !!~e.indexOf(r);
643
643
  return s && (e = e.replace("capture", "")), {
644
644
  device: e,
645
645
  capture: s,
646
646
  passive: t
647
647
  };
648
648
  }
649
- function cs(n, e = "") {
649
+ function as(n, e = "") {
650
650
  const t = nr[n], r = t && t[e] || e;
651
651
  return n + r;
652
652
  }
653
- function Qt(n) {
653
+ function en(n) {
654
654
  return "touches" in n;
655
655
  }
656
656
  function rr(n) {
657
- return Qt(n) ? "touch" : "pointerType" in n ? n.pointerType : "mouse";
657
+ return en(n) ? "touch" : "pointerType" in n ? n.pointerType : "mouse";
658
658
  }
659
- function as(n) {
659
+ function ls(n) {
660
660
  return Array.from(n.touches).filter((e) => {
661
661
  var t, r;
662
662
  return e.target === n.currentTarget || ((t = n.currentTarget) === null || t === void 0 || (r = t.contains) === null || r === void 0 ? void 0 : r.call(t, e.target));
663
663
  });
664
664
  }
665
- function ls(n) {
665
+ function us(n) {
666
666
  return n.type === "touchend" || n.type === "touchcancel" ? n.changedTouches : n.targetTouches;
667
667
  }
668
668
  function sr(n) {
669
- return Qt(n) ? ls(n)[0] : n;
669
+ return en(n) ? us(n)[0] : n;
670
670
  }
671
- function us(n) {
672
- return as(n).map((e) => e.identifier);
671
+ function fs(n) {
672
+ return ls(n).map((e) => e.identifier);
673
673
  }
674
- function cn(n) {
674
+ function an(n) {
675
675
  const e = sr(n);
676
- return Qt(n) ? e.identifier : e.pointerId;
676
+ return en(n) ? e.identifier : e.pointerId;
677
677
  }
678
678
  function Wn(n) {
679
679
  const e = sr(n);
680
680
  return [e.clientX, e.clientY];
681
681
  }
682
- function fs(n) {
682
+ function ds(n) {
683
683
  const e = {};
684
684
  if ("buttons" in n && (e.buttons = n.buttons), "shiftKey" in n) {
685
685
  const {
@@ -697,13 +697,13 @@ function fs(n) {
697
697
  }
698
698
  return e;
699
699
  }
700
- function Kt(n, ...e) {
700
+ function qt(n, ...e) {
701
701
  return typeof n == "function" ? n(...e) : n;
702
702
  }
703
- function ds() {
703
+ function hs() {
704
704
  }
705
- function hs(...n) {
706
- return n.length === 0 ? ds : n.length === 1 ? n[0] : function() {
705
+ function ms(...n) {
706
+ return n.length === 0 ? hs : n.length === 1 ? n[0] : function() {
707
707
  let e;
708
708
  for (const t of n)
709
709
  e = t.apply(this, arguments) || e;
@@ -713,8 +713,8 @@ function hs(...n) {
713
713
  function zn(n, e) {
714
714
  return Object.assign({}, e, n || {});
715
715
  }
716
- const ms = 32;
717
- class ps {
716
+ const ps = 32;
717
+ class gs {
718
718
  constructor(e, t, r) {
719
719
  this.ctrl = e, this.args = t, this.key = r, this.state || (this.state = {}, this.computeValues([0, 0]), this.computeInitial(), this.init && this.init(), this.reset());
720
720
  }
@@ -753,7 +753,7 @@ class ps {
753
753
  }
754
754
  start(e) {
755
755
  const t = this.state, r = this.config;
756
- t._active || (this.reset(), this.computeInitial(), t._active = !0, t.target = e.target, t.currentTarget = e.currentTarget, t.lastOffset = r.from ? Kt(r.from, t) : t.offset, t.offset = t.lastOffset, t.startTime = t.timeStamp = e.timeStamp);
756
+ t._active || (this.reset(), this.computeInitial(), t._active = !0, t.target = e.target, t.currentTarget = e.currentTarget, t.lastOffset = r.from ? qt(r.from, t) : t.offset, t.offset = t.lastOffset, t.startTime = t.timeStamp = e.timeStamp);
757
757
  }
758
758
  computeValues(e) {
759
759
  const t = this.state;
@@ -771,9 +771,9 @@ class ps {
771
771
  } = this;
772
772
  t.args = this.args;
773
773
  let o = 0;
774
- if (e && (t.event = e, r.preventDefault && e.cancelable && t.event.preventDefault(), t.type = e.type, s.touches = this.ctrl.pointerIds.size || this.ctrl.touchIds.size, s.locked = !!document.pointerLockElement, Object.assign(s, fs(e)), s.down = s.pressed = s.buttons % 2 === 1 || s.touches > 0, o = e.timeStamp - t.timeStamp, t.timeStamp = e.timeStamp, t.elapsedTime = t.timeStamp - t.startTime), t._active) {
775
- const T = t._delta.map(Math.abs);
776
- de.addTo(t._distance, T);
774
+ if (e && (t.event = e, r.preventDefault && e.cancelable && t.event.preventDefault(), t.type = e.type, s.touches = this.ctrl.pointerIds.size || this.ctrl.touchIds.size, s.locked = !!document.pointerLockElement, Object.assign(s, ds(e)), s.down = s.pressed = s.buttons % 2 === 1 || s.touches > 0, o = e.timeStamp - t.timeStamp, t.timeStamp = e.timeStamp, t.elapsedTime = t.timeStamp - t.startTime), t._active) {
775
+ const y = t._delta.map(Math.abs);
776
+ de.addTo(t._distance, y);
777
777
  }
778
778
  this.axisIntent && this.axisIntent(e);
779
779
  const [i, c] = t._movement, [a, u] = r.threshold, {
@@ -783,26 +783,26 @@ class ps {
783
783
  if (r.hasCustomTransform ? (l[0] === !1 && (l[0] = Math.abs(i) >= a && h[0]), l[1] === !1 && (l[1] = Math.abs(c) >= u && h[1])) : (l[0] === !1 && (l[0] = Math.abs(i) >= a && Math.sign(i) * a), l[1] === !1 && (l[1] = Math.abs(c) >= u && Math.sign(c) * u)), t.intentional = l[0] !== !1 || l[1] !== !1, !t.intentional) return;
784
784
  const d = [0, 0];
785
785
  if (r.hasCustomTransform) {
786
- const [T, D] = h;
787
- d[0] = l[0] !== !1 ? T - l[0] : 0, d[1] = l[1] !== !1 ? D - l[1] : 0;
786
+ const [y, A] = h;
787
+ d[0] = l[0] !== !1 ? y - l[0] : 0, d[1] = l[1] !== !1 ? A - l[1] : 0;
788
788
  } else
789
789
  d[0] = l[0] !== !1 ? i - l[0] : 0, d[1] = l[1] !== !1 ? c - l[1] : 0;
790
790
  this.restrictToAxis && !t._blocked && this.restrictToAxis(d);
791
- const m = t.offset, w = t._active && !t._blocked || t.active;
792
- w && (t.first = t._active && !t.active, t.last = !t._active && t.active, t.active = s[this.ingKey] = t._active, e && (t.first && ("bounds" in r && (t._bounds = Kt(r.bounds, t)), this.setup && this.setup()), t.movement = d, this.computeOffset()));
793
- const [v, p] = t.offset, [[R, b], [S, _]] = t._bounds;
794
- t.overflow = [v < R ? -1 : v > b ? 1 : 0, p < S ? -1 : p > _ ? 1 : 0], t._movementBound[0] = t.overflow[0] ? t._movementBound[0] === !1 ? t._movement[0] : t._movementBound[0] : !1, t._movementBound[1] = t.overflow[1] ? t._movementBound[1] === !1 ? t._movement[1] : t._movementBound[1] : !1;
795
- const P = t._active ? r.rubberband || [0, 0] : [0, 0];
796
- if (t.offset = Qr(t._bounds, t.offset, P), t.delta = de.sub(t.offset, m), this.computeMovement(), w && (!t.last || o > ms)) {
791
+ const m = t.offset, E = t._active && !t._blocked || t.active;
792
+ E && (t.first = t._active && !t.active, t.last = !t._active && t.active, t.active = s[this.ingKey] = t._active, e && (t.first && ("bounds" in r && (t._bounds = qt(r.bounds, t)), this.setup && this.setup()), t.movement = d, this.computeOffset()));
793
+ const [S, _] = t.offset, [[p, g], [v, w]] = t._bounds;
794
+ t.overflow = [S < p ? -1 : S > g ? 1 : 0, _ < v ? -1 : _ > w ? 1 : 0], t._movementBound[0] = t.overflow[0] ? t._movementBound[0] === !1 ? t._movement[0] : t._movementBound[0] : !1, t._movementBound[1] = t.overflow[1] ? t._movementBound[1] === !1 ? t._movement[1] : t._movementBound[1] : !1;
795
+ const T = t._active ? r.rubberband || [0, 0] : [0, 0];
796
+ if (t.offset = es(t._bounds, t.offset, T), t.delta = de.sub(t.offset, m), this.computeMovement(), E && (!t.last || o > ps)) {
797
797
  t.delta = de.sub(t.offset, m);
798
- const T = t.delta.map(Math.abs);
799
- de.addTo(t.distance, T), t.direction = t.delta.map(Math.sign), t._direction = t._delta.map(Math.sign), !t.first && o > 0 && (t.velocity = [T[0] / o, T[1] / o], t.timeDelta = o);
798
+ const y = t.delta.map(Math.abs);
799
+ de.addTo(t.distance, y), t.direction = t.delta.map(Math.sign), t._direction = t._delta.map(Math.sign), !t.first && o > 0 && (t.velocity = [y[0] / o, y[1] / o], t.timeDelta = o);
800
800
  }
801
801
  }
802
802
  emit() {
803
803
  const e = this.state, t = this.shared, r = this.config;
804
804
  if (e._active || this.clean(), (e._blocked || !e.intentional) && !e._force && !r.triggerAllEvents) return;
805
- const s = this.handler(te(te(te({}, t), e), {}, {
805
+ const s = this.handler(Q(Q(Q({}, t), e), {}, {
806
806
  [this.aliasKey]: e.values
807
807
  }));
808
808
  s !== void 0 && (e.memo = s);
@@ -811,14 +811,14 @@ class ps {
811
811
  this.eventStore.clean(), this.timeoutStore.clean();
812
812
  }
813
813
  }
814
- function gs([n, e], t) {
814
+ function vs([n, e], t) {
815
815
  const r = Math.abs(n), s = Math.abs(e);
816
816
  if (r > s && r > t)
817
817
  return "x";
818
818
  if (s > r && s > t)
819
819
  return "y";
820
820
  }
821
- class vs extends ps {
821
+ class bs extends gs {
822
822
  constructor(...e) {
823
823
  super(...e), Se(this, "aliasKey", "xy");
824
824
  }
@@ -838,7 +838,7 @@ class vs extends ps {
838
838
  const t = this.state, r = this.config;
839
839
  if (!t.axis && e) {
840
840
  const s = typeof r.axisThreshold == "object" ? r.axisThreshold[rr(e)] : r.axisThreshold;
841
- t.axis = gs(t._movement, s);
841
+ t.axis = vs(t._movement, s);
842
842
  }
843
843
  t._blocked = (r.lockDirection || !!r.axis) && !t.axis || !!r.axis && r.axis !== t.axis;
844
844
  }
@@ -859,7 +859,7 @@ const jn = (n) => n, Fn = 0.15, bn = {
859
859
  return n;
860
860
  },
861
861
  eventOptions(n, e, t) {
862
- return te(te({}, t.shared.eventOptions), n);
862
+ return Q(Q({}, t.shared.eventOptions), n);
863
863
  },
864
864
  preventDefault(n = !1) {
865
865
  return n;
@@ -913,18 +913,18 @@ process.env.NODE_ENV === "development" && Object.assign(bn, {
913
913
  return NaN;
914
914
  }
915
915
  });
916
- const bs = 0, Nt = te(te({}, bn), {}, {
916
+ const Ss = 0, It = Q(Q({}, bn), {}, {
917
917
  axis(n, e, {
918
918
  axis: t
919
919
  }) {
920
920
  if (this.lockDirection = t === "lock", !this.lockDirection) return t;
921
921
  },
922
- axisThreshold(n = bs) {
922
+ axisThreshold(n = Ss) {
923
923
  return n;
924
924
  },
925
925
  bounds(n = {}) {
926
926
  if (typeof n == "function")
927
- return (o) => Nt.bounds(n(o));
927
+ return (o) => It.bounds(n(o));
928
928
  if ("current" in n)
929
929
  return () => n.current;
930
930
  if (typeof HTMLElement == "function" && n instanceof HTMLElement)
@@ -943,7 +943,7 @@ const bs = 0, Nt = te(te({}, bn), {}, {
943
943
  ArrowUp: (n, e = 1) => [0, -1 * n * e],
944
944
  ArrowDown: (n, e = 1) => [0, n * e]
945
945
  };
946
- class Ss extends vs {
946
+ class _s extends bs {
947
947
  constructor(...e) {
948
948
  super(...e), Se(this, "ingKey", "dragging");
949
949
  }
@@ -961,7 +961,7 @@ class Ss extends vs {
961
961
  top: t.top - r.top + e.offset[1],
962
962
  bottom: t.bottom - r.bottom + e.offset[1]
963
963
  };
964
- e._bounds = Nt.bounds(s);
964
+ e._bounds = It.bounds(s);
965
965
  }
966
966
  }
967
967
  cancel() {
@@ -980,7 +980,7 @@ class Ss extends vs {
980
980
  const t = this.config, r = this.state;
981
981
  if (e.buttons != null && (Array.isArray(t.pointerButtons) ? !t.pointerButtons.includes(e.buttons) : t.pointerButtons !== -1 && t.pointerButtons !== e.buttons)) return;
982
982
  const s = this.ctrl.setEventIds(e);
983
- t.pointerCapture && e.target.setPointerCapture(e.pointerId), !(s && s.size > 1 && r._pointerActive) && (this.start(e), this.setupPointer(e), r._pointerId = cn(e), r._pointerActive = !0, this.computeValues(Wn(e)), this.computeInitial(), t.preventScrollAxis && rr(e) !== "mouse" ? (r._active = !1, this.setupScrollPrevention(e)) : t.delay > 0 ? (this.setupDelayTrigger(e), t.triggerAllEvents && (this.compute(e), this.emit())) : this.startPointerDrag(e));
983
+ t.pointerCapture && e.target.setPointerCapture(e.pointerId), !(s && s.size > 1 && r._pointerActive) && (this.start(e), this.setupPointer(e), r._pointerId = an(e), r._pointerActive = !0, this.computeValues(Wn(e)), this.computeInitial(), t.preventScrollAxis && rr(e) !== "mouse" ? (r._active = !1, this.setupScrollPrevention(e)) : t.delay > 0 ? (this.setupDelayTrigger(e), t.triggerAllEvents && (this.compute(e), this.emit())) : this.startPointerDrag(e));
984
984
  }
985
985
  startPointerDrag(e) {
986
986
  const t = this.state;
@@ -989,7 +989,7 @@ class Ss extends vs {
989
989
  pointerMove(e) {
990
990
  const t = this.state, r = this.config;
991
991
  if (!t._pointerActive) return;
992
- const s = cn(e);
992
+ const s = an(e);
993
993
  if (t._pointerId !== void 0 && s !== t._pointerId) return;
994
994
  const o = Wn(e);
995
995
  if (document.pointerLockElement === e.target ? t._delta = [e.movementX, e.movementY] : (t._delta = de.sub(o, t._values), this.computeValues(o)), de.addTo(t._movement, t._delta), this.compute(e), t._delayed && t.intentional) {
@@ -1018,17 +1018,17 @@ class Ss extends vs {
1018
1018
  }
1019
1019
  const t = this.state, r = this.config;
1020
1020
  if (!t._active || !t._pointerActive) return;
1021
- const s = cn(e);
1021
+ const s = an(e);
1022
1022
  if (t._pointerId !== void 0 && s !== t._pointerId) return;
1023
1023
  this.state._pointerActive = !1, this.setActive(), this.compute(e);
1024
1024
  const [o, i] = t._distance;
1025
1025
  if (t.tap = o <= r.tapsThreshold && i <= r.tapsThreshold, t.tap && r.filterTaps)
1026
1026
  t._force = !0;
1027
1027
  else {
1028
- const [c, a] = t._delta, [u, l] = t._movement, [h, d] = r.swipe.velocity, [m, w] = r.swipe.distance, v = r.swipe.duration;
1029
- if (t.elapsedTime < v) {
1030
- const p = Math.abs(c / t.timeDelta), R = Math.abs(a / t.timeDelta);
1031
- p > h && Math.abs(u) > m && (t.swipe[0] = Math.sign(c)), R > d && Math.abs(l) > w && (t.swipe[1] = Math.sign(a));
1028
+ const [c, a] = t._delta, [u, l] = t._movement, [h, d] = r.swipe.velocity, [m, E] = r.swipe.distance, S = r.swipe.duration;
1029
+ if (t.elapsedTime < S) {
1030
+ const _ = Math.abs(c / t.timeDelta), p = Math.abs(a / t.timeDelta);
1031
+ _ > h && Math.abs(u) > m && (t.swipe[0] = Math.sign(c)), p > d && Math.abs(l) > E && (t.swipe[1] = Math.sign(a));
1032
1032
  }
1033
1033
  }
1034
1034
  this.emit();
@@ -1055,7 +1055,7 @@ class Ss extends vs {
1055
1055
  this.state._preventScroll && e.cancelable && e.preventDefault();
1056
1056
  }
1057
1057
  setupScrollPrevention(e) {
1058
- this.state._preventScroll = !1, _s(e);
1058
+ this.state._preventScroll = !1, ws(e);
1059
1059
  const t = this.eventStore.add(this.sharedConfig.window, "touch", "change", this.preventScroll.bind(this), {
1060
1060
  passive: !1
1061
1061
  });
@@ -1084,21 +1084,21 @@ class Ss extends vs {
1084
1084
  });
1085
1085
  }
1086
1086
  }
1087
- function _s(n) {
1087
+ function ws(n) {
1088
1088
  "persist" in n && typeof n.persist == "function" && n.persist();
1089
1089
  }
1090
- const It = typeof window < "u" && window.document && window.document.createElement;
1090
+ const kt = typeof window < "u" && window.document && window.document.createElement;
1091
1091
  function or() {
1092
- return It && "ontouchstart" in window;
1093
- }
1094
- function ws() {
1095
- return or() || It && window.navigator.maxTouchPoints > 1;
1092
+ return kt && "ontouchstart" in window;
1096
1093
  }
1097
1094
  function Es() {
1098
- return It && "onpointerdown" in window;
1095
+ return or() || kt && window.navigator.maxTouchPoints > 1;
1099
1096
  }
1100
1097
  function ys() {
1101
- return It && "exitPointerLock" in window.document;
1098
+ return kt && "onpointerdown" in window;
1099
+ }
1100
+ function Rs() {
1101
+ return kt && "exitPointerLock" in window.document;
1102
1102
  }
1103
1103
  function xs() {
1104
1104
  try {
@@ -1108,17 +1108,17 @@ function xs() {
1108
1108
  }
1109
1109
  }
1110
1110
  const we = {
1111
- isBrowser: It,
1111
+ isBrowser: kt,
1112
1112
  gesture: xs(),
1113
1113
  touch: or(),
1114
- touchscreen: ws(),
1115
- pointer: Es(),
1116
- pointerLock: ys()
1117
- }, Rs = 250, Cs = 180, As = 0.5, Ts = 50, Ps = 250, Ds = 10, Un = {
1114
+ touchscreen: Es(),
1115
+ pointer: ys(),
1116
+ pointerLock: Rs()
1117
+ }, Cs = 250, Ts = 180, As = 0.5, Ps = 50, Ds = 250, Ls = 10, Un = {
1118
1118
  mouse: 0,
1119
1119
  touch: 0,
1120
1120
  pen: 8
1121
- }, ir = te(te({}, Nt), {}, {
1121
+ }, ir = Q(Q({}, It), {}, {
1122
1122
  device(n, e, {
1123
1123
  pointer: {
1124
1124
  touch: t = !1,
@@ -1131,7 +1131,7 @@ const we = {
1131
1131
  preventScrollAxis(n, e, {
1132
1132
  preventScroll: t
1133
1133
  }) {
1134
- if (this.preventScrollDelay = typeof t == "number" ? t : t || t === void 0 && n ? Rs : void 0, !(!we.touchscreen || t === !1))
1134
+ if (this.preventScrollDelay = typeof t == "number" ? t : t || t === void 0 && n ? Cs : void 0, !(!we.touchscreen || t === !1))
1135
1135
  return n || (t !== void 0 ? "y" : void 0);
1136
1136
  },
1137
1137
  pointerCapture(n, e, {
@@ -1153,8 +1153,8 @@ const we = {
1153
1153
  },
1154
1154
  swipe({
1155
1155
  velocity: n = As,
1156
- distance: e = Ts,
1157
- duration: t = Ps
1156
+ distance: e = Ps,
1157
+ duration: t = Ds
1158
1158
  } = {}) {
1159
1159
  return {
1160
1160
  velocity: this.transform(de.toVector(n)),
@@ -1165,7 +1165,7 @@ const we = {
1165
1165
  delay(n = 0) {
1166
1166
  switch (n) {
1167
1167
  case !0:
1168
- return Cs;
1168
+ return Ts;
1169
1169
  case !1:
1170
1170
  return 0;
1171
1171
  default:
@@ -1173,9 +1173,9 @@ const we = {
1173
1173
  }
1174
1174
  },
1175
1175
  axisThreshold(n) {
1176
- return n ? te(te({}, Un), n) : Un;
1176
+ return n ? Q(Q({}, Un), n) : Un;
1177
1177
  },
1178
- keyboardDisplacement(n = Ds) {
1178
+ keyboardDisplacement(n = Ls) {
1179
1179
  return n;
1180
1180
  }
1181
1181
  });
@@ -1206,7 +1206,7 @@ process.env.NODE_ENV === "development" && Object.assign(ir, {
1206
1206
  return NaN;
1207
1207
  }
1208
1208
  });
1209
- te(te({}, bn), {}, {
1209
+ Q(Q({}, bn), {}, {
1210
1210
  device(n, e, {
1211
1211
  shared: t,
1212
1212
  pointer: {
@@ -1225,13 +1225,13 @@ te(te({}, bn), {}, {
1225
1225
  angleBounds: r = {}
1226
1226
  }) {
1227
1227
  const s = (i) => {
1228
- const c = zn(Kt(t, i), {
1228
+ const c = zn(qt(t, i), {
1229
1229
  min: -1 / 0,
1230
1230
  max: 1 / 0
1231
1231
  });
1232
1232
  return [c.min, c.max];
1233
1233
  }, o = (i) => {
1234
- const c = zn(Kt(r, i), {
1234
+ const c = zn(qt(r, i), {
1235
1235
  min: -1 / 0,
1236
1236
  max: 1 / 0
1237
1237
  });
@@ -1249,31 +1249,31 @@ te(te({}, bn), {}, {
1249
1249
  return n;
1250
1250
  }
1251
1251
  });
1252
- te(te({}, Nt), {}, {
1252
+ Q(Q({}, It), {}, {
1253
1253
  mouseOnly: (n = !0) => n
1254
1254
  });
1255
- te(te({}, Nt), {}, {
1255
+ Q(Q({}, It), {}, {
1256
1256
  mouseOnly: (n = !0) => n
1257
1257
  });
1258
- const cr = /* @__PURE__ */ new Map(), mn = /* @__PURE__ */ new Map();
1259
- function Ls(n) {
1260
- cr.set(n.key, n.engine), mn.set(n.key, n.resolver);
1258
+ const cr = /* @__PURE__ */ new Map(), pn = /* @__PURE__ */ new Map();
1259
+ function Os(n) {
1260
+ cr.set(n.key, n.engine), pn.set(n.key, n.resolver);
1261
1261
  }
1262
- const Os = {
1262
+ const Ms = {
1263
1263
  key: "drag",
1264
- engine: Ss,
1264
+ engine: _s,
1265
1265
  resolver: ir
1266
1266
  };
1267
- function Ms(n, e) {
1267
+ function Ns(n, e) {
1268
1268
  if (n == null) return {};
1269
1269
  var t = {}, r = Object.keys(n), s, o;
1270
1270
  for (o = 0; o < r.length; o++)
1271
1271
  s = r[o], !(e.indexOf(s) >= 0) && (t[s] = n[s]);
1272
1272
  return t;
1273
1273
  }
1274
- function Ns(n, e) {
1274
+ function Is(n, e) {
1275
1275
  if (n == null) return {};
1276
- var t = Ms(n, e), r, s;
1276
+ var t = Ns(n, e), r, s;
1277
1277
  if (Object.getOwnPropertySymbols) {
1278
1278
  var o = Object.getOwnPropertySymbols(n);
1279
1279
  for (s = 0; s < o.length; s++)
@@ -1281,7 +1281,7 @@ function Ns(n, e) {
1281
1281
  }
1282
1282
  return t;
1283
1283
  }
1284
- const Is = {
1284
+ const ks = {
1285
1285
  target(n) {
1286
1286
  if (n)
1287
1287
  return () => "current" in n ? n.current : n;
@@ -1304,8 +1304,8 @@ const Is = {
1304
1304
  transform(n) {
1305
1305
  return n;
1306
1306
  }
1307
- }, ks = ["target", "eventOptions", "window", "enabled", "transform"];
1308
- function $t(n = {}, e) {
1307
+ }, Ws = ["target", "eventOptions", "window", "enabled", "transform"];
1308
+ function Ht(n = {}, e) {
1309
1309
  const t = {};
1310
1310
  for (const [r, s] of Object.entries(e))
1311
1311
  switch (typeof s) {
@@ -1317,7 +1317,7 @@ function $t(n = {}, e) {
1317
1317
  t[r] = s.call(t, n[r], r, n);
1318
1318
  break;
1319
1319
  case "object":
1320
- t[r] = $t(n[r], s);
1320
+ t[r] = Ht(n[r], s);
1321
1321
  break;
1322
1322
  case "boolean":
1323
1323
  s && (t[r] = n[r]);
@@ -1325,30 +1325,30 @@ function $t(n = {}, e) {
1325
1325
  }
1326
1326
  return t;
1327
1327
  }
1328
- function Ws(n, e, t = {}) {
1328
+ function zs(n, e, t = {}) {
1329
1329
  const r = n, {
1330
1330
  target: s,
1331
1331
  eventOptions: o,
1332
1332
  window: i,
1333
1333
  enabled: c,
1334
1334
  transform: a
1335
- } = r, u = Ns(r, ks);
1336
- if (t.shared = $t({
1335
+ } = r, u = Is(r, Ws);
1336
+ if (t.shared = Ht({
1337
1337
  target: s,
1338
1338
  eventOptions: o,
1339
1339
  window: i,
1340
1340
  enabled: c,
1341
1341
  transform: a
1342
- }, Is), e) {
1343
- const l = mn.get(e);
1344
- t[e] = $t(te({
1342
+ }, ks), e) {
1343
+ const l = pn.get(e);
1344
+ t[e] = Ht(Q({
1345
1345
  shared: t.shared
1346
1346
  }, u), l);
1347
1347
  } else
1348
1348
  for (const l in u) {
1349
- const h = mn.get(l);
1349
+ const h = pn.get(l);
1350
1350
  if (h)
1351
- t[l] = $t(te({
1351
+ t[l] = Ht(Q({
1352
1352
  shared: t.shared
1353
1353
  }, u[l]), h);
1354
1354
  else if (process.env.NODE_ENV === "development" && !["drag", "pinch", "scroll", "wheel", "move", "hover"].includes(l)) {
@@ -1364,7 +1364,7 @@ class ar {
1364
1364
  Se(this, "_listeners", /* @__PURE__ */ new Set()), this._ctrl = e, this._gestureKey = t;
1365
1365
  }
1366
1366
  add(e, t, r, s, o) {
1367
- const i = this._listeners, c = cs(t, r), a = this._gestureKey ? this._ctrl.config[this._gestureKey].eventOptions : {}, u = te(te({}, a), o);
1367
+ const i = this._listeners, c = as(t, r), a = this._gestureKey ? this._ctrl.config[this._gestureKey].eventOptions : {}, u = Q(Q({}, a), o);
1368
1368
  e.addEventListener(c, s, u);
1369
1369
  const l = () => {
1370
1370
  e.removeEventListener(c, s, u), i.delete(l);
@@ -1375,7 +1375,7 @@ class ar {
1375
1375
  this._listeners.forEach((e) => e()), this._listeners.clear();
1376
1376
  }
1377
1377
  }
1378
- class zs {
1378
+ class js {
1379
1379
  constructor() {
1380
1380
  Se(this, "_timeouts", /* @__PURE__ */ new Map());
1381
1381
  }
@@ -1390,7 +1390,7 @@ class zs {
1390
1390
  this._timeouts.forEach((e) => void window.clearTimeout(e)), this._timeouts.clear();
1391
1391
  }
1392
1392
  }
1393
- class js {
1393
+ class Fs {
1394
1394
  constructor(e) {
1395
1395
  Se(this, "gestures", /* @__PURE__ */ new Set()), Se(this, "_targetEventStore", new ar(this)), Se(this, "gestureEventStores", {}), Se(this, "gestureTimeoutStores", {}), Se(this, "handlers", {}), Se(this, "config", {}), Se(this, "pointerIds", /* @__PURE__ */ new Set()), Se(this, "touchIds", /* @__PURE__ */ new Set()), Se(this, "state", {
1396
1396
  shared: {
@@ -1399,11 +1399,11 @@ class js {
1399
1399
  ctrlKey: !1,
1400
1400
  altKey: !1
1401
1401
  }
1402
- }), Fs(this, e);
1402
+ }), Vs(this, e);
1403
1403
  }
1404
1404
  setEventIds(e) {
1405
- if (Qt(e))
1406
- return this.touchIds = new Set(us(e)), this.touchIds;
1405
+ if (en(e))
1406
+ return this.touchIds = new Set(fs(e)), this.touchIds;
1407
1407
  if ("pointerId" in e)
1408
1408
  return e.type === "pointerup" || e.type === "pointercancel" ? this.pointerIds.delete(e.pointerId) : e.type === "pointerdown" && this.pointerIds.add(e.pointerId), this.pointerIds;
1409
1409
  }
@@ -1411,7 +1411,7 @@ class js {
1411
1411
  this.handlers = e, this.nativeHandlers = t;
1412
1412
  }
1413
1413
  applyConfig(e, t) {
1414
- this.config = Ws(e, t, this.config);
1414
+ this.config = zs(e, t, this.config);
1415
1415
  }
1416
1416
  clean() {
1417
1417
  this._targetEventStore.clean();
@@ -1435,20 +1435,20 @@ class js {
1435
1435
  }
1436
1436
  const o = $n(r, t.eventOptions, !!s);
1437
1437
  for (const i in this.nativeHandlers)
1438
- o(i, "", (c) => this.nativeHandlers[i](te(te({}, this.state.shared), {}, {
1438
+ o(i, "", (c) => this.nativeHandlers[i](Q(Q({}, this.state.shared), {}, {
1439
1439
  event: c,
1440
1440
  args: e
1441
1441
  })), void 0, !0);
1442
1442
  }
1443
1443
  for (const o in r)
1444
- r[o] = hs(...r[o]);
1444
+ r[o] = ms(...r[o]);
1445
1445
  if (!s) return r;
1446
1446
  for (const o in r) {
1447
1447
  const {
1448
1448
  device: i,
1449
1449
  capture: c,
1450
1450
  passive: a
1451
- } = is(o);
1451
+ } = cs(o);
1452
1452
  this._targetEventStore.add(s, i, "", r[o], {
1453
1453
  capture: c,
1454
1454
  passive: a
@@ -1457,25 +1457,25 @@ class js {
1457
1457
  }
1458
1458
  }
1459
1459
  }
1460
- function Et(n, e) {
1461
- n.gestures.add(e), n.gestureEventStores[e] = new ar(n, e), n.gestureTimeoutStores[e] = new zs();
1460
+ function yt(n, e) {
1461
+ n.gestures.add(e), n.gestureEventStores[e] = new ar(n, e), n.gestureTimeoutStores[e] = new js();
1462
1462
  }
1463
- function Fs(n, e) {
1464
- e.drag && Et(n, "drag"), e.wheel && Et(n, "wheel"), e.scroll && Et(n, "scroll"), e.move && Et(n, "move"), e.pinch && Et(n, "pinch"), e.hover && Et(n, "hover");
1463
+ function Vs(n, e) {
1464
+ e.drag && yt(n, "drag"), e.wheel && yt(n, "wheel"), e.scroll && yt(n, "scroll"), e.move && yt(n, "move"), e.pinch && yt(n, "pinch"), e.hover && yt(n, "hover");
1465
1465
  }
1466
1466
  const $n = (n, e, t) => (r, s, o, i = {}, c = !1) => {
1467
1467
  var a, u;
1468
1468
  const l = (a = i.capture) !== null && a !== void 0 ? a : e.capture, h = (u = i.passive) !== null && u !== void 0 ? u : e.passive;
1469
- let d = c ? r : ss(r, s, l);
1469
+ let d = c ? r : os(r, s, l);
1470
1470
  t && h && (d += "Passive"), n[d] = n[d] || [], n[d].push(o);
1471
1471
  };
1472
- function Vs(n, e = {}, t, r) {
1473
- const s = qe.useMemo(() => new js(n), []);
1474
- if (s.applyHandlers(n, r), s.applyConfig(e, t), qe.useEffect(s.effect.bind(s)), qe.useEffect(() => s.clean.bind(s), []), e.target === void 0)
1472
+ function Us(n, e = {}, t, r) {
1473
+ const s = Je.useMemo(() => new Fs(n), []);
1474
+ if (s.applyHandlers(n, r), s.applyConfig(e, t), Je.useEffect(s.effect.bind(s)), Je.useEffect(() => s.clean.bind(s), []), e.target === void 0)
1475
1475
  return s.bind.bind(s);
1476
1476
  }
1477
- function an(n, e) {
1478
- return Ls(Os), Vs({
1477
+ function ln(n, e) {
1478
+ return Os(Ms), Us({
1479
1479
  drag: n
1480
1480
  }, e || {}, "drag");
1481
1481
  }
@@ -1500,39 +1500,39 @@ function lr(...n) {
1500
1500
  };
1501
1501
  };
1502
1502
  }
1503
- function Ze(...n) {
1504
- return g.useCallback(lr(...n), n);
1503
+ function Qe(...n) {
1504
+ return b.useCallback(lr(...n), n);
1505
1505
  }
1506
1506
  // @__NO_SIDE_EFFECTS__
1507
1507
  function ur(n) {
1508
- const e = /* @__PURE__ */ $s(n), t = g.forwardRef((r, s) => {
1509
- const { children: o, ...i } = r, c = g.Children.toArray(o), a = c.find(Bs);
1508
+ const e = /* @__PURE__ */ Hs(n), t = b.forwardRef((r, s) => {
1509
+ const { children: o, ...i } = r, c = b.Children.toArray(o), a = c.find(Ys);
1510
1510
  if (a) {
1511
- const u = a.props.children, l = c.map((h) => h === a ? g.Children.count(u) > 1 ? g.Children.only(null) : g.isValidElement(u) ? u.props.children : null : h);
1512
- return /* @__PURE__ */ x.jsx(e, { ...i, ref: s, children: g.isValidElement(u) ? g.cloneElement(u, void 0, l) : null });
1511
+ const u = a.props.children, l = c.map((h) => h === a ? b.Children.count(u) > 1 ? b.Children.only(null) : b.isValidElement(u) ? u.props.children : null : h);
1512
+ return /* @__PURE__ */ R.jsx(e, { ...i, ref: s, children: b.isValidElement(u) ? b.cloneElement(u, void 0, l) : null });
1513
1513
  }
1514
- return /* @__PURE__ */ x.jsx(e, { ...i, ref: s, children: o });
1514
+ return /* @__PURE__ */ R.jsx(e, { ...i, ref: s, children: o });
1515
1515
  });
1516
1516
  return t.displayName = `${n}.Slot`, t;
1517
1517
  }
1518
- var Us = /* @__PURE__ */ ur("Slot");
1518
+ var $s = /* @__PURE__ */ ur("Slot");
1519
1519
  // @__NO_SIDE_EFFECTS__
1520
- function $s(n) {
1521
- const e = g.forwardRef((t, r) => {
1520
+ function Hs(n) {
1521
+ const e = b.forwardRef((t, r) => {
1522
1522
  const { children: s, ...o } = t;
1523
- if (g.isValidElement(s)) {
1524
- const i = Xs(s), c = Ys(o, s.props);
1525
- return s.type !== g.Fragment && (c.ref = r ? lr(r, i) : i), g.cloneElement(s, c);
1523
+ if (b.isValidElement(s)) {
1524
+ const i = Gs(s), c = Xs(o, s.props);
1525
+ return s.type !== b.Fragment && (c.ref = r ? lr(r, i) : i), b.cloneElement(s, c);
1526
1526
  }
1527
- return g.Children.count(s) > 1 ? g.Children.only(null) : null;
1527
+ return b.Children.count(s) > 1 ? b.Children.only(null) : null;
1528
1528
  });
1529
1529
  return e.displayName = `${n}.SlotClone`, e;
1530
1530
  }
1531
- var Hs = Symbol("radix.slottable");
1532
- function Bs(n) {
1533
- return g.isValidElement(n) && typeof n.type == "function" && "__radixId" in n.type && n.type.__radixId === Hs;
1531
+ var Bs = Symbol("radix.slottable");
1532
+ function Ys(n) {
1533
+ return b.isValidElement(n) && typeof n.type == "function" && "__radixId" in n.type && n.type.__radixId === Bs;
1534
1534
  }
1535
- function Ys(n, e) {
1535
+ function Xs(n, e) {
1536
1536
  const t = { ...e };
1537
1537
  for (const r in e) {
1538
1538
  const s = n[r], o = e[r];
@@ -1543,11 +1543,11 @@ function Ys(n, e) {
1543
1543
  }
1544
1544
  return { ...n, ...t };
1545
1545
  }
1546
- function Xs(n) {
1546
+ function Gs(n) {
1547
1547
  let e = Object.getOwnPropertyDescriptor(n.props, "ref")?.get, t = e && "isReactWarning" in e && e.isReactWarning;
1548
1548
  return t ? n.ref : (e = Object.getOwnPropertyDescriptor(n, "ref")?.get, t = e && "isReactWarning" in e && e.isReactWarning, t ? n.props.ref : n.props.ref || n.ref);
1549
1549
  }
1550
- var Gs = [
1550
+ var Ks = [
1551
1551
  "a",
1552
1552
  "button",
1553
1553
  "div",
@@ -1565,44 +1565,44 @@ var Gs = [
1565
1565
  "span",
1566
1566
  "svg",
1567
1567
  "ul"
1568
- ], kt = Gs.reduce((n, e) => {
1569
- const t = /* @__PURE__ */ ur(`Primitive.${e}`), r = g.forwardRef((s, o) => {
1568
+ ], Wt = Ks.reduce((n, e) => {
1569
+ const t = /* @__PURE__ */ ur(`Primitive.${e}`), r = b.forwardRef((s, o) => {
1570
1570
  const { asChild: i, ...c } = s, a = i ? t : e;
1571
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ x.jsx(a, { ...c, ref: o });
1571
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ R.jsx(a, { ...c, ref: o });
1572
1572
  });
1573
1573
  return r.displayName = `Primitive.${e}`, { ...n, [e]: r };
1574
1574
  }, {});
1575
- function Ks(n, e = []) {
1575
+ function qs(n, e = []) {
1576
1576
  let t = [];
1577
1577
  function r(o, i) {
1578
- const c = g.createContext(i), a = t.length;
1578
+ const c = b.createContext(i), a = t.length;
1579
1579
  t = [...t, i];
1580
1580
  const u = (h) => {
1581
- const { scope: d, children: m, ...w } = h, v = d?.[n]?.[a] || c, p = g.useMemo(() => w, Object.values(w));
1582
- return /* @__PURE__ */ x.jsx(v.Provider, { value: p, children: m });
1581
+ const { scope: d, children: m, ...E } = h, S = d?.[n]?.[a] || c, _ = b.useMemo(() => E, Object.values(E));
1582
+ return /* @__PURE__ */ R.jsx(S.Provider, { value: _, children: m });
1583
1583
  };
1584
1584
  u.displayName = o + "Provider";
1585
1585
  function l(h, d) {
1586
- const m = d?.[n]?.[a] || c, w = g.useContext(m);
1587
- if (w) return w;
1586
+ const m = d?.[n]?.[a] || c, E = b.useContext(m);
1587
+ if (E) return E;
1588
1588
  if (i !== void 0) return i;
1589
1589
  throw new Error(`\`${h}\` must be used within \`${o}\``);
1590
1590
  }
1591
1591
  return [u, l];
1592
1592
  }
1593
1593
  const s = () => {
1594
- const o = t.map((i) => g.createContext(i));
1594
+ const o = t.map((i) => b.createContext(i));
1595
1595
  return function(c) {
1596
1596
  const a = c?.[n] || o;
1597
- return g.useMemo(
1597
+ return b.useMemo(
1598
1598
  () => ({ [`__scope${n}`]: { ...c, [n]: a } }),
1599
1599
  [c, a]
1600
1600
  );
1601
1601
  };
1602
1602
  };
1603
- return s.scopeName = n, [r, qs(s, ...e)];
1603
+ return s.scopeName = n, [r, Js(s, ...e)];
1604
1604
  }
1605
- function qs(...n) {
1605
+ function Js(...n) {
1606
1606
  const e = n[0];
1607
1607
  if (n.length === 1) return e;
1608
1608
  const t = () => {
@@ -1615,29 +1615,29 @@ function qs(...n) {
1615
1615
  const h = a(o)[`__scope${u}`];
1616
1616
  return { ...c, ...h };
1617
1617
  }, {});
1618
- return g.useMemo(() => ({ [`__scope${e.scopeName}`]: i }), [i]);
1618
+ return b.useMemo(() => ({ [`__scope${e.scopeName}`]: i }), [i]);
1619
1619
  };
1620
1620
  };
1621
1621
  return t.scopeName = e.scopeName, t;
1622
1622
  }
1623
- function Je(n, e, { checkForDefaultPrevented: t = !0 } = {}) {
1623
+ function Ze(n, e, { checkForDefaultPrevented: t = !0 } = {}) {
1624
1624
  return function(s) {
1625
1625
  if (n?.(s), t === !1 || !s.defaultPrevented)
1626
1626
  return e?.(s);
1627
1627
  };
1628
1628
  }
1629
- var pn = globalThis?.document ? g.useLayoutEffect : () => {
1629
+ var gn = globalThis?.document ? b.useLayoutEffect : () => {
1630
1630
  };
1631
- function Js(n, e) {
1632
- return g.useReducer((t, r) => e[t][r] ?? t, n);
1631
+ function Zs(n, e) {
1632
+ return b.useReducer((t, r) => e[t][r] ?? t, n);
1633
1633
  }
1634
- var Wt = (n) => {
1635
- const { present: e, children: t } = n, r = Zs(e), s = typeof t == "function" ? t({ present: r.isPresent }) : g.Children.only(t), o = Ze(r.ref, Qs(s));
1636
- return typeof t == "function" || r.isPresent ? g.cloneElement(s, { ref: o }) : null;
1634
+ var zt = (n) => {
1635
+ const { present: e, children: t } = n, r = Qs(e), s = typeof t == "function" ? t({ present: r.isPresent }) : b.Children.only(t), o = Qe(r.ref, eo(s));
1636
+ return typeof t == "function" || r.isPresent ? b.cloneElement(s, { ref: o }) : null;
1637
1637
  };
1638
- Wt.displayName = "Presence";
1639
- function Zs(n) {
1640
- const [e, t] = g.useState(), r = g.useRef(null), s = g.useRef(n), o = g.useRef("none"), i = n ? "mounted" : "unmounted", [c, a] = Js(i, {
1638
+ zt.displayName = "Presence";
1639
+ function Qs(n) {
1640
+ const [e, t] = b.useState(), r = b.useRef(null), s = b.useRef(n), o = b.useRef("none"), i = n ? "mounted" : "unmounted", [c, a] = Zs(i, {
1641
1641
  mounted: {
1642
1642
  UNMOUNT: "unmounted",
1643
1643
  ANIMATION_OUT: "unmountSuspended"
@@ -1650,28 +1650,28 @@ function Zs(n) {
1650
1650
  MOUNT: "mounted"
1651
1651
  }
1652
1652
  });
1653
- return g.useEffect(() => {
1654
- const u = Ut(r.current);
1653
+ return b.useEffect(() => {
1654
+ const u = $t(r.current);
1655
1655
  o.current = c === "mounted" ? u : "none";
1656
- }, [c]), pn(() => {
1656
+ }, [c]), gn(() => {
1657
1657
  const u = r.current, l = s.current;
1658
1658
  if (l !== n) {
1659
- const d = o.current, m = Ut(u);
1659
+ const d = o.current, m = $t(u);
1660
1660
  n ? a("MOUNT") : m === "none" || u?.display === "none" ? a("UNMOUNT") : a(l && d !== m ? "ANIMATION_OUT" : "UNMOUNT"), s.current = n;
1661
1661
  }
1662
- }, [n, a]), pn(() => {
1662
+ }, [n, a]), gn(() => {
1663
1663
  if (e) {
1664
1664
  let u;
1665
1665
  const l = e.ownerDocument.defaultView ?? window, h = (m) => {
1666
- const v = Ut(r.current).includes(CSS.escape(m.animationName));
1667
- if (m.target === e && v && (a("ANIMATION_END"), !s.current)) {
1668
- const p = e.style.animationFillMode;
1666
+ const S = $t(r.current).includes(CSS.escape(m.animationName));
1667
+ if (m.target === e && S && (a("ANIMATION_END"), !s.current)) {
1668
+ const _ = e.style.animationFillMode;
1669
1669
  e.style.animationFillMode = "forwards", u = l.setTimeout(() => {
1670
- e.style.animationFillMode === "forwards" && (e.style.animationFillMode = p);
1670
+ e.style.animationFillMode === "forwards" && (e.style.animationFillMode = _);
1671
1671
  });
1672
1672
  }
1673
1673
  }, d = (m) => {
1674
- m.target === e && (o.current = Ut(r.current));
1674
+ m.target === e && (o.current = $t(r.current));
1675
1675
  };
1676
1676
  return e.addEventListener("animationstart", d), e.addEventListener("animationcancel", h), e.addEventListener("animationend", h), () => {
1677
1677
  l.clearTimeout(u), e.removeEventListener("animationstart", d), e.removeEventListener("animationcancel", h), e.removeEventListener("animationend", h);
@@ -1680,36 +1680,36 @@ function Zs(n) {
1680
1680
  a("ANIMATION_END");
1681
1681
  }, [e, a]), {
1682
1682
  isPresent: ["mounted", "unmountSuspended"].includes(c),
1683
- ref: g.useCallback((u) => {
1683
+ ref: b.useCallback((u) => {
1684
1684
  r.current = u ? getComputedStyle(u) : null, t(u);
1685
1685
  }, [])
1686
1686
  };
1687
1687
  }
1688
- function Ut(n) {
1688
+ function $t(n) {
1689
1689
  return n?.animationName || "none";
1690
1690
  }
1691
- function Qs(n) {
1691
+ function eo(n) {
1692
1692
  let e = Object.getOwnPropertyDescriptor(n.props, "ref")?.get, t = e && "isReactWarning" in e && e.isReactWarning;
1693
1693
  return t ? n.ref : (e = Object.getOwnPropertyDescriptor(n, "ref")?.get, t = e && "isReactWarning" in e && e.isReactWarning, t ? n.props.ref : n.props.ref || n.ref);
1694
1694
  }
1695
- var eo = g.createContext(void 0);
1696
- function to(n) {
1697
- const e = g.useContext(eo);
1695
+ var to = b.createContext(void 0);
1696
+ function no(n) {
1697
+ const e = b.useContext(to);
1698
1698
  return n || e || "ltr";
1699
1699
  }
1700
- function Ke(n) {
1701
- const e = g.useRef(n);
1702
- return g.useEffect(() => {
1700
+ function qe(n) {
1701
+ const e = b.useRef(n);
1702
+ return b.useEffect(() => {
1703
1703
  e.current = n;
1704
- }), g.useMemo(() => (...t) => e.current?.(...t), []);
1704
+ }), b.useMemo(() => (...t) => e.current?.(...t), []);
1705
1705
  }
1706
- function no(n, [e, t]) {
1706
+ function ro(n, [e, t]) {
1707
1707
  return Math.min(t, Math.max(e, n));
1708
1708
  }
1709
- function ro(n, e) {
1710
- return g.useReducer((t, r) => e[t][r] ?? t, n);
1709
+ function so(n, e) {
1710
+ return b.useReducer((t, r) => e[t][r] ?? t, n);
1711
1711
  }
1712
- var Sn = "ScrollArea", [fr] = Ks(Sn), [so, Ee] = fr(Sn), dr = g.forwardRef(
1712
+ var Sn = "ScrollArea", [fr] = qs(Sn), [oo, Ee] = fr(Sn), dr = b.forwardRef(
1713
1713
  (n, e) => {
1714
1714
  const {
1715
1715
  __scopeScrollArea: t,
@@ -1717,13 +1717,13 @@ var Sn = "ScrollArea", [fr] = Ks(Sn), [so, Ee] = fr(Sn), dr = g.forwardRef(
1717
1717
  dir: s,
1718
1718
  scrollHideDelay: o = 600,
1719
1719
  ...i
1720
- } = n, [c, a] = g.useState(null), [u, l] = g.useState(null), [h, d] = g.useState(null), [m, w] = g.useState(null), [v, p] = g.useState(null), [R, b] = g.useState(0), [S, _] = g.useState(0), [P, T] = g.useState(!1), [D, U] = g.useState(!1), O = Ze(e, (z) => a(z)), W = to(s);
1721
- return /* @__PURE__ */ x.jsx(
1722
- so,
1720
+ } = n, [c, a] = b.useState(null), [u, l] = b.useState(null), [h, d] = b.useState(null), [m, E] = b.useState(null), [S, _] = b.useState(null), [p, g] = b.useState(0), [v, w] = b.useState(0), [T, y] = b.useState(!1), [A, z] = b.useState(!1), O = Qe(e, (F) => a(F)), j = no(s);
1721
+ return /* @__PURE__ */ R.jsx(
1722
+ oo,
1723
1723
  {
1724
1724
  scope: t,
1725
1725
  type: r,
1726
- dir: W,
1726
+ dir: j,
1727
1727
  scrollHideDelay: o,
1728
1728
  scrollArea: c,
1729
1729
  viewport: u,
@@ -1731,26 +1731,26 @@ var Sn = "ScrollArea", [fr] = Ks(Sn), [so, Ee] = fr(Sn), dr = g.forwardRef(
1731
1731
  content: h,
1732
1732
  onContentChange: d,
1733
1733
  scrollbarX: m,
1734
- onScrollbarXChange: w,
1735
- scrollbarXEnabled: P,
1736
- onScrollbarXEnabledChange: T,
1737
- scrollbarY: v,
1738
- onScrollbarYChange: p,
1739
- scrollbarYEnabled: D,
1740
- onScrollbarYEnabledChange: U,
1741
- onCornerWidthChange: b,
1742
- onCornerHeightChange: _,
1743
- children: /* @__PURE__ */ x.jsx(
1744
- kt.div,
1734
+ onScrollbarXChange: E,
1735
+ scrollbarXEnabled: T,
1736
+ onScrollbarXEnabledChange: y,
1737
+ scrollbarY: S,
1738
+ onScrollbarYChange: _,
1739
+ scrollbarYEnabled: A,
1740
+ onScrollbarYEnabledChange: z,
1741
+ onCornerWidthChange: g,
1742
+ onCornerHeightChange: w,
1743
+ children: /* @__PURE__ */ R.jsx(
1744
+ Wt.div,
1745
1745
  {
1746
- dir: W,
1746
+ dir: j,
1747
1747
  ...i,
1748
1748
  ref: O,
1749
1749
  style: {
1750
1750
  position: "relative",
1751
1751
  // Pass corner sizes as CSS vars to reduce re-renders of context consumers
1752
- "--radix-scroll-area-corner-width": R + "px",
1753
- "--radix-scroll-area-corner-height": S + "px",
1752
+ "--radix-scroll-area-corner-width": p + "px",
1753
+ "--radix-scroll-area-corner-height": v + "px",
1754
1754
  ...n.style
1755
1755
  }
1756
1756
  }
@@ -1760,11 +1760,11 @@ var Sn = "ScrollArea", [fr] = Ks(Sn), [so, Ee] = fr(Sn), dr = g.forwardRef(
1760
1760
  }
1761
1761
  );
1762
1762
  dr.displayName = Sn;
1763
- var hr = "ScrollAreaViewport", mr = g.forwardRef(
1763
+ var hr = "ScrollAreaViewport", mr = b.forwardRef(
1764
1764
  (n, e) => {
1765
- const { __scopeScrollArea: t, children: r, nonce: s, ...o } = n, i = Ee(hr, t), c = g.useRef(null), a = Ze(e, c, i.onViewportChange);
1766
- return /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
1767
- /* @__PURE__ */ x.jsx(
1765
+ const { __scopeScrollArea: t, children: r, nonce: s, ...o } = n, i = Ee(hr, t), c = b.useRef(null), a = Qe(e, c, i.onViewportChange);
1766
+ return /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
1767
+ /* @__PURE__ */ R.jsx(
1768
1768
  "style",
1769
1769
  {
1770
1770
  dangerouslySetInnerHTML: {
@@ -1773,8 +1773,8 @@ var hr = "ScrollAreaViewport", mr = g.forwardRef(
1773
1773
  nonce: s
1774
1774
  }
1775
1775
  ),
1776
- /* @__PURE__ */ x.jsx(
1777
- kt.div,
1776
+ /* @__PURE__ */ R.jsx(
1777
+ Wt.div,
1778
1778
  {
1779
1779
  "data-radix-scroll-area-viewport": "",
1780
1780
  ...o,
@@ -1795,25 +1795,25 @@ var hr = "ScrollAreaViewport", mr = g.forwardRef(
1795
1795
  overflowY: i.scrollbarYEnabled ? "scroll" : "hidden",
1796
1796
  ...n.style
1797
1797
  },
1798
- children: /* @__PURE__ */ x.jsx("div", { ref: i.onContentChange, style: { minWidth: "100%", display: "table" }, children: r })
1798
+ children: /* @__PURE__ */ R.jsx("div", { ref: i.onContentChange, style: { minWidth: "100%", display: "table" }, children: r })
1799
1799
  }
1800
1800
  )
1801
1801
  ] });
1802
1802
  }
1803
1803
  );
1804
1804
  mr.displayName = hr;
1805
- var De = "ScrollAreaScrollbar", pr = g.forwardRef(
1805
+ var De = "ScrollAreaScrollbar", pr = b.forwardRef(
1806
1806
  (n, e) => {
1807
1807
  const { forceMount: t, ...r } = n, s = Ee(De, n.__scopeScrollArea), { onScrollbarXEnabledChange: o, onScrollbarYEnabledChange: i } = s, c = n.orientation === "horizontal";
1808
- return g.useEffect(() => (c ? o(!0) : i(!0), () => {
1808
+ return b.useEffect(() => (c ? o(!0) : i(!0), () => {
1809
1809
  c ? o(!1) : i(!1);
1810
- }), [c, o, i]), s.type === "hover" ? /* @__PURE__ */ x.jsx(oo, { ...r, ref: e, forceMount: t }) : s.type === "scroll" ? /* @__PURE__ */ x.jsx(io, { ...r, ref: e, forceMount: t }) : s.type === "auto" ? /* @__PURE__ */ x.jsx(gr, { ...r, ref: e, forceMount: t }) : s.type === "always" ? /* @__PURE__ */ x.jsx(_n, { ...r, ref: e }) : null;
1810
+ }), [c, o, i]), s.type === "hover" ? /* @__PURE__ */ R.jsx(io, { ...r, ref: e, forceMount: t }) : s.type === "scroll" ? /* @__PURE__ */ R.jsx(co, { ...r, ref: e, forceMount: t }) : s.type === "auto" ? /* @__PURE__ */ R.jsx(gr, { ...r, ref: e, forceMount: t }) : s.type === "always" ? /* @__PURE__ */ R.jsx(_n, { ...r, ref: e }) : null;
1811
1811
  }
1812
1812
  );
1813
1813
  pr.displayName = De;
1814
- var oo = g.forwardRef((n, e) => {
1815
- const { forceMount: t, ...r } = n, s = Ee(De, n.__scopeScrollArea), [o, i] = g.useState(!1);
1816
- return g.useEffect(() => {
1814
+ var io = b.forwardRef((n, e) => {
1815
+ const { forceMount: t, ...r } = n, s = Ee(De, n.__scopeScrollArea), [o, i] = b.useState(!1);
1816
+ return b.useEffect(() => {
1817
1817
  const c = s.scrollArea;
1818
1818
  let a = 0;
1819
1819
  if (c) {
@@ -1826,7 +1826,7 @@ var oo = g.forwardRef((n, e) => {
1826
1826
  window.clearTimeout(a), c.removeEventListener("pointerenter", u), c.removeEventListener("pointerleave", l);
1827
1827
  };
1828
1828
  }
1829
- }, [s.scrollArea, s.scrollHideDelay]), /* @__PURE__ */ x.jsx(Wt, { present: t || o, children: /* @__PURE__ */ x.jsx(
1829
+ }, [s.scrollArea, s.scrollHideDelay]), /* @__PURE__ */ R.jsx(zt, { present: t || o, children: /* @__PURE__ */ R.jsx(
1830
1830
  gr,
1831
1831
  {
1832
1832
  "data-state": o ? "visible" : "hidden",
@@ -1834,8 +1834,8 @@ var oo = g.forwardRef((n, e) => {
1834
1834
  ref: e
1835
1835
  }
1836
1836
  ) });
1837
- }), io = g.forwardRef((n, e) => {
1838
- const { forceMount: t, ...r } = n, s = Ee(De, n.__scopeScrollArea), o = n.orientation === "horizontal", i = tn(() => a("SCROLL_END"), 100), [c, a] = ro("hidden", {
1837
+ }), co = b.forwardRef((n, e) => {
1838
+ const { forceMount: t, ...r } = n, s = Ee(De, n.__scopeScrollArea), o = n.orientation === "horizontal", i = nn(() => a("SCROLL_END"), 100), [c, a] = so("hidden", {
1839
1839
  hidden: {
1840
1840
  SCROLL: "scrolling"
1841
1841
  },
@@ -1853,12 +1853,12 @@ var oo = g.forwardRef((n, e) => {
1853
1853
  POINTER_ENTER: "interacting"
1854
1854
  }
1855
1855
  });
1856
- return g.useEffect(() => {
1856
+ return b.useEffect(() => {
1857
1857
  if (c === "idle") {
1858
1858
  const u = window.setTimeout(() => a("HIDE"), s.scrollHideDelay);
1859
1859
  return () => window.clearTimeout(u);
1860
1860
  }
1861
- }, [c, s.scrollHideDelay, a]), g.useEffect(() => {
1861
+ }, [c, s.scrollHideDelay, a]), b.useEffect(() => {
1862
1862
  const u = s.viewport, l = o ? "scrollLeft" : "scrollTop";
1863
1863
  if (u) {
1864
1864
  let h = u[l];
@@ -1868,24 +1868,24 @@ var oo = g.forwardRef((n, e) => {
1868
1868
  };
1869
1869
  return u.addEventListener("scroll", d), () => u.removeEventListener("scroll", d);
1870
1870
  }
1871
- }, [s.viewport, o, a, i]), /* @__PURE__ */ x.jsx(Wt, { present: t || c !== "hidden", children: /* @__PURE__ */ x.jsx(
1871
+ }, [s.viewport, o, a, i]), /* @__PURE__ */ R.jsx(zt, { present: t || c !== "hidden", children: /* @__PURE__ */ R.jsx(
1872
1872
  _n,
1873
1873
  {
1874
1874
  "data-state": c === "hidden" ? "hidden" : "visible",
1875
1875
  ...r,
1876
1876
  ref: e,
1877
- onPointerEnter: Je(n.onPointerEnter, () => a("POINTER_ENTER")),
1878
- onPointerLeave: Je(n.onPointerLeave, () => a("POINTER_LEAVE"))
1877
+ onPointerEnter: Ze(n.onPointerEnter, () => a("POINTER_ENTER")),
1878
+ onPointerLeave: Ze(n.onPointerLeave, () => a("POINTER_LEAVE"))
1879
1879
  }
1880
1880
  ) });
1881
- }), gr = g.forwardRef((n, e) => {
1882
- const t = Ee(De, n.__scopeScrollArea), { forceMount: r, ...s } = n, [o, i] = g.useState(!1), c = n.orientation === "horizontal", a = tn(() => {
1881
+ }), gr = b.forwardRef((n, e) => {
1882
+ const t = Ee(De, n.__scopeScrollArea), { forceMount: r, ...s } = n, [o, i] = b.useState(!1), c = n.orientation === "horizontal", a = nn(() => {
1883
1883
  if (t.viewport) {
1884
1884
  const u = t.viewport.offsetWidth < t.viewport.scrollWidth, l = t.viewport.offsetHeight < t.viewport.scrollHeight;
1885
1885
  i(c ? u : l);
1886
1886
  }
1887
1887
  }, 10);
1888
- return Tt(t.viewport, a), Tt(t.content, a), /* @__PURE__ */ x.jsx(Wt, { present: r || o, children: /* @__PURE__ */ x.jsx(
1888
+ return At(t.viewport, a), At(t.content, a), /* @__PURE__ */ R.jsx(zt, { present: r || o, children: /* @__PURE__ */ R.jsx(
1889
1889
  _n,
1890
1890
  {
1891
1891
  "data-state": o ? "visible" : "hidden",
@@ -1893,8 +1893,8 @@ var oo = g.forwardRef((n, e) => {
1893
1893
  ref: e
1894
1894
  }
1895
1895
  ) });
1896
- }), _n = g.forwardRef((n, e) => {
1897
- const { orientation: t = "vertical", ...r } = n, s = Ee(De, n.__scopeScrollArea), o = g.useRef(null), i = g.useRef(0), [c, a] = g.useState({
1896
+ }), _n = b.forwardRef((n, e) => {
1897
+ const { orientation: t = "vertical", ...r } = n, s = Ee(De, n.__scopeScrollArea), o = b.useRef(null), i = b.useRef(0), [c, a] = b.useState({
1898
1898
  content: 0,
1899
1899
  viewport: 0,
1900
1900
  scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
@@ -1908,10 +1908,10 @@ var oo = g.forwardRef((n, e) => {
1908
1908
  onThumbPointerDown: (d) => i.current = d
1909
1909
  };
1910
1910
  function h(d, m) {
1911
- return ho(d, i.current, c, m);
1911
+ return mo(d, i.current, c, m);
1912
1912
  }
1913
- return t === "horizontal" ? /* @__PURE__ */ x.jsx(
1914
- co,
1913
+ return t === "horizontal" ? /* @__PURE__ */ R.jsx(
1914
+ ao,
1915
1915
  {
1916
1916
  ...l,
1917
1917
  ref: e,
@@ -1928,8 +1928,8 @@ var oo = g.forwardRef((n, e) => {
1928
1928
  s.viewport && (s.viewport.scrollLeft = h(d, s.dir));
1929
1929
  }
1930
1930
  }
1931
- ) : t === "vertical" ? /* @__PURE__ */ x.jsx(
1932
- ao,
1931
+ ) : t === "vertical" ? /* @__PURE__ */ R.jsx(
1932
+ lo,
1933
1933
  {
1934
1934
  ...l,
1935
1935
  ref: e,
@@ -1947,11 +1947,11 @@ var oo = g.forwardRef((n, e) => {
1947
1947
  }
1948
1948
  }
1949
1949
  ) : null;
1950
- }), co = g.forwardRef((n, e) => {
1951
- const { sizes: t, onSizesChange: r, ...s } = n, o = Ee(De, n.__scopeScrollArea), [i, c] = g.useState(), a = g.useRef(null), u = Ze(e, a, o.onScrollbarXChange);
1952
- return g.useEffect(() => {
1950
+ }), ao = b.forwardRef((n, e) => {
1951
+ const { sizes: t, onSizesChange: r, ...s } = n, o = Ee(De, n.__scopeScrollArea), [i, c] = b.useState(), a = b.useRef(null), u = Qe(e, a, o.onScrollbarXChange);
1952
+ return b.useEffect(() => {
1953
1953
  a.current && c(getComputedStyle(a.current));
1954
- }, [a]), /* @__PURE__ */ x.jsx(
1954
+ }, [a]), /* @__PURE__ */ R.jsx(
1955
1955
  br,
1956
1956
  {
1957
1957
  "data-orientation": "horizontal",
@@ -1962,7 +1962,7 @@ var oo = g.forwardRef((n, e) => {
1962
1962
  bottom: 0,
1963
1963
  left: o.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0,
1964
1964
  right: o.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0,
1965
- "--radix-scroll-area-thumb-width": en(t) + "px",
1965
+ "--radix-scroll-area-thumb-width": tn(t) + "px",
1966
1966
  ...n.style
1967
1967
  },
1968
1968
  onThumbPointerDown: (l) => n.onThumbPointerDown(l.x),
@@ -1979,18 +1979,18 @@ var oo = g.forwardRef((n, e) => {
1979
1979
  viewport: o.viewport.offsetWidth,
1980
1980
  scrollbar: {
1981
1981
  size: a.current.clientWidth,
1982
- paddingStart: Jt(i.paddingLeft),
1983
- paddingEnd: Jt(i.paddingRight)
1982
+ paddingStart: Zt(i.paddingLeft),
1983
+ paddingEnd: Zt(i.paddingRight)
1984
1984
  }
1985
1985
  });
1986
1986
  }
1987
1987
  }
1988
1988
  );
1989
- }), ao = g.forwardRef((n, e) => {
1990
- const { sizes: t, onSizesChange: r, ...s } = n, o = Ee(De, n.__scopeScrollArea), [i, c] = g.useState(), a = g.useRef(null), u = Ze(e, a, o.onScrollbarYChange);
1991
- return g.useEffect(() => {
1989
+ }), lo = b.forwardRef((n, e) => {
1990
+ const { sizes: t, onSizesChange: r, ...s } = n, o = Ee(De, n.__scopeScrollArea), [i, c] = b.useState(), a = b.useRef(null), u = Qe(e, a, o.onScrollbarYChange);
1991
+ return b.useEffect(() => {
1992
1992
  a.current && c(getComputedStyle(a.current));
1993
- }, [a]), /* @__PURE__ */ x.jsx(
1993
+ }, [a]), /* @__PURE__ */ R.jsx(
1994
1994
  br,
1995
1995
  {
1996
1996
  "data-orientation": "vertical",
@@ -2002,7 +2002,7 @@ var oo = g.forwardRef((n, e) => {
2002
2002
  right: o.dir === "ltr" ? 0 : void 0,
2003
2003
  left: o.dir === "rtl" ? 0 : void 0,
2004
2004
  bottom: "var(--radix-scroll-area-corner-height)",
2005
- "--radix-scroll-area-thumb-height": en(t) + "px",
2005
+ "--radix-scroll-area-thumb-height": tn(t) + "px",
2006
2006
  ...n.style
2007
2007
  },
2008
2008
  onThumbPointerDown: (l) => n.onThumbPointerDown(l.y),
@@ -2019,14 +2019,14 @@ var oo = g.forwardRef((n, e) => {
2019
2019
  viewport: o.viewport.offsetHeight,
2020
2020
  scrollbar: {
2021
2021
  size: a.current.clientHeight,
2022
- paddingStart: Jt(i.paddingTop),
2023
- paddingEnd: Jt(i.paddingBottom)
2022
+ paddingStart: Zt(i.paddingTop),
2023
+ paddingEnd: Zt(i.paddingBottom)
2024
2024
  }
2025
2025
  });
2026
2026
  }
2027
2027
  }
2028
2028
  );
2029
- }), [lo, vr] = fr(De), br = g.forwardRef((n, e) => {
2029
+ }), [uo, vr] = fr(De), br = b.forwardRef((n, e) => {
2030
2030
  const {
2031
2031
  __scopeScrollArea: t,
2032
2032
  sizes: r,
@@ -2039,73 +2039,73 @@ var oo = g.forwardRef((n, e) => {
2039
2039
  onWheelScroll: l,
2040
2040
  onResize: h,
2041
2041
  ...d
2042
- } = n, m = Ee(De, t), [w, v] = g.useState(null), p = Ze(e, (O) => v(O)), R = g.useRef(null), b = g.useRef(""), S = m.viewport, _ = r.content - r.viewport, P = Ke(l), T = Ke(a), D = tn(h, 10);
2043
- function U(O) {
2044
- if (R.current) {
2045
- const W = O.clientX - R.current.left, z = O.clientY - R.current.top;
2046
- u({ x: W, y: z });
2042
+ } = n, m = Ee(De, t), [E, S] = b.useState(null), _ = Qe(e, (O) => S(O)), p = b.useRef(null), g = b.useRef(""), v = m.viewport, w = r.content - r.viewport, T = qe(l), y = qe(a), A = nn(h, 10);
2043
+ function z(O) {
2044
+ if (p.current) {
2045
+ const j = O.clientX - p.current.left, F = O.clientY - p.current.top;
2046
+ u({ x: j, y: F });
2047
2047
  }
2048
2048
  }
2049
- return g.useEffect(() => {
2050
- const O = (W) => {
2051
- const z = W.target;
2052
- w?.contains(z) && P(W, _);
2049
+ return b.useEffect(() => {
2050
+ const O = (j) => {
2051
+ const F = j.target;
2052
+ E?.contains(F) && T(j, w);
2053
2053
  };
2054
2054
  return document.addEventListener("wheel", O, { passive: !1 }), () => document.removeEventListener("wheel", O, { passive: !1 });
2055
- }, [S, w, _, P]), g.useEffect(T, [r, T]), Tt(w, D), Tt(m.content, D), /* @__PURE__ */ x.jsx(
2056
- lo,
2055
+ }, [v, E, w, T]), b.useEffect(y, [r, y]), At(E, A), At(m.content, A), /* @__PURE__ */ R.jsx(
2056
+ uo,
2057
2057
  {
2058
2058
  scope: t,
2059
- scrollbar: w,
2059
+ scrollbar: E,
2060
2060
  hasThumb: s,
2061
- onThumbChange: Ke(o),
2062
- onThumbPointerUp: Ke(i),
2063
- onThumbPositionChange: T,
2064
- onThumbPointerDown: Ke(c),
2065
- children: /* @__PURE__ */ x.jsx(
2066
- kt.div,
2061
+ onThumbChange: qe(o),
2062
+ onThumbPointerUp: qe(i),
2063
+ onThumbPositionChange: y,
2064
+ onThumbPointerDown: qe(c),
2065
+ children: /* @__PURE__ */ R.jsx(
2066
+ Wt.div,
2067
2067
  {
2068
2068
  ...d,
2069
- ref: p,
2069
+ ref: _,
2070
2070
  style: { position: "absolute", ...d.style },
2071
- onPointerDown: Je(n.onPointerDown, (O) => {
2072
- O.button === 0 && (O.target.setPointerCapture(O.pointerId), R.current = w.getBoundingClientRect(), b.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", m.viewport && (m.viewport.style.scrollBehavior = "auto"), U(O));
2071
+ onPointerDown: Ze(n.onPointerDown, (O) => {
2072
+ O.button === 0 && (O.target.setPointerCapture(O.pointerId), p.current = E.getBoundingClientRect(), g.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", m.viewport && (m.viewport.style.scrollBehavior = "auto"), z(O));
2073
2073
  }),
2074
- onPointerMove: Je(n.onPointerMove, U),
2075
- onPointerUp: Je(n.onPointerUp, (O) => {
2076
- const W = O.target;
2077
- W.hasPointerCapture(O.pointerId) && W.releasePointerCapture(O.pointerId), document.body.style.webkitUserSelect = b.current, m.viewport && (m.viewport.style.scrollBehavior = ""), R.current = null;
2074
+ onPointerMove: Ze(n.onPointerMove, z),
2075
+ onPointerUp: Ze(n.onPointerUp, (O) => {
2076
+ const j = O.target;
2077
+ j.hasPointerCapture(O.pointerId) && j.releasePointerCapture(O.pointerId), document.body.style.webkitUserSelect = g.current, m.viewport && (m.viewport.style.scrollBehavior = ""), p.current = null;
2078
2078
  })
2079
2079
  }
2080
2080
  )
2081
2081
  }
2082
2082
  );
2083
- }), qt = "ScrollAreaThumb", Sr = g.forwardRef(
2083
+ }), Jt = "ScrollAreaThumb", Sr = b.forwardRef(
2084
2084
  (n, e) => {
2085
- const { forceMount: t, ...r } = n, s = vr(qt, n.__scopeScrollArea);
2086
- return /* @__PURE__ */ x.jsx(Wt, { present: t || s.hasThumb, children: /* @__PURE__ */ x.jsx(uo, { ref: e, ...r }) });
2085
+ const { forceMount: t, ...r } = n, s = vr(Jt, n.__scopeScrollArea);
2086
+ return /* @__PURE__ */ R.jsx(zt, { present: t || s.hasThumb, children: /* @__PURE__ */ R.jsx(fo, { ref: e, ...r }) });
2087
2087
  }
2088
- ), uo = g.forwardRef(
2088
+ ), fo = b.forwardRef(
2089
2089
  (n, e) => {
2090
- const { __scopeScrollArea: t, style: r, ...s } = n, o = Ee(qt, t), i = vr(qt, t), { onThumbPositionChange: c } = i, a = Ze(
2090
+ const { __scopeScrollArea: t, style: r, ...s } = n, o = Ee(Jt, t), i = vr(Jt, t), { onThumbPositionChange: c } = i, a = Qe(
2091
2091
  e,
2092
2092
  (h) => i.onThumbChange(h)
2093
- ), u = g.useRef(void 0), l = tn(() => {
2093
+ ), u = b.useRef(void 0), l = nn(() => {
2094
2094
  u.current && (u.current(), u.current = void 0);
2095
2095
  }, 100);
2096
- return g.useEffect(() => {
2096
+ return b.useEffect(() => {
2097
2097
  const h = o.viewport;
2098
2098
  if (h) {
2099
2099
  const d = () => {
2100
2100
  if (l(), !u.current) {
2101
- const m = mo(h, c);
2101
+ const m = po(h, c);
2102
2102
  u.current = m, c();
2103
2103
  }
2104
2104
  };
2105
2105
  return c(), h.addEventListener("scroll", d), () => h.removeEventListener("scroll", d);
2106
2106
  }
2107
- }, [o.viewport, l, c]), /* @__PURE__ */ x.jsx(
2108
- kt.div,
2107
+ }, [o.viewport, l, c]), /* @__PURE__ */ R.jsx(
2108
+ Wt.div,
2109
2109
  {
2110
2110
  "data-state": i.hasThumb ? "visible" : "hidden",
2111
2111
  ...s,
@@ -2115,33 +2115,33 @@ var oo = g.forwardRef((n, e) => {
2115
2115
  height: "var(--radix-scroll-area-thumb-height)",
2116
2116
  ...r
2117
2117
  },
2118
- onPointerDownCapture: Je(n.onPointerDownCapture, (h) => {
2119
- const m = h.target.getBoundingClientRect(), w = h.clientX - m.left, v = h.clientY - m.top;
2120
- i.onThumbPointerDown({ x: w, y: v });
2118
+ onPointerDownCapture: Ze(n.onPointerDownCapture, (h) => {
2119
+ const m = h.target.getBoundingClientRect(), E = h.clientX - m.left, S = h.clientY - m.top;
2120
+ i.onThumbPointerDown({ x: E, y: S });
2121
2121
  }),
2122
- onPointerUp: Je(n.onPointerUp, i.onThumbPointerUp)
2122
+ onPointerUp: Ze(n.onPointerUp, i.onThumbPointerUp)
2123
2123
  }
2124
2124
  );
2125
2125
  }
2126
2126
  );
2127
- Sr.displayName = qt;
2128
- var wn = "ScrollAreaCorner", _r = g.forwardRef(
2127
+ Sr.displayName = Jt;
2128
+ var wn = "ScrollAreaCorner", _r = b.forwardRef(
2129
2129
  (n, e) => {
2130
2130
  const t = Ee(wn, n.__scopeScrollArea), r = !!(t.scrollbarX && t.scrollbarY);
2131
- return t.type !== "scroll" && r ? /* @__PURE__ */ x.jsx(fo, { ...n, ref: e }) : null;
2131
+ return t.type !== "scroll" && r ? /* @__PURE__ */ R.jsx(ho, { ...n, ref: e }) : null;
2132
2132
  }
2133
2133
  );
2134
2134
  _r.displayName = wn;
2135
- var fo = g.forwardRef((n, e) => {
2136
- const { __scopeScrollArea: t, ...r } = n, s = Ee(wn, t), [o, i] = g.useState(0), [c, a] = g.useState(0), u = !!(o && c);
2137
- return Tt(s.scrollbarX, () => {
2135
+ var ho = b.forwardRef((n, e) => {
2136
+ const { __scopeScrollArea: t, ...r } = n, s = Ee(wn, t), [o, i] = b.useState(0), [c, a] = b.useState(0), u = !!(o && c);
2137
+ return At(s.scrollbarX, () => {
2138
2138
  const l = s.scrollbarX?.offsetHeight || 0;
2139
2139
  s.onCornerHeightChange(l), a(l);
2140
- }), Tt(s.scrollbarY, () => {
2140
+ }), At(s.scrollbarY, () => {
2141
2141
  const l = s.scrollbarY?.offsetWidth || 0;
2142
2142
  s.onCornerWidthChange(l), i(l);
2143
- }), u ? /* @__PURE__ */ x.jsx(
2144
- kt.div,
2143
+ }), u ? /* @__PURE__ */ R.jsx(
2144
+ Wt.div,
2145
2145
  {
2146
2146
  ...r,
2147
2147
  ref: e,
@@ -2157,23 +2157,23 @@ var fo = g.forwardRef((n, e) => {
2157
2157
  }
2158
2158
  ) : null;
2159
2159
  });
2160
- function Jt(n) {
2160
+ function Zt(n) {
2161
2161
  return n ? parseInt(n, 10) : 0;
2162
2162
  }
2163
2163
  function wr(n, e) {
2164
2164
  const t = n / e;
2165
2165
  return isNaN(t) ? 0 : t;
2166
2166
  }
2167
- function en(n) {
2167
+ function tn(n) {
2168
2168
  const e = wr(n.viewport, n.content), t = n.scrollbar.paddingStart + n.scrollbar.paddingEnd, r = (n.scrollbar.size - t) * e;
2169
2169
  return Math.max(r, 18);
2170
2170
  }
2171
- function ho(n, e, t, r = "ltr") {
2172
- const s = en(t), o = s / 2, i = e || o, c = s - i, a = t.scrollbar.paddingStart + i, u = t.scrollbar.size - t.scrollbar.paddingEnd - c, l = t.content - t.viewport, h = r === "ltr" ? [0, l] : [l * -1, 0];
2171
+ function mo(n, e, t, r = "ltr") {
2172
+ const s = tn(t), o = s / 2, i = e || o, c = s - i, a = t.scrollbar.paddingStart + i, u = t.scrollbar.size - t.scrollbar.paddingEnd - c, l = t.content - t.viewport, h = r === "ltr" ? [0, l] : [l * -1, 0];
2173
2173
  return Er([a, u], h)(n);
2174
2174
  }
2175
2175
  function Bn(n, e, t = "ltr") {
2176
- const r = en(e), s = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, o = e.scrollbar.size - s, i = e.content - e.viewport, c = o - r, a = t === "ltr" ? [0, i] : [i * -1, 0], u = no(n, a);
2176
+ const r = tn(e), s = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, o = e.scrollbar.size - s, i = e.content - e.viewport, c = o - r, a = t === "ltr" ? [0, i] : [i * -1, 0], u = ro(n, a);
2177
2177
  return Er([0, i], [0, c])(u);
2178
2178
  }
2179
2179
  function Er(n, e) {
@@ -2186,7 +2186,7 @@ function Er(n, e) {
2186
2186
  function yr(n, e) {
2187
2187
  return n > 0 && n < e;
2188
2188
  }
2189
- var mo = (n, e = () => {
2189
+ var po = (n, e = () => {
2190
2190
  }) => {
2191
2191
  let t = { left: n.scrollLeft, top: n.scrollTop }, r = 0;
2192
2192
  return (function s() {
@@ -2194,15 +2194,15 @@ var mo = (n, e = () => {
2194
2194
  (i || c) && e(), t = o, r = window.requestAnimationFrame(s);
2195
2195
  })(), () => window.cancelAnimationFrame(r);
2196
2196
  };
2197
- function tn(n, e) {
2198
- const t = Ke(n), r = g.useRef(0);
2199
- return g.useEffect(() => () => window.clearTimeout(r.current), []), g.useCallback(() => {
2197
+ function nn(n, e) {
2198
+ const t = qe(n), r = b.useRef(0);
2199
+ return b.useEffect(() => () => window.clearTimeout(r.current), []), b.useCallback(() => {
2200
2200
  window.clearTimeout(r.current), r.current = window.setTimeout(t, e);
2201
2201
  }, [t, e]);
2202
2202
  }
2203
- function Tt(n, e) {
2204
- const t = Ke(e);
2205
- pn(() => {
2203
+ function At(n, e) {
2204
+ const t = qe(e);
2205
+ gn(() => {
2206
2206
  let r = 0;
2207
2207
  if (n) {
2208
2208
  const s = new ResizeObserver(() => {
@@ -2214,8 +2214,8 @@ function Tt(n, e) {
2214
2214
  }
2215
2215
  }, [n, t]);
2216
2216
  }
2217
- var po = dr, go = mr, vo = _r;
2218
- const ln = (n, e, t, r, s) => ({
2217
+ var go = dr, vo = mr, bo = _r;
2218
+ const un = (n, e, t, r, s) => ({
2219
2219
  target: n,
2220
2220
  dx: e[0],
2221
2221
  dy: e[1],
@@ -2227,7 +2227,7 @@ const ln = (n, e, t, r, s) => ({
2227
2227
  ...s && {
2228
2228
  deltaRect: s
2229
2229
  }
2230
- }), bo = (n, e, t) => n ? n === e || n === t || (e?.contains(n) ?? !1) || (t?.contains(n) ?? !1) : !1, So = (n) => {
2230
+ }), So = (n, e, t) => n ? n === e || n === t || (e?.contains(n) ?? !1) || (t?.contains(n) ?? !1) : !1, _o = (n) => {
2231
2231
  const e = Pe.c(34), {
2232
2232
  children: t,
2233
2233
  style: r,
@@ -2236,120 +2236,120 @@ const ln = (n, e, t, r, s) => ({
2236
2236
  draggableOptions: i,
2237
2237
  resizableOptions: c,
2238
2238
  ref: a
2239
- } = n, u = ce(void 0), l = ce(void 0), h = ce(null), d = ce(null), m = ce(void 0), w = ce(void 0);
2240
- let v, p;
2241
- e[0] !== i || e[1] !== a || e[2] !== c ? (v = () => {
2239
+ } = n, u = ne(void 0), l = ne(void 0), h = ne(null), d = ne(null), m = ne(void 0), E = ne(void 0);
2240
+ let S, _;
2241
+ e[0] !== i || e[1] !== a || e[2] !== c ? (S = () => {
2242
2242
  if (u.current = i, l.current = c, !a?.current)
2243
2243
  return;
2244
- const E = c?.edges?.left, A = c?.edges?.right;
2245
- E && E !== m.current && (m.current = E, h.current = a.current.querySelector(E)), A && A !== w.current && (w.current = A, d.current = a.current.querySelector(A));
2246
- }, p = [i, a, c], e[0] = i, e[1] = a, e[2] = c, e[3] = v, e[4] = p) : (v = e[3], p = e[4]), Ct(v, p);
2247
- let R;
2248
- e[5] !== a ? (R = (E) => {
2244
+ const C = c?.edges?.left, M = c?.edges?.right;
2245
+ C && C !== m.current && (m.current = C, h.current = a.current.querySelector(C)), M && M !== E.current && (E.current = M, d.current = a.current.querySelector(M));
2246
+ }, _ = [i, a, c], e[0] = i, e[1] = a, e[2] = c, e[3] = S, e[4] = _) : (S = e[3], _ = e[4]), Tt(S, _);
2247
+ let p;
2248
+ e[5] !== a ? (p = (C) => {
2249
2249
  const {
2250
- active: A,
2251
- delta: M,
2252
- xy: Z,
2253
- event: ee,
2250
+ active: M,
2251
+ delta: G,
2252
+ xy: ee,
2253
+ event: re,
2254
2254
  first: f,
2255
- last: y
2256
- } = E, N = a?.current;
2257
- if (!N || bo(ee?.target, h.current, d.current))
2255
+ last: x
2256
+ } = C, D = a?.current;
2257
+ if (!D || So(re?.target, h.current, d.current))
2258
2258
  return;
2259
- const H = ln(N, M, Z);
2260
- f ? u.current?.onstart?.(H) : y ? u.current?.onend?.(H) : A && u.current?.onmove?.(H);
2261
- }, e[5] = a, e[6] = R) : R = e[6];
2262
- const b = i?.lockAxis === "x" ? "x" : void 0;
2263
- let S;
2264
- e[7] === Symbol.for("react.memo_cache_sentinel") ? (S = {
2259
+ const W = un(D, G, ee);
2260
+ f ? u.current?.onstart?.(W) : x ? u.current?.onend?.(W) : M && u.current?.onmove?.(W);
2261
+ }, e[5] = a, e[6] = p) : p = e[6];
2262
+ const g = i?.lockAxis === "x" ? "x" : void 0;
2263
+ let v;
2264
+ e[7] === Symbol.for("react.memo_cache_sentinel") ? (v = {
2265
2265
  capture: !0
2266
- }, e[7] = S) : S = e[7];
2267
- let _;
2268
- e[8] !== s || e[9] !== a || e[10] !== b ? (_ = {
2266
+ }, e[7] = v) : v = e[7];
2267
+ let w;
2268
+ e[8] !== s || e[9] !== a || e[10] !== g ? (w = {
2269
2269
  enabled: s,
2270
- axis: b,
2271
- pointer: S,
2270
+ axis: g,
2271
+ pointer: v,
2272
2272
  target: a,
2273
2273
  threshold: 0
2274
- }, e[8] = s, e[9] = a, e[10] = b, e[11] = _) : _ = e[11], an(R, _);
2275
- let P;
2276
- e[12] !== a ? (P = (E) => {
2274
+ }, e[8] = s, e[9] = a, e[10] = g, e[11] = w) : w = e[11], ln(p, w);
2275
+ let T;
2276
+ e[12] !== a ? (T = (C) => {
2277
2277
  const {
2278
- active: A,
2279
- delta: M,
2280
- xy: Z,
2281
- first: ee,
2278
+ active: M,
2279
+ delta: G,
2280
+ xy: ee,
2281
+ first: re,
2282
2282
  last: f
2283
- } = E, y = a?.current;
2284
- if (!y)
2283
+ } = C, x = a?.current;
2284
+ if (!x)
2285
2285
  return;
2286
- const N = ln(y, M, Z, {
2286
+ const D = un(x, G, ee, {
2287
2287
  left: !0
2288
2288
  }, {
2289
- left: M[0]
2289
+ left: G[0]
2290
2290
  });
2291
- ee ? l.current?.onstart?.(N) : f ? l.current?.onend?.(N) : A && l.current?.onmove?.(N);
2292
- }, e[12] = a, e[13] = P) : P = e[13];
2293
- let T;
2294
- e[14] === Symbol.for("react.memo_cache_sentinel") ? (T = {
2291
+ re ? l.current?.onstart?.(D) : f ? l.current?.onend?.(D) : M && l.current?.onmove?.(D);
2292
+ }, e[12] = a, e[13] = T) : T = e[13];
2293
+ let y;
2294
+ e[14] === Symbol.for("react.memo_cache_sentinel") ? (y = {
2295
2295
  capture: !0
2296
- }, e[14] = T) : T = e[14];
2297
- let D;
2298
- e[15] !== o ? (D = {
2296
+ }, e[14] = y) : y = e[14];
2297
+ let A;
2298
+ e[15] !== o ? (A = {
2299
2299
  enabled: o,
2300
2300
  target: h,
2301
- pointer: T,
2301
+ pointer: y,
2302
2302
  threshold: 0
2303
- }, e[15] = o, e[16] = D) : D = e[16], an(P, D);
2304
- let U;
2305
- e[17] !== a ? (U = (E) => {
2303
+ }, e[15] = o, e[16] = A) : A = e[16], ln(T, A);
2304
+ let z;
2305
+ e[17] !== a ? (z = (C) => {
2306
2306
  const {
2307
- active: A,
2308
- delta: M,
2309
- xy: Z,
2310
- first: ee,
2307
+ active: M,
2308
+ delta: G,
2309
+ xy: ee,
2310
+ first: re,
2311
2311
  last: f
2312
- } = E, y = a?.current;
2313
- if (!y)
2312
+ } = C, x = a?.current;
2313
+ if (!x)
2314
2314
  return;
2315
- const N = ln(y, M, Z, {
2315
+ const D = un(x, G, ee, {
2316
2316
  right: !0
2317
2317
  }, {
2318
- right: M[0]
2318
+ right: G[0]
2319
2319
  });
2320
- ee ? l.current?.onstart?.(N) : f ? l.current?.onend?.(N) : A && l.current?.onmove?.(N);
2321
- }, e[17] = a, e[18] = U) : U = e[18];
2320
+ re ? l.current?.onstart?.(D) : f ? l.current?.onend?.(D) : M && l.current?.onmove?.(D);
2321
+ }, e[17] = a, e[18] = z) : z = e[18];
2322
2322
  let O;
2323
2323
  e[19] === Symbol.for("react.memo_cache_sentinel") ? (O = {
2324
2324
  capture: !0
2325
2325
  }, e[19] = O) : O = e[19];
2326
- let W;
2327
- e[20] !== o ? (W = {
2326
+ let j;
2327
+ e[20] !== o ? (j = {
2328
2328
  enabled: o,
2329
2329
  target: d,
2330
2330
  pointer: O,
2331
2331
  threshold: 0
2332
- }, e[20] = o, e[21] = W) : W = e[21], an(U, W);
2333
- let z, Y;
2334
- e[22] !== a ? (z = () => {
2335
- const E = a?.current;
2336
- if (!E)
2332
+ }, e[20] = o, e[21] = j) : j = e[21], ln(z, j);
2333
+ let F, q;
2334
+ e[22] !== a ? (F = () => {
2335
+ const C = a?.current;
2336
+ if (!C)
2337
2337
  return;
2338
- const A = l.current?.edges?.left, M = l.current?.edges?.right;
2339
- A && (h.current = E.querySelector(A)), M && (d.current = E.querySelector(M));
2340
- }, Y = [a], e[22] = a, e[23] = z, e[24] = Y) : (z = e[23], Y = e[24]), gn(z, Y);
2341
- let C;
2342
- e[25] !== s ? (C = s ? {
2338
+ const M = l.current?.edges?.left, G = l.current?.edges?.right;
2339
+ M && (h.current = C.querySelector(M)), G && (d.current = C.querySelector(G));
2340
+ }, q = [a], e[22] = a, e[23] = F, e[24] = q) : (F = e[23], q = e[24]), Nt(F, q);
2341
+ let V;
2342
+ e[25] !== s ? (V = s ? {
2343
2343
  touchAction: "none"
2344
- } : {}, e[25] = s, e[26] = C) : C = e[26];
2345
- let j;
2346
- e[27] !== r || e[28] !== C ? (j = {
2347
- ...C,
2344
+ } : {}, e[25] = s, e[26] = V) : V = e[26];
2345
+ let J;
2346
+ e[27] !== r || e[28] !== V ? (J = {
2347
+ ...V,
2348
2348
  ...r
2349
- }, e[27] = r, e[28] = C, e[29] = j) : j = e[29];
2350
- let I;
2351
- return e[30] !== t || e[31] !== a || e[32] !== j ? (I = /* @__PURE__ */ x.jsx(Us, { ref: a, style: j, draggable: !1, children: t }), e[30] = t, e[31] = a, e[32] = j, e[33] = I) : I = e[33], I;
2352
- }, be = (n, e = 0) => n ? parseFloat(n) : e, un = (n, e, t, r = Number.MAX_SAFE_INTEGER) => {
2349
+ }, e[27] = r, e[28] = V, e[29] = J) : J = e[29];
2350
+ let U;
2351
+ return e[30] !== t || e[31] !== a || e[32] !== J ? (U = /* @__PURE__ */ R.jsx($s, { ref: a, style: J, draggable: !1, children: t }), e[30] = t, e[31] = a, e[32] = J, e[33] = U) : U = e[33], U;
2352
+ }, be = (n, e = 0) => n ? parseFloat(n) : e, fn = (n, e, t, r = Number.MAX_SAFE_INTEGER) => {
2353
2353
  let s = n, o = r;
2354
2354
  for (const i of e) {
2355
2355
  const c = Math.abs(i - n);
@@ -2359,7 +2359,7 @@ const ln = (n, e, t, r, s) => ({
2359
2359
  snap: s,
2360
2360
  minDis: o
2361
2361
  };
2362
- }, xr = qe.forwardRef((n, e) => {
2362
+ }, Rr = Je.forwardRef((n, e) => {
2363
2363
  const t = Pe.c(68), {
2364
2364
  children: r,
2365
2365
  edges: s,
@@ -2372,271 +2372,271 @@ const ln = (n, e, t, r, s) => ({
2372
2372
  enableDragging: h,
2373
2373
  snapDistance: d,
2374
2374
  snapPositions: m,
2375
- onResizeStart: w,
2376
- onResize: v,
2377
- onResizeEnd: p,
2378
- onDragStart: R,
2379
- onDragEnd: b,
2380
- onDrag: S,
2381
- parentRef: _,
2382
- autoScroll: P
2383
- } = n, T = c === void 0 ? Zt : c, D = a === void 0 ? dn : a, U = u === void 0 ? _o : u, O = l === void 0 ? !0 : l, W = h === void 0 ? !0 : h, z = d === void 0 ? hn : d;
2384
- let Y;
2385
- t[0] !== m ? (Y = m === void 0 ? [] : m, t[0] = m, t[1] = Y) : Y = t[1];
2386
- const C = Y, j = P === void 0 ? !0 : P, I = ce(null), E = ce(0), A = ce(!1), {
2387
- initAutoScroll: M,
2388
- stopAutoScroll: Z,
2389
- dealDragAutoScroll: ee,
2375
+ onResizeStart: E,
2376
+ onResize: S,
2377
+ onResizeEnd: _,
2378
+ onDragStart: p,
2379
+ onDragEnd: g,
2380
+ onDrag: v,
2381
+ parentRef: w,
2382
+ autoScroll: T
2383
+ } = n, y = c === void 0 ? Qt : c, A = a === void 0 ? hn : a, z = u === void 0 ? wo : u, O = l === void 0 ? !0 : l, j = h === void 0 ? !0 : h, F = d === void 0 ? mn : d;
2384
+ let q;
2385
+ t[0] !== m ? (q = m === void 0 ? [] : m, t[0] = m, t[1] = q) : q = t[1];
2386
+ const V = q, J = T === void 0 ? !0 : T, U = ne(null), C = ne(0), M = ne(!1), {
2387
+ initAutoScroll: G,
2388
+ stopAutoScroll: ee,
2389
+ dealDragAutoScroll: re,
2390
2390
  dealResizeAutoScroll: f
2391
- } = Jr(_);
2392
- let y;
2393
- t[2] === Symbol.for("react.memo_cache_sentinel") ? (y = (V, q) => {
2394
- const G = q === void 0 ? !0 : q;
2395
- if (!I.current)
2391
+ } = Zr(w);
2392
+ let x;
2393
+ t[2] === Symbol.for("react.memo_cache_sentinel") ? (x = (I, X) => {
2394
+ const B = X === void 0 ? !0 : X;
2395
+ if (!U.current)
2396
2396
  return;
2397
- G && (E.current = 0);
2398
- const K = I.current;
2399
- K.style.left = `${V}px`, K.dataset.left = String(V);
2400
- }, t[2] = y) : y = t[2];
2401
- const N = y;
2402
- let H;
2403
- t[3] === Symbol.for("react.memo_cache_sentinel") ? (H = (V, q) => {
2404
- const G = q === void 0 ? !0 : q;
2405
- if (!I.current)
2397
+ B && (C.current = 0);
2398
+ const Y = U.current;
2399
+ Y.style.left = `${I}px`, Y.dataset.left = String(I);
2400
+ }, t[2] = x) : x = t[2];
2401
+ const D = x;
2402
+ let W;
2403
+ t[3] === Symbol.for("react.memo_cache_sentinel") ? (W = (I, X) => {
2404
+ const B = X === void 0 ? !0 : X;
2405
+ if (!U.current)
2406
2406
  return;
2407
- G && (E.current = 0);
2408
- const K = I.current;
2409
- K.style.width = `${V}px`, K.dataset.width = String(V);
2410
- }, t[3] = H) : H = t[3];
2411
- const Q = H;
2412
- let X;
2413
- t[4] === Symbol.for("react.memo_cache_sentinel") ? (X = () => I.current ? be(I.current.dataset.left) : 0, t[4] = X) : X = t[4];
2414
- const B = X;
2415
- let L;
2416
- t[5] === Symbol.for("react.memo_cache_sentinel") ? (L = () => I.current ? be(I.current.dataset.width) : 0, t[5] = L) : L = t[5];
2417
- const k = L;
2418
- let $, Qe;
2419
- t[6] !== i ? ($ = () => {
2420
- if (!I.current)
2407
+ B && (C.current = 0);
2408
+ const Y = U.current;
2409
+ Y.style.width = `${I}px`, Y.dataset.width = String(I);
2410
+ }, t[3] = W) : W = t[3];
2411
+ const Z = W;
2412
+ let H;
2413
+ t[4] === Symbol.for("react.memo_cache_sentinel") ? (H = () => U.current ? be(U.current.dataset.left) : 0, t[4] = H) : H = t[4];
2414
+ const $ = H;
2415
+ let P;
2416
+ t[5] === Symbol.for("react.memo_cache_sentinel") ? (P = () => U.current ? be(U.current.dataset.width) : 0, t[5] = P) : P = t[5];
2417
+ const L = P;
2418
+ let k, et;
2419
+ t[6] !== i ? (k = () => {
2420
+ if (!U.current)
2421
2421
  return;
2422
- const V = I.current;
2423
- Q(typeof i > "u" ? V.offsetWidth : i, !1);
2424
- }, Qe = [i], t[6] = i, t[7] = $, t[8] = Qe) : ($ = t[7], Qe = t[8]), Ct($, Qe);
2425
- let et, We;
2426
- t[9] !== o ? (et = () => {
2427
- N(o || 0, !1);
2428
- }, We = [o], t[9] = o, t[10] = et, t[11] = We) : (et = t[10], We = t[11]), Ct(et, We);
2422
+ const I = U.current;
2423
+ Z(typeof i > "u" ? I.offsetWidth : i, !1);
2424
+ }, et = [i], t[6] = i, t[7] = k, t[8] = et) : (k = t[7], et = t[8]), Tt(k, et);
2425
+ let tt, We;
2426
+ t[9] !== o ? (tt = () => {
2427
+ D(o || 0, !1);
2428
+ }, We = [o], t[9] = o, t[10] = tt, t[11] = We) : (tt = t[10], We = t[11]), Tt(tt, We);
2429
2429
  let Le;
2430
2430
  t[12] === Symbol.for("react.memo_cache_sentinel") ? (Le = () => ({
2431
- updateLeft: (V) => N(V || 0, !1),
2432
- updateWidth: (V) => Q(V, !1),
2433
- getLeft: B,
2434
- getWidth: k
2431
+ updateLeft: (I) => D(I || 0, !1),
2432
+ updateWidth: (I) => Z(I, !1),
2433
+ getLeft: $,
2434
+ getWidth: L
2435
2435
  }), t[12] = Le) : Le = t[12], Zn(e, Le);
2436
- let Re;
2437
- t[13] !== M || t[14] !== R ? (Re = () => {
2438
- E.current = 0, A.current = !1, M(), R?.();
2439
- }, t[13] = M, t[14] = R, t[15] = Re) : Re = t[15];
2440
- const Ye = Re;
2436
+ let xe;
2437
+ t[13] !== G || t[14] !== p ? (xe = () => {
2438
+ C.current = 0, M.current = !1, G(), p?.();
2439
+ }, t[13] = G, t[14] = p, t[15] = xe) : xe = t[15];
2440
+ const Xe = xe;
2441
2441
  let Oe;
2442
- t[16] !== U || t[17] !== D || t[18] !== S || t[19] !== z || t[20] !== C || t[21] !== T ? (Oe = (V) => {
2442
+ t[16] !== z || t[17] !== A || t[18] !== v || t[19] !== F || t[20] !== V || t[21] !== y ? (Oe = (I) => {
2443
2443
  const {
2444
- preLeft: q,
2445
- preWidth: G,
2446
- scrollDelta: K
2447
- } = V;
2448
- K && (E.current = E.current + K);
2449
- const he = A.current ? z : D;
2450
- if (Math.abs(E.current) < he)
2444
+ preLeft: X,
2445
+ preWidth: B,
2446
+ scrollDelta: Y
2447
+ } = I;
2448
+ Y && (C.current = C.current + Y);
2449
+ const he = M.current ? F : A;
2450
+ if (Math.abs(C.current) < he)
2451
2451
  return;
2452
- const me = Math.trunc(E.current / he);
2453
- let J = q + me * he;
2454
- const re = E.current > 0, F = re ? J + G : J, {
2455
- snap: ne
2456
- } = un(F, C, z);
2457
- if (ne !== F)
2458
- A.current = !0, J = re ? ne - G : ne;
2452
+ const me = Math.trunc(C.current / he);
2453
+ let K = X + me * he;
2454
+ const se = C.current > 0, N = se ? K + B : K, {
2455
+ snap: te
2456
+ } = fn(N, V, F);
2457
+ if (te !== N)
2458
+ M.current = !0, K = se ? te - B : te;
2459
2459
  else {
2460
- const ae = J - T;
2461
- ae % D !== 0 && (J = T + D * Math.round(ae / D)), A.current = !1;
2460
+ const ae = K - y;
2461
+ ae % A !== 0 && (K = y + A * Math.round(ae / A)), M.current = !1;
2462
2462
  }
2463
- E.current = E.current % he;
2464
- const se = U();
2465
- J < se.left ? J = se.left : J + G > se.right && (J = se.right - G), !(S && S({
2466
- lastLeft: q,
2467
- left: J,
2468
- lastWidth: G,
2469
- width: G
2470
- }, K) === !1) && N(J, !1);
2471
- }, t[16] = U, t[17] = D, t[18] = S, t[19] = z, t[20] = C, t[21] = T, t[22] = Oe) : Oe = t[22];
2463
+ C.current = C.current % he;
2464
+ const oe = z();
2465
+ K < oe.left ? K = oe.left : K + B > oe.right && (K = oe.right - B), !(v && v({
2466
+ lastLeft: X,
2467
+ left: K,
2468
+ lastWidth: B,
2469
+ width: B
2470
+ }, Y) === !1) && D(K, !1);
2471
+ }, t[16] = z, t[17] = A, t[18] = v, t[19] = F, t[20] = V, t[21] = y, t[22] = Oe) : Oe = t[22];
2472
2472
  const Ce = Oe;
2473
2473
  let Me;
2474
- t[23] !== j || t[24] !== ee || t[25] !== Ce || t[26] !== _ ? (Me = (V) => {
2475
- const q = V.target, G = be(q.dataset.left), K = be(q.dataset.width);
2476
- E.current = E.current + V.dx, !(j && _?.current && !ee(V, (J) => {
2477
- if (!_?.current || !I.current)
2474
+ t[23] !== J || t[24] !== re || t[25] !== Ce || t[26] !== w ? (Me = (I) => {
2475
+ const X = I.target, B = be(X.dataset.left), Y = be(X.dataset.width);
2476
+ C.current = C.current + I.dx, !(J && w?.current && !re(I, (K) => {
2477
+ if (!w?.current || !U.current)
2478
2478
  return;
2479
- _.current.scrollLeft = _.current.scrollLeft + J;
2480
- const re = I.current, F = be(re.dataset.left), ne = be(re.dataset.width);
2479
+ w.current.scrollLeft = w.current.scrollLeft + K;
2480
+ const se = U.current, N = be(se.dataset.left), te = be(se.dataset.width);
2481
2481
  Ce({
2482
- preLeft: F,
2483
- preWidth: ne,
2484
- scrollDelta: J
2482
+ preLeft: N,
2483
+ preWidth: te,
2484
+ scrollDelta: K
2485
2485
  });
2486
2486
  })) && Ce({
2487
- preLeft: G,
2488
- preWidth: K
2487
+ preLeft: B,
2488
+ preWidth: Y
2489
2489
  });
2490
- }, t[23] = j, t[24] = ee, t[25] = Ce, t[26] = _, t[27] = Me) : Me = t[27];
2490
+ }, t[23] = J, t[24] = re, t[25] = Ce, t[26] = w, t[27] = Me) : Me = t[27];
2491
2491
  const Pt = Me;
2492
- let tt;
2493
- t[28] !== b || t[29] !== Z ? (tt = (V) => {
2494
- E.current = 0, A.current = !1, Z();
2495
- const q = V.target;
2496
- b?.({
2497
- left: be(q.dataset.left),
2498
- width: be(q.dataset.width)
2492
+ let nt;
2493
+ t[28] !== g || t[29] !== ee ? (nt = (I) => {
2494
+ C.current = 0, M.current = !1, ee();
2495
+ const X = I.target;
2496
+ g?.({
2497
+ left: be(X.dataset.left),
2498
+ width: be(X.dataset.width)
2499
2499
  });
2500
- }, t[28] = b, t[29] = Z, t[30] = tt) : tt = t[30];
2501
- const ze = tt;
2500
+ }, t[28] = g, t[29] = ee, t[30] = nt) : nt = t[30];
2501
+ const ze = nt;
2502
2502
  let _e;
2503
- t[31] !== M || t[32] !== w ? (_e = (V) => {
2504
- E.current = 0, A.current = !1, M();
2505
- const q = V.edges?.right ? "right" : "left";
2506
- w?.(q);
2507
- }, t[31] = M, t[32] = w, t[33] = _e) : _e = t[33];
2503
+ t[31] !== G || t[32] !== E ? (_e = (I) => {
2504
+ C.current = 0, M.current = !1, G();
2505
+ const X = I.edges?.right ? "right" : "left";
2506
+ E?.(X);
2507
+ }, t[31] = G, t[32] = E, t[33] = _e) : _e = t[33];
2508
2508
  const je = _e;
2509
2509
  let Ne;
2510
- t[34] !== U || t[35] !== D || t[36] !== v || t[37] !== z || t[38] !== C || t[39] !== T ? (Ne = (V) => {
2510
+ t[34] !== z || t[35] !== A || t[36] !== S || t[37] !== F || t[38] !== V || t[39] !== y ? (Ne = (I) => {
2511
2511
  const {
2512
- dir: q,
2513
- preWidth: G,
2514
- preLeft: K,
2512
+ dir: X,
2513
+ preWidth: B,
2514
+ preLeft: Y,
2515
2515
  scrollDelta: he
2516
- } = V;
2517
- he && (E.current = E.current + he);
2518
- const me = A.current ? z : D;
2519
- if (Math.abs(E.current) < me)
2516
+ } = I;
2517
+ he && (C.current = C.current + he);
2518
+ const me = M.current ? F : A;
2519
+ if (Math.abs(C.current) < me)
2520
2520
  return;
2521
- const J = U();
2522
- if (q === "left") {
2523
- const re = Math.trunc(E.current / me);
2524
- let F = K + re * me;
2521
+ const K = z();
2522
+ if (X === "left") {
2523
+ const se = Math.trunc(C.current / me);
2524
+ let N = Y + se * me;
2525
2525
  const {
2526
- snap: ne
2527
- } = un(F, C, z);
2528
- if (ne !== F)
2529
- A.current = !0, F = ne;
2526
+ snap: te
2527
+ } = fn(N, V, F);
2528
+ if (te !== N)
2529
+ M.current = !0, N = te;
2530
2530
  else {
2531
- const pe = F - T;
2532
- pe % D !== 0 && (F = T + D * Math.round(pe / D)), A.current = !1;
2531
+ const pe = N - y;
2532
+ pe % A !== 0 && (N = y + A * Math.round(pe / A)), M.current = !1;
2533
2533
  }
2534
- E.current = E.current % me, F < J.left && (F = J.left);
2535
- const se = K + G, ae = se - F;
2536
- if (F >= se || v && v("left", {
2537
- lastLeft: K,
2538
- lastWidth: G,
2539
- left: F,
2534
+ C.current = C.current % me, N < K.left && (N = K.left);
2535
+ const oe = Y + B, ae = oe - N;
2536
+ if (N >= oe || S && S("left", {
2537
+ lastLeft: Y,
2538
+ lastWidth: B,
2539
+ left: N,
2540
2540
  width: ae
2541
2541
  }) === !1)
2542
2542
  return;
2543
- N(F, !1), Q(ae, !1);
2543
+ D(N, !1), Z(ae, !1);
2544
2544
  } else {
2545
- const re = Math.trunc(E.current / me);
2546
- let F = G + re * me;
2547
- const ne = K + F, {
2548
- snap: se
2549
- } = un(ne, C, z);
2550
- if (se !== ne)
2551
- A.current = !0, F = se - K;
2545
+ const se = Math.trunc(C.current / me);
2546
+ let N = B + se * me;
2547
+ const te = Y + N, {
2548
+ snap: oe
2549
+ } = fn(te, V, F);
2550
+ if (oe !== te)
2551
+ M.current = !0, N = oe - Y;
2552
2552
  else {
2553
- let ae = K + F;
2554
- const pe = ae - T;
2555
- pe % D !== 0 && (ae = T + D * Math.round(pe / D), F = ae - K), A.current = !1;
2553
+ let ae = Y + N;
2554
+ const pe = ae - y;
2555
+ pe % A !== 0 && (ae = y + A * Math.round(pe / A), N = ae - Y), M.current = !1;
2556
2556
  }
2557
- if (E.current = E.current % me, K + F > J.right && (F = J.right - K), F <= 0 || v && v("right", {
2558
- lastLeft: K,
2559
- lastWidth: G,
2560
- left: K,
2561
- width: F
2557
+ if (C.current = C.current % me, Y + N > K.right && (N = K.right - Y), N <= 0 || S && S("right", {
2558
+ lastLeft: Y,
2559
+ lastWidth: B,
2560
+ left: Y,
2561
+ width: N
2562
2562
  }) === !1)
2563
2563
  return;
2564
- Q(F, !1);
2564
+ Z(N, !1);
2565
2565
  }
2566
- }, t[34] = U, t[35] = D, t[36] = v, t[37] = z, t[38] = C, t[39] = T, t[40] = Ne) : Ne = t[40];
2566
+ }, t[34] = z, t[35] = A, t[36] = S, t[37] = F, t[38] = V, t[39] = y, t[40] = Ne) : Ne = t[40];
2567
2567
  const Fe = Ne;
2568
2568
  let Ie;
2569
- t[41] !== j || t[42] !== f || t[43] !== _ || t[44] !== Fe ? (Ie = (V) => {
2570
- const q = V.target, G = V.edges?.left ? "left" : "right", K = be(q.dataset.left), he = be(q.dataset.width);
2571
- E.current = E.current + (G === "left" ? V.deltaRect?.left || 0 : V.deltaRect?.right || 0), !(j && _?.current && !f(V, G, (re) => {
2572
- if (!_?.current || !I.current)
2569
+ t[41] !== J || t[42] !== f || t[43] !== w || t[44] !== Fe ? (Ie = (I) => {
2570
+ const X = I.target, B = I.edges?.left ? "left" : "right", Y = be(X.dataset.left), he = be(X.dataset.width);
2571
+ C.current = C.current + (B === "left" ? I.deltaRect?.left || 0 : I.deltaRect?.right || 0), !(J && w?.current && !f(I, B, (se) => {
2572
+ if (!w?.current || !U.current)
2573
2573
  return;
2574
- _.current.scrollLeft = _.current.scrollLeft + re;
2575
- const F = I.current, ne = be(F.dataset.left), se = be(F.dataset.width);
2574
+ w.current.scrollLeft = w.current.scrollLeft + se;
2575
+ const N = U.current, te = be(N.dataset.left), oe = be(N.dataset.width);
2576
2576
  Fe({
2577
- preLeft: ne,
2578
- preWidth: se,
2579
- dir: G,
2580
- scrollDelta: re
2577
+ preLeft: te,
2578
+ preWidth: oe,
2579
+ dir: B,
2580
+ scrollDelta: se
2581
2581
  });
2582
2582
  })) && Fe({
2583
- preLeft: K,
2583
+ preLeft: Y,
2584
2584
  preWidth: he,
2585
- dir: G
2585
+ dir: B
2586
2586
  });
2587
- }, t[41] = j, t[42] = f, t[43] = _, t[44] = Fe, t[45] = Ie) : Ie = t[45];
2588
- const Ae = Ie;
2587
+ }, t[41] = J, t[42] = f, t[43] = w, t[44] = Fe, t[45] = Ie) : Ie = t[45];
2588
+ const Te = Ie;
2589
2589
  let ke;
2590
- t[46] !== p || t[47] !== Z ? (ke = (V) => {
2591
- E.current = 0, A.current = !1, Z();
2592
- const q = V.target, G = V.edges?.right ? "right" : "left";
2593
- p?.(G, {
2594
- left: be(q.dataset.left),
2595
- width: be(q.dataset.width)
2590
+ t[46] !== _ || t[47] !== ee ? (ke = (I) => {
2591
+ C.current = 0, M.current = !1, ee();
2592
+ const X = I.target, B = I.edges?.right ? "right" : "left";
2593
+ _?.(B, {
2594
+ left: be(X.dataset.left),
2595
+ width: be(X.dataset.width)
2596
2596
  });
2597
- }, t[46] = p, t[47] = Z, t[48] = ke) : ke = t[48];
2598
- const Xe = ke;
2597
+ }, t[46] = _, t[47] = ee, t[48] = ke) : ke = t[48];
2598
+ const Ge = ke;
2599
2599
  let ye;
2600
2600
  t[49] !== o || t[50] !== i ? (ye = {
2601
2601
  left: o,
2602
2602
  width: i
2603
2603
  }, t[49] = o, t[50] = i, t[51] = ye) : ye = t[51];
2604
- let Te;
2605
- t[52] !== Pt || t[53] !== Ye || t[54] !== ze ? (Te = {
2604
+ let Ae;
2605
+ t[52] !== Pt || t[53] !== Xe || t[54] !== ze ? (Ae = {
2606
2606
  lockAxis: "x",
2607
2607
  onmove: Pt,
2608
- onstart: Ye,
2608
+ onstart: Xe,
2609
2609
  onend: ze,
2610
- cursorChecker: wo
2611
- }, t[52] = Pt, t[53] = Ye, t[54] = ze, t[55] = Te) : Te = t[55];
2612
- let xe;
2613
- t[56] !== s || t[57] !== Ae || t[58] !== je || t[59] !== Xe ? (xe = {
2610
+ cursorChecker: Eo
2611
+ }, t[52] = Pt, t[53] = Xe, t[54] = ze, t[55] = Ae) : Ae = t[55];
2612
+ let Re;
2613
+ t[56] !== s || t[57] !== Te || t[58] !== je || t[59] !== Ge ? (Re = {
2614
2614
  axis: "x",
2615
2615
  invert: "none",
2616
2616
  edges: s,
2617
- onmove: Ae,
2617
+ onmove: Te,
2618
2618
  onstart: je,
2619
- onend: Xe
2620
- }, t[56] = s, t[57] = Ae, t[58] = je, t[59] = Xe, t[60] = xe) : xe = t[60];
2619
+ onend: Ge
2620
+ }, t[56] = s, t[57] = Te, t[58] = je, t[59] = Ge, t[60] = Re) : Re = t[60];
2621
2621
  let Ve;
2622
- return t[61] !== r || t[62] !== W || t[63] !== O || t[64] !== ye || t[65] !== Te || t[66] !== xe ? (Ve = /* @__PURE__ */ x.jsx(So, { style: ye, ref: I, draggable: W, resizable: O, draggableOptions: Te, resizableOptions: xe, children: r }), t[61] = r, t[62] = W, t[63] = O, t[64] = ye, t[65] = Te, t[66] = xe, t[67] = Ve) : Ve = t[67], Ve;
2622
+ return t[61] !== r || t[62] !== j || t[63] !== O || t[64] !== ye || t[65] !== Ae || t[66] !== Re ? (Ve = /* @__PURE__ */ R.jsx(_o, { style: ye, ref: U, draggable: j, resizable: O, draggableOptions: Ae, resizableOptions: Re, children: r }), t[61] = r, t[62] = j, t[63] = O, t[64] = ye, t[65] = Ae, t[66] = Re, t[67] = Ve) : Ve = t[67], Ve;
2623
2623
  });
2624
- function _o() {
2624
+ function wo() {
2625
2625
  return {
2626
2626
  left: Number.MIN_SAFE_INTEGER,
2627
2627
  right: Number.MAX_SAFE_INTEGER
2628
2628
  };
2629
2629
  }
2630
- function wo() {
2630
+ function Eo() {
2631
2631
  return "";
2632
2632
  }
2633
- function Eo() {
2633
+ function yo() {
2634
2634
  let n = 0, e, t = "", r = arguments.length;
2635
2635
  for (; n < r; n++)
2636
2636
  (e = arguments[n]) && typeof e == "string" && (t += (t && " ") + e);
2637
2637
  return t;
2638
2638
  }
2639
- const yo = (n) => {
2639
+ const Ro = (n) => {
2640
2640
  const e = Pe.c(191), {
2641
2641
  editorData: t,
2642
2642
  row: r,
@@ -2650,313 +2650,312 @@ const yo = (n) => {
2650
2650
  gridSnap: h,
2651
2651
  disableDrag: d,
2652
2652
  scaleCount: m,
2653
- maxScaleCount: w,
2654
- setScaleCount: v,
2655
- onActionMoveStart: p,
2656
- onActionMoving: R,
2657
- onActionMoveEnd: b,
2658
- onActionResizeStart: S,
2659
- onActionResizeEnd: _,
2660
- onActionResizing: P,
2661
- snapData: T,
2662
- setEditorData: D,
2663
- onClickAction: U,
2653
+ maxScaleCount: E,
2654
+ setScaleCount: S,
2655
+ onActionMoveStart: _,
2656
+ onActionMoving: p,
2657
+ onActionMoveEnd: g,
2658
+ onActionResizeStart: v,
2659
+ onActionResizeEnd: w,
2660
+ onActionResizing: T,
2661
+ snapData: y,
2662
+ setEditorData: A,
2663
+ onClickAction: z,
2664
2664
  onClickActionOnly: O,
2665
- onDoubleClickAction: W,
2666
- onContextMenuAction: z,
2667
- getActionRender: Y,
2668
- handleTime: C,
2669
- scrollContainerRef: j
2670
- } = n, I = ce(null), E = ce(!1), {
2671
- id: A,
2672
- maxEnd: M,
2673
- minStart: Z,
2674
- end: ee,
2665
+ onDoubleClickAction: j,
2666
+ onContextMenuAction: F,
2667
+ getActionRender: q,
2668
+ handleTime: V,
2669
+ scrollContainerRef: J
2670
+ } = n, U = ne(null), C = ne(!1), {
2671
+ id: M,
2672
+ maxEnd: G,
2673
+ minStart: ee,
2674
+ end: re,
2675
2675
  start: f,
2676
- selected: y,
2677
- flexible: N,
2678
- movable: H,
2679
- effectId: Q
2680
- } = s, X = N === void 0 ? !0 : N, B = H === void 0 ? !0 : H, L = c ?? Xt, k = a ?? Gt, $ = l ?? Zt, Qe = u ?? Qn, et = w ?? Number.MAX_SAFE_INTEGER, We = Z || 0;
2676
+ selected: x,
2677
+ flexible: D,
2678
+ movable: W,
2679
+ effectId: Z
2680
+ } = s, H = D === void 0 ? !0 : D, $ = W === void 0 ? !0 : W, P = c ?? Gt, L = a ?? Kt, k = l ?? Qt, et = u ?? Qn, tt = E ?? Number.MAX_SAFE_INTEGER, We = ee || 0;
2681
2681
  let Le;
2682
- e[0] !== L || e[1] !== k || e[2] !== $ || e[3] !== We ? (Le = At(We, {
2683
- startLeft: $,
2684
- scale: L,
2685
- scaleWidth: k
2686
- }), e[0] = L, e[1] = k, e[2] = $, e[3] = We, e[4] = Le) : Le = e[4];
2687
- const Re = Le, Ye = M || Number.MAX_VALUE;
2682
+ e[0] !== P || e[1] !== L || e[2] !== k || e[3] !== We ? (Le = Ye(We, {
2683
+ startLeft: k,
2684
+ scale: P,
2685
+ scaleWidth: L
2686
+ }), e[0] = P, e[1] = L, e[2] = k, e[3] = We, e[4] = Le) : Le = e[4];
2687
+ const xe = Le, Xe = G || Number.MAX_VALUE;
2688
2688
  let Oe;
2689
- e[5] !== L || e[6] !== k || e[7] !== $ || e[8] !== Ye ? (Oe = At(Ye, {
2690
- startLeft: $,
2691
- scale: L,
2692
- scaleWidth: k
2693
- }), e[5] = L, e[6] = k, e[7] = $, e[8] = Ye, e[9] = Oe) : Oe = e[9];
2694
- const Ce = Math.min(et * k + $, Oe);
2689
+ e[5] !== P || e[6] !== L || e[7] !== k || e[8] !== Xe ? (Oe = Ye(Xe, {
2690
+ startLeft: k,
2691
+ scale: P,
2692
+ scaleWidth: L
2693
+ }), e[5] = P, e[6] = L, e[7] = k, e[8] = Xe, e[9] = Oe) : Oe = e[9];
2694
+ const Ce = Math.min(tt * L + k, Oe);
2695
2695
  let Me;
2696
- e[10] !== ee || e[11] !== L || e[12] !== k || e[13] !== $ || e[14] !== f ? (Me = vn({
2696
+ e[10] !== re || e[11] !== P || e[12] !== L || e[13] !== k || e[14] !== f ? (Me = vn({
2697
2697
  start: f,
2698
- end: ee
2698
+ end: re
2699
2699
  }, {
2700
- startLeft: $,
2701
- scale: L,
2702
- scaleWidth: k
2703
- }), e[10] = ee, e[11] = L, e[12] = k, e[13] = $, e[14] = f, e[15] = Me) : Me = e[15];
2704
- const Pt = Me, [tt, ze] = Mt(null), _e = tt ?? Pt, je = k / Qe;
2700
+ startLeft: k,
2701
+ scale: P,
2702
+ scaleWidth: L
2703
+ }), e[10] = re, e[11] = P, e[12] = L, e[13] = k, e[14] = f, e[15] = Me) : Me = e[15];
2704
+ const Pt = Me, [nt, ze] = Mt(null), _e = nt ?? Pt, je = L / et;
2705
2705
  let Ne;
2706
- e[16] !== Q || e[17] !== o || e[18] !== X || e[19] !== B || e[20] !== y ? (Ne = fe(Eo("action", B && "action-movable", y && "action-selected", X && "action-flexible", o[Q] && `action-effect-${Q}`)), e[16] = Q, e[17] = o, e[18] = X, e[19] = B, e[20] = y, e[21] = Ne) : Ne = e[21];
2706
+ e[16] !== Z || e[17] !== o || e[18] !== H || e[19] !== $ || e[20] !== x ? (Ne = fe(yo("action", $ && "action-movable", x && "action-selected", H && "action-flexible", o[Z] && `action-effect-${Z}`)), e[16] = Z, e[17] = o, e[18] = H, e[19] = $, e[20] = x, e[21] = Ne) : Ne = e[21];
2707
2707
  const Fe = Ne;
2708
2708
  let Ie;
2709
- e[22] !== k || e[23] !== $ || e[24] !== m || e[25] !== v ? (Ie = (ge, ve) => {
2710
- console.log("handleScaleCount", ge, ve);
2711
- const oe = Or(ge + ve, {
2712
- startLeft: $,
2709
+ e[22] !== L || e[23] !== k || e[24] !== m || e[25] !== S ? (Ie = (ge, ve) => {
2710
+ const ie = Mr(ge + ve, {
2711
+ startLeft: k,
2713
2712
  scaleCount: m,
2714
- scaleWidth: k
2713
+ scaleWidth: L
2715
2714
  });
2716
- oe !== m && v(oe);
2717
- }, e[22] = k, e[23] = $, e[24] = m, e[25] = v, e[26] = Ie) : Ie = e[26];
2718
- const Ae = Ie;
2715
+ ie !== m && S(ie);
2716
+ }, e[22] = L, e[23] = k, e[24] = m, e[25] = S, e[26] = Ie) : Ie = e[26];
2717
+ const Te = Ie;
2719
2718
  let ke;
2720
- e[27] !== s || e[28] !== p || e[29] !== r ? (ke = () => {
2721
- p && p({
2719
+ e[27] !== s || e[28] !== _ || e[29] !== r ? (ke = () => {
2720
+ _ && _({
2722
2721
  action: s,
2723
2722
  row: r
2724
2723
  });
2725
- }, e[27] = s, e[28] = p, e[29] = r, e[30] = ke) : ke = e[30];
2726
- const Xe = ke;
2724
+ }, e[27] = s, e[28] = _, e[29] = r, e[30] = ke) : ke = e[30];
2725
+ const Ge = ke;
2727
2726
  let ye;
2728
- e[31] !== s || e[32] !== Ae || e[33] !== R || e[34] !== r || e[35] !== L || e[36] !== k || e[37] !== $ ? (ye = (ge) => {
2727
+ e[31] !== s || e[32] !== Te || e[33] !== p || e[34] !== r || e[35] !== P || e[36] !== L || e[37] !== k ? (ye = (ge) => {
2729
2728
  const {
2730
2729
  left: ve,
2731
- width: oe
2730
+ width: ie
2732
2731
  } = ge;
2733
- if (E.current = !0, R) {
2732
+ if (C.current = !0, p) {
2734
2733
  const {
2735
2734
  start: ue,
2736
- end: ie
2735
+ end: ce
2737
2736
  } = Dt({
2738
2737
  left: ve,
2739
- width: oe
2738
+ width: ie
2740
2739
  }, {
2741
- scaleWidth: k,
2742
- scale: L,
2743
- startLeft: $
2740
+ scaleWidth: L,
2741
+ scale: P,
2742
+ startLeft: k
2744
2743
  });
2745
- if (R({
2744
+ if (p({
2746
2745
  action: s,
2747
2746
  row: r,
2748
2747
  start: ue,
2749
- end: ie
2748
+ end: ce
2750
2749
  }) === !1)
2751
2750
  return !1;
2752
2751
  }
2753
2752
  ze({
2754
2753
  left: ve,
2755
- width: oe
2756
- }), Ae(ve, oe);
2757
- }, e[31] = s, e[32] = Ae, e[33] = R, e[34] = r, e[35] = L, e[36] = k, e[37] = $, e[38] = ye) : ye = e[38];
2758
- const Te = ye;
2759
- let xe;
2760
- e[39] !== t || e[40] !== A || e[41] !== b || e[42] !== r || e[43] !== L || e[44] !== k || e[45] !== $ || e[46] !== D ? (xe = (ge) => {
2754
+ width: ie
2755
+ }), Te(ve, ie);
2756
+ }, e[31] = s, e[32] = Te, e[33] = p, e[34] = r, e[35] = P, e[36] = L, e[37] = k, e[38] = ye) : ye = e[38];
2757
+ const Ae = ye;
2758
+ let Re;
2759
+ e[39] !== t || e[40] !== M || e[41] !== g || e[42] !== r || e[43] !== P || e[44] !== L || e[45] !== k || e[46] !== A ? (Re = (ge) => {
2761
2760
  const {
2762
2761
  left: ve,
2763
- width: oe
2762
+ width: ie
2764
2763
  } = ge, {
2765
2764
  start: ue,
2766
- end: ie
2765
+ end: ce
2767
2766
  } = Dt({
2768
2767
  left: ve,
2769
- width: oe
2768
+ width: ie
2770
2769
  }, {
2771
- scaleWidth: k,
2772
- scale: L,
2773
- startLeft: $
2770
+ scaleWidth: L,
2771
+ scale: P,
2772
+ startLeft: k
2774
2773
  }), le = t.find((Be) => Be.id === r.id);
2775
2774
  if (!le)
2776
2775
  return;
2777
- const He = le.actions.find((Be) => Be.id === A);
2778
- He && (He.start = ue, He.end = ie, D(t), b && b({
2776
+ const He = le.actions.find((Be) => Be.id === M);
2777
+ He && (He.start = ue, He.end = ce, A(t), g && g({
2779
2778
  action: He,
2780
2779
  row: r,
2781
2780
  start: ue,
2782
- end: ie
2781
+ end: ce
2783
2782
  }), ze(null));
2784
- }, e[39] = t, e[40] = A, e[41] = b, e[42] = r, e[43] = L, e[44] = k, e[45] = $, e[46] = D, e[47] = xe) : xe = e[47];
2785
- const Ve = xe;
2786
- let V;
2787
- e[48] !== s || e[49] !== S || e[50] !== r ? (V = (ge) => {
2788
- S && S({
2783
+ }, e[39] = t, e[40] = M, e[41] = g, e[42] = r, e[43] = P, e[44] = L, e[45] = k, e[46] = A, e[47] = Re) : Re = e[47];
2784
+ const Ve = Re;
2785
+ let I;
2786
+ e[48] !== s || e[49] !== v || e[50] !== r ? (I = (ge) => {
2787
+ v && v({
2789
2788
  action: s,
2790
2789
  row: r,
2791
2790
  dir: ge
2792
2791
  });
2793
- }, e[48] = s, e[49] = S, e[50] = r, e[51] = V) : V = e[51];
2794
- const q = V;
2795
- let G;
2796
- e[52] !== s || e[53] !== Ae || e[54] !== P || e[55] !== r || e[56] !== L || e[57] !== k || e[58] !== $ ? (G = (ge, ve) => {
2792
+ }, e[48] = s, e[49] = v, e[50] = r, e[51] = I) : I = e[51];
2793
+ const X = I;
2794
+ let B;
2795
+ e[52] !== s || e[53] !== Te || e[54] !== T || e[55] !== r || e[56] !== P || e[57] !== L || e[58] !== k ? (B = (ge, ve) => {
2797
2796
  const {
2798
- left: oe,
2797
+ left: ie,
2799
2798
  width: ue
2800
2799
  } = ve;
2801
- if (E.current = !0, P) {
2800
+ if (C.current = !0, T) {
2802
2801
  const {
2803
- start: ie,
2802
+ start: ce,
2804
2803
  end: le
2805
2804
  } = Dt({
2806
- left: oe,
2805
+ left: ie,
2807
2806
  width: ue
2808
2807
  }, {
2809
- scaleWidth: k,
2810
- scale: L,
2811
- startLeft: $
2808
+ scaleWidth: L,
2809
+ scale: P,
2810
+ startLeft: k
2812
2811
  });
2813
- if (P({
2812
+ if (T({
2814
2813
  action: s,
2815
2814
  row: r,
2816
- start: ie,
2815
+ start: ce,
2817
2816
  end: le,
2818
2817
  dir: ge
2819
2818
  }) === !1)
2820
2819
  return !1;
2821
2820
  }
2822
2821
  ze({
2823
- left: oe,
2822
+ left: ie,
2824
2823
  width: ue
2825
- }), Ae(oe, ue);
2826
- }, e[52] = s, e[53] = Ae, e[54] = P, e[55] = r, e[56] = L, e[57] = k, e[58] = $, e[59] = G) : G = e[59];
2827
- const K = G;
2824
+ }), Te(ie, ue);
2825
+ }, e[52] = s, e[53] = Te, e[54] = T, e[55] = r, e[56] = P, e[57] = L, e[58] = k, e[59] = B) : B = e[59];
2826
+ const Y = B;
2828
2827
  let he;
2829
- e[60] !== t || e[61] !== A || e[62] !== _ || e[63] !== r || e[64] !== L || e[65] !== k || e[66] !== $ || e[67] !== D ? (he = (ge, ve) => {
2828
+ e[60] !== t || e[61] !== M || e[62] !== w || e[63] !== r || e[64] !== P || e[65] !== L || e[66] !== k || e[67] !== A ? (he = (ge, ve) => {
2830
2829
  const {
2831
- left: oe,
2830
+ left: ie,
2832
2831
  width: ue
2833
2832
  } = ve, {
2834
- start: ie,
2833
+ start: ce,
2835
2834
  end: le
2836
2835
  } = Dt({
2837
- left: oe,
2836
+ left: ie,
2838
2837
  width: ue
2839
2838
  }, {
2840
- scaleWidth: k,
2841
- scale: L,
2842
- startLeft: $
2843
- }), He = t.find((nn) => nn.id === r.id);
2839
+ scaleWidth: L,
2840
+ scale: P,
2841
+ startLeft: k
2842
+ }), He = t.find((rn) => rn.id === r.id);
2844
2843
  if (!He)
2845
2844
  return;
2846
- const Be = He.actions.find((nn) => nn.id === A);
2847
- Be && (Be.start = ie, Be.end = le, D(t), _ && _({
2845
+ const Be = He.actions.find((rn) => rn.id === M);
2846
+ Be && (Be.start = ce, Be.end = le, A(t), w && w({
2848
2847
  action: Be,
2849
2848
  row: r,
2850
- start: ie,
2849
+ start: ce,
2851
2850
  end: le,
2852
2851
  dir: ge
2853
2852
  }), ze(null));
2854
- }, e[60] = t, e[61] = A, e[62] = _, e[63] = r, e[64] = L, e[65] = k, e[66] = $, e[67] = D, e[68] = he) : he = e[68];
2853
+ }, e[60] = t, e[61] = M, e[62] = w, e[63] = r, e[64] = P, e[65] = L, e[66] = k, e[67] = A, e[68] = he) : he = e[68];
2855
2854
  const me = he;
2856
- let J, re, F, ne, se, ae, pe, nt, rt, st, ot, it, ct, at, lt, ut, Ue, $e, ft, dt, ht, mt, pt, gt, vt, bt;
2857
- if (e[69] !== s || e[70] !== Fe || e[71] !== d || e[72] !== X || e[73] !== Y || e[74] !== je || e[75] !== h || e[76] !== Te || e[77] !== Ve || e[78] !== Xe || e[79] !== me || e[80] !== q || e[81] !== K || e[82] !== C || e[83] !== Re || e[84] !== B || e[85] !== U || e[86] !== O || e[87] !== z || e[88] !== W || e[89] !== Ce || e[90] !== r || e[91] !== i || e[92] !== L || e[93] !== k || e[94] !== $ || e[95] !== j || e[96] !== T.assistPositions || e[97] !== _e.left || e[98] !== _e.width) {
2855
+ let K, se, N, te, oe, ae, pe, rt, st, ot, it, ct, at, lt, ut, ft, Ue, $e, dt, ht, mt, pt, gt, vt, bt, St;
2856
+ if (e[69] !== s || e[70] !== Fe || e[71] !== d || e[72] !== H || e[73] !== q || e[74] !== je || e[75] !== h || e[76] !== Ae || e[77] !== Ve || e[78] !== Ge || e[79] !== me || e[80] !== X || e[81] !== Y || e[82] !== V || e[83] !== xe || e[84] !== $ || e[85] !== z || e[86] !== O || e[87] !== F || e[88] !== j || e[89] !== Ce || e[90] !== r || e[91] !== i || e[92] !== P || e[93] !== L || e[94] !== k || e[95] !== J || e[96] !== y.assistPositions || e[97] !== _e.left || e[98] !== _e.width) {
2858
2857
  const ge = {
2859
2858
  ...s,
2860
2859
  ...Dt({
2861
2860
  left: _e.left,
2862
2861
  width: _e.width
2863
2862
  }, {
2864
- startLeft: $,
2865
- scaleWidth: k,
2866
- scale: L
2863
+ startLeft: k,
2864
+ scaleWidth: L,
2865
+ scale: P
2867
2866
  })
2868
2867
  }, ve = {
2869
2868
  ...r,
2870
2869
  actions: [...r.actions]
2871
2870
  };
2872
- r.actions.includes(s) && (ve.actions[r.actions.indexOf(s)] = ge), J = xr, rt = I, st = j, ot = $, it = _e.left, ct = _e.width, at = h && je || dn, lt = h ? Math.max((je || dn) / 2, hn) : hn, ut = T.assistPositions, e[125] !== Re || e[126] !== Ce ? (Ue = () => ({
2873
- left: Re,
2871
+ r.actions.includes(s) && (ve.actions[r.actions.indexOf(s)] = ge), K = Rr, st = U, ot = J, it = k, ct = _e.left, at = _e.width, lt = h && je || hn, ut = h ? Math.max((je || hn) / 2, mn) : mn, ft = y.assistPositions, e[125] !== xe || e[126] !== Ce ? (Ue = () => ({
2872
+ left: xe,
2874
2873
  right: Ce
2875
- }), e[125] = Re, e[126] = Ce, e[127] = Ue) : Ue = e[127];
2876
- let oe;
2877
- e[128] !== d || e[129] !== X ? (oe = !d && X && `.${fe("action-left-stretch")}`, e[128] = d, e[129] = X, e[130] = oe) : oe = e[130];
2874
+ }), e[125] = xe, e[126] = Ce, e[127] = Ue) : Ue = e[127];
2875
+ let ie;
2876
+ e[128] !== d || e[129] !== H ? (ie = !d && H && `.${fe("action-left-stretch")}`, e[128] = d, e[129] = H, e[130] = ie) : ie = e[130];
2878
2877
  let ue;
2879
- e[131] !== d || e[132] !== X ? (ue = !d && X && `.${fe("action-right-stretch")}`, e[131] = d, e[132] = X, e[133] = ue) : ue = e[133], e[134] !== oe || e[135] !== ue ? ($e = {
2880
- left: oe,
2878
+ e[131] !== d || e[132] !== H ? (ue = !d && H && `.${fe("action-right-stretch")}`, e[131] = d, e[132] = H, e[133] = ue) : ue = e[133], e[134] !== ie || e[135] !== ue ? ($e = {
2879
+ left: ie,
2881
2880
  right: ue
2882
- }, e[134] = oe, e[135] = ue, e[136] = $e) : $e = e[136], ft = !d && B, dt = !d && X, ht = Xe, mt = Te, pt = Ve, gt = q, vt = K, bt = me, e[137] === Symbol.for("react.memo_cache_sentinel") ? (re = () => {
2883
- E.current = !1;
2884
- }, e[137] = re) : re = e[137], e[138] !== s || e[139] !== C || e[140] !== U || e[141] !== O || e[142] !== r ? (F = (ie) => {
2881
+ }, e[134] = ie, e[135] = ue, e[136] = $e) : $e = e[136], dt = !d && $, ht = !d && H, mt = Ge, pt = Ae, gt = Ve, vt = X, bt = Y, St = me, e[137] === Symbol.for("react.memo_cache_sentinel") ? (se = () => {
2882
+ C.current = !1;
2883
+ }, e[137] = se) : se = e[137], e[138] !== s || e[139] !== V || e[140] !== z || e[141] !== O || e[142] !== r ? (N = (ce) => {
2885
2884
  let le;
2886
- U && (le = C(ie), U(ie, {
2885
+ z && (le = V(ce), z(ce, {
2887
2886
  row: r,
2888
2887
  action: s,
2889
2888
  time: le
2890
- })), !E.current && O && (le === void 0 && (le = C(ie)), O(ie, {
2889
+ })), !C.current && O && (le === void 0 && (le = V(ce)), O(ce, {
2891
2890
  row: r,
2892
2891
  action: s,
2893
2892
  time: le
2894
2893
  }));
2895
- }, e[138] = s, e[139] = C, e[140] = U, e[141] = O, e[142] = r, e[143] = F) : F = e[143], e[144] !== s || e[145] !== C || e[146] !== W || e[147] !== r ? (ne = (ie) => {
2896
- if (W) {
2897
- const le = C(ie);
2898
- W(ie, {
2894
+ }, e[138] = s, e[139] = V, e[140] = z, e[141] = O, e[142] = r, e[143] = N) : N = e[143], e[144] !== s || e[145] !== V || e[146] !== j || e[147] !== r ? (te = (ce) => {
2895
+ if (j) {
2896
+ const le = V(ce);
2897
+ j(ce, {
2899
2898
  row: r,
2900
2899
  action: s,
2901
2900
  time: le
2902
2901
  });
2903
2902
  }
2904
- }, e[144] = s, e[145] = C, e[146] = W, e[147] = r, e[148] = ne) : ne = e[148], e[149] !== s || e[150] !== C || e[151] !== z || e[152] !== r ? (se = (ie) => {
2905
- if (z) {
2906
- const le = C(ie);
2907
- z(ie, {
2903
+ }, e[144] = s, e[145] = V, e[146] = j, e[147] = r, e[148] = te) : te = e[148], e[149] !== s || e[150] !== V || e[151] !== F || e[152] !== r ? (oe = (ce) => {
2904
+ if (F) {
2905
+ const le = V(ce);
2906
+ F(ce, {
2908
2907
  row: r,
2909
2908
  action: s,
2910
2909
  time: le
2911
2910
  });
2912
2911
  }
2913
- }, e[149] = s, e[150] = C, e[151] = z, e[152] = r, e[153] = se) : se = e[153], ae = Fe, e[154] !== i ? (pe = {
2912
+ }, e[149] = s, e[150] = V, e[151] = F, e[152] = r, e[153] = oe) : oe = e[153], ae = Fe, e[154] !== i ? (pe = {
2914
2913
  height: i
2915
- }, e[154] = i, e[155] = pe) : pe = e[155], nt = Y && Y(ge, ve), e[69] = s, e[70] = Fe, e[71] = d, e[72] = X, e[73] = Y, e[74] = je, e[75] = h, e[76] = Te, e[77] = Ve, e[78] = Xe, e[79] = me, e[80] = q, e[81] = K, e[82] = C, e[83] = Re, e[84] = B, e[85] = U, e[86] = O, e[87] = z, e[88] = W, e[89] = Ce, e[90] = r, e[91] = i, e[92] = L, e[93] = k, e[94] = $, e[95] = j, e[96] = T.assistPositions, e[97] = _e.left, e[98] = _e.width, e[99] = J, e[100] = re, e[101] = F, e[102] = ne, e[103] = se, e[104] = ae, e[105] = pe, e[106] = nt, e[107] = rt, e[108] = st, e[109] = ot, e[110] = it, e[111] = ct, e[112] = at, e[113] = lt, e[114] = ut, e[115] = Ue, e[116] = $e, e[117] = ft, e[118] = dt, e[119] = ht, e[120] = mt, e[121] = pt, e[122] = gt, e[123] = vt, e[124] = bt;
2914
+ }, e[154] = i, e[155] = pe) : pe = e[155], rt = q && q(ge, ve), e[69] = s, e[70] = Fe, e[71] = d, e[72] = H, e[73] = q, e[74] = je, e[75] = h, e[76] = Ae, e[77] = Ve, e[78] = Ge, e[79] = me, e[80] = X, e[81] = Y, e[82] = V, e[83] = xe, e[84] = $, e[85] = z, e[86] = O, e[87] = F, e[88] = j, e[89] = Ce, e[90] = r, e[91] = i, e[92] = P, e[93] = L, e[94] = k, e[95] = J, e[96] = y.assistPositions, e[97] = _e.left, e[98] = _e.width, e[99] = K, e[100] = se, e[101] = N, e[102] = te, e[103] = oe, e[104] = ae, e[105] = pe, e[106] = rt, e[107] = st, e[108] = ot, e[109] = it, e[110] = ct, e[111] = at, e[112] = lt, e[113] = ut, e[114] = ft, e[115] = Ue, e[116] = $e, e[117] = dt, e[118] = ht, e[119] = mt, e[120] = pt, e[121] = gt, e[122] = vt, e[123] = bt, e[124] = St;
2916
2915
  } else
2917
- J = e[99], re = e[100], F = e[101], ne = e[102], se = e[103], ae = e[104], pe = e[105], nt = e[106], rt = e[107], st = e[108], ot = e[109], it = e[110], ct = e[111], at = e[112], lt = e[113], ut = e[114], Ue = e[115], $e = e[116], ft = e[117], dt = e[118], ht = e[119], mt = e[120], pt = e[121], gt = e[122], vt = e[123], bt = e[124];
2918
- let St;
2919
- e[156] !== X ? (St = X && /* @__PURE__ */ x.jsx("div", { className: fe("action-left-stretch"), style: {
2920
- touchAction: "none"
2921
- } }), e[156] = X, e[157] = St) : St = e[157];
2916
+ K = e[99], se = e[100], N = e[101], te = e[102], oe = e[103], ae = e[104], pe = e[105], rt = e[106], st = e[107], ot = e[108], it = e[109], ct = e[110], at = e[111], lt = e[112], ut = e[113], ft = e[114], Ue = e[115], $e = e[116], dt = e[117], ht = e[118], mt = e[119], pt = e[120], gt = e[121], vt = e[122], bt = e[123], St = e[124];
2922
2917
  let _t;
2923
- e[158] !== X ? (_t = X && /* @__PURE__ */ x.jsx("div", { className: fe("action-right-stretch"), style: {
2918
+ e[156] !== H ? (_t = H && /* @__PURE__ */ R.jsx("div", { className: fe("action-left-stretch"), style: {
2924
2919
  touchAction: "none"
2925
- } }), e[158] = X, e[159] = _t) : _t = e[159];
2920
+ } }), e[156] = H, e[157] = _t) : _t = e[157];
2926
2921
  let wt;
2927
- e[160] !== re || e[161] !== F || e[162] !== ne || e[163] !== se || e[164] !== ae || e[165] !== pe || e[166] !== nt || e[167] !== St || e[168] !== _t ? (wt = /* @__PURE__ */ x.jsxs("div", { onMouseDown: re, onClick: F, onDoubleClick: ne, onContextMenu: se, className: ae, style: pe, children: [
2928
- nt,
2929
- St,
2930
- _t
2931
- ] }), e[160] = re, e[161] = F, e[162] = ne, e[163] = se, e[164] = ae, e[165] = pe, e[166] = nt, e[167] = St, e[168] = _t, e[169] = wt) : wt = e[169];
2932
- let zt;
2933
- return e[170] !== J || e[171] !== rt || e[172] !== st || e[173] !== ot || e[174] !== it || e[175] !== ct || e[176] !== at || e[177] !== lt || e[178] !== ut || e[179] !== Ue || e[180] !== $e || e[181] !== ft || e[182] !== dt || e[183] !== ht || e[184] !== mt || e[185] !== pt || e[186] !== gt || e[187] !== vt || e[188] !== bt || e[189] !== wt ? (zt = /* @__PURE__ */ x.jsx(J, { ref: rt, parentRef: st, start: ot, left: it, width: ct, grid: at, snapDistance: lt, snapPositions: ut, getBounds: Ue, edges: $e, enableDragging: ft, enableResizing: dt, onDragStart: ht, onDrag: mt, onDragEnd: pt, onResizeStart: gt, onResize: vt, onResizeEnd: bt, children: wt }), e[170] = J, e[171] = rt, e[172] = st, e[173] = ot, e[174] = it, e[175] = ct, e[176] = at, e[177] = lt, e[178] = ut, e[179] = Ue, e[180] = $e, e[181] = ft, e[182] = dt, e[183] = ht, e[184] = mt, e[185] = pt, e[186] = gt, e[187] = vt, e[188] = bt, e[189] = wt, e[190] = zt) : zt = e[190], zt;
2922
+ e[158] !== H ? (wt = H && /* @__PURE__ */ R.jsx("div", { className: fe("action-right-stretch"), style: {
2923
+ touchAction: "none"
2924
+ } }), e[158] = H, e[159] = wt) : wt = e[159];
2925
+ let Et;
2926
+ e[160] !== se || e[161] !== N || e[162] !== te || e[163] !== oe || e[164] !== ae || e[165] !== pe || e[166] !== rt || e[167] !== _t || e[168] !== wt ? (Et = /* @__PURE__ */ R.jsxs("div", { onMouseDown: se, onClick: N, onDoubleClick: te, onContextMenu: oe, className: ae, style: pe, children: [
2927
+ rt,
2928
+ _t,
2929
+ wt
2930
+ ] }), e[160] = se, e[161] = N, e[162] = te, e[163] = oe, e[164] = ae, e[165] = pe, e[166] = rt, e[167] = _t, e[168] = wt, e[169] = Et) : Et = e[169];
2931
+ let jt;
2932
+ return e[170] !== K || e[171] !== st || e[172] !== ot || e[173] !== it || e[174] !== ct || e[175] !== at || e[176] !== lt || e[177] !== ut || e[178] !== ft || e[179] !== Ue || e[180] !== $e || e[181] !== dt || e[182] !== ht || e[183] !== mt || e[184] !== pt || e[185] !== gt || e[186] !== vt || e[187] !== bt || e[188] !== St || e[189] !== Et ? (jt = /* @__PURE__ */ R.jsx(K, { ref: st, parentRef: ot, start: it, left: ct, width: at, grid: lt, snapDistance: ut, snapPositions: ft, getBounds: Ue, edges: $e, enableDragging: dt, enableResizing: ht, onDragStart: mt, onDrag: pt, onDragEnd: gt, onResizeStart: vt, onResize: bt, onResizeEnd: St, children: Et }), e[170] = K, e[171] = st, e[172] = ot, e[173] = it, e[174] = ct, e[175] = at, e[176] = lt, e[177] = ut, e[178] = ft, e[179] = Ue, e[180] = $e, e[181] = dt, e[182] = ht, e[183] = mt, e[184] = pt, e[185] = gt, e[186] = vt, e[187] = bt, e[188] = St, e[189] = Et, e[190] = jt) : jt = e[190], jt;
2934
2933
  };
2935
- function yt(n, e, t) {
2934
+ function Rt(n, e, t) {
2936
2935
  let r = t.initialDeps ?? [], s;
2937
2936
  function o() {
2938
2937
  var i, c, a, u;
2939
2938
  let l;
2940
2939
  t.key && ((i = t.debug) != null && i.call(t)) && (l = Date.now());
2941
2940
  const h = n();
2942
- if (!(h.length !== r.length || h.some((w, v) => r[v] !== w)))
2941
+ if (!(h.length !== r.length || h.some((E, S) => r[S] !== E)))
2943
2942
  return s;
2944
2943
  r = h;
2945
2944
  let m;
2946
2945
  if (t.key && ((c = t.debug) != null && c.call(t)) && (m = Date.now()), s = e(...h), t.key && ((a = t.debug) != null && a.call(t))) {
2947
- const w = Math.round((Date.now() - l) * 100) / 100, v = Math.round((Date.now() - m) * 100) / 100, p = v / 16, R = (b, S) => {
2948
- for (b = String(b); b.length < S; )
2949
- b = " " + b;
2950
- return b;
2946
+ const E = Math.round((Date.now() - l) * 100) / 100, S = Math.round((Date.now() - m) * 100) / 100, _ = S / 16, p = (g, v) => {
2947
+ for (g = String(g); g.length < v; )
2948
+ g = " " + g;
2949
+ return g;
2951
2950
  };
2952
2951
  console.info(
2953
- `%c⏱ ${R(v, 5)} /${R(w, 5)} ms`,
2952
+ `%c⏱ ${p(S, 5)} /${p(E, 5)} ms`,
2954
2953
  `
2955
2954
  font-size: .6rem;
2956
2955
  font-weight: bold;
2957
2956
  color: hsl(${Math.max(
2958
2957
  0,
2959
- Math.min(120 - 120 * p, 120)
2958
+ Math.min(120 - 120 * _, 120)
2960
2959
  )}deg 100% 31%);`,
2961
2960
  t?.key
2962
2961
  );
@@ -2972,7 +2971,7 @@ function Yn(n, e) {
2972
2971
  throw new Error("Unexpected undefined");
2973
2972
  return n;
2974
2973
  }
2975
- const xo = (n, e) => Math.abs(n - e) < 1.01, Ro = (n, e, t) => {
2974
+ const xo = (n, e) => Math.abs(n - e) < 1.01, Co = (n, e, t) => {
2976
2975
  let r;
2977
2976
  return function(...s) {
2978
2977
  n.clearTimeout(r), r = n.setTimeout(() => e.apply(this, s), t);
@@ -2980,12 +2979,12 @@ const xo = (n, e) => Math.abs(n - e) < 1.01, Ro = (n, e, t) => {
2980
2979
  }, Xn = (n) => {
2981
2980
  const { offsetWidth: e, offsetHeight: t } = n;
2982
2981
  return { width: e, height: t };
2983
- }, Co = (n) => n, Ao = (n) => {
2982
+ }, To = (n) => n, Ao = (n) => {
2984
2983
  const e = Math.max(n.startIndex - n.overscan, 0), t = Math.min(n.endIndex + n.overscan, n.count - 1), r = [];
2985
2984
  for (let s = e; s <= t; s++)
2986
2985
  r.push(s);
2987
2986
  return r;
2988
- }, To = (n, e) => {
2987
+ }, Po = (n, e) => {
2989
2988
  const t = n.scrollElement;
2990
2989
  if (!t)
2991
2990
  return;
@@ -3018,7 +3017,7 @@ const xo = (n, e) => Math.abs(n - e) < 1.01, Ro = (n, e, t) => {
3018
3017
  };
3019
3018
  }, Gn = {
3020
3019
  passive: !0
3021
- }, Kn = typeof window > "u" ? !0 : "onscrollend" in window, Po = (n, e) => {
3020
+ }, Kn = typeof window > "u" ? !0 : "onscrollend" in window, Do = (n, e) => {
3022
3021
  const t = n.scrollElement;
3023
3022
  if (!t)
3024
3023
  return;
@@ -3027,7 +3026,7 @@ const xo = (n, e) => Math.abs(n - e) < 1.01, Ro = (n, e, t) => {
3027
3026
  return;
3028
3027
  let s = 0;
3029
3028
  const o = n.options.useScrollendEvent && Kn ? () => {
3030
- } : Ro(
3029
+ } : Co(
3031
3030
  r,
3032
3031
  () => {
3033
3032
  e(s, !1);
@@ -3042,7 +3041,7 @@ const xo = (n, e) => Math.abs(n - e) < 1.01, Ro = (n, e, t) => {
3042
3041
  return u && t.addEventListener("scrollend", a, Gn), () => {
3043
3042
  t.removeEventListener("scroll", c), u && t.removeEventListener("scrollend", a);
3044
3043
  };
3045
- }, Do = (n, e, t) => {
3044
+ }, Lo = (n, e, t) => {
3046
3045
  if (e?.borderBoxSize) {
3047
3046
  const r = e.borderBoxSize[0];
3048
3047
  if (r)
@@ -3051,7 +3050,7 @@ const xo = (n, e) => Math.abs(n - e) < 1.01, Ro = (n, e, t) => {
3051
3050
  );
3052
3051
  }
3053
3052
  return n[t.options.horizontal ? "offsetWidth" : "offsetHeight"];
3054
- }, Lo = (n, {
3053
+ }, Oo = (n, {
3055
3054
  adjustments: e = 0,
3056
3055
  behavior: t
3057
3056
  }, r) => {
@@ -3062,7 +3061,7 @@ const xo = (n, e) => Math.abs(n - e) < 1.01, Ro = (n, e, t) => {
3062
3061
  behavior: t
3063
3062
  });
3064
3063
  };
3065
- class Oo {
3064
+ class Mo {
3066
3065
  constructor(e) {
3067
3066
  this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
3068
3067
  let t = null;
@@ -3100,11 +3099,11 @@ class Oo {
3100
3099
  scrollPaddingStart: 0,
3101
3100
  scrollPaddingEnd: 0,
3102
3101
  horizontal: !1,
3103
- getItemKey: Co,
3102
+ getItemKey: To,
3104
3103
  rangeExtractor: Ao,
3105
3104
  onChange: () => {
3106
3105
  },
3107
- measureElement: Do,
3106
+ measureElement: Lo,
3108
3107
  initialRect: { width: 0, height: 0 },
3109
3108
  scrollMargin: 0,
3110
3109
  gap: 0,
@@ -3121,7 +3120,7 @@ class Oo {
3121
3120
  }, this.notify = (t) => {
3122
3121
  var r, s;
3123
3122
  (s = (r = this.options).onChange) == null || s.call(r, this, t);
3124
- }, this.maybeNotify = yt(
3123
+ }, this.maybeNotify = Rt(
3125
3124
  () => (this.calculateRange(), [
3126
3125
  this.isScrolling,
3127
3126
  this.range ? this.range.startIndex : null,
@@ -3179,7 +3178,7 @@ class Oo {
3179
3178
  break;
3180
3179
  }
3181
3180
  return o.size === this.options.lanes ? Array.from(o.values()).sort((i, c) => i.end === c.end ? i.index - c.index : i.end - c.end)[0] : void 0;
3182
- }, this.getMeasurementOptions = yt(
3181
+ }, this.getMeasurementOptions = Rt(
3183
3182
  () => [
3184
3183
  this.options.count,
3185
3184
  this.options.paddingStart,
@@ -3197,7 +3196,7 @@ class Oo {
3197
3196
  {
3198
3197
  key: !1
3199
3198
  }
3200
- ), this.getMeasurements = yt(
3199
+ ), this.getMeasurements = Rt(
3201
3200
  () => [this.getMeasurementOptions(), this.itemSizeCache],
3202
3201
  ({ count: t, paddingStart: r, scrollMargin: s, getItemKey: o, enabled: i }, c) => {
3203
3202
  if (!i)
@@ -3209,14 +3208,14 @@ class Oo {
3209
3208
  this.pendingMeasuredCacheIndexes = [];
3210
3209
  const u = this.measurementsCache.slice(0, a);
3211
3210
  for (let l = a; l < t; l++) {
3212
- const h = o(l), d = this.options.lanes === 1 ? u[l - 1] : this.getFurthestMeasurement(u, l), m = d ? d.end + this.options.gap : r + s, w = c.get(h), v = typeof w == "number" ? w : this.options.estimateSize(l), p = m + v, R = d ? d.lane : l % this.options.lanes;
3211
+ const h = o(l), d = this.options.lanes === 1 ? u[l - 1] : this.getFurthestMeasurement(u, l), m = d ? d.end + this.options.gap : r + s, E = c.get(h), S = typeof E == "number" ? E : this.options.estimateSize(l), _ = m + S, p = d ? d.lane : l % this.options.lanes;
3213
3212
  u[l] = {
3214
3213
  index: l,
3215
3214
  start: m,
3216
- size: v,
3217
- end: p,
3215
+ size: S,
3216
+ end: _,
3218
3217
  key: h,
3219
- lane: R
3218
+ lane: p
3220
3219
  };
3221
3220
  }
3222
3221
  return this.measurementsCache = u, u;
@@ -3225,14 +3224,14 @@ class Oo {
3225
3224
  key: process.env.NODE_ENV !== "production" && "getMeasurements",
3226
3225
  debug: () => this.options.debug
3227
3226
  }
3228
- ), this.calculateRange = yt(
3227
+ ), this.calculateRange = Rt(
3229
3228
  () => [
3230
3229
  this.getMeasurements(),
3231
3230
  this.getSize(),
3232
3231
  this.getScrollOffset(),
3233
3232
  this.options.lanes
3234
3233
  ],
3235
- (t, r, s, o) => this.range = t.length > 0 && r > 0 ? Mo({
3234
+ (t, r, s, o) => this.range = t.length > 0 && r > 0 ? No({
3236
3235
  measurements: t,
3237
3236
  outerSize: r,
3238
3237
  scrollOffset: s,
@@ -3242,7 +3241,7 @@ class Oo {
3242
3241
  key: process.env.NODE_ENV !== "production" && "calculateRange",
3243
3242
  debug: () => this.options.debug
3244
3243
  }
3245
- ), this.getVirtualIndexes = yt(
3244
+ ), this.getVirtualIndexes = Rt(
3246
3245
  () => {
3247
3246
  let t = null, r = null;
3248
3247
  const s = this.calculateRange();
@@ -3292,7 +3291,7 @@ class Oo {
3292
3291
  return;
3293
3292
  }
3294
3293
  this._measureElement(t, void 0);
3295
- }, this.getVirtualItems = yt(
3294
+ }, this.getVirtualItems = Rt(
3296
3295
  () => [this.getVirtualIndexes(), this.getMeasurements()],
3297
3296
  (t, r) => {
3298
3297
  const s = [];
@@ -3310,7 +3309,7 @@ class Oo {
3310
3309
  const r = this.getMeasurements();
3311
3310
  if (r.length !== 0)
3312
3311
  return Yn(
3313
- r[Rr(
3312
+ r[xr(
3314
3313
  0,
3315
3314
  r.length - 1,
3316
3315
  (s) => Yn(r[s]).start,
@@ -3361,12 +3360,12 @@ class Oo {
3361
3360
  }
3362
3361
  const [h, d] = l;
3363
3362
  this._scrollToOffset(h, { adjustments: void 0, behavior: s }), this.targetWindow.requestAnimationFrame(() => {
3364
- const m = this.getScrollOffset(), w = this.getOffsetForIndex(t, d);
3365
- if (!w) {
3363
+ const m = this.getScrollOffset(), E = this.getOffsetForIndex(t, d);
3364
+ if (!E) {
3366
3365
  console.warn("Failed to get offset for index:", t);
3367
3366
  return;
3368
3367
  }
3369
- xo(w[0], m) || a(d);
3368
+ xo(E[0], m) || a(d);
3370
3369
  });
3371
3370
  }, a = (u) => {
3372
3371
  this.targetWindow && (o++, o < i ? (process.env.NODE_ENV !== "production" && this.options.debug && console.info("Schedule retry", o, i), this.targetWindow.requestAnimationFrame(() => c(u))) : console.warn(
@@ -3412,7 +3411,7 @@ class Oo {
3412
3411
  }, this.setOptions(e);
3413
3412
  }
3414
3413
  }
3415
- const Rr = (n, e, t, r) => {
3414
+ const xr = (n, e, t, r) => {
3416
3415
  for (; n <= e; ) {
3417
3416
  const s = (n + e) / 2 | 0, o = t(s);
3418
3417
  if (o < r)
@@ -3424,7 +3423,7 @@ const Rr = (n, e, t, r) => {
3424
3423
  }
3425
3424
  return n > 0 ? n - 1 : 0;
3426
3425
  };
3427
- function Mo({
3426
+ function No({
3428
3427
  measurements: n,
3429
3428
  outerSize: e,
3430
3429
  scrollOffset: t,
@@ -3436,7 +3435,7 @@ function Mo({
3436
3435
  startIndex: 0,
3437
3436
  endIndex: s
3438
3437
  };
3439
- let i = Rr(
3438
+ let i = xr(
3440
3439
  0,
3441
3440
  s,
3442
3441
  o,
@@ -3460,28 +3459,28 @@ function Mo({
3460
3459
  }
3461
3460
  return { startIndex: i, endIndex: c };
3462
3461
  }
3463
- const qn = typeof document < "u" ? g.useLayoutEffect : g.useEffect;
3464
- function No(n) {
3465
- const e = g.useReducer(() => ({}), {})[1], t = {
3462
+ const qn = typeof document < "u" ? b.useLayoutEffect : b.useEffect;
3463
+ function Io(n) {
3464
+ const e = b.useReducer(() => ({}), {})[1], t = {
3466
3465
  ...n,
3467
3466
  onChange: (s, o) => {
3468
3467
  var i;
3469
- o ? Ir(e) : e(), (i = n.onChange) == null || i.call(n, s, o);
3468
+ o ? kr(e) : e(), (i = n.onChange) == null || i.call(n, s, o);
3470
3469
  }
3471
- }, [r] = g.useState(
3472
- () => new Oo(t)
3470
+ }, [r] = b.useState(
3471
+ () => new Mo(t)
3473
3472
  );
3474
3473
  return r.setOptions(t), qn(() => r._didMount(), []), qn(() => r._willUpdate()), r;
3475
3474
  }
3476
3475
  function Cr(n) {
3477
- return No({
3478
- observeElementRect: To,
3479
- observeElementOffset: Po,
3480
- scrollToFn: Lo,
3476
+ return Io({
3477
+ observeElementRect: Po,
3478
+ observeElementOffset: Do,
3479
+ scrollToFn: Oo,
3481
3480
  ...n
3482
3481
  });
3483
3482
  }
3484
- const Io = (n) => {
3483
+ const ko = (n) => {
3485
3484
  const {
3486
3485
  rowData: e,
3487
3486
  style: t = {},
@@ -3494,70 +3493,70 @@ const Io = (n) => {
3494
3493
  scaleWidth: u
3495
3494
  } = n, l = ["edit-row"];
3496
3495
  e?.selected && l.push("edit-row-selected");
3497
- const h = a ?? Xt, d = u ?? Gt, m = c ?? Zt, w = (b) => {
3496
+ const h = a ?? Gt, d = u ?? Kt, m = c ?? Qt, E = (g) => {
3498
3497
  if (!i.current) return 0;
3499
- const _ = b.currentTarget.getBoundingClientRect(), T = b.clientX - _.x;
3500
- return Rt(T, {
3498
+ const w = g.currentTarget.getBoundingClientRect(), y = g.clientX - w.x;
3499
+ return Ct(y, {
3501
3500
  startLeft: m,
3502
3501
  scale: h,
3503
3502
  scaleWidth: d
3504
3503
  });
3505
- }, v = Tr(() => (e?.actions ? [...e.actions] : []).sort((b, S) => b.start - S.start), [e]), p = Pr((b) => v[b]?.id ?? b, [v]), R = Cr({
3504
+ }, S = Ar(() => (e?.actions ? [...e.actions] : []).sort((g, v) => g.start - v.start), [e]), _ = Pr((g) => S[g]?.id ?? g, [S]), p = Cr({
3506
3505
  horizontal: !0,
3507
- count: v.length,
3508
- getItemKey: p,
3506
+ count: S.length,
3507
+ getItemKey: _,
3509
3508
  getScrollElement: () => i.current,
3510
- estimateSize: (b) => {
3511
- if (!v[b]) return 0;
3512
- let S = b > 0 ? v[b - 1].end : 0, _ = v[b].end;
3513
- if (S > _) return 0;
3509
+ estimateSize: (g) => {
3510
+ if (!S[g]) return 0;
3511
+ let v = g > 0 ? S[g - 1].end : 0, w = S[g].end;
3512
+ if (v > w) return 0;
3514
3513
  let {
3515
- width: P
3514
+ width: T
3516
3515
  } = vn({
3517
- start: S,
3518
- end: _
3516
+ start: v,
3517
+ end: w
3519
3518
  }, {
3520
3519
  startLeft: m,
3521
3520
  scale: h,
3522
3521
  scaleWidth: d
3523
3522
  });
3524
- return P;
3523
+ return T;
3525
3524
  },
3526
3525
  overscan: 5
3527
3526
  });
3528
- return gn(() => {
3529
- R.measure();
3530
- }, [u, c, R]), /* @__PURE__ */ x.jsx("div", { className: `${fe(...l)} ${(e?.classNames || []).join(" ")}`, style: t, onClick: (b) => {
3527
+ return Nt(() => {
3528
+ p.measure();
3529
+ }, [u, c, p]), /* @__PURE__ */ R.jsx("div", { className: `${fe(...l)} ${(e?.classNames || []).join(" ")}`, style: t, onClick: (g) => {
3531
3530
  if (e && r) {
3532
- const S = w(b);
3533
- r(b, {
3531
+ const v = E(g);
3532
+ r(g, {
3534
3533
  row: e,
3535
- time: S
3534
+ time: v
3536
3535
  });
3537
3536
  }
3538
- }, onDoubleClick: (b) => {
3537
+ }, onDoubleClick: (g) => {
3539
3538
  if (e && s) {
3540
- const S = w(b);
3541
- s(b, {
3539
+ const v = E(g);
3540
+ s(g, {
3542
3541
  row: e,
3543
- time: S
3542
+ time: v
3544
3543
  });
3545
3544
  }
3546
- }, onContextMenu: (b) => {
3545
+ }, onContextMenu: (g) => {
3547
3546
  if (e && o) {
3548
- const S = w(b);
3549
- o(b, {
3547
+ const v = E(g);
3548
+ o(g, {
3550
3549
  row: e,
3551
- time: S
3550
+ time: v
3552
3551
  });
3553
3552
  }
3554
- }, children: e && R.getVirtualItems().map((b) => {
3555
- const S = v[b.index];
3556
- if (!S) throw new Error("Action not found");
3557
- return /* @__PURE__ */ x.jsx(yo, { ...n, handleTime: w, row: e, action: S }, S.id);
3553
+ }, children: e && p.getVirtualItems().map((g) => {
3554
+ const v = S[g.index];
3555
+ if (!v) throw new Error("Action not found");
3556
+ return /* @__PURE__ */ R.jsx(Ro, { ...n, handleTime: E, row: e, action: v }, v.id);
3558
3557
  }) });
3559
3558
  };
3560
- function ko() {
3559
+ function Wo() {
3561
3560
  const n = Pe.c(7);
3562
3561
  let e;
3563
3562
  n[0] === Symbol.for("react.memo_cache_sentinel") ? (e = {
@@ -3565,37 +3564,37 @@ function ko() {
3565
3564
  movePositions: [],
3566
3565
  assistPositions: []
3567
3566
  }, n[0] = e) : e = n[0];
3568
- const [t, r] = Mt(e), s = ce(null), o = zo, i = Wo;
3567
+ const [t, r] = Mt(e), s = ne(null), o = jo, i = zo;
3569
3568
  let c;
3570
- n[1] === Symbol.for("react.memo_cache_sentinel") ? (c = (p) => {
3569
+ n[1] === Symbol.for("react.memo_cache_sentinel") ? (c = (_) => {
3571
3570
  const {
3572
- movePositions: R,
3573
- assistPositions: b,
3574
- action: S,
3575
- row: _,
3576
- assistActionIds: P
3577
- } = p;
3571
+ movePositions: p,
3572
+ assistPositions: g,
3573
+ action: v,
3574
+ row: w,
3575
+ assistActionIds: T
3576
+ } = _;
3578
3577
  s.current = {
3579
- action: S,
3580
- row: _,
3581
- assistActionIds: P
3578
+ action: v,
3579
+ row: w,
3580
+ assistActionIds: T
3582
3581
  }, r({
3583
3582
  isMoving: !0,
3584
- movePositions: R || [],
3585
- assistPositions: b || []
3583
+ movePositions: p || [],
3584
+ assistPositions: g || []
3586
3585
  });
3587
3586
  }, n[1] = c) : c = n[1];
3588
3587
  const a = c;
3589
3588
  let u;
3590
- n[2] === Symbol.for("react.memo_cache_sentinel") ? (u = (p) => {
3589
+ n[2] === Symbol.for("react.memo_cache_sentinel") ? (u = (_) => {
3591
3590
  const {
3592
- movePositions: R,
3593
- assistPositions: b
3594
- } = p;
3595
- r((S) => ({
3596
- ...S,
3597
- movePositions: R || S.movePositions,
3598
- assistPositions: b || S.assistPositions
3591
+ movePositions: p,
3592
+ assistPositions: g
3593
+ } = _;
3594
+ r((v) => ({
3595
+ ...v,
3596
+ movePositions: p || v.movePositions,
3597
+ assistPositions: g || v.assistPositions
3599
3598
  }));
3600
3599
  }, n[2] = u) : u = n[2];
3601
3600
  const l = u;
@@ -3610,19 +3609,19 @@ function ko() {
3610
3609
  const d = h;
3611
3610
  let m;
3612
3611
  n[4] === Symbol.for("react.memo_cache_sentinel") ? (m = () => s.current, n[4] = m) : m = n[4];
3613
- const w = m;
3614
- let v;
3615
- return n[5] !== t ? (v = {
3612
+ const E = m;
3613
+ let S;
3614
+ return n[5] !== t ? (S = {
3616
3615
  initSnap: a,
3617
3616
  updateSnap: l,
3618
3617
  disposeSnap: d,
3619
3618
  snapData: t,
3620
- getActiveDragState: w,
3619
+ getActiveDragState: E,
3621
3620
  defaultGetAssistPosition: o,
3622
3621
  defaultGetMovePosition: i
3623
- }, n[5] = t, n[6] = v) : v = n[6], v;
3622
+ }, n[5] = t, n[6] = S) : S = n[6], S;
3624
3623
  }
3625
- function Wo(n) {
3624
+ function zo(n) {
3626
3625
  const {
3627
3626
  start: e,
3628
3627
  end: t,
@@ -3643,7 +3642,7 @@ function Wo(n) {
3643
3642
  });
3644
3643
  return r ? r === "right" ? [c + a] : [c] : [c, c + a];
3645
3644
  }
3646
- function zo(n) {
3645
+ function jo(n) {
3647
3646
  const {
3648
3647
  editorData: e,
3649
3648
  assistActionIds: t,
@@ -3664,150 +3663,127 @@ function zo(n) {
3664
3663
  m.id !== r.id && l.push(m);
3665
3664
  });
3666
3665
  });
3667
- const h = Mr(l, {
3666
+ const h = Nr(l, {
3668
3667
  startLeft: c,
3669
3668
  scale: o,
3670
3669
  scaleWidth: i
3671
3670
  });
3672
3671
  return u || h.push(a), h;
3673
3672
  }
3674
- const jo = (n) => {
3675
- const e = Pe.c(50);
3676
- let t, r;
3677
- e[0] !== n ? ({
3678
- ref: r,
3679
- ...t
3680
- } = n, e[0] = n, e[1] = t, e[2] = r) : (t = e[1], r = e[2]);
3673
+ const Fo = ({
3674
+ ref: n,
3675
+ ...e
3676
+ }) => {
3681
3677
  const {
3682
- snapData: s,
3683
- initSnap: o,
3684
- updateSnap: i,
3685
- disposeSnap: c,
3686
- getActiveDragState: a,
3687
- defaultGetAssistPosition: u,
3688
- defaultGetMovePosition: l
3689
- } = ko();
3690
- let h;
3691
- e[3] !== u || e[4] !== a || e[5] !== t.cursorTime || e[6] !== t.editorData || e[7] !== t.hideCursor || e[8] !== t.scale || e[9] !== t.scaleWidth || e[10] !== t.snap || e[11] !== t.startLeft || e[12] !== s.isMoving || e[13] !== i ? (h = () => {
3692
- const C = a();
3693
- if (t.snap && C && s.isMoving) {
3694
- const j = t.scaleWidth ?? 160, I = t.scale ?? 1, E = t.startLeft ?? 20, A = t.hideCursor ?? !1, M = At(t.cursorTime, {
3695
- scaleWidth: j,
3696
- scale: I,
3697
- startLeft: E
3698
- }), Z = u({
3699
- editorData: t.editorData,
3700
- assistActionIds: C.assistActionIds,
3701
- action: C.action,
3702
- row: C.row,
3703
- scale: I,
3704
- scaleWidth: j,
3705
- startLeft: E,
3706
- hideCursor: A,
3707
- cursorLeft: M
3708
- });
3709
- i({
3710
- assistPositions: Z
3678
+ snapData: t,
3679
+ initSnap: r,
3680
+ updateSnap: s,
3681
+ disposeSnap: o,
3682
+ getActiveDragState: i,
3683
+ defaultGetAssistPosition: c,
3684
+ defaultGetMovePosition: a
3685
+ } = Wo();
3686
+ Tt(() => {
3687
+ const p = i();
3688
+ if (e.snap && p && t.isMoving) {
3689
+ const g = e.scaleWidth ?? 160, v = e.scale ?? 1, w = e.startLeft ?? 20, T = e.hideCursor ?? !1, y = Ye(e.cursorTime, {
3690
+ scaleWidth: g,
3691
+ scale: v,
3692
+ startLeft: w
3693
+ }), A = c({
3694
+ editorData: e.editorData,
3695
+ assistActionIds: p.assistActionIds,
3696
+ action: p.action,
3697
+ row: p.row,
3698
+ scale: v,
3699
+ scaleWidth: g,
3700
+ startLeft: w,
3701
+ hideCursor: T,
3702
+ cursorLeft: y
3711
3703
  });
3712
- } else
3713
- !t.snap && s.isMoving && i({
3714
- assistPositions: []
3704
+ s({
3705
+ assistPositions: A
3715
3706
  });
3716
- }, e[3] = u, e[4] = a, e[5] = t.cursorTime, e[6] = t.editorData, e[7] = t.hideCursor, e[8] = t.scale, e[9] = t.scaleWidth, e[10] = t.snap, e[11] = t.startLeft, e[12] = s.isMoving, e[13] = i, e[14] = h) : h = e[14];
3717
- let d;
3718
- e[15] !== t.snap || e[16] !== s.isMoving ? (d = [t.snap, s.isMoving], e[15] = t.snap, e[16] = s.isMoving, e[17] = d) : d = e[17], Ct(h, d);
3719
- let m;
3720
- e[18] !== u || e[19] !== o || e[20] !== t ? (m = (C) => {
3721
- const j = t.getAssistDragLineActionIds && t.getAssistDragLineActionIds({
3722
- action: C.action,
3723
- row: C.row,
3724
- editorData: t.editorData
3707
+ } else !e.snap && t.isMoving && s({
3708
+ assistPositions: []
3709
+ });
3710
+ }, [e.snap, t.isMoving]);
3711
+ const u = (p) => {
3712
+ const g = e.getAssistDragLineActionIds && e.getAssistDragLineActionIds({
3713
+ action: p.action,
3714
+ row: p.row,
3715
+ editorData: e.editorData
3725
3716
  });
3726
- if (t.snap) {
3727
- const I = t.scaleWidth ?? 160, E = t.scale ?? 1, A = t.startLeft ?? 20, M = t.hideCursor ?? !1, Z = At(t.cursorTime, {
3728
- scaleWidth: I,
3729
- scale: E,
3730
- startLeft: A
3731
- }), ee = u({
3732
- editorData: t.editorData,
3733
- assistActionIds: j,
3734
- action: C.action,
3735
- row: C.row,
3736
- scale: E,
3737
- scaleWidth: I,
3738
- startLeft: A,
3739
- hideCursor: M,
3740
- cursorLeft: Z
3717
+ if (e.snap) {
3718
+ const v = e.scaleWidth ?? 160, w = e.scale ?? 1, T = e.startLeft ?? 20, y = e.hideCursor ?? !1, A = Ye(e.cursorTime, {
3719
+ scaleWidth: v,
3720
+ scale: w,
3721
+ startLeft: T
3722
+ }), z = c({
3723
+ editorData: e.editorData,
3724
+ assistActionIds: g,
3725
+ action: p.action,
3726
+ row: p.row,
3727
+ scale: w,
3728
+ scaleWidth: v,
3729
+ startLeft: T,
3730
+ hideCursor: y,
3731
+ cursorLeft: A
3741
3732
  });
3742
- o({
3743
- assistPositions: ee,
3744
- action: C.action,
3745
- row: C.row,
3746
- assistActionIds: j
3733
+ r({
3734
+ assistPositions: z,
3735
+ action: p.action,
3736
+ row: p.row,
3737
+ assistActionIds: g
3747
3738
  });
3748
3739
  } else
3749
- o({
3740
+ r({
3750
3741
  assistPositions: [],
3751
- action: C.action,
3752
- row: C.row,
3753
- assistActionIds: j
3742
+ action: p.action,
3743
+ row: p.row,
3744
+ assistActionIds: g
3754
3745
  });
3755
- }, e[18] = u, e[19] = o, e[20] = t, e[21] = m) : m = e[21];
3756
- const w = m;
3757
- let v;
3758
- e[22] !== l || e[23] !== t.scale || e[24] !== t.scaleWidth || e[25] !== t.snap || e[26] !== t.startLeft || e[27] !== i ? (v = (C) => {
3759
- if (t.snap) {
3760
- const j = t.scaleWidth ?? 160, I = t.scale ?? 1, E = t.startLeft ?? 20, A = l({
3761
- ...C,
3762
- startLeft: E,
3763
- scaleWidth: j,
3764
- scale: I
3746
+ }, l = (p) => {
3747
+ if (e.snap) {
3748
+ const g = e.scaleWidth ?? 160, v = e.scale ?? 1, w = e.startLeft ?? 20, T = a({
3749
+ ...p,
3750
+ startLeft: w,
3751
+ scaleWidth: g,
3752
+ scale: v
3765
3753
  });
3766
- i({
3767
- movePositions: A
3754
+ s({
3755
+ movePositions: T
3768
3756
  });
3769
3757
  }
3770
- }, e[22] = l, e[23] = t.scale, e[24] = t.scaleWidth, e[25] = t.snap, e[26] = t.startLeft, e[27] = i, e[28] = v) : v = e[28];
3771
- const p = v, R = t.rowHeight ?? 32, b = t.scaleWidth ?? 160, S = t.startLeft ?? 20, _ = Math.max(t.scaleCount * b + S, t.timelineWidth);
3772
- let P;
3773
- if (e[29] !== _ || e[30] !== R || e[31] !== c || e[32] !== w || e[33] !== p || e[34] !== t || e[35] !== s) {
3774
- const C = [];
3775
- let j = 0;
3776
- for (let I = 0; I < t.editorData.length; I++) {
3777
- const E = t.editorData[I];
3778
- if (!E)
3779
- continue;
3780
- const A = E.rowHeight || R;
3781
- C.push(/* @__PURE__ */ Dr(Io, { ...t, key: E.id, rowData: E, snapData: s, scrollContainerRef: t.scrollElementRef, style: {
3758
+ }, h = e.rowHeight ?? 32, d = e.scaleWidth ?? 160, m = e.startLeft ?? 20, E = Math.max(e.scaleCount * d + m, e.timelineWidth), [S, _] = (() => {
3759
+ let p = [], g = 0;
3760
+ for (let v = 0; v < e.editorData.length; v++) {
3761
+ const w = e.editorData[v];
3762
+ if (!w) continue;
3763
+ const T = w.rowHeight || h;
3764
+ p.push(/* @__PURE__ */ Dr(ko, { ...e, key: w.id, rowData: w, snapData: t, scrollContainerRef: e.scrollElementRef, style: {
3782
3765
  position: "absolute",
3783
3766
  top: 0,
3784
3767
  left: 0,
3785
- width: _,
3786
- height: `${A}px`,
3787
- transform: `translateY(${j}px)`
3788
- }, onActionMoveStart: (M) => (w(M), t.onActionMoveStart && t.onActionMoveStart(M)), onActionResizeStart: (M) => (w(M), t.onActionResizeStart && t.onActionResizeStart(M)), onActionMoving: (M) => (p(M), t.onActionMoving && t.onActionMoving(M)), onActionResizing: (M) => (p(M), t.onActionResizing && t.onActionResizing(M)), onActionResizeEnd: (M) => (c(), t.onActionResizeEnd && t.onActionResizeEnd(M)), onActionMoveEnd: (M) => (c(), t.onActionMoveEnd && t.onActionMoveEnd(M)) })), j = j + A;
3768
+ width: E,
3769
+ height: `${T}px`,
3770
+ transform: `translateY(${g}px)`
3771
+ }, onActionMoveStart: (y) => (u(y), e.onActionMoveStart && e.onActionMoveStart(y)), onActionResizeStart: (y) => (u(y), e.onActionResizeStart && e.onActionResizeStart(y)), onActionMoving: (y) => (l(y), e.onActionMoving && e.onActionMoving(y)), onActionResizing: (y) => (l(y), e.onActionResizing && e.onActionResizing(y)), onActionResizeEnd: (y) => (o(), e.onActionResizeEnd && e.onActionResizeEnd(y)), onActionMoveEnd: (y) => (o(), e.onActionMoveEnd && e.onActionMoveEnd(y)) })), g += T;
3789
3772
  }
3790
- P = [j, C], e[29] = _, e[30] = R, e[31] = c, e[32] = w, e[33] = p, e[34] = t, e[35] = s, e[36] = P;
3791
- } else
3792
- P = e[36];
3793
- const [T, D] = P, U = `0, ${t.startLeft ?? 20}px`, O = `${t.startLeft ?? 20}px, ${t.scaleWidth ?? 160}px`;
3794
- let W;
3795
- e[37] !== _ || e[38] !== U || e[39] !== O || e[40] !== T ? (W = {
3796
- width: _,
3797
- height: T,
3773
+ return [g, p];
3774
+ })();
3775
+ return /* @__PURE__ */ R.jsxs("div", { ref: n, style: {
3776
+ width: E,
3777
+ height: S,
3798
3778
  position: "relative",
3799
- backgroundPositionX: U,
3800
- backgroundSize: O
3801
- }, e[37] = _, e[38] = U, e[39] = O, e[40] = T, e[41] = W) : W = e[41];
3802
- let z;
3803
- e[42] !== t.snap || e[43] !== s ? (z = t.snap && /* @__PURE__ */ x.jsx(Kr, { ...s }), e[42] = t.snap, e[43] = s, e[44] = z) : z = e[44];
3804
- let Y;
3805
- return e[45] !== r || e[46] !== D || e[47] !== W || e[48] !== z ? (Y = /* @__PURE__ */ x.jsxs("div", { ref: r, style: W, className: "timeline-editor-edit-area", children: [
3806
- D,
3807
- z
3808
- ] }), e[45] = r, e[46] = D, e[47] = W, e[48] = z, e[49] = Y) : Y = e[49], Y;
3779
+ backgroundPositionX: `0, ${e.startLeft ?? 20}px`,
3780
+ backgroundSize: `${e.startLeft ?? 20}px, ${e.scaleWidth ?? 160}px`
3781
+ }, className: "timeline-editor-edit-area", children: [
3782
+ _,
3783
+ e.snap && /* @__PURE__ */ R.jsx(qr, { ...t })
3784
+ ] });
3809
3785
  };
3810
- function Fo({
3786
+ function Vo({
3811
3787
  scaleSplitCount: n,
3812
3788
  scaleWidth: e,
3813
3789
  startLeft: t,
@@ -3819,12 +3795,12 @@ function Fo({
3819
3795
  setCursor: a,
3820
3796
  getScaleRender: u
3821
3797
  }) {
3822
- const l = n ?? 1, h = e ?? 160, d = t ?? 20, m = (n ?? 0) > 0, w = m ? r * (n ?? 1) + 1 : r, v = (m ? h / l : h) * (w - 1) + d, R = Cr({
3798
+ const l = n ?? 1, h = e ?? 160, d = t ?? 20, m = (n ?? 0) > 0, E = m ? r * (n ?? 1) + 1 : r, S = (m ? h / l : h) * (E - 1) + d, p = Cr({
3823
3799
  horizontal: !0,
3824
- count: w,
3800
+ count: E,
3825
3801
  getScrollElement: () => i.current,
3826
- estimateSize: (b) => {
3827
- switch (b) {
3802
+ estimateSize: (g) => {
3803
+ switch (g) {
3828
3804
  case 0:
3829
3805
  return d;
3830
3806
  default:
@@ -3833,31 +3809,31 @@ function Fo({
3833
3809
  },
3834
3810
  overscan: 10
3835
3811
  });
3836
- return Ct(() => R.measure(), [e, t, R]), /* @__PURE__ */ x.jsx("div", { style: {
3837
- width: `${v}px`
3838
- }, className: fe("time-area"), onClick: (b) => {
3839
- const S = t ?? 20, _ = e ?? 160, P = o ?? 1, T = s ?? 1 / 0, D = b.currentTarget.getBoundingClientRect(), U = b.clientX - D.x, O = Math.max(U, S);
3840
- if (O > T * _ + S) return;
3841
- const W = Rt(O, {
3842
- startLeft: S,
3843
- scale: P,
3844
- scaleWidth: _
3812
+ return Tt(() => p.measure(), [e, t, p]), /* @__PURE__ */ R.jsx("div", { style: {
3813
+ width: `${S}px`
3814
+ }, className: fe("time-area"), onClick: (g) => {
3815
+ const v = t ?? 20, w = e ?? 160, T = o ?? 1, y = s ?? 1 / 0, A = g.currentTarget.getBoundingClientRect(), z = g.clientX - A.x, O = Math.max(z, v);
3816
+ if (O > y * w + v) return;
3817
+ const j = Ct(O, {
3818
+ startLeft: v,
3819
+ scale: T,
3820
+ scaleWidth: w
3845
3821
  });
3846
- c && c(W, b), !b.defaultPrevented && a({
3847
- time: W
3822
+ c && c(j, g), !g.defaultPrevented && a({
3823
+ time: j
3848
3824
  });
3849
- }, children: R.getVirtualItems().map((b) => {
3850
- const S = b.index, _ = n ?? 1, P = o ?? 1, T = m ? S % _ === 0 : !0, D = [fe("time-unit"), fe(T ? "time-unit-big" : "time-unit-small")], U = (m ? S / _ : S) * P;
3851
- return /* @__PURE__ */ x.jsx("div", { "data-index": b.index, style: {
3852
- width: `${b.size}px`,
3853
- transform: `translateX(${b.start}px)`
3854
- }, className: D.join(" "), children: T && /* @__PURE__ */ x.jsx("div", { className: fe("time-unit-scale"), children: u?.(U) ?? U }) }, b.key);
3825
+ }, children: p.getVirtualItems().map((g) => {
3826
+ const v = g.index, w = n ?? 1, T = o ?? 1, y = m ? v % w === 0 : !0, A = [fe("time-unit"), fe(y ? "time-unit-big" : "time-unit-small")], z = (m ? v / w : v) * T;
3827
+ return /* @__PURE__ */ R.jsx("div", { "data-index": g.index, style: {
3828
+ width: `${g.size}px`,
3829
+ transform: `translateX(${g.start}px)`
3830
+ }, className: A.join(" "), children: /* @__PURE__ */ R.jsx(Lr, { mode: y ? "visible" : "hidden", children: /* @__PURE__ */ R.jsx("div", { className: fe("time-unit-scale"), children: u?.(z) ?? z }) }) }, g.key);
3855
3831
  }) });
3856
3832
  }
3857
- function Vo(n) {
3833
+ function Uo(n) {
3858
3834
  return typeof n == "object" && n !== null;
3859
3835
  }
3860
- function Uo(n, e, t) {
3836
+ function $o(n, e, t) {
3861
3837
  if (n instanceof EventTarget)
3862
3838
  return [n];
3863
3839
  if (typeof n == "string") {
@@ -3866,46 +3842,46 @@ function Uo(n, e, t) {
3866
3842
  }
3867
3843
  return Array.from(n);
3868
3844
  }
3869
- function $o(n) {
3870
- return Vo(n) && "ownerSVGElement" in n;
3845
+ function Ho(n) {
3846
+ return Uo(n) && "ownerSVGElement" in n;
3871
3847
  }
3872
- const Ht = /* @__PURE__ */ new WeakMap();
3873
- let Bt;
3874
- const Ar = (n, e, t) => (r, s) => s && s[0] ? s[0][n + "Size"] : $o(r) && "getBBox" in r ? r.getBBox()[e] : r[t], Ho = /* @__PURE__ */ Ar("inline", "width", "offsetWidth"), Bo = /* @__PURE__ */ Ar("block", "height", "offsetHeight");
3875
- function Yo({ target: n, borderBoxSize: e }) {
3876
- Ht.get(n)?.forEach((t) => {
3848
+ const Bt = /* @__PURE__ */ new WeakMap();
3849
+ let Yt;
3850
+ const Tr = (n, e, t) => (r, s) => s && s[0] ? s[0][n + "Size"] : Ho(r) && "getBBox" in r ? r.getBBox()[e] : r[t], Bo = /* @__PURE__ */ Tr("inline", "width", "offsetWidth"), Yo = /* @__PURE__ */ Tr("block", "height", "offsetHeight");
3851
+ function Xo({ target: n, borderBoxSize: e }) {
3852
+ Bt.get(n)?.forEach((t) => {
3877
3853
  t(n, {
3878
3854
  get width() {
3879
- return Ho(n, e);
3855
+ return Bo(n, e);
3880
3856
  },
3881
3857
  get height() {
3882
- return Bo(n, e);
3858
+ return Yo(n, e);
3883
3859
  }
3884
3860
  });
3885
3861
  });
3886
3862
  }
3887
- function Xo(n) {
3888
- n.forEach(Yo);
3863
+ function Go(n) {
3864
+ n.forEach(Xo);
3889
3865
  }
3890
- function Go() {
3891
- typeof ResizeObserver > "u" || (Bt = new ResizeObserver(Xo));
3866
+ function Ko() {
3867
+ typeof ResizeObserver > "u" || (Yt = new ResizeObserver(Go));
3892
3868
  }
3893
- function Ko(n, e) {
3894
- Bt || Go();
3895
- const t = Uo(n);
3869
+ function qo(n, e) {
3870
+ Yt || Ko();
3871
+ const t = $o(n);
3896
3872
  return t.forEach((r) => {
3897
- let s = Ht.get(r);
3898
- s || (s = /* @__PURE__ */ new Set(), Ht.set(r, s)), s.add(e), Bt?.observe(r);
3873
+ let s = Bt.get(r);
3874
+ s || (s = /* @__PURE__ */ new Set(), Bt.set(r, s)), s.add(e), Yt?.observe(r);
3899
3875
  }), () => {
3900
3876
  t.forEach((r) => {
3901
- const s = Ht.get(r);
3902
- s?.delete(e), s?.size || Bt?.unobserve(r);
3877
+ const s = Bt.get(r);
3878
+ s?.delete(e), s?.size || Yt?.unobserve(r);
3903
3879
  });
3904
3880
  };
3905
3881
  }
3906
- const Yt = /* @__PURE__ */ new Set();
3882
+ const Xt = /* @__PURE__ */ new Set();
3907
3883
  let xt;
3908
- function qo() {
3884
+ function Jo() {
3909
3885
  xt = () => {
3910
3886
  const n = {
3911
3887
  get width() {
@@ -3915,18 +3891,18 @@ function qo() {
3915
3891
  return window.innerHeight;
3916
3892
  }
3917
3893
  };
3918
- Yt.forEach((e) => e(n));
3894
+ Xt.forEach((e) => e(n));
3919
3895
  }, window.addEventListener("resize", xt);
3920
3896
  }
3921
- function Jo(n) {
3922
- return Yt.add(n), xt || qo(), () => {
3923
- Yt.delete(n), !Yt.size && typeof xt == "function" && (window.removeEventListener("resize", xt), xt = void 0);
3897
+ function Zo(n) {
3898
+ return Xt.add(n), xt || Jo(), () => {
3899
+ Xt.delete(n), !Xt.size && typeof xt == "function" && (window.removeEventListener("resize", xt), xt = void 0);
3924
3900
  };
3925
3901
  }
3926
- function Zo(n, e) {
3927
- return typeof n == "function" ? Jo(n) : Ko(n, e);
3902
+ function Qo(n, e) {
3903
+ return typeof n == "function" ? Zo(n) : qo(n, e);
3928
3904
  }
3929
- function Qo(n) {
3905
+ function ei(n) {
3930
3906
  const e = Pe.c(4), {
3931
3907
  elementRef: t
3932
3908
  } = n;
@@ -3938,15 +3914,15 @@ function Qo(n) {
3938
3914
  const [s, o] = Mt(r);
3939
3915
  let i, c;
3940
3916
  return e[1] !== t ? (i = () => {
3941
- t.current && Zo(t.current, (a, u) => {
3917
+ t.current && Qo(t.current, (a, u) => {
3942
3918
  o({
3943
3919
  width: u.width,
3944
3920
  height: u.height
3945
3921
  });
3946
3922
  });
3947
- }, c = [t], e[1] = t, e[2] = i, e[3] = c) : (i = e[2], c = e[3]), gn(i, c), s;
3923
+ }, c = [t], e[1] = t, e[2] = i, e[3] = c) : (i = e[2], c = e[3]), Nt(i, c), s;
3948
3924
  }
3949
- const ei = (n) => {
3925
+ const ti = (n) => {
3950
3926
  const e = Pe.c(42), {
3951
3927
  disableDrag: t,
3952
3928
  cursorTime: r,
@@ -3960,96 +3936,96 @@ const ei = (n) => {
3960
3936
  maxScaleCount: h,
3961
3937
  onCursorDragStart: d,
3962
3938
  onCursorDrag: m,
3963
- onCursorDragEnd: w
3964
- } = n, v = ce(null), p = ce(void 0);
3965
- let R, b;
3966
- e[0] !== r || e[1] !== c || e[2] !== i || e[3] !== o ? (R = () => {
3967
- if (typeof p.current > "u" && v.current) {
3968
- const f = o ?? 20, y = i ?? 160, N = c ?? 1;
3969
- v.current.updateLeft(At(r, {
3939
+ onCursorDragEnd: E
3940
+ } = n, S = ne(null), _ = ne(void 0);
3941
+ let p, g;
3942
+ e[0] !== r || e[1] !== c || e[2] !== i || e[3] !== o ? (p = () => {
3943
+ if (typeof _.current > "u" && S.current) {
3944
+ const f = o ?? 20, x = i ?? 160, D = c ?? 1;
3945
+ S.current.updateLeft(Ye(r, {
3970
3946
  startLeft: f,
3971
- scaleWidth: y,
3972
- scale: N
3947
+ scaleWidth: x,
3948
+ scale: D
3973
3949
  }));
3974
3950
  }
3975
- }, b = [r, o, i, c], e[0] = r, e[1] = c, e[2] = i, e[3] = o, e[4] = R, e[5] = b) : (R = e[4], b = e[5]), Ct(R, b);
3976
- const S = o ?? 20, _ = i ?? 160, P = c ?? 1, T = h ?? 1 / 0, D = (u ?? 0) > 0, U = u ?? 1, O = D ? a * (u ?? 1) + 1 : a, W = o ?? 20, z = (D ? _ / U : _) * (O - 1) + W;
3977
- let Y;
3978
- e[6] !== S || e[7] !== T || e[8] !== l || e[9] !== z || e[10] !== _ ? (Y = () => ({
3951
+ }, g = [r, o, i, c], e[0] = r, e[1] = c, e[2] = i, e[3] = o, e[4] = p, e[5] = g) : (p = e[4], g = e[5]), Tt(p, g);
3952
+ const v = o ?? 20, w = i ?? 160, T = c ?? 1, y = h ?? 1 / 0, A = (u ?? 0) > 0, z = u ?? 1, O = A ? a * (u ?? 1) + 1 : a, j = o ?? 20, F = (A ? w / z : w) * (O - 1) + j;
3953
+ let q;
3954
+ e[6] !== v || e[7] !== y || e[8] !== l || e[9] !== F || e[10] !== w ? (q = () => ({
3979
3955
  left: 0,
3980
- right: Math.min(z, T * _ + S - (l.current?.scrollLeft ?? 0))
3981
- }), e[6] = S, e[7] = T, e[8] = l, e[9] = z, e[10] = _, e[11] = Y) : Y = e[11];
3982
- const C = !t;
3983
- let j;
3984
- e[12] !== r || e[13] !== S || e[14] !== d || e[15] !== P || e[16] !== _ ? (j = () => {
3985
- const f = v.current?.getLeft() ?? At(r, {
3986
- startLeft: S,
3987
- scaleWidth: _,
3988
- scale: P
3956
+ right: Math.min(F, y * w + v - (l.current?.scrollLeft ?? 0))
3957
+ }), e[6] = v, e[7] = y, e[8] = l, e[9] = F, e[10] = w, e[11] = q) : q = e[11];
3958
+ const V = !t;
3959
+ let J;
3960
+ e[12] !== r || e[13] !== v || e[14] !== d || e[15] !== T || e[16] !== w ? (J = () => {
3961
+ const f = S.current?.getLeft() ?? Ye(r, {
3962
+ startLeft: v,
3963
+ scaleWidth: w,
3964
+ scale: T
3989
3965
  });
3990
- p.current = f;
3991
- const y = Rt(f, {
3992
- startLeft: S,
3993
- scale: P,
3994
- scaleWidth: _
3966
+ _.current = f;
3967
+ const x = Ct(f, {
3968
+ startLeft: v,
3969
+ scale: T,
3970
+ scaleWidth: w
3995
3971
  });
3996
- d && d(y), v.current?.updateLeft(f);
3997
- }, e[12] = r, e[13] = S, e[14] = d, e[15] = P, e[16] = _, e[17] = j) : j = e[17];
3998
- let I;
3999
- e[18] !== S || e[19] !== w || e[20] !== P || e[21] !== s || e[22] !== _ ? (I = () => {
4000
- if (typeof p.current < "u") {
4001
- const f = Rt(p.current, {
4002
- startLeft: S,
4003
- scale: P,
4004
- scaleWidth: _
3972
+ d && d(x), S.current?.updateLeft(f);
3973
+ }, e[12] = r, e[13] = v, e[14] = d, e[15] = T, e[16] = w, e[17] = J) : J = e[17];
3974
+ let U;
3975
+ e[18] !== v || e[19] !== E || e[20] !== T || e[21] !== s || e[22] !== w ? (U = () => {
3976
+ if (typeof _.current < "u") {
3977
+ const f = Ct(_.current, {
3978
+ startLeft: v,
3979
+ scale: T,
3980
+ scaleWidth: w
4005
3981
  });
4006
3982
  s({
4007
3983
  time: f
4008
- }), w && w(f);
3984
+ }), E && E(f);
4009
3985
  }
4010
- p.current = void 0;
4011
- }, e[18] = S, e[19] = w, e[20] = P, e[21] = s, e[22] = _, e[23] = I) : I = e[23];
4012
- let E;
4013
- e[24] !== S || e[25] !== m || e[26] !== P || e[27] !== l || e[28] !== s || e[29] !== _ ? (E = (f, y) => {
3986
+ _.current = void 0;
3987
+ }, e[18] = v, e[19] = E, e[20] = T, e[21] = s, e[22] = w, e[23] = U) : U = e[23];
3988
+ let C;
3989
+ e[24] !== v || e[25] !== m || e[26] !== T || e[27] !== l || e[28] !== s || e[29] !== w ? (C = (f, x) => {
4014
3990
  const {
4015
- left: N
4016
- } = f, H = y === void 0 ? 0 : y, Q = l.current?.scrollLeft ?? 0, X = l.current, B = X?.clientWidth ?? 0;
4017
- if (H !== 0)
4018
- if (typeof p.current < "u") {
4019
- p.current = p.current + H;
4020
- const L = Q, k = Q + B;
4021
- p.current < L + 10 ? p.current = L + 10 : p.current > k - 10 && (p.current = k - 10), p.current < S - Q && (p.current = S - Q);
3991
+ left: D
3992
+ } = f, W = x === void 0 ? 0 : x, Z = l.current?.scrollLeft ?? 0, H = l.current, $ = H?.clientWidth ?? 0;
3993
+ if (W !== 0)
3994
+ if (typeof _.current < "u") {
3995
+ _.current = _.current + W;
3996
+ const P = Z, L = Z + $;
3997
+ _.current < P + 10 ? _.current = P + 10 : _.current > L - 10 && (_.current = L - 10), _.current < v - Z && (_.current = v - Z);
4022
3998
  } else {
4023
- p.current = N + H;
4024
- const L = Q, k = Q + B;
4025
- p.current < L + 10 ? p.current = L + 10 : p.current > k - 10 && (p.current = k - 10);
3999
+ _.current = D + W;
4000
+ const P = Z, L = Z + $;
4001
+ _.current < P + 10 ? _.current = P + 10 : _.current > L - 10 && (_.current = L - 10);
4026
4002
  }
4027
- else if (N < S - Q ? p.current = S - Q : p.current = N, X && B > 0) {
4028
- const L = Q, k = Q + B;
4029
- p.current < L + 10 ? p.current = L + 10 : p.current > k - 10 && (p.current = k - 10);
4003
+ else if (D < v - Z ? _.current = v - Z : _.current = D, H && $ > 0) {
4004
+ const P = Z, L = Z + $;
4005
+ _.current < P + 10 ? _.current = P + 10 : _.current > L - 10 && (_.current = L - 10);
4030
4006
  }
4031
- if (typeof p.current < "u") {
4032
- v.current?.updateLeft(p.current);
4033
- const L = Rt(p.current, {
4034
- startLeft: S,
4035
- scale: P,
4036
- scaleWidth: _
4007
+ if (typeof _.current < "u") {
4008
+ S.current?.updateLeft(_.current);
4009
+ const P = Ct(_.current, {
4010
+ startLeft: v,
4011
+ scale: T,
4012
+ scaleWidth: w
4037
4013
  });
4038
4014
  s({
4039
- time: L
4040
- }), m && m(L);
4015
+ time: P
4016
+ }), m && m(P);
4041
4017
  }
4042
4018
  return !1;
4043
- }, e[24] = S, e[25] = m, e[26] = P, e[27] = l, e[28] = s, e[29] = _, e[30] = E) : E = e[30];
4044
- let A, M;
4045
- e[31] === Symbol.for("react.memo_cache_sentinel") ? (A = fe("cursor"), M = fe("cursor-top"), e[31] = A, e[32] = M) : (A = e[31], M = e[32]);
4046
- let Z;
4047
- e[33] === Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ x.jsxs("div", { className: A, children: [
4048
- /* @__PURE__ */ x.jsx("svg", { className: M, width: "8", height: "12", viewBox: "0 0 8 12", fill: "none", children: /* @__PURE__ */ x.jsx("path", { d: "M0 1C0 0.447715 0.447715 0 1 0H7C7.55228 0 8 0.447715 8 1V9.38197C8 9.76074 7.786 10.107 7.44721 10.2764L4.44721 11.7764C4.16569 11.9172 3.83431 11.9172 3.55279 11.7764L0.552786 10.2764C0.214002 10.107 0 9.76074 0 9.38197V1Z", fill: "currentColor" }) }),
4049
- /* @__PURE__ */ x.jsx("div", { className: fe("cursor-area") })
4050
- ] }), e[33] = Z) : Z = e[33];
4019
+ }, e[24] = v, e[25] = m, e[26] = T, e[27] = l, e[28] = s, e[29] = w, e[30] = C) : C = e[30];
4020
+ let M, G;
4021
+ e[31] === Symbol.for("react.memo_cache_sentinel") ? (M = fe("cursor"), G = fe("cursor-top"), e[31] = M, e[32] = G) : (M = e[31], G = e[32]);
4051
4022
  let ee;
4052
- return e[34] !== S || e[35] !== l || e[36] !== Y || e[37] !== C || e[38] !== j || e[39] !== I || e[40] !== E ? (ee = /* @__PURE__ */ x.jsx(xr, { start: S, ref: v, parentRef: l, getBounds: Y, autoScroll: !0, enableDragging: C, enableResizing: !1, onDragStart: j, onDragEnd: I, onDrag: E, children: Z }), e[34] = S, e[35] = l, e[36] = Y, e[37] = C, e[38] = j, e[39] = I, e[40] = E, e[41] = ee) : ee = e[41], ee;
4023
+ e[33] === Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ R.jsxs("div", { className: M, children: [
4024
+ /* @__PURE__ */ R.jsx("svg", { className: G, width: "8", height: "12", viewBox: "0 0 8 12", fill: "none", children: /* @__PURE__ */ R.jsx("path", { d: "M0 1C0 0.447715 0.447715 0 1 0H7C7.55228 0 8 0.447715 8 1V9.38197C8 9.76074 7.786 10.107 7.44721 10.2764L4.44721 11.7764C4.16569 11.9172 3.83431 11.9172 3.55279 11.7764L0.552786 10.2764C0.214002 10.107 0 9.76074 0 9.38197V1Z", fill: "currentColor" }) }),
4025
+ /* @__PURE__ */ R.jsx("div", { className: fe("cursor-area") })
4026
+ ] }), e[33] = ee) : ee = e[33];
4027
+ let re;
4028
+ return e[34] !== v || e[35] !== l || e[36] !== q || e[37] !== V || e[38] !== J || e[39] !== U || e[40] !== C ? (re = /* @__PURE__ */ R.jsx(Rr, { start: v, ref: S, parentRef: l, getBounds: q, autoScroll: !0, enableDragging: V, enableResizing: !1, onDragStart: J, onDragEnd: U, onDrag: C, children: ee }), e[34] = v, e[35] = l, e[36] = q, e[37] = V, e[38] = J, e[39] = U, e[40] = C, e[41] = re) : re = e[41], re;
4053
4029
  };
4054
4030
  function Jn(n) {
4055
4031
  const e = Pe.c(9);
@@ -4061,32 +4037,71 @@ function Jn(n) {
4061
4037
  } = n, e[0] = n, e[1] = t, e[2] = r, e[3] = s) : (t = e[1], r = e[2], s = e[3]);
4062
4038
  const o = s === void 0 ? "vertical" : s;
4063
4039
  let i;
4064
- e[4] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ x.jsx(Sr, { "data-slot": "scroll-area-thumb" }), e[4] = i) : i = e[4];
4040
+ e[4] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ R.jsx(Sr, { "data-slot": "scroll-area-thumb" }), e[4] = i) : i = e[4];
4065
4041
  let c;
4066
- return e[5] !== t || e[6] !== o || e[7] !== r ? (c = /* @__PURE__ */ x.jsx(pr, { "data-slot": "scroll-area-scrollbar", orientation: o, className: t, ...r, children: i }), e[5] = t, e[6] = o, e[7] = r, e[8] = c) : c = e[8], c;
4042
+ return e[5] !== t || e[6] !== o || e[7] !== r ? (c = /* @__PURE__ */ R.jsx(pr, { "data-slot": "scroll-area-scrollbar", orientation: o, className: t, ...r, children: i }), e[5] = t, e[6] = o, e[7] = r, e[8] = c) : c = e[8], c;
4043
+ }
4044
+ function ni(n) {
4045
+ const e = Pe.c(7), {
4046
+ scrollElementRef: t,
4047
+ scale: r,
4048
+ scaleWidth: s,
4049
+ startLeft: o,
4050
+ cursorTimeRef: i
4051
+ } = n, c = ne(null), a = ne(null);
4052
+ let u, l;
4053
+ e[0] !== i || e[1] !== r || e[2] !== s || e[3] !== t || e[4] !== o ? (u = () => {
4054
+ const h = t.current;
4055
+ if (c.current !== null && a.current !== null && h && (c.current !== r || a.current !== s)) {
4056
+ const d = h.scrollLeft, m = i.current, E = Ye(m, {
4057
+ startLeft: o,
4058
+ scale: c.current,
4059
+ scaleWidth: a.current
4060
+ }), S = Ye(m, {
4061
+ startLeft: o,
4062
+ scale: r,
4063
+ scaleWidth: s
4064
+ }), _ = E - d, p = S - _;
4065
+ h.scrollLeft = p;
4066
+ }
4067
+ c.current = r, a.current = s;
4068
+ }, l = [r, s, o, t, i], e[0] = i, e[1] = r, e[2] = s, e[3] = t, e[4] = o, e[5] = u, e[6] = l) : (u = e[5], l = e[6]), Nt(u, l);
4067
4069
  }
4068
- function si({
4070
+ function ii({
4069
4071
  ref: n,
4070
4072
  ...e
4071
4073
  }) {
4072
- const t = Hr(e), r = ce(null), {
4074
+ const t = Br(e), r = ne(null), {
4073
4075
  width: s,
4074
4076
  height: o
4075
- } = Qo({
4077
+ } = ei({
4076
4078
  elementRef: r
4077
- }), i = Math.min(t.maxScaleCount, t.minScaleCount ?? Math.max(Nr(t.editorData, {
4079
+ }), i = t.minScaleCount ?? Math.max(Ir(t.editorData, {
4080
+ scale: t.scale,
4081
+ pad: 0.1
4082
+ }), Math.ceil((s - t.startLeft) / t.scaleWidth)), c = Math.min(t.maxScaleCount, i), [a, u] = Mt(null);
4083
+ Nt(() => {
4084
+ u(null);
4085
+ }, [c]);
4086
+ const l = a ?? c, h = (p) => {
4087
+ const g = Math.min(t.maxScaleCount, p);
4088
+ u(g);
4089
+ }, [d, m] = Mt(yn), E = ne(yn);
4090
+ ni({
4091
+ scrollElementRef: r,
4078
4092
  scale: t.scale,
4079
- pad: 0.2
4080
- }), Math.ceil((s - t.startLeft) / t.scaleWidth))), [c, a] = Mt(i), u = Math.max(i, c), [l, h] = Mt(yn), d = ce(yn), m = (p) => {
4081
- a(Math.min(t.maxScaleCount, Math.max(i, p)));
4082
- }, w = (p) => {
4093
+ scaleWidth: t.scaleWidth,
4094
+ startLeft: t.startLeft,
4095
+ cursorTimeRef: E
4096
+ });
4097
+ const S = (p) => {
4083
4098
  t.onChange?.(p);
4084
- }, v = (p) => {
4099
+ }, _ = (p) => {
4085
4100
  let {
4086
- left: R,
4087
- time: b
4101
+ left: g,
4102
+ time: v
4088
4103
  } = p;
4089
- return typeof b < "u" ? (h(b), d.current = b, !0) : typeof R < "u" ? (h(d.current = Rt(R, {
4104
+ return typeof v < "u" ? (m(v), E.current = v, !0) : typeof g < "u" ? (m(E.current = Ct(g, {
4090
4105
  startLeft: t.startLeft,
4091
4106
  scale: t.scale,
4092
4107
  scaleWidth: t.scaleWidth
@@ -4097,32 +4112,52 @@ function si({
4097
4112
  return r.current;
4098
4113
  },
4099
4114
  set time(p) {
4100
- v({
4115
+ _({
4101
4116
  time: p
4102
4117
  });
4103
4118
  },
4104
4119
  get time() {
4105
- return d.current;
4120
+ return E.current;
4121
+ },
4122
+ getTime() {
4123
+ return E.current;
4124
+ },
4125
+ setTime(p) {
4126
+ _({
4127
+ time: p
4128
+ });
4106
4129
  },
4107
4130
  setScrollLeft: (p) => {
4108
4131
  r.current && (r.current.scrollLeft = p);
4109
4132
  },
4110
4133
  setScrollTop: (p) => {
4111
4134
  r.current && (r.current.scrollTop = p);
4135
+ },
4136
+ get scrollLeft() {
4137
+ return r.current ? r.current.scrollLeft : 0;
4138
+ },
4139
+ get scrollTop() {
4140
+ return r.current ? r.current.scrollTop : 0;
4141
+ },
4142
+ set scrollLeft(p) {
4143
+ r.current && (r.current.scrollLeft = p);
4144
+ },
4145
+ set scrollTop(p) {
4146
+ r.current && (r.current.scrollTop = p);
4112
4147
  }
4113
- })), /* @__PURE__ */ x.jsxs(po, { style: t.style, className: `${fn} ${t.disableDrag ? fn + "-disable" : ""}`, "data-slot": "scroll-area", children: [
4114
- /* @__PURE__ */ x.jsxs(go, { "data-slot": "scroll-area-viewport", ref: r, onScroll: (p) => {
4148
+ })), /* @__PURE__ */ R.jsxs(go, { style: t.style, className: `${dn} ${t.disableDrag ? dn + "-disable" : ""}`, "data-slot": "scroll-area", children: [
4149
+ /* @__PURE__ */ R.jsxs(vo, { "data-slot": "scroll-area-viewport", ref: r, onScroll: (p) => {
4115
4150
  t.onScroll?.(p.currentTarget);
4116
4151
  }, children: [
4117
- /* @__PURE__ */ x.jsx(Fo, { ...t, setCursor: v, scaleCount: u, scrollElementRef: r }),
4118
- /* @__PURE__ */ x.jsx(jo, { ...t, scrollElementRef: r, timelineWidth: s, timelineHeight: o, disableDrag: t.disableDrag, editorData: t.editorData, cursorTime: l, scaleCount: u, setScaleCount: m, setEditorData: w }),
4119
- !t.hideCursor && /* @__PURE__ */ x.jsx(ei, { ...t, timelineWidth: s, height: o, scaleCount: u, setScaleCount: m, setCursor: v, cursorTime: l, editorData: t.editorData, scrollElementRef: r })
4152
+ /* @__PURE__ */ R.jsx(Vo, { ...t, setCursor: _, scaleCount: l, scrollElementRef: r }),
4153
+ /* @__PURE__ */ R.jsx(Fo, { ...t, scrollElementRef: r, timelineWidth: s, timelineHeight: o, disableDrag: t.disableDrag, editorData: t.editorData, cursorTime: d, scaleCount: l, setScaleCount: h, setEditorData: S }),
4154
+ !t.hideCursor && /* @__PURE__ */ R.jsx(ti, { ...t, timelineWidth: s, height: o, scaleCount: l, setScaleCount: h, setCursor: _, cursorTime: d, editorData: t.editorData, scrollElementRef: r })
4120
4155
  ] }),
4121
- /* @__PURE__ */ x.jsx(Jn, { orientation: "horizontal" }),
4122
- /* @__PURE__ */ x.jsx(Jn, { orientation: "vertical" }),
4123
- /* @__PURE__ */ x.jsx(vo, {})
4156
+ /* @__PURE__ */ R.jsx(Jn, { orientation: "horizontal" }),
4157
+ /* @__PURE__ */ R.jsx(Jn, { orientation: "vertical" }),
4158
+ /* @__PURE__ */ R.jsx(bo, {})
4124
4159
  ] });
4125
4160
  }
4126
4161
  export {
4127
- si as Timeline
4162
+ ii as Timeline
4128
4163
  };