@entropic-bond/crud-panel 4.2.0 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- class Le {
1
+ class Je {
2
2
  constructor() {
3
3
  this.subscribers = /* @__PURE__ */ new Set();
4
4
  }
@@ -26,7 +26,7 @@ class Le {
26
26
  * @param event the event passed to all subscribers.
27
27
  */
28
28
  notify(t) {
29
- this.subscribers.forEach((s) => s(t));
29
+ this.subscribers.forEach((i) => i(t));
30
30
  }
31
31
  /**
32
32
  * Returns the number of subscribers.
@@ -43,49 +43,47 @@ class Le {
43
43
  return this.subscribers.size;
44
44
  }
45
45
  }
46
- let Me;
47
- const Qr = new Uint8Array(16);
48
- function Xr() {
49
- if (!Me && (Me = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Me))
50
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
51
- return Me(Qr);
46
+ const U = [];
47
+ for (let r = 0; r < 256; ++r)
48
+ U.push((r + 256).toString(16).slice(1));
49
+ function Nt(r, t = 0) {
50
+ return (U[r[t + 0]] + U[r[t + 1]] + U[r[t + 2]] + U[r[t + 3]] + "-" + U[r[t + 4]] + U[r[t + 5]] + "-" + U[r[t + 6]] + U[r[t + 7]] + "-" + U[r[t + 8]] + U[r[t + 9]] + "-" + U[r[t + 10]] + U[r[t + 11]] + U[r[t + 12]] + U[r[t + 13]] + U[r[t + 14]] + U[r[t + 15]]).toLowerCase();
52
51
  }
53
- const N = [];
54
- for (let n = 0; n < 256; ++n)
55
- N.push((n + 256).toString(16).slice(1));
56
- function Zr(n, t = 0) {
57
- return N[n[t + 0]] + N[n[t + 1]] + N[n[t + 2]] + N[n[t + 3]] + "-" + N[n[t + 4]] + N[n[t + 5]] + "-" + N[n[t + 6]] + N[n[t + 7]] + "-" + N[n[t + 8]] + N[n[t + 9]] + "-" + N[n[t + 10]] + N[n[t + 11]] + N[n[t + 12]] + N[n[t + 13]] + N[n[t + 14]] + N[n[t + 15]];
52
+ let ot;
53
+ const kt = new Uint8Array(16);
54
+ function Dt() {
55
+ if (!ot) {
56
+ if (typeof crypto > "u" || !crypto.getRandomValues)
57
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
58
+ ot = crypto.getRandomValues.bind(crypto);
59
+ }
60
+ return ot(kt);
58
61
  }
59
- const en = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Mt = {
60
- randomUUID: en
61
- };
62
- function tn(n, t, s) {
63
- if (Mt.randomUUID && !t && !n)
64
- return Mt.randomUUID();
65
- n = n || {};
66
- const c = n.random || (n.rng || Xr)();
67
- if (c[6] = c[6] & 15 | 64, c[8] = c[8] & 63 | 128, t) {
68
- s = s || 0;
69
- for (let l = 0; l < 16; ++l)
70
- t[s + l] = c[l];
71
- return t;
72
- }
73
- return Zr(c);
62
+ const Mt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), yt = { randomUUID: Mt };
63
+ function $t(r, t, i) {
64
+ var f;
65
+ if (yt.randomUUID && !r)
66
+ return yt.randomUUID();
67
+ r = r || {};
68
+ const c = r.random ?? ((f = r.rng) == null ? void 0 : f.call(r)) ?? Dt();
69
+ if (c.length < 16)
70
+ throw new Error("Random bytes length must be >= 16");
71
+ return c[6] = c[6] & 15 | 64, c[8] = c[8] & 63 | 128, Nt(c);
74
72
  }
75
- var rn = Object.defineProperty, nn = Object.getOwnPropertyDescriptor, on = (n, t, s, c) => {
76
- for (var l = c > 1 ? void 0 : c ? nn(t, s) : t, y = n.length - 1, D; y >= 0; y--)
77
- (D = n[y]) && (l = (c ? D(t, s, l) : D(l)) || l);
78
- return c && l && rn(t, s, l), l;
79
- }, x;
80
- const xt = (x = class {
73
+ var xt = Object.defineProperty, Yt = (r, t, i, f) => {
74
+ for (var c = void 0, g = r.length - 1, S; g >= 0; g--)
75
+ (S = r[g]) && (c = S(t, i, c) || c);
76
+ return c && xt(t, i, c), c;
77
+ }, Y;
78
+ const Tt = (Y = class {
81
79
  /**
82
80
  * Registers a class to be used by the persistence engine.
83
81
  * @param className the name of the class to be registered
84
82
  * @param factory the constructor of the registered class
85
83
  * @param annotation an annotation associated with the class
86
84
  */
87
- static registerFactory(n, t, s) {
88
- this._factoryMap[n] = { factory: t, annotation: s };
85
+ static registerFactory(r, t, i) {
86
+ this._factoryMap[r] = { factory: t, annotation: i };
89
87
  }
90
88
  /**
91
89
  * Returns the constructor of a registered class
@@ -97,12 +95,10 @@ const xt = (x = class {
97
95
  * @see classesExtending
98
96
  * @see annotations
99
97
  */
100
- static classFactory(n) {
101
- if (!n)
102
- throw new Error("You should provide a class name.");
103
- if (!this._factoryMap[n])
104
- throw new Error(`You should register class ${n} prior to use.`);
105
- return this._factoryMap[n].factory;
98
+ static classFactory(r) {
99
+ if (!r) throw new Error("You should provide a class name.");
100
+ if (!this._factoryMap[r]) throw new Error(`You should register class ${r} prior to use.`);
101
+ return this._factoryMap[r].factory;
106
102
  }
107
103
  /**
108
104
  * Returns the names of all registered classes
@@ -120,8 +116,8 @@ const xt = (x = class {
120
116
  * @see registerFactory
121
117
  * @see classFactory
122
118
  */
123
- static classesExtending(n) {
124
- return Object.entries(this._factoryMap).filter(([, t]) => new t.factory() instanceof n).map(([t]) => t);
119
+ static classesExtending(r) {
120
+ return Object.entries(this._factoryMap).filter(([, t]) => new t.factory() instanceof r).map(([t]) => t);
125
121
  }
126
122
  /**
127
123
  * Returns the annotation associated with a registered class
@@ -130,17 +126,16 @@ const xt = (x = class {
130
126
  * @throws an error if the class is not registered
131
127
  * @see registerFactory
132
128
  */
133
- static annotations(n) {
134
- if (n instanceof x ? n = n.className : typeof n == "string" || (n = new n().className), !this._factoryMap[n])
135
- throw new Error(`You should register class ${n} prior to use.`);
136
- return this._factoryMap[n].annotation;
129
+ static annotations(r) {
130
+ if (r instanceof Y ? r = r.className : typeof r == "string" || (r = new r().className), !this._factoryMap[r]) throw new Error(`You should register class ${r} prior to use.`);
131
+ return this._factoryMap[r].annotation;
137
132
  }
138
133
  /**
139
134
  * Returns a new instance of Persistent class.
140
135
  * @param className the initial id of this instance. If not provided, a new id will be generated
141
136
  */
142
- constructor(n = tn()) {
143
- this._id = n;
137
+ constructor(r = $t()) {
138
+ this._id = r;
144
139
  }
145
140
  /**
146
141
  * Gets the class name of this instance.
@@ -152,8 +147,8 @@ const xt = (x = class {
152
147
  * Sets the id of this instance.
153
148
  * @param value the id of this instance
154
149
  */
155
- setId(n) {
156
- this._id = n;
150
+ setId(r) {
151
+ this._id = r;
157
152
  }
158
153
  /**
159
154
  * Returns the id of this instance.
@@ -180,9 +175,9 @@ const xt = (x = class {
180
175
  * @returns an array of the persistent properties of this instance
181
176
  */
182
177
  getPersistentProperties() {
183
- return this._persistentProperties ? this._persistentProperties.map((n) => ({
184
- ...n,
185
- name: n.name.slice(1)
178
+ return this._persistentProperties ? this._persistentProperties.map((r) => ({
179
+ ...r,
180
+ name: r.name.slice(1)
186
181
  })) : [];
187
182
  }
188
183
  /**
@@ -190,10 +185,9 @@ const xt = (x = class {
190
185
  * @param propName the persistent property name
191
186
  * @returns the property information
192
187
  */
193
- getPropInfo(n) {
194
- const t = this.getPersistentProperties().find((s) => s.name === n);
195
- if (!t)
196
- throw new Error(`Property "${n}" has not been registered.`);
188
+ getPropInfo(r) {
189
+ const t = this.getPersistentProperties().find((i) => i.name === r);
190
+ if (!t) throw new Error(`Property "${r}" has not been registered.`);
197
191
  return t;
198
192
  }
199
193
  /**
@@ -203,8 +197,8 @@ const xt = (x = class {
203
197
  * @returns true if the property is required
204
198
  * @see required
205
199
  */
206
- isRequired(n) {
207
- return this.getPropInfo(n).validator != null;
200
+ isRequired(r) {
201
+ return this.getPropInfo(r).validator != null;
208
202
  }
209
203
  /**
210
204
  * Query if the property value is valid
@@ -214,8 +208,8 @@ const xt = (x = class {
214
208
  * passed to the @required decorator
215
209
  * @see required
216
210
  */
217
- isPropValueValid(n) {
218
- const t = this.getPropInfo(n);
211
+ isPropValueValid(r) {
212
+ const t = this.getPropInfo(r);
219
213
  return t.validator ? t.validator(this[t.name], t, this) : !0;
220
214
  }
221
215
  /**
@@ -227,8 +221,8 @@ const xt = (x = class {
227
221
  * @see fromObject
228
222
  * @see toObject
229
223
  */
230
- clone(n) {
231
- const t = n.toObject();
224
+ clone(r) {
225
+ const t = r.toObject();
232
226
  return delete t.id, this.fromObject(t);
233
227
  }
234
228
  /**
@@ -239,13 +233,13 @@ const xt = (x = class {
239
233
  * @see clone
240
234
  * @see toObject
241
235
  */
242
- fromObject(n) {
243
- return this.fromObj(n), this.afterDeserialize(), this;
236
+ fromObject(r) {
237
+ return this.fromObj(r), this.afterDeserialize(), this;
244
238
  }
245
- fromObj(n) {
239
+ fromObj(r) {
246
240
  return this._persistentProperties ? (this._persistentProperties.forEach((t) => {
247
- const s = this.removeUnderscore(t), c = n[s];
248
- c != null && (this[t.name] = this.fromDeepObject(c));
241
+ const i = this.removeUnderscore(t), f = r[i];
242
+ f != null && (this[t.name] = this.fromDeepObject(f));
249
243
  }), this) : this;
250
244
  }
251
245
  /**
@@ -256,201 +250,215 @@ const xt = (x = class {
256
250
  * @see clone
257
251
  */
258
252
  toObject() {
259
- const n = {}, t = this.toObj(n);
260
- return this.pushDocument(n, this.className, t), {
253
+ const r = {}, t = this.toObj(r);
254
+ return this.pushDocument(r, this.className, t), {
261
255
  ...t,
262
- __rootCollections: n
256
+ __rootCollections: r
263
257
  };
264
258
  }
265
- toObj(n) {
266
- if (!this._persistentProperties)
267
- return {};
259
+ toObj(r) {
260
+ if (!this._persistentProperties) return {};
268
261
  this.beforeSerialize();
269
262
  const t = {};
270
- if (!this.className)
271
- throw new Error("You should register this class prior to streaming it.");
272
- return this._persistentProperties.forEach((s) => {
273
- const c = this[s.name], l = this.removeUnderscore(s);
274
- c != null && (s.isReference ? t[l] = this.toReferenceObj(s, n) : t[l] = this.toDeepObj(c, n), s.searchableArray && (t[x.searchableArrayNameFor(l)] = c.map((y) => y.id)));
263
+ if (!this.className) throw new Error("You should register this class prior to streaming it.");
264
+ return this._persistentProperties.forEach((i) => {
265
+ const f = this[i.name], c = this.removeUnderscore(i);
266
+ f != null && (i.isReference ? t[c] = this.toReferenceObj(i, r) : t[c] = this.toDeepObj(f, r), i.searchableArray && (t[Y.searchableArrayNameFor(c)] = f.map((g) => g.id)));
275
267
  }), t.__className = this.className, t;
276
268
  }
277
- static searchableArrayNameFor(n) {
278
- return `__${n}_searchable`;
279
- }
280
- fromDeepObject(n) {
281
- if (n == null)
282
- return n;
283
- if (Array.isArray(n))
284
- return n.map((t) => this.fromDeepObject(t));
285
- if (n.__documentReference) {
286
- const t = n, s = x.createInstance(t);
287
- return s.__documentReference = n.__documentReference, s;
269
+ static searchableArrayNameFor(r) {
270
+ return `__${r}_searchable`;
271
+ }
272
+ fromDeepObject(r) {
273
+ if (r == null) return r;
274
+ if (Array.isArray(r))
275
+ return r.map((t) => this.fromDeepObject(t));
276
+ if (r.__documentReference) {
277
+ const t = r, i = Y.createInstance(t);
278
+ return i.__documentReference = r.__documentReference, i;
288
279
  }
289
- if (n.__className)
290
- return x.createInstance(n);
291
- if (typeof n == "object") {
280
+ if (r.__className)
281
+ return Y.createInstance(r);
282
+ if (typeof r == "object") {
292
283
  const t = {};
293
- return Object.entries(n).forEach(
294
- ([s, c]) => t[s] = this.fromDeepObject(c)
284
+ return Object.entries(r).forEach(
285
+ ([i, f]) => t[i] = this.fromDeepObject(f)
295
286
  ), t;
296
287
  }
297
- return n;
298
- }
299
- toDeepObj(n, t) {
300
- if (n != null) {
301
- if (Array.isArray(n))
302
- return n.map((s) => this.toDeepObj(s, t));
303
- if (n.__documentReference)
304
- return n;
305
- if (n instanceof x)
306
- return n.toObj(t);
307
- if (typeof n == "object") {
308
- const s = {};
309
- return Object.entries(n).forEach(
310
- ([c, l]) => s[c] = this.toDeepObj(l, t)
311
- ), s;
312
- }
313
- return n;
288
+ return r;
289
+ }
290
+ toDeepObj(r, t) {
291
+ if (r != null) {
292
+ if (Array.isArray(r))
293
+ return r.map((i) => this.toDeepObj(i, t));
294
+ if (r.__documentReference) return r;
295
+ if (r instanceof Y)
296
+ return r.toObj(t);
297
+ if (typeof r == "object") {
298
+ const i = {};
299
+ return Object.entries(r).forEach(
300
+ ([f, c]) => i[f] = this.toDeepObj(c, t)
301
+ ), i;
302
+ }
303
+ return r;
314
304
  }
315
305
  }
316
- toReferenceObj(n, t) {
317
- const s = this[n.name], c = (l) => {
318
- let y;
319
- return typeof n.storeInCollection == "function" ? y = n.storeInCollection(l, n) : y = n.storeInCollection || l.className, y;
320
- };
321
- return Array.isArray(s) ? s.map((l) => (n.isPureReference || this.pushDocument(t, c(l), l), this.buildRefObject(l, c(l), n.forcedPersistentProps))) : (n.isPureReference || this.pushDocument(t, c(s), s), this.buildRefObject(s, c(s), n.forcedPersistentProps));
306
+ static collectionPath(r, t) {
307
+ let i;
308
+ return typeof t.storeInCollection == "function" ? i = t.storeInCollection(r, t) : i = t.storeInCollection ?? r.className, i;
322
309
  }
323
- buildRefObject(n, t, s) {
324
- const c = s == null ? void 0 : s.reduce((l, y) => (n[y] !== void 0 && (l[y] = n[y]), l), {});
310
+ toReferenceObj(r, t) {
311
+ var i;
312
+ const f = this[r.name];
313
+ return Array.isArray(f) ? f.map((c) => {
314
+ var g;
315
+ return r.isPureReference || this.pushDocument(t, Y.collectionPath(c, r), c), this.buildRefObject(c, Y.collectionPath(c, r), (g = r.cachedPropsConfig) == null ? void 0 : g.cachedProps);
316
+ }) : (r.isPureReference || this.pushDocument(t, Y.collectionPath(f, r), f), this.buildRefObject(f, Y.collectionPath(f, r), (i = r.cachedPropsConfig) == null ? void 0 : i.cachedProps));
317
+ }
318
+ buildRefObject(r, t, i) {
319
+ const f = i == null ? void 0 : i.reduce((c, g) => (r[g] !== void 0 && (c[g] = r[g]), c), {});
325
320
  return {
326
- id: n.id,
327
- __className: n.className || n.__className,
321
+ id: r.id,
322
+ __className: r.className || r.__className,
328
323
  __documentReference: {
329
324
  storedInCollection: t
330
325
  },
331
- ...c
326
+ ...f
332
327
  };
333
328
  }
334
- pushDocument(n, t, s) {
335
- if ("__documentReference" in s && s.__documentReference)
336
- return;
337
- n[t] || (n[t] = []);
338
- const c = this.toDeepObj(s, n);
339
- n[t].push(c);
329
+ pushDocument(r, t, i) {
330
+ if ("__documentReference" in i && i.__documentReference) return;
331
+ r[t] || (r[t] = []);
332
+ const f = this.toDeepObj(i, r);
333
+ r[t].push(f);
340
334
  }
341
- removeUnderscore(n) {
342
- return n.name.slice(1);
335
+ removeUnderscore(r) {
336
+ return r.name.slice(1);
343
337
  }
344
- static createReference(n) {
345
- const t = x.createInstance(n);
346
- return t.__documentReference = n.__documentReference || { storedInCollection: t.className }, t;
338
+ static createReference(r) {
339
+ const t = Y.createInstance(r);
340
+ return t.__documentReference = r.__documentReference || { storedInCollection: t.className }, t;
347
341
  }
348
- static createInstance(n) {
349
- if (typeof n == "string")
350
- return new (x.classFactory(n))();
342
+ static createInstance(r) {
343
+ if (typeof r == "string")
344
+ return new (Y.classFactory(r))();
351
345
  try {
352
- return new (x.classFactory(n.__className))().fromObject(n);
346
+ return new (Y.classFactory(r.__className))().fromObject(r);
353
347
  } catch (t) {
354
- const s = Object.entries(n).filter(([c, l]) => l != null && typeof l != "function").map(([c, l]) => `${c}: ${l}`).join(`,
348
+ const i = Object.entries(r).filter(([f, c]) => c != null && typeof c != "function").map(([f, c]) => `${f}: ${c}`).join(`,
355
349
  `);
356
350
  throw new Error(`${t}
357
351
  -----> Class name not found in object:
358
352
  {
359
- ${s}
353
+ ${i}
360
354
  }
361
355
  `);
362
356
  }
363
357
  }
364
- static propInfo(n, t) {
365
- return x.createInstance(n).getPropInfo(t);
358
+ static propInfo(r, t) {
359
+ return Y.createInstance(r).getPropInfo(t);
366
360
  }
367
- }, x._factoryMap = {}, x);
368
- on([
369
- de
370
- ], xt.prototype, "_id", 2);
371
- let Wt = xt;
372
- function de(n, t) {
373
- return sn()(n, t);
361
+ /**
362
+ * Retrieves a collection of references with the properties that are stored in the reference object
363
+ * @returns the references collection
364
+ */
365
+ static getSystemRegisteredReferencesWithCachedProps() {
366
+ return Y.registeredClasses().reduce((r, t) => {
367
+ const i = Y.createInstance(t).getPersistentProperties().filter(
368
+ (f) => {
369
+ var c;
370
+ return (c = f.cachedPropsConfig) == null ? void 0 : c.cachedProps;
371
+ }
372
+ );
373
+ return i.length > 0 && (r[t] = i), r;
374
+ }, {});
375
+ }
376
+ }, Y._factoryMap = {}, Y);
377
+ Yt([
378
+ xe
379
+ ], Tt.prototype, "_id");
380
+ let St = Tt;
381
+ function xe(r, t) {
382
+ return Ht()(r, t);
374
383
  }
375
- function sn(n) {
376
- return function(t, s) {
384
+ function Ht(r) {
385
+ return function(t, i) {
377
386
  Object.getOwnPropertyDescriptor(t, "_persistentProperties") || (t._persistentProperties ? t._persistentProperties = [...t._persistentProperties] : t._persistentProperties = []);
378
- const c = t._persistentProperties.find((l) => l.name === s);
379
- c ? Object.assign(c, n) : t._persistentProperties.push({
380
- name: s,
381
- ...n
387
+ const f = t._persistentProperties.find((c) => c.name === i);
388
+ f ? Object.assign(f, r) : t._persistentProperties.push({
389
+ name: i,
390
+ ...r
382
391
  });
383
392
  };
384
393
  }
385
- function an(n, t) {
386
- return (s) => {
387
- Wt.registerFactory(n, s, t), s.prototype.__className = n;
394
+ function Ut(r, t) {
395
+ return (i) => {
396
+ St.registerFactory(r, i, t), i.prototype.__className = r;
388
397
  };
389
398
  }
390
- const Yt = class le {
391
- static registerCloudStorage(t, s) {
392
- le._cloudStorageFactoryMap[t] = s;
399
+ const jt = class $e {
400
+ static registerCloudStorage(t, i) {
401
+ $e._cloudStorageFactoryMap[t] = i;
393
402
  }
394
403
  static createInstance(t) {
395
- const s = le._cloudStorageFactoryMap[t];
396
- if (!s)
404
+ const i = $e._cloudStorageFactoryMap[t];
405
+ if (!i)
397
406
  throw new Error(`You should register the ${t} cloud storage provider prior to use it`);
398
- return s();
407
+ return i();
399
408
  }
400
409
  get className() {
401
410
  return this.__className;
402
411
  }
403
412
  static useCloudStorage(t) {
404
- le._defaultCloudStorage = t;
413
+ $e._defaultCloudStorage = t;
405
414
  }
406
415
  static get defaultCloudStorage() {
407
- if (!le._defaultCloudStorage)
416
+ if (!$e._defaultCloudStorage)
408
417
  throw new Error("You should define a default cloud storage provider prior to use it");
409
- return le._defaultCloudStorage;
418
+ return $e._defaultCloudStorage;
410
419
  }
411
420
  };
412
- Yt._cloudStorageFactoryMap = {};
413
- let be = Yt;
414
- function un(n, t) {
415
- return be.registerCloudStorage(n, t), (s) => {
416
- s.prototype.__className = n;
421
+ jt._cloudStorageFactoryMap = {};
422
+ let ze = jt;
423
+ function It(r, t) {
424
+ return ze.registerCloudStorage(r, t), (i) => {
425
+ i.prototype.__className = r;
417
426
  };
418
427
  }
419
- var cn = Object.defineProperty, ln = Object.getOwnPropertyDescriptor, fn = (n, t, s, c) => {
420
- for (var l = c > 1 ? void 0 : c ? ln(t, s) : t, y = n.length - 1, D; y >= 0; y--)
421
- (D = n[y]) && (l = (c ? D(t, s, l) : D(l)) || l);
422
- return c && l && cn(t, s, l), l;
428
+ var qt = (r, t, i, f) => {
429
+ for (var c = t, g = r.length - 1, S; g >= 0; g--)
430
+ (S = r[g]) && (c = S(c) || c);
431
+ return c;
423
432
  };
424
- let Ze = class extends be {
425
- constructor(n = "") {
426
- super(), this._simulateDelay = 0, this._pendingPromises = [], this.mockFileSystem = {}, this._pathToMockFiles = n;
433
+ let nt = class extends ze {
434
+ constructor(r = "") {
435
+ super(), this._simulateDelay = 0, this._pendingPromises = [], this.mockFileSystem = {}, this._pathToMockFiles = r;
427
436
  }
428
437
  /**
429
438
  * Introduce a delay in the execution of operations to simulate a real data source
430
439
  * @param miliSeconds the number of milliseconds to delay the execution of operations
431
440
  * @returns a chainable reference to this object
432
441
  */
433
- simulateDelay(n) {
434
- return this._simulateDelay = n, this;
442
+ simulateDelay(r) {
443
+ return this._simulateDelay = r, this;
435
444
  }
436
- resolveWithDelay(n) {
437
- if (this._simulateDelay <= 0)
438
- return Promise.resolve(n);
439
- const t = new Promise((s) => {
445
+ resolveWithDelay(r) {
446
+ if (this._simulateDelay <= 0) return Promise.resolve(r);
447
+ const t = new Promise((i) => {
440
448
  setTimeout(
441
- () => s(n),
449
+ () => i(r),
442
450
  this._simulateDelay
443
451
  );
444
452
  });
445
453
  return this._pendingPromises.push(t), t.finally(
446
- () => this._pendingPromises = this._pendingPromises.filter((s) => s === t)
454
+ () => this._pendingPromises = this._pendingPromises.filter((i) => i === t)
447
455
  ), t;
448
456
  }
449
- save(n, t) {
450
- const s = n;
451
- this._onProgress && this._onProgress(0, 100), this.mockFileSystem[n] = JSON.stringify(t), this._onProgress && this._onProgress(100, 100);
452
- const c = t instanceof File ? t.name : s;
453
- return this.resolveWithDelay(c);
457
+ save(r, t) {
458
+ const i = r;
459
+ this._onProgress && this._onProgress(0, 100), this.mockFileSystem[r] = JSON.stringify(t), this._onProgress && this._onProgress(100, 100);
460
+ const f = t instanceof File ? t.name : i;
461
+ return this.resolveWithDelay(f);
454
462
  }
455
463
  uploadControl() {
456
464
  return {
@@ -460,49 +468,48 @@ let Ze = class extends be {
460
468
  },
461
469
  cancel: () => {
462
470
  },
463
- onProgress: (n) => this._onProgress = n
471
+ onProgress: (r) => this._onProgress = r
464
472
  };
465
473
  }
466
- getUrl(n) {
467
- return Promise.resolve(this._pathToMockFiles + n);
474
+ getUrl(r) {
475
+ return Promise.resolve(this._pathToMockFiles + r);
468
476
  }
469
- delete(n) {
470
- return delete this.mockFileSystem[n], this.resolveWithDelay();
477
+ delete(r) {
478
+ return delete this.mockFileSystem[r], this.resolveWithDelay();
471
479
  }
472
480
  };
473
- Ze = fn([
474
- un("MockCloudStorage", () => new Ze())
475
- ], Ze);
476
- var dn = Object.defineProperty, pn = Object.getOwnPropertyDescriptor, pe = (n, t, s, c) => {
477
- for (var l = c > 1 ? void 0 : c ? pn(t, s) : t, y = n.length - 1, D; y >= 0; y--)
478
- (D = n[y]) && (l = (c ? D(t, s, l) : D(l)) || l);
479
- return c && l && dn(t, s, l), l;
481
+ nt = qt([
482
+ It("MockCloudStorage", () => new nt())
483
+ ], nt);
484
+ var Lt = Object.defineProperty, Wt = Object.getOwnPropertyDescriptor, Ye = (r, t, i, f) => {
485
+ for (var c = f > 1 ? void 0 : f ? Wt(t, i) : t, g = r.length - 1, S; g >= 0; g--)
486
+ (S = r[g]) && (c = (f ? S(t, i, c) : S(c)) || c);
487
+ return f && c && Lt(t, i, c), c;
480
488
  };
481
- let ne = class extends Wt {
489
+ let ke = class extends St {
482
490
  constructor() {
483
- super(...arguments), this._onChange = new Le();
491
+ super(...arguments), this._onChange = new Je();
484
492
  }
485
- async save({ data: n, fileName: t, progress: s, cloudStorageProvider: c } = {}) {
486
- const l = n || this._pendingData;
487
- l && (this._reference && await this.delete(), this.provider = c || be.defaultCloudStorage, this._originalFileName = t || (l instanceof File ? l.name : void 0), this._reference = await this.provider.save(this.id, l, s), this._url = await this.provider.getUrl(this._reference), this._pendingData = void 0, this._onChange.notify({ event: 0, storedFile: this }));
493
+ async save({ data: r, fileName: t, progress: i, cloudStorageProvider: f } = {}) {
494
+ const c = r || this._pendingData;
495
+ c && (this._reference && await this.delete(), this.provider = f || ze.defaultCloudStorage, this._originalFileName = t || (c instanceof File ? c.name : void 0), this._reference = await this.provider.save(this.id, c, i), this._url = await this.provider.getUrl(this._reference), this._pendingData = void 0, this._onChange.notify({ event: 0, storedFile: this }));
488
496
  }
489
497
  uploadControl() {
490
498
  return this.provider.uploadControl();
491
499
  }
492
500
  async delete() {
493
- if (!this._reference)
494
- throw new Error("Cannot delete a not stored file");
501
+ if (!this._reference) throw new Error("Cannot delete a not stored file");
495
502
  await this.provider.delete(this._reference), this._reference = void 0, this._url = void 0, this._onChange.notify({ event: 2, storedFile: this });
496
503
  }
497
- set provider(n) {
498
- this._provider = n, this._cloudStorageProviderName = n.className;
504
+ set provider(r) {
505
+ this._provider = r, this._cloudStorageProviderName = r.className;
499
506
  }
500
507
  get provider() {
501
508
  if (!this._provider)
502
509
  try {
503
- this._provider = be.createInstance(this._cloudStorageProviderName);
510
+ this._provider = ze.createInstance(this._cloudStorageProviderName);
504
511
  } catch {
505
- this._provider = be.defaultCloudStorage;
512
+ this._provider = ze.defaultCloudStorage;
506
513
  }
507
514
  return this._provider;
508
515
  }
@@ -512,63 +519,62 @@ let ne = class extends Wt {
512
519
  get mimeType() {
513
520
  return this._mimeType;
514
521
  }
515
- setDataToStore(n) {
516
- return this._pendingData = n, this._originalFileName = n instanceof File ? n.name : void 0, this._mimeType = n instanceof Blob ? n.type : void 0, this._onChange.notify({
522
+ setDataToStore(r) {
523
+ return this._pendingData = r, this._originalFileName = r instanceof File ? r.name : void 0, this._mimeType = r instanceof Blob ? r.type : void 0, this._onChange.notify({
517
524
  event: 1,
518
- pendingData: n,
525
+ pendingData: r,
519
526
  storedFile: this
520
527
  }), this;
521
528
  }
522
529
  get originalFileName() {
523
530
  return this._originalFileName;
524
531
  }
525
- onChange(n) {
526
- return this._onChange.subscribe(n);
532
+ onChange(r) {
533
+ return this._onChange.subscribe(r);
527
534
  }
528
535
  };
529
- pe([
530
- de
531
- ], ne.prototype, "_reference", 2);
532
- pe([
533
- de
534
- ], ne.prototype, "_url", 2);
535
- pe([
536
- de
537
- ], ne.prototype, "_cloudStorageProviderName", 2);
538
- pe([
539
- de
540
- ], ne.prototype, "_originalFileName", 2);
541
- pe([
542
- de
543
- ], ne.prototype, "_mimeType", 2);
544
- ne = pe([
545
- an("StoredFile")
546
- ], ne);
547
- function hn(n, t = "-") {
548
- if (!n)
549
- return "";
550
- const s = n.slice(1).replace(/( |[A-Z])/g, (c) => c === " " ? "-" : t + c[0].toLowerCase());
551
- return n[0].toLocaleLowerCase() + s.replace(/--/g, "-");
536
+ Ye([
537
+ xe
538
+ ], ke.prototype, "_reference", 2);
539
+ Ye([
540
+ xe
541
+ ], ke.prototype, "_url", 2);
542
+ Ye([
543
+ xe
544
+ ], ke.prototype, "_cloudStorageProviderName", 2);
545
+ Ye([
546
+ xe
547
+ ], ke.prototype, "_originalFileName", 2);
548
+ Ye([
549
+ xe
550
+ ], ke.prototype, "_mimeType", 2);
551
+ ke = Ye([
552
+ Ut("StoredFile")
553
+ ], ke);
554
+ function zt(r, t = "-") {
555
+ if (!r) return "";
556
+ const i = r.slice(1).replace(/( |[A-Z])/g, (f) => f === " " ? "-" : t + f[0].toLowerCase());
557
+ return r[0].toLocaleLowerCase() + i.replace(/--/g, "-");
552
558
  }
553
- class mn {
559
+ class Vt {
554
560
  constructor() {
555
- this._debug = !1, this._stages = {}, this._onProgress = new Le();
561
+ this._debug = !1, this._stages = {}, this._onProgress = new Je();
556
562
  }
557
- notifyBusy(t, s) {
563
+ notifyBusy(t, i) {
558
564
  this.pushStage({
559
- name: s ?? "",
565
+ name: i ?? "",
560
566
  progress: t ? 0 : 1,
561
567
  total: 1
562
568
  });
563
569
  }
564
570
  pushStage(t) {
565
571
  this._stages[t.name] = t;
566
- const s = Object.values(this._stages).reduce((c, l, y, D) => c + l.progress / l.total / D.length, 0);
572
+ const i = Object.values(this._stages).reduce((f, c, g, S) => f + c.progress / c.total / S.length, 0);
567
573
  this._onProgress.notify({
568
- busy: s < 1,
569
- overallProgress: s,
574
+ busy: i < 1,
575
+ overallProgress: i,
570
576
  stages: this._stages
571
- }), s >= 1 && (this._stages = {}), this.debug && console.log(`ProgressController ${t.name}: Progress: ${t.progress} Stages: ${t.total}`);
577
+ }), i >= 1 && (this._stages = {}), this.debug && console.log(`ProgressController ${t.name}: Progress: ${t.progress} Stages: ${t.total}`);
572
578
  }
573
579
  onProgress(t) {
574
580
  return this._onProgress.subscribe(t);
@@ -580,49 +586,60 @@ class mn {
580
586
  return this._debug;
581
587
  }
582
588
  }
583
- const re = class re {
589
+ const we = class we {
584
590
  constructor(t) {
585
- this.progressController = new mn(), this.onChangeHdl = new Le(), this.onErrorHdl = new Le(), this.validator = {}, this.setDocument(t || this.createDocument());
591
+ this.progressController = new Vt(), this.onChangeHdl = new Je(), this.onErrorHdl = new Je(), this.validator = {}, this.setDocument(t || this.createDocument());
586
592
  }
587
593
  allRequiredPropertiesFilled() {
588
- return this.nonFilledRequiredProperties.length <= 0;
594
+ return this.nonFilledRequiredProperties.length <= 0 && this.validateGlobal();
589
595
  }
590
596
  get nonFilledRequiredProperties() {
591
597
  return this.requiredProperties.filter((t) => this.validateProp(t));
592
598
  }
593
599
  get requiredProperties() {
594
- if (!this.document)
595
- throw new Error(re.errorMessages.missedDocument);
596
- const t = this.document.getPersistentProperties().filter((c) => this.document.isRequired(c.name)).map((c) => c.name);
600
+ if (!this.document) throw new Error(we.errorMessages.missedDocument);
601
+ const t = this.document.getPersistentProperties().filter((f) => this.document.isRequired(f.name)).map((f) => f.name);
597
602
  return [...new Set(t.concat(Object.keys(this.validator)))];
598
603
  }
599
- addValidator(t, s, c) {
604
+ addValidator(t, i, f) {
600
605
  this.validator[t] = {
601
- func: s,
602
- errorMessage: c
606
+ func: i,
607
+ errorMessage: f
603
608
  };
604
609
  }
605
610
  removeValidator(t) {
606
611
  delete this.validator[t];
607
612
  }
613
+ addGlobalValidator(t, i) {
614
+ this.globalValidator = {
615
+ func: t,
616
+ errorMessage: i
617
+ };
618
+ }
619
+ removeGlobalValidator() {
620
+ this.globalValidator = void 0;
621
+ }
608
622
  failedValidationError(t) {
609
- var s;
610
- return (s = this.validator[t]) == null ? void 0 : s.errorMessage;
623
+ var f, c, g;
624
+ if (t) return (f = this.validator[t]) == null ? void 0 : f.errorMessage;
625
+ const i = this.nonFilledRequiredProperties[0];
626
+ return i ? (c = this.validator[i]) == null ? void 0 : c.errorMessage : (g = this.globalValidator) == null ? void 0 : g.errorMessage;
611
627
  }
612
628
  validateProp(t) {
613
- if (!this.document)
614
- throw new Error(re.errorMessages.missedDocument);
615
- const s = this.document[t];
616
- return this.validator[t] ? !this.validator[t].func(s) : !this.document.isPropValueValid(t);
629
+ if (!this.document) throw new Error(we.errorMessages.missedDocument);
630
+ const i = this.document[t];
631
+ return this.validator[t] ? !this.validator[t].func(i) : !this.document.isPropValueValid(t);
632
+ }
633
+ validateGlobal() {
634
+ if (!this.document) throw new Error(we.errorMessages.missedDocument);
635
+ return this.globalValidator ? this.globalValidator.func(this.document) : !0;
617
636
  }
618
637
  storeDoc() {
619
- if (!this.document)
620
- throw new Error(re.errorMessages.missedDocument);
638
+ if (!this.document) throw new Error(we.errorMessages.missedDocument);
621
639
  return this.model.save(this.document);
622
640
  }
623
641
  deleteDoc() {
624
- if (!this.document)
625
- throw new Error(re.errorMessages.missedDocument);
642
+ if (!this.document) throw new Error(we.errorMessages.missedDocument);
626
643
  return this.model.delete(this.document.id);
627
644
  }
628
645
  /**
@@ -637,8 +654,8 @@ const re = class re {
637
654
  * @see findDocs
638
655
  */
639
656
  queryDocs(t) {
640
- let s = this.model.find();
641
- return t && (s = s.limit(t)), s;
657
+ let i = this.model.find();
658
+ return t && (i = i.limit(t)), i;
642
659
  }
643
660
  /**
644
661
  * Override this method to customize the query used to retrieve the documents
@@ -696,9 +713,8 @@ const re = class re {
696
713
  documentCollection: await this.documentCollection(),
697
714
  action: "saved"
698
715
  });
699
- } catch (s) {
700
- if (this.onChangeHdl.notify({ error: this.errorToError(s) }), this.onErrorHdl.notify(this.errorToError(s)), this.throwOnError)
701
- throw s;
716
+ } catch (i) {
717
+ if (this.onChangeHdl.notify({ error: this.errorToError(i) }), this.onErrorHdl.notify(this.errorToError(i)), this.throwOnError) throw i;
702
718
  } finally {
703
719
  this.progressController.notifyBusy(!1, t);
704
720
  }
@@ -710,32 +726,30 @@ const re = class re {
710
726
  documentCollection: await this.documentCollection(),
711
727
  action: "deleted"
712
728
  });
713
- } catch (s) {
714
- if (this.onChangeHdl.notify({ error: this.errorToError(s) }), this.onErrorHdl.notify(this.errorToError(s)), this.throwOnError)
715
- throw s;
729
+ } catch (i) {
730
+ if (this.onChangeHdl.notify({ error: this.errorToError(i) }), this.onErrorHdl.notify(this.errorToError(i)), this.throwOnError) throw i;
716
731
  } finally {
717
732
  this.progressController.notifyBusy(!1, t);
718
733
  }
719
734
  }
720
735
  async documentCollection(t) {
721
- const s = "Retrieving document collection";
722
- let c = [];
736
+ const i = "Retrieving document collection";
737
+ let f = [];
723
738
  try {
724
- this.progressController.notifyBusy(!0, s);
725
- const l = this.findDocs(t);
726
- l ? c = await l : c = await this.queryDocs(t).get();
727
- } catch (l) {
728
- if (this.onChangeHdl.notify({ error: this.errorToError(l) }), this.onErrorHdl.notify(this.errorToError(l)), this.throwOnError)
729
- throw l;
739
+ this.progressController.notifyBusy(!0, i);
740
+ const c = this.findDocs(t);
741
+ c ? f = await c : f = await this.queryDocs(t).get();
742
+ } catch (c) {
743
+ if (this.onChangeHdl.notify({ error: this.errorToError(c) }), this.onErrorHdl.notify(this.errorToError(c)), this.throwOnError) throw c;
730
744
  } finally {
731
- this.progressController.notifyBusy(!1, s);
745
+ this.progressController.notifyBusy(!1, i);
732
746
  }
733
- return c;
747
+ return f;
734
748
  }
735
749
  filter(t) {
736
- return t.filter((s) => {
737
- var c;
738
- return ((c = this._filter) == null ? void 0 : c.call(this, s)) ?? !0;
750
+ return t.filter((i) => {
751
+ var f;
752
+ return ((f = this._filter) == null ? void 0 : f.call(this, i)) ?? !0;
739
753
  });
740
754
  }
741
755
  onProgress(t) {
@@ -745,7 +759,7 @@ const re = class re {
745
759
  return this._model || (this._model = this.getModel());
746
760
  }
747
761
  setDocument(t) {
748
- return this._document !== t && (this.unsubscribeDocument && this.unsubscribeDocument(), t && (this.unsubscribeDocument = t.onChange((s) => this.onChangeHdl.notify({ documentProps: s }))), this._document = t, this.onChangeHdl.notify({ documentChanged: this._document })), this;
762
+ return this._document !== t && (this.unsubscribeDocument && this.unsubscribeDocument(), t && (this.unsubscribeDocument = t.onChange((i) => this.onChangeHdl.notify({ documentProps: i }))), this._document = t, this.onChangeHdl.notify({ documentChanged: this._document })), this;
749
763
  }
750
764
  set document(t) {
751
765
  this.setDocument(t);
@@ -761,8 +775,7 @@ const re = class re {
761
775
  * @param error the error to throw
762
776
  */
763
777
  managedThrow(t) {
764
- if (this.onChangeHdl.notify({ error: this.errorToError(t) }), this.onErrorHdl.notify(this.errorToError(t)), this.throwOnError)
765
- throw this.errorToError(t);
778
+ if (this.onChangeHdl.notify({ error: this.errorToError(t) }), this.onErrorHdl.notify(this.errorToError(t)), this.throwOnError) throw this.errorToError(t);
766
779
  }
767
780
  errorToError(t) {
768
781
  return t instanceof Error ? t : typeof t == "string" ? new Error(t) : "code" in t ? new Error(t.code) : "message" in t ? new Error(t.error) : new Error(JSON.stringify(t));
@@ -771,1515 +784,1811 @@ const re = class re {
771
784
  return this.onErrorHdl.subscribersCount === 0;
772
785
  }
773
786
  };
774
- re.errorMessages = {
787
+ we.errorMessages = {
775
788
  missedDocument: "No document to save"
776
789
  };
777
- let Lt = re;
778
- function yn(n) {
779
- return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
790
+ let Et = we;
791
+ var Qe = { exports: {} }, Ie = {};
792
+ /**
793
+ * @license React
794
+ * react-jsx-runtime.production.js
795
+ *
796
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
797
+ *
798
+ * This source code is licensed under the MIT license found in the
799
+ * LICENSE file in the root directory of this source tree.
800
+ */
801
+ var _t;
802
+ function Bt() {
803
+ if (_t) return Ie;
804
+ _t = 1;
805
+ var r = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
806
+ function i(f, c, g) {
807
+ var S = null;
808
+ if (g !== void 0 && (S = "" + g), c.key !== void 0 && (S = "" + c.key), "key" in c) {
809
+ g = {};
810
+ for (var M in c)
811
+ M !== "key" && (g[M] = c[M]);
812
+ } else g = c;
813
+ return c = g.ref, {
814
+ $$typeof: r,
815
+ type: f,
816
+ key: S,
817
+ ref: c !== void 0 ? c : null,
818
+ props: g
819
+ };
820
+ }
821
+ return Ie.Fragment = t, Ie.jsx = i, Ie.jsxs = i, Ie;
780
822
  }
781
- var et = { exports: {} }, g = {};
823
+ var qe = {}, Xe = { exports: {} }, R = {};
782
824
  /**
783
825
  * @license React
784
- * react.production.min.js
826
+ * react.production.js
785
827
  *
786
- * Copyright (c) Facebook, Inc. and its affiliates.
828
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
787
829
  *
788
830
  * This source code is licensed under the MIT license found in the
789
831
  * LICENSE file in the root directory of this source tree.
790
832
  */
791
- var Vt;
792
- function vn() {
793
- if (Vt)
794
- return g;
795
- Vt = 1;
796
- var n = Symbol.for("react.element"), t = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), y = Symbol.for("react.provider"), D = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), V = Symbol.for("react.suspense"), B = Symbol.for("react.memo"), z = Symbol.for("react.lazy"), H = Symbol.iterator;
797
- function Z(o) {
798
- return o === null || typeof o != "object" ? null : (o = H && o[H] || o["@@iterator"], typeof o == "function" ? o : null);
799
- }
800
- var U = { isMounted: function() {
801
- return !1;
802
- }, enqueueForceUpdate: function() {
803
- }, enqueueReplaceState: function() {
804
- }, enqueueSetState: function() {
805
- } }, q = Object.assign, Ee = {};
806
- function K(o, f, v) {
807
- this.props = o, this.context = f, this.refs = Ee, this.updater = v || U;
808
- }
809
- K.prototype.isReactComponent = {}, K.prototype.setState = function(o, f) {
810
- if (typeof o != "object" && typeof o != "function" && o != null)
811
- throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
812
- this.updater.enqueueSetState(this, o, f, "setState");
813
- }, K.prototype.forceUpdate = function(o) {
814
- this.updater.enqueueForceUpdate(this, o, "forceUpdate");
815
- };
816
- function we() {
817
- }
818
- we.prototype = K.prototype;
819
- function oe(o, f, v) {
820
- this.props = o, this.context = f, this.refs = Ee, this.updater = v || U;
821
- }
822
- var ie = oe.prototype = new we();
823
- ie.constructor = oe, q(ie, K.prototype), ie.isPureReactComponent = !0;
824
- var G = Array.isArray, A = Object.prototype.hasOwnProperty, L = { current: null }, J = { key: !0, ref: !0, __self: !0, __source: !0 };
825
- function ee(o, f, v) {
826
- var E, _ = {}, C = null, k = null;
827
- if (f != null)
828
- for (E in f.ref !== void 0 && (k = f.ref), f.key !== void 0 && (C = "" + f.key), f)
829
- A.call(f, E) && !J.hasOwnProperty(E) && (_[E] = f[E]);
830
- var R = arguments.length - 2;
831
- if (R === 1)
832
- _.children = v;
833
- else if (1 < R) {
834
- for (var P = Array(R), $ = 0; $ < R; $++)
835
- P[$] = arguments[$ + 2];
836
- _.children = P;
833
+ var bt;
834
+ function Ft() {
835
+ if (bt) return R;
836
+ bt = 1;
837
+ var r = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), g = Symbol.for("react.consumer"), S = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), V = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), ee = Symbol.iterator;
838
+ function de(s) {
839
+ return s === null || typeof s != "object" ? null : (s = ee && s[ee] || s["@@iterator"], typeof s == "function" ? s : null);
840
+ }
841
+ var ie = {
842
+ isMounted: function() {
843
+ return !1;
844
+ },
845
+ enqueueForceUpdate: function() {
846
+ },
847
+ enqueueReplaceState: function() {
848
+ },
849
+ enqueueSetState: function() {
837
850
  }
838
- if (o && o.defaultProps)
839
- for (E in R = o.defaultProps, R)
840
- _[E] === void 0 && (_[E] = R[E]);
841
- return { $$typeof: n, type: o, key: C, ref: k, props: _, _owner: L.current };
842
- }
843
- function Ce(o, f) {
844
- return { $$typeof: n, type: o.type, key: f, ref: o.ref, props: o.props, _owner: o._owner };
845
- }
846
- function he(o) {
847
- return typeof o == "object" && o !== null && o.$$typeof === n;
851
+ }, ue = Object.assign, te = {};
852
+ function B(s, a, _) {
853
+ this.props = s, this.context = a, this.refs = te, this.updater = _ || ie;
854
+ }
855
+ B.prototype.isReactComponent = {}, B.prototype.setState = function(s, a) {
856
+ if (typeof s != "object" && typeof s != "function" && s != null)
857
+ throw Error(
858
+ "takes an object of state variables to update or a function which returns an object of state variables."
859
+ );
860
+ this.updater.enqueueSetState(this, s, a, "setState");
861
+ }, B.prototype.forceUpdate = function(s) {
862
+ this.updater.enqueueForceUpdate(this, s, "forceUpdate");
863
+ };
864
+ function ae() {
865
+ }
866
+ ae.prototype = B.prototype;
867
+ function re(s, a, _) {
868
+ this.props = s, this.context = a, this.refs = te, this.updater = _ || ie;
869
+ }
870
+ var he = re.prototype = new ae();
871
+ he.constructor = re, ue(he, B.prototype), he.isPureReactComponent = !0;
872
+ var pe = Array.isArray, k = { H: null, A: null, T: null, S: null }, oe = Object.prototype.hasOwnProperty;
873
+ function me(s, a, _, y, w, A) {
874
+ return _ = A.ref, {
875
+ $$typeof: r,
876
+ type: s,
877
+ key: a,
878
+ ref: _ !== void 0 ? _ : null,
879
+ props: A
880
+ };
848
881
  }
849
- function Ve(o) {
850
- var f = { "=": "=0", ":": "=2" };
851
- return "$" + o.replace(/[=:]/g, function(v) {
852
- return f[v];
882
+ function Ce(s, a) {
883
+ return me(
884
+ s.type,
885
+ a,
886
+ void 0,
887
+ void 0,
888
+ void 0,
889
+ s.props
890
+ );
891
+ }
892
+ function L(s) {
893
+ return typeof s == "object" && s !== null && s.$$typeof === r;
894
+ }
895
+ function Re(s) {
896
+ var a = { "=": "=0", ":": "=2" };
897
+ return "$" + s.replace(/[=:]/g, function(_) {
898
+ return a[_];
853
899
  });
854
900
  }
855
- var Re = /\/+/g;
856
- function me(o, f) {
857
- return typeof o == "object" && o !== null && o.key != null ? Ve("" + o.key) : f.toString(36);
901
+ var ge = /\/+/g;
902
+ function ce(s, a) {
903
+ return typeof s == "object" && s !== null && s.key != null ? Re("" + s.key) : a.toString(36);
904
+ }
905
+ function ne() {
906
+ }
907
+ function ve(s) {
908
+ switch (s.status) {
909
+ case "fulfilled":
910
+ return s.value;
911
+ case "rejected":
912
+ throw s.reason;
913
+ default:
914
+ switch (typeof s.status == "string" ? s.then(ne, ne) : (s.status = "pending", s.then(
915
+ function(a) {
916
+ s.status === "pending" && (s.status = "fulfilled", s.value = a);
917
+ },
918
+ function(a) {
919
+ s.status === "pending" && (s.status = "rejected", s.reason = a);
920
+ }
921
+ )), s.status) {
922
+ case "fulfilled":
923
+ return s.value;
924
+ case "rejected":
925
+ throw s.reason;
926
+ }
927
+ }
928
+ throw s;
858
929
  }
859
- function se(o, f, v, E, _) {
860
- var C = typeof o;
861
- (C === "undefined" || C === "boolean") && (o = null);
862
- var k = !1;
863
- if (o === null)
864
- k = !0;
930
+ function K(s, a, _, y, w) {
931
+ var A = typeof s;
932
+ (A === "undefined" || A === "boolean") && (s = null);
933
+ var b = !1;
934
+ if (s === null) b = !0;
865
935
  else
866
- switch (C) {
936
+ switch (A) {
937
+ case "bigint":
867
938
  case "string":
868
939
  case "number":
869
- k = !0;
940
+ b = !0;
870
941
  break;
871
942
  case "object":
872
- switch (o.$$typeof) {
873
- case n:
943
+ switch (s.$$typeof) {
944
+ case r:
874
945
  case t:
875
- k = !0;
946
+ b = !0;
947
+ break;
948
+ case q:
949
+ return b = s._init, K(
950
+ b(s._payload),
951
+ a,
952
+ _,
953
+ y,
954
+ w
955
+ );
876
956
  }
877
957
  }
878
- if (k)
879
- return k = o, _ = _(k), o = E === "" ? "." + me(k, 0) : E, G(_) ? (v = "", o != null && (v = o.replace(Re, "$&/") + "/"), se(_, f, v, "", function($) {
880
- return $;
881
- })) : _ != null && (he(_) && (_ = Ce(_, v + (!_.key || k && k.key === _.key ? "" : ("" + _.key).replace(Re, "$&/") + "/") + o)), f.push(_)), 1;
882
- if (k = 0, E = E === "" ? "." : E + ":", G(o))
883
- for (var R = 0; R < o.length; R++) {
884
- C = o[R];
885
- var P = E + me(C, R);
886
- k += se(C, f, v, P, _);
887
- }
888
- else if (P = Z(o), typeof P == "function")
889
- for (o = P.call(o), R = 0; !(C = o.next()).done; )
890
- C = C.value, P = E + me(C, R++), k += se(C, f, v, P, _);
891
- else if (C === "object")
892
- throw f = String(o), Error("Objects are not valid as a React child (found: " + (f === "[object Object]" ? "object with keys {" + Object.keys(o).join(", ") + "}" : f) + "). If you meant to render a collection of children, use an array instead.");
893
- return k;
894
- }
895
- function Y(o, f, v) {
896
- if (o == null)
897
- return o;
898
- var E = [], _ = 0;
899
- return se(o, E, "", "", function(C) {
900
- return f.call(v, C, _++);
901
- }), E;
902
- }
903
- function Q(o) {
904
- if (o._status === -1) {
905
- var f = o._result;
906
- f = f(), f.then(function(v) {
907
- (o._status === 0 || o._status === -1) && (o._status = 1, o._result = v);
908
- }, function(v) {
909
- (o._status === 0 || o._status === -1) && (o._status = 2, o._result = v);
910
- }), o._status === -1 && (o._status = 0, o._result = f);
958
+ if (b)
959
+ return w = w(s), b = y === "" ? "." + ce(s, 0) : y, pe(w) ? (_ = "", b != null && (_ = b.replace(ge, "$&/") + "/"), K(w, a, _, "", function(ye) {
960
+ return ye;
961
+ })) : w != null && (L(w) && (w = Ce(
962
+ w,
963
+ _ + (w.key == null || s && s.key === w.key ? "" : ("" + w.key).replace(
964
+ ge,
965
+ "$&/"
966
+ ) + "/") + b
967
+ )), a.push(w)), 1;
968
+ b = 0;
969
+ var W = y === "" ? "." : y + ":";
970
+ if (pe(s))
971
+ for (var D = 0; D < s.length; D++)
972
+ y = s[D], A = W + ce(y, D), b += K(
973
+ y,
974
+ a,
975
+ _,
976
+ A,
977
+ w
978
+ );
979
+ else if (D = de(s), typeof D == "function")
980
+ for (s = D.call(s), D = 0; !(y = s.next()).done; )
981
+ y = y.value, A = W + ce(y, D++), b += K(
982
+ y,
983
+ a,
984
+ _,
985
+ A,
986
+ w
987
+ );
988
+ else if (A === "object") {
989
+ if (typeof s.then == "function")
990
+ return K(
991
+ ve(s),
992
+ a,
993
+ _,
994
+ y,
995
+ w
996
+ );
997
+ throw a = String(s), Error(
998
+ "Objects are not valid as a React child (found: " + (a === "[object Object]" ? "object with keys {" + Object.keys(s).join(", ") + "}" : a) + "). If you meant to render a collection of children, use an array instead."
999
+ );
1000
+ }
1001
+ return b;
1002
+ }
1003
+ function F(s, a, _) {
1004
+ if (s == null) return s;
1005
+ var y = [], w = 0;
1006
+ return K(s, y, "", "", function(A) {
1007
+ return a.call(_, A, w++);
1008
+ }), y;
1009
+ }
1010
+ function le(s) {
1011
+ if (s._status === -1) {
1012
+ var a = s._result;
1013
+ a = a(), a.then(
1014
+ function(_) {
1015
+ (s._status === 0 || s._status === -1) && (s._status = 1, s._result = _);
1016
+ },
1017
+ function(_) {
1018
+ (s._status === 0 || s._status === -1) && (s._status = 2, s._result = _);
1019
+ }
1020
+ ), s._status === -1 && (s._status = 0, s._result = a);
1021
+ }
1022
+ if (s._status === 1) return s._result.default;
1023
+ throw s._result;
1024
+ }
1025
+ var De = typeof reportError == "function" ? reportError : function(s) {
1026
+ if (typeof window == "object" && typeof window.ErrorEvent == "function") {
1027
+ var a = new window.ErrorEvent("error", {
1028
+ bubbles: !0,
1029
+ cancelable: !0,
1030
+ message: typeof s == "object" && s !== null && typeof s.message == "string" ? String(s.message) : String(s),
1031
+ error: s
1032
+ });
1033
+ if (!window.dispatchEvent(a)) return;
1034
+ } else if (typeof process == "object" && typeof process.emit == "function") {
1035
+ process.emit("uncaughtException", s);
1036
+ return;
911
1037
  }
912
- if (o._status === 1)
913
- return o._result.default;
914
- throw o._result;
915
- }
916
- var h = { current: null }, te = { transition: null }, Pe = { ReactCurrentDispatcher: h, ReactCurrentBatchConfig: te, ReactCurrentOwner: L };
917
- return g.Children = { map: Y, forEach: function(o, f, v) {
918
- Y(o, function() {
919
- f.apply(this, arguments);
920
- }, v);
921
- }, count: function(o) {
922
- var f = 0;
923
- return Y(o, function() {
924
- f++;
925
- }), f;
926
- }, toArray: function(o) {
927
- return Y(o, function(f) {
928
- return f;
929
- }) || [];
930
- }, only: function(o) {
931
- if (!he(o))
932
- throw Error("React.Children.only expected to receive a single React element child.");
933
- return o;
934
- } }, g.Component = K, g.Fragment = s, g.Profiler = l, g.PureComponent = oe, g.StrictMode = c, g.Suspense = V, g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Pe, g.cloneElement = function(o, f, v) {
935
- if (o == null)
936
- throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + o + ".");
937
- var E = q({}, o.props), _ = o.key, C = o.ref, k = o._owner;
938
- if (f != null) {
939
- if (f.ref !== void 0 && (C = f.ref, k = L.current), f.key !== void 0 && (_ = "" + f.key), o.type && o.type.defaultProps)
940
- var R = o.type.defaultProps;
941
- for (P in f)
942
- A.call(f, P) && !J.hasOwnProperty(P) && (E[P] = f[P] === void 0 && R !== void 0 ? R[P] : f[P]);
1038
+ console.error(s);
1039
+ };
1040
+ function j() {
1041
+ }
1042
+ return R.Children = {
1043
+ map: F,
1044
+ forEach: function(s, a, _) {
1045
+ F(
1046
+ s,
1047
+ function() {
1048
+ a.apply(this, arguments);
1049
+ },
1050
+ _
1051
+ );
1052
+ },
1053
+ count: function(s) {
1054
+ var a = 0;
1055
+ return F(s, function() {
1056
+ a++;
1057
+ }), a;
1058
+ },
1059
+ toArray: function(s) {
1060
+ return F(s, function(a) {
1061
+ return a;
1062
+ }) || [];
1063
+ },
1064
+ only: function(s) {
1065
+ if (!L(s))
1066
+ throw Error(
1067
+ "React.Children.only expected to receive a single React element child."
1068
+ );
1069
+ return s;
1070
+ }
1071
+ }, R.Component = B, R.Fragment = i, R.Profiler = c, R.PureComponent = re, R.StrictMode = f, R.Suspense = I, R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = k, R.act = function() {
1072
+ throw Error("act(...) is not supported in production builds of React.");
1073
+ }, R.cache = function(s) {
1074
+ return function() {
1075
+ return s.apply(null, arguments);
1076
+ };
1077
+ }, R.cloneElement = function(s, a, _) {
1078
+ if (s == null)
1079
+ throw Error(
1080
+ "The argument must be a React element, but you passed " + s + "."
1081
+ );
1082
+ var y = ue({}, s.props), w = s.key, A = void 0;
1083
+ if (a != null)
1084
+ for (b in a.ref !== void 0 && (A = void 0), a.key !== void 0 && (w = "" + a.key), a)
1085
+ !oe.call(a, b) || b === "key" || b === "__self" || b === "__source" || b === "ref" && a.ref === void 0 || (y[b] = a[b]);
1086
+ var b = arguments.length - 2;
1087
+ if (b === 1) y.children = _;
1088
+ else if (1 < b) {
1089
+ for (var W = Array(b), D = 0; D < b; D++)
1090
+ W[D] = arguments[D + 2];
1091
+ y.children = W;
943
1092
  }
944
- var P = arguments.length - 2;
945
- if (P === 1)
946
- E.children = v;
947
- else if (1 < P) {
948
- R = Array(P);
949
- for (var $ = 0; $ < P; $++)
950
- R[$] = arguments[$ + 2];
951
- E.children = R;
1093
+ return me(s.type, w, void 0, void 0, A, y);
1094
+ }, R.createContext = function(s) {
1095
+ return s = {
1096
+ $$typeof: S,
1097
+ _currentValue: s,
1098
+ _currentValue2: s,
1099
+ _threadCount: 0,
1100
+ Provider: null,
1101
+ Consumer: null
1102
+ }, s.Provider = s, s.Consumer = {
1103
+ $$typeof: g,
1104
+ _context: s
1105
+ }, s;
1106
+ }, R.createElement = function(s, a, _) {
1107
+ var y, w = {}, A = null;
1108
+ if (a != null)
1109
+ for (y in a.key !== void 0 && (A = "" + a.key), a)
1110
+ oe.call(a, y) && y !== "key" && y !== "__self" && y !== "__source" && (w[y] = a[y]);
1111
+ var b = arguments.length - 2;
1112
+ if (b === 1) w.children = _;
1113
+ else if (1 < b) {
1114
+ for (var W = Array(b), D = 0; D < b; D++)
1115
+ W[D] = arguments[D + 2];
1116
+ w.children = W;
952
1117
  }
953
- return { $$typeof: n, type: o.type, key: _, ref: C, props: E, _owner: k };
954
- }, g.createContext = function(o) {
955
- return o = { $$typeof: D, _currentValue: o, _currentValue2: o, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, o.Provider = { $$typeof: y, _context: o }, o.Consumer = o;
956
- }, g.createElement = ee, g.createFactory = function(o) {
957
- var f = ee.bind(null, o);
958
- return f.type = o, f;
959
- }, g.createRef = function() {
1118
+ if (s && s.defaultProps)
1119
+ for (y in b = s.defaultProps, b)
1120
+ w[y] === void 0 && (w[y] = b[y]);
1121
+ return me(s, A, void 0, void 0, null, w);
1122
+ }, R.createRef = function() {
960
1123
  return { current: null };
961
- }, g.forwardRef = function(o) {
962
- return { $$typeof: F, render: o };
963
- }, g.isValidElement = he, g.lazy = function(o) {
964
- return { $$typeof: z, _payload: { _status: -1, _result: o }, _init: Q };
965
- }, g.memo = function(o, f) {
966
- return { $$typeof: B, type: o, compare: f === void 0 ? null : f };
967
- }, g.startTransition = function(o) {
968
- var f = te.transition;
969
- te.transition = {};
1124
+ }, R.forwardRef = function(s) {
1125
+ return { $$typeof: M, render: s };
1126
+ }, R.isValidElement = L, R.lazy = function(s) {
1127
+ return {
1128
+ $$typeof: q,
1129
+ _payload: { _status: -1, _result: s },
1130
+ _init: le
1131
+ };
1132
+ }, R.memo = function(s, a) {
1133
+ return {
1134
+ $$typeof: V,
1135
+ type: s,
1136
+ compare: a === void 0 ? null : a
1137
+ };
1138
+ }, R.startTransition = function(s) {
1139
+ var a = k.T, _ = {};
1140
+ k.T = _;
970
1141
  try {
971
- o();
1142
+ var y = s(), w = k.S;
1143
+ w !== null && w(_, y), typeof y == "object" && y !== null && typeof y.then == "function" && y.then(j, De);
1144
+ } catch (A) {
1145
+ De(A);
972
1146
  } finally {
973
- te.transition = f;
1147
+ k.T = a;
974
1148
  }
975
- }, g.unstable_act = function() {
976
- throw Error("act(...) is not supported in production builds of React.");
977
- }, g.useCallback = function(o, f) {
978
- return h.current.useCallback(o, f);
979
- }, g.useContext = function(o) {
980
- return h.current.useContext(o);
981
- }, g.useDebugValue = function() {
982
- }, g.useDeferredValue = function(o) {
983
- return h.current.useDeferredValue(o);
984
- }, g.useEffect = function(o, f) {
985
- return h.current.useEffect(o, f);
986
- }, g.useId = function() {
987
- return h.current.useId();
988
- }, g.useImperativeHandle = function(o, f, v) {
989
- return h.current.useImperativeHandle(o, f, v);
990
- }, g.useInsertionEffect = function(o, f) {
991
- return h.current.useInsertionEffect(o, f);
992
- }, g.useLayoutEffect = function(o, f) {
993
- return h.current.useLayoutEffect(o, f);
994
- }, g.useMemo = function(o, f) {
995
- return h.current.useMemo(o, f);
996
- }, g.useReducer = function(o, f, v) {
997
- return h.current.useReducer(o, f, v);
998
- }, g.useRef = function(o) {
999
- return h.current.useRef(o);
1000
- }, g.useState = function(o) {
1001
- return h.current.useState(o);
1002
- }, g.useSyncExternalStore = function(o, f, v) {
1003
- return h.current.useSyncExternalStore(o, f, v);
1004
- }, g.useTransition = function() {
1005
- return h.current.useTransition();
1006
- }, g.version = "18.2.0", g;
1149
+ }, R.unstable_useCacheRefresh = function() {
1150
+ return k.H.useCacheRefresh();
1151
+ }, R.use = function(s) {
1152
+ return k.H.use(s);
1153
+ }, R.useActionState = function(s, a, _) {
1154
+ return k.H.useActionState(s, a, _);
1155
+ }, R.useCallback = function(s, a) {
1156
+ return k.H.useCallback(s, a);
1157
+ }, R.useContext = function(s) {
1158
+ return k.H.useContext(s);
1159
+ }, R.useDebugValue = function() {
1160
+ }, R.useDeferredValue = function(s, a) {
1161
+ return k.H.useDeferredValue(s, a);
1162
+ }, R.useEffect = function(s, a) {
1163
+ return k.H.useEffect(s, a);
1164
+ }, R.useId = function() {
1165
+ return k.H.useId();
1166
+ }, R.useImperativeHandle = function(s, a, _) {
1167
+ return k.H.useImperativeHandle(s, a, _);
1168
+ }, R.useInsertionEffect = function(s, a) {
1169
+ return k.H.useInsertionEffect(s, a);
1170
+ }, R.useLayoutEffect = function(s, a) {
1171
+ return k.H.useLayoutEffect(s, a);
1172
+ }, R.useMemo = function(s, a) {
1173
+ return k.H.useMemo(s, a);
1174
+ }, R.useOptimistic = function(s, a) {
1175
+ return k.H.useOptimistic(s, a);
1176
+ }, R.useReducer = function(s, a, _) {
1177
+ return k.H.useReducer(s, a, _);
1178
+ }, R.useRef = function(s) {
1179
+ return k.H.useRef(s);
1180
+ }, R.useState = function(s) {
1181
+ return k.H.useState(s);
1182
+ }, R.useSyncExternalStore = function(s, a, _) {
1183
+ return k.H.useSyncExternalStore(
1184
+ s,
1185
+ a,
1186
+ _
1187
+ );
1188
+ }, R.useTransition = function() {
1189
+ return k.H.useTransition();
1190
+ }, R.version = "19.0.0", R;
1007
1191
  }
1008
- var _e = { exports: {} };
1192
+ var We = { exports: {} };
1009
1193
  /**
1010
1194
  * @license React
1011
1195
  * react.development.js
1012
1196
  *
1013
- * Copyright (c) Facebook, Inc. and its affiliates.
1197
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1014
1198
  *
1015
1199
  * This source code is licensed under the MIT license found in the
1016
1200
  * LICENSE file in the root directory of this source tree.
1017
1201
  */
1018
- _e.exports;
1019
- var Ut;
1020
- function gn() {
1021
- return Ut || (Ut = 1, function(n, t) {
1202
+ We.exports;
1203
+ var wt;
1204
+ function Gt() {
1205
+ return wt || (wt = 1, function(r, t) {
1022
1206
  process.env.NODE_ENV !== "production" && function() {
1023
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
1024
- var s = "18.2.0", c = Symbol.for("react.element"), l = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), D = Symbol.for("react.strict_mode"), F = Symbol.for("react.profiler"), V = Symbol.for("react.provider"), B = Symbol.for("react.context"), z = Symbol.for("react.forward_ref"), H = Symbol.for("react.suspense"), Z = Symbol.for("react.suspense_list"), U = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), Ee = Symbol.for("react.offscreen"), K = Symbol.iterator, we = "@@iterator";
1025
- function oe(e) {
1026
- if (e === null || typeof e != "object")
1027
- return null;
1028
- var r = K && e[K] || e[we];
1029
- return typeof r == "function" ? r : null;
1030
- }
1031
- var ie = {
1032
- /**
1033
- * @internal
1034
- * @type {ReactComponent}
1035
- */
1036
- current: null
1037
- }, G = {
1038
- transition: null
1039
- }, A = {
1040
- current: null,
1041
- // Used to reproduce behavior of `batchedUpdates` in legacy mode.
1042
- isBatchingLegacy: !1,
1043
- didScheduleLegacyUpdate: !1
1044
- }, L = {
1045
- /**
1046
- * @internal
1047
- * @type {ReactComponent}
1048
- */
1049
- current: null
1050
- }, J = {}, ee = null;
1051
- function Ce(e) {
1052
- ee = e;
1053
- }
1054
- J.setExtraStackFrame = function(e) {
1055
- ee = e;
1056
- }, J.getCurrentStack = null, J.getStackAddendum = function() {
1057
- var e = "";
1058
- ee && (e += ee);
1059
- var r = J.getCurrentStack;
1060
- return r && (e += r() || ""), e;
1061
- };
1062
- var he = !1, Ve = !1, Re = !1, me = !1, se = !1, Y = {
1063
- ReactCurrentDispatcher: ie,
1064
- ReactCurrentBatchConfig: G,
1065
- ReactCurrentOwner: L
1066
- };
1067
- Y.ReactDebugCurrentFrame = J, Y.ReactCurrentActQueue = A;
1068
- function Q(e) {
1069
- {
1070
- for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
1071
- i[a - 1] = arguments[a];
1072
- te("warn", e, i);
1073
- }
1074
- }
1075
- function h(e) {
1076
- {
1077
- for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
1078
- i[a - 1] = arguments[a];
1079
- te("error", e, i);
1080
- }
1081
- }
1082
- function te(e, r, i) {
1083
- {
1084
- var a = Y.ReactDebugCurrentFrame, u = a.getStackAddendum();
1085
- u !== "" && (r += "%s", i = i.concat([u]));
1086
- var p = i.map(function(d) {
1087
- return String(d);
1088
- });
1089
- p.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, p);
1090
- }
1091
- }
1092
- var Pe = {};
1093
- function o(e, r) {
1094
- {
1095
- var i = e.constructor, a = i && (i.displayName || i.name) || "ReactClass", u = a + "." + r;
1096
- if (Pe[u])
1097
- return;
1098
- h("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.", r, a), Pe[u] = !0;
1099
- }
1100
- }
1101
- var f = {
1102
- /**
1103
- * Checks whether or not this composite component is mounted.
1104
- * @param {ReactClass} publicInstance The instance we want to test.
1105
- * @return {boolean} True if mounted, false otherwise.
1106
- * @protected
1107
- * @final
1108
- */
1109
- isMounted: function(e) {
1110
- return !1;
1111
- },
1112
- /**
1113
- * Forces an update. This should only be invoked when it is known with
1114
- * certainty that we are **not** in a DOM transaction.
1115
- *
1116
- * You may want to call this when you know that some deeper aspect of the
1117
- * component's state has changed but `setState` was not called.
1118
- *
1119
- * This will not invoke `shouldComponentUpdate`, but it will invoke
1120
- * `componentWillUpdate` and `componentDidUpdate`.
1121
- *
1122
- * @param {ReactClass} publicInstance The instance that should rerender.
1123
- * @param {?function} callback Called after component is updated.
1124
- * @param {?string} callerName name of the calling function in the public API.
1125
- * @internal
1126
- */
1127
- enqueueForceUpdate: function(e, r, i) {
1128
- o(e, "forceUpdate");
1129
- },
1130
- /**
1131
- * Replaces all of the state. Always use this or `setState` to mutate state.
1132
- * You should treat `this.state` as immutable.
1133
- *
1134
- * There is no guarantee that `this.state` will be immediately updated, so
1135
- * accessing `this.state` after calling this method may return the old value.
1136
- *
1137
- * @param {ReactClass} publicInstance The instance that should rerender.
1138
- * @param {object} completeState Next state.
1139
- * @param {?function} callback Called after component is updated.
1140
- * @param {?string} callerName name of the calling function in the public API.
1141
- * @internal
1142
- */
1143
- enqueueReplaceState: function(e, r, i, a) {
1144
- o(e, "replaceState");
1145
- },
1146
- /**
1147
- * Sets a subset of the state. This only exists because _pendingState is
1148
- * internal. This provides a merging strategy that is not available to deep
1149
- * properties which is confusing. TODO: Expose pendingState or don't use it
1150
- * during the merge.
1151
- *
1152
- * @param {ReactClass} publicInstance The instance that should rerender.
1153
- * @param {object} partialState Next partial state to be merged with state.
1154
- * @param {?function} callback Called after component is updated.
1155
- * @param {?string} Name of the calling function in the public API.
1156
- * @internal
1157
- */
1158
- enqueueSetState: function(e, r, i, a) {
1159
- o(e, "setState");
1160
- }
1161
- }, v = Object.assign, E = {};
1162
- Object.freeze(E);
1163
- function _(e, r, i) {
1164
- this.props = e, this.context = r, this.refs = E, this.updater = i || f;
1207
+ function i(e, n) {
1208
+ Object.defineProperty(g.prototype, e, {
1209
+ get: function() {
1210
+ console.warn(
1211
+ "%s(...) is deprecated in plain JavaScript React classes. %s",
1212
+ n[0],
1213
+ n[1]
1214
+ );
1215
+ }
1216
+ });
1165
1217
  }
1166
- _.prototype.isReactComponent = {}, _.prototype.setState = function(e, r) {
1167
- if (typeof e != "object" && typeof e != "function" && e != null)
1168
- throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
1169
- this.updater.enqueueSetState(this, e, r, "setState");
1170
- }, _.prototype.forceUpdate = function(e) {
1171
- this.updater.enqueueForceUpdate(this, e, "forceUpdate");
1172
- };
1173
- {
1174
- var C = {
1175
- isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
1176
- replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
1177
- }, k = function(e, r) {
1178
- Object.defineProperty(_.prototype, e, {
1179
- get: function() {
1180
- Q("%s(...) is deprecated in plain JavaScript React classes. %s", r[0], r[1]);
1181
- }
1182
- });
1183
- };
1184
- for (var R in C)
1185
- C.hasOwnProperty(R) && k(R, C[R]);
1218
+ function f(e) {
1219
+ return e === null || typeof e != "object" ? null : (e = He && e[He] || e["@@iterator"], typeof e == "function" ? e : null);
1186
1220
  }
1187
- function P() {
1221
+ function c(e, n) {
1222
+ e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
1223
+ var u = e + "." + n;
1224
+ Ue[u] || (console.error(
1225
+ "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.",
1226
+ n,
1227
+ e
1228
+ ), Ue[u] = !0);
1188
1229
  }
1189
- P.prototype = _.prototype;
1190
- function $(e, r, i) {
1191
- this.props = e, this.context = r, this.refs = E, this.updater = i || f;
1230
+ function g(e, n, u) {
1231
+ this.props = e, this.context = n, this.refs = h, this.updater = u || o;
1192
1232
  }
1193
- var Ue = $.prototype = new P();
1194
- Ue.constructor = $, v(Ue, _.prototype), Ue.isPureReactComponent = !0;
1195
- function Ht() {
1196
- var e = {
1197
- current: null
1198
- };
1199
- return Object.seal(e), e;
1233
+ function S() {
1200
1234
  }
1201
- var Bt = Array.isArray;
1202
- function Se(e) {
1203
- return Bt(e);
1235
+ function M(e, n, u) {
1236
+ this.props = e, this.context = n, this.refs = h, this.updater = u || o;
1204
1237
  }
1205
- function zt(e) {
1206
- {
1207
- var r = typeof Symbol == "function" && Symbol.toStringTag, i = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
1208
- return i;
1209
- }
1238
+ function I(e) {
1239
+ return "" + e;
1210
1240
  }
1211
- function qt(e) {
1241
+ function V(e) {
1212
1242
  try {
1213
- return tt(e), !1;
1243
+ I(e);
1244
+ var n = !1;
1214
1245
  } catch {
1215
- return !0;
1246
+ n = !0;
1247
+ }
1248
+ if (n) {
1249
+ n = console;
1250
+ var u = n.error, l = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
1251
+ return u.call(
1252
+ n,
1253
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
1254
+ l
1255
+ ), I(e);
1216
1256
  }
1217
1257
  }
1218
- function tt(e) {
1219
- return "" + e;
1220
- }
1221
- function Oe(e) {
1222
- if (qt(e))
1223
- return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", zt(e)), tt(e);
1224
- }
1225
- function Kt(e, r, i) {
1226
- var a = e.displayName;
1227
- if (a)
1228
- return a;
1229
- var u = r.displayName || r.name || "";
1230
- return u !== "" ? i + "(" + u + ")" : i;
1231
- }
1232
- function rt(e) {
1233
- return e.displayName || "Context";
1234
- }
1235
- function X(e) {
1236
- if (e == null)
1237
- return null;
1238
- if (typeof e.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
1239
- return e.displayName || e.name || null;
1240
- if (typeof e == "string")
1241
- return e;
1258
+ function q(e) {
1259
+ if (e == null) return null;
1260
+ if (typeof e == "function")
1261
+ return e.$$typeof === C ? null : e.displayName || e.name || null;
1262
+ if (typeof e == "string") return e;
1242
1263
  switch (e) {
1243
- case y:
1264
+ case D:
1244
1265
  return "Fragment";
1245
- case l:
1266
+ case W:
1246
1267
  return "Portal";
1247
- case F:
1268
+ case Me:
1248
1269
  return "Profiler";
1249
- case D:
1270
+ case ye:
1250
1271
  return "StrictMode";
1251
- case H:
1272
+ case Ee:
1252
1273
  return "Suspense";
1253
- case Z:
1274
+ case je:
1254
1275
  return "SuspenseList";
1255
1276
  }
1256
1277
  if (typeof e == "object")
1257
- switch (e.$$typeof) {
1258
- case B:
1259
- var r = e;
1260
- return rt(r) + ".Consumer";
1261
- case V:
1262
- var i = e;
1263
- return rt(i._context) + ".Provider";
1264
- case z:
1265
- return Kt(e, e.render, "ForwardRef");
1266
- case U:
1267
- var a = e.displayName || null;
1268
- return a !== null ? a : X(e.type) || "Memo";
1269
- case q: {
1270
- var u = e, p = u._payload, d = u._init;
1278
+ switch (typeof e.tag == "number" && console.error(
1279
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
1280
+ ), e.$$typeof) {
1281
+ case Te:
1282
+ return (e.displayName || "Context") + ".Provider";
1283
+ case Oe:
1284
+ return (e._context.displayName || "Context") + ".Consumer";
1285
+ case Se:
1286
+ var n = e.render;
1287
+ return e = e.displayName, e || (e = n.displayName || n.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
1288
+ case Pe:
1289
+ return n = e.displayName || null, n !== null ? n : q(e.type) || "Memo";
1290
+ case _e:
1291
+ n = e._payload, e = e._init;
1271
1292
  try {
1272
- return X(d(p));
1293
+ return q(e(n));
1273
1294
  } catch {
1274
- return null;
1275
1295
  }
1276
- }
1277
1296
  }
1278
1297
  return null;
1279
1298
  }
1280
- var ye = Object.prototype.hasOwnProperty, nt = {
1281
- key: !0,
1282
- ref: !0,
1283
- __self: !0,
1284
- __source: !0
1285
- }, ot, it, xe;
1286
- xe = {};
1287
- function st(e) {
1288
- if (ye.call(e, "ref")) {
1289
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
1290
- if (r && r.isReactWarning)
1291
- return !1;
1299
+ function ee(e) {
1300
+ return typeof e == "string" || typeof e == "function" || e === D || e === Me || e === ye || e === Ee || e === je || e === Ve || typeof e == "object" && e !== null && (e.$$typeof === _e || e.$$typeof === Pe || e.$$typeof === Te || e.$$typeof === Oe || e.$$typeof === Se || e.$$typeof === H || e.getModuleId !== void 0);
1301
+ }
1302
+ function de() {
1303
+ }
1304
+ function ie() {
1305
+ if (G === 0) {
1306
+ be = console.log, Z = console.info, Ae = console.warn, Q = console.error, st = console.group, it = console.groupCollapsed, ut = console.groupEnd;
1307
+ var e = {
1308
+ configurable: !0,
1309
+ enumerable: !0,
1310
+ value: de,
1311
+ writable: !0
1312
+ };
1313
+ Object.defineProperties(console, {
1314
+ info: e,
1315
+ log: e,
1316
+ warn: e,
1317
+ error: e,
1318
+ group: e,
1319
+ groupCollapsed: e,
1320
+ groupEnd: e
1321
+ });
1322
+ }
1323
+ G++;
1324
+ }
1325
+ function ue() {
1326
+ if (G--, G === 0) {
1327
+ var e = { configurable: !0, enumerable: !0, writable: !0 };
1328
+ Object.defineProperties(console, {
1329
+ log: d({}, e, { value: be }),
1330
+ info: d({}, e, { value: Z }),
1331
+ warn: d({}, e, { value: Ae }),
1332
+ error: d({}, e, { value: Q }),
1333
+ group: d({}, e, { value: st }),
1334
+ groupCollapsed: d({}, e, { value: it }),
1335
+ groupEnd: d({}, e, { value: ut })
1336
+ });
1292
1337
  }
1293
- return e.ref !== void 0;
1338
+ 0 > G && console.error(
1339
+ "disabledDepth fell below zero. This is a bug in React. Please file an issue."
1340
+ );
1294
1341
  }
1295
- function at(e) {
1296
- if (ye.call(e, "key")) {
1297
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
1298
- if (r && r.isReactWarning)
1299
- return !1;
1342
+ function te(e) {
1343
+ if (Ze === void 0)
1344
+ try {
1345
+ throw Error();
1346
+ } catch (u) {
1347
+ var n = u.stack.trim().match(/\n( *(at )?)/);
1348
+ Ze = n && n[1] || "", at = -1 < u.stack.indexOf(`
1349
+ at`) ? " (<anonymous>)" : -1 < u.stack.indexOf("@") ? "@unknown:0:0" : "";
1350
+ }
1351
+ return `
1352
+ ` + Ze + e + at;
1353
+ }
1354
+ function B(e, n) {
1355
+ if (!e || et) return "";
1356
+ var u = tt.get(e);
1357
+ if (u !== void 0) return u;
1358
+ et = !0, u = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
1359
+ var l = null;
1360
+ l = E.H, E.H = null, ie();
1361
+ try {
1362
+ var p = {
1363
+ DetermineComponentFrameRoot: function() {
1364
+ try {
1365
+ if (n) {
1366
+ var se = function() {
1367
+ throw Error();
1368
+ };
1369
+ if (Object.defineProperty(se.prototype, "props", {
1370
+ set: function() {
1371
+ throw Error();
1372
+ }
1373
+ }), typeof Reflect == "object" && Reflect.construct) {
1374
+ try {
1375
+ Reflect.construct(se, []);
1376
+ } catch (fe) {
1377
+ var Ke = fe;
1378
+ }
1379
+ Reflect.construct(e, [], se);
1380
+ } else {
1381
+ try {
1382
+ se.call();
1383
+ } catch (fe) {
1384
+ Ke = fe;
1385
+ }
1386
+ e.call(se.prototype);
1387
+ }
1388
+ } else {
1389
+ try {
1390
+ throw Error();
1391
+ } catch (fe) {
1392
+ Ke = fe;
1393
+ }
1394
+ (se = e()) && typeof se.catch == "function" && se.catch(function() {
1395
+ });
1396
+ }
1397
+ } catch (fe) {
1398
+ if (fe && Ke && typeof fe.stack == "string")
1399
+ return [fe.stack, Ke.stack];
1400
+ }
1401
+ return [null, null];
1402
+ }
1403
+ };
1404
+ p.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
1405
+ var v = Object.getOwnPropertyDescriptor(
1406
+ p.DetermineComponentFrameRoot,
1407
+ "name"
1408
+ );
1409
+ v && v.configurable && Object.defineProperty(
1410
+ p.DetermineComponentFrameRoot,
1411
+ "name",
1412
+ { value: "DetermineComponentFrameRoot" }
1413
+ );
1414
+ var m = p.DetermineComponentFrameRoot(), P = m[0], T = m[1];
1415
+ if (P && T) {
1416
+ var $ = P.split(`
1417
+ `), z = T.split(`
1418
+ `);
1419
+ for (m = v = 0; v < $.length && !$[v].includes(
1420
+ "DetermineComponentFrameRoot"
1421
+ ); )
1422
+ v++;
1423
+ for (; m < z.length && !z[m].includes(
1424
+ "DetermineComponentFrameRoot"
1425
+ ); )
1426
+ m++;
1427
+ if (v === $.length || m === z.length)
1428
+ for (v = $.length - 1, m = z.length - 1; 1 <= v && 0 <= m && $[v] !== z[m]; )
1429
+ m--;
1430
+ for (; 1 <= v && 0 <= m; v--, m--)
1431
+ if ($[v] !== z[m]) {
1432
+ if (v !== 1 || m !== 1)
1433
+ do
1434
+ if (v--, m--, 0 > m || $[v] !== z[m]) {
1435
+ var Ne = `
1436
+ ` + $[v].replace(
1437
+ " at new ",
1438
+ " at "
1439
+ );
1440
+ return e.displayName && Ne.includes("<anonymous>") && (Ne = Ne.replace("<anonymous>", e.displayName)), typeof e == "function" && tt.set(e, Ne), Ne;
1441
+ }
1442
+ while (1 <= v && 0 <= m);
1443
+ break;
1444
+ }
1445
+ }
1446
+ } finally {
1447
+ et = !1, E.H = l, ue(), Error.prepareStackTrace = u;
1300
1448
  }
1301
- return e.key !== void 0;
1449
+ return $ = ($ = e ? e.displayName || e.name : "") ? te($) : "", typeof e == "function" && tt.set(e, $), $;
1302
1450
  }
1303
- function Gt(e, r) {
1304
- var i = function() {
1305
- ot || (ot = !0, h("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
1306
- };
1307
- i.isReactWarning = !0, Object.defineProperty(e, "key", {
1308
- get: i,
1309
- configurable: !0
1310
- });
1451
+ function ae(e) {
1452
+ if (e == null) return "";
1453
+ if (typeof e == "function") {
1454
+ var n = e.prototype;
1455
+ return B(
1456
+ e,
1457
+ !(!n || !n.isReactComponent)
1458
+ );
1459
+ }
1460
+ if (typeof e == "string") return te(e);
1461
+ switch (e) {
1462
+ case Ee:
1463
+ return te("Suspense");
1464
+ case je:
1465
+ return te("SuspenseList");
1466
+ }
1467
+ if (typeof e == "object")
1468
+ switch (e.$$typeof) {
1469
+ case Se:
1470
+ return e = B(e.render, !1), e;
1471
+ case Pe:
1472
+ return ae(e.type);
1473
+ case _e:
1474
+ n = e._payload, e = e._init;
1475
+ try {
1476
+ return ae(e(n));
1477
+ } catch {
1478
+ }
1479
+ }
1480
+ return "";
1311
1481
  }
1312
- function Jt(e, r) {
1313
- var i = function() {
1314
- it || (it = !0, h("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
1315
- };
1316
- i.isReactWarning = !0, Object.defineProperty(e, "ref", {
1317
- get: i,
1482
+ function re() {
1483
+ var e = E.A;
1484
+ return e === null ? null : e.getOwner();
1485
+ }
1486
+ function he(e) {
1487
+ if (J.call(e, "key")) {
1488
+ var n = Object.getOwnPropertyDescriptor(e, "key").get;
1489
+ if (n && n.isReactWarning) return !1;
1490
+ }
1491
+ return e.key !== void 0;
1492
+ }
1493
+ function pe(e, n) {
1494
+ function u() {
1495
+ ct || (ct = !0, console.error(
1496
+ "%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)",
1497
+ n
1498
+ ));
1499
+ }
1500
+ u.isReactWarning = !0, Object.defineProperty(e, "key", {
1501
+ get: u,
1318
1502
  configurable: !0
1319
1503
  });
1320
1504
  }
1321
- function Qt(e) {
1322
- if (typeof e.ref == "string" && L.current && e.__self && L.current.stateNode !== e.__self) {
1323
- var r = X(L.current.type);
1324
- xe[r] || (h('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', r, e.ref), xe[r] = !0);
1325
- }
1505
+ function k() {
1506
+ var e = q(this.type);
1507
+ return ft[e] || (ft[e] = !0, console.error(
1508
+ "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."
1509
+ )), e = this.props.ref, e !== void 0 ? e : null;
1326
1510
  }
1327
- var We = function(e, r, i, a, u, p, d) {
1328
- var m = {
1329
- // This tag allows us to uniquely identify this as a React Element
1330
- $$typeof: c,
1331
- // Built-in properties that belong on the element
1511
+ function oe(e, n, u, l, p, v) {
1512
+ return u = v.ref, e = {
1513
+ $$typeof: b,
1332
1514
  type: e,
1333
- key: r,
1334
- ref: i,
1335
- props: d,
1336
- // Record the component responsible for creating this element.
1515
+ key: n,
1516
+ props: v,
1337
1517
  _owner: p
1338
- };
1339
- return m._store = {}, Object.defineProperty(m._store, "validated", {
1340
- configurable: !1,
1518
+ }, (u !== void 0 ? u : null) !== null ? Object.defineProperty(e, "ref", {
1341
1519
  enumerable: !1,
1342
- writable: !0,
1343
- value: !1
1344
- }), Object.defineProperty(m, "_self", {
1520
+ get: k
1521
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
1345
1522
  configurable: !1,
1346
1523
  enumerable: !1,
1347
- writable: !1,
1348
- value: a
1349
- }), Object.defineProperty(m, "_source", {
1524
+ writable: !0,
1525
+ value: 0
1526
+ }), Object.defineProperty(e, "_debugInfo", {
1350
1527
  configurable: !1,
1351
1528
  enumerable: !1,
1352
- writable: !1,
1353
- value: u
1354
- }), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
1355
- };
1356
- function Xt(e, r, i) {
1357
- var a, u = {}, p = null, d = null, m = null, b = null;
1358
- if (r != null) {
1359
- st(r) && (d = r.ref, Qt(r)), at(r) && (Oe(r.key), p = "" + r.key), m = r.__self === void 0 ? null : r.__self, b = r.__source === void 0 ? null : r.__source;
1360
- for (a in r)
1361
- ye.call(r, a) && !nt.hasOwnProperty(a) && (u[a] = r[a]);
1362
- }
1363
- var w = arguments.length - 2;
1364
- if (w === 1)
1365
- u.children = i;
1366
- else if (w > 1) {
1367
- for (var S = Array(w), O = 0; O < w; O++)
1368
- S[O] = arguments[O + 2];
1369
- Object.freeze && Object.freeze(S), u.children = S;
1370
- }
1371
- if (e && e.defaultProps) {
1372
- var T = e.defaultProps;
1373
- for (a in T)
1374
- u[a] === void 0 && (u[a] = T[a]);
1375
- }
1376
- if (p || d) {
1377
- var j = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
1378
- p && Gt(u, j), d && Jt(u, j);
1529
+ writable: !0,
1530
+ value: null
1531
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
1532
+ }
1533
+ function me(e, n) {
1534
+ return n = oe(
1535
+ e.type,
1536
+ n,
1537
+ void 0,
1538
+ void 0,
1539
+ e._owner,
1540
+ e.props
1541
+ ), n._store.validated = e._store.validated, n;
1542
+ }
1543
+ function Ce(e, n) {
1544
+ if (typeof e == "object" && e && e.$$typeof !== At) {
1545
+ if (N(e))
1546
+ for (var u = 0; u < e.length; u++) {
1547
+ var l = e[u];
1548
+ L(l) && Re(l, n);
1549
+ }
1550
+ else if (L(e))
1551
+ e._store && (e._store.validated = 1);
1552
+ else if (u = f(e), typeof u == "function" && u !== e.entries && (u = u.call(e), u !== e))
1553
+ for (; !(e = u.next()).done; )
1554
+ L(e.value) && Re(e.value, n);
1379
1555
  }
1380
- return We(e, p, d, m, b, L.current, u);
1381
1556
  }
1382
- function Zt(e, r) {
1383
- var i = We(e.type, r, e.ref, e._self, e._source, e._owner, e.props);
1384
- return i;
1557
+ function L(e) {
1558
+ return typeof e == "object" && e !== null && e.$$typeof === b;
1385
1559
  }
1386
- function er(e, r, i) {
1387
- if (e == null)
1388
- throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
1389
- var a, u = v({}, e.props), p = e.key, d = e.ref, m = e._self, b = e._source, w = e._owner;
1390
- if (r != null) {
1391
- st(r) && (d = r.ref, w = L.current), at(r) && (Oe(r.key), p = "" + r.key);
1392
- var S;
1393
- e.type && e.type.defaultProps && (S = e.type.defaultProps);
1394
- for (a in r)
1395
- ye.call(r, a) && !nt.hasOwnProperty(a) && (r[a] === void 0 && S !== void 0 ? u[a] = S[a] : u[a] = r[a]);
1396
- }
1397
- var O = arguments.length - 2;
1398
- if (O === 1)
1399
- u.children = i;
1400
- else if (O > 1) {
1401
- for (var T = Array(O), j = 0; j < O; j++)
1402
- T[j] = arguments[j + 2];
1403
- u.children = T;
1560
+ function Re(e, n) {
1561
+ if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, n = ge(n), !dt[n])) {
1562
+ dt[n] = !0;
1563
+ var u = "";
1564
+ e && e._owner != null && e._owner !== re() && (u = null, typeof e._owner.tag == "number" ? u = q(e._owner.type) : typeof e._owner.name == "string" && (u = e._owner.name), u = " It was passed a child from " + u + ".");
1565
+ var l = E.getCurrentStack;
1566
+ E.getCurrentStack = function() {
1567
+ var p = ae(e.type);
1568
+ return l && (p += l() || ""), p;
1569
+ }, console.error(
1570
+ 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
1571
+ n,
1572
+ u
1573
+ ), E.getCurrentStack = l;
1404
1574
  }
1405
- return We(e.type, p, d, m, b, w, u);
1406
1575
  }
1407
- function ae(e) {
1408
- return typeof e == "object" && e !== null && e.$$typeof === c;
1576
+ function ge(e) {
1577
+ var n = "", u = re();
1578
+ return u && (u = q(u.type)) && (n = `
1579
+
1580
+ Check the render method of \`` + u + "`."), n || (e = q(e)) && (n = `
1581
+
1582
+ Check the top-level render call using <` + e + ">."), n;
1409
1583
  }
1410
- var ut = ".", tr = ":";
1411
- function rr(e) {
1412
- var r = /[=:]/g, i = {
1413
- "=": "=0",
1414
- ":": "=2"
1415
- }, a = e.replace(r, function(u) {
1416
- return i[u];
1584
+ function ce(e) {
1585
+ var n = { "=": "=0", ":": "=2" };
1586
+ return "$" + e.replace(/[=:]/g, function(u) {
1587
+ return n[u];
1417
1588
  });
1418
- return "$" + a;
1419
1589
  }
1420
- var ct = !1, nr = /\/+/g;
1421
- function lt(e) {
1422
- return e.replace(nr, "$&/");
1423
- }
1424
- function Ye(e, r) {
1425
- return typeof e == "object" && e !== null && e.key != null ? (Oe(e.key), rr("" + e.key)) : r.toString(36);
1590
+ function ne(e, n) {
1591
+ return typeof e == "object" && e !== null && e.key != null ? (V(e.key), ce("" + e.key)) : n.toString(36);
1592
+ }
1593
+ function ve() {
1594
+ }
1595
+ function K(e) {
1596
+ switch (e.status) {
1597
+ case "fulfilled":
1598
+ return e.value;
1599
+ case "rejected":
1600
+ throw e.reason;
1601
+ default:
1602
+ switch (typeof e.status == "string" ? e.then(ve, ve) : (e.status = "pending", e.then(
1603
+ function(n) {
1604
+ e.status === "pending" && (e.status = "fulfilled", e.value = n);
1605
+ },
1606
+ function(n) {
1607
+ e.status === "pending" && (e.status = "rejected", e.reason = n);
1608
+ }
1609
+ )), e.status) {
1610
+ case "fulfilled":
1611
+ return e.value;
1612
+ case "rejected":
1613
+ throw e.reason;
1614
+ }
1615
+ }
1616
+ throw e;
1426
1617
  }
1427
- function De(e, r, i, a, u) {
1428
- var p = typeof e;
1429
- (p === "undefined" || p === "boolean") && (e = null);
1430
- var d = !1;
1431
- if (e === null)
1432
- d = !0;
1618
+ function F(e, n, u, l, p) {
1619
+ var v = typeof e;
1620
+ (v === "undefined" || v === "boolean") && (e = null);
1621
+ var m = !1;
1622
+ if (e === null) m = !0;
1433
1623
  else
1434
- switch (p) {
1624
+ switch (v) {
1625
+ case "bigint":
1435
1626
  case "string":
1436
1627
  case "number":
1437
- d = !0;
1628
+ m = !0;
1438
1629
  break;
1439
1630
  case "object":
1440
1631
  switch (e.$$typeof) {
1441
- case c:
1442
- case l:
1443
- d = !0;
1632
+ case b:
1633
+ case W:
1634
+ m = !0;
1635
+ break;
1636
+ case _e:
1637
+ return m = e._init, F(
1638
+ m(e._payload),
1639
+ n,
1640
+ u,
1641
+ l,
1642
+ p
1643
+ );
1444
1644
  }
1445
1645
  }
1446
- if (d) {
1447
- var m = e, b = u(m), w = a === "" ? ut + Ye(m, 0) : a;
1448
- if (Se(b)) {
1449
- var S = "";
1450
- w != null && (S = lt(w) + "/"), De(b, r, S, "", function(Jr) {
1451
- return Jr;
1452
- });
1453
- } else
1454
- b != null && (ae(b) && (b.key && (!m || m.key !== b.key) && Oe(b.key), b = Zt(
1455
- b,
1456
- // Keep both the (mapped) and old keys if they differ, just as
1457
- // traverseAllChildren used to do for objects as children
1458
- i + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
1459
- (b.key && (!m || m.key !== b.key) ? (
1460
- // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
1461
- // eslint-disable-next-line react-internal/safe-string-coercion
1462
- lt("" + b.key) + "/"
1463
- ) : "") + w
1464
- )), r.push(b));
1465
- return 1;
1646
+ if (m) {
1647
+ m = e, p = p(m);
1648
+ var P = l === "" ? "." + ne(m, 0) : l;
1649
+ return N(p) ? (u = "", P != null && (u = P.replace(pt, "$&/") + "/"), F(p, n, u, "", function($) {
1650
+ return $;
1651
+ })) : p != null && (L(p) && (p.key != null && (m && m.key === p.key || V(p.key)), u = me(
1652
+ p,
1653
+ u + (p.key == null || m && m.key === p.key ? "" : ("" + p.key).replace(
1654
+ pt,
1655
+ "$&/"
1656
+ ) + "/") + P
1657
+ ), l !== "" && m != null && L(m) && m.key == null && m._store && !m._store.validated && (u._store.validated = 2), p = u), n.push(p)), 1;
1466
1658
  }
1467
- var O, T, j = 0, I = a === "" ? ut : a + tr;
1468
- if (Se(e))
1469
- for (var $e = 0; $e < e.length; $e++)
1470
- O = e[$e], T = I + Ye(O, $e), j += De(O, r, i, T, u);
1471
- else {
1472
- var Xe = oe(e);
1473
- if (typeof Xe == "function") {
1474
- var Nt = e;
1475
- Xe === Nt.entries && (ct || Q("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), ct = !0);
1476
- for (var Kr = Xe.call(Nt), Ft, Gr = 0; !(Ft = Kr.next()).done; )
1477
- O = Ft.value, T = I + Ye(O, Gr++), j += De(O, r, i, T, u);
1478
- } else if (p === "object") {
1479
- var $t = String(e);
1480
- throw new Error("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.");
1481
- }
1659
+ if (m = 0, P = l === "" ? "." : l + ":", N(e))
1660
+ for (var T = 0; T < e.length; T++)
1661
+ l = e[T], v = P + ne(l, T), m += F(
1662
+ l,
1663
+ n,
1664
+ u,
1665
+ v,
1666
+ p
1667
+ );
1668
+ else if (T = f(e), typeof T == "function")
1669
+ for (T === e.entries && (ht || console.warn(
1670
+ "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
1671
+ ), ht = !0), e = T.call(e), T = 0; !(l = e.next()).done; )
1672
+ l = l.value, v = P + ne(l, T++), m += F(
1673
+ l,
1674
+ n,
1675
+ u,
1676
+ v,
1677
+ p
1678
+ );
1679
+ else if (v === "object") {
1680
+ if (typeof e.then == "function")
1681
+ return F(
1682
+ K(e),
1683
+ n,
1684
+ u,
1685
+ l,
1686
+ p
1687
+ );
1688
+ throw n = String(e), Error(
1689
+ "Objects are not valid as a React child (found: " + (n === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : n) + "). If you meant to render a collection of children, use an array instead."
1690
+ );
1482
1691
  }
1483
- return j;
1484
- }
1485
- function Te(e, r, i) {
1486
- if (e == null)
1487
- return e;
1488
- var a = [], u = 0;
1489
- return De(e, a, "", "", function(p) {
1490
- return r.call(i, p, u++);
1491
- }), a;
1492
- }
1493
- function or(e) {
1494
- var r = 0;
1495
- return Te(e, function() {
1496
- r++;
1497
- }), r;
1498
- }
1499
- function ir(e, r, i) {
1500
- Te(e, function() {
1501
- r.apply(this, arguments);
1502
- }, i);
1503
- }
1504
- function sr(e) {
1505
- return Te(e, function(r) {
1506
- return r;
1507
- }) || [];
1508
- }
1509
- function ar(e) {
1510
- if (!ae(e))
1511
- throw new Error("React.Children.only expected to receive a single React element child.");
1512
- return e;
1513
- }
1514
- function ur(e) {
1515
- var r = {
1516
- $$typeof: B,
1517
- // As a workaround to support multiple concurrent renderers, we categorize
1518
- // some renderers as primary and others as secondary. We only expect
1519
- // there to be two concurrent renderers at most: React Native (primary) and
1520
- // Fabric (secondary); React DOM (primary) and React ART (secondary).
1521
- // Secondary renderers store their context values on separate fields.
1522
- _currentValue: e,
1523
- _currentValue2: e,
1524
- // Used to track how many concurrent renderers this context currently
1525
- // supports within in a single renderer. Such as parallel server rendering.
1526
- _threadCount: 0,
1527
- // These are circular
1528
- Provider: null,
1529
- Consumer: null,
1530
- // Add these to use same hidden class in VM as ServerContext
1531
- _defaultValue: null,
1532
- _globalName: null
1533
- };
1534
- r.Provider = {
1535
- $$typeof: V,
1536
- _context: r
1537
- };
1538
- var i = !1, a = !1, u = !1;
1539
- {
1540
- var p = {
1541
- $$typeof: B,
1542
- _context: r
1543
- };
1544
- Object.defineProperties(p, {
1545
- Provider: {
1546
- get: function() {
1547
- return a || (a = !0, h("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")), r.Provider;
1548
- },
1549
- set: function(d) {
1550
- r.Provider = d;
1551
- }
1552
- },
1553
- _currentValue: {
1554
- get: function() {
1555
- return r._currentValue;
1556
- },
1557
- set: function(d) {
1558
- r._currentValue = d;
1559
- }
1560
- },
1561
- _currentValue2: {
1562
- get: function() {
1563
- return r._currentValue2;
1564
- },
1565
- set: function(d) {
1566
- r._currentValue2 = d;
1567
- }
1568
- },
1569
- _threadCount: {
1570
- get: function() {
1571
- return r._threadCount;
1572
- },
1573
- set: function(d) {
1574
- r._threadCount = d;
1575
- }
1576
- },
1577
- Consumer: {
1578
- get: function() {
1579
- return i || (i = !0, h("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")), r.Consumer;
1580
- }
1692
+ return m;
1693
+ }
1694
+ function le(e, n, u) {
1695
+ if (e == null) return e;
1696
+ var l = [], p = 0;
1697
+ return F(e, l, "", "", function(v) {
1698
+ return n.call(u, v, p++);
1699
+ }), l;
1700
+ }
1701
+ function De(e) {
1702
+ if (e._status === -1) {
1703
+ var n = e._result;
1704
+ n = n(), n.then(
1705
+ function(u) {
1706
+ (e._status === 0 || e._status === -1) && (e._status = 1, e._result = u);
1581
1707
  },
1582
- displayName: {
1583
- get: function() {
1584
- return r.displayName;
1585
- },
1586
- set: function(d) {
1587
- u || (Q("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", d), u = !0);
1588
- }
1589
- }
1590
- }), r.Consumer = p;
1591
- }
1592
- return r._currentRenderer = null, r._currentRenderer2 = null, r;
1593
- }
1594
- var ve = -1, He = 0, ft = 1, cr = 2;
1595
- function lr(e) {
1596
- if (e._status === ve) {
1597
- var r = e._result, i = r();
1598
- if (i.then(function(p) {
1599
- if (e._status === He || e._status === ve) {
1600
- var d = e;
1601
- d._status = ft, d._result = p;
1708
+ function(u) {
1709
+ (e._status === 0 || e._status === -1) && (e._status = 2, e._result = u);
1602
1710
  }
1603
- }, function(p) {
1604
- if (e._status === He || e._status === ve) {
1605
- var d = e;
1606
- d._status = cr, d._result = p;
1607
- }
1608
- }), e._status === ve) {
1609
- var a = e;
1610
- a._status = He, a._result = i;
1611
- }
1711
+ ), e._status === -1 && (e._status = 0, e._result = n);
1612
1712
  }
1613
- if (e._status === ft) {
1614
- var u = e._result;
1615
- return u === void 0 && h(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1713
+ if (e._status === 1)
1714
+ return n = e._result, n === void 0 && console.error(
1715
+ `lazy: Expected the result of a dynamic import() call. Instead received: %s
1616
1716
 
1617
1717
  Your code should look like:
1618
1718
  const MyComponent = lazy(() => import('./MyComponent'))
1619
1719
 
1620
- Did you accidentally put curly braces around the import?`, u), "default" in u || h(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1720
+ Did you accidentally put curly braces around the import?`,
1721
+ n
1722
+ ), "default" in n || console.error(
1723
+ `lazy: Expected the result of a dynamic import() call. Instead received: %s
1621
1724
 
1622
1725
  Your code should look like:
1623
- const MyComponent = lazy(() => import('./MyComponent'))`, u), u.default;
1624
- } else
1625
- throw e._result;
1626
- }
1627
- function fr(e) {
1628
- var r = {
1629
- // We use these fields to store the result.
1630
- _status: ve,
1631
- _result: e
1632
- }, i = {
1633
- $$typeof: q,
1634
- _payload: r,
1635
- _init: lr
1636
- };
1637
- {
1638
- var a, u;
1639
- Object.defineProperties(i, {
1640
- defaultProps: {
1641
- configurable: !0,
1642
- get: function() {
1643
- return a;
1644
- },
1645
- set: function(p) {
1646
- h("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), a = p, Object.defineProperty(i, "defaultProps", {
1647
- enumerable: !0
1648
- });
1649
- }
1650
- },
1651
- propTypes: {
1652
- configurable: !0,
1653
- get: function() {
1654
- return u;
1655
- },
1656
- set: function(p) {
1657
- h("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), u = p, Object.defineProperty(i, "propTypes", {
1658
- enumerable: !0
1659
- });
1660
- }
1661
- }
1662
- });
1663
- }
1664
- return i;
1665
- }
1666
- function dr(e) {
1667
- e != null && e.$$typeof === U ? h("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e != "function" ? h("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e) : e.length !== 0 && e.length !== 2 && h("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), e != null && (e.defaultProps != null || e.propTypes != null) && h("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
1668
- var r = {
1669
- $$typeof: z,
1670
- render: e
1671
- };
1672
- {
1673
- var i;
1674
- Object.defineProperty(r, "displayName", {
1675
- enumerable: !1,
1676
- configurable: !0,
1677
- get: function() {
1678
- return i;
1679
- },
1680
- set: function(a) {
1681
- i = a, !e.name && !e.displayName && (e.displayName = a);
1682
- }
1683
- });
1684
- }
1685
- return r;
1686
- }
1687
- var dt;
1688
- dt = Symbol.for("react.module.reference");
1689
- function pt(e) {
1690
- return !!(typeof e == "string" || typeof e == "function" || e === y || e === F || se || e === D || e === H || e === Z || me || e === Ee || he || Ve || Re || typeof e == "object" && e !== null && (e.$$typeof === q || e.$$typeof === U || e.$$typeof === V || e.$$typeof === B || e.$$typeof === z || // This needs to include all possible module reference object
1691
- // types supported by any Flight configuration anywhere since
1692
- // we don't know which Flight build this will end up being used
1693
- // with.
1694
- e.$$typeof === dt || e.getModuleId !== void 0));
1695
- }
1696
- function pr(e, r) {
1697
- pt(e) || h("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e);
1698
- var i = {
1699
- $$typeof: U,
1700
- type: e,
1701
- compare: r === void 0 ? null : r
1702
- };
1703
- {
1704
- var a;
1705
- Object.defineProperty(i, "displayName", {
1706
- enumerable: !1,
1707
- configurable: !0,
1708
- get: function() {
1709
- return a;
1710
- },
1711
- set: function(u) {
1712
- a = u, !e.name && !e.displayName && (e.displayName = u);
1713
- }
1714
- });
1715
- }
1716
- return i;
1717
- }
1718
- function M() {
1719
- var e = ie.current;
1720
- return e === null && h(`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:
1726
+ const MyComponent = lazy(() => import('./MyComponent'))`,
1727
+ n
1728
+ ), n.default;
1729
+ throw e._result;
1730
+ }
1731
+ function j() {
1732
+ var e = E.H;
1733
+ return e === null && console.error(
1734
+ `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:
1721
1735
  1. You might have mismatching versions of React and the renderer (such as React DOM)
1722
1736
  2. You might be breaking the Rules of Hooks
1723
1737
  3. You might have more than one copy of React in the same app
1724
- See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`), e;
1725
- }
1726
- function hr(e) {
1727
- var r = M();
1728
- if (e._context !== void 0) {
1729
- var i = e._context;
1730
- i.Consumer === e ? h("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?") : i.Provider === e && h("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
1731
- }
1732
- return r.useContext(e);
1733
- }
1734
- function mr(e) {
1735
- var r = M();
1736
- return r.useState(e);
1737
- }
1738
- function yr(e, r, i) {
1739
- var a = M();
1740
- return a.useReducer(e, r, i);
1741
- }
1742
- function vr(e) {
1743
- var r = M();
1744
- return r.useRef(e);
1745
- }
1746
- function gr(e, r) {
1747
- var i = M();
1748
- return i.useEffect(e, r);
1749
- }
1750
- function _r(e, r) {
1751
- var i = M();
1752
- return i.useInsertionEffect(e, r);
1753
- }
1754
- function br(e, r) {
1755
- var i = M();
1756
- return i.useLayoutEffect(e, r);
1757
- }
1758
- function Er(e, r) {
1759
- var i = M();
1760
- return i.useCallback(e, r);
1761
- }
1762
- function wr(e, r) {
1763
- var i = M();
1764
- return i.useMemo(e, r);
1765
- }
1766
- function Cr(e, r, i) {
1767
- var a = M();
1768
- return a.useImperativeHandle(e, r, i);
1769
- }
1770
- function Rr(e, r) {
1771
- {
1772
- var i = M();
1773
- return i.useDebugValue(e, r);
1774
- }
1775
- }
1776
- function Pr() {
1777
- var e = M();
1778
- return e.useTransition();
1779
- }
1780
- function Sr(e) {
1781
- var r = M();
1782
- return r.useDeferredValue(e);
1783
- }
1784
- function Or() {
1785
- var e = M();
1786
- return e.useId();
1738
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
1739
+ ), e;
1787
1740
  }
1788
- function Dr(e, r, i) {
1789
- var a = M();
1790
- return a.useSyncExternalStore(e, r, i);
1741
+ function s() {
1791
1742
  }
1792
- var ge = 0, ht, mt, yt, vt, gt, _t, bt;
1793
- function Et() {
1794
- }
1795
- Et.__reactDisabledLog = !0;
1796
- function Tr() {
1797
- {
1798
- if (ge === 0) {
1799
- ht = console.log, mt = console.info, yt = console.warn, vt = console.error, gt = console.group, _t = console.groupCollapsed, bt = console.groupEnd;
1800
- var e = {
1801
- configurable: !0,
1802
- enumerable: !0,
1803
- value: Et,
1804
- writable: !0
1805
- };
1806
- Object.defineProperties(console, {
1807
- info: e,
1808
- log: e,
1809
- warn: e,
1810
- error: e,
1811
- group: e,
1812
- groupCollapsed: e,
1813
- groupEnd: e
1814
- });
1815
- }
1816
- ge++;
1817
- }
1818
- }
1819
- function kr() {
1820
- {
1821
- if (ge--, ge === 0) {
1822
- var e = {
1823
- configurable: !0,
1824
- enumerable: !0,
1825
- writable: !0
1743
+ function a(e) {
1744
+ if (Be === null)
1745
+ try {
1746
+ var n = ("require" + Math.random()).slice(0, 7);
1747
+ Be = (r && r[n]).call(
1748
+ r,
1749
+ "timers"
1750
+ ).setImmediate;
1751
+ } catch {
1752
+ Be = function(l) {
1753
+ gt === !1 && (gt = !0, typeof MessageChannel > "u" && console.error(
1754
+ "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."
1755
+ ));
1756
+ var p = new MessageChannel();
1757
+ p.port1.onmessage = l, p.port2.postMessage(void 0);
1826
1758
  };
1827
- Object.defineProperties(console, {
1828
- log: v({}, e, {
1829
- value: ht
1830
- }),
1831
- info: v({}, e, {
1832
- value: mt
1833
- }),
1834
- warn: v({}, e, {
1835
- value: yt
1836
- }),
1837
- error: v({}, e, {
1838
- value: vt
1839
- }),
1840
- group: v({}, e, {
1841
- value: gt
1842
- }),
1843
- groupCollapsed: v({}, e, {
1844
- value: _t
1845
- }),
1846
- groupEnd: v({}, e, {
1847
- value: bt
1848
- })
1849
- });
1850
1759
  }
1851
- ge < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1852
- }
1760
+ return Be(e);
1853
1761
  }
1854
- var Be = Y.ReactCurrentDispatcher, ze;
1855
- function ke(e, r, i) {
1856
- {
1857
- if (ze === void 0)
1858
- try {
1859
- throw Error();
1860
- } catch (u) {
1861
- var a = u.stack.trim().match(/\n( *(at )?)/);
1862
- ze = a && a[1] || "";
1863
- }
1864
- return `
1865
- ` + ze + e;
1866
- }
1762
+ function _(e) {
1763
+ return 1 < e.length && typeof AggregateError == "function" ? new AggregateError(e) : e[0];
1867
1764
  }
1868
- var qe = !1, je;
1869
- {
1870
- var jr = typeof WeakMap == "function" ? WeakMap : Map;
1871
- je = new jr();
1765
+ function y(e, n) {
1766
+ n !== Fe - 1 && console.error(
1767
+ "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
1768
+ ), Fe = n;
1872
1769
  }
1873
- function wt(e, r) {
1874
- if (!e || qe)
1875
- return "";
1876
- {
1877
- var i = je.get(e);
1878
- if (i !== void 0)
1879
- return i;
1880
- }
1881
- var a;
1882
- qe = !0;
1883
- var u = Error.prepareStackTrace;
1884
- Error.prepareStackTrace = void 0;
1885
- var p;
1886
- p = Be.current, Be.current = null, Tr();
1887
- try {
1888
- if (r) {
1889
- var d = function() {
1890
- throw Error();
1891
- };
1892
- if (Object.defineProperty(d.prototype, "props", {
1893
- set: function() {
1894
- throw Error();
1895
- }
1896
- }), typeof Reflect == "object" && Reflect.construct) {
1897
- try {
1898
- Reflect.construct(d, []);
1899
- } catch (I) {
1900
- a = I;
1901
- }
1902
- Reflect.construct(e, [], d);
1903
- } else {
1904
- try {
1905
- d.call();
1906
- } catch (I) {
1907
- a = I;
1908
- }
1909
- e.call(d.prototype);
1910
- }
1911
- } else {
1770
+ function w(e, n, u) {
1771
+ var l = E.actQueue;
1772
+ if (l !== null)
1773
+ if (l.length !== 0)
1912
1774
  try {
1913
- throw Error();
1914
- } catch (I) {
1915
- a = I;
1775
+ A(l), a(function() {
1776
+ return w(e, n, u);
1777
+ });
1778
+ return;
1779
+ } catch (p) {
1780
+ E.thrownErrors.push(p);
1916
1781
  }
1917
- e();
1918
- }
1919
- } catch (I) {
1920
- if (I && a && typeof I.stack == "string") {
1921
- for (var m = I.stack.split(`
1922
- `), b = a.stack.split(`
1923
- `), w = m.length - 1, S = b.length - 1; w >= 1 && S >= 0 && m[w] !== b[S]; )
1924
- S--;
1925
- for (; w >= 1 && S >= 0; w--, S--)
1926
- if (m[w] !== b[S]) {
1927
- if (w !== 1 || S !== 1)
1928
- do
1929
- if (w--, S--, S < 0 || m[w] !== b[S]) {
1930
- var O = `
1931
- ` + m[w].replace(" at new ", " at ");
1932
- return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && je.set(e, O), O;
1933
- }
1934
- while (w >= 1 && S >= 0);
1935
- break;
1936
- }
1937
- }
1938
- } finally {
1939
- qe = !1, Be.current = p, kr(), Error.prepareStackTrace = u;
1940
- }
1941
- var T = e ? e.displayName || e.name : "", j = T ? ke(T) : "";
1942
- return typeof e == "function" && je.set(e, j), j;
1943
- }
1944
- function Ar(e, r, i) {
1945
- return wt(e, !1);
1946
- }
1947
- function Ir(e) {
1948
- var r = e.prototype;
1949
- return !!(r && r.isReactComponent);
1782
+ else E.actQueue = null;
1783
+ 0 < E.thrownErrors.length ? (l = _(E.thrownErrors), E.thrownErrors.length = 0, u(l)) : n(e);
1950
1784
  }
1951
- function Ae(e, r, i) {
1952
- if (e == null)
1953
- return "";
1954
- if (typeof e == "function")
1955
- return wt(e, Ir(e));
1956
- if (typeof e == "string")
1957
- return ke(e);
1958
- switch (e) {
1959
- case H:
1960
- return ke("Suspense");
1961
- case Z:
1962
- return ke("SuspenseList");
1963
- }
1964
- if (typeof e == "object")
1965
- switch (e.$$typeof) {
1966
- case z:
1967
- return Ar(e.render);
1968
- case U:
1969
- return Ae(e.type, r, i);
1970
- case q: {
1971
- var a = e, u = a._payload, p = a._init;
1972
- try {
1973
- return Ae(p(u), r, i);
1974
- } catch {
1975
- }
1785
+ function A(e) {
1786
+ if (!rt) {
1787
+ rt = !0;
1788
+ var n = 0;
1789
+ try {
1790
+ for (; n < e.length; n++) {
1791
+ var u = e[n];
1792
+ do {
1793
+ E.didUsePromise = !1;
1794
+ var l = u(!1);
1795
+ if (l !== null) {
1796
+ if (E.didUsePromise) {
1797
+ e[n] = u, e.splice(0, n);
1798
+ return;
1799
+ }
1800
+ u = l;
1801
+ } else break;
1802
+ } while (!0);
1976
1803
  }
1804
+ e.length = 0;
1805
+ } catch (p) {
1806
+ e.splice(0, n + 1), E.thrownErrors.push(p);
1807
+ } finally {
1808
+ rt = !1;
1977
1809
  }
1978
- return "";
1979
- }
1980
- var Ct = {}, Rt = Y.ReactDebugCurrentFrame;
1981
- function Ie(e) {
1982
- if (e) {
1983
- var r = e._owner, i = Ae(e.type, e._source, r ? r.type : null);
1984
- Rt.setExtraStackFrame(i);
1985
- } else
1986
- Rt.setExtraStackFrame(null);
1987
- }
1988
- function Nr(e, r, i, a, u) {
1989
- {
1990
- var p = Function.call.bind(ye);
1991
- for (var d in e)
1992
- if (p(e, d)) {
1993
- var m = void 0;
1994
- try {
1995
- if (typeof e[d] != "function") {
1996
- var b = Error((a || "React class") + ": " + i + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1997
- throw b.name = "Invariant Violation", b;
1998
- }
1999
- m = e[d](r, d, a, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
2000
- } catch (w) {
2001
- m = w;
2002
- }
2003
- m && !(m instanceof Error) && (Ie(u), h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", i, d, typeof m), Ie(null)), m instanceof Error && !(m.message in Ct) && (Ct[m.message] = !0, Ie(u), h("Failed %s type: %s", i, m.message), Ie(null));
2004
- }
2005
1810
  }
2006
1811
  }
2007
- function ue(e) {
2008
- if (e) {
2009
- var r = e._owner, i = Ae(e.type, e._source, r ? r.type : null);
2010
- Ce(i);
2011
- } else
2012
- Ce(null);
2013
- }
2014
- var Ke;
2015
- Ke = !1;
2016
- function Pt() {
2017
- if (L.current) {
2018
- var e = X(L.current.type);
2019
- if (e)
2020
- return `
2021
-
2022
- Check the render method of \`` + e + "`.";
1812
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1813
+ var b = Symbol.for("react.transitional.element"), W = Symbol.for("react.portal"), D = Symbol.for("react.fragment"), ye = Symbol.for("react.strict_mode"), Me = Symbol.for("react.profiler"), Oe = Symbol.for("react.consumer"), Te = Symbol.for("react.context"), Se = Symbol.for("react.forward_ref"), Ee = Symbol.for("react.suspense"), je = Symbol.for("react.suspense_list"), Pe = Symbol.for("react.memo"), _e = Symbol.for("react.lazy"), Ve = Symbol.for("react.offscreen"), He = Symbol.iterator, Ue = {}, o = {
1814
+ isMounted: function() {
1815
+ return !1;
1816
+ },
1817
+ enqueueForceUpdate: function(e) {
1818
+ c(e, "forceUpdate");
1819
+ },
1820
+ enqueueReplaceState: function(e) {
1821
+ c(e, "replaceState");
1822
+ },
1823
+ enqueueSetState: function(e) {
1824
+ c(e, "setState");
2023
1825
  }
2024
- return "";
2025
- }
2026
- function Fr(e) {
2027
- if (e !== void 0) {
2028
- var r = e.fileName.replace(/^.*[\\\/]/, ""), i = e.lineNumber;
2029
- return `
2030
-
2031
- Check your code at ` + r + ":" + i + ".";
1826
+ }, d = Object.assign, h = {};
1827
+ Object.freeze(h), g.prototype.isReactComponent = {}, g.prototype.setState = function(e, n) {
1828
+ if (typeof e != "object" && typeof e != "function" && e != null)
1829
+ throw Error(
1830
+ "takes an object of state variables to update or a function which returns an object of state variables."
1831
+ );
1832
+ this.updater.enqueueSetState(this, e, n, "setState");
1833
+ }, g.prototype.forceUpdate = function(e) {
1834
+ this.updater.enqueueForceUpdate(this, e, "forceUpdate");
1835
+ };
1836
+ var O = {
1837
+ isMounted: [
1838
+ "isMounted",
1839
+ "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
1840
+ ],
1841
+ replaceState: [
1842
+ "replaceState",
1843
+ "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
1844
+ ]
1845
+ }, x;
1846
+ for (x in O)
1847
+ O.hasOwnProperty(x) && i(x, O[x]);
1848
+ S.prototype = g.prototype, O = M.prototype = new S(), O.constructor = M, d(O, g.prototype), O.isPureReactComponent = !0;
1849
+ var N = Array.isArray, C = Symbol.for("react.client.reference"), E = {
1850
+ H: null,
1851
+ A: null,
1852
+ T: null,
1853
+ S: null,
1854
+ actQueue: null,
1855
+ isBatchingLegacy: !1,
1856
+ didScheduleLegacyUpdate: !1,
1857
+ didUsePromise: !1,
1858
+ thrownErrors: [],
1859
+ getCurrentStack: null
1860
+ }, J = Object.prototype.hasOwnProperty, H = Symbol.for("react.client.reference"), G = 0, be, Z, Ae, Q, st, it, ut;
1861
+ de.__reactDisabledLog = !0;
1862
+ var Ze, at, et = !1, tt = new (typeof WeakMap == "function" ? WeakMap : Map)(), At = Symbol.for("react.client.reference"), ct, lt, ft = {}, dt = {}, ht = !1, pt = /\/+/g, mt = typeof reportError == "function" ? reportError : function(e) {
1863
+ if (typeof window == "object" && typeof window.ErrorEvent == "function") {
1864
+ var n = new window.ErrorEvent("error", {
1865
+ bubbles: !0,
1866
+ cancelable: !0,
1867
+ message: typeof e == "object" && e !== null && typeof e.message == "string" ? String(e.message) : String(e),
1868
+ error: e
1869
+ });
1870
+ if (!window.dispatchEvent(n)) return;
1871
+ } else if (typeof process == "object" && typeof process.emit == "function") {
1872
+ process.emit("uncaughtException", e);
1873
+ return;
2032
1874
  }
2033
- return "";
2034
- }
2035
- function $r(e) {
2036
- return e != null ? Fr(e.__source) : "";
2037
- }
2038
- var St = {};
2039
- function Mr(e) {
2040
- var r = Pt();
2041
- if (!r) {
2042
- var i = typeof e == "string" ? e : e.displayName || e.name;
2043
- i && (r = `
2044
-
2045
- Check the top-level render call using <` + i + ">.");
1875
+ console.error(e);
1876
+ }, gt = !1, Be = null, Fe = 0, Ge = !1, rt = !1, vt = typeof queueMicrotask == "function" ? function(e) {
1877
+ queueMicrotask(function() {
1878
+ return queueMicrotask(e);
1879
+ });
1880
+ } : a;
1881
+ t.Children = {
1882
+ map: le,
1883
+ forEach: function(e, n, u) {
1884
+ le(
1885
+ e,
1886
+ function() {
1887
+ n.apply(this, arguments);
1888
+ },
1889
+ u
1890
+ );
1891
+ },
1892
+ count: function(e) {
1893
+ var n = 0;
1894
+ return le(e, function() {
1895
+ n++;
1896
+ }), n;
1897
+ },
1898
+ toArray: function(e) {
1899
+ return le(e, function(n) {
1900
+ return n;
1901
+ }) || [];
1902
+ },
1903
+ only: function(e) {
1904
+ if (!L(e))
1905
+ throw Error(
1906
+ "React.Children.only expected to receive a single React element child."
1907
+ );
1908
+ return e;
2046
1909
  }
2047
- return r;
2048
- }
2049
- function Ot(e, r) {
2050
- if (!(!e._store || e._store.validated || e.key != null)) {
2051
- e._store.validated = !0;
2052
- var i = Mr(r);
2053
- if (!St[i]) {
2054
- St[i] = !0;
2055
- var a = "";
2056
- e && e._owner && e._owner !== L.current && (a = " It was passed a child from " + X(e._owner.type) + "."), ue(e), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, a), ue(null);
2057
- }
1910
+ }, t.Component = g, t.Fragment = D, t.Profiler = Me, t.PureComponent = M, t.StrictMode = ye, t.Suspense = Ee, t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = E, t.act = function(e) {
1911
+ var n = E.actQueue, u = Fe;
1912
+ Fe++;
1913
+ var l = E.actQueue = n !== null ? n : [], p = !1;
1914
+ try {
1915
+ var v = e();
1916
+ } catch (T) {
1917
+ E.thrownErrors.push(T);
2058
1918
  }
2059
- }
2060
- function Dt(e, r) {
2061
- if (typeof e == "object") {
2062
- if (Se(e))
2063
- for (var i = 0; i < e.length; i++) {
2064
- var a = e[i];
2065
- ae(a) && Ot(a, r);
1919
+ if (0 < E.thrownErrors.length)
1920
+ throw y(n, u), e = _(E.thrownErrors), E.thrownErrors.length = 0, e;
1921
+ if (v !== null && typeof v == "object" && typeof v.then == "function") {
1922
+ var m = v;
1923
+ return vt(function() {
1924
+ p || Ge || (Ge = !0, console.error(
1925
+ "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 () => ...);"
1926
+ ));
1927
+ }), {
1928
+ then: function(T, $) {
1929
+ p = !0, m.then(
1930
+ function(z) {
1931
+ if (y(n, u), u === 0) {
1932
+ try {
1933
+ A(l), a(function() {
1934
+ return w(
1935
+ z,
1936
+ T,
1937
+ $
1938
+ );
1939
+ });
1940
+ } catch (se) {
1941
+ E.thrownErrors.push(se);
1942
+ }
1943
+ if (0 < E.thrownErrors.length) {
1944
+ var Ne = _(
1945
+ E.thrownErrors
1946
+ );
1947
+ E.thrownErrors.length = 0, $(Ne);
1948
+ }
1949
+ } else T(z);
1950
+ },
1951
+ function(z) {
1952
+ y(n, u), 0 < E.thrownErrors.length && (z = _(
1953
+ E.thrownErrors
1954
+ ), E.thrownErrors.length = 0), $(z);
1955
+ }
1956
+ );
2066
1957
  }
2067
- else if (ae(e))
2068
- e._store && (e._store.validated = !0);
2069
- else if (e) {
2070
- var u = oe(e);
2071
- if (typeof u == "function" && u !== e.entries)
2072
- for (var p = u.call(e), d; !(d = p.next()).done; )
2073
- ae(d.value) && Ot(d.value, r);
2074
- }
1958
+ };
2075
1959
  }
2076
- }
2077
- function Tt(e) {
2078
- {
2079
- var r = e.type;
2080
- if (r == null || typeof r == "string")
2081
- return;
2082
- var i;
2083
- if (typeof r == "function")
2084
- i = r.propTypes;
2085
- else if (typeof r == "object" && (r.$$typeof === z || // Note: Memo only checks outer props here.
2086
- // Inner props are checked in the reconciler.
2087
- r.$$typeof === U))
2088
- i = r.propTypes;
2089
- else
2090
- return;
2091
- if (i) {
2092
- var a = X(r);
2093
- Nr(i, e.props, "prop", a, e);
2094
- } else if (r.PropTypes !== void 0 && !Ke) {
2095
- Ke = !0;
2096
- var u = X(r);
2097
- h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
1960
+ var P = v;
1961
+ if (y(n, u), u === 0 && (A(l), l.length !== 0 && vt(function() {
1962
+ p || Ge || (Ge = !0, console.error(
1963
+ "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(() => ...)"
1964
+ ));
1965
+ }), E.actQueue = null), 0 < E.thrownErrors.length)
1966
+ throw e = _(E.thrownErrors), E.thrownErrors.length = 0, e;
1967
+ return {
1968
+ then: function(T, $) {
1969
+ p = !0, u === 0 ? (E.actQueue = l, a(function() {
1970
+ return w(
1971
+ P,
1972
+ T,
1973
+ $
1974
+ );
1975
+ })) : T(P);
2098
1976
  }
2099
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
2100
- }
2101
- }
2102
- function Lr(e) {
2103
- {
2104
- for (var r = Object.keys(e.props), i = 0; i < r.length; i++) {
2105
- var a = r[i];
2106
- if (a !== "children" && a !== "key") {
2107
- ue(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), ue(null);
2108
- break;
1977
+ };
1978
+ }, t.cache = function(e) {
1979
+ return function() {
1980
+ return e.apply(null, arguments);
1981
+ };
1982
+ }, t.cloneElement = function(e, n, u) {
1983
+ if (e == null)
1984
+ throw Error(
1985
+ "The argument must be a React element, but you passed " + e + "."
1986
+ );
1987
+ var l = d({}, e.props), p = e.key, v = e._owner;
1988
+ if (n != null) {
1989
+ var m;
1990
+ e: {
1991
+ if (J.call(n, "ref") && (m = Object.getOwnPropertyDescriptor(
1992
+ n,
1993
+ "ref"
1994
+ ).get) && m.isReactWarning) {
1995
+ m = !1;
1996
+ break e;
2109
1997
  }
1998
+ m = n.ref !== void 0;
2110
1999
  }
2111
- e.ref !== null && (ue(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), ue(null));
2000
+ m && (v = re()), he(n) && (V(n.key), p = "" + n.key);
2001
+ for (P in n)
2002
+ !J.call(n, P) || P === "key" || P === "__self" || P === "__source" || P === "ref" && n.ref === void 0 || (l[P] = n[P]);
2112
2003
  }
2113
- }
2114
- function kt(e, r, i) {
2115
- var a = pt(e);
2116
- if (!a) {
2117
- var u = "";
2118
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (u += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
2119
- var p = $r(r);
2120
- p ? u += p : u += Pt();
2121
- var d;
2122
- e === null ? d = "null" : Se(e) ? d = "array" : e !== void 0 && e.$$typeof === c ? (d = "<" + (X(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : d = typeof e, h("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, u);
2004
+ var P = arguments.length - 2;
2005
+ if (P === 1) l.children = u;
2006
+ else if (1 < P) {
2007
+ m = Array(P);
2008
+ for (var T = 0; T < P; T++)
2009
+ m[T] = arguments[T + 2];
2010
+ l.children = m;
2123
2011
  }
2124
- var m = Xt.apply(this, arguments);
2125
- if (m == null)
2126
- return m;
2127
- if (a)
2128
- for (var b = 2; b < arguments.length; b++)
2129
- Dt(arguments[b], e);
2130
- return e === y ? Lr(m) : Tt(m), m;
2131
- }
2132
- var jt = !1;
2133
- function Vr(e) {
2134
- var r = kt.bind(null, e);
2135
- return r.type = e, jt || (jt = !0, Q("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")), Object.defineProperty(r, "type", {
2012
+ for (l = oe(e.type, p, void 0, void 0, v, l), p = 2; p < arguments.length; p++)
2013
+ Ce(arguments[p], l.type);
2014
+ return l;
2015
+ }, t.createContext = function(e) {
2016
+ return e = {
2017
+ $$typeof: Te,
2018
+ _currentValue: e,
2019
+ _currentValue2: e,
2020
+ _threadCount: 0,
2021
+ Provider: null,
2022
+ Consumer: null
2023
+ }, e.Provider = e, e.Consumer = {
2024
+ $$typeof: Oe,
2025
+ _context: e
2026
+ }, e._currentRenderer = null, e._currentRenderer2 = null, e;
2027
+ }, t.createElement = function(e, n, u) {
2028
+ if (ee(e))
2029
+ for (var l = 2; l < arguments.length; l++)
2030
+ Ce(arguments[l], e);
2031
+ else {
2032
+ if (l = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (l += " 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 p = "null";
2033
+ else
2034
+ N(e) ? p = "array" : e !== void 0 && e.$$typeof === b ? (p = "<" + (q(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : p = typeof e;
2035
+ console.error(
2036
+ "React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
2037
+ p,
2038
+ l
2039
+ );
2040
+ }
2041
+ var v;
2042
+ if (l = {}, p = null, n != null)
2043
+ for (v in lt || !("__self" in n) || "key" in n || (lt = !0, console.warn(
2044
+ "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"
2045
+ )), he(n) && (V(n.key), p = "" + n.key), n)
2046
+ J.call(n, v) && v !== "key" && v !== "__self" && v !== "__source" && (l[v] = n[v]);
2047
+ var m = arguments.length - 2;
2048
+ if (m === 1) l.children = u;
2049
+ else if (1 < m) {
2050
+ for (var P = Array(m), T = 0; T < m; T++)
2051
+ P[T] = arguments[T + 2];
2052
+ Object.freeze && Object.freeze(P), l.children = P;
2053
+ }
2054
+ if (e && e.defaultProps)
2055
+ for (v in m = e.defaultProps, m)
2056
+ l[v] === void 0 && (l[v] = m[v]);
2057
+ return p && pe(
2058
+ l,
2059
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
2060
+ ), oe(e, p, void 0, void 0, re(), l);
2061
+ }, t.createRef = function() {
2062
+ var e = { current: null };
2063
+ return Object.seal(e), e;
2064
+ }, t.forwardRef = function(e) {
2065
+ e != null && e.$$typeof === Pe ? console.error(
2066
+ "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
2067
+ ) : typeof e != "function" ? console.error(
2068
+ "forwardRef requires a render function but was given %s.",
2069
+ e === null ? "null" : typeof e
2070
+ ) : e.length !== 0 && e.length !== 2 && console.error(
2071
+ "forwardRef render functions accept exactly two parameters: props and ref. %s",
2072
+ e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
2073
+ ), e != null && e.defaultProps != null && console.error(
2074
+ "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
2075
+ );
2076
+ var n = { $$typeof: Se, render: e }, u;
2077
+ return Object.defineProperty(n, "displayName", {
2136
2078
  enumerable: !1,
2079
+ configurable: !0,
2137
2080
  get: function() {
2138
- return Q("Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, "type", {
2139
- value: e
2140
- }), e;
2081
+ return u;
2082
+ },
2083
+ set: function(l) {
2084
+ u = l, e.name || e.displayName || (Object.defineProperty(e, "name", { value: l }), e.displayName = l);
2141
2085
  }
2142
- }), r;
2143
- }
2144
- function Ur(e, r, i) {
2145
- for (var a = er.apply(this, arguments), u = 2; u < arguments.length; u++)
2146
- Dt(arguments[u], a.type);
2147
- return Tt(a), a;
2148
- }
2149
- function xr(e, r) {
2150
- var i = G.transition;
2151
- G.transition = {};
2152
- var a = G.transition;
2153
- G.transition._updatedFibers = /* @__PURE__ */ new Set();
2086
+ }), n;
2087
+ }, t.isValidElement = L, t.lazy = function(e) {
2088
+ return {
2089
+ $$typeof: _e,
2090
+ _payload: { _status: -1, _result: e },
2091
+ _init: De
2092
+ };
2093
+ }, t.memo = function(e, n) {
2094
+ ee(e) || console.error(
2095
+ "memo: The first argument must be a component. Instead received: %s",
2096
+ e === null ? "null" : typeof e
2097
+ ), n = {
2098
+ $$typeof: Pe,
2099
+ type: e,
2100
+ compare: n === void 0 ? null : n
2101
+ };
2102
+ var u;
2103
+ return Object.defineProperty(n, "displayName", {
2104
+ enumerable: !1,
2105
+ configurable: !0,
2106
+ get: function() {
2107
+ return u;
2108
+ },
2109
+ set: function(l) {
2110
+ u = l, e.name || e.displayName || (Object.defineProperty(e, "name", { value: l }), e.displayName = l);
2111
+ }
2112
+ }), n;
2113
+ }, t.startTransition = function(e) {
2114
+ var n = E.T, u = {};
2115
+ E.T = u, u._updatedFibers = /* @__PURE__ */ new Set();
2154
2116
  try {
2155
- e();
2117
+ var l = e(), p = E.S;
2118
+ p !== null && p(u, l), typeof l == "object" && l !== null && typeof l.then == "function" && l.then(s, mt);
2119
+ } catch (v) {
2120
+ mt(v);
2156
2121
  } finally {
2157
- if (G.transition = i, i === null && a._updatedFibers) {
2158
- var u = a._updatedFibers.size;
2159
- u > 10 && Q("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."), a._updatedFibers.clear();
2160
- }
2122
+ n === null && u._updatedFibers && (e = u._updatedFibers.size, u._updatedFibers.clear(), 10 < e && console.warn(
2123
+ "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."
2124
+ )), E.T = n;
2125
+ }
2126
+ }, t.unstable_useCacheRefresh = function() {
2127
+ return j().useCacheRefresh();
2128
+ }, t.use = function(e) {
2129
+ return j().use(e);
2130
+ }, t.useActionState = function(e, n, u) {
2131
+ return j().useActionState(
2132
+ e,
2133
+ n,
2134
+ u
2135
+ );
2136
+ }, t.useCallback = function(e, n) {
2137
+ return j().useCallback(e, n);
2138
+ }, t.useContext = function(e) {
2139
+ var n = j();
2140
+ return e.$$typeof === Oe && console.error(
2141
+ "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
2142
+ ), n.useContext(e);
2143
+ }, t.useDebugValue = function(e, n) {
2144
+ return j().useDebugValue(e, n);
2145
+ }, t.useDeferredValue = function(e, n) {
2146
+ return j().useDeferredValue(e, n);
2147
+ }, t.useEffect = function(e, n) {
2148
+ return j().useEffect(e, n);
2149
+ }, t.useId = function() {
2150
+ return j().useId();
2151
+ }, t.useImperativeHandle = function(e, n, u) {
2152
+ return j().useImperativeHandle(e, n, u);
2153
+ }, t.useInsertionEffect = function(e, n) {
2154
+ return j().useInsertionEffect(e, n);
2155
+ }, t.useLayoutEffect = function(e, n) {
2156
+ return j().useLayoutEffect(e, n);
2157
+ }, t.useMemo = function(e, n) {
2158
+ return j().useMemo(e, n);
2159
+ }, t.useOptimistic = function(e, n) {
2160
+ return j().useOptimistic(e, n);
2161
+ }, t.useReducer = function(e, n, u) {
2162
+ return j().useReducer(e, n, u);
2163
+ }, t.useRef = function(e) {
2164
+ return j().useRef(e);
2165
+ }, t.useState = function(e) {
2166
+ return j().useState(e);
2167
+ }, t.useSyncExternalStore = function(e, n, u) {
2168
+ return j().useSyncExternalStore(
2169
+ e,
2170
+ n,
2171
+ u
2172
+ );
2173
+ }, t.useTransition = function() {
2174
+ return j().useTransition();
2175
+ }, t.version = "19.0.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
2176
+ }();
2177
+ }(We, We.exports)), We.exports;
2178
+ }
2179
+ var Ct;
2180
+ function Pt() {
2181
+ return Ct || (Ct = 1, process.env.NODE_ENV === "production" ? Xe.exports = Ft() : Xe.exports = Gt()), Xe.exports;
2182
+ }
2183
+ /**
2184
+ * @license React
2185
+ * react-jsx-runtime.development.js
2186
+ *
2187
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
2188
+ *
2189
+ * This source code is licensed under the MIT license found in the
2190
+ * LICENSE file in the root directory of this source tree.
2191
+ */
2192
+ var Rt;
2193
+ function Kt() {
2194
+ return Rt || (Rt = 1, process.env.NODE_ENV !== "production" && function() {
2195
+ function r(o) {
2196
+ if (o == null) return null;
2197
+ if (typeof o == "function")
2198
+ return o.$$typeof === De ? null : o.displayName || o.name || null;
2199
+ if (typeof o == "string") return o;
2200
+ switch (o) {
2201
+ case oe:
2202
+ return "Fragment";
2203
+ case k:
2204
+ return "Portal";
2205
+ case Ce:
2206
+ return "Profiler";
2207
+ case me:
2208
+ return "StrictMode";
2209
+ case ce:
2210
+ return "Suspense";
2211
+ case ne:
2212
+ return "SuspenseList";
2213
+ }
2214
+ if (typeof o == "object")
2215
+ switch (typeof o.tag == "number" && console.error(
2216
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
2217
+ ), o.$$typeof) {
2218
+ case Re:
2219
+ return (o.displayName || "Context") + ".Provider";
2220
+ case L:
2221
+ return (o._context.displayName || "Context") + ".Consumer";
2222
+ case ge:
2223
+ var d = o.render;
2224
+ return o = o.displayName, o || (o = d.displayName || d.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
2225
+ case ve:
2226
+ return d = o.displayName || null, d !== null ? d : r(o.type) || "Memo";
2227
+ case K:
2228
+ d = o._payload, o = o._init;
2229
+ try {
2230
+ return r(o(d));
2231
+ } catch {
2232
+ }
2161
2233
  }
2234
+ return null;
2235
+ }
2236
+ function t(o) {
2237
+ return "" + o;
2238
+ }
2239
+ function i(o) {
2240
+ try {
2241
+ t(o);
2242
+ var d = !1;
2243
+ } catch {
2244
+ d = !0;
2162
2245
  }
2163
- var At = !1, Ne = null;
2164
- function Wr(e) {
2165
- if (Ne === null)
2166
- try {
2167
- var r = ("require" + Math.random()).slice(0, 7), i = n && n[r];
2168
- Ne = i.call(n, "timers").setImmediate;
2169
- } catch {
2170
- Ne = function(u) {
2171
- At === !1 && (At = !0, typeof MessageChannel > "u" && h("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."));
2172
- var p = new MessageChannel();
2173
- p.port1.onmessage = u, p.port2.postMessage(void 0);
2174
- };
2175
- }
2176
- return Ne(e);
2246
+ if (d) {
2247
+ d = console;
2248
+ var h = d.error, O = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
2249
+ return h.call(
2250
+ d,
2251
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
2252
+ O
2253
+ ), t(o);
2177
2254
  }
2178
- var ce = 0, It = !1;
2179
- function Yr(e) {
2180
- {
2181
- var r = ce;
2182
- ce++, A.current === null && (A.current = []);
2183
- var i = A.isBatchingLegacy, a;
2184
- try {
2185
- if (A.isBatchingLegacy = !0, a = e(), !i && A.didScheduleLegacyUpdate) {
2186
- var u = A.current;
2187
- u !== null && (A.didScheduleLegacyUpdate = !1, Qe(u));
2188
- }
2189
- } catch (T) {
2190
- throw Fe(r), T;
2191
- } finally {
2192
- A.isBatchingLegacy = i;
2193
- }
2194
- if (a !== null && typeof a == "object" && typeof a.then == "function") {
2195
- var p = a, d = !1, m = {
2196
- then: function(T, j) {
2197
- d = !0, p.then(function(I) {
2198
- Fe(r), ce === 0 ? Ge(I, T, j) : T(I);
2199
- }, function(I) {
2200
- Fe(r), j(I);
2201
- });
2202
- }
2203
- };
2204
- return !It && typeof Promise < "u" && Promise.resolve().then(function() {
2205
- }).then(function() {
2206
- d || (It = !0, h("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 () => ...);"));
2207
- }), m;
2208
- } else {
2209
- var b = a;
2210
- if (Fe(r), ce === 0) {
2211
- var w = A.current;
2212
- w !== null && (Qe(w), A.current = null);
2213
- var S = {
2214
- then: function(T, j) {
2215
- A.current === null ? (A.current = [], Ge(b, T, j)) : T(b);
2255
+ }
2256
+ function f() {
2257
+ }
2258
+ function c() {
2259
+ if (w === 0) {
2260
+ A = console.log, b = console.info, W = console.warn, D = console.error, ye = console.group, Me = console.groupCollapsed, Oe = console.groupEnd;
2261
+ var o = {
2262
+ configurable: !0,
2263
+ enumerable: !0,
2264
+ value: f,
2265
+ writable: !0
2266
+ };
2267
+ Object.defineProperties(console, {
2268
+ info: o,
2269
+ log: o,
2270
+ warn: o,
2271
+ error: o,
2272
+ group: o,
2273
+ groupCollapsed: o,
2274
+ groupEnd: o
2275
+ });
2276
+ }
2277
+ w++;
2278
+ }
2279
+ function g() {
2280
+ if (w--, w === 0) {
2281
+ var o = { configurable: !0, enumerable: !0, writable: !0 };
2282
+ Object.defineProperties(console, {
2283
+ log: a({}, o, { value: A }),
2284
+ info: a({}, o, { value: b }),
2285
+ warn: a({}, o, { value: W }),
2286
+ error: a({}, o, { value: D }),
2287
+ group: a({}, o, { value: ye }),
2288
+ groupCollapsed: a({}, o, { value: Me }),
2289
+ groupEnd: a({}, o, { value: Oe })
2290
+ });
2291
+ }
2292
+ 0 > w && console.error(
2293
+ "disabledDepth fell below zero. This is a bug in React. Please file an issue."
2294
+ );
2295
+ }
2296
+ function S(o) {
2297
+ if (Te === void 0)
2298
+ try {
2299
+ throw Error();
2300
+ } catch (h) {
2301
+ var d = h.stack.trim().match(/\n( *(at )?)/);
2302
+ Te = d && d[1] || "", Se = -1 < h.stack.indexOf(`
2303
+ at`) ? " (<anonymous>)" : -1 < h.stack.indexOf("@") ? "@unknown:0:0" : "";
2304
+ }
2305
+ return `
2306
+ ` + Te + o + Se;
2307
+ }
2308
+ function M(o, d) {
2309
+ if (!o || Ee) return "";
2310
+ var h = je.get(o);
2311
+ if (h !== void 0) return h;
2312
+ Ee = !0, h = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
2313
+ var O = null;
2314
+ O = j.H, j.H = null, c();
2315
+ try {
2316
+ var x = {
2317
+ DetermineComponentFrameRoot: function() {
2318
+ try {
2319
+ if (d) {
2320
+ var Z = function() {
2321
+ throw Error();
2322
+ };
2323
+ if (Object.defineProperty(Z.prototype, "props", {
2324
+ set: function() {
2325
+ throw Error();
2326
+ }
2327
+ }), typeof Reflect == "object" && Reflect.construct) {
2328
+ try {
2329
+ Reflect.construct(Z, []);
2330
+ } catch (Q) {
2331
+ var Ae = Q;
2332
+ }
2333
+ Reflect.construct(o, [], Z);
2334
+ } else {
2335
+ try {
2336
+ Z.call();
2337
+ } catch (Q) {
2338
+ Ae = Q;
2339
+ }
2340
+ o.call(Z.prototype);
2216
2341
  }
2217
- };
2218
- return S;
2219
- } else {
2220
- var O = {
2221
- then: function(T, j) {
2222
- T(b);
2342
+ } else {
2343
+ try {
2344
+ throw Error();
2345
+ } catch (Q) {
2346
+ Ae = Q;
2223
2347
  }
2224
- };
2225
- return O;
2348
+ (Z = o()) && typeof Z.catch == "function" && Z.catch(function() {
2349
+ });
2350
+ }
2351
+ } catch (Q) {
2352
+ if (Q && Ae && typeof Q.stack == "string")
2353
+ return [Q.stack, Ae.stack];
2226
2354
  }
2355
+ return [null, null];
2227
2356
  }
2357
+ };
2358
+ x.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
2359
+ var N = Object.getOwnPropertyDescriptor(
2360
+ x.DetermineComponentFrameRoot,
2361
+ "name"
2362
+ );
2363
+ N && N.configurable && Object.defineProperty(
2364
+ x.DetermineComponentFrameRoot,
2365
+ "name",
2366
+ { value: "DetermineComponentFrameRoot" }
2367
+ );
2368
+ var C = x.DetermineComponentFrameRoot(), E = C[0], J = C[1];
2369
+ if (E && J) {
2370
+ var H = E.split(`
2371
+ `), G = J.split(`
2372
+ `);
2373
+ for (C = N = 0; N < H.length && !H[N].includes(
2374
+ "DetermineComponentFrameRoot"
2375
+ ); )
2376
+ N++;
2377
+ for (; C < G.length && !G[C].includes(
2378
+ "DetermineComponentFrameRoot"
2379
+ ); )
2380
+ C++;
2381
+ if (N === H.length || C === G.length)
2382
+ for (N = H.length - 1, C = G.length - 1; 1 <= N && 0 <= C && H[N] !== G[C]; )
2383
+ C--;
2384
+ for (; 1 <= N && 0 <= C; N--, C--)
2385
+ if (H[N] !== G[C]) {
2386
+ if (N !== 1 || C !== 1)
2387
+ do
2388
+ if (N--, C--, 0 > C || H[N] !== G[C]) {
2389
+ var be = `
2390
+ ` + H[N].replace(
2391
+ " at new ",
2392
+ " at "
2393
+ );
2394
+ return o.displayName && be.includes("<anonymous>") && (be = be.replace("<anonymous>", o.displayName)), typeof o == "function" && je.set(o, be), be;
2395
+ }
2396
+ while (1 <= N && 0 <= C);
2397
+ break;
2398
+ }
2228
2399
  }
2400
+ } finally {
2401
+ Ee = !1, j.H = O, g(), Error.prepareStackTrace = h;
2229
2402
  }
2230
- function Fe(e) {
2231
- e !== ce - 1 && h("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), ce = e;
2232
- }
2233
- function Ge(e, r, i) {
2234
- {
2235
- var a = A.current;
2236
- if (a !== null)
2403
+ return H = (H = o ? o.displayName || o.name : "") ? S(H) : "", typeof o == "function" && je.set(o, H), H;
2404
+ }
2405
+ function I(o) {
2406
+ if (o == null) return "";
2407
+ if (typeof o == "function") {
2408
+ var d = o.prototype;
2409
+ return M(
2410
+ o,
2411
+ !(!d || !d.isReactComponent)
2412
+ );
2413
+ }
2414
+ if (typeof o == "string") return S(o);
2415
+ switch (o) {
2416
+ case ce:
2417
+ return S("Suspense");
2418
+ case ne:
2419
+ return S("SuspenseList");
2420
+ }
2421
+ if (typeof o == "object")
2422
+ switch (o.$$typeof) {
2423
+ case ge:
2424
+ return o = M(o.render, !1), o;
2425
+ case ve:
2426
+ return I(o.type);
2427
+ case K:
2428
+ d = o._payload, o = o._init;
2237
2429
  try {
2238
- Qe(a), Wr(function() {
2239
- a.length === 0 ? (A.current = null, r(e)) : Ge(e, r, i);
2240
- });
2241
- } catch (u) {
2242
- i(u);
2430
+ return I(o(d));
2431
+ } catch {
2243
2432
  }
2244
- else
2245
- r(e);
2246
2433
  }
2434
+ return "";
2435
+ }
2436
+ function V() {
2437
+ var o = j.A;
2438
+ return o === null ? null : o.getOwner();
2439
+ }
2440
+ function q(o) {
2441
+ if (s.call(o, "key")) {
2442
+ var d = Object.getOwnPropertyDescriptor(o, "key").get;
2443
+ if (d && d.isReactWarning) return !1;
2247
2444
  }
2248
- var Je = !1;
2249
- function Qe(e) {
2250
- if (!Je) {
2251
- Je = !0;
2252
- var r = 0;
2253
- try {
2254
- for (; r < e.length; r++) {
2255
- var i = e[r];
2256
- do
2257
- i = i(!0);
2258
- while (i !== null);
2259
- }
2260
- e.length = 0;
2261
- } catch (a) {
2262
- throw e = e.slice(r + 1), a;
2263
- } finally {
2264
- Je = !1;
2445
+ return o.key !== void 0;
2446
+ }
2447
+ function ee(o, d) {
2448
+ function h() {
2449
+ _e || (_e = !0, console.error(
2450
+ "%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)",
2451
+ d
2452
+ ));
2453
+ }
2454
+ h.isReactWarning = !0, Object.defineProperty(o, "key", {
2455
+ get: h,
2456
+ configurable: !0
2457
+ });
2458
+ }
2459
+ function de() {
2460
+ var o = r(this.type);
2461
+ return Ve[o] || (Ve[o] = !0, console.error(
2462
+ "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."
2463
+ )), o = this.props.ref, o !== void 0 ? o : null;
2464
+ }
2465
+ function ie(o, d, h, O, x, N) {
2466
+ return h = N.ref, o = {
2467
+ $$typeof: pe,
2468
+ type: o,
2469
+ key: d,
2470
+ props: N,
2471
+ _owner: x
2472
+ }, (h !== void 0 ? h : null) !== null ? Object.defineProperty(o, "ref", {
2473
+ enumerable: !1,
2474
+ get: de
2475
+ }) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
2476
+ configurable: !1,
2477
+ enumerable: !1,
2478
+ writable: !0,
2479
+ value: 0
2480
+ }), Object.defineProperty(o, "_debugInfo", {
2481
+ configurable: !1,
2482
+ enumerable: !1,
2483
+ writable: !0,
2484
+ value: null
2485
+ }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
2486
+ }
2487
+ function ue(o, d, h, O, x, N) {
2488
+ if (typeof o == "string" || typeof o == "function" || o === oe || o === Ce || o === me || o === ce || o === ne || o === F || typeof o == "object" && o !== null && (o.$$typeof === K || o.$$typeof === ve || o.$$typeof === Re || o.$$typeof === L || o.$$typeof === ge || o.$$typeof === _ || o.getModuleId !== void 0)) {
2489
+ var C = d.children;
2490
+ if (C !== void 0)
2491
+ if (O)
2492
+ if (y(C)) {
2493
+ for (O = 0; O < C.length; O++)
2494
+ te(C[O], o);
2495
+ Object.freeze && Object.freeze(C);
2496
+ } else
2497
+ console.error(
2498
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
2499
+ );
2500
+ else te(C, o);
2501
+ } else
2502
+ C = "", (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (C += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), o === null ? O = "null" : y(o) ? O = "array" : o !== void 0 && o.$$typeof === pe ? (O = "<" + (r(o.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : O = typeof o, console.error(
2503
+ "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
2504
+ O,
2505
+ C
2506
+ );
2507
+ if (s.call(d, "key")) {
2508
+ C = r(o);
2509
+ var E = Object.keys(d).filter(function(H) {
2510
+ return H !== "key";
2511
+ });
2512
+ O = 0 < E.length ? "{key: someKey, " + E.join(": ..., ") + ": ...}" : "{key: someKey}", He[C + O] || (E = 0 < E.length ? "{" + E.join(": ..., ") + ": ...}" : "{}", console.error(
2513
+ `A props object containing a "key" prop is being spread into JSX:
2514
+ let props = %s;
2515
+ <%s {...props} />
2516
+ React keys must be passed directly to JSX without using spread:
2517
+ let props = %s;
2518
+ <%s key={someKey} {...props} />`,
2519
+ O,
2520
+ C,
2521
+ E,
2522
+ C
2523
+ ), He[C + O] = !0);
2524
+ }
2525
+ if (C = null, h !== void 0 && (i(h), C = "" + h), q(d) && (i(d.key), C = "" + d.key), "key" in d) {
2526
+ h = {};
2527
+ for (var J in d)
2528
+ J !== "key" && (h[J] = d[J]);
2529
+ } else h = d;
2530
+ return C && ee(
2531
+ h,
2532
+ typeof o == "function" ? o.displayName || o.name || "Unknown" : o
2533
+ ), ie(o, C, N, x, V(), h);
2534
+ }
2535
+ function te(o, d) {
2536
+ if (typeof o == "object" && o && o.$$typeof !== Pe) {
2537
+ if (y(o))
2538
+ for (var h = 0; h < o.length; h++) {
2539
+ var O = o[h];
2540
+ B(O) && ae(O, d);
2265
2541
  }
2266
- }
2542
+ else if (B(o))
2543
+ o._store && (o._store.validated = 1);
2544
+ else if (o === null || typeof o != "object" ? h = null : (h = le && o[le] || o["@@iterator"], h = typeof h == "function" ? h : null), typeof h == "function" && h !== o.entries && (h = h.call(o), h !== o))
2545
+ for (; !(o = h.next()).done; )
2546
+ B(o.value) && ae(o.value, d);
2267
2547
  }
2268
- var Hr = kt, Br = Ur, zr = Vr, qr = {
2269
- map: Te,
2270
- forEach: ir,
2271
- count: or,
2272
- toArray: sr,
2273
- only: ar
2274
- };
2275
- t.Children = qr, t.Component = _, t.Fragment = y, t.Profiler = F, t.PureComponent = $, t.StrictMode = D, t.Suspense = H, t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Y, t.cloneElement = Br, t.createContext = ur, t.createElement = Hr, t.createFactory = zr, t.createRef = Ht, t.forwardRef = dr, t.isValidElement = ae, t.lazy = fr, t.memo = pr, t.startTransition = xr, t.unstable_act = Yr, t.useCallback = Er, t.useContext = hr, t.useDebugValue = Rr, t.useDeferredValue = Sr, t.useEffect = gr, t.useId = Or, t.useImperativeHandle = Cr, t.useInsertionEffect = _r, t.useLayoutEffect = br, t.useMemo = wr, t.useReducer = yr, t.useRef = vr, t.useState = mr, t.useSyncExternalStore = Dr, t.useTransition = Pr, t.version = s, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2276
- }();
2277
- }(_e, _e.exports)), _e.exports;
2548
+ }
2549
+ function B(o) {
2550
+ return typeof o == "object" && o !== null && o.$$typeof === pe;
2551
+ }
2552
+ function ae(o, d) {
2553
+ if (o._store && !o._store.validated && o.key == null && (o._store.validated = 1, d = re(d), !Ue[d])) {
2554
+ Ue[d] = !0;
2555
+ var h = "";
2556
+ o && o._owner != null && o._owner !== V() && (h = null, typeof o._owner.tag == "number" ? h = r(o._owner.type) : typeof o._owner.name == "string" && (h = o._owner.name), h = " It was passed a child from " + h + ".");
2557
+ var O = j.getCurrentStack;
2558
+ j.getCurrentStack = function() {
2559
+ var x = I(o.type);
2560
+ return O && (x += O() || ""), x;
2561
+ }, console.error(
2562
+ 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
2563
+ d,
2564
+ h
2565
+ ), j.getCurrentStack = O;
2566
+ }
2567
+ }
2568
+ function re(o) {
2569
+ var d = "", h = V();
2570
+ return h && (h = r(h.type)) && (d = `
2571
+
2572
+ Check the render method of \`` + h + "`."), d || (o = r(o)) && (d = `
2573
+
2574
+ Check the top-level render call using <` + o + ">."), d;
2575
+ }
2576
+ var he = Pt(), pe = Symbol.for("react.transitional.element"), k = Symbol.for("react.portal"), oe = Symbol.for("react.fragment"), me = Symbol.for("react.strict_mode"), Ce = Symbol.for("react.profiler"), L = Symbol.for("react.consumer"), Re = Symbol.for("react.context"), ge = Symbol.for("react.forward_ref"), ce = Symbol.for("react.suspense"), ne = Symbol.for("react.suspense_list"), ve = Symbol.for("react.memo"), K = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), le = Symbol.iterator, De = Symbol.for("react.client.reference"), j = he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, s = Object.prototype.hasOwnProperty, a = Object.assign, _ = Symbol.for("react.client.reference"), y = Array.isArray, w = 0, A, b, W, D, ye, Me, Oe;
2577
+ f.__reactDisabledLog = !0;
2578
+ var Te, Se, Ee = !1, je = new (typeof WeakMap == "function" ? WeakMap : Map)(), Pe = Symbol.for("react.client.reference"), _e, Ve = {}, He = {}, Ue = {};
2579
+ qe.Fragment = oe, qe.jsx = function(o, d, h, O, x) {
2580
+ return ue(o, d, h, !1, O, x);
2581
+ }, qe.jsxs = function(o, d, h, O, x) {
2582
+ return ue(o, d, h, !0, O, x);
2583
+ };
2584
+ }()), qe;
2585
+ }
2586
+ var Ot;
2587
+ function Qt() {
2588
+ return Ot || (Ot = 1, process.env.NODE_ENV === "production" ? Qe.exports = Bt() : Qe.exports = Kt()), Qe.exports;
2278
2589
  }
2279
- process.env.NODE_ENV === "production" ? et.exports = vn() : et.exports = gn();
2280
- var fe = et.exports;
2281
- const W = /* @__PURE__ */ yn(fe);
2282
- class _n extends fe.Component {
2590
+ var X = Qt(), Le = Pt();
2591
+ class Xt extends Le.Component {
2283
2592
  constructor(t) {
2284
2593
  super(t), this.unfilteredDocuments = [], this.state = {
2285
2594
  documents: [],
@@ -2289,10 +2598,10 @@ class _n extends fe.Component {
2289
2598
  }
2290
2599
  async componentDidMount() {
2291
2600
  const { controller: t } = this.props;
2292
- this.unsubscriber = t.onChange((s) => {
2293
- s.documentCollection && (this.unfilteredDocuments = s.documentCollection, this.setState({
2601
+ this.unsubscriber = t.onChange((i) => {
2602
+ i.documentCollection && (this.unfilteredDocuments = i.documentCollection, this.setState({
2294
2603
  documents: t.filter(this.unfilteredDocuments)
2295
- })), s.action === "filterChange" ? this.setState({
2604
+ })), i.action === "filterChange" ? this.setState({
2296
2605
  documents: t.filter(this.unfilteredDocuments)
2297
2606
  }) : this.setState({});
2298
2607
  }), this.unfilteredDocuments = await t.documentCollection(), this.setState({
@@ -2316,55 +2625,67 @@ class _n extends fe.Component {
2316
2625
  });
2317
2626
  }
2318
2627
  async storeDocument(t) {
2319
- const { controller: s, layout: c } = this.props;
2320
- s.setDocument(t), await s.storeDocument(), c === "formAndItems" ? this.newDocument() : this.setState({
2628
+ const { controller: i, layout: f } = this.props;
2629
+ i.setDocument(t), await i.storeDocument(), f === "formAndItems" ? this.newDocument() : this.setState({
2321
2630
  mode: 0
2322
2631
  /* normal */
2323
2632
  });
2324
2633
  }
2325
2634
  invokeContentViewChild(t) {
2326
- const { children: s, layout: c, controller: l } = this.props, { mode: y } = this.state, D = c !== "formAndItems";
2327
- if (!l.document)
2328
- return;
2329
- const F = {
2330
- controller: l,
2331
- submitButtonCaption: y == 2 ? t == null ? void 0 : t.updateButtonLabel : t == null ? void 0 : t.addButtonLabel,
2332
- onSubmit: (V) => this.storeDocument(V),
2333
- onCancel: D ? () => this.setState({
2635
+ const { children: i, layout: f, controller: c } = this.props, { mode: g } = this.state, S = f !== "formAndItems";
2636
+ if (!c.document) return;
2637
+ const M = {
2638
+ controller: c,
2639
+ submitButtonCaption: g == 2 ? t == null ? void 0 : t.updateButtonLabel : t == null ? void 0 : t.addButtonLabel,
2640
+ onSubmit: (I) => this.storeDocument(I),
2641
+ onCancel: S ? () => this.setState({
2334
2642
  mode: 0
2335
2643
  /* normal */
2336
2644
  }) : () => this.newDocument()
2337
2645
  };
2338
- return typeof s[0] == "function" ? fe.cloneElement(s[0](F), { key: l.document.id }) : fe.cloneElement(s[0], { key: l.document.id, ...F });
2646
+ return typeof i[0] == "function" ? Le.cloneElement(i[0](M), { key: c.document.id }) : Le.cloneElement(i[0], { key: c.document.id, ...M });
2339
2647
  }
2340
2648
  invokeDetailViewChild(t) {
2341
- const { children: s, controller: c } = this.props, l = {
2649
+ const { children: i, controller: f } = this.props, c = {
2342
2650
  document: t,
2343
- onSelect: (y) => this.editDocument(y),
2344
- onDelete: (y) => c.setDocument(y).deleteDocument()
2651
+ onSelect: (g) => this.editDocument(g),
2652
+ onDelete: (g) => f.setDocument(g).deleteDocument()
2345
2653
  };
2346
- return typeof s[1] == "function" ? fe.cloneElement(s[1](l), { key: t.id }) : fe.cloneElement(s[1], { key: t.id, ...l });
2654
+ return typeof i[1] == "function" ? Le.cloneElement(i[1](c), { key: t.id }) : Le.cloneElement(i[1], { key: t.id, ...c });
2347
2655
  }
2348
2656
  render() {
2349
- var U;
2350
- const { mode: t, documents: s } = this.state, { className: c, cardAddButton: l, controller: y } = this.props, D = hn((U = y.document) == null ? void 0 : U.className);
2351
- let F = this.props.labels || {};
2352
- const V = this.props.layout || "itemsAlways";
2353
- typeof F == "function" && (F = F(y));
2354
- const { addNewDocumentLabel: B, singularDocumentInCollectionCaption: z, documentsInCollectionCaption: H, noDocumentsFoundLabel: Z } = F;
2355
- return /* @__PURE__ */ W.createElement("div", { className: `crud-panel ${D} ${c || ""}` }, t === 0 && V !== "formAndItems" && !l && /* @__PURE__ */ W.createElement("div", { className: "header" }, this.props.header ? typeof this.props.header == "function" ? this.props.header(y, () => this.newDocument(), F) : this.props.header : /* @__PURE__ */ W.createElement("button", { onClick: () => this.newDocument() }, B)), (V === "formAndItems" || t === 1 || t === 2) && /* @__PURE__ */ W.createElement("div", { className: "content-panel" }, this.invokeContentViewChild(F)), (V === "itemsAlways" || V === "formAndItems" || t === 0) && /* @__PURE__ */ W.createElement("div", { className: "collection-panel" }, (s == null ? void 0 : s.length) > 0 && /* @__PURE__ */ W.createElement("h3", null, s.length > 1 ? H : z || H), /* @__PURE__ */ W.createElement("div", { className: "documents" }, l && /* @__PURE__ */ W.createElement(
2356
- "div",
2357
- {
2358
- className: "crud-card card-add-button clickable",
2359
- onClick: () => this.newDocument()
2360
- },
2361
- /* @__PURE__ */ W.createElement("div", { className: "button-element" }, l),
2362
- /* @__PURE__ */ W.createElement("div", { className: "add-label" }, B)
2363
- ), s != null && s.length ? s.map((q) => this.invokeDetailViewChild(q)) : /* @__PURE__ */ W.createElement("p", null, Z))), /* @__PURE__ */ W.createElement("div", { className: "footer" }, this.props.footer && typeof this.props.footer == "function" ? this.props.footer(y, () => this.newDocument(), F) : this.props.footer));
2657
+ var ie;
2658
+ const { mode: t, documents: i } = this.state, { className: f, cardAddButton: c, controller: g } = this.props, S = zt((ie = g.document) == null ? void 0 : ie.className);
2659
+ let M = this.props.labels || {};
2660
+ const I = this.props.layout || "itemsAlways";
2661
+ typeof M == "function" && (M = M(g));
2662
+ const { addNewDocumentLabel: V, singularDocumentInCollectionCaption: q, documentsInCollectionCaption: ee, noDocumentsFoundLabel: de } = M;
2663
+ return /* @__PURE__ */ X.jsxs("div", { className: `crud-panel ${S} ${f || ""}`, children: [
2664
+ t === 0 && I !== "formAndItems" && !c && /* @__PURE__ */ X.jsx("div", { className: "header", children: this.props.header ? typeof this.props.header == "function" ? this.props.header(g, () => this.newDocument(), M) : this.props.header : /* @__PURE__ */ X.jsx("button", { onClick: () => this.newDocument(), children: V }) }),
2665
+ (I === "formAndItems" || t === 1 || t === 2) && /* @__PURE__ */ X.jsx("div", { className: "content-panel", children: this.invokeContentViewChild(M) }),
2666
+ (I === "itemsAlways" || I === "formAndItems" || t === 0) && /* @__PURE__ */ X.jsxs("div", { className: "collection-panel", children: [
2667
+ (i == null ? void 0 : i.length) > 0 && /* @__PURE__ */ X.jsx("h3", { children: i.length > 1 ? ee : q || ee }),
2668
+ /* @__PURE__ */ X.jsxs("div", { className: "documents", children: [
2669
+ c && /* @__PURE__ */ X.jsxs(
2670
+ "div",
2671
+ {
2672
+ className: "crud-card card-add-button clickable",
2673
+ onClick: () => this.newDocument(),
2674
+ children: [
2675
+ /* @__PURE__ */ X.jsx("div", { className: "button-element", children: c }),
2676
+ /* @__PURE__ */ X.jsx("div", { className: "add-label", children: V })
2677
+ ]
2678
+ }
2679
+ ),
2680
+ i != null && i.length ? i.map((ue) => this.invokeDetailViewChild(ue)) : /* @__PURE__ */ X.jsx("p", { children: de })
2681
+ ] })
2682
+ ] }),
2683
+ /* @__PURE__ */ X.jsx("div", { className: "footer", children: this.props.footer && typeof this.props.footer == "function" ? this.props.footer(g, () => this.newDocument(), M) : this.props.footer })
2684
+ ] });
2364
2685
  }
2365
2686
  }
2366
2687
  export {
2367
- Lt as CrudController,
2368
- _n as CrudPanel
2688
+ Et as CrudController,
2689
+ Xt as CrudPanel
2369
2690
  };
2370
2691
  //# sourceMappingURL=entropic-bond-crud-panel.js.map