quantum-component-library 1.4.45-qa.8 → 1.4.46-qa

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 (51) hide show
  1. package/README.md +115 -115
  2. package/dist/components/copy-activity-form/index.d.ts +6 -4
  3. package/dist/components.cjs +1 -13
  4. package/dist/components.js +1292 -1175
  5. package/dist/{dnd-core-vendor-fsFbP4EK.cjs → dnd-core-vendor-2Ve0kqUN.cjs} +1 -1
  6. package/dist/{dnd-core-vendor-B7dYqFGj.js → dnd-core-vendor-CErAmYu_.js} +2 -2
  7. package/dist/emotion-react-vendor-CHdBBD18.cjs +1 -0
  8. package/dist/emotion-react-vendor-CSrsXjBq.js +81 -0
  9. package/dist/generated/gql.d.ts +5 -0
  10. package/dist/generated/graphql.d.ts +19 -0
  11. package/dist/{generated-ChsGaiYd.cjs → generated-B5QGMyhw.cjs} +1 -1
  12. package/dist/{generated-GfcSQz21.js → generated-esGwfMXj.js} +21 -20
  13. package/dist/graphql/mutations/actions.d.ts +3 -0
  14. package/dist/{graphql-DZp5ePcc.js → graphql-CZIf58Fd.js} +37 -30
  15. package/dist/{graphql-CqPvuCvr.cjs → graphql-KvyVlavd.cjs} +18 -12
  16. package/dist/{graphql-vendor-BALJU0FA.js → graphql-vendor-BWnD0b-j.js} +1 -1
  17. package/dist/{graphql-vendor-zFhl4d7h.cjs → graphql-vendor-CL0XsjHb.cjs} +1 -1
  18. package/dist/hoist-non-react-statics-vendor-C5vG1oEE.cjs +1 -0
  19. package/dist/hoist-non-react-statics-vendor-DJU3S3cV.js +68 -0
  20. package/dist/hooks.cjs +1 -1
  21. package/dist/hooks.js +1 -1
  22. package/dist/lib/services/rom.json.d.ts +223 -223
  23. package/dist/providers.cjs +1 -1
  24. package/dist/providers.js +2 -2
  25. package/dist/quantum-component-library.css +1 -1
  26. package/dist/react-dnd-vendor-BPzSDojS.cjs +2 -0
  27. package/dist/{react-dnd-vendor-CnjZk49P.js → react-dnd-vendor-D4nn9Mqx.js} +3 -3
  28. package/dist/react-is-vendor-CosIbvzW.cjs +15 -0
  29. package/dist/react-is-vendor-DpFLFzFZ.js +174 -0
  30. package/dist/react-jsx-runtime-vendor-Dszzpdy0.cjs +22 -0
  31. package/dist/react-jsx-runtime-vendor-OVHDjVDe.js +284 -0
  32. package/dist/react-select-vendor-BPaBUHFp.cjs +4 -0
  33. package/dist/{react-select-vendor-F4s0M_nP.js → react-select-vendor-C_DuqfB7.js} +7 -6
  34. package/dist/{vendor-BomSre9q.js → tailwind-vendor-B4y94WzT.js} +493 -1470
  35. package/dist/tailwind-vendor-C0M23-WD.cjs +1 -0
  36. package/dist/types.cjs +1 -1
  37. package/dist/types.js +1 -1
  38. package/dist/ufuzzy-vendor-7qHa_k39.cjs +1 -0
  39. package/dist/ufuzzy-vendor-Dl0ZI6Av.js +456 -0
  40. package/dist/utils.cjs +1 -1
  41. package/dist/utils.js +13 -13
  42. package/dist/vendor-BjLvygDR.cjs +1 -0
  43. package/dist/vendor-VALJ9W3p.js +526 -0
  44. package/package.json +123 -119
  45. package/dist/other-react-vendor-CbZyzO2N.cjs +0 -36
  46. package/dist/other-react-vendor-ZnZFHn3v.js +0 -598
  47. package/dist/react-dnd-vendor-Bsa3sIdS.cjs +0 -2
  48. package/dist/react-select-vendor-BFizJ8yU.cjs +0 -4
  49. package/dist/styled-components-vendor-Bvwhddj9.js +0 -1154
  50. package/dist/styled-components-vendor-D09ATioU.cjs +0 -60
  51. package/dist/vendor-Bc1whdE2.cjs +0 -1
@@ -1,598 +0,0 @@
1
- import * as M from "react";
2
- import _e, { forwardRef as Se, useContext as Te } from "react";
3
- import { c as Re, g as be, s as ye, r as Pe, u as Ae, i as ge } from "./emotion-vendor-DNnoMT20.js";
4
- var Z = { exports: {} }, q = {};
5
- /**
6
- * @license React
7
- * react-jsx-runtime.production.js
8
- *
9
- * Copyright (c) Meta Platforms, Inc. and affiliates.
10
- *
11
- * This source code is licensed under the MIT license found in the
12
- * LICENSE file in the root directory of this source tree.
13
- */
14
- var ie;
15
- function xe() {
16
- if (ie) return q;
17
- ie = 1;
18
- var r = Symbol.for("react.transitional.element"), a = Symbol.for("react.fragment");
19
- function c(i, s, u) {
20
- var m = null;
21
- if (u !== void 0 && (m = "" + u), s.key !== void 0 && (m = "" + s.key), "key" in s) {
22
- u = {};
23
- for (var E in s)
24
- E !== "key" && (u[E] = s[E]);
25
- } else u = s;
26
- return s = u.ref, {
27
- $$typeof: r,
28
- type: i,
29
- key: m,
30
- ref: s !== void 0 ? s : null,
31
- props: u
32
- };
33
- }
34
- return q.Fragment = a, q.jsx = c, q.jsxs = c, q;
35
- }
36
- var U = {};
37
- /**
38
- * @license React
39
- * react-jsx-runtime.development.js
40
- *
41
- * Copyright (c) Meta Platforms, Inc. and affiliates.
42
- *
43
- * This source code is licensed under the MIT license found in the
44
- * LICENSE file in the root directory of this source tree.
45
- */
46
- var ue;
47
- function Oe() {
48
- return ue || (ue = 1, process.env.NODE_ENV !== "production" && (function() {
49
- function r(e) {
50
- if (e == null) return null;
51
- if (typeof e == "function")
52
- return e.$$typeof === ee ? null : e.displayName || e.name || null;
53
- if (typeof e == "string") return e;
54
- switch (e) {
55
- case g:
56
- return "Fragment";
57
- case $:
58
- return "Profiler";
59
- case N:
60
- return "StrictMode";
61
- case t:
62
- return "Suspense";
63
- case x:
64
- return "SuspenseList";
65
- case K:
66
- return "Activity";
67
- }
68
- if (typeof e == "object")
69
- switch (typeof e.tag == "number" && console.error(
70
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
71
- ), e.$$typeof) {
72
- case _:
73
- return "Portal";
74
- case p:
75
- return (e.displayName || "Context") + ".Provider";
76
- case w:
77
- return (e._context.displayName || "Context") + ".Consumer";
78
- case v:
79
- var o = e.render;
80
- return e = e.displayName, e || (e = o.displayName || o.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
81
- case I:
82
- return o = e.displayName || null, o !== null ? o : r(e.type) || "Memo";
83
- case Y:
84
- o = e._payload, e = e._init;
85
- try {
86
- return r(e(o));
87
- } catch {
88
- }
89
- }
90
- return null;
91
- }
92
- function a(e) {
93
- return "" + e;
94
- }
95
- function c(e) {
96
- try {
97
- a(e);
98
- var o = !1;
99
- } catch {
100
- o = !0;
101
- }
102
- if (o) {
103
- o = console;
104
- var d = o.error, S = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
105
- return d.call(
106
- o,
107
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
108
- S
109
- ), a(e);
110
- }
111
- }
112
- function i(e) {
113
- if (e === g) return "<>";
114
- if (typeof e == "object" && e !== null && e.$$typeof === Y)
115
- return "<...>";
116
- try {
117
- var o = r(e);
118
- return o ? "<" + o + ">" : "<...>";
119
- } catch {
120
- return "<...>";
121
- }
122
- }
123
- function s() {
124
- var e = F.A;
125
- return e === null ? null : e.getOwner();
126
- }
127
- function u() {
128
- return Error("react-stack-top-frame");
129
- }
130
- function m(e) {
131
- if (V.call(e, "key")) {
132
- var o = Object.getOwnPropertyDescriptor(e, "key").get;
133
- if (o && o.isReactWarning) return !1;
134
- }
135
- return e.key !== void 0;
136
- }
137
- function E(e, o) {
138
- function d() {
139
- J || (J = !0, console.error(
140
- "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
141
- o
142
- ));
143
- }
144
- d.isReactWarning = !0, Object.defineProperty(e, "key", {
145
- get: d,
146
- configurable: !0
147
- });
148
- }
149
- function R() {
150
- var e = r(this.type);
151
- return X[e] || (X[e] = !0, console.error(
152
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
153
- )), e = this.props.ref, e !== void 0 ? e : null;
154
- }
155
- function y(e, o, d, S, h, O, L, z) {
156
- return d = O.ref, e = {
157
- $$typeof: b,
158
- type: e,
159
- key: o,
160
- props: O,
161
- _owner: h
162
- }, (d !== void 0 ? d : null) !== null ? Object.defineProperty(e, "ref", {
163
- enumerable: !1,
164
- get: R
165
- }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
166
- configurable: !1,
167
- enumerable: !1,
168
- writable: !0,
169
- value: 0
170
- }), Object.defineProperty(e, "_debugInfo", {
171
- configurable: !1,
172
- enumerable: !1,
173
- writable: !0,
174
- value: null
175
- }), Object.defineProperty(e, "_debugStack", {
176
- configurable: !1,
177
- enumerable: !1,
178
- writable: !0,
179
- value: L
180
- }), Object.defineProperty(e, "_debugTask", {
181
- configurable: !1,
182
- enumerable: !1,
183
- writable: !0,
184
- value: z
185
- }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
186
- }
187
- function P(e, o, d, S, h, O, L, z) {
188
- var T = o.children;
189
- if (T !== void 0)
190
- if (S)
191
- if (re(T)) {
192
- for (S = 0; S < T.length; S++)
193
- A(T[S]);
194
- Object.freeze && Object.freeze(T);
195
- } else
196
- console.error(
197
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
198
- );
199
- else A(T);
200
- if (V.call(o, "key")) {
201
- T = r(e);
202
- var j = Object.keys(o).filter(function(te) {
203
- return te !== "key";
204
- });
205
- S = 0 < j.length ? "{key: someKey, " + j.join(": ..., ") + ": ...}" : "{key: someKey}", H[T + S] || (j = 0 < j.length ? "{" + j.join(": ..., ") + ": ...}" : "{}", console.error(
206
- `A props object containing a "key" prop is being spread into JSX:
207
- let props = %s;
208
- <%s {...props} />
209
- React keys must be passed directly to JSX without using spread:
210
- let props = %s;
211
- <%s key={someKey} {...props} />`,
212
- S,
213
- T,
214
- j,
215
- T
216
- ), H[T + S] = !0);
217
- }
218
- if (T = null, d !== void 0 && (c(d), T = "" + d), m(o) && (c(o.key), T = "" + o.key), "key" in o) {
219
- d = {};
220
- for (var W in o)
221
- W !== "key" && (d[W] = o[W]);
222
- } else d = o;
223
- return T && E(
224
- d,
225
- typeof e == "function" ? e.displayName || e.name || "Unknown" : e
226
- ), y(
227
- e,
228
- T,
229
- O,
230
- h,
231
- s(),
232
- d,
233
- L,
234
- z
235
- );
236
- }
237
- function A(e) {
238
- typeof e == "object" && e !== null && e.$$typeof === b && e._store && (e._store.validated = 1);
239
- }
240
- var C = _e, b = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), N = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), p = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), t = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), Y = Symbol.for("react.lazy"), K = Symbol.for("react.activity"), ee = Symbol.for("react.client.reference"), F = C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, V = Object.prototype.hasOwnProperty, re = Array.isArray, k = console.createTask ? console.createTask : function() {
241
- return null;
242
- };
243
- C = {
244
- react_stack_bottom_frame: function(e) {
245
- return e();
246
- }
247
- };
248
- var J, X = {}, G = C.react_stack_bottom_frame.bind(
249
- C,
250
- u
251
- )(), D = k(i(u)), H = {};
252
- U.Fragment = g, U.jsx = function(e, o, d, S, h) {
253
- var O = 1e4 > F.recentlyCreatedOwnerStacks++;
254
- return P(
255
- e,
256
- o,
257
- d,
258
- !1,
259
- S,
260
- h,
261
- O ? Error("react-stack-top-frame") : G,
262
- O ? k(i(e)) : D
263
- );
264
- }, U.jsxs = function(e, o, d, S, h) {
265
- var O = 1e4 > F.recentlyCreatedOwnerStacks++;
266
- return P(
267
- e,
268
- o,
269
- d,
270
- !0,
271
- S,
272
- h,
273
- O ? Error("react-stack-top-frame") : G,
274
- O ? k(i(e)) : D
275
- );
276
- };
277
- })()), U;
278
- }
279
- var fe;
280
- function Ce() {
281
- return fe || (fe = 1, process.env.NODE_ENV === "production" ? Z.exports = xe() : Z.exports = Oe()), Z.exports;
282
- }
283
- var We = Ce(), Q = { exports: {} }, f = {};
284
- /** @license React v16.13.1
285
- * react-is.production.min.js
286
- *
287
- * Copyright (c) Facebook, Inc. and its affiliates.
288
- *
289
- * This source code is licensed under the MIT license found in the
290
- * LICENSE file in the root directory of this source tree.
291
- */
292
- var le;
293
- function we() {
294
- if (le) return f;
295
- le = 1;
296
- var r = typeof Symbol == "function" && Symbol.for, a = r ? Symbol.for("react.element") : 60103, c = r ? Symbol.for("react.portal") : 60106, i = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, u = r ? Symbol.for("react.profiler") : 60114, m = r ? Symbol.for("react.provider") : 60109, E = r ? Symbol.for("react.context") : 60110, R = r ? Symbol.for("react.async_mode") : 60111, y = r ? Symbol.for("react.concurrent_mode") : 60111, P = r ? Symbol.for("react.forward_ref") : 60112, A = r ? Symbol.for("react.suspense") : 60113, C = r ? Symbol.for("react.suspense_list") : 60120, b = r ? Symbol.for("react.memo") : 60115, _ = r ? Symbol.for("react.lazy") : 60116, g = r ? Symbol.for("react.block") : 60121, N = r ? Symbol.for("react.fundamental") : 60117, $ = r ? Symbol.for("react.responder") : 60118, w = r ? Symbol.for("react.scope") : 60119;
297
- function p(t) {
298
- if (typeof t == "object" && t !== null) {
299
- var x = t.$$typeof;
300
- switch (x) {
301
- case a:
302
- switch (t = t.type, t) {
303
- case R:
304
- case y:
305
- case i:
306
- case u:
307
- case s:
308
- case A:
309
- return t;
310
- default:
311
- switch (t = t && t.$$typeof, t) {
312
- case E:
313
- case P:
314
- case _:
315
- case b:
316
- case m:
317
- return t;
318
- default:
319
- return x;
320
- }
321
- }
322
- case c:
323
- return x;
324
- }
325
- }
326
- }
327
- function v(t) {
328
- return p(t) === y;
329
- }
330
- return f.AsyncMode = R, f.ConcurrentMode = y, f.ContextConsumer = E, f.ContextProvider = m, f.Element = a, f.ForwardRef = P, f.Fragment = i, f.Lazy = _, f.Memo = b, f.Portal = c, f.Profiler = u, f.StrictMode = s, f.Suspense = A, f.isAsyncMode = function(t) {
331
- return v(t) || p(t) === R;
332
- }, f.isConcurrentMode = v, f.isContextConsumer = function(t) {
333
- return p(t) === E;
334
- }, f.isContextProvider = function(t) {
335
- return p(t) === m;
336
- }, f.isElement = function(t) {
337
- return typeof t == "object" && t !== null && t.$$typeof === a;
338
- }, f.isForwardRef = function(t) {
339
- return p(t) === P;
340
- }, f.isFragment = function(t) {
341
- return p(t) === i;
342
- }, f.isLazy = function(t) {
343
- return p(t) === _;
344
- }, f.isMemo = function(t) {
345
- return p(t) === b;
346
- }, f.isPortal = function(t) {
347
- return p(t) === c;
348
- }, f.isProfiler = function(t) {
349
- return p(t) === u;
350
- }, f.isStrictMode = function(t) {
351
- return p(t) === s;
352
- }, f.isSuspense = function(t) {
353
- return p(t) === A;
354
- }, f.isValidElementType = function(t) {
355
- return typeof t == "string" || typeof t == "function" || t === i || t === y || t === u || t === s || t === A || t === C || typeof t == "object" && t !== null && (t.$$typeof === _ || t.$$typeof === b || t.$$typeof === m || t.$$typeof === E || t.$$typeof === P || t.$$typeof === N || t.$$typeof === $ || t.$$typeof === w || t.$$typeof === g);
356
- }, f.typeOf = p, f;
357
- }
358
- var l = {};
359
- /** @license React v16.13.1
360
- * react-is.development.js
361
- *
362
- * Copyright (c) Facebook, Inc. and its affiliates.
363
- *
364
- * This source code is licensed under the MIT license found in the
365
- * LICENSE file in the root directory of this source tree.
366
- */
367
- var me;
368
- function he() {
369
- return me || (me = 1, process.env.NODE_ENV !== "production" && (function() {
370
- var r = typeof Symbol == "function" && Symbol.for, a = r ? Symbol.for("react.element") : 60103, c = r ? Symbol.for("react.portal") : 60106, i = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, u = r ? Symbol.for("react.profiler") : 60114, m = r ? Symbol.for("react.provider") : 60109, E = r ? Symbol.for("react.context") : 60110, R = r ? Symbol.for("react.async_mode") : 60111, y = r ? Symbol.for("react.concurrent_mode") : 60111, P = r ? Symbol.for("react.forward_ref") : 60112, A = r ? Symbol.for("react.suspense") : 60113, C = r ? Symbol.for("react.suspense_list") : 60120, b = r ? Symbol.for("react.memo") : 60115, _ = r ? Symbol.for("react.lazy") : 60116, g = r ? Symbol.for("react.block") : 60121, N = r ? Symbol.for("react.fundamental") : 60117, $ = r ? Symbol.for("react.responder") : 60118, w = r ? Symbol.for("react.scope") : 60119;
371
- function p(n) {
372
- return typeof n == "string" || typeof n == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
373
- n === i || n === y || n === u || n === s || n === A || n === C || typeof n == "object" && n !== null && (n.$$typeof === _ || n.$$typeof === b || n.$$typeof === m || n.$$typeof === E || n.$$typeof === P || n.$$typeof === N || n.$$typeof === $ || n.$$typeof === w || n.$$typeof === g);
374
- }
375
- function v(n) {
376
- if (typeof n == "object" && n !== null) {
377
- var ne = n.$$typeof;
378
- switch (ne) {
379
- case a:
380
- var B = n.type;
381
- switch (B) {
382
- case R:
383
- case y:
384
- case i:
385
- case u:
386
- case s:
387
- case A:
388
- return B;
389
- default:
390
- var ce = B && B.$$typeof;
391
- switch (ce) {
392
- case E:
393
- case P:
394
- case _:
395
- case b:
396
- case m:
397
- return ce;
398
- default:
399
- return ne;
400
- }
401
- }
402
- case c:
403
- return ne;
404
- }
405
- }
406
- }
407
- var t = R, x = y, I = E, Y = m, K = a, ee = P, F = i, V = _, re = b, k = c, J = u, X = s, G = A, D = !1;
408
- function H(n) {
409
- return D || (D = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), e(n) || v(n) === R;
410
- }
411
- function e(n) {
412
- return v(n) === y;
413
- }
414
- function o(n) {
415
- return v(n) === E;
416
- }
417
- function d(n) {
418
- return v(n) === m;
419
- }
420
- function S(n) {
421
- return typeof n == "object" && n !== null && n.$$typeof === a;
422
- }
423
- function h(n) {
424
- return v(n) === P;
425
- }
426
- function O(n) {
427
- return v(n) === i;
428
- }
429
- function L(n) {
430
- return v(n) === _;
431
- }
432
- function z(n) {
433
- return v(n) === b;
434
- }
435
- function T(n) {
436
- return v(n) === c;
437
- }
438
- function j(n) {
439
- return v(n) === u;
440
- }
441
- function W(n) {
442
- return v(n) === s;
443
- }
444
- function te(n) {
445
- return v(n) === A;
446
- }
447
- l.AsyncMode = t, l.ConcurrentMode = x, l.ContextConsumer = I, l.ContextProvider = Y, l.Element = K, l.ForwardRef = ee, l.Fragment = F, l.Lazy = V, l.Memo = re, l.Portal = k, l.Profiler = J, l.StrictMode = X, l.Suspense = G, l.isAsyncMode = H, l.isConcurrentMode = e, l.isContextConsumer = o, l.isContextProvider = d, l.isElement = S, l.isForwardRef = h, l.isFragment = O, l.isLazy = L, l.isMemo = z, l.isPortal = T, l.isProfiler = j, l.isStrictMode = W, l.isSuspense = te, l.isValidElementType = p, l.typeOf = v;
448
- })()), l;
449
- }
450
- var de;
451
- function Ne() {
452
- return de || (de = 1, process.env.NODE_ENV === "production" ? Q.exports = we() : Q.exports = he()), Q.exports;
453
- }
454
- var oe, ve;
455
- function $e() {
456
- if (ve) return oe;
457
- ve = 1;
458
- var r = Ne(), a = {
459
- childContextTypes: !0,
460
- contextType: !0,
461
- contextTypes: !0,
462
- defaultProps: !0,
463
- displayName: !0,
464
- getDefaultProps: !0,
465
- getDerivedStateFromError: !0,
466
- getDerivedStateFromProps: !0,
467
- mixins: !0,
468
- propTypes: !0,
469
- type: !0
470
- }, c = {
471
- name: !0,
472
- length: !0,
473
- prototype: !0,
474
- caller: !0,
475
- callee: !0,
476
- arguments: !0,
477
- arity: !0
478
- }, i = {
479
- $$typeof: !0,
480
- render: !0,
481
- defaultProps: !0,
482
- displayName: !0,
483
- propTypes: !0
484
- }, s = {
485
- $$typeof: !0,
486
- compare: !0,
487
- defaultProps: !0,
488
- displayName: !0,
489
- propTypes: !0,
490
- type: !0
491
- }, u = {};
492
- u[r.ForwardRef] = i, u[r.Memo] = s;
493
- function m(_) {
494
- return r.isMemo(_) ? s : u[_.$$typeof] || a;
495
- }
496
- var E = Object.defineProperty, R = Object.getOwnPropertyNames, y = Object.getOwnPropertySymbols, P = Object.getOwnPropertyDescriptor, A = Object.getPrototypeOf, C = Object.prototype;
497
- function b(_, g, N) {
498
- if (typeof g != "string") {
499
- if (C) {
500
- var $ = A(g);
501
- $ && $ !== C && b(_, $, N);
502
- }
503
- var w = R(g);
504
- y && (w = w.concat(y(g)));
505
- for (var p = m(_), v = m(g), t = 0; t < w.length; ++t) {
506
- var x = w[t];
507
- if (!c[x] && !(N && N[x]) && !(v && v[x]) && !(p && p[x])) {
508
- var I = P(g, x);
509
- try {
510
- E(_, x, I);
511
- } catch {
512
- }
513
- }
514
- }
515
- }
516
- return _;
517
- }
518
- return oe = b, oe;
519
- }
520
- $e();
521
- var pe = /* @__PURE__ */ M.createContext(
522
- // we're doing this to avoid preconstruct's dead code elimination in this one case
523
- // because this module is primarily intended for the browser and node
524
- // but it's also required in react native and similar environments sometimes
525
- // and we could have a special build just for that
526
- // but this is much easier and the native packages
527
- // might use a different theme context in the future anyway
528
- typeof HTMLElement < "u" ? /* @__PURE__ */ Re({
529
- key: "css"
530
- }) : null
531
- );
532
- pe.Provider;
533
- var Me = function(a) {
534
- return /* @__PURE__ */ Se(function(c, i) {
535
- var s = Te(pe);
536
- return a(c, s, i);
537
- });
538
- }, je = /* @__PURE__ */ M.createContext({}), se = {}.hasOwnProperty, ae = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Ie = function(a, c) {
539
- var i = {};
540
- for (var s in c)
541
- se.call(c, s) && (i[s] = c[s]);
542
- return i[ae] = a, i;
543
- }, Ye = function(a) {
544
- var c = a.cache, i = a.serialized, s = a.isStringTag;
545
- return Pe(c, i, s), Ae(function() {
546
- return ge(c, i, s);
547
- }), null;
548
- }, Fe = /* @__PURE__ */ Me(function(r, a, c) {
549
- var i = r.css;
550
- typeof i == "string" && a.registered[i] !== void 0 && (i = a.registered[i]);
551
- var s = r[ae], u = [i], m = "";
552
- typeof r.className == "string" ? m = be(a.registered, u, r.className) : r.className != null && (m = r.className + " ");
553
- var E = ye(u, void 0, M.useContext(je));
554
- m += a.key + "-" + E.name;
555
- var R = {};
556
- for (var y in r)
557
- se.call(r, y) && y !== "css" && y !== ae && (R[y] = r[y]);
558
- return R.className = m, c && (R.ref = c), /* @__PURE__ */ M.createElement(M.Fragment, null, /* @__PURE__ */ M.createElement(Ye, {
559
- cache: a,
560
- serialized: E,
561
- isStringTag: typeof s == "string"
562
- }), /* @__PURE__ */ M.createElement(s, R));
563
- }), ke = Fe, Ee = function(a, c) {
564
- var i = arguments;
565
- if (c == null || !se.call(c, "css"))
566
- return M.createElement.apply(void 0, i);
567
- var s = i.length, u = new Array(s);
568
- u[0] = ke, u[1] = Ie(a, c);
569
- for (var m = 2; m < s; m++)
570
- u[m] = i[m];
571
- return M.createElement.apply(null, u);
572
- };
573
- (function(r) {
574
- var a;
575
- a || (a = r.JSX || (r.JSX = {}));
576
- })(Ee || (Ee = {}));
577
- function De() {
578
- for (var r = arguments.length, a = new Array(r), c = 0; c < r; c++)
579
- a[c] = arguments[c];
580
- return ye(a);
581
- }
582
- function qe() {
583
- var r = De.apply(void 0, arguments), a = "animation-" + r.name;
584
- return {
585
- name: a,
586
- styles: "@keyframes " + a + "{" + r.styles + "}",
587
- anim: 1,
588
- toString: function() {
589
- return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
590
- }
591
- };
592
- }
593
- export {
594
- Ee as a,
595
- De as c,
596
- We as j,
597
- qe as k
598
- };
@@ -1,2 +0,0 @@
1
- "use strict";const ie=require("./other-react-vendor-CbZyzO2N.cjs"),d=require("react"),se=require("./dnd-core-vendor-fsFbP4EK.cjs"),oe=require("./vendor-Bc1whdE2.cjs"),U=d.createContext({dragDropManager:void 0});function m(r,e,...t){if(ae()&&e===void 0)throw new Error("invariant requires an error message argument");if(!r){let i;if(e===void 0)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let n=0;i=new Error(e.replace(/%s/g,function(){return t[n++]})),i.name="Invariant Violation"}throw i.framesToPop=1,i}}function ae(){return typeof process<"u"&&process.env.NODE_ENV==="production"}const k=typeof global<"u"?global:self,Y=k.MutationObserver||k.WebKitMutationObserver;function X(r){return function(){const t=setTimeout(n,0),i=setInterval(n,50);function n(){clearTimeout(t),clearInterval(i),r()}}}function ce(r){let e=1;const t=new Y(r),i=document.createTextNode("");return t.observe(i,{characterData:!0}),function(){e=-e,i.data=e}}const ue=typeof Y=="function"?ce:X;class de{enqueueTask(e){const{queue:t,requestFlush:i}=this;t.length||(i(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let i=0,n=e.length-this.index;i<n;i++)e[i]=e[i+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=ue(this.flush),this.requestErrorThrow=X(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class le{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}class he{create(e){const t=this.freeTasks,i=t.length?t.pop():new le(this.onError,n=>t[t.length]=n);return i.task=e,i}constructor(e){this.onError=e,this.freeTasks=[]}}const z=new de,ge=new he(z.registerPendingError);function fe(r){z.enqueueTask(ge.create(r))}function pe(r,e){if(r==null)return{};var t=ve(r,e),i,n;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(n=0;n<s.length;n++)i=s[n],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(r,i)&&(t[i]=r[i])}return t}function ve(r,e){if(r==null)return{};var t={},i=Object.keys(r),n,s;for(s=0;s<i.length;s++)n=i[s],!(e.indexOf(n)>=0)&&(t[n]=r[n]);return t}let _=0;const E=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var De=d.memo(function(e){var{children:t}=e,i=pe(e,["children"]);const[n,s]=me(i);return d.useEffect(()=>{if(s){const a=V();return++_,()=>{--_===0&&(a[E]=null)}}},[]),ie.jsxRuntimeExports.jsx(U.Provider,{value:n,children:t})});function me(r){if("manager"in r)return[{dragDropManager:r.manager},!1];const e=Te(r.backend,r.context,r.options,r.debugMode),t=!r.context;return[e,t]}function Te(r,e=V(),t,i){const n=e;return n[E]||(n[E]={dragDropManager:se.createDragDropManager(r,e,t,i)}),n[E]}function V(){return typeof global<"u"?global:window}const I=typeof window<"u"?d.useLayoutEffect:d.useEffect;function Ie(r,e,t){const[i,n]=d.useState(()=>e(r)),s=d.useCallback(()=>{const a=e(r);oe.equal(i,a)||(n(a),t&&t())},[i,r,t]);return I(s),[i,s]}function Se(r,e,t){const[i,n]=Ie(r,e,t);return I(function(){const a=r.getHandlerId();if(a!=null)return r.subscribeToStateChange(n,{handlerIds:[a]})},[r,n]),i}function W(r,e,t){return Se(e,r||(()=>({})),()=>t.reconnect())}function B(r,e){const t=[];return typeof r!="function"&&t.push(r),d.useMemo(()=>typeof r=="function"?r():r,t)}function Ce(r){return d.useMemo(()=>r.hooks.dragSource(),[r])}function Oe(r){return d.useMemo(()=>r.hooks.dragPreview(),[r])}let y=!1,b=!1;class we{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){m(!y,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return y=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{y=!1}}isDragging(){if(!this.sourceId)return!1;m(!b,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return b=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{b=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let P=!1;class Ee{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;m(!P,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return P=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{P=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function ye(r,e,t){const i=t.getRegistry(),n=i.addTarget(r,e);return[n,()=>i.removeTarget(n)]}function be(r,e,t){const i=t.getRegistry(),n=i.addSource(r,e);return[n,()=>i.removeSource(n)]}function x(r,e,t,i){let n;if(n!==void 0)return!!n;if(r===e)return!0;if(typeof r!="object"||!r||typeof e!="object"||!e)return!1;const s=Object.keys(r),a=Object.keys(e);if(s.length!==a.length)return!1;const o=Object.prototype.hasOwnProperty.bind(e);for(let u=0;u<s.length;u++){const l=s[u];if(!o(l))return!1;const h=r[l],g=e[l];if(n=void 0,n===!1||n===void 0&&h!==g)return!1}return!0}function L(r){return r!==null&&typeof r=="object"&&Object.prototype.hasOwnProperty.call(r,"current")}function Pe(r){if(typeof r.type=="string")return;const e=r.type.displayName||r.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}function Ne(r){return(e=null,t=null)=>{if(!d.isValidElement(e)){const s=e;return r(s,t),s}const i=e;return Pe(i),Me(i,t?s=>r(s,t):r)}}function K(r){const e={};return Object.keys(r).forEach(t=>{const i=r[t];if(t.endsWith("Ref"))e[t]=r[t];else{const n=Ne(i);e[t]=()=>n}}),e}function F(r,e){typeof r=="function"?r(e):r.current=e}function Me(r,e){const t=r.ref;return m(typeof t!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),t?d.cloneElement(r,{ref:i=>{F(t,i),F(e,i)}}):d.cloneElement(r,{ref:e})}class xe{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,i=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(i&&this.disconnectDragPreview(),!!this.handlerId){if(!t){this.lastConnectedDragPreview=t;return}i&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!x(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!x(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=K({dragSource:(t,i)=>{this.clearDragSource(),this.dragSourceOptions=i||null,L(t)?this.dragSourceRef=t:this.dragSourceNode=t,this.reconnectDragSource()},dragPreview:(t,i)=>{this.clearDragPreview(),this.dragPreviewOptions=i||null,L(t)?this.dragPreviewRef=t:this.dragPreviewNode=t,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class Le{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;if(this.handlerId){if(!t){this.lastConnectedDropTarget=t;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!x(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=K({dropTarget:(t,i)=>{this.clearDropTarget(),this.dropTargetOptions=i,L(t)?this.dropTargetRef=t:this.dropTargetNode=t,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function S(){const{dragDropManager:r}=d.useContext(U);return m(r!=null,"Expected drag drop context"),r}function Re(r,e){const t=S(),i=d.useMemo(()=>new xe(t.getBackend()),[t]);return I(()=>(i.dragSourceOptions=r||null,i.reconnect(),()=>i.disconnectDragSource()),[i,r]),I(()=>(i.dragPreviewOptions=e||null,i.reconnect(),()=>i.disconnectDragPreview()),[i,e]),i}function He(){const r=S();return d.useMemo(()=>new we(r),[r])}class ke{beginDrag(){const e=this.spec,t=this.monitor;let i=null;return typeof e.item=="object"?i=e.item:typeof e.item=="function"?i=e.item(t):i={},i??null}canDrag(){const e=this.spec,t=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(t):!0}isDragging(e,t){const i=this.spec,n=this.monitor,{isDragging:s}=i;return s?s(n):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,i=this.connector,{end:n}=e;n&&n(t.getItem(),t),i.reconnect()}constructor(e,t,i){this.spec=e,this.monitor=t,this.connector=i}}function _e(r,e,t){const i=d.useMemo(()=>new ke(r,e,t),[e,t]);return d.useEffect(()=>{i.spec=r},[r]),i}function Fe(r){return d.useMemo(()=>{const e=r.type;return m(e!=null,"spec.type must be defined"),e},[r])}function qe(r,e,t){const i=S(),n=_e(r,e,t),s=Fe(r);I(function(){if(s!=null){const[o,u]=be(s,n,i);return e.receiveHandlerId(o),t.receiveHandlerId(o),u}},[i,e,t,n,s])}function Ae(r,e){const t=B(r);m(!t.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const i=He(),n=Re(t.options,t.previewOptions);return qe(t,i,n),[W(t.collect,i,n),Ce(n),Oe(n)]}function je(r){return d.useMemo(()=>r.hooks.dropTarget(),[r])}function Ue(r){const e=S(),t=d.useMemo(()=>new Le(e.getBackend()),[e]);return I(()=>(t.dropTargetOptions=r||null,t.reconnect(),()=>t.disconnectDropTarget()),[r]),t}function Ye(){const r=S();return d.useMemo(()=>new Ee(r),[r])}function Xe(r){const{accept:e}=r;return d.useMemo(()=>(m(r.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class ze{canDrop(){const e=this.spec,t=this.monitor;return e.canDrop?e.canDrop(t.getItem(),t):!0}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function Ve(r,e){const t=d.useMemo(()=>new ze(r,e),[e]);return d.useEffect(()=>{t.spec=r},[r]),t}function We(r,e,t){const i=S(),n=Ve(r,e),s=Xe(r);I(function(){const[o,u]=ye(s,n,i);return e.receiveHandlerId(o),t.receiveHandlerId(o),u},[i,e,n,t,s.map(a=>a.toString()).join("|")])}function Be(r,e){const t=B(r),i=Ye(),n=Ue(t.options);return We(t,i,n),[W(t.collect,i,n),je(n)]}function G(r){let e=null;return()=>(e==null&&(e=r()),e)}function Ke(r,e){return r.filter(t=>t!==e)}function Ge(r,e){const t=new Set,i=s=>t.add(s);r.forEach(i),e.forEach(i);const n=[];return t.forEach(s=>n.push(s)),n}class $e{enter(e){const t=this.entered.length,i=n=>this.isNodeInDocument(n)&&(!n.contains||n.contains(e));return this.entered=Ge(this.entered.filter(i),[e]),t===0&&this.entered.length>0}leave(e){const t=this.entered.length;return this.entered=Ke(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class Qe{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(i=>{const n=this.config.exposeProperties[i];n!=null&&(t[i]={value:n(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const $="__NATIVE_FILE__",Q="__NATIVE_URL__",J="__NATIVE_TEXT__",Z="__NATIVE_HTML__",q=Object.freeze(Object.defineProperty({__proto__:null,FILE:$,HTML:Z,TEXT:J,URL:Q},Symbol.toStringTag,{value:"Module"}));function N(r,e,t){const i=e.reduce((n,s)=>n||r.getData(s),"");return i??t}const R={[$]:{exposeProperties:{files:r=>Array.prototype.slice.call(r.files),items:r=>r.items,dataTransfer:r=>r},matchesTypes:["Files"]},[Z]:{exposeProperties:{html:(r,e)=>N(r,e,""),dataTransfer:r=>r},matchesTypes:["Html","text/html"]},[Q]:{exposeProperties:{urls:(r,e)=>N(r,e,"").split(`
2
- `),dataTransfer:r=>r},matchesTypes:["Url","text/uri-list"]},[J]:{exposeProperties:{text:(r,e)=>N(r,e,""),dataTransfer:r=>r},matchesTypes:["Text","text/plain"]}};function Je(r,e){const t=R[r];if(!t)throw new Error(`native type ${r} has no configuration`);const i=new Qe(t);return i.loadDataTransfer(e),i}function M(r){if(!r)return null;const e=Array.prototype.slice.call(r.types||[]);return Object.keys(R).filter(t=>{const i=R[t];return i?.matchesTypes?i.matchesTypes.some(n=>e.indexOf(n)>-1):!1})[0]||null}const Ze=G(()=>/firefox/i.test(navigator.userAgent)),ee=G(()=>!!window.safari);class A{interpolate(e){const{xs:t,ys:i,c1s:n,c2s:s,c3s:a}=this;let o=t.length-1;if(e===t[o])return i[o];let u=0,l=a.length-1,h;for(;u<=l;){h=Math.floor(.5*(u+l));const c=t[h];if(c<e)u=h+1;else if(c>e)l=h-1;else return i[h]}o=Math.max(0,l);const g=e-t[o],f=g*g;return i[o]+n[o]*g+s[o]*f+a[o]*g*f}constructor(e,t){const{length:i}=e,n=[];for(let c=0;c<i;c++)n.push(c);n.sort((c,p)=>e[c]<e[p]?-1:1);const s=[],a=[];let o,u;for(let c=0;c<i-1;c++)o=e[c+1]-e[c],u=t[c+1]-t[c],s.push(o),a.push(u/o);const l=[a[0]];for(let c=0;c<s.length-1;c++){const p=a[c],v=a[c+1];if(p*v<=0)l.push(0);else{o=s[c];const D=s[c+1],T=o+D;l.push(3*T/((T+D)/p+(T+o)/v))}}l.push(a[a.length-1]);const h=[],g=[];let f;for(let c=0;c<l.length-1;c++){f=a[c];const p=l[c],v=1/s[c],D=p+l[c+1]-f-f;h.push((f-p-D)*v),g.push(D*v*v)}this.xs=e,this.ys=t,this.c1s=l,this.c2s=h,this.c3s=g}}const et=1;function te(r){const e=r.nodeType===et?r:r.parentElement;if(!e)return null;const{top:t,left:i}=e.getBoundingClientRect();return{x:i,y:t}}function w(r){return{x:r.clientX,y:r.clientY}}function tt(r){var e;return r.nodeName==="IMG"&&(Ze()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(r)))}function rt(r,e,t,i){let n=r?e.width:t,s=r?e.height:i;return ee()&&r&&(s/=window.devicePixelRatio,n/=window.devicePixelRatio),{dragPreviewWidth:n,dragPreviewHeight:s}}function nt(r,e,t,i,n){const s=tt(e),o=te(s?r:e),u={x:t.x-o.x,y:t.y-o.y},{offsetWidth:l,offsetHeight:h}=r,{anchorX:g,anchorY:f}=i,{dragPreviewWidth:c,dragPreviewHeight:p}=rt(s,e,l,h),v=()=>{let H=new A([0,.5,1],[u.y,u.y/h*p,u.y+p-h]).interpolate(f);return ee()&&s&&(H+=(window.devicePixelRatio-1)*p),H},D=()=>new A([0,.5,1],[u.x,u.x/l*c,u.x+c-l]).interpolate(g),{offsetX:T,offsetY:C}=n,O=T===0||T,re=C===0||C;return{x:O?T:D(),y:re?C:v()}}class it{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function st(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function j(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},i=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(t).filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),i.forEach(function(n){st(r,n,t[n])})}return r}class ot{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var t;(t=this.window)===null||t===void 0||t.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,t,i){return this.sourcePreviewNodeOptions.set(e,i),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,i){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,i);const n=a=>this.handleDragStart(a,e),s=a=>this.handleSelectStart(a);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",n),t.addEventListener("selectstart",s),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",n),t.removeEventListener("selectstart",s),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const i=a=>this.handleDragEnter(a,e),n=a=>this.handleDragOver(a,e),s=a=>this.handleDrop(a,e);return t.addEventListener("dragenter",i),t.addEventListener("dragover",n),t.addEventListener("drop",s),()=>{t.removeEventListener("dragenter",i),t.removeEventListener("dragover",n),t.removeEventListener("drop",s)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return j({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourcePreviewNodeOptions.get(e);return j({anchorX:.5,anchorY:.5,captureDraggingState:!1},t||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(q).some(t=>q[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=Je(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const t=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var i;return(i=this.rootElement)===null||i===void 0?void 0:i.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},t)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,i){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=n=>{const s=this.sourceNodes.get(n);return s&&te(s)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=n=>!!(n&&this.document&&this.document.body&&this.document.body.contains(n)),this.endDragIfSourceWasRemovedFromDOM=()=>{const n=this.currentDragSourceNode;n==null||this.isNodeInDocument(n)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=n=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(n||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=n=>{if(n.defaultPrevented)return;const{dragStartSourceIds:s}=this;this.dragStartSourceIds=null;const a=w(n);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(s||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:o}=n,u=M(o);if(this.monitor.isDragging()){if(o&&typeof o.setDragImage=="function"){const h=this.monitor.getSourceId(),g=this.sourceNodes.get(h),f=this.sourcePreviewNodes.get(h)||g;if(f){const{anchorX:c,anchorY:p,offsetX:v,offsetY:D}=this.getCurrentSourcePreviewNodeOptions(),O=nt(g,f,a,{anchorX:c,anchorY:p},{offsetX:v,offsetY:D});o.setDragImage(f,O.x,O.y)}}try{o?.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(n.target);const{captureDraggingState:l}=this.getCurrentSourcePreviewNodeOptions();l?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(u)this.beginDragNativeItem(u);else{if(o&&!o.types&&(n.target&&!n.target.hasAttribute||!n.target.hasAttribute("draggable")))return;n.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=n=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var s;(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(n.dataTransfer)}if(!this.enterLeaveCounter.enter(n.target)||this.monitor.isDragging())return;const{dataTransfer:o}=n,u=M(o);u&&this.beginDragNativeItem(u,o)},this.handleTopDragEnter=n=>{const{dragEnterTargetIds:s}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=n.altKey,s.length>0&&this.actions.hover(s,{clientOffset:w(n)}),s.some(o=>this.monitor.canDropOnTarget(o))&&(n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=n=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var s;(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(n.dataTransfer)}},this.handleTopDragOver=n=>{const{dragOverTargetIds:s}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect="none");return}this.altKeyPressed=n.altKey,this.lastClientOffset=w(n),this.scheduleHover(s),(s||[]).some(o=>this.monitor.canDropOnTarget(o))?(n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?n.preventDefault():(n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=n=>{this.isDraggingNativeItem()&&n.preventDefault(),this.enterLeaveCounter.leave(n.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=n=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var s;n.preventDefault(),(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(n.dataTransfer)}else M(n.dataTransfer)&&n.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=n=>{const{dropTargetIds:s}=this;this.dropTargetIds=[],this.actions.hover(s,{clientOffset:w(n)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=n=>{const s=n.target;typeof s.dragDrop=="function"&&(s.tagName==="INPUT"||s.tagName==="SELECT"||s.tagName==="TEXTAREA"||s.isContentEditable||(n.preventDefault(),s.dragDrop()))},this.options=new it(t,i),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new $e(this.isNodeInDocument)}}const at=function(e,t,i){return new ot(e,t,i)};exports.DndProvider=De;exports.HTML5Backend=at;exports.asap=fe;exports.invariant=m;exports.useDrag=Ae;exports.useDrop=Be;