@ptolemy2002/react-proxy-context 2.1.1 → 2.1.3
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/main.js +304 -300
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Ae, { useEffect as Ie, createContext as br, useRef as H, useImperativeHandle as yr, useCallback as ie, useContext as mr } from "react";
|
|
2
2
|
import { nanoid as Rr } from "nanoid";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import L from "is-callable";
|
|
4
|
+
import $e from "@ptolemy2002/react-force-rerender";
|
|
5
5
|
import gr from "@ptolemy2002/react-hook-result";
|
|
6
6
|
import { partialMemo as hr } from "@ptolemy2002/react-utils";
|
|
7
|
-
var
|
|
7
|
+
var ue = { exports: {} }, N = {};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react-jsx-runtime.production.min.js
|
|
@@ -14,21 +14,21 @@ var se = { exports: {} }, B = {};
|
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
var
|
|
17
|
+
var De;
|
|
18
18
|
function Er() {
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
-
var
|
|
22
|
-
function
|
|
23
|
-
var v,
|
|
24
|
-
|
|
25
|
-
for (v in
|
|
26
|
-
if (
|
|
27
|
-
return { $$typeof: _, type:
|
|
19
|
+
if (De) return N;
|
|
20
|
+
De = 1;
|
|
21
|
+
var y = Ae, _ = Symbol.for("react.element"), k = Symbol.for("react.fragment"), h = Object.prototype.hasOwnProperty, x = y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, R = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
|
+
function E(c, s, T) {
|
|
23
|
+
var v, S = {}, O = null, b = null;
|
|
24
|
+
T !== void 0 && (O = "" + T), s.key !== void 0 && (O = "" + s.key), s.ref !== void 0 && (b = s.ref);
|
|
25
|
+
for (v in s) h.call(s, v) && !R.hasOwnProperty(v) && (S[v] = s[v]);
|
|
26
|
+
if (c && c.defaultProps) for (v in s = c.defaultProps, s) S[v] === void 0 && (S[v] = s[v]);
|
|
27
|
+
return { $$typeof: _, type: c, key: O, ref: b, props: S, _owner: x.current };
|
|
28
28
|
}
|
|
29
|
-
return
|
|
29
|
+
return N.Fragment = k, N.jsx = E, N.jsxs = E, N;
|
|
30
30
|
}
|
|
31
|
-
var
|
|
31
|
+
var B = {};
|
|
32
32
|
/**
|
|
33
33
|
* @license React
|
|
34
34
|
* react-jsx-runtime.development.js
|
|
@@ -38,91 +38,91 @@ var J = {};
|
|
|
38
38
|
* This source code is licensed under the MIT license found in the
|
|
39
39
|
* LICENSE file in the root directory of this source tree.
|
|
40
40
|
*/
|
|
41
|
-
var
|
|
41
|
+
var Fe;
|
|
42
42
|
function _r() {
|
|
43
|
-
return
|
|
44
|
-
var
|
|
45
|
-
function
|
|
43
|
+
return Fe || (Fe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
44
|
+
var y = Ae, _ = Symbol.for("react.element"), k = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), E = Symbol.for("react.provider"), c = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), D = Symbol.iterator, C = "@@iterator";
|
|
45
|
+
function j(e) {
|
|
46
46
|
if (e === null || typeof e != "object")
|
|
47
47
|
return null;
|
|
48
|
-
var r =
|
|
48
|
+
var r = D && e[D] || e[C];
|
|
49
49
|
return typeof r == "function" ? r : null;
|
|
50
50
|
}
|
|
51
|
-
var
|
|
52
|
-
function
|
|
51
|
+
var p = y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
|
+
function f(e) {
|
|
53
53
|
{
|
|
54
54
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
55
55
|
t[n - 1] = arguments[n];
|
|
56
|
-
|
|
56
|
+
I("error", e, t);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function I(e, r, t) {
|
|
60
60
|
{
|
|
61
|
-
var n =
|
|
62
|
-
|
|
63
|
-
var
|
|
64
|
-
return String(
|
|
61
|
+
var n = p.ReactDebugCurrentFrame, i = n.getStackAddendum();
|
|
62
|
+
i !== "" && (r += "%s", t = t.concat([i]));
|
|
63
|
+
var u = t.map(function(o) {
|
|
64
|
+
return String(o);
|
|
65
65
|
});
|
|
66
|
-
|
|
66
|
+
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
var $ = !1,
|
|
70
|
-
|
|
71
|
-
function
|
|
72
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
69
|
+
var $ = !1, J = !1, We = !1, Ye = !1, Le = !1, se;
|
|
70
|
+
se = Symbol.for("react.module.reference");
|
|
71
|
+
function Ve(e) {
|
|
72
|
+
return !!(typeof e == "string" || typeof e == "function" || e === h || e === R || Le || e === x || e === T || e === v || Ye || e === b || $ || J || We || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === S || e.$$typeof === E || e.$$typeof === c || e.$$typeof === s || // This needs to include all possible module reference object
|
|
73
73
|
// types supported by any Flight configuration anywhere since
|
|
74
74
|
// we don't know which Flight build this will end up being used
|
|
75
75
|
// with.
|
|
76
|
-
e.$$typeof ===
|
|
76
|
+
e.$$typeof === se || e.getModuleId !== void 0));
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function Me(e, r, t) {
|
|
79
79
|
var n = e.displayName;
|
|
80
80
|
if (n)
|
|
81
81
|
return n;
|
|
82
|
-
var
|
|
83
|
-
return
|
|
82
|
+
var i = r.displayName || r.name || "";
|
|
83
|
+
return i !== "" ? t + "(" + i + ")" : t;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function ce(e) {
|
|
86
86
|
return e.displayName || "Context";
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function w(e) {
|
|
89
89
|
if (e == null)
|
|
90
90
|
return null;
|
|
91
|
-
if (typeof e.tag == "number" &&
|
|
91
|
+
if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
92
92
|
return e.displayName || e.name || null;
|
|
93
93
|
if (typeof e == "string")
|
|
94
94
|
return e;
|
|
95
95
|
switch (e) {
|
|
96
|
-
case
|
|
96
|
+
case h:
|
|
97
97
|
return "Fragment";
|
|
98
98
|
case k:
|
|
99
99
|
return "Portal";
|
|
100
|
-
case
|
|
100
|
+
case R:
|
|
101
101
|
return "Profiler";
|
|
102
|
-
case
|
|
102
|
+
case x:
|
|
103
103
|
return "StrictMode";
|
|
104
|
-
case
|
|
104
|
+
case T:
|
|
105
105
|
return "Suspense";
|
|
106
106
|
case v:
|
|
107
107
|
return "SuspenseList";
|
|
108
108
|
}
|
|
109
109
|
if (typeof e == "object")
|
|
110
110
|
switch (e.$$typeof) {
|
|
111
|
-
case
|
|
111
|
+
case c:
|
|
112
112
|
var r = e;
|
|
113
|
-
return
|
|
114
|
-
case
|
|
113
|
+
return ce(r) + ".Consumer";
|
|
114
|
+
case E:
|
|
115
115
|
var t = e;
|
|
116
|
-
return
|
|
117
|
-
case
|
|
118
|
-
return
|
|
119
|
-
case
|
|
116
|
+
return ce(t._context) + ".Provider";
|
|
117
|
+
case s:
|
|
118
|
+
return Me(e, e.render, "ForwardRef");
|
|
119
|
+
case S:
|
|
120
120
|
var n = e.displayName || null;
|
|
121
|
-
return n !== null ? n :
|
|
122
|
-
case
|
|
123
|
-
var
|
|
121
|
+
return n !== null ? n : w(e.type) || "Memo";
|
|
122
|
+
case O: {
|
|
123
|
+
var i = e, u = i._payload, o = i._init;
|
|
124
124
|
try {
|
|
125
|
-
return
|
|
125
|
+
return w(o(u));
|
|
126
126
|
} catch {
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
@@ -130,18 +130,18 @@ function _r() {
|
|
|
130
130
|
}
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
|
-
var F = Object.assign, V = 0, le, de, ve, pe, be, ye
|
|
134
|
-
function
|
|
133
|
+
var F = Object.assign, V = 0, fe, le, de, ve, pe, be, ye;
|
|
134
|
+
function me() {
|
|
135
135
|
}
|
|
136
|
-
|
|
136
|
+
me.__reactDisabledLog = !0;
|
|
137
137
|
function Ue() {
|
|
138
138
|
{
|
|
139
139
|
if (V === 0) {
|
|
140
|
-
|
|
140
|
+
fe = console.log, le = console.info, de = console.warn, ve = console.error, pe = console.group, be = console.groupCollapsed, ye = console.groupEnd;
|
|
141
141
|
var e = {
|
|
142
142
|
configurable: !0,
|
|
143
143
|
enumerable: !0,
|
|
144
|
-
value:
|
|
144
|
+
value: me,
|
|
145
145
|
writable: !0
|
|
146
146
|
};
|
|
147
147
|
Object.defineProperties(console, {
|
|
@@ -167,186 +167,186 @@ function _r() {
|
|
|
167
167
|
};
|
|
168
168
|
Object.defineProperties(console, {
|
|
169
169
|
log: F({}, e, {
|
|
170
|
-
value:
|
|
170
|
+
value: fe
|
|
171
171
|
}),
|
|
172
172
|
info: F({}, e, {
|
|
173
|
-
value:
|
|
173
|
+
value: le
|
|
174
174
|
}),
|
|
175
175
|
warn: F({}, e, {
|
|
176
|
-
value:
|
|
176
|
+
value: de
|
|
177
177
|
}),
|
|
178
178
|
error: F({}, e, {
|
|
179
|
-
value:
|
|
179
|
+
value: ve
|
|
180
180
|
}),
|
|
181
181
|
group: F({}, e, {
|
|
182
|
-
value:
|
|
182
|
+
value: pe
|
|
183
183
|
}),
|
|
184
184
|
groupCollapsed: F({}, e, {
|
|
185
|
-
value:
|
|
185
|
+
value: be
|
|
186
186
|
}),
|
|
187
187
|
groupEnd: F({}, e, {
|
|
188
|
-
value:
|
|
188
|
+
value: ye
|
|
189
189
|
})
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
-
V < 0 &&
|
|
192
|
+
V < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
var
|
|
196
|
-
function
|
|
195
|
+
var X = p.ReactCurrentDispatcher, Z;
|
|
196
|
+
function q(e, r, t) {
|
|
197
197
|
{
|
|
198
|
-
if (
|
|
198
|
+
if (Z === void 0)
|
|
199
199
|
try {
|
|
200
200
|
throw Error();
|
|
201
|
-
} catch (
|
|
202
|
-
var n =
|
|
203
|
-
|
|
201
|
+
} catch (i) {
|
|
202
|
+
var n = i.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
+
Z = n && n[1] || "";
|
|
204
204
|
}
|
|
205
205
|
return `
|
|
206
|
-
` +
|
|
206
|
+
` + Z + e;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
var
|
|
209
|
+
var Q = !1, K;
|
|
210
210
|
{
|
|
211
211
|
var Be = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
|
-
|
|
212
|
+
K = new Be();
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
if (!e ||
|
|
214
|
+
function Re(e, r) {
|
|
215
|
+
if (!e || Q)
|
|
216
216
|
return "";
|
|
217
217
|
{
|
|
218
|
-
var t =
|
|
218
|
+
var t = K.get(e);
|
|
219
219
|
if (t !== void 0)
|
|
220
220
|
return t;
|
|
221
221
|
}
|
|
222
222
|
var n;
|
|
223
|
-
|
|
224
|
-
var
|
|
223
|
+
Q = !0;
|
|
224
|
+
var i = Error.prepareStackTrace;
|
|
225
225
|
Error.prepareStackTrace = void 0;
|
|
226
|
-
var
|
|
227
|
-
|
|
226
|
+
var u;
|
|
227
|
+
u = X.current, X.current = null, Ue();
|
|
228
228
|
try {
|
|
229
229
|
if (r) {
|
|
230
|
-
var
|
|
230
|
+
var o = function() {
|
|
231
231
|
throw Error();
|
|
232
232
|
};
|
|
233
|
-
if (Object.defineProperty(
|
|
233
|
+
if (Object.defineProperty(o.prototype, "props", {
|
|
234
234
|
set: function() {
|
|
235
235
|
throw Error();
|
|
236
236
|
}
|
|
237
237
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
238
238
|
try {
|
|
239
|
-
Reflect.construct(
|
|
240
|
-
} catch (
|
|
241
|
-
n =
|
|
239
|
+
Reflect.construct(o, []);
|
|
240
|
+
} catch (g) {
|
|
241
|
+
n = g;
|
|
242
242
|
}
|
|
243
|
-
Reflect.construct(e, [],
|
|
243
|
+
Reflect.construct(e, [], o);
|
|
244
244
|
} else {
|
|
245
245
|
try {
|
|
246
|
-
|
|
247
|
-
} catch (
|
|
248
|
-
n =
|
|
246
|
+
o.call();
|
|
247
|
+
} catch (g) {
|
|
248
|
+
n = g;
|
|
249
249
|
}
|
|
250
|
-
e.call(
|
|
250
|
+
e.call(o.prototype);
|
|
251
251
|
}
|
|
252
252
|
} else {
|
|
253
253
|
try {
|
|
254
254
|
throw Error();
|
|
255
|
-
} catch (
|
|
256
|
-
n =
|
|
255
|
+
} catch (g) {
|
|
256
|
+
n = g;
|
|
257
257
|
}
|
|
258
258
|
e();
|
|
259
259
|
}
|
|
260
|
-
} catch (
|
|
261
|
-
if (
|
|
262
|
-
for (var a =
|
|
260
|
+
} catch (g) {
|
|
261
|
+
if (g && n && typeof g.stack == "string") {
|
|
262
|
+
for (var a = g.stack.split(`
|
|
263
263
|
`), m = n.stack.split(`
|
|
264
|
-
`),
|
|
265
|
-
|
|
266
|
-
for (;
|
|
267
|
-
if (a[
|
|
268
|
-
if (
|
|
264
|
+
`), l = a.length - 1, d = m.length - 1; l >= 1 && d >= 0 && a[l] !== m[d]; )
|
|
265
|
+
d--;
|
|
266
|
+
for (; l >= 1 && d >= 0; l--, d--)
|
|
267
|
+
if (a[l] !== m[d]) {
|
|
268
|
+
if (l !== 1 || d !== 1)
|
|
269
269
|
do
|
|
270
|
-
if (
|
|
271
|
-
var
|
|
272
|
-
` + a[
|
|
273
|
-
return e.displayName &&
|
|
270
|
+
if (l--, d--, d < 0 || a[l] !== m[d]) {
|
|
271
|
+
var P = `
|
|
272
|
+
` + a[l].replace(" at new ", " at ");
|
|
273
|
+
return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && K.set(e, P), P;
|
|
274
274
|
}
|
|
275
|
-
while (
|
|
275
|
+
while (l >= 1 && d >= 0);
|
|
276
276
|
break;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
} finally {
|
|
280
|
-
|
|
280
|
+
Q = !1, X.current = u, Ne(), Error.prepareStackTrace = i;
|
|
281
281
|
}
|
|
282
|
-
var
|
|
283
|
-
return typeof e == "function" &&
|
|
282
|
+
var Y = e ? e.displayName || e.name : "", A = Y ? q(Y) : "";
|
|
283
|
+
return typeof e == "function" && K.set(e, A), A;
|
|
284
284
|
}
|
|
285
285
|
function Je(e, r, t) {
|
|
286
|
-
return
|
|
286
|
+
return Re(e, !1);
|
|
287
287
|
}
|
|
288
288
|
function qe(e) {
|
|
289
289
|
var r = e.prototype;
|
|
290
290
|
return !!(r && r.isReactComponent);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function G(e, r, t) {
|
|
293
293
|
if (e == null)
|
|
294
294
|
return "";
|
|
295
295
|
if (typeof e == "function")
|
|
296
|
-
return
|
|
296
|
+
return Re(e, qe(e));
|
|
297
297
|
if (typeof e == "string")
|
|
298
|
-
return
|
|
298
|
+
return q(e);
|
|
299
299
|
switch (e) {
|
|
300
|
-
case
|
|
301
|
-
return
|
|
300
|
+
case T:
|
|
301
|
+
return q("Suspense");
|
|
302
302
|
case v:
|
|
303
|
-
return
|
|
303
|
+
return q("SuspenseList");
|
|
304
304
|
}
|
|
305
305
|
if (typeof e == "object")
|
|
306
306
|
switch (e.$$typeof) {
|
|
307
|
-
case
|
|
307
|
+
case s:
|
|
308
308
|
return Je(e.render);
|
|
309
|
-
case
|
|
310
|
-
return
|
|
311
|
-
case
|
|
312
|
-
var n = e,
|
|
309
|
+
case S:
|
|
310
|
+
return G(e.type, r, t);
|
|
311
|
+
case O: {
|
|
312
|
+
var n = e, i = n._payload, u = n._init;
|
|
313
313
|
try {
|
|
314
|
-
return
|
|
314
|
+
return G(u(i), r, t);
|
|
315
315
|
} catch {
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
return "";
|
|
320
320
|
}
|
|
321
|
-
var
|
|
322
|
-
function
|
|
321
|
+
var M = Object.prototype.hasOwnProperty, ge = {}, he = p.ReactDebugCurrentFrame;
|
|
322
|
+
function z(e) {
|
|
323
323
|
if (e) {
|
|
324
|
-
var r = e._owner, t =
|
|
325
|
-
|
|
324
|
+
var r = e._owner, t = G(e.type, e._source, r ? r.type : null);
|
|
325
|
+
he.setExtraStackFrame(t);
|
|
326
326
|
} else
|
|
327
|
-
|
|
327
|
+
he.setExtraStackFrame(null);
|
|
328
328
|
}
|
|
329
|
-
function Ke(e, r, t, n,
|
|
329
|
+
function Ke(e, r, t, n, i) {
|
|
330
330
|
{
|
|
331
|
-
var
|
|
332
|
-
for (var
|
|
333
|
-
if (
|
|
331
|
+
var u = Function.call.bind(M);
|
|
332
|
+
for (var o in e)
|
|
333
|
+
if (u(e, o)) {
|
|
334
334
|
var a = void 0;
|
|
335
335
|
try {
|
|
336
|
-
if (typeof e[
|
|
337
|
-
var m = Error((n || "React class") + ": " + t + " type `" +
|
|
336
|
+
if (typeof e[o] != "function") {
|
|
337
|
+
var m = 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`.");
|
|
338
338
|
throw m.name = "Invariant Violation", m;
|
|
339
339
|
}
|
|
340
|
-
a = e[
|
|
341
|
-
} catch (
|
|
342
|
-
a =
|
|
340
|
+
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
|
+
} catch (l) {
|
|
342
|
+
a = l;
|
|
343
343
|
}
|
|
344
|
-
a && !(a instanceof Error) && (
|
|
344
|
+
a && !(a instanceof Error) && (z(i), f("%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), z(null)), a instanceof Error && !(a.message in ge) && (ge[a.message] = !0, z(i), f("Failed %s type: %s", t, a.message), z(null));
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
var Ge = Array.isArray;
|
|
349
|
-
function
|
|
349
|
+
function ee(e) {
|
|
350
350
|
return Ge(e);
|
|
351
351
|
}
|
|
352
352
|
function ze(e) {
|
|
@@ -357,27 +357,27 @@ function _r() {
|
|
|
357
357
|
}
|
|
358
358
|
function He(e) {
|
|
359
359
|
try {
|
|
360
|
-
return
|
|
360
|
+
return Ee(e), !1;
|
|
361
361
|
} catch {
|
|
362
362
|
return !0;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function Ee(e) {
|
|
366
366
|
return "" + e;
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function _e(e) {
|
|
369
369
|
if (He(e))
|
|
370
|
-
return
|
|
370
|
+
return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ze(e)), Ee(e);
|
|
371
371
|
}
|
|
372
|
-
var
|
|
372
|
+
var U = p.ReactCurrentOwner, Xe = {
|
|
373
373
|
key: !0,
|
|
374
374
|
ref: !0,
|
|
375
375
|
__self: !0,
|
|
376
376
|
__source: !0
|
|
377
|
-
},
|
|
378
|
-
|
|
377
|
+
}, Te, Pe, re;
|
|
378
|
+
re = {};
|
|
379
379
|
function Ze(e) {
|
|
380
|
-
if (
|
|
380
|
+
if (M.call(e, "ref")) {
|
|
381
381
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
382
382
|
if (r && r.isReactWarning)
|
|
383
383
|
return !1;
|
|
@@ -385,7 +385,7 @@ function _r() {
|
|
|
385
385
|
return e.ref !== void 0;
|
|
386
386
|
}
|
|
387
387
|
function Qe(e) {
|
|
388
|
-
if (
|
|
388
|
+
if (M.call(e, "key")) {
|
|
389
389
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
390
390
|
if (r && r.isReactWarning)
|
|
391
391
|
return !1;
|
|
@@ -393,15 +393,15 @@ function _r() {
|
|
|
393
393
|
return e.key !== void 0;
|
|
394
394
|
}
|
|
395
395
|
function er(e, r) {
|
|
396
|
-
if (typeof e.ref == "string" &&
|
|
397
|
-
var t =
|
|
398
|
-
|
|
396
|
+
if (typeof e.ref == "string" && U.current && r && U.current.stateNode !== r) {
|
|
397
|
+
var t = w(U.current.type);
|
|
398
|
+
re[t] || (f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', w(U.current.type), e.ref), re[t] = !0);
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
function rr(e, r) {
|
|
402
402
|
{
|
|
403
403
|
var t = function() {
|
|
404
|
-
|
|
404
|
+
Te || (Te = !0, f("%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));
|
|
405
405
|
};
|
|
406
406
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
407
407
|
get: t,
|
|
@@ -412,7 +412,7 @@ function _r() {
|
|
|
412
412
|
function tr(e, r) {
|
|
413
413
|
{
|
|
414
414
|
var t = function() {
|
|
415
|
-
|
|
415
|
+
Pe || (Pe = !0, f("%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));
|
|
416
416
|
};
|
|
417
417
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
418
418
|
get: t,
|
|
@@ -420,7 +420,7 @@ function _r() {
|
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
var nr = function(e, r, t, n,
|
|
423
|
+
var nr = function(e, r, t, n, i, u, o) {
|
|
424
424
|
var a = {
|
|
425
425
|
// This tag allows us to uniquely identify this as a React Element
|
|
426
426
|
$$typeof: _,
|
|
@@ -428,9 +428,9 @@ function _r() {
|
|
|
428
428
|
type: e,
|
|
429
429
|
key: r,
|
|
430
430
|
ref: t,
|
|
431
|
-
props:
|
|
431
|
+
props: o,
|
|
432
432
|
// Record the component responsible for creating this element.
|
|
433
|
-
_owner:
|
|
433
|
+
_owner: u
|
|
434
434
|
};
|
|
435
435
|
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
436
436
|
configurable: !1,
|
|
@@ -446,44 +446,44 @@ function _r() {
|
|
|
446
446
|
configurable: !1,
|
|
447
447
|
enumerable: !1,
|
|
448
448
|
writable: !1,
|
|
449
|
-
value:
|
|
449
|
+
value: i
|
|
450
450
|
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
451
451
|
};
|
|
452
|
-
function ar(e, r, t, n,
|
|
452
|
+
function ar(e, r, t, n, i) {
|
|
453
453
|
{
|
|
454
|
-
var
|
|
455
|
-
t !== void 0 && (
|
|
456
|
-
for (
|
|
457
|
-
|
|
454
|
+
var u, o = {}, a = null, m = null;
|
|
455
|
+
t !== void 0 && (_e(t), a = "" + t), Qe(r) && (_e(r.key), a = "" + r.key), Ze(r) && (m = r.ref, er(r, i));
|
|
456
|
+
for (u in r)
|
|
457
|
+
M.call(r, u) && !Xe.hasOwnProperty(u) && (o[u] = r[u]);
|
|
458
458
|
if (e && e.defaultProps) {
|
|
459
|
-
var
|
|
460
|
-
for (
|
|
461
|
-
|
|
459
|
+
var l = e.defaultProps;
|
|
460
|
+
for (u in l)
|
|
461
|
+
o[u] === void 0 && (o[u] = l[u]);
|
|
462
462
|
}
|
|
463
463
|
if (a || m) {
|
|
464
|
-
var
|
|
465
|
-
a && rr(
|
|
464
|
+
var d = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
465
|
+
a && rr(o, d), m && tr(o, d);
|
|
466
466
|
}
|
|
467
|
-
return nr(e, a, m,
|
|
467
|
+
return nr(e, a, m, i, n, U.current, o);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
|
-
var
|
|
471
|
-
function
|
|
470
|
+
var te = p.ReactCurrentOwner, Se = p.ReactDebugCurrentFrame;
|
|
471
|
+
function W(e) {
|
|
472
472
|
if (e) {
|
|
473
|
-
var r = e._owner, t =
|
|
474
|
-
|
|
473
|
+
var r = e._owner, t = G(e.type, e._source, r ? r.type : null);
|
|
474
|
+
Se.setExtraStackFrame(t);
|
|
475
475
|
} else
|
|
476
|
-
|
|
476
|
+
Se.setExtraStackFrame(null);
|
|
477
477
|
}
|
|
478
|
-
var
|
|
479
|
-
|
|
480
|
-
function
|
|
478
|
+
var ne;
|
|
479
|
+
ne = !1;
|
|
480
|
+
function ae(e) {
|
|
481
481
|
return typeof e == "object" && e !== null && e.$$typeof === _;
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function Ce() {
|
|
484
484
|
{
|
|
485
|
-
if (
|
|
486
|
-
var e =
|
|
485
|
+
if (te.current) {
|
|
486
|
+
var e = w(te.current.type);
|
|
487
487
|
if (e)
|
|
488
488
|
return `
|
|
489
489
|
|
|
@@ -495,10 +495,10 @@ Check the render method of \`` + e + "`.";
|
|
|
495
495
|
function or(e) {
|
|
496
496
|
return "";
|
|
497
497
|
}
|
|
498
|
-
var
|
|
498
|
+
var xe = {};
|
|
499
499
|
function ir(e) {
|
|
500
500
|
{
|
|
501
|
-
var r =
|
|
501
|
+
var r = Ce();
|
|
502
502
|
if (!r) {
|
|
503
503
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
504
504
|
t && (r = `
|
|
@@ -508,35 +508,35 @@ Check the top-level render call using <` + t + ">.");
|
|
|
508
508
|
return r;
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function Oe(e, r) {
|
|
512
512
|
{
|
|
513
513
|
if (!e._store || e._store.validated || e.key != null)
|
|
514
514
|
return;
|
|
515
515
|
e._store.validated = !0;
|
|
516
516
|
var t = ir(r);
|
|
517
|
-
if (
|
|
517
|
+
if (xe[t])
|
|
518
518
|
return;
|
|
519
|
-
|
|
519
|
+
xe[t] = !0;
|
|
520
520
|
var n = "";
|
|
521
|
-
e && e._owner && e._owner !==
|
|
521
|
+
e && e._owner && e._owner !== te.current && (n = " It was passed a child from " + w(e._owner.type) + "."), W(e), f('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);
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function we(e, r) {
|
|
525
525
|
{
|
|
526
526
|
if (typeof e != "object")
|
|
527
527
|
return;
|
|
528
|
-
if (
|
|
528
|
+
if (ee(e))
|
|
529
529
|
for (var t = 0; t < e.length; t++) {
|
|
530
530
|
var n = e[t];
|
|
531
|
-
|
|
531
|
+
ae(n) && Oe(n, r);
|
|
532
532
|
}
|
|
533
|
-
else if (
|
|
533
|
+
else if (ae(e))
|
|
534
534
|
e._store && (e._store.validated = !0);
|
|
535
535
|
else if (e) {
|
|
536
|
-
var
|
|
537
|
-
if (typeof
|
|
538
|
-
for (var
|
|
539
|
-
|
|
536
|
+
var i = j(e);
|
|
537
|
+
if (typeof i == "function" && i !== e.entries)
|
|
538
|
+
for (var u = i.call(e), o; !(o = u.next()).done; )
|
|
539
|
+
ae(o.value) && Oe(o.value, r);
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
}
|
|
@@ -548,21 +548,21 @@ Check the top-level render call using <` + t + ">.");
|
|
|
548
548
|
var t;
|
|
549
549
|
if (typeof r == "function")
|
|
550
550
|
t = r.propTypes;
|
|
551
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
551
|
+
else if (typeof r == "object" && (r.$$typeof === s || // Note: Memo only checks outer props here.
|
|
552
552
|
// Inner props are checked in the reconciler.
|
|
553
|
-
r.$$typeof ===
|
|
553
|
+
r.$$typeof === S))
|
|
554
554
|
t = r.propTypes;
|
|
555
555
|
else
|
|
556
556
|
return;
|
|
557
557
|
if (t) {
|
|
558
|
-
var n =
|
|
558
|
+
var n = w(r);
|
|
559
559
|
Ke(t, e.props, "prop", n, e);
|
|
560
|
-
} else if (r.PropTypes !== void 0 && !
|
|
561
|
-
|
|
562
|
-
var
|
|
563
|
-
|
|
560
|
+
} else if (r.PropTypes !== void 0 && !ne) {
|
|
561
|
+
ne = !0;
|
|
562
|
+
var i = w(r);
|
|
563
|
+
f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
|
|
564
564
|
}
|
|
565
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
565
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
function sr(e) {
|
|
@@ -570,146 +570,150 @@ Check the top-level render call using <` + t + ">.");
|
|
|
570
570
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
571
571
|
var n = r[t];
|
|
572
572
|
if (n !== "children" && n !== "key") {
|
|
573
|
-
|
|
573
|
+
W(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), W(null);
|
|
574
574
|
break;
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
e.ref !== null && (
|
|
577
|
+
e.ref !== null && (W(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
var
|
|
581
|
-
function
|
|
580
|
+
var je = {};
|
|
581
|
+
function ke(e, r, t, n, i, u) {
|
|
582
582
|
{
|
|
583
|
-
var
|
|
584
|
-
if (!
|
|
583
|
+
var o = Ve(e);
|
|
584
|
+
if (!o) {
|
|
585
585
|
var a = "";
|
|
586
586
|
(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.");
|
|
587
587
|
var m = or();
|
|
588
|
-
m ? a += m : a +=
|
|
589
|
-
var
|
|
590
|
-
e === null ?
|
|
588
|
+
m ? a += m : a += Ce();
|
|
589
|
+
var l;
|
|
590
|
+
e === null ? l = "null" : ee(e) ? l = "array" : e !== void 0 && e.$$typeof === _ ? (l = "<" + (w(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, a);
|
|
591
591
|
}
|
|
592
|
-
var
|
|
593
|
-
if (
|
|
594
|
-
return
|
|
595
|
-
if (
|
|
596
|
-
var
|
|
597
|
-
if (
|
|
592
|
+
var d = ar(e, r, t, i, u);
|
|
593
|
+
if (d == null)
|
|
594
|
+
return d;
|
|
595
|
+
if (o) {
|
|
596
|
+
var P = r.children;
|
|
597
|
+
if (P !== void 0)
|
|
598
598
|
if (n)
|
|
599
|
-
if (
|
|
600
|
-
for (var
|
|
601
|
-
|
|
602
|
-
Object.freeze && Object.freeze(
|
|
599
|
+
if (ee(P)) {
|
|
600
|
+
for (var Y = 0; Y < P.length; Y++)
|
|
601
|
+
we(P[Y], e);
|
|
602
|
+
Object.freeze && Object.freeze(P);
|
|
603
603
|
} else
|
|
604
|
-
|
|
604
|
+
f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
605
605
|
else
|
|
606
|
-
|
|
606
|
+
we(P, e);
|
|
607
607
|
}
|
|
608
|
-
if (
|
|
609
|
-
var A =
|
|
608
|
+
if (M.call(r, "key")) {
|
|
609
|
+
var A = w(e), g = Object.keys(r).filter(function(pr) {
|
|
610
610
|
return pr !== "key";
|
|
611
|
-
}),
|
|
612
|
-
if (!
|
|
613
|
-
var vr =
|
|
614
|
-
|
|
611
|
+
}), oe = g.length > 0 ? "{key: someKey, " + g.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
612
|
+
if (!je[A + oe]) {
|
|
613
|
+
var vr = g.length > 0 ? "{" + g.join(": ..., ") + ": ...}" : "{}";
|
|
614
|
+
f(`A props object containing a "key" prop is being spread into JSX:
|
|
615
615
|
let props = %s;
|
|
616
616
|
<%s {...props} />
|
|
617
617
|
React keys must be passed directly to JSX without using spread:
|
|
618
618
|
let props = %s;
|
|
619
|
-
<%s key={someKey} {...props} />`,
|
|
619
|
+
<%s key={someKey} {...props} />`, oe, A, vr, A), je[A + oe] = !0;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
return e ===
|
|
622
|
+
return e === h ? sr(d) : ur(d), d;
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
625
|
function cr(e, r, t) {
|
|
626
|
-
return
|
|
626
|
+
return ke(e, r, t, !0);
|
|
627
627
|
}
|
|
628
628
|
function fr(e, r, t) {
|
|
629
|
-
return
|
|
629
|
+
return ke(e, r, t, !1);
|
|
630
630
|
}
|
|
631
631
|
var lr = fr, dr = cr;
|
|
632
|
-
|
|
633
|
-
}()),
|
|
632
|
+
B.Fragment = h, B.jsx = lr, B.jsxs = dr;
|
|
633
|
+
}()), B;
|
|
634
634
|
}
|
|
635
|
-
process.env.NODE_ENV === "production" ?
|
|
636
|
-
var Tr =
|
|
637
|
-
function Pr(
|
|
638
|
-
|
|
639
|
-
|
|
635
|
+
process.env.NODE_ENV === "production" ? ue.exports = Er() : ue.exports = _r();
|
|
636
|
+
var Tr = ue.exports;
|
|
637
|
+
function Pr(y) {
|
|
638
|
+
Ie(() => {
|
|
639
|
+
y();
|
|
640
640
|
}, []);
|
|
641
641
|
}
|
|
642
|
-
function
|
|
643
|
-
|
|
642
|
+
function Sr(y) {
|
|
643
|
+
Ie(() => y, []);
|
|
644
644
|
}
|
|
645
|
-
function Dr(
|
|
645
|
+
function Dr(y) {
|
|
646
646
|
if (typeof Proxy > "u") throw new Error("Proxy is not supported in this environment.");
|
|
647
647
|
const _ = br(
|
|
648
648
|
void 0
|
|
649
649
|
);
|
|
650
|
-
return _.name =
|
|
650
|
+
return _.name = y, _;
|
|
651
651
|
}
|
|
652
|
-
function Fr(
|
|
653
|
-
return hr(
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
const
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
652
|
+
function Fr(y) {
|
|
653
|
+
return hr(
|
|
654
|
+
({
|
|
655
|
+
children: _,
|
|
656
|
+
value: k,
|
|
657
|
+
onChangeProp: h,
|
|
658
|
+
onChangeReinit: x,
|
|
659
|
+
proxyRef: R
|
|
660
|
+
}) => {
|
|
661
|
+
const E = H({}), c = H(), s = H({}), T = $e();
|
|
662
|
+
yr(R, () => c.current, [c.current]);
|
|
663
|
+
const v = ie((b, D, C) => {
|
|
664
|
+
const j = Rr();
|
|
665
|
+
return E.current[j] = {
|
|
666
|
+
id: j,
|
|
667
|
+
deps: C,
|
|
668
|
+
propCallback: b,
|
|
669
|
+
reinitCallback: D
|
|
670
|
+
}, j;
|
|
671
|
+
}, []), S = ie((b) => {
|
|
672
|
+
delete E.current[b];
|
|
673
|
+
}, []), O = ie((b) => {
|
|
674
|
+
if (b !== c.current) {
|
|
675
|
+
const D = c.current;
|
|
676
|
+
b !== null ? c.current = new Proxy(b, {
|
|
677
|
+
get: function(C, j) {
|
|
678
|
+
const p = Reflect.get(C, j, b);
|
|
679
|
+
return L(p) ? p.bind(c.current) : p;
|
|
680
|
+
},
|
|
681
|
+
set: function(C, j, p) {
|
|
682
|
+
const f = j, I = C[f];
|
|
683
|
+
return Reflect.set(C, f, p, b), p = C[f], Object.values(E.current).forEach(($) => {
|
|
684
|
+
(!$.deps || $.deps.includes(f) && I !== p || $.deps.some((J) => L(J) && J(f, p, I, b))) && $.propCallback(f, p, I);
|
|
685
|
+
}), L(h) && h(f, p, I), !0;
|
|
686
|
+
}
|
|
687
|
+
}) : c.current = b, Object.values(E.current).forEach((C) => {
|
|
688
|
+
C.reinitCallback(c.current, D);
|
|
689
|
+
}), L(x) && x(c.current, D), T();
|
|
690
|
+
}
|
|
691
|
+
return s.current.obj = c.current, c.current;
|
|
692
|
+
}, [h, x]);
|
|
693
|
+
return c.current === void 0 && (c.current = O(k)), s.current.obj = c.current, s.current.set = O, s.current.subscribe = v, s.current.unsubscribe = S, /* @__PURE__ */ Tr.jsx(y.Provider, { value: s.current, children: _ });
|
|
694
|
+
},
|
|
695
|
+
["children", "onChangeProp", "onChangeReinit", "proxyRef"],
|
|
696
|
+
y.name + ".Provider"
|
|
697
|
+
);
|
|
694
698
|
}
|
|
695
|
-
function Ar(
|
|
696
|
-
const
|
|
697
|
-
if (
|
|
698
|
-
throw new Error(`No ${
|
|
699
|
+
function Ar(y, _ = [], k, h, x = !0) {
|
|
700
|
+
const R = mr(y), E = $e(), c = H(null);
|
|
701
|
+
if (R === void 0)
|
|
702
|
+
throw new Error(`No ${y.name} provider found.`);
|
|
699
703
|
return Pr(() => {
|
|
700
|
-
|
|
701
|
-
(
|
|
702
|
-
|
|
704
|
+
c.current = R == null ? void 0 : R.subscribe(
|
|
705
|
+
(s, T, v) => {
|
|
706
|
+
E(), L(k) && k(s, T, v);
|
|
703
707
|
},
|
|
704
|
-
(
|
|
705
|
-
|
|
708
|
+
(s, T) => {
|
|
709
|
+
x && E(), L(h) && h(s, T);
|
|
706
710
|
},
|
|
707
711
|
_
|
|
708
712
|
);
|
|
709
|
-
}),
|
|
710
|
-
|
|
713
|
+
}), Sr(() => {
|
|
714
|
+
R.unsubscribe(c.current);
|
|
711
715
|
}), new gr(
|
|
712
|
-
{ value:
|
|
716
|
+
{ value: R.obj, set: R.set },
|
|
713
717
|
["value", "set"]
|
|
714
718
|
);
|
|
715
719
|
}
|