@standardbeagle/edit-db 0.3.205 → 0.3.207

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/editor.es.js CHANGED
@@ -1,70 +1,70 @@
1
1
  import * as u from "react";
2
- import A, { useMemo as ae, useDebugValue as Or, createElement as ua, useRef as Wt, useContext as Te, createContext as qt, forwardRef as da, useReducer as pa, Children as fa, isValidElement as ga, useState as Lt, useCallback as Un, useEffect as En, Component as ha } from "react";
3
- import { useQuery as jn, useQueryClient as ma, useMutation as Pr, QueryClient as ba, QueryClientProvider as ya } from "@tanstack/react-query";
2
+ import I, { useMemo as ie, useDebugValue as Or, createElement as fa, useRef as Wt, useContext as Te, createContext as qt, forwardRef as ga, useReducer as ha, Children as ma, isValidElement as ba, useState as Lt, useCallback as Un, useEffect as En, Component as ya } from "react";
3
+ import { useQuery as kn, useQueryClient as va, useMutation as Pr, QueryClient as wa, QueryClientProvider as xa } from "@tanstack/react-query";
4
4
  var ln = { exports: {} }, It = {};
5
- var jr;
6
- function va() {
7
- if (jr) return It;
8
- jr = 1;
9
- var e = A, t = /* @__PURE__ */ Symbol.for("react.element"), n = /* @__PURE__ */ Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
10
- function i(l, c, f) {
11
- var d, g = {}, y = null, b = null;
12
- f !== void 0 && (y = "" + f), c.key !== void 0 && (y = "" + c.key), c.ref !== void 0 && (b = c.ref);
13
- for (d in c) r.call(c, d) && !a.hasOwnProperty(d) && (g[d] = c[d]);
14
- if (l && l.defaultProps) for (d in c = l.defaultProps, c) g[d] === void 0 && (g[d] = c[d]);
15
- return { $$typeof: t, type: l, key: y, ref: b, props: g, _owner: o.current };
5
+ var kr;
6
+ function Sa() {
7
+ if (kr) return It;
8
+ kr = 1;
9
+ var e = I, t = /* @__PURE__ */ Symbol.for("react.element"), n = /* @__PURE__ */ Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
10
+ function i(l, c, p) {
11
+ var g, f = {}, b = null, y = null;
12
+ p !== void 0 && (b = "" + p), c.key !== void 0 && (b = "" + c.key), c.ref !== void 0 && (y = c.ref);
13
+ for (g in c) r.call(c, g) && !a.hasOwnProperty(g) && (f[g] = c[g]);
14
+ if (l && l.defaultProps) for (g in c = l.defaultProps, c) f[g] === void 0 && (f[g] = c[g]);
15
+ return { $$typeof: t, type: l, key: b, ref: y, props: f, _owner: o.current };
16
16
  }
17
17
  return It.Fragment = n, It.jsx = i, It.jsxs = i, It;
18
18
  }
19
19
  var Nt = {};
20
- var kr;
21
- function wa() {
22
- return kr || (kr = 1, process.env.NODE_ENV !== "production" && (function() {
23
- var e = A, t = /* @__PURE__ */ Symbol.for("react.element"), n = /* @__PURE__ */ Symbol.for("react.portal"), r = /* @__PURE__ */ Symbol.for("react.fragment"), o = /* @__PURE__ */ Symbol.for("react.strict_mode"), a = /* @__PURE__ */ Symbol.for("react.profiler"), i = /* @__PURE__ */ Symbol.for("react.provider"), l = /* @__PURE__ */ Symbol.for("react.context"), c = /* @__PURE__ */ Symbol.for("react.forward_ref"), f = /* @__PURE__ */ Symbol.for("react.suspense"), d = /* @__PURE__ */ Symbol.for("react.suspense_list"), g = /* @__PURE__ */ Symbol.for("react.memo"), y = /* @__PURE__ */ Symbol.for("react.lazy"), b = /* @__PURE__ */ Symbol.for("react.offscreen"), E = Symbol.iterator, S = "@@iterator";
24
- function $(s) {
20
+ var jr;
21
+ function Ca() {
22
+ return jr || (jr = 1, process.env.NODE_ENV !== "production" && (function() {
23
+ var e = I, t = /* @__PURE__ */ Symbol.for("react.element"), n = /* @__PURE__ */ Symbol.for("react.portal"), r = /* @__PURE__ */ Symbol.for("react.fragment"), o = /* @__PURE__ */ Symbol.for("react.strict_mode"), a = /* @__PURE__ */ Symbol.for("react.profiler"), i = /* @__PURE__ */ Symbol.for("react.provider"), l = /* @__PURE__ */ Symbol.for("react.context"), c = /* @__PURE__ */ Symbol.for("react.forward_ref"), p = /* @__PURE__ */ Symbol.for("react.suspense"), g = /* @__PURE__ */ Symbol.for("react.suspense_list"), f = /* @__PURE__ */ Symbol.for("react.memo"), b = /* @__PURE__ */ Symbol.for("react.lazy"), y = /* @__PURE__ */ Symbol.for("react.offscreen"), x = Symbol.iterator, S = "@@iterator";
24
+ function E(s) {
25
25
  if (s === null || typeof s != "object")
26
26
  return null;
27
- var h = E && s[E] || s[S];
27
+ var h = x && s[x] || s[S];
28
28
  return typeof h == "function" ? h : null;
29
29
  }
30
- var P = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
30
+ var k = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
31
31
  function C(s) {
32
32
  {
33
- for (var h = arguments.length, x = new Array(h > 1 ? h - 1 : 0), R = 1; R < h; R++)
34
- x[R - 1] = arguments[R];
35
- O("error", s, x);
33
+ for (var h = arguments.length, v = new Array(h > 1 ? h - 1 : 0), $ = 1; $ < h; $++)
34
+ v[$ - 1] = arguments[$];
35
+ O("error", s, v);
36
36
  }
37
37
  }
38
- function O(s, h, x) {
38
+ function O(s, h, v) {
39
39
  {
40
- var R = P.ReactDebugCurrentFrame, M = R.getStackAddendum();
41
- M !== "" && (h += "%s", x = x.concat([M]));
42
- var V = x.map(function(D) {
43
- return String(D);
40
+ var $ = k.ReactDebugCurrentFrame, H = $.getStackAddendum();
41
+ H !== "" && (h += "%s", v = v.concat([H]));
42
+ var q = v.map(function(A) {
43
+ return String(A);
44
44
  });
45
- V.unshift("Warning: " + h), Function.prototype.apply.call(console[s], console, V);
45
+ q.unshift("Warning: " + h), Function.prototype.apply.call(console[s], console, q);
46
46
  }
47
47
  }
48
- var j = !1, _ = !1, w = !1, v = !1, N = !1, Q;
49
- Q = /* @__PURE__ */ Symbol.for("react.module.reference");
50
- function re(s) {
51
- return !!(typeof s == "string" || typeof s == "function" || s === r || s === a || N || s === o || s === f || s === d || v || s === b || j || _ || w || typeof s == "object" && s !== null && (s.$$typeof === y || s.$$typeof === g || s.$$typeof === i || s.$$typeof === l || s.$$typeof === c || // This needs to include all possible module reference object
48
+ var P = !1, _ = !1, R = !1, w = !1, M = !1, G;
49
+ G = /* @__PURE__ */ Symbol.for("react.module.reference");
50
+ function D(s) {
51
+ return !!(typeof s == "string" || typeof s == "function" || s === r || s === a || M || s === o || s === p || s === g || w || s === y || P || _ || R || typeof s == "object" && s !== null && (s.$$typeof === b || s.$$typeof === f || s.$$typeof === i || s.$$typeof === l || s.$$typeof === c || // This needs to include all possible module reference object
52
52
  // types supported by any Flight configuration anywhere since
53
53
  // we don't know which Flight build this will end up being used
54
54
  // with.
55
- s.$$typeof === Q || s.getModuleId !== void 0));
55
+ s.$$typeof === G || s.getModuleId !== void 0));
56
56
  }
57
- function ge(s, h, x) {
58
- var R = s.displayName;
59
- if (R)
60
- return R;
61
- var M = h.displayName || h.name || "";
62
- return M !== "" ? x + "(" + M + ")" : x;
57
+ function Q(s, h, v) {
58
+ var $ = s.displayName;
59
+ if ($)
60
+ return $;
61
+ var H = h.displayName || h.name || "";
62
+ return H !== "" ? v + "(" + H + ")" : v;
63
63
  }
64
64
  function be(s) {
65
65
  return s.displayName || "Context";
66
66
  }
67
- function H(s) {
67
+ function z(s) {
68
68
  if (s == null)
69
69
  return null;
70
70
  if (typeof s.tag == "number" && C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
@@ -80,9 +80,9 @@ function wa() {
80
80
  return "Profiler";
81
81
  case o:
82
82
  return "StrictMode";
83
- case f:
83
+ case p:
84
84
  return "Suspense";
85
- case d:
85
+ case g:
86
86
  return "SuspenseList";
87
87
  }
88
88
  if (typeof s == "object")
@@ -91,17 +91,17 @@ function wa() {
91
91
  var h = s;
92
92
  return be(h) + ".Consumer";
93
93
  case i:
94
- var x = s;
95
- return be(x._context) + ".Provider";
94
+ var v = s;
95
+ return be(v._context) + ".Provider";
96
96
  case c:
97
- return ge(s, s.render, "ForwardRef");
98
- case g:
99
- var R = s.displayName || null;
100
- return R !== null ? R : H(s.type) || "Memo";
101
- case y: {
102
- var M = s, V = M._payload, D = M._init;
97
+ return Q(s, s.render, "ForwardRef");
98
+ case f:
99
+ var $ = s.displayName || null;
100
+ return $ !== null ? $ : z(s.type) || "Memo";
101
+ case b: {
102
+ var H = s, q = H._payload, A = H._init;
103
103
  try {
104
- return H(D(V));
104
+ return z(A(q));
105
105
  } catch {
106
106
  return null;
107
107
  }
@@ -109,14 +109,14 @@ function wa() {
109
109
  }
110
110
  return null;
111
111
  }
112
- var ie = Object.assign, ye = 0, $e, ve, Ae, se, xe, Se, q;
112
+ var se = Object.assign, ye = 0, $e, ve, Ae, le, xe, Se, Y;
113
113
  function Oe() {
114
114
  }
115
115
  Oe.__reactDisabledLog = !0;
116
- function ue() {
116
+ function de() {
117
117
  {
118
118
  if (ye === 0) {
119
- $e = console.log, ve = console.info, Ae = console.warn, se = console.error, xe = console.group, Se = console.groupCollapsed, q = console.groupEnd;
119
+ $e = console.log, ve = console.info, Ae = console.warn, le = console.error, xe = console.group, Se = console.groupCollapsed, Y = console.groupEnd;
120
120
  var s = {
121
121
  configurable: !0,
122
122
  enumerable: !0,
@@ -145,182 +145,182 @@ function wa() {
145
145
  writable: !0
146
146
  };
147
147
  Object.defineProperties(console, {
148
- log: ie({}, s, {
148
+ log: se({}, s, {
149
149
  value: $e
150
150
  }),
151
- info: ie({}, s, {
151
+ info: se({}, s, {
152
152
  value: ve
153
153
  }),
154
- warn: ie({}, s, {
154
+ warn: se({}, s, {
155
155
  value: Ae
156
156
  }),
157
- error: ie({}, s, {
158
- value: se
157
+ error: se({}, s, {
158
+ value: le
159
159
  }),
160
- group: ie({}, s, {
160
+ group: se({}, s, {
161
161
  value: xe
162
162
  }),
163
- groupCollapsed: ie({}, s, {
163
+ groupCollapsed: se({}, s, {
164
164
  value: Se
165
165
  }),
166
- groupEnd: ie({}, s, {
167
- value: q
166
+ groupEnd: se({}, s, {
167
+ value: Y
168
168
  })
169
169
  });
170
170
  }
171
171
  ye < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
172
172
  }
173
173
  }
174
- var oe = P.ReactCurrentDispatcher, Ce;
175
- function de(s, h, x) {
174
+ var ae = k.ReactCurrentDispatcher, Ce;
175
+ function pe(s, h, v) {
176
176
  {
177
177
  if (Ce === void 0)
178
178
  try {
179
179
  throw Error();
180
- } catch (M) {
181
- var R = M.stack.trim().match(/\n( *(at )?)/);
182
- Ce = R && R[1] || "";
180
+ } catch (H) {
181
+ var $ = H.stack.trim().match(/\n( *(at )?)/);
182
+ Ce = $ && $[1] || "";
183
183
  }
184
184
  return `
185
185
  ` + Ce + s;
186
186
  }
187
187
  }
188
- var le = !1, Ee;
188
+ var ce = !1, Ee;
189
189
  {
190
- var pe = typeof WeakMap == "function" ? WeakMap : Map;
191
- Ee = new pe();
190
+ var fe = typeof WeakMap == "function" ? WeakMap : Map;
191
+ Ee = new fe();
192
192
  }
193
- function Z(s, h) {
194
- if (!s || le)
193
+ function te(s, h) {
194
+ if (!s || ce)
195
195
  return "";
196
196
  {
197
- var x = Ee.get(s);
198
- if (x !== void 0)
199
- return x;
197
+ var v = Ee.get(s);
198
+ if (v !== void 0)
199
+ return v;
200
200
  }
201
- var R;
202
- le = !0;
203
- var M = Error.prepareStackTrace;
201
+ var $;
202
+ ce = !0;
203
+ var H = Error.prepareStackTrace;
204
204
  Error.prepareStackTrace = void 0;
205
- var V;
206
- V = oe.current, oe.current = null, ue();
205
+ var q;
206
+ q = ae.current, ae.current = null, de();
207
207
  try {
208
208
  if (h) {
209
- var D = function() {
209
+ var A = function() {
210
210
  throw Error();
211
211
  };
212
- if (Object.defineProperty(D.prototype, "props", {
212
+ if (Object.defineProperty(A.prototype, "props", {
213
213
  set: function() {
214
214
  throw Error();
215
215
  }
216
216
  }), typeof Reflect == "object" && Reflect.construct) {
217
217
  try {
218
- Reflect.construct(D, []);
219
- } catch (z) {
220
- R = z;
218
+ Reflect.construct(A, []);
219
+ } catch (W) {
220
+ $ = W;
221
221
  }
222
- Reflect.construct(s, [], D);
222
+ Reflect.construct(s, [], A);
223
223
  } else {
224
224
  try {
225
- D.call();
226
- } catch (z) {
227
- R = z;
225
+ A.call();
226
+ } catch (W) {
227
+ $ = W;
228
228
  }
229
- s.call(D.prototype);
229
+ s.call(A.prototype);
230
230
  }
231
231
  } else {
232
232
  try {
233
233
  throw Error();
234
- } catch (z) {
235
- R = z;
234
+ } catch (W) {
235
+ $ = W;
236
236
  }
237
237
  s();
238
238
  }
239
- } catch (z) {
240
- if (z && R && typeof z.stack == "string") {
241
- for (var F = z.stack.split(`
242
- `), J = R.stack.split(`
243
- `), Y = F.length - 1, K = J.length - 1; Y >= 1 && K >= 0 && F[Y] !== J[K]; )
244
- K--;
245
- for (; Y >= 1 && K >= 0; Y--, K--)
246
- if (F[Y] !== J[K]) {
247
- if (Y !== 1 || K !== 1)
239
+ } catch (W) {
240
+ if (W && $ && typeof W.stack == "string") {
241
+ for (var F = W.stack.split(`
242
+ `), Z = $.stack.split(`
243
+ `), K = F.length - 1, X = Z.length - 1; K >= 1 && X >= 0 && F[K] !== Z[X]; )
244
+ X--;
245
+ for (; K >= 1 && X >= 0; K--, X--)
246
+ if (F[K] !== Z[X]) {
247
+ if (K !== 1 || X !== 1)
248
248
  do
249
- if (Y--, K--, K < 0 || F[Y] !== J[K]) {
249
+ if (K--, X--, X < 0 || F[K] !== Z[X]) {
250
250
  var he = `
251
- ` + F[Y].replace(" at new ", " at ");
251
+ ` + F[K].replace(" at new ", " at ");
252
252
  return s.displayName && he.includes("<anonymous>") && (he = he.replace("<anonymous>", s.displayName)), typeof s == "function" && Ee.set(s, he), he;
253
253
  }
254
- while (Y >= 1 && K >= 0);
254
+ while (K >= 1 && X >= 0);
255
255
  break;
256
256
  }
257
257
  }
258
258
  } finally {
259
- le = !1, oe.current = V, Pe(), Error.prepareStackTrace = M;
259
+ ce = !1, ae.current = q, Pe(), Error.prepareStackTrace = H;
260
260
  }
261
- var Be = s ? s.displayName || s.name : "", Ne = Be ? de(Be) : "";
261
+ var Ve = s ? s.displayName || s.name : "", Ne = Ve ? pe(Ve) : "";
262
262
  return typeof s == "function" && Ee.set(s, Ne), Ne;
263
263
  }
264
- function nt(s, h, x) {
265
- return Z(s, !1);
264
+ function nt(s, h, v) {
265
+ return te(s, !1);
266
266
  }
267
267
  function rt(s) {
268
268
  var h = s.prototype;
269
269
  return !!(h && h.isReactComponent);
270
270
  }
271
- function He(s, h, x) {
271
+ function He(s, h, v) {
272
272
  if (s == null)
273
273
  return "";
274
274
  if (typeof s == "function")
275
- return Z(s, rt(s));
275
+ return te(s, rt(s));
276
276
  if (typeof s == "string")
277
- return de(s);
277
+ return pe(s);
278
278
  switch (s) {
279
- case f:
280
- return de("Suspense");
281
- case d:
282
- return de("SuspenseList");
279
+ case p:
280
+ return pe("Suspense");
281
+ case g:
282
+ return pe("SuspenseList");
283
283
  }
284
284
  if (typeof s == "object")
285
285
  switch (s.$$typeof) {
286
286
  case c:
287
287
  return nt(s.render);
288
- case g:
289
- return He(s.type, h, x);
290
- case y: {
291
- var R = s, M = R._payload, V = R._init;
288
+ case f:
289
+ return He(s.type, h, v);
290
+ case b: {
291
+ var $ = s, H = $._payload, q = $._init;
292
292
  try {
293
- return He(V(M), h, x);
293
+ return He(q(H), h, v);
294
294
  } catch {
295
295
  }
296
296
  }
297
297
  }
298
298
  return "";
299
299
  }
300
- var Ie = Object.prototype.hasOwnProperty, ot = {}, U = P.ReactDebugCurrentFrame;
300
+ var Ie = Object.prototype.hasOwnProperty, ot = {}, J = k.ReactDebugCurrentFrame;
301
301
  function at(s) {
302
302
  if (s) {
303
- var h = s._owner, x = He(s.type, s._source, h ? h.type : null);
304
- U.setExtraStackFrame(x);
303
+ var h = s._owner, v = He(s.type, s._source, h ? h.type : null);
304
+ J.setExtraStackFrame(v);
305
305
  } else
306
- U.setExtraStackFrame(null);
306
+ J.setExtraStackFrame(null);
307
307
  }
308
- function it(s, h, x, R, M) {
308
+ function it(s, h, v, $, H) {
309
309
  {
310
- var V = Function.call.bind(Ie);
311
- for (var D in s)
312
- if (V(s, D)) {
310
+ var q = Function.call.bind(Ie);
311
+ for (var A in s)
312
+ if (q(s, A)) {
313
313
  var F = void 0;
314
314
  try {
315
- if (typeof s[D] != "function") {
316
- var J = Error((R || "React class") + ": " + x + " type `" + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[D] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
317
- throw J.name = "Invariant Violation", J;
315
+ if (typeof s[A] != "function") {
316
+ var Z = Error(($ || "React class") + ": " + v + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
317
+ throw Z.name = "Invariant Violation", Z;
318
318
  }
319
- F = s[D](h, D, R, x, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
320
- } catch (Y) {
321
- F = Y;
319
+ F = s[A](h, A, $, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
320
+ } catch (K) {
321
+ F = K;
322
322
  }
323
- F && !(F instanceof Error) && (at(M), C("%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).", R || "React class", x, D, typeof F), at(null)), F instanceof Error && !(F.message in ot) && (ot[F.message] = !0, at(M), C("Failed %s type: %s", x, F.message), at(null));
323
+ F && !(F instanceof Error) && (at(H), C("%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).", $ || "React class", v, A, typeof F), at(null)), F instanceof Error && !(F.message in ot) && (ot[F.message] = !0, at(H), C("Failed %s type: %s", v, F.message), at(null));
324
324
  }
325
325
  }
326
326
  }
@@ -330,8 +330,8 @@ function wa() {
330
330
  }
331
331
  function Ut(s) {
332
332
  {
333
- var h = typeof Symbol == "function" && Symbol.toStringTag, x = h && s[Symbol.toStringTag] || s.constructor.name || "Object";
334
- return x;
333
+ var h = typeof Symbol == "function" && Symbol.toStringTag, v = h && s[Symbol.toStringTag] || s.constructor.name || "Object";
334
+ return v;
335
335
  }
336
336
  }
337
337
  function Kt(s) {
@@ -348,7 +348,7 @@ function wa() {
348
348
  if (Kt(s))
349
349
  return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ut(s)), Qt(s);
350
350
  }
351
- var Ot = P.ReactCurrentOwner, Pt = {
351
+ var Ot = k.ReactCurrentOwner, Pt = {
352
352
  key: !0,
353
353
  ref: !0,
354
354
  __self: !0,
@@ -375,37 +375,37 @@ function wa() {
375
375
  }
376
376
  function Mn(s, h) {
377
377
  {
378
- var x = function() {
378
+ var v = function() {
379
379
  Xt || (Xt = !0, C("%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)", h));
380
380
  };
381
- x.isReactWarning = !0, Object.defineProperty(s, "key", {
382
- get: x,
381
+ v.isReactWarning = !0, Object.defineProperty(s, "key", {
382
+ get: v,
383
383
  configurable: !0
384
384
  });
385
385
  }
386
386
  }
387
387
  function nn(s, h) {
388
388
  {
389
- var x = function() {
389
+ var v = function() {
390
390
  Zt || (Zt = !0, C("%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)", h));
391
391
  };
392
- x.isReactWarning = !0, Object.defineProperty(s, "ref", {
393
- get: x,
392
+ v.isReactWarning = !0, Object.defineProperty(s, "ref", {
393
+ get: v,
394
394
  configurable: !0
395
395
  });
396
396
  }
397
397
  }
398
- var Hn = function(s, h, x, R, M, V, D) {
398
+ var Hn = function(s, h, v, $, H, q, A) {
399
399
  var F = {
400
400
  // This tag allows us to uniquely identify this as a React Element
401
401
  $$typeof: t,
402
402
  // Built-in properties that belong on the element
403
403
  type: s,
404
404
  key: h,
405
- ref: x,
406
- props: D,
405
+ ref: v,
406
+ props: A,
407
407
  // Record the component responsible for creating this element.
408
- _owner: V
408
+ _owner: q
409
409
  };
410
410
  return F._store = {}, Object.defineProperty(F._store, "validated", {
411
411
  configurable: !1,
@@ -416,39 +416,39 @@ function wa() {
416
416
  configurable: !1,
417
417
  enumerable: !1,
418
418
  writable: !1,
419
- value: R
419
+ value: $
420
420
  }), Object.defineProperty(F, "_source", {
421
421
  configurable: !1,
422
422
  enumerable: !1,
423
423
  writable: !1,
424
- value: M
424
+ value: H
425
425
  }), Object.freeze && (Object.freeze(F.props), Object.freeze(F)), F;
426
426
  };
427
- function zn(s, h, x, R, M) {
427
+ function zn(s, h, v, $, H) {
428
428
  {
429
- var V, D = {}, F = null, J = null;
430
- x !== void 0 && (Jt(x), F = "" + x), tn(h) && (Jt(h.key), F = "" + h.key), en(h) && (J = h.ref, Ln(h, M));
431
- for (V in h)
432
- Ie.call(h, V) && !Pt.hasOwnProperty(V) && (D[V] = h[V]);
429
+ var q, A = {}, F = null, Z = null;
430
+ v !== void 0 && (Jt(v), F = "" + v), tn(h) && (Jt(h.key), F = "" + h.key), en(h) && (Z = h.ref, Ln(h, H));
431
+ for (q in h)
432
+ Ie.call(h, q) && !Pt.hasOwnProperty(q) && (A[q] = h[q]);
433
433
  if (s && s.defaultProps) {
434
- var Y = s.defaultProps;
435
- for (V in Y)
436
- D[V] === void 0 && (D[V] = Y[V]);
434
+ var K = s.defaultProps;
435
+ for (q in K)
436
+ A[q] === void 0 && (A[q] = K[q]);
437
437
  }
438
- if (F || J) {
439
- var K = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
440
- F && Mn(D, K), J && nn(D, K);
438
+ if (F || Z) {
439
+ var X = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
440
+ F && Mn(A, X), Z && nn(A, X);
441
441
  }
442
- return Hn(s, F, J, M, R, Ot.current, D);
442
+ return Hn(s, F, Z, H, $, Ot.current, A);
443
443
  }
444
444
  }
445
- var jt = P.ReactCurrentOwner, kt = P.ReactDebugCurrentFrame;
445
+ var kt = k.ReactCurrentOwner, jt = k.ReactDebugCurrentFrame;
446
446
  function ze(s) {
447
447
  if (s) {
448
- var h = s._owner, x = He(s.type, s._source, h ? h.type : null);
449
- kt.setExtraStackFrame(x);
448
+ var h = s._owner, v = He(s.type, s._source, h ? h.type : null);
449
+ jt.setExtraStackFrame(v);
450
450
  } else
451
- kt.setExtraStackFrame(null);
451
+ jt.setExtraStackFrame(null);
452
452
  }
453
453
  var lt;
454
454
  lt = !1;
@@ -457,8 +457,8 @@ function wa() {
457
457
  }
458
458
  function We() {
459
459
  {
460
- if (jt.current) {
461
- var s = H(jt.current.type);
460
+ if (kt.current) {
461
+ var s = z(kt.current.type);
462
462
  if (s)
463
463
  return `
464
464
 
@@ -475,10 +475,10 @@ Check the render method of \`` + s + "`.";
475
475
  {
476
476
  var h = We();
477
477
  if (!h) {
478
- var x = typeof s == "string" ? s : s.displayName || s.name;
479
- x && (h = `
478
+ var v = typeof s == "string" ? s : s.displayName || s.name;
479
+ v && (h = `
480
480
 
481
- Check the top-level render call using <` + x + ">.");
481
+ Check the top-level render call using <` + v + ">.");
482
482
  }
483
483
  return h;
484
484
  }
@@ -488,12 +488,12 @@ Check the top-level render call using <` + x + ">.");
488
488
  if (!s._store || s._store.validated || s.key != null)
489
489
  return;
490
490
  s._store.validated = !0;
491
- var x = on(h);
492
- if (rn[x])
491
+ var v = on(h);
492
+ if (rn[v])
493
493
  return;
494
- rn[x] = !0;
495
- var R = "";
496
- s && s._owner && s._owner !== jt.current && (R = " It was passed a child from " + H(s._owner.type) + "."), ze(s), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', x, R), ze(null);
494
+ rn[v] = !0;
495
+ var $ = "";
496
+ s && s._owner && s._owner !== kt.current && ($ = " It was passed a child from " + z(s._owner.type) + "."), ze(s), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, $), ze(null);
497
497
  }
498
498
  }
499
499
  function _t(s, h) {
@@ -501,17 +501,17 @@ Check the top-level render call using <` + x + ">.");
501
501
  if (typeof s != "object")
502
502
  return;
503
503
  if (st(s))
504
- for (var x = 0; x < s.length; x++) {
505
- var R = s[x];
506
- ct(R) && Tt(R, h);
504
+ for (var v = 0; v < s.length; v++) {
505
+ var $ = s[v];
506
+ ct($) && Tt($, h);
507
507
  }
508
508
  else if (ct(s))
509
509
  s._store && (s._store.validated = !0);
510
510
  else if (s) {
511
- var M = $(s);
512
- if (typeof M == "function" && M !== s.entries)
513
- for (var V = M.call(s), D; !(D = V.next()).done; )
514
- ct(D.value) && Tt(D.value, h);
511
+ var H = E(s);
512
+ if (typeof H == "function" && H !== s.entries)
513
+ for (var q = H.call(s), A; !(A = q.next()).done; )
514
+ ct(A.value) && Tt(A.value, h);
515
515
  }
516
516
  }
517
517
  }
@@ -520,32 +520,32 @@ Check the top-level render call using <` + x + ">.");
520
520
  var h = s.type;
521
521
  if (h == null || typeof h == "string")
522
522
  return;
523
- var x;
523
+ var v;
524
524
  if (typeof h == "function")
525
- x = h.propTypes;
525
+ v = h.propTypes;
526
526
  else if (typeof h == "object" && (h.$$typeof === c || // Note: Memo only checks outer props here.
527
527
  // Inner props are checked in the reconciler.
528
- h.$$typeof === g))
529
- x = h.propTypes;
528
+ h.$$typeof === f))
529
+ v = h.propTypes;
530
530
  else
531
531
  return;
532
- if (x) {
533
- var R = H(h);
534
- it(x, s.props, "prop", R, s);
532
+ if (v) {
533
+ var $ = z(h);
534
+ it(v, s.props, "prop", $, s);
535
535
  } else if (h.PropTypes !== void 0 && !lt) {
536
536
  lt = !0;
537
- var M = H(h);
538
- C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", M || "Unknown");
537
+ var H = z(h);
538
+ C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", H || "Unknown");
539
539
  }
540
540
  typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
541
541
  }
542
542
  }
543
543
  function sn(s) {
544
544
  {
545
- for (var h = Object.keys(s.props), x = 0; x < h.length; x++) {
546
- var R = h[x];
547
- if (R !== "children" && R !== "key") {
548
- ze(s), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", R), ze(null);
545
+ for (var h = Object.keys(s.props), v = 0; v < h.length; v++) {
546
+ var $ = h[v];
547
+ if ($ !== "children" && $ !== "key") {
548
+ ze(s), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", $), ze(null);
549
549
  break;
550
550
  }
551
551
  }
@@ -553,27 +553,27 @@ Check the top-level render call using <` + x + ">.");
553
553
  }
554
554
  }
555
555
  var Dt = {};
556
- function At(s, h, x, R, M, V) {
556
+ function At(s, h, v, $, H, q) {
557
557
  {
558
- var D = re(s);
559
- if (!D) {
558
+ var A = D(s);
559
+ if (!A) {
560
560
  var F = "";
561
561
  (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (F += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
562
- var J = Wn();
563
- J ? F += J : F += We();
564
- var Y;
565
- s === null ? Y = "null" : st(s) ? Y = "array" : s !== void 0 && s.$$typeof === t ? (Y = "<" + (H(s.type) || "Unknown") + " />", F = " Did you accidentally export a JSX literal instead of a component?") : Y = typeof s, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Y, F);
562
+ var Z = Wn();
563
+ Z ? F += Z : F += We();
564
+ var K;
565
+ s === null ? K = "null" : st(s) ? K = "array" : s !== void 0 && s.$$typeof === t ? (K = "<" + (z(s.type) || "Unknown") + " />", F = " Did you accidentally export a JSX literal instead of a component?") : K = typeof s, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", K, F);
566
566
  }
567
- var K = zn(s, h, x, M, V);
568
- if (K == null)
569
- return K;
570
- if (D) {
567
+ var X = zn(s, h, v, H, q);
568
+ if (X == null)
569
+ return X;
570
+ if (A) {
571
571
  var he = h.children;
572
572
  if (he !== void 0)
573
- if (R)
573
+ if ($)
574
574
  if (st(he)) {
575
- for (var Be = 0; Be < he.length; Be++)
576
- _t(he[Be], s);
575
+ for (var Ve = 0; Ve < he.length; Ve++)
576
+ _t(he[Ve], s);
577
577
  Object.freeze && Object.freeze(he);
578
578
  } else
579
579
  C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
@@ -581,11 +581,11 @@ Check the top-level render call using <` + x + ">.");
581
581
  _t(he, s);
582
582
  }
583
583
  if (Ie.call(h, "key")) {
584
- var Ne = H(s), z = Object.keys(h).filter(function(Gn) {
584
+ var Ne = z(s), W = Object.keys(h).filter(function(Gn) {
585
585
  return Gn !== "key";
586
- }), Fe = z.length > 0 ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}";
586
+ }), Fe = W.length > 0 ? "{key: someKey, " + W.join(": ..., ") + ": ...}" : "{key: someKey}";
587
587
  if (!Dt[Ne + Fe]) {
588
- var qn = z.length > 0 ? "{" + z.join(": ..., ") + ": ...}" : "{}";
588
+ var qn = W.length > 0 ? "{" + W.join(": ..., ") + ": ...}" : "{}";
589
589
  C(`A props object containing a "key" prop is being spread into JSX:
590
590
  let props = %s;
591
591
  <%s {...props} />
@@ -594,65 +594,65 @@ React keys must be passed directly to JSX without using spread:
594
594
  <%s key={someKey} {...props} />`, Fe, Ne, qn, Ne), Dt[Ne + Fe] = !0;
595
595
  }
596
596
  }
597
- return s === r ? sn(K) : an(K), K;
597
+ return s === r ? sn(X) : an(X), X;
598
598
  }
599
599
  }
600
- function Bn(s, h, x) {
601
- return At(s, h, x, !0);
600
+ function Vn(s, h, v) {
601
+ return At(s, h, v, !0);
602
602
  }
603
- function Vn(s, h, x) {
604
- return At(s, h, x, !1);
603
+ function Bn(s, h, v) {
604
+ return At(s, h, v, !1);
605
605
  }
606
- var _e = Vn, we = Bn;
606
+ var _e = Bn, we = Vn;
607
607
  Nt.Fragment = r, Nt.jsx = _e, Nt.jsxs = we;
608
608
  })()), Nt;
609
609
  }
610
610
  var Tr;
611
- function xa() {
612
- return Tr || (Tr = 1, process.env.NODE_ENV === "production" ? ln.exports = va() : ln.exports = wa()), ln.exports;
611
+ function Ea() {
612
+ return Tr || (Tr = 1, process.env.NODE_ENV === "production" ? ln.exports = Sa() : ln.exports = Ca()), ln.exports;
613
613
  }
614
- var p = xa(), ce = function() {
615
- return ce = Object.assign || function(t) {
614
+ var d = Ea(), ue = function() {
615
+ return ue = Object.assign || function(t) {
616
616
  for (var n, r = 1, o = arguments.length; r < o; r++) {
617
617
  n = arguments[r];
618
618
  for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
619
619
  }
620
620
  return t;
621
- }, ce.apply(this, arguments);
621
+ }, ue.apply(this, arguments);
622
622
  };
623
623
  function ht(e, t, n) {
624
624
  if (n || arguments.length === 2) for (var r = 0, o = t.length, a; r < o; r++)
625
625
  (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
626
626
  return e.concat(a || Array.prototype.slice.call(t));
627
627
  }
628
- function Sa(e) {
628
+ function Ra(e) {
629
629
  var t = /* @__PURE__ */ Object.create(null);
630
630
  return function(n) {
631
631
  return t[n] === void 0 && (t[n] = e(n)), t[n];
632
632
  };
633
633
  }
634
- var Ca = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Ea = /* @__PURE__ */ Sa(
634
+ var $a = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Oa = /* @__PURE__ */ Ra(
635
635
  function(e) {
636
- return Ca.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
636
+ return $a.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
637
637
  }
638
638
  /* Z+1 */
639
- ), G = "-ms-", Mt = "-moz-", B = "-webkit-", fo = "comm", kn = "rule", hr = "decl", Ra = "@import", go = "@keyframes", $a = "@layer", ho = Math.abs, mr = String.fromCharCode, ar = Object.assign;
640
- function Oa(e, t) {
641
- return ne(e, 0) ^ 45 ? (((t << 2 ^ ne(e, 0)) << 2 ^ ne(e, 1)) << 2 ^ ne(e, 2)) << 2 ^ ne(e, 3) : 0;
639
+ ), U = "-ms-", Mt = "-moz-", B = "-webkit-", ho = "comm", jn = "rule", hr = "decl", Pa = "@import", mo = "@keyframes", ka = "@layer", bo = Math.abs, mr = String.fromCharCode, ar = Object.assign;
640
+ function ja(e, t) {
641
+ return oe(e, 0) ^ 45 ? (((t << 2 ^ oe(e, 0)) << 2 ^ oe(e, 1)) << 2 ^ oe(e, 2)) << 2 ^ oe(e, 3) : 0;
642
642
  }
643
- function mo(e) {
643
+ function yo(e) {
644
644
  return e.trim();
645
645
  }
646
646
  function Le(e, t) {
647
647
  return (e = t.exec(e)) ? e[0] : e;
648
648
  }
649
- function I(e, t, n) {
649
+ function N(e, t, n) {
650
650
  return e.replace(t, n);
651
651
  }
652
652
  function bn(e, t, n) {
653
653
  return e.indexOf(t, n);
654
654
  }
655
- function ne(e, t) {
655
+ function oe(e, t) {
656
656
  return e.charCodeAt(t) | 0;
657
657
  }
658
658
  function mt(e, t, n) {
@@ -661,13 +661,13 @@ function mt(e, t, n) {
661
661
  function De(e) {
662
662
  return e.length;
663
663
  }
664
- function bo(e) {
664
+ function vo(e) {
665
665
  return e.length;
666
666
  }
667
667
  function Ft(e, t) {
668
668
  return t.push(e), e;
669
669
  }
670
- function Pa(e, t) {
670
+ function Ta(e, t) {
671
671
  return e.map(t).join("");
672
672
  }
673
673
  function _r(e, t) {
@@ -675,7 +675,7 @@ function _r(e, t) {
675
675
  return !Le(n, t);
676
676
  });
677
677
  }
678
- var Tn = 1, bt = 1, yo = 0, Re = 0, X = 0, Et = "";
678
+ var Tn = 1, bt = 1, wo = 0, Re = 0, ee = 0, Et = "";
679
679
  function _n(e, t, n, r, o, a, i, l) {
680
680
  return { value: e, root: t, parent: n, type: r, props: o, children: a, line: Tn, column: bt, length: i, return: "", siblings: l };
681
681
  }
@@ -687,17 +687,17 @@ function pt(e) {
687
687
  e = qe(e.root, { children: [e] });
688
688
  Ft(e, e.siblings);
689
689
  }
690
- function ja() {
691
- return X;
690
+ function _a() {
691
+ return ee;
692
692
  }
693
- function ka() {
694
- return X = Re > 0 ? ne(Et, --Re) : 0, bt--, X === 10 && (bt = 1, Tn--), X;
693
+ function Da() {
694
+ return ee = Re > 0 ? oe(Et, --Re) : 0, bt--, ee === 10 && (bt = 1, Tn--), ee;
695
695
  }
696
- function ke() {
697
- return X = Re < yo ? ne(Et, Re++) : 0, bt++, X === 10 && (bt = 1, Tn++), X;
696
+ function je() {
697
+ return ee = Re < wo ? oe(Et, Re++) : 0, bt++, ee === 10 && (bt = 1, Tn++), ee;
698
698
  }
699
699
  function Qe() {
700
- return ne(Et, Re);
700
+ return oe(Et, Re);
701
701
  }
702
702
  function yn() {
703
703
  return Re;
@@ -743,35 +743,35 @@ function ir(e) {
743
743
  }
744
744
  return 0;
745
745
  }
746
- function Ta(e) {
747
- return Tn = bt = 1, yo = De(Et = e), Re = 0, [];
746
+ function Aa(e) {
747
+ return Tn = bt = 1, wo = De(Et = e), Re = 0, [];
748
748
  }
749
- function _a(e) {
749
+ function Ia(e) {
750
750
  return Et = "", e;
751
751
  }
752
752
  function Kn(e) {
753
- return mo(Dn(Re - 1, sr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
753
+ return yo(Dn(Re - 1, sr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
754
754
  }
755
- function Da(e) {
756
- for (; (X = Qe()) && X < 33; )
757
- ke();
758
- return ir(e) > 2 || ir(X) > 3 ? "" : " ";
755
+ function Na(e) {
756
+ for (; (ee = Qe()) && ee < 33; )
757
+ je();
758
+ return ir(e) > 2 || ir(ee) > 3 ? "" : " ";
759
759
  }
760
- function Aa(e, t) {
761
- for (; --t && ke() && !(X < 48 || X > 102 || X > 57 && X < 65 || X > 70 && X < 97); )
760
+ function Fa(e, t) {
761
+ for (; --t && je() && !(ee < 48 || ee > 102 || ee > 57 && ee < 65 || ee > 70 && ee < 97); )
762
762
  ;
763
- return Dn(e, yn() + (t < 6 && Qe() == 32 && ke() == 32));
763
+ return Dn(e, yn() + (t < 6 && Qe() == 32 && je() == 32));
764
764
  }
765
765
  function sr(e) {
766
- for (; ke(); )
767
- switch (X) {
766
+ for (; je(); )
767
+ switch (ee) {
768
768
  // ] ) " '
769
769
  case e:
770
770
  return Re;
771
771
  // " '
772
772
  case 34:
773
773
  case 39:
774
- e !== 34 && e !== 39 && sr(X);
774
+ e !== 34 && e !== 39 && sr(ee);
775
775
  break;
776
776
  // (
777
777
  case 40:
@@ -779,65 +779,65 @@ function sr(e) {
779
779
  break;
780
780
  // \
781
781
  case 92:
782
- ke();
782
+ je();
783
783
  break;
784
784
  }
785
785
  return Re;
786
786
  }
787
- function Ia(e, t) {
788
- for (; ke() && e + X !== 57; )
789
- if (e + X === 84 && Qe() === 47)
787
+ function La(e, t) {
788
+ for (; je() && e + ee !== 57; )
789
+ if (e + ee === 84 && Qe() === 47)
790
790
  break;
791
- return "/*" + Dn(t, Re - 1) + "*" + mr(e === 47 ? e : ke());
791
+ return "/*" + Dn(t, Re - 1) + "*" + mr(e === 47 ? e : je());
792
792
  }
793
- function Na(e) {
793
+ function Ma(e) {
794
794
  for (; !ir(Qe()); )
795
- ke();
795
+ je();
796
796
  return Dn(e, Re);
797
797
  }
798
- function Fa(e) {
799
- return _a(vn("", null, null, null, [""], e = Ta(e), 0, [0], e));
798
+ function Ha(e) {
799
+ return Ia(vn("", null, null, null, [""], e = Aa(e), 0, [0], e));
800
800
  }
801
801
  function vn(e, t, n, r, o, a, i, l, c) {
802
- for (var f = 0, d = 0, g = i, y = 0, b = 0, E = 0, S = 1, $ = 1, P = 1, C = 0, O = "", j = o, _ = a, w = r, v = O; $; )
803
- switch (E = C, C = ke()) {
802
+ for (var p = 0, g = 0, f = i, b = 0, y = 0, x = 0, S = 1, E = 1, k = 1, C = 0, O = "", P = o, _ = a, R = r, w = O; E; )
803
+ switch (x = C, C = je()) {
804
804
  // (
805
805
  case 40:
806
- if (E != 108 && ne(v, g - 1) == 58) {
807
- bn(v += I(Kn(C), "&", "&\f"), "&\f", ho(f ? l[f - 1] : 0)) != -1 && (P = -1);
806
+ if (x != 108 && oe(w, f - 1) == 58) {
807
+ bn(w += N(Kn(C), "&", "&\f"), "&\f", bo(p ? l[p - 1] : 0)) != -1 && (k = -1);
808
808
  break;
809
809
  }
810
810
  // " ' [
811
811
  case 34:
812
812
  case 39:
813
813
  case 91:
814
- v += Kn(C);
814
+ w += Kn(C);
815
815
  break;
816
816
  // \t \n \r \s
817
817
  case 9:
818
818
  case 10:
819
819
  case 13:
820
820
  case 32:
821
- v += Da(E);
821
+ w += Na(x);
822
822
  break;
823
823
  // \
824
824
  case 92:
825
- v += Aa(yn() - 1, 7);
825
+ w += Fa(yn() - 1, 7);
826
826
  continue;
827
827
  // /
828
828
  case 47:
829
829
  switch (Qe()) {
830
830
  case 42:
831
831
  case 47:
832
- Ft(La(Ia(ke(), yn()), t, n, c), c);
832
+ Ft(za(La(je(), yn()), t, n, c), c);
833
833
  break;
834
834
  default:
835
- v += "/";
835
+ w += "/";
836
836
  }
837
837
  break;
838
838
  // {
839
839
  case 123 * S:
840
- l[f++] = De(v) * P;
840
+ l[p++] = De(w) * k;
841
841
  // } ; \0
842
842
  case 125 * S:
843
843
  case 59:
@@ -846,78 +846,78 @@ function vn(e, t, n, r, o, a, i, l, c) {
846
846
  // \0 }
847
847
  case 0:
848
848
  case 125:
849
- $ = 0;
849
+ E = 0;
850
850
  // ;
851
- case 59 + d:
852
- P == -1 && (v = I(v, /\f/g, "")), b > 0 && De(v) - g && Ft(b > 32 ? Ar(v + ";", r, n, g - 1, c) : Ar(I(v, " ", "") + ";", r, n, g - 2, c), c);
851
+ case 59 + g:
852
+ k == -1 && (w = N(w, /\f/g, "")), y > 0 && De(w) - f && Ft(y > 32 ? Ar(w + ";", r, n, f - 1, c) : Ar(N(w, " ", "") + ";", r, n, f - 2, c), c);
853
853
  break;
854
854
  // @ ;
855
855
  case 59:
856
- v += ";";
856
+ w += ";";
857
857
  // { rule/at-rule
858
858
  default:
859
- if (Ft(w = Dr(v, t, n, f, d, o, l, O, j = [], _ = [], g, a), a), C === 123)
860
- if (d === 0)
861
- vn(v, t, w, w, j, a, g, l, _);
859
+ if (Ft(R = Dr(w, t, n, p, g, o, l, O, P = [], _ = [], f, a), a), C === 123)
860
+ if (g === 0)
861
+ vn(w, t, R, R, P, a, f, l, _);
862
862
  else
863
- switch (y === 99 && ne(v, 3) === 110 ? 100 : y) {
863
+ switch (b === 99 && oe(w, 3) === 110 ? 100 : b) {
864
864
  // d l m s
865
865
  case 100:
866
866
  case 108:
867
867
  case 109:
868
868
  case 115:
869
- vn(e, w, w, r && Ft(Dr(e, w, w, 0, 0, o, l, O, o, j = [], g, _), _), o, _, g, l, r ? j : _);
869
+ vn(e, R, R, r && Ft(Dr(e, R, R, 0, 0, o, l, O, o, P = [], f, _), _), o, _, f, l, r ? P : _);
870
870
  break;
871
871
  default:
872
- vn(v, w, w, w, [""], _, 0, l, _);
872
+ vn(w, R, R, R, [""], _, 0, l, _);
873
873
  }
874
874
  }
875
- f = d = b = 0, S = P = 1, O = v = "", g = i;
875
+ p = g = y = 0, S = k = 1, O = w = "", f = i;
876
876
  break;
877
877
  // :
878
878
  case 58:
879
- g = 1 + De(v), b = E;
879
+ f = 1 + De(w), y = x;
880
880
  default:
881
881
  if (S < 1) {
882
882
  if (C == 123)
883
883
  --S;
884
- else if (C == 125 && S++ == 0 && ka() == 125)
884
+ else if (C == 125 && S++ == 0 && Da() == 125)
885
885
  continue;
886
886
  }
887
- switch (v += mr(C), C * S) {
887
+ switch (w += mr(C), C * S) {
888
888
  // &
889
889
  case 38:
890
- P = d > 0 ? 1 : (v += "\f", -1);
890
+ k = g > 0 ? 1 : (w += "\f", -1);
891
891
  break;
892
892
  // ,
893
893
  case 44:
894
- l[f++] = (De(v) - 1) * P, P = 1;
894
+ l[p++] = (De(w) - 1) * k, k = 1;
895
895
  break;
896
896
  // @
897
897
  case 64:
898
- Qe() === 45 && (v += Kn(ke())), y = Qe(), d = g = De(O = v += Na(yn())), C++;
898
+ Qe() === 45 && (w += Kn(je())), b = Qe(), g = f = De(O = w += Ma(yn())), C++;
899
899
  break;
900
900
  // -
901
901
  case 45:
902
- E === 45 && De(v) == 2 && (S = 0);
902
+ x === 45 && De(w) == 2 && (S = 0);
903
903
  }
904
904
  }
905
905
  return a;
906
906
  }
907
- function Dr(e, t, n, r, o, a, i, l, c, f, d, g) {
908
- for (var y = o - 1, b = o === 0 ? a : [""], E = bo(b), S = 0, $ = 0, P = 0; S < r; ++S)
909
- for (var C = 0, O = mt(e, y + 1, y = ho($ = i[S])), j = e; C < E; ++C)
910
- (j = mo($ > 0 ? b[C] + " " + O : I(O, /&\f/g, b[C]))) && (c[P++] = j);
911
- return _n(e, t, n, o === 0 ? kn : l, c, f, d, g);
907
+ function Dr(e, t, n, r, o, a, i, l, c, p, g, f) {
908
+ for (var b = o - 1, y = o === 0 ? a : [""], x = vo(y), S = 0, E = 0, k = 0; S < r; ++S)
909
+ for (var C = 0, O = mt(e, b + 1, b = bo(E = i[S])), P = e; C < x; ++C)
910
+ (P = yo(E > 0 ? y[C] + " " + O : N(O, /&\f/g, y[C]))) && (c[k++] = P);
911
+ return _n(e, t, n, o === 0 ? jn : l, c, p, g, f);
912
912
  }
913
- function La(e, t, n, r) {
914
- return _n(e, t, n, fo, mr(ja()), mt(e, 2, -2), 0, r);
913
+ function za(e, t, n, r) {
914
+ return _n(e, t, n, ho, mr(_a()), mt(e, 2, -2), 0, r);
915
915
  }
916
916
  function Ar(e, t, n, r, o) {
917
917
  return _n(e, t, n, hr, mt(e, 0, r), mt(e, r + 1, -1), r, o);
918
918
  }
919
- function vo(e, t, n) {
920
- switch (Oa(e, t)) {
919
+ function xo(e, t, n) {
920
+ switch (ja(e, t)) {
921
921
  // color-adjust
922
922
  case 5103:
923
923
  return B + "print-" + e + e;
@@ -960,85 +960,85 @@ function vo(e, t, n) {
960
960
  case 4810:
961
961
  case 6968:
962
962
  case 2756:
963
- return B + e + Mt + e + G + e + e;
963
+ return B + e + Mt + e + U + e + e;
964
964
  // writing-mode
965
965
  case 5936:
966
- switch (ne(e, t + 11)) {
966
+ switch (oe(e, t + 11)) {
967
967
  // vertical-l(r)
968
968
  case 114:
969
- return B + e + G + I(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
969
+ return B + e + U + N(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
970
970
  // vertical-r(l)
971
971
  case 108:
972
- return B + e + G + I(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
972
+ return B + e + U + N(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
973
973
  // horizontal(-)tb
974
974
  case 45:
975
- return B + e + G + I(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
975
+ return B + e + U + N(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
976
976
  }
977
977
  // flex, flex-direction, scroll-snap-type, writing-mode
978
978
  case 6828:
979
979
  case 4268:
980
980
  case 2903:
981
- return B + e + G + e + e;
981
+ return B + e + U + e + e;
982
982
  // order
983
983
  case 6165:
984
- return B + e + G + "flex-" + e + e;
984
+ return B + e + U + "flex-" + e + e;
985
985
  // align-items
986
986
  case 5187:
987
- return B + e + I(e, /(\w+).+(:[^]+)/, B + "box-$1$2" + G + "flex-$1$2") + e;
987
+ return B + e + N(e, /(\w+).+(:[^]+)/, B + "box-$1$2" + U + "flex-$1$2") + e;
988
988
  // align-self
989
989
  case 5443:
990
- return B + e + G + "flex-item-" + I(e, /flex-|-self/g, "") + (Le(e, /flex-|baseline/) ? "" : G + "grid-row-" + I(e, /flex-|-self/g, "")) + e;
990
+ return B + e + U + "flex-item-" + N(e, /flex-|-self/g, "") + (Le(e, /flex-|baseline/) ? "" : U + "grid-row-" + N(e, /flex-|-self/g, "")) + e;
991
991
  // align-content
992
992
  case 4675:
993
- return B + e + G + "flex-line-pack" + I(e, /align-content|flex-|-self/g, "") + e;
993
+ return B + e + U + "flex-line-pack" + N(e, /align-content|flex-|-self/g, "") + e;
994
994
  // flex-shrink
995
995
  case 5548:
996
- return B + e + G + I(e, "shrink", "negative") + e;
996
+ return B + e + U + N(e, "shrink", "negative") + e;
997
997
  // flex-basis
998
998
  case 5292:
999
- return B + e + G + I(e, "basis", "preferred-size") + e;
999
+ return B + e + U + N(e, "basis", "preferred-size") + e;
1000
1000
  // flex-grow
1001
1001
  case 6060:
1002
- return B + "box-" + I(e, "-grow", "") + B + e + G + I(e, "grow", "positive") + e;
1002
+ return B + "box-" + N(e, "-grow", "") + B + e + U + N(e, "grow", "positive") + e;
1003
1003
  // transition
1004
1004
  case 4554:
1005
- return B + I(e, /([^-])(transform)/g, "$1" + B + "$2") + e;
1005
+ return B + N(e, /([^-])(transform)/g, "$1" + B + "$2") + e;
1006
1006
  // cursor
1007
1007
  case 6187:
1008
- return I(I(I(e, /(zoom-|grab)/, B + "$1"), /(image-set)/, B + "$1"), e, "") + e;
1008
+ return N(N(N(e, /(zoom-|grab)/, B + "$1"), /(image-set)/, B + "$1"), e, "") + e;
1009
1009
  // background, background-image
1010
1010
  case 5495:
1011
1011
  case 3959:
1012
- return I(e, /(image-set\([^]*)/, B + "$1$`$1");
1012
+ return N(e, /(image-set\([^]*)/, B + "$1$`$1");
1013
1013
  // justify-content
1014
1014
  case 4968:
1015
- return I(I(e, /(.+:)(flex-)?(.*)/, B + "box-pack:$3" + G + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + B + e + e;
1015
+ return N(N(e, /(.+:)(flex-)?(.*)/, B + "box-pack:$3" + U + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + B + e + e;
1016
1016
  // justify-self
1017
1017
  case 4200:
1018
- if (!Le(e, /flex-|baseline/)) return G + "grid-column-align" + mt(e, t) + e;
1018
+ if (!Le(e, /flex-|baseline/)) return U + "grid-column-align" + mt(e, t) + e;
1019
1019
  break;
1020
1020
  // grid-template-(columns|rows)
1021
1021
  case 2592:
1022
1022
  case 3360:
1023
- return G + I(e, "template-", "") + e;
1023
+ return U + N(e, "template-", "") + e;
1024
1024
  // grid-(row|column)-start
1025
1025
  case 4384:
1026
1026
  case 3616:
1027
1027
  return n && n.some(function(r, o) {
1028
1028
  return t = o, Le(r.props, /grid-\w+-end/);
1029
- }) ? ~bn(e + (n = n[t].value), "span", 0) ? e : G + I(e, "-start", "") + e + G + "grid-row-span:" + (~bn(n, "span", 0) ? Le(n, /\d+/) : +Le(n, /\d+/) - +Le(e, /\d+/)) + ";" : G + I(e, "-start", "") + e;
1029
+ }) ? ~bn(e + (n = n[t].value), "span", 0) ? e : U + N(e, "-start", "") + e + U + "grid-row-span:" + (~bn(n, "span", 0) ? Le(n, /\d+/) : +Le(n, /\d+/) - +Le(e, /\d+/)) + ";" : U + N(e, "-start", "") + e;
1030
1030
  // grid-(row|column)-end
1031
1031
  case 4896:
1032
1032
  case 4128:
1033
1033
  return n && n.some(function(r) {
1034
1034
  return Le(r.props, /grid-\w+-start/);
1035
- }) ? e : G + I(I(e, "-end", "-span"), "span ", "") + e;
1035
+ }) ? e : U + N(N(e, "-end", "-span"), "span ", "") + e;
1036
1036
  // (margin|padding)-inline-(start|end)
1037
1037
  case 4095:
1038
1038
  case 3583:
1039
1039
  case 4068:
1040
1040
  case 2532:
1041
- return I(e, /(.+)-inline(.+)/, B + "$1$2") + e;
1041
+ return N(e, /(.+)-inline(.+)/, B + "$1$2") + e;
1042
1042
  // (min|max)?(width|height|inline-size|block-size)
1043
1043
  case 8116:
1044
1044
  case 7059:
@@ -1053,39 +1053,39 @@ function vo(e, t, n) {
1053
1053
  case 5021:
1054
1054
  case 4765:
1055
1055
  if (De(e) - 1 - t > 6)
1056
- switch (ne(e, t + 1)) {
1056
+ switch (oe(e, t + 1)) {
1057
1057
  // (m)ax-content, (m)in-content
1058
1058
  case 109:
1059
- if (ne(e, t + 4) !== 45)
1059
+ if (oe(e, t + 4) !== 45)
1060
1060
  break;
1061
1061
  // (f)ill-available, (f)it-content
1062
1062
  case 102:
1063
- return I(e, /(.+:)(.+)-([^]+)/, "$1" + B + "$2-$3$1" + Mt + (ne(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
1063
+ return N(e, /(.+:)(.+)-([^]+)/, "$1" + B + "$2-$3$1" + Mt + (oe(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
1064
1064
  // (s)tretch
1065
1065
  case 115:
1066
- return ~bn(e, "stretch", 0) ? vo(I(e, "stretch", "fill-available"), t, n) + e : e;
1066
+ return ~bn(e, "stretch", 0) ? xo(N(e, "stretch", "fill-available"), t, n) + e : e;
1067
1067
  }
1068
1068
  break;
1069
1069
  // grid-(column|row)
1070
1070
  case 5152:
1071
1071
  case 5920:
1072
- return I(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, o, a, i, l, c, f) {
1073
- return G + o + ":" + a + f + (i ? G + o + "-span:" + (l ? c : +c - +a) + f : "") + e;
1072
+ return N(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, o, a, i, l, c, p) {
1073
+ return U + o + ":" + a + p + (i ? U + o + "-span:" + (l ? c : +c - +a) + p : "") + e;
1074
1074
  });
1075
1075
  // position: sticky
1076
1076
  case 4949:
1077
- if (ne(e, t + 6) === 121)
1078
- return I(e, ":", ":" + B) + e;
1077
+ if (oe(e, t + 6) === 121)
1078
+ return N(e, ":", ":" + B) + e;
1079
1079
  break;
1080
1080
  // display: (flex|inline-flex|grid|inline-grid)
1081
1081
  case 6444:
1082
- switch (ne(e, ne(e, 14) === 45 ? 18 : 11)) {
1082
+ switch (oe(e, oe(e, 14) === 45 ? 18 : 11)) {
1083
1083
  // (inline-)?fle(x)
1084
1084
  case 120:
1085
- return I(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + B + (ne(e, 14) === 45 ? "inline-" : "") + "box$3$1" + B + "$2$3$1" + G + "$2box$3") + e;
1085
+ return N(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + B + (oe(e, 14) === 45 ? "inline-" : "") + "box$3$1" + B + "$2$3$1" + U + "$2box$3") + e;
1086
1086
  // (inline-)?gri(d)
1087
1087
  case 100:
1088
- return I(e, ":", ":" + G) + e;
1088
+ return N(e, ":", ":" + U) + e;
1089
1089
  }
1090
1090
  break;
1091
1091
  // scroll-margin, scroll-margin-(top|right|bottom|left)
@@ -1094,7 +1094,7 @@ function vo(e, t, n) {
1094
1094
  case 2135:
1095
1095
  case 3927:
1096
1096
  case 2391:
1097
- return I(e, "scroll-", "scroll-snap-") + e;
1097
+ return N(e, "scroll-", "scroll-snap-") + e;
1098
1098
  }
1099
1099
  return e;
1100
1100
  }
@@ -1103,62 +1103,62 @@ function Rn(e, t) {
1103
1103
  n += t(e[r], r, e, t) || "";
1104
1104
  return n;
1105
1105
  }
1106
- function Ma(e, t, n, r) {
1106
+ function Wa(e, t, n, r) {
1107
1107
  switch (e.type) {
1108
- case $a:
1108
+ case ka:
1109
1109
  if (e.children.length) break;
1110
- case Ra:
1110
+ case Pa:
1111
1111
  case hr:
1112
1112
  return e.return = e.return || e.value;
1113
- case fo:
1113
+ case ho:
1114
1114
  return "";
1115
- case go:
1115
+ case mo:
1116
1116
  return e.return = e.value + "{" + Rn(e.children, r) + "}";
1117
- case kn:
1117
+ case jn:
1118
1118
  if (!De(e.value = e.props.join(","))) return "";
1119
1119
  }
1120
1120
  return De(n = Rn(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
1121
1121
  }
1122
- function Ha(e) {
1123
- var t = bo(e);
1122
+ function Va(e) {
1123
+ var t = vo(e);
1124
1124
  return function(n, r, o, a) {
1125
1125
  for (var i = "", l = 0; l < t; l++)
1126
1126
  i += e[l](n, r, o, a) || "";
1127
1127
  return i;
1128
1128
  };
1129
1129
  }
1130
- function za(e) {
1130
+ function Ba(e) {
1131
1131
  return function(t) {
1132
1132
  t.root || (t = t.return) && e(t);
1133
1133
  };
1134
1134
  }
1135
- function Wa(e, t, n, r) {
1135
+ function qa(e, t, n, r) {
1136
1136
  if (e.length > -1 && !e.return)
1137
1137
  switch (e.type) {
1138
1138
  case hr:
1139
- e.return = vo(e.value, e.length, n);
1139
+ e.return = xo(e.value, e.length, n);
1140
1140
  return;
1141
- case go:
1142
- return Rn([qe(e, { value: I(e.value, "@", "@" + B) })], r);
1143
- case kn:
1141
+ case mo:
1142
+ return Rn([qe(e, { value: N(e.value, "@", "@" + B) })], r);
1143
+ case jn:
1144
1144
  if (e.length)
1145
- return Pa(n = e.props, function(o) {
1145
+ return Ta(n = e.props, function(o) {
1146
1146
  switch (Le(o, r = /(::plac\w+|:read-\w+)/)) {
1147
1147
  // :read-(only|write)
1148
1148
  case ":read-only":
1149
1149
  case ":read-write":
1150
- pt(qe(e, { props: [I(o, /:(read-\w+)/, ":" + Mt + "$1")] })), pt(qe(e, { props: [o] })), ar(e, { props: _r(n, r) });
1150
+ pt(qe(e, { props: [N(o, /:(read-\w+)/, ":" + Mt + "$1")] })), pt(qe(e, { props: [o] })), ar(e, { props: _r(n, r) });
1151
1151
  break;
1152
1152
  // :placeholder
1153
1153
  case "::placeholder":
1154
- pt(qe(e, { props: [I(o, /:(plac\w+)/, ":" + B + "input-$1")] })), pt(qe(e, { props: [I(o, /:(plac\w+)/, ":" + Mt + "$1")] })), pt(qe(e, { props: [I(o, /:(plac\w+)/, G + "input-$1")] })), pt(qe(e, { props: [o] })), ar(e, { props: _r(n, r) });
1154
+ pt(qe(e, { props: [N(o, /:(plac\w+)/, ":" + B + "input-$1")] })), pt(qe(e, { props: [N(o, /:(plac\w+)/, ":" + Mt + "$1")] })), pt(qe(e, { props: [N(o, /:(plac\w+)/, U + "input-$1")] })), pt(qe(e, { props: [o] })), ar(e, { props: _r(n, r) });
1155
1155
  break;
1156
1156
  }
1157
1157
  return "";
1158
1158
  });
1159
1159
  }
1160
1160
  }
1161
- var Ba = {
1161
+ var Ga = {
1162
1162
  animationIterationCount: 1,
1163
1163
  aspectRatio: 1,
1164
1164
  borderImageOutset: 1,
@@ -1206,8 +1206,8 @@ var Ba = {
1206
1206
  strokeMiterlimit: 1,
1207
1207
  strokeOpacity: 1,
1208
1208
  strokeWidth: 1
1209
- }, et = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", wo = "active", xo = "data-styled-version", An = "6.1.11", br = `/*!sc*/
1210
- `, yr = typeof window < "u" && "HTMLElement" in window, Va = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Ir = /invalid hook call/i, cn = /* @__PURE__ */ new Set(), qa = function(e, t) {
1209
+ }, et = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", So = "active", Co = "data-styled-version", An = "6.1.11", br = `/*!sc*/
1210
+ `, yr = typeof window < "u" && "HTMLElement" in window, Ya = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Ir = /invalid hook call/i, cn = /* @__PURE__ */ new Set(), Ua = function(e, t) {
1211
1211
  if (process.env.NODE_ENV !== "production") {
1212
1212
  var n = t ? ' with the id of "'.concat(t, '"') : "", r = "The component ".concat(e).concat(n, ` has been created dynamically.
1213
1213
  `) + `You may see this warning because you've called styled inside another component.
@@ -1225,56 +1225,56 @@ To resolve this only create new StyledComponents outside of any render method an
1225
1225
  }
1226
1226
  }
1227
1227
  }, In = Object.freeze([]), yt = Object.freeze({});
1228
- function Ga(e, t, n) {
1228
+ function Ka(e, t, n) {
1229
1229
  return n === void 0 && (n = yt), e.theme !== n.theme && e.theme || t || n.theme;
1230
1230
  }
1231
- var lr = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Ya = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Ua = /(^-|-$)/g;
1231
+ var lr = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Qa = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Ja = /(^-|-$)/g;
1232
1232
  function Nr(e) {
1233
- return e.replace(Ya, "-").replace(Ua, "");
1233
+ return e.replace(Qa, "-").replace(Ja, "");
1234
1234
  }
1235
- var Ka = /(a)(d)/gi, un = 52, Fr = function(e) {
1235
+ var Xa = /(a)(d)/gi, un = 52, Fr = function(e) {
1236
1236
  return String.fromCharCode(e + (e > 25 ? 39 : 97));
1237
1237
  };
1238
1238
  function cr(e) {
1239
1239
  var t, n = "";
1240
1240
  for (t = Math.abs(e); t > un; t = t / un | 0) n = Fr(t % un) + n;
1241
- return (Fr(t % un) + n).replace(Ka, "$1-$2");
1241
+ return (Fr(t % un) + n).replace(Xa, "$1-$2");
1242
1242
  }
1243
- var Qn, So = 5381, Ue = function(e, t) {
1243
+ var Qn, Eo = 5381, Ue = function(e, t) {
1244
1244
  for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
1245
1245
  return e;
1246
- }, Co = function(e) {
1247
- return Ue(So, e);
1246
+ }, Ro = function(e) {
1247
+ return Ue(Eo, e);
1248
1248
  };
1249
- function Qa(e) {
1250
- return cr(Co(e) >>> 0);
1249
+ function Za(e) {
1250
+ return cr(Ro(e) >>> 0);
1251
1251
  }
1252
- function Eo(e) {
1252
+ function $o(e) {
1253
1253
  return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
1254
1254
  }
1255
1255
  function Jn(e) {
1256
1256
  return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
1257
1257
  }
1258
- var Ro = typeof Symbol == "function" && Symbol.for, $o = Ro ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, Ja = Ro ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, Xa = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Za = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Oo = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, ei = ((Qn = {})[Ja] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Qn[$o] = Oo, Qn);
1258
+ var Oo = typeof Symbol == "function" && Symbol.for, Po = Oo ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, ei = Oo ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, ti = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, ni = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, ko = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, ri = ((Qn = {})[ei] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Qn[Po] = ko, Qn);
1259
1259
  function Lr(e) {
1260
- return ("type" in (t = e) && t.type.$$typeof) === $o ? Oo : "$$typeof" in e ? ei[e.$$typeof] : Xa;
1260
+ return ("type" in (t = e) && t.type.$$typeof) === Po ? ko : "$$typeof" in e ? ri[e.$$typeof] : ti;
1261
1261
  var t;
1262
1262
  }
1263
- var ti = Object.defineProperty, ni = Object.getOwnPropertyNames, Mr = Object.getOwnPropertySymbols, ri = Object.getOwnPropertyDescriptor, oi = Object.getPrototypeOf, Hr = Object.prototype;
1264
- function Po(e, t, n) {
1263
+ var oi = Object.defineProperty, ai = Object.getOwnPropertyNames, Mr = Object.getOwnPropertySymbols, ii = Object.getOwnPropertyDescriptor, si = Object.getPrototypeOf, Hr = Object.prototype;
1264
+ function jo(e, t, n) {
1265
1265
  if (typeof t != "string") {
1266
1266
  if (Hr) {
1267
- var r = oi(t);
1268
- r && r !== Hr && Po(e, r, n);
1267
+ var r = si(t);
1268
+ r && r !== Hr && jo(e, r, n);
1269
1269
  }
1270
- var o = ni(t);
1270
+ var o = ai(t);
1271
1271
  Mr && (o = o.concat(Mr(t)));
1272
1272
  for (var a = Lr(e), i = Lr(t), l = 0; l < o.length; ++l) {
1273
1273
  var c = o[l];
1274
- if (!(c in Za || n && n[c] || i && c in i || a && c in a)) {
1275
- var f = ri(t, c);
1274
+ if (!(c in ni || n && n[c] || i && c in i || a && c in a)) {
1275
+ var p = ii(t, c);
1276
1276
  try {
1277
- ti(e, c, f);
1277
+ oi(e, c, p);
1278
1278
  } catch {
1279
1279
  }
1280
1280
  }
@@ -1308,7 +1308,7 @@ function ur(e, t, n) {
1308
1308
  function wr(e, t) {
1309
1309
  Object.defineProperty(e, "toString", { value: t });
1310
1310
  }
1311
- var ai = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
1311
+ var li = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
1312
1312
 
1313
1313
  `, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
1314
1314
 
@@ -1350,7 +1350,7 @@ as for instance in your render method then you may be running into this limitati
1350
1350
  `, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
1351
1351
  Has styled-components' style tag been unmounted or altered by another script?
1352
1352
  `, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
1353
- function ii() {
1353
+ function ci() {
1354
1354
  for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
1355
1355
  for (var n = e[0], r = [], o = 1, a = e.length; o < a; o += 1) r.push(e[o]);
1356
1356
  return r.forEach(function(i) {
@@ -1359,9 +1359,9 @@ function ii() {
1359
1359
  }
1360
1360
  function Me(e) {
1361
1361
  for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
1362
- return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(ii.apply(void 0, ht([ai[e]], t, !1)).trim());
1362
+ return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(ci.apply(void 0, ht([li[e]], t, !1)).trim());
1363
1363
  }
1364
- var si = (function() {
1364
+ var ui = (function() {
1365
1365
  function e(t) {
1366
1366
  this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
1367
1367
  }
@@ -1387,42 +1387,42 @@ var si = (function() {
1387
1387
  for (var r = this.groupSizes[t], o = this.indexOfGroup(t), a = o + r, i = o; i < a; i++) n += "".concat(this.tag.getRule(i)).concat(br);
1388
1388
  return n;
1389
1389
  }, e;
1390
- })(), li = 1 << 30, wn = /* @__PURE__ */ new Map(), $n = /* @__PURE__ */ new Map(), xn = 1, dn = function(e) {
1390
+ })(), di = 1 << 30, wn = /* @__PURE__ */ new Map(), $n = /* @__PURE__ */ new Map(), xn = 1, dn = function(e) {
1391
1391
  if (wn.has(e)) return wn.get(e);
1392
1392
  for (; $n.has(xn); ) xn++;
1393
1393
  var t = xn++;
1394
- if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > li)) throw Me(16, "".concat(t));
1394
+ if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > di)) throw Me(16, "".concat(t));
1395
1395
  return wn.set(e, t), $n.set(t, e), t;
1396
- }, ci = function(e, t) {
1396
+ }, pi = function(e, t) {
1397
1397
  xn = t + 1, wn.set(e, t), $n.set(t, e);
1398
- }, ui = "style[".concat(et, "][").concat(xo, '="').concat(An, '"]'), di = new RegExp("^".concat(et, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), pi = function(e, t, n) {
1398
+ }, fi = "style[".concat(et, "][").concat(Co, '="').concat(An, '"]'), gi = new RegExp("^".concat(et, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), hi = function(e, t, n) {
1399
1399
  for (var r, o = n.split(","), a = 0, i = o.length; a < i; a++) (r = o[a]) && e.registerName(t, r);
1400
- }, fi = function(e, t) {
1400
+ }, mi = function(e, t) {
1401
1401
  for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(br), o = [], a = 0, i = r.length; a < i; a++) {
1402
1402
  var l = r[a].trim();
1403
1403
  if (l) {
1404
- var c = l.match(di);
1404
+ var c = l.match(gi);
1405
1405
  if (c) {
1406
- var f = 0 | parseInt(c[1], 10), d = c[2];
1407
- f !== 0 && (ci(d, f), pi(e, d, c[3]), e.getTag().insertRules(f, o)), o.length = 0;
1406
+ var p = 0 | parseInt(c[1], 10), g = c[2];
1407
+ p !== 0 && (pi(g, p), hi(e, g, c[3]), e.getTag().insertRules(p, o)), o.length = 0;
1408
1408
  } else o.push(l);
1409
1409
  }
1410
1410
  }
1411
1411
  };
1412
- function gi() {
1412
+ function bi() {
1413
1413
  return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
1414
1414
  }
1415
- var jo = function(e) {
1415
+ var To = function(e) {
1416
1416
  var t = document.head, n = e || t, r = document.createElement("style"), o = (function(l) {
1417
1417
  var c = Array.from(l.querySelectorAll("style[".concat(et, "]")));
1418
1418
  return c[c.length - 1];
1419
1419
  })(n), a = o !== void 0 ? o.nextSibling : null;
1420
- r.setAttribute(et, wo), r.setAttribute(xo, An);
1421
- var i = gi();
1420
+ r.setAttribute(et, So), r.setAttribute(Co, An);
1421
+ var i = bi();
1422
1422
  return i && r.setAttribute("nonce", i), n.insertBefore(r, a), r;
1423
- }, hi = (function() {
1423
+ }, yi = (function() {
1424
1424
  function e(t) {
1425
- this.element = jo(t), this.element.appendChild(document.createTextNode("")), this.sheet = (function(n) {
1425
+ this.element = To(t), this.element.appendChild(document.createTextNode("")), this.sheet = (function(n) {
1426
1426
  if (n.sheet) return n.sheet;
1427
1427
  for (var r = document.styleSheets, o = 0, a = r.length; o < a; o++) {
1428
1428
  var i = r[o];
@@ -1443,9 +1443,9 @@ var jo = function(e) {
1443
1443
  var n = this.sheet.cssRules[t];
1444
1444
  return n && n.cssText ? n.cssText : "";
1445
1445
  }, e;
1446
- })(), mi = (function() {
1446
+ })(), vi = (function() {
1447
1447
  function e(t) {
1448
- this.element = jo(t), this.nodes = this.element.childNodes, this.length = 0;
1448
+ this.element = To(t), this.nodes = this.element.childNodes, this.length = 0;
1449
1449
  }
1450
1450
  return e.prototype.insertRule = function(t, n) {
1451
1451
  if (t <= this.length && t >= 0) {
@@ -1458,7 +1458,7 @@ var jo = function(e) {
1458
1458
  }, e.prototype.getRule = function(t) {
1459
1459
  return t < this.length ? this.nodes[t].textContent : "";
1460
1460
  }, e;
1461
- })(), bi = (function() {
1461
+ })(), wi = (function() {
1462
1462
  function e(t) {
1463
1463
  this.rules = [], this.length = 0;
1464
1464
  }
@@ -1469,29 +1469,29 @@ var jo = function(e) {
1469
1469
  }, e.prototype.getRule = function(t) {
1470
1470
  return t < this.length ? this.rules[t] : "";
1471
1471
  }, e;
1472
- })(), Wr = yr, yi = { isServer: !yr, useCSSOMInjection: !Va }, ko = (function() {
1472
+ })(), Wr = yr, xi = { isServer: !yr, useCSSOMInjection: !Ya }, _o = (function() {
1473
1473
  function e(t, n, r) {
1474
1474
  t === void 0 && (t = yt), n === void 0 && (n = {});
1475
1475
  var o = this;
1476
- this.options = ce(ce({}, yi), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && yr && Wr && (Wr = !1, (function(a) {
1477
- for (var i = document.querySelectorAll(ui), l = 0, c = i.length; l < c; l++) {
1478
- var f = i[l];
1479
- f && f.getAttribute(et) !== wo && (fi(a, f), f.parentNode && f.parentNode.removeChild(f));
1476
+ this.options = ue(ue({}, xi), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && yr && Wr && (Wr = !1, (function(a) {
1477
+ for (var i = document.querySelectorAll(fi), l = 0, c = i.length; l < c; l++) {
1478
+ var p = i[l];
1479
+ p && p.getAttribute(et) !== So && (mi(a, p), p.parentNode && p.parentNode.removeChild(p));
1480
1480
  }
1481
1481
  })(this)), wr(this, function() {
1482
1482
  return (function(a) {
1483
- for (var i = a.getTag(), l = i.length, c = "", f = function(g) {
1484
- var y = (function(P) {
1485
- return $n.get(P);
1486
- })(g);
1487
- if (y === void 0) return "continue";
1488
- var b = a.names.get(y), E = i.getGroup(g);
1489
- if (b === void 0 || E.length === 0) return "continue";
1490
- var S = "".concat(et, ".g").concat(g, '[id="').concat(y, '"]'), $ = "";
1491
- b !== void 0 && b.forEach(function(P) {
1492
- P.length > 0 && ($ += "".concat(P, ","));
1493
- }), c += "".concat(E).concat(S, '{content:"').concat($, '"}').concat(br);
1494
- }, d = 0; d < l; d++) f(d);
1483
+ for (var i = a.getTag(), l = i.length, c = "", p = function(f) {
1484
+ var b = (function(k) {
1485
+ return $n.get(k);
1486
+ })(f);
1487
+ if (b === void 0) return "continue";
1488
+ var y = a.names.get(b), x = i.getGroup(f);
1489
+ if (y === void 0 || x.length === 0) return "continue";
1490
+ var S = "".concat(et, ".g").concat(f, '[id="').concat(b, '"]'), E = "";
1491
+ y !== void 0 && y.forEach(function(k) {
1492
+ k.length > 0 && (E += "".concat(k, ","));
1493
+ }), c += "".concat(x).concat(S, '{content:"').concat(E, '"}').concat(br);
1494
+ }, g = 0; g < l; g++) p(g);
1495
1495
  return c;
1496
1496
  })(o);
1497
1497
  });
@@ -1499,14 +1499,14 @@ var jo = function(e) {
1499
1499
  return e.registerId = function(t) {
1500
1500
  return dn(t);
1501
1501
  }, e.prototype.reconstructWithOptions = function(t, n) {
1502
- return n === void 0 && (n = !0), new e(ce(ce({}, this.options), t), this.gs, n && this.names || void 0);
1502
+ return n === void 0 && (n = !0), new e(ue(ue({}, this.options), t), this.gs, n && this.names || void 0);
1503
1503
  }, e.prototype.allocateGSInstance = function(t) {
1504
1504
  return this.gs[t] = (this.gs[t] || 0) + 1;
1505
1505
  }, e.prototype.getTag = function() {
1506
1506
  return this.tag || (this.tag = (t = (function(n) {
1507
1507
  var r = n.useCSSOMInjection, o = n.target;
1508
- return n.isServer ? new bi(o) : r ? new hi(o) : new mi(o);
1509
- })(this.options), new si(t)));
1508
+ return n.isServer ? new wi(o) : r ? new yi(o) : new vi(o);
1509
+ })(this.options), new ui(t)));
1510
1510
  var t;
1511
1511
  }, e.prototype.hasNameForId = function(t, n) {
1512
1512
  return this.names.has(t) && this.names.get(t).has(n);
@@ -1525,41 +1525,41 @@ var jo = function(e) {
1525
1525
  }, e.prototype.clearTag = function() {
1526
1526
  this.tag = void 0;
1527
1527
  }, e;
1528
- })(), vi = /&/g, wi = /^\s*\/\/.*$/gm;
1529
- function To(e, t) {
1528
+ })(), Si = /&/g, Ci = /^\s*\/\/.*$/gm;
1529
+ function Do(e, t) {
1530
1530
  return e.map(function(n) {
1531
1531
  return n.type === "rule" && (n.value = "".concat(t, " ").concat(n.value), n.value = n.value.replaceAll(",", ",".concat(t, " ")), n.props = n.props.map(function(r) {
1532
1532
  return "".concat(t, " ").concat(r);
1533
- })), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = To(n.children, t)), n;
1533
+ })), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = Do(n.children, t)), n;
1534
1534
  });
1535
1535
  }
1536
- function xi(e) {
1537
- var t, n, r, o = yt, a = o.options, i = a === void 0 ? yt : a, l = o.plugins, c = l === void 0 ? In : l, f = function(y, b, E) {
1538
- return E.startsWith(n) && E.endsWith(n) && E.replaceAll(n, "").length > 0 ? ".".concat(t) : y;
1539
- }, d = c.slice();
1540
- d.push(function(y) {
1541
- y.type === kn && y.value.includes("&") && (y.props[0] = y.props[0].replace(vi, n).replace(r, f));
1542
- }), i.prefix && d.push(Wa), d.push(Ma);
1543
- var g = function(y, b, E, S) {
1544
- b === void 0 && (b = ""), E === void 0 && (E = ""), S === void 0 && (S = "&"), t = S, n = b, r = new RegExp("\\".concat(n, "\\b"), "g");
1545
- var $ = y.replace(wi, ""), P = Fa(E || b ? "".concat(E, " ").concat(b, " { ").concat($, " }") : $);
1546
- i.namespace && (P = To(P, i.namespace));
1536
+ function Ei(e) {
1537
+ var t, n, r, o = yt, a = o.options, i = a === void 0 ? yt : a, l = o.plugins, c = l === void 0 ? In : l, p = function(b, y, x) {
1538
+ return x.startsWith(n) && x.endsWith(n) && x.replaceAll(n, "").length > 0 ? ".".concat(t) : b;
1539
+ }, g = c.slice();
1540
+ g.push(function(b) {
1541
+ b.type === jn && b.value.includes("&") && (b.props[0] = b.props[0].replace(Si, n).replace(r, p));
1542
+ }), i.prefix && g.push(qa), g.push(Wa);
1543
+ var f = function(b, y, x, S) {
1544
+ y === void 0 && (y = ""), x === void 0 && (x = ""), S === void 0 && (S = "&"), t = S, n = y, r = new RegExp("\\".concat(n, "\\b"), "g");
1545
+ var E = b.replace(Ci, ""), k = Ha(x || y ? "".concat(x, " ").concat(y, " { ").concat(E, " }") : E);
1546
+ i.namespace && (k = Do(k, i.namespace));
1547
1547
  var C = [];
1548
- return Rn(P, Ha(d.concat(za(function(O) {
1548
+ return Rn(k, Va(g.concat(Ba(function(O) {
1549
1549
  return C.push(O);
1550
1550
  })))), C;
1551
1551
  };
1552
- return g.hash = c.length ? c.reduce(function(y, b) {
1553
- return b.name || Me(15), Ue(y, b.name);
1554
- }, So).toString() : "", g;
1552
+ return f.hash = c.length ? c.reduce(function(b, y) {
1553
+ return y.name || Me(15), Ue(b, y.name);
1554
+ }, Eo).toString() : "", f;
1555
1555
  }
1556
- var Si = new ko(), dr = xi(), _o = A.createContext({ shouldForwardProp: void 0, styleSheet: Si, stylis: dr });
1557
- _o.Consumer;
1558
- A.createContext(void 0);
1559
- function Br() {
1560
- return Te(_o);
1556
+ var Ri = new _o(), dr = Ei(), Ao = I.createContext({ shouldForwardProp: void 0, styleSheet: Ri, stylis: dr });
1557
+ Ao.Consumer;
1558
+ I.createContext(void 0);
1559
+ function Vr() {
1560
+ return Te(Ao);
1561
1561
  }
1562
- var Vr = (function() {
1562
+ var Br = (function() {
1563
1563
  function e(t, n) {
1564
1564
  var r = this;
1565
1565
  this.inject = function(o, a) {
@@ -1573,50 +1573,50 @@ var Vr = (function() {
1573
1573
  return e.prototype.getName = function(t) {
1574
1574
  return t === void 0 && (t = dr), this.name + t.hash;
1575
1575
  }, e;
1576
- })(), Ci = function(e) {
1576
+ })(), $i = function(e) {
1577
1577
  return e >= "A" && e <= "Z";
1578
1578
  };
1579
1579
  function qr(e) {
1580
1580
  for (var t = "", n = 0; n < e.length; n++) {
1581
1581
  var r = e[n];
1582
1582
  if (n === 1 && r === "-" && e[0] === "-") return e;
1583
- Ci(r) ? t += "-" + r.toLowerCase() : t += r;
1583
+ $i(r) ? t += "-" + r.toLowerCase() : t += r;
1584
1584
  }
1585
1585
  return t.startsWith("ms-") ? "-" + t : t;
1586
1586
  }
1587
- var Do = function(e) {
1587
+ var Io = function(e) {
1588
1588
  return e == null || e === !1 || e === "";
1589
- }, Ao = function(e) {
1589
+ }, No = function(e) {
1590
1590
  var t, n, r = [];
1591
1591
  for (var o in e) {
1592
1592
  var a = e[o];
1593
- e.hasOwnProperty(o) && !Do(a) && (Array.isArray(a) && a.isCss || tt(a) ? r.push("".concat(qr(o), ":"), a, ";") : vt(a) ? r.push.apply(r, ht(ht(["".concat(o, " {")], Ao(a), !1), ["}"], !1)) : r.push("".concat(qr(o), ": ").concat((t = o, (n = a) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in Ba || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
1593
+ e.hasOwnProperty(o) && !Io(a) && (Array.isArray(a) && a.isCss || tt(a) ? r.push("".concat(qr(o), ":"), a, ";") : vt(a) ? r.push.apply(r, ht(ht(["".concat(o, " {")], No(a), !1), ["}"], !1)) : r.push("".concat(qr(o), ": ").concat((t = o, (n = a) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in Ga || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
1594
1594
  }
1595
1595
  return r;
1596
1596
  };
1597
1597
  function Je(e, t, n, r) {
1598
- if (Do(e)) return [];
1598
+ if (Io(e)) return [];
1599
1599
  if (vr(e)) return [".".concat(e.styledComponentId)];
1600
1600
  if (tt(e)) {
1601
1601
  if (!tt(a = e) || a.prototype && a.prototype.isReactComponent || !t) return [e];
1602
1602
  var o = e(t);
1603
- return process.env.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof Vr || vt(o) || o === null || console.error("".concat(Eo(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Je(o, t, n, r);
1603
+ return process.env.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof Br || vt(o) || o === null || console.error("".concat($o(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Je(o, t, n, r);
1604
1604
  }
1605
1605
  var a;
1606
- return e instanceof Vr ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : vt(e) ? Ao(e) : Array.isArray(e) ? Array.prototype.concat.apply(In, e.map(function(i) {
1606
+ return e instanceof Br ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : vt(e) ? No(e) : Array.isArray(e) ? Array.prototype.concat.apply(In, e.map(function(i) {
1607
1607
  return Je(i, t, n, r);
1608
1608
  })) : [e.toString()];
1609
1609
  }
1610
- function Ei(e) {
1610
+ function Oi(e) {
1611
1611
  for (var t = 0; t < e.length; t += 1) {
1612
1612
  var n = e[t];
1613
1613
  if (tt(n) && !vr(n)) return !1;
1614
1614
  }
1615
1615
  return !0;
1616
1616
  }
1617
- var Ri = Co(An), $i = (function() {
1617
+ var Pi = Ro(An), ki = (function() {
1618
1618
  function e(t, n, r) {
1619
- this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (r === void 0 || r.isStatic) && Ei(t), this.componentId = n, this.baseHash = Ue(Ri, n), this.baseStyle = r, ko.registerId(n);
1619
+ this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (r === void 0 || r.isStatic) && Oi(t), this.componentId = n, this.baseHash = Ue(Pi, n), this.baseStyle = r, _o.registerId(n);
1620
1620
  }
1621
1621
  return e.prototype.generateAndInjectStyles = function(t, n, r) {
1622
1622
  var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
@@ -1630,25 +1630,25 @@ var Ri = Co(An), $i = (function() {
1630
1630
  o = Ke(o, i), this.staticRulesId = i;
1631
1631
  }
1632
1632
  else {
1633
- for (var c = Ue(this.baseHash, r.hash), f = "", d = 0; d < this.rules.length; d++) {
1634
- var g = this.rules[d];
1635
- if (typeof g == "string") f += g, process.env.NODE_ENV !== "production" && (c = Ue(c, g));
1636
- else if (g) {
1637
- var y = zr(Je(g, t, n, r));
1638
- c = Ue(c, y + d), f += y;
1633
+ for (var c = Ue(this.baseHash, r.hash), p = "", g = 0; g < this.rules.length; g++) {
1634
+ var f = this.rules[g];
1635
+ if (typeof f == "string") p += f, process.env.NODE_ENV !== "production" && (c = Ue(c, f));
1636
+ else if (f) {
1637
+ var b = zr(Je(f, t, n, r));
1638
+ c = Ue(c, b + g), p += b;
1639
1639
  }
1640
1640
  }
1641
- if (f) {
1642
- var b = cr(c >>> 0);
1643
- n.hasNameForId(this.componentId, b) || n.insertRules(this.componentId, b, r(f, ".".concat(b), void 0, this.componentId)), o = Ke(o, b);
1641
+ if (p) {
1642
+ var y = cr(c >>> 0);
1643
+ n.hasNameForId(this.componentId, y) || n.insertRules(this.componentId, y, r(p, ".".concat(y), void 0, this.componentId)), o = Ke(o, y);
1644
1644
  }
1645
1645
  }
1646
1646
  return o;
1647
1647
  }, e;
1648
- })(), On = A.createContext(void 0);
1648
+ })(), On = I.createContext(void 0);
1649
1649
  On.Consumer;
1650
- function Oi(e) {
1651
- var t = A.useContext(On), n = ae(function() {
1650
+ function ji(e) {
1651
+ var t = I.useContext(On), n = ie(function() {
1652
1652
  return (function(r, o) {
1653
1653
  if (!r) throw Me(14);
1654
1654
  if (tt(r)) {
@@ -1657,68 +1657,68 @@ function Oi(e) {
1657
1657
  return a;
1658
1658
  }
1659
1659
  if (Array.isArray(r) || typeof r != "object") throw Me(8);
1660
- return o ? ce(ce({}, o), r) : r;
1660
+ return o ? ue(ue({}, o), r) : r;
1661
1661
  })(e.theme, t);
1662
1662
  }, [e.theme, t]);
1663
- return e.children ? A.createElement(On.Provider, { value: n }, e.children) : null;
1663
+ return e.children ? I.createElement(On.Provider, { value: n }, e.children) : null;
1664
1664
  }
1665
1665
  var Xn = {}, Gr = /* @__PURE__ */ new Set();
1666
- function Pi(e, t, n) {
1667
- var r = vr(e), o = e, a = !Jn(e), i = t.attrs, l = i === void 0 ? In : i, c = t.componentId, f = c === void 0 ? (function(j, _) {
1668
- var w = typeof j != "string" ? "sc" : Nr(j);
1669
- Xn[w] = (Xn[w] || 0) + 1;
1670
- var v = "".concat(w, "-").concat(Qa(An + w + Xn[w]));
1671
- return _ ? "".concat(_, "-").concat(v) : v;
1672
- })(t.displayName, t.parentComponentId) : c, d = t.displayName, g = d === void 0 ? (function(j) {
1673
- return Jn(j) ? "styled.".concat(j) : "Styled(".concat(Eo(j), ")");
1674
- })(e) : d, y = t.displayName && t.componentId ? "".concat(Nr(t.displayName), "-").concat(t.componentId) : t.componentId || f, b = r && o.attrs ? o.attrs.concat(l).filter(Boolean) : l, E = t.shouldForwardProp;
1666
+ function Ti(e, t, n) {
1667
+ var r = vr(e), o = e, a = !Jn(e), i = t.attrs, l = i === void 0 ? In : i, c = t.componentId, p = c === void 0 ? (function(P, _) {
1668
+ var R = typeof P != "string" ? "sc" : Nr(P);
1669
+ Xn[R] = (Xn[R] || 0) + 1;
1670
+ var w = "".concat(R, "-").concat(Za(An + R + Xn[R]));
1671
+ return _ ? "".concat(_, "-").concat(w) : w;
1672
+ })(t.displayName, t.parentComponentId) : c, g = t.displayName, f = g === void 0 ? (function(P) {
1673
+ return Jn(P) ? "styled.".concat(P) : "Styled(".concat($o(P), ")");
1674
+ })(e) : g, b = t.displayName && t.componentId ? "".concat(Nr(t.displayName), "-").concat(t.componentId) : t.componentId || p, y = r && o.attrs ? o.attrs.concat(l).filter(Boolean) : l, x = t.shouldForwardProp;
1675
1675
  if (r && o.shouldForwardProp) {
1676
1676
  var S = o.shouldForwardProp;
1677
1677
  if (t.shouldForwardProp) {
1678
- var $ = t.shouldForwardProp;
1679
- E = function(j, _) {
1680
- return S(j, _) && $(j, _);
1678
+ var E = t.shouldForwardProp;
1679
+ x = function(P, _) {
1680
+ return S(P, _) && E(P, _);
1681
1681
  };
1682
- } else E = S;
1682
+ } else x = S;
1683
1683
  }
1684
- var P = new $i(n, y, r ? o.componentStyle : void 0);
1685
- function C(j, _) {
1686
- return (function(w, v, N) {
1687
- var Q = w.attrs, re = w.componentStyle, ge = w.defaultProps, be = w.foldedComponentIds, H = w.styledComponentId, ie = w.target, ye = A.useContext(On), $e = Br(), ve = w.shouldForwardProp || $e.shouldForwardProp;
1688
- process.env.NODE_ENV !== "production" && Or(H);
1689
- var Ae = Ga(v, ye, ge) || yt, se = (function(Pe, oe, Ce) {
1690
- for (var de, le = ce(ce({}, oe), { className: void 0, theme: Ce }), Ee = 0; Ee < Pe.length; Ee += 1) {
1691
- var pe = tt(de = Pe[Ee]) ? de(le) : de;
1692
- for (var Z in pe) le[Z] = Z === "className" ? Ke(le[Z], pe[Z]) : Z === "style" ? ce(ce({}, le[Z]), pe[Z]) : pe[Z];
1684
+ var k = new ki(n, b, r ? o.componentStyle : void 0);
1685
+ function C(P, _) {
1686
+ return (function(R, w, M) {
1687
+ var G = R.attrs, D = R.componentStyle, Q = R.defaultProps, be = R.foldedComponentIds, z = R.styledComponentId, se = R.target, ye = I.useContext(On), $e = Vr(), ve = R.shouldForwardProp || $e.shouldForwardProp;
1688
+ process.env.NODE_ENV !== "production" && Or(z);
1689
+ var Ae = Ka(w, ye, Q) || yt, le = (function(Pe, ae, Ce) {
1690
+ for (var pe, ce = ue(ue({}, ae), { className: void 0, theme: Ce }), Ee = 0; Ee < Pe.length; Ee += 1) {
1691
+ var fe = tt(pe = Pe[Ee]) ? pe(ce) : pe;
1692
+ for (var te in fe) ce[te] = te === "className" ? Ke(ce[te], fe[te]) : te === "style" ? ue(ue({}, ce[te]), fe[te]) : fe[te];
1693
1693
  }
1694
- return oe.className && (le.className = Ke(le.className, oe.className)), le;
1695
- })(Q, v, Ae), xe = se.as || ie, Se = {};
1696
- for (var q in se) se[q] === void 0 || q[0] === "$" || q === "as" || q === "theme" && se.theme === Ae || (q === "forwardedAs" ? Se.as = se.forwardedAs : ve && !ve(q, xe) || (Se[q] = se[q], ve || process.env.NODE_ENV !== "development" || Ea(q) || Gr.has(q) || !lr.has(xe) || (Gr.add(q), console.warn('styled-components: it looks like an unknown prop "'.concat(q, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1697
- var Oe = (function(Pe, oe) {
1698
- var Ce = Br(), de = Pe.generateAndInjectStyles(oe, Ce.styleSheet, Ce.stylis);
1699
- return process.env.NODE_ENV !== "production" && Or(de), de;
1700
- })(re, se);
1701
- process.env.NODE_ENV !== "production" && w.warnTooManyClasses && w.warnTooManyClasses(Oe);
1702
- var ue = Ke(be, H);
1703
- return Oe && (ue += " " + Oe), se.className && (ue += " " + se.className), Se[Jn(xe) && !lr.has(xe) ? "class" : "className"] = ue, Se.ref = N, ua(xe, Se);
1704
- })(O, j, _);
1694
+ return ae.className && (ce.className = Ke(ce.className, ae.className)), ce;
1695
+ })(G, w, Ae), xe = le.as || se, Se = {};
1696
+ for (var Y in le) le[Y] === void 0 || Y[0] === "$" || Y === "as" || Y === "theme" && le.theme === Ae || (Y === "forwardedAs" ? Se.as = le.forwardedAs : ve && !ve(Y, xe) || (Se[Y] = le[Y], ve || process.env.NODE_ENV !== "development" || Oa(Y) || Gr.has(Y) || !lr.has(xe) || (Gr.add(Y), console.warn('styled-components: it looks like an unknown prop "'.concat(Y, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1697
+ var Oe = (function(Pe, ae) {
1698
+ var Ce = Vr(), pe = Pe.generateAndInjectStyles(ae, Ce.styleSheet, Ce.stylis);
1699
+ return process.env.NODE_ENV !== "production" && Or(pe), pe;
1700
+ })(D, le);
1701
+ process.env.NODE_ENV !== "production" && R.warnTooManyClasses && R.warnTooManyClasses(Oe);
1702
+ var de = Ke(be, z);
1703
+ return Oe && (de += " " + Oe), le.className && (de += " " + le.className), Se[Jn(xe) && !lr.has(xe) ? "class" : "className"] = de, Se.ref = M, fa(xe, Se);
1704
+ })(O, P, _);
1705
1705
  }
1706
- C.displayName = g;
1707
- var O = A.forwardRef(C);
1708
- return O.attrs = b, O.componentStyle = P, O.displayName = g, O.shouldForwardProp = E, O.foldedComponentIds = r ? Ke(o.foldedComponentIds, o.styledComponentId) : "", O.styledComponentId = y, O.target = r ? o.target : e, Object.defineProperty(O, "defaultProps", { get: function() {
1706
+ C.displayName = f;
1707
+ var O = I.forwardRef(C);
1708
+ return O.attrs = y, O.componentStyle = k, O.displayName = f, O.shouldForwardProp = x, O.foldedComponentIds = r ? Ke(o.foldedComponentIds, o.styledComponentId) : "", O.styledComponentId = b, O.target = r ? o.target : e, Object.defineProperty(O, "defaultProps", { get: function() {
1709
1709
  return this._foldedDefaultProps;
1710
- }, set: function(j) {
1710
+ }, set: function(P) {
1711
1711
  this._foldedDefaultProps = r ? (function(_) {
1712
- for (var w = [], v = 1; v < arguments.length; v++) w[v - 1] = arguments[v];
1713
- for (var N = 0, Q = w; N < Q.length; N++) ur(_, Q[N], !0);
1712
+ for (var R = [], w = 1; w < arguments.length; w++) R[w - 1] = arguments[w];
1713
+ for (var M = 0, G = R; M < G.length; M++) ur(_, G[M], !0);
1714
1714
  return _;
1715
- })({}, o.defaultProps, j) : j;
1716
- } }), process.env.NODE_ENV !== "production" && (qa(g, y), O.warnTooManyClasses = /* @__PURE__ */ (function(j, _) {
1717
- var w = {}, v = !1;
1718
- return function(N) {
1719
- if (!v && (w[N] = !0, Object.keys(w).length >= 200)) {
1720
- var Q = _ ? ' with the id of "'.concat(_, '"') : "";
1721
- console.warn("Over ".concat(200, " classes were generated for component ").concat(j).concat(Q, `.
1715
+ })({}, o.defaultProps, P) : P;
1716
+ } }), process.env.NODE_ENV !== "production" && (Ua(f, b), O.warnTooManyClasses = /* @__PURE__ */ (function(P, _) {
1717
+ var R = {}, w = !1;
1718
+ return function(M) {
1719
+ if (!w && (R[M] = !0, Object.keys(R).length >= 200)) {
1720
+ var G = _ ? ' with the id of "'.concat(_, '"') : "";
1721
+ console.warn("Over ".concat(200, " classes were generated for component ").concat(P).concat(G, `.
1722
1722
  `) + `Consider using the attrs method, together with a style object for frequently changed styles.
1723
1723
  Example:
1724
1724
  const Component = styled.div.attrs(props => ({
@@ -1727,12 +1727,12 @@ Example:
1727
1727
  },
1728
1728
  }))\`width: 100%;\`
1729
1729
 
1730
- <Component />`), v = !0, w = {};
1730
+ <Component />`), w = !0, R = {};
1731
1731
  }
1732
1732
  };
1733
- })(g, y)), wr(O, function() {
1733
+ })(f, b)), wr(O, function() {
1734
1734
  return ".".concat(O.styledComponentId);
1735
- }), a && Po(O, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), O;
1735
+ }), a && jo(O, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), O;
1736
1736
  }
1737
1737
  function Yr(e, t) {
1738
1738
  for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
@@ -1741,7 +1741,7 @@ function Yr(e, t) {
1741
1741
  var Ur = function(e) {
1742
1742
  return Object.assign(e, { isCss: !0 });
1743
1743
  };
1744
- function te(e) {
1744
+ function re(e) {
1745
1745
  for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
1746
1746
  if (tt(e) || vt(e)) return Ur(Je(Yr(In, ht([e], t, !0))));
1747
1747
  var r = e;
@@ -1751,19 +1751,19 @@ function pr(e, t, n) {
1751
1751
  if (n === void 0 && (n = yt), !t) throw Me(1, t);
1752
1752
  var r = function(o) {
1753
1753
  for (var a = [], i = 1; i < arguments.length; i++) a[i - 1] = arguments[i];
1754
- return e(t, n, te.apply(void 0, ht([o], a, !1)));
1754
+ return e(t, n, re.apply(void 0, ht([o], a, !1)));
1755
1755
  };
1756
1756
  return r.attrs = function(o) {
1757
- return pr(e, t, ce(ce({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
1757
+ return pr(e, t, ue(ue({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
1758
1758
  }, r.withConfig = function(o) {
1759
- return pr(e, t, ce(ce({}, n), o));
1759
+ return pr(e, t, ue(ue({}, n), o));
1760
1760
  }, r;
1761
1761
  }
1762
- var Io = function(e) {
1763
- return pr(Pi, e);
1764
- }, L = Io;
1762
+ var Fo = function(e) {
1763
+ return pr(Ti, e);
1764
+ }, L = Fo;
1765
1765
  lr.forEach(function(e) {
1766
- L[e] = Io(e);
1766
+ L[e] = Fo(e);
1767
1767
  });
1768
1768
  process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
1769
1769
  Perhaps you're looking to import 'styled-components/native'?
@@ -1776,10 +1776,10 @@ var Ge;
1776
1776
  function wt(e, t) {
1777
1777
  return e[t];
1778
1778
  }
1779
- function ji(e = [], t, n = 0) {
1779
+ function _i(e = [], t, n = 0) {
1780
1780
  return [...e.slice(0, n), t, ...e.slice(n)];
1781
1781
  }
1782
- function ki(e = [], t, n = "id") {
1782
+ function Di(e = [], t, n = "id") {
1783
1783
  const r = e.slice(), o = wt(t, n);
1784
1784
  return o ? r.splice(r.findIndex(((a) => wt(a, n) === o)), 1) : r.splice(r.findIndex(((a) => a === t)), 1), r;
1785
1785
  }
@@ -1798,8 +1798,8 @@ function Zn(e, t) {
1798
1798
  (function(e) {
1799
1799
  e.ASC = "asc", e.DESC = "desc";
1800
1800
  })(Ge || (Ge = {}));
1801
- const ee = () => null;
1802
- function No(e, t = [], n = []) {
1801
+ const ne = () => null;
1802
+ function Lo(e, t = [], n = []) {
1803
1803
  let r = {}, o = [...n];
1804
1804
  return t.length && t.forEach(((a) => {
1805
1805
  if (!a.when || typeof a.when != "function") throw new Error('"when" must be defined in the conditional style object and must be function');
@@ -1816,20 +1816,20 @@ function fn(e, t) {
1816
1816
  function zt(e, t) {
1817
1817
  return e == t;
1818
1818
  }
1819
- function Ti(e, t) {
1819
+ function Ai(e, t) {
1820
1820
  const n = !e.toggleOnSelectedRowsChange;
1821
1821
  switch (t.type) {
1822
1822
  case "SELECT_ALL_ROWS": {
1823
1823
  const { keyField: r, rows: o, rowCount: a, mergeSelections: i } = t, l = !e.allSelected, c = !e.toggleOnSelectedRowsChange;
1824
1824
  if (i) {
1825
- const f = l ? [...e.selectedRows, ...o.filter(((d) => !Sn(d, e.selectedRows, r)))] : e.selectedRows.filter(((d) => !Sn(d, o, r)));
1826
- return Object.assign(Object.assign({}, e), { allSelected: l, selectedCount: f.length, selectedRows: f, toggleOnSelectedRowsChange: c });
1825
+ const p = l ? [...e.selectedRows, ...o.filter(((g) => !Sn(g, e.selectedRows, r)))] : e.selectedRows.filter(((g) => !Sn(g, o, r)));
1826
+ return Object.assign(Object.assign({}, e), { allSelected: l, selectedCount: p.length, selectedRows: p, toggleOnSelectedRowsChange: c });
1827
1827
  }
1828
1828
  return Object.assign(Object.assign({}, e), { allSelected: l, selectedCount: l ? a : 0, selectedRows: l ? o : [], toggleOnSelectedRowsChange: c });
1829
1829
  }
1830
1830
  case "SELECT_SINGLE_ROW": {
1831
1831
  const { keyField: r, row: o, isSelected: a, rowCount: i, singleSelect: l } = t;
1832
- return l ? a ? Object.assign(Object.assign({}, e), { selectedCount: 0, allSelected: !1, selectedRows: [], toggleOnSelectedRowsChange: n }) : Object.assign(Object.assign({}, e), { selectedCount: 1, allSelected: !1, selectedRows: [o], toggleOnSelectedRowsChange: n }) : a ? Object.assign(Object.assign({}, e), { selectedCount: e.selectedRows.length > 0 ? e.selectedRows.length - 1 : 0, allSelected: !1, selectedRows: ki(e.selectedRows, o, r), toggleOnSelectedRowsChange: n }) : Object.assign(Object.assign({}, e), { selectedCount: e.selectedRows.length + 1, allSelected: e.selectedRows.length + 1 === i, selectedRows: ji(e.selectedRows, o), toggleOnSelectedRowsChange: n });
1832
+ return l ? a ? Object.assign(Object.assign({}, e), { selectedCount: 0, allSelected: !1, selectedRows: [], toggleOnSelectedRowsChange: n }) : Object.assign(Object.assign({}, e), { selectedCount: 1, allSelected: !1, selectedRows: [o], toggleOnSelectedRowsChange: n }) : a ? Object.assign(Object.assign({}, e), { selectedCount: e.selectedRows.length > 0 ? e.selectedRows.length - 1 : 0, allSelected: !1, selectedRows: Di(e.selectedRows, o, r), toggleOnSelectedRowsChange: n }) : Object.assign(Object.assign({}, e), { selectedCount: e.selectedRows.length + 1, allSelected: e.selectedRows.length + 1 === i, selectedRows: _i(e.selectedRows, o), toggleOnSelectedRowsChange: n });
1833
1833
  }
1834
1834
  case "SELECT_MULTIPLE_ROWS": {
1835
1835
  const { keyField: r, selectedRows: o, totalRows: a, mergeSelections: i } = t;
@@ -1857,10 +1857,10 @@ function Ti(e, t) {
1857
1857
  }
1858
1858
  }
1859
1859
  }
1860
- const _i = te`
1860
+ const Ii = re`
1861
1861
  pointer-events: none;
1862
1862
  opacity: 0.4;
1863
- `, Di = L.div`
1863
+ `, Ni = L.div`
1864
1864
  position: relative;
1865
1865
  box-sizing: border-box;
1866
1866
  display: flex;
@@ -1868,39 +1868,39 @@ const _i = te`
1868
1868
  width: 100%;
1869
1869
  height: 100%;
1870
1870
  max-width: 100%;
1871
- ${({ disabled: e }) => e && _i};
1871
+ ${({ disabled: e }) => e && Ii};
1872
1872
  ${({ theme: e }) => e.table.style};
1873
- `, Ai = te`
1873
+ `, Fi = re`
1874
1874
  position: sticky;
1875
1875
  position: -webkit-sticky; /* Safari */
1876
1876
  top: 0;
1877
1877
  z-index: 1;
1878
- `, Ii = L.div`
1878
+ `, Li = L.div`
1879
1879
  display: flex;
1880
1880
  width: 100%;
1881
- ${({ $fixedHeader: e }) => e && Ai};
1881
+ ${({ $fixedHeader: e }) => e && Fi};
1882
1882
  ${({ theme: e }) => e.head.style};
1883
- `, Ni = L.div`
1883
+ `, Mi = L.div`
1884
1884
  display: flex;
1885
1885
  align-items: stretch;
1886
1886
  width: 100%;
1887
1887
  ${({ theme: e }) => e.headRow.style};
1888
1888
  ${({ $dense: e, theme: t }) => e && t.headRow.denseStyle};
1889
- `, Fo = (e, ...t) => te`
1889
+ `, Mo = (e, ...t) => re`
1890
1890
  @media screen and (max-width: ${599}px) {
1891
- ${te(e, ...t)}
1891
+ ${re(e, ...t)}
1892
1892
  }
1893
- `, Fi = (e, ...t) => te`
1893
+ `, Hi = (e, ...t) => re`
1894
1894
  @media screen and (max-width: ${959}px) {
1895
- ${te(e, ...t)}
1895
+ ${re(e, ...t)}
1896
1896
  }
1897
- `, Li = (e, ...t) => te`
1897
+ `, zi = (e, ...t) => re`
1898
1898
  @media screen and (max-width: ${1280}px) {
1899
- ${te(e, ...t)}
1899
+ ${re(e, ...t)}
1900
1900
  }
1901
- `, Mi = (e) => (t, ...n) => te`
1901
+ `, Wi = (e) => (t, ...n) => re`
1902
1902
  @media screen and (max-width: ${e}px) {
1903
- ${te(t, ...n)}
1903
+ ${re(t, ...n)}
1904
1904
  }
1905
1905
  `, Rt = L.div`
1906
1906
  position: relative;
@@ -1910,13 +1910,13 @@ const _i = te`
1910
1910
  line-height: normal;
1911
1911
  ${({ theme: e, $headCell: t }) => e[t ? "headCells" : "cells"].style};
1912
1912
  ${({ $noPadding: e }) => e && "padding: 0"};
1913
- `, Lo = L(Rt)`
1913
+ `, Ho = L(Rt)`
1914
1914
  flex-grow: ${({ button: e, grow: t }) => t === 0 || e ? 0 : t || 1};
1915
1915
  flex-shrink: 0;
1916
1916
  flex-basis: 0;
1917
1917
  max-width: ${({ maxWidth: e }) => e || "100%"};
1918
1918
  min-width: ${({ minWidth: e }) => e || "100px"};
1919
- ${({ width: e }) => e && te`
1919
+ ${({ width: e }) => e && re`
1920
1920
  min-width: ${e};
1921
1921
  max-width: ${e};
1922
1922
  `};
@@ -1925,48 +1925,48 @@ const _i = te`
1925
1925
  ${({ compact: e, button: t }) => (e || t) && "padding: 0"};
1926
1926
 
1927
1927
  /* handle hiding cells */
1928
- ${({ hide: e }) => e && e === "sm" && Fo`
1928
+ ${({ hide: e }) => e && e === "sm" && Mo`
1929
1929
  display: none;
1930
1930
  `};
1931
- ${({ hide: e }) => e && e === "md" && Fi`
1931
+ ${({ hide: e }) => e && e === "md" && Hi`
1932
1932
  display: none;
1933
1933
  `};
1934
- ${({ hide: e }) => e && e === "lg" && Li`
1934
+ ${({ hide: e }) => e && e === "lg" && zi`
1935
1935
  display: none;
1936
1936
  `};
1937
- ${({ hide: e }) => e && Number.isInteger(e) && Mi(e)`
1937
+ ${({ hide: e }) => e && Number.isInteger(e) && Wi(e)`
1938
1938
  display: none;
1939
1939
  `};
1940
- `, Hi = te`
1940
+ `, Vi = re`
1941
1941
  div:first-child {
1942
1942
  white-space: ${({ $wrapCell: e }) => e ? "normal" : "nowrap"};
1943
1943
  overflow: ${({ $allowOverflow: e }) => e ? "visible" : "hidden"};
1944
1944
  text-overflow: ellipsis;
1945
1945
  }
1946
- `, zi = L(Lo).attrs(((e) => ({ style: e.style })))`
1947
- ${({ $renderAsCell: e }) => !e && Hi};
1946
+ `, Bi = L(Ho).attrs(((e) => ({ style: e.style })))`
1947
+ ${({ $renderAsCell: e }) => !e && Vi};
1948
1948
  ${({ theme: e, $isDragging: t }) => t && e.cells.draggingStyle};
1949
1949
  ${({ $cellStyle: e }) => e};
1950
1950
  `;
1951
- var Wi = u.memo((function({ id: e, column: t, row: n, rowIndex: r, dataTag: o, isDragging: a, onDragStart: i, onDragOver: l, onDragEnd: c, onDragEnter: f, onDragLeave: d }) {
1952
- const { conditionalStyle: g, classNames: y } = No(n, t.conditionalCellStyles, ["rdt_TableCell"]);
1953
- return u.createElement(zi, { id: e, "data-column-id": t.id, role: "cell", className: y, "data-tag": o, $cellStyle: t.style, $renderAsCell: !!t.cell, $allowOverflow: t.allowOverflow, button: t.button, center: t.center, compact: t.compact, grow: t.grow, hide: t.hide, maxWidth: t.maxWidth, minWidth: t.minWidth, right: t.right, width: t.width, $wrapCell: t.wrap, style: g, $isDragging: a, onDragStart: i, onDragOver: l, onDragEnd: c, onDragEnter: f, onDragLeave: d }, !t.cell && u.createElement("div", { "data-tag": o }, (function(b, E, S, $) {
1954
- return E ? S && typeof S == "function" ? S(b, $) : E(b, $) : null;
1951
+ var qi = u.memo((function({ id: e, column: t, row: n, rowIndex: r, dataTag: o, isDragging: a, onDragStart: i, onDragOver: l, onDragEnd: c, onDragEnter: p, onDragLeave: g }) {
1952
+ const { conditionalStyle: f, classNames: b } = Lo(n, t.conditionalCellStyles, ["rdt_TableCell"]);
1953
+ return u.createElement(Bi, { id: e, "data-column-id": t.id, role: "cell", className: b, "data-tag": o, $cellStyle: t.style, $renderAsCell: !!t.cell, $allowOverflow: t.allowOverflow, button: t.button, center: t.center, compact: t.compact, grow: t.grow, hide: t.hide, maxWidth: t.maxWidth, minWidth: t.minWidth, right: t.right, width: t.width, $wrapCell: t.wrap, style: f, $isDragging: a, onDragStart: i, onDragOver: l, onDragEnd: c, onDragEnter: p, onDragLeave: g }, !t.cell && u.createElement("div", { "data-tag": o }, (function(y, x, S, E) {
1954
+ return x ? S && typeof S == "function" ? S(y, E) : x(y, E) : null;
1955
1955
  })(n, t.selector, t.format, r)), t.cell && t.cell(n, r, t, e));
1956
1956
  }));
1957
1957
  const Qr = "input";
1958
- var Mo = u.memo((function({ name: e, component: t = Qr, componentOptions: n = { style: {} }, indeterminate: r = !1, checked: o = !1, disabled: a = !1, onClick: i = ee }) {
1959
- const l = t, c = l !== Qr ? n.style : ((d) => Object.assign(Object.assign({ fontSize: "18px" }, !d && { cursor: "pointer" }), { padding: 0, marginTop: "1px", verticalAlign: "middle", position: "relative" }))(a), f = u.useMemo((() => (function(d, ...g) {
1960
- let y;
1961
- return Object.keys(d).map(((b) => d[b])).forEach(((b, E) => {
1962
- typeof b == "function" && (y = Object.assign(Object.assign({}, d), { [Object.keys(d)[E]]: b(...g) }));
1963
- })), y || d;
1958
+ var zo = u.memo((function({ name: e, component: t = Qr, componentOptions: n = { style: {} }, indeterminate: r = !1, checked: o = !1, disabled: a = !1, onClick: i = ne }) {
1959
+ const l = t, c = l !== Qr ? n.style : ((g) => Object.assign(Object.assign({ fontSize: "18px" }, !g && { cursor: "pointer" }), { padding: 0, marginTop: "1px", verticalAlign: "middle", position: "relative" }))(a), p = u.useMemo((() => (function(g, ...f) {
1960
+ let b;
1961
+ return Object.keys(g).map(((y) => g[y])).forEach(((y, x) => {
1962
+ typeof y == "function" && (b = Object.assign(Object.assign({}, g), { [Object.keys(g)[x]]: y(...f) }));
1963
+ })), b || g;
1964
1964
  })(n, r)), [n, r]);
1965
- return u.createElement(l, Object.assign({ type: "checkbox", ref: (d) => {
1966
- d && (d.indeterminate = r);
1967
- }, style: c, onClick: a ? ee : i, name: e, "aria-label": e, checked: o, disabled: a }, f, { onChange: ee }));
1965
+ return u.createElement(l, Object.assign({ type: "checkbox", ref: (g) => {
1966
+ g && (g.indeterminate = r);
1967
+ }, style: c, onClick: a ? ne : i, name: e, "aria-label": e, checked: o, disabled: a }, p, { onChange: ne }));
1968
1968
  }));
1969
- const Bi = L(Rt)`
1969
+ const Gi = L(Rt)`
1970
1970
  flex: 0 0 48px;
1971
1971
  min-width: 48px;
1972
1972
  justify-content: center;
@@ -1974,13 +1974,13 @@ const Bi = L(Rt)`
1974
1974
  user-select: none;
1975
1975
  white-space: nowrap;
1976
1976
  `;
1977
- function Vi({ name: e, keyField: t, row: n, rowCount: r, selected: o, selectableRowsComponent: a, selectableRowsComponentProps: i, selectableRowsSingle: l, selectableRowDisabled: c, onSelectedRow: f }) {
1978
- const d = !(!c || !c(n));
1979
- return u.createElement(Bi, { onClick: (g) => g.stopPropagation(), className: "rdt_TableCell", $noPadding: !0 }, u.createElement(Mo, { name: e, component: a, componentOptions: i, checked: o, "aria-checked": o, onClick: () => {
1980
- f({ type: "SELECT_SINGLE_ROW", row: n, isSelected: o, keyField: t, rowCount: r, singleSelect: l });
1981
- }, disabled: d }));
1977
+ function Yi({ name: e, keyField: t, row: n, rowCount: r, selected: o, selectableRowsComponent: a, selectableRowsComponentProps: i, selectableRowsSingle: l, selectableRowDisabled: c, onSelectedRow: p }) {
1978
+ const g = !(!c || !c(n));
1979
+ return u.createElement(Gi, { onClick: (f) => f.stopPropagation(), className: "rdt_TableCell", $noPadding: !0 }, u.createElement(zo, { name: e, component: a, componentOptions: i, checked: o, "aria-checked": o, onClick: () => {
1980
+ p({ type: "SELECT_SINGLE_ROW", row: n, isSelected: o, keyField: t, rowCount: r, singleSelect: l });
1981
+ }, disabled: g }));
1982
1982
  }
1983
- const qi = L.button`
1983
+ const Ui = L.button`
1984
1984
  display: inline-flex;
1985
1985
  align-items: center;
1986
1986
  user-select: none;
@@ -1989,28 +1989,28 @@ const qi = L.button`
1989
1989
  background-color: transparent;
1990
1990
  ${({ theme: e }) => e.expanderButton.style};
1991
1991
  `;
1992
- function Gi({ disabled: e = !1, expanded: t = !1, expandableIcon: n, id: r, row: o, onToggled: a }) {
1992
+ function Ki({ disabled: e = !1, expanded: t = !1, expandableIcon: n, id: r, row: o, onToggled: a }) {
1993
1993
  const i = t ? n.expanded : n.collapsed;
1994
- return u.createElement(qi, { "aria-disabled": e, onClick: () => a && a(o), "data-testid": `expander-button-${r}`, disabled: e, "aria-label": t ? "Collapse Row" : "Expand Row", role: "button", type: "button" }, i);
1994
+ return u.createElement(Ui, { "aria-disabled": e, onClick: () => a && a(o), "data-testid": `expander-button-${r}`, disabled: e, "aria-label": t ? "Collapse Row" : "Expand Row", role: "button", type: "button" }, i);
1995
1995
  }
1996
- const Yi = L(Rt)`
1996
+ const Qi = L(Rt)`
1997
1997
  white-space: nowrap;
1998
1998
  font-weight: 400;
1999
1999
  min-width: 48px;
2000
2000
  ${({ theme: e }) => e.expanderCell.style};
2001
2001
  `;
2002
- function Ui({ row: e, expanded: t = !1, expandableIcon: n, id: r, onToggled: o, disabled: a = !1 }) {
2003
- return u.createElement(Yi, { onClick: (i) => i.stopPropagation(), $noPadding: !0 }, u.createElement(Gi, { id: r, row: e, expanded: t, expandableIcon: n, disabled: a, onToggled: o }));
2002
+ function Ji({ row: e, expanded: t = !1, expandableIcon: n, id: r, onToggled: o, disabled: a = !1 }) {
2003
+ return u.createElement(Qi, { onClick: (i) => i.stopPropagation(), $noPadding: !0 }, u.createElement(Ki, { id: r, row: e, expanded: t, expandableIcon: n, disabled: a, onToggled: o }));
2004
2004
  }
2005
- const Ki = L.div`
2005
+ const Xi = L.div`
2006
2006
  width: 100%;
2007
2007
  box-sizing: border-box;
2008
2008
  ${({ theme: e }) => e.expanderRow.style};
2009
2009
  ${({ $extendedRowStyle: e }) => e};
2010
2010
  `;
2011
- var Qi = u.memo((function({ data: e, ExpanderComponent: t, expanderComponentProps: n, extendedRowStyle: r, extendedClassNames: o }) {
2011
+ var Zi = u.memo((function({ data: e, ExpanderComponent: t, expanderComponentProps: n, extendedRowStyle: r, extendedClassNames: o }) {
2012
2012
  const a = ["rdt_ExpanderRow", ...o.split(" ").filter(((i) => i !== "rdt_TableRow"))].join(" ");
2013
- return u.createElement(Ki, { className: a, $extendedRowStyle: r }, u.createElement(t, Object.assign({ data: e }, n)));
2013
+ return u.createElement(Xi, { className: a, $extendedRowStyle: r }, u.createElement(t, Object.assign({ data: e }, n)));
2014
2014
  }));
2015
2015
  const er = "allowRowEvents";
2016
2016
  var Pn, fr, Jr;
@@ -2021,15 +2021,15 @@ var Pn, fr, Jr;
2021
2021
  })(fr || (fr = {})), (function(e) {
2022
2022
  e.SM = "sm", e.MD = "md", e.LG = "lg";
2023
2023
  })(Jr || (Jr = {}));
2024
- const Ji = te`
2024
+ const es = re`
2025
2025
  &:hover {
2026
2026
  ${({ $highlightOnHover: e, theme: t }) => e && t.rows.highlightOnHoverStyle};
2027
2027
  }
2028
- `, Xi = te`
2028
+ `, ts = re`
2029
2029
  &:hover {
2030
2030
  cursor: pointer;
2031
2031
  }
2032
- `, Zi = L.div.attrs(((e) => ({ style: e.style })))`
2032
+ `, ns = L.div.attrs(((e) => ({ style: e.style })))`
2033
2033
  display: flex;
2034
2034
  align-items: stretch;
2035
2035
  align-content: stretch;
@@ -2038,40 +2038,40 @@ const Ji = te`
2038
2038
  ${({ theme: e }) => e.rows.style};
2039
2039
  ${({ $dense: e, theme: t }) => e && t.rows.denseStyle};
2040
2040
  ${({ $striped: e, theme: t }) => e && t.rows.stripedStyle};
2041
- ${({ $highlightOnHover: e }) => e && Ji};
2042
- ${({ $pointerOnHover: e }) => e && Xi};
2041
+ ${({ $highlightOnHover: e }) => e && es};
2042
+ ${({ $pointerOnHover: e }) => e && ts};
2043
2043
  ${({ $selected: e, theme: t }) => e && t.rows.selectedHighlightStyle};
2044
2044
  ${({ $conditionalStyle: e }) => e};
2045
2045
  `;
2046
- function es({ columns: e = [], conditionalRowStyles: t = [], defaultExpanded: n = !1, defaultExpanderDisabled: r = !1, dense: o = !1, expandableIcon: a, expandableRows: i = !1, expandableRowsComponent: l, expandableRowsComponentProps: c, expandableRowsHideExpander: f, expandOnRowClicked: d = !1, expandOnRowDoubleClicked: g = !1, highlightOnHover: y = !1, id: b, expandableInheritConditionalStyles: E, keyField: S, onRowClicked: $ = ee, onRowDoubleClicked: P = ee, onRowMouseEnter: C = ee, onRowMouseLeave: O = ee, onRowExpandToggled: j = ee, onSelectedRow: _ = ee, pointerOnHover: w = !1, row: v, rowCount: N, rowIndex: Q, selectableRowDisabled: re = null, selectableRows: ge = !1, selectableRowsComponent: be, selectableRowsComponentProps: H, selectableRowsHighlight: ie = !1, selectableRowsSingle: ye = !1, selected: $e, striped: ve = !1, draggingColumnId: Ae, onDragStart: se, onDragOver: xe, onDragEnd: Se, onDragEnter: q, onDragLeave: Oe }) {
2047
- const [ue, Pe] = u.useState(n);
2046
+ function rs({ columns: e = [], conditionalRowStyles: t = [], defaultExpanded: n = !1, defaultExpanderDisabled: r = !1, dense: o = !1, expandableIcon: a, expandableRows: i = !1, expandableRowsComponent: l, expandableRowsComponentProps: c, expandableRowsHideExpander: p, expandOnRowClicked: g = !1, expandOnRowDoubleClicked: f = !1, highlightOnHover: b = !1, id: y, expandableInheritConditionalStyles: x, keyField: S, onRowClicked: E = ne, onRowDoubleClicked: k = ne, onRowMouseEnter: C = ne, onRowMouseLeave: O = ne, onRowExpandToggled: P = ne, onSelectedRow: _ = ne, pointerOnHover: R = !1, row: w, rowCount: M, rowIndex: G, selectableRowDisabled: D = null, selectableRows: Q = !1, selectableRowsComponent: be, selectableRowsComponentProps: z, selectableRowsHighlight: se = !1, selectableRowsSingle: ye = !1, selected: $e, striped: ve = !1, draggingColumnId: Ae, onDragStart: le, onDragOver: xe, onDragEnd: Se, onDragEnter: Y, onDragLeave: Oe }) {
2047
+ const [de, Pe] = u.useState(n);
2048
2048
  u.useEffect((() => {
2049
2049
  Pe(n);
2050
2050
  }), [n]);
2051
- const oe = u.useCallback((() => {
2052
- Pe(!ue), j(!ue, v);
2053
- }), [ue, j, v]), Ce = w || i && (d || g), de = u.useCallback(((U) => {
2054
- U.target.getAttribute("data-tag") === er && ($(v, U), !r && i && d && oe());
2055
- }), [r, d, i, oe, $, v]), le = u.useCallback(((U) => {
2056
- U.target.getAttribute("data-tag") === er && (P(v, U), !r && i && g && oe());
2057
- }), [r, g, i, oe, P, v]), Ee = u.useCallback(((U) => {
2058
- C(v, U);
2059
- }), [C, v]), pe = u.useCallback(((U) => {
2060
- O(v, U);
2061
- }), [O, v]), Z = wt(v, S), { conditionalStyle: nt, classNames: rt } = No(v, t, ["rdt_TableRow"]), He = ie && $e, Ie = E ? nt : {}, ot = ve && Q % 2 == 0;
2062
- return u.createElement(u.Fragment, null, u.createElement(Zi, { id: `row-${b}`, role: "row", $striped: ot, $highlightOnHover: y, $pointerOnHover: !r && Ce, $dense: o, onClick: de, onDoubleClick: le, onMouseEnter: Ee, onMouseLeave: pe, className: rt, $selected: He, $conditionalStyle: nt }, ge && u.createElement(Vi, { name: `select-row-${Z}`, keyField: S, row: v, rowCount: N, selected: $e, selectableRowsComponent: be, selectableRowsComponentProps: H, selectableRowDisabled: re, selectableRowsSingle: ye, onSelectedRow: _ }), i && !f && u.createElement(Ui, { id: Z, expandableIcon: a, expanded: ue, row: v, onToggled: oe, disabled: r }), e.map(((U) => U.omit ? null : u.createElement(Wi, { id: `cell-${U.id}-${Z}`, key: `cell-${U.id}-${Z}`, dataTag: U.ignoreRowClick || U.button ? null : er, column: U, row: v, rowIndex: Q, isDragging: zt(Ae, U.id), onDragStart: se, onDragOver: xe, onDragEnd: Se, onDragEnter: q, onDragLeave: Oe })))), i && ue && u.createElement(Qi, { key: `expander-${Z}`, data: v, extendedRowStyle: Ie, extendedClassNames: rt, ExpanderComponent: l, expanderComponentProps: c }));
2063
- }
2064
- const ts = L.span`
2051
+ const ae = u.useCallback((() => {
2052
+ Pe(!de), P(!de, w);
2053
+ }), [de, P, w]), Ce = R || i && (g || f), pe = u.useCallback(((J) => {
2054
+ J.target.getAttribute("data-tag") === er && (E(w, J), !r && i && g && ae());
2055
+ }), [r, g, i, ae, E, w]), ce = u.useCallback(((J) => {
2056
+ J.target.getAttribute("data-tag") === er && (k(w, J), !r && i && f && ae());
2057
+ }), [r, f, i, ae, k, w]), Ee = u.useCallback(((J) => {
2058
+ C(w, J);
2059
+ }), [C, w]), fe = u.useCallback(((J) => {
2060
+ O(w, J);
2061
+ }), [O, w]), te = wt(w, S), { conditionalStyle: nt, classNames: rt } = Lo(w, t, ["rdt_TableRow"]), He = se && $e, Ie = x ? nt : {}, ot = ve && G % 2 == 0;
2062
+ return u.createElement(u.Fragment, null, u.createElement(ns, { id: `row-${y}`, role: "row", $striped: ot, $highlightOnHover: b, $pointerOnHover: !r && Ce, $dense: o, onClick: pe, onDoubleClick: ce, onMouseEnter: Ee, onMouseLeave: fe, className: rt, $selected: He, $conditionalStyle: nt }, Q && u.createElement(Yi, { name: `select-row-${te}`, keyField: S, row: w, rowCount: M, selected: $e, selectableRowsComponent: be, selectableRowsComponentProps: z, selectableRowDisabled: D, selectableRowsSingle: ye, onSelectedRow: _ }), i && !p && u.createElement(Ji, { id: te, expandableIcon: a, expanded: de, row: w, onToggled: ae, disabled: r }), e.map(((J) => J.omit ? null : u.createElement(qi, { id: `cell-${J.id}-${te}`, key: `cell-${J.id}-${te}`, dataTag: J.ignoreRowClick || J.button ? null : er, column: J, row: w, rowIndex: G, isDragging: zt(Ae, J.id), onDragStart: le, onDragOver: xe, onDragEnd: Se, onDragEnter: Y, onDragLeave: Oe })))), i && de && u.createElement(Zi, { key: `expander-${te}`, data: w, extendedRowStyle: Ie, extendedClassNames: rt, ExpanderComponent: l, expanderComponentProps: c }));
2063
+ }
2064
+ const os = L.span`
2065
2065
  padding: 2px;
2066
2066
  color: inherit;
2067
2067
  flex-grow: 0;
2068
2068
  flex-shrink: 0;
2069
2069
  ${({ $sortActive: e }) => e ? "opacity: 1" : "opacity: 0"};
2070
2070
  ${({ $sortDirection: e }) => e === "desc" && "transform: rotate(180deg)"};
2071
- `, ns = ({ sortActive: e, sortDirection: t }) => A.createElement(ts, { $sortActive: e, $sortDirection: t }, "▲"), rs = L(Lo)`
2071
+ `, as = ({ sortActive: e, sortDirection: t }) => I.createElement(os, { $sortActive: e, $sortDirection: t }, "▲"), is = L(Ho)`
2072
2072
  ${({ button: e }) => e && "text-align: center"};
2073
2073
  ${({ theme: e, $isDragging: t }) => t && e.headCells.draggingStyle};
2074
- `, os = te`
2074
+ `, ss = re`
2075
2075
  cursor: pointer;
2076
2076
  span.__rdt_custom_sort_icon__ {
2077
2077
  i,
@@ -2094,7 +2094,7 @@ const ts = L.span`
2094
2094
  }
2095
2095
  }
2096
2096
 
2097
- ${({ $sortActive: e }) => !e && te`
2097
+ ${({ $sortActive: e }) => !e && re`
2098
2098
  &:hover,
2099
2099
  &:focus {
2100
2100
  opacity: 0.7;
@@ -2105,7 +2105,7 @@ const ts = L.span`
2105
2105
  }
2106
2106
  }
2107
2107
  `};
2108
- `, as = L.div`
2108
+ `, ls = L.div`
2109
2109
  display: inline-flex;
2110
2110
  align-items: center;
2111
2111
  justify-content: inherit;
@@ -2114,30 +2114,30 @@ const ts = L.span`
2114
2114
  outline: none;
2115
2115
  user-select: none;
2116
2116
  overflow: hidden;
2117
- ${({ disabled: e }) => !e && os};
2118
- `, is = L.div`
2117
+ ${({ disabled: e }) => !e && ss};
2118
+ `, cs = L.div`
2119
2119
  overflow: hidden;
2120
2120
  white-space: nowrap;
2121
2121
  text-overflow: ellipsis;
2122
2122
  `;
2123
- var ss = u.memo((function({ column: e, disabled: t, draggingColumnId: n, selectedColumn: r = {}, sortDirection: o, sortIcon: a, sortServer: i, pagination: l, paginationServer: c, persistSelectedOnSort: f, selectableRowsVisibleOnly: d, onSort: g, onDragStart: y, onDragOver: b, onDragEnd: E, onDragEnter: S, onDragLeave: $ }) {
2123
+ var us = u.memo((function({ column: e, disabled: t, draggingColumnId: n, selectedColumn: r = {}, sortDirection: o, sortIcon: a, sortServer: i, pagination: l, paginationServer: c, persistSelectedOnSort: p, selectableRowsVisibleOnly: g, onSort: f, onDragStart: b, onDragOver: y, onDragEnd: x, onDragEnter: S, onDragLeave: E }) {
2124
2124
  u.useEffect((() => {
2125
2125
  typeof e.selector == "string" && console.error(`Warning: ${e.selector} is a string based column selector which has been deprecated as of v7 and will be removed in v8. Instead, use a selector function e.g. row => row[field]...`);
2126
2126
  }), []);
2127
- const [P, C] = u.useState(!1), O = u.useRef(null);
2127
+ const [k, C] = u.useState(!1), O = u.useRef(null);
2128
2128
  if (u.useEffect((() => {
2129
2129
  O.current && C(O.current.scrollWidth > O.current.clientWidth);
2130
- }), [P]), e.omit) return null;
2131
- const j = () => {
2130
+ }), [k]), e.omit) return null;
2131
+ const P = () => {
2132
2132
  if (!e.sortable && !e.selector) return;
2133
- let H = o;
2134
- zt(r.id, e.id) && (H = o === Ge.ASC ? Ge.DESC : Ge.ASC), g({ type: "SORT_CHANGE", sortDirection: H, selectedColumn: e, clearSelectedOnSort: l && c && !f || i || d });
2135
- }, _ = (H) => u.createElement(ns, { sortActive: H, sortDirection: o }), w = () => u.createElement("span", { className: [o, "__rdt_custom_sort_icon__"].join(" ") }, a), v = !(!e.sortable || !zt(r.id, e.id)), N = !e.sortable || t, Q = e.sortable && !a && !e.right, re = e.sortable && !a && e.right, ge = e.sortable && a && !e.right, be = e.sortable && a && e.right;
2136
- return u.createElement(rs, { "data-column-id": e.id, className: "rdt_TableCol", $headCell: !0, allowOverflow: e.allowOverflow, button: e.button, compact: e.compact, grow: e.grow, hide: e.hide, maxWidth: e.maxWidth, minWidth: e.minWidth, right: e.right, center: e.center, width: e.width, draggable: e.reorder, $isDragging: zt(e.id, n), onDragStart: y, onDragOver: b, onDragEnd: E, onDragEnter: S, onDragLeave: $ }, e.name && u.createElement(as, { "data-column-id": e.id, "data-sort-id": e.id, role: "columnheader", tabIndex: 0, className: "rdt_TableCol_Sortable", onClick: N ? void 0 : j, onKeyPress: N ? void 0 : (H) => {
2137
- H.key === "Enter" && j();
2138
- }, $sortActive: !N && v, disabled: N }, !N && be && w(), !N && re && _(v), typeof e.name == "string" ? u.createElement(is, { title: P ? e.name : void 0, ref: O, "data-column-id": e.id }, e.name) : e.name, !N && ge && w(), !N && Q && _(v)));
2133
+ let z = o;
2134
+ zt(r.id, e.id) && (z = o === Ge.ASC ? Ge.DESC : Ge.ASC), f({ type: "SORT_CHANGE", sortDirection: z, selectedColumn: e, clearSelectedOnSort: l && c && !p || i || g });
2135
+ }, _ = (z) => u.createElement(as, { sortActive: z, sortDirection: o }), R = () => u.createElement("span", { className: [o, "__rdt_custom_sort_icon__"].join(" ") }, a), w = !(!e.sortable || !zt(r.id, e.id)), M = !e.sortable || t, G = e.sortable && !a && !e.right, D = e.sortable && !a && e.right, Q = e.sortable && a && !e.right, be = e.sortable && a && e.right;
2136
+ return u.createElement(is, { "data-column-id": e.id, className: "rdt_TableCol", $headCell: !0, allowOverflow: e.allowOverflow, button: e.button, compact: e.compact, grow: e.grow, hide: e.hide, maxWidth: e.maxWidth, minWidth: e.minWidth, right: e.right, center: e.center, width: e.width, draggable: e.reorder, $isDragging: zt(e.id, n), onDragStart: b, onDragOver: y, onDragEnd: x, onDragEnter: S, onDragLeave: E }, e.name && u.createElement(ls, { "data-column-id": e.id, "data-sort-id": e.id, role: "columnheader", tabIndex: 0, className: "rdt_TableCol_Sortable", onClick: M ? void 0 : P, onKeyPress: M ? void 0 : (z) => {
2137
+ z.key === "Enter" && P();
2138
+ }, $sortActive: !M && w, disabled: M }, !M && be && R(), !M && D && _(w), typeof e.name == "string" ? u.createElement(cs, { title: k ? e.name : void 0, ref: O, "data-column-id": e.id }, e.name) : e.name, !M && Q && R(), !M && G && _(w)));
2139
2139
  }));
2140
- const ls = L(Rt)`
2140
+ const ds = L(Rt)`
2141
2141
  flex: 0 0 48px;
2142
2142
  justify-content: center;
2143
2143
  align-items: center;
@@ -2145,13 +2145,13 @@ const ls = L(Rt)`
2145
2145
  white-space: nowrap;
2146
2146
  font-size: unset;
2147
2147
  `;
2148
- function cs({ headCell: e = !0, rowData: t, keyField: n, allSelected: r, mergeSelections: o, selectedRows: a, selectableRowsComponent: i, selectableRowsComponentProps: l, selectableRowDisabled: c, onSelectAllRows: f }) {
2149
- const d = a.length > 0 && !r, g = c ? t.filter(((E) => !c(E))) : t, y = g.length === 0, b = Math.min(t.length, g.length);
2150
- return u.createElement(ls, { className: "rdt_TableCol", $headCell: e, $noPadding: !0 }, u.createElement(Mo, { name: "select-all-rows", component: i, componentOptions: l, onClick: () => {
2151
- f({ type: "SELECT_ALL_ROWS", rows: g, rowCount: b, mergeSelections: o, keyField: n });
2152
- }, checked: r, indeterminate: d, disabled: y }));
2148
+ function ps({ headCell: e = !0, rowData: t, keyField: n, allSelected: r, mergeSelections: o, selectedRows: a, selectableRowsComponent: i, selectableRowsComponentProps: l, selectableRowDisabled: c, onSelectAllRows: p }) {
2149
+ const g = a.length > 0 && !r, f = c ? t.filter(((x) => !c(x))) : t, b = f.length === 0, y = Math.min(t.length, f.length);
2150
+ return u.createElement(ds, { className: "rdt_TableCol", $headCell: e, $noPadding: !0 }, u.createElement(zo, { name: "select-all-rows", component: i, componentOptions: l, onClick: () => {
2151
+ p({ type: "SELECT_ALL_ROWS", rows: f, rowCount: y, mergeSelections: o, keyField: n });
2152
+ }, checked: r, indeterminate: g, disabled: b }));
2153
2153
  }
2154
- function Ho(e = Pn.AUTO) {
2154
+ function Wo(e = Pn.AUTO) {
2155
2155
  const t = typeof window == "object", [n, r] = u.useState(!1);
2156
2156
  return u.useEffect((() => {
2157
2157
  if (t) if (e !== "auto") r(e === "rtl");
@@ -2161,7 +2161,7 @@ function Ho(e = Pn.AUTO) {
2161
2161
  }
2162
2162
  }), [e, t]), n;
2163
2163
  }
2164
- const us = L.div`
2164
+ const fs = L.div`
2165
2165
  display: flex;
2166
2166
  align-items: center;
2167
2167
  flex: 1 0 auto;
@@ -2169,7 +2169,7 @@ const us = L.div`
2169
2169
  color: ${({ theme: e }) => e.contextMenu.fontColor};
2170
2170
  font-size: ${({ theme: e }) => e.contextMenu.fontSize};
2171
2171
  font-weight: 400;
2172
- `, ds = L.div`
2172
+ `, gs = L.div`
2173
2173
  display: flex;
2174
2174
  align-items: center;
2175
2175
  justify-content: flex-end;
@@ -2189,15 +2189,15 @@ const us = L.div`
2189
2189
  ${({ theme: e }) => e.contextMenu.style};
2190
2190
  ${({ theme: e, $visible: t }) => t && e.contextMenu.activeStyle};
2191
2191
  `;
2192
- function ps({ contextMessage: e, contextActions: t, contextComponent: n, selectedCount: r, direction: o }) {
2193
- const a = Ho(o), i = r > 0;
2194
- return n ? u.createElement(Xr, { $visible: i }, u.cloneElement(n, { selectedCount: r })) : u.createElement(Xr, { $visible: i, $rtl: a }, u.createElement(us, null, ((l, c, f) => {
2192
+ function hs({ contextMessage: e, contextActions: t, contextComponent: n, selectedCount: r, direction: o }) {
2193
+ const a = Wo(o), i = r > 0;
2194
+ return n ? u.createElement(Xr, { $visible: i }, u.cloneElement(n, { selectedCount: r })) : u.createElement(Xr, { $visible: i, $rtl: a }, u.createElement(fs, null, ((l, c, p) => {
2195
2195
  if (c === 0) return null;
2196
- const d = c === 1 ? l.singular : l.plural;
2197
- return f ? `${c} ${l.message || ""} ${d}` : `${c} ${d} ${l.message || ""}`;
2198
- })(e, r, a)), u.createElement(ds, null, t));
2196
+ const g = c === 1 ? l.singular : l.plural;
2197
+ return p ? `${c} ${l.message || ""} ${g}` : `${c} ${g} ${l.message || ""}`;
2198
+ })(e, r, a)), u.createElement(gs, null, t));
2199
2199
  }
2200
- const fs = L.div`
2200
+ const ms = L.div`
2201
2201
  position: relative;
2202
2202
  box-sizing: border-box;
2203
2203
  overflow: hidden;
@@ -2208,12 +2208,12 @@ const fs = L.div`
2208
2208
  width: 100%;
2209
2209
  flex-wrap: wrap;
2210
2210
  ${({ theme: e }) => e.header.style}
2211
- `, gs = L.div`
2211
+ `, bs = L.div`
2212
2212
  flex: 1 0 auto;
2213
2213
  color: ${({ theme: e }) => e.header.fontColor};
2214
2214
  font-size: ${({ theme: e }) => e.header.fontSize};
2215
2215
  font-weight: 400;
2216
- `, hs = L.div`
2216
+ `, ys = L.div`
2217
2217
  flex: 1 0 auto;
2218
2218
  display: flex;
2219
2219
  align-items: center;
@@ -2222,8 +2222,8 @@ const fs = L.div`
2222
2222
  > * {
2223
2223
  margin-left: 5px;
2224
2224
  }
2225
- `, ms = ({ title: e, actions: t = null, contextMessage: n, contextActions: r, contextComponent: o, selectedCount: a, direction: i, showMenu: l = !0 }) => u.createElement(fs, { className: "rdt_TableHeader", role: "heading", "aria-level": 1 }, u.createElement(gs, null, e), t && u.createElement(hs, null, t), l && u.createElement(ps, { contextMessage: n, contextActions: r, contextComponent: o, direction: i, selectedCount: a }));
2226
- function zo(e, t) {
2225
+ `, vs = ({ title: e, actions: t = null, contextMessage: n, contextActions: r, contextComponent: o, selectedCount: a, direction: i, showMenu: l = !0 }) => u.createElement(ms, { className: "rdt_TableHeader", role: "heading", "aria-level": 1 }, u.createElement(bs, null, e), t && u.createElement(ys, null, t), l && u.createElement(hs, { contextMessage: n, contextActions: r, contextComponent: o, direction: i, selectedCount: a }));
2226
+ function Vo(e, t) {
2227
2227
  var n = {};
2228
2228
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2229
2229
  if (e != null && typeof Object.getOwnPropertySymbols == "function") {
@@ -2232,7 +2232,7 @@ function zo(e, t) {
2232
2232
  }
2233
2233
  return n;
2234
2234
  }
2235
- const bs = { left: "flex-start", right: "flex-end", center: "center" }, ys = L.header`
2235
+ const ws = { left: "flex-start", right: "flex-end", center: "center" }, xs = L.header`
2236
2236
  position: relative;
2237
2237
  display: flex;
2238
2238
  flex: 1 1 auto;
@@ -2240,20 +2240,20 @@ const bs = { left: "flex-start", right: "flex-end", center: "center" }, ys = L.h
2240
2240
  align-items: center;
2241
2241
  padding: 4px 16px 4px 24px;
2242
2242
  width: 100%;
2243
- justify-content: ${({ align: e }) => bs[e]};
2243
+ justify-content: ${({ align: e }) => ws[e]};
2244
2244
  flex-wrap: ${({ $wrapContent: e }) => e ? "wrap" : "nowrap"};
2245
2245
  ${({ theme: e }) => e.subHeader.style}
2246
- `, vs = (e) => {
2247
- var { align: t = "right", wrapContent: n = !0 } = e, r = zo(e, ["align", "wrapContent"]);
2248
- return u.createElement(ys, Object.assign({ align: t, $wrapContent: n }, r));
2249
- }, ws = L.div`
2246
+ `, Ss = (e) => {
2247
+ var { align: t = "right", wrapContent: n = !0 } = e, r = Vo(e, ["align", "wrapContent"]);
2248
+ return u.createElement(xs, Object.assign({ align: t, $wrapContent: n }, r));
2249
+ }, Cs = L.div`
2250
2250
  display: flex;
2251
2251
  flex-direction: column;
2252
- `, xs = L.div`
2252
+ `, Es = L.div`
2253
2253
  position: relative;
2254
2254
  width: 100%;
2255
2255
  border-radius: inherit;
2256
- ${({ $responsive: e, $fixedHeader: t }) => e && te`
2256
+ ${({ $responsive: e, $fixedHeader: t }) => e && re`
2257
2257
  overflow-x: auto;
2258
2258
 
2259
2259
  // hidden prevents vertical scrolling in firefox when fixedHeader is disabled
@@ -2261,7 +2261,7 @@ const bs = { left: "flex-start", right: "flex-end", center: "center" }, ys = L.h
2261
2261
  min-height: 0;
2262
2262
  `};
2263
2263
 
2264
- ${({ $fixedHeader: e = !1, $fixedHeaderScrollHeight: t = "100vh" }) => e && te`
2264
+ ${({ $fixedHeader: e = !1, $fixedHeaderScrollHeight: t = "100vh" }) => e && re`
2265
2265
  max-height: ${t};
2266
2266
  -webkit-overflow-scrolling: touch;
2267
2267
  `};
@@ -2273,19 +2273,19 @@ const bs = { left: "flex-start", right: "flex-end", center: "center" }, ys = L.h
2273
2273
  width: 100%;
2274
2274
  height: 100%;
2275
2275
  ${(e) => e.theme.progress.style};
2276
- `, Ss = L.div`
2276
+ `, Rs = L.div`
2277
2277
  position: relative;
2278
2278
  width: 100%;
2279
2279
  ${({ theme: e }) => e.tableWrapper.style};
2280
- `, Cs = L(Rt)`
2280
+ `, $s = L(Rt)`
2281
2281
  white-space: nowrap;
2282
2282
  ${({ theme: e }) => e.expanderCell.style};
2283
- `, Es = L.div`
2283
+ `, Os = L.div`
2284
2284
  box-sizing: border-box;
2285
2285
  width: 100%;
2286
2286
  height: 100%;
2287
2287
  ${({ theme: e }) => e.noData.style};
2288
- `, Rs = () => A.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24" }, A.createElement("path", { d: "M7 10l5 5 5-5z" }), A.createElement("path", { d: "M0 0h24v24H0z", fill: "none" })), $s = L.select`
2288
+ `, Ps = () => I.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24" }, I.createElement("path", { d: "M7 10l5 5 5-5z" }), I.createElement("path", { d: "M0 0h24v24H0z", fill: "none" })), ks = L.select`
2289
2289
  cursor: pointer;
2290
2290
  height: 24px;
2291
2291
  max-width: 100%;
@@ -2312,7 +2312,7 @@ const bs = { left: "flex-start", right: "flex-end", center: "center" }, ys = L.h
2312
2312
  option {
2313
2313
  color: initial;
2314
2314
  }
2315
- `, Os = L.div`
2315
+ `, js = L.div`
2316
2316
  position: relative;
2317
2317
  flex-shrink: 0;
2318
2318
  font-size: inherit;
@@ -2331,12 +2331,12 @@ const bs = { left: "flex-start", right: "flex-end", center: "center" }, ys = L.h
2331
2331
  user-select: none;
2332
2332
  pointer-events: none;
2333
2333
  }
2334
- `, Ps = (e) => {
2335
- var { defaultValue: t, onChange: n } = e, r = zo(e, ["defaultValue", "onChange"]);
2336
- return u.createElement(Os, null, u.createElement($s, Object.assign({ onChange: n, defaultValue: t }, r)), u.createElement(Rs, null));
2334
+ `, Ts = (e) => {
2335
+ var { defaultValue: t, onChange: n } = e, r = Vo(e, ["defaultValue", "onChange"]);
2336
+ return u.createElement(js, null, u.createElement(ks, Object.assign({ onChange: n, defaultValue: t }, r)), u.createElement(Ps, null));
2337
2337
  }, m = { columns: [], data: [], title: "", keyField: "id", selectableRows: !1, selectableRowsHighlight: !1, selectableRowsNoSelectAll: !1, selectableRowSelected: null, selectableRowDisabled: null, selectableRowsComponent: "input", selectableRowsComponentProps: {}, selectableRowsVisibleOnly: !1, selectableRowsSingle: !1, clearSelectedRows: !1, expandableRows: !1, expandableRowDisabled: null, expandableRowExpanded: null, expandOnRowClicked: !1, expandableRowsHideExpander: !1, expandOnRowDoubleClicked: !1, expandableInheritConditionalStyles: !1, expandableRowsComponent: function() {
2338
- return A.createElement("div", null, "To add an expander pass in a component instance via ", A.createElement("strong", null, "expandableRowsComponent"), ". You can then access props.data from this component.");
2339
- }, expandableIcon: { collapsed: A.createElement((() => A.createElement("svg", { fill: "currentColor", height: "24", viewBox: "0 0 24 24", width: "24", xmlns: "http://www.w3.org/2000/svg" }, A.createElement("path", { d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z" }), A.createElement("path", { d: "M0-.25h24v24H0z", fill: "none" }))), null), expanded: A.createElement((() => A.createElement("svg", { fill: "currentColor", height: "24", viewBox: "0 0 24 24", width: "24", xmlns: "http://www.w3.org/2000/svg" }, A.createElement("path", { d: "M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z" }), A.createElement("path", { d: "M0-.75h24v24H0z", fill: "none" }))), null) }, expandableRowsComponentProps: {}, progressPending: !1, progressComponent: A.createElement("div", { style: { fontSize: "24px", fontWeight: 700, padding: "24px" } }, "Loading..."), persistTableHead: !1, sortIcon: null, sortFunction: null, sortServer: !1, striped: !1, highlightOnHover: !1, pointerOnHover: !1, noContextMenu: !1, contextMessage: { singular: "item", plural: "items", message: "selected" }, actions: null, contextActions: null, contextComponent: null, defaultSortFieldId: null, defaultSortAsc: !0, responsive: !0, noDataComponent: A.createElement("div", { style: { padding: "24px" } }, "There are no records to display"), disabled: !1, noTableHead: !1, noHeader: !1, subHeader: !1, subHeaderAlign: fr.RIGHT, subHeaderWrap: !0, subHeaderComponent: null, fixedHeader: !1, fixedHeaderScrollHeight: "100vh", pagination: !1, paginationServer: !1, paginationServerOptions: { persistSelectedOnSort: !1, persistSelectedOnPageChange: !1 }, paginationDefaultPage: 1, paginationResetDefaultPage: !1, paginationTotalRows: 0, paginationPerPage: 10, paginationRowsPerPageOptions: [10, 15, 20, 25, 30], paginationComponent: null, paginationComponentOptions: {}, paginationIconFirstPage: A.createElement((() => A.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", "aria-hidden": "true", role: "presentation" }, A.createElement("path", { d: "M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z" }), A.createElement("path", { fill: "none", d: "M24 24H0V0h24v24z" }))), null), paginationIconLastPage: A.createElement((() => A.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", "aria-hidden": "true", role: "presentation" }, A.createElement("path", { d: "M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z" }), A.createElement("path", { fill: "none", d: "M0 0h24v24H0V0z" }))), null), paginationIconNext: A.createElement((() => A.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", "aria-hidden": "true", role: "presentation" }, A.createElement("path", { d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" }), A.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }))), null), paginationIconPrevious: A.createElement((() => A.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", "aria-hidden": "true", role: "presentation" }, A.createElement("path", { d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z" }), A.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }))), null), dense: !1, conditionalRowStyles: [], theme: "default", customStyles: {}, direction: Pn.AUTO, onChangePage: ee, onChangeRowsPerPage: ee, onRowClicked: ee, onRowDoubleClicked: ee, onRowMouseEnter: ee, onRowMouseLeave: ee, onRowExpandToggled: ee, onSelectedRowsChange: ee, onSort: ee, onColumnOrderChange: ee }, js = { rowsPerPageText: "Rows per page:", rangeSeparatorText: "of", noRowsPerPage: !1, selectAllRowsItem: !1, selectAllRowsItemText: "All" }, ks = L.nav`
2338
+ return I.createElement("div", null, "To add an expander pass in a component instance via ", I.createElement("strong", null, "expandableRowsComponent"), ". You can then access props.data from this component.");
2339
+ }, expandableIcon: { collapsed: I.createElement((() => I.createElement("svg", { fill: "currentColor", height: "24", viewBox: "0 0 24 24", width: "24", xmlns: "http://www.w3.org/2000/svg" }, I.createElement("path", { d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z" }), I.createElement("path", { d: "M0-.25h24v24H0z", fill: "none" }))), null), expanded: I.createElement((() => I.createElement("svg", { fill: "currentColor", height: "24", viewBox: "0 0 24 24", width: "24", xmlns: "http://www.w3.org/2000/svg" }, I.createElement("path", { d: "M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z" }), I.createElement("path", { d: "M0-.75h24v24H0z", fill: "none" }))), null) }, expandableRowsComponentProps: {}, progressPending: !1, progressComponent: I.createElement("div", { style: { fontSize: "24px", fontWeight: 700, padding: "24px" } }, "Loading..."), persistTableHead: !1, sortIcon: null, sortFunction: null, sortServer: !1, striped: !1, highlightOnHover: !1, pointerOnHover: !1, noContextMenu: !1, contextMessage: { singular: "item", plural: "items", message: "selected" }, actions: null, contextActions: null, contextComponent: null, defaultSortFieldId: null, defaultSortAsc: !0, responsive: !0, noDataComponent: I.createElement("div", { style: { padding: "24px" } }, "There are no records to display"), disabled: !1, noTableHead: !1, noHeader: !1, subHeader: !1, subHeaderAlign: fr.RIGHT, subHeaderWrap: !0, subHeaderComponent: null, fixedHeader: !1, fixedHeaderScrollHeight: "100vh", pagination: !1, paginationServer: !1, paginationServerOptions: { persistSelectedOnSort: !1, persistSelectedOnPageChange: !1 }, paginationDefaultPage: 1, paginationResetDefaultPage: !1, paginationTotalRows: 0, paginationPerPage: 10, paginationRowsPerPageOptions: [10, 15, 20, 25, 30], paginationComponent: null, paginationComponentOptions: {}, paginationIconFirstPage: I.createElement((() => I.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", "aria-hidden": "true", role: "presentation" }, I.createElement("path", { d: "M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z" }), I.createElement("path", { fill: "none", d: "M24 24H0V0h24v24z" }))), null), paginationIconLastPage: I.createElement((() => I.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", "aria-hidden": "true", role: "presentation" }, I.createElement("path", { d: "M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z" }), I.createElement("path", { fill: "none", d: "M0 0h24v24H0V0z" }))), null), paginationIconNext: I.createElement((() => I.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", "aria-hidden": "true", role: "presentation" }, I.createElement("path", { d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" }), I.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }))), null), paginationIconPrevious: I.createElement((() => I.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", "aria-hidden": "true", role: "presentation" }, I.createElement("path", { d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z" }), I.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }))), null), dense: !1, conditionalRowStyles: [], theme: "default", customStyles: {}, direction: Pn.AUTO, onChangePage: ne, onChangeRowsPerPage: ne, onRowClicked: ne, onRowDoubleClicked: ne, onRowMouseEnter: ne, onRowMouseLeave: ne, onRowExpandToggled: ne, onSelectedRowsChange: ne, onSort: ne, onColumnOrderChange: ne }, _s = { rowsPerPageText: "Rows per page:", rangeSeparatorText: "of", noRowsPerPage: !1, selectAllRowsItem: !1, selectAllRowsItemText: "All" }, Ds = L.nav`
2340
2340
  display: flex;
2341
2341
  flex: 1 1 auto;
2342
2342
  justify-content: flex-end;
@@ -2353,41 +2353,41 @@ const bs = { left: "flex-start", right: "flex-end", center: "center" }, ys = L.h
2353
2353
  border: none;
2354
2354
  ${({ theme: e }) => e.pagination.pageButtonsStyle};
2355
2355
  ${({ $isRTL: e }) => e && "transform: scale(-1, -1)"};
2356
- `, Ts = L.div`
2356
+ `, As = L.div`
2357
2357
  display: flex;
2358
2358
  align-items: center;
2359
2359
  border-radius: 4px;
2360
2360
  white-space: nowrap;
2361
- ${Fo`
2361
+ ${Mo`
2362
2362
  width: 100%;
2363
2363
  justify-content: space-around;
2364
2364
  `};
2365
- `, Wo = L.span`
2365
+ `, Bo = L.span`
2366
2366
  flex-shrink: 1;
2367
2367
  user-select: none;
2368
- `, _s = L(Wo)`
2368
+ `, Is = L(Bo)`
2369
2369
  margin: 0 24px;
2370
- `, Ds = L(Wo)`
2370
+ `, Ns = L(Bo)`
2371
2371
  margin: 0 4px;
2372
2372
  `;
2373
- var As = u.memo((function({ rowsPerPage: e, rowCount: t, currentPage: n, direction: r = m.direction, paginationRowsPerPageOptions: o = m.paginationRowsPerPageOptions, paginationIconLastPage: a = m.paginationIconLastPage, paginationIconFirstPage: i = m.paginationIconFirstPage, paginationIconNext: l = m.paginationIconNext, paginationIconPrevious: c = m.paginationIconPrevious, paginationComponentOptions: f = m.paginationComponentOptions, onChangeRowsPerPage: d = m.onChangeRowsPerPage, onChangePage: g = m.onChangePage }) {
2374
- const y = (() => {
2375
- const H = typeof window == "object";
2376
- function ie() {
2377
- return { width: H ? window.innerWidth : void 0, height: H ? window.innerHeight : void 0 };
2373
+ var Fs = u.memo((function({ rowsPerPage: e, rowCount: t, currentPage: n, direction: r = m.direction, paginationRowsPerPageOptions: o = m.paginationRowsPerPageOptions, paginationIconLastPage: a = m.paginationIconLastPage, paginationIconFirstPage: i = m.paginationIconFirstPage, paginationIconNext: l = m.paginationIconNext, paginationIconPrevious: c = m.paginationIconPrevious, paginationComponentOptions: p = m.paginationComponentOptions, onChangeRowsPerPage: g = m.onChangeRowsPerPage, onChangePage: f = m.onChangePage }) {
2374
+ const b = (() => {
2375
+ const z = typeof window == "object";
2376
+ function se() {
2377
+ return { width: z ? window.innerWidth : void 0, height: z ? window.innerHeight : void 0 };
2378
2378
  }
2379
- const [ye, $e] = u.useState(ie);
2379
+ const [ye, $e] = u.useState(se);
2380
2380
  return u.useEffect((() => {
2381
- if (!H) return () => null;
2381
+ if (!z) return () => null;
2382
2382
  function ve() {
2383
- $e(ie());
2383
+ $e(se());
2384
2384
  }
2385
2385
  return window.addEventListener("resize", ve), () => window.removeEventListener("resize", ve);
2386
2386
  }), []), ye;
2387
- })(), b = Ho(r), E = y.width && y.width > 599, S = Ht(t, e), $ = n * e, P = $ - e + 1, C = n === 1, O = n === S, j = Object.assign(Object.assign({}, js), f), _ = n === S ? `${P}-${t} ${j.rangeSeparatorText} ${t}` : `${P}-${$} ${j.rangeSeparatorText} ${t}`, w = u.useCallback((() => g(n - 1)), [n, g]), v = u.useCallback((() => g(n + 1)), [n, g]), N = u.useCallback((() => g(1)), [g]), Q = u.useCallback((() => g(Ht(t, e))), [g, t, e]), re = u.useCallback(((H) => d(Number(H.target.value), n)), [n, d]), ge = o.map(((H) => u.createElement("option", { key: H, value: H }, H)));
2388
- j.selectAllRowsItem && ge.push(u.createElement("option", { key: -1, value: t }, j.selectAllRowsItemText));
2389
- const be = u.createElement(Ps, { onChange: re, defaultValue: e, "aria-label": j.rowsPerPageText }, ge);
2390
- return u.createElement(ks, { className: "rdt_Pagination" }, !j.noRowsPerPage && E && u.createElement(u.Fragment, null, u.createElement(Ds, null, j.rowsPerPageText), be), E && u.createElement(_s, null, _), u.createElement(Ts, null, u.createElement(gn, { id: "pagination-first-page", type: "button", "aria-label": "First Page", "aria-disabled": C, onClick: N, disabled: C, $isRTL: b }, i), u.createElement(gn, { id: "pagination-previous-page", type: "button", "aria-label": "Previous Page", "aria-disabled": C, onClick: w, disabled: C, $isRTL: b }, c), !j.noRowsPerPage && !E && be, u.createElement(gn, { id: "pagination-next-page", type: "button", "aria-label": "Next Page", "aria-disabled": O, onClick: v, disabled: O, $isRTL: b }, l), u.createElement(gn, { id: "pagination-last-page", type: "button", "aria-label": "Last Page", "aria-disabled": O, onClick: Q, disabled: O, $isRTL: b }, a)));
2387
+ })(), y = Wo(r), x = b.width && b.width > 599, S = Ht(t, e), E = n * e, k = E - e + 1, C = n === 1, O = n === S, P = Object.assign(Object.assign({}, _s), p), _ = n === S ? `${k}-${t} ${P.rangeSeparatorText} ${t}` : `${k}-${E} ${P.rangeSeparatorText} ${t}`, R = u.useCallback((() => f(n - 1)), [n, f]), w = u.useCallback((() => f(n + 1)), [n, f]), M = u.useCallback((() => f(1)), [f]), G = u.useCallback((() => f(Ht(t, e))), [f, t, e]), D = u.useCallback(((z) => g(Number(z.target.value), n)), [n, g]), Q = o.map(((z) => u.createElement("option", { key: z, value: z }, z)));
2388
+ P.selectAllRowsItem && Q.push(u.createElement("option", { key: -1, value: t }, P.selectAllRowsItemText));
2389
+ const be = u.createElement(Ts, { onChange: D, defaultValue: e, "aria-label": P.rowsPerPageText }, Q);
2390
+ return u.createElement(Ds, { className: "rdt_Pagination" }, !P.noRowsPerPage && x && u.createElement(u.Fragment, null, u.createElement(Ns, null, P.rowsPerPageText), be), x && u.createElement(Is, null, _), u.createElement(As, null, u.createElement(gn, { id: "pagination-first-page", type: "button", "aria-label": "First Page", "aria-disabled": C, onClick: M, disabled: C, $isRTL: y }, i), u.createElement(gn, { id: "pagination-previous-page", type: "button", "aria-label": "Previous Page", "aria-disabled": C, onClick: R, disabled: C, $isRTL: y }, c), !P.noRowsPerPage && !x && be, u.createElement(gn, { id: "pagination-next-page", type: "button", "aria-label": "Next Page", "aria-disabled": O, onClick: w, disabled: O, $isRTL: y }, l), u.createElement(gn, { id: "pagination-last-page", type: "button", "aria-label": "Last Page", "aria-disabled": O, onClick: G, disabled: O, $isRTL: y }, a)));
2391
2391
  }));
2392
2392
  const Ye = (e, t) => {
2393
2393
  const n = u.useRef(!0);
@@ -2395,26 +2395,26 @@ const Ye = (e, t) => {
2395
2395
  n.current ? n.current = !1 : e();
2396
2396
  }), t);
2397
2397
  };
2398
- function Is(e) {
2398
+ function Ls(e) {
2399
2399
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2400
2400
  }
2401
- var Ns = function(e) {
2401
+ var Ms = function(e) {
2402
2402
  return /* @__PURE__ */ (function(t) {
2403
2403
  return !!t && typeof t == "object";
2404
2404
  })(e) && !(function(t) {
2405
2405
  var n = Object.prototype.toString.call(t);
2406
2406
  return n === "[object RegExp]" || n === "[object Date]" || (function(r) {
2407
- return r.$$typeof === Fs;
2407
+ return r.$$typeof === Hs;
2408
2408
  })(t);
2409
2409
  })(e);
2410
- }, Fs = typeof Symbol == "function" && Symbol.for ? /* @__PURE__ */ Symbol.for("react.element") : 60103;
2411
- function Bt(e, t) {
2410
+ }, Hs = typeof Symbol == "function" && Symbol.for ? /* @__PURE__ */ Symbol.for("react.element") : 60103;
2411
+ function Vt(e, t) {
2412
2412
  return t.clone !== !1 && t.isMergeableObject(e) ? xt((n = e, Array.isArray(n) ? [] : {}), e, t) : e;
2413
2413
  var n;
2414
2414
  }
2415
- function Ls(e, t, n) {
2415
+ function zs(e, t, n) {
2416
2416
  return e.concat(t).map((function(r) {
2417
- return Bt(r, n);
2417
+ return Vt(r, n);
2418
2418
  }));
2419
2419
  }
2420
2420
  function eo(e) {
@@ -2431,10 +2431,10 @@ function to(e, t) {
2431
2431
  return !1;
2432
2432
  }
2433
2433
  }
2434
- function Ms(e, t, n) {
2434
+ function Ws(e, t, n) {
2435
2435
  var r = {};
2436
2436
  return n.isMergeableObject(e) && eo(e).forEach((function(o) {
2437
- r[o] = Bt(e[o], n);
2437
+ r[o] = Vt(e[o], n);
2438
2438
  })), eo(t).forEach((function(o) {
2439
2439
  (function(a, i) {
2440
2440
  return to(a, i) && !(Object.hasOwnProperty.call(a, i) && Object.propertyIsEnumerable.call(a, i));
@@ -2442,13 +2442,13 @@ function Ms(e, t, n) {
2442
2442
  if (!i.customMerge) return xt;
2443
2443
  var l = i.customMerge(a);
2444
2444
  return typeof l == "function" ? l : xt;
2445
- })(o, n)(e[o], t[o], n) : r[o] = Bt(t[o], n));
2445
+ })(o, n)(e[o], t[o], n) : r[o] = Vt(t[o], n));
2446
2446
  })), r;
2447
2447
  }
2448
2448
  function xt(e, t, n) {
2449
- (n = n || {}).arrayMerge = n.arrayMerge || Ls, n.isMergeableObject = n.isMergeableObject || Ns, n.cloneUnlessOtherwiseSpecified = Bt;
2449
+ (n = n || {}).arrayMerge = n.arrayMerge || zs, n.isMergeableObject = n.isMergeableObject || Ms, n.cloneUnlessOtherwiseSpecified = Vt;
2450
2450
  var r = Array.isArray(t);
2451
- return r === Array.isArray(e) ? r ? n.arrayMerge(e, t, n) : Ms(e, t, n) : Bt(t, n);
2451
+ return r === Array.isArray(e) ? r ? n.arrayMerge(e, t, n) : Ws(e, t, n) : Vt(t, n);
2452
2452
  }
2453
2453
  xt.all = function(e, t) {
2454
2454
  if (!Array.isArray(e)) throw new Error("first argument should be an array");
@@ -2456,109 +2456,109 @@ xt.all = function(e, t) {
2456
2456
  return xt(n, r, t);
2457
2457
  }), {});
2458
2458
  };
2459
- var Hs = Is(xt);
2459
+ var Vs = Ls(xt);
2460
2460
  const no = { text: { primary: "rgba(0, 0, 0, 0.87)", secondary: "rgba(0, 0, 0, 0.54)", disabled: "rgba(0, 0, 0, 0.38)" }, background: { default: "#FFFFFF" }, context: { background: "#e3f2fd", text: "rgba(0, 0, 0, 0.87)" }, divider: { default: "rgba(0,0,0,.12)" }, button: { default: "rgba(0,0,0,.54)", focus: "rgba(0,0,0,.12)", hover: "rgba(0,0,0,.12)", disabled: "rgba(0, 0, 0, .18)" }, selected: { default: "#e3f2fd", text: "rgba(0, 0, 0, 0.87)" }, highlightOnHover: { default: "#EEEEEE", text: "rgba(0, 0, 0, 0.87)" }, striped: { default: "#FAFAFA", text: "rgba(0, 0, 0, 0.87)" } }, ro = { default: no, light: no, dark: { text: { primary: "#FFFFFF", secondary: "rgba(255, 255, 255, 0.7)", disabled: "rgba(0,0,0,.12)" }, background: { default: "#424242" }, context: { background: "#E91E63", text: "#FFFFFF" }, divider: { default: "rgba(81, 81, 81, 1)" }, button: { default: "#FFFFFF", focus: "rgba(255, 255, 255, .54)", hover: "rgba(255, 255, 255, .12)", disabled: "rgba(255, 255, 255, .18)" }, selected: { default: "rgba(0, 0, 0, .7)", text: "#FFFFFF" }, highlightOnHover: { default: "rgba(0, 0, 0, .7)", text: "#FFFFFF" }, striped: { default: "rgba(0, 0, 0, .87)", text: "#FFFFFF" } } };
2461
- function zs(e, t, n, r) {
2461
+ function Bs(e, t, n, r) {
2462
2462
  const [o, a] = u.useState((() => Kr(e))), [i, l] = u.useState(""), c = u.useRef("");
2463
2463
  Ye((() => {
2464
2464
  a(Kr(e));
2465
2465
  }), [e]);
2466
- const f = u.useCallback((($) => {
2467
- var P, C, O;
2468
- const { attributes: j } = $.target, _ = (P = j.getNamedItem("data-column-id")) === null || P === void 0 ? void 0 : P.value;
2466
+ const p = u.useCallback(((E) => {
2467
+ var k, C, O;
2468
+ const { attributes: P } = E.target, _ = (k = P.getNamedItem("data-column-id")) === null || k === void 0 ? void 0 : k.value;
2469
2469
  _ && (c.current = ((O = (C = o[fn(o, _)]) === null || C === void 0 ? void 0 : C.id) === null || O === void 0 ? void 0 : O.toString()) || "", l(c.current));
2470
- }), [o]), d = u.useCallback((($) => {
2471
- var P;
2472
- const { attributes: C } = $.target, O = (P = C.getNamedItem("data-column-id")) === null || P === void 0 ? void 0 : P.value;
2470
+ }), [o]), g = u.useCallback(((E) => {
2471
+ var k;
2472
+ const { attributes: C } = E.target, O = (k = C.getNamedItem("data-column-id")) === null || k === void 0 ? void 0 : k.value;
2473
2473
  if (O && c.current && O !== c.current) {
2474
- const j = fn(o, c.current), _ = fn(o, O), w = [...o];
2475
- w[j] = o[_], w[_] = o[j], a(w), t(w);
2476
- }
2477
- }), [t, o]), g = u.useCallback((($) => {
2478
- $.preventDefault();
2479
- }), []), y = u.useCallback((($) => {
2480
- $.preventDefault();
2481
- }), []), b = u.useCallback((($) => {
2482
- $.preventDefault(), c.current = "", l("");
2483
- }), []), E = (function($ = !1) {
2484
- return $ ? Ge.ASC : Ge.DESC;
2474
+ const P = fn(o, c.current), _ = fn(o, O), R = [...o];
2475
+ R[P] = o[_], R[_] = o[P], a(R), t(R);
2476
+ }
2477
+ }), [t, o]), f = u.useCallback(((E) => {
2478
+ E.preventDefault();
2479
+ }), []), b = u.useCallback(((E) => {
2480
+ E.preventDefault();
2481
+ }), []), y = u.useCallback(((E) => {
2482
+ E.preventDefault(), c.current = "", l("");
2483
+ }), []), x = (function(E = !1) {
2484
+ return E ? Ge.ASC : Ge.DESC;
2485
2485
  })(r), S = u.useMemo((() => o[fn(o, n?.toString())] || {}), [n, o]);
2486
- return { tableColumns: o, draggingColumnId: i, handleDragStart: f, handleDragEnter: d, handleDragOver: g, handleDragLeave: y, handleDragEnd: b, defaultSortDirection: E, defaultSortColumn: S };
2486
+ return { tableColumns: o, draggingColumnId: i, handleDragStart: p, handleDragEnter: g, handleDragOver: f, handleDragLeave: b, handleDragEnd: y, defaultSortDirection: x, defaultSortColumn: S };
2487
2487
  }
2488
- var Bo = u.memo((function(e) {
2489
- const { data: t = m.data, columns: n = m.columns, title: r = m.title, actions: o = m.actions, keyField: a = m.keyField, striped: i = m.striped, highlightOnHover: l = m.highlightOnHover, pointerOnHover: c = m.pointerOnHover, dense: f = m.dense, selectableRows: d = m.selectableRows, selectableRowsSingle: g = m.selectableRowsSingle, selectableRowsHighlight: y = m.selectableRowsHighlight, selectableRowsNoSelectAll: b = m.selectableRowsNoSelectAll, selectableRowsVisibleOnly: E = m.selectableRowsVisibleOnly, selectableRowSelected: S = m.selectableRowSelected, selectableRowDisabled: $ = m.selectableRowDisabled, selectableRowsComponent: P = m.selectableRowsComponent, selectableRowsComponentProps: C = m.selectableRowsComponentProps, onRowExpandToggled: O = m.onRowExpandToggled, onSelectedRowsChange: j = m.onSelectedRowsChange, expandableIcon: _ = m.expandableIcon, onChangeRowsPerPage: w = m.onChangeRowsPerPage, onChangePage: v = m.onChangePage, paginationServer: N = m.paginationServer, paginationServerOptions: Q = m.paginationServerOptions, paginationTotalRows: re = m.paginationTotalRows, paginationDefaultPage: ge = m.paginationDefaultPage, paginationResetDefaultPage: be = m.paginationResetDefaultPage, paginationPerPage: H = m.paginationPerPage, paginationRowsPerPageOptions: ie = m.paginationRowsPerPageOptions, paginationIconLastPage: ye = m.paginationIconLastPage, paginationIconFirstPage: $e = m.paginationIconFirstPage, paginationIconNext: ve = m.paginationIconNext, paginationIconPrevious: Ae = m.paginationIconPrevious, paginationComponent: se = m.paginationComponent, paginationComponentOptions: xe = m.paginationComponentOptions, responsive: Se = m.responsive, progressPending: q = m.progressPending, progressComponent: Oe = m.progressComponent, persistTableHead: ue = m.persistTableHead, noDataComponent: Pe = m.noDataComponent, disabled: oe = m.disabled, noTableHead: Ce = m.noTableHead, noHeader: de = m.noHeader, fixedHeader: le = m.fixedHeader, fixedHeaderScrollHeight: Ee = m.fixedHeaderScrollHeight, pagination: pe = m.pagination, subHeader: Z = m.subHeader, subHeaderAlign: nt = m.subHeaderAlign, subHeaderWrap: rt = m.subHeaderWrap, subHeaderComponent: He = m.subHeaderComponent, noContextMenu: Ie = m.noContextMenu, contextMessage: ot = m.contextMessage, contextActions: U = m.contextActions, contextComponent: at = m.contextComponent, expandableRows: it = m.expandableRows, onRowClicked: Yt = m.onRowClicked, onRowDoubleClicked: st = m.onRowDoubleClicked, onRowMouseEnter: Ut = m.onRowMouseEnter, onRowMouseLeave: Kt = m.onRowMouseLeave, sortIcon: Qt = m.sortIcon, onSort: Jt = m.onSort, sortFunction: Ot = m.sortFunction, sortServer: Pt = m.sortServer, expandableRowsComponent: Xt = m.expandableRowsComponent, expandableRowsComponentProps: Zt = m.expandableRowsComponentProps, expandableRowDisabled: en = m.expandableRowDisabled, expandableRowsHideExpander: tn = m.expandableRowsHideExpander, expandOnRowClicked: Ln = m.expandOnRowClicked, expandOnRowDoubleClicked: Mn = m.expandOnRowDoubleClicked, expandableRowExpanded: nn = m.expandableRowExpanded, expandableInheritConditionalStyles: Hn = m.expandableInheritConditionalStyles, defaultSortFieldId: zn = m.defaultSortFieldId, defaultSortAsc: jt = m.defaultSortAsc, clearSelectedRows: kt = m.clearSelectedRows, conditionalRowStyles: ze = m.conditionalRowStyles, theme: lt = m.theme, customStyles: ct = m.customStyles, direction: We = m.direction, onColumnOrderChange: Wn = m.onColumnOrderChange, className: rn } = e, { tableColumns: on, draggingColumnId: Tt, handleDragStart: _t, handleDragEnter: an, handleDragOver: sn, handleDragLeave: Dt, handleDragEnd: At, defaultSortDirection: Bn, defaultSortColumn: Vn } = zs(n, Wn, zn, jt), [{ rowsPerPage: _e, currentPage: we, selectedRows: s, allSelected: h, selectedCount: x, selectedColumn: R, sortDirection: M, toggleOnSelectedRowsChange: V }, D] = u.useReducer(Ti, { allSelected: !1, selectedCount: 0, selectedRows: [], selectedColumn: Vn, toggleOnSelectedRowsChange: !1, sortDirection: Bn, currentPage: ge, rowsPerPage: H, selectedRowsFlag: !1, contextMessage: m.contextMessage }), { persistSelectedOnSort: F = !1, persistSelectedOnPageChange: J = !1 } = Q, Y = !(!N || !J && !F), K = pe && !q && t.length > 0, he = se || As, Be = u.useMemo((() => ((k = {}, W = "default", fe = "default") => {
2490
- const je = ro[W] ? W : fe;
2491
- return Hs({ table: { style: { color: (T = ro[je]).text.primary, backgroundColor: T.background.default } }, tableWrapper: { style: { display: "table" } }, responsiveWrapper: { style: {} }, header: { style: { fontSize: "22px", color: T.text.primary, backgroundColor: T.background.default, minHeight: "56px", paddingLeft: "16px", paddingRight: "8px" } }, subHeader: { style: { backgroundColor: T.background.default, minHeight: "52px" } }, head: { style: { color: T.text.primary, fontSize: "12px", fontWeight: 500 } }, headRow: { style: { backgroundColor: T.background.default, minHeight: "52px", borderBottomWidth: "1px", borderBottomColor: T.divider.default, borderBottomStyle: "solid" }, denseStyle: { minHeight: "32px" } }, headCells: { style: { paddingLeft: "16px", paddingRight: "16px" }, draggingStyle: { cursor: "move" } }, contextMenu: { style: { backgroundColor: T.context.background, fontSize: "18px", fontWeight: 400, color: T.context.text, paddingLeft: "16px", paddingRight: "8px", transform: "translate3d(0, -100%, 0)", transitionDuration: "125ms", transitionTimingFunction: "cubic-bezier(0, 0, 0.2, 1)", willChange: "transform" }, activeStyle: { transform: "translate3d(0, 0, 0)" } }, cells: { style: { paddingLeft: "16px", paddingRight: "16px", wordBreak: "break-word" }, draggingStyle: {} }, rows: { style: { fontSize: "13px", fontWeight: 400, color: T.text.primary, backgroundColor: T.background.default, minHeight: "48px", "&:not(:last-of-type)": { borderBottomStyle: "solid", borderBottomWidth: "1px", borderBottomColor: T.divider.default } }, denseStyle: { minHeight: "32px" }, selectedHighlightStyle: { "&:nth-of-type(n)": { color: T.selected.text, backgroundColor: T.selected.default, borderBottomColor: T.background.default } }, highlightOnHoverStyle: { color: T.highlightOnHover.text, backgroundColor: T.highlightOnHover.default, transitionDuration: "0.15s", transitionProperty: "background-color", borderBottomColor: T.background.default, outlineStyle: "solid", outlineWidth: "1px", outlineColor: T.background.default }, stripedStyle: { color: T.striped.text, backgroundColor: T.striped.default } }, expanderRow: { style: { color: T.text.primary, backgroundColor: T.background.default } }, expanderCell: { style: { flex: "0 0 48px" } }, expanderButton: { style: { color: T.button.default, fill: T.button.default, backgroundColor: "transparent", borderRadius: "2px", transition: "0.25s", height: "100%", width: "100%", "&:hover:enabled": { cursor: "pointer" }, "&:disabled": { color: T.button.disabled }, "&:hover:not(:disabled)": { cursor: "pointer", backgroundColor: T.button.hover }, "&:focus": { outline: "none", backgroundColor: T.button.focus }, svg: { margin: "auto" } } }, pagination: { style: { color: T.text.secondary, fontSize: "13px", minHeight: "56px", backgroundColor: T.background.default, borderTopStyle: "solid", borderTopWidth: "1px", borderTopColor: T.divider.default }, pageButtonsStyle: { borderRadius: "50%", height: "40px", width: "40px", padding: "8px", margin: "px", cursor: "pointer", transition: "0.4s", color: T.button.default, fill: T.button.default, backgroundColor: "transparent", "&:disabled": { cursor: "unset", color: T.button.disabled, fill: T.button.disabled }, "&:hover:not(:disabled)": { backgroundColor: T.button.hover }, "&:focus": { outline: "none", backgroundColor: T.button.focus } } }, noData: { style: { display: "flex", alignItems: "center", justifyContent: "center", color: T.text.primary, backgroundColor: T.background.default } }, progress: { style: { display: "flex", alignItems: "center", justifyContent: "center", color: T.text.primary, backgroundColor: T.background.default } } }, k);
2488
+ var qo = u.memo((function(e) {
2489
+ const { data: t = m.data, columns: n = m.columns, title: r = m.title, actions: o = m.actions, keyField: a = m.keyField, striped: i = m.striped, highlightOnHover: l = m.highlightOnHover, pointerOnHover: c = m.pointerOnHover, dense: p = m.dense, selectableRows: g = m.selectableRows, selectableRowsSingle: f = m.selectableRowsSingle, selectableRowsHighlight: b = m.selectableRowsHighlight, selectableRowsNoSelectAll: y = m.selectableRowsNoSelectAll, selectableRowsVisibleOnly: x = m.selectableRowsVisibleOnly, selectableRowSelected: S = m.selectableRowSelected, selectableRowDisabled: E = m.selectableRowDisabled, selectableRowsComponent: k = m.selectableRowsComponent, selectableRowsComponentProps: C = m.selectableRowsComponentProps, onRowExpandToggled: O = m.onRowExpandToggled, onSelectedRowsChange: P = m.onSelectedRowsChange, expandableIcon: _ = m.expandableIcon, onChangeRowsPerPage: R = m.onChangeRowsPerPage, onChangePage: w = m.onChangePage, paginationServer: M = m.paginationServer, paginationServerOptions: G = m.paginationServerOptions, paginationTotalRows: D = m.paginationTotalRows, paginationDefaultPage: Q = m.paginationDefaultPage, paginationResetDefaultPage: be = m.paginationResetDefaultPage, paginationPerPage: z = m.paginationPerPage, paginationRowsPerPageOptions: se = m.paginationRowsPerPageOptions, paginationIconLastPage: ye = m.paginationIconLastPage, paginationIconFirstPage: $e = m.paginationIconFirstPage, paginationIconNext: ve = m.paginationIconNext, paginationIconPrevious: Ae = m.paginationIconPrevious, paginationComponent: le = m.paginationComponent, paginationComponentOptions: xe = m.paginationComponentOptions, responsive: Se = m.responsive, progressPending: Y = m.progressPending, progressComponent: Oe = m.progressComponent, persistTableHead: de = m.persistTableHead, noDataComponent: Pe = m.noDataComponent, disabled: ae = m.disabled, noTableHead: Ce = m.noTableHead, noHeader: pe = m.noHeader, fixedHeader: ce = m.fixedHeader, fixedHeaderScrollHeight: Ee = m.fixedHeaderScrollHeight, pagination: fe = m.pagination, subHeader: te = m.subHeader, subHeaderAlign: nt = m.subHeaderAlign, subHeaderWrap: rt = m.subHeaderWrap, subHeaderComponent: He = m.subHeaderComponent, noContextMenu: Ie = m.noContextMenu, contextMessage: ot = m.contextMessage, contextActions: J = m.contextActions, contextComponent: at = m.contextComponent, expandableRows: it = m.expandableRows, onRowClicked: Yt = m.onRowClicked, onRowDoubleClicked: st = m.onRowDoubleClicked, onRowMouseEnter: Ut = m.onRowMouseEnter, onRowMouseLeave: Kt = m.onRowMouseLeave, sortIcon: Qt = m.sortIcon, onSort: Jt = m.onSort, sortFunction: Ot = m.sortFunction, sortServer: Pt = m.sortServer, expandableRowsComponent: Xt = m.expandableRowsComponent, expandableRowsComponentProps: Zt = m.expandableRowsComponentProps, expandableRowDisabled: en = m.expandableRowDisabled, expandableRowsHideExpander: tn = m.expandableRowsHideExpander, expandOnRowClicked: Ln = m.expandOnRowClicked, expandOnRowDoubleClicked: Mn = m.expandOnRowDoubleClicked, expandableRowExpanded: nn = m.expandableRowExpanded, expandableInheritConditionalStyles: Hn = m.expandableInheritConditionalStyles, defaultSortFieldId: zn = m.defaultSortFieldId, defaultSortAsc: kt = m.defaultSortAsc, clearSelectedRows: jt = m.clearSelectedRows, conditionalRowStyles: ze = m.conditionalRowStyles, theme: lt = m.theme, customStyles: ct = m.customStyles, direction: We = m.direction, onColumnOrderChange: Wn = m.onColumnOrderChange, className: rn } = e, { tableColumns: on, draggingColumnId: Tt, handleDragStart: _t, handleDragEnter: an, handleDragOver: sn, handleDragLeave: Dt, handleDragEnd: At, defaultSortDirection: Vn, defaultSortColumn: Bn } = Bs(n, Wn, zn, kt), [{ rowsPerPage: _e, currentPage: we, selectedRows: s, allSelected: h, selectedCount: v, selectedColumn: $, sortDirection: H, toggleOnSelectedRowsChange: q }, A] = u.useReducer(Ai, { allSelected: !1, selectedCount: 0, selectedRows: [], selectedColumn: Bn, toggleOnSelectedRowsChange: !1, sortDirection: Vn, currentPage: Q, rowsPerPage: z, selectedRowsFlag: !1, contextMessage: m.contextMessage }), { persistSelectedOnSort: F = !1, persistSelectedOnPageChange: Z = !1 } = G, K = !(!M || !Z && !F), X = fe && !Y && t.length > 0, he = le || Fs, Ve = u.useMemo((() => ((j = {}, V = "default", ge = "default") => {
2490
+ const ke = ro[V] ? V : ge;
2491
+ return Vs({ table: { style: { color: (T = ro[ke]).text.primary, backgroundColor: T.background.default } }, tableWrapper: { style: { display: "table" } }, responsiveWrapper: { style: {} }, header: { style: { fontSize: "22px", color: T.text.primary, backgroundColor: T.background.default, minHeight: "56px", paddingLeft: "16px", paddingRight: "8px" } }, subHeader: { style: { backgroundColor: T.background.default, minHeight: "52px" } }, head: { style: { color: T.text.primary, fontSize: "12px", fontWeight: 500 } }, headRow: { style: { backgroundColor: T.background.default, minHeight: "52px", borderBottomWidth: "1px", borderBottomColor: T.divider.default, borderBottomStyle: "solid" }, denseStyle: { minHeight: "32px" } }, headCells: { style: { paddingLeft: "16px", paddingRight: "16px" }, draggingStyle: { cursor: "move" } }, contextMenu: { style: { backgroundColor: T.context.background, fontSize: "18px", fontWeight: 400, color: T.context.text, paddingLeft: "16px", paddingRight: "8px", transform: "translate3d(0, -100%, 0)", transitionDuration: "125ms", transitionTimingFunction: "cubic-bezier(0, 0, 0.2, 1)", willChange: "transform" }, activeStyle: { transform: "translate3d(0, 0, 0)" } }, cells: { style: { paddingLeft: "16px", paddingRight: "16px", wordBreak: "break-word" }, draggingStyle: {} }, rows: { style: { fontSize: "13px", fontWeight: 400, color: T.text.primary, backgroundColor: T.background.default, minHeight: "48px", "&:not(:last-of-type)": { borderBottomStyle: "solid", borderBottomWidth: "1px", borderBottomColor: T.divider.default } }, denseStyle: { minHeight: "32px" }, selectedHighlightStyle: { "&:nth-of-type(n)": { color: T.selected.text, backgroundColor: T.selected.default, borderBottomColor: T.background.default } }, highlightOnHoverStyle: { color: T.highlightOnHover.text, backgroundColor: T.highlightOnHover.default, transitionDuration: "0.15s", transitionProperty: "background-color", borderBottomColor: T.background.default, outlineStyle: "solid", outlineWidth: "1px", outlineColor: T.background.default }, stripedStyle: { color: T.striped.text, backgroundColor: T.striped.default } }, expanderRow: { style: { color: T.text.primary, backgroundColor: T.background.default } }, expanderCell: { style: { flex: "0 0 48px" } }, expanderButton: { style: { color: T.button.default, fill: T.button.default, backgroundColor: "transparent", borderRadius: "2px", transition: "0.25s", height: "100%", width: "100%", "&:hover:enabled": { cursor: "pointer" }, "&:disabled": { color: T.button.disabled }, "&:hover:not(:disabled)": { cursor: "pointer", backgroundColor: T.button.hover }, "&:focus": { outline: "none", backgroundColor: T.button.focus }, svg: { margin: "auto" } } }, pagination: { style: { color: T.text.secondary, fontSize: "13px", minHeight: "56px", backgroundColor: T.background.default, borderTopStyle: "solid", borderTopWidth: "1px", borderTopColor: T.divider.default }, pageButtonsStyle: { borderRadius: "50%", height: "40px", width: "40px", padding: "8px", margin: "px", cursor: "pointer", transition: "0.4s", color: T.button.default, fill: T.button.default, backgroundColor: "transparent", "&:disabled": { cursor: "unset", color: T.button.disabled, fill: T.button.disabled }, "&:hover:not(:disabled)": { backgroundColor: T.button.hover }, "&:focus": { outline: "none", backgroundColor: T.button.focus } } }, noData: { style: { display: "flex", alignItems: "center", justifyContent: "center", color: T.text.primary, backgroundColor: T.background.default } }, progress: { style: { display: "flex", alignItems: "center", justifyContent: "center", color: T.text.primary, backgroundColor: T.background.default } } }, j);
2492
2492
  var T;
2493
- })(ct, lt)), [ct, lt]), Ne = u.useMemo((() => Object.assign({}, We !== "auto" && { dir: We })), [We]), z = u.useMemo((() => {
2493
+ })(ct, lt)), [ct, lt]), Ne = u.useMemo((() => Object.assign({}, We !== "auto" && { dir: We })), [We]), W = u.useMemo((() => {
2494
2494
  if (Pt) return t;
2495
- if (R?.sortFunction && typeof R.sortFunction == "function") {
2496
- const k = R.sortFunction, W = M === Ge.ASC ? k : (fe, je) => -1 * k(fe, je);
2497
- return [...t].sort(W);
2498
- }
2499
- return (function(k, W, fe, je) {
2500
- return W ? je && typeof je == "function" ? je(k.slice(0), W, fe) : k.slice(0).sort(((T, Yn) => {
2501
- const dt = W(T), Ve = W(Yn);
2502
- if (fe === "asc") {
2503
- if (dt < Ve) return -1;
2504
- if (dt > Ve) return 1;
2495
+ if ($?.sortFunction && typeof $.sortFunction == "function") {
2496
+ const j = $.sortFunction, V = H === Ge.ASC ? j : (ge, ke) => -1 * j(ge, ke);
2497
+ return [...t].sort(V);
2498
+ }
2499
+ return (function(j, V, ge, ke) {
2500
+ return V ? ke && typeof ke == "function" ? ke(j.slice(0), V, ge) : j.slice(0).sort(((T, Yn) => {
2501
+ const dt = V(T), Be = V(Yn);
2502
+ if (ge === "asc") {
2503
+ if (dt < Be) return -1;
2504
+ if (dt > Be) return 1;
2505
2505
  }
2506
- if (fe === "desc") {
2507
- if (dt > Ve) return -1;
2508
- if (dt < Ve) return 1;
2506
+ if (ge === "desc") {
2507
+ if (dt > Be) return -1;
2508
+ if (dt < Be) return 1;
2509
2509
  }
2510
2510
  return 0;
2511
- })) : k;
2512
- })(t, R?.selector, M, Ot);
2513
- }), [Pt, R, M, t, Ot]), Fe = u.useMemo((() => {
2514
- if (pe && !N) {
2515
- const k = we * _e, W = k - _e;
2516
- return z.slice(W, k);
2517
- }
2518
- return z;
2519
- }), [we, pe, N, _e, z]), qn = u.useCallback(((k) => {
2520
- D(k);
2521
- }), []), Gn = u.useCallback(((k) => {
2522
- D(k);
2523
- }), []), na = u.useCallback(((k) => {
2524
- D(k);
2525
- }), []), ra = u.useCallback(((k, W) => Yt(k, W)), [Yt]), oa = u.useCallback(((k, W) => st(k, W)), [st]), aa = u.useCallback(((k, W) => Ut(k, W)), [Ut]), ia = u.useCallback(((k, W) => Kt(k, W)), [Kt]), ut = u.useCallback(((k) => D({ type: "CHANGE_PAGE", page: k, paginationServer: N, visibleOnly: E, persistSelectedOnPageChange: J })), [N, J, E]), sa = u.useCallback(((k) => {
2526
- const W = Ht(re || Fe.length, k), fe = Zn(we, W);
2527
- N || ut(fe), D({ type: "CHANGE_ROWS_PER_PAGE", page: fe, rowsPerPage: k });
2528
- }), [we, ut, N, re, Fe.length]);
2529
- if (pe && !N && z.length > 0 && Fe.length === 0) {
2530
- const k = Ht(z.length, _e), W = Zn(we, k);
2531
- ut(W);
2511
+ })) : j;
2512
+ })(t, $?.selector, H, Ot);
2513
+ }), [Pt, $, H, t, Ot]), Fe = u.useMemo((() => {
2514
+ if (fe && !M) {
2515
+ const j = we * _e, V = j - _e;
2516
+ return W.slice(V, j);
2517
+ }
2518
+ return W;
2519
+ }), [we, fe, M, _e, W]), qn = u.useCallback(((j) => {
2520
+ A(j);
2521
+ }), []), Gn = u.useCallback(((j) => {
2522
+ A(j);
2523
+ }), []), aa = u.useCallback(((j) => {
2524
+ A(j);
2525
+ }), []), ia = u.useCallback(((j, V) => Yt(j, V)), [Yt]), sa = u.useCallback(((j, V) => st(j, V)), [st]), la = u.useCallback(((j, V) => Ut(j, V)), [Ut]), ca = u.useCallback(((j, V) => Kt(j, V)), [Kt]), ut = u.useCallback(((j) => A({ type: "CHANGE_PAGE", page: j, paginationServer: M, visibleOnly: x, persistSelectedOnPageChange: Z })), [M, Z, x]), ua = u.useCallback(((j) => {
2526
+ const V = Ht(D || Fe.length, j), ge = Zn(we, V);
2527
+ M || ut(ge), A({ type: "CHANGE_ROWS_PER_PAGE", page: ge, rowsPerPage: j });
2528
+ }), [we, ut, M, D, Fe.length]);
2529
+ if (fe && !M && W.length > 0 && Fe.length === 0) {
2530
+ const j = Ht(W.length, _e), V = Zn(we, j);
2531
+ ut(V);
2532
2532
  }
2533
2533
  Ye((() => {
2534
- j({ allSelected: h, selectedCount: x, selectedRows: s.slice(0) });
2535
- }), [V]), Ye((() => {
2536
- Jt(R, M, z.slice(0));
2537
- }), [R, M]), Ye((() => {
2538
- v(we, re || z.length);
2534
+ P({ allSelected: h, selectedCount: v, selectedRows: s.slice(0) });
2535
+ }), [q]), Ye((() => {
2536
+ Jt($, H, W.slice(0));
2537
+ }), [$, H]), Ye((() => {
2538
+ w(we, D || W.length);
2539
2539
  }), [we]), Ye((() => {
2540
- w(_e, we);
2540
+ R(_e, we);
2541
2541
  }), [_e]), Ye((() => {
2542
- ut(ge);
2543
- }), [ge, be]), Ye((() => {
2544
- if (pe && N && re > 0) {
2545
- const k = Ht(re, _e), W = Zn(we, k);
2546
- we !== W && ut(W);
2547
- }
2548
- }), [re]), u.useEffect((() => {
2549
- D({ type: "CLEAR_SELECTED_ROWS", selectedRowsFlag: kt });
2550
- }), [g, kt]), u.useEffect((() => {
2542
+ ut(Q);
2543
+ }), [Q, be]), Ye((() => {
2544
+ if (fe && M && D > 0) {
2545
+ const j = Ht(D, _e), V = Zn(we, j);
2546
+ we !== V && ut(V);
2547
+ }
2548
+ }), [D]), u.useEffect((() => {
2549
+ A({ type: "CLEAR_SELECTED_ROWS", selectedRowsFlag: jt });
2550
+ }), [f, jt]), u.useEffect((() => {
2551
2551
  if (!S) return;
2552
- const k = z.filter(((fe) => S(fe))), W = g ? k.slice(0, 1) : k;
2553
- D({ type: "SELECT_MULTIPLE_ROWS", keyField: a, selectedRows: W, totalRows: z.length, mergeSelections: Y });
2552
+ const j = W.filter(((ge) => S(ge))), V = f ? j.slice(0, 1) : j;
2553
+ A({ type: "SELECT_MULTIPLE_ROWS", keyField: a, selectedRows: V, totalRows: W.length, mergeSelections: K });
2554
2554
  }), [t, S]);
2555
- const la = E ? Fe : z, ca = J || g || b;
2556
- return u.createElement(Oi, { theme: Be }, !de && (!!r || !!o) && u.createElement(ms, { title: r, actions: o, showMenu: !Ie, selectedCount: x, direction: We, contextActions: U, contextComponent: at, contextMessage: ot }), Z && u.createElement(vs, { align: nt, wrapContent: rt }, He), u.createElement(xs, Object.assign({ $responsive: Se, $fixedHeader: le, $fixedHeaderScrollHeight: Ee, className: rn }, Ne), u.createElement(Ss, null, q && !ue && u.createElement(Zr, null, Oe), u.createElement(Di, { disabled: oe, className: "rdt_Table", role: "table" }, !Ce && (!!ue || z.length > 0 && !q) && u.createElement(Ii, { className: "rdt_TableHead", role: "rowgroup", $fixedHeader: le }, u.createElement(Ni, { className: "rdt_TableHeadRow", role: "row", $dense: f }, d && (ca ? u.createElement(Rt, { style: { flex: "0 0 48px" } }) : u.createElement(cs, { allSelected: h, selectedRows: s, selectableRowsComponent: P, selectableRowsComponentProps: C, selectableRowDisabled: $, rowData: la, keyField: a, mergeSelections: Y, onSelectAllRows: Gn })), it && !tn && u.createElement(Cs, null), on.map(((k) => u.createElement(ss, { key: k.id, column: k, selectedColumn: R, disabled: q || z.length === 0, pagination: pe, paginationServer: N, persistSelectedOnSort: F, selectableRowsVisibleOnly: E, sortDirection: M, sortIcon: Qt, sortServer: Pt, onSort: qn, onDragStart: _t, onDragOver: sn, onDragEnd: At, onDragEnter: an, onDragLeave: Dt, draggingColumnId: Tt }))))), !z.length && !q && u.createElement(Es, null, Pe), q && ue && u.createElement(Zr, null, Oe), !q && z.length > 0 && u.createElement(ws, { className: "rdt_TableBody", role: "rowgroup" }, Fe.map(((k, W) => {
2557
- const fe = wt(k, a), je = (function(Ve = "") {
2558
- return typeof Ve != "number" && (!Ve || Ve.length === 0);
2559
- })(fe) ? W : fe, T = Sn(k, s, a), Yn = !!(it && nn && nn(k)), dt = !!(it && en && en(k));
2560
- return u.createElement(es, { id: je, key: je, keyField: a, "data-row-id": je, columns: on, row: k, rowCount: z.length, rowIndex: W, selectableRows: d, expandableRows: it, expandableIcon: _, highlightOnHover: l, pointerOnHover: c, dense: f, expandOnRowClicked: Ln, expandOnRowDoubleClicked: Mn, expandableRowsComponent: Xt, expandableRowsComponentProps: Zt, expandableRowsHideExpander: tn, defaultExpanderDisabled: dt, defaultExpanded: Yn, expandableInheritConditionalStyles: Hn, conditionalRowStyles: ze, selected: T, selectableRowsHighlight: y, selectableRowsComponent: P, selectableRowsComponentProps: C, selectableRowDisabled: $, selectableRowsSingle: g, striped: i, onRowExpandToggled: O, onRowClicked: ra, onRowDoubleClicked: oa, onRowMouseEnter: aa, onRowMouseLeave: ia, onSelectedRow: na, draggingColumnId: Tt, onDragStart: _t, onDragOver: sn, onDragEnd: At, onDragEnter: an, onDragLeave: Dt });
2561
- })))))), K && u.createElement("div", null, u.createElement(he, { onChangePage: ut, onChangeRowsPerPage: sa, rowCount: re || z.length, currentPage: we, rowsPerPage: _e, direction: We, paginationRowsPerPageOptions: ie, paginationIconLastPage: ye, paginationIconFirstPage: $e, paginationIconNext: ve, paginationIconPrevious: Ae, paginationComponentOptions: xe })));
2555
+ const da = x ? Fe : W, pa = Z || f || y;
2556
+ return u.createElement(ji, { theme: Ve }, !pe && (!!r || !!o) && u.createElement(vs, { title: r, actions: o, showMenu: !Ie, selectedCount: v, direction: We, contextActions: J, contextComponent: at, contextMessage: ot }), te && u.createElement(Ss, { align: nt, wrapContent: rt }, He), u.createElement(Es, Object.assign({ $responsive: Se, $fixedHeader: ce, $fixedHeaderScrollHeight: Ee, className: rn }, Ne), u.createElement(Rs, null, Y && !de && u.createElement(Zr, null, Oe), u.createElement(Ni, { disabled: ae, className: "rdt_Table", role: "table" }, !Ce && (!!de || W.length > 0 && !Y) && u.createElement(Li, { className: "rdt_TableHead", role: "rowgroup", $fixedHeader: ce }, u.createElement(Mi, { className: "rdt_TableHeadRow", role: "row", $dense: p }, g && (pa ? u.createElement(Rt, { style: { flex: "0 0 48px" } }) : u.createElement(ps, { allSelected: h, selectedRows: s, selectableRowsComponent: k, selectableRowsComponentProps: C, selectableRowDisabled: E, rowData: da, keyField: a, mergeSelections: K, onSelectAllRows: Gn })), it && !tn && u.createElement($s, null), on.map(((j) => u.createElement(us, { key: j.id, column: j, selectedColumn: $, disabled: Y || W.length === 0, pagination: fe, paginationServer: M, persistSelectedOnSort: F, selectableRowsVisibleOnly: x, sortDirection: H, sortIcon: Qt, sortServer: Pt, onSort: qn, onDragStart: _t, onDragOver: sn, onDragEnd: At, onDragEnter: an, onDragLeave: Dt, draggingColumnId: Tt }))))), !W.length && !Y && u.createElement(Os, null, Pe), Y && de && u.createElement(Zr, null, Oe), !Y && W.length > 0 && u.createElement(Cs, { className: "rdt_TableBody", role: "rowgroup" }, Fe.map(((j, V) => {
2557
+ const ge = wt(j, a), ke = (function(Be = "") {
2558
+ return typeof Be != "number" && (!Be || Be.length === 0);
2559
+ })(ge) ? V : ge, T = Sn(j, s, a), Yn = !!(it && nn && nn(j)), dt = !!(it && en && en(j));
2560
+ return u.createElement(rs, { id: ke, key: ke, keyField: a, "data-row-id": ke, columns: on, row: j, rowCount: W.length, rowIndex: V, selectableRows: g, expandableRows: it, expandableIcon: _, highlightOnHover: l, pointerOnHover: c, dense: p, expandOnRowClicked: Ln, expandOnRowDoubleClicked: Mn, expandableRowsComponent: Xt, expandableRowsComponentProps: Zt, expandableRowsHideExpander: tn, defaultExpanderDisabled: dt, defaultExpanded: Yn, expandableInheritConditionalStyles: Hn, conditionalRowStyles: ze, selected: T, selectableRowsHighlight: b, selectableRowsComponent: k, selectableRowsComponentProps: C, selectableRowDisabled: E, selectableRowsSingle: f, striped: i, onRowExpandToggled: O, onRowClicked: ia, onRowDoubleClicked: sa, onRowMouseEnter: la, onRowMouseLeave: ca, onSelectedRow: aa, draggingColumnId: Tt, onDragStart: _t, onDragOver: sn, onDragEnd: At, onDragEnter: an, onDragLeave: Dt });
2561
+ })))))), X && u.createElement("div", null, u.createElement(he, { onChangePage: ut, onChangeRowsPerPage: ua, rowCount: D || W.length, currentPage: we, rowsPerPage: _e, direction: We, paginationRowsPerPageOptions: se, paginationIconLastPage: ye, paginationIconFirstPage: $e, paginationIconNext: ve, paginationIconPrevious: Ae, paginationComponentOptions: xe })));
2562
2562
  }));
2563
2563
  function St(e, t, ...n) {
2564
2564
  if (!e) {
@@ -2578,15 +2578,15 @@ function St(e, t, ...n) {
2578
2578
  throw r.framesToPop = 1, r;
2579
2579
  }
2580
2580
  }
2581
- const Xe = (e) => typeof e == "function", Ws = (e) => e.length === 0, oo = (e) => e.toString(), tr = (e) => typeof e == "string", xr = "/", Cn = "||", Ze = (e) => e, ao = (e) => e === null;
2581
+ const Xe = (e) => typeof e == "function", qs = (e) => e.length === 0, oo = (e) => e.toString(), tr = (e) => typeof e == "string", xr = "/", Cn = "||", Ze = (e) => e, ao = (e) => e === null;
2582
2582
  function io(e, t = Ze, n) {
2583
2583
  St(
2584
2584
  Xe(t) || ao(t),
2585
2585
  "Expected payloadCreator to be a function, undefined or null"
2586
2586
  );
2587
2587
  const r = ao(t) || t === Ze ? Ze : (l, ...c) => l instanceof Error ? l : t(l, ...c), o = Xe(n), a = e.toString(), i = (...l) => {
2588
- const c = r(...l), f = { type: e };
2589
- return c instanceof Error && (f.error = !0), c !== void 0 && (f.payload = c), o && (f.meta = n(...l)), f;
2588
+ const c = r(...l), p = { type: e };
2589
+ return c instanceof Error && (p.error = !0), c !== void 0 && (p.payload = c), o && (p.meta = n(...l)), p;
2590
2590
  };
2591
2591
  return i.toString = () => a, i;
2592
2592
  }
@@ -2597,13 +2597,13 @@ const Ct = (e) => {
2597
2597
  for (; Object.getPrototypeOf(t) !== null; )
2598
2598
  t = Object.getPrototypeOf(t);
2599
2599
  return Object.getPrototypeOf(e) === t;
2600
- }, so = (e) => Array.isArray(e), Vo = (e) => e == null, Bs = (e) => e[e.length - 1], Vs = /\s/, qs = /([-.:_])/, Gs = /([a-z][A-Z]|[A-Z][a-z])/, nr = "/", Ys = /[\W_]+(.|$)/g, Us = (e) => e.replace(Ys, (t, n) => n ? " " + n : ""), Ks = /(.)([A-Z]+)/g, Qs = (e) => e.replace(
2601
- Ks,
2600
+ }, so = (e) => Array.isArray(e), Go = (e) => e == null, Gs = (e) => e[e.length - 1], Ys = /\s/, Us = /([-.:_])/, Ks = /([a-z][A-Z]|[A-Z][a-z])/, nr = "/", Qs = /[\W_]+(.|$)/g, Js = (e) => e.replace(Qs, (t, n) => n ? " " + n : ""), Xs = /(.)([A-Z]+)/g, Zs = (e) => e.replace(
2601
+ Xs,
2602
2602
  (t, n, r) => n + " " + r.toLowerCase().split("").join(" ")
2603
- ), Js = (e) => Vs.test(e) ? e.toLowerCase() : qs.test(e) ? (Us(e) || e).toLowerCase() : Gs.test(e) ? Qs(e).toLowerCase() : e.toLowerCase(), Xs = (e) => Js(e).replace(/[\W_]+(.|$)/g, (t, n) => n ? " " + n : "").trim(), lo = (e) => Xs(e).replace(
2603
+ ), el = (e) => Ys.test(e) ? e.toLowerCase() : Us.test(e) ? (Js(e) || e).toLowerCase() : Ks.test(e) ? Zs(e).toLowerCase() : e.toLowerCase(), tl = (e) => el(e).replace(/[\W_]+(.|$)/g, (t, n) => n ? " " + n : "").trim(), lo = (e) => tl(e).replace(
2604
2604
  /\s(\w)/g,
2605
2605
  (t, n) => n.toUpperCase()
2606
- ), qo = (e) => e.includes(nr) ? e.split(nr).map(lo).join(nr) : lo(e), gr = (e, t) => e.reduce(
2606
+ ), Yo = (e) => e.includes(nr) ? e.split(nr).map(lo).join(nr) : lo(e), gr = (e, t) => e.reduce(
2607
2607
  (n, r) => t(n, r),
2608
2608
  {}
2609
2609
  ), Nn = (e) => typeof Map < "u" && e instanceof Map;
@@ -2615,30 +2615,30 @@ function Sr(e) {
2615
2615
  let t = Object.getOwnPropertyNames(e);
2616
2616
  return typeof Object.getOwnPropertySymbols == "function" && (t = t.concat(Object.getOwnPropertySymbols(e))), t;
2617
2617
  }
2618
- function Go(e, t) {
2618
+ function Uo(e, t) {
2619
2619
  return Nn(t) ? t.get(e) : t[e];
2620
2620
  }
2621
- const Yo = (e) => function t(n, { namespace: r = xr, prefix: o } = {}, a = {}, i = "") {
2622
- function l(f) {
2621
+ const Ko = (e) => function t(n, { namespace: r = xr, prefix: o } = {}, a = {}, i = "") {
2622
+ function l(p) {
2623
2623
  if (!i)
2624
- return f;
2625
- const d = f.toString().split(Cn), g = i.split(Cn);
2624
+ return p;
2625
+ const g = p.toString().split(Cn), f = i.split(Cn);
2626
2626
  return [].concat(
2627
- ...g.map((y) => d.map((b) => `${y}${r}${b}`))
2627
+ ...f.map((b) => g.map((y) => `${b}${r}${y}`))
2628
2628
  ).join(Cn);
2629
2629
  }
2630
- function c(f) {
2631
- return i || !o || o && new RegExp(`^${o}${r}`).test(f) ? f : `${o}${r}${f}`;
2630
+ function c(p) {
2631
+ return i || !o || o && new RegExp(`^${o}${r}`).test(p) ? p : `${o}${r}${p}`;
2632
2632
  }
2633
- return Sr(n).forEach((f) => {
2634
- const d = c(l(f)), g = Go(f, n);
2635
- e(g) ? t(g, { namespace: r, prefix: o }, a, d) : a[d] = g;
2633
+ return Sr(n).forEach((p) => {
2634
+ const g = c(l(p)), f = Uo(p, n);
2635
+ e(f) ? t(f, { namespace: r, prefix: o }, a, g) : a[g] = f;
2636
2636
  }), a;
2637
- }, Zs = Yo(Ct);
2638
- function el(e, { namespace: t = xr, prefix: n } = {}) {
2637
+ }, nl = Ko(Ct);
2638
+ function rl(e, { namespace: t = xr, prefix: n } = {}) {
2639
2639
  function r(a, i, l) {
2640
- const c = qo(l.shift());
2641
- Ws(l) ? i[c] = e[a] : (i[c] || (i[c] = {}), r(
2640
+ const c = Yo(l.shift());
2641
+ qs(l) ? i[c] = e[a] : (i[c] || (i[c] = {}), r(
2642
2642
  a,
2643
2643
  i[c],
2644
2644
  l
@@ -2654,8 +2654,8 @@ function el(e, { namespace: t = xr, prefix: n } = {}) {
2654
2654
  );
2655
2655
  }), o;
2656
2656
  }
2657
- function tl(e, ...t) {
2658
- const n = Ct(Bs(t)) ? t.pop() : {};
2657
+ function ol(e, ...t) {
2658
+ const n = Ct(Gs(t)) ? t.pop() : {};
2659
2659
  return St(
2660
2660
  t.every(tr) && (tr(e) || Ct(e)),
2661
2661
  "Expected optional object followed by string action types"
@@ -2663,17 +2663,17 @@ function tl(e, ...t) {
2663
2663
  [e, ...t],
2664
2664
  n
2665
2665
  ) : {
2666
- ...nl(e, n),
2666
+ ...al(e, n),
2667
2667
  ...co(t, n)
2668
2668
  };
2669
2669
  }
2670
- function nl(e, t) {
2671
- const n = Zs(e, t), r = Uo(n);
2672
- return el(r, t);
2670
+ function al(e, t) {
2671
+ const n = nl(e, t), r = Qo(n);
2672
+ return rl(r, t);
2673
2673
  }
2674
- function Uo(e, { prefix: t, namespace: n = xr } = {}) {
2674
+ function Qo(e, { prefix: t, namespace: n = xr } = {}) {
2675
2675
  function r(o) {
2676
- if (Xe(o) || Vo(o))
2676
+ if (Xe(o) || Go(o))
2677
2677
  return !0;
2678
2678
  if (so(o)) {
2679
2679
  const [a = Ze, i] = o;
@@ -2698,79 +2698,79 @@ function co(e, t) {
2698
2698
  const n = gr(
2699
2699
  e,
2700
2700
  (o, a) => ({ ...o, [a]: Ze })
2701
- ), r = Uo(n, t);
2701
+ ), r = Qo(n, t);
2702
2702
  return gr(
2703
2703
  Object.keys(r),
2704
2704
  (o, a) => ({
2705
2705
  ...o,
2706
- [qo(a)]: r[a]
2706
+ [Yo(a)]: r[a]
2707
2707
  })
2708
2708
  );
2709
2709
  }
2710
- const rl = (e) => e === void 0;
2711
- function ol(e, t = Ze, n) {
2710
+ const il = (e) => e === void 0;
2711
+ function sl(e, t = Ze, n) {
2712
2712
  const r = oo(e).split(Cn);
2713
2713
  St(
2714
- !rl(n),
2714
+ !il(n),
2715
2715
  `defaultState for reducer handling ${r.join(", ")} should be defined`
2716
2716
  ), St(
2717
2717
  Xe(t) || Ct(t),
2718
2718
  "Expected reducer to be a function or object with next and throw reducers"
2719
2719
  );
2720
2720
  const [o, a] = Xe(t) ? [t, t] : [t.next, t.throw].map(
2721
- (i) => Vo(i) ? Ze : i
2721
+ (i) => Go(i) ? Ze : i
2722
2722
  );
2723
2723
  return (i = n, l) => {
2724
2724
  const { type: c } = l;
2725
2725
  return !c || !r.includes(oo(c)) ? i : (l.error === !0 ? a : o)(i, l);
2726
2726
  };
2727
2727
  }
2728
- const al = function() {
2728
+ const ll = function() {
2729
2729
  for (var e = arguments.length, t = Array(e), n = 0; n < e; n++)
2730
2730
  t[n] = arguments[n];
2731
2731
  var r = typeof t[0] != "function" && t.shift(), o = t;
2732
2732
  if (typeof r > "u")
2733
2733
  throw new TypeError("The initial state may not be undefined. If you do not want to set a value for this reducer, you can use null instead of undefined.");
2734
2734
  return function(a, i) {
2735
- for (var l = arguments.length, c = Array(l > 2 ? l - 2 : 0), f = 2; f < l; f++)
2736
- c[f - 2] = arguments[f];
2737
- var d = typeof a > "u", g = typeof i > "u";
2738
- return d && g && r ? r : o.reduce(function(y, b, E) {
2739
- if (typeof b > "u")
2740
- throw new TypeError("An undefined reducer was passed in at index " + E);
2741
- return b.apply(void 0, [y, i].concat(c));
2742
- }, d && !g && r ? r : a);
2735
+ for (var l = arguments.length, c = Array(l > 2 ? l - 2 : 0), p = 2; p < l; p++)
2736
+ c[p - 2] = arguments[p];
2737
+ var g = typeof a > "u", f = typeof i > "u";
2738
+ return g && f && r ? r : o.reduce(function(b, y, x) {
2739
+ if (typeof y > "u")
2740
+ throw new TypeError("An undefined reducer was passed in at index " + x);
2741
+ return y.apply(void 0, [b, i].concat(c));
2742
+ }, g && !f && r ? r : a);
2743
2743
  };
2744
2744
  };
2745
- function il(e) {
2745
+ function cl(e) {
2746
2746
  const t = Sr(e), n = t.every(
2747
2747
  (r) => r === "next" || r === "throw"
2748
2748
  );
2749
2749
  return t.length > 0 && t.length <= 2 && n;
2750
2750
  }
2751
- const sl = Yo(
2752
- (e) => (Ct(e) || Nn(e)) && !il(e)
2751
+ const ul = Ko(
2752
+ (e) => (Ct(e) || Nn(e)) && !cl(e)
2753
2753
  );
2754
- function ll(e, t, n = {}) {
2754
+ function dl(e, t, n = {}) {
2755
2755
  St(
2756
2756
  Ct(e) || Nn(e),
2757
2757
  "Expected handlers to be a plain object."
2758
2758
  );
2759
- const r = sl(e, n), o = Sr(r).map(
2760
- (i) => ol(i, Go(i, r), t)
2761
- ), a = al(t, ...o);
2759
+ const r = ul(e, n), o = Sr(r).map(
2760
+ (i) => sl(i, Uo(i, r), t)
2761
+ ), a = ll(t, ...o);
2762
2762
  return (i = t, l) => a(i, l);
2763
2763
  }
2764
- const Cr = { path: "/", history: [], location: 0 }, Ko = { path: "*", data: {}, hash: "", query: "" }, Fn = qt(Cr), Er = qt(null), Vt = qt(Ko), { navigate: Qo, back: cl, forward: ul } = tl({
2764
+ const Cr = { path: "/", history: [], location: 0 }, Jo = { path: "*", data: {}, hash: "", query: "" }, Fn = qt(Cr), Er = qt(null), Bt = qt(Jo), { navigate: Xo, back: pl, forward: fl } = ol({
2765
2765
  NAVIGATE: (e) => e,
2766
2766
  BACK: (e = 1) => e,
2767
2767
  FORWARD: (e = 1) => e
2768
- }), dl = ll(
2768
+ }), gl = dl(
2769
2769
  {
2770
2770
  NAVIGATE: (e, t) => {
2771
2771
  let { history: n, location: r } = e;
2772
2772
  return r > 0 && (n = n.slice(r)), {
2773
- path: ml(e.path, t.payload),
2773
+ path: vl(e.path, t.payload),
2774
2774
  history: [t.payload, ...n],
2775
2775
  location: 0
2776
2776
  };
@@ -2794,39 +2794,39 @@ const Cr = { path: "/", history: [], location: 0 }, Ko = { path: "*", data: {},
2794
2794
  },
2795
2795
  Cr
2796
2796
  );
2797
- function pl() {
2797
+ function hl() {
2798
2798
  return Te(Fn).path;
2799
2799
  }
2800
2800
  function Rr() {
2801
2801
  const e = Te(Er);
2802
- return (t) => e?.(Qo(t));
2802
+ return (t) => e?.(Xo(t));
2803
2803
  }
2804
- function fl() {
2804
+ function ml() {
2805
2805
  const e = Te(Er), t = Te(Fn);
2806
2806
  return {
2807
- navigate: (n) => e?.(Qo(n)),
2808
- back: (n = 1) => e?.(cl(n)),
2809
- forward: (n = 1) => e?.(ul(n)),
2807
+ navigate: (n) => e?.(Xo(n)),
2808
+ back: (n = 1) => e?.(pl(n)),
2809
+ forward: (n = 1) => e?.(fl(n)),
2810
2810
  hasBack: t.location < t.history.length - 1,
2811
2811
  ...t
2812
2812
  };
2813
2813
  }
2814
2814
  function $r() {
2815
- return Te(Vt).data;
2815
+ return Te(Bt).data;
2816
2816
  }
2817
- function gl() {
2818
- const { query: e, hash: t } = Te(Vt);
2817
+ function bl() {
2818
+ const { query: e, hash: t } = Te(Bt);
2819
2819
  return { search: new URLSearchParams(e), hash: t };
2820
2820
  }
2821
- function hl({ path: e, children: t }) {
2822
- const n = e ? { path: e, history: [], location: 0 } : Cr, [r, o] = pa(dl, n);
2823
- return /* @__PURE__ */ p.jsx(Fn.Provider, { value: r, children: /* @__PURE__ */ p.jsx(Er.Provider, { value: o, children: /* @__PURE__ */ p.jsx(Vt.Provider, { value: Ko, children: t }) }) });
2821
+ function yl({ path: e, children: t }) {
2822
+ const n = e ? { path: e, history: [], location: 0 } : Cr, [r, o] = ha(gl, n);
2823
+ return /* @__PURE__ */ d.jsx(Fn.Provider, { value: r, children: /* @__PURE__ */ d.jsx(Er.Provider, { value: o, children: /* @__PURE__ */ d.jsx(Bt.Provider, { value: Jo, children: t }) }) });
2824
2824
  }
2825
- const gt = da(({ to: e, children: t, ...n }, r) => {
2825
+ const gt = ga(({ to: e, children: t, ...n }, r) => {
2826
2826
  const o = Rr(), a = (i) => {
2827
2827
  i.defaultPrevented || i.preventDefault(), o(e);
2828
2828
  };
2829
- return /* @__PURE__ */ p.jsx(
2829
+ return /* @__PURE__ */ d.jsx(
2830
2830
  "a",
2831
2831
  {
2832
2832
  ...n,
@@ -2838,28 +2838,28 @@ const gt = da(({ to: e, children: t, ...n }, r) => {
2838
2838
  );
2839
2839
  });
2840
2840
  function rr({ children: e }) {
2841
- const t = Te(Vt), n = Te(Fn), r = Jo(e, t.path).map((o) => [o, vl(o.route, n.path)]).filter(([, o]) => o.isMatch);
2842
- return /* @__PURE__ */ p.jsx(p.Fragment, { children: r.map(([o, a], i) => /* @__PURE__ */ p.jsx(Vt.Provider, { value: { ...a }, children: o.element }, i)) });
2841
+ const t = Te(Bt), n = Te(Fn), r = Zo(e, t.path).map((o) => [o, Sl(o.route, n.path)]).filter(([, o]) => o.isMatch);
2842
+ return /* @__PURE__ */ d.jsx(d.Fragment, { children: r.map(([o, a], i) => /* @__PURE__ */ d.jsx(Bt.Provider, { value: { ...a }, children: o.element }, i)) });
2843
2843
  }
2844
2844
  function me({ path: e, element: t }) {
2845
- return /* @__PURE__ */ p.jsx(p.Fragment, {});
2845
+ return /* @__PURE__ */ d.jsx(d.Fragment, {});
2846
2846
  }
2847
- function Jo(e, t) {
2847
+ function Zo(e, t) {
2848
2848
  const n = [];
2849
- return fa.map(e, (r) => {
2850
- if (!ga(r)) return;
2851
- if (r.type === A.Fragment) {
2852
- n.push.apply(n, Jo(r.props.children, t));
2849
+ return ma.map(e, (r) => {
2850
+ if (!ba(r)) return;
2851
+ if (r.type === I.Fragment) {
2852
+ n.push.apply(n, Zo(r.props.children, t));
2853
2853
  return;
2854
2854
  }
2855
2855
  const o = r.props;
2856
2856
  return n.push({
2857
- route: yl(t, o.path),
2857
+ route: xl(t, o.path),
2858
2858
  element: o.element
2859
2859
  }), r;
2860
2860
  }), n;
2861
2861
  }
2862
- const ml = (e, t) => {
2862
+ const vl = (e, t) => {
2863
2863
  if (t.startsWith("/")) return t;
2864
2864
  if (t.startsWith("?")) {
2865
2865
  const [o] = e?.split("?") ?? [""];
@@ -2869,14 +2869,14 @@ const ml = (e, t) => {
2869
2869
  const r = t.split("/").filter((o) => o !== "");
2870
2870
  for (; r.length > 0 && (r[0] === "." || r[0] === ".."); )
2871
2871
  r.shift() == ".." && ++n;
2872
- return bl(e, r.join("/"), n);
2873
- }, bl = (e, t, n) => {
2872
+ return wl(e, r.join("/"), n);
2873
+ }, wl = (e, t, n) => {
2874
2874
  const r = e.split("/").filter((a) => a !== ""), o = t.split("/").filter((a) => a !== "");
2875
2875
  return n === 0 ? `/${r.join("/")}/${o.join("/")}` : `/${r.slice(0, -n).join("/")}/${o.join("/")}`;
2876
- }, yl = (e, t) => {
2876
+ }, xl = (e, t) => {
2877
2877
  const n = e.split("/").filter((o) => o !== ""), r = t.split("/").filter((o) => o !== "");
2878
2878
  return n.length > 0 && n.at(-1) === "*" && n.pop(), n.length === 0 ? `/${r.join("/")}` : `/${n.join("/")}/${r.join("/")}`;
2879
- }, vl = (e, t) => {
2879
+ }, Sl = (e, t) => {
2880
2880
  const n = e.split("/");
2881
2881
  let r = t.split("/");
2882
2882
  if (r.at(-1) === "" && (r = r.slice(0, -1)), n.length > r.length)
@@ -2885,18 +2885,18 @@ const ml = (e, t) => {
2885
2885
  return { isMatch: !1, remainer: "", data: {}, query: "", hash: "", path: "" };
2886
2886
  let o = {}, a = "", i = "";
2887
2887
  for (let l = 0; l < n.length; ++l) {
2888
- const c = n[l], d = [...r[l].matchAll(/([?#]?)((?:(?![?#]).)*)/g)], g = d?.find((y) => y[1] === "")?.[2] ?? "";
2889
- if (a = d?.find((y) => y[1] === "?")?.[2] ?? "", i = d?.find((y) => y[1] === "#")?.[2] ?? "", c.startsWith(":") && g && g !== "") {
2890
- o[c.substring(1)] = g;
2888
+ const c = n[l], g = [...r[l].matchAll(/([?#]?)((?:(?![?#]).)*)/g)], f = g?.find((b) => b[1] === "")?.[2] ?? "";
2889
+ if (a = g?.find((b) => b[1] === "?")?.[2] ?? "", i = g?.find((b) => b[1] === "#")?.[2] ?? "", c.startsWith(":") && f && f !== "") {
2890
+ o[c.substring(1)] = f;
2891
2891
  continue;
2892
2892
  }
2893
2893
  if (c === "*")
2894
2894
  return { isMatch: !0, data: o, remainer: r.splice(0, l).join("/"), query: a, hash: i, path: r.slice(0, l).join("/") };
2895
- if (c !== g)
2895
+ if (c !== f)
2896
2896
  return { isMatch: !1, data: {}, remainer: "", query: "", hash: "", path: "" };
2897
2897
  }
2898
2898
  return { isMatch: !0, remainer: "", data: o, query: a, hash: i, path: t?.split("?")?.[0] ?? "" };
2899
- }, wl = `
2899
+ }, Cl = `
2900
2900
  query dbSchema {
2901
2901
  _dbSchema {
2902
2902
  dbName
@@ -2935,12 +2935,12 @@ query dbSchema {
2935
2935
  }
2936
2936
  }
2937
2937
  }`;
2938
- class xl extends Error {
2938
+ class El extends Error {
2939
2939
  constructor(t, n) {
2940
2940
  super(t.map((r) => r.message).join("; ")), this.errors = t, this.data = n, this.name = "GraphQLRequestError";
2941
2941
  }
2942
2942
  }
2943
- class Sl {
2943
+ class Rl {
2944
2944
  constructor(t) {
2945
2945
  this.uri = t;
2946
2946
  }
@@ -2954,31 +2954,31 @@ class Sl {
2954
2954
  throw new Error(`GraphQL request failed: ${r.status} ${r.statusText}`);
2955
2955
  const o = await r.json();
2956
2956
  if (o.errors?.length)
2957
- throw new xl(o.errors, o.data);
2957
+ throw new El(o.errors, o.data);
2958
2958
  return o.data;
2959
2959
  }
2960
2960
  }
2961
- const Xo = qt(null), Cl = Xo.Provider;
2961
+ const ea = qt(null), $l = ea.Provider;
2962
2962
  function Gt() {
2963
- const e = Te(Xo);
2963
+ const e = Te(ea);
2964
2964
  if (!e) throw new Error("useFetcher must be used within a FetcherProvider");
2965
2965
  return e;
2966
2966
  }
2967
- const Zo = qt({ loading: !0, error: null, data: [], findTable: () => {
2968
- } }), El = ({ children: e }) => {
2969
- const t = Rl();
2970
- return /* @__PURE__ */ p.jsx(Zo.Provider, { value: t, children: e });
2967
+ const ta = qt({ loading: !0, error: null, data: [], findTable: () => {
2968
+ } }), Ol = ({ children: e }) => {
2969
+ const t = Pl();
2970
+ return /* @__PURE__ */ d.jsx(ta.Provider, { value: t, children: e });
2971
2971
  };
2972
2972
  function $t() {
2973
- return Te(Zo);
2973
+ return Te(ta);
2974
2974
  }
2975
- function Rl() {
2976
- const e = Gt(), { isLoading: t, error: n, data: r } = jn({
2975
+ function Pl() {
2976
+ const e = Gt(), { isLoading: t, error: n, data: r } = kn({
2977
2977
  queryKey: ["dbSchema"],
2978
- queryFn: () => e.query(wl),
2978
+ queryFn: () => e.query(Cl),
2979
2979
  staleTime: 1 / 0
2980
2980
  });
2981
- return ae(() => {
2981
+ return ie(() => {
2982
2982
  if (t) return { loading: !0, error: null, data: [], findTable: () => {
2983
2983
  } };
2984
2984
  if (n) return { loading: !1, error: { message: n.message }, data: [], findTable: () => {
@@ -3001,12 +3001,12 @@ function Rl() {
3001
3001
  }, [t, n, r]);
3002
3002
  }
3003
3003
  function uo(e) {
3004
- return e.reduce((t, n) => ({ ...t, [n.key]: $l(n) }), {});
3004
+ return e.reduce((t, n) => ({ ...t, [n.key]: kl(n) }), {});
3005
3005
  }
3006
- function $l({ key: e, value: t }) {
3007
- return e === "type" ? Ol(t) : t;
3006
+ function kl({ key: e, value: t }) {
3007
+ return e === "type" ? jl(t) : t;
3008
3008
  }
3009
- function Ol(e) {
3009
+ function jl(e) {
3010
3010
  const t = e.match(/lookup\s*\(\s*(?<id>\w+)\s*,\s*(?<label>\w+)\s*\)/m);
3011
3011
  if (t?.groups?.id && t?.groups?.label)
3012
3012
  return {
@@ -3015,20 +3015,20 @@ function Ol(e) {
3015
3015
  label: t.groups.label
3016
3016
  };
3017
3017
  }
3018
- const Pl = [
3018
+ const Tl = [
3019
3019
  {
3020
3020
  name: "Table",
3021
- cell: (e) => /* @__PURE__ */ p.jsx(gt, { to: `/${e.name}`, className: "plain-link", children: e.label })
3021
+ cell: (e) => /* @__PURE__ */ d.jsx(gt, { to: `/${e.name}`, className: "plain-link", children: e.label })
3022
3022
  }
3023
3023
  ];
3024
- function jl() {
3024
+ function _l() {
3025
3025
  const { loading: e, error: t, data: n } = $t();
3026
- return e ? /* @__PURE__ */ p.jsx("div", { children: "Loading..." }) : t ? /* @__PURE__ */ p.jsxs("div", { children: [
3026
+ return e ? /* @__PURE__ */ d.jsx("div", { children: "Loading..." }) : t ? /* @__PURE__ */ d.jsxs("div", { children: [
3027
3027
  "Error: ",
3028
3028
  t.message
3029
- ] }) : /* @__PURE__ */ p.jsx("div", { children: /* @__PURE__ */ p.jsx(Bo, { columns: Pl, data: n }) });
3029
+ ] }) : /* @__PURE__ */ d.jsx("div", { children: /* @__PURE__ */ d.jsx(qo, { columns: Tl, data: n }) });
3030
3030
  }
3031
- const ea = (e) => {
3031
+ const Dl = ["Int", "Int!", "Float", "Float!"], na = (e) => {
3032
3032
  try {
3033
3033
  if (!e) return { variables: {}, param: "", filterText: "" };
3034
3034
  const [t, n, r, o] = JSON.parse(e);
@@ -3036,11 +3036,14 @@ const ea = (e) => {
3036
3036
  } catch {
3037
3037
  return { variables: {}, param: "", filterText: "" };
3038
3038
  }
3039
- }, kl = (e) => {
3039
+ }, Al = (e) => {
3040
3040
  if (!e) return "";
3041
3041
  const t = new Date(e);
3042
3042
  return t.toString() === "Invalid Date" || t < /* @__PURE__ */ new Date("1973-01-01") ? "" : t.toLocaleString();
3043
- }, Tl = (e, t) => {
3043
+ }, po = (e, t) => {
3044
+ const n = t.primaryKeys?.[0];
3045
+ return String(n ? e?.[n] ?? "" : e?.id ?? "");
3046
+ }, fo = (e) => String(e?.id ?? ""), Il = (e, t) => {
3044
3047
  if (!e || !t) return [];
3045
3048
  const n = e.columns.map((o) => {
3046
3049
  const a = {
@@ -3052,15 +3055,15 @@ const ea = (e) => {
3052
3055
  if (i) {
3053
3056
  const l = i.destinationTable, c = t.findTable(i.destinationTable);
3054
3057
  return {
3055
- cell: (f) => !!f && /* @__PURE__ */ p.jsx(gt, { to: "/" + c?.name + "/" + f?.[l]?.id, children: f?.[l]?.label }),
3058
+ cell: (p) => !!p && /* @__PURE__ */ d.jsx(gt, { to: "/" + c?.name + "/" + fo(p?.[l]), children: p?.[l]?.label }),
3056
3059
  ...a
3057
3060
  };
3058
3061
  }
3059
3062
  return o?.joinTable ? {
3060
- cell: (l) => !!l && /* @__PURE__ */ p.jsx(gt, { to: "/" + o.name + "/" + l?.[o.name]?.id, children: o.name }),
3063
+ cell: (l) => !!l && /* @__PURE__ */ d.jsx(gt, { to: "/" + o.name + "/" + fo(l?.[o.name]), children: o.name }),
3061
3064
  ...a
3062
3065
  } : o?.paramType === "DateTime" ? {
3063
- selector: (l) => !!o?.name && kl(l?.[o?.name]) || "",
3066
+ selector: (l) => !!o?.name && Al(l?.[o?.name]) || "",
3064
3067
  ...a
3065
3068
  } : {
3066
3069
  selector: (l) => o?.name ? String(l?.[o?.name] ?? "") : "",
@@ -3070,7 +3073,7 @@ const ea = (e) => {
3070
3073
  const a = t.findTable(o.destinationTable);
3071
3074
  return {
3072
3075
  name: a?.name,
3073
- cell: (i) => !!i && /* @__PURE__ */ p.jsx(gt, { to: "/" + a?.name + "/from/" + e.name + "/" + i?.id, children: a?.name }),
3076
+ cell: (i) => !!i && /* @__PURE__ */ d.jsx(gt, { to: "/" + a?.name + "/from/" + e.name + "/" + po(i, e), children: a?.name }),
3074
3077
  reorder: !1,
3075
3078
  sortable: !1,
3076
3079
  sortField: o.sourceColumnNames?.[0]
@@ -3078,59 +3081,62 @@ const ea = (e) => {
3078
3081
  });
3079
3082
  return e.isEditable === !1 ? [...n, ...r] : [{
3080
3083
  name: "edit",
3081
- cell: (o) => /* @__PURE__ */ p.jsx(gt, { to: `/${e.graphQlName}/edit/${o?.id}`, children: "edit" })
3084
+ cell: (o) => /* @__PURE__ */ d.jsx(gt, { to: `/${e.graphQlName}/edit/${po(o, e)}`, children: "edit" })
3082
3085
  }, ...n, ...r];
3083
- }, _l = (e, t, n, r, o) => {
3086
+ }, ra = (e) => {
3087
+ const t = e.primaryKeys?.[0];
3088
+ return t ? e.columns.find((r) => r.name === t)?.paramType?.replace("!", "") ?? "Int" : "Int";
3089
+ }, Nl = (e, t, n, r, o) => {
3084
3090
  if (!e || !t?.data) return null;
3085
3091
  const a = t.findTable(e.graphQlName);
3086
3092
  if (!a) return null;
3087
- const i = a?.primaryKeys?.[0] ?? "id";
3088
- let { param: l, filterText: c } = ea(n);
3089
- const f = e.columns.filter((d) => d?.joinTable === void 0).map((d) => {
3090
- const g = a.singleJoins.find((E) => E.sourceColumnNames?.[0] === d.name);
3091
- if (!g) return d;
3092
- const b = t.findTable(g.destinationTable)?.labelColumn ?? "id";
3093
- return { ...d, joinTable: g, joinLabelColumn: b };
3094
- }).map((d) => d?.joinTable ? d.name + ` ${d.joinTable.destinationTable} { id: ${d.joinTable.destinationColumnNames?.[0]} label: ${d.joinLabelColumn} }` : d.name).join(" ");
3095
- return r && !o && (l = ", $id: Int", c = `{ ${i}: { _eq: $id}}`), r && o && (l = ", $id: Int" + l, c ? c = `{and: [${c}, { ${o}: { ${i}: { _eq: $id}}} ]}` : c = `{ ${o}: { ${i}: { _eq: $id}}}`), c && (c = `filter: ${c}`), `query Get${e.name}($sort: [${e.graphQlName}SortEnum!], $limit: Int, $offset: Int ${l}) { ${e.name}(sort: $sort limit: $limit offset: $offset ${c}) { total offset limit data {${f}}}}`;
3093
+ const i = a?.primaryKeys?.[0] ?? "id", l = ra(a);
3094
+ let { param: c, filterText: p } = na(n);
3095
+ const g = e.columns.filter((f) => f?.joinTable === void 0).map((f) => {
3096
+ const b = a.singleJoins.find((S) => S.sourceColumnNames?.[0] === f.name);
3097
+ if (!b) return f;
3098
+ const x = t.findTable(b.destinationTable)?.labelColumn ?? "id";
3099
+ return { ...f, joinTable: b, joinLabelColumn: x };
3100
+ }).map((f) => f?.joinTable ? f.name + ` ${f.joinTable.destinationTable} { id: ${f.joinTable.destinationColumnNames?.[0]} label: ${f.joinLabelColumn} }` : f.name).join(" ");
3101
+ return r && !o && (c = `, $id: ${l}`, p = `{ ${i}: { _eq: $id}}`), r && o && (c = `, $id: ${l}` + c, p ? p = `{and: [${p}, { ${o}: { ${i}: { _eq: $id}}} ]}` : p = `{ ${o}: { ${i}: { _eq: $id}}}`), p && (p = `filter: ${p}`), `query Get${e.name}($sort: [${e.graphQlName}SortEnum!], $limit: Int, $offset: Int ${c}) { ${e.name}(sort: $sort limit: $limit offset: $offset ${p}) { total offset limit data {${g}}}}`;
3096
3102
  };
3097
- function Dl(e, t, n) {
3098
- const { search: r } = gl(), o = r.get("filter") ?? "", { variables: a } = ea(o), i = $t(), l = Gt(), [c, f] = Lt(null), [d, g] = Lt(0), [y, b] = Lt(10), E = c ? [`${c.columnName}_${c.order}`] : e ? [`${e.columns.at(0)?.name ?? "id"}_asc`] : [], S = ae(
3099
- () => _l(e, i, o, t, n),
3103
+ function Fl(e, t, n) {
3104
+ const { search: r } = bl(), o = r.get("filter") ?? "", { variables: a } = na(o), i = $t(), l = Gt(), [c, p] = Lt(null), [g, f] = Lt(0), [b, y] = Lt(10), x = c ? [`${c.columnName}_${c.order}`] : e ? [`${e.columns.at(0)?.name ?? "id"}_asc`] : [], S = ie(
3105
+ () => Nl(e, i, o, t, n),
3100
3106
  [e, i, o, t, n]
3101
- ), $ = ae(() => ({
3102
- sort: E,
3103
- limit: y,
3104
- offset: d,
3105
- ...t ? { id: +t } : {},
3107
+ ), E = e ? ra(e) : "Int", k = ie(() => ({
3108
+ sort: x,
3109
+ limit: b,
3110
+ offset: g,
3111
+ ...t ? { id: Dl.includes(E) ? +t : t } : {},
3106
3112
  ...a
3107
- }), [E, y, d, t, a]), { isLoading: P, error: C, data: O } = jn({
3108
- queryKey: ["tableData", e?.name, $],
3109
- queryFn: () => l.query(S, $),
3110
- enabled: !!S && !!e && E.length > 0
3111
- }), j = ae(
3112
- () => e ? Tl(e, i) : [],
3113
+ }), [x, b, g, t, E, a]), { isLoading: C, error: O, data: P } = kn({
3114
+ queryKey: ["tableData", e?.name, k],
3115
+ queryFn: () => l.query(S, k),
3116
+ enabled: !!S && !!e && x.length > 0
3117
+ }), _ = ie(
3118
+ () => e ? Il(e, i) : [],
3113
3119
  [e, i]
3114
- ), _ = Un((N, Q) => {
3115
- f({ columnName: N.sortField ?? "id", order: Q });
3116
- }, []), w = Un((N) => {
3117
- g((N - 1) * y);
3118
- }, [y]), v = Un((N) => {
3119
- b(N);
3120
+ ), R = Un((G, D) => {
3121
+ p({ columnName: G.sortField ?? "id", order: D });
3122
+ }, []), w = Un((G) => {
3123
+ f((G - 1) * b);
3124
+ }, [b]), M = Un((G) => {
3125
+ y(G);
3120
3126
  }, []);
3121
3127
  return {
3122
- tableColumns: j,
3123
- offset: d,
3124
- limit: y,
3125
- handleSort: _,
3128
+ tableColumns: _,
3129
+ offset: g,
3130
+ limit: b,
3131
+ handleSort: R,
3126
3132
  handlePage: w,
3127
- handlePageSize: v,
3128
- loading: P,
3129
- error: C,
3130
- data: O
3133
+ handlePageSize: M,
3134
+ loading: C,
3135
+ error: O,
3136
+ data: P
3131
3137
  };
3132
3138
  }
3133
- function Al({ table: e, id: t, tableFilter: n }) {
3139
+ function Ll({ table: e, id: t, tableFilter: n }) {
3134
3140
  const {
3135
3141
  limit: r,
3136
3142
  tableColumns: o,
@@ -3138,87 +3144,87 @@ function Al({ table: e, id: t, tableFilter: n }) {
3138
3144
  handlePage: i,
3139
3145
  handlePageSize: l,
3140
3146
  loading: c,
3141
- error: f,
3142
- data: d
3143
- } = Dl(e, t, n), g = Wt(e.name), y = Wt(0), b = ae(() => (g.current !== e.name && (g.current = e.name, y.current += 1), y.current % 2 === 1), [e.name]);
3144
- return f ? /* @__PURE__ */ p.jsxs("div", { children: [
3147
+ error: p,
3148
+ data: g
3149
+ } = Fl(e, t, n), f = Wt(e.name), b = Wt(0), y = ie(() => (f.current !== e.name && (f.current = e.name, b.current += 1), b.current % 2 === 1), [e.name]);
3150
+ return p ? /* @__PURE__ */ d.jsxs("div", { children: [
3145
3151
  "Error: ",
3146
- f.message
3147
- ] }) : /* @__PURE__ */ p.jsx(
3148
- Bo,
3152
+ p.message
3153
+ ] }) : /* @__PURE__ */ d.jsx(
3154
+ qo,
3149
3155
  {
3150
3156
  columns: o,
3151
- data: d?.[e.name]?.data ?? [],
3157
+ data: g?.[e.name]?.data ?? [],
3152
3158
  progressPending: c,
3153
3159
  sortServer: !0,
3154
3160
  onSort: a,
3155
3161
  pagination: !0,
3156
3162
  paginationServer: !0,
3157
- paginationTotalRows: d?.[e.name]?.total ?? 0,
3163
+ paginationTotalRows: g?.[e.name]?.total ?? 0,
3158
3164
  paginationPerPage: r,
3159
3165
  paginationDefaultPage: 1,
3160
- paginationResetDefaultPage: b,
3166
+ paginationResetDefaultPage: y,
3161
3167
  onChangePage: i,
3162
3168
  onChangeRowsPerPage: l
3163
3169
  }
3164
3170
  );
3165
3171
  }
3166
- function Il(e, t) {
3172
+ function Ml(e, t) {
3167
3173
  return e.find((r) => r.name == t);
3168
3174
  }
3169
3175
  function ft() {
3170
3176
  const e = $r(), { table: t, id: n, filterTable: r } = e, { loading: o, error: a, data: i } = $t();
3171
- return t ? o ? /* @__PURE__ */ p.jsx("div", { children: "Loading..." }) : a ? /* @__PURE__ */ p.jsxs("div", { children: [
3177
+ return t ? o ? /* @__PURE__ */ d.jsx("div", { children: "Loading..." }) : a ? /* @__PURE__ */ d.jsxs("div", { children: [
3172
3178
  "Error: ",
3173
3179
  a.message
3174
- ] }) : /* @__PURE__ */ p.jsx(Al, { table: Il(i, t), id: n, tableFilter: r }) : /* @__PURE__ */ p.jsx("div", { children: "Table missing" });
3180
+ ] }) : /* @__PURE__ */ d.jsx(Ll, { table: Ml(i, t), id: n, tableFilter: r }) : /* @__PURE__ */ d.jsx("div", { children: "Table missing" });
3175
3181
  }
3176
3182
  function or() {
3177
- const e = $r(), { loading: t, error: n, data: r } = $t(), [o, a] = Lt(""), i = Rr(), { back: l, hasBack: c } = fl(), f = e?.table, d = ae(() => r?.find((S) => S.graphQlName === f), [r, f]), g = ae(
3178
- () => d?.columns?.map((S) => ({ key: S.name, value: `${S.name},${S.paramType}`, label: S.label })),
3179
- [d]
3180
- ), [y, b] = Lt(g?.at(0)?.value ?? "");
3183
+ const e = $r(), { loading: t, error: n, data: r } = $t(), [o, a] = Lt(""), i = Rr(), { back: l, hasBack: c } = ml(), p = e?.table, g = ie(() => r?.find((S) => S.graphQlName === p), [r, p]), f = ie(
3184
+ () => g?.columns?.map((S) => ({ key: S.name, value: `${S.name},${S.paramType}`, label: S.label })),
3185
+ [g]
3186
+ ), [b, y] = Lt(f?.at(0)?.value ?? "");
3181
3187
  En(() => {
3182
- a(""), b(g?.at(0)?.value ?? "");
3183
- }, [g]);
3184
- const E = () => {
3188
+ a(""), y(f?.at(0)?.value ?? "");
3189
+ }, [f]);
3190
+ const x = () => {
3185
3191
  if (!o) return;
3186
- const [S, $] = y.split(",");
3187
- ($ === "Int" || $ === "Int!" || $ === "Float" || $ === "Float!") && i(`?filter=["${S}", "_eq", ${o}, "${$}"]`), ($ === "String" || $ === "String!") && i(`?filter=["${S}", "_contains", "${o}", "${$}"]`);
3192
+ const [S, E] = b.split(",");
3193
+ (E === "Int" || E === "Int!" || E === "Float" || E === "Float!") && i(`?filter=["${S}", "_eq", ${o}, "${E}"]`), (E === "String" || E === "String!") && i(`?filter=["${S}", "_contains", "${o}", "${E}"]`);
3188
3194
  };
3189
- return t ? /* @__PURE__ */ p.jsx("div", { children: "Loading..." }) : n ? /* @__PURE__ */ p.jsxs("div", { children: [
3195
+ return t ? /* @__PURE__ */ d.jsx("div", { children: "Loading..." }) : n ? /* @__PURE__ */ d.jsxs("div", { children: [
3190
3196
  "Error: ",
3191
3197
  n.message
3192
- ] }) : /* @__PURE__ */ p.jsxs("header", { className: "editdb-header", children: [
3193
- /* @__PURE__ */ p.jsxs("div", { children: [
3194
- c && /* @__PURE__ */ p.jsx("button", { onClick: () => l(), children: "‹" }),
3195
- !c && /* @__PURE__ */ p.jsx("span", { children: "‹" })
3198
+ ] }) : /* @__PURE__ */ d.jsxs("header", { className: "editdb-header", children: [
3199
+ /* @__PURE__ */ d.jsxs("div", { children: [
3200
+ c && /* @__PURE__ */ d.jsx("button", { onClick: () => l(), children: "‹" }),
3201
+ !c && /* @__PURE__ */ d.jsx("span", { children: "‹" })
3196
3202
  ] }),
3197
- /* @__PURE__ */ p.jsxs("h3", { children: [
3203
+ /* @__PURE__ */ d.jsxs("h3", { children: [
3198
3204
  "Table: ",
3199
- d?.dbName ?? e?.table ?? "(Select)"
3205
+ g?.dbName ?? e?.table ?? "(Select)"
3200
3206
  ] }),
3201
- g && /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
3202
- /* @__PURE__ */ p.jsx("select", { onChange: (S) => b(S.target.value), children: g.map((S) => /* @__PURE__ */ p.jsx("option", { value: S.value, children: S.label }, S.key)) }),
3203
- /* @__PURE__ */ p.jsx("input", { type: "search", value: o, onChange: (S) => a(S.target.value) }),
3204
- /* @__PURE__ */ p.jsx("button", { onClick: E, children: "filter" }),
3205
- /* @__PURE__ */ p.jsx("button", { onClick: () => i("/"), children: "clear" }),
3206
- d?.isEditable && /* @__PURE__ */ p.jsx("button", { onClick: () => i("edit/"), children: "add" })
3207
+ f && /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
3208
+ /* @__PURE__ */ d.jsx("select", { onChange: (S) => y(S.target.value), children: f.map((S) => /* @__PURE__ */ d.jsx("option", { value: S.value, children: S.label }, S.key)) }),
3209
+ /* @__PURE__ */ d.jsx("input", { type: "search", value: o, onChange: (S) => a(S.target.value) }),
3210
+ /* @__PURE__ */ d.jsx("button", { onClick: x, children: "filter" }),
3211
+ /* @__PURE__ */ d.jsx("button", { onClick: () => i("/"), children: "clear" }),
3212
+ g?.isEditable && /* @__PURE__ */ d.jsx("button", { onClick: () => i("edit/"), children: "add" })
3207
3213
  ] })
3208
3214
  ] });
3209
3215
  }
3210
- function Nl(e, t, n) {
3211
- const r = Gt(), o = ae(
3212
- () => e?.data?.find((f) => f.graphQlName === t),
3216
+ function Hl(e, t, n) {
3217
+ const r = Gt(), o = ie(
3218
+ () => e?.data?.find((p) => p.graphQlName === t),
3213
3219
  [e, t]
3214
- ), a = ae(() => e.loading || e.error || !o ? null : `query Get_${t}_Ref {
3220
+ ), a = ie(() => e.loading || e.error || !o ? null : `query Get_${t}_Ref {
3215
3221
  values: ${t}(limit: -1) {
3216
3222
  data {
3217
3223
  key: ${n}
3218
3224
  label: ${o.labelColumn ?? "id"}
3219
3225
  }
3220
3226
  }
3221
- }`, [n, o, e.loading, e.error, t]), { isLoading: i, error: l, data: c } = jn({
3227
+ }`, [n, o, e.loading, e.error, t]), { isLoading: i, error: l, data: c } = kn({
3222
3228
  queryKey: ["tableRef", t, n],
3223
3229
  queryFn: () => r.query(a),
3224
3230
  enabled: !!a
@@ -3229,55 +3235,55 @@ function Nl(e, t, n) {
3229
3235
  data: c?.values?.data ?? []
3230
3236
  };
3231
3237
  }
3232
- const Fl = ["Int", "Int!", "Float", "Float!"], Ll = ["Boolean", "Boolean!"];
3233
- function po(e, t, n, r, o) {
3238
+ const zl = ["Int", "Int!", "Float", "Float!"], Wl = ["Boolean", "Boolean!"];
3239
+ function go(e, t, n, r, o) {
3234
3240
  const a = { ...e };
3235
3241
  for (const { column: i } of t) {
3236
- if (Fl.some((l) => l === i.paramType)) {
3242
+ if (zl.some((l) => l === i.paramType)) {
3237
3243
  const l = a[i.name];
3238
3244
  a[i.name] = l != null ? +l : void 0;
3239
3245
  }
3240
- Ll.some((l) => l === i.paramType) && (a[i.name] = !!a[i.name]);
3246
+ Wl.some((l) => l === i.paramType) && (a[i.name] = !!a[i.name]);
3241
3247
  }
3242
3248
  if (!o)
3243
3249
  for (const i of n)
3244
3250
  a[i.name] = i.paramType.startsWith("Int") ? +(r ?? 0) : r;
3245
3251
  return a;
3246
3252
  }
3247
- function Ml(e, t, n, r) {
3248
- const o = Gt(), a = ma(), i = ae(
3253
+ function Vl(e, t, n, r) {
3254
+ const o = Gt(), a = va(), i = ie(
3249
3255
  () => `mutation updateSingle($detail: Update_${e.name}){
3250
3256
  ${e.name}(update: $detail)
3251
3257
  }`,
3252
3258
  [e]
3253
- ), l = ae(
3259
+ ), l = ie(
3254
3260
  () => `mutation insertSingle($detail: Insert_${e.name}){
3255
3261
  ${e.name}(insert: $detail)
3256
3262
  }`,
3257
3263
  [e]
3258
3264
  ), c = Pr({
3259
- mutationFn: (b) => o.query(i, { detail: b }),
3265
+ mutationFn: (y) => o.query(i, { detail: y }),
3260
3266
  onSuccess: () => a.invalidateQueries({ queryKey: ["tableData", e.name] })
3261
- }), f = Pr({
3262
- mutationFn: (b) => o.query(l, { detail: b }),
3267
+ }), p = Pr({
3268
+ mutationFn: (y) => o.query(l, { detail: y }),
3263
3269
  onSuccess: () => a.invalidateQueries({ queryKey: ["tableData", e.name] })
3264
- }), d = (b) => {
3265
- const E = po(b, t, n, r, !1);
3266
- return c.mutateAsync(E);
3267
- }, g = (b) => {
3268
- const E = po(b, t, n, r, !0);
3269
- return f.mutateAsync(E);
3270
- }, y = c.error ?? f.error;
3270
+ }), g = (y) => {
3271
+ const x = go(y, t, n, r, !1);
3272
+ return c.mutateAsync(x);
3273
+ }, f = (y) => {
3274
+ const x = go(y, t, n, r, !0);
3275
+ return p.mutateAsync(x);
3276
+ }, b = c.error ?? p.error;
3271
3277
  return {
3272
- update: d,
3273
- insert: g,
3274
- isPending: c.isPending || f.isPending,
3275
- error: y
3278
+ update: g,
3279
+ insert: f,
3280
+ isPending: c.isPending || p.isPending,
3281
+ error: b
3276
3282
  };
3277
3283
  }
3278
- const Hl = ["Boolean", "Boolean!"], ta = ["DateTime", "DateTime!"];
3279
- function zl(e, t) {
3280
- return ae(() => {
3284
+ const Bl = ["Boolean", "Boolean!"], oa = ["DateTime", "DateTime!"], ql = ["Int", "Int!", "Float", "Float!"];
3285
+ function Gl(e, t) {
3286
+ return ie(() => {
3281
3287
  const n = e?.data?.find((a) => a.graphQlName == t), o = n.columns.filter((a) => !a.isReadOnly && !a.isIdentity).map((a) => ({ column: a, join: n.singleJoins.find((i) => i.sourceColumnNames[0] === a.graphQlName) }));
3282
3288
  return [
3283
3289
  n,
@@ -3286,69 +3292,69 @@ function zl(e, t) {
3286
3292
  ];
3287
3293
  }, [e, t]);
3288
3294
  }
3289
- function Wl({ table: e, schema: t, editid: n }) {
3290
- const r = Rr(), o = Gt(), a = n === void 0 || n === "", [i, l, c] = zl(t, e), f = i.labelColumn, d = i.label, g = Wt(null), y = Wt({}), b = Ml(i, l, c, n), E = ae(
3291
- () => `query GetSingleEdit_${i.name}($id: Int){
3292
- value: ${i.name}(filter: {id: { _eq: $id}}) {
3293
- data { ${l.map(({ column: w }) => w.name).join(" ")} }
3295
+ function Yl({ table: e, schema: t, editid: n }) {
3296
+ const r = Rr(), o = Gt(), a = n === void 0 || n === "", [i, l, c] = Gl(t, e), p = i.labelColumn, g = i.label, f = Wt(null), b = Wt({}), y = Vl(i, l, c, n), x = c[0]?.name ?? i.primaryKeys?.[0] ?? "id", E = (c[0] ?? i.columns.find((D) => D.name === x))?.paramType?.replace("!", "") ?? "Int", k = ql.includes(E), C = ie(
3297
+ () => `query GetSingleEdit_${i.name}($id: ${E}){
3298
+ value: ${i.name}(filter: {${x}: { _eq: $id}}) {
3299
+ data { ${l.map(({ column: D }) => D.name).join(" ")} }
3294
3300
  }
3295
3301
  }`,
3296
- [i, l]
3297
- ), { isLoading: S, error: $, data: P } = jn({
3302
+ [i, l, E, x]
3303
+ ), { isLoading: O, error: P, data: _ } = kn({
3298
3304
  queryKey: ["editRecord", i.name, n],
3299
- queryFn: () => o.query(E, { id: +n }),
3305
+ queryFn: () => o.query(C, { id: k ? +n : n }),
3300
3306
  enabled: !!i && !a
3301
- }), C = ae(() => P?.value?.data?.at(0) ?? {}, [P]);
3307
+ }), R = ie(() => _?.value?.data?.at(0) ?? {}, [_]);
3302
3308
  if (En(() => {
3303
- y.current = Object.fromEntries(l.map(({ column: w }) => {
3304
- if (ta.some((v) => v === w.paramType)) {
3305
- const v = C[w.name]?.split("T")?.[0];
3306
- return [w.name, v === "0001-01-01" ? "" : v];
3309
+ b.current = Object.fromEntries(l.map(({ column: D }) => {
3310
+ if (oa.some((Q) => Q === D.paramType)) {
3311
+ const Q = R[D.name]?.split("T")?.[0];
3312
+ return [D.name, Q === "0001-01-01" ? "" : Q];
3307
3313
  }
3308
- return [w.name, C[w.name]];
3314
+ return [D.name, R[D.name]];
3309
3315
  }));
3310
- }, [C, l]), En(() => {
3311
- const w = g.current;
3312
- return w?.showModal(), () => w?.close();
3313
- }, []), S && !a) return /* @__PURE__ */ p.jsx("div", { children: "Loading..." });
3314
- if ($) return /* @__PURE__ */ p.jsxs("div", { children: [
3316
+ }, [R, l]), En(() => {
3317
+ const D = f.current;
3318
+ return D?.showModal(), () => D?.close();
3319
+ }, []), O && !a) return /* @__PURE__ */ d.jsx("div", { children: "Loading..." });
3320
+ if (P) return /* @__PURE__ */ d.jsxs("div", { children: [
3315
3321
  "Error: ",
3316
- $.message
3322
+ P.message
3317
3323
  ] });
3318
- if (b.error) return /* @__PURE__ */ p.jsxs("div", { children: [
3324
+ if (y.error) return /* @__PURE__ */ d.jsxs("div", { children: [
3319
3325
  "Error: ",
3320
- b.error.message
3326
+ y.error.message
3321
3327
  ] });
3322
- const O = (w) => {
3323
- (a ? b.insert : b.update)({ ...y.current }).then(() => {
3328
+ const w = (D) => {
3329
+ (a ? y.insert : y.update)({ ...b.current }).then(() => {
3324
3330
  r("../..");
3325
3331
  });
3326
- }, j = C?.[f] ?? n, _ = l.map(({ column: w, join: v }) => ({
3327
- paramType: w.paramType,
3328
- isReadOnly: w.isReadOnly,
3329
- name: w.name,
3330
- required: w.isNullable ? {} : { required: !0 },
3331
- value: y.current[w.name] ?? (a ? void 0 : C[w.name]),
3332
- join: v
3332
+ }, M = R?.[p] ?? n, G = l.map(({ column: D, join: Q }) => ({
3333
+ paramType: D.paramType,
3334
+ isReadOnly: D.isReadOnly,
3335
+ name: D.name,
3336
+ required: D.isNullable ? {} : { required: !0 },
3337
+ value: b.current[D.name] ?? (a ? void 0 : R[D.name]),
3338
+ join: Q
3333
3339
  }));
3334
- return /* @__PURE__ */ p.jsx("dialog", { className: "editdb-dialog-edit", ref: g, children: /* @__PURE__ */ p.jsxs("form", { method: "dialog", onSubmit: O, children: [
3340
+ return /* @__PURE__ */ d.jsx("dialog", { className: "editdb-dialog-edit", ref: f, children: /* @__PURE__ */ d.jsxs("form", { method: "dialog", onSubmit: w, children: [
3335
3341
  c.map(
3336
- (w) => /* @__PURE__ */ p.jsx("input", { type: "hidden", name: w.name, defaultValue: n }, w.name)
3342
+ (D) => /* @__PURE__ */ d.jsx("input", { type: "hidden", name: D.name, defaultValue: n }, D.name)
3337
3343
  ),
3338
- /* @__PURE__ */ p.jsxs("h3", { className: "editdb-dialog-edit__heading", children: [
3339
- d,
3344
+ /* @__PURE__ */ d.jsxs("h3", { className: "editdb-dialog-edit__heading", children: [
3345
+ g,
3340
3346
  ":",
3341
- j
3347
+ M
3342
3348
  ] }),
3343
- /* @__PURE__ */ p.jsx(Bl, { fields: _, detailRef: y }),
3344
- /* @__PURE__ */ p.jsxs("div", { className: "button-row", children: [
3345
- /* @__PURE__ */ p.jsx(gt, { className: "editdb-dialog-edit__cancel", to: "../..", children: "Cancel" }),
3346
- /* @__PURE__ */ p.jsx(
3349
+ /* @__PURE__ */ d.jsx(Ul, { fields: G, detailRef: b }),
3350
+ /* @__PURE__ */ d.jsxs("div", { className: "button-row", children: [
3351
+ /* @__PURE__ */ d.jsx(gt, { className: "editdb-dialog-edit__cancel", to: "../..", children: "Cancel" }),
3352
+ /* @__PURE__ */ d.jsx(
3347
3353
  "button",
3348
3354
  {
3349
3355
  type: "submit",
3350
- className: `editdb-dialog-edit__submit ${b.isPending ? "editdb-dialog-edit__submit--loading" : ""}`,
3351
- disabled: b.isPending,
3356
+ className: `editdb-dialog-edit__submit ${y.isPending ? "editdb-dialog-edit__submit--loading" : ""}`,
3357
+ disabled: y.isPending,
3352
3358
  children: "Save"
3353
3359
  }
3354
3360
  )
@@ -3357,23 +3363,23 @@ function Wl({ table: e, schema: t, editid: n }) {
3357
3363
  }
3358
3364
  function hn() {
3359
3365
  const { table: e, editid: t } = $r(), n = $t();
3360
- return e ? n.loading ? /* @__PURE__ */ p.jsx("div", { children: "Loading..." }) : n.error ? /* @__PURE__ */ p.jsxs("div", { children: [
3366
+ return e ? n.loading ? /* @__PURE__ */ d.jsx("div", { children: "Loading..." }) : n.error ? /* @__PURE__ */ d.jsxs("div", { children: [
3361
3367
  "Error: ",
3362
3368
  n.error.message
3363
- ] }) : /* @__PURE__ */ p.jsx(Wl, { table: e, schema: n, editid: t ?? "" }) : /* @__PURE__ */ p.jsx("div", { children: "Table missing" });
3369
+ ] }) : /* @__PURE__ */ d.jsx(Yl, { table: e, schema: n, editid: t ?? "" }) : /* @__PURE__ */ d.jsx("div", { children: "Table missing" });
3364
3370
  }
3365
- function Bl({ fields: e, detailRef: t }) {
3366
- return /* @__PURE__ */ p.jsx("ul", { className: "editdb-dialog-edit__input-list", children: e.map((n) => /* @__PURE__ */ p.jsx(Vl, { field: n, detailRef: t }, n.name)) });
3371
+ function Ul({ fields: e, detailRef: t }) {
3372
+ return /* @__PURE__ */ d.jsx("ul", { className: "editdb-dialog-edit__input-list", children: e.map((n) => /* @__PURE__ */ d.jsx(Kl, { field: n, detailRef: t }, n.name)) });
3367
3373
  }
3368
- function Vl({ field: e, detailRef: t }) {
3369
- let n = Gl;
3370
- return e.join ? n = Ul : Hl.some((r) => r === e.paramType) ? n = ql : ta.some((r) => r === e.paramType) && (n = Yl), /* @__PURE__ */ p.jsxs("li", { className: "editdb-dialog-edit__input-item", children: [
3371
- /* @__PURE__ */ p.jsx("label", { children: e.name }),
3372
- /* @__PURE__ */ p.jsx(n, { field: e, detailRef: t })
3374
+ function Kl({ field: e, detailRef: t }) {
3375
+ let n = Jl;
3376
+ return e.join ? n = Zl : Bl.some((r) => r === e.paramType) ? n = Ql : oa.some((r) => r === e.paramType) && (n = Xl), /* @__PURE__ */ d.jsxs("li", { className: "editdb-dialog-edit__input-item", children: [
3377
+ /* @__PURE__ */ d.jsx("label", { children: e.name }),
3378
+ /* @__PURE__ */ d.jsx(n, { field: e, detailRef: t })
3373
3379
  ] });
3374
3380
  }
3375
- function ql({ field: e, detailRef: t }) {
3376
- return /* @__PURE__ */ p.jsx(
3381
+ function Ql({ field: e, detailRef: t }) {
3382
+ return /* @__PURE__ */ d.jsx(
3377
3383
  "input",
3378
3384
  {
3379
3385
  type: "checkbox",
@@ -3384,8 +3390,8 @@ function ql({ field: e, detailRef: t }) {
3384
3390
  }
3385
3391
  );
3386
3392
  }
3387
- function Gl({ field: e, detailRef: t }) {
3388
- return /* @__PURE__ */ p.jsx(
3393
+ function Jl({ field: e, detailRef: t }) {
3394
+ return /* @__PURE__ */ d.jsx(
3389
3395
  "input",
3390
3396
  {
3391
3397
  type: "text",
@@ -3397,8 +3403,8 @@ function Gl({ field: e, detailRef: t }) {
3397
3403
  }
3398
3404
  );
3399
3405
  }
3400
- function Yl({ field: e, detailRef: t }) {
3401
- return /* @__PURE__ */ p.jsx(
3406
+ function Xl({ field: e, detailRef: t }) {
3407
+ return /* @__PURE__ */ d.jsx(
3402
3408
  "input",
3403
3409
  {
3404
3410
  type: "date",
@@ -3410,20 +3416,20 @@ function Yl({ field: e, detailRef: t }) {
3410
3416
  }
3411
3417
  );
3412
3418
  }
3413
- function Ul({ field: e, detailRef: t }) {
3414
- const n = $t(), r = Nl(n, e.join.destinationTable, e.join.destinationColumnNames[0]);
3415
- return /* @__PURE__ */ p.jsx(
3419
+ function Zl({ field: e, detailRef: t }) {
3420
+ const n = $t(), r = Hl(n, e.join.destinationTable, e.join.destinationColumnNames[0]);
3421
+ return /* @__PURE__ */ d.jsx(
3416
3422
  "select",
3417
3423
  {
3418
3424
  defaultValue: e.value,
3419
3425
  onChange: (o) => {
3420
3426
  t.current[e.name] = o.target.value;
3421
3427
  },
3422
- children: r.data.map((o) => /* @__PURE__ */ p.jsx("option", { value: o.key, children: o.label }, o.key))
3428
+ children: r.data.map((o) => /* @__PURE__ */ d.jsx("option", { value: o.key, children: o.label }, o.key))
3423
3429
  }
3424
3430
  );
3425
3431
  }
3426
- class mn extends ha {
3432
+ class mn extends ya {
3427
3433
  constructor(t) {
3428
3434
  super(t), this.state = { hasError: !1, error: null };
3429
3435
  }
@@ -3439,13 +3445,13 @@ class mn extends ha {
3439
3445
  };
3440
3446
  render() {
3441
3447
  const { hasError: t, error: n } = this.state, { children: r, fallback: o, section: a } = this.props;
3442
- return t ? o || /* @__PURE__ */ p.jsx("div", { className: "editdb-error-boundary", children: /* @__PURE__ */ p.jsxs("div", { className: "editdb-error-boundary__content", children: [
3443
- /* @__PURE__ */ p.jsxs("h3", { className: "editdb-error-boundary__title", children: [
3448
+ return t ? o || /* @__PURE__ */ d.jsx("div", { className: "editdb-error-boundary", children: /* @__PURE__ */ d.jsxs("div", { className: "editdb-error-boundary__content", children: [
3449
+ /* @__PURE__ */ d.jsxs("h3", { className: "editdb-error-boundary__title", children: [
3444
3450
  "Something went wrong",
3445
3451
  a ? ` in ${a}` : ""
3446
3452
  ] }),
3447
- /* @__PURE__ */ p.jsx("p", { className: "editdb-error-boundary__message", children: n?.message ?? "An unexpected error occurred" }),
3448
- /* @__PURE__ */ p.jsx(
3453
+ /* @__PURE__ */ d.jsx("p", { className: "editdb-error-boundary__message", children: n?.message ?? "An unexpected error occurred" }),
3454
+ /* @__PURE__ */ d.jsx(
3449
3455
  "button",
3450
3456
  {
3451
3457
  className: "editdb-error-boundary__retry",
@@ -3456,44 +3462,44 @@ class mn extends ha {
3456
3462
  ] }) }) : r;
3457
3463
  }
3458
3464
  }
3459
- const Kl = () => /* @__PURE__ */ p.jsx("p", { className: "editdb-message", children: "Select a Table" }), Ql = () => /* @__PURE__ */ p.jsxs("div", { className: "editdb-frame-layout", children: [
3460
- /* @__PURE__ */ p.jsx("div", { className: "editdb-frame-layout-header", children: /* @__PURE__ */ p.jsx(mn, { section: "Header", children: /* @__PURE__ */ p.jsxs(rr, { children: [
3461
- /* @__PURE__ */ p.jsx(me, { path: "/:table/*", element: /* @__PURE__ */ p.jsx(or, {}) }),
3462
- /* @__PURE__ */ p.jsx(me, { path: "/:table", element: /* @__PURE__ */ p.jsx(or, {}) }),
3463
- /* @__PURE__ */ p.jsx(me, { path: "/", element: /* @__PURE__ */ p.jsx(or, {}) })
3465
+ const ec = () => /* @__PURE__ */ d.jsx("p", { className: "editdb-message", children: "Select a Table" }), tc = () => /* @__PURE__ */ d.jsxs("div", { className: "editdb-frame-layout", children: [
3466
+ /* @__PURE__ */ d.jsx("div", { className: "editdb-frame-layout-header", children: /* @__PURE__ */ d.jsx(mn, { section: "Header", children: /* @__PURE__ */ d.jsxs(rr, { children: [
3467
+ /* @__PURE__ */ d.jsx(me, { path: "/:table/*", element: /* @__PURE__ */ d.jsx(or, {}) }),
3468
+ /* @__PURE__ */ d.jsx(me, { path: "/:table", element: /* @__PURE__ */ d.jsx(or, {}) }),
3469
+ /* @__PURE__ */ d.jsx(me, { path: "/", element: /* @__PURE__ */ d.jsx(or, {}) })
3464
3470
  ] }) }) }),
3465
- /* @__PURE__ */ p.jsx("div", { className: "editdb-frame-layout-nav", children: /* @__PURE__ */ p.jsx(mn, { section: "Table List", children: /* @__PURE__ */ p.jsx(jl, {}) }) }),
3466
- /* @__PURE__ */ p.jsxs("div", { className: "editdb-frame-layout-body", children: [
3467
- /* @__PURE__ */ p.jsx(mn, { section: "Data Panel", children: /* @__PURE__ */ p.jsxs(rr, { children: [
3468
- /* @__PURE__ */ p.jsx(me, { path: "/:table/from/:filterTable/:id/edit/:editid", element: /* @__PURE__ */ p.jsx(ft, {}) }),
3469
- /* @__PURE__ */ p.jsx(me, { path: "/:table/from/:filterTable/:id", element: /* @__PURE__ */ p.jsx(ft, {}) }),
3470
- /* @__PURE__ */ p.jsx(me, { path: "/:table/:id/edit/:editid", element: /* @__PURE__ */ p.jsx(ft, {}) }),
3471
- /* @__PURE__ */ p.jsx(me, { path: "/:table/:id", element: /* @__PURE__ */ p.jsx(ft, {}) }),
3472
- /* @__PURE__ */ p.jsx(me, { path: "/:table/edit/:editid", element: /* @__PURE__ */ p.jsx(ft, {}) }),
3473
- /* @__PURE__ */ p.jsx(me, { path: "/:table", element: /* @__PURE__ */ p.jsx(ft, {}) }),
3474
- /* @__PURE__ */ p.jsx(me, { path: "/", element: /* @__PURE__ */ p.jsx(Kl, {}) })
3471
+ /* @__PURE__ */ d.jsx("div", { className: "editdb-frame-layout-nav", children: /* @__PURE__ */ d.jsx(mn, { section: "Table List", children: /* @__PURE__ */ d.jsx(_l, {}) }) }),
3472
+ /* @__PURE__ */ d.jsxs("div", { className: "editdb-frame-layout-body", children: [
3473
+ /* @__PURE__ */ d.jsx(mn, { section: "Data Panel", children: /* @__PURE__ */ d.jsxs(rr, { children: [
3474
+ /* @__PURE__ */ d.jsx(me, { path: "/:table/from/:filterTable/:id/edit/:editid", element: /* @__PURE__ */ d.jsx(ft, {}) }),
3475
+ /* @__PURE__ */ d.jsx(me, { path: "/:table/from/:filterTable/:id", element: /* @__PURE__ */ d.jsx(ft, {}) }),
3476
+ /* @__PURE__ */ d.jsx(me, { path: "/:table/:id/edit/:editid", element: /* @__PURE__ */ d.jsx(ft, {}) }),
3477
+ /* @__PURE__ */ d.jsx(me, { path: "/:table/:id", element: /* @__PURE__ */ d.jsx(ft, {}) }),
3478
+ /* @__PURE__ */ d.jsx(me, { path: "/:table/edit/:editid", element: /* @__PURE__ */ d.jsx(ft, {}) }),
3479
+ /* @__PURE__ */ d.jsx(me, { path: "/:table", element: /* @__PURE__ */ d.jsx(ft, {}) }),
3480
+ /* @__PURE__ */ d.jsx(me, { path: "/", element: /* @__PURE__ */ d.jsx(ec, {}) })
3475
3481
  ] }) }),
3476
- /* @__PURE__ */ p.jsx(mn, { section: "Data Edit", children: /* @__PURE__ */ p.jsxs(rr, { children: [
3477
- /* @__PURE__ */ p.jsx(me, { path: "/:table/from/:filterTable/:id/edit/:editid", element: /* @__PURE__ */ p.jsx(hn, {}) }),
3478
- /* @__PURE__ */ p.jsx(me, { path: "/:table/:id/edit/:editid", element: /* @__PURE__ */ p.jsx(hn, {}) }),
3479
- /* @__PURE__ */ p.jsx(me, { path: "/:table/edit/:editid", element: /* @__PURE__ */ p.jsx(hn, {}) }),
3480
- /* @__PURE__ */ p.jsx(me, { path: "/:table/edit", element: /* @__PURE__ */ p.jsx(hn, {}) })
3482
+ /* @__PURE__ */ d.jsx(mn, { section: "Data Edit", children: /* @__PURE__ */ d.jsxs(rr, { children: [
3483
+ /* @__PURE__ */ d.jsx(me, { path: "/:table/from/:filterTable/:id/edit/:editid", element: /* @__PURE__ */ d.jsx(hn, {}) }),
3484
+ /* @__PURE__ */ d.jsx(me, { path: "/:table/:id/edit/:editid", element: /* @__PURE__ */ d.jsx(hn, {}) }),
3485
+ /* @__PURE__ */ d.jsx(me, { path: "/:table/edit/:editid", element: /* @__PURE__ */ d.jsx(hn, {}) }),
3486
+ /* @__PURE__ */ d.jsx(me, { path: "/:table/edit", element: /* @__PURE__ */ d.jsx(hn, {}) })
3481
3487
  ] }) })
3482
3488
  ] })
3483
3489
  ] });
3484
- function Jl({ onLocate: e }) {
3485
- const t = pl();
3490
+ function nc({ onLocate: e }) {
3491
+ const t = hl();
3486
3492
  return En(() => {
3487
3493
  e?.(t);
3488
- }, [t, e]), /* @__PURE__ */ p.jsx(Ql, {});
3494
+ }, [t, e]), /* @__PURE__ */ d.jsx(tc, {});
3489
3495
  }
3490
- function ec({
3496
+ function ac({
3491
3497
  uri: e,
3492
3498
  fetcher: t,
3493
3499
  uiPath: n,
3494
3500
  onLocate: r
3495
3501
  }) {
3496
- const o = ae(() => t || (e ? new Sl(e) : null), [e, t]), a = ae(() => new ba({
3502
+ const o = ie(() => t || (e ? new Rl(e) : null), [e, t]), a = ie(() => new wa({
3497
3503
  defaultOptions: {
3498
3504
  queries: {
3499
3505
  staleTime: 300 * 1e3,
@@ -3501,11 +3507,11 @@ function ec({
3501
3507
  }
3502
3508
  }
3503
3509
  }), []);
3504
- return o ? /* @__PURE__ */ p.jsx(ya, { client: a, children: /* @__PURE__ */ p.jsx(Cl, { value: o, children: /* @__PURE__ */ p.jsx(hl, { path: n || "/", children: /* @__PURE__ */ p.jsx(El, { children: /* @__PURE__ */ p.jsx("div", { children: /* @__PURE__ */ p.jsx(Jl, { onLocate: r }) }) }) }) }) }) : /* @__PURE__ */ p.jsx("section", { children: "CONFIG MISSING..." });
3510
+ return o ? /* @__PURE__ */ d.jsx(xa, { client: a, children: /* @__PURE__ */ d.jsx($l, { value: o, children: /* @__PURE__ */ d.jsx(yl, { path: n || "/", children: /* @__PURE__ */ d.jsx(Ol, { children: /* @__PURE__ */ d.jsx("div", { children: /* @__PURE__ */ d.jsx(nc, { onLocate: r }) }) }) }) }) }) : /* @__PURE__ */ d.jsx("section", { children: "CONFIG MISSING..." });
3505
3511
  }
3506
3512
  export {
3507
- ec as Editor,
3508
- Sl as HttpGraphQLFetcher,
3509
- ec as default,
3510
- Ml as useTableMutation
3513
+ ac as Editor,
3514
+ Rl as HttpGraphQLFetcher,
3515
+ ac as default,
3516
+ Vl as useTableMutation
3511
3517
  };