atomirx 0.0.1 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/README.md +867 -160
  2. package/dist/core/atom.d.ts +83 -6
  3. package/dist/core/batch.d.ts +3 -3
  4. package/dist/core/derived.d.ts +55 -21
  5. package/dist/core/effect.d.ts +47 -51
  6. package/dist/core/getAtomState.d.ts +29 -0
  7. package/dist/core/promiseCache.d.ts +23 -32
  8. package/dist/core/select.d.ts +208 -29
  9. package/dist/core/types.d.ts +55 -19
  10. package/dist/core/withReady.d.ts +69 -0
  11. package/dist/index-CqO6BDwj.cjs +1 -0
  12. package/dist/index-D8RDOTB_.js +1319 -0
  13. package/dist/index.cjs +1 -1
  14. package/dist/index.d.ts +9 -7
  15. package/dist/index.js +12 -10
  16. package/dist/react/index.cjs +10 -10
  17. package/dist/react/index.d.ts +2 -1
  18. package/dist/react/index.js +423 -379
  19. package/dist/react/rx.d.ts +114 -25
  20. package/dist/react/useAction.d.ts +5 -4
  21. package/dist/react/{useValue.d.ts → useSelector.d.ts} +56 -25
  22. package/dist/react/useSelector.test.d.ts +1 -0
  23. package/package.json +17 -1
  24. package/src/core/atom.test.ts +307 -43
  25. package/src/core/atom.ts +143 -21
  26. package/src/core/batch.test.ts +10 -10
  27. package/src/core/batch.ts +3 -3
  28. package/src/core/derived.test.ts +727 -72
  29. package/src/core/derived.ts +141 -73
  30. package/src/core/effect.test.ts +259 -39
  31. package/src/core/effect.ts +62 -85
  32. package/src/core/getAtomState.ts +69 -0
  33. package/src/core/promiseCache.test.ts +5 -3
  34. package/src/core/promiseCache.ts +76 -71
  35. package/src/core/select.ts +405 -130
  36. package/src/core/selector.test.ts +574 -32
  37. package/src/core/types.ts +54 -26
  38. package/src/core/withReady.test.ts +360 -0
  39. package/src/core/withReady.ts +127 -0
  40. package/src/core/withUse.ts +1 -1
  41. package/src/index.test.ts +4 -4
  42. package/src/index.ts +11 -6
  43. package/src/react/index.ts +2 -1
  44. package/src/react/rx.test.tsx +173 -18
  45. package/src/react/rx.tsx +274 -43
  46. package/src/react/useAction.test.ts +12 -14
  47. package/src/react/useAction.ts +11 -9
  48. package/src/react/{useValue.test.ts → useSelector.test.ts} +16 -16
  49. package/src/react/{useValue.ts → useSelector.ts} +64 -33
  50. package/v2.md +44 -44
  51. package/dist/index-2ok7ilik.js +0 -1217
  52. package/dist/index-B_5SFzfl.cjs +0 -1
  53. /package/dist/{react/useValue.test.d.ts → core/withReady.test.d.ts} +0 -0
@@ -1,162 +1,165 @@
1
- import We, { useRef as k, useCallback as q, useSyncExternalStore as mr, useReducer as hr, useEffect as ke, memo as _r } from "react";
2
- import { i as K, r as ne, s as De, t as Fe, a as Sr, b as Tr } from "../index-2ok7ilik.js";
3
- import { A as Wr, c as Yr, d as Vr, e as Lr, f as Ur, g as Mr, h as qr, k as Nr, j as zr, m as Br, l as Jr, n as Kr, p as Gr, o as Xr, u as Hr } from "../index-2ok7ilik.js";
4
- function Ye(u, c) {
5
- const S = K(u) ? ({ get: d }) => d(u) : u, p = ne(c ?? "shallow"), h = k(S), C = k(p);
6
- h.current = S, C.current = p;
7
- const E = k(/* @__PURE__ */ new Map()), v = k(/* @__PURE__ */ new Set()), i = k({
1
+ var _r = Object.defineProperty;
2
+ var Sr = (n, a, l) => a in n ? _r(n, a, { enumerable: !0, configurable: !0, writable: !0, value: l }) : n[a] = l;
3
+ var ke = (n, a, l) => Sr(n, typeof a != "symbol" ? a + "" : a, l);
4
+ import Le, { useRef as k, useCallback as U, useSyncExternalStore as Or, useReducer as Tr, useEffect as De, memo as jr, Suspense as wr, Component as xr } from "react";
5
+ import { i as z, r as ae, s as Fe, t as Ie, w as Cr, a as Pr, b as We } from "../index-D8RDOTB_.js";
6
+ import { A as Gr, c as Xr, e as Hr, f as Zr, g as Qr, h as et, j as rt, l as tt, k as nt, n as at, m as ot, o as it, q as st, v as ut, d as ct, p as lt, u as ft } from "../index-D8RDOTB_.js";
7
+ function Ue(n, a) {
8
+ const l = z(n) ? ({ read: d }) => d(n) : n, b = ae(a ?? "shallow"), g = k(l), T = k(b);
9
+ g.current = l, T.current = b;
10
+ const h = k(/* @__PURE__ */ new Map()), v = k(/* @__PURE__ */ new Set()), i = k({
8
11
  value: void 0,
9
12
  initialized: !1
10
- }), T = q(() => {
11
- const d = De(h.current);
13
+ }), S = U(() => {
14
+ const d = Fe(g.current);
12
15
  if (v.current = d.dependencies, d.promise !== void 0)
13
16
  throw d.promise;
14
17
  if (d.error !== void 0)
15
18
  throw d.error;
16
- const b = d.value;
17
- return (!i.current.initialized || !C.current(b, i.current.value)) && (i.current = { value: b, initialized: !0 }), i.current.value;
18
- }, []), f = q((d) => {
19
- const b = E.current, P = () => {
20
- const A = v.current;
21
- for (const [x, R] of b)
22
- A.has(x) || (R(), b.delete(x));
23
- for (const x of A)
24
- if (!b.has(x)) {
25
- const R = x.on(() => {
26
- const _ = De(h.current);
27
- v.current = _.dependencies, P(), d();
19
+ const E = d.value;
20
+ return (!i.current.initialized || !T.current(E, i.current.value)) && (i.current = { value: E, initialized: !0 }), i.current.value;
21
+ }, []), f = U((d) => {
22
+ const E = h.current, P = () => {
23
+ const D = v.current;
24
+ for (const [A, R] of E)
25
+ D.has(A) || (R(), E.delete(A));
26
+ for (const A of D)
27
+ if (!E.has(A)) {
28
+ const R = A.on(() => {
29
+ const j = Fe(g.current);
30
+ v.current = j.dependencies, P(), d();
28
31
  });
29
- b.set(x, R);
32
+ E.set(A, R);
30
33
  }
31
34
  };
32
35
  return P(), () => {
33
- for (const A of b.values())
34
- A();
35
- b.clear();
36
+ for (const D of E.values())
37
+ D();
38
+ E.clear();
36
39
  };
37
40
  }, []);
38
- return mr(f, T, T);
41
+ return Or(f, S, S);
39
42
  }
40
- function Or(u) {
41
- return u == null ? "strict" : Array.isArray(u) ? "shallow" : u instanceof Date ? "deep" : typeof u == "object" ? "shallow" : "strict";
43
+ function Ar(n) {
44
+ return n == null ? "strict" : Array.isArray(n) ? "shallow" : n instanceof Date ? "deep" : typeof n == "object" ? "shallow" : "strict";
42
45
  }
43
- function kr(u, c) {
44
- const S = k({}), p = k(null);
45
- p.current === null && (p.current = {});
46
- const h = S.current, C = p.current;
47
- for (const E of Object.keys(u)) {
48
- const v = u[E], i = h[E];
46
+ function Nr(n, a) {
47
+ const l = k({}), b = k(null);
48
+ b.current === null && (b.current = {});
49
+ const g = l.current, T = b.current;
50
+ for (const h of Object.keys(n)) {
51
+ const v = n[h], i = g[h];
49
52
  if (typeof v == "function") {
50
- const [b] = Fe(
53
+ const [E] = Ie(
51
54
  i,
52
55
  v,
53
56
  () => !1
54
57
  // Equality doesn't matter for functions
55
58
  );
56
- h[E] = { value: b }, C[E] = b;
59
+ g[h] = { value: E }, T[h] = E;
57
60
  continue;
58
61
  }
59
- const T = c == null ? void 0 : c[E], f = T ? ne(T) : ne(Or(v)), [d] = Fe(
62
+ const S = a == null ? void 0 : a[h], f = S ? ae(S) : ae(Ar(v)), [d] = Ie(
60
63
  i,
61
64
  v,
62
65
  f
63
66
  );
64
- h[E] = { value: d }, C[E] = d;
67
+ g[h] = { value: d }, T[h] = d;
65
68
  }
66
- for (const E of Object.keys(h))
67
- E in u || (delete h[E], delete C[E]);
68
- return C;
69
+ for (const h of Object.keys(g))
70
+ h in n || (delete g[h], delete T[h]);
71
+ return T;
69
72
  }
70
73
  const Ve = {
71
74
  status: "idle",
72
75
  result: void 0,
73
76
  error: void 0
74
- }, Le = {
77
+ }, qe = {
75
78
  status: "loading",
76
79
  result: void 0,
77
80
  error: void 0
78
81
  };
79
- function Cr(u, c) {
80
- switch (c.type) {
82
+ function kr(n, a) {
83
+ switch (a.type) {
81
84
  case "START":
82
- return Le;
85
+ return qe;
83
86
  case "SUCCESS":
84
87
  return {
85
88
  status: "success",
86
- result: c.result,
89
+ result: a.result,
87
90
  error: void 0
88
91
  };
89
92
  case "ERROR":
90
93
  return {
91
94
  status: "error",
92
95
  result: void 0,
93
- error: c.error
96
+ error: a.error
94
97
  };
95
98
  case "RESET":
96
99
  return Ve;
97
100
  default:
98
- return u;
101
+ return n;
99
102
  }
100
103
  }
101
- function Dr(u, c = {}) {
102
- const { lazy: S = !0, exclusive: p = !0, deps: h = [] } = c, C = S ? Ve : Le, [E, v] = hr(
103
- Cr,
104
- C
105
- ), i = k(null), T = k(u);
106
- T.current = u;
107
- const f = q(() => {
104
+ function zr(n, a = {}) {
105
+ const { lazy: l = !0, exclusive: b = !0, deps: g = [] } = a, T = l ? Ve : qe, [h, v] = Tr(
106
+ kr,
107
+ T
108
+ ), i = k(null), S = k(n);
109
+ S.current = n;
110
+ const f = U(() => {
108
111
  const R = i.current;
109
112
  return R ? (R.abort(), i.current = null, !0) : !1;
110
- }, []), d = (S ? [] : h ?? []).filter(K), b = Ye(({ get: R }) => d.map((_) => R(_))), P = q(() => {
111
- p && f();
113
+ }, []), d = (l ? [] : g ?? []).filter(z), E = Ue(({ read: R }) => d.map((j) => R(j))), P = U(() => {
114
+ b && f();
112
115
  const R = new AbortController();
113
116
  i.current = R, v({ type: "START" });
114
- let _;
117
+ let j;
115
118
  try {
116
- _ = T.current({ signal: R.signal });
117
- } catch (y) {
118
- return v({ type: "ERROR", error: y }), Object.assign(Promise.reject(y), {
119
+ j = S.current(Cr({ signal: R.signal }));
120
+ } catch (m) {
121
+ return v({ type: "ERROR", error: m }), Object.assign(Promise.reject(m), {
119
122
  abort: () => R.abort()
120
123
  });
121
124
  }
122
- if (Sr(_)) {
123
- const y = _;
124
- return y.then(
125
- (D) => {
126
- i.current === R && v({ type: "SUCCESS", result: D });
125
+ if (Pr(j)) {
126
+ const m = j;
127
+ return m.then(
128
+ (F) => {
129
+ i.current === R && v({ type: "SUCCESS", result: F });
127
130
  },
128
- (D) => {
129
- if (D instanceof DOMException && D.name === "AbortError") {
130
- (i.current === null || i.current === R) && v({ type: "ERROR", error: D });
131
+ (F) => {
132
+ if (F instanceof DOMException && F.name === "AbortError") {
133
+ (i.current === null || i.current === R) && v({ type: "ERROR", error: F });
131
134
  return;
132
135
  }
133
- i.current === R && v({ type: "ERROR", error: D });
136
+ i.current === R && v({ type: "ERROR", error: F });
134
137
  }
135
- ), Object.assign(y, {
138
+ ), Object.assign(m, {
136
139
  abort: () => {
137
140
  R.abort(), i.current === R && (i.current = null);
138
141
  }
139
142
  });
140
143
  }
141
- return v({ type: "SUCCESS", result: _ }), Object.assign(Promise.resolve(_), {
144
+ return v({ type: "SUCCESS", result: j }), Object.assign(Promise.resolve(j), {
142
145
  abort: () => R.abort()
143
146
  });
144
- }, [p, f]), A = (h ?? []).filter((R) => !K(R));
145
- ke(() => {
146
- S || P();
147
- }, [S, ...b, ...A]), ke(() => () => {
148
- p && f();
149
- }, [p, f]);
150
- const x = q(() => {
151
- p && f(), v({ type: "RESET" });
152
- }, [p, f]);
147
+ }, [b, f]), D = (g ?? []).filter((R) => !z(R));
148
+ De(() => {
149
+ l || P();
150
+ }, [l, ...E, ...D]), De(() => () => {
151
+ b && f();
152
+ }, [b, f]);
153
+ const A = U(() => {
154
+ b && f(), v({ type: "RESET" });
155
+ }, [b, f]);
153
156
  return Object.assign(P, {
154
- ...E,
157
+ ...h,
155
158
  abort: f,
156
- reset: x
159
+ reset: A
157
160
  });
158
161
  }
159
- var ae = { exports: {} }, U = {};
162
+ var oe = { exports: {} }, M = {};
160
163
  /**
161
164
  * @license React
162
165
  * react-jsx-runtime.production.min.js
@@ -166,21 +169,21 @@ var ae = { exports: {} }, U = {};
166
169
  * This source code is licensed under the MIT license found in the
167
170
  * LICENSE file in the root directory of this source tree.
168
171
  */
169
- var Ie;
170
- function wr() {
171
- if (Ie) return U;
172
- Ie = 1;
173
- var u = We, c = Symbol.for("react.element"), S = Symbol.for("react.fragment"), p = Object.prototype.hasOwnProperty, h = u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, C = { key: !0, ref: !0, __self: !0, __source: !0 };
174
- function E(v, i, T) {
175
- var f, d = {}, b = null, P = null;
176
- T !== void 0 && (b = "" + T), i.key !== void 0 && (b = "" + i.key), i.ref !== void 0 && (P = i.ref);
177
- for (f in i) p.call(i, f) && !C.hasOwnProperty(f) && (d[f] = i[f]);
172
+ var $e;
173
+ function Dr() {
174
+ if ($e) return M;
175
+ $e = 1;
176
+ var n = Le, a = Symbol.for("react.element"), l = Symbol.for("react.fragment"), b = Object.prototype.hasOwnProperty, g = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, T = { key: !0, ref: !0, __self: !0, __source: !0 };
177
+ function h(v, i, S) {
178
+ var f, d = {}, E = null, P = null;
179
+ S !== void 0 && (E = "" + S), i.key !== void 0 && (E = "" + i.key), i.ref !== void 0 && (P = i.ref);
180
+ for (f in i) b.call(i, f) && !T.hasOwnProperty(f) && (d[f] = i[f]);
178
181
  if (v && v.defaultProps) for (f in i = v.defaultProps, i) d[f] === void 0 && (d[f] = i[f]);
179
- return { $$typeof: c, type: v, key: b, ref: P, props: d, _owner: h.current };
182
+ return { $$typeof: a, type: v, key: E, ref: P, props: d, _owner: g.current };
180
183
  }
181
- return U.Fragment = S, U.jsx = E, U.jsxs = E, U;
184
+ return M.Fragment = l, M.jsx = h, M.jsxs = h, M;
182
185
  }
183
- var M = {};
186
+ var N = {};
184
187
  /**
185
188
  * @license React
186
189
  * react-jsx-runtime.development.js
@@ -190,70 +193,70 @@ var M = {};
190
193
  * This source code is licensed under the MIT license found in the
191
194
  * LICENSE file in the root directory of this source tree.
192
195
  */
193
- var $e;
194
- function jr() {
195
- return $e || ($e = 1, process.env.NODE_ENV !== "production" && function() {
196
- var u = We, c = Symbol.for("react.element"), S = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), E = Symbol.for("react.provider"), v = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), A = Symbol.iterator, x = "@@iterator";
196
+ var Ye;
197
+ function Fr() {
198
+ return Ye || (Ye = 1, process.env.NODE_ENV !== "production" && function() {
199
+ var n = Le, a = Symbol.for("react.element"), l = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), v = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), D = Symbol.iterator, A = "@@iterator";
197
200
  function R(e) {
198
201
  if (e === null || typeof e != "object")
199
202
  return null;
200
- var r = A && e[A] || e[x];
203
+ var r = D && e[D] || e[A];
201
204
  return typeof r == "function" ? r : null;
202
205
  }
203
- var _ = u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
204
- function y(e) {
206
+ var j = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
207
+ function m(e) {
205
208
  {
206
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
207
- t[n - 1] = arguments[n];
208
- D("error", e, t);
209
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
210
+ t[o - 1] = arguments[o];
211
+ F("error", e, t);
209
212
  }
210
213
  }
211
- function D(e, r, t) {
214
+ function F(e, r, t) {
212
215
  {
213
- var n = _.ReactDebugCurrentFrame, s = n.getStackAddendum();
214
- s !== "" && (r += "%s", t = t.concat([s]));
215
- var l = t.map(function(o) {
216
- return String(o);
216
+ var o = j.ReactDebugCurrentFrame, c = o.getStackAddendum();
217
+ c !== "" && (r += "%s", t = t.concat([c]));
218
+ var p = t.map(function(u) {
219
+ return String(u);
217
220
  });
218
- l.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, l);
221
+ p.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, p);
219
222
  }
220
223
  }
221
- var ie = !1, Ue = !1, Me = !1, qe = !1, Ne = !1, se;
224
+ var ie = !1, Me = !1, Ne = !1, ze = !1, Be = !1, se;
222
225
  se = Symbol.for("react.module.reference");
223
- function ze(e) {
224
- return !!(typeof e == "string" || typeof e == "function" || e === p || e === C || Ne || e === h || e === T || e === f || qe || e === P || ie || Ue || Me || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === d || e.$$typeof === E || e.$$typeof === v || e.$$typeof === i || // This needs to include all possible module reference object
226
+ function Je(e) {
227
+ return !!(typeof e == "string" || typeof e == "function" || e === b || e === T || Be || e === g || e === S || e === f || ze || e === P || ie || Me || Ne || typeof e == "object" && e !== null && (e.$$typeof === E || e.$$typeof === d || e.$$typeof === h || e.$$typeof === v || e.$$typeof === i || // This needs to include all possible module reference object
225
228
  // types supported by any Flight configuration anywhere since
226
229
  // we don't know which Flight build this will end up being used
227
230
  // with.
228
231
  e.$$typeof === se || e.getModuleId !== void 0));
229
232
  }
230
- function Be(e, r, t) {
231
- var n = e.displayName;
232
- if (n)
233
- return n;
234
- var s = r.displayName || r.name || "";
235
- return s !== "" ? t + "(" + s + ")" : t;
233
+ function Ke(e, r, t) {
234
+ var o = e.displayName;
235
+ if (o)
236
+ return o;
237
+ var c = r.displayName || r.name || "";
238
+ return c !== "" ? t + "(" + c + ")" : t;
236
239
  }
237
240
  function ue(e) {
238
241
  return e.displayName || "Context";
239
242
  }
240
- function F(e) {
243
+ function I(e) {
241
244
  if (e == null)
242
245
  return null;
243
- if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
246
+ if (typeof e.tag == "number" && m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
244
247
  return e.displayName || e.name || null;
245
248
  if (typeof e == "string")
246
249
  return e;
247
250
  switch (e) {
248
- case p:
251
+ case b:
249
252
  return "Fragment";
250
- case S:
253
+ case l:
251
254
  return "Portal";
252
- case C:
255
+ case T:
253
256
  return "Profiler";
254
- case h:
257
+ case g:
255
258
  return "StrictMode";
256
- case T:
259
+ case S:
257
260
  return "Suspense";
258
261
  case f:
259
262
  return "SuspenseList";
@@ -263,18 +266,18 @@ function jr() {
263
266
  case v:
264
267
  var r = e;
265
268
  return ue(r) + ".Consumer";
266
- case E:
269
+ case h:
267
270
  var t = e;
268
271
  return ue(t._context) + ".Provider";
269
272
  case i:
270
- return Be(e, e.render, "ForwardRef");
273
+ return Ke(e, e.render, "ForwardRef");
271
274
  case d:
272
- var n = e.displayName || null;
273
- return n !== null ? n : F(e.type) || "Memo";
274
- case b: {
275
- var s = e, l = s._payload, o = s._init;
275
+ var o = e.displayName || null;
276
+ return o !== null ? o : I(e.type) || "Memo";
277
+ case E: {
278
+ var c = e, p = c._payload, u = c._init;
276
279
  try {
277
- return F(o(l));
280
+ return I(u(p));
278
281
  } catch {
279
282
  return null;
280
283
  }
@@ -282,18 +285,18 @@ function jr() {
282
285
  }
283
286
  return null;
284
287
  }
285
- var I = Object.assign, V = 0, ce, le, fe, de, ve, pe, be;
286
- function Re() {
288
+ var W = Object.assign, V = 0, ce, le, fe, de, ve, pe, be;
289
+ function he() {
287
290
  }
288
- Re.__reactDisabledLog = !0;
289
- function Je() {
291
+ he.__reactDisabledLog = !0;
292
+ function Ge() {
290
293
  {
291
294
  if (V === 0) {
292
295
  ce = console.log, le = console.info, fe = console.warn, de = console.error, ve = console.group, pe = console.groupCollapsed, be = console.groupEnd;
293
296
  var e = {
294
297
  configurable: !0,
295
298
  enumerable: !0,
296
- value: Re,
299
+ value: he,
297
300
  writable: !0
298
301
  };
299
302
  Object.defineProperties(console, {
@@ -309,7 +312,7 @@ function jr() {
309
312
  V++;
310
313
  }
311
314
  }
312
- function Ke() {
315
+ function Xe() {
313
316
  {
314
317
  if (V--, V === 0) {
315
318
  var e = {
@@ -318,238 +321,238 @@ function jr() {
318
321
  writable: !0
319
322
  };
320
323
  Object.defineProperties(console, {
321
- log: I({}, e, {
324
+ log: W({}, e, {
322
325
  value: ce
323
326
  }),
324
- info: I({}, e, {
327
+ info: W({}, e, {
325
328
  value: le
326
329
  }),
327
- warn: I({}, e, {
330
+ warn: W({}, e, {
328
331
  value: fe
329
332
  }),
330
- error: I({}, e, {
333
+ error: W({}, e, {
331
334
  value: de
332
335
  }),
333
- group: I({}, e, {
336
+ group: W({}, e, {
334
337
  value: ve
335
338
  }),
336
- groupCollapsed: I({}, e, {
339
+ groupCollapsed: W({}, e, {
337
340
  value: pe
338
341
  }),
339
- groupEnd: I({}, e, {
342
+ groupEnd: W({}, e, {
340
343
  value: be
341
344
  })
342
345
  });
343
346
  }
344
- V < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
347
+ V < 0 && m("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
345
348
  }
346
349
  }
347
- var G = _.ReactCurrentDispatcher, X;
348
- function N(e, r, t) {
350
+ var X = j.ReactCurrentDispatcher, H;
351
+ function B(e, r, t) {
349
352
  {
350
- if (X === void 0)
353
+ if (H === void 0)
351
354
  try {
352
355
  throw Error();
353
- } catch (s) {
354
- var n = s.stack.trim().match(/\n( *(at )?)/);
355
- X = n && n[1] || "";
356
+ } catch (c) {
357
+ var o = c.stack.trim().match(/\n( *(at )?)/);
358
+ H = o && o[1] || "";
356
359
  }
357
360
  return `
358
- ` + X + e;
361
+ ` + H + e;
359
362
  }
360
363
  }
361
- var H = !1, z;
364
+ var Z = !1, J;
362
365
  {
363
- var Ge = typeof WeakMap == "function" ? WeakMap : Map;
364
- z = new Ge();
366
+ var He = typeof WeakMap == "function" ? WeakMap : Map;
367
+ J = new He();
365
368
  }
366
369
  function Ee(e, r) {
367
- if (!e || H)
370
+ if (!e || Z)
368
371
  return "";
369
372
  {
370
- var t = z.get(e);
373
+ var t = J.get(e);
371
374
  if (t !== void 0)
372
375
  return t;
373
376
  }
374
- var n;
375
- H = !0;
376
- var s = Error.prepareStackTrace;
377
+ var o;
378
+ Z = !0;
379
+ var c = Error.prepareStackTrace;
377
380
  Error.prepareStackTrace = void 0;
378
- var l;
379
- l = G.current, G.current = null, Je();
381
+ var p;
382
+ p = X.current, X.current = null, Ge();
380
383
  try {
381
384
  if (r) {
382
- var o = function() {
385
+ var u = function() {
383
386
  throw Error();
384
387
  };
385
- if (Object.defineProperty(o.prototype, "props", {
388
+ if (Object.defineProperty(u.prototype, "props", {
386
389
  set: function() {
387
390
  throw Error();
388
391
  }
389
392
  }), typeof Reflect == "object" && Reflect.construct) {
390
393
  try {
391
- Reflect.construct(o, []);
392
- } catch (w) {
393
- n = w;
394
+ Reflect.construct(u, []);
395
+ } catch (x) {
396
+ o = x;
394
397
  }
395
- Reflect.construct(e, [], o);
398
+ Reflect.construct(e, [], u);
396
399
  } else {
397
400
  try {
398
- o.call();
399
- } catch (w) {
400
- n = w;
401
+ u.call();
402
+ } catch (x) {
403
+ o = x;
401
404
  }
402
- e.call(o.prototype);
405
+ e.call(u.prototype);
403
406
  }
404
407
  } else {
405
408
  try {
406
409
  throw Error();
407
- } catch (w) {
408
- n = w;
410
+ } catch (x) {
411
+ o = x;
409
412
  }
410
413
  e();
411
414
  }
412
- } catch (w) {
413
- if (w && n && typeof w.stack == "string") {
414
- for (var a = w.stack.split(`
415
- `), O = n.stack.split(`
416
- `), g = a.length - 1, m = O.length - 1; g >= 1 && m >= 0 && a[g] !== O[m]; )
417
- m--;
418
- for (; g >= 1 && m >= 0; g--, m--)
419
- if (a[g] !== O[m]) {
420
- if (g !== 1 || m !== 1)
415
+ } catch (x) {
416
+ if (x && o && typeof x.stack == "string") {
417
+ for (var s = x.stack.split(`
418
+ `), w = o.stack.split(`
419
+ `), y = s.length - 1, _ = w.length - 1; y >= 1 && _ >= 0 && s[y] !== w[_]; )
420
+ _--;
421
+ for (; y >= 1 && _ >= 0; y--, _--)
422
+ if (s[y] !== w[_]) {
423
+ if (y !== 1 || _ !== 1)
421
424
  do
422
- if (g--, m--, m < 0 || a[g] !== O[m]) {
423
- var j = `
424
- ` + a[g].replace(" at new ", " at ");
425
- return e.displayName && j.includes("<anonymous>") && (j = j.replace("<anonymous>", e.displayName)), typeof e == "function" && z.set(e, j), j;
425
+ if (y--, _--, _ < 0 || s[y] !== w[_]) {
426
+ var C = `
427
+ ` + s[y].replace(" at new ", " at ");
428
+ return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && J.set(e, C), C;
426
429
  }
427
- while (g >= 1 && m >= 0);
430
+ while (y >= 1 && _ >= 0);
428
431
  break;
429
432
  }
430
433
  }
431
434
  } finally {
432
- H = !1, G.current = l, Ke(), Error.prepareStackTrace = s;
435
+ Z = !1, X.current = p, Xe(), Error.prepareStackTrace = c;
433
436
  }
434
- var Y = e ? e.displayName || e.name : "", $ = Y ? N(Y) : "";
435
- return typeof e == "function" && z.set(e, $), $;
437
+ var L = e ? e.displayName || e.name : "", $ = L ? B(L) : "";
438
+ return typeof e == "function" && J.set(e, $), $;
436
439
  }
437
- function Xe(e, r, t) {
440
+ function Ze(e, r, t) {
438
441
  return Ee(e, !1);
439
442
  }
440
- function He(e) {
443
+ function Qe(e) {
441
444
  var r = e.prototype;
442
445
  return !!(r && r.isReactComponent);
443
446
  }
444
- function B(e, r, t) {
447
+ function K(e, r, t) {
445
448
  if (e == null)
446
449
  return "";
447
450
  if (typeof e == "function")
448
- return Ee(e, He(e));
451
+ return Ee(e, Qe(e));
449
452
  if (typeof e == "string")
450
- return N(e);
453
+ return B(e);
451
454
  switch (e) {
452
- case T:
453
- return N("Suspense");
455
+ case S:
456
+ return B("Suspense");
454
457
  case f:
455
- return N("SuspenseList");
458
+ return B("SuspenseList");
456
459
  }
457
460
  if (typeof e == "object")
458
461
  switch (e.$$typeof) {
459
462
  case i:
460
- return Xe(e.render);
463
+ return Ze(e.render);
461
464
  case d:
462
- return B(e.type, r, t);
463
- case b: {
464
- var n = e, s = n._payload, l = n._init;
465
+ return K(e.type, r, t);
466
+ case E: {
467
+ var o = e, c = o._payload, p = o._init;
465
468
  try {
466
- return B(l(s), r, t);
469
+ return K(p(c), r, t);
467
470
  } catch {
468
471
  }
469
472
  }
470
473
  }
471
474
  return "";
472
475
  }
473
- var L = Object.prototype.hasOwnProperty, ye = {}, ge = _.ReactDebugCurrentFrame;
474
- function J(e) {
476
+ var q = Object.prototype.hasOwnProperty, Re = {}, me = j.ReactDebugCurrentFrame;
477
+ function G(e) {
475
478
  if (e) {
476
- var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
477
- ge.setExtraStackFrame(t);
479
+ var r = e._owner, t = K(e.type, e._source, r ? r.type : null);
480
+ me.setExtraStackFrame(t);
478
481
  } else
479
- ge.setExtraStackFrame(null);
482
+ me.setExtraStackFrame(null);
480
483
  }
481
- function Ze(e, r, t, n, s) {
484
+ function er(e, r, t, o, c) {
482
485
  {
483
- var l = Function.call.bind(L);
484
- for (var o in e)
485
- if (l(e, o)) {
486
- var a = void 0;
486
+ var p = Function.call.bind(q);
487
+ for (var u in e)
488
+ if (p(e, u)) {
489
+ var s = void 0;
487
490
  try {
488
- if (typeof e[o] != "function") {
489
- var O = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
490
- throw O.name = "Invariant Violation", O;
491
+ if (typeof e[u] != "function") {
492
+ var w = Error((o || "React class") + ": " + t + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
493
+ throw w.name = "Invariant Violation", w;
491
494
  }
492
- a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
493
- } catch (g) {
494
- a = g;
495
+ s = e[u](r, u, o, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
496
+ } catch (y) {
497
+ s = y;
495
498
  }
496
- a && !(a instanceof Error) && (J(s), y("%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).", n || "React class", t, o, typeof a), J(null)), a instanceof Error && !(a.message in ye) && (ye[a.message] = !0, J(s), y("Failed %s type: %s", t, a.message), J(null));
499
+ s && !(s instanceof Error) && (G(c), m("%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).", o || "React class", t, u, typeof s), G(null)), s instanceof Error && !(s.message in Re) && (Re[s.message] = !0, G(c), m("Failed %s type: %s", t, s.message), G(null));
497
500
  }
498
501
  }
499
502
  }
500
- var Qe = Array.isArray;
501
- function Z(e) {
502
- return Qe(e);
503
+ var rr = Array.isArray;
504
+ function Q(e) {
505
+ return rr(e);
503
506
  }
504
- function er(e) {
507
+ function tr(e) {
505
508
  {
506
509
  var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
507
510
  return t;
508
511
  }
509
512
  }
510
- function rr(e) {
513
+ function nr(e) {
511
514
  try {
512
- return me(e), !1;
515
+ return ye(e), !1;
513
516
  } catch {
514
517
  return !0;
515
518
  }
516
519
  }
517
- function me(e) {
520
+ function ye(e) {
518
521
  return "" + e;
519
522
  }
520
- function he(e) {
521
- if (rr(e))
522
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", er(e)), me(e);
523
+ function ge(e) {
524
+ if (nr(e))
525
+ return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", tr(e)), ye(e);
523
526
  }
524
- var _e = _.ReactCurrentOwner, tr = {
527
+ var _e = j.ReactCurrentOwner, ar = {
525
528
  key: !0,
526
529
  ref: !0,
527
530
  __self: !0,
528
531
  __source: !0
529
- }, Se, Te;
530
- function nr(e) {
531
- if (L.call(e, "ref")) {
532
+ }, Se, Oe;
533
+ function or(e) {
534
+ if (q.call(e, "ref")) {
532
535
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
533
536
  if (r && r.isReactWarning)
534
537
  return !1;
535
538
  }
536
539
  return e.ref !== void 0;
537
540
  }
538
- function ar(e) {
539
- if (L.call(e, "key")) {
541
+ function ir(e) {
542
+ if (q.call(e, "key")) {
540
543
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
541
544
  if (r && r.isReactWarning)
542
545
  return !1;
543
546
  }
544
547
  return e.key !== void 0;
545
548
  }
546
- function or(e, r) {
549
+ function sr(e, r) {
547
550
  typeof e.ref == "string" && _e.current;
548
551
  }
549
- function ir(e, r) {
552
+ function ur(e, r) {
550
553
  {
551
554
  var t = function() {
552
- Se || (Se = !0, y("%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)", r));
555
+ Se || (Se = !0, m("%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)", r));
553
556
  };
554
557
  t.isReactWarning = !0, Object.defineProperty(e, "key", {
555
558
  get: t,
@@ -557,10 +560,10 @@ function jr() {
557
560
  });
558
561
  }
559
562
  }
560
- function sr(e, r) {
563
+ function cr(e, r) {
561
564
  {
562
565
  var t = function() {
563
- Te || (Te = !0, y("%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)", r));
566
+ Oe || (Oe = !0, m("%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)", r));
564
567
  };
565
568
  t.isReactWarning = !0, Object.defineProperty(e, "ref", {
566
569
  get: t,
@@ -568,70 +571,70 @@ function jr() {
568
571
  });
569
572
  }
570
573
  }
571
- var ur = function(e, r, t, n, s, l, o) {
572
- var a = {
574
+ var lr = function(e, r, t, o, c, p, u) {
575
+ var s = {
573
576
  // This tag allows us to uniquely identify this as a React Element
574
- $$typeof: c,
577
+ $$typeof: a,
575
578
  // Built-in properties that belong on the element
576
579
  type: e,
577
580
  key: r,
578
581
  ref: t,
579
- props: o,
582
+ props: u,
580
583
  // Record the component responsible for creating this element.
581
- _owner: l
584
+ _owner: p
582
585
  };
583
- return a._store = {}, Object.defineProperty(a._store, "validated", {
586
+ return s._store = {}, Object.defineProperty(s._store, "validated", {
584
587
  configurable: !1,
585
588
  enumerable: !1,
586
589
  writable: !0,
587
590
  value: !1
588
- }), Object.defineProperty(a, "_self", {
591
+ }), Object.defineProperty(s, "_self", {
589
592
  configurable: !1,
590
593
  enumerable: !1,
591
594
  writable: !1,
592
- value: n
593
- }), Object.defineProperty(a, "_source", {
595
+ value: o
596
+ }), Object.defineProperty(s, "_source", {
594
597
  configurable: !1,
595
598
  enumerable: !1,
596
599
  writable: !1,
597
- value: s
598
- }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
600
+ value: c
601
+ }), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
599
602
  };
600
- function cr(e, r, t, n, s) {
603
+ function fr(e, r, t, o, c) {
601
604
  {
602
- var l, o = {}, a = null, O = null;
603
- t !== void 0 && (he(t), a = "" + t), ar(r) && (he(r.key), a = "" + r.key), nr(r) && (O = r.ref, or(r, s));
604
- for (l in r)
605
- L.call(r, l) && !tr.hasOwnProperty(l) && (o[l] = r[l]);
605
+ var p, u = {}, s = null, w = null;
606
+ t !== void 0 && (ge(t), s = "" + t), ir(r) && (ge(r.key), s = "" + r.key), or(r) && (w = r.ref, sr(r, c));
607
+ for (p in r)
608
+ q.call(r, p) && !ar.hasOwnProperty(p) && (u[p] = r[p]);
606
609
  if (e && e.defaultProps) {
607
- var g = e.defaultProps;
608
- for (l in g)
609
- o[l] === void 0 && (o[l] = g[l]);
610
+ var y = e.defaultProps;
611
+ for (p in y)
612
+ u[p] === void 0 && (u[p] = y[p]);
610
613
  }
611
- if (a || O) {
612
- var m = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
613
- a && ir(o, m), O && sr(o, m);
614
+ if (s || w) {
615
+ var _ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
616
+ s && ur(u, _), w && cr(u, _);
614
617
  }
615
- return ur(e, a, O, s, n, _e.current, o);
618
+ return lr(e, s, w, c, o, _e.current, u);
616
619
  }
617
620
  }
618
- var Q = _.ReactCurrentOwner, Oe = _.ReactDebugCurrentFrame;
619
- function W(e) {
621
+ var ee = j.ReactCurrentOwner, Te = j.ReactDebugCurrentFrame;
622
+ function Y(e) {
620
623
  if (e) {
621
- var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
622
- Oe.setExtraStackFrame(t);
624
+ var r = e._owner, t = K(e.type, e._source, r ? r.type : null);
625
+ Te.setExtraStackFrame(t);
623
626
  } else
624
- Oe.setExtraStackFrame(null);
627
+ Te.setExtraStackFrame(null);
625
628
  }
626
- var ee;
627
- ee = !1;
628
- function re(e) {
629
- return typeof e == "object" && e !== null && e.$$typeof === c;
629
+ var re;
630
+ re = !1;
631
+ function te(e) {
632
+ return typeof e == "object" && e !== null && e.$$typeof === a;
630
633
  }
631
- function Ce() {
634
+ function je() {
632
635
  {
633
- if (Q.current) {
634
- var e = F(Q.current.type);
636
+ if (ee.current) {
637
+ var e = I(ee.current.type);
635
638
  if (e)
636
639
  return `
637
640
 
@@ -640,13 +643,13 @@ Check the render method of \`` + e + "`.";
640
643
  return "";
641
644
  }
642
645
  }
643
- function lr(e) {
646
+ function dr(e) {
644
647
  return "";
645
648
  }
646
649
  var we = {};
647
- function fr(e) {
650
+ function vr(e) {
648
651
  {
649
- var r = Ce();
652
+ var r = je();
650
653
  if (!r) {
651
654
  var t = typeof e == "string" ? e : e.displayName || e.name;
652
655
  t && (r = `
@@ -656,39 +659,39 @@ Check the top-level render call using <` + t + ">.");
656
659
  return r;
657
660
  }
658
661
  }
659
- function je(e, r) {
662
+ function xe(e, r) {
660
663
  {
661
664
  if (!e._store || e._store.validated || e.key != null)
662
665
  return;
663
666
  e._store.validated = !0;
664
- var t = fr(r);
667
+ var t = vr(r);
665
668
  if (we[t])
666
669
  return;
667
670
  we[t] = !0;
668
- var n = "";
669
- e && e._owner && e._owner !== Q.current && (n = " It was passed a child from " + F(e._owner.type) + "."), W(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), W(null);
671
+ var o = "";
672
+ e && e._owner && e._owner !== ee.current && (o = " It was passed a child from " + I(e._owner.type) + "."), Y(e), m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, o), Y(null);
670
673
  }
671
674
  }
672
- function Pe(e, r) {
675
+ function Ce(e, r) {
673
676
  {
674
677
  if (typeof e != "object")
675
678
  return;
676
- if (Z(e))
679
+ if (Q(e))
677
680
  for (var t = 0; t < e.length; t++) {
678
- var n = e[t];
679
- re(n) && je(n, r);
681
+ var o = e[t];
682
+ te(o) && xe(o, r);
680
683
  }
681
- else if (re(e))
684
+ else if (te(e))
682
685
  e._store && (e._store.validated = !0);
683
686
  else if (e) {
684
- var s = R(e);
685
- if (typeof s == "function" && s !== e.entries)
686
- for (var l = s.call(e), o; !(o = l.next()).done; )
687
- re(o.value) && je(o.value, r);
687
+ var c = R(e);
688
+ if (typeof c == "function" && c !== e.entries)
689
+ for (var p = c.call(e), u; !(u = p.next()).done; )
690
+ te(u.value) && xe(u.value, r);
688
691
  }
689
692
  }
690
693
  }
691
- function dr(e) {
694
+ function pr(e) {
692
695
  {
693
696
  var r = e.type;
694
697
  if (r == null || typeof r == "string")
@@ -703,121 +706,162 @@ Check the top-level render call using <` + t + ">.");
703
706
  else
704
707
  return;
705
708
  if (t) {
706
- var n = F(r);
707
- Ze(t, e.props, "prop", n, e);
708
- } else if (r.PropTypes !== void 0 && !ee) {
709
- ee = !0;
710
- var s = F(r);
711
- y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
709
+ var o = I(r);
710
+ er(t, e.props, "prop", o, e);
711
+ } else if (r.PropTypes !== void 0 && !re) {
712
+ re = !0;
713
+ var c = I(r);
714
+ m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", c || "Unknown");
712
715
  }
713
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
716
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
714
717
  }
715
718
  }
716
- function vr(e) {
719
+ function br(e) {
717
720
  {
718
721
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
719
- var n = r[t];
720
- if (n !== "children" && n !== "key") {
721
- W(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), W(null);
722
+ var o = r[t];
723
+ if (o !== "children" && o !== "key") {
724
+ Y(e), m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), Y(null);
722
725
  break;
723
726
  }
724
727
  }
725
- e.ref !== null && (W(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
728
+ e.ref !== null && (Y(e), m("Invalid attribute `ref` supplied to `React.Fragment`."), Y(null));
726
729
  }
727
730
  }
728
- var xe = {};
729
- function Ae(e, r, t, n, s, l) {
731
+ var Pe = {};
732
+ function Ae(e, r, t, o, c, p) {
730
733
  {
731
- var o = ze(e);
732
- if (!o) {
733
- var a = "";
734
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
735
- var O = lr();
736
- O ? a += O : a += Ce();
737
- var g;
738
- e === null ? g = "null" : Z(e) ? g = "array" : e !== void 0 && e.$$typeof === c ? (g = "<" + (F(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : g = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", g, a);
734
+ var u = Je(e);
735
+ if (!u) {
736
+ var s = "";
737
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (s += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
738
+ var w = dr();
739
+ w ? s += w : s += je();
740
+ var y;
741
+ e === null ? y = "null" : Q(e) ? y = "array" : e !== void 0 && e.$$typeof === a ? (y = "<" + (I(e.type) || "Unknown") + " />", s = " Did you accidentally export a JSX literal instead of a component?") : y = typeof e, m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y, s);
739
742
  }
740
- var m = cr(e, r, t, s, l);
741
- if (m == null)
742
- return m;
743
- if (o) {
744
- var j = r.children;
745
- if (j !== void 0)
746
- if (n)
747
- if (Z(j)) {
748
- for (var Y = 0; Y < j.length; Y++)
749
- Pe(j[Y], e);
750
- Object.freeze && Object.freeze(j);
743
+ var _ = fr(e, r, t, c, p);
744
+ if (_ == null)
745
+ return _;
746
+ if (u) {
747
+ var C = r.children;
748
+ if (C !== void 0)
749
+ if (o)
750
+ if (Q(C)) {
751
+ for (var L = 0; L < C.length; L++)
752
+ Ce(C[L], e);
753
+ Object.freeze && Object.freeze(C);
751
754
  } else
752
- y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
755
+ m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
753
756
  else
754
- Pe(j, e);
757
+ Ce(C, e);
755
758
  }
756
- if (L.call(r, "key")) {
757
- var $ = F(e), w = Object.keys(r).filter(function(gr) {
759
+ if (q.call(r, "key")) {
760
+ var $ = I(e), x = Object.keys(r).filter(function(gr) {
758
761
  return gr !== "key";
759
- }), te = w.length > 0 ? "{key: someKey, " + w.join(": ..., ") + ": ...}" : "{key: someKey}";
760
- if (!xe[$ + te]) {
761
- var yr = w.length > 0 ? "{" + w.join(": ..., ") + ": ...}" : "{}";
762
- y(`A props object containing a "key" prop is being spread into JSX:
762
+ }), ne = x.length > 0 ? "{key: someKey, " + x.join(": ..., ") + ": ...}" : "{key: someKey}";
763
+ if (!Pe[$ + ne]) {
764
+ var yr = x.length > 0 ? "{" + x.join(": ..., ") + ": ...}" : "{}";
765
+ m(`A props object containing a "key" prop is being spread into JSX:
763
766
  let props = %s;
764
767
  <%s {...props} />
765
768
  React keys must be passed directly to JSX without using spread:
766
769
  let props = %s;
767
- <%s key={someKey} {...props} />`, te, $, yr, $), xe[$ + te] = !0;
770
+ <%s key={someKey} {...props} />`, ne, $, yr, $), Pe[$ + ne] = !0;
768
771
  }
769
772
  }
770
- return e === p ? vr(m) : dr(m), m;
773
+ return e === b ? br(_) : pr(_), _;
771
774
  }
772
775
  }
773
- function pr(e, r, t) {
776
+ function hr(e, r, t) {
774
777
  return Ae(e, r, t, !0);
775
778
  }
776
- function br(e, r, t) {
779
+ function Er(e, r, t) {
777
780
  return Ae(e, r, t, !1);
778
781
  }
779
- var Rr = br, Er = pr;
780
- M.Fragment = p, M.jsx = Rr, M.jsxs = Er;
781
- }()), M;
782
+ var Rr = Er, mr = hr;
783
+ N.Fragment = b, N.jsx = Rr, N.jsxs = mr;
784
+ }()), N;
782
785
  }
783
- process.env.NODE_ENV === "production" ? ae.exports = wr() : ae.exports = jr();
784
- var oe = ae.exports;
785
- function Fr(u, c) {
786
- return /* @__PURE__ */ oe.jsx(
787
- Pr,
786
+ process.env.NODE_ENV === "production" ? oe.exports = Dr() : oe.exports = Fr();
787
+ var O = oe.exports;
788
+ function Br(n, a) {
789
+ const l = a === void 0 ? void 0 : typeof a == "object" && a !== null && !Array.isArray(a) && ("equals" in a || "loading" in a || "error" in a) ? a : { equals: a };
790
+ return /* @__PURE__ */ O.jsx(
791
+ Ur,
788
792
  {
789
- selectorOrAtom: u,
790
- equals: c
793
+ selectorOrAtom: n,
794
+ options: l
791
795
  }
792
796
  );
793
797
  }
794
- const Pr = _r(
795
- function(c) {
796
- const S = K(c.selectorOrAtom) ? ({ get: h }) => h(c.selectorOrAtom) : c.selectorOrAtom, p = Ye(S, c.equals);
797
- return /* @__PURE__ */ oe.jsx(oe.Fragment, { children: p ?? null });
798
+ class Ir extends xr {
799
+ constructor() {
800
+ super(...arguments);
801
+ ke(this, "state", { error: null });
802
+ }
803
+ static getDerivedStateFromError(l) {
804
+ return { error: l };
805
+ }
806
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
807
+ componentDidCatch(l, b) {
808
+ }
809
+ render() {
810
+ if (this.state.error !== null && this.props.onError)
811
+ return /* @__PURE__ */ O.jsx(O.Fragment, { children: this.props.onError({ error: this.state.error }) });
812
+ if (this.state.error !== null)
813
+ throw this.state.error;
814
+ return this.props.children;
815
+ }
816
+ }
817
+ function Wr(n) {
818
+ const a = Ue(n.selector, n.equals);
819
+ return /* @__PURE__ */ O.jsx(O.Fragment, { children: a ?? null });
820
+ }
821
+ function $r(n) {
822
+ return /* @__PURE__ */ O.jsx(O.Fragment, { children: n.render() });
823
+ }
824
+ function Yr(n) {
825
+ return n.fallback ? /* @__PURE__ */ O.jsx(wr, { fallback: /* @__PURE__ */ O.jsx($r, { render: n.fallback }), children: n.children }) : /* @__PURE__ */ O.jsx(O.Fragment, { children: n.children });
826
+ }
827
+ function Lr(n) {
828
+ return n.onError ? /* @__PURE__ */ O.jsx(Ir, { onError: n.onError, children: n.children }) : /* @__PURE__ */ O.jsx(O.Fragment, { children: n.children });
829
+ }
830
+ const Ur = jr(
831
+ function(a) {
832
+ var v, i, S, f;
833
+ const l = k(a.selectorOrAtom);
834
+ l.current = a.selectorOrAtom;
835
+ const b = z(a.selectorOrAtom), g = (v = a.options) == null ? void 0 : v.deps, T = b ? [a.selectorOrAtom, ...g ?? []] : g ?? [{}], h = U(
836
+ (d) => z(l.current) ? d.read(l.current) : l.current(d),
837
+ T
838
+ );
839
+ return /* @__PURE__ */ O.jsx(Lr, { onError: (i = a.options) == null ? void 0 : i.error, children: /* @__PURE__ */ O.jsx(Yr, { fallback: (S = a.options) == null ? void 0 : S.loading, children: /* @__PURE__ */ O.jsx(Wr, { selector: h, equals: (f = a.options) == null ? void 0 : f.equals }) }) });
798
840
  },
799
- (u, c) => Tr(u.selectorOrAtom, c.selectorOrAtom) && u.equals === c.equals
841
+ (n, a) => We(n.selectorOrAtom, a.selectorOrAtom) && We(n.options, a.options)
800
842
  );
801
843
  export {
802
- Wr as AllAtomsRejectedError,
803
- Yr as atom,
804
- Vr as batch,
805
- Lr as define,
806
- Ur as derived,
807
- Mr as effect,
808
- qr as emitter,
809
- Nr as getAtomState,
810
- K as isAtom,
811
- zr as isDerived,
812
- Br as isFulfilled,
813
- Jr as isPending,
814
- Kr as isRejected,
815
- Gr as onCreateHook,
816
- Fr as rx,
817
- De as select,
818
- Xr as trackPromise,
819
- Hr as unwrap,
820
- Dr as useAction,
821
- kr as useStable,
822
- Ye as useValue
844
+ Gr as AllAtomsRejectedError,
845
+ Xr as atom,
846
+ Hr as batch,
847
+ Zr as define,
848
+ Qr as derived,
849
+ et as effect,
850
+ rt as emitter,
851
+ tt as getAtomState,
852
+ z as isAtom,
853
+ nt as isDerived,
854
+ at as isFulfilled,
855
+ ot as isPending,
856
+ it as isRejected,
857
+ st as onCreateHook,
858
+ ut as promisesEqual,
859
+ ct as readonly,
860
+ Br as rx,
861
+ Fe as select,
862
+ lt as trackPromise,
863
+ ft as unwrap,
864
+ zr as useAction,
865
+ Ue as useSelector,
866
+ Nr as useStable
823
867
  };