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