@synnaxlabs/pluto 0.36.1 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/dist/{Animated-BAoBw9cC.cjs → Animated-BOjwPkTJ.cjs} +1 -1
  2. package/dist/{Animated-DkZIfEYP.js → Animated-ByIJT_wA.js} +2 -2
  3. package/dist/{Item-BjErngVu.cjs → Item-Bamd13Tl.cjs} +1 -1
  4. package/dist/{Item-C7Q_zqsK.js → Item-CQ2ZuDfi.js} +8 -8
  5. package/dist/{LinePlot-Cyj5fPvs.js → LinePlot-Ci-61YDW.js} +111 -108
  6. package/dist/LinePlot-D4V1ltNT.cjs +24 -0
  7. package/dist/{Link-DIP4E5h4.cjs → Link-Cm6yn4zC.cjs} +1 -1
  8. package/dist/{Link-DkPbZ9Vw.js → Link-ZlOdu4jA.js} +1 -1
  9. package/dist/{Pack-ClLR2ywa.cjs → Pack-CyaEXvnu.cjs} +1 -1
  10. package/dist/{Pack-D8EcIVa2.js → Pack-DNCFnyuR.js} +1 -1
  11. package/dist/{Toggle-CZlnDV1Y.js → Toggle-DlYB4nmh.js} +10838 -10799
  12. package/dist/{Toggle-Dwz8HiqJ.cjs → Toggle-vgmhy8wZ.cjs} +56 -56
  13. package/dist/{Video-xr1Ey5qV.cjs → Video-g30B90s-.cjs} +1 -1
  14. package/dist/{Video-CI9sBV9l.js → Video-jaT7Y97L.js} +1 -1
  15. package/dist/{aggregator-D6gAHK4j.js → aggregator-CWsCIyed.js} +1276 -1258
  16. package/dist/aggregator-DX8ts24k.cjs +77 -0
  17. package/dist/align.cjs +1 -1
  18. package/dist/align.js +1 -1
  19. package/dist/button.cjs +1 -1
  20. package/dist/button.js +1 -1
  21. package/dist/color.cjs +1 -1
  22. package/dist/color.js +1 -1
  23. package/dist/css-Bo-hsQHb.cjs +1 -0
  24. package/dist/{css-DnIb4t_E.js → css-Csw1Dn4s.js} +449 -446
  25. package/dist/css.cjs +1 -1
  26. package/dist/css.js +2 -2
  27. package/dist/dropdown.cjs +1 -1
  28. package/dist/dropdown.js +1 -1
  29. package/dist/ether.cjs +1 -1
  30. package/dist/ether.js +5 -5
  31. package/dist/{external-CetHCRLx.js → external-2PznkZYs.js} +36 -36
  32. package/dist/{external-BxiJID8F.js → external-4ikhWnyq.js} +2 -2
  33. package/dist/{external-CIm5lpCQ.cjs → external-BS9Bfsj3.cjs} +1 -1
  34. package/dist/{external-wgG3P6Dp.js → external-BTnFzhMM.js} +1 -1
  35. package/dist/{external-BeoanEV1.js → external-BpeQ9rNJ.js} +144 -133
  36. package/dist/external-Bt_kX5KM.cjs +1 -0
  37. package/dist/{external-C-tizEE4.js → external-CEcxrva2.js} +5 -5
  38. package/dist/{external-AQutxNrw.cjs → external-CMEDU76u.cjs} +1 -1
  39. package/dist/{external-Lmd8cJhx.cjs → external-CWincA61.cjs} +1 -1
  40. package/dist/{external-Czhk9fZS.cjs → external-C_th4MW9.cjs} +1 -1
  41. package/dist/{external-BX17kwZc.cjs → external-CyPQsB1T.cjs} +1 -1
  42. package/dist/{external-BpqHq8f8.js → external-CyYaJ5TW.js} +4 -4
  43. package/dist/{external-6FH5NjXf.js → external-DIwKYTmY.js} +2 -2
  44. package/dist/{external-feiUnuJI.js → external-DXD4PtTK.js} +2 -2
  45. package/dist/{external-xPdBJlsz.js → external-Dn4tpDVi.js} +2 -2
  46. package/dist/{external-CXQMoMS3.cjs → external-DsJYjdNk.cjs} +1 -1
  47. package/dist/{external-bByVUOOg.cjs → external-Dtr4ZxR6.cjs} +1 -1
  48. package/dist/{external-8w5Eg-ce.cjs → external-IztUjYjX.cjs} +1 -1
  49. package/dist/{external-DAn-_GLc.cjs → external-VEFOprRU.cjs} +1 -1
  50. package/dist/{external-CFaZ_vCi.js → external-WZW4OBZx.js} +4 -4
  51. package/dist/{external-Cy8UF9vk.cjs → external-kAduhcvp.cjs} +1 -1
  52. package/dist/{external-BDzzt6lF.js → external-rGv5AzBK.js} +12 -12
  53. package/dist/{external-DlCfhkx8.cjs → external-vMTeF1dc.cjs} +1 -1
  54. package/dist/{external-Ckaptp3S.js → external-vYsKqfFS.js} +4 -4
  55. package/dist/header.cjs +1 -1
  56. package/dist/header.js +1 -1
  57. package/dist/index.cjs +7 -7
  58. package/dist/index.js +9767 -7504
  59. package/dist/input.cjs +1 -1
  60. package/dist/input.js +1 -1
  61. package/dist/list.cjs +1 -1
  62. package/dist/list.js +1 -1
  63. package/dist/menu.cjs +1 -1
  64. package/dist/menu.js +1 -1
  65. package/dist/pluto.css +1 -1
  66. package/dist/src/breadcrumb/Breadcrumb.d.ts +2 -1
  67. package/dist/src/breadcrumb/Breadcrumb.d.ts.map +1 -1
  68. package/dist/src/breadcrumb/Breadcrumb.spec.d.ts +2 -0
  69. package/dist/src/breadcrumb/Breadcrumb.spec.d.ts.map +1 -0
  70. package/dist/src/color/core/color.d.ts +4 -0
  71. package/dist/src/color/core/color.d.ts.map +1 -1
  72. package/dist/src/haul/Haul.d.ts.map +1 -1
  73. package/dist/src/index.d.ts +1 -0
  74. package/dist/src/index.d.ts.map +1 -1
  75. package/dist/src/input/DateTime.d.ts.map +1 -1
  76. package/dist/src/input/Numeric.d.ts.map +1 -1
  77. package/dist/src/input/Text.d.ts +1 -0
  78. package/dist/src/input/Text.d.ts.map +1 -1
  79. package/dist/src/modal/Modal.d.ts.map +1 -1
  80. package/dist/src/pluto/Pluto.d.ts +1 -4
  81. package/dist/src/pluto/Pluto.d.ts.map +1 -1
  82. package/dist/src/select/ComponentSize.d.ts +12 -0
  83. package/dist/src/select/ComponentSize.d.ts.map +1 -0
  84. package/dist/src/select/DataType.d.ts +3 -2
  85. package/dist/src/select/DataType.d.ts.map +1 -1
  86. package/dist/src/select/external.d.ts +1 -0
  87. package/dist/src/select/external.d.ts.map +1 -1
  88. package/dist/src/table/aether/Table.d.ts.map +1 -1
  89. package/dist/src/table/cells/Cells.d.ts.map +1 -1
  90. package/dist/src/telem/control/aether/controller.d.ts.map +1 -1
  91. package/dist/src/text/Editable.d.ts +2 -1
  92. package/dist/src/text/Editable.d.ts.map +1 -1
  93. package/dist/src/text/Keyboard.d.ts.map +1 -1
  94. package/dist/src/theming/Provider.d.ts.map +1 -1
  95. package/dist/src/tree/Tree.d.ts +2 -2
  96. package/dist/src/tree/Tree.d.ts.map +1 -1
  97. package/dist/src/tree/core.d.ts +5 -2
  98. package/dist/src/tree/core.d.ts.map +1 -1
  99. package/dist/src/util/canDisable.d.ts +10 -0
  100. package/dist/src/util/canDisable.d.ts.map +1 -0
  101. package/dist/src/util/removeProps.d.ts +26 -0
  102. package/dist/src/util/removeProps.d.ts.map +1 -0
  103. package/dist/src/util/removeProps.spec.d.ts +2 -0
  104. package/dist/src/util/removeProps.spec.d.ts.map +1 -0
  105. package/dist/src/vis/canvas/aether/canvas.d.ts +4 -4
  106. package/dist/src/vis/lineplot/aether/LinePlot.d.ts.map +1 -1
  107. package/dist/src/vis/rule/aether/aether.d.ts.map +1 -1
  108. package/dist/src/vis/schematic/Forms.d.ts +9 -2
  109. package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
  110. package/dist/src/vis/schematic/SelectOrientation.d.ts +3 -3
  111. package/dist/src/vis/schematic/SelectOrientation.d.ts.map +1 -1
  112. package/dist/src/vis/schematic/Symbols.d.ts +183 -3
  113. package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
  114. package/dist/src/vis/schematic/primitives/Primitives.d.ts +115 -6
  115. package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
  116. package/dist/src/vis/schematic/registry.d.ts +1 -1
  117. package/dist/src/vis/schematic/registry.d.ts.map +1 -1
  118. package/dist/src/vis/setpoint/aether/setpoint.d.ts +1 -1
  119. package/dist/src/vis/setpoint/aether/setpoint.d.ts.map +1 -1
  120. package/dist/src/vis/value/aether/value.d.ts.map +1 -1
  121. package/dist/tabs.cjs +1 -1
  122. package/dist/tabs.js +1 -1
  123. package/dist/text.cjs +1 -1
  124. package/dist/text.js +2 -2
  125. package/dist/theming.cjs +1 -1
  126. package/dist/theming.js +2 -2
  127. package/dist/tree.cjs +1 -1
  128. package/dist/tree.js +1 -1
  129. package/dist/triggers.cjs +1 -1
  130. package/dist/triggers.js +1 -1
  131. package/dist/{units-CKQQRvyD.js → units-CJ76Jzvw.js} +1 -1
  132. package/dist/{units-YvMXZR11.cjs → units-CXFC0OLO.cjs} +1 -1
  133. package/dist/video.cjs +1 -1
  134. package/dist/video.js +1 -1
  135. package/package.json +13 -13
  136. package/dist/LinePlot-CFpCtIU5.cjs +0 -24
  137. package/dist/aggregator-q3hNa4qv.cjs +0 -77
  138. package/dist/css-C3zWKgOb.cjs +0 -1
  139. package/dist/external-DtsEr2ls.cjs +0 -1
@@ -1,165 +1,165 @@
1
- import { F as re, A as k, u as ae, n as se } from "./aggregator-D6gAHK4j.js";
1
+ import { F as re, A as k, u as se, n as le } from "./aggregator-CWsCIyed.js";
2
2
  import { j as N } from "./jsx-runtime-Dx-03ztt.js";
3
- import { a6 as le, a7 as oe, x as ie, a8 as ce, d as de, C as fe, a9 as ue, aa as he, ab as pe, a5 as me, B as ge, ac as Y, ad as xe, ae as ye, af as Ce, ag as Ee, ah as Ne } from "./Toggle-CZlnDV1Y.js";
4
- import { memo as be, useState as Te, useCallback as b, useMemo as ve } from "react";
5
- import { L as _e } from "./Link-DkPbZ9Vw.js";
6
- import { A as Ie } from "./Animated-DkZIfEYP.js";
7
- import { C as h } from "./css-DnIb4t_E.js";
8
- import "./Pack-D8EcIVa2.js";
9
- const z = (e, t) => t.includes(e.key), H = (e, t) => {
10
- t && e.sort((n, a) => re.stringsWithNumbers(n.name, a.name));
11
- let r = !1;
3
+ import { a6 as oe, a7 as ie, w as ce, a8 as de, d as fe, C as ue, a9 as he, aa as pe, ab as me, a5 as ge, B as xe, ac as Y, ad as ye, ae as Ce, af as Ee, ag as Ne, ah as be } from "./Toggle-DlYB4nmh.js";
4
+ import { memo as Te, useState as ve, useCallback as b, useMemo as we } from "react";
5
+ import { L as Se } from "./Link-ZlOdu4jA.js";
6
+ import { A as _e } from "./Animated-ByIJT_wA.js";
7
+ import { C as h } from "./css-Csw1Dn4s.js";
8
+ import "./Pack-DNCFnyuR.js";
9
+ const z = (e, t) => t.includes(e.key), V = (e, t) => re.stringsWithNumbers(e.name, t.name), H = (e, t = V) => {
10
+ typeof t == "function" && e.sort(t);
11
+ let a = !1;
12
12
  for (let n = 0; n < e.length; n++) {
13
- const a = e[n];
14
- a.forcePosition != null && n !== a.forcePosition && (r = !0, e.splice(n, 1), e.splice(a.forcePosition, 0, a));
13
+ const r = e[n];
14
+ r.forcePosition != null && n !== r.forcePosition && (a = !0, e.splice(n, 1), e.splice(r.forcePosition, 0, r));
15
15
  }
16
- return r ? H(e, !1) : e;
16
+ return a ? H(e, !1) : e;
17
17
  }, K = ({
18
18
  nodes: e,
19
19
  expanded: t,
20
- depth: r = 0,
21
- sort: n = !0,
22
- path: a = ""
20
+ depth: a = 0,
21
+ sort: n,
22
+ path: r = ""
23
23
  }) => {
24
- r === 0 && n && (e = e.sort((l, i) => l.name.localeCompare(i.name)));
24
+ a === 0 && n != !1 && (e = e.sort((l, i) => l.name.localeCompare(i.name)));
25
25
  const s = [];
26
26
  return e.forEach((l, i) => {
27
- const o = `${a}${l.key}/`, u = z(l, t);
28
- s.push({ ...l, depth: r, expanded: u, index: i, path: o }), u && l.children != null && (l.children = H(l.children, n), s.push(
27
+ const o = `${r}${l.key}/`, u = z(l, t);
28
+ s.push({ ...l, depth: a, expanded: u, index: i, path: o }), u && l.children != null && (l.children = H(l.children, n), s.push(
29
29
  ...K({
30
30
  nodes: l.children,
31
31
  expanded: t,
32
- depth: r + 1,
32
+ depth: a + 1,
33
33
  sort: n,
34
34
  path: o
35
35
  })
36
36
  ));
37
37
  }), s;
38
- }, Se = ({ tree: e, destination: t, keys: r }) => (r = k(r), r.forEach((n) => {
39
- const a = T({ tree: e, key: n });
40
- a != null && (V({ tree: e, keys: n }), q({ tree: e, destination: t, additions: a }));
41
- }), e), V = ({ tree: e, keys: t }) => {
38
+ }, Ie = ({ tree: e, destination: t, keys: a }) => (a = k(a), a.forEach((n) => {
39
+ const r = T({ tree: e, key: n });
40
+ r != null && (q({ tree: e, keys: n }), J({ tree: e, destination: t, additions: r }));
41
+ }), e), q = ({ tree: e, keys: t }) => {
42
42
  t = k(t);
43
- const r = e.map((n) => n.key);
43
+ const a = e.map((n) => n.key);
44
44
  return t.forEach((n) => {
45
45
  var s;
46
- const a = r.indexOf(n);
47
- if (a !== -1) e.splice(a, 1);
46
+ const r = a.indexOf(n);
47
+ if (r !== -1) e.splice(r, 1);
48
48
  else {
49
49
  const l = R({ tree: e, key: n });
50
50
  l != null && (l.children = (s = l.children) == null ? void 0 : s.filter((i) => i.key !== n));
51
51
  }
52
52
  }), e;
53
- }, q = ({ tree: e, destination: t, additions: r }) => {
54
- r = k(r);
53
+ }, J = ({ tree: e, destination: t, additions: a }) => {
54
+ a = k(a);
55
55
  const n = T({ tree: e, key: t });
56
56
  if (n == null) throw new Error(`Could not find node with key ${t}`);
57
57
  n.children ?? (n.children = []);
58
- const a = r.map((s) => s.key);
58
+ const r = a.map((s) => s.key);
59
59
  return n.children = [
60
- ...r,
61
- ...n.children.filter((s) => !a.includes(s.key))
60
+ ...a,
61
+ ...n.children.filter((s) => !r.includes(s.key))
62
62
  ], e;
63
- }, we = ({
63
+ }, $e = ({
64
64
  tree: e,
65
65
  key: t,
66
- updater: r,
66
+ updater: a,
67
67
  throwOnMissing: n = !0
68
68
  }) => {
69
69
  var l, i;
70
- const a = T({ tree: e, key: t });
71
- if (a == null) {
70
+ const r = T({ tree: e, key: t });
71
+ if (r == null) {
72
72
  if (n) throw new Error(`Could not find node with key ${t}`);
73
73
  return e;
74
74
  }
75
75
  const s = R({ tree: e, key: t });
76
76
  if (s != null) {
77
77
  const o = (l = s.children) == null ? void 0 : l.findIndex((u) => u.key === t);
78
- o != null && o !== -1 && ((i = s.children) == null || i.splice(o, 1, r(a)));
78
+ o != null && o !== -1 && ((i = s.children) == null || i.splice(o, 1, a(r)));
79
79
  } else
80
80
  e.splice(
81
81
  e.findIndex((o) => o.key === t),
82
82
  1,
83
- r(a)
83
+ a(r)
84
84
  );
85
85
  return e;
86
- }, $e = ({
86
+ }, je = ({
87
87
  tree: e,
88
88
  parent: t,
89
- updater: r,
89
+ updater: a,
90
90
  throwOnMissing: n = !0
91
91
  }) => {
92
- const a = T({ tree: e, key: t });
93
- if (a == null) {
92
+ const r = T({ tree: e, key: t });
93
+ if (r == null) {
94
94
  if (n) throw new Error(`Could not find node with key ${t}`);
95
95
  return e;
96
96
  }
97
- return a.children = r(a.children ?? []), e;
97
+ return r.children = a(r.children ?? []), e;
98
98
  }, T = ({
99
99
  tree: e,
100
100
  key: t,
101
- depth: r = 0
101
+ depth: a = 0
102
102
  }) => {
103
103
  for (let n = 0; n < e.length; n++) {
104
- const a = e[n];
105
- if (a.key === t) {
106
- const s = a;
107
- return s.depth = r, s.position = n, s;
104
+ const r = e[n];
105
+ if (r.key === t) {
106
+ const s = r;
107
+ return s.depth = a, s.position = n, s;
108
108
  }
109
- if (a.children != null) {
110
- const s = T({ tree: a.children, key: t, depth: r + 1 });
109
+ if (r.children != null) {
110
+ const s = T({ tree: r.children, key: t, depth: a + 1 });
111
111
  if (s != null) return s;
112
112
  }
113
113
  }
114
114
  return null;
115
- }, je = ({ tree: e, keys: t }) => {
116
- const r = [];
115
+ }, Le = ({ tree: e, keys: t }) => {
116
+ const a = [];
117
117
  for (const n of t) {
118
- const a = T({ tree: e, key: n });
119
- a != null && r.push(a);
118
+ const r = T({ tree: e, key: n });
119
+ r != null && a.push(r);
120
120
  }
121
- return r;
121
+ return a;
122
122
  }, R = ({ tree: e, key: t }) => {
123
- for (const r of e)
124
- if (r.children != null) {
125
- if (r.children.some((a) => a.key === t)) return r;
126
- const n = R({ tree: r.children, key: t });
123
+ for (const a of e)
124
+ if (a.children != null) {
125
+ if (a.children.some((r) => r.key === t)) return a;
126
+ const n = R({ tree: a.children, key: t });
127
127
  if (n != null) return n;
128
128
  }
129
129
  return null;
130
- }, J = (e) => e.map((t) => ({ ...t, children: J(t.children ?? []) })), Q = (...e) => {
130
+ }, Q = (e) => e.map((t) => ({ ...t, children: Q(t.children ?? []) })), Z = (...e) => {
131
131
  const t = [];
132
- return e.forEach((r) => {
133
- t.push(r), r.children != null && t.push(...Q(...r.children));
132
+ return e.forEach((a) => {
133
+ t.push(a), a.children != null && t.push(...Z(...a.children));
134
134
  }), t;
135
- }, M = "tree-item", Le = [["Shift"]], Pe = (e) => {
135
+ }, M = "tree-item", Pe = [["Shift"]], Re = (e) => {
136
136
  const {
137
137
  onExpand: t,
138
- nodes: r,
138
+ nodes: a,
139
139
  initialExpanded: n = [],
140
- sort: a = !0,
140
+ sort: r,
141
141
  selected: s,
142
142
  onSelectedChange: l
143
- } = e ?? {}, [i, o, u] = he(n), [c, v] = ae({
143
+ } = e ?? {}, [i, o, u] = pe(n), [c, v] = se({
144
144
  initial: [],
145
145
  value: s,
146
146
  onChange: l
147
- }), _ = ve(
148
- () => K({ nodes: r, expanded: i, sort: a }),
149
- [r, i, a]
150
- ), I = pe(_), $ = me({ triggers: Le }), P = b(
147
+ }), w = we(
148
+ () => K({ nodes: a, expanded: i, sort: r }),
149
+ [a, i, r]
150
+ ), S = me(w), $ = ge({ triggers: Pe }), P = b(
151
151
  (f, { clicked: d }) => {
152
152
  v(f);
153
- const x = I.current.find((E) => E.key === d);
153
+ const x = S.current.find((E) => E.key === d);
154
154
  if ((x == null ? void 0 : x.hasChildren) === !1 || d == null || $.current.held) return;
155
- const y = u.current, w = y.some((E) => E === d) ? "contract" : "expand";
155
+ const y = u.current, I = y.some((E) => E === d) ? "contract" : "expand";
156
156
  let C;
157
- w === "contract" ? C = y.filter((E) => E !== d) : C = [...y, d], o(C), t == null || t({ current: C, action: w, clicked: d });
157
+ I === "contract" ? C = y.filter((E) => E !== d) : C = [...y, d], o(C), t == null || t({ current: C, action: I, clicked: d });
158
158
  },
159
- [t, I, o, v]
159
+ [t, S, o, v]
160
160
  ), p = b(
161
161
  (f) => {
162
- o((d) => se([...d, f])), t == null || t({ current: i, action: "expand", clicked: f });
162
+ o((d) => le([...d, f])), t == null || t({ current: i, action: "expand", clicked: f });
163
163
  },
164
164
  [o]
165
165
  ), j = b(
@@ -167,23 +167,23 @@ const z = (e, t) => t.includes(e.key), H = (e, t) => {
167
167
  o((d) => d.filter((x) => x !== f)), t == null || t({ current: i, action: "contract", clicked: f });
168
168
  },
169
169
  [o]
170
- ), S = b(() => o([]), [o]);
170
+ ), _ = b(() => o([]), [o]);
171
171
  return {
172
172
  onSelect: P,
173
173
  selected: c,
174
174
  expanded: i,
175
175
  contract: j,
176
176
  expand: p,
177
- nodes: _,
178
- clearExpanded: S
177
+ nodes: w,
178
+ clearExpanded: _
179
179
  };
180
- }, G = be(
180
+ }, G = Te(
181
181
  ({
182
182
  entry: e,
183
183
  selected: t,
184
- onSelect: r,
184
+ onSelect: a,
185
185
  onDrop: n,
186
- onRename: a,
186
+ onRename: r,
187
187
  onSuccessfulDrop: s,
188
188
  onDoubleClick: l,
189
189
  loading: i = !1,
@@ -193,21 +193,31 @@ const z = (e, t) => t.includes(e.key), H = (e, t) => {
193
193
  const {
194
194
  key: c,
195
195
  hasChildren: v = !1,
196
- allowRename: _ = !1,
197
- children: I,
196
+ allowRename: w = !1,
197
+ children: S,
198
198
  icon: $,
199
199
  name: P,
200
200
  depth: p,
201
201
  expanded: j,
202
- href: S,
202
+ href: _,
203
203
  haulItems: f = []
204
- } = e, { getSelected: d } = le(), { getSourceData: x } = oe(), y = v || I != null && I.length > 0, w = [];
205
- y && w.push(
206
- /* @__PURE__ */ N.jsx(Ie, { enabled: j, enabledLoc: "bottom", disabledLoc: "right" })
207
- ), $ != null && w.push($);
204
+ } = e, { getSelected: d } = oe(), { getSourceData: x } = ie(), y = v || S != null && S.length > 0, I = [];
205
+ y && I.push(
206
+ /* @__PURE__ */ N.jsx(
207
+ _e,
208
+ {
209
+ enabled: j,
210
+ enabledLoc: "bottom",
211
+ disabledLoc: "right"
212
+ },
213
+ "caret"
214
+ )
215
+ ), $ != null && I.push($);
208
216
  const C = [];
209
- i && C.push(/* @__PURE__ */ N.jsx(ie.Loading, { className: h.B("loading-indicator") }));
210
- const [E, O] = Te(!1), { startDrag: U, ...Z } = ce({
217
+ i && C.push(
218
+ /* @__PURE__ */ N.jsx(ce.Loading, { className: h.B("loading-indicator") }, "loading-indicator")
219
+ );
220
+ const [E, O] = ve(!1), { startDrag: U, ...D } = de({
211
221
  type: "Tree.Item",
212
222
  key: c,
213
223
  canDrop: b(({ items: m, source: A }) => {
@@ -216,7 +226,7 @@ const z = (e, t) => t.includes(e.key), H = (e, t) => {
216
226
  }, []),
217
227
  onDrop: b((m) => (n == null ? void 0 : n(c, m)) ?? [], [c, n]),
218
228
  onDragOver: b(() => O(!0), [])
219
- }), D = () => {
229
+ }), ee = () => {
220
230
  const m = d(), A = x().filter(
221
231
  (g) => m.includes(g.key)
222
232
  );
@@ -237,82 +247,82 @@ const z = (e, t) => t.includes(e.key), H = (e, t) => {
237
247
  ],
238
248
  (g) => s == null ? void 0 : s(c, g)
239
249
  );
240
- }, ee = o ? "marginLeft" : "paddingLeft";
250
+ }, te = o ? "marginLeft" : "paddingLeft";
241
251
  let F = p * 2 + 1;
242
252
  y && o && (F -= 1);
243
- const te = {
253
+ const ne = {
244
254
  id: c,
245
255
  variant: "text",
246
256
  draggable: f.length > 0,
247
257
  className: h(
248
258
  h.BE("list", "item"),
249
- de,
259
+ fe,
250
260
  E && h.M("dragging-over"),
251
- t && fe,
261
+ t && ue,
252
262
  h.selected(t),
253
263
  y && h.M("has-children"),
254
264
  h.BM("depth", p.toString())
255
265
  ),
256
266
  onDragLeave: () => O(!1),
257
- onDragStart: D,
258
- onClick: () => r == null ? void 0 : r(c),
267
+ onDragStart: ee,
268
+ onClick: () => a == null ? void 0 : a(c),
259
269
  style: {
260
270
  border: "none",
261
271
  position: u != null ? "absolute" : "relative",
262
272
  transform: `translateY(${u}px)`,
263
- [ee]: `${F}rem`,
273
+ [te]: `${F}rem`,
264
274
  // @ts-expect-error - CSS variable
265
275
  "--pluto-tree-indicator-offset": `${p * 1.5 + (p === 0 ? 0 : 0.5)}rem`
266
276
  },
267
- startIcon: w,
277
+ startIcon: I,
268
278
  iconSpacing: "small",
269
279
  noWrap: !0,
270
280
  endIcon: C,
271
281
  onDoubleClick: (m) => l == null ? void 0 : l(c, m),
272
- href: S,
273
- ...Z
274
- }, ne = S != null ? _e : ge;
275
- return /* @__PURE__ */ N.jsx(ne, { className: h.BE("list", "item"), ...te, children: /* @__PURE__ */ N.jsx(
276
- ue,
282
+ href: _,
283
+ ...D
284
+ }, ae = _ != null ? Se : xe;
285
+ return /* @__PURE__ */ N.jsx(ae, { className: h.BE("list", "item"), ...ne, children: /* @__PURE__ */ N.jsx(
286
+ he,
277
287
  {
278
288
  id: `text-${c}`,
279
289
  level: "p",
280
290
  allowDoubleClick: !1,
281
291
  value: P,
282
- disabled: !_,
283
- onChange: (m) => a == null ? void 0 : a(c, m)
292
+ disabled: !w,
293
+ onChange: (m) => r == null ? void 0 : r(c, m)
284
294
  }
285
295
  ) });
286
296
  }
287
297
  );
288
298
  G.displayName = "Tree.Item";
289
- const Re = Ne(G), Oe = ({
299
+ const Oe = be(G), Ae = ({
290
300
  nodes: e,
291
301
  selected: t = [],
292
- onSelect: r,
302
+ onSelect: a,
293
303
  onDrop: n,
294
- onRename: a,
304
+ onRename: r,
295
305
  onSuccessfulDrop: s,
296
306
  onDoubleClick: l,
297
307
  className: i,
298
- children: o = Re,
308
+ children: o = Oe,
299
309
  itemHeight: u = 27,
300
310
  useMargin: c = !1,
301
311
  showRules: v = !1,
302
- virtual: _ = !0,
303
- clearExpanded: I,
312
+ virtual: w = !0,
313
+ clearExpanded: S,
304
314
  expand: $,
305
315
  contract: P,
306
316
  emptyContent: p,
307
317
  loading: j,
308
- ...S
318
+ ..._
309
319
  }) => {
310
- const f = _ ? Y.Virtual : Y;
311
- return /* @__PURE__ */ N.jsx(xe, { data: e, emptyContent: p, children: /* @__PURE__ */ N.jsx(
312
- ye,
320
+ const f = w ? Y.Virtual : Y;
321
+ return /* @__PURE__ */ N.jsx(ye, { data: e, emptyContent: p, children: /* @__PURE__ */ N.jsx(
322
+ Ce,
313
323
  {
314
324
  value: t,
315
- onChange: r,
325
+ onChange: a,
316
326
  allowMultiple: !0,
317
327
  replaceOnSingle: !0,
318
328
  children: /* @__PURE__ */ N.jsx(
@@ -320,14 +330,14 @@ const Re = Ne(G), Oe = ({
320
330
  {
321
331
  itemHeight: u,
322
332
  className: h(i, h.B("tree"), v && h.M("rules")),
323
- ...S,
333
+ ..._,
324
334
  children: ({ key: d, ...x }) => o({
325
335
  ...x,
326
336
  key: d,
327
337
  loading: j === d,
328
338
  useMargin: c,
329
339
  onDrop: n,
330
- onRename: a,
340
+ onRename: r,
331
341
  onSuccessfulDrop: s,
332
342
  onDoubleClick: l
333
343
  })
@@ -335,28 +345,29 @@ const Re = Ne(G), Oe = ({
335
345
  )
336
346
  }
337
347
  ) });
338
- }, Ae = (e, t) => Ce(`text-${e}`, t), Be = (e) => Ee(`text-${e}`), Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
348
+ }, Be = (e, t) => Ee(`text-${e}`, t), Me = (e) => Ne(`text-${e}`), Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
339
349
  __proto__: null,
340
350
  DefaultItem: G,
341
351
  HAUL_TYPE: M,
342
- Tree: Oe,
343
- asyncRename: Be,
344
- deepCopy: J,
352
+ Tree: Ae,
353
+ asyncRename: Me,
354
+ deepCopy: Q,
355
+ defaultSort: V,
345
356
  findNode: T,
346
357
  findNodeParent: R,
347
- findNodes: je,
358
+ findNodes: Le,
348
359
  flatten: K,
349
- getDescendants: Q,
350
- moveNode: Se,
351
- removeNode: V,
352
- setNode: q,
360
+ getDescendants: Z,
361
+ moveNode: Ie,
362
+ removeNode: q,
363
+ setNode: J,
353
364
  shouldExpand: z,
354
365
  sortAndSplice: H,
355
- startRenaming: Ae,
356
- updateNode: we,
357
- updateNodeChildren: $e,
358
- use: Pe
366
+ startRenaming: Be,
367
+ updateNode: $e,
368
+ updateNodeChildren: je,
369
+ use: Re
359
370
  }, Symbol.toStringTag, { value: "Module" }));
360
371
  export {
361
- Xe as e
372
+ Ye as e
362
373
  };
@@ -0,0 +1 @@
1
+ "use strict";const w=require("./aggregator-DX8ts24k.cjs"),R=require("./jsx-runtime-DGh1k5sI.cjs"),o=require("./Toggle-vgmhy8wZ.cjs"),C=require("react"),se=require("./Link-Cm6yn4zC.cjs"),le=require("./Animated-BOjwPkTJ.cjs"),p=require("./css-Bo-hsQHb.cjs");require("./Pack-CyaEXvnu.cjs");const Y=(e,t)=>t.includes(e.key),z=(e,t)=>w.F.stringsWithNumbers(e.name,t.name),H=(e,t=z)=>{typeof t=="function"&&e.sort(t);let r=!1;for(let n=0;n<e.length;n++){const s=e[n];s.forcePosition!=null&&n!==s.forcePosition&&(r=!0,e.splice(n,1),e.splice(s.forcePosition,0,s))}return r?H(e,!1):e},K=({nodes:e,expanded:t,depth:r=0,sort:n,path:s=""})=>{r===0&&n!=!1&&(e=e.sort((a,i)=>a.name.localeCompare(i.name)));const l=[];return e.forEach((a,i)=>{const c=`${s}${a.key}/`,h=Y(a,t);l.push({...a,depth:r,expanded:h,index:i,path:c}),h&&a.children!=null&&(a.children=H(a.children,n),l.push(...K({nodes:a.children,expanded:t,depth:r+1,sort:n,path:c})))}),l},ae=({tree:e,destination:t,keys:r})=>(r=w.A(r),r.forEach(n=>{const s=j({tree:e,key:n});s!=null&&(V({tree:e,keys:n}),J({tree:e,destination:t,additions:s}))}),e),V=({tree:e,keys:t})=>{t=w.A(t);const r=e.map(n=>n.key);return t.forEach(n=>{var l;const s=r.indexOf(n);if(s!==-1)e.splice(s,1);else{const a=A({tree:e,key:n});a!=null&&(a.children=(l=a.children)==null?void 0:l.filter(i=>i.key!==n))}}),e},J=({tree:e,destination:t,additions:r})=>{r=w.A(r);const n=j({tree:e,key:t});if(n==null)throw new Error(`Could not find node with key ${t}`);n.children??(n.children=[]);const s=r.map(l=>l.key);return n.children=[...r,...n.children.filter(l=>!s.includes(l.key))],e},ce=({tree:e,key:t,updater:r,throwOnMissing:n=!0})=>{var a,i;const s=j({tree:e,key:t});if(s==null){if(n)throw new Error(`Could not find node with key ${t}`);return e}const l=A({tree:e,key:t});if(l!=null){const c=(a=l.children)==null?void 0:a.findIndex(h=>h.key===t);c!=null&&c!==-1&&((i=l.children)==null||i.splice(c,1,r(s)))}else e.splice(e.findIndex(c=>c.key===t),1,r(s));return e},ie=({tree:e,parent:t,updater:r,throwOnMissing:n=!0})=>{const s=j({tree:e,key:t});if(s==null){if(n)throw new Error(`Could not find node with key ${t}`);return e}return s.children=r(s.children??[]),e},j=({tree:e,key:t,depth:r=0})=>{for(let n=0;n<e.length;n++){const s=e[n];if(s.key===t){const l=s;return l.depth=r,l.position=n,l}if(s.children!=null){const l=j({tree:s.children,key:t,depth:r+1});if(l!=null)return l}}return null},oe=({tree:e,keys:t})=>{const r=[];for(const n of t){const s=j({tree:e,key:n});s!=null&&r.push(s)}return r},A=({tree:e,key:t})=>{for(const r of e)if(r.children!=null){if(r.children.some(s=>s.key===t))return r;const n=A({tree:r.children,key:t});if(n!=null)return n}return null},Q=e=>e.map(t=>({...t,children:Q(t.children??[])})),Z=(...e)=>{const t=[];return e.forEach(r=>{t.push(r),r.children!=null&&t.push(...Z(...r.children))}),t},M="tree-item",de=[["Shift"]],ue=e=>{const{onExpand:t,nodes:r,initialExpanded:n=[],sort:s,selected:l,onSelectedChange:a}=e??{},[i,c,h]=o.useCombinedStateAndRef(n),[d,N]=w.usePassthrough({initial:[],value:l,onChange:a}),T=C.useMemo(()=>K({nodes:r,expanded:i,sort:s}),[r,i,s]),v=o.useSyncedRef(T),I=o.useHeldRef({triggers:de}),$=C.useCallback((f,{clicked:u})=>{N(f);const S=v.current.find(b=>b.key===u);if((S==null?void 0:S.hasChildren)===!1||u==null||I.current.held)return;const E=h.current,k=E.some(b=>b===u)?"contract":"expand";let y;k==="contract"?y=E.filter(b=>b!==u):y=[...E,u],c(y),t==null||t({current:y,action:k,clicked:u})},[t,v,c,N]),m=C.useCallback(f=>{c(u=>w.n([...u,f])),t==null||t({current:i,action:"expand",clicked:f})},[c]),L=C.useCallback(f=>{c(u=>u.filter(S=>S!==f)),t==null||t({current:i,action:"contract",clicked:f})},[c]),_=C.useCallback(()=>c([]),[c]);return{onSelect:$,selected:d,expanded:i,contract:L,expand:m,nodes:T,clearExpanded:_}},G=C.memo(({entry:e,selected:t,onSelect:r,onDrop:n,onRename:s,onSuccessfulDrop:l,onDoubleClick:a,loading:i=!1,useMargin:c=!0,translate:h})=>{const{key:d,hasChildren:N=!1,allowRename:T=!1,children:v,icon:I,name:$,depth:m,expanded:L,href:_,haulItems:f=[]}=e,{getSelected:u}=o.useSelectionUtils(),{getSourceData:S}=o.useDataUtilContext(),E=N||v!=null&&v.length>0,k=[];E&&k.push(R.jsxRuntimeExports.jsx(le.Animated,{enabled:L,enabledLoc:"bottom",disabledLoc:"right"},"caret")),I!=null&&k.push(I);const y=[];i&&y.push(R.jsxRuntimeExports.jsx(o.wt.Loading,{className:p.CSS.B("loading-indicator")},"loading-indicator"));const[b,O]=C.useState(!1),{startDrag:U,...D}=o.useDragAndDrop({type:"Tree.Item",key:d,canDrop:C.useCallback(({items:g,source:q})=>{const x=g.map(P=>P.key);return O(!1),q.type==="Tree.Item"&&!x.includes(d)},[]),onDrop:C.useCallback(g=>(n==null?void 0:n(d,g))??[],[d,n]),onDragOver:C.useCallback(()=>O(!0),[])}),ee=()=>{const g=u(),q=S().filter(x=>g.includes(x.key));if(g.includes(d)){const x=q.map(({key:P,haulItems:B,depth:W})=>[{type:M,key:P,data:{depth:W}},...(B==null?void 0:B.map(X=>({...X,data:{...X.data,depth:W}})))??[]]).flat();return U(x,P=>l==null?void 0:l(d,P))}U([{type:M,key:d,data:{depth:m}},...f.map(x=>({...x,data:{...x.data,depth:m}}))],x=>l==null?void 0:l(d,x))},te=c?"marginLeft":"paddingLeft";let F=m*2+1;E&&c&&(F-=1);const ne={id:d,variant:"text",draggable:f.length>0,className:p.CSS(p.CSS.BE("list","item"),o.CONTEXT_TARGET,b&&p.CSS.M("dragging-over"),t&&o.CONTEXT_SELECTED,p.CSS.selected(t),E&&p.CSS.M("has-children"),p.CSS.BM("depth",m.toString())),onDragLeave:()=>O(!1),onDragStart:ee,onClick:()=>r==null?void 0:r(d),style:{border:"none",position:h!=null?"absolute":"relative",transform:`translateY(${h}px)`,[te]:`${F}rem`,"--pluto-tree-indicator-offset":`${m*1.5+(m===0?0:.5)}rem`},startIcon:k,iconSpacing:"small",noWrap:!0,endIcon:y,onDoubleClick:g=>a==null?void 0:a(d,g),href:_,...D},re=_!=null?se.Link:o.Button;return R.jsxRuntimeExports.jsx(re,{className:p.CSS.BE("list","item"),...ne,children:R.jsxRuntimeExports.jsx(o.MaybeEditable,{id:`text-${d}`,level:"p",allowDoubleClick:!1,value:$,disabled:!T,onChange:g=>s==null?void 0:s(d,g)})})});G.displayName="Tree.Item";const fe=o.componentRenderProp(G),he=({nodes:e,selected:t=[],onSelect:r,onDrop:n,onRename:s,onSuccessfulDrop:l,onDoubleClick:a,className:i,children:c=fe,itemHeight:h=27,useMargin:d=!1,showRules:N=!1,virtual:T=!0,clearExpanded:v,expand:I,contract:$,emptyContent:m,loading:L,..._})=>{const f=T?o.Core.Virtual:o.Core;return R.jsxRuntimeExports.jsx(o.List,{data:e,emptyContent:m,children:R.jsxRuntimeExports.jsx(o.Selector,{value:t,onChange:r,allowMultiple:!0,replaceOnSingle:!0,children:R.jsxRuntimeExports.jsx(f,{itemHeight:h,className:p.CSS(i,p.CSS.B("tree"),N&&p.CSS.M("rules")),..._,children:({key:u,...S})=>c({...S,key:u,loading:L===u,useMargin:d,onDrop:n,onRename:s,onSuccessfulDrop:l,onDoubleClick:a})})})})},pe=(e,t)=>o.edit(`text-${e}`,t),me=e=>o.asyncEdit(`text-${e}`),ge=Object.freeze(Object.defineProperty({__proto__:null,DefaultItem:G,HAUL_TYPE:M,Tree:he,asyncRename:me,deepCopy:Q,defaultSort:z,findNode:j,findNodeParent:A,findNodes:oe,flatten:K,getDescendants:Z,moveNode:ae,removeNode:V,setNode:J,shouldExpand:Y,sortAndSplice:H,startRenaming:pe,updateNode:ce,updateNodeChildren:ie,use:ue},Symbol.toStringTag,{value:"Module"}));exports.external=ge;
@@ -1,10 +1,10 @@
1
- import { C as D, L as T, c as v, d as w, e as M, l as N, s as _, f as P, w as z } from "./aggregator-D6gAHK4j.js";
2
- import { ai as H, aj as C, ac as K, ad as O, ae as R, ak as F, ah as L, al as I, B as g, am as W, an as Z, ao as U, ap as V, aq as X, ar as $, a9 as q, as as G, z as J, at as Q, ag as Y, af as ee, au as se, av as le } from "./Toggle-CZlnDV1Y.js";
1
+ import { C as D, L as T, c as v, d as w, e as M, l as N, s as _, f as P, w as z } from "./aggregator-CWsCIyed.js";
2
+ import { ai as H, aj as C, ac as K, ad as O, ae as R, ak as F, ah as L, al as I, B as g, am as W, an as Z, ao as U, ap as V, aq as X, ar as $, a9 as q, as as G, z as J, at as Q, ag as Y, af as ee, au as se, av as le } from "./Toggle-DlYB4nmh.js";
3
3
  import { j as l } from "./jsx-runtime-Dx-03ztt.js";
4
4
  import { useState as ne, useEffect as te, useCallback as ae } from "react";
5
- import { P as B } from "./Pack-D8EcIVa2.js";
6
- import { A as oe } from "./Animated-DkZIfEYP.js";
7
- import { C as x } from "./css-DnIb4t_E.js";
5
+ import { P as B } from "./Pack-DNCFnyuR.js";
6
+ import { A as oe } from "./Animated-ByIJT_wA.js";
7
+ import { C as x } from "./css-Csw1Dn4s.js";
8
8
  const re = [], ie = ({
9
9
  data: e,
10
10
  emptyContent: s,
@@ -1 +1 @@
1
- "use strict";const y=require("./Toggle-Dwz8HiqJ.cjs"),Fe=require("./jsx-runtime-DGh1k5sI.cjs"),$e=require("react"),de=require("./aggregator-q3hNa4qv.cjs");require("./css-C3zWKgOb.cjs");require("./Pack-ClLR2ywa.cjs");const ge=Symbol(),ee=Symbol(),T="a",N="w";let Ne=(t,e)=>new Proxy(t,e);const U=Object.getPrototypeOf,ie=new WeakMap,te=t=>t&&(ie.has(t)?ie.get(t):U(t)===Object.prototype||U(t)===Array.prototype),ce=t=>typeof t=="object"&&t!==null,oe=new WeakMap,pe=t=>t[ee]||t,me=(t,e,s)=>{if(!te(t))return t;const r=pe(t),i=(c=>Object.isFrozen(c)||Object.values(Object.getOwnPropertyDescriptors(c)).some(o=>!o.writable))(r);let n=s&&s.get(r);return n&&n[1].f===i||(n=((c,o)=>{const a={f:o};let h=!1;const l=(f,g)=>{if(!h){let p=a[T].get(c);if(p||(p={},a[T].set(c,p)),f===N)p[N]=!0;else{let m=p[f];m||(m=new Set,p[f]=m),m.add(g)}}},u={get:(f,g)=>g===ee?c:(l("k",g),me(Reflect.get(f,g),a[T],a.c)),has:(f,g)=>g===ge?(h=!0,a[T].delete(c),!0):(l("h",g),Reflect.has(f,g)),getOwnPropertyDescriptor:(f,g)=>(l("o",g),Reflect.getOwnPropertyDescriptor(f,g)),ownKeys:f=>(l(N),Reflect.ownKeys(f))};return o&&(u.set=u.deleteProperty=()=>!1),[u,a]})(r,i),n[1].p=Ne(i?(c=>{let o=oe.get(c);if(!o){if(Array.isArray(c))o=Array.from(c);else{const a=Object.getOwnPropertyDescriptors(c);Object.values(a).forEach(h=>{h.configurable=!0}),o=Object.create(U(c),a)}oe.set(c,o)}return o})(r):r,n[0]),s&&s.set(r,n)),n[1][T]=e,n[1].c=s,n[1].p},ye=(t,e,s,r)=>{if(Object.is(t,e))return!1;if(!ce(t)||!ce(e))return!0;const i=s.get(pe(t));if(!i)return!0;if(r){const c=r.get(t);if(c&&c.n===e)return c.g;r.set(t,{n:e,g:!1})}let n=null;try{for(const c of i.h||[])if(n=Reflect.has(t,c)!==Reflect.has(e,c),n)return n;if(i[N]===!0){if(n=((c,o)=>{const a=Reflect.ownKeys(c),h=Reflect.ownKeys(o);return a.length!==h.length||a.some((l,u)=>l!==h[u])})(t,e),n)return n}else for(const c of i.o||[])if(n=!!Reflect.getOwnPropertyDescriptor(t,c)!=!!Reflect.getOwnPropertyDescriptor(e,c),n)return n;for(const c of i.k||[])if(n=ye(t[c],e[c],s,r),n)return n;return n===null&&(n=!0),n}finally{r&&r.set(t,{n:e,g:n})}},De=t=>!!te(t)&&ge in t,Me=t=>te(t)&&t[ee]||null,je="h",Ke="w",Ye="o",We="k",V=t=>typeof t=="object"&&t!==null,Ee=(t,e)=>{if(!V(t))return t;const s=Me(t);return s!==null?(De(t),s):(e.has(t)||(e.add(t),Object.entries(t).forEach(([r,i])=>{const n=Ee(i,e);Object.is(n,i)||(t[r]=n)})),t)},B=(t,e,s)=>{var r,i,n;if(!V(t)||!V(e))return;const c=s.get(Me(e)||e);c&&((r=c[je])==null||r.forEach(o=>{Reflect.has(t,o)}),c[Ke]===!0&&Reflect.ownKeys(t),(i=c[Ye])==null||i.forEach(o=>{Reflect.getOwnPropertyDescriptor(t,o)}),(n=c[We])==null||n.forEach(o=>{B(t[o],e[o],s)}))},Y="o",W="r",z="a";function ze(t,e){var s;let r=0;const i=(s=e==null?void 0:e.size)!=null?s:1,n=[],c=e!=null&&e.noWeakMap?null:new WeakMap;return a=>{const h=c==null?void 0:c.get(a);if(h)return h[W];for(let p=0;p<i;p+=1){const m=n[(r+p)%i];if(!m)break;if(!ye(m[Y],a,m[z],new WeakMap))return B(a,m[Y],m[z]),c==null||c.set(a,m),m[W]}const l=new WeakMap,u=me(a,l),f=Ee(t(u),new Set);B(a,a,l);const g={[Y]:a,[W]:f,[z]:l};return r=(r-1+i)%i,n[r]=g,c==null||c.set(a,g),f}}const _e=(t,e)=>de.w.RUNTIME==="browser"?ze(t,e):t;function R(t){return Array.isArray?Array.isArray(t):Re(t)==="[object Array]"}const He=1/0;function Ue(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-He?"-0":e}function Ve(t){return t==null?"":Ue(t)}function S(t){return typeof t=="string"}function Se(t){return typeof t=="number"}function Be(t){return t===!0||t===!1||Ge(t)&&Re(t)=="[object Boolean]"}function xe(t){return typeof t=="object"}function Ge(t){return xe(t)&&t!==null}function M(t){return t!=null}function H(t){return!t.trim().length}function Re(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Je="Incorrect 'index' type",Qe=t=>`Invalid value for key ${t}`,Xe=t=>`Pattern length exceeds max of ${t}.`,Ze=t=>`Missing ${t} property in key`,qe=t=>`Property 'weight' in key '${t}' must be a positive integer`,ae=Object.prototype.hasOwnProperty;class et{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(r=>{let i=Oe(r);this._keys.push(i),this._keyMap[i.id]=i,s+=i.weight}),this._keys.forEach(r=>{r.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Oe(t){let e=null,s=null,r=null,i=1,n=null;if(S(t)||R(t))r=t,e=le(t),s=G(t);else{if(!ae.call(t,"name"))throw new Error(Ze("name"));const c=t.name;if(r=c,ae.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(qe(c));e=le(c),s=G(c),n=t.getFn}return{path:e,id:s,weight:i,src:r,getFn:n}}function le(t){return R(t)?t:t.split(".")}function G(t){return R(t)?t.join("."):t}function tt(t,e){let s=[],r=!1;const i=(n,c,o)=>{if(M(n))if(!c[o])s.push(n);else{let a=c[o];const h=n[a];if(!M(h))return;if(o===c.length-1&&(S(h)||Se(h)||Be(h)))s.push(Ve(h));else if(R(h)){r=!0;for(let l=0,u=h.length;l<u;l+=1)i(h[l],c,o+1)}else c.length&&i(h,c,o+1)}};return i(t,S(e)?e.split("."):e,0),r?s:s[0]}const st={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},rt={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},nt={location:0,threshold:.6,distance:100},it={useExtendedSearch:!1,getFn:tt,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var d={...rt,...st,...nt,...it};const ct=/[^ ]+/g;function ot(t=1,e=3){const s=new Map,r=Math.pow(10,e);return{get(i){const n=i.match(ct).length;if(s.has(n))return s.get(n);const c=1/Math.pow(n,.5*t),o=parseFloat(Math.round(c*r)/r);return s.set(n,o),o},clear(){s.clear()}}}class se{constructor({getFn:e=d.getFn,fieldNormWeight:s=d.fieldNormWeight}={}){this.norm=ot(s,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((s,r)=>{this._keysMap[s.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,S(this.docs[0])?this.docs.forEach((e,s)=>{this._addString(e,s)}):this.docs.forEach((e,s)=>{this._addObject(e,s)}),this.norm.clear())}add(e){const s=this.size();S(e)?this._addString(e,s):this._addObject(e,s)}removeAt(e){this.records.splice(e,1);for(let s=e,r=this.size();s<r;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(e,s){return e[this._keysMap[s]]}size(){return this.records.length}_addString(e,s){if(!M(e)||H(e))return;let r={v:e,i:s,n:this.norm.get(e)};this.records.push(r)}_addObject(e,s){let r={i:s,$:{}};this.keys.forEach((i,n)=>{let c=i.getFn?i.getFn(e):this.getFn(e,i.path);if(M(c)){if(R(c)){let o=[];const a=[{nestedArrIndex:-1,value:c}];for(;a.length;){const{nestedArrIndex:h,value:l}=a.pop();if(M(l))if(S(l)&&!H(l)){let u={v:l,i:h,n:this.norm.get(l)};o.push(u)}else R(l)&&l.forEach((u,f)=>{a.push({nestedArrIndex:f,value:u})})}r.$[n]=o}else if(S(c)&&!H(c)){let o={v:c,n:this.norm.get(c)};r.$[n]=o}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function we(t,e,{getFn:s=d.getFn,fieldNormWeight:r=d.fieldNormWeight}={}){const i=new se({getFn:s,fieldNormWeight:r});return i.setKeys(t.map(Oe)),i.setSources(e),i.create(),i}function at(t,{getFn:e=d.getFn,fieldNormWeight:s=d.fieldNormWeight}={}){const{keys:r,records:i}=t,n=new se({getFn:e,fieldNormWeight:s});return n.setKeys(r),n.setIndexRecords(i),n}function $(t,{errors:e=0,currentLocation:s=0,expectedLocation:r=0,distance:i=d.distance,ignoreLocation:n=d.ignoreLocation}={}){const c=e/t.length;if(n)return c;const o=Math.abs(r-s);return i?c+o/i:o?1:c}function lt(t=[],e=d.minMatchCharLength){let s=[],r=-1,i=-1,n=0;for(let c=t.length;n<c;n+=1){let o=t[n];o&&r===-1?r=n:!o&&r!==-1&&(i=n-1,i-r+1>=e&&s.push([r,i]),r=-1)}return t[n-1]&&n-r>=e&&s.push([r,n-1]),s}const P=32;function ht(t,e,s,{location:r=d.location,distance:i=d.distance,threshold:n=d.threshold,findAllMatches:c=d.findAllMatches,minMatchCharLength:o=d.minMatchCharLength,includeMatches:a=d.includeMatches,ignoreLocation:h=d.ignoreLocation}={}){if(e.length>P)throw new Error(Xe(P));const l=e.length,u=t.length,f=Math.max(0,Math.min(r,u));let g=n,p=f;const m=o>1||a,A=m?Array(u):[];let x;for(;(x=t.indexOf(e,p))>-1;){let E=$(e,{currentLocation:x,expectedLocation:f,distance:i,ignoreLocation:h});if(g=Math.min(E,g),p=x+l,m){let O=0;for(;O<l;)A[x+O]=1,O+=1}}p=-1;let L=[],b=1,v=l+u;const ve=1<<l-1;for(let E=0;E<l;E+=1){let O=0,w=v;for(;O<w;)$(e,{errors:E,currentLocation:f+w,expectedLocation:f,distance:i,ignoreLocation:h})<=g?O=w:v=w,w=Math.floor((v-O)/2+O);v=w;let re=Math.max(1,f-w+1),K=c?u:Math.min(f+w,u)+l,C=Array(K+2);C[K+1]=(1<<E)-1;for(let _=K;_>=re;_-=1){let F=_-1,ne=s[t.charAt(F)];if(m&&(A[F]=+!!ne),C[_]=(C[_+1]<<1|1)&ne,E&&(C[_]|=(L[_+1]|L[_])<<1|1|L[_+1]),C[_]&ve&&(b=$(e,{errors:E,currentLocation:F,expectedLocation:f,distance:i,ignoreLocation:h}),b<=g)){if(g=b,p=F,p<=f)break;re=Math.max(1,2*f-p)}}if($(e,{errors:E+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:h})>g)break;L=C}const j={isMatch:p>=0,score:Math.max(.001,b)};if(m){const E=lt(A,o);E.length?a&&(j.indices=E):j.isMatch=!1}return j}function ut(t){let e={};for(let s=0,r=t.length;s<r;s+=1){const i=t.charAt(s);e[i]=(e[i]||0)|1<<r-s-1}return e}class Ie{constructor(e,{location:s=d.location,threshold:r=d.threshold,distance:i=d.distance,includeMatches:n=d.includeMatches,findAllMatches:c=d.findAllMatches,minMatchCharLength:o=d.minMatchCharLength,isCaseSensitive:a=d.isCaseSensitive,ignoreLocation:h=d.ignoreLocation}={}){if(this.options={location:s,threshold:r,distance:i,includeMatches:n,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const l=(f,g)=>{this.chunks.push({pattern:f,alphabet:ut(f),startIndex:g})},u=this.pattern.length;if(u>P){let f=0;const g=u%P,p=u-g;for(;f<p;)l(this.pattern.substr(f,P),f),f+=P;if(g){const m=u-P;l(this.pattern.substr(m),m)}}else l(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,includeMatches:r}=this.options;if(s||(e=e.toLowerCase()),this.pattern===e){let p={isMatch:!0,score:0};return r&&(p.indices=[[0,e.length-1]]),p}const{location:i,distance:n,threshold:c,findAllMatches:o,minMatchCharLength:a,ignoreLocation:h}=this.options;let l=[],u=0,f=!1;this.chunks.forEach(({pattern:p,alphabet:m,startIndex:A})=>{const{isMatch:x,score:L,indices:b}=ht(e,p,m,{location:i+A,distance:n,threshold:c,findAllMatches:o,minMatchCharLength:a,includeMatches:r,ignoreLocation:h});x&&(f=!0),u+=L,x&&b&&(l=[...l,...b])});let g={isMatch:f,score:f?u/this.chunks.length:1};return f&&r&&(g.indices=l),g}}class I{constructor(e){this.pattern=e}static isMultiMatch(e){return he(e,this.multiRegex)}static isSingleMatch(e){return he(e,this.singleRegex)}search(){}}function he(t,e){const s=t.match(e);return s?s[1]:null}class ft extends I{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const s=e===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class dt extends I{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const r=e.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class gt extends I{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const s=e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class pt extends I{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const s=!e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class mt extends I{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const s=e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class yt extends I{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const s=!e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class Ae extends I{constructor(e,{location:s=d.location,threshold:r=d.threshold,distance:i=d.distance,includeMatches:n=d.includeMatches,findAllMatches:c=d.findAllMatches,minMatchCharLength:o=d.minMatchCharLength,isCaseSensitive:a=d.isCaseSensitive,ignoreLocation:h=d.ignoreLocation}={}){super(e),this._bitapSearch=new Ie(e,{location:s,threshold:r,distance:i,includeMatches:n,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class be extends I{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,r;const i=[],n=this.pattern.length;for(;(r=e.indexOf(this.pattern,s))>-1;)s=r+n,i.push([r,s-1]);const c=!!i.length;return{isMatch:c,score:c?0:1,indices:i}}}const J=[ft,be,gt,pt,yt,mt,dt,Ae],ue=J.length,Mt=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Et="|";function _t(t,e={}){return t.split(Et).map(s=>{let r=s.trim().split(Mt).filter(n=>n&&!!n.trim()),i=[];for(let n=0,c=r.length;n<c;n+=1){const o=r[n];let a=!1,h=-1;for(;!a&&++h<ue;){const l=J[h];let u=l.isMultiMatch(o);u&&(i.push(new l(u,e)),a=!0)}if(!a)for(h=-1;++h<ue;){const l=J[h];let u=l.isSingleMatch(o);if(u){i.push(new l(u,e));break}}}return i})}const St=new Set([Ae.type,be.type]);class xt{constructor(e,{isCaseSensitive:s=d.isCaseSensitive,includeMatches:r=d.includeMatches,minMatchCharLength:i=d.minMatchCharLength,ignoreLocation:n=d.ignoreLocation,findAllMatches:c=d.findAllMatches,location:o=d.location,threshold:a=d.threshold,distance:h=d.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:r,minMatchCharLength:i,findAllMatches:c,ignoreLocation:n,location:o,threshold:a,distance:h},this.pattern=s?e:e.toLowerCase(),this.query=_t(this.pattern,this.options)}static condition(e,s){return s.useExtendedSearch}searchIn(e){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:i}=this.options;e=i?e:e.toLowerCase();let n=0,c=[],o=0;for(let a=0,h=s.length;a<h;a+=1){const l=s[a];c.length=0,n=0;for(let u=0,f=l.length;u<f;u+=1){const g=l[u],{isMatch:p,indices:m,score:A}=g.search(e);if(p){if(n+=1,o+=A,r){const x=g.constructor.type;St.has(x)?c=[...c,...m]:c.push(m)}}else{o=0,n=0,c.length=0;break}}if(n){let u={isMatch:!0,score:o/n};return r&&(u.indices=c),u}}return{isMatch:!1,score:1}}}const Q=[];function Rt(...t){Q.push(...t)}function X(t,e){for(let s=0,r=Q.length;s<r;s+=1){let i=Q[s];if(i.condition(t,e))return new i(t,e)}return new Ie(t,e)}const D={AND:"$and",OR:"$or"},Z={PATH:"$path",PATTERN:"$val"},q=t=>!!(t[D.AND]||t[D.OR]),Ot=t=>!!t[Z.PATH],wt=t=>!R(t)&&xe(t)&&!q(t),fe=t=>({[D.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function Pe(t,e,{auto:s=!0}={}){const r=i=>{let n=Object.keys(i);const c=Ot(i);if(!c&&n.length>1&&!q(i))return r(fe(i));if(wt(i)){const a=c?i[Z.PATH]:n[0],h=c?i[Z.PATTERN]:i[a];if(!S(h))throw new Error(Qe(a));const l={keyId:G(a),pattern:h};return s&&(l.searcher=X(h,e)),l}let o={children:[],operator:n[0]};return n.forEach(a=>{const h=i[a];R(h)&&h.forEach(l=>{o.children.push(r(l))})}),o};return q(t)||(t=fe(t)),r(t)}function It(t,{ignoreFieldNorm:e=d.ignoreFieldNorm}){t.forEach(s=>{let r=1;s.matches.forEach(({key:i,norm:n,score:c})=>{const o=i?i.weight:null;r*=Math.pow(c===0&&o?Number.EPSILON:c,(o||1)*(e?1:n))}),s.score=r})}function At(t,e){const s=t.matches;e.matches=[],M(s)&&s.forEach(r=>{if(!M(r.indices)||!r.indices.length)return;const{indices:i,value:n}=r;let c={indices:i,value:n};r.key&&(c.key=r.key.src),r.idx>-1&&(c.refIndex=r.idx),e.matches.push(c)})}function bt(t,e){e.score=t.score}function Pt(t,e,{includeMatches:s=d.includeMatches,includeScore:r=d.includeScore}={}){const i=[];return s&&i.push(At),r&&i.push(bt),t.map(n=>{const{idx:c}=n,o={item:e[c],refIndex:c};return i.length&&i.forEach(a=>{a(n,o)}),o})}class k{constructor(e,s={},r){this.options={...d,...s},this.options.useExtendedSearch,this._keyStore=new et(this.options.keys),this.setCollection(e,r)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof se))throw new Error(Je);this._myIndex=s||we(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){M(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let r=0,i=this._docs.length;r<i;r+=1){const n=this._docs[r];e(n,r)&&(this.removeAt(r),r-=1,i-=1,s.push(n))}return s}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:s=-1}={}){const{includeMatches:r,includeScore:i,shouldSort:n,sortFn:c,ignoreFieldNorm:o}=this.options;let a=S(e)?S(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return It(a,{ignoreFieldNorm:o}),n&&a.sort(c),Se(s)&&s>-1&&(a=a.slice(0,s)),Pt(a,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e){const s=X(e,this.options),{records:r}=this._myIndex,i=[];return r.forEach(({v:n,i:c,n:o})=>{if(!M(n))return;const{isMatch:a,score:h,indices:l}=s.searchIn(n);a&&i.push({item:n,idx:c,matches:[{score:h,value:n,norm:o,indices:l}]})}),i}_searchLogical(e){const s=Pe(e,this.options),r=(o,a,h)=>{if(!o.children){const{keyId:u,searcher:f}=o,g=this._findMatches({key:this._keyStore.get(u),value:this._myIndex.getValueForItemAtKeyId(a,u),searcher:f});return g&&g.length?[{idx:h,item:a,matches:g}]:[]}const l=[];for(let u=0,f=o.children.length;u<f;u+=1){const g=o.children[u],p=r(g,a,h);if(p.length)l.push(...p);else if(o.operator===D.AND)return[]}return l},i=this._myIndex.records,n={},c=[];return i.forEach(({$:o,i:a})=>{if(M(o)){let h=r(s,o,a);h.length&&(n[a]||(n[a]={idx:a,item:o,matches:[]},c.push(n[a])),h.forEach(({matches:l})=>{n[a].matches.push(...l)}))}}),c}_searchObjectList(e){const s=X(e,this.options),{keys:r,records:i}=this._myIndex,n=[];return i.forEach(({$:c,i:o})=>{if(!M(c))return;let a=[];r.forEach((h,l)=>{a.push(...this._findMatches({key:h,value:c[l],searcher:s}))}),a.length&&n.push({idx:o,item:c,matches:a})}),n}_findMatches({key:e,value:s,searcher:r}){if(!M(s))return[];let i=[];if(R(s))s.forEach(({v:n,i:c,n:o})=>{if(!M(n))return;const{isMatch:a,score:h,indices:l}=r.searchIn(n);a&&i.push({score:h,key:e,value:n,idx:c,norm:o,indices:l})});else{const{v:n,n:c}=s,{isMatch:o,score:a,indices:h}=r.searchIn(n);o&&i.push({score:a,key:e,value:n,norm:c,indices:h})}return i}}k.version="7.0.0";k.createIndex=we;k.parseIndex=at;k.config=d;k.parseQuery=Pe;Rt(xt);const Lt={threshold:.3},Le=t=>e=>{const s=new k(e,{keys:Object.keys(e[0]),...Lt,...t});return{type:"fuse",page:(r,i)=>e.slice(r*i,(r+1)*i),search:r=>s.search(r).map(({item:i})=>i),retrieve:r=>e.filter(i=>r.includes(i.key))}},Ct=Le(),Ce=({term:t,searcher:e=Ct})=>_e(({data:s})=>typeof e=="function"?t.length===0||(s==null?void 0:s.length)===0?{data:s,transformed:!1}:{data:e(s).search(t),transformed:!0}:{data:e.search(t),transformed:!0}),ke=({debounce:t=250,value:e,onChange:s,transformBefore:r})=>{const[i,n]=de.usePurePassthrough({onChange:s,value:e,initial:""}),{setTransform:c,deleteTransform:o}=y.useDataUtilContext(),a=y.useDebouncedCallback(c,t,[]),h=$e.useCallback(l=>{n(l),l.length===0?o("filter"):(r!=null&&(l=r(l)),a("filter",Ce({term:l})))},[n,r]);return{value:i,onChange:h}},Te=({children:t=s=>Fe.jsxRuntimeExports.jsx(y.Text$2,{placeholder:"Filter",...s}),...e})=>t(ke(e)),kt=Object.freeze(Object.defineProperty({__proto__:null,Column:y.Column,ColumnContext:y.ColumnContext,Core:y.Core,DataProvider:y.DataProvider,Filter:Te,Hover:y.Hover,ItemFrame:y.ItemFrame,List:y.List,Search:y.Search,Selector:y.Selector,selectValueIsZero:y.selectValueIsZero,useDataContext:y.useDataContext,useDataUtilContext:y.useDataUtilContext,useFilter:ke,useGetTransformedData:y.useGetTransformedData,useHoverContext:y.useHoverContext,useSearch:y.useSearch,useSelect:y.useSelect,useSelection:y.useSelection,useSelectionContext:y.useSelectionContext,useSelectionUtils:y.useSelectionUtils,useSetSourceData:y.useSetSourceData,useSourceData:y.useSourceData,useTransformedData:y.useTransformedData},Symbol.toStringTag,{value:"Module"}));exports.Filter=Te;exports.createFilterTransform=Ce;exports.external=kt;exports.fuseFilter=Le;exports.proxyMemo=_e;
1
+ "use strict";const y=require("./Toggle-vgmhy8wZ.cjs"),Fe=require("./jsx-runtime-DGh1k5sI.cjs"),$e=require("react"),de=require("./aggregator-DX8ts24k.cjs");require("./css-Bo-hsQHb.cjs");require("./Pack-CyaEXvnu.cjs");const ge=Symbol(),ee=Symbol(),T="a",N="w";let Ne=(t,e)=>new Proxy(t,e);const U=Object.getPrototypeOf,ie=new WeakMap,te=t=>t&&(ie.has(t)?ie.get(t):U(t)===Object.prototype||U(t)===Array.prototype),ce=t=>typeof t=="object"&&t!==null,oe=new WeakMap,pe=t=>t[ee]||t,me=(t,e,s)=>{if(!te(t))return t;const r=pe(t),i=(c=>Object.isFrozen(c)||Object.values(Object.getOwnPropertyDescriptors(c)).some(o=>!o.writable))(r);let n=s&&s.get(r);return n&&n[1].f===i||(n=((c,o)=>{const a={f:o};let h=!1;const l=(f,g)=>{if(!h){let p=a[T].get(c);if(p||(p={},a[T].set(c,p)),f===N)p[N]=!0;else{let m=p[f];m||(m=new Set,p[f]=m),m.add(g)}}},u={get:(f,g)=>g===ee?c:(l("k",g),me(Reflect.get(f,g),a[T],a.c)),has:(f,g)=>g===ge?(h=!0,a[T].delete(c),!0):(l("h",g),Reflect.has(f,g)),getOwnPropertyDescriptor:(f,g)=>(l("o",g),Reflect.getOwnPropertyDescriptor(f,g)),ownKeys:f=>(l(N),Reflect.ownKeys(f))};return o&&(u.set=u.deleteProperty=()=>!1),[u,a]})(r,i),n[1].p=Ne(i?(c=>{let o=oe.get(c);if(!o){if(Array.isArray(c))o=Array.from(c);else{const a=Object.getOwnPropertyDescriptors(c);Object.values(a).forEach(h=>{h.configurable=!0}),o=Object.create(U(c),a)}oe.set(c,o)}return o})(r):r,n[0]),s&&s.set(r,n)),n[1][T]=e,n[1].c=s,n[1].p},ye=(t,e,s,r)=>{if(Object.is(t,e))return!1;if(!ce(t)||!ce(e))return!0;const i=s.get(pe(t));if(!i)return!0;if(r){const c=r.get(t);if(c&&c.n===e)return c.g;r.set(t,{n:e,g:!1})}let n=null;try{for(const c of i.h||[])if(n=Reflect.has(t,c)!==Reflect.has(e,c),n)return n;if(i[N]===!0){if(n=((c,o)=>{const a=Reflect.ownKeys(c),h=Reflect.ownKeys(o);return a.length!==h.length||a.some((l,u)=>l!==h[u])})(t,e),n)return n}else for(const c of i.o||[])if(n=!!Reflect.getOwnPropertyDescriptor(t,c)!=!!Reflect.getOwnPropertyDescriptor(e,c),n)return n;for(const c of i.k||[])if(n=ye(t[c],e[c],s,r),n)return n;return n===null&&(n=!0),n}finally{r&&r.set(t,{n:e,g:n})}},De=t=>!!te(t)&&ge in t,Me=t=>te(t)&&t[ee]||null,je="h",Ke="w",Ye="o",We="k",V=t=>typeof t=="object"&&t!==null,Ee=(t,e)=>{if(!V(t))return t;const s=Me(t);return s!==null?(De(t),s):(e.has(t)||(e.add(t),Object.entries(t).forEach(([r,i])=>{const n=Ee(i,e);Object.is(n,i)||(t[r]=n)})),t)},B=(t,e,s)=>{var r,i,n;if(!V(t)||!V(e))return;const c=s.get(Me(e)||e);c&&((r=c[je])==null||r.forEach(o=>{Reflect.has(t,o)}),c[Ke]===!0&&Reflect.ownKeys(t),(i=c[Ye])==null||i.forEach(o=>{Reflect.getOwnPropertyDescriptor(t,o)}),(n=c[We])==null||n.forEach(o=>{B(t[o],e[o],s)}))},Y="o",W="r",z="a";function ze(t,e){var s;let r=0;const i=(s=e==null?void 0:e.size)!=null?s:1,n=[],c=e!=null&&e.noWeakMap?null:new WeakMap;return a=>{const h=c==null?void 0:c.get(a);if(h)return h[W];for(let p=0;p<i;p+=1){const m=n[(r+p)%i];if(!m)break;if(!ye(m[Y],a,m[z],new WeakMap))return B(a,m[Y],m[z]),c==null||c.set(a,m),m[W]}const l=new WeakMap,u=me(a,l),f=Ee(t(u),new Set);B(a,a,l);const g={[Y]:a,[W]:f,[z]:l};return r=(r-1+i)%i,n[r]=g,c==null||c.set(a,g),f}}const _e=(t,e)=>de.S.RUNTIME==="browser"?ze(t,e):t;function R(t){return Array.isArray?Array.isArray(t):Re(t)==="[object Array]"}const He=1/0;function Ue(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-He?"-0":e}function Ve(t){return t==null?"":Ue(t)}function S(t){return typeof t=="string"}function Se(t){return typeof t=="number"}function Be(t){return t===!0||t===!1||Ge(t)&&Re(t)=="[object Boolean]"}function xe(t){return typeof t=="object"}function Ge(t){return xe(t)&&t!==null}function M(t){return t!=null}function H(t){return!t.trim().length}function Re(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Je="Incorrect 'index' type",Qe=t=>`Invalid value for key ${t}`,Xe=t=>`Pattern length exceeds max of ${t}.`,Ze=t=>`Missing ${t} property in key`,qe=t=>`Property 'weight' in key '${t}' must be a positive integer`,ae=Object.prototype.hasOwnProperty;class et{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(r=>{let i=Oe(r);this._keys.push(i),this._keyMap[i.id]=i,s+=i.weight}),this._keys.forEach(r=>{r.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Oe(t){let e=null,s=null,r=null,i=1,n=null;if(S(t)||R(t))r=t,e=le(t),s=G(t);else{if(!ae.call(t,"name"))throw new Error(Ze("name"));const c=t.name;if(r=c,ae.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(qe(c));e=le(c),s=G(c),n=t.getFn}return{path:e,id:s,weight:i,src:r,getFn:n}}function le(t){return R(t)?t:t.split(".")}function G(t){return R(t)?t.join("."):t}function tt(t,e){let s=[],r=!1;const i=(n,c,o)=>{if(M(n))if(!c[o])s.push(n);else{let a=c[o];const h=n[a];if(!M(h))return;if(o===c.length-1&&(S(h)||Se(h)||Be(h)))s.push(Ve(h));else if(R(h)){r=!0;for(let l=0,u=h.length;l<u;l+=1)i(h[l],c,o+1)}else c.length&&i(h,c,o+1)}};return i(t,S(e)?e.split("."):e,0),r?s:s[0]}const st={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},rt={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},nt={location:0,threshold:.6,distance:100},it={useExtendedSearch:!1,getFn:tt,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var d={...rt,...st,...nt,...it};const ct=/[^ ]+/g;function ot(t=1,e=3){const s=new Map,r=Math.pow(10,e);return{get(i){const n=i.match(ct).length;if(s.has(n))return s.get(n);const c=1/Math.pow(n,.5*t),o=parseFloat(Math.round(c*r)/r);return s.set(n,o),o},clear(){s.clear()}}}class se{constructor({getFn:e=d.getFn,fieldNormWeight:s=d.fieldNormWeight}={}){this.norm=ot(s,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((s,r)=>{this._keysMap[s.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,S(this.docs[0])?this.docs.forEach((e,s)=>{this._addString(e,s)}):this.docs.forEach((e,s)=>{this._addObject(e,s)}),this.norm.clear())}add(e){const s=this.size();S(e)?this._addString(e,s):this._addObject(e,s)}removeAt(e){this.records.splice(e,1);for(let s=e,r=this.size();s<r;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(e,s){return e[this._keysMap[s]]}size(){return this.records.length}_addString(e,s){if(!M(e)||H(e))return;let r={v:e,i:s,n:this.norm.get(e)};this.records.push(r)}_addObject(e,s){let r={i:s,$:{}};this.keys.forEach((i,n)=>{let c=i.getFn?i.getFn(e):this.getFn(e,i.path);if(M(c)){if(R(c)){let o=[];const a=[{nestedArrIndex:-1,value:c}];for(;a.length;){const{nestedArrIndex:h,value:l}=a.pop();if(M(l))if(S(l)&&!H(l)){let u={v:l,i:h,n:this.norm.get(l)};o.push(u)}else R(l)&&l.forEach((u,f)=>{a.push({nestedArrIndex:f,value:u})})}r.$[n]=o}else if(S(c)&&!H(c)){let o={v:c,n:this.norm.get(c)};r.$[n]=o}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function we(t,e,{getFn:s=d.getFn,fieldNormWeight:r=d.fieldNormWeight}={}){const i=new se({getFn:s,fieldNormWeight:r});return i.setKeys(t.map(Oe)),i.setSources(e),i.create(),i}function at(t,{getFn:e=d.getFn,fieldNormWeight:s=d.fieldNormWeight}={}){const{keys:r,records:i}=t,n=new se({getFn:e,fieldNormWeight:s});return n.setKeys(r),n.setIndexRecords(i),n}function $(t,{errors:e=0,currentLocation:s=0,expectedLocation:r=0,distance:i=d.distance,ignoreLocation:n=d.ignoreLocation}={}){const c=e/t.length;if(n)return c;const o=Math.abs(r-s);return i?c+o/i:o?1:c}function lt(t=[],e=d.minMatchCharLength){let s=[],r=-1,i=-1,n=0;for(let c=t.length;n<c;n+=1){let o=t[n];o&&r===-1?r=n:!o&&r!==-1&&(i=n-1,i-r+1>=e&&s.push([r,i]),r=-1)}return t[n-1]&&n-r>=e&&s.push([r,n-1]),s}const P=32;function ht(t,e,s,{location:r=d.location,distance:i=d.distance,threshold:n=d.threshold,findAllMatches:c=d.findAllMatches,minMatchCharLength:o=d.minMatchCharLength,includeMatches:a=d.includeMatches,ignoreLocation:h=d.ignoreLocation}={}){if(e.length>P)throw new Error(Xe(P));const l=e.length,u=t.length,f=Math.max(0,Math.min(r,u));let g=n,p=f;const m=o>1||a,A=m?Array(u):[];let x;for(;(x=t.indexOf(e,p))>-1;){let E=$(e,{currentLocation:x,expectedLocation:f,distance:i,ignoreLocation:h});if(g=Math.min(E,g),p=x+l,m){let O=0;for(;O<l;)A[x+O]=1,O+=1}}p=-1;let L=[],b=1,v=l+u;const ve=1<<l-1;for(let E=0;E<l;E+=1){let O=0,w=v;for(;O<w;)$(e,{errors:E,currentLocation:f+w,expectedLocation:f,distance:i,ignoreLocation:h})<=g?O=w:v=w,w=Math.floor((v-O)/2+O);v=w;let re=Math.max(1,f-w+1),K=c?u:Math.min(f+w,u)+l,C=Array(K+2);C[K+1]=(1<<E)-1;for(let _=K;_>=re;_-=1){let F=_-1,ne=s[t.charAt(F)];if(m&&(A[F]=+!!ne),C[_]=(C[_+1]<<1|1)&ne,E&&(C[_]|=(L[_+1]|L[_])<<1|1|L[_+1]),C[_]&ve&&(b=$(e,{errors:E,currentLocation:F,expectedLocation:f,distance:i,ignoreLocation:h}),b<=g)){if(g=b,p=F,p<=f)break;re=Math.max(1,2*f-p)}}if($(e,{errors:E+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:h})>g)break;L=C}const j={isMatch:p>=0,score:Math.max(.001,b)};if(m){const E=lt(A,o);E.length?a&&(j.indices=E):j.isMatch=!1}return j}function ut(t){let e={};for(let s=0,r=t.length;s<r;s+=1){const i=t.charAt(s);e[i]=(e[i]||0)|1<<r-s-1}return e}class Ie{constructor(e,{location:s=d.location,threshold:r=d.threshold,distance:i=d.distance,includeMatches:n=d.includeMatches,findAllMatches:c=d.findAllMatches,minMatchCharLength:o=d.minMatchCharLength,isCaseSensitive:a=d.isCaseSensitive,ignoreLocation:h=d.ignoreLocation}={}){if(this.options={location:s,threshold:r,distance:i,includeMatches:n,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const l=(f,g)=>{this.chunks.push({pattern:f,alphabet:ut(f),startIndex:g})},u=this.pattern.length;if(u>P){let f=0;const g=u%P,p=u-g;for(;f<p;)l(this.pattern.substr(f,P),f),f+=P;if(g){const m=u-P;l(this.pattern.substr(m),m)}}else l(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,includeMatches:r}=this.options;if(s||(e=e.toLowerCase()),this.pattern===e){let p={isMatch:!0,score:0};return r&&(p.indices=[[0,e.length-1]]),p}const{location:i,distance:n,threshold:c,findAllMatches:o,minMatchCharLength:a,ignoreLocation:h}=this.options;let l=[],u=0,f=!1;this.chunks.forEach(({pattern:p,alphabet:m,startIndex:A})=>{const{isMatch:x,score:L,indices:b}=ht(e,p,m,{location:i+A,distance:n,threshold:c,findAllMatches:o,minMatchCharLength:a,includeMatches:r,ignoreLocation:h});x&&(f=!0),u+=L,x&&b&&(l=[...l,...b])});let g={isMatch:f,score:f?u/this.chunks.length:1};return f&&r&&(g.indices=l),g}}class I{constructor(e){this.pattern=e}static isMultiMatch(e){return he(e,this.multiRegex)}static isSingleMatch(e){return he(e,this.singleRegex)}search(){}}function he(t,e){const s=t.match(e);return s?s[1]:null}class ft extends I{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const s=e===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class dt extends I{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const r=e.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class gt extends I{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const s=e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class pt extends I{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const s=!e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class mt extends I{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const s=e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class yt extends I{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const s=!e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class Ae extends I{constructor(e,{location:s=d.location,threshold:r=d.threshold,distance:i=d.distance,includeMatches:n=d.includeMatches,findAllMatches:c=d.findAllMatches,minMatchCharLength:o=d.minMatchCharLength,isCaseSensitive:a=d.isCaseSensitive,ignoreLocation:h=d.ignoreLocation}={}){super(e),this._bitapSearch=new Ie(e,{location:s,threshold:r,distance:i,includeMatches:n,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class be extends I{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,r;const i=[],n=this.pattern.length;for(;(r=e.indexOf(this.pattern,s))>-1;)s=r+n,i.push([r,s-1]);const c=!!i.length;return{isMatch:c,score:c?0:1,indices:i}}}const J=[ft,be,gt,pt,yt,mt,dt,Ae],ue=J.length,Mt=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Et="|";function _t(t,e={}){return t.split(Et).map(s=>{let r=s.trim().split(Mt).filter(n=>n&&!!n.trim()),i=[];for(let n=0,c=r.length;n<c;n+=1){const o=r[n];let a=!1,h=-1;for(;!a&&++h<ue;){const l=J[h];let u=l.isMultiMatch(o);u&&(i.push(new l(u,e)),a=!0)}if(!a)for(h=-1;++h<ue;){const l=J[h];let u=l.isSingleMatch(o);if(u){i.push(new l(u,e));break}}}return i})}const St=new Set([Ae.type,be.type]);class xt{constructor(e,{isCaseSensitive:s=d.isCaseSensitive,includeMatches:r=d.includeMatches,minMatchCharLength:i=d.minMatchCharLength,ignoreLocation:n=d.ignoreLocation,findAllMatches:c=d.findAllMatches,location:o=d.location,threshold:a=d.threshold,distance:h=d.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:r,minMatchCharLength:i,findAllMatches:c,ignoreLocation:n,location:o,threshold:a,distance:h},this.pattern=s?e:e.toLowerCase(),this.query=_t(this.pattern,this.options)}static condition(e,s){return s.useExtendedSearch}searchIn(e){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:i}=this.options;e=i?e:e.toLowerCase();let n=0,c=[],o=0;for(let a=0,h=s.length;a<h;a+=1){const l=s[a];c.length=0,n=0;for(let u=0,f=l.length;u<f;u+=1){const g=l[u],{isMatch:p,indices:m,score:A}=g.search(e);if(p){if(n+=1,o+=A,r){const x=g.constructor.type;St.has(x)?c=[...c,...m]:c.push(m)}}else{o=0,n=0,c.length=0;break}}if(n){let u={isMatch:!0,score:o/n};return r&&(u.indices=c),u}}return{isMatch:!1,score:1}}}const Q=[];function Rt(...t){Q.push(...t)}function X(t,e){for(let s=0,r=Q.length;s<r;s+=1){let i=Q[s];if(i.condition(t,e))return new i(t,e)}return new Ie(t,e)}const D={AND:"$and",OR:"$or"},Z={PATH:"$path",PATTERN:"$val"},q=t=>!!(t[D.AND]||t[D.OR]),Ot=t=>!!t[Z.PATH],wt=t=>!R(t)&&xe(t)&&!q(t),fe=t=>({[D.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function Pe(t,e,{auto:s=!0}={}){const r=i=>{let n=Object.keys(i);const c=Ot(i);if(!c&&n.length>1&&!q(i))return r(fe(i));if(wt(i)){const a=c?i[Z.PATH]:n[0],h=c?i[Z.PATTERN]:i[a];if(!S(h))throw new Error(Qe(a));const l={keyId:G(a),pattern:h};return s&&(l.searcher=X(h,e)),l}let o={children:[],operator:n[0]};return n.forEach(a=>{const h=i[a];R(h)&&h.forEach(l=>{o.children.push(r(l))})}),o};return q(t)||(t=fe(t)),r(t)}function It(t,{ignoreFieldNorm:e=d.ignoreFieldNorm}){t.forEach(s=>{let r=1;s.matches.forEach(({key:i,norm:n,score:c})=>{const o=i?i.weight:null;r*=Math.pow(c===0&&o?Number.EPSILON:c,(o||1)*(e?1:n))}),s.score=r})}function At(t,e){const s=t.matches;e.matches=[],M(s)&&s.forEach(r=>{if(!M(r.indices)||!r.indices.length)return;const{indices:i,value:n}=r;let c={indices:i,value:n};r.key&&(c.key=r.key.src),r.idx>-1&&(c.refIndex=r.idx),e.matches.push(c)})}function bt(t,e){e.score=t.score}function Pt(t,e,{includeMatches:s=d.includeMatches,includeScore:r=d.includeScore}={}){const i=[];return s&&i.push(At),r&&i.push(bt),t.map(n=>{const{idx:c}=n,o={item:e[c],refIndex:c};return i.length&&i.forEach(a=>{a(n,o)}),o})}class k{constructor(e,s={},r){this.options={...d,...s},this.options.useExtendedSearch,this._keyStore=new et(this.options.keys),this.setCollection(e,r)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof se))throw new Error(Je);this._myIndex=s||we(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){M(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let r=0,i=this._docs.length;r<i;r+=1){const n=this._docs[r];e(n,r)&&(this.removeAt(r),r-=1,i-=1,s.push(n))}return s}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:s=-1}={}){const{includeMatches:r,includeScore:i,shouldSort:n,sortFn:c,ignoreFieldNorm:o}=this.options;let a=S(e)?S(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return It(a,{ignoreFieldNorm:o}),n&&a.sort(c),Se(s)&&s>-1&&(a=a.slice(0,s)),Pt(a,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e){const s=X(e,this.options),{records:r}=this._myIndex,i=[];return r.forEach(({v:n,i:c,n:o})=>{if(!M(n))return;const{isMatch:a,score:h,indices:l}=s.searchIn(n);a&&i.push({item:n,idx:c,matches:[{score:h,value:n,norm:o,indices:l}]})}),i}_searchLogical(e){const s=Pe(e,this.options),r=(o,a,h)=>{if(!o.children){const{keyId:u,searcher:f}=o,g=this._findMatches({key:this._keyStore.get(u),value:this._myIndex.getValueForItemAtKeyId(a,u),searcher:f});return g&&g.length?[{idx:h,item:a,matches:g}]:[]}const l=[];for(let u=0,f=o.children.length;u<f;u+=1){const g=o.children[u],p=r(g,a,h);if(p.length)l.push(...p);else if(o.operator===D.AND)return[]}return l},i=this._myIndex.records,n={},c=[];return i.forEach(({$:o,i:a})=>{if(M(o)){let h=r(s,o,a);h.length&&(n[a]||(n[a]={idx:a,item:o,matches:[]},c.push(n[a])),h.forEach(({matches:l})=>{n[a].matches.push(...l)}))}}),c}_searchObjectList(e){const s=X(e,this.options),{keys:r,records:i}=this._myIndex,n=[];return i.forEach(({$:c,i:o})=>{if(!M(c))return;let a=[];r.forEach((h,l)=>{a.push(...this._findMatches({key:h,value:c[l],searcher:s}))}),a.length&&n.push({idx:o,item:c,matches:a})}),n}_findMatches({key:e,value:s,searcher:r}){if(!M(s))return[];let i=[];if(R(s))s.forEach(({v:n,i:c,n:o})=>{if(!M(n))return;const{isMatch:a,score:h,indices:l}=r.searchIn(n);a&&i.push({score:h,key:e,value:n,idx:c,norm:o,indices:l})});else{const{v:n,n:c}=s,{isMatch:o,score:a,indices:h}=r.searchIn(n);o&&i.push({score:a,key:e,value:n,norm:c,indices:h})}return i}}k.version="7.0.0";k.createIndex=we;k.parseIndex=at;k.config=d;k.parseQuery=Pe;Rt(xt);const Lt={threshold:.3},Le=t=>e=>{const s=new k(e,{keys:Object.keys(e[0]),...Lt,...t});return{type:"fuse",page:(r,i)=>e.slice(r*i,(r+1)*i),search:r=>s.search(r).map(({item:i})=>i),retrieve:r=>e.filter(i=>r.includes(i.key))}},Ct=Le(),Ce=({term:t,searcher:e=Ct})=>_e(({data:s})=>typeof e=="function"?t.length===0||(s==null?void 0:s.length)===0?{data:s,transformed:!1}:{data:e(s).search(t),transformed:!0}:{data:e.search(t),transformed:!0}),ke=({debounce:t=250,value:e,onChange:s,transformBefore:r})=>{const[i,n]=de.usePurePassthrough({onChange:s,value:e,initial:""}),{setTransform:c,deleteTransform:o}=y.useDataUtilContext(),a=y.useDebouncedCallback(c,t,[]),h=$e.useCallback(l=>{n(l),l.length===0?o("filter"):(r!=null&&(l=r(l)),a("filter",Ce({term:l})))},[n,r]);return{value:i,onChange:h}},Te=({children:t=s=>Fe.jsxRuntimeExports.jsx(y.Text$2,{placeholder:"Filter",...s}),...e})=>t(ke(e)),kt=Object.freeze(Object.defineProperty({__proto__:null,Column:y.Column,ColumnContext:y.ColumnContext,Core:y.Core,DataProvider:y.DataProvider,Filter:Te,Hover:y.Hover,ItemFrame:y.ItemFrame,List:y.List,Search:y.Search,Selector:y.Selector,selectValueIsZero:y.selectValueIsZero,useDataContext:y.useDataContext,useDataUtilContext:y.useDataUtilContext,useFilter:ke,useGetTransformedData:y.useGetTransformedData,useHoverContext:y.useHoverContext,useSearch:y.useSearch,useSelect:y.useSelect,useSelection:y.useSelection,useSelectionContext:y.useSelectionContext,useSelectionUtils:y.useSelectionUtils,useSetSourceData:y.useSetSourceData,useSourceData:y.useSourceData,useTransformedData:y.useTransformedData},Symbol.toStringTag,{value:"Module"}));exports.Filter=Te;exports.createFilterTransform=Ce;exports.external=kt;exports.fuseFilter=Le;exports.proxyMemo=_e;
@@ -1 +1 @@
1
- "use strict";const e=require("./Pack-ClLR2ywa.cjs"),r=Object.freeze(Object.defineProperty({__proto__:null,ALIGNMENTS:e.ALIGNMENTS,Center:e.Center,CoreCenter:e.CoreCenter,JUSTIFICATIONS:e.JUSTIFICATIONS,Pack:e.Pack,Space:e.Space,shouldReverse:e.shouldReverse},Symbol.toStringTag,{value:"Module"}));exports.external=r;
1
+ "use strict";const e=require("./Pack-CyaEXvnu.cjs"),r=Object.freeze(Object.defineProperty({__proto__:null,ALIGNMENTS:e.ALIGNMENTS,Center:e.Center,CoreCenter:e.CoreCenter,JUSTIFICATIONS:e.JUSTIFICATIONS,Pack:e.Pack,Space:e.Space,shouldReverse:e.shouldReverse},Symbol.toStringTag,{value:"Module"}));exports.external=r;