@ichaingo/web-worker 1.5.1 → 1.5.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.
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var H = (
|
|
4
|
-
var
|
|
5
|
-
(function(
|
|
6
|
-
|
|
7
|
-
})(
|
|
8
|
-
var
|
|
9
|
-
(function(
|
|
10
|
-
|
|
11
|
-
})(
|
|
12
|
-
var
|
|
1
|
+
var $e = Object.defineProperty;
|
|
2
|
+
var Be = (v, r, h) => r in v ? $e(v, r, { enumerable: !0, configurable: !0, writable: !0, value: h }) : v[r] = h;
|
|
3
|
+
var H = (v, r, h) => Be(v, typeof r != "symbol" ? r + "" : r, h);
|
|
4
|
+
var Ie;
|
|
5
|
+
(function(v) {
|
|
6
|
+
v.ALL_CHAIN_LATEST_BLOCK = "allChainLatestBlock", v.CHAIN_LATEST_BLOCK = "chainLatestBlock";
|
|
7
|
+
})(Ie || (Ie = {}));
|
|
8
|
+
var P;
|
|
9
|
+
(function(v) {
|
|
10
|
+
v.CONNECTING = "connecting", v.CONNECTED = "connected", v.DISCONNECTED = "disconnected", v.RECONNECTING = "reconnecting", v.ERROR = "error";
|
|
11
|
+
})(P || (P = {}));
|
|
12
|
+
var Ee = { exports: {} }, f = {};
|
|
13
13
|
/**
|
|
14
14
|
* @license React
|
|
15
15
|
* react.production.js
|
|
@@ -19,15 +19,15 @@ var me = { exports: {} }, f = {};
|
|
|
19
19
|
* This source code is licensed under the MIT license found in the
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
21
21
|
*/
|
|
22
|
-
var
|
|
23
|
-
function
|
|
24
|
-
if (
|
|
25
|
-
|
|
26
|
-
var
|
|
27
|
-
function
|
|
28
|
-
return t === null || typeof t != "object" ? null : (t =
|
|
22
|
+
var Me;
|
|
23
|
+
function Ke() {
|
|
24
|
+
if (Me) return f;
|
|
25
|
+
Me = 1;
|
|
26
|
+
var v = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), M = Symbol.for("react.profiler"), k = Symbol.for("react.consumer"), G = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), D = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), F = Symbol.iterator;
|
|
27
|
+
function ue(t) {
|
|
28
|
+
return t === null || typeof t != "object" ? null : (t = F && t[F] || t["@@iterator"], typeof t == "function" ? t : null);
|
|
29
29
|
}
|
|
30
|
-
var
|
|
30
|
+
var x = {
|
|
31
31
|
isMounted: function() {
|
|
32
32
|
return !1;
|
|
33
33
|
},
|
|
@@ -37,56 +37,61 @@ function Qe() {
|
|
|
37
37
|
},
|
|
38
38
|
enqueueSetState: function() {
|
|
39
39
|
}
|
|
40
|
-
},
|
|
41
|
-
function Y(t,
|
|
42
|
-
this.props = t, this.context =
|
|
40
|
+
}, J = Object.assign, ie = {};
|
|
41
|
+
function Y(t, o, c) {
|
|
42
|
+
this.props = t, this.context = o, this.refs = ie, this.updater = c || x;
|
|
43
43
|
}
|
|
44
|
-
Y.prototype.isReactComponent = {}, Y.prototype.setState = function(t,
|
|
44
|
+
Y.prototype.isReactComponent = {}, Y.prototype.setState = function(t, o) {
|
|
45
45
|
if (typeof t != "object" && typeof t != "function" && t != null)
|
|
46
46
|
throw Error(
|
|
47
47
|
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
48
48
|
);
|
|
49
|
-
this.updater.enqueueSetState(this, t,
|
|
49
|
+
this.updater.enqueueSetState(this, t, o, "setState");
|
|
50
50
|
}, Y.prototype.forceUpdate = function(t) {
|
|
51
51
|
this.updater.enqueueForceUpdate(this, t, "forceUpdate");
|
|
52
52
|
};
|
|
53
|
-
function
|
|
53
|
+
function Q() {
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
function
|
|
57
|
-
this.props = t, this.context =
|
|
55
|
+
Q.prototype = Y.prototype;
|
|
56
|
+
function ee(t, o, c) {
|
|
57
|
+
this.props = t, this.context = o, this.refs = ie, this.updater = c || x;
|
|
58
58
|
}
|
|
59
|
-
var
|
|
60
|
-
|
|
61
|
-
var
|
|
62
|
-
function
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
function I(t, s, c) {
|
|
66
|
-
var a = c.ref;
|
|
67
|
-
return {
|
|
68
|
-
$$typeof: T,
|
|
59
|
+
var L = ee.prototype = new Q();
|
|
60
|
+
L.constructor = ee, J(L, Y.prototype), L.isPureReactComponent = !0;
|
|
61
|
+
var ae = Array.isArray, g = { H: null, A: null, T: null, S: null, V: null }, te = Object.prototype.hasOwnProperty;
|
|
62
|
+
function ne(t, o, c, a, _, R) {
|
|
63
|
+
return c = R.ref, {
|
|
64
|
+
$$typeof: v,
|
|
69
65
|
type: t,
|
|
70
|
-
key:
|
|
71
|
-
ref:
|
|
72
|
-
props:
|
|
66
|
+
key: o,
|
|
67
|
+
ref: c !== void 0 ? c : null,
|
|
68
|
+
props: R
|
|
73
69
|
};
|
|
74
70
|
}
|
|
75
|
-
function
|
|
76
|
-
return
|
|
71
|
+
function U(t, o) {
|
|
72
|
+
return ne(
|
|
73
|
+
t.type,
|
|
74
|
+
o,
|
|
75
|
+
void 0,
|
|
76
|
+
void 0,
|
|
77
|
+
void 0,
|
|
78
|
+
t.props
|
|
79
|
+
);
|
|
77
80
|
}
|
|
78
|
-
function
|
|
79
|
-
return typeof t == "object" && t !== null && t.$$typeof ===
|
|
81
|
+
function W(t) {
|
|
82
|
+
return typeof t == "object" && t !== null && t.$$typeof === v;
|
|
80
83
|
}
|
|
81
|
-
function
|
|
82
|
-
var
|
|
84
|
+
function me(t) {
|
|
85
|
+
var o = { "=": "=0", ":": "=2" };
|
|
83
86
|
return "$" + t.replace(/[=:]/g, function(c) {
|
|
84
|
-
return
|
|
87
|
+
return o[c];
|
|
85
88
|
});
|
|
86
89
|
}
|
|
87
|
-
var
|
|
88
|
-
function
|
|
89
|
-
return typeof t == "object" && t !== null && t.key != null ?
|
|
90
|
+
var T = /\/+/g;
|
|
91
|
+
function re(t, o) {
|
|
92
|
+
return typeof t == "object" && t !== null && t.key != null ? me("" + t.key) : o.toString(36);
|
|
93
|
+
}
|
|
94
|
+
function B() {
|
|
90
95
|
}
|
|
91
96
|
function K(t) {
|
|
92
97
|
switch (t.status) {
|
|
@@ -95,12 +100,12 @@ function Qe() {
|
|
|
95
100
|
case "rejected":
|
|
96
101
|
throw t.reason;
|
|
97
102
|
default:
|
|
98
|
-
switch (typeof t.status == "string" ? t.then(
|
|
99
|
-
function(
|
|
100
|
-
t.status === "pending" && (t.status = "fulfilled", t.value =
|
|
103
|
+
switch (typeof t.status == "string" ? t.then(B, B) : (t.status = "pending", t.then(
|
|
104
|
+
function(o) {
|
|
105
|
+
t.status === "pending" && (t.status = "fulfilled", t.value = o);
|
|
101
106
|
},
|
|
102
|
-
function(
|
|
103
|
-
t.status === "pending" && (t.status = "rejected", t.reason =
|
|
107
|
+
function(o) {
|
|
108
|
+
t.status === "pending" && (t.status = "rejected", t.reason = o);
|
|
104
109
|
}
|
|
105
110
|
)), t.status) {
|
|
106
111
|
case "fulfilled":
|
|
@@ -111,274 +116,277 @@ function Qe() {
|
|
|
111
116
|
}
|
|
112
117
|
throw t;
|
|
113
118
|
}
|
|
114
|
-
function
|
|
115
|
-
var
|
|
116
|
-
(
|
|
117
|
-
var
|
|
118
|
-
if (t === null)
|
|
119
|
+
function j(t, o, c, a, _) {
|
|
120
|
+
var R = typeof t;
|
|
121
|
+
(R === "undefined" || R === "boolean") && (t = null);
|
|
122
|
+
var p = !1;
|
|
123
|
+
if (t === null) p = !0;
|
|
119
124
|
else
|
|
120
|
-
switch (
|
|
125
|
+
switch (R) {
|
|
121
126
|
case "bigint":
|
|
122
127
|
case "string":
|
|
123
128
|
case "number":
|
|
124
|
-
|
|
129
|
+
p = !0;
|
|
125
130
|
break;
|
|
126
131
|
case "object":
|
|
127
132
|
switch (t.$$typeof) {
|
|
128
|
-
case
|
|
133
|
+
case v:
|
|
129
134
|
case r:
|
|
130
|
-
|
|
135
|
+
p = !0;
|
|
131
136
|
break;
|
|
132
|
-
case
|
|
133
|
-
return
|
|
134
|
-
|
|
135
|
-
|
|
137
|
+
case $:
|
|
138
|
+
return p = t._init, j(
|
|
139
|
+
p(t._payload),
|
|
140
|
+
o,
|
|
136
141
|
c,
|
|
137
142
|
a,
|
|
138
|
-
|
|
143
|
+
_
|
|
139
144
|
);
|
|
140
145
|
}
|
|
141
146
|
}
|
|
142
|
-
if (
|
|
143
|
-
return
|
|
144
|
-
return
|
|
145
|
-
})) :
|
|
146
|
-
|
|
147
|
-
c + (
|
|
148
|
-
|
|
147
|
+
if (p)
|
|
148
|
+
return _ = _(t), p = a === "" ? "." + re(t, 0) : a, ae(_) ? (c = "", p != null && (c = p.replace(T, "$&/") + "/"), j(_, o, c, "", function(V) {
|
|
149
|
+
return V;
|
|
150
|
+
})) : _ != null && (W(_) && (_ = U(
|
|
151
|
+
_,
|
|
152
|
+
c + (_.key == null || t && t.key === _.key ? "" : ("" + _.key).replace(
|
|
153
|
+
T,
|
|
149
154
|
"$&/"
|
|
150
|
-
) + "/") +
|
|
151
|
-
)),
|
|
152
|
-
|
|
153
|
-
var
|
|
154
|
-
if (
|
|
155
|
-
for (var
|
|
156
|
-
a = t[
|
|
155
|
+
) + "/") + p
|
|
156
|
+
)), o.push(_)), 1;
|
|
157
|
+
p = 0;
|
|
158
|
+
var I = a === "" ? "." : a + ":";
|
|
159
|
+
if (ae(t))
|
|
160
|
+
for (var w = 0; w < t.length; w++)
|
|
161
|
+
a = t[w], R = I + re(a, w), p += j(
|
|
157
162
|
a,
|
|
158
|
-
|
|
163
|
+
o,
|
|
159
164
|
c,
|
|
160
|
-
|
|
161
|
-
|
|
165
|
+
R,
|
|
166
|
+
_
|
|
162
167
|
);
|
|
163
|
-
else if (
|
|
164
|
-
for (t =
|
|
165
|
-
a = a.value,
|
|
168
|
+
else if (w = ue(t), typeof w == "function")
|
|
169
|
+
for (t = w.call(t), w = 0; !(a = t.next()).done; )
|
|
170
|
+
a = a.value, R = I + re(a, w++), p += j(
|
|
166
171
|
a,
|
|
167
|
-
|
|
172
|
+
o,
|
|
168
173
|
c,
|
|
169
|
-
|
|
170
|
-
|
|
174
|
+
R,
|
|
175
|
+
_
|
|
171
176
|
);
|
|
172
|
-
else if (
|
|
177
|
+
else if (R === "object") {
|
|
173
178
|
if (typeof t.then == "function")
|
|
174
|
-
return
|
|
179
|
+
return j(
|
|
175
180
|
K(t),
|
|
176
|
-
|
|
181
|
+
o,
|
|
177
182
|
c,
|
|
178
183
|
a,
|
|
179
|
-
|
|
184
|
+
_
|
|
180
185
|
);
|
|
181
|
-
throw
|
|
182
|
-
"Objects are not valid as a React child (found: " + (
|
|
186
|
+
throw o = String(t), Error(
|
|
187
|
+
"Objects are not valid as a React child (found: " + (o === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : o) + "). If you meant to render a collection of children, use an array instead."
|
|
183
188
|
);
|
|
184
189
|
}
|
|
185
|
-
return
|
|
190
|
+
return p;
|
|
186
191
|
}
|
|
187
|
-
function
|
|
192
|
+
function q(t, o, c) {
|
|
188
193
|
if (t == null) return t;
|
|
189
|
-
var a = [],
|
|
190
|
-
return
|
|
191
|
-
return
|
|
194
|
+
var a = [], _ = 0;
|
|
195
|
+
return j(t, a, "", "", function(R) {
|
|
196
|
+
return o.call(c, R, _++);
|
|
192
197
|
}), a;
|
|
193
198
|
}
|
|
194
|
-
function
|
|
199
|
+
function oe(t) {
|
|
195
200
|
if (t._status === -1) {
|
|
196
|
-
var
|
|
197
|
-
|
|
201
|
+
var o = t._result;
|
|
202
|
+
o = o(), o.then(
|
|
198
203
|
function(c) {
|
|
199
204
|
(t._status === 0 || t._status === -1) && (t._status = 1, t._result = c);
|
|
200
205
|
},
|
|
201
206
|
function(c) {
|
|
202
207
|
(t._status === 0 || t._status === -1) && (t._status = 2, t._result = c);
|
|
203
208
|
}
|
|
204
|
-
), t._status === -1 && (t._status = 0, t._result =
|
|
209
|
+
), t._status === -1 && (t._status = 0, t._result = o);
|
|
205
210
|
}
|
|
206
211
|
if (t._status === 1) return t._result.default;
|
|
207
212
|
throw t._result;
|
|
208
213
|
}
|
|
209
|
-
var
|
|
214
|
+
var X = typeof reportError == "function" ? reportError : function(t) {
|
|
210
215
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
211
|
-
var
|
|
216
|
+
var o = new window.ErrorEvent("error", {
|
|
212
217
|
bubbles: !0,
|
|
213
218
|
cancelable: !0,
|
|
214
219
|
message: typeof t == "object" && t !== null && typeof t.message == "string" ? String(t.message) : String(t),
|
|
215
220
|
error: t
|
|
216
221
|
});
|
|
217
|
-
if (!window.dispatchEvent(
|
|
222
|
+
if (!window.dispatchEvent(o)) return;
|
|
218
223
|
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
219
224
|
process.emit("uncaughtException", t);
|
|
220
225
|
return;
|
|
221
226
|
}
|
|
222
227
|
console.error(t);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
228
|
+
};
|
|
229
|
+
function ce() {
|
|
230
|
+
}
|
|
231
|
+
return f.Children = {
|
|
232
|
+
map: q,
|
|
233
|
+
forEach: function(t, o, c) {
|
|
234
|
+
q(
|
|
227
235
|
t,
|
|
228
236
|
function() {
|
|
229
|
-
|
|
237
|
+
o.apply(this, arguments);
|
|
230
238
|
},
|
|
231
239
|
c
|
|
232
240
|
);
|
|
233
241
|
},
|
|
234
242
|
count: function(t) {
|
|
235
|
-
var
|
|
236
|
-
return
|
|
237
|
-
|
|
238
|
-
}),
|
|
243
|
+
var o = 0;
|
|
244
|
+
return q(t, function() {
|
|
245
|
+
o++;
|
|
246
|
+
}), o;
|
|
239
247
|
},
|
|
240
248
|
toArray: function(t) {
|
|
241
|
-
return
|
|
242
|
-
return
|
|
249
|
+
return q(t, function(o) {
|
|
250
|
+
return o;
|
|
243
251
|
}) || [];
|
|
244
252
|
},
|
|
245
253
|
only: function(t) {
|
|
246
|
-
if (!
|
|
254
|
+
if (!W(t))
|
|
247
255
|
throw Error(
|
|
248
256
|
"React.Children.only expected to receive a single React element child."
|
|
249
257
|
);
|
|
250
258
|
return t;
|
|
251
259
|
}
|
|
252
|
-
}
|
|
253
|
-
return f.Activity = Q, f.Children = pe, f.Component = Y, f.Fragment = y, f.Profiler = M, f.PureComponent = ne, f.StrictMode = w, f.Suspense = C, f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = _, f.__COMPILER_RUNTIME = {
|
|
260
|
+
}, f.Component = Y, f.Fragment = h, f.Profiler = M, f.PureComponent = ee, f.StrictMode = b, f.Suspense = A, f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = g, f.__COMPILER_RUNTIME = {
|
|
254
261
|
__proto__: null,
|
|
255
262
|
c: function(t) {
|
|
256
|
-
return
|
|
263
|
+
return g.H.useMemoCache(t);
|
|
257
264
|
}
|
|
258
265
|
}, f.cache = function(t) {
|
|
259
266
|
return function() {
|
|
260
267
|
return t.apply(null, arguments);
|
|
261
268
|
};
|
|
262
|
-
}, f.
|
|
263
|
-
return null;
|
|
264
|
-
}, f.cloneElement = function(t, s, c) {
|
|
269
|
+
}, f.cloneElement = function(t, o, c) {
|
|
265
270
|
if (t == null)
|
|
266
271
|
throw Error(
|
|
267
272
|
"The argument must be a React element, but you passed " + t + "."
|
|
268
273
|
);
|
|
269
|
-
var a =
|
|
270
|
-
if (
|
|
271
|
-
for (
|
|
272
|
-
!
|
|
273
|
-
var
|
|
274
|
-
if (
|
|
275
|
-
else if (1 <
|
|
276
|
-
for (var
|
|
277
|
-
|
|
278
|
-
a.children =
|
|
274
|
+
var a = J({}, t.props), _ = t.key, R = void 0;
|
|
275
|
+
if (o != null)
|
|
276
|
+
for (p in o.ref !== void 0 && (R = void 0), o.key !== void 0 && (_ = "" + o.key), o)
|
|
277
|
+
!te.call(o, p) || p === "key" || p === "__self" || p === "__source" || p === "ref" && o.ref === void 0 || (a[p] = o[p]);
|
|
278
|
+
var p = arguments.length - 2;
|
|
279
|
+
if (p === 1) a.children = c;
|
|
280
|
+
else if (1 < p) {
|
|
281
|
+
for (var I = Array(p), w = 0; w < p; w++)
|
|
282
|
+
I[w] = arguments[w + 2];
|
|
283
|
+
a.children = I;
|
|
279
284
|
}
|
|
280
|
-
return
|
|
285
|
+
return ne(t.type, _, void 0, void 0, R, a);
|
|
281
286
|
}, f.createContext = function(t) {
|
|
282
287
|
return t = {
|
|
283
|
-
$$typeof:
|
|
288
|
+
$$typeof: G,
|
|
284
289
|
_currentValue: t,
|
|
285
290
|
_currentValue2: t,
|
|
286
291
|
_threadCount: 0,
|
|
287
292
|
Provider: null,
|
|
288
293
|
Consumer: null
|
|
289
294
|
}, t.Provider = t, t.Consumer = {
|
|
290
|
-
$$typeof:
|
|
295
|
+
$$typeof: k,
|
|
291
296
|
_context: t
|
|
292
297
|
}, t;
|
|
293
|
-
}, f.createElement = function(t,
|
|
294
|
-
var a,
|
|
295
|
-
if (
|
|
296
|
-
for (a in
|
|
297
|
-
|
|
298
|
-
var
|
|
299
|
-
if (
|
|
300
|
-
else if (1 <
|
|
301
|
-
for (var
|
|
302
|
-
|
|
303
|
-
|
|
298
|
+
}, f.createElement = function(t, o, c) {
|
|
299
|
+
var a, _ = {}, R = null;
|
|
300
|
+
if (o != null)
|
|
301
|
+
for (a in o.key !== void 0 && (R = "" + o.key), o)
|
|
302
|
+
te.call(o, a) && a !== "key" && a !== "__self" && a !== "__source" && (_[a] = o[a]);
|
|
303
|
+
var p = arguments.length - 2;
|
|
304
|
+
if (p === 1) _.children = c;
|
|
305
|
+
else if (1 < p) {
|
|
306
|
+
for (var I = Array(p), w = 0; w < p; w++)
|
|
307
|
+
I[w] = arguments[w + 2];
|
|
308
|
+
_.children = I;
|
|
304
309
|
}
|
|
305
310
|
if (t && t.defaultProps)
|
|
306
|
-
for (a in
|
|
307
|
-
|
|
308
|
-
return
|
|
311
|
+
for (a in p = t.defaultProps, p)
|
|
312
|
+
_[a] === void 0 && (_[a] = p[a]);
|
|
313
|
+
return ne(t, R, void 0, void 0, null, _);
|
|
309
314
|
}, f.createRef = function() {
|
|
310
315
|
return { current: null };
|
|
311
316
|
}, f.forwardRef = function(t) {
|
|
312
317
|
return { $$typeof: O, render: t };
|
|
313
|
-
}, f.isValidElement =
|
|
318
|
+
}, f.isValidElement = W, f.lazy = function(t) {
|
|
314
319
|
return {
|
|
315
|
-
$$typeof:
|
|
320
|
+
$$typeof: $,
|
|
316
321
|
_payload: { _status: -1, _result: t },
|
|
317
|
-
_init:
|
|
322
|
+
_init: oe
|
|
318
323
|
};
|
|
319
|
-
}, f.memo = function(t,
|
|
324
|
+
}, f.memo = function(t, o) {
|
|
320
325
|
return {
|
|
321
|
-
$$typeof:
|
|
326
|
+
$$typeof: D,
|
|
322
327
|
type: t,
|
|
323
|
-
compare:
|
|
328
|
+
compare: o === void 0 ? null : o
|
|
324
329
|
};
|
|
325
330
|
}, f.startTransition = function(t) {
|
|
326
|
-
var
|
|
327
|
-
|
|
331
|
+
var o = g.T, c = {};
|
|
332
|
+
g.T = c;
|
|
328
333
|
try {
|
|
329
|
-
var a = t(),
|
|
330
|
-
|
|
331
|
-
} catch (
|
|
332
|
-
|
|
334
|
+
var a = t(), _ = g.S;
|
|
335
|
+
_ !== null && _(c, a), typeof a == "object" && a !== null && typeof a.then == "function" && a.then(ce, X);
|
|
336
|
+
} catch (R) {
|
|
337
|
+
X(R);
|
|
333
338
|
} finally {
|
|
334
|
-
|
|
339
|
+
g.T = o;
|
|
335
340
|
}
|
|
336
341
|
}, f.unstable_useCacheRefresh = function() {
|
|
337
|
-
return
|
|
342
|
+
return g.H.useCacheRefresh();
|
|
338
343
|
}, f.use = function(t) {
|
|
339
|
-
return
|
|
340
|
-
}, f.useActionState = function(t,
|
|
341
|
-
return
|
|
342
|
-
}, f.useCallback = function(t,
|
|
343
|
-
return
|
|
344
|
+
return g.H.use(t);
|
|
345
|
+
}, f.useActionState = function(t, o, c) {
|
|
346
|
+
return g.H.useActionState(t, o, c);
|
|
347
|
+
}, f.useCallback = function(t, o) {
|
|
348
|
+
return g.H.useCallback(t, o);
|
|
344
349
|
}, f.useContext = function(t) {
|
|
345
|
-
return
|
|
350
|
+
return g.H.useContext(t);
|
|
346
351
|
}, f.useDebugValue = function() {
|
|
347
|
-
}, f.useDeferredValue = function(t,
|
|
348
|
-
return
|
|
349
|
-
}, f.useEffect = function(t,
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
352
|
+
}, f.useDeferredValue = function(t, o) {
|
|
353
|
+
return g.H.useDeferredValue(t, o);
|
|
354
|
+
}, f.useEffect = function(t, o, c) {
|
|
355
|
+
var a = g.H;
|
|
356
|
+
if (typeof c == "function")
|
|
357
|
+
throw Error(
|
|
358
|
+
"useEffect CRUD overload is not enabled in this build of React."
|
|
359
|
+
);
|
|
360
|
+
return a.useEffect(t, o);
|
|
353
361
|
}, f.useId = function() {
|
|
354
|
-
return
|
|
355
|
-
}, f.useImperativeHandle = function(t,
|
|
356
|
-
return
|
|
357
|
-
}, f.useInsertionEffect = function(t,
|
|
358
|
-
return
|
|
359
|
-
}, f.useLayoutEffect = function(t,
|
|
360
|
-
return
|
|
361
|
-
}, f.useMemo = function(t,
|
|
362
|
-
return
|
|
363
|
-
}, f.useOptimistic = function(t,
|
|
364
|
-
return
|
|
365
|
-
}, f.useReducer = function(t,
|
|
366
|
-
return
|
|
362
|
+
return g.H.useId();
|
|
363
|
+
}, f.useImperativeHandle = function(t, o, c) {
|
|
364
|
+
return g.H.useImperativeHandle(t, o, c);
|
|
365
|
+
}, f.useInsertionEffect = function(t, o) {
|
|
366
|
+
return g.H.useInsertionEffect(t, o);
|
|
367
|
+
}, f.useLayoutEffect = function(t, o) {
|
|
368
|
+
return g.H.useLayoutEffect(t, o);
|
|
369
|
+
}, f.useMemo = function(t, o) {
|
|
370
|
+
return g.H.useMemo(t, o);
|
|
371
|
+
}, f.useOptimistic = function(t, o) {
|
|
372
|
+
return g.H.useOptimistic(t, o);
|
|
373
|
+
}, f.useReducer = function(t, o, c) {
|
|
374
|
+
return g.H.useReducer(t, o, c);
|
|
367
375
|
}, f.useRef = function(t) {
|
|
368
|
-
return
|
|
376
|
+
return g.H.useRef(t);
|
|
369
377
|
}, f.useState = function(t) {
|
|
370
|
-
return
|
|
371
|
-
}, f.useSyncExternalStore = function(t,
|
|
372
|
-
return
|
|
378
|
+
return g.H.useState(t);
|
|
379
|
+
}, f.useSyncExternalStore = function(t, o, c) {
|
|
380
|
+
return g.H.useSyncExternalStore(
|
|
373
381
|
t,
|
|
374
|
-
|
|
382
|
+
o,
|
|
375
383
|
c
|
|
376
384
|
);
|
|
377
385
|
}, f.useTransition = function() {
|
|
378
|
-
return
|
|
379
|
-
}, f.version = "19.
|
|
386
|
+
return g.H.useTransition();
|
|
387
|
+
}, f.version = "19.1.1", f;
|
|
380
388
|
}
|
|
381
|
-
var
|
|
389
|
+
var se = { exports: {} };
|
|
382
390
|
/**
|
|
383
391
|
* @license React
|
|
384
392
|
* react.development.js
|
|
@@ -388,13 +396,13 @@ var ae = { exports: {} };
|
|
|
388
396
|
* This source code is licensed under the MIT license found in the
|
|
389
397
|
* LICENSE file in the root directory of this source tree.
|
|
390
398
|
*/
|
|
391
|
-
|
|
392
|
-
var
|
|
393
|
-
function
|
|
394
|
-
return
|
|
399
|
+
se.exports;
|
|
400
|
+
var De;
|
|
401
|
+
function Qe() {
|
|
402
|
+
return De || (De = 1, (function(v, r) {
|
|
395
403
|
process.env.NODE_ENV !== "production" && (function() {
|
|
396
|
-
function
|
|
397
|
-
Object.defineProperty(
|
|
404
|
+
function h(e, n) {
|
|
405
|
+
Object.defineProperty(k.prototype, e, {
|
|
398
406
|
get: function() {
|
|
399
407
|
console.warn(
|
|
400
408
|
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
@@ -404,143 +412,140 @@ function Xe() {
|
|
|
404
412
|
}
|
|
405
413
|
});
|
|
406
414
|
}
|
|
407
|
-
function
|
|
408
|
-
return e === null || typeof e != "object" ? null : (e =
|
|
415
|
+
function b(e) {
|
|
416
|
+
return e === null || typeof e != "object" ? null : (e = ve && e[ve] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
409
417
|
}
|
|
410
418
|
function M(e, n) {
|
|
411
419
|
e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
|
|
412
|
-
var
|
|
413
|
-
|
|
420
|
+
var s = e + "." + n;
|
|
421
|
+
Re[s] || (console.error(
|
|
414
422
|
"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
|
|
415
423
|
n,
|
|
416
424
|
e
|
|
417
|
-
),
|
|
425
|
+
), Re[s] = !0);
|
|
418
426
|
}
|
|
419
|
-
function
|
|
420
|
-
this.props = e, this.context = n, this.refs = _e, this.updater =
|
|
427
|
+
function k(e, n, s) {
|
|
428
|
+
this.props = e, this.context = n, this.refs = _e, this.updater = s || Te;
|
|
421
429
|
}
|
|
422
|
-
function
|
|
430
|
+
function G() {
|
|
423
431
|
}
|
|
424
|
-
function O(e, n,
|
|
425
|
-
this.props = e, this.context = n, this.refs = _e, this.updater =
|
|
432
|
+
function O(e, n, s) {
|
|
433
|
+
this.props = e, this.context = n, this.refs = _e, this.updater = s || Te;
|
|
426
434
|
}
|
|
427
|
-
function
|
|
428
|
-
}
|
|
429
|
-
function G(e) {
|
|
435
|
+
function A(e) {
|
|
430
436
|
return "" + e;
|
|
431
437
|
}
|
|
432
|
-
function
|
|
438
|
+
function D(e) {
|
|
433
439
|
try {
|
|
434
|
-
|
|
440
|
+
A(e);
|
|
435
441
|
var n = !1;
|
|
436
442
|
} catch {
|
|
437
443
|
n = !0;
|
|
438
444
|
}
|
|
439
445
|
if (n) {
|
|
440
446
|
n = console;
|
|
441
|
-
var
|
|
442
|
-
return
|
|
447
|
+
var s = n.error, u = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
448
|
+
return s.call(
|
|
443
449
|
n,
|
|
444
450
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
445
451
|
u
|
|
446
|
-
),
|
|
452
|
+
), A(e);
|
|
447
453
|
}
|
|
448
454
|
}
|
|
449
|
-
function
|
|
455
|
+
function $(e) {
|
|
450
456
|
if (e == null) return null;
|
|
451
457
|
if (typeof e == "function")
|
|
452
|
-
return e.$$typeof ===
|
|
458
|
+
return e.$$typeof === Ue ? null : e.displayName || e.name || null;
|
|
453
459
|
if (typeof e == "string") return e;
|
|
454
460
|
switch (e) {
|
|
455
461
|
case t:
|
|
456
462
|
return "Fragment";
|
|
457
463
|
case c:
|
|
458
464
|
return "Profiler";
|
|
459
|
-
case
|
|
465
|
+
case o:
|
|
460
466
|
return "StrictMode";
|
|
461
|
-
case
|
|
467
|
+
case p:
|
|
462
468
|
return "Suspense";
|
|
463
|
-
case
|
|
469
|
+
case I:
|
|
464
470
|
return "SuspenseList";
|
|
465
|
-
case
|
|
471
|
+
case Ye:
|
|
466
472
|
return "Activity";
|
|
467
473
|
}
|
|
468
474
|
if (typeof e == "object")
|
|
469
475
|
switch (typeof e.tag == "number" && console.error(
|
|
470
476
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
471
477
|
), e.$$typeof) {
|
|
472
|
-
case
|
|
478
|
+
case ce:
|
|
473
479
|
return "Portal";
|
|
474
|
-
case
|
|
475
|
-
return e.displayName || "Context";
|
|
480
|
+
case _:
|
|
481
|
+
return (e.displayName || "Context") + ".Provider";
|
|
476
482
|
case a:
|
|
477
483
|
return (e._context.displayName || "Context") + ".Consumer";
|
|
478
|
-
case
|
|
484
|
+
case R:
|
|
479
485
|
var n = e.render;
|
|
480
486
|
return e = e.displayName, e || (e = n.displayName || n.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
481
|
-
case
|
|
482
|
-
return n = e.displayName || null, n !== null ? n :
|
|
483
|
-
case
|
|
487
|
+
case w:
|
|
488
|
+
return n = e.displayName || null, n !== null ? n : $(e.type) || "Memo";
|
|
489
|
+
case V:
|
|
484
490
|
n = e._payload, e = e._init;
|
|
485
491
|
try {
|
|
486
|
-
return
|
|
492
|
+
return $(e(n));
|
|
487
493
|
} catch {
|
|
488
494
|
}
|
|
489
495
|
}
|
|
490
496
|
return null;
|
|
491
497
|
}
|
|
492
|
-
function
|
|
498
|
+
function F(e) {
|
|
493
499
|
if (e === t) return "<>";
|
|
494
|
-
if (typeof e == "object" && e !== null && e.$$typeof ===
|
|
500
|
+
if (typeof e == "object" && e !== null && e.$$typeof === V)
|
|
495
501
|
return "<...>";
|
|
496
502
|
try {
|
|
497
|
-
var n =
|
|
503
|
+
var n = $(e);
|
|
498
504
|
return n ? "<" + n + ">" : "<...>";
|
|
499
505
|
} catch {
|
|
500
506
|
return "<...>";
|
|
501
507
|
}
|
|
502
508
|
}
|
|
503
|
-
function
|
|
504
|
-
var e =
|
|
509
|
+
function ue() {
|
|
510
|
+
var e = E.A;
|
|
505
511
|
return e === null ? null : e.getOwner();
|
|
506
512
|
}
|
|
507
|
-
function
|
|
513
|
+
function x() {
|
|
508
514
|
return Error("react-stack-top-frame");
|
|
509
515
|
}
|
|
510
|
-
function
|
|
511
|
-
if (
|
|
516
|
+
function J(e) {
|
|
517
|
+
if (le.call(e, "key")) {
|
|
512
518
|
var n = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
513
519
|
if (n && n.isReactWarning) return !1;
|
|
514
520
|
}
|
|
515
521
|
return e.key !== void 0;
|
|
516
522
|
}
|
|
517
|
-
function
|
|
518
|
-
function
|
|
519
|
-
|
|
523
|
+
function ie(e, n) {
|
|
524
|
+
function s() {
|
|
525
|
+
Ce || (Ce = !0, console.error(
|
|
520
526
|
"%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://react.dev/link/special-props)",
|
|
521
527
|
n
|
|
522
528
|
));
|
|
523
529
|
}
|
|
524
|
-
|
|
525
|
-
get:
|
|
530
|
+
s.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
531
|
+
get: s,
|
|
526
532
|
configurable: !0
|
|
527
533
|
});
|
|
528
534
|
}
|
|
529
535
|
function Y() {
|
|
530
|
-
var e =
|
|
531
|
-
return
|
|
536
|
+
var e = $(this.type);
|
|
537
|
+
return ke[e] || (ke[e] = !0, console.error(
|
|
532
538
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
533
539
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
534
540
|
}
|
|
535
|
-
function
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
$$typeof: F,
|
|
541
|
+
function Q(e, n, s, u, i, m, l, y) {
|
|
542
|
+
return s = m.ref, e = {
|
|
543
|
+
$$typeof: X,
|
|
539
544
|
type: e,
|
|
540
545
|
key: n,
|
|
541
|
-
props:
|
|
542
|
-
_owner:
|
|
543
|
-
}, (
|
|
546
|
+
props: m,
|
|
547
|
+
_owner: i
|
|
548
|
+
}, (s !== void 0 ? s : null) !== null ? Object.defineProperty(e, "ref", {
|
|
544
549
|
enumerable: !1,
|
|
545
550
|
get: Y
|
|
546
551
|
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
@@ -557,47 +562,48 @@ function Xe() {
|
|
|
557
562
|
configurable: !1,
|
|
558
563
|
enumerable: !1,
|
|
559
564
|
writable: !0,
|
|
560
|
-
value:
|
|
565
|
+
value: l
|
|
561
566
|
}), Object.defineProperty(e, "_debugTask", {
|
|
562
567
|
configurable: !1,
|
|
563
568
|
enumerable: !1,
|
|
564
569
|
writable: !0,
|
|
565
|
-
value:
|
|
570
|
+
value: y
|
|
566
571
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
567
572
|
}
|
|
568
|
-
function
|
|
569
|
-
return n =
|
|
573
|
+
function ee(e, n) {
|
|
574
|
+
return n = Q(
|
|
570
575
|
e.type,
|
|
571
576
|
n,
|
|
572
|
-
|
|
577
|
+
void 0,
|
|
578
|
+
void 0,
|
|
573
579
|
e._owner,
|
|
580
|
+
e.props,
|
|
574
581
|
e._debugStack,
|
|
575
582
|
e._debugTask
|
|
576
583
|
), e._store && (n._store.validated = e._store.validated), n;
|
|
577
584
|
}
|
|
578
|
-
function
|
|
579
|
-
|
|
585
|
+
function L(e) {
|
|
586
|
+
return typeof e == "object" && e !== null && e.$$typeof === X;
|
|
580
587
|
}
|
|
581
|
-
function
|
|
582
|
-
return typeof e == "object" && e !== null && e.$$typeof === F;
|
|
583
|
-
}
|
|
584
|
-
function re(e) {
|
|
588
|
+
function ae(e) {
|
|
585
589
|
var n = { "=": "=0", ":": "=2" };
|
|
586
|
-
return "$" + e.replace(/[=:]/g, function(
|
|
587
|
-
return n[
|
|
590
|
+
return "$" + e.replace(/[=:]/g, function(s) {
|
|
591
|
+
return n[s];
|
|
588
592
|
});
|
|
589
593
|
}
|
|
590
|
-
function
|
|
591
|
-
return typeof e == "object" && e !== null && e.key != null ? (
|
|
594
|
+
function g(e, n) {
|
|
595
|
+
return typeof e == "object" && e !== null && e.key != null ? (D(e.key), ae("" + e.key)) : n.toString(36);
|
|
596
|
+
}
|
|
597
|
+
function te() {
|
|
592
598
|
}
|
|
593
|
-
function
|
|
599
|
+
function ne(e) {
|
|
594
600
|
switch (e.status) {
|
|
595
601
|
case "fulfilled":
|
|
596
602
|
return e.value;
|
|
597
603
|
case "rejected":
|
|
598
604
|
throw e.reason;
|
|
599
605
|
default:
|
|
600
|
-
switch (typeof e.status == "string" ? e.then(
|
|
606
|
+
switch (typeof e.status == "string" ? e.then(te, te) : (e.status = "pending", e.then(
|
|
601
607
|
function(n) {
|
|
602
608
|
e.status === "pending" && (e.status = "fulfilled", e.value = n);
|
|
603
609
|
},
|
|
@@ -613,13 +619,13 @@ function Xe() {
|
|
|
613
619
|
}
|
|
614
620
|
throw e;
|
|
615
621
|
}
|
|
616
|
-
function
|
|
617
|
-
var
|
|
618
|
-
(
|
|
622
|
+
function U(e, n, s, u, i) {
|
|
623
|
+
var m = typeof e;
|
|
624
|
+
(m === "undefined" || m === "boolean") && (e = null);
|
|
619
625
|
var l = !1;
|
|
620
626
|
if (e === null) l = !0;
|
|
621
627
|
else
|
|
622
|
-
switch (
|
|
628
|
+
switch (m) {
|
|
623
629
|
case "bigint":
|
|
624
630
|
case "string":
|
|
625
631
|
case "number":
|
|
@@ -627,15 +633,15 @@ function Xe() {
|
|
|
627
633
|
break;
|
|
628
634
|
case "object":
|
|
629
635
|
switch (e.$$typeof) {
|
|
630
|
-
case
|
|
631
|
-
case
|
|
636
|
+
case X:
|
|
637
|
+
case ce:
|
|
632
638
|
l = !0;
|
|
633
639
|
break;
|
|
634
|
-
case
|
|
635
|
-
return l = e._init,
|
|
640
|
+
case V:
|
|
641
|
+
return l = e._init, U(
|
|
636
642
|
l(e._payload),
|
|
637
643
|
n,
|
|
638
|
-
|
|
644
|
+
s,
|
|
639
645
|
u,
|
|
640
646
|
i
|
|
641
647
|
);
|
|
@@ -643,43 +649,43 @@ function Xe() {
|
|
|
643
649
|
}
|
|
644
650
|
if (l) {
|
|
645
651
|
l = e, i = i(l);
|
|
646
|
-
var
|
|
647
|
-
return
|
|
648
|
-
return
|
|
649
|
-
})) : i != null && (
|
|
652
|
+
var y = u === "" ? "." + g(l, 0) : u;
|
|
653
|
+
return be(i) ? (s = "", y != null && (s = y.replace(Ne, "$&/") + "/"), U(i, n, s, "", function(z) {
|
|
654
|
+
return z;
|
|
655
|
+
})) : i != null && (L(i) && (i.key != null && (l && l.key === i.key || D(i.key)), s = ee(
|
|
650
656
|
i,
|
|
651
|
-
|
|
652
|
-
|
|
657
|
+
s + (i.key == null || l && l.key === i.key ? "" : ("" + i.key).replace(
|
|
658
|
+
Ne,
|
|
653
659
|
"$&/"
|
|
654
|
-
) + "/") +
|
|
655
|
-
), u !== "" && l != null &&
|
|
660
|
+
) + "/") + y
|
|
661
|
+
), u !== "" && l != null && L(l) && l.key == null && l._store && !l._store.validated && (s._store.validated = 2), i = s), n.push(i)), 1;
|
|
656
662
|
}
|
|
657
|
-
if (l = 0,
|
|
663
|
+
if (l = 0, y = u === "" ? "." : u + ":", be(e))
|
|
658
664
|
for (var d = 0; d < e.length; d++)
|
|
659
|
-
u = e[d],
|
|
665
|
+
u = e[d], m = y + g(u, d), l += U(
|
|
660
666
|
u,
|
|
661
667
|
n,
|
|
662
|
-
|
|
663
|
-
|
|
668
|
+
s,
|
|
669
|
+
m,
|
|
664
670
|
i
|
|
665
671
|
);
|
|
666
|
-
else if (d =
|
|
667
|
-
for (d === e.entries && (
|
|
672
|
+
else if (d = b(e), typeof d == "function")
|
|
673
|
+
for (d === e.entries && (Ae || console.warn(
|
|
668
674
|
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
669
|
-
),
|
|
670
|
-
u = u.value,
|
|
675
|
+
), Ae = !0), e = d.call(e), d = 0; !(u = e.next()).done; )
|
|
676
|
+
u = u.value, m = y + g(u, d++), l += U(
|
|
671
677
|
u,
|
|
672
678
|
n,
|
|
673
|
-
|
|
674
|
-
|
|
679
|
+
s,
|
|
680
|
+
m,
|
|
675
681
|
i
|
|
676
682
|
);
|
|
677
|
-
else if (
|
|
683
|
+
else if (m === "object") {
|
|
678
684
|
if (typeof e.then == "function")
|
|
679
|
-
return
|
|
680
|
-
|
|
685
|
+
return U(
|
|
686
|
+
ne(e),
|
|
681
687
|
n,
|
|
682
|
-
|
|
688
|
+
s,
|
|
683
689
|
u,
|
|
684
690
|
i
|
|
685
691
|
);
|
|
@@ -689,39 +695,24 @@ function Xe() {
|
|
|
689
695
|
}
|
|
690
696
|
return l;
|
|
691
697
|
}
|
|
692
|
-
function
|
|
698
|
+
function W(e, n, s) {
|
|
693
699
|
if (e == null) return e;
|
|
694
700
|
var u = [], i = 0;
|
|
695
|
-
return
|
|
696
|
-
return n.call(
|
|
701
|
+
return U(e, u, "", "", function(m) {
|
|
702
|
+
return n.call(s, m, i++);
|
|
697
703
|
}), u;
|
|
698
704
|
}
|
|
699
|
-
function
|
|
705
|
+
function me(e) {
|
|
700
706
|
if (e._status === -1) {
|
|
701
|
-
var n = e.
|
|
702
|
-
n
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
function(i) {
|
|
706
|
-
if (e._status === 0 || e._status === -1) {
|
|
707
|
-
e._status = 1, e._result = i;
|
|
708
|
-
var h = e._ioInfo;
|
|
709
|
-
h != null && (h.end = performance.now()), o.status === void 0 && (o.status = "fulfilled", o.value = i);
|
|
710
|
-
}
|
|
707
|
+
var n = e._result;
|
|
708
|
+
n = n(), n.then(
|
|
709
|
+
function(s) {
|
|
710
|
+
(e._status === 0 || e._status === -1) && (e._status = 1, e._result = s);
|
|
711
711
|
},
|
|
712
|
-
function(
|
|
713
|
-
|
|
714
|
-
e._status = 2, e._result = i;
|
|
715
|
-
var h = e._ioInfo;
|
|
716
|
-
h != null && (h.end = performance.now()), o.status === void 0 && (o.status = "rejected", o.reason = i);
|
|
717
|
-
}
|
|
712
|
+
function(s) {
|
|
713
|
+
(e._status === 0 || e._status === -1) && (e._status = 2, e._result = s);
|
|
718
714
|
}
|
|
719
|
-
),
|
|
720
|
-
n.value = o;
|
|
721
|
-
var u = o.displayName;
|
|
722
|
-
typeof u == "string" && (n.name = u);
|
|
723
|
-
}
|
|
724
|
-
e._status === -1 && (e._status = 0, e._result = o);
|
|
715
|
+
), e._status === -1 && (e._status = 0, e._result = n);
|
|
725
716
|
}
|
|
726
717
|
if (e._status === 1)
|
|
727
718
|
return n = e._result, n === void 0 && console.error(
|
|
@@ -741,8 +732,8 @@ Your code should look like:
|
|
|
741
732
|
), n.default;
|
|
742
733
|
throw e._result;
|
|
743
734
|
}
|
|
744
|
-
function
|
|
745
|
-
var e =
|
|
735
|
+
function T() {
|
|
736
|
+
var e = E.H;
|
|
746
737
|
return e === null && console.error(
|
|
747
738
|
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
748
739
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
@@ -751,80 +742,79 @@ Your code should look like:
|
|
|
751
742
|
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
752
743
|
), e;
|
|
753
744
|
}
|
|
754
|
-
function
|
|
755
|
-
p.asyncTransitions--;
|
|
745
|
+
function re() {
|
|
756
746
|
}
|
|
757
|
-
function
|
|
758
|
-
if (
|
|
747
|
+
function B(e) {
|
|
748
|
+
if (pe === null)
|
|
759
749
|
try {
|
|
760
750
|
var n = ("require" + Math.random()).slice(0, 7);
|
|
761
|
-
|
|
762
|
-
|
|
751
|
+
pe = (v && v[n]).call(
|
|
752
|
+
v,
|
|
763
753
|
"timers"
|
|
764
754
|
).setImmediate;
|
|
765
755
|
} catch {
|
|
766
|
-
|
|
767
|
-
|
|
756
|
+
pe = function(u) {
|
|
757
|
+
je === !1 && (je = !0, typeof MessageChannel > "u" && console.error(
|
|
768
758
|
"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
|
|
769
759
|
));
|
|
770
760
|
var i = new MessageChannel();
|
|
771
761
|
i.port1.onmessage = u, i.port2.postMessage(void 0);
|
|
772
762
|
};
|
|
773
763
|
}
|
|
774
|
-
return
|
|
764
|
+
return pe(e);
|
|
775
765
|
}
|
|
776
766
|
function K(e) {
|
|
777
767
|
return 1 < e.length && typeof AggregateError == "function" ? new AggregateError(e) : e[0];
|
|
778
768
|
}
|
|
779
|
-
function
|
|
780
|
-
n !==
|
|
769
|
+
function j(e, n) {
|
|
770
|
+
n !== de - 1 && console.error(
|
|
781
771
|
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
782
|
-
),
|
|
772
|
+
), de = n;
|
|
783
773
|
}
|
|
784
|
-
function
|
|
785
|
-
var u =
|
|
774
|
+
function q(e, n, s) {
|
|
775
|
+
var u = E.actQueue;
|
|
786
776
|
if (u !== null)
|
|
787
777
|
if (u.length !== 0)
|
|
788
778
|
try {
|
|
789
|
-
|
|
790
|
-
return
|
|
779
|
+
oe(u), B(function() {
|
|
780
|
+
return q(e, n, s);
|
|
791
781
|
});
|
|
792
782
|
return;
|
|
793
783
|
} catch (i) {
|
|
794
|
-
|
|
784
|
+
E.thrownErrors.push(i);
|
|
795
785
|
}
|
|
796
|
-
else
|
|
797
|
-
0 <
|
|
786
|
+
else E.actQueue = null;
|
|
787
|
+
0 < E.thrownErrors.length ? (u = K(E.thrownErrors), E.thrownErrors.length = 0, s(u)) : n(e);
|
|
798
788
|
}
|
|
799
|
-
function
|
|
800
|
-
if (!
|
|
801
|
-
|
|
789
|
+
function oe(e) {
|
|
790
|
+
if (!ye) {
|
|
791
|
+
ye = !0;
|
|
802
792
|
var n = 0;
|
|
803
793
|
try {
|
|
804
794
|
for (; n < e.length; n++) {
|
|
805
|
-
var
|
|
795
|
+
var s = e[n];
|
|
806
796
|
do {
|
|
807
|
-
|
|
808
|
-
var u =
|
|
797
|
+
E.didUsePromise = !1;
|
|
798
|
+
var u = s(!1);
|
|
809
799
|
if (u !== null) {
|
|
810
|
-
if (
|
|
811
|
-
e[n] =
|
|
800
|
+
if (E.didUsePromise) {
|
|
801
|
+
e[n] = s, e.splice(0, n);
|
|
812
802
|
return;
|
|
813
803
|
}
|
|
814
|
-
|
|
804
|
+
s = u;
|
|
815
805
|
} else break;
|
|
816
806
|
} while (!0);
|
|
817
807
|
}
|
|
818
808
|
e.length = 0;
|
|
819
809
|
} catch (i) {
|
|
820
|
-
e.splice(0, n + 1),
|
|
810
|
+
e.splice(0, n + 1), E.thrownErrors.push(i);
|
|
821
811
|
} finally {
|
|
822
|
-
|
|
812
|
+
ye = !1;
|
|
823
813
|
}
|
|
824
814
|
}
|
|
825
815
|
}
|
|
826
816
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
827
|
-
var
|
|
817
|
+
var X = Symbol.for("react.transitional.element"), ce = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), R = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), Ye = Symbol.for("react.activity"), ve = Symbol.iterator, Re = {}, Te = {
|
|
828
818
|
isMounted: function() {
|
|
829
819
|
return !1;
|
|
830
820
|
},
|
|
@@ -837,17 +827,17 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
837
827
|
enqueueSetState: function(e) {
|
|
838
828
|
M(e, "setState");
|
|
839
829
|
}
|
|
840
|
-
},
|
|
841
|
-
Object.freeze(_e),
|
|
830
|
+
}, we = Object.assign, _e = {};
|
|
831
|
+
Object.freeze(_e), k.prototype.isReactComponent = {}, k.prototype.setState = function(e, n) {
|
|
842
832
|
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
843
833
|
throw Error(
|
|
844
834
|
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
845
835
|
);
|
|
846
836
|
this.updater.enqueueSetState(this, e, n, "setState");
|
|
847
|
-
},
|
|
837
|
+
}, k.prototype.forceUpdate = function(e) {
|
|
848
838
|
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
849
839
|
};
|
|
850
|
-
var
|
|
840
|
+
var N = {
|
|
851
841
|
isMounted: [
|
|
852
842
|
"isMounted",
|
|
853
843
|
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
@@ -856,35 +846,35 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
856
846
|
"replaceState",
|
|
857
847
|
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
858
848
|
]
|
|
859
|
-
};
|
|
860
|
-
for (
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
var
|
|
849
|
+
}, fe;
|
|
850
|
+
for (fe in N)
|
|
851
|
+
N.hasOwnProperty(fe) && h(fe, N[fe]);
|
|
852
|
+
G.prototype = k.prototype, N = O.prototype = new G(), N.constructor = O, we(N, k.prototype), N.isPureReactComponent = !0;
|
|
853
|
+
var be = Array.isArray, Ue = Symbol.for("react.client.reference"), E = {
|
|
864
854
|
H: null,
|
|
865
855
|
A: null,
|
|
866
856
|
T: null,
|
|
867
857
|
S: null,
|
|
858
|
+
V: null,
|
|
868
859
|
actQueue: null,
|
|
869
|
-
asyncTransitions: 0,
|
|
870
860
|
isBatchingLegacy: !1,
|
|
871
861
|
didScheduleLegacyUpdate: !1,
|
|
872
862
|
didUsePromise: !1,
|
|
873
863
|
thrownErrors: [],
|
|
874
864
|
getCurrentStack: null,
|
|
875
865
|
recentlyCreatedOwnerStacks: 0
|
|
876
|
-
},
|
|
866
|
+
}, le = Object.prototype.hasOwnProperty, Oe = console.createTask ? console.createTask : function() {
|
|
877
867
|
return null;
|
|
878
868
|
};
|
|
879
|
-
|
|
869
|
+
N = {
|
|
880
870
|
react_stack_bottom_frame: function(e) {
|
|
881
871
|
return e();
|
|
882
872
|
}
|
|
883
873
|
};
|
|
884
|
-
var
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
)(),
|
|
874
|
+
var Ce, Se, ke = {}, We = N.react_stack_bottom_frame.bind(
|
|
875
|
+
N,
|
|
876
|
+
x
|
|
877
|
+
)(), qe = Oe(F(x)), Ae = !1, Ne = /\/+/g, Pe = typeof reportError == "function" ? reportError : function(e) {
|
|
888
878
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
889
879
|
var n = new window.ErrorEvent("error", {
|
|
890
880
|
bubbles: !0,
|
|
@@ -898,134 +888,130 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
898
888
|
return;
|
|
899
889
|
}
|
|
900
890
|
console.error(e);
|
|
901
|
-
},
|
|
891
|
+
}, je = !1, pe = null, de = 0, he = !1, ye = !1, Le = typeof queueMicrotask == "function" ? function(e) {
|
|
902
892
|
queueMicrotask(function() {
|
|
903
893
|
return queueMicrotask(e);
|
|
904
894
|
});
|
|
905
|
-
} :
|
|
906
|
-
|
|
895
|
+
} : B;
|
|
896
|
+
N = Object.freeze({
|
|
907
897
|
__proto__: null,
|
|
908
898
|
c: function(e) {
|
|
909
|
-
return
|
|
899
|
+
return T().useMemoCache(e);
|
|
910
900
|
}
|
|
911
|
-
})
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
V(
|
|
901
|
+
}), r.Children = {
|
|
902
|
+
map: W,
|
|
903
|
+
forEach: function(e, n, s) {
|
|
904
|
+
W(
|
|
916
905
|
e,
|
|
917
906
|
function() {
|
|
918
907
|
n.apply(this, arguments);
|
|
919
908
|
},
|
|
920
|
-
|
|
909
|
+
s
|
|
921
910
|
);
|
|
922
911
|
},
|
|
923
912
|
count: function(e) {
|
|
924
913
|
var n = 0;
|
|
925
|
-
return
|
|
914
|
+
return W(e, function() {
|
|
926
915
|
n++;
|
|
927
916
|
}), n;
|
|
928
917
|
},
|
|
929
918
|
toArray: function(e) {
|
|
930
|
-
return
|
|
919
|
+
return W(e, function(n) {
|
|
931
920
|
return n;
|
|
932
921
|
}) || [];
|
|
933
922
|
},
|
|
934
923
|
only: function(e) {
|
|
935
|
-
if (!
|
|
924
|
+
if (!L(e))
|
|
936
925
|
throw Error(
|
|
937
926
|
"React.Children.only expected to receive a single React element child."
|
|
938
927
|
);
|
|
939
928
|
return e;
|
|
940
929
|
}
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
var u = p.actQueue = n !== null ? n : [], i = !1;
|
|
930
|
+
}, r.Component = k, r.Fragment = t, r.Profiler = c, r.PureComponent = O, r.StrictMode = o, r.Suspense = p, r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = E, r.__COMPILER_RUNTIME = N, r.act = function(e) {
|
|
931
|
+
var n = E.actQueue, s = de;
|
|
932
|
+
de++;
|
|
933
|
+
var u = E.actQueue = n !== null ? n : [], i = !1;
|
|
946
934
|
try {
|
|
947
|
-
var
|
|
935
|
+
var m = e();
|
|
948
936
|
} catch (d) {
|
|
949
|
-
|
|
937
|
+
E.thrownErrors.push(d);
|
|
950
938
|
}
|
|
951
|
-
if (0 <
|
|
952
|
-
throw
|
|
953
|
-
if (
|
|
954
|
-
var l =
|
|
955
|
-
return
|
|
956
|
-
i ||
|
|
939
|
+
if (0 < E.thrownErrors.length)
|
|
940
|
+
throw j(n, s), e = K(E.thrownErrors), E.thrownErrors.length = 0, e;
|
|
941
|
+
if (m !== null && typeof m == "object" && typeof m.then == "function") {
|
|
942
|
+
var l = m;
|
|
943
|
+
return Le(function() {
|
|
944
|
+
i || he || (he = !0, console.error(
|
|
957
945
|
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
|
|
958
946
|
));
|
|
959
947
|
}), {
|
|
960
|
-
then: function(d,
|
|
948
|
+
then: function(d, z) {
|
|
961
949
|
i = !0, l.then(
|
|
962
|
-
function(
|
|
963
|
-
if (
|
|
950
|
+
function(Z) {
|
|
951
|
+
if (j(n, s), s === 0) {
|
|
964
952
|
try {
|
|
965
|
-
|
|
966
|
-
return
|
|
967
|
-
|
|
953
|
+
oe(u), B(function() {
|
|
954
|
+
return q(
|
|
955
|
+
Z,
|
|
968
956
|
d,
|
|
969
|
-
|
|
957
|
+
z
|
|
970
958
|
);
|
|
971
959
|
});
|
|
972
|
-
} catch (
|
|
973
|
-
|
|
960
|
+
} catch (Ge) {
|
|
961
|
+
E.thrownErrors.push(Ge);
|
|
974
962
|
}
|
|
975
|
-
if (0 <
|
|
976
|
-
var
|
|
977
|
-
|
|
963
|
+
if (0 < E.thrownErrors.length) {
|
|
964
|
+
var ze = K(
|
|
965
|
+
E.thrownErrors
|
|
978
966
|
);
|
|
979
|
-
|
|
967
|
+
E.thrownErrors.length = 0, z(ze);
|
|
980
968
|
}
|
|
981
|
-
} else d(
|
|
969
|
+
} else d(Z);
|
|
982
970
|
},
|
|
983
|
-
function(
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
),
|
|
971
|
+
function(Z) {
|
|
972
|
+
j(n, s), 0 < E.thrownErrors.length && (Z = K(
|
|
973
|
+
E.thrownErrors
|
|
974
|
+
), E.thrownErrors.length = 0), z(Z);
|
|
987
975
|
}
|
|
988
976
|
);
|
|
989
977
|
}
|
|
990
978
|
};
|
|
991
979
|
}
|
|
992
|
-
var
|
|
993
|
-
if (
|
|
994
|
-
i ||
|
|
980
|
+
var y = m;
|
|
981
|
+
if (j(n, s), s === 0 && (oe(u), u.length !== 0 && Le(function() {
|
|
982
|
+
i || he || (he = !0, console.error(
|
|
995
983
|
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
|
|
996
984
|
));
|
|
997
|
-
}),
|
|
998
|
-
throw e = K(
|
|
985
|
+
}), E.actQueue = null), 0 < E.thrownErrors.length)
|
|
986
|
+
throw e = K(E.thrownErrors), E.thrownErrors.length = 0, e;
|
|
999
987
|
return {
|
|
1000
|
-
then: function(d,
|
|
1001
|
-
i = !0,
|
|
1002
|
-
return
|
|
1003
|
-
|
|
988
|
+
then: function(d, z) {
|
|
989
|
+
i = !0, s === 0 ? (E.actQueue = u, B(function() {
|
|
990
|
+
return q(
|
|
991
|
+
y,
|
|
1004
992
|
d,
|
|
1005
|
-
|
|
993
|
+
z
|
|
1006
994
|
);
|
|
1007
|
-
})) : d(
|
|
995
|
+
})) : d(y);
|
|
1008
996
|
}
|
|
1009
997
|
};
|
|
1010
998
|
}, r.cache = function(e) {
|
|
1011
999
|
return function() {
|
|
1012
1000
|
return e.apply(null, arguments);
|
|
1013
1001
|
};
|
|
1014
|
-
}, r.cacheSignal = function() {
|
|
1015
|
-
return null;
|
|
1016
1002
|
}, r.captureOwnerStack = function() {
|
|
1017
|
-
var e =
|
|
1003
|
+
var e = E.getCurrentStack;
|
|
1018
1004
|
return e === null ? null : e();
|
|
1019
|
-
}, r.cloneElement = function(e, n,
|
|
1005
|
+
}, r.cloneElement = function(e, n, s) {
|
|
1020
1006
|
if (e == null)
|
|
1021
1007
|
throw Error(
|
|
1022
1008
|
"The argument must be a React element, but you passed " + e + "."
|
|
1023
1009
|
);
|
|
1024
|
-
var u =
|
|
1010
|
+
var u = we({}, e.props), i = e.key, m = e._owner;
|
|
1025
1011
|
if (n != null) {
|
|
1026
1012
|
var l;
|
|
1027
1013
|
e: {
|
|
1028
|
-
if (
|
|
1014
|
+
if (le.call(n, "ref") && (l = Object.getOwnPropertyDescriptor(
|
|
1029
1015
|
n,
|
|
1030
1016
|
"ref"
|
|
1031
1017
|
).get) && l.isReactWarning) {
|
|
@@ -1034,31 +1020,33 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1034
1020
|
}
|
|
1035
1021
|
l = n.ref !== void 0;
|
|
1036
1022
|
}
|
|
1037
|
-
l && (
|
|
1038
|
-
for (
|
|
1039
|
-
!
|
|
1023
|
+
l && (m = ue()), J(n) && (D(n.key), i = "" + n.key);
|
|
1024
|
+
for (y in n)
|
|
1025
|
+
!le.call(n, y) || y === "key" || y === "__self" || y === "__source" || y === "ref" && n.ref === void 0 || (u[y] = n[y]);
|
|
1040
1026
|
}
|
|
1041
|
-
var
|
|
1042
|
-
if (
|
|
1043
|
-
else if (1 <
|
|
1044
|
-
l = Array(
|
|
1045
|
-
for (var d = 0; d <
|
|
1027
|
+
var y = arguments.length - 2;
|
|
1028
|
+
if (y === 1) u.children = s;
|
|
1029
|
+
else if (1 < y) {
|
|
1030
|
+
l = Array(y);
|
|
1031
|
+
for (var d = 0; d < y; d++)
|
|
1046
1032
|
l[d] = arguments[d + 2];
|
|
1047
1033
|
u.children = l;
|
|
1048
1034
|
}
|
|
1049
|
-
for (u =
|
|
1035
|
+
for (u = Q(
|
|
1050
1036
|
e.type,
|
|
1051
1037
|
i,
|
|
1038
|
+
void 0,
|
|
1039
|
+
void 0,
|
|
1040
|
+
m,
|
|
1052
1041
|
u,
|
|
1053
|
-
h,
|
|
1054
1042
|
e._debugStack,
|
|
1055
1043
|
e._debugTask
|
|
1056
1044
|
), i = 2; i < arguments.length; i++)
|
|
1057
|
-
|
|
1045
|
+
m = arguments[i], L(m) && m._store && (m._store.validated = 1);
|
|
1058
1046
|
return u;
|
|
1059
1047
|
}, r.createContext = function(e) {
|
|
1060
1048
|
return e = {
|
|
1061
|
-
$$typeof:
|
|
1049
|
+
$$typeof: _,
|
|
1062
1050
|
_currentValue: e,
|
|
1063
1051
|
_currentValue2: e,
|
|
1064
1052
|
_threadCount: 0,
|
|
@@ -1068,44 +1056,46 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1068
1056
|
$$typeof: a,
|
|
1069
1057
|
_context: e
|
|
1070
1058
|
}, e._currentRenderer = null, e._currentRenderer2 = null, e;
|
|
1071
|
-
}, r.createElement = function(e, n,
|
|
1072
|
-
for (var u = 2; u < arguments.length; u++)
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
if (n != null)
|
|
1077
|
-
for (d in
|
|
1059
|
+
}, r.createElement = function(e, n, s) {
|
|
1060
|
+
for (var u = 2; u < arguments.length; u++) {
|
|
1061
|
+
var i = arguments[u];
|
|
1062
|
+
L(i) && i._store && (i._store.validated = 1);
|
|
1063
|
+
}
|
|
1064
|
+
if (u = {}, i = null, n != null)
|
|
1065
|
+
for (d in Se || !("__self" in n) || "key" in n || (Se = !0, console.warn(
|
|
1078
1066
|
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
|
1079
|
-
)),
|
|
1080
|
-
|
|
1081
|
-
var
|
|
1082
|
-
if (
|
|
1083
|
-
else if (1 <
|
|
1084
|
-
for (var l = Array(
|
|
1085
|
-
l[
|
|
1067
|
+
)), J(n) && (D(n.key), i = "" + n.key), n)
|
|
1068
|
+
le.call(n, d) && d !== "key" && d !== "__self" && d !== "__source" && (u[d] = n[d]);
|
|
1069
|
+
var m = arguments.length - 2;
|
|
1070
|
+
if (m === 1) u.children = s;
|
|
1071
|
+
else if (1 < m) {
|
|
1072
|
+
for (var l = Array(m), y = 0; y < m; y++)
|
|
1073
|
+
l[y] = arguments[y + 2];
|
|
1086
1074
|
Object.freeze && Object.freeze(l), u.children = l;
|
|
1087
1075
|
}
|
|
1088
1076
|
if (e && e.defaultProps)
|
|
1089
|
-
for (d in
|
|
1090
|
-
u[d] === void 0 && (u[d] =
|
|
1091
|
-
i &&
|
|
1077
|
+
for (d in m = e.defaultProps, m)
|
|
1078
|
+
u[d] === void 0 && (u[d] = m[d]);
|
|
1079
|
+
i && ie(
|
|
1092
1080
|
u,
|
|
1093
1081
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
1094
1082
|
);
|
|
1095
|
-
var d = 1e4 >
|
|
1096
|
-
return
|
|
1083
|
+
var d = 1e4 > E.recentlyCreatedOwnerStacks++;
|
|
1084
|
+
return Q(
|
|
1097
1085
|
e,
|
|
1098
1086
|
i,
|
|
1087
|
+
void 0,
|
|
1088
|
+
void 0,
|
|
1089
|
+
ue(),
|
|
1099
1090
|
u,
|
|
1100
|
-
|
|
1101
|
-
d ?
|
|
1102
|
-
d ? Ce(x(e)) : ze
|
|
1091
|
+
d ? Error("react-stack-top-frame") : We,
|
|
1092
|
+
d ? Oe(F(e)) : qe
|
|
1103
1093
|
);
|
|
1104
1094
|
}, r.createRef = function() {
|
|
1105
1095
|
var e = { current: null };
|
|
1106
1096
|
return Object.seal(e), e;
|
|
1107
1097
|
}, r.forwardRef = function(e) {
|
|
1108
|
-
e != null && e.$$typeof ===
|
|
1098
|
+
e != null && e.$$typeof === w ? console.error(
|
|
1109
1099
|
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
1110
1100
|
) : typeof e != "function" ? console.error(
|
|
1111
1101
|
"forwardRef requires a render function but was given %s.",
|
|
@@ -1116,139 +1106,131 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1116
1106
|
), e != null && e.defaultProps != null && console.error(
|
|
1117
1107
|
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
1118
1108
|
);
|
|
1119
|
-
var n = { $$typeof:
|
|
1109
|
+
var n = { $$typeof: R, render: e }, s;
|
|
1120
1110
|
return Object.defineProperty(n, "displayName", {
|
|
1121
1111
|
enumerable: !1,
|
|
1122
1112
|
configurable: !0,
|
|
1123
1113
|
get: function() {
|
|
1124
|
-
return
|
|
1114
|
+
return s;
|
|
1125
1115
|
},
|
|
1126
1116
|
set: function(u) {
|
|
1127
|
-
|
|
1117
|
+
s = u, e.name || e.displayName || (Object.defineProperty(e, "name", { value: u }), e.displayName = u);
|
|
1128
1118
|
}
|
|
1129
1119
|
}), n;
|
|
1130
|
-
}, r.isValidElement =
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
_init: oe
|
|
1136
|
-
}, o = {
|
|
1137
|
-
name: "lazy",
|
|
1138
|
-
start: -1,
|
|
1139
|
-
end: -1,
|
|
1140
|
-
value: null,
|
|
1141
|
-
owner: null,
|
|
1142
|
-
debugStack: Error("react-stack-top-frame"),
|
|
1143
|
-
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
1120
|
+
}, r.isValidElement = L, r.lazy = function(e) {
|
|
1121
|
+
return {
|
|
1122
|
+
$$typeof: V,
|
|
1123
|
+
_payload: { _status: -1, _result: e },
|
|
1124
|
+
_init: me
|
|
1144
1125
|
};
|
|
1145
|
-
return e._ioInfo = o, n._debugInfo = [{ awaited: o }], n;
|
|
1146
1126
|
}, r.memo = function(e, n) {
|
|
1147
1127
|
e == null && console.error(
|
|
1148
1128
|
"memo: The first argument must be a component. Instead received: %s",
|
|
1149
1129
|
e === null ? "null" : typeof e
|
|
1150
1130
|
), n = {
|
|
1151
|
-
$$typeof:
|
|
1131
|
+
$$typeof: w,
|
|
1152
1132
|
type: e,
|
|
1153
1133
|
compare: n === void 0 ? null : n
|
|
1154
1134
|
};
|
|
1155
|
-
var
|
|
1135
|
+
var s;
|
|
1156
1136
|
return Object.defineProperty(n, "displayName", {
|
|
1157
1137
|
enumerable: !1,
|
|
1158
1138
|
configurable: !0,
|
|
1159
1139
|
get: function() {
|
|
1160
|
-
return
|
|
1140
|
+
return s;
|
|
1161
1141
|
},
|
|
1162
1142
|
set: function(u) {
|
|
1163
|
-
|
|
1143
|
+
s = u, e.name || e.displayName || (Object.defineProperty(e, "name", { value: u }), e.displayName = u);
|
|
1164
1144
|
}
|
|
1165
1145
|
}), n;
|
|
1166
1146
|
}, r.startTransition = function(e) {
|
|
1167
|
-
var n =
|
|
1168
|
-
|
|
1147
|
+
var n = E.T, s = {};
|
|
1148
|
+
E.T = s, s._updatedFibers = /* @__PURE__ */ new Set();
|
|
1169
1149
|
try {
|
|
1170
|
-
var u = e(), i =
|
|
1171
|
-
i !== null && i(
|
|
1172
|
-
} catch (
|
|
1173
|
-
|
|
1150
|
+
var u = e(), i = E.S;
|
|
1151
|
+
i !== null && i(s, u), typeof u == "object" && u !== null && typeof u.then == "function" && u.then(re, Pe);
|
|
1152
|
+
} catch (m) {
|
|
1153
|
+
Pe(m);
|
|
1174
1154
|
} finally {
|
|
1175
|
-
n === null &&
|
|
1155
|
+
n === null && s._updatedFibers && (e = s._updatedFibers.size, s._updatedFibers.clear(), 10 < e && console.warn(
|
|
1176
1156
|
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
|
|
1177
|
-
)),
|
|
1178
|
-
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
|
|
1179
|
-
), n.types = o.types), p.T = n;
|
|
1157
|
+
)), E.T = n;
|
|
1180
1158
|
}
|
|
1181
1159
|
}, r.unstable_useCacheRefresh = function() {
|
|
1182
|
-
return
|
|
1160
|
+
return T().useCacheRefresh();
|
|
1183
1161
|
}, r.use = function(e) {
|
|
1184
|
-
return
|
|
1185
|
-
}, r.useActionState = function(e, n,
|
|
1186
|
-
return
|
|
1162
|
+
return T().use(e);
|
|
1163
|
+
}, r.useActionState = function(e, n, s) {
|
|
1164
|
+
return T().useActionState(
|
|
1187
1165
|
e,
|
|
1188
1166
|
n,
|
|
1189
|
-
|
|
1167
|
+
s
|
|
1190
1168
|
);
|
|
1191
1169
|
}, r.useCallback = function(e, n) {
|
|
1192
|
-
return
|
|
1170
|
+
return T().useCallback(e, n);
|
|
1193
1171
|
}, r.useContext = function(e) {
|
|
1194
|
-
var n =
|
|
1172
|
+
var n = T();
|
|
1195
1173
|
return e.$$typeof === a && console.error(
|
|
1196
1174
|
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
1197
1175
|
), n.useContext(e);
|
|
1198
1176
|
}, r.useDebugValue = function(e, n) {
|
|
1199
|
-
return
|
|
1177
|
+
return T().useDebugValue(e, n);
|
|
1200
1178
|
}, r.useDeferredValue = function(e, n) {
|
|
1201
|
-
return
|
|
1202
|
-
}, r.useEffect = function(e, n) {
|
|
1203
|
-
|
|
1179
|
+
return T().useDeferredValue(e, n);
|
|
1180
|
+
}, r.useEffect = function(e, n, s) {
|
|
1181
|
+
e == null && console.warn(
|
|
1204
1182
|
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1205
|
-
)
|
|
1206
|
-
|
|
1207
|
-
|
|
1183
|
+
);
|
|
1184
|
+
var u = T();
|
|
1185
|
+
if (typeof s == "function")
|
|
1186
|
+
throw Error(
|
|
1187
|
+
"useEffect CRUD overload is not enabled in this build of React."
|
|
1188
|
+
);
|
|
1189
|
+
return u.useEffect(e, n);
|
|
1208
1190
|
}, r.useId = function() {
|
|
1209
|
-
return
|
|
1210
|
-
}, r.useImperativeHandle = function(e, n,
|
|
1211
|
-
return
|
|
1191
|
+
return T().useId();
|
|
1192
|
+
}, r.useImperativeHandle = function(e, n, s) {
|
|
1193
|
+
return T().useImperativeHandle(e, n, s);
|
|
1212
1194
|
}, r.useInsertionEffect = function(e, n) {
|
|
1213
1195
|
return e == null && console.warn(
|
|
1214
1196
|
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1215
|
-
),
|
|
1197
|
+
), T().useInsertionEffect(e, n);
|
|
1216
1198
|
}, r.useLayoutEffect = function(e, n) {
|
|
1217
1199
|
return e == null && console.warn(
|
|
1218
1200
|
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1219
|
-
),
|
|
1201
|
+
), T().useLayoutEffect(e, n);
|
|
1220
1202
|
}, r.useMemo = function(e, n) {
|
|
1221
|
-
return
|
|
1203
|
+
return T().useMemo(e, n);
|
|
1222
1204
|
}, r.useOptimistic = function(e, n) {
|
|
1223
|
-
return
|
|
1224
|
-
}, r.useReducer = function(e, n,
|
|
1225
|
-
return
|
|
1205
|
+
return T().useOptimistic(e, n);
|
|
1206
|
+
}, r.useReducer = function(e, n, s) {
|
|
1207
|
+
return T().useReducer(e, n, s);
|
|
1226
1208
|
}, r.useRef = function(e) {
|
|
1227
|
-
return
|
|
1209
|
+
return T().useRef(e);
|
|
1228
1210
|
}, r.useState = function(e) {
|
|
1229
|
-
return
|
|
1230
|
-
}, r.useSyncExternalStore = function(e, n,
|
|
1231
|
-
return
|
|
1211
|
+
return T().useState(e);
|
|
1212
|
+
}, r.useSyncExternalStore = function(e, n, s) {
|
|
1213
|
+
return T().useSyncExternalStore(
|
|
1232
1214
|
e,
|
|
1233
1215
|
n,
|
|
1234
|
-
|
|
1216
|
+
s
|
|
1235
1217
|
);
|
|
1236
1218
|
}, r.useTransition = function() {
|
|
1237
|
-
return
|
|
1238
|
-
}, r.version = "19.
|
|
1219
|
+
return T().useTransition();
|
|
1220
|
+
}, r.version = "19.1.1", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1239
1221
|
})();
|
|
1240
|
-
})(
|
|
1222
|
+
})(se, se.exports)), se.exports;
|
|
1241
1223
|
}
|
|
1242
|
-
var
|
|
1243
|
-
function
|
|
1244
|
-
return
|
|
1224
|
+
var He;
|
|
1225
|
+
function Xe() {
|
|
1226
|
+
return He || (He = 1, process.env.NODE_ENV === "production" ? Ee.exports = Ke() : Ee.exports = Qe()), Ee.exports;
|
|
1245
1227
|
}
|
|
1246
|
-
|
|
1247
|
-
const
|
|
1228
|
+
Xe();
|
|
1229
|
+
const S = class S {
|
|
1248
1230
|
constructor(r) {
|
|
1249
1231
|
H(this, "socket", null);
|
|
1250
1232
|
H(this, "config");
|
|
1251
|
-
H(this, "status",
|
|
1233
|
+
H(this, "status", P.DISCONNECTED);
|
|
1252
1234
|
H(this, "reconnectAttempts", 0);
|
|
1253
1235
|
H(this, "reconnectTimer", null);
|
|
1254
1236
|
H(this, "heartbeatTimer", null);
|
|
@@ -1265,17 +1247,17 @@ const k = class k {
|
|
|
1265
1247
|
* 获取单例实例
|
|
1266
1248
|
*/
|
|
1267
1249
|
static getInstance(r) {
|
|
1268
|
-
if (
|
|
1269
|
-
r && (JSON.stringify(
|
|
1270
|
-
...
|
|
1250
|
+
if (S.instance)
|
|
1251
|
+
r && (JSON.stringify(S.instance.config) !== JSON.stringify(r) && (S.instance = new S(r)), r && (S.instance.config = {
|
|
1252
|
+
...S.instance.config,
|
|
1271
1253
|
...r
|
|
1272
1254
|
}));
|
|
1273
1255
|
else {
|
|
1274
1256
|
if (!r)
|
|
1275
1257
|
throw new Error("首次创建SocketConnection实例时必须提供配置");
|
|
1276
|
-
|
|
1258
|
+
S.instance = new S(r);
|
|
1277
1259
|
}
|
|
1278
|
-
return
|
|
1260
|
+
return S.instance;
|
|
1279
1261
|
}
|
|
1280
1262
|
/**
|
|
1281
1263
|
* 连接WebSocket
|
|
@@ -1284,25 +1266,25 @@ const k = class k {
|
|
|
1284
1266
|
return this.config = {
|
|
1285
1267
|
...this.config,
|
|
1286
1268
|
...r
|
|
1287
|
-
}, new Promise((
|
|
1288
|
-
var
|
|
1289
|
-
if (((
|
|
1290
|
-
|
|
1269
|
+
}, new Promise((h, b) => {
|
|
1270
|
+
var k, G;
|
|
1271
|
+
if (((k = this.socket) == null ? void 0 : k.readyState) === WebSocket.OPEN) {
|
|
1272
|
+
h();
|
|
1291
1273
|
return;
|
|
1292
1274
|
}
|
|
1293
|
-
const M = this.config.url + ((
|
|
1275
|
+
const M = this.config.url + ((G = this.config) != null && G.params ? `?${Object.entries(this.config.params).map(([O, A]) => `${O}=${A}`).join("&")}` : "");
|
|
1294
1276
|
if (M) {
|
|
1295
|
-
this.setStatus(
|
|
1277
|
+
this.setStatus(P.CONNECTING), this.log("正在连接WebSocket...", M);
|
|
1296
1278
|
try {
|
|
1297
1279
|
this.socket = new WebSocket(M, this.config.protocols), this.setupEventListeners(), this.socket.onopen = () => {
|
|
1298
|
-
var O,
|
|
1299
|
-
this.log("WebSocket连接成功"), this.setStatus(
|
|
1280
|
+
var O, A;
|
|
1281
|
+
this.log("WebSocket连接成功"), this.setStatus(P.CONNECTED), this.reconnectAttempts = 0, this.startHeartbeat(), (A = (O = this.eventListeners).open) == null || A.call(O), h();
|
|
1300
1282
|
}, this.socket.onerror = (O) => {
|
|
1301
|
-
var
|
|
1302
|
-
this.log("WebSocket连接错误:", O), this.setStatus(
|
|
1283
|
+
var A, D;
|
|
1284
|
+
this.log("WebSocket连接错误:", O), this.setStatus(P.ERROR), (D = (A = this.eventListeners).error) == null || D.call(A, O), b(O);
|
|
1303
1285
|
};
|
|
1304
1286
|
} catch (O) {
|
|
1305
|
-
this.log("创建WebSocket连接失败:", O), this.setStatus(
|
|
1287
|
+
this.log("创建WebSocket连接失败:", O), this.setStatus(P.ERROR), b(O);
|
|
1306
1288
|
}
|
|
1307
1289
|
}
|
|
1308
1290
|
});
|
|
@@ -1311,14 +1293,14 @@ const k = class k {
|
|
|
1311
1293
|
* 断开连接
|
|
1312
1294
|
*/
|
|
1313
1295
|
disconnect() {
|
|
1314
|
-
this.log("正在断开WebSocket连接..."), this.stopHeartbeat(), this.clearReconnectTimer(), this.socket && (this.socket.close(1e3, "主动断开连接"), this.socket = null), this.setStatus(
|
|
1296
|
+
this.log("正在断开WebSocket连接..."), this.stopHeartbeat(), this.clearReconnectTimer(), this.socket && (this.socket.close(1e3, "主动断开连接"), this.socket = null), this.setStatus(P.DISCONNECTED);
|
|
1315
1297
|
}
|
|
1316
1298
|
/**
|
|
1317
1299
|
* 发送消息
|
|
1318
1300
|
*/
|
|
1319
1301
|
send(r) {
|
|
1320
|
-
var
|
|
1321
|
-
return ((
|
|
1302
|
+
var h;
|
|
1303
|
+
return ((h = this.socket) == null ? void 0 : h.readyState) === WebSocket.OPEN ? (this.socket.send(r), this.log("发送消息:", r), !0) : (this.log("WebSocket未连接,无法发送消息"), !1);
|
|
1322
1304
|
}
|
|
1323
1305
|
/**
|
|
1324
1306
|
* 发送JSON消息
|
|
@@ -1329,8 +1311,8 @@ const k = class k {
|
|
|
1329
1311
|
/**
|
|
1330
1312
|
* 添加事件监听器
|
|
1331
1313
|
*/
|
|
1332
|
-
on(r,
|
|
1333
|
-
this.eventListeners[r] =
|
|
1314
|
+
on(r, h) {
|
|
1315
|
+
this.eventListeners[r] = h;
|
|
1334
1316
|
}
|
|
1335
1317
|
/**
|
|
1336
1318
|
* 移除事件监听器
|
|
@@ -1349,35 +1331,35 @@ const k = class k {
|
|
|
1349
1331
|
*/
|
|
1350
1332
|
isConnected() {
|
|
1351
1333
|
var r;
|
|
1352
|
-
return this.status ===
|
|
1334
|
+
return this.status === P.CONNECTED && ((r = this.socket) == null ? void 0 : r.readyState) === WebSocket.OPEN;
|
|
1353
1335
|
}
|
|
1354
1336
|
/**
|
|
1355
1337
|
* 设置事件监听器
|
|
1356
1338
|
*/
|
|
1357
1339
|
setupEventListeners() {
|
|
1358
1340
|
this.socket && (this.socket.onmessage = (r) => {
|
|
1359
|
-
var
|
|
1360
|
-
this.log("收到消息:", r.data), r.data !== "pong" && ((
|
|
1341
|
+
var h, b;
|
|
1342
|
+
this.log("收到消息:", r.data), r.data !== "pong" && ((b = (h = this.eventListeners).message) == null || b.call(h, r.data));
|
|
1361
1343
|
}, this.socket.onclose = (r) => {
|
|
1362
|
-
var
|
|
1363
|
-
this.log("WebSocket连接关闭:", r.code, r.reason), this.setStatus(
|
|
1344
|
+
var h, b;
|
|
1345
|
+
this.log("WebSocket连接关闭:", r.code, r.reason), this.setStatus(P.DISCONNECTED), this.stopHeartbeat(), (b = (h = this.eventListeners).close) == null || b.call(h, r), r.code !== 1e3 && this.reconnectAttempts < (this.config.maxReconnectAttempts || 5) && this.scheduleReconnect();
|
|
1364
1346
|
}, this.socket.onerror = (r) => {
|
|
1365
|
-
var
|
|
1366
|
-
this.log("WebSocket错误:", r), this.setStatus(
|
|
1347
|
+
var h, b;
|
|
1348
|
+
this.log("WebSocket错误:", r), this.setStatus(P.ERROR), (b = (h = this.eventListeners).error) == null || b.call(h, r);
|
|
1367
1349
|
});
|
|
1368
1350
|
}
|
|
1369
1351
|
/**
|
|
1370
1352
|
* 设置连接状态
|
|
1371
1353
|
*/
|
|
1372
1354
|
setStatus(r) {
|
|
1373
|
-
var
|
|
1374
|
-
this.status !== r && (this.status = r, this.log("连接状态变更:", r), (
|
|
1355
|
+
var h, b;
|
|
1356
|
+
this.status !== r && (this.status = r, this.log("连接状态变更:", r), (b = (h = this.eventListeners).statusChange) == null || b.call(h, r));
|
|
1375
1357
|
}
|
|
1376
1358
|
/**
|
|
1377
1359
|
* 安排重连
|
|
1378
1360
|
*/
|
|
1379
1361
|
scheduleReconnect() {
|
|
1380
|
-
this.reconnectTimer || (this.reconnectAttempts++, this.setStatus(
|
|
1362
|
+
this.reconnectTimer || (this.reconnectAttempts++, this.setStatus(P.RECONNECTING), this.log(`准备重连 (第${this.reconnectAttempts}次)...`), this.reconnectTimer = setTimeout(() => {
|
|
1381
1363
|
this.reconnectTimer = null, this.connect().catch(() => {
|
|
1382
1364
|
});
|
|
1383
1365
|
}, this.config.reconnectInterval || 3e3));
|
|
@@ -1412,26 +1394,26 @@ const k = class k {
|
|
|
1412
1394
|
* 销毁实例
|
|
1413
1395
|
*/
|
|
1414
1396
|
destroy() {
|
|
1415
|
-
this.disconnect(), this.eventListeners = {},
|
|
1397
|
+
this.disconnect(), this.eventListeners = {}, S.instance = null;
|
|
1416
1398
|
}
|
|
1417
1399
|
};
|
|
1418
|
-
H(
|
|
1419
|
-
let
|
|
1420
|
-
self.onmessage = (
|
|
1421
|
-
const { type: r, data:
|
|
1400
|
+
H(S, "instance", null);
|
|
1401
|
+
let ge = S, C = null;
|
|
1402
|
+
self.onmessage = (v) => {
|
|
1403
|
+
const { type: r, data: h } = (v == null ? void 0 : v.data) || {};
|
|
1422
1404
|
switch (r) {
|
|
1423
1405
|
case "INIT":
|
|
1424
|
-
|
|
1406
|
+
C = ge.getInstance({ url: h == null ? void 0 : h.url, debug: (h == null ? void 0 : h.debug) ?? !0 }), C == null || C.connect(), C == null || C.on("open", () => {
|
|
1425
1407
|
self.postMessage({ type: "INIT_OK" });
|
|
1426
|
-
}),
|
|
1427
|
-
self.postMessage({ type: "RECEIVE_MESSAGE", data:
|
|
1408
|
+
}), C == null || C.on("message", (b) => {
|
|
1409
|
+
self.postMessage({ type: "RECEIVE_MESSAGE", data: b });
|
|
1428
1410
|
});
|
|
1429
1411
|
break;
|
|
1430
1412
|
case "SEND_MESSAGE":
|
|
1431
|
-
|
|
1413
|
+
C == null || C.send(JSON.stringify(h));
|
|
1432
1414
|
break;
|
|
1433
1415
|
case "CLOSE":
|
|
1434
|
-
|
|
1416
|
+
C == null || C.disconnect(), C = null;
|
|
1435
1417
|
break;
|
|
1436
1418
|
}
|
|
1437
1419
|
};
|