react-composable-treeview 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -13,13 +13,13 @@ var $e;
13
13
  function Er() {
14
14
  if ($e) return q;
15
15
  $e = 1;
16
- var r = Le, u = Symbol.for("react.element"), n = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, i = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
17
- function y(f, l, C) {
18
- var g, E = {}, x = null, S = null;
19
- C !== void 0 && (x = "" + C), l.key !== void 0 && (x = "" + l.key), l.ref !== void 0 && (S = l.ref);
20
- for (g in l) a.call(l, g) && !s.hasOwnProperty(g) && (E[g] = l[g]);
21
- if (f && f.defaultProps) for (g in l = f.defaultProps, l) E[g] === void 0 && (E[g] = l[g]);
22
- return { $$typeof: u, type: f, key: x, ref: S, props: E, _owner: i.current };
16
+ var r = Le, o = Symbol.for("react.element"), n = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, i = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
17
+ function y(f, l, x) {
18
+ var g, h = {}, w = null, S = null;
19
+ x !== void 0 && (w = "" + x), l.key !== void 0 && (w = "" + l.key), l.ref !== void 0 && (S = l.ref);
20
+ for (g in l) u.call(l, g) && !s.hasOwnProperty(g) && (h[g] = l[g]);
21
+ if (f && f.defaultProps) for (g in l = f.defaultProps, l) h[g] === void 0 && (h[g] = l[g]);
22
+ return { $$typeof: o, type: f, key: w, ref: S, props: h, _owner: i.current };
23
23
  }
24
24
  return q.Fragment = n, q.jsx = y, q.jsxs = y, q;
25
25
  }
@@ -36,7 +36,7 @@ var K = {};
36
36
  var Ye;
37
37
  function Rr() {
38
38
  return Ye || (Ye = 1, process.env.NODE_ENV !== "production" && function() {
39
- var r = Le, u = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), y = Symbol.for("react.provider"), f = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), j = Symbol.iterator, $ = "@@iterator";
39
+ var r = Le, o = Symbol.for("react.element"), n = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), y = Symbol.for("react.provider"), f = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), j = Symbol.iterator, $ = "@@iterator";
40
40
  function R(e) {
41
41
  if (e === null || typeof e != "object")
42
42
  return null;
@@ -44,18 +44,18 @@ function Rr() {
44
44
  return typeof t == "function" ? t : null;
45
45
  }
46
46
  var P = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
- function h(e) {
47
+ function b(e) {
48
48
  {
49
- for (var t = arguments.length, o = new Array(t > 1 ? t - 1 : 0), c = 1; c < t; c++)
50
- o[c - 1] = arguments[c];
51
- w("error", e, o);
49
+ for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), c = 1; c < t; c++)
50
+ a[c - 1] = arguments[c];
51
+ T("error", e, a);
52
52
  }
53
53
  }
54
- function w(e, t, o) {
54
+ function T(e, t, a) {
55
55
  {
56
56
  var c = P.ReactDebugCurrentFrame, p = c.getStackAddendum();
57
- p !== "" && (t += "%s", o = o.concat([p]));
58
- var _ = o.map(function(v) {
57
+ p !== "" && (t += "%s", a = a.concat([p]));
58
+ var _ = a.map(function(v) {
59
59
  return String(v);
60
60
  });
61
61
  _.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, _);
@@ -64,18 +64,18 @@ function Rr() {
64
64
  var F = !1, D = !1, O = !1, N = !1, Z = !1, ve;
65
65
  ve = Symbol.for("react.module.reference");
66
66
  function Ke(e) {
67
- return !!(typeof e == "string" || typeof e == "function" || e === a || e === s || Z || e === i || e === C || e === g || N || e === S || F || D || O || typeof e == "object" && e !== null && (e.$$typeof === x || e.$$typeof === E || e.$$typeof === y || e.$$typeof === f || e.$$typeof === l || // This needs to include all possible module reference object
67
+ return !!(typeof e == "string" || typeof e == "function" || e === u || e === s || Z || e === i || e === x || e === g || N || e === S || F || D || O || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === h || e.$$typeof === y || e.$$typeof === f || e.$$typeof === l || // This needs to include all possible module reference object
68
68
  // types supported by any Flight configuration anywhere since
69
69
  // we don't know which Flight build this will end up being used
70
70
  // with.
71
71
  e.$$typeof === ve || e.getModuleId !== void 0));
72
72
  }
73
- function Je(e, t, o) {
73
+ function Je(e, t, a) {
74
74
  var c = e.displayName;
75
75
  if (c)
76
76
  return c;
77
77
  var p = t.displayName || t.name || "";
78
- return p !== "" ? o + "(" + p + ")" : o;
78
+ return p !== "" ? a + "(" + p + ")" : a;
79
79
  }
80
80
  function pe(e) {
81
81
  return e.displayName || "Context";
@@ -83,12 +83,12 @@ function Rr() {
83
83
  function Y(e) {
84
84
  if (e == null)
85
85
  return null;
86
- if (typeof e.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
86
+ if (typeof e.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
87
87
  return e.displayName || e.name || null;
88
88
  if (typeof e == "string")
89
89
  return e;
90
90
  switch (e) {
91
- case a:
91
+ case u:
92
92
  return "Fragment";
93
93
  case n:
94
94
  return "Portal";
@@ -96,7 +96,7 @@ function Rr() {
96
96
  return "Profiler";
97
97
  case i:
98
98
  return "StrictMode";
99
- case C:
99
+ case x:
100
100
  return "Suspense";
101
101
  case g:
102
102
  return "SuspenseList";
@@ -107,14 +107,14 @@ function Rr() {
107
107
  var t = e;
108
108
  return pe(t) + ".Consumer";
109
109
  case y:
110
- var o = e;
111
- return pe(o._context) + ".Provider";
110
+ var a = e;
111
+ return pe(a._context) + ".Provider";
112
112
  case l:
113
113
  return Je(e, e.render, "ForwardRef");
114
- case E:
114
+ case h:
115
115
  var c = e.displayName || null;
116
116
  return c !== null ? c : Y(e.type) || "Memo";
117
- case x: {
117
+ case w: {
118
118
  var p = e, _ = p._payload, v = p._init;
119
119
  try {
120
120
  return Y(v(_));
@@ -184,11 +184,11 @@ function Rr() {
184
184
  })
185
185
  });
186
186
  }
187
- B < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
187
+ B < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
188
  }
189
189
  }
190
190
  var oe = P.ReactCurrentDispatcher, ae;
191
- function Q(e, t, o) {
191
+ function Q(e, t, a) {
192
192
  {
193
193
  if (ae === void 0)
194
194
  try {
@@ -210,9 +210,9 @@ function Rr() {
210
210
  if (!e || ue)
211
211
  return "";
212
212
  {
213
- var o = M.get(e);
214
- if (o !== void 0)
215
- return o;
213
+ var a = M.get(e);
214
+ if (a !== void 0)
215
+ return a;
216
216
  }
217
217
  var c;
218
218
  ue = !0;
@@ -255,19 +255,19 @@ function Rr() {
255
255
  } catch (A) {
256
256
  if (A && c && typeof A.stack == "string") {
257
257
  for (var d = A.stack.split(`
258
- `), T = c.stack.split(`
259
- `), b = d.length - 1, m = T.length - 1; b >= 1 && m >= 0 && d[b] !== T[m]; )
258
+ `), C = c.stack.split(`
259
+ `), E = d.length - 1, m = C.length - 1; E >= 1 && m >= 0 && d[E] !== C[m]; )
260
260
  m--;
261
- for (; b >= 1 && m >= 0; b--, m--)
262
- if (d[b] !== T[m]) {
263
- if (b !== 1 || m !== 1)
261
+ for (; E >= 1 && m >= 0; E--, m--)
262
+ if (d[E] !== C[m]) {
263
+ if (E !== 1 || m !== 1)
264
264
  do
265
- if (b--, m--, m < 0 || d[b] !== T[m]) {
265
+ if (E--, m--, m < 0 || d[E] !== C[m]) {
266
266
  var k = `
267
- ` + d[b].replace(" at new ", " at ");
267
+ ` + d[E].replace(" at new ", " at ");
268
268
  return e.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, k), k;
269
269
  }
270
- while (b >= 1 && m >= 0);
270
+ while (E >= 1 && m >= 0);
271
271
  break;
272
272
  }
273
273
  }
@@ -277,14 +277,14 @@ function Rr() {
277
277
  var U = e ? e.displayName || e.name : "", Ie = U ? Q(U) : "";
278
278
  return typeof e == "function" && M.set(e, Ie), Ie;
279
279
  }
280
- function Ze(e, t, o) {
280
+ function Ze(e, t, a) {
281
281
  return we(e, !1);
282
282
  }
283
283
  function Qe(e) {
284
284
  var t = e.prototype;
285
285
  return !!(t && t.isReactComponent);
286
286
  }
287
- function ee(e, t, o) {
287
+ function ee(e, t, a) {
288
288
  if (e == null)
289
289
  return "";
290
290
  if (typeof e == "function")
@@ -292,7 +292,7 @@ function Rr() {
292
292
  if (typeof e == "string")
293
293
  return Q(e);
294
294
  switch (e) {
295
- case C:
295
+ case x:
296
296
  return Q("Suspense");
297
297
  case g:
298
298
  return Q("SuspenseList");
@@ -301,27 +301,27 @@ function Rr() {
301
301
  switch (e.$$typeof) {
302
302
  case l:
303
303
  return Ze(e.render);
304
- case E:
305
- return ee(e.type, t, o);
306
- case x: {
304
+ case h:
305
+ return ee(e.type, t, a);
306
+ case w: {
307
307
  var c = e, p = c._payload, _ = c._init;
308
308
  try {
309
- return ee(_(p), t, o);
309
+ return ee(_(p), t, a);
310
310
  } catch {
311
311
  }
312
312
  }
313
313
  }
314
314
  return "";
315
315
  }
316
- var re = Object.prototype.hasOwnProperty, xe = {}, Te = P.ReactDebugCurrentFrame;
316
+ var re = Object.prototype.hasOwnProperty, Te = {}, Ce = P.ReactDebugCurrentFrame;
317
317
  function te(e) {
318
318
  if (e) {
319
- var t = e._owner, o = ee(e.type, e._source, t ? t.type : null);
320
- Te.setExtraStackFrame(o);
319
+ var t = e._owner, a = ee(e.type, e._source, t ? t.type : null);
320
+ Ce.setExtraStackFrame(a);
321
321
  } else
322
- Te.setExtraStackFrame(null);
322
+ Ce.setExtraStackFrame(null);
323
323
  }
324
- function Me(e, t, o, c, p) {
324
+ function Me(e, t, a, c, p) {
325
325
  {
326
326
  var _ = Function.call.bind(re);
327
327
  for (var v in e)
@@ -329,14 +329,14 @@ function Rr() {
329
329
  var d = void 0;
330
330
  try {
331
331
  if (typeof e[v] != "function") {
332
- var T = Error((c || "React class") + ": " + o + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
333
- throw T.name = "Invariant Violation", T;
332
+ var C = Error((c || "React class") + ": " + a + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
333
+ throw C.name = "Invariant Violation", C;
334
334
  }
335
- d = e[v](t, v, c, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
- } catch (b) {
337
- d = b;
335
+ d = e[v](t, v, c, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
+ } catch (E) {
337
+ d = E;
338
338
  }
339
- d && !(d instanceof Error) && (te(p), h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", c || "React class", o, v, typeof d), te(null)), d instanceof Error && !(d.message in xe) && (xe[d.message] = !0, te(p), h("Failed %s type: %s", o, d.message), te(null));
339
+ d && !(d instanceof Error) && (te(p), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", c || "React class", a, v, typeof d), te(null)), d instanceof Error && !(d.message in Te) && (Te[d.message] = !0, te(p), b("Failed %s type: %s", a, d.message), te(null));
340
340
  }
341
341
  }
342
342
  }
@@ -346,23 +346,23 @@ function Rr() {
346
346
  }
347
347
  function rr(e) {
348
348
  {
349
- var t = typeof Symbol == "function" && Symbol.toStringTag, o = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
350
- return o;
349
+ var t = typeof Symbol == "function" && Symbol.toStringTag, a = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
350
+ return a;
351
351
  }
352
352
  }
353
353
  function tr(e) {
354
354
  try {
355
- return Ce(e), !1;
355
+ return xe(e), !1;
356
356
  } catch {
357
357
  return !0;
358
358
  }
359
359
  }
360
- function Ce(e) {
360
+ function xe(e) {
361
361
  return "" + e;
362
362
  }
363
363
  function Se(e) {
364
364
  if (tr(e))
365
- return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rr(e)), Ce(e);
365
+ return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rr(e)), xe(e);
366
366
  }
367
367
  var Pe = P.ReactCurrentOwner, nr = {
368
368
  key: !0,
@@ -391,34 +391,34 @@ function Rr() {
391
391
  }
392
392
  function ir(e, t) {
393
393
  {
394
- var o = function() {
395
- Oe || (Oe = !0, h("%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://reactjs.org/link/special-props)", t));
394
+ var a = function() {
395
+ Oe || (Oe = !0, b("%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://reactjs.org/link/special-props)", t));
396
396
  };
397
- o.isReactWarning = !0, Object.defineProperty(e, "key", {
398
- get: o,
397
+ a.isReactWarning = !0, Object.defineProperty(e, "key", {
398
+ get: a,
399
399
  configurable: !0
400
400
  });
401
401
  }
402
402
  }
403
403
  function cr(e, t) {
404
404
  {
405
- var o = function() {
406
- ke || (ke = !0, h("%s: `ref` 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://reactjs.org/link/special-props)", t));
405
+ var a = function() {
406
+ ke || (ke = !0, b("%s: `ref` 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://reactjs.org/link/special-props)", t));
407
407
  };
408
- o.isReactWarning = !0, Object.defineProperty(e, "ref", {
409
- get: o,
408
+ a.isReactWarning = !0, Object.defineProperty(e, "ref", {
409
+ get: a,
410
410
  configurable: !0
411
411
  });
412
412
  }
413
413
  }
414
- var sr = function(e, t, o, c, p, _, v) {
414
+ var sr = function(e, t, a, c, p, _, v) {
415
415
  var d = {
416
416
  // This tag allows us to uniquely identify this as a React Element
417
- $$typeof: u,
417
+ $$typeof: o,
418
418
  // Built-in properties that belong on the element
419
419
  type: e,
420
420
  key: t,
421
- ref: o,
421
+ ref: a,
422
422
  props: v,
423
423
  // Record the component responsible for creating this element.
424
424
  _owner: _
@@ -440,36 +440,36 @@ function Rr() {
440
440
  value: p
441
441
  }), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
442
442
  };
443
- function fr(e, t, o, c, p) {
443
+ function fr(e, t, a, c, p) {
444
444
  {
445
- var _, v = {}, d = null, T = null;
446
- o !== void 0 && (Se(o), d = "" + o), ar(t) && (Se(t.key), d = "" + t.key), or(t) && (T = t.ref, ur(t, p));
445
+ var _, v = {}, d = null, C = null;
446
+ a !== void 0 && (Se(a), d = "" + a), ar(t) && (Se(t.key), d = "" + t.key), or(t) && (C = t.ref, ur(t, p));
447
447
  for (_ in t)
448
448
  re.call(t, _) && !nr.hasOwnProperty(_) && (v[_] = t[_]);
449
449
  if (e && e.defaultProps) {
450
- var b = e.defaultProps;
451
- for (_ in b)
452
- v[_] === void 0 && (v[_] = b[_]);
450
+ var E = e.defaultProps;
451
+ for (_ in E)
452
+ v[_] === void 0 && (v[_] = E[_]);
453
453
  }
454
- if (d || T) {
454
+ if (d || C) {
455
455
  var m = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
- d && ir(v, m), T && cr(v, m);
456
+ d && ir(v, m), C && cr(v, m);
457
457
  }
458
- return sr(e, d, T, p, c, Pe.current, v);
458
+ return sr(e, d, C, p, c, Pe.current, v);
459
459
  }
460
460
  }
461
461
  var ce = P.ReactCurrentOwner, je = P.ReactDebugCurrentFrame;
462
462
  function W(e) {
463
463
  if (e) {
464
- var t = e._owner, o = ee(e.type, e._source, t ? t.type : null);
465
- je.setExtraStackFrame(o);
464
+ var t = e._owner, a = ee(e.type, e._source, t ? t.type : null);
465
+ je.setExtraStackFrame(a);
466
466
  } else
467
467
  je.setExtraStackFrame(null);
468
468
  }
469
469
  var se;
470
470
  se = !1;
471
471
  function fe(e) {
472
- return typeof e == "object" && e !== null && e.$$typeof === u;
472
+ return typeof e == "object" && e !== null && e.$$typeof === o;
473
473
  }
474
474
  function De() {
475
475
  {
@@ -491,10 +491,10 @@ Check the render method of \`` + e + "`.";
491
491
  {
492
492
  var t = De();
493
493
  if (!t) {
494
- var o = typeof e == "string" ? e : e.displayName || e.name;
495
- o && (t = `
494
+ var a = typeof e == "string" ? e : e.displayName || e.name;
495
+ a && (t = `
496
496
 
497
- Check the top-level render call using <` + o + ">.");
497
+ Check the top-level render call using <` + a + ">.");
498
498
  }
499
499
  return t;
500
500
  }
@@ -504,12 +504,12 @@ Check the top-level render call using <` + o + ">.");
504
504
  if (!e._store || e._store.validated || e.key != null)
505
505
  return;
506
506
  e._store.validated = !0;
507
- var o = dr(t);
508
- if (Fe[o])
507
+ var a = dr(t);
508
+ if (Fe[a])
509
509
  return;
510
- Fe[o] = !0;
510
+ Fe[a] = !0;
511
511
  var c = "";
512
- e && e._owner && e._owner !== ce.current && (c = " It was passed a child from " + Y(e._owner.type) + "."), W(e), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, c), W(null);
512
+ e && e._owner && e._owner !== ce.current && (c = " It was passed a child from " + Y(e._owner.type) + "."), W(e), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, c), W(null);
513
513
  }
514
514
  }
515
515
  function Ne(e, t) {
@@ -517,8 +517,8 @@ Check the top-level render call using <` + o + ">.");
517
517
  if (typeof e != "object")
518
518
  return;
519
519
  if (ie(e))
520
- for (var o = 0; o < e.length; o++) {
521
- var c = e[o];
520
+ for (var a = 0; a < e.length; a++) {
521
+ var c = e[a];
522
522
  fe(c) && Ae(c, t);
523
523
  }
524
524
  else if (fe(e))
@@ -536,50 +536,50 @@ Check the top-level render call using <` + o + ">.");
536
536
  var t = e.type;
537
537
  if (t == null || typeof t == "string")
538
538
  return;
539
- var o;
539
+ var a;
540
540
  if (typeof t == "function")
541
- o = t.propTypes;
541
+ a = t.propTypes;
542
542
  else if (typeof t == "object" && (t.$$typeof === l || // Note: Memo only checks outer props here.
543
543
  // Inner props are checked in the reconciler.
544
- t.$$typeof === E))
545
- o = t.propTypes;
544
+ t.$$typeof === h))
545
+ a = t.propTypes;
546
546
  else
547
547
  return;
548
- if (o) {
548
+ if (a) {
549
549
  var c = Y(t);
550
- Me(o, e.props, "prop", c, e);
550
+ Me(a, e.props, "prop", c, e);
551
551
  } else if (t.PropTypes !== void 0 && !se) {
552
552
  se = !0;
553
553
  var p = Y(t);
554
- h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
554
+ b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
555
555
  }
556
- typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
556
+ typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
557
557
  }
558
558
  }
559
559
  function pr(e) {
560
560
  {
561
- for (var t = Object.keys(e.props), o = 0; o < t.length; o++) {
562
- var c = t[o];
561
+ for (var t = Object.keys(e.props), a = 0; a < t.length; a++) {
562
+ var c = t[a];
563
563
  if (c !== "children" && c !== "key") {
564
- W(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), W(null);
564
+ W(e), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), W(null);
565
565
  break;
566
566
  }
567
567
  }
568
- e.ref !== null && (W(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
568
+ e.ref !== null && (W(e), b("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
569
569
  }
570
570
  }
571
- function Ve(e, t, o, c, p, _) {
571
+ function Ve(e, t, a, c, p, _) {
572
572
  {
573
573
  var v = Ke(e);
574
574
  if (!v) {
575
575
  var d = "";
576
576
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (d += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
577
- var T = lr();
578
- T ? d += T : d += De();
579
- var b;
580
- e === null ? b = "null" : ie(e) ? b = "array" : e !== void 0 && e.$$typeof === u ? (b = "<" + (Y(e.type) || "Unknown") + " />", d = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, d);
577
+ var C = lr();
578
+ C ? d += C : d += De();
579
+ var E;
580
+ e === null ? E = "null" : ie(e) ? E = "array" : e !== void 0 && e.$$typeof === o ? (E = "<" + (Y(e.type) || "Unknown") + " />", d = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, d);
581
581
  }
582
- var m = fr(e, t, o, p, _);
582
+ var m = fr(e, t, a, p, _);
583
583
  if (m == null)
584
584
  return m;
585
585
  if (v) {
@@ -591,21 +591,21 @@ Check the top-level render call using <` + o + ">.");
591
591
  Ne(k[U], e);
592
592
  Object.freeze && Object.freeze(k);
593
593
  } else
594
- h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
594
+ b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
595
595
  else
596
596
  Ne(k, e);
597
597
  }
598
- return e === a ? pr(m) : vr(m), m;
598
+ return e === u ? pr(m) : vr(m), m;
599
599
  }
600
600
  }
601
- function _r(e, t, o) {
602
- return Ve(e, t, o, !0);
601
+ function _r(e, t, a) {
602
+ return Ve(e, t, a, !0);
603
603
  }
604
- function gr(e, t, o) {
605
- return Ve(e, t, o, !1);
604
+ function gr(e, t, a) {
605
+ return Ve(e, t, a, !1);
606
606
  }
607
607
  var hr = gr, br = _r;
608
- K.Fragment = a, K.jsx = hr, K.jsxs = br;
608
+ K.Fragment = u, K.jsx = hr, K.jsxs = br;
609
609
  }()), K;
610
610
  }
611
611
  process.env.NODE_ENV === "production" ? le.exports = Er() : le.exports = Rr();
@@ -628,217 +628,217 @@ function mr() {
628
628
  const r = J(/* @__PURE__ */ new Map([
629
629
  ["__root__", { value: "__root__", parent: "", index: 0, isGroup: !0, ref: { current: null } }]
630
630
  ]));
631
- return [r, (a, i, s, y, f) => {
631
+ return [r, (u, i, s, y, f) => {
632
632
  var l;
633
- (l = r.current) == null || l.set(a, { value: a, parent: i, index: s, isGroup: y, ref: f });
634
- }, (a) => {
633
+ (l = r.current) == null || l.set(u, { value: u, parent: i, index: s, isGroup: y, ref: f });
634
+ }, (u) => {
635
635
  var i;
636
- (i = r.current) == null || i.delete(a);
636
+ (i = r.current) == null || i.delete(u);
637
637
  }];
638
638
  }
639
- function Be(r, u) {
639
+ function Be(r, o) {
640
640
  if (!r.current) return "";
641
- for (const [n, a] of r.current)
642
- if (a.parent == u && a.index == 0)
643
- return a.value;
641
+ for (const [n, u] of r.current)
642
+ if (u.parent == o && u.index == 0)
643
+ return u.value;
644
644
  return "";
645
645
  }
646
- function yr(r, u) {
646
+ function yr(r, o) {
647
647
  if (!r.current) return "";
648
- const n = r.current.get(u);
648
+ const n = r.current.get(o);
649
649
  if (n) {
650
- for (const [a, i] of r.current)
650
+ for (const [u, i] of r.current)
651
651
  if (i.parent == n.parent && i.index == n.index - 1)
652
652
  return i.value;
653
653
  return "";
654
654
  } else
655
655
  return "";
656
656
  }
657
- function wr(r, u) {
657
+ function wr(r, o) {
658
658
  if (!r.current) return "";
659
- const n = r.current.get(u);
659
+ const n = r.current.get(o);
660
660
  if (n) {
661
661
  if (n.index == 0)
662
662
  return n.parent;
663
663
  {
664
- let a = r.current.get(yr(r, n.value));
665
- for (; a && a.isGroup; ) {
666
- const i = r.current.get(qe(r, a.value));
664
+ let u = r.current.get(yr(r, n.value));
665
+ for (; u && u.isGroup; ) {
666
+ const i = r.current.get(qe(r, u.value));
667
667
  if (!i)
668
- return a.value;
669
- a = i;
668
+ return u.value;
669
+ u = i;
670
670
  }
671
- return a ? a.value : "";
671
+ return u ? u.value : "";
672
672
  }
673
673
  } else
674
674
  return "";
675
675
  }
676
- function xr(r, u) {
676
+ function Tr(r, o) {
677
677
  if (!r.current) return "";
678
- const n = r.current.get(u);
678
+ const n = r.current.get(o);
679
679
  if (n) {
680
- for (const [a, i] of r.current)
680
+ for (const [u, i] of r.current)
681
681
  if (i.parent == n.parent && i.index == n.index + 1)
682
682
  return i.value;
683
683
  return "";
684
684
  } else
685
685
  return "";
686
686
  }
687
- function Tr(r, u) {
687
+ function Cr(r, o) {
688
688
  if (!r.current) return "";
689
- const n = r.current.get(u);
689
+ const n = r.current.get(o);
690
690
  if (n) {
691
691
  if (n.isGroup) {
692
- const i = Be(r, u);
692
+ const i = Be(r, o);
693
693
  if (i)
694
694
  return i;
695
695
  }
696
- let a = n;
696
+ let u = n;
697
697
  for (; ; ) {
698
- const i = xr(r, a.value);
698
+ const i = Tr(r, u.value);
699
699
  if (i)
700
700
  return i;
701
701
  {
702
- const s = r.current.get(a.parent);
703
- if (!s || a.value == "__root__")
702
+ const s = r.current.get(u.parent);
703
+ if (!s || u.value == "__root__")
704
704
  return "";
705
- a = s;
705
+ u = s;
706
706
  }
707
707
  }
708
708
  } else
709
709
  return "";
710
710
  }
711
- function Cr(r) {
711
+ function xr(r) {
712
712
  if (!r.current) return "";
713
- for (const [u, n] of r.current)
713
+ for (const [o, n] of r.current)
714
714
  if (n.parent == "__root__" && n.index == 0)
715
715
  return n.value;
716
716
  return "";
717
717
  }
718
- function qe(r, u) {
718
+ function qe(r, o) {
719
719
  if (!r.current) return "";
720
720
  let n = null;
721
- for (const [a, i] of r.current)
722
- i.parent == u && (!n || i.index > n.index) && (n = i);
721
+ for (const [u, i] of r.current)
722
+ i.parent == o && (!n || i.index > n.index) && (n = i);
723
723
  return n ? n.value : "";
724
724
  }
725
725
  function Sr(r) {
726
726
  if (!r.current) return "";
727
- let u = r.current.get("__root__");
728
- for (; u && u.isGroup; ) {
729
- const n = r.current.get(qe(r, u.value));
727
+ let o = r.current.get("__root__");
728
+ for (; o && o.isGroup; ) {
729
+ const n = r.current.get(qe(r, o.value));
730
730
  if (!n)
731
- return u.value;
732
- u = n;
731
+ return o.value;
732
+ o = n;
733
733
  }
734
- return u ? u.value : "";
734
+ return o ? o.value : "";
735
735
  }
736
736
  const G = We({
737
737
  parent: "",
738
738
  depth: -1
739
739
  });
740
- function Pr(r, u, n) {
741
- const [a, i] = Ue(n), s = r !== void 0 ? r : a;
740
+ function Pr(r, o, n) {
741
+ const [u, i] = Ue(n), s = r !== void 0 ? r : u;
742
742
  return [s, (f) => {
743
743
  const l = typeof f == "function" ? f(s) : f;
744
- u && u(l), i(l);
744
+ o && o(l), i(l);
745
745
  }];
746
746
  }
747
- function z(r, u) {
748
- return function(a) {
749
- const i = a.defaultPrevented;
750
- i && (a.defaultPrevented = !1), r == null || r(a);
747
+ function z(r, o) {
748
+ return function(u) {
749
+ const i = u.defaultPrevented;
750
+ i && (u.defaultPrevented = !1), r == null || r(u);
751
751
  let s;
752
- return a.defaultPrevented || (s = u == null ? void 0 : u(a), i && (a.defaultPrevented = !0)), s;
752
+ return u.defaultPrevented || (s = o == null ? void 0 : o(u), i && (u.defaultPrevented = !0)), s;
753
753
  };
754
754
  }
755
755
  function de(...r) {
756
- return Ge((u) => {
756
+ return Ge((o) => {
757
757
  for (const n of r)
758
- typeof n == "function" ? n(u) : n != null && (n.current = u);
758
+ typeof n == "function" ? n(o) : n != null && (n.current = o);
759
759
  }, [r]);
760
760
  }
761
761
  const Or = ["ArrowRight", "ArrowUp", "ArrowLeft", "ArrowDown", "Home", "End", "Enter"];
762
- function kr(r, u) {
763
- var a, i, s;
764
- const n = Be(r, u);
765
- n && ((s = (i = (a = r.current) == null ? void 0 : a.get(n)) == null ? void 0 : i.ref.current) == null || s.focus());
762
+ function kr(r, o) {
763
+ var u, i, s;
764
+ const n = Be(r, o);
765
+ n && ((s = (i = (u = r.current) == null ? void 0 : u.get(n)) == null ? void 0 : i.ref.current) == null || s.focus());
766
766
  }
767
- function jr(r, u) {
768
- var a, i, s, y, f;
769
- const n = (i = (a = r.current) == null ? void 0 : a.get(u)) == null ? void 0 : i.parent;
767
+ function jr(r, o) {
768
+ var u, i, s, y, f;
769
+ const n = (i = (u = r.current) == null ? void 0 : u.get(o)) == null ? void 0 : i.parent;
770
770
  n && n != "__root__" && ((f = (y = (s = r.current) == null ? void 0 : s.get(n)) == null ? void 0 : y.ref.current) == null || f.focus());
771
771
  }
772
- function Dr(r, u) {
773
- var a, i, s;
774
- const n = wr(r, u);
775
- n && n != "__root__" && ((s = (i = (a = r.current) == null ? void 0 : a.get(n)) == null ? void 0 : i.ref.current) == null || s.focus());
772
+ function Dr(r, o) {
773
+ var u, i, s;
774
+ const n = wr(r, o);
775
+ n && n != "__root__" && ((s = (i = (u = r.current) == null ? void 0 : u.get(n)) == null ? void 0 : i.ref.current) == null || s.focus());
776
776
  }
777
- function Fr(r, u) {
778
- var a, i, s;
779
- const n = Tr(r, u);
780
- n && n != "__root__" && ((s = (i = (a = r.current) == null ? void 0 : a.get(n)) == null ? void 0 : i.ref.current) == null || s.focus());
777
+ function Fr(r, o) {
778
+ var u, i, s;
779
+ const n = Cr(r, o);
780
+ n && n != "__root__" && ((s = (i = (u = r.current) == null ? void 0 : u.get(n)) == null ? void 0 : i.ref.current) == null || s.focus());
781
781
  }
782
782
  function Ar(r) {
783
- var n, a, i;
784
- const u = Cr(r);
785
- u && u != "__root__" && ((i = (a = (n = r.current) == null ? void 0 : n.get(u)) == null ? void 0 : a.ref.current) == null || i.focus());
783
+ var n, u, i;
784
+ const o = xr(r);
785
+ o && o != "__root__" && ((i = (u = (n = r.current) == null ? void 0 : n.get(o)) == null ? void 0 : u.ref.current) == null || i.focus());
786
786
  }
787
787
  function Nr(r) {
788
- var n, a, i;
789
- const u = Sr(r);
790
- u && u != "__root__" && ((i = (a = (n = r.current) == null ? void 0 : n.get(u)) == null ? void 0 : a.ref.current) == null || i.focus());
788
+ var n, u, i;
789
+ const o = Sr(r);
790
+ o && o != "__root__" && ((i = (u = (n = r.current) == null ? void 0 : n.get(o)) == null ? void 0 : u.ref.current) == null || i.focus());
791
791
  }
792
- const Vr = H(({ value: r, onValueChange: u, defaultValue: n, defaultSelection: a, onKeyDown: i, ...s }, y) => {
793
- const [f, l, C] = mr(), [g, E] = Pr(r, u, n ?? /* @__PURE__ */ new Set()), [x, S] = Ue(""), j = J(null), $ = de(j, y), R = J(""), P = Ge((w) => {
792
+ const Vr = H(({ value: r, onValueChange: o, defaultValue: n, defaultSelection: u, onKeyDown: i, ...s }, y) => {
793
+ const [f, l, x] = mr(), [g, h] = Pr(r, o, n ?? /* @__PURE__ */ new Set()), [w, S] = Ue(""), j = J(null), $ = de(j, y), R = J(""), P = Ge((T) => {
794
794
  var F;
795
- if (!(!Or.includes(w.key) || !f))
796
- switch (w.key) {
795
+ if (!(!Or.includes(T.key) || !f))
796
+ switch (T.key) {
797
797
  case "ArrowRight":
798
798
  const D = (F = f.current) == null ? void 0 : F.get(R.current);
799
799
  if (!D || !D.isGroup) break;
800
- w.preventDefault(), g.has(R.current) ? kr(f, R.current) : E((O) => /* @__PURE__ */ new Set([...O, R.current]));
800
+ T.preventDefault(), g.has(R.current) ? kr(f, R.current) : h((O) => /* @__PURE__ */ new Set([...O, R.current]));
801
801
  break;
802
802
  case "ArrowLeft":
803
- w.preventDefault(), g.has(R.current) ? E((O) => new Set([...O].filter((N) => N !== R.current))) : jr(f, R.current);
803
+ T.preventDefault(), g.has(R.current) ? h((O) => new Set([...O].filter((N) => N !== R.current))) : jr(f, R.current);
804
804
  break;
805
805
  case "ArrowUp":
806
- w.preventDefault(), Dr(f, R.current);
806
+ T.preventDefault(), Dr(f, R.current);
807
807
  break;
808
808
  case "ArrowDown":
809
- w.preventDefault(), Fr(f, R.current);
809
+ T.preventDefault(), Fr(f, R.current);
810
810
  break;
811
811
  case "Home":
812
- w.preventDefault(), Ar(f);
812
+ T.preventDefault(), Ar(f);
813
813
  break;
814
814
  case "End":
815
- w.preventDefault(), Nr(f);
815
+ T.preventDefault(), Nr(f);
816
816
  break;
817
817
  case "Enter":
818
- w.preventDefault(), S(R.current), g.has(R.current) ? E((O) => new Set([...O].filter((N) => N !== R.current))) : E((O) => /* @__PURE__ */ new Set([...O, R.current]));
818
+ T.preventDefault(), S(R.current), g.has(R.current) ? h((O) => new Set([...O].filter((N) => N !== R.current))) : h((O) => /* @__PURE__ */ new Set([...O, R.current]));
819
819
  break;
820
820
  }
821
- }, [g]), h = z(i, P);
822
- return /* @__PURE__ */ V.jsx(X.Provider, { value: { rootValue: g, setRootValue: E, selection: x, setSelection: S, focus: R, nodeMap: f, registerNode: l, removeNode: C }, children: /* @__PURE__ */ V.jsx(G.Provider, { value: { parent: "__root__", depth: 0 }, children: /* @__PURE__ */ V.jsx(
821
+ }, [g]), b = z(i, P);
822
+ return /* @__PURE__ */ V.jsx(X.Provider, { value: { rootValue: g, setRootValue: h, selection: w, setSelection: S, focus: R, nodeMap: f, registerNode: l, removeNode: x }, children: /* @__PURE__ */ V.jsx(G.Provider, { value: { parent: "__root__", depth: 0 }, children: /* @__PURE__ */ V.jsx(
823
823
  "ul",
824
824
  {
825
825
  ref: $,
826
826
  role: "tree",
827
827
  "aria-multiselectable": "false",
828
- onKeyDown: h,
828
+ onKeyDown: b,
829
829
  ...s
830
830
  }
831
831
  ) }) });
832
- }), Ir = H(({ value: r, index: u, onFocus: n, onClick: a, ...i }, s) => {
833
- const { selection: y, setSelection: f, focus: l, nodeMap: C, registerNode: g, removeNode: E } = I(X), { parent: x, depth: S } = I(G), j = J(null), $ = de(j, s), R = z(n, h), P = z(a, w);
834
- function h(F) {
832
+ }), Ir = H(({ value: r, index: o, onFocus: n, onClick: u, ...i }, s) => {
833
+ const { selection: y, setSelection: f, focus: l, nodeMap: x, registerNode: g, removeNode: h } = I(X), { parent: w, depth: S } = I(G), j = J(null), $ = de(j, s), R = z(n, b), P = z(u, T);
834
+ function b(F) {
835
835
  var D, O, N, Z;
836
- (N = (O = (D = C.current) == null ? void 0 : D.get(l.current)) == null ? void 0 : O.ref.current) == null || N.setAttribute("tabindex", "-1"), (Z = j.current) == null || Z.setAttribute("tabindex", "0"), l.current = r, F.stopPropagation();
836
+ (N = (O = (D = x.current) == null ? void 0 : D.get(l.current)) == null ? void 0 : O.ref.current) == null || N.setAttribute("tabindex", "-1"), (Z = j.current) == null || Z.setAttribute("tabindex", "0"), l.current = r, F.stopPropagation();
837
837
  }
838
- function w() {
838
+ function T() {
839
839
  f(r);
840
840
  }
841
- return l.current == "" && x == "__root__" && u == 0 && (l.current = r), ne(() => (g(r, x, u, !1, j), () => E(r)), []), ne(() => () => {
841
+ return l.current == "" && w == "__root__" && o == 0 && (l.current = r), ne(() => (g(r, w, o, !1, j), () => h(r)), [r, w, o]), ne(() => () => {
842
842
  l.current == r && (l.current = "");
843
843
  }, []), /* @__PURE__ */ V.jsx(
844
844
  "li",
@@ -853,48 +853,48 @@ const Vr = H(({ value: r, onValueChange: u, defaultValue: n, defaultSelection: a
853
853
  ...i
854
854
  }
855
855
  );
856
- }), $r = H(({ value: r, index: u, onFocus: n, ...a }, i) => {
857
- const { rootValue: s, selection: y, focus: f, nodeMap: l, registerNode: C, removeNode: g } = I(X), { parent: E, depth: x } = I(G), S = J(null), j = de(S, i), $ = z(n, R);
856
+ }), $r = H(({ value: r, index: o, onFocus: n, ...u }, i) => {
857
+ const { rootValue: s, selection: y, focus: f, nodeMap: l, registerNode: x, removeNode: g } = I(X), { parent: h, depth: w } = I(G), S = J(null), j = de(S, i), $ = z(n, R);
858
858
  function R(P) {
859
- var h, w, F, D;
860
- (F = (w = (h = l.current) == null ? void 0 : h.get(f.current)) == null ? void 0 : w.ref.current) == null || F.setAttribute("tabindex", "-1"), (D = S.current) == null || D.setAttribute("tabindex", "0"), f.current = r, P.stopPropagation();
859
+ var b, T, F, D;
860
+ (F = (T = (b = l.current) == null ? void 0 : b.get(f.current)) == null ? void 0 : T.ref.current) == null || F.setAttribute("tabindex", "-1"), (D = S.current) == null || D.setAttribute("tabindex", "0"), f.current = r, P.stopPropagation();
861
861
  }
862
- return f.current == "" && E == "__root__" && u == 0 && (f.current = r), ne(() => (C(r, E, u, !0, S), () => g(r)), []), ne(() => () => {
862
+ return f.current == "" && h == "__root__" && o == 0 && (f.current = r), ne(() => (x(r, h, o, !0, S), () => g(r)), [r, h, o]), ne(() => () => {
863
863
  f.current == r && (f.current = "");
864
- }, []), /* @__PURE__ */ V.jsx(G.Provider, { value: { parent: r, depth: x + 1 }, children: /* @__PURE__ */ V.jsx(
864
+ }, []), /* @__PURE__ */ V.jsx(G.Provider, { value: { parent: r, depth: w + 1 }, children: /* @__PURE__ */ V.jsx(
865
865
  "li",
866
866
  {
867
867
  ref: j,
868
868
  role: "treeitem",
869
869
  "data-state": s.has(r) ? "open" : "closed",
870
- "data-depth": x,
870
+ "data-depth": w,
871
871
  "aria-expanded": s.has(r),
872
872
  "aria-selected": y == r,
873
873
  tabIndex: f.current == r ? 0 : -1,
874
874
  onFocus: $,
875
- ...a
875
+ ...u
876
876
  }
877
877
  ) });
878
- }), Yr = H(({ onClick: r, ...u }, n) => {
879
- const { setRootValue: a, setSelection: i } = I(X), { parent: s } = I(G), y = z(r, f);
878
+ }), Yr = H(({ onClick: r, ...o }, n) => {
879
+ const { setRootValue: u, setSelection: i } = I(X), { parent: s } = I(G), y = z(r, f);
880
880
  function f() {
881
- i(s), a((l) => l.has(s) ? new Set([...l].filter((C) => C !== s)) : /* @__PURE__ */ new Set([...l, s]));
881
+ i(s), u((l) => l.has(s) ? new Set([...l].filter((x) => x !== s)) : /* @__PURE__ */ new Set([...l, s]));
882
882
  }
883
883
  return /* @__PURE__ */ V.jsx(
884
884
  "div",
885
885
  {
886
886
  ref: n,
887
887
  onClick: y,
888
- ...u
888
+ ...o
889
889
  }
890
890
  );
891
- }), Lr = H(({ ...r }, u) => {
892
- const { rootValue: n } = I(X), { parent: a } = I(G);
893
- if (n.has(a))
891
+ }), Lr = H(({ ...r }, o) => {
892
+ const { rootValue: n } = I(X), { parent: u } = I(G);
893
+ if (n.has(u))
894
894
  return /* @__PURE__ */ V.jsx(
895
895
  "ul",
896
896
  {
897
- ref: u,
897
+ ref: o,
898
898
  role: "group",
899
899
  ...r
900
900
  }