@service_laboratory/auth 1.0.7 → 1.0.8
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/index.js +317 -1531
- package/dist/index.umd.cjs +4 -32
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import pe, { useState as he } from "react";
|
|
2
|
+
var g = { exports: {} }, S = {};
|
|
2
3
|
/**
|
|
3
4
|
* @license React
|
|
4
5
|
* react-jsx-runtime.production.js
|
|
@@ -8,1244 +9,29 @@ var ye = { exports: {} }, fe = {};
|
|
|
8
9
|
* This source code is licensed under the MIT license found in the
|
|
9
10
|
* LICENSE file in the root directory of this source tree.
|
|
10
11
|
*/
|
|
11
|
-
var
|
|
12
|
-
function
|
|
13
|
-
if (
|
|
14
|
-
|
|
15
|
-
var
|
|
16
|
-
function
|
|
17
|
-
var
|
|
18
|
-
if (
|
|
19
|
-
|
|
20
|
-
for (var
|
|
21
|
-
|
|
22
|
-
} else
|
|
23
|
-
return
|
|
24
|
-
$$typeof:
|
|
25
|
-
type:
|
|
26
|
-
key:
|
|
27
|
-
ref:
|
|
28
|
-
props:
|
|
12
|
+
var z;
|
|
13
|
+
function _e() {
|
|
14
|
+
if (z) return S;
|
|
15
|
+
z = 1;
|
|
16
|
+
var i = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
17
|
+
function t(s, n, a) {
|
|
18
|
+
var f = null;
|
|
19
|
+
if (a !== void 0 && (f = "" + a), n.key !== void 0 && (f = "" + n.key), "key" in n) {
|
|
20
|
+
a = {};
|
|
21
|
+
for (var b in n)
|
|
22
|
+
b !== "key" && (a[b] = n[b]);
|
|
23
|
+
} else a = n;
|
|
24
|
+
return n = a.ref, {
|
|
25
|
+
$$typeof: i,
|
|
26
|
+
type: s,
|
|
27
|
+
key: f,
|
|
28
|
+
ref: n !== void 0 ? n : null,
|
|
29
|
+
props: a
|
|
29
30
|
};
|
|
30
31
|
}
|
|
31
|
-
return
|
|
32
|
-
}
|
|
33
|
-
var le = {}, ge = { exports: {} }, _ = {};
|
|
34
|
-
/**
|
|
35
|
-
* @license React
|
|
36
|
-
* react.production.js
|
|
37
|
-
*
|
|
38
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
-
*
|
|
40
|
-
* This source code is licensed under the MIT license found in the
|
|
41
|
-
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/
|
|
43
|
-
var We;
|
|
44
|
-
function st() {
|
|
45
|
-
if (We) return _;
|
|
46
|
-
We = 1;
|
|
47
|
-
var w = Symbol.for("react.transitional.element"), o = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), m = Symbol.for("react.consumer"), k = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), oe = Symbol.for("react.suspense"), W = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), q = Symbol.iterator;
|
|
48
|
-
function H(t) {
|
|
49
|
-
return t === null || typeof t != "object" ? null : (t = q && t[q] || t["@@iterator"], typeof t == "function" ? t : null);
|
|
50
|
-
}
|
|
51
|
-
var z = {
|
|
52
|
-
isMounted: function() {
|
|
53
|
-
return !1;
|
|
54
|
-
},
|
|
55
|
-
enqueueForceUpdate: function() {
|
|
56
|
-
},
|
|
57
|
-
enqueueReplaceState: function() {
|
|
58
|
-
},
|
|
59
|
-
enqueueSetState: function() {
|
|
60
|
-
}
|
|
61
|
-
}, K = Object.assign, G = {};
|
|
62
|
-
function Y(t, n, i) {
|
|
63
|
-
this.props = t, this.context = n, this.refs = G, this.updater = i || z;
|
|
64
|
-
}
|
|
65
|
-
Y.prototype.isReactComponent = {}, Y.prototype.setState = function(t, n) {
|
|
66
|
-
if (typeof t != "object" && typeof t != "function" && t != null)
|
|
67
|
-
throw Error(
|
|
68
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
69
|
-
);
|
|
70
|
-
this.updater.enqueueSetState(this, t, n, "setState");
|
|
71
|
-
}, Y.prototype.forceUpdate = function(t) {
|
|
72
|
-
this.updater.enqueueForceUpdate(this, t, "forceUpdate");
|
|
73
|
-
};
|
|
74
|
-
function F() {
|
|
75
|
-
}
|
|
76
|
-
F.prototype = Y.prototype;
|
|
77
|
-
function Z(t, n, i) {
|
|
78
|
-
this.props = t, this.context = n, this.refs = G, this.updater = i || z;
|
|
79
|
-
}
|
|
80
|
-
var j = Z.prototype = new F();
|
|
81
|
-
j.constructor = Z, K(j, Y.prototype), j.isPureReactComponent = !0;
|
|
82
|
-
var se = Array.isArray, T = { H: null, A: null, T: null, S: null, V: null }, J = Object.prototype.hasOwnProperty;
|
|
83
|
-
function ee(t, n, i, c, d, b) {
|
|
84
|
-
return i = b.ref, {
|
|
85
|
-
$$typeof: w,
|
|
86
|
-
type: t,
|
|
87
|
-
key: n,
|
|
88
|
-
ref: i !== void 0 ? i : null,
|
|
89
|
-
props: b
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
function L(t, n) {
|
|
93
|
-
return ee(
|
|
94
|
-
t.type,
|
|
95
|
-
n,
|
|
96
|
-
void 0,
|
|
97
|
-
void 0,
|
|
98
|
-
void 0,
|
|
99
|
-
t.props
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
function U(t) {
|
|
103
|
-
return typeof t == "object" && t !== null && t.$$typeof === w;
|
|
104
|
-
}
|
|
105
|
-
function ie(t) {
|
|
106
|
-
var n = { "=": "=0", ":": "=2" };
|
|
107
|
-
return "$" + t.replace(/[=:]/g, function(i) {
|
|
108
|
-
return n[i];
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
var O = /\/+/g;
|
|
112
|
-
function B(t, n) {
|
|
113
|
-
return typeof t == "object" && t !== null && t.key != null ? ie("" + t.key) : n.toString(36);
|
|
114
|
-
}
|
|
115
|
-
function V() {
|
|
116
|
-
}
|
|
117
|
-
function M(t) {
|
|
118
|
-
switch (t.status) {
|
|
119
|
-
case "fulfilled":
|
|
120
|
-
return t.value;
|
|
121
|
-
case "rejected":
|
|
122
|
-
throw t.reason;
|
|
123
|
-
default:
|
|
124
|
-
switch (typeof t.status == "string" ? t.then(V, V) : (t.status = "pending", t.then(
|
|
125
|
-
function(n) {
|
|
126
|
-
t.status === "pending" && (t.status = "fulfilled", t.value = n);
|
|
127
|
-
},
|
|
128
|
-
function(n) {
|
|
129
|
-
t.status === "pending" && (t.status = "rejected", t.reason = n);
|
|
130
|
-
}
|
|
131
|
-
)), t.status) {
|
|
132
|
-
case "fulfilled":
|
|
133
|
-
return t.value;
|
|
134
|
-
case "rejected":
|
|
135
|
-
throw t.reason;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
throw t;
|
|
139
|
-
}
|
|
140
|
-
function A(t, n, i, c, d) {
|
|
141
|
-
var b = typeof t;
|
|
142
|
-
(b === "undefined" || b === "boolean") && (t = null);
|
|
143
|
-
var h = !1;
|
|
144
|
-
if (t === null) h = !0;
|
|
145
|
-
else
|
|
146
|
-
switch (b) {
|
|
147
|
-
case "bigint":
|
|
148
|
-
case "string":
|
|
149
|
-
case "number":
|
|
150
|
-
h = !0;
|
|
151
|
-
break;
|
|
152
|
-
case "object":
|
|
153
|
-
switch (t.$$typeof) {
|
|
154
|
-
case w:
|
|
155
|
-
case o:
|
|
156
|
-
h = !0;
|
|
157
|
-
break;
|
|
158
|
-
case $:
|
|
159
|
-
return h = t._init, A(
|
|
160
|
-
h(t._payload),
|
|
161
|
-
n,
|
|
162
|
-
i,
|
|
163
|
-
c,
|
|
164
|
-
d
|
|
165
|
-
);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
if (h)
|
|
169
|
-
return d = d(t), h = c === "" ? "." + B(t, 0) : c, se(d) ? (i = "", h != null && (i = h.replace(O, "$&/") + "/"), A(d, n, i, "", function(P) {
|
|
170
|
-
return P;
|
|
171
|
-
})) : d != null && (U(d) && (d = L(
|
|
172
|
-
d,
|
|
173
|
-
i + (d.key == null || t && t.key === d.key ? "" : ("" + d.key).replace(
|
|
174
|
-
O,
|
|
175
|
-
"$&/"
|
|
176
|
-
) + "/") + h
|
|
177
|
-
)), n.push(d)), 1;
|
|
178
|
-
h = 0;
|
|
179
|
-
var C = c === "" ? "." : c + ":";
|
|
180
|
-
if (se(t))
|
|
181
|
-
for (var v = 0; v < t.length; v++)
|
|
182
|
-
c = t[v], b = C + B(c, v), h += A(
|
|
183
|
-
c,
|
|
184
|
-
n,
|
|
185
|
-
i,
|
|
186
|
-
b,
|
|
187
|
-
d
|
|
188
|
-
);
|
|
189
|
-
else if (v = H(t), typeof v == "function")
|
|
190
|
-
for (t = v.call(t), v = 0; !(c = t.next()).done; )
|
|
191
|
-
c = c.value, b = C + B(c, v++), h += A(
|
|
192
|
-
c,
|
|
193
|
-
n,
|
|
194
|
-
i,
|
|
195
|
-
b,
|
|
196
|
-
d
|
|
197
|
-
);
|
|
198
|
-
else if (b === "object") {
|
|
199
|
-
if (typeof t.then == "function")
|
|
200
|
-
return A(
|
|
201
|
-
M(t),
|
|
202
|
-
n,
|
|
203
|
-
i,
|
|
204
|
-
c,
|
|
205
|
-
d
|
|
206
|
-
);
|
|
207
|
-
throw n = String(t), Error(
|
|
208
|
-
"Objects are not valid as a React child (found: " + (n === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : n) + "). If you meant to render a collection of children, use an array instead."
|
|
209
|
-
);
|
|
210
|
-
}
|
|
211
|
-
return h;
|
|
212
|
-
}
|
|
213
|
-
function I(t, n, i) {
|
|
214
|
-
if (t == null) return t;
|
|
215
|
-
var c = [], d = 0;
|
|
216
|
-
return A(t, c, "", "", function(b) {
|
|
217
|
-
return n.call(i, b, d++);
|
|
218
|
-
}), c;
|
|
219
|
-
}
|
|
220
|
-
function Q(t) {
|
|
221
|
-
if (t._status === -1) {
|
|
222
|
-
var n = t._result;
|
|
223
|
-
n = n(), n.then(
|
|
224
|
-
function(i) {
|
|
225
|
-
(t._status === 0 || t._status === -1) && (t._status = 1, t._result = i);
|
|
226
|
-
},
|
|
227
|
-
function(i) {
|
|
228
|
-
(t._status === 0 || t._status === -1) && (t._status = 2, t._result = i);
|
|
229
|
-
}
|
|
230
|
-
), t._status === -1 && (t._status = 0, t._result = n);
|
|
231
|
-
}
|
|
232
|
-
if (t._status === 1) return t._result.default;
|
|
233
|
-
throw t._result;
|
|
234
|
-
}
|
|
235
|
-
var x = typeof reportError == "function" ? reportError : function(t) {
|
|
236
|
-
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
237
|
-
var n = new window.ErrorEvent("error", {
|
|
238
|
-
bubbles: !0,
|
|
239
|
-
cancelable: !0,
|
|
240
|
-
message: typeof t == "object" && t !== null && typeof t.message == "string" ? String(t.message) : String(t),
|
|
241
|
-
error: t
|
|
242
|
-
});
|
|
243
|
-
if (!window.dispatchEvent(n)) return;
|
|
244
|
-
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
245
|
-
process.emit("uncaughtException", t);
|
|
246
|
-
return;
|
|
247
|
-
}
|
|
248
|
-
console.error(t);
|
|
249
|
-
};
|
|
250
|
-
function te() {
|
|
251
|
-
}
|
|
252
|
-
return _.Children = {
|
|
253
|
-
map: I,
|
|
254
|
-
forEach: function(t, n, i) {
|
|
255
|
-
I(
|
|
256
|
-
t,
|
|
257
|
-
function() {
|
|
258
|
-
n.apply(this, arguments);
|
|
259
|
-
},
|
|
260
|
-
i
|
|
261
|
-
);
|
|
262
|
-
},
|
|
263
|
-
count: function(t) {
|
|
264
|
-
var n = 0;
|
|
265
|
-
return I(t, function() {
|
|
266
|
-
n++;
|
|
267
|
-
}), n;
|
|
268
|
-
},
|
|
269
|
-
toArray: function(t) {
|
|
270
|
-
return I(t, function(n) {
|
|
271
|
-
return n;
|
|
272
|
-
}) || [];
|
|
273
|
-
},
|
|
274
|
-
only: function(t) {
|
|
275
|
-
if (!U(t))
|
|
276
|
-
throw Error(
|
|
277
|
-
"React.Children.only expected to receive a single React element child."
|
|
278
|
-
);
|
|
279
|
-
return t;
|
|
280
|
-
}
|
|
281
|
-
}, _.Component = Y, _.Fragment = u, _.Profiler = p, _.PureComponent = Z, _.StrictMode = f, _.Suspense = oe, _.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = T, _.__COMPILER_RUNTIME = {
|
|
282
|
-
__proto__: null,
|
|
283
|
-
c: function(t) {
|
|
284
|
-
return T.H.useMemoCache(t);
|
|
285
|
-
}
|
|
286
|
-
}, _.cache = function(t) {
|
|
287
|
-
return function() {
|
|
288
|
-
return t.apply(null, arguments);
|
|
289
|
-
};
|
|
290
|
-
}, _.cloneElement = function(t, n, i) {
|
|
291
|
-
if (t == null)
|
|
292
|
-
throw Error(
|
|
293
|
-
"The argument must be a React element, but you passed " + t + "."
|
|
294
|
-
);
|
|
295
|
-
var c = K({}, t.props), d = t.key, b = void 0;
|
|
296
|
-
if (n != null)
|
|
297
|
-
for (h in n.ref !== void 0 && (b = void 0), n.key !== void 0 && (d = "" + n.key), n)
|
|
298
|
-
!J.call(n, h) || h === "key" || h === "__self" || h === "__source" || h === "ref" && n.ref === void 0 || (c[h] = n[h]);
|
|
299
|
-
var h = arguments.length - 2;
|
|
300
|
-
if (h === 1) c.children = i;
|
|
301
|
-
else if (1 < h) {
|
|
302
|
-
for (var C = Array(h), v = 0; v < h; v++)
|
|
303
|
-
C[v] = arguments[v + 2];
|
|
304
|
-
c.children = C;
|
|
305
|
-
}
|
|
306
|
-
return ee(t.type, d, void 0, void 0, b, c);
|
|
307
|
-
}, _.createContext = function(t) {
|
|
308
|
-
return t = {
|
|
309
|
-
$$typeof: k,
|
|
310
|
-
_currentValue: t,
|
|
311
|
-
_currentValue2: t,
|
|
312
|
-
_threadCount: 0,
|
|
313
|
-
Provider: null,
|
|
314
|
-
Consumer: null
|
|
315
|
-
}, t.Provider = t, t.Consumer = {
|
|
316
|
-
$$typeof: m,
|
|
317
|
-
_context: t
|
|
318
|
-
}, t;
|
|
319
|
-
}, _.createElement = function(t, n, i) {
|
|
320
|
-
var c, d = {}, b = null;
|
|
321
|
-
if (n != null)
|
|
322
|
-
for (c in n.key !== void 0 && (b = "" + n.key), n)
|
|
323
|
-
J.call(n, c) && c !== "key" && c !== "__self" && c !== "__source" && (d[c] = n[c]);
|
|
324
|
-
var h = arguments.length - 2;
|
|
325
|
-
if (h === 1) d.children = i;
|
|
326
|
-
else if (1 < h) {
|
|
327
|
-
for (var C = Array(h), v = 0; v < h; v++)
|
|
328
|
-
C[v] = arguments[v + 2];
|
|
329
|
-
d.children = C;
|
|
330
|
-
}
|
|
331
|
-
if (t && t.defaultProps)
|
|
332
|
-
for (c in h = t.defaultProps, h)
|
|
333
|
-
d[c] === void 0 && (d[c] = h[c]);
|
|
334
|
-
return ee(t, b, void 0, void 0, null, d);
|
|
335
|
-
}, _.createRef = function() {
|
|
336
|
-
return { current: null };
|
|
337
|
-
}, _.forwardRef = function(t) {
|
|
338
|
-
return { $$typeof: D, render: t };
|
|
339
|
-
}, _.isValidElement = U, _.lazy = function(t) {
|
|
340
|
-
return {
|
|
341
|
-
$$typeof: $,
|
|
342
|
-
_payload: { _status: -1, _result: t },
|
|
343
|
-
_init: Q
|
|
344
|
-
};
|
|
345
|
-
}, _.memo = function(t, n) {
|
|
346
|
-
return {
|
|
347
|
-
$$typeof: W,
|
|
348
|
-
type: t,
|
|
349
|
-
compare: n === void 0 ? null : n
|
|
350
|
-
};
|
|
351
|
-
}, _.startTransition = function(t) {
|
|
352
|
-
var n = T.T, i = {};
|
|
353
|
-
T.T = i;
|
|
354
|
-
try {
|
|
355
|
-
var c = t(), d = T.S;
|
|
356
|
-
d !== null && d(i, c), typeof c == "object" && c !== null && typeof c.then == "function" && c.then(te, x);
|
|
357
|
-
} catch (b) {
|
|
358
|
-
x(b);
|
|
359
|
-
} finally {
|
|
360
|
-
T.T = n;
|
|
361
|
-
}
|
|
362
|
-
}, _.unstable_useCacheRefresh = function() {
|
|
363
|
-
return T.H.useCacheRefresh();
|
|
364
|
-
}, _.use = function(t) {
|
|
365
|
-
return T.H.use(t);
|
|
366
|
-
}, _.useActionState = function(t, n, i) {
|
|
367
|
-
return T.H.useActionState(t, n, i);
|
|
368
|
-
}, _.useCallback = function(t, n) {
|
|
369
|
-
return T.H.useCallback(t, n);
|
|
370
|
-
}, _.useContext = function(t) {
|
|
371
|
-
return T.H.useContext(t);
|
|
372
|
-
}, _.useDebugValue = function() {
|
|
373
|
-
}, _.useDeferredValue = function(t, n) {
|
|
374
|
-
return T.H.useDeferredValue(t, n);
|
|
375
|
-
}, _.useEffect = function(t, n, i) {
|
|
376
|
-
var c = T.H;
|
|
377
|
-
if (typeof i == "function")
|
|
378
|
-
throw Error(
|
|
379
|
-
"useEffect CRUD overload is not enabled in this build of React."
|
|
380
|
-
);
|
|
381
|
-
return c.useEffect(t, n);
|
|
382
|
-
}, _.useId = function() {
|
|
383
|
-
return T.H.useId();
|
|
384
|
-
}, _.useImperativeHandle = function(t, n, i) {
|
|
385
|
-
return T.H.useImperativeHandle(t, n, i);
|
|
386
|
-
}, _.useInsertionEffect = function(t, n) {
|
|
387
|
-
return T.H.useInsertionEffect(t, n);
|
|
388
|
-
}, _.useLayoutEffect = function(t, n) {
|
|
389
|
-
return T.H.useLayoutEffect(t, n);
|
|
390
|
-
}, _.useMemo = function(t, n) {
|
|
391
|
-
return T.H.useMemo(t, n);
|
|
392
|
-
}, _.useOptimistic = function(t, n) {
|
|
393
|
-
return T.H.useOptimistic(t, n);
|
|
394
|
-
}, _.useReducer = function(t, n, i) {
|
|
395
|
-
return T.H.useReducer(t, n, i);
|
|
396
|
-
}, _.useRef = function(t) {
|
|
397
|
-
return T.H.useRef(t);
|
|
398
|
-
}, _.useState = function(t) {
|
|
399
|
-
return T.H.useState(t);
|
|
400
|
-
}, _.useSyncExternalStore = function(t, n, i) {
|
|
401
|
-
return T.H.useSyncExternalStore(
|
|
402
|
-
t,
|
|
403
|
-
n,
|
|
404
|
-
i
|
|
405
|
-
);
|
|
406
|
-
}, _.useTransition = function() {
|
|
407
|
-
return T.H.useTransition();
|
|
408
|
-
}, _.version = "19.1.1", _;
|
|
409
|
-
}
|
|
410
|
-
var pe = { exports: {} };
|
|
411
|
-
/**
|
|
412
|
-
* @license React
|
|
413
|
-
* react.development.js
|
|
414
|
-
*
|
|
415
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
416
|
-
*
|
|
417
|
-
* This source code is licensed under the MIT license found in the
|
|
418
|
-
* LICENSE file in the root directory of this source tree.
|
|
419
|
-
*/
|
|
420
|
-
pe.exports;
|
|
421
|
-
var qe;
|
|
422
|
-
function ut() {
|
|
423
|
-
return qe || (qe = 1, (function(w, o) {
|
|
424
|
-
process.env.NODE_ENV !== "production" && (function() {
|
|
425
|
-
function u(e, r) {
|
|
426
|
-
Object.defineProperty(m.prototype, e, {
|
|
427
|
-
get: function() {
|
|
428
|
-
console.warn(
|
|
429
|
-
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
430
|
-
r[0],
|
|
431
|
-
r[1]
|
|
432
|
-
);
|
|
433
|
-
}
|
|
434
|
-
});
|
|
435
|
-
}
|
|
436
|
-
function f(e) {
|
|
437
|
-
return e === null || typeof e != "object" ? null : (e = de && e[de] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
438
|
-
}
|
|
439
|
-
function p(e, r) {
|
|
440
|
-
e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
|
|
441
|
-
var s = e + "." + r;
|
|
442
|
-
Ce[s] || (console.error(
|
|
443
|
-
"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.",
|
|
444
|
-
r,
|
|
445
|
-
e
|
|
446
|
-
), Ce[s] = !0);
|
|
447
|
-
}
|
|
448
|
-
function m(e, r, s) {
|
|
449
|
-
this.props = e, this.context = r, this.refs = Te, this.updater = s || Pe;
|
|
450
|
-
}
|
|
451
|
-
function k() {
|
|
452
|
-
}
|
|
453
|
-
function D(e, r, s) {
|
|
454
|
-
this.props = e, this.context = r, this.refs = Te, this.updater = s || Pe;
|
|
455
|
-
}
|
|
456
|
-
function oe(e) {
|
|
457
|
-
return "" + e;
|
|
458
|
-
}
|
|
459
|
-
function W(e) {
|
|
460
|
-
try {
|
|
461
|
-
oe(e);
|
|
462
|
-
var r = !1;
|
|
463
|
-
} catch {
|
|
464
|
-
r = !0;
|
|
465
|
-
}
|
|
466
|
-
if (r) {
|
|
467
|
-
r = console;
|
|
468
|
-
var s = r.error, a = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
469
|
-
return s.call(
|
|
470
|
-
r,
|
|
471
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
472
|
-
a
|
|
473
|
-
), oe(e);
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
function $(e) {
|
|
477
|
-
if (e == null) return null;
|
|
478
|
-
if (typeof e == "function")
|
|
479
|
-
return e.$$typeof === Je ? null : e.displayName || e.name || null;
|
|
480
|
-
if (typeof e == "string") return e;
|
|
481
|
-
switch (e) {
|
|
482
|
-
case t:
|
|
483
|
-
return "Fragment";
|
|
484
|
-
case i:
|
|
485
|
-
return "Profiler";
|
|
486
|
-
case n:
|
|
487
|
-
return "StrictMode";
|
|
488
|
-
case h:
|
|
489
|
-
return "Suspense";
|
|
490
|
-
case C:
|
|
491
|
-
return "SuspenseList";
|
|
492
|
-
case ce:
|
|
493
|
-
return "Activity";
|
|
494
|
-
}
|
|
495
|
-
if (typeof e == "object")
|
|
496
|
-
switch (typeof e.tag == "number" && console.error(
|
|
497
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
498
|
-
), e.$$typeof) {
|
|
499
|
-
case te:
|
|
500
|
-
return "Portal";
|
|
501
|
-
case d:
|
|
502
|
-
return (e.displayName || "Context") + ".Provider";
|
|
503
|
-
case c:
|
|
504
|
-
return (e._context.displayName || "Context") + ".Consumer";
|
|
505
|
-
case b:
|
|
506
|
-
var r = e.render;
|
|
507
|
-
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
508
|
-
case v:
|
|
509
|
-
return r = e.displayName || null, r !== null ? r : $(e.type) || "Memo";
|
|
510
|
-
case P:
|
|
511
|
-
r = e._payload, e = e._init;
|
|
512
|
-
try {
|
|
513
|
-
return $(e(r));
|
|
514
|
-
} catch {
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
return null;
|
|
518
|
-
}
|
|
519
|
-
function q(e) {
|
|
520
|
-
if (e === t) return "<>";
|
|
521
|
-
if (typeof e == "object" && e !== null && e.$$typeof === P)
|
|
522
|
-
return "<...>";
|
|
523
|
-
try {
|
|
524
|
-
var r = $(e);
|
|
525
|
-
return r ? "<" + r + ">" : "<...>";
|
|
526
|
-
} catch {
|
|
527
|
-
return "<...>";
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
function H() {
|
|
531
|
-
var e = g.A;
|
|
532
|
-
return e === null ? null : e.getOwner();
|
|
533
|
-
}
|
|
534
|
-
function z() {
|
|
535
|
-
return Error("react-stack-top-frame");
|
|
536
|
-
}
|
|
537
|
-
function K(e) {
|
|
538
|
-
if (_e.call(e, "key")) {
|
|
539
|
-
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
540
|
-
if (r && r.isReactWarning) return !1;
|
|
541
|
-
}
|
|
542
|
-
return e.key !== void 0;
|
|
543
|
-
}
|
|
544
|
-
function G(e, r) {
|
|
545
|
-
function s() {
|
|
546
|
-
Le || (Le = !0, console.error(
|
|
547
|
-
"%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)",
|
|
548
|
-
r
|
|
549
|
-
));
|
|
550
|
-
}
|
|
551
|
-
s.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
552
|
-
get: s,
|
|
553
|
-
configurable: !0
|
|
554
|
-
});
|
|
555
|
-
}
|
|
556
|
-
function Y() {
|
|
557
|
-
var e = $(this.type);
|
|
558
|
-
return Ie[e] || (Ie[e] = !0, console.error(
|
|
559
|
-
"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."
|
|
560
|
-
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
561
|
-
}
|
|
562
|
-
function F(e, r, s, a, l, R, E, S) {
|
|
563
|
-
return s = R.ref, e = {
|
|
564
|
-
$$typeof: x,
|
|
565
|
-
type: e,
|
|
566
|
-
key: r,
|
|
567
|
-
props: R,
|
|
568
|
-
_owner: l
|
|
569
|
-
}, (s !== void 0 ? s : null) !== null ? Object.defineProperty(e, "ref", {
|
|
570
|
-
enumerable: !1,
|
|
571
|
-
get: Y
|
|
572
|
-
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
573
|
-
configurable: !1,
|
|
574
|
-
enumerable: !1,
|
|
575
|
-
writable: !0,
|
|
576
|
-
value: 0
|
|
577
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
|
578
|
-
configurable: !1,
|
|
579
|
-
enumerable: !1,
|
|
580
|
-
writable: !0,
|
|
581
|
-
value: null
|
|
582
|
-
}), Object.defineProperty(e, "_debugStack", {
|
|
583
|
-
configurable: !1,
|
|
584
|
-
enumerable: !1,
|
|
585
|
-
writable: !0,
|
|
586
|
-
value: E
|
|
587
|
-
}), Object.defineProperty(e, "_debugTask", {
|
|
588
|
-
configurable: !1,
|
|
589
|
-
enumerable: !1,
|
|
590
|
-
writable: !0,
|
|
591
|
-
value: S
|
|
592
|
-
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
593
|
-
}
|
|
594
|
-
function Z(e, r) {
|
|
595
|
-
return r = F(
|
|
596
|
-
e.type,
|
|
597
|
-
r,
|
|
598
|
-
void 0,
|
|
599
|
-
void 0,
|
|
600
|
-
e._owner,
|
|
601
|
-
e.props,
|
|
602
|
-
e._debugStack,
|
|
603
|
-
e._debugTask
|
|
604
|
-
), e._store && (r._store.validated = e._store.validated), r;
|
|
605
|
-
}
|
|
606
|
-
function j(e) {
|
|
607
|
-
return typeof e == "object" && e !== null && e.$$typeof === x;
|
|
608
|
-
}
|
|
609
|
-
function se(e) {
|
|
610
|
-
var r = { "=": "=0", ":": "=2" };
|
|
611
|
-
return "$" + e.replace(/[=:]/g, function(s) {
|
|
612
|
-
return r[s];
|
|
613
|
-
});
|
|
614
|
-
}
|
|
615
|
-
function T(e, r) {
|
|
616
|
-
return typeof e == "object" && e !== null && e.key != null ? (W(e.key), se("" + e.key)) : r.toString(36);
|
|
617
|
-
}
|
|
618
|
-
function J() {
|
|
619
|
-
}
|
|
620
|
-
function ee(e) {
|
|
621
|
-
switch (e.status) {
|
|
622
|
-
case "fulfilled":
|
|
623
|
-
return e.value;
|
|
624
|
-
case "rejected":
|
|
625
|
-
throw e.reason;
|
|
626
|
-
default:
|
|
627
|
-
switch (typeof e.status == "string" ? e.then(J, J) : (e.status = "pending", e.then(
|
|
628
|
-
function(r) {
|
|
629
|
-
e.status === "pending" && (e.status = "fulfilled", e.value = r);
|
|
630
|
-
},
|
|
631
|
-
function(r) {
|
|
632
|
-
e.status === "pending" && (e.status = "rejected", e.reason = r);
|
|
633
|
-
}
|
|
634
|
-
)), e.status) {
|
|
635
|
-
case "fulfilled":
|
|
636
|
-
return e.value;
|
|
637
|
-
case "rejected":
|
|
638
|
-
throw e.reason;
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
throw e;
|
|
642
|
-
}
|
|
643
|
-
function L(e, r, s, a, l) {
|
|
644
|
-
var R = typeof e;
|
|
645
|
-
(R === "undefined" || R === "boolean") && (e = null);
|
|
646
|
-
var E = !1;
|
|
647
|
-
if (e === null) E = !0;
|
|
648
|
-
else
|
|
649
|
-
switch (R) {
|
|
650
|
-
case "bigint":
|
|
651
|
-
case "string":
|
|
652
|
-
case "number":
|
|
653
|
-
E = !0;
|
|
654
|
-
break;
|
|
655
|
-
case "object":
|
|
656
|
-
switch (e.$$typeof) {
|
|
657
|
-
case x:
|
|
658
|
-
case te:
|
|
659
|
-
E = !0;
|
|
660
|
-
break;
|
|
661
|
-
case P:
|
|
662
|
-
return E = e._init, L(
|
|
663
|
-
E(e._payload),
|
|
664
|
-
r,
|
|
665
|
-
s,
|
|
666
|
-
a,
|
|
667
|
-
l
|
|
668
|
-
);
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
if (E) {
|
|
672
|
-
E = e, l = l(E);
|
|
673
|
-
var S = a === "" ? "." + T(E, 0) : a;
|
|
674
|
-
return Ne(l) ? (s = "", S != null && (s = S.replace(Ye, "$&/") + "/"), L(l, r, s, "", function(X) {
|
|
675
|
-
return X;
|
|
676
|
-
})) : l != null && (j(l) && (l.key != null && (E && E.key === l.key || W(l.key)), s = Z(
|
|
677
|
-
l,
|
|
678
|
-
s + (l.key == null || E && E.key === l.key ? "" : ("" + l.key).replace(
|
|
679
|
-
Ye,
|
|
680
|
-
"$&/"
|
|
681
|
-
) + "/") + S
|
|
682
|
-
), a !== "" && E != null && j(E) && E.key == null && E._store && !E._store.validated && (s._store.validated = 2), l = s), r.push(l)), 1;
|
|
683
|
-
}
|
|
684
|
-
if (E = 0, S = a === "" ? "." : a + ":", Ne(e))
|
|
685
|
-
for (var y = 0; y < e.length; y++)
|
|
686
|
-
a = e[y], R = S + T(a, y), E += L(
|
|
687
|
-
a,
|
|
688
|
-
r,
|
|
689
|
-
s,
|
|
690
|
-
R,
|
|
691
|
-
l
|
|
692
|
-
);
|
|
693
|
-
else if (y = f(e), typeof y == "function")
|
|
694
|
-
for (y === e.entries && ($e || console.warn(
|
|
695
|
-
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
696
|
-
), $e = !0), e = y.call(e), y = 0; !(a = e.next()).done; )
|
|
697
|
-
a = a.value, R = S + T(a, y++), E += L(
|
|
698
|
-
a,
|
|
699
|
-
r,
|
|
700
|
-
s,
|
|
701
|
-
R,
|
|
702
|
-
l
|
|
703
|
-
);
|
|
704
|
-
else if (R === "object") {
|
|
705
|
-
if (typeof e.then == "function")
|
|
706
|
-
return L(
|
|
707
|
-
ee(e),
|
|
708
|
-
r,
|
|
709
|
-
s,
|
|
710
|
-
a,
|
|
711
|
-
l
|
|
712
|
-
);
|
|
713
|
-
throw r = String(e), Error(
|
|
714
|
-
"Objects are not valid as a React child (found: " + (r === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : r) + "). If you meant to render a collection of children, use an array instead."
|
|
715
|
-
);
|
|
716
|
-
}
|
|
717
|
-
return E;
|
|
718
|
-
}
|
|
719
|
-
function U(e, r, s) {
|
|
720
|
-
if (e == null) return e;
|
|
721
|
-
var a = [], l = 0;
|
|
722
|
-
return L(e, a, "", "", function(R) {
|
|
723
|
-
return r.call(s, R, l++);
|
|
724
|
-
}), a;
|
|
725
|
-
}
|
|
726
|
-
function ie(e) {
|
|
727
|
-
if (e._status === -1) {
|
|
728
|
-
var r = e._result;
|
|
729
|
-
r = r(), r.then(
|
|
730
|
-
function(s) {
|
|
731
|
-
(e._status === 0 || e._status === -1) && (e._status = 1, e._result = s);
|
|
732
|
-
},
|
|
733
|
-
function(s) {
|
|
734
|
-
(e._status === 0 || e._status === -1) && (e._status = 2, e._result = s);
|
|
735
|
-
}
|
|
736
|
-
), e._status === -1 && (e._status = 0, e._result = r);
|
|
737
|
-
}
|
|
738
|
-
if (e._status === 1)
|
|
739
|
-
return r = e._result, r === void 0 && console.error(
|
|
740
|
-
`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
741
|
-
|
|
742
|
-
Your code should look like:
|
|
743
|
-
const MyComponent = lazy(() => import('./MyComponent'))
|
|
744
|
-
|
|
745
|
-
Did you accidentally put curly braces around the import?`,
|
|
746
|
-
r
|
|
747
|
-
), "default" in r || console.error(
|
|
748
|
-
`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
749
|
-
|
|
750
|
-
Your code should look like:
|
|
751
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,
|
|
752
|
-
r
|
|
753
|
-
), r.default;
|
|
754
|
-
throw e._result;
|
|
755
|
-
}
|
|
756
|
-
function O() {
|
|
757
|
-
var e = g.H;
|
|
758
|
-
return e === null && console.error(
|
|
759
|
-
`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:
|
|
760
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
761
|
-
2. You might be breaking the Rules of Hooks
|
|
762
|
-
3. You might have more than one copy of React in the same app
|
|
763
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
764
|
-
), e;
|
|
765
|
-
}
|
|
766
|
-
function B() {
|
|
767
|
-
}
|
|
768
|
-
function V(e) {
|
|
769
|
-
if (ve === null)
|
|
770
|
-
try {
|
|
771
|
-
var r = ("require" + Math.random()).slice(0, 7);
|
|
772
|
-
ve = (w && w[r]).call(
|
|
773
|
-
w,
|
|
774
|
-
"timers"
|
|
775
|
-
).setImmediate;
|
|
776
|
-
} catch {
|
|
777
|
-
ve = function(a) {
|
|
778
|
-
He === !1 && (He = !0, typeof MessageChannel > "u" && console.error(
|
|
779
|
-
"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."
|
|
780
|
-
));
|
|
781
|
-
var l = new MessageChannel();
|
|
782
|
-
l.port1.onmessage = a, l.port2.postMessage(void 0);
|
|
783
|
-
};
|
|
784
|
-
}
|
|
785
|
-
return ve(e);
|
|
786
|
-
}
|
|
787
|
-
function M(e) {
|
|
788
|
-
return 1 < e.length && typeof AggregateError == "function" ? new AggregateError(e) : e[0];
|
|
789
|
-
}
|
|
790
|
-
function A(e, r) {
|
|
791
|
-
r !== me - 1 && console.error(
|
|
792
|
-
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
793
|
-
), me = r;
|
|
794
|
-
}
|
|
795
|
-
function I(e, r, s) {
|
|
796
|
-
var a = g.actQueue;
|
|
797
|
-
if (a !== null)
|
|
798
|
-
if (a.length !== 0)
|
|
799
|
-
try {
|
|
800
|
-
Q(a), V(function() {
|
|
801
|
-
return I(e, r, s);
|
|
802
|
-
});
|
|
803
|
-
return;
|
|
804
|
-
} catch (l) {
|
|
805
|
-
g.thrownErrors.push(l);
|
|
806
|
-
}
|
|
807
|
-
else g.actQueue = null;
|
|
808
|
-
0 < g.thrownErrors.length ? (a = M(g.thrownErrors), g.thrownErrors.length = 0, s(a)) : r(e);
|
|
809
|
-
}
|
|
810
|
-
function Q(e) {
|
|
811
|
-
if (!Se) {
|
|
812
|
-
Se = !0;
|
|
813
|
-
var r = 0;
|
|
814
|
-
try {
|
|
815
|
-
for (; r < e.length; r++) {
|
|
816
|
-
var s = e[r];
|
|
817
|
-
do {
|
|
818
|
-
g.didUsePromise = !1;
|
|
819
|
-
var a = s(!1);
|
|
820
|
-
if (a !== null) {
|
|
821
|
-
if (g.didUsePromise) {
|
|
822
|
-
e[r] = s, e.splice(0, r);
|
|
823
|
-
return;
|
|
824
|
-
}
|
|
825
|
-
s = a;
|
|
826
|
-
} else break;
|
|
827
|
-
} while (!0);
|
|
828
|
-
}
|
|
829
|
-
e.length = 0;
|
|
830
|
-
} catch (l) {
|
|
831
|
-
e.splice(0, r + 1), g.thrownErrors.push(l);
|
|
832
|
-
} finally {
|
|
833
|
-
Se = !1;
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
838
|
-
var x = Symbol.for("react.transitional.element"), te = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.consumer"), d = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), ce = Symbol.for("react.activity"), de = Symbol.iterator, Ce = {}, Pe = {
|
|
839
|
-
isMounted: function() {
|
|
840
|
-
return !1;
|
|
841
|
-
},
|
|
842
|
-
enqueueForceUpdate: function(e) {
|
|
843
|
-
p(e, "forceUpdate");
|
|
844
|
-
},
|
|
845
|
-
enqueueReplaceState: function(e) {
|
|
846
|
-
p(e, "replaceState");
|
|
847
|
-
},
|
|
848
|
-
enqueueSetState: function(e) {
|
|
849
|
-
p(e, "setState");
|
|
850
|
-
}
|
|
851
|
-
}, je = Object.assign, Te = {};
|
|
852
|
-
Object.freeze(Te), m.prototype.isReactComponent = {}, m.prototype.setState = function(e, r) {
|
|
853
|
-
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
854
|
-
throw Error(
|
|
855
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
856
|
-
);
|
|
857
|
-
this.updater.enqueueSetState(this, e, r, "setState");
|
|
858
|
-
}, m.prototype.forceUpdate = function(e) {
|
|
859
|
-
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
860
|
-
};
|
|
861
|
-
var N = {
|
|
862
|
-
isMounted: [
|
|
863
|
-
"isMounted",
|
|
864
|
-
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
865
|
-
],
|
|
866
|
-
replaceState: [
|
|
867
|
-
"replaceState",
|
|
868
|
-
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
869
|
-
]
|
|
870
|
-
}, he;
|
|
871
|
-
for (he in N)
|
|
872
|
-
N.hasOwnProperty(he) && u(he, N[he]);
|
|
873
|
-
k.prototype = m.prototype, N = D.prototype = new k(), N.constructor = D, je(N, m.prototype), N.isPureReactComponent = !0;
|
|
874
|
-
var Ne = Array.isArray, Je = Symbol.for("react.client.reference"), g = {
|
|
875
|
-
H: null,
|
|
876
|
-
A: null,
|
|
877
|
-
T: null,
|
|
878
|
-
S: null,
|
|
879
|
-
V: null,
|
|
880
|
-
actQueue: null,
|
|
881
|
-
isBatchingLegacy: !1,
|
|
882
|
-
didScheduleLegacyUpdate: !1,
|
|
883
|
-
didUsePromise: !1,
|
|
884
|
-
thrownErrors: [],
|
|
885
|
-
getCurrentStack: null,
|
|
886
|
-
recentlyCreatedOwnerStacks: 0
|
|
887
|
-
}, _e = Object.prototype.hasOwnProperty, De = console.createTask ? console.createTask : function() {
|
|
888
|
-
return null;
|
|
889
|
-
};
|
|
890
|
-
N = {
|
|
891
|
-
react_stack_bottom_frame: function(e) {
|
|
892
|
-
return e();
|
|
893
|
-
}
|
|
894
|
-
};
|
|
895
|
-
var Le, Me, Ie = {}, et = N.react_stack_bottom_frame.bind(
|
|
896
|
-
N,
|
|
897
|
-
z
|
|
898
|
-
)(), tt = De(q(z)), $e = !1, Ye = /\/+/g, Ue = typeof reportError == "function" ? reportError : function(e) {
|
|
899
|
-
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
900
|
-
var r = new window.ErrorEvent("error", {
|
|
901
|
-
bubbles: !0,
|
|
902
|
-
cancelable: !0,
|
|
903
|
-
message: typeof e == "object" && e !== null && typeof e.message == "string" ? String(e.message) : String(e),
|
|
904
|
-
error: e
|
|
905
|
-
});
|
|
906
|
-
if (!window.dispatchEvent(r)) return;
|
|
907
|
-
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
908
|
-
process.emit("uncaughtException", e);
|
|
909
|
-
return;
|
|
910
|
-
}
|
|
911
|
-
console.error(e);
|
|
912
|
-
}, He = !1, ve = null, me = 0, Ee = !1, Se = !1, Ve = typeof queueMicrotask == "function" ? function(e) {
|
|
913
|
-
queueMicrotask(function() {
|
|
914
|
-
return queueMicrotask(e);
|
|
915
|
-
});
|
|
916
|
-
} : V;
|
|
917
|
-
N = Object.freeze({
|
|
918
|
-
__proto__: null,
|
|
919
|
-
c: function(e) {
|
|
920
|
-
return O().useMemoCache(e);
|
|
921
|
-
}
|
|
922
|
-
}), o.Children = {
|
|
923
|
-
map: U,
|
|
924
|
-
forEach: function(e, r, s) {
|
|
925
|
-
U(
|
|
926
|
-
e,
|
|
927
|
-
function() {
|
|
928
|
-
r.apply(this, arguments);
|
|
929
|
-
},
|
|
930
|
-
s
|
|
931
|
-
);
|
|
932
|
-
},
|
|
933
|
-
count: function(e) {
|
|
934
|
-
var r = 0;
|
|
935
|
-
return U(e, function() {
|
|
936
|
-
r++;
|
|
937
|
-
}), r;
|
|
938
|
-
},
|
|
939
|
-
toArray: function(e) {
|
|
940
|
-
return U(e, function(r) {
|
|
941
|
-
return r;
|
|
942
|
-
}) || [];
|
|
943
|
-
},
|
|
944
|
-
only: function(e) {
|
|
945
|
-
if (!j(e))
|
|
946
|
-
throw Error(
|
|
947
|
-
"React.Children.only expected to receive a single React element child."
|
|
948
|
-
);
|
|
949
|
-
return e;
|
|
950
|
-
}
|
|
951
|
-
}, o.Component = m, o.Fragment = t, o.Profiler = i, o.PureComponent = D, o.StrictMode = n, o.Suspense = h, o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = g, o.__COMPILER_RUNTIME = N, o.act = function(e) {
|
|
952
|
-
var r = g.actQueue, s = me;
|
|
953
|
-
me++;
|
|
954
|
-
var a = g.actQueue = r !== null ? r : [], l = !1;
|
|
955
|
-
try {
|
|
956
|
-
var R = e();
|
|
957
|
-
} catch (y) {
|
|
958
|
-
g.thrownErrors.push(y);
|
|
959
|
-
}
|
|
960
|
-
if (0 < g.thrownErrors.length)
|
|
961
|
-
throw A(r, s), e = M(g.thrownErrors), g.thrownErrors.length = 0, e;
|
|
962
|
-
if (R !== null && typeof R == "object" && typeof R.then == "function") {
|
|
963
|
-
var E = R;
|
|
964
|
-
return Ve(function() {
|
|
965
|
-
l || Ee || (Ee = !0, console.error(
|
|
966
|
-
"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 () => ...);"
|
|
967
|
-
));
|
|
968
|
-
}), {
|
|
969
|
-
then: function(y, X) {
|
|
970
|
-
l = !0, E.then(
|
|
971
|
-
function(ue) {
|
|
972
|
-
if (A(r, s), s === 0) {
|
|
973
|
-
try {
|
|
974
|
-
Q(a), V(function() {
|
|
975
|
-
return I(
|
|
976
|
-
ue,
|
|
977
|
-
y,
|
|
978
|
-
X
|
|
979
|
-
);
|
|
980
|
-
});
|
|
981
|
-
} catch (nt) {
|
|
982
|
-
g.thrownErrors.push(nt);
|
|
983
|
-
}
|
|
984
|
-
if (0 < g.thrownErrors.length) {
|
|
985
|
-
var rt = M(
|
|
986
|
-
g.thrownErrors
|
|
987
|
-
);
|
|
988
|
-
g.thrownErrors.length = 0, X(rt);
|
|
989
|
-
}
|
|
990
|
-
} else y(ue);
|
|
991
|
-
},
|
|
992
|
-
function(ue) {
|
|
993
|
-
A(r, s), 0 < g.thrownErrors.length && (ue = M(
|
|
994
|
-
g.thrownErrors
|
|
995
|
-
), g.thrownErrors.length = 0), X(ue);
|
|
996
|
-
}
|
|
997
|
-
);
|
|
998
|
-
}
|
|
999
|
-
};
|
|
1000
|
-
}
|
|
1001
|
-
var S = R;
|
|
1002
|
-
if (A(r, s), s === 0 && (Q(a), a.length !== 0 && Ve(function() {
|
|
1003
|
-
l || Ee || (Ee = !0, console.error(
|
|
1004
|
-
"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(() => ...)"
|
|
1005
|
-
));
|
|
1006
|
-
}), g.actQueue = null), 0 < g.thrownErrors.length)
|
|
1007
|
-
throw e = M(g.thrownErrors), g.thrownErrors.length = 0, e;
|
|
1008
|
-
return {
|
|
1009
|
-
then: function(y, X) {
|
|
1010
|
-
l = !0, s === 0 ? (g.actQueue = a, V(function() {
|
|
1011
|
-
return I(
|
|
1012
|
-
S,
|
|
1013
|
-
y,
|
|
1014
|
-
X
|
|
1015
|
-
);
|
|
1016
|
-
})) : y(S);
|
|
1017
|
-
}
|
|
1018
|
-
};
|
|
1019
|
-
}, o.cache = function(e) {
|
|
1020
|
-
return function() {
|
|
1021
|
-
return e.apply(null, arguments);
|
|
1022
|
-
};
|
|
1023
|
-
}, o.captureOwnerStack = function() {
|
|
1024
|
-
var e = g.getCurrentStack;
|
|
1025
|
-
return e === null ? null : e();
|
|
1026
|
-
}, o.cloneElement = function(e, r, s) {
|
|
1027
|
-
if (e == null)
|
|
1028
|
-
throw Error(
|
|
1029
|
-
"The argument must be a React element, but you passed " + e + "."
|
|
1030
|
-
);
|
|
1031
|
-
var a = je({}, e.props), l = e.key, R = e._owner;
|
|
1032
|
-
if (r != null) {
|
|
1033
|
-
var E;
|
|
1034
|
-
e: {
|
|
1035
|
-
if (_e.call(r, "ref") && (E = Object.getOwnPropertyDescriptor(
|
|
1036
|
-
r,
|
|
1037
|
-
"ref"
|
|
1038
|
-
).get) && E.isReactWarning) {
|
|
1039
|
-
E = !1;
|
|
1040
|
-
break e;
|
|
1041
|
-
}
|
|
1042
|
-
E = r.ref !== void 0;
|
|
1043
|
-
}
|
|
1044
|
-
E && (R = H()), K(r) && (W(r.key), l = "" + r.key);
|
|
1045
|
-
for (S in r)
|
|
1046
|
-
!_e.call(r, S) || S === "key" || S === "__self" || S === "__source" || S === "ref" && r.ref === void 0 || (a[S] = r[S]);
|
|
1047
|
-
}
|
|
1048
|
-
var S = arguments.length - 2;
|
|
1049
|
-
if (S === 1) a.children = s;
|
|
1050
|
-
else if (1 < S) {
|
|
1051
|
-
E = Array(S);
|
|
1052
|
-
for (var y = 0; y < S; y++)
|
|
1053
|
-
E[y] = arguments[y + 2];
|
|
1054
|
-
a.children = E;
|
|
1055
|
-
}
|
|
1056
|
-
for (a = F(
|
|
1057
|
-
e.type,
|
|
1058
|
-
l,
|
|
1059
|
-
void 0,
|
|
1060
|
-
void 0,
|
|
1061
|
-
R,
|
|
1062
|
-
a,
|
|
1063
|
-
e._debugStack,
|
|
1064
|
-
e._debugTask
|
|
1065
|
-
), l = 2; l < arguments.length; l++)
|
|
1066
|
-
R = arguments[l], j(R) && R._store && (R._store.validated = 1);
|
|
1067
|
-
return a;
|
|
1068
|
-
}, o.createContext = function(e) {
|
|
1069
|
-
return e = {
|
|
1070
|
-
$$typeof: d,
|
|
1071
|
-
_currentValue: e,
|
|
1072
|
-
_currentValue2: e,
|
|
1073
|
-
_threadCount: 0,
|
|
1074
|
-
Provider: null,
|
|
1075
|
-
Consumer: null
|
|
1076
|
-
}, e.Provider = e, e.Consumer = {
|
|
1077
|
-
$$typeof: c,
|
|
1078
|
-
_context: e
|
|
1079
|
-
}, e._currentRenderer = null, e._currentRenderer2 = null, e;
|
|
1080
|
-
}, o.createElement = function(e, r, s) {
|
|
1081
|
-
for (var a = 2; a < arguments.length; a++) {
|
|
1082
|
-
var l = arguments[a];
|
|
1083
|
-
j(l) && l._store && (l._store.validated = 1);
|
|
1084
|
-
}
|
|
1085
|
-
if (a = {}, l = null, r != null)
|
|
1086
|
-
for (y in Me || !("__self" in r) || "key" in r || (Me = !0, console.warn(
|
|
1087
|
-
"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"
|
|
1088
|
-
)), K(r) && (W(r.key), l = "" + r.key), r)
|
|
1089
|
-
_e.call(r, y) && y !== "key" && y !== "__self" && y !== "__source" && (a[y] = r[y]);
|
|
1090
|
-
var R = arguments.length - 2;
|
|
1091
|
-
if (R === 1) a.children = s;
|
|
1092
|
-
else if (1 < R) {
|
|
1093
|
-
for (var E = Array(R), S = 0; S < R; S++)
|
|
1094
|
-
E[S] = arguments[S + 2];
|
|
1095
|
-
Object.freeze && Object.freeze(E), a.children = E;
|
|
1096
|
-
}
|
|
1097
|
-
if (e && e.defaultProps)
|
|
1098
|
-
for (y in R = e.defaultProps, R)
|
|
1099
|
-
a[y] === void 0 && (a[y] = R[y]);
|
|
1100
|
-
l && G(
|
|
1101
|
-
a,
|
|
1102
|
-
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
1103
|
-
);
|
|
1104
|
-
var y = 1e4 > g.recentlyCreatedOwnerStacks++;
|
|
1105
|
-
return F(
|
|
1106
|
-
e,
|
|
1107
|
-
l,
|
|
1108
|
-
void 0,
|
|
1109
|
-
void 0,
|
|
1110
|
-
H(),
|
|
1111
|
-
a,
|
|
1112
|
-
y ? Error("react-stack-top-frame") : et,
|
|
1113
|
-
y ? De(q(e)) : tt
|
|
1114
|
-
);
|
|
1115
|
-
}, o.createRef = function() {
|
|
1116
|
-
var e = { current: null };
|
|
1117
|
-
return Object.seal(e), e;
|
|
1118
|
-
}, o.forwardRef = function(e) {
|
|
1119
|
-
e != null && e.$$typeof === v ? console.error(
|
|
1120
|
-
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
1121
|
-
) : typeof e != "function" ? console.error(
|
|
1122
|
-
"forwardRef requires a render function but was given %s.",
|
|
1123
|
-
e === null ? "null" : typeof e
|
|
1124
|
-
) : e.length !== 0 && e.length !== 2 && console.error(
|
|
1125
|
-
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
1126
|
-
e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
|
1127
|
-
), e != null && e.defaultProps != null && console.error(
|
|
1128
|
-
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
1129
|
-
);
|
|
1130
|
-
var r = { $$typeof: b, render: e }, s;
|
|
1131
|
-
return Object.defineProperty(r, "displayName", {
|
|
1132
|
-
enumerable: !1,
|
|
1133
|
-
configurable: !0,
|
|
1134
|
-
get: function() {
|
|
1135
|
-
return s;
|
|
1136
|
-
},
|
|
1137
|
-
set: function(a) {
|
|
1138
|
-
s = a, e.name || e.displayName || (Object.defineProperty(e, "name", { value: a }), e.displayName = a);
|
|
1139
|
-
}
|
|
1140
|
-
}), r;
|
|
1141
|
-
}, o.isValidElement = j, o.lazy = function(e) {
|
|
1142
|
-
return {
|
|
1143
|
-
$$typeof: P,
|
|
1144
|
-
_payload: { _status: -1, _result: e },
|
|
1145
|
-
_init: ie
|
|
1146
|
-
};
|
|
1147
|
-
}, o.memo = function(e, r) {
|
|
1148
|
-
e == null && console.error(
|
|
1149
|
-
"memo: The first argument must be a component. Instead received: %s",
|
|
1150
|
-
e === null ? "null" : typeof e
|
|
1151
|
-
), r = {
|
|
1152
|
-
$$typeof: v,
|
|
1153
|
-
type: e,
|
|
1154
|
-
compare: r === void 0 ? null : r
|
|
1155
|
-
};
|
|
1156
|
-
var s;
|
|
1157
|
-
return Object.defineProperty(r, "displayName", {
|
|
1158
|
-
enumerable: !1,
|
|
1159
|
-
configurable: !0,
|
|
1160
|
-
get: function() {
|
|
1161
|
-
return s;
|
|
1162
|
-
},
|
|
1163
|
-
set: function(a) {
|
|
1164
|
-
s = a, e.name || e.displayName || (Object.defineProperty(e, "name", { value: a }), e.displayName = a);
|
|
1165
|
-
}
|
|
1166
|
-
}), r;
|
|
1167
|
-
}, o.startTransition = function(e) {
|
|
1168
|
-
var r = g.T, s = {};
|
|
1169
|
-
g.T = s, s._updatedFibers = /* @__PURE__ */ new Set();
|
|
1170
|
-
try {
|
|
1171
|
-
var a = e(), l = g.S;
|
|
1172
|
-
l !== null && l(s, a), typeof a == "object" && a !== null && typeof a.then == "function" && a.then(B, Ue);
|
|
1173
|
-
} catch (R) {
|
|
1174
|
-
Ue(R);
|
|
1175
|
-
} finally {
|
|
1176
|
-
r === null && s._updatedFibers && (e = s._updatedFibers.size, s._updatedFibers.clear(), 10 < e && console.warn(
|
|
1177
|
-
"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."
|
|
1178
|
-
)), g.T = r;
|
|
1179
|
-
}
|
|
1180
|
-
}, o.unstable_useCacheRefresh = function() {
|
|
1181
|
-
return O().useCacheRefresh();
|
|
1182
|
-
}, o.use = function(e) {
|
|
1183
|
-
return O().use(e);
|
|
1184
|
-
}, o.useActionState = function(e, r, s) {
|
|
1185
|
-
return O().useActionState(
|
|
1186
|
-
e,
|
|
1187
|
-
r,
|
|
1188
|
-
s
|
|
1189
|
-
);
|
|
1190
|
-
}, o.useCallback = function(e, r) {
|
|
1191
|
-
return O().useCallback(e, r);
|
|
1192
|
-
}, o.useContext = function(e) {
|
|
1193
|
-
var r = O();
|
|
1194
|
-
return e.$$typeof === c && console.error(
|
|
1195
|
-
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
1196
|
-
), r.useContext(e);
|
|
1197
|
-
}, o.useDebugValue = function(e, r) {
|
|
1198
|
-
return O().useDebugValue(e, r);
|
|
1199
|
-
}, o.useDeferredValue = function(e, r) {
|
|
1200
|
-
return O().useDeferredValue(e, r);
|
|
1201
|
-
}, o.useEffect = function(e, r, s) {
|
|
1202
|
-
e == null && console.warn(
|
|
1203
|
-
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1204
|
-
);
|
|
1205
|
-
var a = O();
|
|
1206
|
-
if (typeof s == "function")
|
|
1207
|
-
throw Error(
|
|
1208
|
-
"useEffect CRUD overload is not enabled in this build of React."
|
|
1209
|
-
);
|
|
1210
|
-
return a.useEffect(e, r);
|
|
1211
|
-
}, o.useId = function() {
|
|
1212
|
-
return O().useId();
|
|
1213
|
-
}, o.useImperativeHandle = function(e, r, s) {
|
|
1214
|
-
return O().useImperativeHandle(e, r, s);
|
|
1215
|
-
}, o.useInsertionEffect = function(e, r) {
|
|
1216
|
-
return e == null && console.warn(
|
|
1217
|
-
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1218
|
-
), O().useInsertionEffect(e, r);
|
|
1219
|
-
}, o.useLayoutEffect = function(e, r) {
|
|
1220
|
-
return e == null && console.warn(
|
|
1221
|
-
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1222
|
-
), O().useLayoutEffect(e, r);
|
|
1223
|
-
}, o.useMemo = function(e, r) {
|
|
1224
|
-
return O().useMemo(e, r);
|
|
1225
|
-
}, o.useOptimistic = function(e, r) {
|
|
1226
|
-
return O().useOptimistic(e, r);
|
|
1227
|
-
}, o.useReducer = function(e, r, s) {
|
|
1228
|
-
return O().useReducer(e, r, s);
|
|
1229
|
-
}, o.useRef = function(e) {
|
|
1230
|
-
return O().useRef(e);
|
|
1231
|
-
}, o.useState = function(e) {
|
|
1232
|
-
return O().useState(e);
|
|
1233
|
-
}, o.useSyncExternalStore = function(e, r, s) {
|
|
1234
|
-
return O().useSyncExternalStore(
|
|
1235
|
-
e,
|
|
1236
|
-
r,
|
|
1237
|
-
s
|
|
1238
|
-
);
|
|
1239
|
-
}, o.useTransition = function() {
|
|
1240
|
-
return O().useTransition();
|
|
1241
|
-
}, o.version = "19.1.1", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1242
|
-
})();
|
|
1243
|
-
})(pe, pe.exports)), pe.exports;
|
|
1244
|
-
}
|
|
1245
|
-
var ze;
|
|
1246
|
-
function Xe() {
|
|
1247
|
-
return ze || (ze = 1, process.env.NODE_ENV === "production" ? ge.exports = st() : ge.exports = ut()), ge.exports;
|
|
32
|
+
return S.Fragment = r, S.jsx = t, S.jsxs = t, S;
|
|
1248
33
|
}
|
|
34
|
+
var E = {};
|
|
1249
35
|
/**
|
|
1250
36
|
* @license React
|
|
1251
37
|
* react-jsx-runtime.development.js
|
|
@@ -1255,254 +41,254 @@ function Xe() {
|
|
|
1255
41
|
* This source code is licensed under the MIT license found in the
|
|
1256
42
|
* LICENSE file in the root directory of this source tree.
|
|
1257
43
|
*/
|
|
1258
|
-
var
|
|
1259
|
-
function
|
|
1260
|
-
return
|
|
1261
|
-
function
|
|
1262
|
-
if (
|
|
1263
|
-
if (typeof
|
|
1264
|
-
return
|
|
1265
|
-
if (typeof
|
|
1266
|
-
switch (
|
|
1267
|
-
case
|
|
44
|
+
var q;
|
|
45
|
+
function ve() {
|
|
46
|
+
return q || (q = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
47
|
+
function i(e) {
|
|
48
|
+
if (e == null) return null;
|
|
49
|
+
if (typeof e == "function")
|
|
50
|
+
return e.$$typeof === ue ? null : e.displayName || e.name || null;
|
|
51
|
+
if (typeof e == "string") return e;
|
|
52
|
+
switch (e) {
|
|
53
|
+
case w:
|
|
1268
54
|
return "Fragment";
|
|
1269
|
-
case
|
|
55
|
+
case re:
|
|
1270
56
|
return "Profiler";
|
|
1271
|
-
case
|
|
57
|
+
case te:
|
|
1272
58
|
return "StrictMode";
|
|
1273
|
-
case
|
|
59
|
+
case ae:
|
|
1274
60
|
return "Suspense";
|
|
1275
|
-
case
|
|
61
|
+
case ie:
|
|
1276
62
|
return "SuspenseList";
|
|
1277
|
-
case
|
|
63
|
+
case le:
|
|
1278
64
|
return "Activity";
|
|
1279
65
|
}
|
|
1280
|
-
if (typeof
|
|
1281
|
-
switch (typeof
|
|
66
|
+
if (typeof e == "object")
|
|
67
|
+
switch (typeof e.tag == "number" && console.error(
|
|
1282
68
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
1283
|
-
),
|
|
1284
|
-
case
|
|
69
|
+
), e.$$typeof) {
|
|
70
|
+
case ee:
|
|
1285
71
|
return "Portal";
|
|
1286
|
-
case
|
|
1287
|
-
return (
|
|
1288
|
-
case Z:
|
|
1289
|
-
return (t._context.displayName || "Context") + ".Consumer";
|
|
72
|
+
case ne:
|
|
73
|
+
return (e.displayName || "Context") + ".Provider";
|
|
1290
74
|
case se:
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
return
|
|
75
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
76
|
+
case oe:
|
|
77
|
+
var o = e.render;
|
|
78
|
+
return e = e.displayName, e || (e = o.displayName || o.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
79
|
+
case ce:
|
|
80
|
+
return o = e.displayName || null, o !== null ? o : i(e.type) || "Memo";
|
|
1295
81
|
case L:
|
|
1296
|
-
|
|
82
|
+
o = e._payload, e = e._init;
|
|
1297
83
|
try {
|
|
1298
|
-
return
|
|
84
|
+
return i(e(o));
|
|
1299
85
|
} catch {
|
|
1300
86
|
}
|
|
1301
87
|
}
|
|
1302
88
|
return null;
|
|
1303
89
|
}
|
|
1304
|
-
function
|
|
1305
|
-
return "" +
|
|
90
|
+
function r(e) {
|
|
91
|
+
return "" + e;
|
|
1306
92
|
}
|
|
1307
|
-
function
|
|
93
|
+
function t(e) {
|
|
1308
94
|
try {
|
|
1309
|
-
|
|
1310
|
-
var
|
|
95
|
+
r(e);
|
|
96
|
+
var o = !1;
|
|
1311
97
|
} catch {
|
|
1312
|
-
|
|
98
|
+
o = !0;
|
|
1313
99
|
}
|
|
1314
|
-
if (
|
|
1315
|
-
|
|
1316
|
-
var
|
|
1317
|
-
return
|
|
1318
|
-
|
|
100
|
+
if (o) {
|
|
101
|
+
o = console;
|
|
102
|
+
var c = o.error, l = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
103
|
+
return c.call(
|
|
104
|
+
o,
|
|
1319
105
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
1320
|
-
|
|
1321
|
-
),
|
|
106
|
+
l
|
|
107
|
+
), r(e);
|
|
1322
108
|
}
|
|
1323
109
|
}
|
|
1324
|
-
function
|
|
1325
|
-
if (
|
|
1326
|
-
if (typeof
|
|
110
|
+
function s(e) {
|
|
111
|
+
if (e === w) return "<>";
|
|
112
|
+
if (typeof e == "object" && e !== null && e.$$typeof === L)
|
|
1327
113
|
return "<...>";
|
|
1328
114
|
try {
|
|
1329
|
-
var
|
|
1330
|
-
return
|
|
115
|
+
var o = i(e);
|
|
116
|
+
return o ? "<" + o + ">" : "<...>";
|
|
1331
117
|
} catch {
|
|
1332
118
|
return "<...>";
|
|
1333
119
|
}
|
|
1334
120
|
}
|
|
1335
|
-
function
|
|
1336
|
-
var
|
|
1337
|
-
return
|
|
121
|
+
function n() {
|
|
122
|
+
var e = O.A;
|
|
123
|
+
return e === null ? null : e.getOwner();
|
|
1338
124
|
}
|
|
1339
|
-
function
|
|
125
|
+
function a() {
|
|
1340
126
|
return Error("react-stack-top-frame");
|
|
1341
127
|
}
|
|
1342
|
-
function
|
|
1343
|
-
if (
|
|
1344
|
-
var
|
|
1345
|
-
if (
|
|
128
|
+
function f(e) {
|
|
129
|
+
if (Y.call(e, "key")) {
|
|
130
|
+
var o = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
131
|
+
if (o && o.isReactWarning) return !1;
|
|
1346
132
|
}
|
|
1347
|
-
return
|
|
133
|
+
return e.key !== void 0;
|
|
1348
134
|
}
|
|
1349
|
-
function
|
|
1350
|
-
function
|
|
1351
|
-
|
|
135
|
+
function b(e, o) {
|
|
136
|
+
function c() {
|
|
137
|
+
U || (U = !0, console.error(
|
|
1352
138
|
"%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)",
|
|
1353
|
-
|
|
139
|
+
o
|
|
1354
140
|
));
|
|
1355
141
|
}
|
|
1356
|
-
|
|
1357
|
-
get:
|
|
142
|
+
c.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
143
|
+
get: c,
|
|
1358
144
|
configurable: !0
|
|
1359
145
|
});
|
|
1360
146
|
}
|
|
1361
|
-
function
|
|
1362
|
-
var
|
|
1363
|
-
return
|
|
147
|
+
function Q() {
|
|
148
|
+
var e = i(this.type);
|
|
149
|
+
return $[e] || ($[e] = !0, console.error(
|
|
1364
150
|
"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."
|
|
1365
|
-
)),
|
|
151
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
1366
152
|
}
|
|
1367
|
-
function
|
|
1368
|
-
return
|
|
1369
|
-
$$typeof:
|
|
1370
|
-
type:
|
|
1371
|
-
key:
|
|
1372
|
-
props:
|
|
1373
|
-
_owner:
|
|
1374
|
-
}, (
|
|
153
|
+
function K(e, o, c, l, p, d, D, P) {
|
|
154
|
+
return c = d.ref, e = {
|
|
155
|
+
$$typeof: F,
|
|
156
|
+
type: e,
|
|
157
|
+
key: o,
|
|
158
|
+
props: d,
|
|
159
|
+
_owner: p
|
|
160
|
+
}, (c !== void 0 ? c : null) !== null ? Object.defineProperty(e, "ref", {
|
|
1375
161
|
enumerable: !1,
|
|
1376
|
-
get:
|
|
1377
|
-
}) : Object.defineProperty(
|
|
162
|
+
get: Q
|
|
163
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
1378
164
|
configurable: !1,
|
|
1379
165
|
enumerable: !1,
|
|
1380
166
|
writable: !0,
|
|
1381
167
|
value: 0
|
|
1382
|
-
}), Object.defineProperty(
|
|
168
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
1383
169
|
configurable: !1,
|
|
1384
170
|
enumerable: !1,
|
|
1385
171
|
writable: !0,
|
|
1386
172
|
value: null
|
|
1387
|
-
}), Object.defineProperty(
|
|
173
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
1388
174
|
configurable: !1,
|
|
1389
175
|
enumerable: !1,
|
|
1390
176
|
writable: !0,
|
|
1391
|
-
value:
|
|
1392
|
-
}), Object.defineProperty(
|
|
177
|
+
value: D
|
|
178
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
1393
179
|
configurable: !1,
|
|
1394
180
|
enumerable: !1,
|
|
1395
181
|
writable: !0,
|
|
1396
|
-
value:
|
|
1397
|
-
}), Object.freeze && (Object.freeze(
|
|
182
|
+
value: P
|
|
183
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
1398
184
|
}
|
|
1399
|
-
function
|
|
1400
|
-
var
|
|
1401
|
-
if (
|
|
1402
|
-
if (
|
|
1403
|
-
if (
|
|
1404
|
-
for (
|
|
1405
|
-
|
|
1406
|
-
Object.freeze && Object.freeze(
|
|
185
|
+
function N(e, o, c, l, p, d, D, P) {
|
|
186
|
+
var u = o.children;
|
|
187
|
+
if (u !== void 0)
|
|
188
|
+
if (l)
|
|
189
|
+
if (fe(u)) {
|
|
190
|
+
for (l = 0; l < u.length; l++)
|
|
191
|
+
I(u[l]);
|
|
192
|
+
Object.freeze && Object.freeze(u);
|
|
1407
193
|
} else
|
|
1408
194
|
console.error(
|
|
1409
195
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
1410
196
|
);
|
|
1411
|
-
else
|
|
1412
|
-
if (
|
|
1413
|
-
|
|
1414
|
-
var
|
|
197
|
+
else I(u);
|
|
198
|
+
if (Y.call(o, "key")) {
|
|
199
|
+
u = i(e);
|
|
200
|
+
var v = Object.keys(o).filter(function(de) {
|
|
1415
201
|
return de !== "key";
|
|
1416
202
|
});
|
|
1417
|
-
|
|
203
|
+
l = 0 < v.length ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}", G[u + l] || (v = 0 < v.length ? "{" + v.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
1418
204
|
`A props object containing a "key" prop is being spread into JSX:
|
|
1419
205
|
let props = %s;
|
|
1420
206
|
<%s {...props} />
|
|
1421
207
|
React keys must be passed directly to JSX without using spread:
|
|
1422
208
|
let props = %s;
|
|
1423
209
|
<%s key={someKey} {...props} />`,
|
|
1424
|
-
|
|
210
|
+
l,
|
|
211
|
+
u,
|
|
1425
212
|
v,
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
v,
|
|
1441
|
-
b,
|
|
213
|
+
u
|
|
214
|
+
), G[u + l] = !0);
|
|
215
|
+
}
|
|
216
|
+
if (u = null, c !== void 0 && (t(c), u = "" + c), f(o) && (t(o.key), u = "" + o.key), "key" in o) {
|
|
217
|
+
c = {};
|
|
218
|
+
for (var j in o)
|
|
219
|
+
j !== "key" && (c[j] = o[j]);
|
|
220
|
+
} else c = o;
|
|
221
|
+
return u && b(
|
|
222
|
+
c,
|
|
223
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
224
|
+
), K(
|
|
225
|
+
e,
|
|
226
|
+
u,
|
|
1442
227
|
d,
|
|
1443
|
-
p
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
228
|
+
p,
|
|
229
|
+
n(),
|
|
230
|
+
c,
|
|
231
|
+
D,
|
|
232
|
+
P
|
|
1447
233
|
);
|
|
1448
234
|
}
|
|
1449
|
-
function
|
|
1450
|
-
typeof
|
|
235
|
+
function I(e) {
|
|
236
|
+
typeof e == "object" && e !== null && e.$$typeof === F && e._store && (e._store.validated = 1);
|
|
1451
237
|
}
|
|
1452
|
-
var
|
|
238
|
+
var R = pe, F = Symbol.for("react.transitional.element"), ee = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), te = Symbol.for("react.strict_mode"), re = Symbol.for("react.profiler"), se = Symbol.for("react.consumer"), ne = Symbol.for("react.context"), oe = Symbol.for("react.forward_ref"), ae = Symbol.for("react.suspense"), ie = Symbol.for("react.suspense_list"), ce = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), le = Symbol.for("react.activity"), ue = Symbol.for("react.client.reference"), O = R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, fe = Array.isArray, y = console.createTask ? console.createTask : function() {
|
|
1453
239
|
return null;
|
|
1454
240
|
};
|
|
1455
|
-
|
|
1456
|
-
react_stack_bottom_frame: function(
|
|
1457
|
-
return
|
|
241
|
+
R = {
|
|
242
|
+
react_stack_bottom_frame: function(e) {
|
|
243
|
+
return e();
|
|
1458
244
|
}
|
|
1459
245
|
};
|
|
1460
|
-
var
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
)(),
|
|
1464
|
-
|
|
1465
|
-
var
|
|
1466
|
-
return
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
i,
|
|
1470
|
-
!1,
|
|
246
|
+
var U, $ = {}, M = R.react_stack_bottom_frame.bind(
|
|
247
|
+
R,
|
|
248
|
+
a
|
|
249
|
+
)(), W = y(s(a)), G = {};
|
|
250
|
+
E.Fragment = w, E.jsx = function(e, o, c, l, p) {
|
|
251
|
+
var d = 1e4 > O.recentlyCreatedOwnerStacks++;
|
|
252
|
+
return N(
|
|
253
|
+
e,
|
|
254
|
+
o,
|
|
1471
255
|
c,
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
256
|
+
!1,
|
|
257
|
+
l,
|
|
258
|
+
p,
|
|
259
|
+
d ? Error("react-stack-top-frame") : M,
|
|
260
|
+
d ? y(s(e)) : W
|
|
1475
261
|
);
|
|
1476
|
-
},
|
|
1477
|
-
var
|
|
1478
|
-
return
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
i,
|
|
1482
|
-
!0,
|
|
262
|
+
}, E.jsxs = function(e, o, c, l, p) {
|
|
263
|
+
var d = 1e4 > O.recentlyCreatedOwnerStacks++;
|
|
264
|
+
return N(
|
|
265
|
+
e,
|
|
266
|
+
o,
|
|
1483
267
|
c,
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
268
|
+
!0,
|
|
269
|
+
l,
|
|
270
|
+
p,
|
|
271
|
+
d ? Error("react-stack-top-frame") : M,
|
|
272
|
+
d ? y(s(e)) : W
|
|
1487
273
|
);
|
|
1488
274
|
};
|
|
1489
|
-
})()),
|
|
275
|
+
})()), E;
|
|
1490
276
|
}
|
|
1491
|
-
var
|
|
1492
|
-
function
|
|
1493
|
-
return
|
|
277
|
+
var J;
|
|
278
|
+
function me() {
|
|
279
|
+
return J || (J = 1, process.env.NODE_ENV === "production" ? g.exports = _e() : g.exports = ve()), g.exports;
|
|
1494
280
|
}
|
|
1495
|
-
var
|
|
1496
|
-
function
|
|
1497
|
-
const [
|
|
1498
|
-
return /* @__PURE__ */
|
|
281
|
+
var X = me();
|
|
282
|
+
function Te() {
|
|
283
|
+
const [i, r] = he(0);
|
|
284
|
+
return /* @__PURE__ */ X.jsxs("div", { children: [
|
|
1499
285
|
"login form ",
|
|
1500
|
-
|
|
1501
|
-
/* @__PURE__ */
|
|
286
|
+
i,
|
|
287
|
+
/* @__PURE__ */ X.jsx(
|
|
1502
288
|
"button",
|
|
1503
289
|
{
|
|
1504
290
|
onClick: () => {
|
|
1505
|
-
|
|
291
|
+
r((t) => t + 1);
|
|
1506
292
|
},
|
|
1507
293
|
type: "button",
|
|
1508
294
|
children: "click"
|
|
@@ -1510,157 +296,157 @@ function ht() {
|
|
|
1510
296
|
)
|
|
1511
297
|
] });
|
|
1512
298
|
}
|
|
1513
|
-
const
|
|
299
|
+
const m = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), A = {
|
|
1514
300
|
current: []
|
|
1515
301
|
};
|
|
1516
|
-
let
|
|
1517
|
-
const
|
|
1518
|
-
function
|
|
1519
|
-
const
|
|
1520
|
-
for (const
|
|
1521
|
-
if (
|
|
302
|
+
let x = !1;
|
|
303
|
+
const T = /* @__PURE__ */ new Set(), B = /* @__PURE__ */ new Map();
|
|
304
|
+
function H(i) {
|
|
305
|
+
const r = Array.from(i).sort((t, s) => t instanceof _ && t.options.deps.includes(s) ? 1 : s instanceof _ && s.options.deps.includes(t) ? -1 : 0);
|
|
306
|
+
for (const t of r) {
|
|
307
|
+
if (A.current.includes(t))
|
|
1522
308
|
continue;
|
|
1523
|
-
|
|
1524
|
-
const
|
|
1525
|
-
if (
|
|
1526
|
-
for (const
|
|
1527
|
-
const
|
|
1528
|
-
|
|
309
|
+
A.current.push(t), t.recompute();
|
|
310
|
+
const s = k.get(t);
|
|
311
|
+
if (s)
|
|
312
|
+
for (const n of s) {
|
|
313
|
+
const a = m.get(n);
|
|
314
|
+
a && H(a);
|
|
1529
315
|
}
|
|
1530
316
|
}
|
|
1531
317
|
}
|
|
1532
|
-
function
|
|
1533
|
-
|
|
1534
|
-
(
|
|
1535
|
-
prevVal:
|
|
1536
|
-
currentVal:
|
|
318
|
+
function be(i) {
|
|
319
|
+
i.listeners.forEach(
|
|
320
|
+
(r) => r({
|
|
321
|
+
prevVal: i.prevState,
|
|
322
|
+
currentVal: i.state
|
|
1537
323
|
})
|
|
1538
324
|
);
|
|
1539
325
|
}
|
|
1540
|
-
function
|
|
1541
|
-
|
|
1542
|
-
(
|
|
1543
|
-
prevVal:
|
|
1544
|
-
currentVal:
|
|
326
|
+
function Se(i) {
|
|
327
|
+
i.listeners.forEach(
|
|
328
|
+
(r) => r({
|
|
329
|
+
prevVal: i.prevState,
|
|
330
|
+
currentVal: i.state
|
|
1545
331
|
})
|
|
1546
332
|
);
|
|
1547
333
|
}
|
|
1548
|
-
function
|
|
1549
|
-
if (
|
|
334
|
+
function Ee(i) {
|
|
335
|
+
if (T.add(i), !x)
|
|
1550
336
|
try {
|
|
1551
|
-
for (
|
|
1552
|
-
const
|
|
1553
|
-
|
|
1554
|
-
for (const
|
|
1555
|
-
const
|
|
1556
|
-
|
|
337
|
+
for (x = !0; T.size > 0; ) {
|
|
338
|
+
const r = Array.from(T);
|
|
339
|
+
T.clear();
|
|
340
|
+
for (const t of r) {
|
|
341
|
+
const s = B.get(t) ?? t.prevState;
|
|
342
|
+
t.prevState = s, be(t);
|
|
1557
343
|
}
|
|
1558
|
-
for (const
|
|
1559
|
-
const
|
|
1560
|
-
|
|
344
|
+
for (const t of r) {
|
|
345
|
+
const s = m.get(t);
|
|
346
|
+
s && (A.current.push(t), H(s));
|
|
1561
347
|
}
|
|
1562
|
-
for (const
|
|
1563
|
-
const
|
|
1564
|
-
if (
|
|
1565
|
-
for (const
|
|
1566
|
-
|
|
348
|
+
for (const t of r) {
|
|
349
|
+
const s = m.get(t);
|
|
350
|
+
if (s)
|
|
351
|
+
for (const n of s)
|
|
352
|
+
Se(n);
|
|
1567
353
|
}
|
|
1568
354
|
}
|
|
1569
355
|
} finally {
|
|
1570
|
-
|
|
356
|
+
x = !1, A.current = [], B.clear();
|
|
1571
357
|
}
|
|
1572
358
|
}
|
|
1573
|
-
function
|
|
1574
|
-
return typeof
|
|
359
|
+
function Re(i) {
|
|
360
|
+
return typeof i == "function";
|
|
1575
361
|
}
|
|
1576
|
-
class
|
|
1577
|
-
constructor(
|
|
1578
|
-
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = (
|
|
1579
|
-
var
|
|
1580
|
-
this.listeners.add(
|
|
1581
|
-
const
|
|
362
|
+
class C {
|
|
363
|
+
constructor(r, t) {
|
|
364
|
+
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = (s) => {
|
|
365
|
+
var n, a;
|
|
366
|
+
this.listeners.add(s);
|
|
367
|
+
const f = (a = (n = this.options) == null ? void 0 : n.onSubscribe) == null ? void 0 : a.call(n, s, this);
|
|
1582
368
|
return () => {
|
|
1583
|
-
this.listeners.delete(
|
|
369
|
+
this.listeners.delete(s), f?.();
|
|
1584
370
|
};
|
|
1585
|
-
}, this.prevState =
|
|
371
|
+
}, this.prevState = r, this.state = r, this.options = t;
|
|
1586
372
|
}
|
|
1587
|
-
setState(
|
|
1588
|
-
var
|
|
1589
|
-
this.prevState = this.state, (
|
|
373
|
+
setState(r) {
|
|
374
|
+
var t, s, n;
|
|
375
|
+
this.prevState = this.state, (t = this.options) != null && t.updateFn ? this.state = this.options.updateFn(this.prevState)(r) : Re(r) ? this.state = r(this.prevState) : this.state = r, (n = (s = this.options) == null ? void 0 : s.onUpdate) == null || n.call(s), Ee(this);
|
|
1590
376
|
}
|
|
1591
377
|
}
|
|
1592
|
-
class
|
|
1593
|
-
constructor(
|
|
378
|
+
class _ {
|
|
379
|
+
constructor(r) {
|
|
1594
380
|
this.listeners = /* @__PURE__ */ new Set(), this._subscriptions = [], this.lastSeenDepValues = [], this.getDepVals = () => {
|
|
1595
|
-
const
|
|
1596
|
-
for (const
|
|
1597
|
-
|
|
1598
|
-
return this.lastSeenDepValues =
|
|
1599
|
-
prevDepVals:
|
|
1600
|
-
currDepVals:
|
|
381
|
+
const t = [], s = [];
|
|
382
|
+
for (const n of this.options.deps)
|
|
383
|
+
t.push(n.prevState), s.push(n.state);
|
|
384
|
+
return this.lastSeenDepValues = s, {
|
|
385
|
+
prevDepVals: t,
|
|
386
|
+
currDepVals: s,
|
|
1601
387
|
prevVal: this.prevState ?? void 0
|
|
1602
388
|
};
|
|
1603
389
|
}, this.recompute = () => {
|
|
1604
|
-
var
|
|
390
|
+
var t, s;
|
|
1605
391
|
this.prevState = this.state;
|
|
1606
|
-
const { prevDepVals:
|
|
392
|
+
const { prevDepVals: n, currDepVals: a, prevVal: f } = this.getDepVals();
|
|
1607
393
|
this.state = this.options.fn({
|
|
1608
|
-
prevDepVals:
|
|
1609
|
-
currDepVals:
|
|
1610
|
-
prevVal:
|
|
1611
|
-
}), (
|
|
394
|
+
prevDepVals: n,
|
|
395
|
+
currDepVals: a,
|
|
396
|
+
prevVal: f
|
|
397
|
+
}), (s = (t = this.options).onUpdate) == null || s.call(t);
|
|
1612
398
|
}, this.checkIfRecalculationNeededDeeply = () => {
|
|
1613
|
-
for (const
|
|
1614
|
-
|
|
1615
|
-
let
|
|
1616
|
-
const
|
|
1617
|
-
for (let
|
|
1618
|
-
if (
|
|
1619
|
-
|
|
399
|
+
for (const a of this.options.deps)
|
|
400
|
+
a instanceof _ && a.checkIfRecalculationNeededDeeply();
|
|
401
|
+
let t = !1;
|
|
402
|
+
const s = this.lastSeenDepValues, { currDepVals: n } = this.getDepVals();
|
|
403
|
+
for (let a = 0; a < n.length; a++)
|
|
404
|
+
if (n[a] !== s[a]) {
|
|
405
|
+
t = !0;
|
|
1620
406
|
break;
|
|
1621
407
|
}
|
|
1622
|
-
|
|
408
|
+
t && this.recompute();
|
|
1623
409
|
}, this.mount = () => (this.registerOnGraph(), this.checkIfRecalculationNeededDeeply(), () => {
|
|
1624
410
|
this.unregisterFromGraph();
|
|
1625
|
-
for (const
|
|
1626
|
-
|
|
1627
|
-
}), this.subscribe = (
|
|
1628
|
-
var
|
|
1629
|
-
this.listeners.add(
|
|
1630
|
-
const
|
|
411
|
+
for (const t of this._subscriptions)
|
|
412
|
+
t();
|
|
413
|
+
}), this.subscribe = (t) => {
|
|
414
|
+
var s, n;
|
|
415
|
+
this.listeners.add(t);
|
|
416
|
+
const a = (n = (s = this.options).onSubscribe) == null ? void 0 : n.call(s, t, this);
|
|
1631
417
|
return () => {
|
|
1632
|
-
this.listeners.delete(
|
|
418
|
+
this.listeners.delete(t), a?.();
|
|
1633
419
|
};
|
|
1634
|
-
}, this.options =
|
|
420
|
+
}, this.options = r, this.state = r.fn({
|
|
1635
421
|
prevDepVals: void 0,
|
|
1636
422
|
prevVal: void 0,
|
|
1637
423
|
currDepVals: this.getDepVals().currDepVals
|
|
1638
424
|
});
|
|
1639
425
|
}
|
|
1640
|
-
registerOnGraph(
|
|
1641
|
-
for (const
|
|
1642
|
-
if (
|
|
1643
|
-
|
|
1644
|
-
else if (
|
|
1645
|
-
let
|
|
1646
|
-
|
|
1647
|
-
let
|
|
1648
|
-
|
|
426
|
+
registerOnGraph(r = this.options.deps) {
|
|
427
|
+
for (const t of r)
|
|
428
|
+
if (t instanceof _)
|
|
429
|
+
t.registerOnGraph(), this.registerOnGraph(t.options.deps);
|
|
430
|
+
else if (t instanceof C) {
|
|
431
|
+
let s = m.get(t);
|
|
432
|
+
s || (s = /* @__PURE__ */ new Set(), m.set(t, s)), s.add(this);
|
|
433
|
+
let n = k.get(this);
|
|
434
|
+
n || (n = /* @__PURE__ */ new Set(), k.set(this, n)), n.add(t);
|
|
1649
435
|
}
|
|
1650
436
|
}
|
|
1651
|
-
unregisterFromGraph(
|
|
1652
|
-
for (const
|
|
1653
|
-
if (
|
|
1654
|
-
this.unregisterFromGraph(
|
|
1655
|
-
else if (
|
|
1656
|
-
const
|
|
1657
|
-
|
|
1658
|
-
const
|
|
1659
|
-
|
|
437
|
+
unregisterFromGraph(r = this.options.deps) {
|
|
438
|
+
for (const t of r)
|
|
439
|
+
if (t instanceof _)
|
|
440
|
+
this.unregisterFromGraph(t.options.deps);
|
|
441
|
+
else if (t instanceof C) {
|
|
442
|
+
const s = m.get(t);
|
|
443
|
+
s && s.delete(this);
|
|
444
|
+
const n = k.get(this);
|
|
445
|
+
n && n.delete(t);
|
|
1660
446
|
}
|
|
1661
447
|
}
|
|
1662
448
|
}
|
|
1663
|
-
const
|
|
449
|
+
const V = "Authorization", Z = () => ({
|
|
1664
450
|
user: {
|
|
1665
451
|
id: null,
|
|
1666
452
|
email: null,
|
|
@@ -1670,72 +456,72 @@ const ke = "Authorization", Ze = () => ({
|
|
|
1670
456
|
},
|
|
1671
457
|
isAuthenticated: !1,
|
|
1672
458
|
isLoaded: !1
|
|
1673
|
-
}),
|
|
1674
|
-
fn: () => !!
|
|
1675
|
-
deps: [
|
|
459
|
+
}), h = new C(Z()), ke = new _({
|
|
460
|
+
fn: () => !!h.state.user?.roles.find((i) => i.name === "admin"),
|
|
461
|
+
deps: [h]
|
|
1676
462
|
});
|
|
1677
|
-
class
|
|
463
|
+
class Ae {
|
|
1678
464
|
accountStore;
|
|
1679
465
|
httpClient;
|
|
1680
|
-
constructor(
|
|
1681
|
-
this.httpClient =
|
|
466
|
+
constructor(r) {
|
|
467
|
+
this.httpClient = r, this.accountStore = h;
|
|
1682
468
|
}
|
|
1683
469
|
initAuthData() {
|
|
1684
|
-
const
|
|
1685
|
-
|
|
470
|
+
const r = localStorage.getItem("token");
|
|
471
|
+
r && (this.httpClient.defaults.headers.common[V] = r);
|
|
1686
472
|
}
|
|
1687
473
|
async load() {
|
|
1688
474
|
try {
|
|
1689
|
-
const { data:
|
|
1690
|
-
|
|
1691
|
-
user:
|
|
475
|
+
const { data: r } = await this.httpClient.get("/api/auth/account/me");
|
|
476
|
+
h.setState(() => ({
|
|
477
|
+
user: r,
|
|
1692
478
|
isAuthenticated: !0,
|
|
1693
479
|
isLoaded: !0
|
|
1694
480
|
}));
|
|
1695
481
|
} catch {
|
|
1696
|
-
|
|
1697
|
-
...
|
|
482
|
+
h.setState((r) => ({
|
|
483
|
+
...r,
|
|
1698
484
|
isLoaded: !0
|
|
1699
485
|
}));
|
|
1700
486
|
}
|
|
1701
487
|
}
|
|
1702
|
-
async login(
|
|
1703
|
-
const
|
|
1704
|
-
return
|
|
488
|
+
async login(r) {
|
|
489
|
+
const t = await this.httpClient.post("/api/auth/account/login", r), { user: s, access_token: n } = t.data;
|
|
490
|
+
return s.is_active && this._initUserData({ user: s, access_token: n }), s;
|
|
1705
491
|
}
|
|
1706
|
-
register(
|
|
1707
|
-
return this.httpClient.post("/api/auth/account/register",
|
|
492
|
+
register(r) {
|
|
493
|
+
return this.httpClient.post("/api/auth/account/register", r);
|
|
1708
494
|
}
|
|
1709
|
-
async activate(
|
|
1710
|
-
const
|
|
1711
|
-
this._initUserData(
|
|
495
|
+
async activate(r) {
|
|
496
|
+
const t = await this.httpClient.post("/api/auth/account/activate", r);
|
|
497
|
+
this._initUserData(t.data);
|
|
1712
498
|
}
|
|
1713
499
|
logout() {
|
|
1714
|
-
|
|
500
|
+
h.setState(() => ({ ...Z(), isLoaded: !0 })), this._clearAuthData();
|
|
1715
501
|
}
|
|
1716
|
-
startResetPassword(
|
|
1717
|
-
return this.httpClient.post("/api/auth/account/start-reset-password",
|
|
502
|
+
startResetPassword(r) {
|
|
503
|
+
return this.httpClient.post("/api/auth/account/start-reset-password", r);
|
|
1718
504
|
}
|
|
1719
|
-
async resetPassword(
|
|
1720
|
-
const
|
|
1721
|
-
this._initUserData(
|
|
505
|
+
async resetPassword(r) {
|
|
506
|
+
const t = await this.httpClient.post("/api/auth/account/reset-password", r);
|
|
507
|
+
this._initUserData(t.data);
|
|
1722
508
|
}
|
|
1723
|
-
_initUserData({ user:
|
|
1724
|
-
this._setAuthData(
|
|
1725
|
-
user:
|
|
509
|
+
_initUserData({ user: r, access_token: t }) {
|
|
510
|
+
this._setAuthData(t), h.setState(() => ({
|
|
511
|
+
user: r,
|
|
1726
512
|
isAuthenticated: !0,
|
|
1727
513
|
isLoaded: !0
|
|
1728
514
|
}));
|
|
1729
515
|
}
|
|
1730
|
-
_setAuthData(
|
|
1731
|
-
localStorage.setItem("token",
|
|
516
|
+
_setAuthData(r) {
|
|
517
|
+
localStorage.setItem("token", r), this.httpClient.defaults.headers.common[V] = r;
|
|
1732
518
|
}
|
|
1733
519
|
_clearAuthData() {
|
|
1734
|
-
localStorage.removeItem("token"), delete this.httpClient.defaults.headers.common[
|
|
520
|
+
localStorage.removeItem("token"), delete this.httpClient.defaults.headers.common[V];
|
|
1735
521
|
}
|
|
1736
522
|
}
|
|
1737
523
|
export {
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
524
|
+
Ae as Auth,
|
|
525
|
+
Te as LoginForm,
|
|
526
|
+
ke as isAdmin
|
|
1741
527
|
};
|