@spacego/fe-components 0.1.1 → 0.2.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 (205) hide show
  1. package/README.md +37 -37
  2. package/lib/_virtual/Resizable.js +4 -0
  3. package/lib/_virtual/ResizableBox.js +4 -0
  4. package/lib/_virtual/index.js +5 -0
  5. package/lib/_virtual/index2.js +4 -0
  6. package/lib/_virtual/index3.js +4 -0
  7. package/lib/_virtual/index4.js +4 -0
  8. package/lib/_virtual/propTypes.js +4 -0
  9. package/lib/_virtual/react-is.development.js +4 -0
  10. package/lib/_virtual/react-is.production.min.js +4 -0
  11. package/lib/_virtual/utils.js +4 -0
  12. package/lib/fe-auto-complete/index.js +6 -0
  13. package/lib/fe-button/index.js +27 -0
  14. package/lib/fe-cascader/index.js +19 -0
  15. package/lib/fe-checkbox/index.js +6 -0
  16. package/lib/fe-checkbox-group/index.js +6 -0
  17. package/lib/fe-date-picker/index.js +19 -0
  18. package/lib/fe-description-render/index.js +43 -0
  19. package/lib/fe-descriptions/index.js +6 -0
  20. package/lib/fe-empty/index.js +6 -0
  21. package/lib/fe-error-block/index.js +6 -0
  22. package/lib/fe-form/fe-form/index.js +133 -0
  23. package/lib/fe-form/fe-form-auto-complete/index.js +57 -0
  24. package/lib/fe-form/fe-form-btn-group/index.js +29 -0
  25. package/lib/fe-form/fe-form-cascader/index.js +25 -0
  26. package/lib/fe-form/fe-form-checkbox-group/index.js +21 -0
  27. package/lib/fe-form/fe-form-date-picker/index.js +75 -0
  28. package/lib/fe-form/fe-form-date-range-picker/index.js +99 -0
  29. package/lib/fe-form/fe-form-input/index.js +53 -0
  30. package/lib/fe-form/fe-form-input-input/index.js +63 -0
  31. package/lib/fe-form/fe-form-input-number/index.js +43 -0
  32. package/lib/fe-form/fe-form-item/index.js +46 -0
  33. package/lib/fe-form/fe-form-label/index.js +20 -0
  34. package/lib/fe-form/fe-form-radio/index.js +21 -0
  35. package/lib/fe-form/fe-form-render/index.js +33 -0
  36. package/lib/fe-form/fe-form-rich-text/index.js +25 -0
  37. package/lib/fe-form/fe-form-select/index.js +93 -0
  38. package/lib/fe-form/fe-form-switch/index.js +21 -0
  39. package/lib/fe-form/fe-form-text/index.js +20 -0
  40. package/lib/fe-form/fe-form-text-area/index.js +24 -0
  41. package/lib/fe-form/fe-form-time-picker/index.js +21 -0
  42. package/lib/fe-form/fe-form-upload/index.js +63 -0
  43. package/lib/fe-form/utils/index.js +28 -0
  44. package/lib/fe-input/index.js +32 -0
  45. package/lib/fe-input-number/index.js +19 -0
  46. package/lib/fe-layouts/auth-layout/index.js +35 -17
  47. package/lib/fe-layouts/basics-layout/index.js +2 -2
  48. package/lib/fe-layouts/layout.js +34 -16
  49. package/lib/fe-link/index.js +23 -0
  50. package/lib/fe-map/index.js +263 -0
  51. package/lib/fe-modal/index.js +85 -0
  52. package/lib/fe-pagination/index.js +6 -0
  53. package/lib/fe-panel/fe-panel-toolbar.js +40 -0
  54. package/lib/fe-panel/index.js +49 -0
  55. package/lib/fe-panel/use-panel-context.js +9 -0
  56. package/lib/fe-permission/index.js +12 -0
  57. package/lib/fe-permission-provider/index.js +29 -0
  58. package/lib/fe-radio/index.js +11 -0
  59. package/lib/fe-radio-group/index.js +6 -0
  60. package/lib/fe-rich-text/index.js +293 -0
  61. package/lib/fe-select/index.js +24 -0
  62. package/lib/fe-switch/index.js +6 -0
  63. package/lib/fe-table/fe-edit-table/index.js +39 -0
  64. package/lib/fe-table/fe-edit-table-cell/index.js +63 -0
  65. package/lib/fe-table/fe-head-title/index.js +9 -0
  66. package/lib/fe-table/fe-normal-table/index.js +192 -0
  67. package/lib/fe-table/fe-sub-table/index.js +74 -0
  68. package/lib/fe-table/fe-table/index.js +7 -0
  69. package/lib/fe-table/fe-table-alert/index.js +42 -0
  70. package/lib/fe-table/fe-table-link/index.js +87 -0
  71. package/lib/fe-table/fe-table-render/index.js +56 -0
  72. package/lib/fe-table/fe-table-setting/index.js +165 -0
  73. package/lib/fe-table/fe-table-toolbar/index.js +63 -0
  74. package/lib/fe-table/fe-table-utils/index.js +157 -0
  75. package/lib/fe-table/type/table.d.js +4 -0
  76. package/lib/fe-table/use-edit-table/index.js +151 -0
  77. package/lib/fe-table/use-pagination/index.js +59 -0
  78. package/lib/fe-table/use-sub-table/index.js +23 -0
  79. package/lib/fe-table/use-table/index.js +177 -0
  80. package/lib/fe-table/use-table-columns/index.js +53 -0
  81. package/lib/fe-table/use-table-form-context/index.js +14 -0
  82. package/lib/fe-table/use-table-selection/index.js +53 -0
  83. package/lib/fe-text-area/index.js +21 -0
  84. package/lib/fe-time-picker/index.js +19 -0
  85. package/lib/fe-upload/index.js +182 -0
  86. package/lib/fe-upload/upload.constant.js +91 -0
  87. package/lib/fe-upload-atomic/index.js +6 -0
  88. package/lib/fe-upload-crop/index.js +207 -0
  89. package/lib/hooks/{use-auth.hook.js → use-auth.hook/index.js} +3 -3
  90. package/lib/hooks/use-form/index.js +38 -0
  91. package/lib/hooks/use-permission.hook/index.js +9 -0
  92. package/lib/index.css +7 -1
  93. package/lib/index.js +161 -42
  94. package/lib/node_modules/.pnpm/@dnd-kit_accessibility@3.1.1_react@18.3.1/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +56 -0
  95. package/lib/node_modules/.pnpm/@dnd-kit_core@6.3.1_nnrd3gsncyragczmpvfhocinkq/node_modules/@dnd-kit/core/dist/core.esm.js +2344 -0
  96. package/lib/node_modules/.pnpm/@dnd-kit_modifiers@9.0.0_55ztycxty3xzw7t4rzpvix55vq/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.js +13 -0
  97. package/lib/node_modules/.pnpm/@dnd-kit_sortable@10.0.0_55ztycxty3xzw7t4rzpvix55vq/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +439 -0
  98. package/lib/node_modules/.pnpm/@dnd-kit_utilities@3.2.2_react@18.3.1/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +235 -0
  99. package/lib/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js +54 -0
  100. package/lib/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js +54 -0
  101. package/lib/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js +52 -0
  102. package/lib/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js +329 -0
  103. package/lib/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +17 -0
  104. package/lib/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
  105. package/lib/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js +7 -0
  106. package/lib/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +95 -0
  107. package/lib/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +78 -0
  108. package/lib/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +10 -0
  109. package/lib/node_modules/.pnpm/react-resizable@3.1.3_nnrd3gsncyragczmpvfhocinkq/node_modules/react-resizable/build/Resizable.js +233 -0
  110. package/lib/node_modules/.pnpm/react-resizable@3.1.3_nnrd3gsncyragczmpvfhocinkq/node_modules/react-resizable/build/ResizableBox.js +164 -0
  111. package/lib/node_modules/.pnpm/react-resizable@3.1.3_nnrd3gsncyragczmpvfhocinkq/node_modules/react-resizable/build/propTypes.js +113 -0
  112. package/lib/node_modules/.pnpm/react-resizable@3.1.3_nnrd3gsncyragczmpvfhocinkq/node_modules/react-resizable/build/utils.js +56 -0
  113. package/lib/node_modules/.pnpm/react-resizable@3.1.3_nnrd3gsncyragczmpvfhocinkq/node_modules/react-resizable/index.js +12 -0
  114. package/lib/store/modules/layout-config.store.js +83 -65
  115. package/lib/store/modules/theme.store.js +36 -18
  116. package/lib/types/fe-auto-complete/index.d.ts +2 -0
  117. package/lib/types/fe-button/index.d.ts +16 -0
  118. package/lib/types/fe-cascader/index.d.ts +7 -0
  119. package/lib/types/fe-checkbox/index.d.ts +6 -0
  120. package/lib/types/fe-checkbox-group/index.d.ts +7 -0
  121. package/lib/types/fe-date-picker/index.d.ts +3 -0
  122. package/lib/types/fe-description-render/index.d.ts +31 -0
  123. package/lib/types/fe-descriptions/index.d.ts +2 -0
  124. package/lib/types/fe-empty/index.d.ts +2 -0
  125. package/lib/types/fe-error-block/index.d.ts +6 -0
  126. package/lib/types/fe-form/fe-form/index.d.ts +356 -0
  127. package/lib/types/fe-form/fe-form-auto-complete/index.d.ts +3 -0
  128. package/lib/types/fe-form/fe-form-btn-group/index.d.ts +3 -0
  129. package/lib/types/fe-form/fe-form-cascader/index.d.ts +3 -0
  130. package/lib/types/fe-form/fe-form-checkbox-group/index.d.ts +3 -0
  131. package/lib/types/fe-form/fe-form-date-picker/index.d.ts +3 -0
  132. package/lib/types/fe-form/fe-form-date-range-picker/index.d.ts +3 -0
  133. package/lib/types/fe-form/fe-form-input/index.d.ts +3 -0
  134. package/lib/types/fe-form/fe-form-input-input/index.d.ts +3 -0
  135. package/lib/types/fe-form/fe-form-input-number/index.d.ts +3 -0
  136. package/lib/types/fe-form/fe-form-item/index.d.ts +70 -0
  137. package/lib/types/fe-form/fe-form-label/index.d.ts +45 -0
  138. package/lib/types/fe-form/fe-form-radio/index.d.ts +3 -0
  139. package/lib/types/fe-form/fe-form-render/index.d.ts +3 -0
  140. package/lib/types/fe-form/fe-form-rich-text/index.d.ts +3 -0
  141. package/lib/types/fe-form/fe-form-select/index.d.ts +3 -0
  142. package/lib/types/fe-form/fe-form-switch/index.d.ts +3 -0
  143. package/lib/types/fe-form/fe-form-text/index.d.ts +3 -0
  144. package/lib/types/fe-form/fe-form-text-area/index.d.ts +3 -0
  145. package/lib/types/fe-form/fe-form-time-picker/index.d.ts +3 -0
  146. package/lib/types/fe-form/fe-form-upload/index.d.ts +3 -0
  147. package/lib/types/fe-form/index.d.ts +26 -0
  148. package/lib/types/fe-form/utils/index.d.ts +24 -0
  149. package/lib/types/fe-input/index.d.ts +12 -0
  150. package/lib/types/fe-input-number/index.d.ts +2 -0
  151. package/lib/types/fe-layouts/context/global-context.d.ts +240 -238
  152. package/lib/types/fe-link/index.d.ts +6 -0
  153. package/lib/types/fe-map/index.d.ts +73 -0
  154. package/lib/types/fe-modal/index.d.ts +20 -0
  155. package/lib/types/fe-pagination/index.d.ts +2 -0
  156. package/lib/types/fe-panel/fe-panel-toolbar.d.ts +3 -0
  157. package/lib/types/fe-panel/index.d.ts +61 -0
  158. package/lib/types/fe-panel/panel-toolbar.d.ts +4 -0
  159. package/lib/types/fe-panel/use-panel-context.d.ts +6 -0
  160. package/lib/types/fe-permission/index.d.ts +10 -0
  161. package/lib/types/fe-permission-provider/index.d.ts +8 -0
  162. package/lib/types/fe-radio/index.d.ts +2 -0
  163. package/lib/types/fe-radio-group/index.d.ts +2 -0
  164. package/lib/types/fe-rich-text/index.d.ts +167 -0
  165. package/lib/types/fe-select/index.d.ts +8 -0
  166. package/lib/types/fe-switch/index.d.ts +2 -0
  167. package/lib/types/fe-table/fe-edit-table/index.d.ts +3 -0
  168. package/lib/types/fe-table/fe-edit-table-cell/index.d.ts +16 -0
  169. package/lib/types/fe-table/fe-head-title/index.d.ts +6 -0
  170. package/lib/types/fe-table/fe-normal-table/index.d.ts +3 -0
  171. package/lib/types/fe-table/fe-sub-table/index.d.ts +3 -0
  172. package/lib/types/fe-table/fe-table/index.d.ts +3 -0
  173. package/lib/types/fe-table/fe-table-alert/index.d.ts +13 -0
  174. package/lib/types/fe-table/fe-table-link/index.d.ts +12 -0
  175. package/lib/types/fe-table/fe-table-render/index.d.ts +13 -0
  176. package/lib/types/fe-table/fe-table-setting/index.d.ts +22 -0
  177. package/lib/types/fe-table/fe-table-toolbar/index.d.ts +18 -0
  178. package/lib/types/fe-table/fe-table-utils/index.d.ts +193 -0
  179. package/lib/types/fe-table/index.d.ts +6 -0
  180. package/lib/types/fe-table/type/table-context.d.ts +60 -0
  181. package/lib/types/fe-table/type/table.d.ts +797 -0
  182. package/lib/types/fe-table/use-edit-table/index.d.ts +6 -0
  183. package/lib/types/fe-table/use-pagination/index.d.ts +3 -0
  184. package/lib/types/fe-table/use-sub-table/index.d.ts +8 -0
  185. package/lib/types/fe-table/use-table/index.d.ts +3 -0
  186. package/lib/types/fe-table/use-table-columns/index.d.ts +47 -0
  187. package/lib/types/fe-table/use-table-form-context/index.d.ts +10 -0
  188. package/lib/types/fe-table/use-table-selection/index.d.ts +46 -0
  189. package/lib/types/fe-text-area/index.d.ts +4 -0
  190. package/lib/types/fe-time-picker/index.d.ts +3 -0
  191. package/lib/types/fe-upload/index.d.ts +85 -0
  192. package/lib/types/fe-upload/upload.constant.d.ts +39 -0
  193. package/lib/types/fe-upload-atomic/index.d.ts +2 -0
  194. package/lib/types/fe-upload-crop/index.d.ts +10 -0
  195. package/lib/types/hooks/index.d.ts +1 -0
  196. package/lib/types/hooks/use-descriptions/index.d.ts +3 -0
  197. package/lib/types/hooks/use-form/index.d.ts +16 -0
  198. package/lib/types/hooks/use-permission.hook/index.d.ts +10 -0
  199. package/lib/types/index.d.ts +32 -0
  200. package/lib/types/typings/index.d.ts +98 -59
  201. package/lib/types/typings/shims-axios.d.ts +38 -38
  202. package/package.json +79 -69
  203. /package/lib/hooks/{use-nprogress.hook.js → use-nprogress.hook/index.js} +0 -0
  204. /package/lib/types/hooks/{use-auth.hook.d.ts → use-auth.hook/index.d.ts} +0 -0
  205. /package/lib/types/hooks/{use-nprogress.hook.d.ts → use-nprogress.hook/index.d.ts} +0 -0
@@ -0,0 +1,2344 @@
1
+ import q, { createContext as Oe, useMemo as A, memo as gn, useReducer as vn, useState as K, useRef as L, useCallback as Y, useEffect as R, useContext as be } from "react";
2
+ import { unstable_batchedUpdates as Be, createPortal as pn } from "react-dom";
3
+ import { useLatestValue as Ae, useUniqueId as Xe, getEventCoordinates as et, getWindow as Z, add as pe, useIsomorphicLayoutEffect as we, getOwnerDocument as ye, isKeyboardEvent as $t, subtract as Fe, useLazyMemo as Ne, isHTMLElement as Ke, useNodeRef as $e, canUseDOM as it, useInterval as bn, usePrevious as tt, findFirstFocusableNode as wn, useEvent as Wt, isWindow as st, isNode as yn, isDocument as Ut, isSVGElement as mn } from "../../../../../@dnd-kit_utilities@3.2.2_react@18.3.1/node_modules/@dnd-kit/utilities/dist/utilities.esm.js";
4
+ import { useAnnouncement as Dn, HiddenText as xn, LiveRegion as Cn } from "../../../../../@dnd-kit_accessibility@3.1.1_react@18.3.1/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js";
5
+ const Xt = /* @__PURE__ */ Oe(null);
6
+ function Sn(e) {
7
+ const t = be(Xt);
8
+ R(() => {
9
+ if (!t)
10
+ throw new Error("useDndMonitor must be used within a children of <DndContext>");
11
+ return t(e);
12
+ }, [e, t]);
13
+ }
14
+ function Rn() {
15
+ const [e] = K(() => /* @__PURE__ */ new Set()), t = Y((r) => (e.add(r), () => e.delete(r)), [e]);
16
+ return [Y((r) => {
17
+ let {
18
+ type: i,
19
+ event: o
20
+ } = r;
21
+ e.forEach((l) => {
22
+ var s;
23
+ return (s = l[i]) == null ? void 0 : s.call(l, o);
24
+ });
25
+ }, [e]), t];
26
+ }
27
+ const En = {
28
+ draggable: `
29
+ To pick up a draggable item, press the space bar.
30
+ While dragging, use the arrow keys to move the item.
31
+ Press space again to drop the item in its new position, or press escape to cancel.
32
+ `
33
+ }, An = {
34
+ onDragStart(e) {
35
+ let {
36
+ active: t
37
+ } = e;
38
+ return "Picked up draggable item " + t.id + ".";
39
+ },
40
+ onDragOver(e) {
41
+ let {
42
+ active: t,
43
+ over: n
44
+ } = e;
45
+ return n ? "Draggable item " + t.id + " was moved over droppable area " + n.id + "." : "Draggable item " + t.id + " is no longer over a droppable area.";
46
+ },
47
+ onDragEnd(e) {
48
+ let {
49
+ active: t,
50
+ over: n
51
+ } = e;
52
+ return n ? "Draggable item " + t.id + " was dropped over droppable area " + n.id : "Draggable item " + t.id + " was dropped.";
53
+ },
54
+ onDragCancel(e) {
55
+ let {
56
+ active: t
57
+ } = e;
58
+ return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
59
+ }
60
+ };
61
+ function Mn(e) {
62
+ let {
63
+ announcements: t = An,
64
+ container: n,
65
+ hiddenTextDescribedById: r,
66
+ screenReaderInstructions: i = En
67
+ } = e;
68
+ const {
69
+ announce: o,
70
+ announcement: l
71
+ } = Dn(), s = Xe("DndLiveRegion"), [a, c] = K(!1);
72
+ if (R(() => {
73
+ c(!0);
74
+ }, []), Sn(A(() => ({
75
+ onDragStart(u) {
76
+ let {
77
+ active: g
78
+ } = u;
79
+ o(t.onDragStart({
80
+ active: g
81
+ }));
82
+ },
83
+ onDragMove(u) {
84
+ let {
85
+ active: g,
86
+ over: f
87
+ } = u;
88
+ t.onDragMove && o(t.onDragMove({
89
+ active: g,
90
+ over: f
91
+ }));
92
+ },
93
+ onDragOver(u) {
94
+ let {
95
+ active: g,
96
+ over: f
97
+ } = u;
98
+ o(t.onDragOver({
99
+ active: g,
100
+ over: f
101
+ }));
102
+ },
103
+ onDragEnd(u) {
104
+ let {
105
+ active: g,
106
+ over: f
107
+ } = u;
108
+ o(t.onDragEnd({
109
+ active: g,
110
+ over: f
111
+ }));
112
+ },
113
+ onDragCancel(u) {
114
+ let {
115
+ active: g,
116
+ over: f
117
+ } = u;
118
+ o(t.onDragCancel({
119
+ active: g,
120
+ over: f
121
+ }));
122
+ }
123
+ }), [o, t])), !a)
124
+ return null;
125
+ const d = q.createElement(q.Fragment, null, q.createElement(xn, {
126
+ id: r,
127
+ value: i.draggable
128
+ }), q.createElement(Cn, {
129
+ id: s,
130
+ announcement: l
131
+ }));
132
+ return n ? pn(d, n) : d;
133
+ }
134
+ var E;
135
+ (function(e) {
136
+ e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
137
+ })(E || (E = {}));
138
+ function We() {
139
+ }
140
+ function Pr(e, t) {
141
+ return A(
142
+ () => ({
143
+ sensor: e,
144
+ options: t ?? {}
145
+ }),
146
+ // eslint-disable-next-line react-hooks/exhaustive-deps
147
+ [e, t]
148
+ );
149
+ }
150
+ function Fr() {
151
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
152
+ t[n] = arguments[n];
153
+ return A(
154
+ () => [...t].filter((r) => r != null),
155
+ // eslint-disable-next-line react-hooks/exhaustive-deps
156
+ [...t]
157
+ );
158
+ }
159
+ const j = /* @__PURE__ */ Object.freeze({
160
+ x: 0,
161
+ y: 0
162
+ });
163
+ function Kt(e, t) {
164
+ return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
165
+ }
166
+ function Yt(e, t) {
167
+ let {
168
+ data: {
169
+ value: n
170
+ }
171
+ } = e, {
172
+ data: {
173
+ value: r
174
+ }
175
+ } = t;
176
+ return n - r;
177
+ }
178
+ function On(e, t) {
179
+ let {
180
+ data: {
181
+ value: n
182
+ }
183
+ } = e, {
184
+ data: {
185
+ value: r
186
+ }
187
+ } = t;
188
+ return r - n;
189
+ }
190
+ function At(e) {
191
+ let {
192
+ left: t,
193
+ top: n,
194
+ height: r,
195
+ width: i
196
+ } = e;
197
+ return [{
198
+ x: t,
199
+ y: n
200
+ }, {
201
+ x: t + i,
202
+ y: n
203
+ }, {
204
+ x: t,
205
+ y: n + r
206
+ }, {
207
+ x: t + i,
208
+ y: n + r
209
+ }];
210
+ }
211
+ function Nn(e, t) {
212
+ if (!e || e.length === 0)
213
+ return null;
214
+ const [n] = e;
215
+ return n[t];
216
+ }
217
+ function Mt(e, t, n) {
218
+ return t === void 0 && (t = e.left), n === void 0 && (n = e.top), {
219
+ x: t + e.width * 0.5,
220
+ y: n + e.height * 0.5
221
+ };
222
+ }
223
+ const $r = (e) => {
224
+ let {
225
+ collisionRect: t,
226
+ droppableRects: n,
227
+ droppableContainers: r
228
+ } = e;
229
+ const i = Mt(t, t.left, t.top), o = [];
230
+ for (const l of r) {
231
+ const {
232
+ id: s
233
+ } = l, a = n.get(s);
234
+ if (a) {
235
+ const c = Kt(Mt(a), i);
236
+ o.push({
237
+ id: s,
238
+ data: {
239
+ droppableContainer: l,
240
+ value: c
241
+ }
242
+ });
243
+ }
244
+ }
245
+ return o.sort(Yt);
246
+ }, Wr = (e) => {
247
+ let {
248
+ collisionRect: t,
249
+ droppableRects: n,
250
+ droppableContainers: r
251
+ } = e;
252
+ const i = At(t), o = [];
253
+ for (const l of r) {
254
+ const {
255
+ id: s
256
+ } = l, a = n.get(s);
257
+ if (a) {
258
+ const c = At(a), d = i.reduce((g, f, x) => g + Kt(c[x], f), 0), u = Number((d / 4).toFixed(4));
259
+ o.push({
260
+ id: s,
261
+ data: {
262
+ droppableContainer: l,
263
+ value: u
264
+ }
265
+ });
266
+ }
267
+ }
268
+ return o.sort(Yt);
269
+ };
270
+ function Tn(e, t) {
271
+ 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), l = i - r, s = o - n;
272
+ if (r < i && n < o) {
273
+ const a = t.width * t.height, c = e.width * e.height, d = l * s, u = d / (a + c - d);
274
+ return Number(u.toFixed(4));
275
+ }
276
+ return 0;
277
+ }
278
+ const Ln = (e) => {
279
+ let {
280
+ collisionRect: t,
281
+ droppableRects: n,
282
+ droppableContainers: r
283
+ } = e;
284
+ const i = [];
285
+ for (const o of r) {
286
+ const {
287
+ id: l
288
+ } = o, s = n.get(l);
289
+ if (s) {
290
+ const a = Tn(s, t);
291
+ a > 0 && i.push({
292
+ id: l,
293
+ data: {
294
+ droppableContainer: o,
295
+ value: a
296
+ }
297
+ });
298
+ }
299
+ }
300
+ return i.sort(On);
301
+ };
302
+ function In(e, t, n) {
303
+ return {
304
+ ...e,
305
+ scaleX: t && n ? t.width / n.width : 1,
306
+ scaleY: t && n ? t.height / n.height : 1
307
+ };
308
+ }
309
+ function jt(e, t) {
310
+ return e && t ? {
311
+ x: e.left - t.left,
312
+ y: e.top - t.top
313
+ } : j;
314
+ }
315
+ function kn(e) {
316
+ return function(n) {
317
+ for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
318
+ i[o - 1] = arguments[o];
319
+ return i.reduce((l, s) => ({
320
+ ...l,
321
+ top: l.top + e * s.y,
322
+ bottom: l.bottom + e * s.y,
323
+ left: l.left + e * s.x,
324
+ right: l.right + e * s.x
325
+ }), {
326
+ ...n
327
+ });
328
+ };
329
+ }
330
+ const zn = /* @__PURE__ */ kn(1);
331
+ function Bn(e) {
332
+ if (e.startsWith("matrix3d(")) {
333
+ const t = e.slice(9, -1).split(/, /);
334
+ return {
335
+ x: +t[12],
336
+ y: +t[13],
337
+ scaleX: +t[0],
338
+ scaleY: +t[5]
339
+ };
340
+ } else if (e.startsWith("matrix(")) {
341
+ const t = e.slice(7, -1).split(/, /);
342
+ return {
343
+ x: +t[4],
344
+ y: +t[5],
345
+ scaleX: +t[0],
346
+ scaleY: +t[3]
347
+ };
348
+ }
349
+ return null;
350
+ }
351
+ function Pn(e, t, n) {
352
+ const r = Bn(t);
353
+ if (!r)
354
+ return e;
355
+ const {
356
+ scaleX: i,
357
+ scaleY: o,
358
+ x: l,
359
+ y: s
360
+ } = r, a = e.left - l - (1 - i) * parseFloat(n), c = e.top - s - (1 - o) * parseFloat(n.slice(n.indexOf(" ") + 1)), d = i ? e.width / i : e.width, u = o ? e.height / o : e.height;
361
+ return {
362
+ width: d,
363
+ height: u,
364
+ top: c,
365
+ right: a + d,
366
+ bottom: c + u,
367
+ left: a
368
+ };
369
+ }
370
+ const Fn = {
371
+ ignoreTransform: !1
372
+ };
373
+ function Te(e, t) {
374
+ t === void 0 && (t = Fn);
375
+ let n = e.getBoundingClientRect();
376
+ if (t.ignoreTransform) {
377
+ const {
378
+ transform: c,
379
+ transformOrigin: d
380
+ } = Z(e).getComputedStyle(e);
381
+ c && (n = Pn(n, c, d));
382
+ }
383
+ const {
384
+ top: r,
385
+ left: i,
386
+ width: o,
387
+ height: l,
388
+ bottom: s,
389
+ right: a
390
+ } = n;
391
+ return {
392
+ top: r,
393
+ left: i,
394
+ width: o,
395
+ height: l,
396
+ bottom: s,
397
+ right: a
398
+ };
399
+ }
400
+ function Ot(e) {
401
+ return Te(e, {
402
+ ignoreTransform: !0
403
+ });
404
+ }
405
+ function $n(e) {
406
+ const t = e.innerWidth, n = e.innerHeight;
407
+ return {
408
+ top: 0,
409
+ left: 0,
410
+ right: t,
411
+ bottom: n,
412
+ width: t,
413
+ height: n
414
+ };
415
+ }
416
+ function Wn(e, t) {
417
+ return t === void 0 && (t = Z(e).getComputedStyle(e)), t.position === "fixed";
418
+ }
419
+ function Un(e, t) {
420
+ t === void 0 && (t = Z(e).getComputedStyle(e));
421
+ const n = /(auto|scroll|overlay)/;
422
+ return ["overflow", "overflowX", "overflowY"].some((i) => {
423
+ const o = t[i];
424
+ return typeof o == "string" ? n.test(o) : !1;
425
+ });
426
+ }
427
+ function lt(e, t) {
428
+ const n = [];
429
+ function r(i) {
430
+ if (t != null && n.length >= t || !i)
431
+ return n;
432
+ if (Ut(i) && i.scrollingElement != null && !n.includes(i.scrollingElement))
433
+ return n.push(i.scrollingElement), n;
434
+ if (!Ke(i) || mn(i) || n.includes(i))
435
+ return n;
436
+ const o = Z(e).getComputedStyle(i);
437
+ return i !== e && Un(i, o) && n.push(i), Wn(i, o) ? n : r(i.parentNode);
438
+ }
439
+ return e ? r(e) : n;
440
+ }
441
+ function Ht(e) {
442
+ const [t] = lt(e, 1);
443
+ return t ?? null;
444
+ }
445
+ function Ge(e) {
446
+ return !it || !e ? null : st(e) ? e : yn(e) ? Ut(e) || e === ye(e).scrollingElement ? window : Ke(e) ? e : null : null;
447
+ }
448
+ function _t(e) {
449
+ return st(e) ? e.scrollX : e.scrollLeft;
450
+ }
451
+ function qt(e) {
452
+ return st(e) ? e.scrollY : e.scrollTop;
453
+ }
454
+ function nt(e) {
455
+ return {
456
+ x: _t(e),
457
+ y: qt(e)
458
+ };
459
+ }
460
+ var N;
461
+ (function(e) {
462
+ e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
463
+ })(N || (N = {}));
464
+ function Jt(e) {
465
+ return !it || !e ? !1 : e === document.scrollingElement;
466
+ }
467
+ function Vt(e) {
468
+ const t = {
469
+ x: 0,
470
+ y: 0
471
+ }, n = Jt(e) ? {
472
+ height: window.innerHeight,
473
+ width: window.innerWidth
474
+ } : {
475
+ height: e.clientHeight,
476
+ width: e.clientWidth
477
+ }, r = {
478
+ x: e.scrollWidth - n.width,
479
+ y: e.scrollHeight - n.height
480
+ }, i = e.scrollTop <= t.y, o = e.scrollLeft <= t.x, l = e.scrollTop >= r.y, s = e.scrollLeft >= r.x;
481
+ return {
482
+ isTop: i,
483
+ isLeft: o,
484
+ isBottom: l,
485
+ isRight: s,
486
+ maxScroll: r,
487
+ minScroll: t
488
+ };
489
+ }
490
+ const Xn = {
491
+ x: 0.2,
492
+ y: 0.2
493
+ };
494
+ function Kn(e, t, n, r, i) {
495
+ let {
496
+ top: o,
497
+ left: l,
498
+ right: s,
499
+ bottom: a
500
+ } = n;
501
+ r === void 0 && (r = 10), i === void 0 && (i = Xn);
502
+ const {
503
+ isTop: c,
504
+ isBottom: d,
505
+ isLeft: u,
506
+ isRight: g
507
+ } = Vt(e), f = {
508
+ x: 0,
509
+ y: 0
510
+ }, x = {
511
+ x: 0,
512
+ y: 0
513
+ }, h = {
514
+ height: t.height * i.y,
515
+ width: t.width * i.x
516
+ };
517
+ return !c && o <= t.top + h.height ? (f.y = N.Backward, x.y = r * Math.abs((t.top + h.height - o) / h.height)) : !d && a >= t.bottom - h.height && (f.y = N.Forward, x.y = r * Math.abs((t.bottom - h.height - a) / h.height)), !g && s >= t.right - h.width ? (f.x = N.Forward, x.x = r * Math.abs((t.right - h.width - s) / h.width)) : !u && l <= t.left + h.width && (f.x = N.Backward, x.x = r * Math.abs((t.left + h.width - l) / h.width)), {
518
+ direction: f,
519
+ speed: x
520
+ };
521
+ }
522
+ function Yn(e) {
523
+ if (e === document.scrollingElement) {
524
+ const {
525
+ innerWidth: o,
526
+ innerHeight: l
527
+ } = window;
528
+ return {
529
+ top: 0,
530
+ left: 0,
531
+ right: o,
532
+ bottom: l,
533
+ width: o,
534
+ height: l
535
+ };
536
+ }
537
+ const {
538
+ top: t,
539
+ left: n,
540
+ right: r,
541
+ bottom: i
542
+ } = e.getBoundingClientRect();
543
+ return {
544
+ top: t,
545
+ left: n,
546
+ right: r,
547
+ bottom: i,
548
+ width: e.clientWidth,
549
+ height: e.clientHeight
550
+ };
551
+ }
552
+ function Gt(e) {
553
+ return e.reduce((t, n) => pe(t, nt(n)), j);
554
+ }
555
+ function jn(e) {
556
+ return e.reduce((t, n) => t + _t(n), 0);
557
+ }
558
+ function Hn(e) {
559
+ return e.reduce((t, n) => t + qt(n), 0);
560
+ }
561
+ function _n(e, t) {
562
+ if (t === void 0 && (t = Te), !e)
563
+ return;
564
+ const {
565
+ top: n,
566
+ left: r,
567
+ bottom: i,
568
+ right: o
569
+ } = t(e);
570
+ Ht(e) && (i <= 0 || o <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
571
+ block: "center",
572
+ inline: "center"
573
+ });
574
+ }
575
+ const qn = [["x", ["left", "right"], jn], ["y", ["top", "bottom"], Hn]];
576
+ class at {
577
+ constructor(t, n) {
578
+ 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;
579
+ const r = lt(n), i = Gt(r);
580
+ this.rect = {
581
+ ...t
582
+ }, this.width = t.width, this.height = t.height;
583
+ for (const [o, l, s] of qn)
584
+ for (const a of l)
585
+ Object.defineProperty(this, a, {
586
+ get: () => {
587
+ const c = s(r), d = i[o] - c;
588
+ return this.rect[a] + d;
589
+ },
590
+ enumerable: !0
591
+ });
592
+ Object.defineProperty(this, "rect", {
593
+ enumerable: !1
594
+ });
595
+ }
596
+ }
597
+ class Se {
598
+ constructor(t) {
599
+ this.target = void 0, this.listeners = [], this.removeAll = () => {
600
+ this.listeners.forEach((n) => {
601
+ var r;
602
+ return (r = this.target) == null ? void 0 : r.removeEventListener(...n);
603
+ });
604
+ }, this.target = t;
605
+ }
606
+ add(t, n, r) {
607
+ var i;
608
+ (i = this.target) == null || i.addEventListener(t, n, r), this.listeners.push([t, n, r]);
609
+ }
610
+ }
611
+ function Jn(e) {
612
+ const {
613
+ EventTarget: t
614
+ } = Z(e);
615
+ return e instanceof t ? e : ye(e);
616
+ }
617
+ function Qe(e, t) {
618
+ const n = Math.abs(e.x), r = Math.abs(e.y);
619
+ return typeof t == "number" ? Math.sqrt(n ** 2 + r ** 2) > t : "x" in t && "y" in t ? n > t.x && r > t.y : "x" in t ? n > t.x : "y" in t ? r > t.y : !1;
620
+ }
621
+ var W;
622
+ (function(e) {
623
+ e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
624
+ })(W || (W = {}));
625
+ function Nt(e) {
626
+ e.preventDefault();
627
+ }
628
+ function Vn(e) {
629
+ e.stopPropagation();
630
+ }
631
+ var m;
632
+ (function(e) {
633
+ e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
634
+ })(m || (m = {}));
635
+ const Qt = {
636
+ start: [m.Space, m.Enter],
637
+ cancel: [m.Esc],
638
+ end: [m.Space, m.Enter, m.Tab]
639
+ }, Gn = (e, t) => {
640
+ let {
641
+ currentCoordinates: n
642
+ } = t;
643
+ switch (e.code) {
644
+ case m.Right:
645
+ return {
646
+ ...n,
647
+ x: n.x + 25
648
+ };
649
+ case m.Left:
650
+ return {
651
+ ...n,
652
+ x: n.x - 25
653
+ };
654
+ case m.Down:
655
+ return {
656
+ ...n,
657
+ y: n.y + 25
658
+ };
659
+ case m.Up:
660
+ return {
661
+ ...n,
662
+ y: n.y - 25
663
+ };
664
+ }
665
+ };
666
+ class Zt {
667
+ constructor(t) {
668
+ this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = t;
669
+ const {
670
+ event: {
671
+ target: n
672
+ }
673
+ } = t;
674
+ this.props = t, this.listeners = new Se(ye(n)), this.windowListeners = new Se(Z(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
675
+ }
676
+ attach() {
677
+ this.handleStart(), this.windowListeners.add(W.Resize, this.handleCancel), this.windowListeners.add(W.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(W.Keydown, this.handleKeyDown));
678
+ }
679
+ handleStart() {
680
+ const {
681
+ activeNode: t,
682
+ onStart: n
683
+ } = this.props, r = t.node.current;
684
+ r && _n(r), n(j);
685
+ }
686
+ handleKeyDown(t) {
687
+ if ($t(t)) {
688
+ const {
689
+ active: n,
690
+ context: r,
691
+ options: i
692
+ } = this.props, {
693
+ keyboardCodes: o = Qt,
694
+ coordinateGetter: l = Gn,
695
+ scrollBehavior: s = "smooth"
696
+ } = i, {
697
+ code: a
698
+ } = t;
699
+ if (o.end.includes(a)) {
700
+ this.handleEnd(t);
701
+ return;
702
+ }
703
+ if (o.cancel.includes(a)) {
704
+ this.handleCancel(t);
705
+ return;
706
+ }
707
+ const {
708
+ collisionRect: c
709
+ } = r.current, d = c ? {
710
+ x: c.left,
711
+ y: c.top
712
+ } : j;
713
+ this.referenceCoordinates || (this.referenceCoordinates = d);
714
+ const u = l(t, {
715
+ active: n,
716
+ context: r.current,
717
+ currentCoordinates: d
718
+ });
719
+ if (u) {
720
+ const g = Fe(u, d), f = {
721
+ x: 0,
722
+ y: 0
723
+ }, {
724
+ scrollableAncestors: x
725
+ } = r.current;
726
+ for (const h of x) {
727
+ const v = t.code, {
728
+ isTop: y,
729
+ isRight: D,
730
+ isLeft: w,
731
+ isBottom: I,
732
+ maxScroll: C,
733
+ minScroll: S
734
+ } = Vt(h), b = Yn(h), p = {
735
+ x: Math.min(v === m.Right ? b.right - b.width / 2 : b.right, Math.max(v === m.Right ? b.left : b.left + b.width / 2, u.x)),
736
+ y: Math.min(v === m.Down ? b.bottom - b.height / 2 : b.bottom, Math.max(v === m.Down ? b.top : b.top + b.height / 2, u.y))
737
+ }, M = v === m.Right && !D || v === m.Left && !w, z = v === m.Down && !I || v === m.Up && !y;
738
+ if (M && p.x !== u.x) {
739
+ const O = h.scrollLeft + g.x, J = v === m.Right && O <= C.x || v === m.Left && O >= S.x;
740
+ if (J && !g.y) {
741
+ h.scrollTo({
742
+ left: O,
743
+ behavior: s
744
+ });
745
+ return;
746
+ }
747
+ J ? f.x = h.scrollLeft - O : f.x = v === m.Right ? h.scrollLeft - C.x : h.scrollLeft - S.x, f.x && h.scrollBy({
748
+ left: -f.x,
749
+ behavior: s
750
+ });
751
+ break;
752
+ } else if (z && p.y !== u.y) {
753
+ const O = h.scrollTop + g.y, J = v === m.Down && O <= C.y || v === m.Up && O >= S.y;
754
+ if (J && !g.x) {
755
+ h.scrollTo({
756
+ top: O,
757
+ behavior: s
758
+ });
759
+ return;
760
+ }
761
+ J ? f.y = h.scrollTop - O : f.y = v === m.Down ? h.scrollTop - C.y : h.scrollTop - S.y, f.y && h.scrollBy({
762
+ top: -f.y,
763
+ behavior: s
764
+ });
765
+ break;
766
+ }
767
+ }
768
+ this.handleMove(t, pe(Fe(u, this.referenceCoordinates), f));
769
+ }
770
+ }
771
+ }
772
+ handleMove(t, n) {
773
+ const {
774
+ onMove: r
775
+ } = this.props;
776
+ t.preventDefault(), r(n);
777
+ }
778
+ handleEnd(t) {
779
+ const {
780
+ onEnd: n
781
+ } = this.props;
782
+ t.preventDefault(), this.detach(), n();
783
+ }
784
+ handleCancel(t) {
785
+ const {
786
+ onCancel: n
787
+ } = this.props;
788
+ t.preventDefault(), this.detach(), n();
789
+ }
790
+ detach() {
791
+ this.listeners.removeAll(), this.windowListeners.removeAll();
792
+ }
793
+ }
794
+ Zt.activators = [{
795
+ eventName: "onKeyDown",
796
+ handler: (e, t, n) => {
797
+ let {
798
+ keyboardCodes: r = Qt,
799
+ onActivation: i
800
+ } = t, {
801
+ active: o
802
+ } = n;
803
+ const {
804
+ code: l
805
+ } = e.nativeEvent;
806
+ if (r.start.includes(l)) {
807
+ const s = o.activatorNode.current;
808
+ return s && e.target !== s ? !1 : (e.preventDefault(), i == null || i({
809
+ event: e.nativeEvent
810
+ }), !0);
811
+ }
812
+ return !1;
813
+ }
814
+ }];
815
+ function Tt(e) {
816
+ return !!(e && "distance" in e);
817
+ }
818
+ function Lt(e) {
819
+ return !!(e && "delay" in e);
820
+ }
821
+ class ct {
822
+ constructor(t, n, r) {
823
+ var i;
824
+ r === void 0 && (r = Jn(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;
825
+ const {
826
+ event: o
827
+ } = t, {
828
+ target: l
829
+ } = o;
830
+ this.props = t, this.events = n, this.document = ye(l), this.documentListeners = new Se(this.document), this.listeners = new Se(r), this.windowListeners = new Se(Z(l)), this.initialCoordinates = (i = et(o)) != null ? i : j, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
831
+ }
832
+ attach() {
833
+ const {
834
+ events: t,
835
+ props: {
836
+ options: {
837
+ activationConstraint: n,
838
+ bypassActivationConstraint: r
839
+ }
840
+ }
841
+ } = this;
842
+ if (this.listeners.add(t.move.name, this.handleMove, {
843
+ passive: !1
844
+ }), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(W.Resize, this.handleCancel), this.windowListeners.add(W.DragStart, Nt), this.windowListeners.add(W.VisibilityChange, this.handleCancel), this.windowListeners.add(W.ContextMenu, Nt), this.documentListeners.add(W.Keydown, this.handleKeydown), n) {
845
+ if (r != null && r({
846
+ event: this.props.event,
847
+ activeNode: this.props.activeNode,
848
+ options: this.props.options
849
+ }))
850
+ return this.handleStart();
851
+ if (Lt(n)) {
852
+ this.timeoutId = setTimeout(this.handleStart, n.delay), this.handlePending(n);
853
+ return;
854
+ }
855
+ if (Tt(n)) {
856
+ this.handlePending(n);
857
+ return;
858
+ }
859
+ }
860
+ this.handleStart();
861
+ }
862
+ detach() {
863
+ this.listeners.removeAll(), this.windowListeners.removeAll(), setTimeout(this.documentListeners.removeAll, 50), this.timeoutId !== null && (clearTimeout(this.timeoutId), this.timeoutId = null);
864
+ }
865
+ handlePending(t, n) {
866
+ const {
867
+ active: r,
868
+ onPending: i
869
+ } = this.props;
870
+ i(r, t, this.initialCoordinates, n);
871
+ }
872
+ handleStart() {
873
+ const {
874
+ initialCoordinates: t
875
+ } = this, {
876
+ onStart: n
877
+ } = this.props;
878
+ t && (this.activated = !0, this.documentListeners.add(W.Click, Vn, {
879
+ capture: !0
880
+ }), this.removeTextSelection(), this.documentListeners.add(W.SelectionChange, this.removeTextSelection), n(t));
881
+ }
882
+ handleMove(t) {
883
+ var n;
884
+ const {
885
+ activated: r,
886
+ initialCoordinates: i,
887
+ props: o
888
+ } = this, {
889
+ onMove: l,
890
+ options: {
891
+ activationConstraint: s
892
+ }
893
+ } = o;
894
+ if (!i)
895
+ return;
896
+ const a = (n = et(t)) != null ? n : j, c = Fe(i, a);
897
+ if (!r && s) {
898
+ if (Tt(s)) {
899
+ if (s.tolerance != null && Qe(c, s.tolerance))
900
+ return this.handleCancel();
901
+ if (Qe(c, s.distance))
902
+ return this.handleStart();
903
+ }
904
+ if (Lt(s) && Qe(c, s.tolerance))
905
+ return this.handleCancel();
906
+ this.handlePending(s, c);
907
+ return;
908
+ }
909
+ t.cancelable && t.preventDefault(), l(a);
910
+ }
911
+ handleEnd() {
912
+ const {
913
+ onAbort: t,
914
+ onEnd: n
915
+ } = this.props;
916
+ this.detach(), this.activated || t(this.props.active), n();
917
+ }
918
+ handleCancel() {
919
+ const {
920
+ onAbort: t,
921
+ onCancel: n
922
+ } = this.props;
923
+ this.detach(), this.activated || t(this.props.active), n();
924
+ }
925
+ handleKeydown(t) {
926
+ t.code === m.Esc && this.handleCancel();
927
+ }
928
+ removeTextSelection() {
929
+ var t;
930
+ (t = this.document.getSelection()) == null || t.removeAllRanges();
931
+ }
932
+ }
933
+ const Qn = {
934
+ cancel: {
935
+ name: "pointercancel"
936
+ },
937
+ move: {
938
+ name: "pointermove"
939
+ },
940
+ end: {
941
+ name: "pointerup"
942
+ }
943
+ };
944
+ class en extends ct {
945
+ constructor(t) {
946
+ const {
947
+ event: n
948
+ } = t, r = ye(n.target);
949
+ super(t, Qn, r);
950
+ }
951
+ }
952
+ en.activators = [{
953
+ eventName: "onPointerDown",
954
+ handler: (e, t) => {
955
+ let {
956
+ nativeEvent: n
957
+ } = e, {
958
+ onActivation: r
959
+ } = t;
960
+ return !n.isPrimary || n.button !== 0 ? !1 : (r == null || r({
961
+ event: n
962
+ }), !0);
963
+ }
964
+ }];
965
+ const Zn = {
966
+ move: {
967
+ name: "mousemove"
968
+ },
969
+ end: {
970
+ name: "mouseup"
971
+ }
972
+ };
973
+ var rt;
974
+ (function(e) {
975
+ e[e.RightClick = 2] = "RightClick";
976
+ })(rt || (rt = {}));
977
+ class er extends ct {
978
+ constructor(t) {
979
+ super(t, Zn, ye(t.event.target));
980
+ }
981
+ }
982
+ er.activators = [{
983
+ eventName: "onMouseDown",
984
+ handler: (e, t) => {
985
+ let {
986
+ nativeEvent: n
987
+ } = e, {
988
+ onActivation: r
989
+ } = t;
990
+ return n.button === rt.RightClick ? !1 : (r == null || r({
991
+ event: n
992
+ }), !0);
993
+ }
994
+ }];
995
+ const Ze = {
996
+ cancel: {
997
+ name: "touchcancel"
998
+ },
999
+ move: {
1000
+ name: "touchmove"
1001
+ },
1002
+ end: {
1003
+ name: "touchend"
1004
+ }
1005
+ };
1006
+ class tr extends ct {
1007
+ constructor(t) {
1008
+ super(t, Ze);
1009
+ }
1010
+ static setup() {
1011
+ return window.addEventListener(Ze.move.name, t, {
1012
+ capture: !1,
1013
+ passive: !1
1014
+ }), function() {
1015
+ window.removeEventListener(Ze.move.name, t);
1016
+ };
1017
+ function t() {
1018
+ }
1019
+ }
1020
+ }
1021
+ tr.activators = [{
1022
+ eventName: "onTouchStart",
1023
+ handler: (e, t) => {
1024
+ let {
1025
+ nativeEvent: n
1026
+ } = e, {
1027
+ onActivation: r
1028
+ } = t;
1029
+ const {
1030
+ touches: i
1031
+ } = n;
1032
+ return i.length > 1 ? !1 : (r == null || r({
1033
+ event: n
1034
+ }), !0);
1035
+ }
1036
+ }];
1037
+ var Re;
1038
+ (function(e) {
1039
+ e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
1040
+ })(Re || (Re = {}));
1041
+ var Ue;
1042
+ (function(e) {
1043
+ e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
1044
+ })(Ue || (Ue = {}));
1045
+ function nr(e) {
1046
+ let {
1047
+ acceleration: t,
1048
+ activator: n = Re.Pointer,
1049
+ canScroll: r,
1050
+ draggingRect: i,
1051
+ enabled: o,
1052
+ interval: l = 5,
1053
+ order: s = Ue.TreeOrder,
1054
+ pointerCoordinates: a,
1055
+ scrollableAncestors: c,
1056
+ scrollableAncestorRects: d,
1057
+ delta: u,
1058
+ threshold: g
1059
+ } = e;
1060
+ const f = or({
1061
+ delta: u,
1062
+ disabled: !o
1063
+ }), [x, h] = bn(), v = L({
1064
+ x: 0,
1065
+ y: 0
1066
+ }), y = L({
1067
+ x: 0,
1068
+ y: 0
1069
+ }), D = A(() => {
1070
+ switch (n) {
1071
+ case Re.Pointer:
1072
+ return a ? {
1073
+ top: a.y,
1074
+ bottom: a.y,
1075
+ left: a.x,
1076
+ right: a.x
1077
+ } : null;
1078
+ case Re.DraggableRect:
1079
+ return i;
1080
+ }
1081
+ }, [n, i, a]), w = L(null), I = Y(() => {
1082
+ const S = w.current;
1083
+ if (!S)
1084
+ return;
1085
+ const b = v.current.x * y.current.x, p = v.current.y * y.current.y;
1086
+ S.scrollBy(b, p);
1087
+ }, []), C = A(() => s === Ue.TreeOrder ? [...c].reverse() : c, [s, c]);
1088
+ R(
1089
+ () => {
1090
+ if (!o || !c.length || !D) {
1091
+ h();
1092
+ return;
1093
+ }
1094
+ for (const S of C) {
1095
+ if ((r == null ? void 0 : r(S)) === !1)
1096
+ continue;
1097
+ const b = c.indexOf(S), p = d[b];
1098
+ if (!p)
1099
+ continue;
1100
+ const {
1101
+ direction: M,
1102
+ speed: z
1103
+ } = Kn(S, p, D, t, g);
1104
+ for (const O of ["x", "y"])
1105
+ f[O][M[O]] || (z[O] = 0, M[O] = 0);
1106
+ if (z.x > 0 || z.y > 0) {
1107
+ h(), w.current = S, x(I, l), v.current = z, y.current = M;
1108
+ return;
1109
+ }
1110
+ }
1111
+ v.current = {
1112
+ x: 0,
1113
+ y: 0
1114
+ }, y.current = {
1115
+ x: 0,
1116
+ y: 0
1117
+ }, h();
1118
+ },
1119
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1120
+ [
1121
+ t,
1122
+ I,
1123
+ r,
1124
+ h,
1125
+ o,
1126
+ l,
1127
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1128
+ JSON.stringify(D),
1129
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1130
+ JSON.stringify(f),
1131
+ x,
1132
+ c,
1133
+ C,
1134
+ d,
1135
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1136
+ JSON.stringify(g)
1137
+ ]
1138
+ );
1139
+ }
1140
+ const rr = {
1141
+ x: {
1142
+ [N.Backward]: !1,
1143
+ [N.Forward]: !1
1144
+ },
1145
+ y: {
1146
+ [N.Backward]: !1,
1147
+ [N.Forward]: !1
1148
+ }
1149
+ };
1150
+ function or(e) {
1151
+ let {
1152
+ delta: t,
1153
+ disabled: n
1154
+ } = e;
1155
+ const r = tt(t);
1156
+ return Ne((i) => {
1157
+ if (n || !r || !i)
1158
+ return rr;
1159
+ const o = {
1160
+ x: Math.sign(t.x - r.x),
1161
+ y: Math.sign(t.y - r.y)
1162
+ };
1163
+ return {
1164
+ x: {
1165
+ [N.Backward]: i.x[N.Backward] || o.x === -1,
1166
+ [N.Forward]: i.x[N.Forward] || o.x === 1
1167
+ },
1168
+ y: {
1169
+ [N.Backward]: i.y[N.Backward] || o.y === -1,
1170
+ [N.Forward]: i.y[N.Forward] || o.y === 1
1171
+ }
1172
+ };
1173
+ }, [n, t, r]);
1174
+ }
1175
+ function ir(e, t) {
1176
+ const n = t != null ? e.get(t) : void 0, r = n ? n.node.current : null;
1177
+ return Ne((i) => {
1178
+ var o;
1179
+ return t == null ? null : (o = r ?? i) != null ? o : null;
1180
+ }, [r, t]);
1181
+ }
1182
+ function sr(e, t) {
1183
+ return A(() => e.reduce((n, r) => {
1184
+ const {
1185
+ sensor: i
1186
+ } = r, o = i.activators.map((l) => ({
1187
+ eventName: l.eventName,
1188
+ handler: t(l.handler, r)
1189
+ }));
1190
+ return [...n, ...o];
1191
+ }, []), [e, t]);
1192
+ }
1193
+ var Me;
1194
+ (function(e) {
1195
+ e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
1196
+ })(Me || (Me = {}));
1197
+ var ot;
1198
+ (function(e) {
1199
+ e.Optimized = "optimized";
1200
+ })(ot || (ot = {}));
1201
+ const It = /* @__PURE__ */ new Map();
1202
+ function lr(e, t) {
1203
+ let {
1204
+ dragging: n,
1205
+ dependencies: r,
1206
+ config: i
1207
+ } = t;
1208
+ const [o, l] = K(null), {
1209
+ frequency: s,
1210
+ measure: a,
1211
+ strategy: c
1212
+ } = i, d = L(e), u = v(), g = Ae(u), f = Y(function(y) {
1213
+ y === void 0 && (y = []), !g.current && l((D) => D === null ? y : D.concat(y.filter((w) => !D.includes(w))));
1214
+ }, [g]), x = L(null), h = Ne((y) => {
1215
+ if (u && !n)
1216
+ return It;
1217
+ if (!y || y === It || d.current !== e || o != null) {
1218
+ const D = /* @__PURE__ */ new Map();
1219
+ for (let w of e) {
1220
+ if (!w)
1221
+ continue;
1222
+ if (o && o.length > 0 && !o.includes(w.id) && w.rect.current) {
1223
+ D.set(w.id, w.rect.current);
1224
+ continue;
1225
+ }
1226
+ const I = w.node.current, C = I ? new at(a(I), I) : null;
1227
+ w.rect.current = C, C && D.set(w.id, C);
1228
+ }
1229
+ return D;
1230
+ }
1231
+ return y;
1232
+ }, [e, o, n, u, a]);
1233
+ return R(() => {
1234
+ d.current = e;
1235
+ }, [e]), R(
1236
+ () => {
1237
+ u || f();
1238
+ },
1239
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1240
+ [n, u]
1241
+ ), R(
1242
+ () => {
1243
+ o && o.length > 0 && l(null);
1244
+ },
1245
+ //eslint-disable-next-line react-hooks/exhaustive-deps
1246
+ [JSON.stringify(o)]
1247
+ ), R(
1248
+ () => {
1249
+ u || typeof s != "number" || x.current !== null || (x.current = setTimeout(() => {
1250
+ f(), x.current = null;
1251
+ }, s));
1252
+ },
1253
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1254
+ [s, u, f, ...r]
1255
+ ), {
1256
+ droppableRects: h,
1257
+ measureDroppableContainers: f,
1258
+ measuringScheduled: o != null
1259
+ };
1260
+ function v() {
1261
+ switch (c) {
1262
+ case Me.Always:
1263
+ return !1;
1264
+ case Me.BeforeDragging:
1265
+ return n;
1266
+ default:
1267
+ return !n;
1268
+ }
1269
+ }
1270
+ }
1271
+ function tn(e, t) {
1272
+ return Ne((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
1273
+ }
1274
+ function ar(e, t) {
1275
+ return tn(e, t);
1276
+ }
1277
+ function cr(e) {
1278
+ let {
1279
+ callback: t,
1280
+ disabled: n
1281
+ } = e;
1282
+ const r = Wt(t), i = A(() => {
1283
+ if (n || typeof window > "u" || typeof window.MutationObserver > "u")
1284
+ return;
1285
+ const {
1286
+ MutationObserver: o
1287
+ } = window;
1288
+ return new o(r);
1289
+ }, [r, n]);
1290
+ return R(() => () => i == null ? void 0 : i.disconnect(), [i]), i;
1291
+ }
1292
+ function Ye(e) {
1293
+ let {
1294
+ callback: t,
1295
+ disabled: n
1296
+ } = e;
1297
+ const r = Wt(t), i = A(
1298
+ () => {
1299
+ if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
1300
+ return;
1301
+ const {
1302
+ ResizeObserver: o
1303
+ } = window;
1304
+ return new o(r);
1305
+ },
1306
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1307
+ [n]
1308
+ );
1309
+ return R(() => () => i == null ? void 0 : i.disconnect(), [i]), i;
1310
+ }
1311
+ function ur(e) {
1312
+ return new at(Te(e), e);
1313
+ }
1314
+ function kt(e, t, n) {
1315
+ t === void 0 && (t = ur);
1316
+ const [r, i] = K(null);
1317
+ function o() {
1318
+ i((a) => {
1319
+ if (!e)
1320
+ return null;
1321
+ if (e.isConnected === !1) {
1322
+ var c;
1323
+ return (c = a ?? n) != null ? c : null;
1324
+ }
1325
+ const d = t(e);
1326
+ return JSON.stringify(a) === JSON.stringify(d) ? a : d;
1327
+ });
1328
+ }
1329
+ const l = cr({
1330
+ callback(a) {
1331
+ if (e)
1332
+ for (const c of a) {
1333
+ const {
1334
+ type: d,
1335
+ target: u
1336
+ } = c;
1337
+ if (d === "childList" && u instanceof HTMLElement && u.contains(e)) {
1338
+ o();
1339
+ break;
1340
+ }
1341
+ }
1342
+ }
1343
+ }), s = Ye({
1344
+ callback: o
1345
+ });
1346
+ return we(() => {
1347
+ o(), e ? (s == null || s.observe(e), l == null || l.observe(document.body, {
1348
+ childList: !0,
1349
+ subtree: !0
1350
+ })) : (s == null || s.disconnect(), l == null || l.disconnect());
1351
+ }, [e]), r;
1352
+ }
1353
+ function dr(e) {
1354
+ const t = tn(e);
1355
+ return jt(e, t);
1356
+ }
1357
+ const zt = [];
1358
+ function fr(e) {
1359
+ const t = L(e), n = Ne((r) => e ? r && r !== zt && e && t.current && e.parentNode === t.current.parentNode ? r : lt(e) : zt, [e]);
1360
+ return R(() => {
1361
+ t.current = e;
1362
+ }, [e]), n;
1363
+ }
1364
+ function hr(e) {
1365
+ const [t, n] = K(null), r = L(e), i = Y((o) => {
1366
+ const l = Ge(o.target);
1367
+ l && n((s) => s ? (s.set(l, nt(l)), new Map(s)) : null);
1368
+ }, []);
1369
+ return R(() => {
1370
+ const o = r.current;
1371
+ if (e !== o) {
1372
+ l(o);
1373
+ const s = e.map((a) => {
1374
+ const c = Ge(a);
1375
+ return c ? (c.addEventListener("scroll", i, {
1376
+ passive: !0
1377
+ }), [c, nt(c)]) : null;
1378
+ }).filter((a) => a != null);
1379
+ n(s.length ? new Map(s) : null), r.current = e;
1380
+ }
1381
+ return () => {
1382
+ l(e), l(o);
1383
+ };
1384
+ function l(s) {
1385
+ s.forEach((a) => {
1386
+ const c = Ge(a);
1387
+ c == null || c.removeEventListener("scroll", i);
1388
+ });
1389
+ }
1390
+ }, [i, e]), A(() => e.length ? t ? Array.from(t.values()).reduce((o, l) => pe(o, l), j) : Gt(e) : j, [e, t]);
1391
+ }
1392
+ function Bt(e, t) {
1393
+ t === void 0 && (t = []);
1394
+ const n = L(null);
1395
+ return R(
1396
+ () => {
1397
+ n.current = null;
1398
+ },
1399
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1400
+ t
1401
+ ), R(() => {
1402
+ const r = e !== j;
1403
+ r && !n.current && (n.current = e), !r && n.current && (n.current = null);
1404
+ }, [e]), n.current ? Fe(e, n.current) : j;
1405
+ }
1406
+ function gr(e) {
1407
+ R(
1408
+ () => {
1409
+ if (!it)
1410
+ return;
1411
+ const t = e.map((n) => {
1412
+ let {
1413
+ sensor: r
1414
+ } = n;
1415
+ return r.setup == null ? void 0 : r.setup();
1416
+ });
1417
+ return () => {
1418
+ for (const n of t)
1419
+ n == null || n();
1420
+ };
1421
+ },
1422
+ // TO-DO: Sensors length could theoretically change which would not be a valid dependency
1423
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1424
+ e.map((t) => {
1425
+ let {
1426
+ sensor: n
1427
+ } = t;
1428
+ return n;
1429
+ })
1430
+ );
1431
+ }
1432
+ function vr(e, t) {
1433
+ return A(() => e.reduce((n, r) => {
1434
+ let {
1435
+ eventName: i,
1436
+ handler: o
1437
+ } = r;
1438
+ return n[i] = (l) => {
1439
+ o(l, t);
1440
+ }, n;
1441
+ }, {}), [e, t]);
1442
+ }
1443
+ function nn(e) {
1444
+ return A(() => e ? $n(e) : null, [e]);
1445
+ }
1446
+ const Pt = [];
1447
+ function pr(e, t) {
1448
+ t === void 0 && (t = Te);
1449
+ const [n] = e, r = nn(n ? Z(n) : null), [i, o] = K(Pt);
1450
+ function l() {
1451
+ o(() => e.length ? e.map((a) => Jt(a) ? r : new at(t(a), a)) : Pt);
1452
+ }
1453
+ const s = Ye({
1454
+ callback: l
1455
+ });
1456
+ return we(() => {
1457
+ s == null || s.disconnect(), l(), e.forEach((a) => s == null ? void 0 : s.observe(a));
1458
+ }, [e]), i;
1459
+ }
1460
+ function br(e) {
1461
+ if (!e)
1462
+ return null;
1463
+ if (e.children.length > 1)
1464
+ return e;
1465
+ const t = e.children[0];
1466
+ return Ke(t) ? t : e;
1467
+ }
1468
+ function wr(e) {
1469
+ let {
1470
+ measure: t
1471
+ } = e;
1472
+ const [n, r] = K(null), i = Y((c) => {
1473
+ for (const {
1474
+ target: d
1475
+ } of c)
1476
+ if (Ke(d)) {
1477
+ r((u) => {
1478
+ const g = t(d);
1479
+ return u ? {
1480
+ ...u,
1481
+ width: g.width,
1482
+ height: g.height
1483
+ } : g;
1484
+ });
1485
+ break;
1486
+ }
1487
+ }, [t]), o = Ye({
1488
+ callback: i
1489
+ }), l = Y((c) => {
1490
+ const d = br(c);
1491
+ o == null || o.disconnect(), d && (o == null || o.observe(d)), r(d ? t(d) : null);
1492
+ }, [t, o]), [s, a] = $e(l);
1493
+ return A(() => ({
1494
+ nodeRef: s,
1495
+ rect: n,
1496
+ setRef: a
1497
+ }), [n, s, a]);
1498
+ }
1499
+ const yr = [{
1500
+ sensor: en,
1501
+ options: {}
1502
+ }, {
1503
+ sensor: Zt,
1504
+ options: {}
1505
+ }], mr = {
1506
+ current: {}
1507
+ }, Pe = {
1508
+ draggable: {
1509
+ measure: Ot
1510
+ },
1511
+ droppable: {
1512
+ measure: Ot,
1513
+ strategy: Me.WhileDragging,
1514
+ frequency: ot.Optimized
1515
+ },
1516
+ dragOverlay: {
1517
+ measure: Te
1518
+ }
1519
+ };
1520
+ class Ee extends Map {
1521
+ get(t) {
1522
+ var n;
1523
+ return t != null && (n = super.get(t)) != null ? n : void 0;
1524
+ }
1525
+ toArray() {
1526
+ return Array.from(this.values());
1527
+ }
1528
+ getEnabled() {
1529
+ return this.toArray().filter((t) => {
1530
+ let {
1531
+ disabled: n
1532
+ } = t;
1533
+ return !n;
1534
+ });
1535
+ }
1536
+ getNodeFor(t) {
1537
+ var n, r;
1538
+ return (n = (r = this.get(t)) == null ? void 0 : r.node.current) != null ? n : void 0;
1539
+ }
1540
+ }
1541
+ const Dr = {
1542
+ activatorEvent: null,
1543
+ active: null,
1544
+ activeNode: null,
1545
+ activeNodeRect: null,
1546
+ collisions: null,
1547
+ containerNodeRect: null,
1548
+ draggableNodes: /* @__PURE__ */ new Map(),
1549
+ droppableRects: /* @__PURE__ */ new Map(),
1550
+ droppableContainers: /* @__PURE__ */ new Ee(),
1551
+ over: null,
1552
+ dragOverlay: {
1553
+ nodeRef: {
1554
+ current: null
1555
+ },
1556
+ rect: null,
1557
+ setRef: We
1558
+ },
1559
+ scrollableAncestors: [],
1560
+ scrollableAncestorRects: [],
1561
+ measuringConfiguration: Pe,
1562
+ measureDroppableContainers: We,
1563
+ windowRect: null,
1564
+ measuringScheduled: !1
1565
+ }, xr = {
1566
+ activatorEvent: null,
1567
+ activators: [],
1568
+ active: null,
1569
+ activeNodeRect: null,
1570
+ ariaDescribedById: {
1571
+ draggable: ""
1572
+ },
1573
+ dispatch: We,
1574
+ draggableNodes: /* @__PURE__ */ new Map(),
1575
+ over: null,
1576
+ measureDroppableContainers: We
1577
+ }, je = /* @__PURE__ */ Oe(xr), rn = /* @__PURE__ */ Oe(Dr);
1578
+ function Cr() {
1579
+ return {
1580
+ draggable: {
1581
+ active: null,
1582
+ initialCoordinates: {
1583
+ x: 0,
1584
+ y: 0
1585
+ },
1586
+ nodes: /* @__PURE__ */ new Map(),
1587
+ translate: {
1588
+ x: 0,
1589
+ y: 0
1590
+ }
1591
+ },
1592
+ droppable: {
1593
+ containers: new Ee()
1594
+ }
1595
+ };
1596
+ }
1597
+ function Sr(e, t) {
1598
+ switch (t.type) {
1599
+ case E.DragStart:
1600
+ return {
1601
+ ...e,
1602
+ draggable: {
1603
+ ...e.draggable,
1604
+ initialCoordinates: t.initialCoordinates,
1605
+ active: t.active
1606
+ }
1607
+ };
1608
+ case E.DragMove:
1609
+ return e.draggable.active == null ? e : {
1610
+ ...e,
1611
+ draggable: {
1612
+ ...e.draggable,
1613
+ translate: {
1614
+ x: t.coordinates.x - e.draggable.initialCoordinates.x,
1615
+ y: t.coordinates.y - e.draggable.initialCoordinates.y
1616
+ }
1617
+ }
1618
+ };
1619
+ case E.DragEnd:
1620
+ case E.DragCancel:
1621
+ return {
1622
+ ...e,
1623
+ draggable: {
1624
+ ...e.draggable,
1625
+ active: null,
1626
+ initialCoordinates: {
1627
+ x: 0,
1628
+ y: 0
1629
+ },
1630
+ translate: {
1631
+ x: 0,
1632
+ y: 0
1633
+ }
1634
+ }
1635
+ };
1636
+ case E.RegisterDroppable: {
1637
+ const {
1638
+ element: n
1639
+ } = t, {
1640
+ id: r
1641
+ } = n, i = new Ee(e.droppable.containers);
1642
+ return i.set(r, n), {
1643
+ ...e,
1644
+ droppable: {
1645
+ ...e.droppable,
1646
+ containers: i
1647
+ }
1648
+ };
1649
+ }
1650
+ case E.SetDroppableDisabled: {
1651
+ const {
1652
+ id: n,
1653
+ key: r,
1654
+ disabled: i
1655
+ } = t, o = e.droppable.containers.get(n);
1656
+ if (!o || r !== o.key)
1657
+ return e;
1658
+ const l = new Ee(e.droppable.containers);
1659
+ return l.set(n, {
1660
+ ...o,
1661
+ disabled: i
1662
+ }), {
1663
+ ...e,
1664
+ droppable: {
1665
+ ...e.droppable,
1666
+ containers: l
1667
+ }
1668
+ };
1669
+ }
1670
+ case E.UnregisterDroppable: {
1671
+ const {
1672
+ id: n,
1673
+ key: r
1674
+ } = t, i = e.droppable.containers.get(n);
1675
+ if (!i || r !== i.key)
1676
+ return e;
1677
+ const o = new Ee(e.droppable.containers);
1678
+ return o.delete(n), {
1679
+ ...e,
1680
+ droppable: {
1681
+ ...e.droppable,
1682
+ containers: o
1683
+ }
1684
+ };
1685
+ }
1686
+ default:
1687
+ return e;
1688
+ }
1689
+ }
1690
+ function Rr(e) {
1691
+ let {
1692
+ disabled: t
1693
+ } = e;
1694
+ const {
1695
+ active: n,
1696
+ activatorEvent: r,
1697
+ draggableNodes: i
1698
+ } = be(je), o = tt(r), l = tt(n == null ? void 0 : n.id);
1699
+ return R(() => {
1700
+ if (!t && !r && o && l != null) {
1701
+ if (!$t(o) || document.activeElement === o.target)
1702
+ return;
1703
+ const s = i.get(l);
1704
+ if (!s)
1705
+ return;
1706
+ const {
1707
+ activatorNode: a,
1708
+ node: c
1709
+ } = s;
1710
+ if (!a.current && !c.current)
1711
+ return;
1712
+ requestAnimationFrame(() => {
1713
+ for (const d of [a.current, c.current]) {
1714
+ if (!d)
1715
+ continue;
1716
+ const u = wn(d);
1717
+ if (u) {
1718
+ u.focus();
1719
+ break;
1720
+ }
1721
+ }
1722
+ });
1723
+ }
1724
+ }, [r, t, i, l, o]), null;
1725
+ }
1726
+ function Er(e, t) {
1727
+ let {
1728
+ transform: n,
1729
+ ...r
1730
+ } = t;
1731
+ return e != null && e.length ? e.reduce((i, o) => o({
1732
+ transform: i,
1733
+ ...r
1734
+ }), n) : n;
1735
+ }
1736
+ function Ar(e) {
1737
+ return A(
1738
+ () => ({
1739
+ draggable: {
1740
+ ...Pe.draggable,
1741
+ ...e == null ? void 0 : e.draggable
1742
+ },
1743
+ droppable: {
1744
+ ...Pe.droppable,
1745
+ ...e == null ? void 0 : e.droppable
1746
+ },
1747
+ dragOverlay: {
1748
+ ...Pe.dragOverlay,
1749
+ ...e == null ? void 0 : e.dragOverlay
1750
+ }
1751
+ }),
1752
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1753
+ [e == null ? void 0 : e.draggable, e == null ? void 0 : e.droppable, e == null ? void 0 : e.dragOverlay]
1754
+ );
1755
+ }
1756
+ function Mr(e) {
1757
+ let {
1758
+ activeNode: t,
1759
+ measure: n,
1760
+ initialRect: r,
1761
+ config: i = !0
1762
+ } = e;
1763
+ const o = L(!1), {
1764
+ x: l,
1765
+ y: s
1766
+ } = typeof i == "boolean" ? {
1767
+ x: i,
1768
+ y: i
1769
+ } : i;
1770
+ we(() => {
1771
+ if (!l && !s || !t) {
1772
+ o.current = !1;
1773
+ return;
1774
+ }
1775
+ if (o.current || !r)
1776
+ return;
1777
+ const c = t == null ? void 0 : t.node.current;
1778
+ if (!c || c.isConnected === !1)
1779
+ return;
1780
+ const d = n(c), u = jt(d, r);
1781
+ if (l || (u.x = 0), s || (u.y = 0), o.current = !0, Math.abs(u.x) > 0 || Math.abs(u.y) > 0) {
1782
+ const g = Ht(c);
1783
+ g && g.scrollBy({
1784
+ top: u.y,
1785
+ left: u.x
1786
+ });
1787
+ }
1788
+ }, [t, l, s, r, n]);
1789
+ }
1790
+ const on = /* @__PURE__ */ Oe({
1791
+ ...j,
1792
+ scaleX: 1,
1793
+ scaleY: 1
1794
+ });
1795
+ var se;
1796
+ (function(e) {
1797
+ e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
1798
+ })(se || (se = {}));
1799
+ const Ur = /* @__PURE__ */ gn(function(t) {
1800
+ var n, r, i, o;
1801
+ let {
1802
+ id: l,
1803
+ accessibility: s,
1804
+ autoScroll: a = !0,
1805
+ children: c,
1806
+ sensors: d = yr,
1807
+ collisionDetection: u = Ln,
1808
+ measuring: g,
1809
+ modifiers: f,
1810
+ ...x
1811
+ } = t;
1812
+ const h = vn(Sr, void 0, Cr), [v, y] = h, [D, w] = Rn(), [I, C] = K(se.Uninitialized), S = I === se.Initialized, {
1813
+ draggable: {
1814
+ active: b,
1815
+ nodes: p,
1816
+ translate: M
1817
+ },
1818
+ droppable: {
1819
+ containers: z
1820
+ }
1821
+ } = v, O = b != null ? p.get(b) : null, J = L({
1822
+ initial: null,
1823
+ translated: null
1824
+ }), V = A(() => {
1825
+ var k;
1826
+ return b != null ? {
1827
+ id: b,
1828
+ // It's possible for the active node to unmount while dragging
1829
+ data: (k = O == null ? void 0 : O.data) != null ? k : mr,
1830
+ rect: J
1831
+ } : null;
1832
+ }, [b, O]), ee = L(null), [ut, dt] = K(null), [G, ft] = K(null), le = Ae(x, Object.values(x)), He = Xe("DndDescribedBy", l), ht = A(() => z.getEnabled(), [z]), ae = Ar(g), {
1833
+ droppableRects: de,
1834
+ measureDroppableContainers: Le,
1835
+ measuringScheduled: gt
1836
+ } = lr(ht, {
1837
+ dragging: S,
1838
+ dependencies: [M.x, M.y],
1839
+ config: ae.droppable
1840
+ }), U = ir(p, b), vt = A(() => G ? et(G) : null, [G]), pt = hn(), bt = ar(U, ae.draggable.measure);
1841
+ Mr({
1842
+ activeNode: b != null ? p.get(b) : null,
1843
+ config: pt.layoutShiftCompensation,
1844
+ initialRect: bt,
1845
+ measure: ae.draggable.measure
1846
+ });
1847
+ const X = kt(U, ae.draggable.measure, bt), _e = kt(U ? U.parentElement : null), ce = L({
1848
+ activatorEvent: null,
1849
+ active: null,
1850
+ activeNode: U,
1851
+ collisionRect: null,
1852
+ collisions: null,
1853
+ droppableRects: de,
1854
+ draggableNodes: p,
1855
+ draggingNode: null,
1856
+ draggingNodeRect: null,
1857
+ droppableContainers: z,
1858
+ over: null,
1859
+ scrollableAncestors: [],
1860
+ scrollAdjustedTranslate: null
1861
+ }), wt = z.getNodeFor((n = ce.current.over) == null ? void 0 : n.id), ue = wr({
1862
+ measure: ae.dragOverlay.measure
1863
+ }), Ie = (r = ue.nodeRef.current) != null ? r : U, fe = S ? (i = ue.rect) != null ? i : X : null, yt = !!(ue.nodeRef.current && ue.rect), mt = dr(yt ? null : X), qe = nn(Ie ? Z(Ie) : null), te = fr(S ? wt ?? U : null), ke = pr(te), ze = Er(f, {
1864
+ transform: {
1865
+ x: M.x - mt.x,
1866
+ y: M.y - mt.y,
1867
+ scaleX: 1,
1868
+ scaleY: 1
1869
+ },
1870
+ activatorEvent: G,
1871
+ active: V,
1872
+ activeNodeRect: X,
1873
+ containerNodeRect: _e,
1874
+ draggingNodeRect: fe,
1875
+ over: ce.current.over,
1876
+ overlayNodeRect: ue.rect,
1877
+ scrollableAncestors: te,
1878
+ scrollableAncestorRects: ke,
1879
+ windowRect: qe
1880
+ }), Dt = vt ? pe(vt, M) : null, xt = hr(te), sn = Bt(xt), ln = Bt(xt, [X]), he = pe(ze, sn), ge = fe ? zn(fe, ze) : null, me = V && ge ? u({
1881
+ active: V,
1882
+ collisionRect: ge,
1883
+ droppableRects: de,
1884
+ droppableContainers: ht,
1885
+ pointerCoordinates: Dt
1886
+ }) : null, Ct = Nn(me, "id"), [ne, St] = K(null), an = yt ? ze : pe(ze, ln), cn = In(an, (o = ne == null ? void 0 : ne.rect) != null ? o : null, X), Je = L(null), Rt = Y(
1887
+ (k, B) => {
1888
+ let {
1889
+ sensor: P,
1890
+ options: re
1891
+ } = B;
1892
+ if (ee.current == null)
1893
+ return;
1894
+ const $ = p.get(ee.current);
1895
+ if (!$)
1896
+ return;
1897
+ const F = k.nativeEvent, H = new P({
1898
+ active: ee.current,
1899
+ activeNode: $,
1900
+ event: F,
1901
+ options: re,
1902
+ // Sensors need to be instantiated with refs for arguments that change over time
1903
+ // otherwise they are frozen in time with the stale arguments
1904
+ context: ce,
1905
+ onAbort(T) {
1906
+ if (!p.get(T))
1907
+ return;
1908
+ const {
1909
+ onDragAbort: _
1910
+ } = le.current, Q = {
1911
+ id: T
1912
+ };
1913
+ _ == null || _(Q), D({
1914
+ type: "onDragAbort",
1915
+ event: Q
1916
+ });
1917
+ },
1918
+ onPending(T, oe, _, Q) {
1919
+ if (!p.get(T))
1920
+ return;
1921
+ const {
1922
+ onDragPending: xe
1923
+ } = le.current, ie = {
1924
+ id: T,
1925
+ constraint: oe,
1926
+ initialCoordinates: _,
1927
+ offset: Q
1928
+ };
1929
+ xe == null || xe(ie), D({
1930
+ type: "onDragPending",
1931
+ event: ie
1932
+ });
1933
+ },
1934
+ onStart(T) {
1935
+ const oe = ee.current;
1936
+ if (oe == null)
1937
+ return;
1938
+ const _ = p.get(oe);
1939
+ if (!_)
1940
+ return;
1941
+ const {
1942
+ onDragStart: Q
1943
+ } = le.current, De = {
1944
+ activatorEvent: F,
1945
+ active: {
1946
+ id: oe,
1947
+ data: _.data,
1948
+ rect: J
1949
+ }
1950
+ };
1951
+ Be(() => {
1952
+ Q == null || Q(De), C(se.Initializing), y({
1953
+ type: E.DragStart,
1954
+ initialCoordinates: T,
1955
+ active: oe
1956
+ }), D({
1957
+ type: "onDragStart",
1958
+ event: De
1959
+ }), dt(Je.current), ft(F);
1960
+ });
1961
+ },
1962
+ onMove(T) {
1963
+ y({
1964
+ type: E.DragMove,
1965
+ coordinates: T
1966
+ });
1967
+ },
1968
+ onEnd: ve(E.DragEnd),
1969
+ onCancel: ve(E.DragCancel)
1970
+ });
1971
+ Je.current = H;
1972
+ function ve(T) {
1973
+ return async function() {
1974
+ const {
1975
+ active: _,
1976
+ collisions: Q,
1977
+ over: De,
1978
+ scrollAdjustedTranslate: xe
1979
+ } = ce.current;
1980
+ let ie = null;
1981
+ if (_ && xe) {
1982
+ const {
1983
+ cancelDrop: Ce
1984
+ } = le.current;
1985
+ ie = {
1986
+ activatorEvent: F,
1987
+ active: _,
1988
+ collisions: Q,
1989
+ delta: xe,
1990
+ over: De
1991
+ }, T === E.DragEnd && typeof Ce == "function" && await Promise.resolve(Ce(ie)) && (T = E.DragCancel);
1992
+ }
1993
+ ee.current = null, Be(() => {
1994
+ y({
1995
+ type: T
1996
+ }), C(se.Uninitialized), St(null), dt(null), ft(null), Je.current = null;
1997
+ const Ce = T === E.DragEnd ? "onDragEnd" : "onDragCancel";
1998
+ if (ie) {
1999
+ const Ve = le.current[Ce];
2000
+ Ve == null || Ve(ie), D({
2001
+ type: Ce,
2002
+ event: ie
2003
+ });
2004
+ }
2005
+ });
2006
+ };
2007
+ }
2008
+ },
2009
+ // eslint-disable-next-line react-hooks/exhaustive-deps
2010
+ [p]
2011
+ ), un = Y((k, B) => (P, re) => {
2012
+ const $ = P.nativeEvent, F = p.get(re);
2013
+ if (
2014
+ // Another sensor is already instantiating
2015
+ ee.current !== null || // No active draggable
2016
+ !F || // Event has already been captured
2017
+ $.dndKit || $.defaultPrevented
2018
+ )
2019
+ return;
2020
+ const H = {
2021
+ active: F
2022
+ };
2023
+ k(P, B.options, H) === !0 && ($.dndKit = {
2024
+ capturedBy: B.sensor
2025
+ }, ee.current = re, Rt(P, B));
2026
+ }, [p, Rt]), Et = sr(d, un);
2027
+ gr(d), we(() => {
2028
+ X && I === se.Initializing && C(se.Initialized);
2029
+ }, [X, I]), R(
2030
+ () => {
2031
+ const {
2032
+ onDragMove: k
2033
+ } = le.current, {
2034
+ active: B,
2035
+ activatorEvent: P,
2036
+ collisions: re,
2037
+ over: $
2038
+ } = ce.current;
2039
+ if (!B || !P)
2040
+ return;
2041
+ const F = {
2042
+ active: B,
2043
+ activatorEvent: P,
2044
+ collisions: re,
2045
+ delta: {
2046
+ x: he.x,
2047
+ y: he.y
2048
+ },
2049
+ over: $
2050
+ };
2051
+ Be(() => {
2052
+ k == null || k(F), D({
2053
+ type: "onDragMove",
2054
+ event: F
2055
+ });
2056
+ });
2057
+ },
2058
+ // eslint-disable-next-line react-hooks/exhaustive-deps
2059
+ [he.x, he.y]
2060
+ ), R(
2061
+ () => {
2062
+ const {
2063
+ active: k,
2064
+ activatorEvent: B,
2065
+ collisions: P,
2066
+ droppableContainers: re,
2067
+ scrollAdjustedTranslate: $
2068
+ } = ce.current;
2069
+ if (!k || ee.current == null || !B || !$)
2070
+ return;
2071
+ const {
2072
+ onDragOver: F
2073
+ } = le.current, H = re.get(Ct), ve = H && H.rect.current ? {
2074
+ id: H.id,
2075
+ rect: H.rect.current,
2076
+ data: H.data,
2077
+ disabled: H.disabled
2078
+ } : null, T = {
2079
+ active: k,
2080
+ activatorEvent: B,
2081
+ collisions: P,
2082
+ delta: {
2083
+ x: $.x,
2084
+ y: $.y
2085
+ },
2086
+ over: ve
2087
+ };
2088
+ Be(() => {
2089
+ St(ve), F == null || F(T), D({
2090
+ type: "onDragOver",
2091
+ event: T
2092
+ });
2093
+ });
2094
+ },
2095
+ // eslint-disable-next-line react-hooks/exhaustive-deps
2096
+ [Ct]
2097
+ ), we(() => {
2098
+ ce.current = {
2099
+ activatorEvent: G,
2100
+ active: V,
2101
+ activeNode: U,
2102
+ collisionRect: ge,
2103
+ collisions: me,
2104
+ droppableRects: de,
2105
+ draggableNodes: p,
2106
+ draggingNode: Ie,
2107
+ draggingNodeRect: fe,
2108
+ droppableContainers: z,
2109
+ over: ne,
2110
+ scrollableAncestors: te,
2111
+ scrollAdjustedTranslate: he
2112
+ }, J.current = {
2113
+ initial: fe,
2114
+ translated: ge
2115
+ };
2116
+ }, [V, U, me, ge, p, Ie, fe, de, z, ne, te, he]), nr({
2117
+ ...pt,
2118
+ delta: M,
2119
+ draggingRect: ge,
2120
+ pointerCoordinates: Dt,
2121
+ scrollableAncestors: te,
2122
+ scrollableAncestorRects: ke
2123
+ });
2124
+ const dn = A(() => ({
2125
+ active: V,
2126
+ activeNode: U,
2127
+ activeNodeRect: X,
2128
+ activatorEvent: G,
2129
+ collisions: me,
2130
+ containerNodeRect: _e,
2131
+ dragOverlay: ue,
2132
+ draggableNodes: p,
2133
+ droppableContainers: z,
2134
+ droppableRects: de,
2135
+ over: ne,
2136
+ measureDroppableContainers: Le,
2137
+ scrollableAncestors: te,
2138
+ scrollableAncestorRects: ke,
2139
+ measuringConfiguration: ae,
2140
+ measuringScheduled: gt,
2141
+ windowRect: qe
2142
+ }), [V, U, X, G, me, _e, ue, p, z, de, ne, Le, te, ke, ae, gt, qe]), fn = A(() => ({
2143
+ activatorEvent: G,
2144
+ activators: Et,
2145
+ active: V,
2146
+ activeNodeRect: X,
2147
+ ariaDescribedById: {
2148
+ draggable: He
2149
+ },
2150
+ dispatch: y,
2151
+ draggableNodes: p,
2152
+ over: ne,
2153
+ measureDroppableContainers: Le
2154
+ }), [G, Et, V, X, y, He, p, ne, Le]);
2155
+ return q.createElement(Xt.Provider, {
2156
+ value: w
2157
+ }, q.createElement(je.Provider, {
2158
+ value: fn
2159
+ }, q.createElement(rn.Provider, {
2160
+ value: dn
2161
+ }, q.createElement(on.Provider, {
2162
+ value: cn
2163
+ }, c)), q.createElement(Rr, {
2164
+ disabled: (s == null ? void 0 : s.restoreFocus) === !1
2165
+ })), q.createElement(Mn, {
2166
+ ...s,
2167
+ hiddenTextDescribedById: He
2168
+ }));
2169
+ function hn() {
2170
+ const k = (ut == null ? void 0 : ut.autoScrollEnabled) === !1, B = typeof a == "object" ? a.enabled === !1 : a === !1, P = S && !k && !B;
2171
+ return typeof a == "object" ? {
2172
+ ...a,
2173
+ enabled: P
2174
+ } : {
2175
+ enabled: P
2176
+ };
2177
+ }
2178
+ }), Or = /* @__PURE__ */ Oe(null), Ft = "button", Nr = "Draggable";
2179
+ function Xr(e) {
2180
+ let {
2181
+ id: t,
2182
+ data: n,
2183
+ disabled: r = !1,
2184
+ attributes: i
2185
+ } = e;
2186
+ const o = Xe(Nr), {
2187
+ activators: l,
2188
+ activatorEvent: s,
2189
+ active: a,
2190
+ activeNodeRect: c,
2191
+ ariaDescribedById: d,
2192
+ draggableNodes: u,
2193
+ over: g
2194
+ } = be(je), {
2195
+ role: f = Ft,
2196
+ roleDescription: x = "draggable",
2197
+ tabIndex: h = 0
2198
+ } = i ?? {}, v = (a == null ? void 0 : a.id) === t, y = be(v ? on : Or), [D, w] = $e(), [I, C] = $e(), S = vr(l, t), b = Ae(n);
2199
+ we(
2200
+ () => (u.set(t, {
2201
+ id: t,
2202
+ key: o,
2203
+ node: D,
2204
+ activatorNode: I,
2205
+ data: b
2206
+ }), () => {
2207
+ const M = u.get(t);
2208
+ M && M.key === o && u.delete(t);
2209
+ }),
2210
+ // eslint-disable-next-line react-hooks/exhaustive-deps
2211
+ [u, t]
2212
+ );
2213
+ const p = A(() => ({
2214
+ role: f,
2215
+ tabIndex: h,
2216
+ "aria-disabled": r,
2217
+ "aria-pressed": v && f === Ft ? !0 : void 0,
2218
+ "aria-roledescription": x,
2219
+ "aria-describedby": d.draggable
2220
+ }), [r, f, h, v, x, d.draggable]);
2221
+ return {
2222
+ active: a,
2223
+ activatorEvent: s,
2224
+ activeNodeRect: c,
2225
+ attributes: p,
2226
+ isDragging: v,
2227
+ listeners: r ? void 0 : S,
2228
+ node: D,
2229
+ over: g,
2230
+ setNodeRef: w,
2231
+ setActivatorNodeRef: C,
2232
+ transform: y
2233
+ };
2234
+ }
2235
+ function Kr() {
2236
+ return be(rn);
2237
+ }
2238
+ const Tr = "Droppable", Lr = {
2239
+ timeout: 25
2240
+ };
2241
+ function Yr(e) {
2242
+ let {
2243
+ data: t,
2244
+ disabled: n = !1,
2245
+ id: r,
2246
+ resizeObserverConfig: i
2247
+ } = e;
2248
+ const o = Xe(Tr), {
2249
+ active: l,
2250
+ dispatch: s,
2251
+ over: a,
2252
+ measureDroppableContainers: c
2253
+ } = be(je), d = L({
2254
+ disabled: n
2255
+ }), u = L(!1), g = L(null), f = L(null), {
2256
+ disabled: x,
2257
+ updateMeasurementsFor: h,
2258
+ timeout: v
2259
+ } = {
2260
+ ...Lr,
2261
+ ...i
2262
+ }, y = Ae(h ?? r), D = Y(
2263
+ () => {
2264
+ if (!u.current) {
2265
+ u.current = !0;
2266
+ return;
2267
+ }
2268
+ f.current != null && clearTimeout(f.current), f.current = setTimeout(() => {
2269
+ c(Array.isArray(y.current) ? y.current : [y.current]), f.current = null;
2270
+ }, v);
2271
+ },
2272
+ //eslint-disable-next-line react-hooks/exhaustive-deps
2273
+ [v]
2274
+ ), w = Ye({
2275
+ callback: D,
2276
+ disabled: x || !l
2277
+ }), I = Y((p, M) => {
2278
+ w && (M && (w.unobserve(M), u.current = !1), p && w.observe(p));
2279
+ }, [w]), [C, S] = $e(I), b = Ae(t);
2280
+ return R(() => {
2281
+ !w || !C.current || (w.disconnect(), u.current = !1, w.observe(C.current));
2282
+ }, [C, w]), R(
2283
+ () => (s({
2284
+ type: E.RegisterDroppable,
2285
+ element: {
2286
+ id: r,
2287
+ key: o,
2288
+ disabled: n,
2289
+ node: C,
2290
+ rect: g,
2291
+ data: b
2292
+ }
2293
+ }), () => s({
2294
+ type: E.UnregisterDroppable,
2295
+ key: o,
2296
+ id: r
2297
+ })),
2298
+ // eslint-disable-next-line react-hooks/exhaustive-deps
2299
+ [r]
2300
+ ), R(() => {
2301
+ n !== d.current.disabled && (s({
2302
+ type: E.SetDroppableDisabled,
2303
+ id: r,
2304
+ key: o,
2305
+ disabled: n
2306
+ }), d.current.disabled = n);
2307
+ }, [r, o, n, s]), {
2308
+ active: l,
2309
+ rect: g,
2310
+ isOver: (a == null ? void 0 : a.id) === r,
2311
+ node: C,
2312
+ over: a,
2313
+ setNodeRef: S
2314
+ };
2315
+ }
2316
+ export {
2317
+ Re as AutoScrollActivator,
2318
+ Ur as DndContext,
2319
+ m as KeyboardCode,
2320
+ Zt as KeyboardSensor,
2321
+ ot as MeasuringFrequency,
2322
+ Me as MeasuringStrategy,
2323
+ er as MouseSensor,
2324
+ en as PointerSensor,
2325
+ tr as TouchSensor,
2326
+ Ue as TraversalOrder,
2327
+ Er as applyModifiers,
2328
+ $r as closestCenter,
2329
+ Wr as closestCorners,
2330
+ An as defaultAnnouncements,
2331
+ j as defaultCoordinates,
2332
+ Gn as defaultKeyboardCoordinateGetter,
2333
+ En as defaultScreenReaderInstructions,
2334
+ Te as getClientRect,
2335
+ Nn as getFirstCollision,
2336
+ lt as getScrollableAncestors,
2337
+ Ln as rectIntersection,
2338
+ Kr as useDndContext,
2339
+ Sn as useDndMonitor,
2340
+ Xr as useDraggable,
2341
+ Yr as useDroppable,
2342
+ Pr as useSensor,
2343
+ Fr as useSensors
2344
+ };