react 19.0.0-rc.0 → 19.0.0-rc.1

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.
@@ -8,1296 +8,663 @@
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
10
 
11
- 'use strict';
12
-
13
- if (process.env.NODE_ENV !== "production") {
14
- (function() {
15
- 'use strict';
16
-
17
- var React = require('react');
18
-
19
- // -----------------------------------------------------------------------------
20
-
21
- var enableScopeAPI = false; // Experimental Create Event Handle API.
22
- var enableTransitionTracing = false; // No known bugs, but needs performance testing
23
-
24
- var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
25
- // as a normal prop instead of stripping it from the props object.
26
- // Passes `ref` as a normal prop instead of stripping it from the props object
27
- // during element creation.
28
-
29
- var enableRefAsProp = true;
30
-
31
- var enableRenderableContext = true; // Enables the `initialValue` option for `useDeferredValue`
32
- // stuff. Intended to enable React core members to more easily debug scheduling
33
- // issues in DEV builds.
34
-
35
- var enableDebugTracing = false;
36
-
37
- var REACT_ELEMENT_TYPE = Symbol.for('react.transitional.element') ;
38
- var REACT_PORTAL_TYPE = Symbol.for('react.portal');
39
- var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
40
- var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
41
- var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
42
- var REACT_PROVIDER_TYPE = Symbol.for('react.provider'); // TODO: Delete with enableRenderableContext
43
-
44
- var REACT_CONSUMER_TYPE = Symbol.for('react.consumer');
45
- var REACT_CONTEXT_TYPE = Symbol.for('react.context');
46
- var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
47
- var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
48
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
49
- var REACT_MEMO_TYPE = Symbol.for('react.memo');
50
- var REACT_LAZY_TYPE = Symbol.for('react.lazy');
51
- var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
52
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
53
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
54
- function getIteratorFn(maybeIterable) {
55
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
56
- return null;
57
- }
58
-
59
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
60
-
61
- if (typeof maybeIterator === 'function') {
62
- return maybeIterator;
63
- }
64
-
65
- return null;
66
- }
67
-
68
- var ReactSharedInternalsServer = // $FlowFixMe: It's defined in the one we resolve to.
69
- React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
70
-
71
- if (!ReactSharedInternalsServer) {
72
- throw new Error('The "react" package in this environment is not configured correctly. ' + 'The "react-server" condition must be enabled in any environment that ' + 'runs React Server Components.');
73
- }
74
-
75
- function error(format) {
76
- {
77
- {
78
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
79
- args[_key2 - 1] = arguments[_key2];
80
- }
81
-
82
- printWarning('error', format, args);
83
- }
84
- }
85
- } // eslint-disable-next-line react-internal/no-production-logging
86
-
87
- function printWarning(level, format, args) {
88
- // When changing this logic, you might want to also
89
- // update consoleWithStackDev.www.js as well.
90
- {
91
- var isErrorLogger = format === '%s\n\n%s\n' || format === '%o\n\n%s\n\n%s\n';
92
-
93
- if (ReactSharedInternalsServer.getCurrentStack) {
94
- // We only add the current stack to the console when createTask is not supported.
95
- // Since createTask requires DevTools to be open to work, this means that stacks
96
- // can be lost while DevTools isn't open but we can't detect this.
97
- var stack = ReactSharedInternalsServer.getCurrentStack();
98
-
99
- if (stack !== '') {
100
- format += '%s';
101
- args = args.concat([stack]);
102
- }
103
- }
104
-
105
- if (isErrorLogger) {
106
- // Don't prefix our default logging formatting in ReactFiberErrorLoggger.
107
- // Don't toString the arguments.
108
- args.unshift(format);
109
- } else {
110
- // TODO: Remove this prefix and stop toStringing in the wrapper and
111
- // instead do it at each callsite as needed.
112
- // Careful: RN currently depends on this prefix
113
- // eslint-disable-next-line react-internal/safe-string-coercion
114
- args = args.map(function (item) {
115
- return String(item);
116
- });
117
- args.unshift('Warning: ' + format);
118
- } // We intentionally don't use spread (or .apply) directly because it
119
- // breaks IE9: https://github.com/facebook/react/issues/13610
120
- // eslint-disable-next-line react-internal/no-production-logging
121
-
122
-
123
- Function.prototype.apply.call(console[level], console, args);
124
- }
125
- }
126
-
127
- function getWrappedName(outerType, innerType, wrapperName) {
128
- var displayName = outerType.displayName;
129
-
130
- if (displayName) {
131
- return displayName;
132
- }
133
-
134
- var functionName = innerType.displayName || innerType.name || '';
135
- return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
136
- } // Keep in sync with react-reconciler/getComponentNameFromFiber
137
-
138
-
139
- function getContextName(type) {
140
- return type.displayName || 'Context';
141
- }
142
-
143
- var REACT_CLIENT_REFERENCE$2 = Symbol.for('react.client.reference'); // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
144
-
145
- function getComponentNameFromType(type) {
146
- if (type == null) {
147
- // Host root, text node or just invalid type.
148
- return null;
149
- }
150
-
151
- if (typeof type === 'function') {
152
- if (type.$$typeof === REACT_CLIENT_REFERENCE$2) {
153
- // TODO: Create a convention for naming client references with debug info.
154
- return null;
155
- }
156
-
157
- return type.displayName || type.name || null;
158
- }
159
-
160
- if (typeof type === 'string') {
161
- return type;
162
- }
163
-
164
- switch (type) {
165
- case REACT_FRAGMENT_TYPE:
166
- return 'Fragment';
167
-
168
- case REACT_PORTAL_TYPE:
169
- return 'Portal';
170
-
171
- case REACT_PROFILER_TYPE:
172
- return 'Profiler';
173
-
174
- case REACT_STRICT_MODE_TYPE:
175
- return 'StrictMode';
176
-
177
- case REACT_SUSPENSE_TYPE:
178
- return 'Suspense';
179
-
180
- case REACT_SUSPENSE_LIST_TYPE:
181
- return 'SuspenseList';
182
-
183
- }
184
-
185
- if (typeof type === 'object') {
186
- {
187
- if (typeof type.tag === 'number') {
188
- error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
11
+ "use strict";
12
+ "production" !== process.env.NODE_ENV &&
13
+ (function () {
14
+ function getComponentNameFromType(type) {
15
+ if (null == type) return null;
16
+ if ("function" === typeof type)
17
+ return type.$$typeof === REACT_CLIENT_REFERENCE$2
18
+ ? null
19
+ : type.displayName || type.name || null;
20
+ if ("string" === typeof type) return type;
21
+ switch (type) {
22
+ case REACT_FRAGMENT_TYPE:
23
+ return "Fragment";
24
+ case REACT_PORTAL_TYPE:
25
+ return "Portal";
26
+ case REACT_PROFILER_TYPE:
27
+ return "Profiler";
28
+ case REACT_STRICT_MODE_TYPE:
29
+ return "StrictMode";
30
+ case REACT_SUSPENSE_TYPE:
31
+ return "Suspense";
32
+ case REACT_SUSPENSE_LIST_TYPE:
33
+ return "SuspenseList";
189
34
  }
190
- }
191
-
192
- switch (type.$$typeof) {
193
- case REACT_PROVIDER_TYPE:
194
- {
195
- return null;
196
- }
197
-
198
- case REACT_CONTEXT_TYPE:
199
- var context = type;
200
-
201
- {
202
- return getContextName(context) + '.Provider';
203
- }
204
-
205
- case REACT_CONSUMER_TYPE:
206
- {
207
- var consumer = type;
208
- return getContextName(consumer._context) + '.Consumer';
209
- }
210
-
211
- case REACT_FORWARD_REF_TYPE:
212
- return getWrappedName(type, type.render, 'ForwardRef');
213
-
214
- case REACT_MEMO_TYPE:
215
- var outerName = type.displayName || null;
216
-
217
- if (outerName !== null) {
218
- return outerName;
219
- }
220
-
221
- return getComponentNameFromType(type.type) || 'Memo';
222
-
223
- case REACT_LAZY_TYPE:
224
- {
225
- var lazyComponent = type;
226
- var payload = lazyComponent._payload;
227
- var init = lazyComponent._init;
228
-
229
- try {
230
- return getComponentNameFromType(init(payload));
231
- } catch (x) {
232
- return null;
233
- }
35
+ if ("object" === typeof type)
36
+ switch (
37
+ ("number" === typeof type.tag &&
38
+ console.error(
39
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
40
+ ),
41
+ type.$$typeof)
42
+ ) {
43
+ case REACT_CONTEXT_TYPE:
44
+ return (type.displayName || "Context") + ".Provider";
45
+ case REACT_CONSUMER_TYPE:
46
+ return (type._context.displayName || "Context") + ".Consumer";
47
+ case REACT_FORWARD_REF_TYPE:
48
+ var innerType = type.render;
49
+ type = type.displayName;
50
+ type ||
51
+ ((type = innerType.displayName || innerType.name || ""),
52
+ (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
53
+ return type;
54
+ case REACT_MEMO_TYPE:
55
+ return (
56
+ (innerType = type.displayName || null),
57
+ null !== innerType
58
+ ? innerType
59
+ : getComponentNameFromType(type.type) || "Memo"
60
+ );
61
+ case REACT_LAZY_TYPE:
62
+ innerType = type._payload;
63
+ type = type._init;
64
+ try {
65
+ return getComponentNameFromType(type(innerType));
66
+ } catch (x) {}
234
67
  }
68
+ return null;
235
69
  }
236
- }
237
-
238
- return null;
239
- }
240
-
241
- // $FlowFixMe[method-unbinding]
242
- var hasOwnProperty = Object.prototype.hasOwnProperty;
243
-
244
- var assign = Object.assign;
245
-
246
- /*
247
- * The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
248
- * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
249
- *
250
- * The functions in this module will throw an easier-to-understand,
251
- * easier-to-debug exception with a clear errors message message explaining the
252
- * problem. (Instead of a confusing exception thrown inside the implementation
253
- * of the `value` object).
254
- */
255
- // $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible.
256
- function typeName(value) {
257
- {
258
- // toStringTag is needed for namespaced types like Temporal.Instant
259
- var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
260
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object'; // $FlowFixMe[incompatible-return]
261
-
262
- return type;
263
- }
264
- } // $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible.
265
-
266
-
267
- function willCoercionThrow(value) {
268
- {
269
- try {
270
- testStringCoercion(value);
271
- return false;
272
- } catch (e) {
273
- return true;
274
- }
275
- }
276
- }
277
-
278
- function testStringCoercion(value) {
279
- // If you ended up here by following an exception call stack, here's what's
280
- // happened: you supplied an object or symbol value to React (as a prop, key,
281
- // DOM attribute, CSS property, string ref, etc.) and when React tried to
282
- // coerce it to a string using `'' + value`, an exception was thrown.
283
- //
284
- // The most common types that will cause this exception are `Symbol` instances
285
- // and Temporal objects like `Temporal.Instant`. But any object that has a
286
- // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
287
- // exception. (Library authors do this to prevent users from using built-in
288
- // numeric operators like `+` or comparison operators like `>=` because custom
289
- // methods are needed to perform accurate arithmetic or comparison.)
290
- //
291
- // To fix the problem, coerce this object or symbol value to a string before
292
- // passing it to React. The most reliable way is usually `String(value)`.
293
- //
294
- // To find which value is throwing, check the browser or debugger console.
295
- // Before this exception was thrown, there should be `console.error` output
296
- // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
297
- // problem and how that type was used: key, atrribute, input value prop, etc.
298
- // In most cases, this console output also shows the component and its
299
- // ancestor components where the exception happened.
300
- //
301
- // eslint-disable-next-line react-internal/safe-string-coercion
302
- return '' + value;
303
- }
304
- function checkKeyStringCoercion(value) {
305
- {
306
- if (willCoercionThrow(value)) {
307
- error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before using it here.', typeName(value));
308
-
309
- return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
310
- }
311
- }
312
- }
313
-
314
- var REACT_CLIENT_REFERENCE$1 = Symbol.for('react.client.reference'); // This function is deprecated. Don't use. Only the renderer knows what a valid type is.
315
- // TODO: Delete this when enableOwnerStacks ships.
316
-
317
- function isValidElementType(type) {
318
- if (typeof type === 'string' || typeof type === 'function') {
319
- return true;
320
- } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
321
-
322
-
323
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableTransitionTracing ) {
324
- return true;
325
- }
326
-
327
- if (typeof type === 'object' && type !== null) {
328
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || !enableRenderableContext || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
329
- // types supported by any Flight configuration anywhere since
330
- // we don't know which Flight build this will end up being used
331
- // with.
332
- type.$$typeof === REACT_CLIENT_REFERENCE$1 || type.getModuleId !== undefined) {
333
- return true;
334
- }
335
- }
336
-
337
- return false;
338
- }
339
-
340
- var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
341
-
342
- function isArray(a) {
343
- return isArrayImpl(a);
344
- }
345
-
346
- // Helpers to patch console.logs to avoid logging during side-effect free
347
- // replaying on render function. This currently only patches the object
348
- // lazily which won't cover if the log function was extracted eagerly.
349
- // We could also eagerly patch the method.
350
- var disabledDepth = 0;
351
- var prevLog;
352
- var prevInfo;
353
- var prevWarn;
354
- var prevError;
355
- var prevGroup;
356
- var prevGroupCollapsed;
357
- var prevGroupEnd;
358
-
359
- function disabledLog() {}
360
-
361
- disabledLog.__reactDisabledLog = true;
362
- function disableLogs() {
363
- {
364
- if (disabledDepth === 0) {
365
- /* eslint-disable react-internal/no-production-logging */
366
- prevLog = console.log;
367
- prevInfo = console.info;
368
- prevWarn = console.warn;
369
- prevError = console.error;
370
- prevGroup = console.group;
371
- prevGroupCollapsed = console.groupCollapsed;
372
- prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
373
-
374
- var props = {
375
- configurable: true,
376
- enumerable: true,
377
- value: disabledLog,
378
- writable: true
379
- }; // $FlowFixMe[cannot-write] Flow thinks console is immutable.
380
-
381
- Object.defineProperties(console, {
382
- info: props,
383
- log: props,
384
- warn: props,
385
- error: props,
386
- group: props,
387
- groupCollapsed: props,
388
- groupEnd: props
389
- });
390
- /* eslint-enable react-internal/no-production-logging */
391
- }
392
-
393
- disabledDepth++;
394
- }
395
- }
396
- function reenableLogs() {
397
- {
398
- disabledDepth--;
399
-
400
- if (disabledDepth === 0) {
401
- /* eslint-disable react-internal/no-production-logging */
402
- var props = {
403
- configurable: true,
404
- enumerable: true,
405
- writable: true
406
- }; // $FlowFixMe[cannot-write] Flow thinks console is immutable.
407
-
408
- Object.defineProperties(console, {
409
- log: assign({}, props, {
410
- value: prevLog
411
- }),
412
- info: assign({}, props, {
413
- value: prevInfo
414
- }),
415
- warn: assign({}, props, {
416
- value: prevWarn
417
- }),
418
- error: assign({}, props, {
419
- value: prevError
420
- }),
421
- group: assign({}, props, {
422
- value: prevGroup
423
- }),
424
- groupCollapsed: assign({}, props, {
425
- value: prevGroupCollapsed
426
- }),
427
- groupEnd: assign({}, props, {
428
- value: prevGroupEnd
429
- })
430
- });
431
- /* eslint-enable react-internal/no-production-logging */
432
- }
433
-
434
- if (disabledDepth < 0) {
435
- error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
70
+ function testStringCoercion(value) {
71
+ return "" + value;
436
72
  }
437
- }
438
- }
439
-
440
- var prefix;
441
- function describeBuiltInComponentFrame(name) {
442
- {
443
- if (prefix === undefined) {
444
- // Extract the VM specific prefix used by each line.
73
+ function checkKeyStringCoercion(value) {
445
74
  try {
446
- throw Error();
447
- } catch (x) {
448
- var match = x.stack.trim().match(/\n( *(at )?)/);
449
- prefix = match && match[1] || '';
75
+ testStringCoercion(value);
76
+ var JSCompiler_inline_result = !1;
77
+ } catch (e) {
78
+ JSCompiler_inline_result = !0;
450
79
  }
451
- } // We use the prefix to ensure our stacks line up with native stack frames.
452
-
453
-
454
- return '\n' + prefix + name;
455
- }
456
- }
457
- var reentry = false;
458
- var componentFrameCache;
459
-
460
- {
461
- var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
462
- componentFrameCache = new PossiblyWeakMap();
463
- }
464
- /**
465
- * Leverages native browser/VM stack frames to get proper details (e.g.
466
- * filename, line + col number) for a single component in a component stack. We
467
- * do this by:
468
- * (1) throwing and catching an error in the function - this will be our
469
- * control error.
470
- * (2) calling the component which will eventually throw an error that we'll
471
- * catch - this will be our sample error.
472
- * (3) diffing the control and sample error stacks to find the stack frame
473
- * which represents our component.
474
- */
475
-
476
-
477
- function describeNativeComponentFrame(fn, construct) {
478
- // If something asked for a stack inside a fake render, it should get ignored.
479
- if (!fn || reentry) {
480
- return '';
481
- }
482
-
483
- {
484
- var frame = componentFrameCache.get(fn);
485
-
486
- if (frame !== undefined) {
487
- return frame;
488
- }
489
- }
490
-
491
- reentry = true;
492
- var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe[incompatible-type] It does accept undefined.
493
-
494
- Error.prepareStackTrace = undefined;
495
- var previousDispatcher = null;
496
-
497
- {
498
- previousDispatcher = ReactSharedInternalsServer.H; // Set the dispatcher in DEV because this might be call in the render function
499
- // for warnings.
500
-
501
- ReactSharedInternalsServer.H = null;
502
- disableLogs();
503
- }
504
- /**
505
- * Finding a common stack frame between sample and control errors can be
506
- * tricky given the different types and levels of stack trace truncation from
507
- * different JS VMs. So instead we'll attempt to control what that common
508
- * frame should be through this object method:
509
- * Having both the sample and control errors be in the function under the
510
- * `DescribeNativeComponentFrameRoot` property, + setting the `name` and
511
- * `displayName` properties of the function ensures that a stack
512
- * frame exists that has the method name `DescribeNativeComponentFrameRoot` in
513
- * it for both control and sample stacks.
514
- */
515
-
516
-
517
- var RunInRootFrame = {
518
- DetermineComponentFrameRoot: function () {
519
- var control;
520
-
521
- try {
522
- // This should throw.
523
- if (construct) {
524
- // Something should be setting the props in the constructor.
525
- var Fake = function () {
526
- throw Error();
527
- }; // $FlowFixMe[prop-missing]
528
-
529
-
530
- Object.defineProperty(Fake.prototype, 'props', {
531
- set: function () {
532
- // We use a throwing setter instead of frozen or non-writable props
533
- // because that won't throw in a non-strict mode function.
534
- throw Error();
535
- }
536
- });
537
-
538
- if (typeof Reflect === 'object' && Reflect.construct) {
539
- // We construct a different control for this case to include any extra
540
- // frames added by the construct call.
541
- try {
542
- Reflect.construct(Fake, []);
543
- } catch (x) {
544
- control = x;
545
- }
546
-
547
- Reflect.construct(fn, [], Fake);
548
- } else {
549
- try {
550
- Fake.call();
551
- } catch (x) {
552
- control = x;
553
- } // $FlowFixMe[prop-missing] found when upgrading Flow
554
-
555
-
556
- fn.call(Fake.prototype);
557
- }
558
- } else {
559
- try {
560
- throw Error();
561
- } catch (x) {
562
- control = x;
563
- } // TODO(luna): This will currently only throw if the function component
564
- // tries to access React/ReactDOM/props. We should probably make this throw
565
- // in simple components too
566
-
567
-
568
- var maybePromise = fn(); // If the function component returns a promise, it's likely an async
569
- // component, which we don't yet support. Attach a noop catch handler to
570
- // silence the error.
571
- // TODO: Implement component stacks for async client components?
572
-
573
- if (maybePromise && typeof maybePromise.catch === 'function') {
574
- maybePromise.catch(function () {});
575
- }
576
- }
577
- } catch (sample) {
578
- // This is inlined manually because closure doesn't do it for us.
579
- if (sample && control && typeof sample.stack === 'string') {
580
- return [sample.stack, control.stack];
581
- }
80
+ if (JSCompiler_inline_result) {
81
+ JSCompiler_inline_result = console;
82
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
83
+ var JSCompiler_inline_result$jscomp$0 =
84
+ ("function" === typeof Symbol &&
85
+ Symbol.toStringTag &&
86
+ value[Symbol.toStringTag]) ||
87
+ value.constructor.name ||
88
+ "Object";
89
+ JSCompiler_temp_const.call(
90
+ JSCompiler_inline_result,
91
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
92
+ JSCompiler_inline_result$jscomp$0
93
+ );
94
+ return testStringCoercion(value);
582
95
  }
583
-
584
- return [null, null];
585
96
  }
586
- }; // $FlowFixMe[prop-missing]
587
-
588
- RunInRootFrame.DetermineComponentFrameRoot.displayName = 'DetermineComponentFrameRoot';
589
- var namePropDescriptor = Object.getOwnPropertyDescriptor(RunInRootFrame.DetermineComponentFrameRoot, 'name'); // Before ES6, the `name` property was not configurable.
590
-
591
- if (namePropDescriptor && namePropDescriptor.configurable) {
592
- // V8 utilizes a function's `name` property when generating a stack trace.
593
- Object.defineProperty(RunInRootFrame.DetermineComponentFrameRoot, // Configurable properties can be updated even if its writable descriptor
594
- // is set to `false`.
595
- // $FlowFixMe[cannot-write]
596
- 'name', {
597
- value: 'DetermineComponentFrameRoot'
598
- });
599
- }
600
-
601
- try {
602
- var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(),
603
- sampleStack = _RunInRootFrame$Deter[0],
604
- controlStack = _RunInRootFrame$Deter[1];
605
-
606
- if (sampleStack && controlStack) {
607
- // This extracts the first frame from the sample that isn't also in the control.
608
- // Skipping one frame that we assume is the frame that calls the two.
609
- var sampleLines = sampleStack.split('\n');
610
- var controlLines = controlStack.split('\n');
611
- var s = 0;
612
- var c = 0;
613
-
614
- while (s < sampleLines.length && !sampleLines[s].includes('DetermineComponentFrameRoot')) {
615
- s++;
97
+ function disabledLog() {}
98
+ function disableLogs() {
99
+ if (0 === disabledDepth) {
100
+ prevLog = console.log;
101
+ prevInfo = console.info;
102
+ prevWarn = console.warn;
103
+ prevError = console.error;
104
+ prevGroup = console.group;
105
+ prevGroupCollapsed = console.groupCollapsed;
106
+ prevGroupEnd = console.groupEnd;
107
+ var props = {
108
+ configurable: !0,
109
+ enumerable: !0,
110
+ value: disabledLog,
111
+ writable: !0
112
+ };
113
+ Object.defineProperties(console, {
114
+ info: props,
115
+ log: props,
116
+ warn: props,
117
+ error: props,
118
+ group: props,
119
+ groupCollapsed: props,
120
+ groupEnd: props
121
+ });
616
122
  }
617
-
618
- while (c < controlLines.length && !controlLines[c].includes('DetermineComponentFrameRoot')) {
619
- c++;
620
- } // We couldn't find our intentionally injected common root frame, attempt
621
- // to find another common root frame by search from the bottom of the
622
- // control stack...
623
-
624
-
625
- if (s === sampleLines.length || c === controlLines.length) {
626
- s = sampleLines.length - 1;
627
- c = controlLines.length - 1;
628
-
629
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
630
- // We expect at least one stack frame to be shared.
631
- // Typically this will be the root most one. However, stack frames may be
632
- // cut off due to maximum stack limits. In this case, one maybe cut off
633
- // earlier than the other. We assume that the sample is longer or the same
634
- // and there for cut off earlier. So we should find the root most frame in
635
- // the sample somewhere in the control.
636
- c--;
637
- }
123
+ disabledDepth++;
124
+ }
125
+ function reenableLogs() {
126
+ disabledDepth--;
127
+ if (0 === disabledDepth) {
128
+ var props = { configurable: !0, enumerable: !0, writable: !0 };
129
+ Object.defineProperties(console, {
130
+ log: assign({}, props, { value: prevLog }),
131
+ info: assign({}, props, { value: prevInfo }),
132
+ warn: assign({}, props, { value: prevWarn }),
133
+ error: assign({}, props, { value: prevError }),
134
+ group: assign({}, props, { value: prevGroup }),
135
+ groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
136
+ groupEnd: assign({}, props, { value: prevGroupEnd })
137
+ });
638
138
  }
639
-
640
- for (; s >= 1 && c >= 0; s--, c--) {
641
- // Next we find the first one that isn't the same which should be the
642
- // frame that called our sample function and the control.
643
- if (sampleLines[s] !== controlLines[c]) {
644
- // In V8, the first line is describing the message but other VMs don't.
645
- // If we're about to return the first line, and the control is also on the same
646
- // line, that's a pretty good indicator that our sample threw at same line as
647
- // the control. I.e. before we entered the sample frame. So we ignore this result.
648
- // This can happen if you passed a class to function component, or non-function.
649
- if (s !== 1 || c !== 1) {
650
- do {
651
- s--;
652
- c--; // We may still have similar intermediate frames from the construct call.
653
- // The next one that isn't the same should be our match though.
654
-
655
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
656
- // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
657
- var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
658
- // but we have a user-provided "displayName"
659
- // splice it in to make the stack more readable.
660
-
661
-
662
- if (fn.displayName && _frame.includes('<anonymous>')) {
663
- _frame = _frame.replace('<anonymous>', fn.displayName);
664
- }
665
-
666
- if (true) {
667
- if (typeof fn === 'function') {
668
- componentFrameCache.set(fn, _frame);
139
+ 0 > disabledDepth &&
140
+ console.error(
141
+ "disabledDepth fell below zero. This is a bug in React. Please file an issue."
142
+ );
143
+ }
144
+ function describeBuiltInComponentFrame(name) {
145
+ if (void 0 === prefix)
146
+ try {
147
+ throw Error();
148
+ } catch (x) {
149
+ var match = x.stack.trim().match(/\n( *(at )?)/);
150
+ prefix = (match && match[1]) || "";
151
+ suffix =
152
+ -1 < x.stack.indexOf("\n at")
153
+ ? " (<anonymous>)"
154
+ : -1 < x.stack.indexOf("@")
155
+ ? "@unknown:0:0"
156
+ : "";
157
+ }
158
+ return "\n" + prefix + name + suffix;
159
+ }
160
+ function describeNativeComponentFrame(fn, construct) {
161
+ if (!fn || reentry) return "";
162
+ var frame = componentFrameCache.get(fn);
163
+ if (void 0 !== frame) return frame;
164
+ reentry = !0;
165
+ frame = Error.prepareStackTrace;
166
+ Error.prepareStackTrace = void 0;
167
+ var previousDispatcher = null;
168
+ previousDispatcher = ReactSharedInternalsServer.H;
169
+ ReactSharedInternalsServer.H = null;
170
+ disableLogs();
171
+ try {
172
+ var RunInRootFrame = {
173
+ DetermineComponentFrameRoot: function () {
174
+ try {
175
+ if (construct) {
176
+ var Fake = function () {
177
+ throw Error();
178
+ };
179
+ Object.defineProperty(Fake.prototype, "props", {
180
+ set: function () {
181
+ throw Error();
669
182
  }
670
- } // Return the line we found.
671
-
672
-
673
- return _frame;
183
+ });
184
+ if ("object" === typeof Reflect && Reflect.construct) {
185
+ try {
186
+ Reflect.construct(Fake, []);
187
+ } catch (x) {
188
+ var control = x;
189
+ }
190
+ Reflect.construct(fn, [], Fake);
191
+ } else {
192
+ try {
193
+ Fake.call();
194
+ } catch (x$0) {
195
+ control = x$0;
196
+ }
197
+ fn.call(Fake.prototype);
198
+ }
199
+ } else {
200
+ try {
201
+ throw Error();
202
+ } catch (x$1) {
203
+ control = x$1;
204
+ }
205
+ (Fake = fn()) &&
206
+ "function" === typeof Fake.catch &&
207
+ Fake.catch(function () {});
674
208
  }
675
- } while (s >= 1 && c >= 0);
209
+ } catch (sample) {
210
+ if (sample && control && "string" === typeof sample.stack)
211
+ return [sample.stack, control.stack];
212
+ }
213
+ return [null, null];
676
214
  }
677
-
678
- break;
215
+ };
216
+ RunInRootFrame.DetermineComponentFrameRoot.displayName =
217
+ "DetermineComponentFrameRoot";
218
+ var namePropDescriptor = Object.getOwnPropertyDescriptor(
219
+ RunInRootFrame.DetermineComponentFrameRoot,
220
+ "name"
221
+ );
222
+ namePropDescriptor &&
223
+ namePropDescriptor.configurable &&
224
+ Object.defineProperty(
225
+ RunInRootFrame.DetermineComponentFrameRoot,
226
+ "name",
227
+ { value: "DetermineComponentFrameRoot" }
228
+ );
229
+ var _RunInRootFrame$Deter =
230
+ RunInRootFrame.DetermineComponentFrameRoot(),
231
+ sampleStack = _RunInRootFrame$Deter[0],
232
+ controlStack = _RunInRootFrame$Deter[1];
233
+ if (sampleStack && controlStack) {
234
+ var sampleLines = sampleStack.split("\n"),
235
+ controlLines = controlStack.split("\n");
236
+ for (
237
+ _RunInRootFrame$Deter = namePropDescriptor = 0;
238
+ namePropDescriptor < sampleLines.length &&
239
+ !sampleLines[namePropDescriptor].includes(
240
+ "DetermineComponentFrameRoot"
241
+ );
242
+
243
+ )
244
+ namePropDescriptor++;
245
+ for (
246
+ ;
247
+ _RunInRootFrame$Deter < controlLines.length &&
248
+ !controlLines[_RunInRootFrame$Deter].includes(
249
+ "DetermineComponentFrameRoot"
250
+ );
251
+
252
+ )
253
+ _RunInRootFrame$Deter++;
254
+ if (
255
+ namePropDescriptor === sampleLines.length ||
256
+ _RunInRootFrame$Deter === controlLines.length
257
+ )
258
+ for (
259
+ namePropDescriptor = sampleLines.length - 1,
260
+ _RunInRootFrame$Deter = controlLines.length - 1;
261
+ 1 <= namePropDescriptor &&
262
+ 0 <= _RunInRootFrame$Deter &&
263
+ sampleLines[namePropDescriptor] !==
264
+ controlLines[_RunInRootFrame$Deter];
265
+
266
+ )
267
+ _RunInRootFrame$Deter--;
268
+ for (
269
+ ;
270
+ 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter;
271
+ namePropDescriptor--, _RunInRootFrame$Deter--
272
+ )
273
+ if (
274
+ sampleLines[namePropDescriptor] !==
275
+ controlLines[_RunInRootFrame$Deter]
276
+ ) {
277
+ if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) {
278
+ do
279
+ if (
280
+ (namePropDescriptor--,
281
+ _RunInRootFrame$Deter--,
282
+ 0 > _RunInRootFrame$Deter ||
283
+ sampleLines[namePropDescriptor] !==
284
+ controlLines[_RunInRootFrame$Deter])
285
+ ) {
286
+ var _frame =
287
+ "\n" +
288
+ sampleLines[namePropDescriptor].replace(
289
+ " at new ",
290
+ " at "
291
+ );
292
+ fn.displayName &&
293
+ _frame.includes("<anonymous>") &&
294
+ (_frame = _frame.replace("<anonymous>", fn.displayName));
295
+ "function" === typeof fn &&
296
+ componentFrameCache.set(fn, _frame);
297
+ return _frame;
298
+ }
299
+ while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter);
300
+ }
301
+ break;
302
+ }
679
303
  }
304
+ } finally {
305
+ (reentry = !1),
306
+ (ReactSharedInternalsServer.H = previousDispatcher),
307
+ reenableLogs(),
308
+ (Error.prepareStackTrace = frame);
680
309
  }
681
- }
682
- } finally {
683
- reentry = false;
684
-
685
- {
686
- ReactSharedInternalsServer.H = previousDispatcher;
687
- reenableLogs();
688
- }
689
-
690
- Error.prepareStackTrace = previousPrepareStackTrace;
691
- } // Fallback to just using the name if we couldn't make it throw.
692
-
693
-
694
- var name = fn ? fn.displayName || fn.name : '';
695
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
696
-
697
- {
698
- if (typeof fn === 'function') {
699
- componentFrameCache.set(fn, syntheticFrame);
700
- }
701
- }
702
-
703
- return syntheticFrame;
704
- }
705
- function describeFunctionComponentFrame(fn) {
706
- {
707
- return describeNativeComponentFrame(fn, false);
708
- }
709
- }
710
-
711
- function shouldConstruct(Component) {
712
- var prototype = Component.prototype;
713
- return !!(prototype && prototype.isReactComponent);
714
- } // TODO: Delete this once the key warning no longer uses it. I.e. when enableOwnerStacks ship.
715
-
716
-
717
- function describeUnknownElementTypeFrameInDEV(type) {
718
-
719
- if (type == null) {
720
- return '';
721
- }
722
-
723
- if (typeof type === 'function') {
724
- {
725
- return describeNativeComponentFrame(type, shouldConstruct(type));
726
- }
727
- }
728
-
729
- if (typeof type === 'string') {
730
- return describeBuiltInComponentFrame(type);
731
- }
732
-
733
- switch (type) {
734
- case REACT_SUSPENSE_TYPE:
735
- return describeBuiltInComponentFrame('Suspense');
736
-
737
- case REACT_SUSPENSE_LIST_TYPE:
738
- return describeBuiltInComponentFrame('SuspenseList');
739
- }
740
-
741
- if (typeof type === 'object') {
742
- switch (type.$$typeof) {
743
- case REACT_FORWARD_REF_TYPE:
744
- return describeFunctionComponentFrame(type.render);
745
-
746
- case REACT_MEMO_TYPE:
747
- // Memo may contain any component type so we recursively resolve it.
748
- return describeUnknownElementTypeFrameInDEV(type.type);
749
-
750
- case REACT_LAZY_TYPE:
751
- {
752
- var lazyComponent = type;
753
- var payload = lazyComponent._payload;
754
- var init = lazyComponent._init;
755
-
756
- try {
757
- // Lazy may contain any component type so we recursively resolve it.
758
- return describeUnknownElementTypeFrameInDEV(init(payload));
759
- } catch (x) {}
310
+ sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "")
311
+ ? describeBuiltInComponentFrame(sampleLines)
312
+ : "";
313
+ "function" === typeof fn && componentFrameCache.set(fn, sampleLines);
314
+ return sampleLines;
315
+ }
316
+ function describeUnknownElementTypeFrameInDEV(type) {
317
+ if (null == type) return "";
318
+ if ("function" === typeof type) {
319
+ var prototype = type.prototype;
320
+ return describeNativeComponentFrame(
321
+ type,
322
+ !(!prototype || !prototype.isReactComponent)
323
+ );
324
+ }
325
+ if ("string" === typeof type) return describeBuiltInComponentFrame(type);
326
+ switch (type) {
327
+ case REACT_SUSPENSE_TYPE:
328
+ return describeBuiltInComponentFrame("Suspense");
329
+ case REACT_SUSPENSE_LIST_TYPE:
330
+ return describeBuiltInComponentFrame("SuspenseList");
331
+ }
332
+ if ("object" === typeof type)
333
+ switch (type.$$typeof) {
334
+ case REACT_FORWARD_REF_TYPE:
335
+ return (type = describeNativeComponentFrame(type.render, !1)), type;
336
+ case REACT_MEMO_TYPE:
337
+ return describeUnknownElementTypeFrameInDEV(type.type);
338
+ case REACT_LAZY_TYPE:
339
+ prototype = type._payload;
340
+ type = type._init;
341
+ try {
342
+ return describeUnknownElementTypeFrameInDEV(type(prototype));
343
+ } catch (x) {}
760
344
  }
345
+ return "";
761
346
  }
762
- }
763
-
764
- return '';
765
- }
766
-
767
- var REACT_CLIENT_REFERENCE = Symbol.for('react.client.reference');
768
-
769
- function getOwner() {
770
- {
771
- var dispatcher = ReactSharedInternalsServer.A;
772
-
773
- if (dispatcher === null) {
774
- return null;
347
+ function getOwner() {
348
+ var dispatcher = ReactSharedInternalsServer.A;
349
+ return null === dispatcher ? null : dispatcher.getOwner();
775
350
  }
776
-
777
- return dispatcher.getOwner();
778
- }
779
- }
780
-
781
- var specialPropKeyWarningShown;
782
- var didWarnAboutElementRef;
783
-
784
- {
785
- didWarnAboutElementRef = {};
786
- }
787
-
788
- function hasValidRef(config) {
789
- {
790
- if (hasOwnProperty.call(config, 'ref')) {
791
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
792
-
793
- if (getter && getter.isReactWarning) {
794
- return false;
351
+ function hasValidKey(config) {
352
+ if (hasOwnProperty.call(config, "key")) {
353
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
354
+ if (getter && getter.isReactWarning) return !1;
795
355
  }
796
- }
797
- }
798
-
799
- return config.ref !== undefined;
800
- }
801
-
802
- function hasValidKey(config) {
803
- {
804
- if (hasOwnProperty.call(config, 'key')) {
805
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
806
-
807
- if (getter && getter.isReactWarning) {
808
- return false;
356
+ return void 0 !== config.key;
357
+ }
358
+ function defineKeyPropWarningGetter(props, displayName) {
359
+ function warnAboutAccessingKey() {
360
+ specialPropKeyWarningShown ||
361
+ ((specialPropKeyWarningShown = !0),
362
+ console.error(
363
+ "%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)",
364
+ displayName
365
+ ));
809
366
  }
367
+ warnAboutAccessingKey.isReactWarning = !0;
368
+ Object.defineProperty(props, "key", {
369
+ get: warnAboutAccessingKey,
370
+ configurable: !0
371
+ });
810
372
  }
811
- }
812
-
813
- return config.key !== undefined;
814
- }
815
-
816
- function defineKeyPropWarningGetter(props, displayName) {
817
- {
818
- var warnAboutAccessingKey = function () {
819
- if (!specialPropKeyWarningShown) {
820
- specialPropKeyWarningShown = true;
821
-
822
- error('%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)', displayName);
823
- }
824
- };
825
-
826
- warnAboutAccessingKey.isReactWarning = true;
827
- Object.defineProperty(props, 'key', {
828
- get: warnAboutAccessingKey,
829
- configurable: true
830
- });
831
- }
832
- }
833
-
834
- function elementRefGetterWithDeprecationWarning() {
835
- {
836
- var componentName = getComponentNameFromType(this.type);
837
-
838
- if (!didWarnAboutElementRef[componentName]) {
839
- didWarnAboutElementRef[componentName] = true;
840
-
841
- error('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.');
842
- } // An undefined `element.ref` is coerced to `null` for
843
- // backwards compatibility.
844
-
845
-
846
- var refProp = this.props.ref;
847
- return refProp !== undefined ? refProp : null;
848
- }
849
- }
850
- /**
851
- * Factory method to create a new React element. This no longer adheres to
852
- * the class pattern, so do not use new to call it. Also, instanceof check
853
- * will not work. Instead test $$typeof field against Symbol.for('react.transitional.element') to check
854
- * if something is a React Element.
855
- *
856
- * @param {*} type
857
- * @param {*} props
858
- * @param {*} key
859
- * @param {string|object} ref
860
- * @param {*} owner
861
- * @param {*} self A *temporary* helper to detect places where `this` is
862
- * different from the `owner` when React.createElement is called, so that we
863
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
864
- * functions, and as long as `this` and owner are the same, there will be no
865
- * change in behavior.
866
- * @param {*} source An annotation object (added by a transpiler or otherwise)
867
- * indicating filename, line number, and/or other information.
868
- * @internal
869
- */
870
-
871
-
872
- function ReactElement(type, key, _ref, self, source, owner, props, debugStack, debugTask) {
873
- var ref;
874
-
875
- {
876
- // When enableRefAsProp is on, ignore whatever was passed as the ref
877
- // argument and treat `props.ref` as the source of truth. The only thing we
878
- // use this for is `element.ref`, which will log a deprecation warning on
879
- // access. In the next release, we can remove `element.ref` as well as the
880
- // `ref` argument.
881
- var refProp = props.ref; // An undefined `element.ref` is coerced to `null` for
882
- // backwards compatibility.
883
-
884
- ref = refProp !== undefined ? refProp : null;
885
- }
886
-
887
- var element;
888
-
889
- {
890
- // In dev, make `ref` a non-enumerable property with a warning. It's non-
891
- // enumerable so that test matchers and serializers don't access it and
892
- // trigger the warning.
893
- //
894
- // `ref` will be removed from the element completely in a future release.
895
- element = {
896
- // This tag allows us to uniquely identify this as a React Element
897
- $$typeof: REACT_ELEMENT_TYPE,
898
- // Built-in properties that belong on the element
899
- type: type,
900
- key: key,
901
- props: props,
902
- // Record the component responsible for creating this element.
903
- _owner: owner
904
- };
905
-
906
- if (ref !== null) {
907
- Object.defineProperty(element, 'ref', {
908
- enumerable: false,
909
- get: elementRefGetterWithDeprecationWarning
373
+ function elementRefGetterWithDeprecationWarning() {
374
+ var componentName = getComponentNameFromType(this.type);
375
+ didWarnAboutElementRef[componentName] ||
376
+ ((didWarnAboutElementRef[componentName] = !0),
377
+ console.error(
378
+ "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."
379
+ ));
380
+ componentName = this.props.ref;
381
+ return void 0 !== componentName ? componentName : null;
382
+ }
383
+ function ReactElement(type, key, self, source, owner, props) {
384
+ self = props.ref;
385
+ type = {
386
+ $$typeof: REACT_ELEMENT_TYPE,
387
+ type: type,
388
+ key: key,
389
+ props: props,
390
+ _owner: owner
391
+ };
392
+ null !== (void 0 !== self ? self : null)
393
+ ? Object.defineProperty(type, "ref", {
394
+ enumerable: !1,
395
+ get: elementRefGetterWithDeprecationWarning
396
+ })
397
+ : Object.defineProperty(type, "ref", { enumerable: !1, value: null });
398
+ type._store = {};
399
+ Object.defineProperty(type._store, "validated", {
400
+ configurable: !1,
401
+ enumerable: !1,
402
+ writable: !0,
403
+ value: 0
910
404
  });
911
- } else {
912
- // Don't warn on access if a ref is not given. This reduces false
913
- // positives in cases where a test serializer uses
914
- // getOwnPropertyDescriptors to compare objects, like Jest does, which is
915
- // a problem because it bypasses non-enumerability.
916
- //
917
- // So unfortunately this will trigger a false positive warning in Jest
918
- // when the diff is printed:
919
- //
920
- // expect(<div ref={ref} />).toEqual(<span ref={ref} />);
921
- //
922
- // A bit sketchy, but this is what we've done for the `props.key` and
923
- // `props.ref` accessors for years, which implies it will be good enough
924
- // for `element.ref`, too. Let's see if anyone complains.
925
- Object.defineProperty(element, 'ref', {
926
- enumerable: false,
405
+ Object.defineProperty(type, "_debugInfo", {
406
+ configurable: !1,
407
+ enumerable: !1,
408
+ writable: !0,
927
409
  value: null
928
410
  });
929
- }
930
- }
931
-
932
- {
933
- // The validation flag is currently mutative. We put it on
934
- // an external backing store so that we can freeze the whole object.
935
- // This can be replaced with a WeakMap once they are implemented in
936
- // commonly used development environments.
937
- element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
938
- // the validation flag non-enumerable (where possible, which should
939
- // include every environment we run tests in), so the test framework
940
- // ignores it.
941
-
942
- Object.defineProperty(element._store, 'validated', {
943
- configurable: false,
944
- enumerable: false,
945
- writable: true,
946
- value: 0
947
- }); // debugInfo contains Server Component debug information.
948
-
949
- Object.defineProperty(element, '_debugInfo', {
950
- configurable: false,
951
- enumerable: false,
952
- writable: true,
953
- value: null
954
- });
955
-
956
- if (Object.freeze) {
957
- Object.freeze(element.props);
958
- Object.freeze(element);
959
- }
960
- }
961
-
962
- return element;
963
- }
964
- // support `jsx` and `jsxs` when running in development. This supports the case
965
- // where a third-party dependency ships code that was compiled for production;
966
- // we want to still provide warnings in development.
967
- //
968
- // So these functions are the _dev_ implementations of the _production_
969
- // API signatures.
970
- //
971
- // Since these functions are dev-only, it's ok to add an indirection here. They
972
- // only exist to provide different versions of `isStaticChildren`. (We shouldn't
973
- // use this pattern for the prod versions, though, because it will add an call
974
- // frame.)
975
-
976
- function jsxProdSignatureRunningInDevWithDynamicChildren(type, config, maybeKey, source, self) {
977
- {
978
- var isStaticChildren = false;
979
- return jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self);
980
- }
981
- }
982
- function jsxProdSignatureRunningInDevWithStaticChildren(type, config, maybeKey, source, self) {
983
- {
984
- var isStaticChildren = true;
985
- return jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self);
986
- }
987
- }
988
- var didWarnAboutKeySpread = {};
989
- /**
990
- * https://github.com/reactjs/rfcs/pull/107
991
- * @param {*} type
992
- * @param {object} props
993
- * @param {string} key
994
- */
995
-
996
- function jsxDEV$1(type, config, maybeKey, isStaticChildren, source, self) {
997
- return jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self);
998
- }
999
-
1000
- function jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self, debugStack, debugTask) {
1001
- {
1002
- if (!isValidElementType(type)) {
1003
- // This is an invalid element type.
1004
- //
1005
- // We warn in this case but don't throw. We expect the element creation to
1006
- // succeed and there will likely be errors in render.
1007
- var info = '';
1008
-
1009
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
1010
- info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
1011
- }
1012
-
1013
- var typeString;
1014
-
1015
- if (type === null) {
1016
- typeString = 'null';
1017
- } else if (isArray(type)) {
1018
- typeString = 'array';
1019
- } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
1020
- typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
1021
- info = ' Did you accidentally export a JSX literal instead of a component?';
411
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
412
+ return type;
413
+ }
414
+ function jsxDEVImpl(
415
+ type,
416
+ config,
417
+ maybeKey,
418
+ isStaticChildren,
419
+ source,
420
+ self
421
+ ) {
422
+ if (
423
+ "string" === typeof type ||
424
+ "function" === typeof type ||
425
+ type === REACT_FRAGMENT_TYPE ||
426
+ type === REACT_PROFILER_TYPE ||
427
+ type === REACT_STRICT_MODE_TYPE ||
428
+ type === REACT_SUSPENSE_TYPE ||
429
+ type === REACT_SUSPENSE_LIST_TYPE ||
430
+ type === REACT_OFFSCREEN_TYPE ||
431
+ ("object" === typeof type &&
432
+ null !== type &&
433
+ (type.$$typeof === REACT_LAZY_TYPE ||
434
+ type.$$typeof === REACT_MEMO_TYPE ||
435
+ type.$$typeof === REACT_CONTEXT_TYPE ||
436
+ type.$$typeof === REACT_CONSUMER_TYPE ||
437
+ type.$$typeof === REACT_FORWARD_REF_TYPE ||
438
+ type.$$typeof === REACT_CLIENT_REFERENCE$1 ||
439
+ void 0 !== type.getModuleId))
440
+ ) {
441
+ var children = config.children;
442
+ if (void 0 !== children)
443
+ if (isStaticChildren)
444
+ if (isArrayImpl(children)) {
445
+ for (
446
+ isStaticChildren = 0;
447
+ isStaticChildren < children.length;
448
+ isStaticChildren++
449
+ )
450
+ validateChildKeys(children[isStaticChildren], type);
451
+ Object.freeze && Object.freeze(children);
452
+ } else
453
+ console.error(
454
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
455
+ );
456
+ else validateChildKeys(children, type);
1022
457
  } else {
1023
- typeString = typeof type;
458
+ children = "";
459
+ if (
460
+ void 0 === type ||
461
+ ("object" === typeof type &&
462
+ null !== type &&
463
+ 0 === Object.keys(type).length)
464
+ )
465
+ children +=
466
+ " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
467
+ null === type
468
+ ? (isStaticChildren = "null")
469
+ : isArrayImpl(type)
470
+ ? (isStaticChildren = "array")
471
+ : void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
472
+ ? ((isStaticChildren =
473
+ "<" +
474
+ (getComponentNameFromType(type.type) || "Unknown") +
475
+ " />"),
476
+ (children =
477
+ " Did you accidentally export a JSX literal instead of a component?"))
478
+ : (isStaticChildren = typeof type);
479
+ console.error(
480
+ "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
481
+ isStaticChildren,
482
+ children
483
+ );
1024
484
  }
1025
-
1026
- error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
1027
- } else {
1028
- // This is a valid element type.
1029
- // Skip key warning if the type isn't valid since our key validation logic
1030
- // doesn't expect a non-string/function type and can throw confusing
1031
- // errors. We don't want exception behavior to differ between dev and
1032
- // prod. (Rendering will throw with a helpful message and as soon as the
1033
- // type is fixed, the key warnings will appear.)
1034
- var children = config.children;
1035
-
1036
- if (children !== undefined) {
1037
- if (isStaticChildren) {
1038
- if (isArray(children)) {
1039
- for (var i = 0; i < children.length; i++) {
1040
- validateChildKeys(children[i], type);
1041
- }
1042
-
1043
- if (Object.freeze) {
1044
- Object.freeze(children);
1045
- }
1046
- } else {
1047
- error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');
1048
- }
1049
- } else {
1050
- validateChildKeys(children, type);
1051
- }
485
+ if (hasOwnProperty.call(config, "key")) {
486
+ children = getComponentNameFromType(type);
487
+ var keys = Object.keys(config).filter(function (k) {
488
+ return "key" !== k;
489
+ });
490
+ isStaticChildren =
491
+ 0 < keys.length
492
+ ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
493
+ : "{key: someKey}";
494
+ didWarnAboutKeySpread[children + isStaticChildren] ||
495
+ ((keys =
496
+ 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
497
+ console.error(
498
+ '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} />',
499
+ isStaticChildren,
500
+ children,
501
+ keys,
502
+ children
503
+ ),
504
+ (didWarnAboutKeySpread[children + isStaticChildren] = !0));
1052
505
  }
1053
- } // Warn about key spread regardless of whether the type is valid.
1054
-
1055
-
1056
- if (hasOwnProperty.call(config, 'key')) {
1057
- var componentName = getComponentNameFromType(type);
1058
- var keys = Object.keys(config).filter(function (k) {
1059
- return k !== 'key';
1060
- });
1061
- var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
1062
-
1063
- if (!didWarnAboutKeySpread[componentName + beforeExample]) {
1064
- var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
1065
-
1066
- error('A props object containing a "key" prop is being spread into JSX:\n' + ' let props = %s;\n' + ' <%s {...props} />\n' + 'React keys must be passed directly to JSX without using spread:\n' + ' let props = %s;\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
1067
-
1068
- didWarnAboutKeySpread[componentName + beforeExample] = true;
1069
- }
1070
- }
1071
-
1072
- var key = null;
1073
- var ref = null; // Currently, key can be spread in as a prop. This causes a potential
1074
- // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
1075
- // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
1076
- // but as an intermediary step, we will use jsxDEV for everything except
1077
- // <div {...props} key="Hi" />, because we aren't currently able to tell if
1078
- // key is explicitly declared to be undefined or not.
1079
-
1080
- if (maybeKey !== undefined) {
1081
- {
1082
- checkKeyStringCoercion(maybeKey);
1083
- }
1084
-
1085
- key = '' + maybeKey;
1086
- }
1087
-
1088
- if (hasValidKey(config)) {
1089
- {
1090
- checkKeyStringCoercion(config.key);
1091
- }
1092
-
1093
- key = '' + config.key;
1094
- }
1095
-
1096
- if (hasValidRef(config)) ;
1097
-
1098
- var props;
1099
-
1100
- if (!('key' in config)) {
1101
- // If key was not spread in, we can reuse the original props object. This
1102
- // only works for `jsx`, not `createElement`, because `jsx` is a compiler
1103
- // target and the compiler always passes a new object. For `createElement`,
1104
- // we can't assume a new object is passed every time because it can be
1105
- // called manually.
1106
- //
1107
- // Spreading key is a warning in dev. In a future release, we will not
1108
- // remove a spread key from the props object. (But we'll still warn.) We'll
1109
- // always pass the object straight through.
1110
- props = config;
1111
- } else {
1112
- // We need to remove reserved props (key, prop, ref). Create a fresh props
1113
- // object and copy over all the non-reserved props. We don't use `delete`
1114
- // because in V8 it will deopt the object to dictionary mode.
1115
- props = {};
1116
-
1117
- for (var propName in config) {
1118
- // Skip over reserved prop names
1119
- if (propName !== 'key' && (enableRefAsProp )) {
1120
- {
1121
- props[propName] = config[propName];
506
+ children = null;
507
+ void 0 !== maybeKey &&
508
+ (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
509
+ hasValidKey(config) &&
510
+ (checkKeyStringCoercion(config.key), (children = "" + config.key));
511
+ if ("key" in config) {
512
+ maybeKey = {};
513
+ for (var propName in config)
514
+ "key" !== propName && (maybeKey[propName] = config[propName]);
515
+ } else maybeKey = config;
516
+ children &&
517
+ defineKeyPropWarningGetter(
518
+ maybeKey,
519
+ "function" === typeof type
520
+ ? type.displayName || type.name || "Unknown"
521
+ : type
522
+ );
523
+ return ReactElement(type, children, self, source, getOwner(), maybeKey);
524
+ }
525
+ function validateChildKeys(node, parentType) {
526
+ if (
527
+ "object" === typeof node &&
528
+ node &&
529
+ node.$$typeof !== REACT_CLIENT_REFERENCE
530
+ )
531
+ if (isArrayImpl(node))
532
+ for (var i = 0; i < node.length; i++) {
533
+ var child = node[i];
534
+ isValidElement(child) && validateExplicitKey(child, parentType);
1122
535
  }
1123
- }
1124
- }
1125
- }
1126
-
1127
- if (key || !enableRefAsProp ) {
1128
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
1129
-
1130
- if (key) {
1131
- defineKeyPropWarningGetter(props, displayName);
536
+ else if (isValidElement(node))
537
+ node._store && (node._store.validated = 1);
538
+ else if (
539
+ (null === node || "object" !== typeof node
540
+ ? (i = null)
541
+ : ((i =
542
+ (MAYBE_ITERATOR_SYMBOL && node[MAYBE_ITERATOR_SYMBOL]) ||
543
+ node["@@iterator"]),
544
+ (i = "function" === typeof i ? i : null)),
545
+ "function" === typeof i &&
546
+ i !== node.entries &&
547
+ ((i = i.call(node)), i !== node))
548
+ )
549
+ for (; !(node = i.next()).done; )
550
+ isValidElement(node.value) &&
551
+ validateExplicitKey(node.value, parentType);
552
+ }
553
+ function isValidElement(object) {
554
+ return (
555
+ "object" === typeof object &&
556
+ null !== object &&
557
+ object.$$typeof === REACT_ELEMENT_TYPE
558
+ );
559
+ }
560
+ function validateExplicitKey(element, parentType) {
561
+ if (
562
+ element._store &&
563
+ !element._store.validated &&
564
+ null == element.key &&
565
+ ((element._store.validated = 1),
566
+ (parentType = getCurrentComponentErrorInfo(parentType)),
567
+ !ownerHasKeyUseWarning[parentType])
568
+ ) {
569
+ ownerHasKeyUseWarning[parentType] = !0;
570
+ var childOwner = "";
571
+ element &&
572
+ null != element._owner &&
573
+ element._owner !== getOwner() &&
574
+ ((childOwner = null),
575
+ "number" === typeof element._owner.tag
576
+ ? (childOwner = getComponentNameFromType(element._owner.type))
577
+ : "string" === typeof element._owner.name &&
578
+ (childOwner = element._owner.name),
579
+ (childOwner = " It was passed a child from " + childOwner + "."));
580
+ var prevGetCurrentStack = ReactSharedInternalsServer.getCurrentStack;
581
+ ReactSharedInternalsServer.getCurrentStack = function () {
582
+ var stack = describeUnknownElementTypeFrameInDEV(element.type);
583
+ prevGetCurrentStack && (stack += prevGetCurrentStack() || "");
584
+ return stack;
585
+ };
586
+ console.error(
587
+ 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
588
+ parentType,
589
+ childOwner
590
+ );
591
+ ReactSharedInternalsServer.getCurrentStack = prevGetCurrentStack;
1132
592
  }
1133
593
  }
1134
-
1135
- return ReactElement(type, key, ref, self, source, getOwner(), props);
1136
- }
1137
- }
1138
- /**
1139
- * Ensure that every element either is passed in a static location, in an
1140
- * array with an explicit keys property defined, or in an object literal
1141
- * with valid key property.
1142
- *
1143
- * @internal
1144
- * @param {ReactNode} node Statically passed child of any type.
1145
- * @param {*} parentType node's parent's type.
1146
- */
1147
-
1148
- function validateChildKeys(node, parentType) {
1149
- {
1150
- if (typeof node !== 'object' || !node) {
1151
- return;
1152
- }
1153
-
1154
- if (node.$$typeof === REACT_CLIENT_REFERENCE) ; else if (isArray(node)) {
1155
- for (var i = 0; i < node.length; i++) {
1156
- var child = node[i];
1157
-
1158
- if (isValidElement(child)) {
1159
- validateExplicitKey(child, parentType);
1160
- }
1161
- }
1162
- } else if (isValidElement(node)) {
1163
- // This element was passed in a valid location.
1164
- if (node._store) {
1165
- node._store.validated = 1;
1166
- }
1167
- } else {
1168
- var iteratorFn = getIteratorFn(node);
1169
-
1170
- if (typeof iteratorFn === 'function') {
1171
- // Entry iterators used to provide implicit keys,
1172
- // but now we print a separate warning for them later.
1173
- if (iteratorFn !== node.entries) {
1174
- var iterator = iteratorFn.call(node);
1175
-
1176
- if (iterator !== node) {
1177
- var step;
1178
-
1179
- while (!(step = iterator.next()).done) {
1180
- if (isValidElement(step.value)) {
1181
- validateExplicitKey(step.value, parentType);
1182
- }
1183
- }
1184
- }
1185
- }
1186
- }
1187
- }
1188
- }
1189
- }
1190
- /**
1191
- * Verifies the object is a ReactElement.
1192
- * See https://reactjs.org/docs/react-api.html#isvalidelement
1193
- * @param {?object} object
1194
- * @return {boolean} True if `object` is a ReactElement.
1195
- * @final
1196
- */
1197
-
1198
-
1199
- function isValidElement(object) {
1200
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1201
- }
1202
- var ownerHasKeyUseWarning = {};
1203
- /**
1204
- * Warn if the element doesn't have an explicit key assigned to it.
1205
- * This element is in an array. The array could grow and shrink or be
1206
- * reordered. All children that haven't already been validated are required to
1207
- * have a "key" property assigned to it. Error statuses are cached so a warning
1208
- * will only be shown once.
1209
- *
1210
- * @internal
1211
- * @param {ReactElement} element Element that requires a key.
1212
- * @param {*} parentType element's parent's type.
1213
- */
1214
-
1215
- function validateExplicitKey(element, parentType) {
1216
-
1217
- {
1218
- if (!element._store || element._store.validated || element.key != null) {
1219
- return;
1220
- }
1221
-
1222
- element._store.validated = 1;
1223
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1224
-
1225
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1226
- return;
1227
- }
1228
-
1229
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
1230
- // property, it may be the creator of the child that's responsible for
1231
- // assigning it a key.
1232
-
1233
- var childOwner = '';
1234
-
1235
- if (element && element._owner != null && element._owner !== getOwner()) {
1236
- var ownerName = null;
1237
-
1238
- if (typeof element._owner.tag === 'number') {
1239
- ownerName = getComponentNameFromType(element._owner.type);
1240
- } else if (typeof element._owner.name === 'string') {
1241
- ownerName = element._owner.name;
1242
- } // Give the component that originally created this child.
1243
-
1244
-
1245
- childOwner = " It was passed a child from " + ownerName + ".";
1246
- }
1247
-
1248
- var prevGetCurrentStack = ReactSharedInternalsServer.getCurrentStack;
1249
-
1250
- ReactSharedInternalsServer.getCurrentStack = function () {
1251
-
1252
- var stack = describeUnknownElementTypeFrameInDEV(element.type); // Delegate to the injected renderer-specific implementation
1253
-
1254
- if (prevGetCurrentStack) {
1255
- stack += prevGetCurrentStack() || '';
1256
- }
1257
-
1258
- return stack;
594
+ function getCurrentComponentErrorInfo(parentType) {
595
+ var info = "",
596
+ owner = getOwner();
597
+ owner &&
598
+ (owner = getComponentNameFromType(owner.type)) &&
599
+ (info = "\n\nCheck the render method of `" + owner + "`.");
600
+ info ||
601
+ ((parentType = getComponentNameFromType(parentType)) &&
602
+ (info =
603
+ "\n\nCheck the top-level render call using <" + parentType + ">."));
604
+ return info;
605
+ }
606
+ var React = require("react"),
607
+ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
608
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
609
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
610
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
611
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler");
612
+ Symbol.for("react.provider");
613
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
614
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
615
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
616
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
617
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
618
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
619
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
620
+ REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
621
+ MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
622
+ REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"),
623
+ ReactSharedInternalsServer =
624
+ React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
625
+ if (!ReactSharedInternalsServer)
626
+ throw Error(
627
+ 'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
628
+ );
629
+ var hasOwnProperty = Object.prototype.hasOwnProperty,
630
+ assign = Object.assign,
631
+ REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"),
632
+ isArrayImpl = Array.isArray,
633
+ disabledDepth = 0,
634
+ prevLog,
635
+ prevInfo,
636
+ prevWarn,
637
+ prevError,
638
+ prevGroup,
639
+ prevGroupCollapsed,
640
+ prevGroupEnd;
641
+ disabledLog.__reactDisabledLog = !0;
642
+ var prefix,
643
+ suffix,
644
+ reentry = !1;
645
+ var componentFrameCache = new (
646
+ "function" === typeof WeakMap ? WeakMap : Map
647
+ )();
648
+ var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
649
+ specialPropKeyWarningShown;
650
+ var didWarnAboutElementRef = {};
651
+ var didWarnAboutKeySpread = {},
652
+ ownerHasKeyUseWarning = {};
653
+ exports.Fragment = REACT_FRAGMENT_TYPE;
654
+ exports.jsx = function (type, config, maybeKey, source, self) {
655
+ return jsxDEVImpl(type, config, maybeKey, !1, source, self);
656
+ };
657
+ exports.jsxDEV = function (
658
+ type,
659
+ config,
660
+ maybeKey,
661
+ isStaticChildren,
662
+ source,
663
+ self
664
+ ) {
665
+ return jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self);
666
+ };
667
+ exports.jsxs = function (type, config, maybeKey, source, self) {
668
+ return jsxDEVImpl(type, config, maybeKey, !0, source, self);
1259
669
  };
1260
-
1261
- error('Each child in a list should have a unique "key" prop.' + '%s%s See https://react.dev/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
1262
-
1263
- ReactSharedInternalsServer.getCurrentStack = prevGetCurrentStack;
1264
- }
1265
- }
1266
-
1267
- function getCurrentComponentErrorInfo(parentType) {
1268
- {
1269
- var info = '';
1270
- var owner = getOwner();
1271
-
1272
- if (owner) {
1273
- var name = getComponentNameFromType(owner.type);
1274
-
1275
- if (name) {
1276
- info = '\n\nCheck the render method of `' + name + '`.';
1277
- }
1278
- }
1279
-
1280
- if (!info) {
1281
- var parentName = getComponentNameFromType(parentType);
1282
-
1283
- if (parentName) {
1284
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1285
- }
1286
- }
1287
-
1288
- return info;
1289
- }
1290
- }
1291
-
1292
- var jsx = jsxProdSignatureRunningInDevWithDynamicChildren ; // we may want to special case jsxs internally to take advantage of static children.
1293
- // for now we can ship identical prod functions
1294
-
1295
- var jsxs = jsxProdSignatureRunningInDevWithStaticChildren ;
1296
- var jsxDEV = jsxDEV$1 ;
1297
-
1298
- exports.Fragment = REACT_FRAGMENT_TYPE;
1299
- exports.jsx = jsx;
1300
- exports.jsxDEV = jsxDEV;
1301
- exports.jsxs = jsxs;
1302
670
  })();
1303
- }