@ix_waterford/lib 1.0.5 → 1.0.7

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.
Files changed (52) hide show
  1. package/dist/{static/js/async → async}/reactPlayerDash.js +3 -4
  2. package/dist/async/reactPlayerDash.js.map +1 -0
  3. package/dist/{static/js/async → async}/reactPlayerHls.js +3 -4
  4. package/dist/async/reactPlayerHls.js.map +1 -0
  5. package/dist/{static/js/async → async}/reactPlayerMux.js +3 -4
  6. package/dist/async/reactPlayerMux.js.map +1 -0
  7. package/dist/{static/js/async → async}/reactPlayerPreview.js +6 -7
  8. package/dist/async/reactPlayerPreview.js.map +1 -0
  9. package/dist/{static/js/async → async}/reactPlayerSpotify.js +3 -4
  10. package/dist/async/reactPlayerSpotify.js.map +1 -0
  11. package/dist/{static/js/async → async}/reactPlayerTiktok.js +3 -4
  12. package/dist/async/reactPlayerTiktok.js.map +1 -0
  13. package/dist/{static/js/async → async}/reactPlayerTwitch.js +3 -4
  14. package/dist/async/reactPlayerTwitch.js.map +1 -0
  15. package/dist/{static/js/async → async}/reactPlayerVimeo.js +3 -4
  16. package/dist/async/reactPlayerVimeo.js.map +1 -0
  17. package/dist/{static/js/async → async}/reactPlayerWistia.js +3 -4
  18. package/dist/async/reactPlayerWistia.js.map +1 -0
  19. package/dist/{static/js/async → async}/reactPlayerYouTube.js +3 -4
  20. package/dist/async/reactPlayerYouTube.js.map +1 -0
  21. package/dist/{static/js/async → async}/vendors-node_modules_custom-media-element_dist_custom-media-element_js-node_modules_media-tra-835023.js +1 -2
  22. package/dist/async/vendors-node_modules_custom-media-element_dist_custom-media-element_js-node_modules_media-tra-835023.js.map +1 -0
  23. package/dist/{static/js/async → async}/vendors-node_modules_dashjs_dist_modern_esm_dash_all_min_js.js +1 -2
  24. package/dist/async/vendors-node_modules_dashjs_dist_modern_esm_dash_all_min_js.js.map +1 -0
  25. package/dist/{static/js/async → async}/vendors-node_modules_hls_js_dist_hls_mjs.js +1 -2
  26. package/dist/async/vendors-node_modules_hls_js_dist_hls_mjs.js.map +1 -0
  27. package/dist/index.html +1 -1
  28. package/dist/{static/js/index.js → index.js} +360 -364
  29. package/dist/index.js.map +1 -0
  30. package/dist/lib-react.js +1462 -0
  31. package/dist/lib-react.js.map +1 -0
  32. package/dist/vendors-node_modules_rspack_core_dist_cssExtractHmr_js-node_modules_dayjs_plugin_utc_js-node_-5eb95d.js +53062 -0
  33. package/dist/vendors-node_modules_rspack_core_dist_cssExtractHmr_js-node_modules_dayjs_plugin_utc_js-node_-5eb95d.js.map +1 -0
  34. package/package.json +5 -5
  35. package/dist/static/js/async/reactPlayerDash.js.map +0 -1
  36. package/dist/static/js/async/reactPlayerHls.js.map +0 -1
  37. package/dist/static/js/async/reactPlayerMux.js.map +0 -1
  38. package/dist/static/js/async/reactPlayerPreview.js.map +0 -1
  39. package/dist/static/js/async/reactPlayerSpotify.js.map +0 -1
  40. package/dist/static/js/async/reactPlayerTiktok.js.map +0 -1
  41. package/dist/static/js/async/reactPlayerTwitch.js.map +0 -1
  42. package/dist/static/js/async/reactPlayerVimeo.js.map +0 -1
  43. package/dist/static/js/async/reactPlayerWistia.js.map +0 -1
  44. package/dist/static/js/async/reactPlayerYouTube.js.map +0 -1
  45. package/dist/static/js/async/vendors-node_modules_custom-media-element_dist_custom-media-element_js-node_modules_media-tra-835023.js.map +0 -1
  46. package/dist/static/js/async/vendors-node_modules_dashjs_dist_modern_esm_dash_all_min_js.js.map +0 -1
  47. package/dist/static/js/async/vendors-node_modules_hls_js_dist_hls_mjs.js.map +0 -1
  48. package/dist/static/js/index.js.map +0 -1
  49. package/dist/static/js/lib-react.js +0 -3235
  50. package/dist/static/js/lib-react.js.map +0 -1
  51. package/dist/static/js/vendors-node_modules_rspack_core_dist_cssExtractHmr_js-node_modules_dayjs_plugin_utc_js-node_-897cfa.js +0 -113737
  52. package/dist/static/js/vendors-node_modules_rspack_core_dist_cssExtractHmr_js-node_modules_dayjs_plugin_utc_js-node_-897cfa.js.map +0 -1
@@ -1,3235 +0,0 @@
1
- (self["webpackChunk_ix_waterford_lib"] = self["webpackChunk_ix_waterford_lib"] || []).push([["lib-react"], {
2
- "./node_modules/react-dom/cjs/react-dom.development.js": (function (__unused_webpack_module, exports, __webpack_require__) {
3
- "use strict";
4
- /**
5
- * @license React
6
- * react-dom.development.js
7
- *
8
- * Copyright (c) Meta Platforms, Inc. and affiliates.
9
- *
10
- * This source code is licensed under the MIT license found in the
11
- * LICENSE file in the root directory of this source tree.
12
- */
13
-
14
-
15
- true &&
16
- (function () {
17
- function noop() {}
18
- function testStringCoercion(value) {
19
- return "" + value;
20
- }
21
- function createPortal$1(children, containerInfo, implementation) {
22
- var key =
23
- 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
24
- try {
25
- testStringCoercion(key);
26
- var JSCompiler_inline_result = !1;
27
- } catch (e) {
28
- JSCompiler_inline_result = !0;
29
- }
30
- JSCompiler_inline_result &&
31
- (console.error(
32
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
33
- ("function" === typeof Symbol &&
34
- Symbol.toStringTag &&
35
- key[Symbol.toStringTag]) ||
36
- key.constructor.name ||
37
- "Object"
38
- ),
39
- testStringCoercion(key));
40
- return {
41
- $$typeof: REACT_PORTAL_TYPE,
42
- key: null == key ? null : "" + key,
43
- children: children,
44
- containerInfo: containerInfo,
45
- implementation: implementation
46
- };
47
- }
48
- function getCrossOriginStringAs(as, input) {
49
- if ("font" === as) return "";
50
- if ("string" === typeof input)
51
- return "use-credentials" === input ? input : "";
52
- }
53
- function getValueDescriptorExpectingObjectForWarning(thing) {
54
- return null === thing
55
- ? "`null`"
56
- : void 0 === thing
57
- ? "`undefined`"
58
- : "" === thing
59
- ? "an empty string"
60
- : 'something with type "' + typeof thing + '"';
61
- }
62
- function getValueDescriptorExpectingEnumForWarning(thing) {
63
- return null === thing
64
- ? "`null`"
65
- : void 0 === thing
66
- ? "`undefined`"
67
- : "" === thing
68
- ? "an empty string"
69
- : "string" === typeof thing
70
- ? JSON.stringify(thing)
71
- : "number" === typeof thing
72
- ? "`" + thing + "`"
73
- : 'something with type "' + typeof thing + '"';
74
- }
75
- function resolveDispatcher() {
76
- var dispatcher = ReactSharedInternals.H;
77
- null === dispatcher &&
78
- console.error(
79
- "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:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
80
- );
81
- return dispatcher;
82
- }
83
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
84
- "function" ===
85
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
86
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
87
- var React = __webpack_require__("./node_modules/react/index.js"),
88
- Internals = {
89
- d: {
90
- f: noop,
91
- r: function () {
92
- throw Error(
93
- "Invalid form element. requestFormReset must be passed a form that was rendered by React."
94
- );
95
- },
96
- D: noop,
97
- C: noop,
98
- L: noop,
99
- m: noop,
100
- X: noop,
101
- S: noop,
102
- M: noop
103
- },
104
- p: 0,
105
- findDOMNode: null
106
- },
107
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
108
- ReactSharedInternals =
109
- React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
110
- ("function" === typeof Map &&
111
- null != Map.prototype &&
112
- "function" === typeof Map.prototype.forEach &&
113
- "function" === typeof Set &&
114
- null != Set.prototype &&
115
- "function" === typeof Set.prototype.clear &&
116
- "function" === typeof Set.prototype.forEach) ||
117
- console.error(
118
- "React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
119
- );
120
- exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
121
- Internals;
122
- exports.createPortal = function (children, container) {
123
- var key =
124
- 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
125
- if (
126
- !container ||
127
- (1 !== container.nodeType &&
128
- 9 !== container.nodeType &&
129
- 11 !== container.nodeType)
130
- )
131
- throw Error("Target container is not a DOM element.");
132
- return createPortal$1(children, container, null, key);
133
- };
134
- exports.flushSync = function (fn) {
135
- var previousTransition = ReactSharedInternals.T,
136
- previousUpdatePriority = Internals.p;
137
- try {
138
- if (((ReactSharedInternals.T = null), (Internals.p = 2), fn))
139
- return fn();
140
- } finally {
141
- (ReactSharedInternals.T = previousTransition),
142
- (Internals.p = previousUpdatePriority),
143
- Internals.d.f() &&
144
- console.error(
145
- "flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
146
- );
147
- }
148
- };
149
- exports.preconnect = function (href, options) {
150
- "string" === typeof href && href
151
- ? null != options && "object" !== typeof options
152
- ? console.error(
153
- "ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
154
- getValueDescriptorExpectingEnumForWarning(options)
155
- )
156
- : null != options &&
157
- "string" !== typeof options.crossOrigin &&
158
- console.error(
159
- "ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
160
- getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
161
- )
162
- : console.error(
163
- "ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
164
- getValueDescriptorExpectingObjectForWarning(href)
165
- );
166
- "string" === typeof href &&
167
- (options
168
- ? ((options = options.crossOrigin),
169
- (options =
170
- "string" === typeof options
171
- ? "use-credentials" === options
172
- ? options
173
- : ""
174
- : void 0))
175
- : (options = null),
176
- Internals.d.C(href, options));
177
- };
178
- exports.prefetchDNS = function (href) {
179
- if ("string" !== typeof href || !href)
180
- console.error(
181
- "ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
182
- getValueDescriptorExpectingObjectForWarning(href)
183
- );
184
- else if (1 < arguments.length) {
185
- var options = arguments[1];
186
- "object" === typeof options && options.hasOwnProperty("crossOrigin")
187
- ? console.error(
188
- "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
189
- getValueDescriptorExpectingEnumForWarning(options)
190
- )
191
- : console.error(
192
- "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
193
- getValueDescriptorExpectingEnumForWarning(options)
194
- );
195
- }
196
- "string" === typeof href && Internals.d.D(href);
197
- };
198
- exports.preinit = function (href, options) {
199
- "string" === typeof href && href
200
- ? null == options || "object" !== typeof options
201
- ? console.error(
202
- "ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
203
- getValueDescriptorExpectingEnumForWarning(options)
204
- )
205
- : "style" !== options.as &&
206
- "script" !== options.as &&
207
- console.error(
208
- 'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
209
- getValueDescriptorExpectingEnumForWarning(options.as)
210
- )
211
- : console.error(
212
- "ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
213
- getValueDescriptorExpectingObjectForWarning(href)
214
- );
215
- if (
216
- "string" === typeof href &&
217
- options &&
218
- "string" === typeof options.as
219
- ) {
220
- var as = options.as,
221
- crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),
222
- integrity =
223
- "string" === typeof options.integrity ? options.integrity : void 0,
224
- fetchPriority =
225
- "string" === typeof options.fetchPriority
226
- ? options.fetchPriority
227
- : void 0;
228
- "style" === as
229
- ? Internals.d.S(
230
- href,
231
- "string" === typeof options.precedence
232
- ? options.precedence
233
- : void 0,
234
- {
235
- crossOrigin: crossOrigin,
236
- integrity: integrity,
237
- fetchPriority: fetchPriority
238
- }
239
- )
240
- : "script" === as &&
241
- Internals.d.X(href, {
242
- crossOrigin: crossOrigin,
243
- integrity: integrity,
244
- fetchPriority: fetchPriority,
245
- nonce: "string" === typeof options.nonce ? options.nonce : void 0
246
- });
247
- }
248
- };
249
- exports.preinitModule = function (href, options) {
250
- var encountered = "";
251
- ("string" === typeof href && href) ||
252
- (encountered +=
253
- " The `href` argument encountered was " +
254
- getValueDescriptorExpectingObjectForWarning(href) +
255
- ".");
256
- void 0 !== options && "object" !== typeof options
257
- ? (encountered +=
258
- " The `options` argument encountered was " +
259
- getValueDescriptorExpectingObjectForWarning(options) +
260
- ".")
261
- : options &&
262
- "as" in options &&
263
- "script" !== options.as &&
264
- (encountered +=
265
- " The `as` option encountered was " +
266
- getValueDescriptorExpectingEnumForWarning(options.as) +
267
- ".");
268
- if (encountered)
269
- console.error(
270
- "ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
271
- encountered
272
- );
273
- else
274
- switch (
275
- ((encountered =
276
- options && "string" === typeof options.as ? options.as : "script"),
277
- encountered)
278
- ) {
279
- case "script":
280
- break;
281
- default:
282
- (encountered =
283
- getValueDescriptorExpectingEnumForWarning(encountered)),
284
- console.error(
285
- 'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
286
- encountered,
287
- href
288
- );
289
- }
290
- if ("string" === typeof href)
291
- if ("object" === typeof options && null !== options) {
292
- if (null == options.as || "script" === options.as)
293
- (encountered = getCrossOriginStringAs(
294
- options.as,
295
- options.crossOrigin
296
- )),
297
- Internals.d.M(href, {
298
- crossOrigin: encountered,
299
- integrity:
300
- "string" === typeof options.integrity
301
- ? options.integrity
302
- : void 0,
303
- nonce:
304
- "string" === typeof options.nonce ? options.nonce : void 0
305
- });
306
- } else null == options && Internals.d.M(href);
307
- };
308
- exports.preload = function (href, options) {
309
- var encountered = "";
310
- ("string" === typeof href && href) ||
311
- (encountered +=
312
- " The `href` argument encountered was " +
313
- getValueDescriptorExpectingObjectForWarning(href) +
314
- ".");
315
- null == options || "object" !== typeof options
316
- ? (encountered +=
317
- " The `options` argument encountered was " +
318
- getValueDescriptorExpectingObjectForWarning(options) +
319
- ".")
320
- : ("string" === typeof options.as && options.as) ||
321
- (encountered +=
322
- " The `as` option encountered was " +
323
- getValueDescriptorExpectingObjectForWarning(options.as) +
324
- ".");
325
- encountered &&
326
- console.error(
327
- 'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
328
- encountered
329
- );
330
- if (
331
- "string" === typeof href &&
332
- "object" === typeof options &&
333
- null !== options &&
334
- "string" === typeof options.as
335
- ) {
336
- encountered = options.as;
337
- var crossOrigin = getCrossOriginStringAs(
338
- encountered,
339
- options.crossOrigin
340
- );
341
- Internals.d.L(href, encountered, {
342
- crossOrigin: crossOrigin,
343
- integrity:
344
- "string" === typeof options.integrity ? options.integrity : void 0,
345
- nonce: "string" === typeof options.nonce ? options.nonce : void 0,
346
- type: "string" === typeof options.type ? options.type : void 0,
347
- fetchPriority:
348
- "string" === typeof options.fetchPriority
349
- ? options.fetchPriority
350
- : void 0,
351
- referrerPolicy:
352
- "string" === typeof options.referrerPolicy
353
- ? options.referrerPolicy
354
- : void 0,
355
- imageSrcSet:
356
- "string" === typeof options.imageSrcSet
357
- ? options.imageSrcSet
358
- : void 0,
359
- imageSizes:
360
- "string" === typeof options.imageSizes
361
- ? options.imageSizes
362
- : void 0,
363
- media: "string" === typeof options.media ? options.media : void 0
364
- });
365
- }
366
- };
367
- exports.preloadModule = function (href, options) {
368
- var encountered = "";
369
- ("string" === typeof href && href) ||
370
- (encountered +=
371
- " The `href` argument encountered was " +
372
- getValueDescriptorExpectingObjectForWarning(href) +
373
- ".");
374
- void 0 !== options && "object" !== typeof options
375
- ? (encountered +=
376
- " The `options` argument encountered was " +
377
- getValueDescriptorExpectingObjectForWarning(options) +
378
- ".")
379
- : options &&
380
- "as" in options &&
381
- "string" !== typeof options.as &&
382
- (encountered +=
383
- " The `as` option encountered was " +
384
- getValueDescriptorExpectingObjectForWarning(options.as) +
385
- ".");
386
- encountered &&
387
- console.error(
388
- 'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
389
- encountered
390
- );
391
- "string" === typeof href &&
392
- (options
393
- ? ((encountered = getCrossOriginStringAs(
394
- options.as,
395
- options.crossOrigin
396
- )),
397
- Internals.d.m(href, {
398
- as:
399
- "string" === typeof options.as && "script" !== options.as
400
- ? options.as
401
- : void 0,
402
- crossOrigin: encountered,
403
- integrity:
404
- "string" === typeof options.integrity
405
- ? options.integrity
406
- : void 0
407
- }))
408
- : Internals.d.m(href));
409
- };
410
- exports.requestFormReset = function (form) {
411
- Internals.d.r(form);
412
- };
413
- exports.unstable_batchedUpdates = function (fn, a) {
414
- return fn(a);
415
- };
416
- exports.useFormState = function (action, initialState, permalink) {
417
- return resolveDispatcher().useFormState(action, initialState, permalink);
418
- };
419
- exports.useFormStatus = function () {
420
- return resolveDispatcher().useHostTransitionStatus();
421
- };
422
- exports.version = "19.2.0";
423
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
424
- "function" ===
425
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
426
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
427
- })();
428
-
429
-
430
- }),
431
- "./node_modules/react-dom/index.js": (function (module, __unused_webpack_exports, __webpack_require__) {
432
- "use strict";
433
-
434
-
435
- function checkDCE() {
436
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
437
- if (
438
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
439
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
440
- ) {
441
- return;
442
- }
443
- if (true) {
444
- // This branch is unreachable because this function is only called
445
- // in production, but the condition is true only in development.
446
- // Therefore if the branch is still here, dead code elimination wasn't
447
- // properly applied.
448
- // Don't change the message. React DevTools relies on it. Also make sure
449
- // this message doesn't occur elsewhere in this function, or it will cause
450
- // a false positive.
451
- throw new Error('^_^');
452
- }
453
- try {
454
- // Verify that the code above has been dead code eliminated (DCE'd).
455
- __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
456
- } catch (err) {
457
- // DevTools shouldn't crash React, no matter what.
458
- // We should still report in case we break this code.
459
- console.error(err);
460
- }
461
- }
462
-
463
- if (false) {} else {
464
- module.exports = __webpack_require__("./node_modules/react-dom/cjs/react-dom.development.js");
465
- }
466
-
467
-
468
- }),
469
- "./node_modules/react-refresh/cjs/react-refresh-runtime.development.js": (function (__unused_webpack_module, exports) {
470
- "use strict";
471
- /**
472
- * @license React
473
- * react-refresh-runtime.development.js
474
- *
475
- * Copyright (c) Meta Platforms, Inc. and affiliates.
476
- *
477
- * This source code is licensed under the MIT license found in the
478
- * LICENSE file in the root directory of this source tree.
479
- */
480
-
481
-
482
- true &&
483
- (function () {
484
- function computeFullKey(signature) {
485
- if (null !== signature.fullKey) return signature.fullKey;
486
- var fullKey = signature.ownKey;
487
- try {
488
- var hooks = signature.getCustomHooks();
489
- } catch (err) {
490
- return (signature.forceReset = !0), (signature.fullKey = fullKey);
491
- }
492
- for (var i = 0; i < hooks.length; i++) {
493
- var hook = hooks[i];
494
- if ("function" !== typeof hook)
495
- return (signature.forceReset = !0), (signature.fullKey = fullKey);
496
- hook = allSignaturesByType.get(hook);
497
- if (void 0 !== hook) {
498
- var nestedHookKey = computeFullKey(hook);
499
- hook.forceReset && (signature.forceReset = !0);
500
- fullKey += "\n---\n" + nestedHookKey;
501
- }
502
- }
503
- return (signature.fullKey = fullKey);
504
- }
505
- function resolveFamily(type) {
506
- return updatedFamiliesByType.get(type);
507
- }
508
- function cloneMap(map) {
509
- var clone = new Map();
510
- map.forEach(function (value, key) {
511
- clone.set(key, value);
512
- });
513
- return clone;
514
- }
515
- function cloneSet(set) {
516
- var clone = new Set();
517
- set.forEach(function (value) {
518
- clone.add(value);
519
- });
520
- return clone;
521
- }
522
- function getProperty(object, property) {
523
- try {
524
- return object[property];
525
- } catch (err) {}
526
- }
527
- function register(type, id) {
528
- if (
529
- !(
530
- null === type ||
531
- ("function" !== typeof type && "object" !== typeof type) ||
532
- allFamiliesByType.has(type)
533
- )
534
- ) {
535
- var family = allFamiliesByID.get(id);
536
- void 0 === family
537
- ? ((family = { current: type }), allFamiliesByID.set(id, family))
538
- : pendingUpdates.push([family, type]);
539
- allFamiliesByType.set(type, family);
540
- if ("object" === typeof type && null !== type)
541
- switch (getProperty(type, "$$typeof")) {
542
- case REACT_FORWARD_REF_TYPE:
543
- register(type.render, id + "$render");
544
- break;
545
- case REACT_MEMO_TYPE:
546
- register(type.type, id + "$type");
547
- }
548
- }
549
- }
550
- function setSignature(type, key) {
551
- var forceReset =
552
- 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : !1,
553
- getCustomHooks = 3 < arguments.length ? arguments[3] : void 0;
554
- allSignaturesByType.has(type) ||
555
- allSignaturesByType.set(type, {
556
- forceReset: forceReset,
557
- ownKey: key,
558
- fullKey: null,
559
- getCustomHooks:
560
- getCustomHooks ||
561
- function () {
562
- return [];
563
- }
564
- });
565
- if ("object" === typeof type && null !== type)
566
- switch (getProperty(type, "$$typeof")) {
567
- case REACT_FORWARD_REF_TYPE:
568
- setSignature(type.render, key, forceReset, getCustomHooks);
569
- break;
570
- case REACT_MEMO_TYPE:
571
- setSignature(type.type, key, forceReset, getCustomHooks);
572
- }
573
- }
574
- function collectCustomHooksForSignature(type) {
575
- type = allSignaturesByType.get(type);
576
- void 0 !== type && computeFullKey(type);
577
- }
578
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
579
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
580
- PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map,
581
- allFamiliesByID = new Map(),
582
- allFamiliesByType = new PossiblyWeakMap(),
583
- allSignaturesByType = new PossiblyWeakMap(),
584
- updatedFamiliesByType = new PossiblyWeakMap(),
585
- pendingUpdates = [],
586
- helpersByRendererID = new Map(),
587
- helpersByRoot = new Map(),
588
- mountedRoots = new Set(),
589
- failedRoots = new Set(),
590
- rootElements = "function" === typeof WeakMap ? new WeakMap() : null,
591
- isPerformingRefresh = !1;
592
- exports._getMountedRootCount = function () {
593
- return mountedRoots.size;
594
- };
595
- exports.collectCustomHooksForSignature = collectCustomHooksForSignature;
596
- exports.createSignatureFunctionForTransform = function () {
597
- var savedType,
598
- hasCustomHooks,
599
- didCollectHooks = !1;
600
- return function (type, key, forceReset, getCustomHooks) {
601
- if ("string" === typeof key)
602
- return (
603
- savedType ||
604
- ((savedType = type),
605
- (hasCustomHooks = "function" === typeof getCustomHooks)),
606
- null == type ||
607
- ("function" !== typeof type && "object" !== typeof type) ||
608
- setSignature(type, key, forceReset, getCustomHooks),
609
- type
610
- );
611
- !didCollectHooks &&
612
- hasCustomHooks &&
613
- ((didCollectHooks = !0), collectCustomHooksForSignature(savedType));
614
- };
615
- };
616
- exports.getFamilyByID = function (id) {
617
- return allFamiliesByID.get(id);
618
- };
619
- exports.getFamilyByType = function (type) {
620
- return allFamiliesByType.get(type);
621
- };
622
- exports.hasUnrecoverableErrors = function () {
623
- return !1;
624
- };
625
- exports.injectIntoGlobalHook = function (globalObject) {
626
- var hook = globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__;
627
- if (void 0 === hook) {
628
- var nextID = 0;
629
- globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__ = hook = {
630
- renderers: new Map(),
631
- supportsFiber: !0,
632
- inject: function () {
633
- return nextID++;
634
- },
635
- onScheduleFiberRoot: function () {},
636
- onCommitFiberRoot: function () {},
637
- onCommitFiberUnmount: function () {}
638
- };
639
- }
640
- if (hook.isDisabled)
641
- console.warn(
642
- "Something has shimmed the React DevTools global hook (__REACT_DEVTOOLS_GLOBAL_HOOK__). Fast Refresh is not compatible with this shim and will be disabled."
643
- );
644
- else {
645
- var oldInject = hook.inject;
646
- hook.inject = function (injected) {
647
- var id = oldInject.apply(this, arguments);
648
- "function" === typeof injected.scheduleRefresh &&
649
- "function" === typeof injected.setRefreshHandler &&
650
- helpersByRendererID.set(id, injected);
651
- return id;
652
- };
653
- hook.renderers.forEach(function (injected, id) {
654
- "function" === typeof injected.scheduleRefresh &&
655
- "function" === typeof injected.setRefreshHandler &&
656
- helpersByRendererID.set(id, injected);
657
- });
658
- var oldOnCommitFiberRoot = hook.onCommitFiberRoot,
659
- oldOnScheduleFiberRoot = hook.onScheduleFiberRoot || function () {};
660
- hook.onScheduleFiberRoot = function (id, root, children) {
661
- isPerformingRefresh ||
662
- (failedRoots.delete(root),
663
- null !== rootElements && rootElements.set(root, children));
664
- return oldOnScheduleFiberRoot.apply(this, arguments);
665
- };
666
- hook.onCommitFiberRoot = function (
667
- id,
668
- root,
669
- maybePriorityLevel,
670
- didError
671
- ) {
672
- var helpers = helpersByRendererID.get(id);
673
- if (void 0 !== helpers) {
674
- helpersByRoot.set(root, helpers);
675
- helpers = root.current;
676
- var alternate = helpers.alternate;
677
- null !== alternate
678
- ? ((alternate =
679
- null != alternate.memoizedState &&
680
- null != alternate.memoizedState.element &&
681
- mountedRoots.has(root)),
682
- (helpers =
683
- null != helpers.memoizedState &&
684
- null != helpers.memoizedState.element),
685
- !alternate && helpers
686
- ? (mountedRoots.add(root), failedRoots.delete(root))
687
- : (alternate && helpers) ||
688
- (alternate && !helpers
689
- ? (mountedRoots.delete(root),
690
- didError
691
- ? failedRoots.add(root)
692
- : helpersByRoot.delete(root))
693
- : alternate ||
694
- helpers ||
695
- (didError && failedRoots.add(root))))
696
- : mountedRoots.add(root);
697
- }
698
- return oldOnCommitFiberRoot.apply(this, arguments);
699
- };
700
- }
701
- };
702
- exports.isLikelyComponentType = function (type) {
703
- switch (typeof type) {
704
- case "function":
705
- if (null != type.prototype) {
706
- if (type.prototype.isReactComponent) return !0;
707
- var ownNames = Object.getOwnPropertyNames(type.prototype);
708
- if (
709
- 1 < ownNames.length ||
710
- "constructor" !== ownNames[0] ||
711
- type.prototype.__proto__ !== Object.prototype
712
- )
713
- return !1;
714
- }
715
- type = type.name || type.displayName;
716
- return "string" === typeof type && /^[A-Z]/.test(type);
717
- case "object":
718
- if (null != type)
719
- switch (getProperty(type, "$$typeof")) {
720
- case REACT_FORWARD_REF_TYPE:
721
- case REACT_MEMO_TYPE:
722
- return !0;
723
- }
724
- return !1;
725
- default:
726
- return !1;
727
- }
728
- };
729
- exports.performReactRefresh = function () {
730
- if (0 === pendingUpdates.length || isPerformingRefresh) return null;
731
- isPerformingRefresh = !0;
732
- try {
733
- var staleFamilies = new Set(),
734
- updatedFamilies = new Set(),
735
- updates = pendingUpdates;
736
- pendingUpdates = [];
737
- updates.forEach(function (_ref) {
738
- var family = _ref[0];
739
- _ref = _ref[1];
740
- var prevType = family.current;
741
- updatedFamiliesByType.set(prevType, family);
742
- updatedFamiliesByType.set(_ref, family);
743
- family.current = _ref;
744
- (prevType.prototype && prevType.prototype.isReactComponent) ||
745
- (_ref.prototype && _ref.prototype.isReactComponent)
746
- ? (_ref = !1)
747
- : ((prevType = allSignaturesByType.get(prevType)),
748
- (_ref = allSignaturesByType.get(_ref)),
749
- (_ref =
750
- (void 0 === prevType && void 0 === _ref) ||
751
- (void 0 !== prevType &&
752
- void 0 !== _ref &&
753
- computeFullKey(prevType) === computeFullKey(_ref) &&
754
- !_ref.forceReset)
755
- ? !0
756
- : !1));
757
- _ref ? updatedFamilies.add(family) : staleFamilies.add(family);
758
- });
759
- var update = {
760
- updatedFamilies: updatedFamilies,
761
- staleFamilies: staleFamilies
762
- };
763
- helpersByRendererID.forEach(function (helpers) {
764
- helpers.setRefreshHandler(resolveFamily);
765
- });
766
- var didError = !1,
767
- firstError = null,
768
- failedRootsSnapshot = cloneSet(failedRoots),
769
- mountedRootsSnapshot = cloneSet(mountedRoots),
770
- helpersByRootSnapshot = cloneMap(helpersByRoot);
771
- failedRootsSnapshot.forEach(function (root) {
772
- var helpers = helpersByRootSnapshot.get(root);
773
- if (void 0 === helpers)
774
- throw Error(
775
- "Could not find helpers for a root. This is a bug in React Refresh."
776
- );
777
- failedRoots.has(root);
778
- if (null !== rootElements && rootElements.has(root)) {
779
- var element = rootElements.get(root);
780
- try {
781
- helpers.scheduleRoot(root, element);
782
- } catch (err) {
783
- didError || ((didError = !0), (firstError = err));
784
- }
785
- }
786
- });
787
- mountedRootsSnapshot.forEach(function (root) {
788
- var helpers = helpersByRootSnapshot.get(root);
789
- if (void 0 === helpers)
790
- throw Error(
791
- "Could not find helpers for a root. This is a bug in React Refresh."
792
- );
793
- mountedRoots.has(root);
794
- try {
795
- helpers.scheduleRefresh(root, update);
796
- } catch (err) {
797
- didError || ((didError = !0), (firstError = err));
798
- }
799
- });
800
- if (didError) throw firstError;
801
- return update;
802
- } finally {
803
- isPerformingRefresh = !1;
804
- }
805
- };
806
- exports.register = register;
807
- exports.setSignature = setSignature;
808
- })();
809
-
810
-
811
- }),
812
- "./node_modules/react-refresh/runtime.js": (function (module, __unused_webpack_exports, __webpack_require__) {
813
- "use strict";
814
-
815
-
816
- if (false) {} else {
817
- module.exports = __webpack_require__("./node_modules/react-refresh/cjs/react-refresh-runtime.development.js");
818
- }
819
-
820
-
821
- }),
822
- "./node_modules/react/cjs/react-jsx-dev-runtime.development.js": (function (__unused_webpack_module, exports, __webpack_require__) {
823
- "use strict";
824
- /**
825
- * @license React
826
- * react-jsx-dev-runtime.development.js
827
- *
828
- * Copyright (c) Meta Platforms, Inc. and affiliates.
829
- *
830
- * This source code is licensed under the MIT license found in the
831
- * LICENSE file in the root directory of this source tree.
832
- */
833
-
834
-
835
- true &&
836
- (function () {
837
- function getComponentNameFromType(type) {
838
- if (null == type) return null;
839
- if ("function" === typeof type)
840
- return type.$$typeof === REACT_CLIENT_REFERENCE
841
- ? null
842
- : type.displayName || type.name || null;
843
- if ("string" === typeof type) return type;
844
- switch (type) {
845
- case REACT_FRAGMENT_TYPE:
846
- return "Fragment";
847
- case REACT_PROFILER_TYPE:
848
- return "Profiler";
849
- case REACT_STRICT_MODE_TYPE:
850
- return "StrictMode";
851
- case REACT_SUSPENSE_TYPE:
852
- return "Suspense";
853
- case REACT_SUSPENSE_LIST_TYPE:
854
- return "SuspenseList";
855
- case REACT_ACTIVITY_TYPE:
856
- return "Activity";
857
- }
858
- if ("object" === typeof type)
859
- switch (
860
- ("number" === typeof type.tag &&
861
- console.error(
862
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
863
- ),
864
- type.$$typeof)
865
- ) {
866
- case REACT_PORTAL_TYPE:
867
- return "Portal";
868
- case REACT_CONTEXT_TYPE:
869
- return type.displayName || "Context";
870
- case REACT_CONSUMER_TYPE:
871
- return (type._context.displayName || "Context") + ".Consumer";
872
- case REACT_FORWARD_REF_TYPE:
873
- var innerType = type.render;
874
- type = type.displayName;
875
- type ||
876
- ((type = innerType.displayName || innerType.name || ""),
877
- (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
878
- return type;
879
- case REACT_MEMO_TYPE:
880
- return (
881
- (innerType = type.displayName || null),
882
- null !== innerType
883
- ? innerType
884
- : getComponentNameFromType(type.type) || "Memo"
885
- );
886
- case REACT_LAZY_TYPE:
887
- innerType = type._payload;
888
- type = type._init;
889
- try {
890
- return getComponentNameFromType(type(innerType));
891
- } catch (x) {}
892
- }
893
- return null;
894
- }
895
- function testStringCoercion(value) {
896
- return "" + value;
897
- }
898
- function checkKeyStringCoercion(value) {
899
- try {
900
- testStringCoercion(value);
901
- var JSCompiler_inline_result = !1;
902
- } catch (e) {
903
- JSCompiler_inline_result = !0;
904
- }
905
- if (JSCompiler_inline_result) {
906
- JSCompiler_inline_result = console;
907
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
908
- var JSCompiler_inline_result$jscomp$0 =
909
- ("function" === typeof Symbol &&
910
- Symbol.toStringTag &&
911
- value[Symbol.toStringTag]) ||
912
- value.constructor.name ||
913
- "Object";
914
- JSCompiler_temp_const.call(
915
- JSCompiler_inline_result,
916
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
917
- JSCompiler_inline_result$jscomp$0
918
- );
919
- return testStringCoercion(value);
920
- }
921
- }
922
- function getTaskName(type) {
923
- if (type === REACT_FRAGMENT_TYPE) return "<>";
924
- if (
925
- "object" === typeof type &&
926
- null !== type &&
927
- type.$$typeof === REACT_LAZY_TYPE
928
- )
929
- return "<...>";
930
- try {
931
- var name = getComponentNameFromType(type);
932
- return name ? "<" + name + ">" : "<...>";
933
- } catch (x) {
934
- return "<...>";
935
- }
936
- }
937
- function getOwner() {
938
- var dispatcher = ReactSharedInternals.A;
939
- return null === dispatcher ? null : dispatcher.getOwner();
940
- }
941
- function UnknownOwner() {
942
- return Error("react-stack-top-frame");
943
- }
944
- function hasValidKey(config) {
945
- if (hasOwnProperty.call(config, "key")) {
946
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
947
- if (getter && getter.isReactWarning) return !1;
948
- }
949
- return void 0 !== config.key;
950
- }
951
- function defineKeyPropWarningGetter(props, displayName) {
952
- function warnAboutAccessingKey() {
953
- specialPropKeyWarningShown ||
954
- ((specialPropKeyWarningShown = !0),
955
- console.error(
956
- "%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)",
957
- displayName
958
- ));
959
- }
960
- warnAboutAccessingKey.isReactWarning = !0;
961
- Object.defineProperty(props, "key", {
962
- get: warnAboutAccessingKey,
963
- configurable: !0
964
- });
965
- }
966
- function elementRefGetterWithDeprecationWarning() {
967
- var componentName = getComponentNameFromType(this.type);
968
- didWarnAboutElementRef[componentName] ||
969
- ((didWarnAboutElementRef[componentName] = !0),
970
- console.error(
971
- "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."
972
- ));
973
- componentName = this.props.ref;
974
- return void 0 !== componentName ? componentName : null;
975
- }
976
- function ReactElement(type, key, props, owner, debugStack, debugTask) {
977
- var refProp = props.ref;
978
- type = {
979
- $$typeof: REACT_ELEMENT_TYPE,
980
- type: type,
981
- key: key,
982
- props: props,
983
- _owner: owner
984
- };
985
- null !== (void 0 !== refProp ? refProp : null)
986
- ? Object.defineProperty(type, "ref", {
987
- enumerable: !1,
988
- get: elementRefGetterWithDeprecationWarning
989
- })
990
- : Object.defineProperty(type, "ref", { enumerable: !1, value: null });
991
- type._store = {};
992
- Object.defineProperty(type._store, "validated", {
993
- configurable: !1,
994
- enumerable: !1,
995
- writable: !0,
996
- value: 0
997
- });
998
- Object.defineProperty(type, "_debugInfo", {
999
- configurable: !1,
1000
- enumerable: !1,
1001
- writable: !0,
1002
- value: null
1003
- });
1004
- Object.defineProperty(type, "_debugStack", {
1005
- configurable: !1,
1006
- enumerable: !1,
1007
- writable: !0,
1008
- value: debugStack
1009
- });
1010
- Object.defineProperty(type, "_debugTask", {
1011
- configurable: !1,
1012
- enumerable: !1,
1013
- writable: !0,
1014
- value: debugTask
1015
- });
1016
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
1017
- return type;
1018
- }
1019
- function jsxDEVImpl(
1020
- type,
1021
- config,
1022
- maybeKey,
1023
- isStaticChildren,
1024
- debugStack,
1025
- debugTask
1026
- ) {
1027
- var children = config.children;
1028
- if (void 0 !== children)
1029
- if (isStaticChildren)
1030
- if (isArrayImpl(children)) {
1031
- for (
1032
- isStaticChildren = 0;
1033
- isStaticChildren < children.length;
1034
- isStaticChildren++
1035
- )
1036
- validateChildKeys(children[isStaticChildren]);
1037
- Object.freeze && Object.freeze(children);
1038
- } else
1039
- console.error(
1040
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
1041
- );
1042
- else validateChildKeys(children);
1043
- if (hasOwnProperty.call(config, "key")) {
1044
- children = getComponentNameFromType(type);
1045
- var keys = Object.keys(config).filter(function (k) {
1046
- return "key" !== k;
1047
- });
1048
- isStaticChildren =
1049
- 0 < keys.length
1050
- ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
1051
- : "{key: someKey}";
1052
- didWarnAboutKeySpread[children + isStaticChildren] ||
1053
- ((keys =
1054
- 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
1055
- console.error(
1056
- 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
1057
- isStaticChildren,
1058
- children,
1059
- keys,
1060
- children
1061
- ),
1062
- (didWarnAboutKeySpread[children + isStaticChildren] = !0));
1063
- }
1064
- children = null;
1065
- void 0 !== maybeKey &&
1066
- (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
1067
- hasValidKey(config) &&
1068
- (checkKeyStringCoercion(config.key), (children = "" + config.key));
1069
- if ("key" in config) {
1070
- maybeKey = {};
1071
- for (var propName in config)
1072
- "key" !== propName && (maybeKey[propName] = config[propName]);
1073
- } else maybeKey = config;
1074
- children &&
1075
- defineKeyPropWarningGetter(
1076
- maybeKey,
1077
- "function" === typeof type
1078
- ? type.displayName || type.name || "Unknown"
1079
- : type
1080
- );
1081
- return ReactElement(
1082
- type,
1083
- children,
1084
- maybeKey,
1085
- getOwner(),
1086
- debugStack,
1087
- debugTask
1088
- );
1089
- }
1090
- function validateChildKeys(node) {
1091
- isValidElement(node)
1092
- ? node._store && (node._store.validated = 1)
1093
- : "object" === typeof node &&
1094
- null !== node &&
1095
- node.$$typeof === REACT_LAZY_TYPE &&
1096
- ("fulfilled" === node._payload.status
1097
- ? isValidElement(node._payload.value) &&
1098
- node._payload.value._store &&
1099
- (node._payload.value._store.validated = 1)
1100
- : node._store && (node._store.validated = 1));
1101
- }
1102
- function isValidElement(object) {
1103
- return (
1104
- "object" === typeof object &&
1105
- null !== object &&
1106
- object.$$typeof === REACT_ELEMENT_TYPE
1107
- );
1108
- }
1109
- var React = __webpack_require__("./node_modules/react/index.js"),
1110
- REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
1111
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
1112
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
1113
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
1114
- REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
1115
- REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
1116
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
1117
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
1118
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
1119
- REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
1120
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
1121
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
1122
- REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
1123
- REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
1124
- ReactSharedInternals =
1125
- React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
1126
- hasOwnProperty = Object.prototype.hasOwnProperty,
1127
- isArrayImpl = Array.isArray,
1128
- createTask = console.createTask
1129
- ? console.createTask
1130
- : function () {
1131
- return null;
1132
- };
1133
- React = {
1134
- react_stack_bottom_frame: function (callStackForError) {
1135
- return callStackForError();
1136
- }
1137
- };
1138
- var specialPropKeyWarningShown;
1139
- var didWarnAboutElementRef = {};
1140
- var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
1141
- React,
1142
- UnknownOwner
1143
- )();
1144
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1145
- var didWarnAboutKeySpread = {};
1146
- exports.Fragment = REACT_FRAGMENT_TYPE;
1147
- exports.jsxDEV = function (type, config, maybeKey, isStaticChildren) {
1148
- var trackActualOwner =
1149
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1150
- return jsxDEVImpl(
1151
- type,
1152
- config,
1153
- maybeKey,
1154
- isStaticChildren,
1155
- trackActualOwner
1156
- ? Error("react-stack-top-frame")
1157
- : unknownOwnerDebugStack,
1158
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1159
- );
1160
- };
1161
- })();
1162
-
1163
-
1164
- }),
1165
- "./node_modules/react/cjs/react-jsx-runtime.development.js": (function (__unused_webpack_module, exports, __webpack_require__) {
1166
- "use strict";
1167
- /**
1168
- * @license React
1169
- * react-jsx-runtime.development.js
1170
- *
1171
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1172
- *
1173
- * This source code is licensed under the MIT license found in the
1174
- * LICENSE file in the root directory of this source tree.
1175
- */
1176
-
1177
-
1178
- true &&
1179
- (function () {
1180
- function getComponentNameFromType(type) {
1181
- if (null == type) return null;
1182
- if ("function" === typeof type)
1183
- return type.$$typeof === REACT_CLIENT_REFERENCE
1184
- ? null
1185
- : type.displayName || type.name || null;
1186
- if ("string" === typeof type) return type;
1187
- switch (type) {
1188
- case REACT_FRAGMENT_TYPE:
1189
- return "Fragment";
1190
- case REACT_PROFILER_TYPE:
1191
- return "Profiler";
1192
- case REACT_STRICT_MODE_TYPE:
1193
- return "StrictMode";
1194
- case REACT_SUSPENSE_TYPE:
1195
- return "Suspense";
1196
- case REACT_SUSPENSE_LIST_TYPE:
1197
- return "SuspenseList";
1198
- case REACT_ACTIVITY_TYPE:
1199
- return "Activity";
1200
- }
1201
- if ("object" === typeof type)
1202
- switch (
1203
- ("number" === typeof type.tag &&
1204
- console.error(
1205
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
1206
- ),
1207
- type.$$typeof)
1208
- ) {
1209
- case REACT_PORTAL_TYPE:
1210
- return "Portal";
1211
- case REACT_CONTEXT_TYPE:
1212
- return type.displayName || "Context";
1213
- case REACT_CONSUMER_TYPE:
1214
- return (type._context.displayName || "Context") + ".Consumer";
1215
- case REACT_FORWARD_REF_TYPE:
1216
- var innerType = type.render;
1217
- type = type.displayName;
1218
- type ||
1219
- ((type = innerType.displayName || innerType.name || ""),
1220
- (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
1221
- return type;
1222
- case REACT_MEMO_TYPE:
1223
- return (
1224
- (innerType = type.displayName || null),
1225
- null !== innerType
1226
- ? innerType
1227
- : getComponentNameFromType(type.type) || "Memo"
1228
- );
1229
- case REACT_LAZY_TYPE:
1230
- innerType = type._payload;
1231
- type = type._init;
1232
- try {
1233
- return getComponentNameFromType(type(innerType));
1234
- } catch (x) {}
1235
- }
1236
- return null;
1237
- }
1238
- function testStringCoercion(value) {
1239
- return "" + value;
1240
- }
1241
- function checkKeyStringCoercion(value) {
1242
- try {
1243
- testStringCoercion(value);
1244
- var JSCompiler_inline_result = !1;
1245
- } catch (e) {
1246
- JSCompiler_inline_result = !0;
1247
- }
1248
- if (JSCompiler_inline_result) {
1249
- JSCompiler_inline_result = console;
1250
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
1251
- var JSCompiler_inline_result$jscomp$0 =
1252
- ("function" === typeof Symbol &&
1253
- Symbol.toStringTag &&
1254
- value[Symbol.toStringTag]) ||
1255
- value.constructor.name ||
1256
- "Object";
1257
- JSCompiler_temp_const.call(
1258
- JSCompiler_inline_result,
1259
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
1260
- JSCompiler_inline_result$jscomp$0
1261
- );
1262
- return testStringCoercion(value);
1263
- }
1264
- }
1265
- function getTaskName(type) {
1266
- if (type === REACT_FRAGMENT_TYPE) return "<>";
1267
- if (
1268
- "object" === typeof type &&
1269
- null !== type &&
1270
- type.$$typeof === REACT_LAZY_TYPE
1271
- )
1272
- return "<...>";
1273
- try {
1274
- var name = getComponentNameFromType(type);
1275
- return name ? "<" + name + ">" : "<...>";
1276
- } catch (x) {
1277
- return "<...>";
1278
- }
1279
- }
1280
- function getOwner() {
1281
- var dispatcher = ReactSharedInternals.A;
1282
- return null === dispatcher ? null : dispatcher.getOwner();
1283
- }
1284
- function UnknownOwner() {
1285
- return Error("react-stack-top-frame");
1286
- }
1287
- function hasValidKey(config) {
1288
- if (hasOwnProperty.call(config, "key")) {
1289
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
1290
- if (getter && getter.isReactWarning) return !1;
1291
- }
1292
- return void 0 !== config.key;
1293
- }
1294
- function defineKeyPropWarningGetter(props, displayName) {
1295
- function warnAboutAccessingKey() {
1296
- specialPropKeyWarningShown ||
1297
- ((specialPropKeyWarningShown = !0),
1298
- console.error(
1299
- "%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)",
1300
- displayName
1301
- ));
1302
- }
1303
- warnAboutAccessingKey.isReactWarning = !0;
1304
- Object.defineProperty(props, "key", {
1305
- get: warnAboutAccessingKey,
1306
- configurable: !0
1307
- });
1308
- }
1309
- function elementRefGetterWithDeprecationWarning() {
1310
- var componentName = getComponentNameFromType(this.type);
1311
- didWarnAboutElementRef[componentName] ||
1312
- ((didWarnAboutElementRef[componentName] = !0),
1313
- console.error(
1314
- "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."
1315
- ));
1316
- componentName = this.props.ref;
1317
- return void 0 !== componentName ? componentName : null;
1318
- }
1319
- function ReactElement(type, key, props, owner, debugStack, debugTask) {
1320
- var refProp = props.ref;
1321
- type = {
1322
- $$typeof: REACT_ELEMENT_TYPE,
1323
- type: type,
1324
- key: key,
1325
- props: props,
1326
- _owner: owner
1327
- };
1328
- null !== (void 0 !== refProp ? refProp : null)
1329
- ? Object.defineProperty(type, "ref", {
1330
- enumerable: !1,
1331
- get: elementRefGetterWithDeprecationWarning
1332
- })
1333
- : Object.defineProperty(type, "ref", { enumerable: !1, value: null });
1334
- type._store = {};
1335
- Object.defineProperty(type._store, "validated", {
1336
- configurable: !1,
1337
- enumerable: !1,
1338
- writable: !0,
1339
- value: 0
1340
- });
1341
- Object.defineProperty(type, "_debugInfo", {
1342
- configurable: !1,
1343
- enumerable: !1,
1344
- writable: !0,
1345
- value: null
1346
- });
1347
- Object.defineProperty(type, "_debugStack", {
1348
- configurable: !1,
1349
- enumerable: !1,
1350
- writable: !0,
1351
- value: debugStack
1352
- });
1353
- Object.defineProperty(type, "_debugTask", {
1354
- configurable: !1,
1355
- enumerable: !1,
1356
- writable: !0,
1357
- value: debugTask
1358
- });
1359
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
1360
- return type;
1361
- }
1362
- function jsxDEVImpl(
1363
- type,
1364
- config,
1365
- maybeKey,
1366
- isStaticChildren,
1367
- debugStack,
1368
- debugTask
1369
- ) {
1370
- var children = config.children;
1371
- if (void 0 !== children)
1372
- if (isStaticChildren)
1373
- if (isArrayImpl(children)) {
1374
- for (
1375
- isStaticChildren = 0;
1376
- isStaticChildren < children.length;
1377
- isStaticChildren++
1378
- )
1379
- validateChildKeys(children[isStaticChildren]);
1380
- Object.freeze && Object.freeze(children);
1381
- } else
1382
- console.error(
1383
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
1384
- );
1385
- else validateChildKeys(children);
1386
- if (hasOwnProperty.call(config, "key")) {
1387
- children = getComponentNameFromType(type);
1388
- var keys = Object.keys(config).filter(function (k) {
1389
- return "key" !== k;
1390
- });
1391
- isStaticChildren =
1392
- 0 < keys.length
1393
- ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
1394
- : "{key: someKey}";
1395
- didWarnAboutKeySpread[children + isStaticChildren] ||
1396
- ((keys =
1397
- 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
1398
- console.error(
1399
- 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
1400
- isStaticChildren,
1401
- children,
1402
- keys,
1403
- children
1404
- ),
1405
- (didWarnAboutKeySpread[children + isStaticChildren] = !0));
1406
- }
1407
- children = null;
1408
- void 0 !== maybeKey &&
1409
- (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
1410
- hasValidKey(config) &&
1411
- (checkKeyStringCoercion(config.key), (children = "" + config.key));
1412
- if ("key" in config) {
1413
- maybeKey = {};
1414
- for (var propName in config)
1415
- "key" !== propName && (maybeKey[propName] = config[propName]);
1416
- } else maybeKey = config;
1417
- children &&
1418
- defineKeyPropWarningGetter(
1419
- maybeKey,
1420
- "function" === typeof type
1421
- ? type.displayName || type.name || "Unknown"
1422
- : type
1423
- );
1424
- return ReactElement(
1425
- type,
1426
- children,
1427
- maybeKey,
1428
- getOwner(),
1429
- debugStack,
1430
- debugTask
1431
- );
1432
- }
1433
- function validateChildKeys(node) {
1434
- isValidElement(node)
1435
- ? node._store && (node._store.validated = 1)
1436
- : "object" === typeof node &&
1437
- null !== node &&
1438
- node.$$typeof === REACT_LAZY_TYPE &&
1439
- ("fulfilled" === node._payload.status
1440
- ? isValidElement(node._payload.value) &&
1441
- node._payload.value._store &&
1442
- (node._payload.value._store.validated = 1)
1443
- : node._store && (node._store.validated = 1));
1444
- }
1445
- function isValidElement(object) {
1446
- return (
1447
- "object" === typeof object &&
1448
- null !== object &&
1449
- object.$$typeof === REACT_ELEMENT_TYPE
1450
- );
1451
- }
1452
- var React = __webpack_require__("./node_modules/react/index.js"),
1453
- REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
1454
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
1455
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
1456
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
1457
- REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
1458
- REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
1459
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
1460
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
1461
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
1462
- REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
1463
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
1464
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
1465
- REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
1466
- REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
1467
- ReactSharedInternals =
1468
- React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
1469
- hasOwnProperty = Object.prototype.hasOwnProperty,
1470
- isArrayImpl = Array.isArray,
1471
- createTask = console.createTask
1472
- ? console.createTask
1473
- : function () {
1474
- return null;
1475
- };
1476
- React = {
1477
- react_stack_bottom_frame: function (callStackForError) {
1478
- return callStackForError();
1479
- }
1480
- };
1481
- var specialPropKeyWarningShown;
1482
- var didWarnAboutElementRef = {};
1483
- var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
1484
- React,
1485
- UnknownOwner
1486
- )();
1487
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1488
- var didWarnAboutKeySpread = {};
1489
- exports.Fragment = REACT_FRAGMENT_TYPE;
1490
- exports.jsx = function (type, config, maybeKey) {
1491
- var trackActualOwner =
1492
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1493
- return jsxDEVImpl(
1494
- type,
1495
- config,
1496
- maybeKey,
1497
- !1,
1498
- trackActualOwner
1499
- ? Error("react-stack-top-frame")
1500
- : unknownOwnerDebugStack,
1501
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1502
- );
1503
- };
1504
- exports.jsxs = function (type, config, maybeKey) {
1505
- var trackActualOwner =
1506
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1507
- return jsxDEVImpl(
1508
- type,
1509
- config,
1510
- maybeKey,
1511
- !0,
1512
- trackActualOwner
1513
- ? Error("react-stack-top-frame")
1514
- : unknownOwnerDebugStack,
1515
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1516
- );
1517
- };
1518
- })();
1519
-
1520
-
1521
- }),
1522
- "./node_modules/react/cjs/react.development.js": (function (module, exports, __webpack_require__) {
1523
- "use strict";
1524
- /* module decorator */ module = __webpack_require__.nmd(module);
1525
- /**
1526
- * @license React
1527
- * react.development.js
1528
- *
1529
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1530
- *
1531
- * This source code is licensed under the MIT license found in the
1532
- * LICENSE file in the root directory of this source tree.
1533
- */
1534
-
1535
-
1536
- true &&
1537
- (function () {
1538
- function defineDeprecationWarning(methodName, info) {
1539
- Object.defineProperty(Component.prototype, methodName, {
1540
- get: function () {
1541
- console.warn(
1542
- "%s(...) is deprecated in plain JavaScript React classes. %s",
1543
- info[0],
1544
- info[1]
1545
- );
1546
- }
1547
- });
1548
- }
1549
- function getIteratorFn(maybeIterable) {
1550
- if (null === maybeIterable || "object" !== typeof maybeIterable)
1551
- return null;
1552
- maybeIterable =
1553
- (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
1554
- maybeIterable["@@iterator"];
1555
- return "function" === typeof maybeIterable ? maybeIterable : null;
1556
- }
1557
- function warnNoop(publicInstance, callerName) {
1558
- publicInstance =
1559
- ((publicInstance = publicInstance.constructor) &&
1560
- (publicInstance.displayName || publicInstance.name)) ||
1561
- "ReactClass";
1562
- var warningKey = publicInstance + "." + callerName;
1563
- didWarnStateUpdateForUnmountedComponent[warningKey] ||
1564
- (console.error(
1565
- "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.",
1566
- callerName,
1567
- publicInstance
1568
- ),
1569
- (didWarnStateUpdateForUnmountedComponent[warningKey] = !0));
1570
- }
1571
- function Component(props, context, updater) {
1572
- this.props = props;
1573
- this.context = context;
1574
- this.refs = emptyObject;
1575
- this.updater = updater || ReactNoopUpdateQueue;
1576
- }
1577
- function ComponentDummy() {}
1578
- function PureComponent(props, context, updater) {
1579
- this.props = props;
1580
- this.context = context;
1581
- this.refs = emptyObject;
1582
- this.updater = updater || ReactNoopUpdateQueue;
1583
- }
1584
- function noop() {}
1585
- function testStringCoercion(value) {
1586
- return "" + value;
1587
- }
1588
- function checkKeyStringCoercion(value) {
1589
- try {
1590
- testStringCoercion(value);
1591
- var JSCompiler_inline_result = !1;
1592
- } catch (e) {
1593
- JSCompiler_inline_result = !0;
1594
- }
1595
- if (JSCompiler_inline_result) {
1596
- JSCompiler_inline_result = console;
1597
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
1598
- var JSCompiler_inline_result$jscomp$0 =
1599
- ("function" === typeof Symbol &&
1600
- Symbol.toStringTag &&
1601
- value[Symbol.toStringTag]) ||
1602
- value.constructor.name ||
1603
- "Object";
1604
- JSCompiler_temp_const.call(
1605
- JSCompiler_inline_result,
1606
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
1607
- JSCompiler_inline_result$jscomp$0
1608
- );
1609
- return testStringCoercion(value);
1610
- }
1611
- }
1612
- function getComponentNameFromType(type) {
1613
- if (null == type) return null;
1614
- if ("function" === typeof type)
1615
- return type.$$typeof === REACT_CLIENT_REFERENCE
1616
- ? null
1617
- : type.displayName || type.name || null;
1618
- if ("string" === typeof type) return type;
1619
- switch (type) {
1620
- case REACT_FRAGMENT_TYPE:
1621
- return "Fragment";
1622
- case REACT_PROFILER_TYPE:
1623
- return "Profiler";
1624
- case REACT_STRICT_MODE_TYPE:
1625
- return "StrictMode";
1626
- case REACT_SUSPENSE_TYPE:
1627
- return "Suspense";
1628
- case REACT_SUSPENSE_LIST_TYPE:
1629
- return "SuspenseList";
1630
- case REACT_ACTIVITY_TYPE:
1631
- return "Activity";
1632
- }
1633
- if ("object" === typeof type)
1634
- switch (
1635
- ("number" === typeof type.tag &&
1636
- console.error(
1637
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
1638
- ),
1639
- type.$$typeof)
1640
- ) {
1641
- case REACT_PORTAL_TYPE:
1642
- return "Portal";
1643
- case REACT_CONTEXT_TYPE:
1644
- return type.displayName || "Context";
1645
- case REACT_CONSUMER_TYPE:
1646
- return (type._context.displayName || "Context") + ".Consumer";
1647
- case REACT_FORWARD_REF_TYPE:
1648
- var innerType = type.render;
1649
- type = type.displayName;
1650
- type ||
1651
- ((type = innerType.displayName || innerType.name || ""),
1652
- (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
1653
- return type;
1654
- case REACT_MEMO_TYPE:
1655
- return (
1656
- (innerType = type.displayName || null),
1657
- null !== innerType
1658
- ? innerType
1659
- : getComponentNameFromType(type.type) || "Memo"
1660
- );
1661
- case REACT_LAZY_TYPE:
1662
- innerType = type._payload;
1663
- type = type._init;
1664
- try {
1665
- return getComponentNameFromType(type(innerType));
1666
- } catch (x) {}
1667
- }
1668
- return null;
1669
- }
1670
- function getTaskName(type) {
1671
- if (type === REACT_FRAGMENT_TYPE) return "<>";
1672
- if (
1673
- "object" === typeof type &&
1674
- null !== type &&
1675
- type.$$typeof === REACT_LAZY_TYPE
1676
- )
1677
- return "<...>";
1678
- try {
1679
- var name = getComponentNameFromType(type);
1680
- return name ? "<" + name + ">" : "<...>";
1681
- } catch (x) {
1682
- return "<...>";
1683
- }
1684
- }
1685
- function getOwner() {
1686
- var dispatcher = ReactSharedInternals.A;
1687
- return null === dispatcher ? null : dispatcher.getOwner();
1688
- }
1689
- function UnknownOwner() {
1690
- return Error("react-stack-top-frame");
1691
- }
1692
- function hasValidKey(config) {
1693
- if (hasOwnProperty.call(config, "key")) {
1694
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
1695
- if (getter && getter.isReactWarning) return !1;
1696
- }
1697
- return void 0 !== config.key;
1698
- }
1699
- function defineKeyPropWarningGetter(props, displayName) {
1700
- function warnAboutAccessingKey() {
1701
- specialPropKeyWarningShown ||
1702
- ((specialPropKeyWarningShown = !0),
1703
- console.error(
1704
- "%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)",
1705
- displayName
1706
- ));
1707
- }
1708
- warnAboutAccessingKey.isReactWarning = !0;
1709
- Object.defineProperty(props, "key", {
1710
- get: warnAboutAccessingKey,
1711
- configurable: !0
1712
- });
1713
- }
1714
- function elementRefGetterWithDeprecationWarning() {
1715
- var componentName = getComponentNameFromType(this.type);
1716
- didWarnAboutElementRef[componentName] ||
1717
- ((didWarnAboutElementRef[componentName] = !0),
1718
- console.error(
1719
- "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."
1720
- ));
1721
- componentName = this.props.ref;
1722
- return void 0 !== componentName ? componentName : null;
1723
- }
1724
- function ReactElement(type, key, props, owner, debugStack, debugTask) {
1725
- var refProp = props.ref;
1726
- type = {
1727
- $$typeof: REACT_ELEMENT_TYPE,
1728
- type: type,
1729
- key: key,
1730
- props: props,
1731
- _owner: owner
1732
- };
1733
- null !== (void 0 !== refProp ? refProp : null)
1734
- ? Object.defineProperty(type, "ref", {
1735
- enumerable: !1,
1736
- get: elementRefGetterWithDeprecationWarning
1737
- })
1738
- : Object.defineProperty(type, "ref", { enumerable: !1, value: null });
1739
- type._store = {};
1740
- Object.defineProperty(type._store, "validated", {
1741
- configurable: !1,
1742
- enumerable: !1,
1743
- writable: !0,
1744
- value: 0
1745
- });
1746
- Object.defineProperty(type, "_debugInfo", {
1747
- configurable: !1,
1748
- enumerable: !1,
1749
- writable: !0,
1750
- value: null
1751
- });
1752
- Object.defineProperty(type, "_debugStack", {
1753
- configurable: !1,
1754
- enumerable: !1,
1755
- writable: !0,
1756
- value: debugStack
1757
- });
1758
- Object.defineProperty(type, "_debugTask", {
1759
- configurable: !1,
1760
- enumerable: !1,
1761
- writable: !0,
1762
- value: debugTask
1763
- });
1764
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
1765
- return type;
1766
- }
1767
- function cloneAndReplaceKey(oldElement, newKey) {
1768
- newKey = ReactElement(
1769
- oldElement.type,
1770
- newKey,
1771
- oldElement.props,
1772
- oldElement._owner,
1773
- oldElement._debugStack,
1774
- oldElement._debugTask
1775
- );
1776
- oldElement._store &&
1777
- (newKey._store.validated = oldElement._store.validated);
1778
- return newKey;
1779
- }
1780
- function validateChildKeys(node) {
1781
- isValidElement(node)
1782
- ? node._store && (node._store.validated = 1)
1783
- : "object" === typeof node &&
1784
- null !== node &&
1785
- node.$$typeof === REACT_LAZY_TYPE &&
1786
- ("fulfilled" === node._payload.status
1787
- ? isValidElement(node._payload.value) &&
1788
- node._payload.value._store &&
1789
- (node._payload.value._store.validated = 1)
1790
- : node._store && (node._store.validated = 1));
1791
- }
1792
- function isValidElement(object) {
1793
- return (
1794
- "object" === typeof object &&
1795
- null !== object &&
1796
- object.$$typeof === REACT_ELEMENT_TYPE
1797
- );
1798
- }
1799
- function escape(key) {
1800
- var escaperLookup = { "=": "=0", ":": "=2" };
1801
- return (
1802
- "$" +
1803
- key.replace(/[=:]/g, function (match) {
1804
- return escaperLookup[match];
1805
- })
1806
- );
1807
- }
1808
- function getElementKey(element, index) {
1809
- return "object" === typeof element &&
1810
- null !== element &&
1811
- null != element.key
1812
- ? (checkKeyStringCoercion(element.key), escape("" + element.key))
1813
- : index.toString(36);
1814
- }
1815
- function resolveThenable(thenable) {
1816
- switch (thenable.status) {
1817
- case "fulfilled":
1818
- return thenable.value;
1819
- case "rejected":
1820
- throw thenable.reason;
1821
- default:
1822
- switch (
1823
- ("string" === typeof thenable.status
1824
- ? thenable.then(noop, noop)
1825
- : ((thenable.status = "pending"),
1826
- thenable.then(
1827
- function (fulfilledValue) {
1828
- "pending" === thenable.status &&
1829
- ((thenable.status = "fulfilled"),
1830
- (thenable.value = fulfilledValue));
1831
- },
1832
- function (error) {
1833
- "pending" === thenable.status &&
1834
- ((thenable.status = "rejected"),
1835
- (thenable.reason = error));
1836
- }
1837
- )),
1838
- thenable.status)
1839
- ) {
1840
- case "fulfilled":
1841
- return thenable.value;
1842
- case "rejected":
1843
- throw thenable.reason;
1844
- }
1845
- }
1846
- throw thenable;
1847
- }
1848
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
1849
- var type = typeof children;
1850
- if ("undefined" === type || "boolean" === type) children = null;
1851
- var invokeCallback = !1;
1852
- if (null === children) invokeCallback = !0;
1853
- else
1854
- switch (type) {
1855
- case "bigint":
1856
- case "string":
1857
- case "number":
1858
- invokeCallback = !0;
1859
- break;
1860
- case "object":
1861
- switch (children.$$typeof) {
1862
- case REACT_ELEMENT_TYPE:
1863
- case REACT_PORTAL_TYPE:
1864
- invokeCallback = !0;
1865
- break;
1866
- case REACT_LAZY_TYPE:
1867
- return (
1868
- (invokeCallback = children._init),
1869
- mapIntoArray(
1870
- invokeCallback(children._payload),
1871
- array,
1872
- escapedPrefix,
1873
- nameSoFar,
1874
- callback
1875
- )
1876
- );
1877
- }
1878
- }
1879
- if (invokeCallback) {
1880
- invokeCallback = children;
1881
- callback = callback(invokeCallback);
1882
- var childKey =
1883
- "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
1884
- isArrayImpl(callback)
1885
- ? ((escapedPrefix = ""),
1886
- null != childKey &&
1887
- (escapedPrefix =
1888
- childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
1889
- mapIntoArray(callback, array, escapedPrefix, "", function (c) {
1890
- return c;
1891
- }))
1892
- : null != callback &&
1893
- (isValidElement(callback) &&
1894
- (null != callback.key &&
1895
- ((invokeCallback && invokeCallback.key === callback.key) ||
1896
- checkKeyStringCoercion(callback.key)),
1897
- (escapedPrefix = cloneAndReplaceKey(
1898
- callback,
1899
- escapedPrefix +
1900
- (null == callback.key ||
1901
- (invokeCallback && invokeCallback.key === callback.key)
1902
- ? ""
1903
- : ("" + callback.key).replace(
1904
- userProvidedKeyEscapeRegex,
1905
- "$&/"
1906
- ) + "/") +
1907
- childKey
1908
- )),
1909
- "" !== nameSoFar &&
1910
- null != invokeCallback &&
1911
- isValidElement(invokeCallback) &&
1912
- null == invokeCallback.key &&
1913
- invokeCallback._store &&
1914
- !invokeCallback._store.validated &&
1915
- (escapedPrefix._store.validated = 2),
1916
- (callback = escapedPrefix)),
1917
- array.push(callback));
1918
- return 1;
1919
- }
1920
- invokeCallback = 0;
1921
- childKey = "" === nameSoFar ? "." : nameSoFar + ":";
1922
- if (isArrayImpl(children))
1923
- for (var i = 0; i < children.length; i++)
1924
- (nameSoFar = children[i]),
1925
- (type = childKey + getElementKey(nameSoFar, i)),
1926
- (invokeCallback += mapIntoArray(
1927
- nameSoFar,
1928
- array,
1929
- escapedPrefix,
1930
- type,
1931
- callback
1932
- ));
1933
- else if (((i = getIteratorFn(children)), "function" === typeof i))
1934
- for (
1935
- i === children.entries &&
1936
- (didWarnAboutMaps ||
1937
- console.warn(
1938
- "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
1939
- ),
1940
- (didWarnAboutMaps = !0)),
1941
- children = i.call(children),
1942
- i = 0;
1943
- !(nameSoFar = children.next()).done;
1944
-
1945
- )
1946
- (nameSoFar = nameSoFar.value),
1947
- (type = childKey + getElementKey(nameSoFar, i++)),
1948
- (invokeCallback += mapIntoArray(
1949
- nameSoFar,
1950
- array,
1951
- escapedPrefix,
1952
- type,
1953
- callback
1954
- ));
1955
- else if ("object" === type) {
1956
- if ("function" === typeof children.then)
1957
- return mapIntoArray(
1958
- resolveThenable(children),
1959
- array,
1960
- escapedPrefix,
1961
- nameSoFar,
1962
- callback
1963
- );
1964
- array = String(children);
1965
- throw Error(
1966
- "Objects are not valid as a React child (found: " +
1967
- ("[object Object]" === array
1968
- ? "object with keys {" + Object.keys(children).join(", ") + "}"
1969
- : array) +
1970
- "). If you meant to render a collection of children, use an array instead."
1971
- );
1972
- }
1973
- return invokeCallback;
1974
- }
1975
- function mapChildren(children, func, context) {
1976
- if (null == children) return children;
1977
- var result = [],
1978
- count = 0;
1979
- mapIntoArray(children, result, "", "", function (child) {
1980
- return func.call(context, child, count++);
1981
- });
1982
- return result;
1983
- }
1984
- function lazyInitializer(payload) {
1985
- if (-1 === payload._status) {
1986
- var ioInfo = payload._ioInfo;
1987
- null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
1988
- ioInfo = payload._result;
1989
- var thenable = ioInfo();
1990
- thenable.then(
1991
- function (moduleObject) {
1992
- if (0 === payload._status || -1 === payload._status) {
1993
- payload._status = 1;
1994
- payload._result = moduleObject;
1995
- var _ioInfo = payload._ioInfo;
1996
- null != _ioInfo && (_ioInfo.end = performance.now());
1997
- void 0 === thenable.status &&
1998
- ((thenable.status = "fulfilled"),
1999
- (thenable.value = moduleObject));
2000
- }
2001
- },
2002
- function (error) {
2003
- if (0 === payload._status || -1 === payload._status) {
2004
- payload._status = 2;
2005
- payload._result = error;
2006
- var _ioInfo2 = payload._ioInfo;
2007
- null != _ioInfo2 && (_ioInfo2.end = performance.now());
2008
- void 0 === thenable.status &&
2009
- ((thenable.status = "rejected"), (thenable.reason = error));
2010
- }
2011
- }
2012
- );
2013
- ioInfo = payload._ioInfo;
2014
- if (null != ioInfo) {
2015
- ioInfo.value = thenable;
2016
- var displayName = thenable.displayName;
2017
- "string" === typeof displayName && (ioInfo.name = displayName);
2018
- }
2019
- -1 === payload._status &&
2020
- ((payload._status = 0), (payload._result = thenable));
2021
- }
2022
- if (1 === payload._status)
2023
- return (
2024
- (ioInfo = payload._result),
2025
- void 0 === ioInfo &&
2026
- console.error(
2027
- "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
2028
- ioInfo
2029
- ),
2030
- "default" in ioInfo ||
2031
- console.error(
2032
- "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
2033
- ioInfo
2034
- ),
2035
- ioInfo.default
2036
- );
2037
- throw payload._result;
2038
- }
2039
- function resolveDispatcher() {
2040
- var dispatcher = ReactSharedInternals.H;
2041
- null === dispatcher &&
2042
- console.error(
2043
- "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:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
2044
- );
2045
- return dispatcher;
2046
- }
2047
- function releaseAsyncTransition() {
2048
- ReactSharedInternals.asyncTransitions--;
2049
- }
2050
- function enqueueTask(task) {
2051
- if (null === enqueueTaskImpl)
2052
- try {
2053
- var requireString = ("require" + Math.random()).slice(0, 7);
2054
- enqueueTaskImpl = (module && module[requireString]).call(
2055
- module,
2056
- "timers"
2057
- ).setImmediate;
2058
- } catch (_err) {
2059
- enqueueTaskImpl = function (callback) {
2060
- !1 === didWarnAboutMessageChannel &&
2061
- ((didWarnAboutMessageChannel = !0),
2062
- "undefined" === typeof MessageChannel &&
2063
- console.error(
2064
- "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."
2065
- ));
2066
- var channel = new MessageChannel();
2067
- channel.port1.onmessage = callback;
2068
- channel.port2.postMessage(void 0);
2069
- };
2070
- }
2071
- return enqueueTaskImpl(task);
2072
- }
2073
- function aggregateErrors(errors) {
2074
- return 1 < errors.length && "function" === typeof AggregateError
2075
- ? new AggregateError(errors)
2076
- : errors[0];
2077
- }
2078
- function popActScope(prevActQueue, prevActScopeDepth) {
2079
- prevActScopeDepth !== actScopeDepth - 1 &&
2080
- console.error(
2081
- "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
2082
- );
2083
- actScopeDepth = prevActScopeDepth;
2084
- }
2085
- function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
2086
- var queue = ReactSharedInternals.actQueue;
2087
- if (null !== queue)
2088
- if (0 !== queue.length)
2089
- try {
2090
- flushActQueue(queue);
2091
- enqueueTask(function () {
2092
- return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2093
- });
2094
- return;
2095
- } catch (error) {
2096
- ReactSharedInternals.thrownErrors.push(error);
2097
- }
2098
- else ReactSharedInternals.actQueue = null;
2099
- 0 < ReactSharedInternals.thrownErrors.length
2100
- ? ((queue = aggregateErrors(ReactSharedInternals.thrownErrors)),
2101
- (ReactSharedInternals.thrownErrors.length = 0),
2102
- reject(queue))
2103
- : resolve(returnValue);
2104
- }
2105
- function flushActQueue(queue) {
2106
- if (!isFlushing) {
2107
- isFlushing = !0;
2108
- var i = 0;
2109
- try {
2110
- for (; i < queue.length; i++) {
2111
- var callback = queue[i];
2112
- do {
2113
- ReactSharedInternals.didUsePromise = !1;
2114
- var continuation = callback(!1);
2115
- if (null !== continuation) {
2116
- if (ReactSharedInternals.didUsePromise) {
2117
- queue[i] = callback;
2118
- queue.splice(0, i);
2119
- return;
2120
- }
2121
- callback = continuation;
2122
- } else break;
2123
- } while (1);
2124
- }
2125
- queue.length = 0;
2126
- } catch (error) {
2127
- queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
2128
- } finally {
2129
- isFlushing = !1;
2130
- }
2131
- }
2132
- }
2133
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2134
- "function" ===
2135
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
2136
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
2137
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
2138
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
2139
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
2140
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
2141
- REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
2142
- REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
2143
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
2144
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
2145
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
2146
- REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
2147
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
2148
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
2149
- REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
2150
- MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
2151
- didWarnStateUpdateForUnmountedComponent = {},
2152
- ReactNoopUpdateQueue = {
2153
- isMounted: function () {
2154
- return !1;
2155
- },
2156
- enqueueForceUpdate: function (publicInstance) {
2157
- warnNoop(publicInstance, "forceUpdate");
2158
- },
2159
- enqueueReplaceState: function (publicInstance) {
2160
- warnNoop(publicInstance, "replaceState");
2161
- },
2162
- enqueueSetState: function (publicInstance) {
2163
- warnNoop(publicInstance, "setState");
2164
- }
2165
- },
2166
- assign = Object.assign,
2167
- emptyObject = {};
2168
- Object.freeze(emptyObject);
2169
- Component.prototype.isReactComponent = {};
2170
- Component.prototype.setState = function (partialState, callback) {
2171
- if (
2172
- "object" !== typeof partialState &&
2173
- "function" !== typeof partialState &&
2174
- null != partialState
2175
- )
2176
- throw Error(
2177
- "takes an object of state variables to update or a function which returns an object of state variables."
2178
- );
2179
- this.updater.enqueueSetState(this, partialState, callback, "setState");
2180
- };
2181
- Component.prototype.forceUpdate = function (callback) {
2182
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
2183
- };
2184
- var deprecatedAPIs = {
2185
- isMounted: [
2186
- "isMounted",
2187
- "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
2188
- ],
2189
- replaceState: [
2190
- "replaceState",
2191
- "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
2192
- ]
2193
- };
2194
- for (fnName in deprecatedAPIs)
2195
- deprecatedAPIs.hasOwnProperty(fnName) &&
2196
- defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
2197
- ComponentDummy.prototype = Component.prototype;
2198
- deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
2199
- deprecatedAPIs.constructor = PureComponent;
2200
- assign(deprecatedAPIs, Component.prototype);
2201
- deprecatedAPIs.isPureReactComponent = !0;
2202
- var isArrayImpl = Array.isArray,
2203
- REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
2204
- ReactSharedInternals = {
2205
- H: null,
2206
- A: null,
2207
- T: null,
2208
- S: null,
2209
- actQueue: null,
2210
- asyncTransitions: 0,
2211
- isBatchingLegacy: !1,
2212
- didScheduleLegacyUpdate: !1,
2213
- didUsePromise: !1,
2214
- thrownErrors: [],
2215
- getCurrentStack: null,
2216
- recentlyCreatedOwnerStacks: 0
2217
- },
2218
- hasOwnProperty = Object.prototype.hasOwnProperty,
2219
- createTask = console.createTask
2220
- ? console.createTask
2221
- : function () {
2222
- return null;
2223
- };
2224
- deprecatedAPIs = {
2225
- react_stack_bottom_frame: function (callStackForError) {
2226
- return callStackForError();
2227
- }
2228
- };
2229
- var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
2230
- var didWarnAboutElementRef = {};
2231
- var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
2232
- deprecatedAPIs,
2233
- UnknownOwner
2234
- )();
2235
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
2236
- var didWarnAboutMaps = !1,
2237
- userProvidedKeyEscapeRegex = /\/+/g,
2238
- reportGlobalError =
2239
- "function" === typeof reportError
2240
- ? reportError
2241
- : function (error) {
2242
- if (
2243
- "object" === typeof window &&
2244
- "function" === typeof window.ErrorEvent
2245
- ) {
2246
- var event = new window.ErrorEvent("error", {
2247
- bubbles: !0,
2248
- cancelable: !0,
2249
- message:
2250
- "object" === typeof error &&
2251
- null !== error &&
2252
- "string" === typeof error.message
2253
- ? String(error.message)
2254
- : String(error),
2255
- error: error
2256
- });
2257
- if (!window.dispatchEvent(event)) return;
2258
- } else if (
2259
- "object" === typeof process &&
2260
- "function" === typeof process.emit
2261
- ) {
2262
- process.emit("uncaughtException", error);
2263
- return;
2264
- }
2265
- console.error(error);
2266
- },
2267
- didWarnAboutMessageChannel = !1,
2268
- enqueueTaskImpl = null,
2269
- actScopeDepth = 0,
2270
- didWarnNoAwaitAct = !1,
2271
- isFlushing = !1,
2272
- queueSeveralMicrotasks =
2273
- "function" === typeof queueMicrotask
2274
- ? function (callback) {
2275
- queueMicrotask(function () {
2276
- return queueMicrotask(callback);
2277
- });
2278
- }
2279
- : enqueueTask;
2280
- deprecatedAPIs = Object.freeze({
2281
- __proto__: null,
2282
- c: function (size) {
2283
- return resolveDispatcher().useMemoCache(size);
2284
- }
2285
- });
2286
- var fnName = {
2287
- map: mapChildren,
2288
- forEach: function (children, forEachFunc, forEachContext) {
2289
- mapChildren(
2290
- children,
2291
- function () {
2292
- forEachFunc.apply(this, arguments);
2293
- },
2294
- forEachContext
2295
- );
2296
- },
2297
- count: function (children) {
2298
- var n = 0;
2299
- mapChildren(children, function () {
2300
- n++;
2301
- });
2302
- return n;
2303
- },
2304
- toArray: function (children) {
2305
- return (
2306
- mapChildren(children, function (child) {
2307
- return child;
2308
- }) || []
2309
- );
2310
- },
2311
- only: function (children) {
2312
- if (!isValidElement(children))
2313
- throw Error(
2314
- "React.Children.only expected to receive a single React element child."
2315
- );
2316
- return children;
2317
- }
2318
- };
2319
- exports.Activity = REACT_ACTIVITY_TYPE;
2320
- exports.Children = fnName;
2321
- exports.Component = Component;
2322
- exports.Fragment = REACT_FRAGMENT_TYPE;
2323
- exports.Profiler = REACT_PROFILER_TYPE;
2324
- exports.PureComponent = PureComponent;
2325
- exports.StrictMode = REACT_STRICT_MODE_TYPE;
2326
- exports.Suspense = REACT_SUSPENSE_TYPE;
2327
- exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
2328
- ReactSharedInternals;
2329
- exports.__COMPILER_RUNTIME = deprecatedAPIs;
2330
- exports.act = function (callback) {
2331
- var prevActQueue = ReactSharedInternals.actQueue,
2332
- prevActScopeDepth = actScopeDepth;
2333
- actScopeDepth++;
2334
- var queue = (ReactSharedInternals.actQueue =
2335
- null !== prevActQueue ? prevActQueue : []),
2336
- didAwaitActCall = !1;
2337
- try {
2338
- var result = callback();
2339
- } catch (error) {
2340
- ReactSharedInternals.thrownErrors.push(error);
2341
- }
2342
- if (0 < ReactSharedInternals.thrownErrors.length)
2343
- throw (
2344
- (popActScope(prevActQueue, prevActScopeDepth),
2345
- (callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
2346
- (ReactSharedInternals.thrownErrors.length = 0),
2347
- callback)
2348
- );
2349
- if (
2350
- null !== result &&
2351
- "object" === typeof result &&
2352
- "function" === typeof result.then
2353
- ) {
2354
- var thenable = result;
2355
- queueSeveralMicrotasks(function () {
2356
- didAwaitActCall ||
2357
- didWarnNoAwaitAct ||
2358
- ((didWarnNoAwaitAct = !0),
2359
- console.error(
2360
- "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 () => ...);"
2361
- ));
2362
- });
2363
- return {
2364
- then: function (resolve, reject) {
2365
- didAwaitActCall = !0;
2366
- thenable.then(
2367
- function (returnValue) {
2368
- popActScope(prevActQueue, prevActScopeDepth);
2369
- if (0 === prevActScopeDepth) {
2370
- try {
2371
- flushActQueue(queue),
2372
- enqueueTask(function () {
2373
- return recursivelyFlushAsyncActWork(
2374
- returnValue,
2375
- resolve,
2376
- reject
2377
- );
2378
- });
2379
- } catch (error$0) {
2380
- ReactSharedInternals.thrownErrors.push(error$0);
2381
- }
2382
- if (0 < ReactSharedInternals.thrownErrors.length) {
2383
- var _thrownError = aggregateErrors(
2384
- ReactSharedInternals.thrownErrors
2385
- );
2386
- ReactSharedInternals.thrownErrors.length = 0;
2387
- reject(_thrownError);
2388
- }
2389
- } else resolve(returnValue);
2390
- },
2391
- function (error) {
2392
- popActScope(prevActQueue, prevActScopeDepth);
2393
- 0 < ReactSharedInternals.thrownErrors.length
2394
- ? ((error = aggregateErrors(
2395
- ReactSharedInternals.thrownErrors
2396
- )),
2397
- (ReactSharedInternals.thrownErrors.length = 0),
2398
- reject(error))
2399
- : reject(error);
2400
- }
2401
- );
2402
- }
2403
- };
2404
- }
2405
- var returnValue$jscomp$0 = result;
2406
- popActScope(prevActQueue, prevActScopeDepth);
2407
- 0 === prevActScopeDepth &&
2408
- (flushActQueue(queue),
2409
- 0 !== queue.length &&
2410
- queueSeveralMicrotasks(function () {
2411
- didAwaitActCall ||
2412
- didWarnNoAwaitAct ||
2413
- ((didWarnNoAwaitAct = !0),
2414
- console.error(
2415
- "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(() => ...)"
2416
- ));
2417
- }),
2418
- (ReactSharedInternals.actQueue = null));
2419
- if (0 < ReactSharedInternals.thrownErrors.length)
2420
- throw (
2421
- ((callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
2422
- (ReactSharedInternals.thrownErrors.length = 0),
2423
- callback)
2424
- );
2425
- return {
2426
- then: function (resolve, reject) {
2427
- didAwaitActCall = !0;
2428
- 0 === prevActScopeDepth
2429
- ? ((ReactSharedInternals.actQueue = queue),
2430
- enqueueTask(function () {
2431
- return recursivelyFlushAsyncActWork(
2432
- returnValue$jscomp$0,
2433
- resolve,
2434
- reject
2435
- );
2436
- }))
2437
- : resolve(returnValue$jscomp$0);
2438
- }
2439
- };
2440
- };
2441
- exports.cache = function (fn) {
2442
- return function () {
2443
- return fn.apply(null, arguments);
2444
- };
2445
- };
2446
- exports.cacheSignal = function () {
2447
- return null;
2448
- };
2449
- exports.captureOwnerStack = function () {
2450
- var getCurrentStack = ReactSharedInternals.getCurrentStack;
2451
- return null === getCurrentStack ? null : getCurrentStack();
2452
- };
2453
- exports.cloneElement = function (element, config, children) {
2454
- if (null === element || void 0 === element)
2455
- throw Error(
2456
- "The argument must be a React element, but you passed " +
2457
- element +
2458
- "."
2459
- );
2460
- var props = assign({}, element.props),
2461
- key = element.key,
2462
- owner = element._owner;
2463
- if (null != config) {
2464
- var JSCompiler_inline_result;
2465
- a: {
2466
- if (
2467
- hasOwnProperty.call(config, "ref") &&
2468
- (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
2469
- config,
2470
- "ref"
2471
- ).get) &&
2472
- JSCompiler_inline_result.isReactWarning
2473
- ) {
2474
- JSCompiler_inline_result = !1;
2475
- break a;
2476
- }
2477
- JSCompiler_inline_result = void 0 !== config.ref;
2478
- }
2479
- JSCompiler_inline_result && (owner = getOwner());
2480
- hasValidKey(config) &&
2481
- (checkKeyStringCoercion(config.key), (key = "" + config.key));
2482
- for (propName in config)
2483
- !hasOwnProperty.call(config, propName) ||
2484
- "key" === propName ||
2485
- "__self" === propName ||
2486
- "__source" === propName ||
2487
- ("ref" === propName && void 0 === config.ref) ||
2488
- (props[propName] = config[propName]);
2489
- }
2490
- var propName = arguments.length - 2;
2491
- if (1 === propName) props.children = children;
2492
- else if (1 < propName) {
2493
- JSCompiler_inline_result = Array(propName);
2494
- for (var i = 0; i < propName; i++)
2495
- JSCompiler_inline_result[i] = arguments[i + 2];
2496
- props.children = JSCompiler_inline_result;
2497
- }
2498
- props = ReactElement(
2499
- element.type,
2500
- key,
2501
- props,
2502
- owner,
2503
- element._debugStack,
2504
- element._debugTask
2505
- );
2506
- for (key = 2; key < arguments.length; key++)
2507
- validateChildKeys(arguments[key]);
2508
- return props;
2509
- };
2510
- exports.createContext = function (defaultValue) {
2511
- defaultValue = {
2512
- $$typeof: REACT_CONTEXT_TYPE,
2513
- _currentValue: defaultValue,
2514
- _currentValue2: defaultValue,
2515
- _threadCount: 0,
2516
- Provider: null,
2517
- Consumer: null
2518
- };
2519
- defaultValue.Provider = defaultValue;
2520
- defaultValue.Consumer = {
2521
- $$typeof: REACT_CONSUMER_TYPE,
2522
- _context: defaultValue
2523
- };
2524
- defaultValue._currentRenderer = null;
2525
- defaultValue._currentRenderer2 = null;
2526
- return defaultValue;
2527
- };
2528
- exports.createElement = function (type, config, children) {
2529
- for (var i = 2; i < arguments.length; i++)
2530
- validateChildKeys(arguments[i]);
2531
- i = {};
2532
- var key = null;
2533
- if (null != config)
2534
- for (propName in (didWarnAboutOldJSXRuntime ||
2535
- !("__self" in config) ||
2536
- "key" in config ||
2537
- ((didWarnAboutOldJSXRuntime = !0),
2538
- console.warn(
2539
- "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"
2540
- )),
2541
- hasValidKey(config) &&
2542
- (checkKeyStringCoercion(config.key), (key = "" + config.key)),
2543
- config))
2544
- hasOwnProperty.call(config, propName) &&
2545
- "key" !== propName &&
2546
- "__self" !== propName &&
2547
- "__source" !== propName &&
2548
- (i[propName] = config[propName]);
2549
- var childrenLength = arguments.length - 2;
2550
- if (1 === childrenLength) i.children = children;
2551
- else if (1 < childrenLength) {
2552
- for (
2553
- var childArray = Array(childrenLength), _i = 0;
2554
- _i < childrenLength;
2555
- _i++
2556
- )
2557
- childArray[_i] = arguments[_i + 2];
2558
- Object.freeze && Object.freeze(childArray);
2559
- i.children = childArray;
2560
- }
2561
- if (type && type.defaultProps)
2562
- for (propName in ((childrenLength = type.defaultProps), childrenLength))
2563
- void 0 === i[propName] && (i[propName] = childrenLength[propName]);
2564
- key &&
2565
- defineKeyPropWarningGetter(
2566
- i,
2567
- "function" === typeof type
2568
- ? type.displayName || type.name || "Unknown"
2569
- : type
2570
- );
2571
- var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
2572
- return ReactElement(
2573
- type,
2574
- key,
2575
- i,
2576
- getOwner(),
2577
- propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
2578
- propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
2579
- );
2580
- };
2581
- exports.createRef = function () {
2582
- var refObject = { current: null };
2583
- Object.seal(refObject);
2584
- return refObject;
2585
- };
2586
- exports.forwardRef = function (render) {
2587
- null != render && render.$$typeof === REACT_MEMO_TYPE
2588
- ? console.error(
2589
- "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
2590
- )
2591
- : "function" !== typeof render
2592
- ? console.error(
2593
- "forwardRef requires a render function but was given %s.",
2594
- null === render ? "null" : typeof render
2595
- )
2596
- : 0 !== render.length &&
2597
- 2 !== render.length &&
2598
- console.error(
2599
- "forwardRef render functions accept exactly two parameters: props and ref. %s",
2600
- 1 === render.length
2601
- ? "Did you forget to use the ref parameter?"
2602
- : "Any additional parameter will be undefined."
2603
- );
2604
- null != render &&
2605
- null != render.defaultProps &&
2606
- console.error(
2607
- "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
2608
- );
2609
- var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render: render },
2610
- ownName;
2611
- Object.defineProperty(elementType, "displayName", {
2612
- enumerable: !1,
2613
- configurable: !0,
2614
- get: function () {
2615
- return ownName;
2616
- },
2617
- set: function (name) {
2618
- ownName = name;
2619
- render.name ||
2620
- render.displayName ||
2621
- (Object.defineProperty(render, "name", { value: name }),
2622
- (render.displayName = name));
2623
- }
2624
- });
2625
- return elementType;
2626
- };
2627
- exports.isValidElement = isValidElement;
2628
- exports.lazy = function (ctor) {
2629
- ctor = { _status: -1, _result: ctor };
2630
- var lazyType = {
2631
- $$typeof: REACT_LAZY_TYPE,
2632
- _payload: ctor,
2633
- _init: lazyInitializer
2634
- },
2635
- ioInfo = {
2636
- name: "lazy",
2637
- start: -1,
2638
- end: -1,
2639
- value: null,
2640
- owner: null,
2641
- debugStack: Error("react-stack-top-frame"),
2642
- debugTask: console.createTask ? console.createTask("lazy()") : null
2643
- };
2644
- ctor._ioInfo = ioInfo;
2645
- lazyType._debugInfo = [{ awaited: ioInfo }];
2646
- return lazyType;
2647
- };
2648
- exports.memo = function (type, compare) {
2649
- null == type &&
2650
- console.error(
2651
- "memo: The first argument must be a component. Instead received: %s",
2652
- null === type ? "null" : typeof type
2653
- );
2654
- compare = {
2655
- $$typeof: REACT_MEMO_TYPE,
2656
- type: type,
2657
- compare: void 0 === compare ? null : compare
2658
- };
2659
- var ownName;
2660
- Object.defineProperty(compare, "displayName", {
2661
- enumerable: !1,
2662
- configurable: !0,
2663
- get: function () {
2664
- return ownName;
2665
- },
2666
- set: function (name) {
2667
- ownName = name;
2668
- type.name ||
2669
- type.displayName ||
2670
- (Object.defineProperty(type, "name", { value: name }),
2671
- (type.displayName = name));
2672
- }
2673
- });
2674
- return compare;
2675
- };
2676
- exports.startTransition = function (scope) {
2677
- var prevTransition = ReactSharedInternals.T,
2678
- currentTransition = {};
2679
- currentTransition._updatedFibers = new Set();
2680
- ReactSharedInternals.T = currentTransition;
2681
- try {
2682
- var returnValue = scope(),
2683
- onStartTransitionFinish = ReactSharedInternals.S;
2684
- null !== onStartTransitionFinish &&
2685
- onStartTransitionFinish(currentTransition, returnValue);
2686
- "object" === typeof returnValue &&
2687
- null !== returnValue &&
2688
- "function" === typeof returnValue.then &&
2689
- (ReactSharedInternals.asyncTransitions++,
2690
- returnValue.then(releaseAsyncTransition, releaseAsyncTransition),
2691
- returnValue.then(noop, reportGlobalError));
2692
- } catch (error) {
2693
- reportGlobalError(error);
2694
- } finally {
2695
- null === prevTransition &&
2696
- currentTransition._updatedFibers &&
2697
- ((scope = currentTransition._updatedFibers.size),
2698
- currentTransition._updatedFibers.clear(),
2699
- 10 < scope &&
2700
- console.warn(
2701
- "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."
2702
- )),
2703
- null !== prevTransition &&
2704
- null !== currentTransition.types &&
2705
- (null !== prevTransition.types &&
2706
- prevTransition.types !== currentTransition.types &&
2707
- console.error(
2708
- "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
2709
- ),
2710
- (prevTransition.types = currentTransition.types)),
2711
- (ReactSharedInternals.T = prevTransition);
2712
- }
2713
- };
2714
- exports.unstable_useCacheRefresh = function () {
2715
- return resolveDispatcher().useCacheRefresh();
2716
- };
2717
- exports.use = function (usable) {
2718
- return resolveDispatcher().use(usable);
2719
- };
2720
- exports.useActionState = function (action, initialState, permalink) {
2721
- return resolveDispatcher().useActionState(
2722
- action,
2723
- initialState,
2724
- permalink
2725
- );
2726
- };
2727
- exports.useCallback = function (callback, deps) {
2728
- return resolveDispatcher().useCallback(callback, deps);
2729
- };
2730
- exports.useContext = function (Context) {
2731
- var dispatcher = resolveDispatcher();
2732
- Context.$$typeof === REACT_CONSUMER_TYPE &&
2733
- console.error(
2734
- "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
2735
- );
2736
- return dispatcher.useContext(Context);
2737
- };
2738
- exports.useDebugValue = function (value, formatterFn) {
2739
- return resolveDispatcher().useDebugValue(value, formatterFn);
2740
- };
2741
- exports.useDeferredValue = function (value, initialValue) {
2742
- return resolveDispatcher().useDeferredValue(value, initialValue);
2743
- };
2744
- exports.useEffect = function (create, deps) {
2745
- null == create &&
2746
- console.warn(
2747
- "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
2748
- );
2749
- return resolveDispatcher().useEffect(create, deps);
2750
- };
2751
- exports.useEffectEvent = function (callback) {
2752
- return resolveDispatcher().useEffectEvent(callback);
2753
- };
2754
- exports.useId = function () {
2755
- return resolveDispatcher().useId();
2756
- };
2757
- exports.useImperativeHandle = function (ref, create, deps) {
2758
- return resolveDispatcher().useImperativeHandle(ref, create, deps);
2759
- };
2760
- exports.useInsertionEffect = function (create, deps) {
2761
- null == create &&
2762
- console.warn(
2763
- "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
2764
- );
2765
- return resolveDispatcher().useInsertionEffect(create, deps);
2766
- };
2767
- exports.useLayoutEffect = function (create, deps) {
2768
- null == create &&
2769
- console.warn(
2770
- "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
2771
- );
2772
- return resolveDispatcher().useLayoutEffect(create, deps);
2773
- };
2774
- exports.useMemo = function (create, deps) {
2775
- return resolveDispatcher().useMemo(create, deps);
2776
- };
2777
- exports.useOptimistic = function (passthrough, reducer) {
2778
- return resolveDispatcher().useOptimistic(passthrough, reducer);
2779
- };
2780
- exports.useReducer = function (reducer, initialArg, init) {
2781
- return resolveDispatcher().useReducer(reducer, initialArg, init);
2782
- };
2783
- exports.useRef = function (initialValue) {
2784
- return resolveDispatcher().useRef(initialValue);
2785
- };
2786
- exports.useState = function (initialState) {
2787
- return resolveDispatcher().useState(initialState);
2788
- };
2789
- exports.useSyncExternalStore = function (
2790
- subscribe,
2791
- getSnapshot,
2792
- getServerSnapshot
2793
- ) {
2794
- return resolveDispatcher().useSyncExternalStore(
2795
- subscribe,
2796
- getSnapshot,
2797
- getServerSnapshot
2798
- );
2799
- };
2800
- exports.useTransition = function () {
2801
- return resolveDispatcher().useTransition();
2802
- };
2803
- exports.version = "19.2.0";
2804
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2805
- "function" ===
2806
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
2807
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
2808
- })();
2809
-
2810
-
2811
- }),
2812
- "./node_modules/react/index.js": (function (module, __unused_webpack_exports, __webpack_require__) {
2813
- "use strict";
2814
-
2815
-
2816
- if (false) {} else {
2817
- module.exports = __webpack_require__("./node_modules/react/cjs/react.development.js");
2818
- }
2819
-
2820
-
2821
- }),
2822
- "./node_modules/react/jsx-dev-runtime.js": (function (module, __unused_webpack_exports, __webpack_require__) {
2823
- "use strict";
2824
-
2825
-
2826
- if (false) {} else {
2827
- module.exports = __webpack_require__("./node_modules/react/cjs/react-jsx-dev-runtime.development.js");
2828
- }
2829
-
2830
-
2831
- }),
2832
- "./node_modules/react/jsx-runtime.js": (function (module, __unused_webpack_exports, __webpack_require__) {
2833
- "use strict";
2834
-
2835
-
2836
- if (false) {} else {
2837
- module.exports = __webpack_require__("./node_modules/react/cjs/react-jsx-runtime.development.js");
2838
- }
2839
-
2840
-
2841
- }),
2842
- "./node_modules/@rspack/plugin-react-refresh/client/reactRefresh.js": (function (module, __unused_webpack_exports, __webpack_require__) {
2843
- const RefreshUtils = __webpack_require__("./node_modules/@rspack/plugin-react-refresh/client/refreshUtils.js");
2844
- const RefreshRuntime = __webpack_require__("./node_modules/react-refresh/runtime.js");
2845
-
2846
- function refresh(moduleId, webpackHot) {
2847
- const currentExports = RefreshUtils.getModuleExports(moduleId);
2848
- const fn = (exports) => {
2849
- var errorOverlay;
2850
- if (true) {
2851
- errorOverlay = false;
2852
- }
2853
- var testMode;
2854
- if (typeof __react_refresh_test__ !== 'undefined') {
2855
- testMode = __react_refresh_test__;
2856
- }
2857
- RefreshUtils.executeRuntime(
2858
- exports,
2859
- moduleId,
2860
- webpackHot,
2861
- errorOverlay,
2862
- testMode,
2863
- );
2864
- };
2865
- if (typeof Promise !== 'undefined' && currentExports instanceof Promise) {
2866
- currentExports.then(fn);
2867
- } else {
2868
- fn(currentExports);
2869
- }
2870
- }
2871
-
2872
- module.exports = {
2873
- refresh,
2874
- register: RefreshRuntime.register,
2875
- createSignatureFunctionForTransform:
2876
- RefreshRuntime.createSignatureFunctionForTransform,
2877
- };
2878
-
2879
-
2880
- }),
2881
- "./node_modules/@rspack/plugin-react-refresh/client/reactRefreshEntry.js": (function (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
2882
- var RefreshRuntime = __webpack_require__("./node_modules/react-refresh/runtime.js");
2883
- var safeThis = (function () {
2884
- // copied from core-js-pure/features/global-this
2885
- 'use strict';
2886
-
2887
- var check = function (it) {
2888
- return it && it.Math == Math && it;
2889
- };
2890
-
2891
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
2892
- // eslint-disable-next-line es/no-global-this -- safe
2893
- return (
2894
- check(typeof globalThis == 'object' && globalThis) ||
2895
- check(typeof window == 'object' && window) ||
2896
- // eslint-disable-next-line no-restricted-globals -- safe
2897
- check(typeof self == 'object' && self) ||
2898
- check(typeof __webpack_require__.g == 'object' && __webpack_require__.g) ||
2899
- // eslint-disable-next-line no-new-func -- fallback
2900
- (function () {
2901
- return this;
2902
- })() ||
2903
- this ||
2904
- Function('return this')()
2905
- );
2906
- })();
2907
-
2908
- if (true) {
2909
- if (typeof safeThis !== 'undefined') {
2910
- var $RefreshInjected$ = '__reactRefreshInjected';
2911
- // Namespace the injected flag (if necessary) for monorepo compatibility
2912
- if (
2913
- false
2914
- ) {}
2915
-
2916
- // Only inject the runtime if it hasn't been injected
2917
- if (!safeThis[$RefreshInjected$]) {
2918
- RefreshRuntime.injectIntoGlobalHook(safeThis);
2919
-
2920
- // Empty implementation to avoid "ReferenceError: variable is not defined" in module which didn't pass builtin:react-refresh-loader
2921
- safeThis.$RefreshSig$ = () => (type) => type;
2922
- safeThis.$RefreshReg$ = () => {};
2923
-
2924
- // Mark the runtime as injected to prevent double-injection
2925
- safeThis[$RefreshInjected$] = true;
2926
- }
2927
- }
2928
- }
2929
-
2930
-
2931
- }),
2932
- "./node_modules/@rspack/plugin-react-refresh/client/refreshUtils.js": (function (module, __unused_webpack_exports, __webpack_require__) {
2933
- /* global __webpack_require__ */
2934
- var Refresh = __webpack_require__("./node_modules/react-refresh/runtime.js");
2935
-
2936
- /**
2937
- * Extracts exports from a webpack module object.
2938
- * @param {string} moduleId A Webpack module ID.
2939
- * @returns {*} An exports object from the module.
2940
- */
2941
- function getModuleExports(moduleId) {
2942
- if (typeof moduleId === 'undefined') {
2943
- // `moduleId` is unavailable, which indicates that this module is not in the cache,
2944
- // which means we won't be able to capture any exports,
2945
- // and thus they cannot be refreshed safely.
2946
- // These are likely runtime or dynamically generated modules.
2947
- return {};
2948
- }
2949
-
2950
- var maybeModule = __webpack_require__.c[moduleId];
2951
- if (typeof maybeModule === 'undefined') {
2952
- // `moduleId` is available but the module in cache is unavailable,
2953
- // which indicates the module is somehow corrupted (e.g. broken Webpacak `module` globals).
2954
- // We will warn the user (as this is likely a mistake) and assume they cannot be refreshed.
2955
- console.warn(
2956
- '[React Refresh] Failed to get exports for module: ' + moduleId + '.',
2957
- );
2958
- return {};
2959
- }
2960
-
2961
- var exportsOrPromise = maybeModule.exports;
2962
- if (typeof Promise !== 'undefined' && exportsOrPromise instanceof Promise) {
2963
- return exportsOrPromise.then(function (exports) {
2964
- return exports;
2965
- });
2966
- }
2967
- return exportsOrPromise;
2968
- }
2969
-
2970
- /**
2971
- * Calculates the signature of a React refresh boundary.
2972
- * If this signature changes, it's unsafe to accept the boundary.
2973
- *
2974
- * This implementation is based on the one in [Metro](https://github.com/facebook/metro/blob/907d6af22ac6ebe58572be418e9253a90665ecbd/packages/metro/src/lib/polyfills/require.js#L795-L816).
2975
- * @param {*} moduleExports A Webpack module exports object.
2976
- * @returns {string[]} A React refresh boundary signature array.
2977
- */
2978
- function getReactRefreshBoundarySignature(moduleExports) {
2979
- var signature = [];
2980
- signature.push(Refresh.getFamilyByType(moduleExports));
2981
-
2982
- if (moduleExports == null || typeof moduleExports !== 'object') {
2983
- // Exit if we can't iterate over exports.
2984
- return signature;
2985
- }
2986
-
2987
- for (var key in moduleExports) {
2988
- if (key === '__esModule') {
2989
- continue;
2990
- }
2991
-
2992
- signature.push(key);
2993
- signature.push(Refresh.getFamilyByType(moduleExports[key]));
2994
- }
2995
-
2996
- return signature;
2997
- }
2998
-
2999
- /**
3000
- * Creates a helper that performs a delayed React refresh.
3001
- * @returns {function(function(): void): void} A debounced React refresh function.
3002
- */
3003
- function createDebounceUpdate() {
3004
- /**
3005
- * A cached setTimeout handler.
3006
- * @type {number | undefined}
3007
- */
3008
- var refreshTimeout;
3009
-
3010
- /**
3011
- * Performs react refresh on a delay and clears the error overlay.
3012
- * @param {function(): void} callback
3013
- * @returns {void}
3014
- */
3015
- function enqueueUpdate(callback) {
3016
- if (typeof refreshTimeout === 'undefined') {
3017
- refreshTimeout = setTimeout(function () {
3018
- refreshTimeout = undefined;
3019
- Refresh.performReactRefresh();
3020
- callback();
3021
- }, 30);
3022
- }
3023
- }
3024
-
3025
- return enqueueUpdate;
3026
- }
3027
-
3028
- /**
3029
- * Checks if all exports are likely a React component.
3030
- *
3031
- * This implementation is based on the one in [Metro](https://github.com/facebook/metro/blob/febdba2383113c88296c61e28e4ef6a7f4939fda/packages/metro/src/lib/polyfills/require.js#L748-L774).
3032
- * @param {*} moduleExports A Webpack module exports object.
3033
- * @returns {boolean} Whether the exports are React component like.
3034
- */
3035
- function isReactRefreshBoundary(moduleExports) {
3036
- if (Refresh.isLikelyComponentType(moduleExports)) {
3037
- return true;
3038
- }
3039
- if (
3040
- moduleExports === undefined ||
3041
- moduleExports === null ||
3042
- typeof moduleExports !== 'object'
3043
- ) {
3044
- // Exit if we can't iterate over exports.
3045
- return false;
3046
- }
3047
-
3048
- var hasExports = false;
3049
- var areAllExportsComponents = true;
3050
- for (var key in moduleExports) {
3051
- hasExports = true;
3052
-
3053
- // This is the ES Module indicator flag
3054
- if (key === '__esModule') {
3055
- continue;
3056
- }
3057
-
3058
- // We can (and have to) safely execute getters here,
3059
- // as Webpack manually assigns harmony exports to getters,
3060
- // without any side-effects attached.
3061
- // Ref: https://github.com/webpack/webpack/blob/b93048643fe74de2a6931755911da1212df55897/lib/MainTemplate.js#L281
3062
- var exportValue = moduleExports[key];
3063
- if (!Refresh.isLikelyComponentType(exportValue)) {
3064
- areAllExportsComponents = false;
3065
- }
3066
- }
3067
-
3068
- return hasExports && areAllExportsComponents;
3069
- }
3070
-
3071
- /**
3072
- * Checks if exports are likely a React component and registers them.
3073
- *
3074
- * This implementation is based on the one in [Metro](https://github.com/facebook/metro/blob/febdba2383113c88296c61e28e4ef6a7f4939fda/packages/metro/src/lib/polyfills/require.js#L818-L835).
3075
- * @param {*} moduleExports A Webpack module exports object.
3076
- * @param {string} moduleId A Webpack module ID.
3077
- * @returns {void}
3078
- */
3079
- function registerExportsForReactRefresh(moduleExports, moduleId) {
3080
- if (Refresh.isLikelyComponentType(moduleExports)) {
3081
- // Register module.exports if it is likely a component
3082
- Refresh.register(moduleExports, moduleId + ' %exports%');
3083
- }
3084
-
3085
- if (
3086
- moduleExports === undefined ||
3087
- moduleExports === null ||
3088
- typeof moduleExports !== 'object'
3089
- ) {
3090
- // Exit if we can't iterate over the exports.
3091
- return;
3092
- }
3093
-
3094
- for (var key in moduleExports) {
3095
- // Skip registering the ES Module indicator
3096
- if (key === '__esModule') {
3097
- continue;
3098
- }
3099
-
3100
- var exportValue = moduleExports[key];
3101
- if (Refresh.isLikelyComponentType(exportValue)) {
3102
- var typeID = moduleId + ' %exports% ' + key;
3103
- Refresh.register(exportValue, typeID);
3104
- }
3105
- }
3106
- }
3107
-
3108
- /**
3109
- * Compares previous and next module objects to check for mutated boundaries.
3110
- *
3111
- * This implementation is based on the one in [Metro](https://github.com/facebook/metro/blob/907d6af22ac6ebe58572be418e9253a90665ecbd/packages/metro/src/lib/polyfills/require.js#L776-L792).
3112
- * @param {*} prevExports The current Webpack module exports object.
3113
- * @param {*} nextExports The next Webpack module exports object.
3114
- * @returns {boolean} Whether the React refresh boundary should be invalidated.
3115
- */
3116
- function shouldInvalidateReactRefreshBoundary(prevExports, nextExports) {
3117
- var prevSignature = getReactRefreshBoundarySignature(prevExports);
3118
- var nextSignature = getReactRefreshBoundarySignature(nextExports);
3119
-
3120
- if (prevSignature.length !== nextSignature.length) {
3121
- return true;
3122
- }
3123
-
3124
- for (var i = 0; i < nextSignature.length; i += 1) {
3125
- if (prevSignature[i] !== nextSignature[i]) {
3126
- return true;
3127
- }
3128
- }
3129
-
3130
- return false;
3131
- }
3132
-
3133
- var enqueueUpdate = createDebounceUpdate();
3134
-
3135
- function executeRuntime(
3136
- moduleExports,
3137
- moduleId,
3138
- webpackHot,
3139
- refreshOverlay,
3140
- isTest,
3141
- ) {
3142
- registerExportsForReactRefresh(moduleExports, moduleId);
3143
-
3144
- if (webpackHot) {
3145
- var isHotUpdate = !!webpackHot.data;
3146
- var prevExports;
3147
- if (isHotUpdate) {
3148
- prevExports = webpackHot.data.prevExports;
3149
- }
3150
-
3151
- if (isReactRefreshBoundary(moduleExports)) {
3152
- webpackHot.dispose(
3153
- /**
3154
- * A callback to performs a full refresh if React has unrecoverable errors,
3155
- * and also caches the to-be-disposed module.
3156
- * @param {*} data A hot module data object from Webpack HMR.
3157
- * @returns {void}
3158
- */
3159
- function hotDisposeCallback(data) {
3160
- // We have to mutate the data object to get data registered and cached
3161
- data.prevExports = moduleExports;
3162
- },
3163
- );
3164
- webpackHot.accept(
3165
- /**
3166
- * An error handler to allow self-recovering behaviours.
3167
- * @param {Error} error An error occurred during evaluation of a module.
3168
- * @returns {void}
3169
- */
3170
- function hotErrorHandler(error) {
3171
- console.error(error);
3172
- if (
3173
- false
3174
- ) {}
3175
-
3176
- if (typeof refreshOverlay !== 'undefined' && refreshOverlay) {
3177
- refreshOverlay.handleRuntimeError(error);
3178
- }
3179
-
3180
- if (typeof isTest !== 'undefined' && isTest) {
3181
- if (window.onHotAcceptError) {
3182
- window.onHotAcceptError(error.message);
3183
- }
3184
- }
3185
-
3186
- __webpack_require__.c[moduleId].hot.accept(hotErrorHandler);
3187
- },
3188
- );
3189
-
3190
- if (isHotUpdate) {
3191
- if (
3192
- isReactRefreshBoundary(prevExports) &&
3193
- shouldInvalidateReactRefreshBoundary(prevExports, moduleExports)
3194
- ) {
3195
- webpackHot.invalidate();
3196
- } else {
3197
- enqueueUpdate(
3198
- /**
3199
- * A function to dismiss the error overlay after performing React refresh.
3200
- * @returns {void}
3201
- */
3202
- function updateCallback() {
3203
- if (typeof refreshOverlay !== 'undefined' && refreshOverlay) {
3204
- refreshOverlay.clearRuntimeErrors();
3205
- }
3206
- },
3207
- );
3208
- }
3209
- }
3210
- } else {
3211
- if (isHotUpdate && typeof prevExports !== 'undefined') {
3212
- webpackHot.invalidate();
3213
- }
3214
- }
3215
- }
3216
- }
3217
-
3218
- function isUnrecoverableRuntimeError(error) {
3219
- return error.message.startsWith('RuntimeError: factory is undefined');
3220
- }
3221
-
3222
- module.exports = Object.freeze({
3223
- enqueueUpdate: enqueueUpdate,
3224
- executeRuntime: executeRuntime,
3225
- getModuleExports: getModuleExports,
3226
- isReactRefreshBoundary: isReactRefreshBoundary,
3227
- shouldInvalidateReactRefreshBoundary: shouldInvalidateReactRefreshBoundary,
3228
- registerExportsForReactRefresh: registerExportsForReactRefresh,
3229
- });
3230
-
3231
-
3232
- }),
3233
-
3234
- }]);
3235
- //# sourceMappingURL=lib-react.js.map