@epilot/zenith-react 0.1.0-next.0 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/README.md +95 -15
  2. package/dist/components/appearance-boundary/appearance-boundary.js +32 -34
  3. package/dist/components/appearance-boundary/appearance-boundary.js.map +1 -1
  4. package/dist/components/badge/badge.js +1 -1
  5. package/dist/components/badge/badge.js.map +1 -1
  6. package/dist/components/breadcrumb/breadcrumb.js +10 -10
  7. package/dist/components/breadcrumb/breadcrumb.js.map +1 -1
  8. package/dist/components/button/button.js +28 -28
  9. package/dist/components/button/button.js.map +1 -1
  10. package/dist/components/button-group/button-group.js.map +1 -1
  11. package/dist/components/callout/callout.js +13 -13
  12. package/dist/components/callout/callout.js.map +1 -1
  13. package/dist/components/card/card.js.map +1 -1
  14. package/dist/components/checkbox/checkbox.js +13 -13
  15. package/dist/components/checkbox/checkbox.js.map +1 -1
  16. package/dist/components/code-block/code-block.js +6 -6
  17. package/dist/components/code-block/code-block.js.map +1 -1
  18. package/dist/components/code-editor/code-editor.js +1 -1
  19. package/dist/components/code-editor/code-editor.js.map +1 -1
  20. package/dist/components/code-editor/indent.js.map +1 -1
  21. package/dist/components/command/command.js +7 -13
  22. package/dist/components/command/command.js.map +1 -1
  23. package/dist/components/data-table/data-table-body.js +120 -66
  24. package/dist/components/data-table/data-table-body.js.map +1 -1
  25. package/dist/components/data-table/data-table-column-header.js +7 -7
  26. package/dist/components/data-table/data-table-column-header.js.map +1 -1
  27. package/dist/components/data-table/data-table-column-order.js +277 -0
  28. package/dist/components/data-table/data-table-column-order.js.map +1 -0
  29. package/dist/components/data-table/data-table-content.js +72 -58
  30. package/dist/components/data-table/data-table-content.js.map +1 -1
  31. package/dist/components/data-table/data-table-context.js +8 -4
  32. package/dist/components/data-table/data-table-context.js.map +1 -1
  33. package/dist/components/data-table/data-table-footer.js +31 -0
  34. package/dist/components/data-table/data-table-footer.js.map +1 -0
  35. package/dist/components/data-table/data-table-header-draggable.js +151 -0
  36. package/dist/components/data-table/data-table-header-draggable.js.map +1 -0
  37. package/dist/components/data-table/data-table-header.js +130 -57
  38. package/dist/components/data-table/data-table-header.js.map +1 -1
  39. package/dist/components/data-table/data-table-resize-handle.js +137 -0
  40. package/dist/components/data-table/data-table-resize-handle.js.map +1 -0
  41. package/dist/components/data-table/data-table.js +184 -156
  42. package/dist/components/data-table/data-table.js.map +1 -1
  43. package/dist/components/data-table/hooks/use-data-table-virtualizer.js +9 -0
  44. package/dist/components/data-table/hooks/use-data-table-virtualizer.js.map +1 -0
  45. package/dist/components/date-range-picker/date-range-picker.js +197 -195
  46. package/dist/components/date-range-picker/date-range-picker.js.map +1 -1
  47. package/dist/components/date-time-picker/calendar.js +29 -29
  48. package/dist/components/date-time-picker/calendar.js.map +1 -1
  49. package/dist/components/date-time-picker/time-picker.js +55 -55
  50. package/dist/components/date-time-picker/time-picker.js.map +1 -1
  51. package/dist/components/density-provider/density-provider.js.map +1 -1
  52. package/dist/components/dialog/dialog.js +1 -1
  53. package/dist/components/dialog/dialog.js.map +1 -1
  54. package/dist/components/drawer/drawer.js +5 -5
  55. package/dist/components/drawer/drawer.js.map +1 -1
  56. package/dist/components/dropdown-menu/dropdown-menu.js +36 -36
  57. package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -1
  58. package/dist/components/field/field-combobox.js +4 -4
  59. package/dist/components/field/field-combobox.js.map +1 -1
  60. package/dist/components/field/field.js +40 -40
  61. package/dist/components/field/field.js.map +1 -1
  62. package/dist/components/label/label.js +0 -28
  63. package/dist/components/label/label.js.map +1 -1
  64. package/dist/components/list/list.js +42 -52
  65. package/dist/components/list/list.js.map +1 -1
  66. package/dist/components/option-card/option-card.js +27 -25
  67. package/dist/components/option-card/option-card.js.map +1 -1
  68. package/dist/components/pill/pill.js +9 -9
  69. package/dist/components/pill/pill.js.map +1 -1
  70. package/dist/components/radio/radio.js +14 -14
  71. package/dist/components/radio/radio.js.map +1 -1
  72. package/dist/components/scroll-area/scroll-area.js +9 -9
  73. package/dist/components/scroll-area/scroll-area.js.map +1 -1
  74. package/dist/components/segmented-control/segmented-control.js +1 -1
  75. package/dist/components/segmented-control/segmented-control.js.map +1 -1
  76. package/dist/components/select/select.js +11 -11
  77. package/dist/components/select/select.js.map +1 -1
  78. package/dist/components/separator/separator.js.map +1 -1
  79. package/dist/components/skeleton/skeleton.js.map +1 -1
  80. package/dist/components/slot/compose-as-child.js.map +1 -1
  81. package/dist/components/spinner/spinner.js.map +1 -1
  82. package/dist/components/switch/switch.js +11 -11
  83. package/dist/components/switch/switch.js.map +1 -1
  84. package/dist/components/table/table-pagination.js +1 -1
  85. package/dist/components/table/table-pagination.js.map +1 -1
  86. package/dist/components/table/table.js +15 -15
  87. package/dist/components/table/table.js.map +1 -1
  88. package/dist/components/text/text.js +10 -1
  89. package/dist/components/text/text.js.map +1 -1
  90. package/dist/components/toast/toast.js +30 -32
  91. package/dist/components/toast/toast.js.map +1 -1
  92. package/dist/components/toggle/toggle.js +20 -20
  93. package/dist/components/toggle/toggle.js.map +1 -1
  94. package/dist/delivery/index.d.ts +10 -44
  95. package/dist/delivery/index.js +5 -9
  96. package/dist/index.d.ts +1994 -2272
  97. package/dist/index.js +133 -121
  98. package/dist/index.js.map +1 -1
  99. package/dist/lib/clear-button.js.map +1 -1
  100. package/dist/lib/code-highlight.js.map +1 -1
  101. package/dist/lib/code-tokens.js.map +1 -1
  102. package/dist/lib/pagination.js.map +1 -1
  103. package/dist/packages/tokens/dist/delivery/index.js +18 -48
  104. package/dist/packages/tokens/dist/delivery/index.js.map +1 -1
  105. package/dist/packages/tokens/dist/generated/core.generated.js +18 -0
  106. package/dist/packages/tokens/dist/generated/core.generated.js.map +1 -0
  107. package/dist/packages/tokens/dist/generated/palette.generated.js +5 -5
  108. package/dist/packages/tokens/dist/generated/palette.generated.js.map +1 -1
  109. package/dist/packages/tokens/dist/install.js +9 -9
  110. package/dist/packages/tokens/dist/install.js.map +1 -1
  111. package/dist/styles/document-context.js.map +1 -1
  112. package/dist/styles/make-styles.js.map +1 -1
  113. package/dist/tokens/core.meta.generated.js +2 -2
  114. package/dist/tokens/core.meta.generated.js.map +1 -1
  115. package/dist/tokens/index.d.ts +1029 -1104
  116. package/dist/tokens/index.js +1031 -1106
  117. package/dist/tokens/index.js.map +1 -1
  118. package/dist/tokens/palette.generated.js +2 -2
  119. package/dist/tokens/palette.generated.js.map +1 -1
  120. package/dist/tokens/use-palette-tokens.js.map +1 -1
  121. package/dist/tokens.json +605 -755
  122. package/dist/vendor/.bun/@dnd-kit_core@6.3.1_6f4b9a1cfb20c0ae/vendor/@dnd-kit/core/dist/core.esm.js +385 -340
  123. package/dist/vendor/.bun/@dnd-kit_core@6.3.1_6f4b9a1cfb20c0ae/vendor/@dnd-kit/core/dist/core.esm.js.map +1 -1
  124. package/dist/vendor/.bun/@dnd-kit_sortable@10.0.0_1d291640e1250bbe/vendor/@dnd-kit/sortable/dist/sortable.esm.js +344 -229
  125. package/dist/vendor/.bun/@dnd-kit_sortable@10.0.0_1d291640e1250bbe/vendor/@dnd-kit/sortable/dist/sortable.esm.js.map +1 -1
  126. package/dist/vendor/.bun/@dnd-kit_utilities@3.2.2_62547eec5a2188e3/vendor/@dnd-kit/utilities/dist/utilities.esm.js +1 -1
  127. package/dist/vendor/.bun/@tanstack_react-virtual@3.11.2_6f4b9a1cfb20c0ae/vendor/@tanstack/react-virtual/dist/esm/index.js +36 -0
  128. package/dist/vendor/.bun/@tanstack_react-virtual@3.11.2_6f4b9a1cfb20c0ae/vendor/@tanstack/react-virtual/dist/esm/index.js.map +1 -0
  129. package/dist/vendor/.bun/@tanstack_virtual-core@3.11.2/vendor/@tanstack/virtual-core/dist/esm/index.js +450 -0
  130. package/dist/vendor/.bun/@tanstack_virtual-core@3.11.2/vendor/@tanstack/virtual-core/dist/esm/index.js.map +1 -0
  131. package/dist/vendor/.bun/@tanstack_virtual-core@3.11.2/vendor/@tanstack/virtual-core/dist/esm/utils.js +50 -0
  132. package/dist/vendor/.bun/@tanstack_virtual-core@3.11.2/vendor/@tanstack/virtual-core/dist/esm/utils.js.map +1 -0
  133. package/package.json +5 -4
  134. package/scripts/migration-diagnostics-core.mjs +19 -90
  135. package/scripts/migration-diagnostics.mjs +1 -16
  136. package/scripts/migration-sweep.mjs +2 -12
  137. package/ADOPTING.md +0 -73
  138. package/dist/packages/tokens/dist/delivery/internal.js +0 -181
  139. package/dist/packages/tokens/dist/delivery/internal.js.map +0 -1
  140. package/dist/packages/tokens/dist/generated/core.meta.generated.js +0 -10
  141. package/dist/packages/tokens/dist/generated/core.meta.generated.js.map +0 -1
  142. package/dist/token-assets/core/5cd4072decf5df2a664f0b1d5f2ec250a3309101ded3056c1f87c8bbe3738d50.css +0 -22
@@ -1,17 +1,17 @@
1
- import M, { useMemo as A, memo as yn, useReducer as mn, useState as K, useRef as P, useCallback as U, useEffect as O, useContext as de, createContext as Ne, cloneElement as wn, forwardRef as Dn } from "react";
2
- import { unstable_batchedUpdates as Be, createPortal as xn } from "react-dom";
3
- import { useLatestValue as Ae, useUniqueId as Ue, getEventCoordinates as $e, getWindow as J, add as ye, useIsomorphicLayoutEffect as fe, getOwnerDocument as me, isKeyboardEvent as at, subtract as Ke, useLazyMemo as Me, isHTMLElement as He, useNodeRef as Xe, canUseDOM as lt, useInterval as Cn, usePrevious as je, findFirstFocusableNode as Sn, useEvent as ct, CSS as rt, isWindow as ut, isNode as Rn, isDocument as Yt, isSVGElement as En } from "../../../../../@dnd-kit_utilities@3.2.2_62547eec5a2188e3/vendor/@dnd-kit/utilities/dist/utilities.esm.js";
4
- import { useAnnouncement as An, HiddenText as On, LiveRegion as Nn } from "../../../../../@dnd-kit_accessibility@3.1.1_62547eec5a2188e3/vendor/@dnd-kit/accessibility/dist/accessibility.esm.js";
5
- const Ut = /* @__PURE__ */ Ne(null);
6
- function Mn(e) {
7
- const t = de(Ut);
1
+ import M, { useMemo as A, memo as Dn, useReducer as xn, useState as K, useRef as P, useCallback as U, useEffect as O, useContext as de, createContext as Ne, cloneElement as Cn, forwardRef as Sn } from "react";
2
+ import { unstable_batchedUpdates as Be, createPortal as Rn } from "react-dom";
3
+ import { useLatestValue as Ae, useUniqueId as Ue, getEventCoordinates as $e, getWindow as J, add as ye, useIsomorphicLayoutEffect as fe, getOwnerDocument as me, isKeyboardEvent as at, subtract as Ke, useLazyMemo as Me, isHTMLElement as He, useNodeRef as Xe, canUseDOM as lt, useInterval as En, usePrevious as je, findFirstFocusableNode as An, useEvent as ct, CSS as rt, isWindow as ut, isNode as On, isDocument as Ut, isSVGElement as Nn } from "../../../../../@dnd-kit_utilities@3.2.2_62547eec5a2188e3/vendor/@dnd-kit/utilities/dist/utilities.esm.js";
4
+ import { useAnnouncement as Mn, HiddenText as Tn, LiveRegion as Ln } from "../../../../../@dnd-kit_accessibility@3.1.1_62547eec5a2188e3/vendor/@dnd-kit/accessibility/dist/accessibility.esm.js";
5
+ const Ht = /* @__PURE__ */ Ne(null);
6
+ function kn(e) {
7
+ const t = de(Ht);
8
8
  O(() => {
9
9
  if (!t)
10
10
  throw new Error("useDndMonitor must be used within a children of <DndContext>");
11
11
  return t(e);
12
12
  }, [e, t]);
13
13
  }
14
- function Tn() {
14
+ function In() {
15
15
  const [e] = K(() => /* @__PURE__ */ new Set()), t = U((r) => (e.add(r), () => e.delete(r)), [e]);
16
16
  return [U((r) => {
17
17
  let {
@@ -24,13 +24,13 @@ function Tn() {
24
24
  });
25
25
  }, [e]), t];
26
26
  }
27
- const Ln = {
27
+ const Pn = {
28
28
  draggable: `
29
29
  To pick up a draggable item, press the space bar.
30
30
  While dragging, use the arrow keys to move the item.
31
31
  Press space again to drop the item in its new position, or press escape to cancel.
32
32
  `
33
- }, kn = {
33
+ }, zn = {
34
34
  onDragStart(e) {
35
35
  let {
36
36
  active: t
@@ -58,78 +58,78 @@ const Ln = {
58
58
  return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
59
59
  }
60
60
  };
61
- function In(e) {
61
+ function Bn(e) {
62
62
  let {
63
- announcements: t = kn,
63
+ announcements: t = zn,
64
64
  container: n,
65
65
  hiddenTextDescribedById: r,
66
- screenReaderInstructions: i = Ln
66
+ screenReaderInstructions: i = Pn
67
67
  } = e;
68
68
  const {
69
69
  announce: o,
70
70
  announcement: a
71
- } = An(), s = Ue("DndLiveRegion"), [l, c] = K(!1);
71
+ } = Mn(), s = Ue("DndLiveRegion"), [l, c] = K(!1);
72
72
  if (O(() => {
73
73
  c(!0);
74
- }, []), Mn(A(() => ({
74
+ }, []), kn(A(() => ({
75
75
  onDragStart(u) {
76
76
  let {
77
- active: g
77
+ active: h
78
78
  } = u;
79
79
  o(t.onDragStart({
80
- active: g
80
+ active: h
81
81
  }));
82
82
  },
83
83
  onDragMove(u) {
84
84
  let {
85
- active: g,
85
+ active: h,
86
86
  over: f
87
87
  } = u;
88
88
  t.onDragMove && o(t.onDragMove({
89
- active: g,
89
+ active: h,
90
90
  over: f
91
91
  }));
92
92
  },
93
93
  onDragOver(u) {
94
94
  let {
95
- active: g,
95
+ active: h,
96
96
  over: f
97
97
  } = u;
98
98
  o(t.onDragOver({
99
- active: g,
99
+ active: h,
100
100
  over: f
101
101
  }));
102
102
  },
103
103
  onDragEnd(u) {
104
104
  let {
105
- active: g,
105
+ active: h,
106
106
  over: f
107
107
  } = u;
108
108
  o(t.onDragEnd({
109
- active: g,
109
+ active: h,
110
110
  over: f
111
111
  }));
112
112
  },
113
113
  onDragCancel(u) {
114
114
  let {
115
- active: g,
115
+ active: h,
116
116
  over: f
117
117
  } = u;
118
118
  o(t.onDragCancel({
119
- active: g,
119
+ active: h,
120
120
  over: f
121
121
  }));
122
122
  }
123
123
  }), [o, t])), !l)
124
124
  return null;
125
- const d = M.createElement(M.Fragment, null, M.createElement(On, {
125
+ const d = M.createElement(M.Fragment, null, M.createElement(Tn, {
126
126
  id: r,
127
127
  value: i.draggable
128
- }), M.createElement(Nn, {
128
+ }), M.createElement(Ln, {
129
129
  id: s,
130
130
  announcement: a
131
131
  }));
132
- return n ? xn(d, n) : d;
132
+ return n ? Rn(d, n) : d;
133
133
  }
134
134
  var N;
135
135
  (function(e) {
@@ -137,7 +137,7 @@ var N;
137
137
  })(N || (N = {}));
138
138
  function We() {
139
139
  }
140
- function eo(e, t) {
140
+ function to(e, t) {
141
141
  return A(
142
142
  () => ({
143
143
  sensor: e,
@@ -147,7 +147,7 @@ function eo(e, t) {
147
147
  [e, t]
148
148
  );
149
149
  }
150
- function to() {
150
+ function no() {
151
151
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
152
152
  t[n] = arguments[n];
153
153
  return A(
@@ -160,10 +160,10 @@ const H = /* @__PURE__ */ Object.freeze({
160
160
  x: 0,
161
161
  y: 0
162
162
  });
163
- function Pn(e, t) {
163
+ function _t(e, t) {
164
164
  return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
165
165
  }
166
- function zn(e, t) {
166
+ function Fn(e, t) {
167
167
  const n = $e(e);
168
168
  if (!n)
169
169
  return "0 0";
@@ -173,7 +173,7 @@ function zn(e, t) {
173
173
  };
174
174
  return r.x + "% " + r.y + "%";
175
175
  }
176
- function Bn(e, t) {
176
+ function qt(e, t) {
177
177
  let {
178
178
  data: {
179
179
  value: n
@@ -185,7 +185,7 @@ function Bn(e, t) {
185
185
  } = t;
186
186
  return n - r;
187
187
  }
188
- function Fn(e, t) {
188
+ function $n(e, t) {
189
189
  let {
190
190
  data: {
191
191
  value: n
@@ -197,31 +197,52 @@ function Fn(e, t) {
197
197
  } = t;
198
198
  return r - n;
199
199
  }
200
- function $n(e, t) {
200
+ function Lt(e) {
201
+ let {
202
+ left: t,
203
+ top: n,
204
+ height: r,
205
+ width: i
206
+ } = e;
207
+ return [{
208
+ x: t,
209
+ y: n
210
+ }, {
211
+ x: t + i,
212
+ y: n
213
+ }, {
214
+ x: t,
215
+ y: n + r
216
+ }, {
217
+ x: t + i,
218
+ y: n + r
219
+ }];
220
+ }
221
+ function Kn(e, t) {
201
222
  if (!e || e.length === 0)
202
223
  return null;
203
224
  const [n] = e;
204
225
  return n[t];
205
226
  }
206
- function Lt(e, t, n) {
227
+ function kt(e, t, n) {
207
228
  return t === void 0 && (t = e.left), n === void 0 && (n = e.top), {
208
229
  x: t + e.width * 0.5,
209
230
  y: n + e.height * 0.5
210
231
  };
211
232
  }
212
- const no = (e) => {
233
+ const ro = (e) => {
213
234
  let {
214
235
  collisionRect: t,
215
236
  droppableRects: n,
216
237
  droppableContainers: r
217
238
  } = e;
218
- const i = Lt(t, t.left, t.top), o = [];
239
+ const i = kt(t, t.left, t.top), o = [];
219
240
  for (const a of r) {
220
241
  const {
221
242
  id: s
222
243
  } = a, l = n.get(s);
223
244
  if (l) {
224
- const c = Pn(Lt(l), i);
245
+ const c = _t(kt(l), i);
225
246
  o.push({
226
247
  id: s,
227
248
  data: {
@@ -231,9 +252,32 @@ const no = (e) => {
231
252
  });
232
253
  }
233
254
  }
234
- return o.sort(Bn);
255
+ return o.sort(qt);
256
+ }, oo = (e) => {
257
+ let {
258
+ collisionRect: t,
259
+ droppableRects: n,
260
+ droppableContainers: r
261
+ } = e;
262
+ const i = Lt(t), o = [];
263
+ for (const a of r) {
264
+ const {
265
+ id: s
266
+ } = a, l = n.get(s);
267
+ if (l) {
268
+ const c = Lt(l), d = i.reduce((h, f, D) => h + _t(c[D], f), 0), u = Number((d / 4).toFixed(4));
269
+ o.push({
270
+ id: s,
271
+ data: {
272
+ droppableContainer: a,
273
+ value: u
274
+ }
275
+ });
276
+ }
277
+ }
278
+ return o.sort(qt);
235
279
  };
236
- function Kn(e, t) {
280
+ function Xn(e, t) {
237
281
  const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), i = Math.min(t.left + t.width, e.left + e.width), o = Math.min(t.top + t.height, e.top + e.height), a = i - r, s = o - n;
238
282
  if (r < i && n < o) {
239
283
  const l = t.width * t.height, c = e.width * e.height, d = a * s, u = d / (l + c - d);
@@ -241,7 +285,7 @@ function Kn(e, t) {
241
285
  }
242
286
  return 0;
243
287
  }
244
- const Xn = (e) => {
288
+ const jn = (e) => {
245
289
  let {
246
290
  collisionRect: t,
247
291
  droppableRects: n,
@@ -253,7 +297,7 @@ const Xn = (e) => {
253
297
  id: a
254
298
  } = o, s = n.get(a);
255
299
  if (s) {
256
- const l = Kn(s, t);
300
+ const l = Xn(s, t);
257
301
  l > 0 && i.push({
258
302
  id: a,
259
303
  data: {
@@ -263,22 +307,22 @@ const Xn = (e) => {
263
307
  });
264
308
  }
265
309
  }
266
- return i.sort(Fn);
310
+ return i.sort($n);
267
311
  };
268
- function jn(e, t, n) {
312
+ function Wn(e, t, n) {
269
313
  return {
270
314
  ...e,
271
315
  scaleX: t && n ? t.width / n.width : 1,
272
316
  scaleY: t && n ? t.height / n.height : 1
273
317
  };
274
318
  }
275
- function Ht(e, t) {
319
+ function Jt(e, t) {
276
320
  return e && t ? {
277
321
  x: e.left - t.left,
278
322
  y: e.top - t.top
279
323
  } : H;
280
324
  }
281
- function Wn(e) {
325
+ function Yn(e) {
282
326
  return function(n) {
283
327
  for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
284
328
  i[o - 1] = arguments[o];
@@ -293,8 +337,8 @@ function Wn(e) {
293
337
  });
294
338
  };
295
339
  }
296
- const Yn = /* @__PURE__ */ Wn(1);
297
- function _t(e) {
340
+ const Un = /* @__PURE__ */ Yn(1);
341
+ function Vt(e) {
298
342
  if (e.startsWith("matrix3d(")) {
299
343
  const t = e.slice(9, -1).split(/, /);
300
344
  return {
@@ -314,8 +358,8 @@ function _t(e) {
314
358
  }
315
359
  return null;
316
360
  }
317
- function Un(e, t, n) {
318
- const r = _t(t);
361
+ function Hn(e, t, n) {
362
+ const r = Vt(t);
319
363
  if (!r)
320
364
  return e;
321
365
  const {
@@ -333,18 +377,18 @@ function Un(e, t, n) {
333
377
  left: l
334
378
  };
335
379
  }
336
- const Hn = {
380
+ const _n = {
337
381
  ignoreTransform: !1
338
382
  };
339
383
  function Te(e, t) {
340
- t === void 0 && (t = Hn);
384
+ t === void 0 && (t = _n);
341
385
  let n = e.getBoundingClientRect();
342
386
  if (t.ignoreTransform) {
343
387
  const {
344
388
  transform: c,
345
389
  transformOrigin: d
346
390
  } = J(e).getComputedStyle(e);
347
- c && (n = Un(n, c, d));
391
+ c && (n = Hn(n, c, d));
348
392
  }
349
393
  const {
350
394
  top: r,
@@ -363,12 +407,12 @@ function Te(e, t) {
363
407
  right: l
364
408
  };
365
409
  }
366
- function kt(e) {
410
+ function It(e) {
367
411
  return Te(e, {
368
412
  ignoreTransform: !0
369
413
  });
370
414
  }
371
- function _n(e) {
415
+ function qn(e) {
372
416
  const t = e.innerWidth, n = e.innerHeight;
373
417
  return {
374
418
  top: 0,
@@ -379,10 +423,10 @@ function _n(e) {
379
423
  height: n
380
424
  };
381
425
  }
382
- function qn(e, t) {
426
+ function Jn(e, t) {
383
427
  return t === void 0 && (t = J(e).getComputedStyle(e)), t.position === "fixed";
384
428
  }
385
- function Jn(e, t) {
429
+ function Vn(e, t) {
386
430
  t === void 0 && (t = J(e).getComputedStyle(e));
387
431
  const n = /(auto|scroll|overlay)/;
388
432
  return ["overflow", "overflowX", "overflowY"].some((i) => {
@@ -395,46 +439,46 @@ function dt(e, t) {
395
439
  function r(i) {
396
440
  if (t != null && n.length >= t || !i)
397
441
  return n;
398
- if (Yt(i) && i.scrollingElement != null && !n.includes(i.scrollingElement))
442
+ if (Ut(i) && i.scrollingElement != null && !n.includes(i.scrollingElement))
399
443
  return n.push(i.scrollingElement), n;
400
- if (!He(i) || En(i) || n.includes(i))
444
+ if (!He(i) || Nn(i) || n.includes(i))
401
445
  return n;
402
446
  const o = J(e).getComputedStyle(i);
403
- return i !== e && Jn(i, o) && n.push(i), qn(i, o) ? n : r(i.parentNode);
447
+ return i !== e && Vn(i, o) && n.push(i), Jn(i, o) ? n : r(i.parentNode);
404
448
  }
405
449
  return e ? r(e) : n;
406
450
  }
407
- function qt(e) {
451
+ function Gt(e) {
408
452
  const [t] = dt(e, 1);
409
453
  return t ?? null;
410
454
  }
411
455
  function et(e) {
412
- return !lt || !e ? null : ut(e) ? e : Rn(e) ? Yt(e) || e === me(e).scrollingElement ? window : He(e) ? e : null : null;
456
+ return !lt || !e ? null : ut(e) ? e : On(e) ? Ut(e) || e === me(e).scrollingElement ? window : He(e) ? e : null : null;
413
457
  }
414
- function Jt(e) {
458
+ function Qt(e) {
415
459
  return ut(e) ? e.scrollX : e.scrollLeft;
416
460
  }
417
- function Vt(e) {
461
+ function Zt(e) {
418
462
  return ut(e) ? e.scrollY : e.scrollTop;
419
463
  }
420
464
  function ot(e) {
421
465
  return {
422
- x: Jt(e),
423
- y: Vt(e)
466
+ x: Qt(e),
467
+ y: Zt(e)
424
468
  };
425
469
  }
426
470
  var L;
427
471
  (function(e) {
428
472
  e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
429
473
  })(L || (L = {}));
430
- function Gt(e) {
474
+ function en(e) {
431
475
  return !lt || !e ? !1 : e === document.scrollingElement;
432
476
  }
433
- function Qt(e) {
477
+ function tn(e) {
434
478
  const t = {
435
479
  x: 0,
436
480
  y: 0
437
- }, n = Gt(e) ? {
481
+ }, n = en(e) ? {
438
482
  height: window.innerHeight,
439
483
  width: window.innerWidth
440
484
  } : {
@@ -453,39 +497,39 @@ function Qt(e) {
453
497
  minScroll: t
454
498
  };
455
499
  }
456
- const Vn = {
500
+ const Gn = {
457
501
  x: 0.2,
458
502
  y: 0.2
459
503
  };
460
- function Gn(e, t, n, r, i) {
504
+ function Qn(e, t, n, r, i) {
461
505
  let {
462
506
  top: o,
463
507
  left: a,
464
508
  right: s,
465
509
  bottom: l
466
510
  } = n;
467
- r === void 0 && (r = 10), i === void 0 && (i = Vn);
511
+ r === void 0 && (r = 10), i === void 0 && (i = Gn);
468
512
  const {
469
513
  isTop: c,
470
514
  isBottom: d,
471
515
  isLeft: u,
472
- isRight: g
473
- } = Qt(e), f = {
516
+ isRight: h
517
+ } = tn(e), f = {
474
518
  x: 0,
475
519
  y: 0
476
- }, x = {
520
+ }, D = {
477
521
  x: 0,
478
522
  y: 0
479
- }, h = {
523
+ }, g = {
480
524
  height: t.height * i.y,
481
525
  width: t.width * i.x
482
526
  };
483
- return !c && o <= t.top + h.height ? (f.y = L.Backward, x.y = r * Math.abs((t.top + h.height - o) / h.height)) : !d && l >= t.bottom - h.height && (f.y = L.Forward, x.y = r * Math.abs((t.bottom - h.height - l) / h.height)), !g && s >= t.right - h.width ? (f.x = L.Forward, x.x = r * Math.abs((t.right - h.width - s) / h.width)) : !u && a <= t.left + h.width && (f.x = L.Backward, x.x = r * Math.abs((t.left + h.width - a) / h.width)), {
527
+ return !c && o <= t.top + g.height ? (f.y = L.Backward, D.y = r * Math.abs((t.top + g.height - o) / g.height)) : !d && l >= t.bottom - g.height && (f.y = L.Forward, D.y = r * Math.abs((t.bottom - g.height - l) / g.height)), !h && s >= t.right - g.width ? (f.x = L.Forward, D.x = r * Math.abs((t.right - g.width - s) / g.width)) : !u && a <= t.left + g.width && (f.x = L.Backward, D.x = r * Math.abs((t.left + g.width - a) / g.width)), {
484
528
  direction: f,
485
- speed: x
529
+ speed: D
486
530
  };
487
531
  }
488
- function Qn(e) {
532
+ function Zn(e) {
489
533
  if (e === document.scrollingElement) {
490
534
  const {
491
535
  innerWidth: o,
@@ -515,16 +559,16 @@ function Qn(e) {
515
559
  height: e.clientHeight
516
560
  };
517
561
  }
518
- function Zt(e) {
562
+ function nn(e) {
519
563
  return e.reduce((t, n) => ye(t, ot(n)), H);
520
564
  }
521
- function Zn(e) {
522
- return e.reduce((t, n) => t + Jt(n), 0);
523
- }
524
565
  function er(e) {
525
- return e.reduce((t, n) => t + Vt(n), 0);
566
+ return e.reduce((t, n) => t + Qt(n), 0);
567
+ }
568
+ function tr(e) {
569
+ return e.reduce((t, n) => t + Zt(n), 0);
526
570
  }
527
- function en(e, t) {
571
+ function rn(e, t) {
528
572
  if (t === void 0 && (t = Te), !e)
529
573
  return;
530
574
  const {
@@ -533,20 +577,20 @@ function en(e, t) {
533
577
  bottom: i,
534
578
  right: o
535
579
  } = t(e);
536
- qt(e) && (i <= 0 || o <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
580
+ Gt(e) && (i <= 0 || o <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
537
581
  block: "center",
538
582
  inline: "center"
539
583
  });
540
584
  }
541
- const tr = [["x", ["left", "right"], Zn], ["y", ["top", "bottom"], er]];
585
+ const nr = [["x", ["left", "right"], er], ["y", ["top", "bottom"], tr]];
542
586
  class ft {
543
587
  constructor(t, n) {
544
588
  this.rect = void 0, this.width = void 0, this.height = void 0, this.top = void 0, this.bottom = void 0, this.right = void 0, this.left = void 0;
545
- const r = dt(n), i = Zt(r);
589
+ const r = dt(n), i = nn(r);
546
590
  this.rect = {
547
591
  ...t
548
592
  }, this.width = t.width, this.height = t.height;
549
- for (const [o, a, s] of tr)
593
+ for (const [o, a, s] of nr)
550
594
  for (const l of a)
551
595
  Object.defineProperty(this, l, {
552
596
  get: () => {
@@ -574,7 +618,7 @@ class Se {
574
618
  (i = this.target) == null || i.addEventListener(t, n, r), this.listeners.push([t, n, r]);
575
619
  }
576
620
  }
577
- function nr(e) {
621
+ function rr(e) {
578
622
  const {
579
623
  EventTarget: t
580
624
  } = J(e);
@@ -588,48 +632,48 @@ var j;
588
632
  (function(e) {
589
633
  e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
590
634
  })(j || (j = {}));
591
- function It(e) {
635
+ function Pt(e) {
592
636
  e.preventDefault();
593
637
  }
594
- function rr(e) {
638
+ function or(e) {
595
639
  e.stopPropagation();
596
640
  }
597
- var D;
641
+ var x;
598
642
  (function(e) {
599
643
  e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
600
- })(D || (D = {}));
601
- const tn = {
602
- start: [D.Space, D.Enter],
603
- cancel: [D.Esc],
604
- end: [D.Space, D.Enter, D.Tab]
605
- }, or = (e, t) => {
644
+ })(x || (x = {}));
645
+ const on = {
646
+ start: [x.Space, x.Enter],
647
+ cancel: [x.Esc],
648
+ end: [x.Space, x.Enter, x.Tab]
649
+ }, ir = (e, t) => {
606
650
  let {
607
651
  currentCoordinates: n
608
652
  } = t;
609
653
  switch (e.code) {
610
- case D.Right:
654
+ case x.Right:
611
655
  return {
612
656
  ...n,
613
657
  x: n.x + 25
614
658
  };
615
- case D.Left:
659
+ case x.Left:
616
660
  return {
617
661
  ...n,
618
662
  x: n.x - 25
619
663
  };
620
- case D.Down:
664
+ case x.Down:
621
665
  return {
622
666
  ...n,
623
667
  y: n.y + 25
624
668
  };
625
- case D.Up:
669
+ case x.Up:
626
670
  return {
627
671
  ...n,
628
672
  y: n.y - 25
629
673
  };
630
674
  }
631
675
  };
632
- class nn {
676
+ class sn {
633
677
  constructor(t) {
634
678
  this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = t;
635
679
  const {
@@ -647,7 +691,7 @@ class nn {
647
691
  activeNode: t,
648
692
  onStart: n
649
693
  } = this.props, r = t.node.current;
650
- r && en(r), n(H);
694
+ r && rn(r), n(H);
651
695
  }
652
696
  handleKeyDown(t) {
653
697
  if (at(t)) {
@@ -656,8 +700,8 @@ class nn {
656
700
  context: r,
657
701
  options: i
658
702
  } = this.props, {
659
- keyboardCodes: o = tn,
660
- coordinateGetter: a = or,
703
+ keyboardCodes: o = on,
704
+ coordinateGetter: a = ir,
661
705
  scrollBehavior: s = "smooth"
662
706
  } = i, {
663
707
  code: l
@@ -683,13 +727,13 @@ class nn {
683
727
  currentCoordinates: d
684
728
  });
685
729
  if (u) {
686
- const g = Ke(u, d), f = {
730
+ const h = Ke(u, d), f = {
687
731
  x: 0,
688
732
  y: 0
689
733
  }, {
690
- scrollableAncestors: x
734
+ scrollableAncestors: D
691
735
  } = r.current;
692
- for (const h of x) {
736
+ for (const g of D) {
693
737
  const v = t.code, {
694
738
  isTop: y,
695
739
  isRight: w,
@@ -697,34 +741,34 @@ class nn {
697
741
  isBottom: T,
698
742
  maxScroll: C,
699
743
  minScroll: S
700
- } = Qt(h), p = Qn(h), b = {
701
- x: Math.min(v === D.Right ? p.right - p.width / 2 : p.right, Math.max(v === D.Right ? p.left : p.left + p.width / 2, u.x)),
702
- y: Math.min(v === D.Down ? p.bottom - p.height / 2 : p.bottom, Math.max(v === D.Down ? p.top : p.top + p.height / 2, u.y))
703
- }, R = v === D.Right && !w || v === D.Left && !m, k = v === D.Down && !T || v === D.Up && !y;
744
+ } = tn(g), p = Zn(g), b = {
745
+ x: Math.min(v === x.Right ? p.right - p.width / 2 : p.right, Math.max(v === x.Right ? p.left : p.left + p.width / 2, u.x)),
746
+ y: Math.min(v === x.Down ? p.bottom - p.height / 2 : p.bottom, Math.max(v === x.Down ? p.top : p.top + p.height / 2, u.y))
747
+ }, R = v === x.Right && !w || v === x.Left && !m, k = v === x.Down && !T || v === x.Up && !y;
704
748
  if (R && b.x !== u.x) {
705
- const E = h.scrollLeft + g.x, V = v === D.Right && E <= C.x || v === D.Left && E >= S.x;
706
- if (V && !g.y) {
707
- h.scrollTo({
749
+ const E = g.scrollLeft + h.x, V = v === x.Right && E <= C.x || v === x.Left && E >= S.x;
750
+ if (V && !h.y) {
751
+ g.scrollTo({
708
752
  left: E,
709
753
  behavior: s
710
754
  });
711
755
  return;
712
756
  }
713
- V ? f.x = h.scrollLeft - E : f.x = v === D.Right ? h.scrollLeft - C.x : h.scrollLeft - S.x, f.x && h.scrollBy({
757
+ V ? f.x = g.scrollLeft - E : f.x = v === x.Right ? g.scrollLeft - C.x : g.scrollLeft - S.x, f.x && g.scrollBy({
714
758
  left: -f.x,
715
759
  behavior: s
716
760
  });
717
761
  break;
718
762
  } else if (k && b.y !== u.y) {
719
- const E = h.scrollTop + g.y, V = v === D.Down && E <= C.y || v === D.Up && E >= S.y;
720
- if (V && !g.x) {
721
- h.scrollTo({
763
+ const E = g.scrollTop + h.y, V = v === x.Down && E <= C.y || v === x.Up && E >= S.y;
764
+ if (V && !h.x) {
765
+ g.scrollTo({
722
766
  top: E,
723
767
  behavior: s
724
768
  });
725
769
  return;
726
770
  }
727
- V ? f.y = h.scrollTop - E : f.y = v === D.Down ? h.scrollTop - C.y : h.scrollTop - S.y, f.y && h.scrollBy({
771
+ V ? f.y = g.scrollTop - E : f.y = v === x.Down ? g.scrollTop - C.y : g.scrollTop - S.y, f.y && g.scrollBy({
728
772
  top: -f.y,
729
773
  behavior: s
730
774
  });
@@ -757,11 +801,11 @@ class nn {
757
801
  this.listeners.removeAll(), this.windowListeners.removeAll();
758
802
  }
759
803
  }
760
- nn.activators = [{
804
+ sn.activators = [{
761
805
  eventName: "onKeyDown",
762
806
  handler: (e, t, n) => {
763
807
  let {
764
- keyboardCodes: r = tn,
808
+ keyboardCodes: r = on,
765
809
  onActivation: i
766
810
  } = t, {
767
811
  active: o
@@ -778,16 +822,16 @@ nn.activators = [{
778
822
  return !1;
779
823
  }
780
824
  }];
781
- function Pt(e) {
825
+ function zt(e) {
782
826
  return !!(e && "distance" in e);
783
827
  }
784
- function zt(e) {
828
+ function Bt(e) {
785
829
  return !!(e && "delay" in e);
786
830
  }
787
831
  class ht {
788
832
  constructor(t, n, r) {
789
833
  var i;
790
- r === void 0 && (r = nr(t.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = t, this.events = n;
834
+ r === void 0 && (r = rr(t.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = t, this.events = n;
791
835
  const {
792
836
  event: o
793
837
  } = t, {
@@ -807,18 +851,18 @@ class ht {
807
851
  } = this;
808
852
  if (this.listeners.add(t.move.name, this.handleMove, {
809
853
  passive: !1
810
- }), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(j.Resize, this.handleCancel), this.windowListeners.add(j.DragStart, It), this.windowListeners.add(j.VisibilityChange, this.handleCancel), this.windowListeners.add(j.ContextMenu, It), this.documentListeners.add(j.Keydown, this.handleKeydown), n) {
854
+ }), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(j.Resize, this.handleCancel), this.windowListeners.add(j.DragStart, Pt), this.windowListeners.add(j.VisibilityChange, this.handleCancel), this.windowListeners.add(j.ContextMenu, Pt), this.documentListeners.add(j.Keydown, this.handleKeydown), n) {
811
855
  if (r != null && r({
812
856
  event: this.props.event,
813
857
  activeNode: this.props.activeNode,
814
858
  options: this.props.options
815
859
  }))
816
860
  return this.handleStart();
817
- if (zt(n)) {
861
+ if (Bt(n)) {
818
862
  this.timeoutId = setTimeout(this.handleStart, n.delay), this.handlePending(n);
819
863
  return;
820
864
  }
821
- if (Pt(n)) {
865
+ if (zt(n)) {
822
866
  this.handlePending(n);
823
867
  return;
824
868
  }
@@ -841,7 +885,7 @@ class ht {
841
885
  } = this, {
842
886
  onStart: n
843
887
  } = this.props;
844
- t && (this.activated = !0, this.documentListeners.add(j.Click, rr, {
888
+ t && (this.activated = !0, this.documentListeners.add(j.Click, or, {
845
889
  capture: !0
846
890
  }), this.removeTextSelection(), this.documentListeners.add(j.SelectionChange, this.removeTextSelection), n(t));
847
891
  }
@@ -861,13 +905,13 @@ class ht {
861
905
  return;
862
906
  const l = (n = $e(t)) != null ? n : H, c = Ke(i, l);
863
907
  if (!r && s) {
864
- if (Pt(s)) {
908
+ if (zt(s)) {
865
909
  if (s.tolerance != null && tt(c, s.tolerance))
866
910
  return this.handleCancel();
867
911
  if (tt(c, s.distance))
868
912
  return this.handleStart();
869
913
  }
870
- if (zt(s) && tt(c, s.tolerance))
914
+ if (Bt(s) && tt(c, s.tolerance))
871
915
  return this.handleCancel();
872
916
  this.handlePending(s, c);
873
917
  return;
@@ -889,14 +933,14 @@ class ht {
889
933
  this.detach(), this.activated || t(this.props.active), n();
890
934
  }
891
935
  handleKeydown(t) {
892
- t.code === D.Esc && this.handleCancel();
936
+ t.code === x.Esc && this.handleCancel();
893
937
  }
894
938
  removeTextSelection() {
895
939
  var t;
896
940
  (t = this.document.getSelection()) == null || t.removeAllRanges();
897
941
  }
898
942
  }
899
- const ir = {
943
+ const sr = {
900
944
  cancel: {
901
945
  name: "pointercancel"
902
946
  },
@@ -907,15 +951,15 @@ const ir = {
907
951
  name: "pointerup"
908
952
  }
909
953
  };
910
- class rn extends ht {
954
+ class an extends ht {
911
955
  constructor(t) {
912
956
  const {
913
957
  event: n
914
958
  } = t, r = me(n.target);
915
- super(t, ir, r);
959
+ super(t, sr, r);
916
960
  }
917
961
  }
918
- rn.activators = [{
962
+ an.activators = [{
919
963
  eventName: "onPointerDown",
920
964
  handler: (e, t) => {
921
965
  let {
@@ -928,7 +972,7 @@ rn.activators = [{
928
972
  }), !0);
929
973
  }
930
974
  }];
931
- const sr = {
975
+ const ar = {
932
976
  move: {
933
977
  name: "mousemove"
934
978
  },
@@ -940,12 +984,12 @@ var it;
940
984
  (function(e) {
941
985
  e[e.RightClick = 2] = "RightClick";
942
986
  })(it || (it = {}));
943
- class ar extends ht {
987
+ class lr extends ht {
944
988
  constructor(t) {
945
- super(t, sr, me(t.event.target));
989
+ super(t, ar, me(t.event.target));
946
990
  }
947
991
  }
948
- ar.activators = [{
992
+ lr.activators = [{
949
993
  eventName: "onMouseDown",
950
994
  handler: (e, t) => {
951
995
  let {
@@ -969,7 +1013,7 @@ const nt = {
969
1013
  name: "touchend"
970
1014
  }
971
1015
  };
972
- class lr extends ht {
1016
+ class cr extends ht {
973
1017
  constructor(t) {
974
1018
  super(t, nt);
975
1019
  }
@@ -984,7 +1028,7 @@ class lr extends ht {
984
1028
  }
985
1029
  }
986
1030
  }
987
- lr.activators = [{
1031
+ cr.activators = [{
988
1032
  eventName: "onTouchStart",
989
1033
  handler: (e, t) => {
990
1034
  let {
@@ -1008,7 +1052,7 @@ var Ye;
1008
1052
  (function(e) {
1009
1053
  e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
1010
1054
  })(Ye || (Ye = {}));
1011
- function cr(e) {
1055
+ function ur(e) {
1012
1056
  let {
1013
1057
  acceleration: t,
1014
1058
  activator: n = Re.Pointer,
@@ -1021,12 +1065,12 @@ function cr(e) {
1021
1065
  scrollableAncestors: c,
1022
1066
  scrollableAncestorRects: d,
1023
1067
  delta: u,
1024
- threshold: g
1068
+ threshold: h
1025
1069
  } = e;
1026
- const f = dr({
1070
+ const f = fr({
1027
1071
  delta: u,
1028
1072
  disabled: !o
1029
- }), [x, h] = Cn(), v = P({
1073
+ }), [D, g] = En(), v = P({
1030
1074
  x: 0,
1031
1075
  y: 0
1032
1076
  }), y = P({
@@ -1054,7 +1098,7 @@ function cr(e) {
1054
1098
  O(
1055
1099
  () => {
1056
1100
  if (!o || !c.length || !w) {
1057
- h();
1101
+ g();
1058
1102
  return;
1059
1103
  }
1060
1104
  for (const S of C) {
@@ -1066,11 +1110,11 @@ function cr(e) {
1066
1110
  const {
1067
1111
  direction: R,
1068
1112
  speed: k
1069
- } = Gn(S, b, w, t, g);
1113
+ } = Qn(S, b, w, t, h);
1070
1114
  for (const E of ["x", "y"])
1071
1115
  f[E][R[E]] || (k[E] = 0, R[E] = 0);
1072
1116
  if (k.x > 0 || k.y > 0) {
1073
- h(), m.current = S, x(T, a), v.current = k, y.current = R;
1117
+ g(), m.current = S, D(T, a), v.current = k, y.current = R;
1074
1118
  return;
1075
1119
  }
1076
1120
  }
@@ -1080,30 +1124,30 @@ function cr(e) {
1080
1124
  }, y.current = {
1081
1125
  x: 0,
1082
1126
  y: 0
1083
- }, h();
1127
+ }, g();
1084
1128
  },
1085
1129
  // eslint-disable-next-line react-hooks/exhaustive-deps
1086
1130
  [
1087
1131
  t,
1088
1132
  T,
1089
1133
  r,
1090
- h,
1134
+ g,
1091
1135
  o,
1092
1136
  a,
1093
1137
  // eslint-disable-next-line react-hooks/exhaustive-deps
1094
1138
  JSON.stringify(w),
1095
1139
  // eslint-disable-next-line react-hooks/exhaustive-deps
1096
1140
  JSON.stringify(f),
1097
- x,
1141
+ D,
1098
1142
  c,
1099
1143
  C,
1100
1144
  d,
1101
1145
  // eslint-disable-next-line react-hooks/exhaustive-deps
1102
- JSON.stringify(g)
1146
+ JSON.stringify(h)
1103
1147
  ]
1104
1148
  );
1105
1149
  }
1106
- const ur = {
1150
+ const dr = {
1107
1151
  x: {
1108
1152
  [L.Backward]: !1,
1109
1153
  [L.Forward]: !1
@@ -1113,7 +1157,7 @@ const ur = {
1113
1157
  [L.Forward]: !1
1114
1158
  }
1115
1159
  };
1116
- function dr(e) {
1160
+ function fr(e) {
1117
1161
  let {
1118
1162
  delta: t,
1119
1163
  disabled: n
@@ -1121,7 +1165,7 @@ function dr(e) {
1121
1165
  const r = je(t);
1122
1166
  return Me((i) => {
1123
1167
  if (n || !r || !i)
1124
- return ur;
1168
+ return dr;
1125
1169
  const o = {
1126
1170
  x: Math.sign(t.x - r.x),
1127
1171
  y: Math.sign(t.y - r.y)
@@ -1138,14 +1182,14 @@ function dr(e) {
1138
1182
  };
1139
1183
  }, [n, t, r]);
1140
1184
  }
1141
- function fr(e, t) {
1185
+ function hr(e, t) {
1142
1186
  const n = t != null ? e.get(t) : void 0, r = n ? n.node.current : null;
1143
1187
  return Me((i) => {
1144
1188
  var o;
1145
1189
  return t == null ? null : (o = r ?? i) != null ? o : null;
1146
1190
  }, [r, t]);
1147
1191
  }
1148
- function hr(e, t) {
1192
+ function gr(e, t) {
1149
1193
  return A(() => e.reduce((n, r) => {
1150
1194
  const {
1151
1195
  sensor: i
@@ -1164,8 +1208,8 @@ var st;
1164
1208
  (function(e) {
1165
1209
  e.Optimized = "optimized";
1166
1210
  })(st || (st = {}));
1167
- const Bt = /* @__PURE__ */ new Map();
1168
- function gr(e, t) {
1211
+ const Ft = /* @__PURE__ */ new Map();
1212
+ function vr(e, t) {
1169
1213
  let {
1170
1214
  dragging: n,
1171
1215
  dependencies: r,
@@ -1175,12 +1219,12 @@ function gr(e, t) {
1175
1219
  frequency: s,
1176
1220
  measure: l,
1177
1221
  strategy: c
1178
- } = i, d = P(e), u = v(), g = Ae(u), f = U(function(y) {
1179
- y === void 0 && (y = []), !g.current && a((w) => w === null ? y : w.concat(y.filter((m) => !w.includes(m))));
1180
- }, [g]), x = P(null), h = Me((y) => {
1222
+ } = i, d = P(e), u = v(), h = Ae(u), f = U(function(y) {
1223
+ y === void 0 && (y = []), !h.current && a((w) => w === null ? y : w.concat(y.filter((m) => !w.includes(m))));
1224
+ }, [h]), D = P(null), g = Me((y) => {
1181
1225
  if (u && !n)
1182
- return Bt;
1183
- if (!y || y === Bt || d.current !== e || o != null) {
1226
+ return Ft;
1227
+ if (!y || y === Ft || d.current !== e || o != null) {
1184
1228
  const w = /* @__PURE__ */ new Map();
1185
1229
  for (let m of e) {
1186
1230
  if (!m)
@@ -1212,14 +1256,14 @@ function gr(e, t) {
1212
1256
  [JSON.stringify(o)]
1213
1257
  ), O(
1214
1258
  () => {
1215
- u || typeof s != "number" || x.current !== null || (x.current = setTimeout(() => {
1216
- f(), x.current = null;
1259
+ u || typeof s != "number" || D.current !== null || (D.current = setTimeout(() => {
1260
+ f(), D.current = null;
1217
1261
  }, s));
1218
1262
  },
1219
1263
  // eslint-disable-next-line react-hooks/exhaustive-deps
1220
1264
  [s, u, f, ...r]
1221
1265
  ), {
1222
- droppableRects: h,
1266
+ droppableRects: g,
1223
1267
  measureDroppableContainers: f,
1224
1268
  measuringScheduled: o != null
1225
1269
  };
@@ -1237,10 +1281,10 @@ function gr(e, t) {
1237
1281
  function gt(e, t) {
1238
1282
  return Me((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
1239
1283
  }
1240
- function vr(e, t) {
1284
+ function pr(e, t) {
1241
1285
  return gt(e, t);
1242
1286
  }
1243
- function pr(e) {
1287
+ function br(e) {
1244
1288
  let {
1245
1289
  callback: t,
1246
1290
  disabled: n
@@ -1274,11 +1318,11 @@ function _e(e) {
1274
1318
  );
1275
1319
  return O(() => () => i == null ? void 0 : i.disconnect(), [i]), i;
1276
1320
  }
1277
- function br(e) {
1321
+ function yr(e) {
1278
1322
  return new ft(Te(e), e);
1279
1323
  }
1280
- function Ft(e, t, n) {
1281
- t === void 0 && (t = br);
1324
+ function $t(e, t, n) {
1325
+ t === void 0 && (t = yr);
1282
1326
  const [r, i] = K(null);
1283
1327
  function o() {
1284
1328
  i((l) => {
@@ -1292,7 +1336,7 @@ function Ft(e, t, n) {
1292
1336
  return JSON.stringify(l) === JSON.stringify(d) ? l : d;
1293
1337
  });
1294
1338
  }
1295
- const a = pr({
1339
+ const a = br({
1296
1340
  callback(l) {
1297
1341
  if (e)
1298
1342
  for (const c of l) {
@@ -1316,18 +1360,18 @@ function Ft(e, t, n) {
1316
1360
  })) : (s == null || s.disconnect(), a == null || a.disconnect());
1317
1361
  }, [e]), r;
1318
1362
  }
1319
- function yr(e) {
1363
+ function mr(e) {
1320
1364
  const t = gt(e);
1321
- return Ht(e, t);
1365
+ return Jt(e, t);
1322
1366
  }
1323
- const $t = [];
1324
- function mr(e) {
1325
- const t = P(e), n = Me((r) => e ? r && r !== $t && e && t.current && e.parentNode === t.current.parentNode ? r : dt(e) : $t, [e]);
1367
+ const Kt = [];
1368
+ function wr(e) {
1369
+ const t = P(e), n = Me((r) => e ? r && r !== Kt && e && t.current && e.parentNode === t.current.parentNode ? r : dt(e) : Kt, [e]);
1326
1370
  return O(() => {
1327
1371
  t.current = e;
1328
1372
  }, [e]), n;
1329
1373
  }
1330
- function wr(e) {
1374
+ function Dr(e) {
1331
1375
  const [t, n] = K(null), r = P(e), i = U((o) => {
1332
1376
  const a = et(o.target);
1333
1377
  a && n((s) => s ? (s.set(a, ot(a)), new Map(s)) : null);
@@ -1353,9 +1397,9 @@ function wr(e) {
1353
1397
  c == null || c.removeEventListener("scroll", i);
1354
1398
  });
1355
1399
  }
1356
- }, [i, e]), A(() => e.length ? t ? Array.from(t.values()).reduce((o, a) => ye(o, a), H) : Zt(e) : H, [e, t]);
1400
+ }, [i, e]), A(() => e.length ? t ? Array.from(t.values()).reduce((o, a) => ye(o, a), H) : nn(e) : H, [e, t]);
1357
1401
  }
1358
- function Kt(e, t) {
1402
+ function Xt(e, t) {
1359
1403
  t === void 0 && (t = []);
1360
1404
  const n = P(null);
1361
1405
  return O(
@@ -1369,7 +1413,7 @@ function Kt(e, t) {
1369
1413
  r && !n.current && (n.current = e), !r && n.current && (n.current = null);
1370
1414
  }, [e]), n.current ? Ke(e, n.current) : H;
1371
1415
  }
1372
- function Dr(e) {
1416
+ function xr(e) {
1373
1417
  O(
1374
1418
  () => {
1375
1419
  if (!lt)
@@ -1395,7 +1439,7 @@ function Dr(e) {
1395
1439
  })
1396
1440
  );
1397
1441
  }
1398
- function xr(e, t) {
1442
+ function Cr(e, t) {
1399
1443
  return A(() => e.reduce((n, r) => {
1400
1444
  let {
1401
1445
  eventName: i,
@@ -1406,15 +1450,15 @@ function xr(e, t) {
1406
1450
  }, n;
1407
1451
  }, {}), [e, t]);
1408
1452
  }
1409
- function on(e) {
1410
- return A(() => e ? _n(e) : null, [e]);
1453
+ function ln(e) {
1454
+ return A(() => e ? qn(e) : null, [e]);
1411
1455
  }
1412
- const Xt = [];
1413
- function Cr(e, t) {
1456
+ const jt = [];
1457
+ function Sr(e, t) {
1414
1458
  t === void 0 && (t = Te);
1415
- const [n] = e, r = on(n ? J(n) : null), [i, o] = K(Xt);
1459
+ const [n] = e, r = ln(n ? J(n) : null), [i, o] = K(jt);
1416
1460
  function a() {
1417
- o(() => e.length ? e.map((l) => Gt(l) ? r : new ft(t(l), l)) : Xt);
1461
+ o(() => e.length ? e.map((l) => en(l) ? r : new ft(t(l), l)) : jt);
1418
1462
  }
1419
1463
  const s = _e({
1420
1464
  callback: a
@@ -1423,7 +1467,7 @@ function Cr(e, t) {
1423
1467
  s == null || s.disconnect(), a(), e.forEach((l) => s == null ? void 0 : s.observe(l));
1424
1468
  }, [e]), i;
1425
1469
  }
1426
- function sn(e) {
1470
+ function cn(e) {
1427
1471
  if (!e)
1428
1472
  return null;
1429
1473
  if (e.children.length > 1)
@@ -1431,7 +1475,7 @@ function sn(e) {
1431
1475
  const t = e.children[0];
1432
1476
  return He(t) ? t : e;
1433
1477
  }
1434
- function Sr(e) {
1478
+ function Rr(e) {
1435
1479
  let {
1436
1480
  measure: t
1437
1481
  } = e;
@@ -1441,19 +1485,19 @@ function Sr(e) {
1441
1485
  } of c)
1442
1486
  if (He(d)) {
1443
1487
  r((u) => {
1444
- const g = t(d);
1488
+ const h = t(d);
1445
1489
  return u ? {
1446
1490
  ...u,
1447
- width: g.width,
1448
- height: g.height
1449
- } : g;
1491
+ width: h.width,
1492
+ height: h.height
1493
+ } : h;
1450
1494
  });
1451
1495
  break;
1452
1496
  }
1453
1497
  }, [t]), o = _e({
1454
1498
  callback: i
1455
1499
  }), a = U((c) => {
1456
- const d = sn(c);
1500
+ const d = cn(c);
1457
1501
  o == null || o.disconnect(), d && (o == null || o.observe(d)), r(d ? t(d) : null);
1458
1502
  }, [t, o]), [s, l] = Xe(a);
1459
1503
  return A(() => ({
@@ -1462,20 +1506,20 @@ function Sr(e) {
1462
1506
  setRef: l
1463
1507
  }), [n, s, l]);
1464
1508
  }
1465
- const Rr = [{
1466
- sensor: rn,
1509
+ const Er = [{
1510
+ sensor: an,
1467
1511
  options: {}
1468
1512
  }, {
1469
- sensor: nn,
1513
+ sensor: sn,
1470
1514
  options: {}
1471
- }], Er = {
1515
+ }], Ar = {
1472
1516
  current: {}
1473
1517
  }, Fe = {
1474
1518
  draggable: {
1475
- measure: kt
1519
+ measure: It
1476
1520
  },
1477
1521
  droppable: {
1478
- measure: kt,
1522
+ measure: It,
1479
1523
  strategy: Oe.WhileDragging,
1480
1524
  frequency: st.Optimized
1481
1525
  },
@@ -1504,7 +1548,7 @@ class Ee extends Map {
1504
1548
  return (n = (r = this.get(t)) == null ? void 0 : r.node.current) != null ? n : void 0;
1505
1549
  }
1506
1550
  }
1507
- const Ar = {
1551
+ const Or = {
1508
1552
  activatorEvent: null,
1509
1553
  active: null,
1510
1554
  activeNode: null,
@@ -1528,7 +1572,7 @@ const Ar = {
1528
1572
  measureDroppableContainers: We,
1529
1573
  windowRect: null,
1530
1574
  measuringScheduled: !1
1531
- }, an = {
1575
+ }, un = {
1532
1576
  activatorEvent: null,
1533
1577
  activators: [],
1534
1578
  active: null,
@@ -1540,8 +1584,8 @@ const Ar = {
1540
1584
  draggableNodes: /* @__PURE__ */ new Map(),
1541
1585
  over: null,
1542
1586
  measureDroppableContainers: We
1543
- }, Le = /* @__PURE__ */ Ne(an), ln = /* @__PURE__ */ Ne(Ar);
1544
- function Or() {
1587
+ }, Le = /* @__PURE__ */ Ne(un), dn = /* @__PURE__ */ Ne(Or);
1588
+ function Nr() {
1545
1589
  return {
1546
1590
  draggable: {
1547
1591
  active: null,
@@ -1560,7 +1604,7 @@ function Or() {
1560
1604
  }
1561
1605
  };
1562
1606
  }
1563
- function Nr(e, t) {
1607
+ function Mr(e, t) {
1564
1608
  switch (t.type) {
1565
1609
  case N.DragStart:
1566
1610
  return {
@@ -1653,7 +1697,7 @@ function Nr(e, t) {
1653
1697
  return e;
1654
1698
  }
1655
1699
  }
1656
- function Mr(e) {
1700
+ function Tr(e) {
1657
1701
  let {
1658
1702
  disabled: t
1659
1703
  } = e;
@@ -1679,7 +1723,7 @@ function Mr(e) {
1679
1723
  for (const d of [l.current, c.current]) {
1680
1724
  if (!d)
1681
1725
  continue;
1682
- const u = Sn(d);
1726
+ const u = An(d);
1683
1727
  if (u) {
1684
1728
  u.focus();
1685
1729
  break;
@@ -1689,7 +1733,7 @@ function Mr(e) {
1689
1733
  }
1690
1734
  }, [r, t, i, a, o]), null;
1691
1735
  }
1692
- function cn(e, t) {
1736
+ function fn(e, t) {
1693
1737
  let {
1694
1738
  transform: n,
1695
1739
  ...r
@@ -1699,7 +1743,7 @@ function cn(e, t) {
1699
1743
  ...r
1700
1744
  }), n) : n;
1701
1745
  }
1702
- function Tr(e) {
1746
+ function Lr(e) {
1703
1747
  return A(
1704
1748
  () => ({
1705
1749
  draggable: {
@@ -1719,7 +1763,7 @@ function Tr(e) {
1719
1763
  [e == null ? void 0 : e.draggable, e == null ? void 0 : e.droppable, e == null ? void 0 : e.dragOverlay]
1720
1764
  );
1721
1765
  }
1722
- function Lr(e) {
1766
+ function kr(e) {
1723
1767
  let {
1724
1768
  activeNode: t,
1725
1769
  measure: n,
@@ -1743,10 +1787,10 @@ function Lr(e) {
1743
1787
  const c = t == null ? void 0 : t.node.current;
1744
1788
  if (!c || c.isConnected === !1)
1745
1789
  return;
1746
- const d = n(c), u = Ht(d, r);
1790
+ const d = n(c), u = Jt(d, r);
1747
1791
  if (a || (u.x = 0), s || (u.y = 0), o.current = !0, Math.abs(u.x) > 0 || Math.abs(u.y) > 0) {
1748
- const g = qt(c);
1749
- g && g.scrollBy({
1792
+ const h = Gt(c);
1793
+ h && h.scrollBy({
1750
1794
  top: u.y,
1751
1795
  left: u.x
1752
1796
  });
@@ -1762,20 +1806,20 @@ var se;
1762
1806
  (function(e) {
1763
1807
  e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
1764
1808
  })(se || (se = {}));
1765
- const ro = /* @__PURE__ */ yn(function(t) {
1809
+ const io = /* @__PURE__ */ Dn(function(t) {
1766
1810
  var n, r, i, o;
1767
1811
  let {
1768
1812
  id: a,
1769
1813
  accessibility: s,
1770
1814
  autoScroll: l = !0,
1771
1815
  children: c,
1772
- sensors: d = Rr,
1773
- collisionDetection: u = Xn,
1774
- measuring: g,
1816
+ sensors: d = Er,
1817
+ collisionDetection: u = jn,
1818
+ measuring: h,
1775
1819
  modifiers: f,
1776
- ...x
1820
+ ...D
1777
1821
  } = t;
1778
- const h = mn(Nr, void 0, Or), [v, y] = h, [w, m] = Tn(), [T, C] = K(se.Uninitialized), S = T === se.Initialized, {
1822
+ const g = xn(Mr, void 0, Nr), [v, y] = g, [w, m] = In(), [T, C] = K(se.Uninitialized), S = T === se.Initialized, {
1779
1823
  draggable: {
1780
1824
  active: p,
1781
1825
  nodes: b,
@@ -1792,25 +1836,25 @@ const ro = /* @__PURE__ */ yn(function(t) {
1792
1836
  return p != null ? {
1793
1837
  id: p,
1794
1838
  // It's possible for the active node to unmount while dragging
1795
- data: (z = E == null ? void 0 : E.data) != null ? z : Er,
1839
+ data: (z = E == null ? void 0 : E.data) != null ? z : Ar,
1796
1840
  rect: V
1797
1841
  } : null;
1798
- }, [p, E]), ee = P(null), [vt, pt] = K(null), [Q, bt] = K(null), ae = Ae(x, Object.values(x)), Je = Ue("DndDescribedBy", a), yt = A(() => k.getEnabled(), [k]), le = Tr(g), {
1842
+ }, [p, E]), ee = P(null), [vt, pt] = K(null), [Q, bt] = K(null), ae = Ae(D, Object.values(D)), Je = Ue("DndDescribedBy", a), yt = A(() => k.getEnabled(), [k]), le = Lr(h), {
1799
1843
  droppableRects: he,
1800
1844
  measureDroppableContainers: ke,
1801
1845
  measuringScheduled: mt
1802
- } = gr(yt, {
1846
+ } = vr(yt, {
1803
1847
  dragging: S,
1804
1848
  dependencies: [R.x, R.y],
1805
1849
  config: le.droppable
1806
- }), W = fr(b, p), wt = A(() => Q ? $e(Q) : null, [Q]), Dt = bn(), xt = vr(W, le.draggable.measure);
1807
- Lr({
1850
+ }), W = hr(b, p), wt = A(() => Q ? $e(Q) : null, [Q]), Dt = wn(), xt = pr(W, le.draggable.measure);
1851
+ kr({
1808
1852
  activeNode: p != null ? b.get(p) : null,
1809
1853
  config: Dt.layoutShiftCompensation,
1810
1854
  initialRect: xt,
1811
1855
  measure: le.draggable.measure
1812
1856
  });
1813
- const Y = Ft(W, le.draggable.measure, xt), Ve = Ft(W ? W.parentElement : null), ce = P({
1857
+ const Y = $t(W, le.draggable.measure, xt), Ve = $t(W ? W.parentElement : null), ce = P({
1814
1858
  activatorEvent: null,
1815
1859
  active: null,
1816
1860
  activeNode: W,
@@ -1824,9 +1868,9 @@ const ro = /* @__PURE__ */ yn(function(t) {
1824
1868
  over: null,
1825
1869
  scrollableAncestors: [],
1826
1870
  scrollAdjustedTranslate: null
1827
- }), Ct = k.getNodeFor((n = ce.current.over) == null ? void 0 : n.id), ue = Sr({
1871
+ }), Ct = k.getNodeFor((n = ce.current.over) == null ? void 0 : n.id), ue = Rr({
1828
1872
  measure: le.dragOverlay.measure
1829
- }), Ie = (r = ue.nodeRef.current) != null ? r : W, ge = S ? (i = ue.rect) != null ? i : Y : null, St = !!(ue.nodeRef.current && ue.rect), Rt = yr(St ? null : Y), Ge = on(Ie ? J(Ie) : null), te = mr(S ? Ct ?? W : null), Pe = Cr(te), ze = cn(f, {
1873
+ }), Ie = (r = ue.nodeRef.current) != null ? r : W, ge = S ? (i = ue.rect) != null ? i : Y : null, St = !!(ue.nodeRef.current && ue.rect), Rt = mr(St ? null : Y), Ge = ln(Ie ? J(Ie) : null), te = wr(S ? Ct ?? W : null), Pe = Sr(te), ze = fn(f, {
1830
1874
  transform: {
1831
1875
  x: R.x - Rt.x,
1832
1876
  y: R.y - Rt.y,
@@ -1843,13 +1887,13 @@ const ro = /* @__PURE__ */ yn(function(t) {
1843
1887
  scrollableAncestors: te,
1844
1888
  scrollableAncestorRects: Pe,
1845
1889
  windowRect: Ge
1846
- }), Et = wt ? ye(wt, R) : null, At = wr(te), un = Kt(At), dn = Kt(At, [Y]), ve = ye(ze, un), pe = ge ? Yn(ge, ze) : null, we = G && pe ? u({
1890
+ }), Et = wt ? ye(wt, R) : null, At = Dr(te), hn = Xt(At), gn = Xt(At, [Y]), ve = ye(ze, hn), pe = ge ? Un(ge, ze) : null, we = G && pe ? u({
1847
1891
  active: G,
1848
1892
  collisionRect: pe,
1849
1893
  droppableRects: he,
1850
1894
  droppableContainers: yt,
1851
1895
  pointerCoordinates: Et
1852
- }) : null, Ot = $n(we, "id"), [ne, Nt] = K(null), fn = St ? ze : ye(ze, dn), hn = jn(fn, (o = ne == null ? void 0 : ne.rect) != null ? o : null, Y), Qe = P(null), Mt = U(
1896
+ }) : null, Ot = Kn(we, "id"), [ne, Nt] = K(null), vn = St ? ze : ye(ze, gn), pn = Wn(vn, (o = ne == null ? void 0 : ne.rect) != null ? o : null, Y), Qe = P(null), Mt = U(
1853
1897
  (z, B) => {
1854
1898
  let {
1855
1899
  sensor: F,
@@ -1974,7 +2018,7 @@ const ro = /* @__PURE__ */ yn(function(t) {
1974
2018
  },
1975
2019
  // eslint-disable-next-line react-hooks/exhaustive-deps
1976
2020
  [b]
1977
- ), gn = U((z, B) => (F, re) => {
2021
+ ), bn = U((z, B) => (F, re) => {
1978
2022
  const X = F.nativeEvent, $ = b.get(re);
1979
2023
  if (
1980
2024
  // Another sensor is already instantiating
@@ -1989,8 +2033,8 @@ const ro = /* @__PURE__ */ yn(function(t) {
1989
2033
  z(F, B.options, _) === !0 && (X.dndKit = {
1990
2034
  capturedBy: B.sensor
1991
2035
  }, ee.current = re, Mt(F, B));
1992
- }, [b, Mt]), Tt = hr(d, gn);
1993
- Dr(d), fe(() => {
2036
+ }, [b, Mt]), Tt = gr(d, bn);
2037
+ xr(d), fe(() => {
1994
2038
  Y && T === se.Initializing && C(se.Initialized);
1995
2039
  }, [Y, T]), O(
1996
2040
  () => {
@@ -2079,7 +2123,7 @@ const ro = /* @__PURE__ */ yn(function(t) {
2079
2123
  initial: ge,
2080
2124
  translated: pe
2081
2125
  };
2082
- }, [G, W, we, pe, b, Ie, ge, he, k, ne, te, ve]), cr({
2126
+ }, [G, W, we, pe, b, Ie, ge, he, k, ne, te, ve]), ur({
2083
2127
  ...Dt,
2084
2128
  delta: R,
2085
2129
  draggingRect: pe,
@@ -2087,7 +2131,7 @@ const ro = /* @__PURE__ */ yn(function(t) {
2087
2131
  scrollableAncestors: te,
2088
2132
  scrollableAncestorRects: Pe
2089
2133
  });
2090
- const vn = A(() => ({
2134
+ const yn = A(() => ({
2091
2135
  active: G,
2092
2136
  activeNode: W,
2093
2137
  activeNodeRect: Y,
@@ -2105,7 +2149,7 @@ const ro = /* @__PURE__ */ yn(function(t) {
2105
2149
  measuringConfiguration: le,
2106
2150
  measuringScheduled: mt,
2107
2151
  windowRect: Ge
2108
- }), [G, W, Y, Q, we, Ve, ue, b, k, he, ne, ke, te, Pe, le, mt, Ge]), pn = A(() => ({
2152
+ }), [G, W, Y, Q, we, Ve, ue, b, k, he, ne, ke, te, Pe, le, mt, Ge]), mn = A(() => ({
2109
2153
  activatorEvent: Q,
2110
2154
  activators: Tt,
2111
2155
  active: G,
@@ -2118,21 +2162,21 @@ const ro = /* @__PURE__ */ yn(function(t) {
2118
2162
  over: ne,
2119
2163
  measureDroppableContainers: ke
2120
2164
  }), [Q, Tt, G, Y, y, Je, b, ne, ke]);
2121
- return M.createElement(Ut.Provider, {
2165
+ return M.createElement(Ht.Provider, {
2122
2166
  value: m
2123
2167
  }, M.createElement(Le.Provider, {
2124
- value: pn
2125
- }, M.createElement(ln.Provider, {
2126
- value: vn
2168
+ value: mn
2169
+ }, M.createElement(dn.Provider, {
2170
+ value: yn
2127
2171
  }, M.createElement(qe.Provider, {
2128
- value: hn
2129
- }, c)), M.createElement(Mr, {
2172
+ value: pn
2173
+ }, c)), M.createElement(Tr, {
2130
2174
  disabled: (s == null ? void 0 : s.restoreFocus) === !1
2131
- })), M.createElement(In, {
2175
+ })), M.createElement(Bn, {
2132
2176
  ...s,
2133
2177
  hiddenTextDescribedById: Je
2134
2178
  }));
2135
- function bn() {
2179
+ function wn() {
2136
2180
  const z = (vt == null ? void 0 : vt.autoScrollEnabled) === !1, B = typeof l == "object" ? l.enabled === !1 : l === !1, F = S && !z && !B;
2137
2181
  return typeof l == "object" ? {
2138
2182
  ...l,
@@ -2141,27 +2185,27 @@ const ro = /* @__PURE__ */ yn(function(t) {
2141
2185
  enabled: F
2142
2186
  };
2143
2187
  }
2144
- }), kr = /* @__PURE__ */ Ne(null), jt = "button", Ir = "Draggable";
2145
- function oo(e) {
2188
+ }), Ir = /* @__PURE__ */ Ne(null), Wt = "button", Pr = "Draggable";
2189
+ function so(e) {
2146
2190
  let {
2147
2191
  id: t,
2148
2192
  data: n,
2149
2193
  disabled: r = !1,
2150
2194
  attributes: i
2151
2195
  } = e;
2152
- const o = Ue(Ir), {
2196
+ const o = Ue(Pr), {
2153
2197
  activators: a,
2154
2198
  activatorEvent: s,
2155
2199
  active: l,
2156
2200
  activeNodeRect: c,
2157
2201
  ariaDescribedById: d,
2158
2202
  draggableNodes: u,
2159
- over: g
2203
+ over: h
2160
2204
  } = de(Le), {
2161
- role: f = jt,
2162
- roleDescription: x = "draggable",
2163
- tabIndex: h = 0
2164
- } = i ?? {}, v = (l == null ? void 0 : l.id) === t, y = de(v ? qe : kr), [w, m] = Xe(), [T, C] = Xe(), S = xr(a, t), p = Ae(n);
2205
+ role: f = Wt,
2206
+ roleDescription: D = "draggable",
2207
+ tabIndex: g = 0
2208
+ } = i ?? {}, v = (l == null ? void 0 : l.id) === t, y = de(v ? qe : Ir), [w, m] = Xe(), [T, C] = Xe(), S = Cr(a, t), p = Ae(n);
2165
2209
  fe(
2166
2210
  () => (u.set(t, {
2167
2211
  id: t,
@@ -2178,12 +2222,12 @@ function oo(e) {
2178
2222
  );
2179
2223
  const b = A(() => ({
2180
2224
  role: f,
2181
- tabIndex: h,
2225
+ tabIndex: g,
2182
2226
  "aria-disabled": r,
2183
- "aria-pressed": v && f === jt ? !0 : void 0,
2184
- "aria-roledescription": x,
2227
+ "aria-pressed": v && f === Wt ? !0 : void 0,
2228
+ "aria-roledescription": D,
2185
2229
  "aria-describedby": d.draggable
2186
- }), [r, f, h, v, x, d.draggable]);
2230
+ }), [r, f, g, v, D, d.draggable]);
2187
2231
  return {
2188
2232
  active: l,
2189
2233
  activatorEvent: s,
@@ -2192,40 +2236,40 @@ function oo(e) {
2192
2236
  isDragging: v,
2193
2237
  listeners: r ? void 0 : S,
2194
2238
  node: w,
2195
- over: g,
2239
+ over: h,
2196
2240
  setNodeRef: m,
2197
2241
  setActivatorNodeRef: C,
2198
2242
  transform: y
2199
2243
  };
2200
2244
  }
2201
- function Pr() {
2202
- return de(ln);
2245
+ function zr() {
2246
+ return de(dn);
2203
2247
  }
2204
- const zr = "Droppable", Br = {
2248
+ const Br = "Droppable", Fr = {
2205
2249
  timeout: 25
2206
2250
  };
2207
- function io(e) {
2251
+ function ao(e) {
2208
2252
  let {
2209
2253
  data: t,
2210
2254
  disabled: n = !1,
2211
2255
  id: r,
2212
2256
  resizeObserverConfig: i
2213
2257
  } = e;
2214
- const o = Ue(zr), {
2258
+ const o = Ue(Br), {
2215
2259
  active: a,
2216
2260
  dispatch: s,
2217
2261
  over: l,
2218
2262
  measureDroppableContainers: c
2219
2263
  } = de(Le), d = P({
2220
2264
  disabled: n
2221
- }), u = P(!1), g = P(null), f = P(null), {
2222
- disabled: x,
2223
- updateMeasurementsFor: h,
2265
+ }), u = P(!1), h = P(null), f = P(null), {
2266
+ disabled: D,
2267
+ updateMeasurementsFor: g,
2224
2268
  timeout: v
2225
2269
  } = {
2226
- ...Br,
2270
+ ...Fr,
2227
2271
  ...i
2228
- }, y = Ae(h ?? r), w = U(
2272
+ }, y = Ae(g ?? r), w = U(
2229
2273
  () => {
2230
2274
  if (!u.current) {
2231
2275
  u.current = !0;
@@ -2239,7 +2283,7 @@ function io(e) {
2239
2283
  [v]
2240
2284
  ), m = _e({
2241
2285
  callback: w,
2242
- disabled: x || !a
2286
+ disabled: D || !a
2243
2287
  }), T = U((b, R) => {
2244
2288
  m && (R && (m.unobserve(R), u.current = !1), b && m.observe(b));
2245
2289
  }, [m]), [C, S] = Xe(T), p = Ae(t);
@@ -2253,7 +2297,7 @@ function io(e) {
2253
2297
  key: o,
2254
2298
  disabled: n,
2255
2299
  node: C,
2256
- rect: g,
2300
+ rect: h,
2257
2301
  data: p
2258
2302
  }
2259
2303
  }), () => s({
@@ -2272,14 +2316,14 @@ function io(e) {
2272
2316
  }), d.current.disabled = n);
2273
2317
  }, [r, o, n, s]), {
2274
2318
  active: a,
2275
- rect: g,
2319
+ rect: h,
2276
2320
  isOver: (l == null ? void 0 : l.id) === r,
2277
2321
  node: C,
2278
2322
  over: l,
2279
2323
  setNodeRef: S
2280
2324
  };
2281
2325
  }
2282
- function Fr(e) {
2326
+ function $r(e) {
2283
2327
  let {
2284
2328
  animation: t,
2285
2329
  children: n
@@ -2296,30 +2340,30 @@ function Fr(e) {
2296
2340
  Promise.resolve(t(c, o)).then(() => {
2297
2341
  i(null);
2298
2342
  });
2299
- }, [t, r, o]), M.createElement(M.Fragment, null, n, r ? wn(r, {
2343
+ }, [t, r, o]), M.createElement(M.Fragment, null, n, r ? Cn(r, {
2300
2344
  ref: a
2301
2345
  }) : null);
2302
2346
  }
2303
- const $r = {
2347
+ const Kr = {
2304
2348
  x: 0,
2305
2349
  y: 0,
2306
2350
  scaleX: 1,
2307
2351
  scaleY: 1
2308
2352
  };
2309
- function Kr(e) {
2353
+ function Xr(e) {
2310
2354
  let {
2311
2355
  children: t
2312
2356
  } = e;
2313
2357
  return M.createElement(Le.Provider, {
2314
- value: an
2358
+ value: un
2315
2359
  }, M.createElement(qe.Provider, {
2316
- value: $r
2360
+ value: Kr
2317
2361
  }, t));
2318
2362
  }
2319
- const Xr = {
2363
+ const jr = {
2320
2364
  position: "fixed",
2321
2365
  touchAction: "none"
2322
- }, jr = (e) => at(e) ? "transform 250ms ease" : void 0, Wr = /* @__PURE__ */ Dn((e, t) => {
2366
+ }, Wr = (e) => at(e) ? "transform 250ms ease" : void 0, Yr = /* @__PURE__ */ Sn((e, t) => {
2323
2367
  let {
2324
2368
  as: n,
2325
2369
  activatorEvent: r,
@@ -2329,7 +2373,7 @@ const Xr = {
2329
2373
  rect: s,
2330
2374
  style: l,
2331
2375
  transform: c,
2332
- transition: d = jr
2376
+ transition: d = Wr
2333
2377
  } = e;
2334
2378
  if (!s)
2335
2379
  return null;
@@ -2337,23 +2381,23 @@ const Xr = {
2337
2381
  ...c,
2338
2382
  scaleX: 1,
2339
2383
  scaleY: 1
2340
- }, g = {
2341
- ...Xr,
2384
+ }, h = {
2385
+ ...jr,
2342
2386
  width: s.width,
2343
2387
  height: s.height,
2344
2388
  top: s.top,
2345
2389
  left: s.left,
2346
2390
  transform: rt.Transform.toString(u),
2347
- transformOrigin: i && r ? zn(r, s) : void 0,
2391
+ transformOrigin: i && r ? Fn(r, s) : void 0,
2348
2392
  transition: typeof d == "function" ? d(r) : d,
2349
2393
  ...l
2350
2394
  };
2351
2395
  return M.createElement(n, {
2352
2396
  className: a,
2353
- style: g,
2397
+ style: h,
2354
2398
  ref: t
2355
2399
  }, o);
2356
- }), Yr = (e) => (t) => {
2400
+ }), Ur = (e) => (t) => {
2357
2401
  let {
2358
2402
  active: n,
2359
2403
  dragOverlay: r
@@ -2373,7 +2417,7 @@ const Xr = {
2373
2417
  n.node.style.setProperty(l, c);
2374
2418
  a != null && a.active && n.node.classList.remove(a.active);
2375
2419
  };
2376
- }, Ur = (e) => {
2420
+ }, Hr = (e) => {
2377
2421
  let {
2378
2422
  transform: {
2379
2423
  initial: t,
@@ -2385,11 +2429,11 @@ const Xr = {
2385
2429
  }, {
2386
2430
  transform: rt.Transform.toString(n)
2387
2431
  }];
2388
- }, Hr = {
2432
+ }, _r = {
2389
2433
  duration: 250,
2390
2434
  easing: "ease",
2391
- keyframes: Ur,
2392
- sideEffects: /* @__PURE__ */ Yr({
2435
+ keyframes: Hr,
2436
+ sideEffects: /* @__PURE__ */ Ur({
2393
2437
  styles: {
2394
2438
  active: {
2395
2439
  opacity: "0"
@@ -2397,7 +2441,7 @@ const Xr = {
2397
2441
  }
2398
2442
  })
2399
2443
  };
2400
- function _r(e) {
2444
+ function qr(e) {
2401
2445
  let {
2402
2446
  config: t,
2403
2447
  draggableNodes: n,
@@ -2413,16 +2457,16 @@ function _r(e) {
2413
2457
  const l = s.node.current;
2414
2458
  if (!l)
2415
2459
  return;
2416
- const c = sn(a);
2460
+ const c = cn(a);
2417
2461
  if (!c)
2418
2462
  return;
2419
2463
  const {
2420
2464
  transform: d
2421
- } = J(a).getComputedStyle(a), u = _t(d);
2465
+ } = J(a).getComputedStyle(a), u = Vt(d);
2422
2466
  if (!u)
2423
2467
  return;
2424
- const g = typeof t == "function" ? t : qr(t);
2425
- return en(l, i.draggable.measure), g({
2468
+ const h = typeof t == "function" ? t : Jr(t);
2469
+ return rn(l, i.draggable.measure), h({
2426
2470
  active: {
2427
2471
  id: o,
2428
2472
  data: s.data,
@@ -2440,14 +2484,14 @@ function _r(e) {
2440
2484
  });
2441
2485
  });
2442
2486
  }
2443
- function qr(e) {
2487
+ function Jr(e) {
2444
2488
  const {
2445
2489
  duration: t,
2446
2490
  easing: n,
2447
2491
  sideEffects: r,
2448
2492
  keyframes: i
2449
2493
  } = {
2450
- ...Hr,
2494
+ ..._r,
2451
2495
  ...e
2452
2496
  };
2453
2497
  return (o) => {
@@ -2465,7 +2509,7 @@ function qr(e) {
2465
2509
  }, u = {
2466
2510
  scaleX: l.scaleX !== 1 ? a.rect.width * l.scaleX / s.rect.width : 1,
2467
2511
  scaleY: l.scaleY !== 1 ? a.rect.height * l.scaleY / s.rect.height : 1
2468
- }, g = {
2512
+ }, h = {
2469
2513
  x: l.x - d.x,
2470
2514
  y: l.y - d.y,
2471
2515
  ...u
@@ -2475,10 +2519,10 @@ function qr(e) {
2475
2519
  dragOverlay: s,
2476
2520
  transform: {
2477
2521
  initial: l,
2478
- final: g
2522
+ final: h
2479
2523
  }
2480
- }), [x] = f, h = f[f.length - 1];
2481
- if (JSON.stringify(x) === JSON.stringify(h))
2524
+ }), [D] = f, g = f[f.length - 1];
2525
+ if (JSON.stringify(D) === JSON.stringify(g))
2482
2526
  return;
2483
2527
  const v = r == null ? void 0 : r({
2484
2528
  active: a,
@@ -2496,14 +2540,14 @@ function qr(e) {
2496
2540
  });
2497
2541
  };
2498
2542
  }
2499
- let Wt = 0;
2500
- function Jr(e) {
2543
+ let Yt = 0;
2544
+ function Vr(e) {
2501
2545
  return A(() => {
2502
2546
  if (e != null)
2503
- return Wt++, Wt;
2547
+ return Yt++, Yt;
2504
2548
  }, [e]);
2505
2549
  }
2506
- const so = /* @__PURE__ */ M.memo((e) => {
2550
+ const lo = /* @__PURE__ */ M.memo((e) => {
2507
2551
  let {
2508
2552
  adjustScale: t = !1,
2509
2553
  children: n,
@@ -2518,20 +2562,20 @@ const so = /* @__PURE__ */ M.memo((e) => {
2518
2562
  const {
2519
2563
  activatorEvent: d,
2520
2564
  active: u,
2521
- activeNodeRect: g,
2565
+ activeNodeRect: h,
2522
2566
  containerNodeRect: f,
2523
- draggableNodes: x,
2524
- droppableContainers: h,
2567
+ draggableNodes: D,
2568
+ droppableContainers: g,
2525
2569
  dragOverlay: v,
2526
2570
  over: y,
2527
2571
  measuringConfiguration: w,
2528
2572
  scrollableAncestors: m,
2529
2573
  scrollableAncestorRects: T,
2530
2574
  windowRect: C
2531
- } = Pr(), S = de(qe), p = Jr(u == null ? void 0 : u.id), b = cn(a, {
2575
+ } = zr(), S = de(qe), p = Vr(u == null ? void 0 : u.id), b = fn(a, {
2532
2576
  activatorEvent: d,
2533
2577
  active: u,
2534
- activeNodeRect: g,
2578
+ activeNodeRect: h,
2535
2579
  containerNodeRect: f,
2536
2580
  draggingNodeRect: v.rect,
2537
2581
  over: y,
@@ -2540,15 +2584,15 @@ const so = /* @__PURE__ */ M.memo((e) => {
2540
2584
  scrollableAncestorRects: T,
2541
2585
  transform: S,
2542
2586
  windowRect: C
2543
- }), R = gt(g), k = _r({
2587
+ }), R = gt(h), k = qr({
2544
2588
  config: r,
2545
- draggableNodes: x,
2546
- droppableContainers: h,
2589
+ draggableNodes: D,
2590
+ droppableContainers: g,
2547
2591
  measuringConfiguration: w
2548
2592
  }), E = R ? v.setRef : void 0;
2549
- return M.createElement(Kr, null, M.createElement(Fr, {
2593
+ return M.createElement(Xr, null, M.createElement($r, {
2550
2594
  animation: k
2551
- }, u && p ? M.createElement(Wr, {
2595
+ }, u && p ? M.createElement(Yr, {
2552
2596
  key: p,
2553
2597
  id: u.id,
2554
2598
  ref: E,
@@ -2567,33 +2611,34 @@ const so = /* @__PURE__ */ M.memo((e) => {
2567
2611
  });
2568
2612
  export {
2569
2613
  Re as AutoScrollActivator,
2570
- ro as DndContext,
2571
- so as DragOverlay,
2572
- D as KeyboardCode,
2573
- nn as KeyboardSensor,
2614
+ io as DndContext,
2615
+ lo as DragOverlay,
2616
+ x as KeyboardCode,
2617
+ sn as KeyboardSensor,
2574
2618
  st as MeasuringFrequency,
2575
2619
  Oe as MeasuringStrategy,
2576
- ar as MouseSensor,
2577
- rn as PointerSensor,
2578
- lr as TouchSensor,
2620
+ lr as MouseSensor,
2621
+ an as PointerSensor,
2622
+ cr as TouchSensor,
2579
2623
  Ye as TraversalOrder,
2580
- cn as applyModifiers,
2581
- no as closestCenter,
2582
- kn as defaultAnnouncements,
2624
+ fn as applyModifiers,
2625
+ ro as closestCenter,
2626
+ oo as closestCorners,
2627
+ zn as defaultAnnouncements,
2583
2628
  H as defaultCoordinates,
2584
- Hr as defaultDropAnimation,
2585
- Yr as defaultDropAnimationSideEffects,
2586
- or as defaultKeyboardCoordinateGetter,
2587
- Ln as defaultScreenReaderInstructions,
2629
+ _r as defaultDropAnimation,
2630
+ Ur as defaultDropAnimationSideEffects,
2631
+ ir as defaultKeyboardCoordinateGetter,
2632
+ Pn as defaultScreenReaderInstructions,
2588
2633
  Te as getClientRect,
2589
- $n as getFirstCollision,
2634
+ Kn as getFirstCollision,
2590
2635
  dt as getScrollableAncestors,
2591
- Xn as rectIntersection,
2592
- Pr as useDndContext,
2593
- Mn as useDndMonitor,
2594
- oo as useDraggable,
2595
- io as useDroppable,
2596
- eo as useSensor,
2597
- to as useSensors
2636
+ jn as rectIntersection,
2637
+ zr as useDndContext,
2638
+ kn as useDndMonitor,
2639
+ so as useDraggable,
2640
+ ao as useDroppable,
2641
+ to as useSensor,
2642
+ no as useSensors
2598
2643
  };
2599
2644
  //# sourceMappingURL=core.esm.js.map