atomirx 0.0.2 → 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.
- package/README.md +866 -159
- package/dist/core/atom.d.ts +83 -6
- package/dist/core/batch.d.ts +3 -3
- package/dist/core/derived.d.ts +55 -21
- package/dist/core/effect.d.ts +47 -51
- package/dist/core/getAtomState.d.ts +29 -0
- package/dist/core/promiseCache.d.ts +23 -32
- package/dist/core/select.d.ts +208 -29
- package/dist/core/types.d.ts +55 -19
- package/dist/core/withReady.d.ts +69 -0
- package/dist/index-CqO6BDwj.cjs +1 -0
- package/dist/index-D8RDOTB_.js +1319 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +9 -7
- package/dist/index.js +12 -10
- package/dist/react/index.cjs +10 -10
- package/dist/react/index.d.ts +2 -1
- package/dist/react/index.js +423 -379
- package/dist/react/rx.d.ts +114 -25
- package/dist/react/useAction.d.ts +5 -4
- package/dist/react/{useValue.d.ts → useSelector.d.ts} +56 -25
- package/dist/react/useSelector.test.d.ts +1 -0
- package/package.json +1 -1
- package/src/core/atom.test.ts +307 -43
- package/src/core/atom.ts +143 -21
- package/src/core/batch.test.ts +10 -10
- package/src/core/batch.ts +3 -3
- package/src/core/derived.test.ts +727 -72
- package/src/core/derived.ts +141 -73
- package/src/core/effect.test.ts +259 -39
- package/src/core/effect.ts +62 -85
- package/src/core/getAtomState.ts +69 -0
- package/src/core/promiseCache.test.ts +5 -3
- package/src/core/promiseCache.ts +76 -71
- package/src/core/select.ts +405 -130
- package/src/core/selector.test.ts +574 -32
- package/src/core/types.ts +54 -26
- package/src/core/withReady.test.ts +360 -0
- package/src/core/withReady.ts +127 -0
- package/src/core/withUse.ts +1 -1
- package/src/index.test.ts +4 -4
- package/src/index.ts +11 -6
- package/src/react/index.ts +2 -1
- package/src/react/rx.test.tsx +173 -18
- package/src/react/rx.tsx +274 -43
- package/src/react/useAction.test.ts +12 -14
- package/src/react/useAction.ts +11 -9
- package/src/react/{useValue.test.ts → useSelector.test.ts} +16 -16
- package/src/react/{useValue.ts → useSelector.ts} +64 -33
- package/v2.md +44 -44
- package/dist/index-2ok7ilik.js +0 -1217
- package/dist/index-B_5SFzfl.cjs +0 -1
- /package/dist/{react/useValue.test.d.ts → core/withReady.test.d.ts} +0 -0
package/dist/react/index.js
CHANGED
|
@@ -1,162 +1,165 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
}),
|
|
11
|
-
const d =
|
|
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
|
|
17
|
-
return (!i.current.initialized || !
|
|
18
|
-
}, []), f =
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
for (const [
|
|
22
|
-
|
|
23
|
-
for (const
|
|
24
|
-
if (!
|
|
25
|
-
const R =
|
|
26
|
-
const
|
|
27
|
-
v.current =
|
|
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
|
-
|
|
32
|
+
E.set(A, R);
|
|
30
33
|
}
|
|
31
34
|
};
|
|
32
35
|
return P(), () => {
|
|
33
|
-
for (const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
for (const D of E.values())
|
|
37
|
+
D();
|
|
38
|
+
E.clear();
|
|
36
39
|
};
|
|
37
40
|
}, []);
|
|
38
|
-
return
|
|
41
|
+
return Or(f, S, S);
|
|
39
42
|
}
|
|
40
|
-
function
|
|
41
|
-
return
|
|
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
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
const
|
|
47
|
-
for (const
|
|
48
|
-
const v =
|
|
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 [
|
|
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
|
|
59
|
+
g[h] = { value: E }, T[h] = E;
|
|
57
60
|
continue;
|
|
58
61
|
}
|
|
59
|
-
const
|
|
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
|
|
67
|
+
g[h] = { value: d }, T[h] = d;
|
|
65
68
|
}
|
|
66
|
-
for (const
|
|
67
|
-
|
|
68
|
-
return
|
|
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
|
-
},
|
|
77
|
+
}, qe = {
|
|
75
78
|
status: "loading",
|
|
76
79
|
result: void 0,
|
|
77
80
|
error: void 0
|
|
78
81
|
};
|
|
79
|
-
function
|
|
80
|
-
switch (
|
|
82
|
+
function kr(n, a) {
|
|
83
|
+
switch (a.type) {
|
|
81
84
|
case "START":
|
|
82
|
-
return
|
|
85
|
+
return qe;
|
|
83
86
|
case "SUCCESS":
|
|
84
87
|
return {
|
|
85
88
|
status: "success",
|
|
86
|
-
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:
|
|
96
|
+
error: a.error
|
|
94
97
|
};
|
|
95
98
|
case "RESET":
|
|
96
99
|
return Ve;
|
|
97
100
|
default:
|
|
98
|
-
return
|
|
101
|
+
return n;
|
|
99
102
|
}
|
|
100
103
|
}
|
|
101
|
-
function
|
|
102
|
-
const { lazy:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
), i = k(null),
|
|
106
|
-
|
|
107
|
-
const f =
|
|
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 = (
|
|
111
|
-
|
|
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
|
-
|
|
117
|
-
} catch (
|
|
118
|
-
return v({ type: "ERROR", error:
|
|
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 (
|
|
123
|
-
const
|
|
124
|
-
return
|
|
125
|
-
(
|
|
126
|
-
i.current === R && v({ type: "SUCCESS", result:
|
|
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
|
-
(
|
|
129
|
-
if (
|
|
130
|
-
(i.current === null || i.current === R) && v({ type: "ERROR", error:
|
|
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:
|
|
136
|
+
i.current === R && v({ type: "ERROR", error: F });
|
|
134
137
|
}
|
|
135
|
-
), Object.assign(
|
|
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:
|
|
144
|
+
return v({ type: "SUCCESS", result: j }), Object.assign(Promise.resolve(j), {
|
|
142
145
|
abort: () => R.abort()
|
|
143
146
|
});
|
|
144
|
-
}, [
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}, [
|
|
148
|
-
|
|
149
|
-
}, [
|
|
150
|
-
const
|
|
151
|
-
|
|
152
|
-
}, [
|
|
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
|
-
...
|
|
157
|
+
...h,
|
|
155
158
|
abort: f,
|
|
156
|
-
reset:
|
|
159
|
+
reset: A
|
|
157
160
|
});
|
|
158
161
|
}
|
|
159
|
-
var
|
|
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
|
|
170
|
-
function
|
|
171
|
-
if (
|
|
172
|
-
|
|
173
|
-
var
|
|
174
|
-
function
|
|
175
|
-
var f, d = {},
|
|
176
|
-
|
|
177
|
-
for (f in i)
|
|
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:
|
|
182
|
+
return { $$typeof: a, type: v, key: E, ref: P, props: d, _owner: g.current };
|
|
180
183
|
}
|
|
181
|
-
return
|
|
184
|
+
return M.Fragment = l, M.jsx = h, M.jsxs = h, M;
|
|
182
185
|
}
|
|
183
|
-
var
|
|
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
|
|
194
|
-
function
|
|
195
|
-
return
|
|
196
|
-
var
|
|
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 =
|
|
203
|
+
var r = D && e[D] || e[A];
|
|
201
204
|
return typeof r == "function" ? r : null;
|
|
202
205
|
}
|
|
203
|
-
var
|
|
204
|
-
function
|
|
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),
|
|
207
|
-
t[
|
|
208
|
-
|
|
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
|
|
214
|
+
function F(e, r, t) {
|
|
212
215
|
{
|
|
213
|
-
var
|
|
214
|
-
|
|
215
|
-
var
|
|
216
|
-
return String(
|
|
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
|
-
|
|
221
|
+
p.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, p);
|
|
219
222
|
}
|
|
220
223
|
}
|
|
221
|
-
var ie = !1,
|
|
224
|
+
var ie = !1, Me = !1, Ne = !1, ze = !1, Be = !1, se;
|
|
222
225
|
se = Symbol.for("react.module.reference");
|
|
223
|
-
function
|
|
224
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
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
|
|
231
|
-
var
|
|
232
|
-
if (
|
|
233
|
-
return
|
|
234
|
-
var
|
|
235
|
-
return
|
|
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
|
|
243
|
+
function I(e) {
|
|
241
244
|
if (e == null)
|
|
242
245
|
return null;
|
|
243
|
-
if (typeof e.tag == "number" &&
|
|
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
|
|
251
|
+
case b:
|
|
249
252
|
return "Fragment";
|
|
250
|
-
case
|
|
253
|
+
case l:
|
|
251
254
|
return "Portal";
|
|
252
|
-
case
|
|
255
|
+
case T:
|
|
253
256
|
return "Profiler";
|
|
254
|
-
case
|
|
257
|
+
case g:
|
|
255
258
|
return "StrictMode";
|
|
256
|
-
case
|
|
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
|
|
269
|
+
case h:
|
|
267
270
|
var t = e;
|
|
268
271
|
return ue(t._context) + ".Provider";
|
|
269
272
|
case i:
|
|
270
|
-
return
|
|
273
|
+
return Ke(e, e.render, "ForwardRef");
|
|
271
274
|
case d:
|
|
272
|
-
var
|
|
273
|
-
return
|
|
274
|
-
case
|
|
275
|
-
var
|
|
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
|
|
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
|
|
286
|
-
function
|
|
288
|
+
var W = Object.assign, V = 0, ce, le, fe, de, ve, pe, be;
|
|
289
|
+
function he() {
|
|
287
290
|
}
|
|
288
|
-
|
|
289
|
-
function
|
|
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:
|
|
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
|
|
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:
|
|
324
|
+
log: W({}, e, {
|
|
322
325
|
value: ce
|
|
323
326
|
}),
|
|
324
|
-
info:
|
|
327
|
+
info: W({}, e, {
|
|
325
328
|
value: le
|
|
326
329
|
}),
|
|
327
|
-
warn:
|
|
330
|
+
warn: W({}, e, {
|
|
328
331
|
value: fe
|
|
329
332
|
}),
|
|
330
|
-
error:
|
|
333
|
+
error: W({}, e, {
|
|
331
334
|
value: de
|
|
332
335
|
}),
|
|
333
|
-
group:
|
|
336
|
+
group: W({}, e, {
|
|
334
337
|
value: ve
|
|
335
338
|
}),
|
|
336
|
-
groupCollapsed:
|
|
339
|
+
groupCollapsed: W({}, e, {
|
|
337
340
|
value: pe
|
|
338
341
|
}),
|
|
339
|
-
groupEnd:
|
|
342
|
+
groupEnd: W({}, e, {
|
|
340
343
|
value: be
|
|
341
344
|
})
|
|
342
345
|
});
|
|
343
346
|
}
|
|
344
|
-
V < 0 &&
|
|
347
|
+
V < 0 && m("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
345
348
|
}
|
|
346
349
|
}
|
|
347
|
-
var
|
|
348
|
-
function
|
|
350
|
+
var X = j.ReactCurrentDispatcher, H;
|
|
351
|
+
function B(e, r, t) {
|
|
349
352
|
{
|
|
350
|
-
if (
|
|
353
|
+
if (H === void 0)
|
|
351
354
|
try {
|
|
352
355
|
throw Error();
|
|
353
|
-
} catch (
|
|
354
|
-
var
|
|
355
|
-
|
|
356
|
+
} catch (c) {
|
|
357
|
+
var o = c.stack.trim().match(/\n( *(at )?)/);
|
|
358
|
+
H = o && o[1] || "";
|
|
356
359
|
}
|
|
357
360
|
return `
|
|
358
|
-
` +
|
|
361
|
+
` + H + e;
|
|
359
362
|
}
|
|
360
363
|
}
|
|
361
|
-
var
|
|
364
|
+
var Z = !1, J;
|
|
362
365
|
{
|
|
363
|
-
var
|
|
364
|
-
|
|
366
|
+
var He = typeof WeakMap == "function" ? WeakMap : Map;
|
|
367
|
+
J = new He();
|
|
365
368
|
}
|
|
366
369
|
function Ee(e, r) {
|
|
367
|
-
if (!e ||
|
|
370
|
+
if (!e || Z)
|
|
368
371
|
return "";
|
|
369
372
|
{
|
|
370
|
-
var t =
|
|
373
|
+
var t = J.get(e);
|
|
371
374
|
if (t !== void 0)
|
|
372
375
|
return t;
|
|
373
376
|
}
|
|
374
|
-
var
|
|
375
|
-
|
|
376
|
-
var
|
|
377
|
+
var o;
|
|
378
|
+
Z = !0;
|
|
379
|
+
var c = Error.prepareStackTrace;
|
|
377
380
|
Error.prepareStackTrace = void 0;
|
|
378
|
-
var
|
|
379
|
-
|
|
381
|
+
var p;
|
|
382
|
+
p = X.current, X.current = null, Ge();
|
|
380
383
|
try {
|
|
381
384
|
if (r) {
|
|
382
|
-
var
|
|
385
|
+
var u = function() {
|
|
383
386
|
throw Error();
|
|
384
387
|
};
|
|
385
|
-
if (Object.defineProperty(
|
|
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(
|
|
392
|
-
} catch (
|
|
393
|
-
|
|
394
|
+
Reflect.construct(u, []);
|
|
395
|
+
} catch (x) {
|
|
396
|
+
o = x;
|
|
394
397
|
}
|
|
395
|
-
Reflect.construct(e, [],
|
|
398
|
+
Reflect.construct(e, [], u);
|
|
396
399
|
} else {
|
|
397
400
|
try {
|
|
398
|
-
|
|
399
|
-
} catch (
|
|
400
|
-
|
|
401
|
+
u.call();
|
|
402
|
+
} catch (x) {
|
|
403
|
+
o = x;
|
|
401
404
|
}
|
|
402
|
-
e.call(
|
|
405
|
+
e.call(u.prototype);
|
|
403
406
|
}
|
|
404
407
|
} else {
|
|
405
408
|
try {
|
|
406
409
|
throw Error();
|
|
407
|
-
} catch (
|
|
408
|
-
|
|
410
|
+
} catch (x) {
|
|
411
|
+
o = x;
|
|
409
412
|
}
|
|
410
413
|
e();
|
|
411
414
|
}
|
|
412
|
-
} catch (
|
|
413
|
-
if (
|
|
414
|
-
for (var
|
|
415
|
-
`),
|
|
416
|
-
`),
|
|
417
|
-
|
|
418
|
-
for (;
|
|
419
|
-
if (
|
|
420
|
-
if (
|
|
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 (
|
|
423
|
-
var
|
|
424
|
-
` +
|
|
425
|
-
return e.displayName &&
|
|
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 (
|
|
430
|
+
while (y >= 1 && _ >= 0);
|
|
428
431
|
break;
|
|
429
432
|
}
|
|
430
433
|
}
|
|
431
434
|
} finally {
|
|
432
|
-
|
|
435
|
+
Z = !1, X.current = p, Xe(), Error.prepareStackTrace = c;
|
|
433
436
|
}
|
|
434
|
-
var
|
|
435
|
-
return typeof e == "function" &&
|
|
437
|
+
var L = e ? e.displayName || e.name : "", $ = L ? B(L) : "";
|
|
438
|
+
return typeof e == "function" && J.set(e, $), $;
|
|
436
439
|
}
|
|
437
|
-
function
|
|
440
|
+
function Ze(e, r, t) {
|
|
438
441
|
return Ee(e, !1);
|
|
439
442
|
}
|
|
440
|
-
function
|
|
443
|
+
function Qe(e) {
|
|
441
444
|
var r = e.prototype;
|
|
442
445
|
return !!(r && r.isReactComponent);
|
|
443
446
|
}
|
|
444
|
-
function
|
|
447
|
+
function K(e, r, t) {
|
|
445
448
|
if (e == null)
|
|
446
449
|
return "";
|
|
447
450
|
if (typeof e == "function")
|
|
448
|
-
return Ee(e,
|
|
451
|
+
return Ee(e, Qe(e));
|
|
449
452
|
if (typeof e == "string")
|
|
450
|
-
return
|
|
453
|
+
return B(e);
|
|
451
454
|
switch (e) {
|
|
452
|
-
case
|
|
453
|
-
return
|
|
455
|
+
case S:
|
|
456
|
+
return B("Suspense");
|
|
454
457
|
case f:
|
|
455
|
-
return
|
|
458
|
+
return B("SuspenseList");
|
|
456
459
|
}
|
|
457
460
|
if (typeof e == "object")
|
|
458
461
|
switch (e.$$typeof) {
|
|
459
462
|
case i:
|
|
460
|
-
return
|
|
463
|
+
return Ze(e.render);
|
|
461
464
|
case d:
|
|
462
|
-
return
|
|
463
|
-
case
|
|
464
|
-
var
|
|
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
|
|
469
|
+
return K(p(c), r, t);
|
|
467
470
|
} catch {
|
|
468
471
|
}
|
|
469
472
|
}
|
|
470
473
|
}
|
|
471
474
|
return "";
|
|
472
475
|
}
|
|
473
|
-
var
|
|
474
|
-
function
|
|
476
|
+
var q = Object.prototype.hasOwnProperty, Re = {}, me = j.ReactDebugCurrentFrame;
|
|
477
|
+
function G(e) {
|
|
475
478
|
if (e) {
|
|
476
|
-
var r = e._owner, t =
|
|
477
|
-
|
|
479
|
+
var r = e._owner, t = K(e.type, e._source, r ? r.type : null);
|
|
480
|
+
me.setExtraStackFrame(t);
|
|
478
481
|
} else
|
|
479
|
-
|
|
482
|
+
me.setExtraStackFrame(null);
|
|
480
483
|
}
|
|
481
|
-
function
|
|
484
|
+
function er(e, r, t, o, c) {
|
|
482
485
|
{
|
|
483
|
-
var
|
|
484
|
-
for (var
|
|
485
|
-
if (
|
|
486
|
-
var
|
|
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[
|
|
489
|
-
var
|
|
490
|
-
throw
|
|
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
|
-
|
|
493
|
-
} catch (
|
|
494
|
-
|
|
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
|
-
|
|
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
|
|
501
|
-
function
|
|
502
|
-
return
|
|
503
|
+
var rr = Array.isArray;
|
|
504
|
+
function Q(e) {
|
|
505
|
+
return rr(e);
|
|
503
506
|
}
|
|
504
|
-
function
|
|
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
|
|
513
|
+
function nr(e) {
|
|
511
514
|
try {
|
|
512
|
-
return
|
|
515
|
+
return ye(e), !1;
|
|
513
516
|
} catch {
|
|
514
517
|
return !0;
|
|
515
518
|
}
|
|
516
519
|
}
|
|
517
|
-
function
|
|
520
|
+
function ye(e) {
|
|
518
521
|
return "" + e;
|
|
519
522
|
}
|
|
520
|
-
function
|
|
521
|
-
if (
|
|
522
|
-
return
|
|
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 =
|
|
527
|
+
var _e = j.ReactCurrentOwner, ar = {
|
|
525
528
|
key: !0,
|
|
526
529
|
ref: !0,
|
|
527
530
|
__self: !0,
|
|
528
531
|
__source: !0
|
|
529
|
-
}, Se,
|
|
530
|
-
function
|
|
531
|
-
if (
|
|
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
|
|
539
|
-
if (
|
|
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
|
|
549
|
+
function sr(e, r) {
|
|
547
550
|
typeof e.ref == "string" && _e.current;
|
|
548
551
|
}
|
|
549
|
-
function
|
|
552
|
+
function ur(e, r) {
|
|
550
553
|
{
|
|
551
554
|
var t = function() {
|
|
552
|
-
Se || (Se = !0,
|
|
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
|
|
563
|
+
function cr(e, r) {
|
|
561
564
|
{
|
|
562
565
|
var t = function() {
|
|
563
|
-
|
|
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
|
|
572
|
-
var
|
|
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:
|
|
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:
|
|
582
|
+
props: u,
|
|
580
583
|
// Record the component responsible for creating this element.
|
|
581
|
-
_owner:
|
|
584
|
+
_owner: p
|
|
582
585
|
};
|
|
583
|
-
return
|
|
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(
|
|
591
|
+
}), Object.defineProperty(s, "_self", {
|
|
589
592
|
configurable: !1,
|
|
590
593
|
enumerable: !1,
|
|
591
594
|
writable: !1,
|
|
592
|
-
value:
|
|
593
|
-
}), Object.defineProperty(
|
|
595
|
+
value: o
|
|
596
|
+
}), Object.defineProperty(s, "_source", {
|
|
594
597
|
configurable: !1,
|
|
595
598
|
enumerable: !1,
|
|
596
599
|
writable: !1,
|
|
597
|
-
value:
|
|
598
|
-
}), Object.freeze && (Object.freeze(
|
|
600
|
+
value: c
|
|
601
|
+
}), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
|
|
599
602
|
};
|
|
600
|
-
function
|
|
603
|
+
function fr(e, r, t, o, c) {
|
|
601
604
|
{
|
|
602
|
-
var
|
|
603
|
-
t !== void 0 && (
|
|
604
|
-
for (
|
|
605
|
-
|
|
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
|
|
608
|
-
for (
|
|
609
|
-
|
|
610
|
+
var y = e.defaultProps;
|
|
611
|
+
for (p in y)
|
|
612
|
+
u[p] === void 0 && (u[p] = y[p]);
|
|
610
613
|
}
|
|
611
|
-
if (
|
|
612
|
-
var
|
|
613
|
-
|
|
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
|
|
618
|
+
return lr(e, s, w, c, o, _e.current, u);
|
|
616
619
|
}
|
|
617
620
|
}
|
|
618
|
-
var
|
|
619
|
-
function
|
|
621
|
+
var ee = j.ReactCurrentOwner, Te = j.ReactDebugCurrentFrame;
|
|
622
|
+
function Y(e) {
|
|
620
623
|
if (e) {
|
|
621
|
-
var r = e._owner, t =
|
|
622
|
-
|
|
624
|
+
var r = e._owner, t = K(e.type, e._source, r ? r.type : null);
|
|
625
|
+
Te.setExtraStackFrame(t);
|
|
623
626
|
} else
|
|
624
|
-
|
|
627
|
+
Te.setExtraStackFrame(null);
|
|
625
628
|
}
|
|
626
|
-
var
|
|
627
|
-
|
|
628
|
-
function
|
|
629
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
629
|
+
var re;
|
|
630
|
+
re = !1;
|
|
631
|
+
function te(e) {
|
|
632
|
+
return typeof e == "object" && e !== null && e.$$typeof === a;
|
|
630
633
|
}
|
|
631
|
-
function
|
|
634
|
+
function je() {
|
|
632
635
|
{
|
|
633
|
-
if (
|
|
634
|
-
var e =
|
|
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
|
|
646
|
+
function dr(e) {
|
|
644
647
|
return "";
|
|
645
648
|
}
|
|
646
649
|
var we = {};
|
|
647
|
-
function
|
|
650
|
+
function vr(e) {
|
|
648
651
|
{
|
|
649
|
-
var r =
|
|
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
|
|
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 =
|
|
667
|
+
var t = vr(r);
|
|
665
668
|
if (we[t])
|
|
666
669
|
return;
|
|
667
670
|
we[t] = !0;
|
|
668
|
-
var
|
|
669
|
-
e && e._owner && e._owner !==
|
|
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
|
|
675
|
+
function Ce(e, r) {
|
|
673
676
|
{
|
|
674
677
|
if (typeof e != "object")
|
|
675
678
|
return;
|
|
676
|
-
if (
|
|
679
|
+
if (Q(e))
|
|
677
680
|
for (var t = 0; t < e.length; t++) {
|
|
678
|
-
var
|
|
679
|
-
|
|
681
|
+
var o = e[t];
|
|
682
|
+
te(o) && xe(o, r);
|
|
680
683
|
}
|
|
681
|
-
else if (
|
|
684
|
+
else if (te(e))
|
|
682
685
|
e._store && (e._store.validated = !0);
|
|
683
686
|
else if (e) {
|
|
684
|
-
var
|
|
685
|
-
if (typeof
|
|
686
|
-
for (var
|
|
687
|
-
|
|
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
|
|
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
|
|
707
|
-
|
|
708
|
-
} else if (r.PropTypes !== void 0 && !
|
|
709
|
-
|
|
710
|
-
var
|
|
711
|
-
|
|
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 &&
|
|
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
|
|
719
|
+
function br(e) {
|
|
717
720
|
{
|
|
718
721
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
719
|
-
var
|
|
720
|
-
if (
|
|
721
|
-
|
|
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 && (
|
|
728
|
+
e.ref !== null && (Y(e), m("Invalid attribute `ref` supplied to `React.Fragment`."), Y(null));
|
|
726
729
|
}
|
|
727
730
|
}
|
|
728
|
-
var
|
|
729
|
-
function Ae(e, r, t,
|
|
731
|
+
var Pe = {};
|
|
732
|
+
function Ae(e, r, t, o, c, p) {
|
|
730
733
|
{
|
|
731
|
-
var
|
|
732
|
-
if (!
|
|
733
|
-
var
|
|
734
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
735
|
-
var
|
|
736
|
-
|
|
737
|
-
var
|
|
738
|
-
e === null ?
|
|
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
|
|
741
|
-
if (
|
|
742
|
-
return
|
|
743
|
-
if (
|
|
744
|
-
var
|
|
745
|
-
if (
|
|
746
|
-
if (
|
|
747
|
-
if (
|
|
748
|
-
for (var
|
|
749
|
-
|
|
750
|
-
Object.freeze && Object.freeze(
|
|
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
|
-
|
|
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
|
-
|
|
757
|
+
Ce(C, e);
|
|
755
758
|
}
|
|
756
|
-
if (
|
|
757
|
-
var $ =
|
|
759
|
+
if (q.call(r, "key")) {
|
|
760
|
+
var $ = I(e), x = Object.keys(r).filter(function(gr) {
|
|
758
761
|
return gr !== "key";
|
|
759
|
-
}),
|
|
760
|
-
if (!
|
|
761
|
-
var yr =
|
|
762
|
-
|
|
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} />`,
|
|
770
|
+
<%s key={someKey} {...props} />`, ne, $, yr, $), Pe[$ + ne] = !0;
|
|
768
771
|
}
|
|
769
772
|
}
|
|
770
|
-
return e ===
|
|
773
|
+
return e === b ? br(_) : pr(_), _;
|
|
771
774
|
}
|
|
772
775
|
}
|
|
773
|
-
function
|
|
776
|
+
function hr(e, r, t) {
|
|
774
777
|
return Ae(e, r, t, !0);
|
|
775
778
|
}
|
|
776
|
-
function
|
|
779
|
+
function Er(e, r, t) {
|
|
777
780
|
return Ae(e, r, t, !1);
|
|
778
781
|
}
|
|
779
|
-
var Rr =
|
|
780
|
-
|
|
781
|
-
}()),
|
|
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" ?
|
|
784
|
-
var
|
|
785
|
-
function
|
|
786
|
-
|
|
787
|
-
|
|
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:
|
|
790
|
-
|
|
793
|
+
selectorOrAtom: n,
|
|
794
|
+
options: l
|
|
791
795
|
}
|
|
792
796
|
);
|
|
793
797
|
}
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
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
|
-
(
|
|
841
|
+
(n, a) => We(n.selectorOrAtom, a.selectorOrAtom) && We(n.options, a.options)
|
|
800
842
|
);
|
|
801
843
|
export {
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
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
|
};
|