@streamlayer/react 0.7.0 → 0.8.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.
- package/lib/cjs/index.js +249 -3050
- package/lib/esm/index.js +345 -3139
- package/lib/index.d.ts +1 -1
- package/package.json +1 -1
package/lib/cjs/index.js
CHANGED
|
@@ -240,3040 +240,261 @@ var init_process = __esm({
|
|
|
240
240
|
}
|
|
241
241
|
});
|
|
242
242
|
|
|
243
|
-
// node_modules/.pnpm/react@
|
|
244
|
-
var
|
|
245
|
-
"node_modules/.pnpm/react@
|
|
246
|
-
"use strict";
|
|
247
|
-
init_process();
|
|
248
|
-
if (true) {
|
|
249
|
-
(function() {
|
|
250
|
-
"use strict";
|
|
251
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
252
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
253
|
-
}
|
|
254
|
-
var ReactVersion = "18.2.0";
|
|
255
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
256
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
257
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
258
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
259
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
260
|
-
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
261
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
262
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
263
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
264
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
265
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
266
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
267
|
-
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
268
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
269
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
270
|
-
function getIteratorFn(maybeIterable) {
|
|
271
|
-
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
272
|
-
return null;
|
|
273
|
-
}
|
|
274
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
275
|
-
if (typeof maybeIterator === "function") {
|
|
276
|
-
return maybeIterator;
|
|
277
|
-
}
|
|
278
|
-
return null;
|
|
279
|
-
}
|
|
280
|
-
var ReactCurrentDispatcher = {
|
|
281
|
-
/**
|
|
282
|
-
* @internal
|
|
283
|
-
* @type {ReactComponent}
|
|
284
|
-
*/
|
|
285
|
-
current: null
|
|
286
|
-
};
|
|
287
|
-
var ReactCurrentBatchConfig = {
|
|
288
|
-
transition: null
|
|
289
|
-
};
|
|
290
|
-
var ReactCurrentActQueue = {
|
|
291
|
-
current: null,
|
|
292
|
-
// Used to reproduce behavior of `batchedUpdates` in legacy mode.
|
|
293
|
-
isBatchingLegacy: false,
|
|
294
|
-
didScheduleLegacyUpdate: false
|
|
295
|
-
};
|
|
296
|
-
var ReactCurrentOwner = {
|
|
297
|
-
/**
|
|
298
|
-
* @internal
|
|
299
|
-
* @type {ReactComponent}
|
|
300
|
-
*/
|
|
301
|
-
current: null
|
|
302
|
-
};
|
|
303
|
-
var ReactDebugCurrentFrame = {};
|
|
304
|
-
var currentExtraStackFrame = null;
|
|
305
|
-
function setExtraStackFrame(stack) {
|
|
306
|
-
{
|
|
307
|
-
currentExtraStackFrame = stack;
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
{
|
|
311
|
-
ReactDebugCurrentFrame.setExtraStackFrame = function(stack) {
|
|
312
|
-
{
|
|
313
|
-
currentExtraStackFrame = stack;
|
|
314
|
-
}
|
|
315
|
-
};
|
|
316
|
-
ReactDebugCurrentFrame.getCurrentStack = null;
|
|
317
|
-
ReactDebugCurrentFrame.getStackAddendum = function() {
|
|
318
|
-
var stack = "";
|
|
319
|
-
if (currentExtraStackFrame) {
|
|
320
|
-
stack += currentExtraStackFrame;
|
|
321
|
-
}
|
|
322
|
-
var impl = ReactDebugCurrentFrame.getCurrentStack;
|
|
323
|
-
if (impl) {
|
|
324
|
-
stack += impl() || "";
|
|
325
|
-
}
|
|
326
|
-
return stack;
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
var enableScopeAPI = false;
|
|
330
|
-
var enableCacheElement = false;
|
|
331
|
-
var enableTransitionTracing = false;
|
|
332
|
-
var enableLegacyHidden = false;
|
|
333
|
-
var enableDebugTracing = false;
|
|
334
|
-
var ReactSharedInternals = {
|
|
335
|
-
ReactCurrentDispatcher,
|
|
336
|
-
ReactCurrentBatchConfig,
|
|
337
|
-
ReactCurrentOwner
|
|
338
|
-
};
|
|
339
|
-
{
|
|
340
|
-
ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
|
|
341
|
-
ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
|
|
342
|
-
}
|
|
343
|
-
function warn(format4) {
|
|
344
|
-
{
|
|
345
|
-
{
|
|
346
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
347
|
-
args[_key - 1] = arguments[_key];
|
|
348
|
-
}
|
|
349
|
-
printWarning("warn", format4, args);
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
function error(format4) {
|
|
354
|
-
{
|
|
355
|
-
{
|
|
356
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
357
|
-
args[_key2 - 1] = arguments[_key2];
|
|
358
|
-
}
|
|
359
|
-
printWarning("error", format4, args);
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
function printWarning(level, format4, args) {
|
|
364
|
-
{
|
|
365
|
-
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
366
|
-
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
367
|
-
if (stack !== "") {
|
|
368
|
-
format4 += "%s";
|
|
369
|
-
args = args.concat([stack]);
|
|
370
|
-
}
|
|
371
|
-
var argsWithFormat = args.map(function(item) {
|
|
372
|
-
return String(item);
|
|
373
|
-
});
|
|
374
|
-
argsWithFormat.unshift("Warning: " + format4);
|
|
375
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
var didWarnStateUpdateForUnmountedComponent = {};
|
|
379
|
-
function warnNoop(publicInstance, callerName) {
|
|
380
|
-
{
|
|
381
|
-
var _constructor = publicInstance.constructor;
|
|
382
|
-
var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass";
|
|
383
|
-
var warningKey = componentName + "." + callerName;
|
|
384
|
-
if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
|
|
385
|
-
return;
|
|
386
|
-
}
|
|
387
|
-
error("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.", callerName, componentName);
|
|
388
|
-
didWarnStateUpdateForUnmountedComponent[warningKey] = true;
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
var ReactNoopUpdateQueue = {
|
|
392
|
-
/**
|
|
393
|
-
* Checks whether or not this composite component is mounted.
|
|
394
|
-
* @param {ReactClass} publicInstance The instance we want to test.
|
|
395
|
-
* @return {boolean} True if mounted, false otherwise.
|
|
396
|
-
* @protected
|
|
397
|
-
* @final
|
|
398
|
-
*/
|
|
399
|
-
isMounted: function(publicInstance) {
|
|
400
|
-
return false;
|
|
401
|
-
},
|
|
402
|
-
/**
|
|
403
|
-
* Forces an update. This should only be invoked when it is known with
|
|
404
|
-
* certainty that we are **not** in a DOM transaction.
|
|
405
|
-
*
|
|
406
|
-
* You may want to call this when you know that some deeper aspect of the
|
|
407
|
-
* component's state has changed but `setState` was not called.
|
|
408
|
-
*
|
|
409
|
-
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
410
|
-
* `componentWillUpdate` and `componentDidUpdate`.
|
|
411
|
-
*
|
|
412
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
413
|
-
* @param {?function} callback Called after component is updated.
|
|
414
|
-
* @param {?string} callerName name of the calling function in the public API.
|
|
415
|
-
* @internal
|
|
416
|
-
*/
|
|
417
|
-
enqueueForceUpdate: function(publicInstance, callback, callerName) {
|
|
418
|
-
warnNoop(publicInstance, "forceUpdate");
|
|
419
|
-
},
|
|
420
|
-
/**
|
|
421
|
-
* Replaces all of the state. Always use this or `setState` to mutate state.
|
|
422
|
-
* You should treat `this.state` as immutable.
|
|
423
|
-
*
|
|
424
|
-
* There is no guarantee that `this.state` will be immediately updated, so
|
|
425
|
-
* accessing `this.state` after calling this method may return the old value.
|
|
426
|
-
*
|
|
427
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
428
|
-
* @param {object} completeState Next state.
|
|
429
|
-
* @param {?function} callback Called after component is updated.
|
|
430
|
-
* @param {?string} callerName name of the calling function in the public API.
|
|
431
|
-
* @internal
|
|
432
|
-
*/
|
|
433
|
-
enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
|
|
434
|
-
warnNoop(publicInstance, "replaceState");
|
|
435
|
-
},
|
|
436
|
-
/**
|
|
437
|
-
* Sets a subset of the state. This only exists because _pendingState is
|
|
438
|
-
* internal. This provides a merging strategy that is not available to deep
|
|
439
|
-
* properties which is confusing. TODO: Expose pendingState or don't use it
|
|
440
|
-
* during the merge.
|
|
441
|
-
*
|
|
442
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
443
|
-
* @param {object} partialState Next partial state to be merged with state.
|
|
444
|
-
* @param {?function} callback Called after component is updated.
|
|
445
|
-
* @param {?string} Name of the calling function in the public API.
|
|
446
|
-
* @internal
|
|
447
|
-
*/
|
|
448
|
-
enqueueSetState: function(publicInstance, partialState, callback, callerName) {
|
|
449
|
-
warnNoop(publicInstance, "setState");
|
|
450
|
-
}
|
|
451
|
-
};
|
|
452
|
-
var assign2 = Object.assign;
|
|
453
|
-
var emptyObject = {};
|
|
454
|
-
{
|
|
455
|
-
Object.freeze(emptyObject);
|
|
456
|
-
}
|
|
457
|
-
function Component(props, context, updater) {
|
|
458
|
-
this.props = props;
|
|
459
|
-
this.context = context;
|
|
460
|
-
this.refs = emptyObject;
|
|
461
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
462
|
-
}
|
|
463
|
-
Component.prototype.isReactComponent = {};
|
|
464
|
-
Component.prototype.setState = function(partialState, callback) {
|
|
465
|
-
if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null) {
|
|
466
|
-
throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
467
|
-
}
|
|
468
|
-
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
469
|
-
};
|
|
470
|
-
Component.prototype.forceUpdate = function(callback) {
|
|
471
|
-
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
472
|
-
};
|
|
473
|
-
{
|
|
474
|
-
var deprecatedAPIs = {
|
|
475
|
-
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
476
|
-
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
477
|
-
};
|
|
478
|
-
var defineDeprecationWarning = function(methodName, info) {
|
|
479
|
-
Object.defineProperty(Component.prototype, methodName, {
|
|
480
|
-
get: function() {
|
|
481
|
-
warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
|
|
482
|
-
return void 0;
|
|
483
|
-
}
|
|
484
|
-
});
|
|
485
|
-
};
|
|
486
|
-
for (var fnName in deprecatedAPIs) {
|
|
487
|
-
if (deprecatedAPIs.hasOwnProperty(fnName)) {
|
|
488
|
-
defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
function ComponentDummy() {
|
|
493
|
-
}
|
|
494
|
-
ComponentDummy.prototype = Component.prototype;
|
|
495
|
-
function PureComponent(props, context, updater) {
|
|
496
|
-
this.props = props;
|
|
497
|
-
this.context = context;
|
|
498
|
-
this.refs = emptyObject;
|
|
499
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
500
|
-
}
|
|
501
|
-
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
502
|
-
pureComponentPrototype.constructor = PureComponent;
|
|
503
|
-
assign2(pureComponentPrototype, Component.prototype);
|
|
504
|
-
pureComponentPrototype.isPureReactComponent = true;
|
|
505
|
-
function createRef() {
|
|
506
|
-
var refObject = {
|
|
507
|
-
current: null
|
|
508
|
-
};
|
|
509
|
-
{
|
|
510
|
-
Object.seal(refObject);
|
|
511
|
-
}
|
|
512
|
-
return refObject;
|
|
513
|
-
}
|
|
514
|
-
var isArrayImpl = Array.isArray;
|
|
515
|
-
function isArray2(a) {
|
|
516
|
-
return isArrayImpl(a);
|
|
517
|
-
}
|
|
518
|
-
function typeName(value) {
|
|
519
|
-
{
|
|
520
|
-
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
|
521
|
-
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
522
|
-
return type;
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
function willCoercionThrow(value) {
|
|
526
|
-
{
|
|
527
|
-
try {
|
|
528
|
-
testStringCoercion(value);
|
|
529
|
-
return false;
|
|
530
|
-
} catch (e) {
|
|
531
|
-
return true;
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
function testStringCoercion(value) {
|
|
536
|
-
return "" + value;
|
|
537
|
-
}
|
|
538
|
-
function checkKeyStringCoercion(value) {
|
|
539
|
-
{
|
|
540
|
-
if (willCoercionThrow(value)) {
|
|
541
|
-
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
|
542
|
-
return testStringCoercion(value);
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
function getWrappedName(outerType, innerType, wrapperName) {
|
|
547
|
-
var displayName = outerType.displayName;
|
|
548
|
-
if (displayName) {
|
|
549
|
-
return displayName;
|
|
550
|
-
}
|
|
551
|
-
var functionName = innerType.displayName || innerType.name || "";
|
|
552
|
-
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
553
|
-
}
|
|
554
|
-
function getContextName(type) {
|
|
555
|
-
return type.displayName || "Context";
|
|
556
|
-
}
|
|
557
|
-
function getComponentNameFromType(type) {
|
|
558
|
-
if (type == null) {
|
|
559
|
-
return null;
|
|
560
|
-
}
|
|
561
|
-
{
|
|
562
|
-
if (typeof type.tag === "number") {
|
|
563
|
-
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
if (typeof type === "function") {
|
|
567
|
-
return type.displayName || type.name || null;
|
|
568
|
-
}
|
|
569
|
-
if (typeof type === "string") {
|
|
570
|
-
return type;
|
|
571
|
-
}
|
|
572
|
-
switch (type) {
|
|
573
|
-
case REACT_FRAGMENT_TYPE:
|
|
574
|
-
return "Fragment";
|
|
575
|
-
case REACT_PORTAL_TYPE:
|
|
576
|
-
return "Portal";
|
|
577
|
-
case REACT_PROFILER_TYPE:
|
|
578
|
-
return "Profiler";
|
|
579
|
-
case REACT_STRICT_MODE_TYPE:
|
|
580
|
-
return "StrictMode";
|
|
581
|
-
case REACT_SUSPENSE_TYPE:
|
|
582
|
-
return "Suspense";
|
|
583
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
584
|
-
return "SuspenseList";
|
|
585
|
-
}
|
|
586
|
-
if (typeof type === "object") {
|
|
587
|
-
switch (type.$$typeof) {
|
|
588
|
-
case REACT_CONTEXT_TYPE:
|
|
589
|
-
var context = type;
|
|
590
|
-
return getContextName(context) + ".Consumer";
|
|
591
|
-
case REACT_PROVIDER_TYPE:
|
|
592
|
-
var provider = type;
|
|
593
|
-
return getContextName(provider._context) + ".Provider";
|
|
594
|
-
case REACT_FORWARD_REF_TYPE:
|
|
595
|
-
return getWrappedName(type, type.render, "ForwardRef");
|
|
596
|
-
case REACT_MEMO_TYPE:
|
|
597
|
-
var outerName = type.displayName || null;
|
|
598
|
-
if (outerName !== null) {
|
|
599
|
-
return outerName;
|
|
600
|
-
}
|
|
601
|
-
return getComponentNameFromType(type.type) || "Memo";
|
|
602
|
-
case REACT_LAZY_TYPE: {
|
|
603
|
-
var lazyComponent = type;
|
|
604
|
-
var payload = lazyComponent._payload;
|
|
605
|
-
var init = lazyComponent._init;
|
|
606
|
-
try {
|
|
607
|
-
return getComponentNameFromType(init(payload));
|
|
608
|
-
} catch (x2) {
|
|
609
|
-
return null;
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
return null;
|
|
615
|
-
}
|
|
616
|
-
var hasOwnProperty3 = Object.prototype.hasOwnProperty;
|
|
617
|
-
var RESERVED_PROPS = {
|
|
618
|
-
key: true,
|
|
619
|
-
ref: true,
|
|
620
|
-
__self: true,
|
|
621
|
-
__source: true
|
|
622
|
-
};
|
|
623
|
-
var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
|
|
624
|
-
{
|
|
625
|
-
didWarnAboutStringRefs = {};
|
|
626
|
-
}
|
|
627
|
-
function hasValidRef(config3) {
|
|
628
|
-
{
|
|
629
|
-
if (hasOwnProperty3.call(config3, "ref")) {
|
|
630
|
-
var getter = Object.getOwnPropertyDescriptor(config3, "ref").get;
|
|
631
|
-
if (getter && getter.isReactWarning) {
|
|
632
|
-
return false;
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
return config3.ref !== void 0;
|
|
637
|
-
}
|
|
638
|
-
function hasValidKey(config3) {
|
|
639
|
-
{
|
|
640
|
-
if (hasOwnProperty3.call(config3, "key")) {
|
|
641
|
-
var getter = Object.getOwnPropertyDescriptor(config3, "key").get;
|
|
642
|
-
if (getter && getter.isReactWarning) {
|
|
643
|
-
return false;
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
return config3.key !== void 0;
|
|
648
|
-
}
|
|
649
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
650
|
-
var warnAboutAccessingKey = function() {
|
|
651
|
-
{
|
|
652
|
-
if (!specialPropKeyWarningShown) {
|
|
653
|
-
specialPropKeyWarningShown = true;
|
|
654
|
-
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://reactjs.org/link/special-props)", displayName);
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
};
|
|
658
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
659
|
-
Object.defineProperty(props, "key", {
|
|
660
|
-
get: warnAboutAccessingKey,
|
|
661
|
-
configurable: true
|
|
662
|
-
});
|
|
663
|
-
}
|
|
664
|
-
function defineRefPropWarningGetter(props, displayName) {
|
|
665
|
-
var warnAboutAccessingRef = function() {
|
|
666
|
-
{
|
|
667
|
-
if (!specialPropRefWarningShown) {
|
|
668
|
-
specialPropRefWarningShown = true;
|
|
669
|
-
error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
};
|
|
673
|
-
warnAboutAccessingRef.isReactWarning = true;
|
|
674
|
-
Object.defineProperty(props, "ref", {
|
|
675
|
-
get: warnAboutAccessingRef,
|
|
676
|
-
configurable: true
|
|
677
|
-
});
|
|
678
|
-
}
|
|
679
|
-
function warnIfStringRefCannotBeAutoConverted(config3) {
|
|
680
|
-
{
|
|
681
|
-
if (typeof config3.ref === "string" && ReactCurrentOwner.current && config3.__self && ReactCurrentOwner.current.stateNode !== config3.__self) {
|
|
682
|
-
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
683
|
-
if (!didWarnAboutStringRefs[componentName]) {
|
|
684
|
-
error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', componentName, config3.ref);
|
|
685
|
-
didWarnAboutStringRefs[componentName] = true;
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
|
691
|
-
var element = {
|
|
692
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
693
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
694
|
-
// Built-in properties that belong on the element
|
|
695
|
-
type,
|
|
696
|
-
key,
|
|
697
|
-
ref,
|
|
698
|
-
props,
|
|
699
|
-
// Record the component responsible for creating this element.
|
|
700
|
-
_owner: owner
|
|
701
|
-
};
|
|
702
|
-
{
|
|
703
|
-
element._store = {};
|
|
704
|
-
Object.defineProperty(element._store, "validated", {
|
|
705
|
-
configurable: false,
|
|
706
|
-
enumerable: false,
|
|
707
|
-
writable: true,
|
|
708
|
-
value: false
|
|
709
|
-
});
|
|
710
|
-
Object.defineProperty(element, "_self", {
|
|
711
|
-
configurable: false,
|
|
712
|
-
enumerable: false,
|
|
713
|
-
writable: false,
|
|
714
|
-
value: self
|
|
715
|
-
});
|
|
716
|
-
Object.defineProperty(element, "_source", {
|
|
717
|
-
configurable: false,
|
|
718
|
-
enumerable: false,
|
|
719
|
-
writable: false,
|
|
720
|
-
value: source
|
|
721
|
-
});
|
|
722
|
-
if (Object.freeze) {
|
|
723
|
-
Object.freeze(element.props);
|
|
724
|
-
Object.freeze(element);
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
return element;
|
|
728
|
-
};
|
|
729
|
-
function createElement4(type, config3, children) {
|
|
730
|
-
var propName;
|
|
731
|
-
var props = {};
|
|
732
|
-
var key = null;
|
|
733
|
-
var ref = null;
|
|
734
|
-
var self = null;
|
|
735
|
-
var source = null;
|
|
736
|
-
if (config3 != null) {
|
|
737
|
-
if (hasValidRef(config3)) {
|
|
738
|
-
ref = config3.ref;
|
|
739
|
-
{
|
|
740
|
-
warnIfStringRefCannotBeAutoConverted(config3);
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
if (hasValidKey(config3)) {
|
|
744
|
-
{
|
|
745
|
-
checkKeyStringCoercion(config3.key);
|
|
746
|
-
}
|
|
747
|
-
key = "" + config3.key;
|
|
748
|
-
}
|
|
749
|
-
self = config3.__self === void 0 ? null : config3.__self;
|
|
750
|
-
source = config3.__source === void 0 ? null : config3.__source;
|
|
751
|
-
for (propName in config3) {
|
|
752
|
-
if (hasOwnProperty3.call(config3, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
753
|
-
props[propName] = config3[propName];
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
var childrenLength = arguments.length - 2;
|
|
758
|
-
if (childrenLength === 1) {
|
|
759
|
-
props.children = children;
|
|
760
|
-
} else if (childrenLength > 1) {
|
|
761
|
-
var childArray = Array(childrenLength);
|
|
762
|
-
for (var i = 0; i < childrenLength; i++) {
|
|
763
|
-
childArray[i] = arguments[i + 2];
|
|
764
|
-
}
|
|
765
|
-
{
|
|
766
|
-
if (Object.freeze) {
|
|
767
|
-
Object.freeze(childArray);
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
props.children = childArray;
|
|
771
|
-
}
|
|
772
|
-
if (type && type.defaultProps) {
|
|
773
|
-
var defaultProps2 = type.defaultProps;
|
|
774
|
-
for (propName in defaultProps2) {
|
|
775
|
-
if (props[propName] === void 0) {
|
|
776
|
-
props[propName] = defaultProps2[propName];
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
{
|
|
781
|
-
if (key || ref) {
|
|
782
|
-
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
783
|
-
if (key) {
|
|
784
|
-
defineKeyPropWarningGetter(props, displayName);
|
|
785
|
-
}
|
|
786
|
-
if (ref) {
|
|
787
|
-
defineRefPropWarningGetter(props, displayName);
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
792
|
-
}
|
|
793
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
794
|
-
var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
|
|
795
|
-
return newElement;
|
|
796
|
-
}
|
|
797
|
-
function cloneElement(element, config3, children) {
|
|
798
|
-
if (element === null || element === void 0) {
|
|
799
|
-
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
|
|
800
|
-
}
|
|
801
|
-
var propName;
|
|
802
|
-
var props = assign2({}, element.props);
|
|
803
|
-
var key = element.key;
|
|
804
|
-
var ref = element.ref;
|
|
805
|
-
var self = element._self;
|
|
806
|
-
var source = element._source;
|
|
807
|
-
var owner = element._owner;
|
|
808
|
-
if (config3 != null) {
|
|
809
|
-
if (hasValidRef(config3)) {
|
|
810
|
-
ref = config3.ref;
|
|
811
|
-
owner = ReactCurrentOwner.current;
|
|
812
|
-
}
|
|
813
|
-
if (hasValidKey(config3)) {
|
|
814
|
-
{
|
|
815
|
-
checkKeyStringCoercion(config3.key);
|
|
816
|
-
}
|
|
817
|
-
key = "" + config3.key;
|
|
818
|
-
}
|
|
819
|
-
var defaultProps2;
|
|
820
|
-
if (element.type && element.type.defaultProps) {
|
|
821
|
-
defaultProps2 = element.type.defaultProps;
|
|
822
|
-
}
|
|
823
|
-
for (propName in config3) {
|
|
824
|
-
if (hasOwnProperty3.call(config3, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
825
|
-
if (config3[propName] === void 0 && defaultProps2 !== void 0) {
|
|
826
|
-
props[propName] = defaultProps2[propName];
|
|
827
|
-
} else {
|
|
828
|
-
props[propName] = config3[propName];
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
var childrenLength = arguments.length - 2;
|
|
834
|
-
if (childrenLength === 1) {
|
|
835
|
-
props.children = children;
|
|
836
|
-
} else if (childrenLength > 1) {
|
|
837
|
-
var childArray = Array(childrenLength);
|
|
838
|
-
for (var i = 0; i < childrenLength; i++) {
|
|
839
|
-
childArray[i] = arguments[i + 2];
|
|
840
|
-
}
|
|
841
|
-
props.children = childArray;
|
|
842
|
-
}
|
|
843
|
-
return ReactElement(element.type, key, ref, self, source, owner, props);
|
|
844
|
-
}
|
|
845
|
-
function isValidElement(object) {
|
|
846
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
847
|
-
}
|
|
848
|
-
var SEPARATOR = ".";
|
|
849
|
-
var SUBSEPARATOR = ":";
|
|
850
|
-
function escape(key) {
|
|
851
|
-
var escapeRegex = /[=:]/g;
|
|
852
|
-
var escaperLookup = {
|
|
853
|
-
"=": "=0",
|
|
854
|
-
":": "=2"
|
|
855
|
-
};
|
|
856
|
-
var escapedString = key.replace(escapeRegex, function(match2) {
|
|
857
|
-
return escaperLookup[match2];
|
|
858
|
-
});
|
|
859
|
-
return "$" + escapedString;
|
|
860
|
-
}
|
|
861
|
-
var didWarnAboutMaps = false;
|
|
862
|
-
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
863
|
-
function escapeUserProvidedKey(text) {
|
|
864
|
-
return text.replace(userProvidedKeyEscapeRegex, "$&/");
|
|
865
|
-
}
|
|
866
|
-
function getElementKey(element, index) {
|
|
867
|
-
if (typeof element === "object" && element !== null && element.key != null) {
|
|
868
|
-
{
|
|
869
|
-
checkKeyStringCoercion(element.key);
|
|
870
|
-
}
|
|
871
|
-
return escape("" + element.key);
|
|
872
|
-
}
|
|
873
|
-
return index.toString(36);
|
|
874
|
-
}
|
|
875
|
-
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
876
|
-
var type = typeof children;
|
|
877
|
-
if (type === "undefined" || type === "boolean") {
|
|
878
|
-
children = null;
|
|
879
|
-
}
|
|
880
|
-
var invokeCallback = false;
|
|
881
|
-
if (children === null) {
|
|
882
|
-
invokeCallback = true;
|
|
883
|
-
} else {
|
|
884
|
-
switch (type) {
|
|
885
|
-
case "string":
|
|
886
|
-
case "number":
|
|
887
|
-
invokeCallback = true;
|
|
888
|
-
break;
|
|
889
|
-
case "object":
|
|
890
|
-
switch (children.$$typeof) {
|
|
891
|
-
case REACT_ELEMENT_TYPE:
|
|
892
|
-
case REACT_PORTAL_TYPE:
|
|
893
|
-
invokeCallback = true;
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
if (invokeCallback) {
|
|
898
|
-
var _child = children;
|
|
899
|
-
var mappedChild = callback(_child);
|
|
900
|
-
var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
|
|
901
|
-
if (isArray2(mappedChild)) {
|
|
902
|
-
var escapedChildKey = "";
|
|
903
|
-
if (childKey != null) {
|
|
904
|
-
escapedChildKey = escapeUserProvidedKey(childKey) + "/";
|
|
905
|
-
}
|
|
906
|
-
mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) {
|
|
907
|
-
return c;
|
|
908
|
-
});
|
|
909
|
-
} else if (mappedChild != null) {
|
|
910
|
-
if (isValidElement(mappedChild)) {
|
|
911
|
-
{
|
|
912
|
-
if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
|
|
913
|
-
checkKeyStringCoercion(mappedChild.key);
|
|
914
|
-
}
|
|
915
|
-
}
|
|
916
|
-
mappedChild = cloneAndReplaceKey(
|
|
917
|
-
mappedChild,
|
|
918
|
-
// Keep both the (mapped) and old keys if they differ, just as
|
|
919
|
-
// traverseAllChildren used to do for objects as children
|
|
920
|
-
escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
|
921
|
-
(mappedChild.key && (!_child || _child.key !== mappedChild.key) ? (
|
|
922
|
-
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
|
|
923
|
-
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
924
|
-
escapeUserProvidedKey("" + mappedChild.key) + "/"
|
|
925
|
-
) : "") + childKey
|
|
926
|
-
);
|
|
927
|
-
}
|
|
928
|
-
array.push(mappedChild);
|
|
929
|
-
}
|
|
930
|
-
return 1;
|
|
931
|
-
}
|
|
932
|
-
var child;
|
|
933
|
-
var nextName;
|
|
934
|
-
var subtreeCount = 0;
|
|
935
|
-
var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
|
|
936
|
-
if (isArray2(children)) {
|
|
937
|
-
for (var i = 0; i < children.length; i++) {
|
|
938
|
-
child = children[i];
|
|
939
|
-
nextName = nextNamePrefix + getElementKey(child, i);
|
|
940
|
-
subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
|
|
941
|
-
}
|
|
942
|
-
} else {
|
|
943
|
-
var iteratorFn = getIteratorFn(children);
|
|
944
|
-
if (typeof iteratorFn === "function") {
|
|
945
|
-
var iterableChildren = children;
|
|
946
|
-
{
|
|
947
|
-
if (iteratorFn === iterableChildren.entries) {
|
|
948
|
-
if (!didWarnAboutMaps) {
|
|
949
|
-
warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");
|
|
950
|
-
}
|
|
951
|
-
didWarnAboutMaps = true;
|
|
952
|
-
}
|
|
953
|
-
}
|
|
954
|
-
var iterator = iteratorFn.call(iterableChildren);
|
|
955
|
-
var step;
|
|
956
|
-
var ii = 0;
|
|
957
|
-
while (!(step = iterator.next()).done) {
|
|
958
|
-
child = step.value;
|
|
959
|
-
nextName = nextNamePrefix + getElementKey(child, ii++);
|
|
960
|
-
subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
|
|
961
|
-
}
|
|
962
|
-
} else if (type === "object") {
|
|
963
|
-
var childrenString = String(children);
|
|
964
|
-
throw new Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead.");
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
return subtreeCount;
|
|
968
|
-
}
|
|
969
|
-
function mapChildren(children, func, context) {
|
|
970
|
-
if (children == null) {
|
|
971
|
-
return children;
|
|
972
|
-
}
|
|
973
|
-
var result2 = [];
|
|
974
|
-
var count = 0;
|
|
975
|
-
mapIntoArray(children, result2, "", "", function(child) {
|
|
976
|
-
return func.call(context, child, count++);
|
|
977
|
-
});
|
|
978
|
-
return result2;
|
|
979
|
-
}
|
|
980
|
-
function countChildren(children) {
|
|
981
|
-
var n = 0;
|
|
982
|
-
mapChildren(children, function() {
|
|
983
|
-
n++;
|
|
984
|
-
});
|
|
985
|
-
return n;
|
|
986
|
-
}
|
|
987
|
-
function forEachChildren(children, forEachFunc, forEachContext) {
|
|
988
|
-
mapChildren(children, function() {
|
|
989
|
-
forEachFunc.apply(this, arguments);
|
|
990
|
-
}, forEachContext);
|
|
991
|
-
}
|
|
992
|
-
function toArray(children) {
|
|
993
|
-
return mapChildren(children, function(child) {
|
|
994
|
-
return child;
|
|
995
|
-
}) || [];
|
|
996
|
-
}
|
|
997
|
-
function onlyChild(children) {
|
|
998
|
-
if (!isValidElement(children)) {
|
|
999
|
-
throw new Error("React.Children.only expected to receive a single React element child.");
|
|
1000
|
-
}
|
|
1001
|
-
return children;
|
|
1002
|
-
}
|
|
1003
|
-
function createContext3(defaultValue) {
|
|
1004
|
-
var context = {
|
|
1005
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
1006
|
-
// As a workaround to support multiple concurrent renderers, we categorize
|
|
1007
|
-
// some renderers as primary and others as secondary. We only expect
|
|
1008
|
-
// there to be two concurrent renderers at most: React Native (primary) and
|
|
1009
|
-
// Fabric (secondary); React DOM (primary) and React ART (secondary).
|
|
1010
|
-
// Secondary renderers store their context values on separate fields.
|
|
1011
|
-
_currentValue: defaultValue,
|
|
1012
|
-
_currentValue2: defaultValue,
|
|
1013
|
-
// Used to track how many concurrent renderers this context currently
|
|
1014
|
-
// supports within in a single renderer. Such as parallel server rendering.
|
|
1015
|
-
_threadCount: 0,
|
|
1016
|
-
// These are circular
|
|
1017
|
-
Provider: null,
|
|
1018
|
-
Consumer: null,
|
|
1019
|
-
// Add these to use same hidden class in VM as ServerContext
|
|
1020
|
-
_defaultValue: null,
|
|
1021
|
-
_globalName: null
|
|
1022
|
-
};
|
|
1023
|
-
context.Provider = {
|
|
1024
|
-
$$typeof: REACT_PROVIDER_TYPE,
|
|
1025
|
-
_context: context
|
|
1026
|
-
};
|
|
1027
|
-
var hasWarnedAboutUsingNestedContextConsumers = false;
|
|
1028
|
-
var hasWarnedAboutUsingConsumerProvider = false;
|
|
1029
|
-
var hasWarnedAboutDisplayNameOnConsumer = false;
|
|
1030
|
-
{
|
|
1031
|
-
var Consumer = {
|
|
1032
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
1033
|
-
_context: context
|
|
1034
|
-
};
|
|
1035
|
-
Object.defineProperties(Consumer, {
|
|
1036
|
-
Provider: {
|
|
1037
|
-
get: function() {
|
|
1038
|
-
if (!hasWarnedAboutUsingConsumerProvider) {
|
|
1039
|
-
hasWarnedAboutUsingConsumerProvider = true;
|
|
1040
|
-
error("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?");
|
|
1041
|
-
}
|
|
1042
|
-
return context.Provider;
|
|
1043
|
-
},
|
|
1044
|
-
set: function(_Provider) {
|
|
1045
|
-
context.Provider = _Provider;
|
|
1046
|
-
}
|
|
1047
|
-
},
|
|
1048
|
-
_currentValue: {
|
|
1049
|
-
get: function() {
|
|
1050
|
-
return context._currentValue;
|
|
1051
|
-
},
|
|
1052
|
-
set: function(_currentValue) {
|
|
1053
|
-
context._currentValue = _currentValue;
|
|
1054
|
-
}
|
|
1055
|
-
},
|
|
1056
|
-
_currentValue2: {
|
|
1057
|
-
get: function() {
|
|
1058
|
-
return context._currentValue2;
|
|
1059
|
-
},
|
|
1060
|
-
set: function(_currentValue2) {
|
|
1061
|
-
context._currentValue2 = _currentValue2;
|
|
1062
|
-
}
|
|
1063
|
-
},
|
|
1064
|
-
_threadCount: {
|
|
1065
|
-
get: function() {
|
|
1066
|
-
return context._threadCount;
|
|
1067
|
-
},
|
|
1068
|
-
set: function(_threadCount) {
|
|
1069
|
-
context._threadCount = _threadCount;
|
|
1070
|
-
}
|
|
1071
|
-
},
|
|
1072
|
-
Consumer: {
|
|
1073
|
-
get: function() {
|
|
1074
|
-
if (!hasWarnedAboutUsingNestedContextConsumers) {
|
|
1075
|
-
hasWarnedAboutUsingNestedContextConsumers = true;
|
|
1076
|
-
error("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?");
|
|
1077
|
-
}
|
|
1078
|
-
return context.Consumer;
|
|
1079
|
-
}
|
|
1080
|
-
},
|
|
1081
|
-
displayName: {
|
|
1082
|
-
get: function() {
|
|
1083
|
-
return context.displayName;
|
|
1084
|
-
},
|
|
1085
|
-
set: function(displayName) {
|
|
1086
|
-
if (!hasWarnedAboutDisplayNameOnConsumer) {
|
|
1087
|
-
warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName);
|
|
1088
|
-
hasWarnedAboutDisplayNameOnConsumer = true;
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
});
|
|
1093
|
-
context.Consumer = Consumer;
|
|
1094
|
-
}
|
|
1095
|
-
{
|
|
1096
|
-
context._currentRenderer = null;
|
|
1097
|
-
context._currentRenderer2 = null;
|
|
1098
|
-
}
|
|
1099
|
-
return context;
|
|
1100
|
-
}
|
|
1101
|
-
var Uninitialized = -1;
|
|
1102
|
-
var Pending = 0;
|
|
1103
|
-
var Resolved = 1;
|
|
1104
|
-
var Rejected = 2;
|
|
1105
|
-
function lazyInitializer(payload) {
|
|
1106
|
-
if (payload._status === Uninitialized) {
|
|
1107
|
-
var ctor = payload._result;
|
|
1108
|
-
var thenable = ctor();
|
|
1109
|
-
thenable.then(function(moduleObject2) {
|
|
1110
|
-
if (payload._status === Pending || payload._status === Uninitialized) {
|
|
1111
|
-
var resolved = payload;
|
|
1112
|
-
resolved._status = Resolved;
|
|
1113
|
-
resolved._result = moduleObject2;
|
|
1114
|
-
}
|
|
1115
|
-
}, function(error2) {
|
|
1116
|
-
if (payload._status === Pending || payload._status === Uninitialized) {
|
|
1117
|
-
var rejected = payload;
|
|
1118
|
-
rejected._status = Rejected;
|
|
1119
|
-
rejected._result = error2;
|
|
1120
|
-
}
|
|
1121
|
-
});
|
|
1122
|
-
if (payload._status === Uninitialized) {
|
|
1123
|
-
var pending = payload;
|
|
1124
|
-
pending._status = Pending;
|
|
1125
|
-
pending._result = thenable;
|
|
1126
|
-
}
|
|
1127
|
-
}
|
|
1128
|
-
if (payload._status === Resolved) {
|
|
1129
|
-
var moduleObject = payload._result;
|
|
1130
|
-
{
|
|
1131
|
-
if (moduleObject === void 0) {
|
|
1132
|
-
error("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?", moduleObject);
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
{
|
|
1136
|
-
if (!("default" in moduleObject)) {
|
|
1137
|
-
error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
return moduleObject.default;
|
|
1141
|
-
} else {
|
|
1142
|
-
throw payload._result;
|
|
1143
|
-
}
|
|
1144
|
-
}
|
|
1145
|
-
function lazy(ctor) {
|
|
1146
|
-
var payload = {
|
|
1147
|
-
// We use these fields to store the result.
|
|
1148
|
-
_status: Uninitialized,
|
|
1149
|
-
_result: ctor
|
|
1150
|
-
};
|
|
1151
|
-
var lazyType = {
|
|
1152
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
1153
|
-
_payload: payload,
|
|
1154
|
-
_init: lazyInitializer
|
|
1155
|
-
};
|
|
1156
|
-
{
|
|
1157
|
-
var defaultProps2;
|
|
1158
|
-
var propTypes;
|
|
1159
|
-
Object.defineProperties(lazyType, {
|
|
1160
|
-
defaultProps: {
|
|
1161
|
-
configurable: true,
|
|
1162
|
-
get: function() {
|
|
1163
|
-
return defaultProps2;
|
|
1164
|
-
},
|
|
1165
|
-
set: function(newDefaultProps) {
|
|
1166
|
-
error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
|
|
1167
|
-
defaultProps2 = newDefaultProps;
|
|
1168
|
-
Object.defineProperty(lazyType, "defaultProps", {
|
|
1169
|
-
enumerable: true
|
|
1170
|
-
});
|
|
1171
|
-
}
|
|
1172
|
-
},
|
|
1173
|
-
propTypes: {
|
|
1174
|
-
configurable: true,
|
|
1175
|
-
get: function() {
|
|
1176
|
-
return propTypes;
|
|
1177
|
-
},
|
|
1178
|
-
set: function(newPropTypes) {
|
|
1179
|
-
error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
|
|
1180
|
-
propTypes = newPropTypes;
|
|
1181
|
-
Object.defineProperty(lazyType, "propTypes", {
|
|
1182
|
-
enumerable: true
|
|
1183
|
-
});
|
|
1184
|
-
}
|
|
1185
|
-
}
|
|
1186
|
-
});
|
|
1187
|
-
}
|
|
1188
|
-
return lazyType;
|
|
1189
|
-
}
|
|
1190
|
-
function forwardRef3(render) {
|
|
1191
|
-
{
|
|
1192
|
-
if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
|
|
1193
|
-
error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
|
|
1194
|
-
} else if (typeof render !== "function") {
|
|
1195
|
-
error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render);
|
|
1196
|
-
} else {
|
|
1197
|
-
if (render.length !== 0 && render.length !== 2) {
|
|
1198
|
-
error("forwardRef render functions accept exactly two parameters: props and ref. %s", render.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.");
|
|
1199
|
-
}
|
|
1200
|
-
}
|
|
1201
|
-
if (render != null) {
|
|
1202
|
-
if (render.defaultProps != null || render.propTypes != null) {
|
|
1203
|
-
error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
|
|
1204
|
-
}
|
|
1205
|
-
}
|
|
1206
|
-
}
|
|
1207
|
-
var elementType = {
|
|
1208
|
-
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
1209
|
-
render
|
|
1210
|
-
};
|
|
1211
|
-
{
|
|
1212
|
-
var ownName;
|
|
1213
|
-
Object.defineProperty(elementType, "displayName", {
|
|
1214
|
-
enumerable: false,
|
|
1215
|
-
configurable: true,
|
|
1216
|
-
get: function() {
|
|
1217
|
-
return ownName;
|
|
1218
|
-
},
|
|
1219
|
-
set: function(name) {
|
|
1220
|
-
ownName = name;
|
|
1221
|
-
if (!render.name && !render.displayName) {
|
|
1222
|
-
render.displayName = name;
|
|
1223
|
-
}
|
|
1224
|
-
}
|
|
1225
|
-
});
|
|
1226
|
-
}
|
|
1227
|
-
return elementType;
|
|
1228
|
-
}
|
|
1229
|
-
var REACT_MODULE_REFERENCE;
|
|
1230
|
-
{
|
|
1231
|
-
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
1232
|
-
}
|
|
1233
|
-
function isValidElementType(type) {
|
|
1234
|
-
if (typeof type === "string" || typeof type === "function") {
|
|
1235
|
-
return true;
|
|
1236
|
-
}
|
|
1237
|
-
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 || enableCacheElement || enableTransitionTracing) {
|
|
1238
|
-
return true;
|
|
1239
|
-
}
|
|
1240
|
-
if (typeof type === "object" && type !== null) {
|
|
1241
|
-
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
|
1242
|
-
// types supported by any Flight configuration anywhere since
|
|
1243
|
-
// we don't know which Flight build this will end up being used
|
|
1244
|
-
// with.
|
|
1245
|
-
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
|
1246
|
-
return true;
|
|
1247
|
-
}
|
|
1248
|
-
}
|
|
1249
|
-
return false;
|
|
1250
|
-
}
|
|
1251
|
-
function memo(type, compare) {
|
|
1252
|
-
{
|
|
1253
|
-
if (!isValidElementType(type)) {
|
|
1254
|
-
error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
|
-
var elementType = {
|
|
1258
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
1259
|
-
type,
|
|
1260
|
-
compare: compare === void 0 ? null : compare
|
|
1261
|
-
};
|
|
1262
|
-
{
|
|
1263
|
-
var ownName;
|
|
1264
|
-
Object.defineProperty(elementType, "displayName", {
|
|
1265
|
-
enumerable: false,
|
|
1266
|
-
configurable: true,
|
|
1267
|
-
get: function() {
|
|
1268
|
-
return ownName;
|
|
1269
|
-
},
|
|
1270
|
-
set: function(name) {
|
|
1271
|
-
ownName = name;
|
|
1272
|
-
if (!type.name && !type.displayName) {
|
|
1273
|
-
type.displayName = name;
|
|
1274
|
-
}
|
|
1275
|
-
}
|
|
1276
|
-
});
|
|
1277
|
-
}
|
|
1278
|
-
return elementType;
|
|
1279
|
-
}
|
|
1280
|
-
function resolveDispatcher() {
|
|
1281
|
-
var dispatcher = ReactCurrentDispatcher.current;
|
|
1282
|
-
{
|
|
1283
|
-
if (dispatcher === null) {
|
|
1284
|
-
error("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://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");
|
|
1285
|
-
}
|
|
1286
|
-
}
|
|
1287
|
-
return dispatcher;
|
|
1288
|
-
}
|
|
1289
|
-
function useContext6(Context) {
|
|
1290
|
-
var dispatcher = resolveDispatcher();
|
|
1291
|
-
{
|
|
1292
|
-
if (Context._context !== void 0) {
|
|
1293
|
-
var realContext = Context._context;
|
|
1294
|
-
if (realContext.Consumer === Context) {
|
|
1295
|
-
error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?");
|
|
1296
|
-
} else if (realContext.Provider === Context) {
|
|
1297
|
-
error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
|
|
1298
|
-
}
|
|
1299
|
-
}
|
|
1300
|
-
}
|
|
1301
|
-
return dispatcher.useContext(Context);
|
|
1302
|
-
}
|
|
1303
|
-
function useState6(initialState) {
|
|
1304
|
-
var dispatcher = resolveDispatcher();
|
|
1305
|
-
return dispatcher.useState(initialState);
|
|
1306
|
-
}
|
|
1307
|
-
function useReducer(reducer, initialArg, init) {
|
|
1308
|
-
var dispatcher = resolveDispatcher();
|
|
1309
|
-
return dispatcher.useReducer(reducer, initialArg, init);
|
|
1310
|
-
}
|
|
1311
|
-
function useRef4(initialValue) {
|
|
1312
|
-
var dispatcher = resolveDispatcher();
|
|
1313
|
-
return dispatcher.useRef(initialValue);
|
|
1314
|
-
}
|
|
1315
|
-
function useEffect5(create, deps) {
|
|
1316
|
-
var dispatcher = resolveDispatcher();
|
|
1317
|
-
return dispatcher.useEffect(create, deps);
|
|
1318
|
-
}
|
|
1319
|
-
function useInsertionEffect3(create, deps) {
|
|
1320
|
-
var dispatcher = resolveDispatcher();
|
|
1321
|
-
return dispatcher.useInsertionEffect(create, deps);
|
|
1322
|
-
}
|
|
1323
|
-
function useLayoutEffect2(create, deps) {
|
|
1324
|
-
var dispatcher = resolveDispatcher();
|
|
1325
|
-
return dispatcher.useLayoutEffect(create, deps);
|
|
1326
|
-
}
|
|
1327
|
-
function useCallback9(callback, deps) {
|
|
1328
|
-
var dispatcher = resolveDispatcher();
|
|
1329
|
-
return dispatcher.useCallback(callback, deps);
|
|
1330
|
-
}
|
|
1331
|
-
function useMemo4(create, deps) {
|
|
1332
|
-
var dispatcher = resolveDispatcher();
|
|
1333
|
-
return dispatcher.useMemo(create, deps);
|
|
1334
|
-
}
|
|
1335
|
-
function useImperativeHandle(ref, create, deps) {
|
|
1336
|
-
var dispatcher = resolveDispatcher();
|
|
1337
|
-
return dispatcher.useImperativeHandle(ref, create, deps);
|
|
1338
|
-
}
|
|
1339
|
-
function useDebugValue(value, formatterFn) {
|
|
1340
|
-
{
|
|
1341
|
-
var dispatcher = resolveDispatcher();
|
|
1342
|
-
return dispatcher.useDebugValue(value, formatterFn);
|
|
1343
|
-
}
|
|
1344
|
-
}
|
|
1345
|
-
function useTransition() {
|
|
1346
|
-
var dispatcher = resolveDispatcher();
|
|
1347
|
-
return dispatcher.useTransition();
|
|
1348
|
-
}
|
|
1349
|
-
function useDeferredValue(value) {
|
|
1350
|
-
var dispatcher = resolveDispatcher();
|
|
1351
|
-
return dispatcher.useDeferredValue(value);
|
|
1352
|
-
}
|
|
1353
|
-
function useId() {
|
|
1354
|
-
var dispatcher = resolveDispatcher();
|
|
1355
|
-
return dispatcher.useId();
|
|
1356
|
-
}
|
|
1357
|
-
function useSyncExternalStore2(subscribe2, getSnapshot, getServerSnapshot) {
|
|
1358
|
-
var dispatcher = resolveDispatcher();
|
|
1359
|
-
return dispatcher.useSyncExternalStore(subscribe2, getSnapshot, getServerSnapshot);
|
|
1360
|
-
}
|
|
1361
|
-
var disabledDepth = 0;
|
|
1362
|
-
var prevLog;
|
|
1363
|
-
var prevInfo;
|
|
1364
|
-
var prevWarn;
|
|
1365
|
-
var prevError;
|
|
1366
|
-
var prevGroup;
|
|
1367
|
-
var prevGroupCollapsed;
|
|
1368
|
-
var prevGroupEnd;
|
|
1369
|
-
function disabledLog() {
|
|
1370
|
-
}
|
|
1371
|
-
disabledLog.__reactDisabledLog = true;
|
|
1372
|
-
function disableLogs() {
|
|
1373
|
-
{
|
|
1374
|
-
if (disabledDepth === 0) {
|
|
1375
|
-
prevLog = console.log;
|
|
1376
|
-
prevInfo = console.info;
|
|
1377
|
-
prevWarn = console.warn;
|
|
1378
|
-
prevError = console.error;
|
|
1379
|
-
prevGroup = console.group;
|
|
1380
|
-
prevGroupCollapsed = console.groupCollapsed;
|
|
1381
|
-
prevGroupEnd = console.groupEnd;
|
|
1382
|
-
var props = {
|
|
1383
|
-
configurable: true,
|
|
1384
|
-
enumerable: true,
|
|
1385
|
-
value: disabledLog,
|
|
1386
|
-
writable: true
|
|
1387
|
-
};
|
|
1388
|
-
Object.defineProperties(console, {
|
|
1389
|
-
info: props,
|
|
1390
|
-
log: props,
|
|
1391
|
-
warn: props,
|
|
1392
|
-
error: props,
|
|
1393
|
-
group: props,
|
|
1394
|
-
groupCollapsed: props,
|
|
1395
|
-
groupEnd: props
|
|
1396
|
-
});
|
|
1397
|
-
}
|
|
1398
|
-
disabledDepth++;
|
|
1399
|
-
}
|
|
1400
|
-
}
|
|
1401
|
-
function reenableLogs() {
|
|
1402
|
-
{
|
|
1403
|
-
disabledDepth--;
|
|
1404
|
-
if (disabledDepth === 0) {
|
|
1405
|
-
var props = {
|
|
1406
|
-
configurable: true,
|
|
1407
|
-
enumerable: true,
|
|
1408
|
-
writable: true
|
|
1409
|
-
};
|
|
1410
|
-
Object.defineProperties(console, {
|
|
1411
|
-
log: assign2({}, props, {
|
|
1412
|
-
value: prevLog
|
|
1413
|
-
}),
|
|
1414
|
-
info: assign2({}, props, {
|
|
1415
|
-
value: prevInfo
|
|
1416
|
-
}),
|
|
1417
|
-
warn: assign2({}, props, {
|
|
1418
|
-
value: prevWarn
|
|
1419
|
-
}),
|
|
1420
|
-
error: assign2({}, props, {
|
|
1421
|
-
value: prevError
|
|
1422
|
-
}),
|
|
1423
|
-
group: assign2({}, props, {
|
|
1424
|
-
value: prevGroup
|
|
1425
|
-
}),
|
|
1426
|
-
groupCollapsed: assign2({}, props, {
|
|
1427
|
-
value: prevGroupCollapsed
|
|
1428
|
-
}),
|
|
1429
|
-
groupEnd: assign2({}, props, {
|
|
1430
|
-
value: prevGroupEnd
|
|
1431
|
-
})
|
|
1432
|
-
});
|
|
1433
|
-
}
|
|
1434
|
-
if (disabledDepth < 0) {
|
|
1435
|
-
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1436
|
-
}
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
|
|
1440
|
-
var prefix2;
|
|
1441
|
-
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
1442
|
-
{
|
|
1443
|
-
if (prefix2 === void 0) {
|
|
1444
|
-
try {
|
|
1445
|
-
throw Error();
|
|
1446
|
-
} catch (x2) {
|
|
1447
|
-
var match2 = x2.stack.trim().match(/\n( *(at )?)/);
|
|
1448
|
-
prefix2 = match2 && match2[1] || "";
|
|
1449
|
-
}
|
|
1450
|
-
}
|
|
1451
|
-
return "\n" + prefix2 + name;
|
|
1452
|
-
}
|
|
1453
|
-
}
|
|
1454
|
-
var reentry = false;
|
|
1455
|
-
var componentFrameCache;
|
|
1456
|
-
{
|
|
1457
|
-
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
1458
|
-
componentFrameCache = new PossiblyWeakMap();
|
|
1459
|
-
}
|
|
1460
|
-
function describeNativeComponentFrame(fn, construct) {
|
|
1461
|
-
if (!fn || reentry) {
|
|
1462
|
-
return "";
|
|
1463
|
-
}
|
|
1464
|
-
{
|
|
1465
|
-
var frame = componentFrameCache.get(fn);
|
|
1466
|
-
if (frame !== void 0) {
|
|
1467
|
-
return frame;
|
|
1468
|
-
}
|
|
1469
|
-
}
|
|
1470
|
-
var control;
|
|
1471
|
-
reentry = true;
|
|
1472
|
-
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
1473
|
-
Error.prepareStackTrace = void 0;
|
|
1474
|
-
var previousDispatcher;
|
|
1475
|
-
{
|
|
1476
|
-
previousDispatcher = ReactCurrentDispatcher$1.current;
|
|
1477
|
-
ReactCurrentDispatcher$1.current = null;
|
|
1478
|
-
disableLogs();
|
|
1479
|
-
}
|
|
1480
|
-
try {
|
|
1481
|
-
if (construct) {
|
|
1482
|
-
var Fake = function() {
|
|
1483
|
-
throw Error();
|
|
1484
|
-
};
|
|
1485
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
1486
|
-
set: function() {
|
|
1487
|
-
throw Error();
|
|
1488
|
-
}
|
|
1489
|
-
});
|
|
1490
|
-
if (typeof Reflect === "object" && Reflect.construct) {
|
|
1491
|
-
try {
|
|
1492
|
-
Reflect.construct(Fake, []);
|
|
1493
|
-
} catch (x2) {
|
|
1494
|
-
control = x2;
|
|
1495
|
-
}
|
|
1496
|
-
Reflect.construct(fn, [], Fake);
|
|
1497
|
-
} else {
|
|
1498
|
-
try {
|
|
1499
|
-
Fake.call();
|
|
1500
|
-
} catch (x2) {
|
|
1501
|
-
control = x2;
|
|
1502
|
-
}
|
|
1503
|
-
fn.call(Fake.prototype);
|
|
1504
|
-
}
|
|
1505
|
-
} else {
|
|
1506
|
-
try {
|
|
1507
|
-
throw Error();
|
|
1508
|
-
} catch (x2) {
|
|
1509
|
-
control = x2;
|
|
1510
|
-
}
|
|
1511
|
-
fn();
|
|
1512
|
-
}
|
|
1513
|
-
} catch (sample) {
|
|
1514
|
-
if (sample && control && typeof sample.stack === "string") {
|
|
1515
|
-
var sampleLines = sample.stack.split("\n");
|
|
1516
|
-
var controlLines = control.stack.split("\n");
|
|
1517
|
-
var s = sampleLines.length - 1;
|
|
1518
|
-
var c = controlLines.length - 1;
|
|
1519
|
-
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
1520
|
-
c--;
|
|
1521
|
-
}
|
|
1522
|
-
for (; s >= 1 && c >= 0; s--, c--) {
|
|
1523
|
-
if (sampleLines[s] !== controlLines[c]) {
|
|
1524
|
-
if (s !== 1 || c !== 1) {
|
|
1525
|
-
do {
|
|
1526
|
-
s--;
|
|
1527
|
-
c--;
|
|
1528
|
-
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
1529
|
-
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
1530
|
-
if (fn.displayName && _frame.includes("<anonymous>")) {
|
|
1531
|
-
_frame = _frame.replace("<anonymous>", fn.displayName);
|
|
1532
|
-
}
|
|
1533
|
-
{
|
|
1534
|
-
if (typeof fn === "function") {
|
|
1535
|
-
componentFrameCache.set(fn, _frame);
|
|
1536
|
-
}
|
|
1537
|
-
}
|
|
1538
|
-
return _frame;
|
|
1539
|
-
}
|
|
1540
|
-
} while (s >= 1 && c >= 0);
|
|
1541
|
-
}
|
|
1542
|
-
break;
|
|
1543
|
-
}
|
|
1544
|
-
}
|
|
1545
|
-
}
|
|
1546
|
-
} finally {
|
|
1547
|
-
reentry = false;
|
|
1548
|
-
{
|
|
1549
|
-
ReactCurrentDispatcher$1.current = previousDispatcher;
|
|
1550
|
-
reenableLogs();
|
|
1551
|
-
}
|
|
1552
|
-
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
1553
|
-
}
|
|
1554
|
-
var name = fn ? fn.displayName || fn.name : "";
|
|
1555
|
-
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
1556
|
-
{
|
|
1557
|
-
if (typeof fn === "function") {
|
|
1558
|
-
componentFrameCache.set(fn, syntheticFrame);
|
|
1559
|
-
}
|
|
1560
|
-
}
|
|
1561
|
-
return syntheticFrame;
|
|
1562
|
-
}
|
|
1563
|
-
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
1564
|
-
{
|
|
1565
|
-
return describeNativeComponentFrame(fn, false);
|
|
1566
|
-
}
|
|
1567
|
-
}
|
|
1568
|
-
function shouldConstruct(Component2) {
|
|
1569
|
-
var prototype = Component2.prototype;
|
|
1570
|
-
return !!(prototype && prototype.isReactComponent);
|
|
1571
|
-
}
|
|
1572
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
1573
|
-
if (type == null) {
|
|
1574
|
-
return "";
|
|
1575
|
-
}
|
|
1576
|
-
if (typeof type === "function") {
|
|
1577
|
-
{
|
|
1578
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
1579
|
-
}
|
|
1580
|
-
}
|
|
1581
|
-
if (typeof type === "string") {
|
|
1582
|
-
return describeBuiltInComponentFrame(type);
|
|
1583
|
-
}
|
|
1584
|
-
switch (type) {
|
|
1585
|
-
case REACT_SUSPENSE_TYPE:
|
|
1586
|
-
return describeBuiltInComponentFrame("Suspense");
|
|
1587
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
1588
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
|
1589
|
-
}
|
|
1590
|
-
if (typeof type === "object") {
|
|
1591
|
-
switch (type.$$typeof) {
|
|
1592
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1593
|
-
return describeFunctionComponentFrame(type.render);
|
|
1594
|
-
case REACT_MEMO_TYPE:
|
|
1595
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
1596
|
-
case REACT_LAZY_TYPE: {
|
|
1597
|
-
var lazyComponent = type;
|
|
1598
|
-
var payload = lazyComponent._payload;
|
|
1599
|
-
var init = lazyComponent._init;
|
|
1600
|
-
try {
|
|
1601
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
1602
|
-
} catch (x2) {
|
|
1603
|
-
}
|
|
1604
|
-
}
|
|
1605
|
-
}
|
|
1606
|
-
}
|
|
1607
|
-
return "";
|
|
1608
|
-
}
|
|
1609
|
-
var loggedTypeFailures = {};
|
|
1610
|
-
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
1611
|
-
function setCurrentlyValidatingElement(element) {
|
|
1612
|
-
{
|
|
1613
|
-
if (element) {
|
|
1614
|
-
var owner = element._owner;
|
|
1615
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
1616
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
1617
|
-
} else {
|
|
1618
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
1619
|
-
}
|
|
1620
|
-
}
|
|
1621
|
-
}
|
|
1622
|
-
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
1623
|
-
{
|
|
1624
|
-
var has = Function.call.bind(hasOwnProperty3);
|
|
1625
|
-
for (var typeSpecName in typeSpecs) {
|
|
1626
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
1627
|
-
var error$1 = void 0;
|
|
1628
|
-
try {
|
|
1629
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
1630
|
-
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1631
|
-
err.name = "Invariant Violation";
|
|
1632
|
-
throw err;
|
|
1633
|
-
}
|
|
1634
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1635
|
-
} catch (ex) {
|
|
1636
|
-
error$1 = ex;
|
|
1637
|
-
}
|
|
1638
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
1639
|
-
setCurrentlyValidatingElement(element);
|
|
1640
|
-
error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
|
|
1641
|
-
setCurrentlyValidatingElement(null);
|
|
1642
|
-
}
|
|
1643
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
1644
|
-
loggedTypeFailures[error$1.message] = true;
|
|
1645
|
-
setCurrentlyValidatingElement(element);
|
|
1646
|
-
error("Failed %s type: %s", location, error$1.message);
|
|
1647
|
-
setCurrentlyValidatingElement(null);
|
|
1648
|
-
}
|
|
1649
|
-
}
|
|
1650
|
-
}
|
|
1651
|
-
}
|
|
1652
|
-
}
|
|
1653
|
-
function setCurrentlyValidatingElement$1(element) {
|
|
1654
|
-
{
|
|
1655
|
-
if (element) {
|
|
1656
|
-
var owner = element._owner;
|
|
1657
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
1658
|
-
setExtraStackFrame(stack);
|
|
1659
|
-
} else {
|
|
1660
|
-
setExtraStackFrame(null);
|
|
1661
|
-
}
|
|
1662
|
-
}
|
|
1663
|
-
}
|
|
1664
|
-
var propTypesMisspellWarningShown;
|
|
1665
|
-
{
|
|
1666
|
-
propTypesMisspellWarningShown = false;
|
|
1667
|
-
}
|
|
1668
|
-
function getDeclarationErrorAddendum() {
|
|
1669
|
-
if (ReactCurrentOwner.current) {
|
|
1670
|
-
var name = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
1671
|
-
if (name) {
|
|
1672
|
-
return "\n\nCheck the render method of `" + name + "`.";
|
|
1673
|
-
}
|
|
1674
|
-
}
|
|
1675
|
-
return "";
|
|
1676
|
-
}
|
|
1677
|
-
function getSourceInfoErrorAddendum(source) {
|
|
1678
|
-
if (source !== void 0) {
|
|
1679
|
-
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
|
1680
|
-
var lineNumber = source.lineNumber;
|
|
1681
|
-
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
|
1682
|
-
}
|
|
1683
|
-
return "";
|
|
1684
|
-
}
|
|
1685
|
-
function getSourceInfoErrorAddendumForProps(elementProps) {
|
|
1686
|
-
if (elementProps !== null && elementProps !== void 0) {
|
|
1687
|
-
return getSourceInfoErrorAddendum(elementProps.__source);
|
|
1688
|
-
}
|
|
1689
|
-
return "";
|
|
1690
|
-
}
|
|
1691
|
-
var ownerHasKeyUseWarning = {};
|
|
1692
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
1693
|
-
var info = getDeclarationErrorAddendum();
|
|
1694
|
-
if (!info) {
|
|
1695
|
-
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
1696
|
-
if (parentName) {
|
|
1697
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
1698
|
-
}
|
|
1699
|
-
}
|
|
1700
|
-
return info;
|
|
1701
|
-
}
|
|
1702
|
-
function validateExplicitKey(element, parentType) {
|
|
1703
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
1704
|
-
return;
|
|
1705
|
-
}
|
|
1706
|
-
element._store.validated = true;
|
|
1707
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
1708
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
1709
|
-
return;
|
|
1710
|
-
}
|
|
1711
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
1712
|
-
var childOwner = "";
|
|
1713
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
|
|
1714
|
-
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
1715
|
-
}
|
|
1716
|
-
{
|
|
1717
|
-
setCurrentlyValidatingElement$1(element);
|
|
1718
|
-
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
1719
|
-
setCurrentlyValidatingElement$1(null);
|
|
1720
|
-
}
|
|
1721
|
-
}
|
|
1722
|
-
function validateChildKeys(node2, parentType) {
|
|
1723
|
-
if (typeof node2 !== "object") {
|
|
1724
|
-
return;
|
|
1725
|
-
}
|
|
1726
|
-
if (isArray2(node2)) {
|
|
1727
|
-
for (var i = 0; i < node2.length; i++) {
|
|
1728
|
-
var child = node2[i];
|
|
1729
|
-
if (isValidElement(child)) {
|
|
1730
|
-
validateExplicitKey(child, parentType);
|
|
1731
|
-
}
|
|
1732
|
-
}
|
|
1733
|
-
} else if (isValidElement(node2)) {
|
|
1734
|
-
if (node2._store) {
|
|
1735
|
-
node2._store.validated = true;
|
|
1736
|
-
}
|
|
1737
|
-
} else if (node2) {
|
|
1738
|
-
var iteratorFn = getIteratorFn(node2);
|
|
1739
|
-
if (typeof iteratorFn === "function") {
|
|
1740
|
-
if (iteratorFn !== node2.entries) {
|
|
1741
|
-
var iterator = iteratorFn.call(node2);
|
|
1742
|
-
var step;
|
|
1743
|
-
while (!(step = iterator.next()).done) {
|
|
1744
|
-
if (isValidElement(step.value)) {
|
|
1745
|
-
validateExplicitKey(step.value, parentType);
|
|
1746
|
-
}
|
|
1747
|
-
}
|
|
1748
|
-
}
|
|
1749
|
-
}
|
|
1750
|
-
}
|
|
1751
|
-
}
|
|
1752
|
-
function validatePropTypes(element) {
|
|
1753
|
-
{
|
|
1754
|
-
var type = element.type;
|
|
1755
|
-
if (type === null || type === void 0 || typeof type === "string") {
|
|
1756
|
-
return;
|
|
1757
|
-
}
|
|
1758
|
-
var propTypes;
|
|
1759
|
-
if (typeof type === "function") {
|
|
1760
|
-
propTypes = type.propTypes;
|
|
1761
|
-
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
1762
|
-
// Inner props are checked in the reconciler.
|
|
1763
|
-
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
1764
|
-
propTypes = type.propTypes;
|
|
1765
|
-
} else {
|
|
1766
|
-
return;
|
|
1767
|
-
}
|
|
1768
|
-
if (propTypes) {
|
|
1769
|
-
var name = getComponentNameFromType(type);
|
|
1770
|
-
checkPropTypes(propTypes, element.props, "prop", name, element);
|
|
1771
|
-
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
1772
|
-
propTypesMisspellWarningShown = true;
|
|
1773
|
-
var _name = getComponentNameFromType(type);
|
|
1774
|
-
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
1775
|
-
}
|
|
1776
|
-
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
1777
|
-
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
1778
|
-
}
|
|
1779
|
-
}
|
|
1780
|
-
}
|
|
1781
|
-
function validateFragmentProps(fragment) {
|
|
1782
|
-
{
|
|
1783
|
-
var keys = Object.keys(fragment.props);
|
|
1784
|
-
for (var i = 0; i < keys.length; i++) {
|
|
1785
|
-
var key = keys[i];
|
|
1786
|
-
if (key !== "children" && key !== "key") {
|
|
1787
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
1788
|
-
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
1789
|
-
setCurrentlyValidatingElement$1(null);
|
|
1790
|
-
break;
|
|
1791
|
-
}
|
|
1792
|
-
}
|
|
1793
|
-
if (fragment.ref !== null) {
|
|
1794
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
1795
|
-
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
1796
|
-
setCurrentlyValidatingElement$1(null);
|
|
1797
|
-
}
|
|
1798
|
-
}
|
|
1799
|
-
}
|
|
1800
|
-
function createElementWithValidation(type, props, children) {
|
|
1801
|
-
var validType = isValidElementType(type);
|
|
1802
|
-
if (!validType) {
|
|
1803
|
-
var info = "";
|
|
1804
|
-
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
1805
|
-
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.";
|
|
1806
|
-
}
|
|
1807
|
-
var sourceInfo = getSourceInfoErrorAddendumForProps(props);
|
|
1808
|
-
if (sourceInfo) {
|
|
1809
|
-
info += sourceInfo;
|
|
1810
|
-
} else {
|
|
1811
|
-
info += getDeclarationErrorAddendum();
|
|
1812
|
-
}
|
|
1813
|
-
var typeString;
|
|
1814
|
-
if (type === null) {
|
|
1815
|
-
typeString = "null";
|
|
1816
|
-
} else if (isArray2(type)) {
|
|
1817
|
-
typeString = "array";
|
|
1818
|
-
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
1819
|
-
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
1820
|
-
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
1821
|
-
} else {
|
|
1822
|
-
typeString = typeof type;
|
|
1823
|
-
}
|
|
1824
|
-
{
|
|
1825
|
-
error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
|
1826
|
-
}
|
|
1827
|
-
}
|
|
1828
|
-
var element = createElement4.apply(this, arguments);
|
|
1829
|
-
if (element == null) {
|
|
1830
|
-
return element;
|
|
1831
|
-
}
|
|
1832
|
-
if (validType) {
|
|
1833
|
-
for (var i = 2; i < arguments.length; i++) {
|
|
1834
|
-
validateChildKeys(arguments[i], type);
|
|
1835
|
-
}
|
|
1836
|
-
}
|
|
1837
|
-
if (type === REACT_FRAGMENT_TYPE) {
|
|
1838
|
-
validateFragmentProps(element);
|
|
1839
|
-
} else {
|
|
1840
|
-
validatePropTypes(element);
|
|
1841
|
-
}
|
|
1842
|
-
return element;
|
|
1843
|
-
}
|
|
1844
|
-
var didWarnAboutDeprecatedCreateFactory = false;
|
|
1845
|
-
function createFactoryWithValidation(type) {
|
|
1846
|
-
var validatedFactory = createElementWithValidation.bind(null, type);
|
|
1847
|
-
validatedFactory.type = type;
|
|
1848
|
-
{
|
|
1849
|
-
if (!didWarnAboutDeprecatedCreateFactory) {
|
|
1850
|
-
didWarnAboutDeprecatedCreateFactory = true;
|
|
1851
|
-
warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
|
|
1852
|
-
}
|
|
1853
|
-
Object.defineProperty(validatedFactory, "type", {
|
|
1854
|
-
enumerable: false,
|
|
1855
|
-
get: function() {
|
|
1856
|
-
warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
|
|
1857
|
-
Object.defineProperty(this, "type", {
|
|
1858
|
-
value: type
|
|
1859
|
-
});
|
|
1860
|
-
return type;
|
|
1861
|
-
}
|
|
1862
|
-
});
|
|
1863
|
-
}
|
|
1864
|
-
return validatedFactory;
|
|
1865
|
-
}
|
|
1866
|
-
function cloneElementWithValidation(element, props, children) {
|
|
1867
|
-
var newElement = cloneElement.apply(this, arguments);
|
|
1868
|
-
for (var i = 2; i < arguments.length; i++) {
|
|
1869
|
-
validateChildKeys(arguments[i], newElement.type);
|
|
1870
|
-
}
|
|
1871
|
-
validatePropTypes(newElement);
|
|
1872
|
-
return newElement;
|
|
1873
|
-
}
|
|
1874
|
-
function startTransition(scope, options) {
|
|
1875
|
-
var prevTransition = ReactCurrentBatchConfig.transition;
|
|
1876
|
-
ReactCurrentBatchConfig.transition = {};
|
|
1877
|
-
var currentTransition = ReactCurrentBatchConfig.transition;
|
|
1878
|
-
{
|
|
1879
|
-
ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1880
|
-
}
|
|
1881
|
-
try {
|
|
1882
|
-
scope();
|
|
1883
|
-
} finally {
|
|
1884
|
-
ReactCurrentBatchConfig.transition = prevTransition;
|
|
1885
|
-
{
|
|
1886
|
-
if (prevTransition === null && currentTransition._updatedFibers) {
|
|
1887
|
-
var updatedFibersCount = currentTransition._updatedFibers.size;
|
|
1888
|
-
if (updatedFibersCount > 10) {
|
|
1889
|
-
warn("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.");
|
|
1890
|
-
}
|
|
1891
|
-
currentTransition._updatedFibers.clear();
|
|
1892
|
-
}
|
|
1893
|
-
}
|
|
1894
|
-
}
|
|
1895
|
-
}
|
|
1896
|
-
var didWarnAboutMessageChannel = false;
|
|
1897
|
-
var enqueueTaskImpl = null;
|
|
1898
|
-
function enqueueTask(task2) {
|
|
1899
|
-
if (enqueueTaskImpl === null) {
|
|
1900
|
-
try {
|
|
1901
|
-
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
1902
|
-
var nodeRequire = module2 && module2[requireString];
|
|
1903
|
-
enqueueTaskImpl = nodeRequire.call(module2, "timers").setImmediate;
|
|
1904
|
-
} catch (_err) {
|
|
1905
|
-
enqueueTaskImpl = function(callback) {
|
|
1906
|
-
{
|
|
1907
|
-
if (didWarnAboutMessageChannel === false) {
|
|
1908
|
-
didWarnAboutMessageChannel = true;
|
|
1909
|
-
if (typeof MessageChannel === "undefined") {
|
|
1910
|
-
error("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.");
|
|
1911
|
-
}
|
|
1912
|
-
}
|
|
1913
|
-
}
|
|
1914
|
-
var channel = new MessageChannel();
|
|
1915
|
-
channel.port1.onmessage = callback;
|
|
1916
|
-
channel.port2.postMessage(void 0);
|
|
1917
|
-
};
|
|
1918
|
-
}
|
|
1919
|
-
}
|
|
1920
|
-
return enqueueTaskImpl(task2);
|
|
1921
|
-
}
|
|
1922
|
-
var actScopeDepth = 0;
|
|
1923
|
-
var didWarnNoAwaitAct = false;
|
|
1924
|
-
function act(callback) {
|
|
1925
|
-
{
|
|
1926
|
-
var prevActScopeDepth = actScopeDepth;
|
|
1927
|
-
actScopeDepth++;
|
|
1928
|
-
if (ReactCurrentActQueue.current === null) {
|
|
1929
|
-
ReactCurrentActQueue.current = [];
|
|
1930
|
-
}
|
|
1931
|
-
var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
|
|
1932
|
-
var result2;
|
|
1933
|
-
try {
|
|
1934
|
-
ReactCurrentActQueue.isBatchingLegacy = true;
|
|
1935
|
-
result2 = callback();
|
|
1936
|
-
if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
|
|
1937
|
-
var queue3 = ReactCurrentActQueue.current;
|
|
1938
|
-
if (queue3 !== null) {
|
|
1939
|
-
ReactCurrentActQueue.didScheduleLegacyUpdate = false;
|
|
1940
|
-
flushActQueue(queue3);
|
|
1941
|
-
}
|
|
1942
|
-
}
|
|
1943
|
-
} catch (error2) {
|
|
1944
|
-
popActScope(prevActScopeDepth);
|
|
1945
|
-
throw error2;
|
|
1946
|
-
} finally {
|
|
1947
|
-
ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
|
|
1948
|
-
}
|
|
1949
|
-
if (result2 !== null && typeof result2 === "object" && typeof result2.then === "function") {
|
|
1950
|
-
var thenableResult = result2;
|
|
1951
|
-
var wasAwaited = false;
|
|
1952
|
-
var thenable = {
|
|
1953
|
-
then: function(resolve, reject) {
|
|
1954
|
-
wasAwaited = true;
|
|
1955
|
-
thenableResult.then(function(returnValue2) {
|
|
1956
|
-
popActScope(prevActScopeDepth);
|
|
1957
|
-
if (actScopeDepth === 0) {
|
|
1958
|
-
recursivelyFlushAsyncActWork(returnValue2, resolve, reject);
|
|
1959
|
-
} else {
|
|
1960
|
-
resolve(returnValue2);
|
|
1961
|
-
}
|
|
1962
|
-
}, function(error2) {
|
|
1963
|
-
popActScope(prevActScopeDepth);
|
|
1964
|
-
reject(error2);
|
|
1965
|
-
});
|
|
1966
|
-
}
|
|
1967
|
-
};
|
|
1968
|
-
{
|
|
1969
|
-
if (!didWarnNoAwaitAct && typeof Promise !== "undefined") {
|
|
1970
|
-
Promise.resolve().then(function() {
|
|
1971
|
-
}).then(function() {
|
|
1972
|
-
if (!wasAwaited) {
|
|
1973
|
-
didWarnNoAwaitAct = true;
|
|
1974
|
-
error("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 () => ...);");
|
|
1975
|
-
}
|
|
1976
|
-
});
|
|
1977
|
-
}
|
|
1978
|
-
}
|
|
1979
|
-
return thenable;
|
|
1980
|
-
} else {
|
|
1981
|
-
var returnValue = result2;
|
|
1982
|
-
popActScope(prevActScopeDepth);
|
|
1983
|
-
if (actScopeDepth === 0) {
|
|
1984
|
-
var _queue = ReactCurrentActQueue.current;
|
|
1985
|
-
if (_queue !== null) {
|
|
1986
|
-
flushActQueue(_queue);
|
|
1987
|
-
ReactCurrentActQueue.current = null;
|
|
1988
|
-
}
|
|
1989
|
-
var _thenable = {
|
|
1990
|
-
then: function(resolve, reject) {
|
|
1991
|
-
if (ReactCurrentActQueue.current === null) {
|
|
1992
|
-
ReactCurrentActQueue.current = [];
|
|
1993
|
-
recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
1994
|
-
} else {
|
|
1995
|
-
resolve(returnValue);
|
|
1996
|
-
}
|
|
1997
|
-
}
|
|
1998
|
-
};
|
|
1999
|
-
return _thenable;
|
|
2000
|
-
} else {
|
|
2001
|
-
var _thenable2 = {
|
|
2002
|
-
then: function(resolve, reject) {
|
|
2003
|
-
resolve(returnValue);
|
|
2004
|
-
}
|
|
2005
|
-
};
|
|
2006
|
-
return _thenable2;
|
|
2007
|
-
}
|
|
2008
|
-
}
|
|
2009
|
-
}
|
|
2010
|
-
}
|
|
2011
|
-
function popActScope(prevActScopeDepth) {
|
|
2012
|
-
{
|
|
2013
|
-
if (prevActScopeDepth !== actScopeDepth - 1) {
|
|
2014
|
-
error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
|
|
2015
|
-
}
|
|
2016
|
-
actScopeDepth = prevActScopeDepth;
|
|
2017
|
-
}
|
|
2018
|
-
}
|
|
2019
|
-
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
2020
|
-
{
|
|
2021
|
-
var queue3 = ReactCurrentActQueue.current;
|
|
2022
|
-
if (queue3 !== null) {
|
|
2023
|
-
try {
|
|
2024
|
-
flushActQueue(queue3);
|
|
2025
|
-
enqueueTask(function() {
|
|
2026
|
-
if (queue3.length === 0) {
|
|
2027
|
-
ReactCurrentActQueue.current = null;
|
|
2028
|
-
resolve(returnValue);
|
|
2029
|
-
} else {
|
|
2030
|
-
recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
2031
|
-
}
|
|
2032
|
-
});
|
|
2033
|
-
} catch (error2) {
|
|
2034
|
-
reject(error2);
|
|
2035
|
-
}
|
|
2036
|
-
} else {
|
|
2037
|
-
resolve(returnValue);
|
|
2038
|
-
}
|
|
2039
|
-
}
|
|
2040
|
-
}
|
|
2041
|
-
var isFlushing = false;
|
|
2042
|
-
function flushActQueue(queue3) {
|
|
2043
|
-
{
|
|
2044
|
-
if (!isFlushing) {
|
|
2045
|
-
isFlushing = true;
|
|
2046
|
-
var i = 0;
|
|
2047
|
-
try {
|
|
2048
|
-
for (; i < queue3.length; i++) {
|
|
2049
|
-
var callback = queue3[i];
|
|
2050
|
-
do {
|
|
2051
|
-
callback = callback(true);
|
|
2052
|
-
} while (callback !== null);
|
|
2053
|
-
}
|
|
2054
|
-
queue3.length = 0;
|
|
2055
|
-
} catch (error2) {
|
|
2056
|
-
queue3 = queue3.slice(i + 1);
|
|
2057
|
-
throw error2;
|
|
2058
|
-
} finally {
|
|
2059
|
-
isFlushing = false;
|
|
2060
|
-
}
|
|
2061
|
-
}
|
|
2062
|
-
}
|
|
2063
|
-
}
|
|
2064
|
-
var createElement$1 = createElementWithValidation;
|
|
2065
|
-
var cloneElement$1 = cloneElementWithValidation;
|
|
2066
|
-
var createFactory = createFactoryWithValidation;
|
|
2067
|
-
var Children = {
|
|
2068
|
-
map: mapChildren,
|
|
2069
|
-
forEach: forEachChildren,
|
|
2070
|
-
count: countChildren,
|
|
2071
|
-
toArray,
|
|
2072
|
-
only: onlyChild
|
|
2073
|
-
};
|
|
2074
|
-
exports.Children = Children;
|
|
2075
|
-
exports.Component = Component;
|
|
2076
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
2077
|
-
exports.Profiler = REACT_PROFILER_TYPE;
|
|
2078
|
-
exports.PureComponent = PureComponent;
|
|
2079
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
2080
|
-
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
2081
|
-
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
|
|
2082
|
-
exports.cloneElement = cloneElement$1;
|
|
2083
|
-
exports.createContext = createContext3;
|
|
2084
|
-
exports.createElement = createElement$1;
|
|
2085
|
-
exports.createFactory = createFactory;
|
|
2086
|
-
exports.createRef = createRef;
|
|
2087
|
-
exports.forwardRef = forwardRef3;
|
|
2088
|
-
exports.isValidElement = isValidElement;
|
|
2089
|
-
exports.lazy = lazy;
|
|
2090
|
-
exports.memo = memo;
|
|
2091
|
-
exports.startTransition = startTransition;
|
|
2092
|
-
exports.unstable_act = act;
|
|
2093
|
-
exports.useCallback = useCallback9;
|
|
2094
|
-
exports.useContext = useContext6;
|
|
2095
|
-
exports.useDebugValue = useDebugValue;
|
|
2096
|
-
exports.useDeferredValue = useDeferredValue;
|
|
2097
|
-
exports.useEffect = useEffect5;
|
|
2098
|
-
exports.useId = useId;
|
|
2099
|
-
exports.useImperativeHandle = useImperativeHandle;
|
|
2100
|
-
exports.useInsertionEffect = useInsertionEffect3;
|
|
2101
|
-
exports.useLayoutEffect = useLayoutEffect2;
|
|
2102
|
-
exports.useMemo = useMemo4;
|
|
2103
|
-
exports.useReducer = useReducer;
|
|
2104
|
-
exports.useRef = useRef4;
|
|
2105
|
-
exports.useState = useState6;
|
|
2106
|
-
exports.useSyncExternalStore = useSyncExternalStore2;
|
|
2107
|
-
exports.useTransition = useTransition;
|
|
2108
|
-
exports.version = ReactVersion;
|
|
2109
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
|
|
2110
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
2111
|
-
}
|
|
2112
|
-
})();
|
|
2113
|
-
}
|
|
2114
|
-
}
|
|
2115
|
-
});
|
|
2116
|
-
|
|
2117
|
-
// node_modules/.pnpm/react@18.2.0/node_modules/react/index.js
|
|
2118
|
-
var require_react = __commonJS({
|
|
2119
|
-
"node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(exports, module2) {
|
|
2120
|
-
"use strict";
|
|
2121
|
-
init_process();
|
|
2122
|
-
if (false) {
|
|
2123
|
-
module2.exports = null;
|
|
2124
|
-
} else {
|
|
2125
|
-
module2.exports = require_react_development();
|
|
2126
|
-
}
|
|
2127
|
-
}
|
|
2128
|
-
});
|
|
2129
|
-
|
|
2130
|
-
// node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js
|
|
2131
|
-
var require_react_is_development = __commonJS({
|
|
2132
|
-
"node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js"(exports) {
|
|
2133
|
-
"use strict";
|
|
2134
|
-
init_process();
|
|
2135
|
-
if (true) {
|
|
2136
|
-
(function() {
|
|
2137
|
-
"use strict";
|
|
2138
|
-
var hasSymbol = typeof Symbol === "function" && Symbol.for;
|
|
2139
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
|
|
2140
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
|
|
2141
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
|
|
2142
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
|
|
2143
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
|
|
2144
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
|
|
2145
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
|
|
2146
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
|
|
2147
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
|
|
2148
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
|
|
2149
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
|
|
2150
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
|
|
2151
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
|
|
2152
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
|
|
2153
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
|
|
2154
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
|
|
2155
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
|
|
2156
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
|
|
2157
|
-
function isValidElementType(type) {
|
|
2158
|
-
return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
2159
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
2160
|
-
}
|
|
2161
|
-
function typeOf3(object) {
|
|
2162
|
-
if (typeof object === "object" && object !== null) {
|
|
2163
|
-
var $$typeof = object.$$typeof;
|
|
2164
|
-
switch ($$typeof) {
|
|
2165
|
-
case REACT_ELEMENT_TYPE:
|
|
2166
|
-
var type = object.type;
|
|
2167
|
-
switch (type) {
|
|
2168
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
2169
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
2170
|
-
case REACT_FRAGMENT_TYPE:
|
|
2171
|
-
case REACT_PROFILER_TYPE:
|
|
2172
|
-
case REACT_STRICT_MODE_TYPE:
|
|
2173
|
-
case REACT_SUSPENSE_TYPE:
|
|
2174
|
-
return type;
|
|
2175
|
-
default:
|
|
2176
|
-
var $$typeofType = type && type.$$typeof;
|
|
2177
|
-
switch ($$typeofType) {
|
|
2178
|
-
case REACT_CONTEXT_TYPE:
|
|
2179
|
-
case REACT_FORWARD_REF_TYPE:
|
|
2180
|
-
case REACT_LAZY_TYPE:
|
|
2181
|
-
case REACT_MEMO_TYPE:
|
|
2182
|
-
case REACT_PROVIDER_TYPE:
|
|
2183
|
-
return $$typeofType;
|
|
2184
|
-
default:
|
|
2185
|
-
return $$typeof;
|
|
2186
|
-
}
|
|
2187
|
-
}
|
|
2188
|
-
case REACT_PORTAL_TYPE:
|
|
2189
|
-
return $$typeof;
|
|
2190
|
-
}
|
|
2191
|
-
}
|
|
2192
|
-
return void 0;
|
|
2193
|
-
}
|
|
2194
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
2195
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
2196
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
2197
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
2198
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
2199
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
2200
|
-
var Fragment6 = REACT_FRAGMENT_TYPE;
|
|
2201
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
2202
|
-
var Memo = REACT_MEMO_TYPE;
|
|
2203
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
2204
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
2205
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
2206
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
2207
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
2208
|
-
function isAsyncMode(object) {
|
|
2209
|
-
{
|
|
2210
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
2211
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
2212
|
-
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
|
|
2213
|
-
}
|
|
2214
|
-
}
|
|
2215
|
-
return isConcurrentMode(object) || typeOf3(object) === REACT_ASYNC_MODE_TYPE;
|
|
2216
|
-
}
|
|
2217
|
-
function isConcurrentMode(object) {
|
|
2218
|
-
return typeOf3(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
2219
|
-
}
|
|
2220
|
-
function isContextConsumer(object) {
|
|
2221
|
-
return typeOf3(object) === REACT_CONTEXT_TYPE;
|
|
2222
|
-
}
|
|
2223
|
-
function isContextProvider(object) {
|
|
2224
|
-
return typeOf3(object) === REACT_PROVIDER_TYPE;
|
|
2225
|
-
}
|
|
2226
|
-
function isElement(object) {
|
|
2227
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
2228
|
-
}
|
|
2229
|
-
function isForwardRef(object) {
|
|
2230
|
-
return typeOf3(object) === REACT_FORWARD_REF_TYPE;
|
|
2231
|
-
}
|
|
2232
|
-
function isFragment(object) {
|
|
2233
|
-
return typeOf3(object) === REACT_FRAGMENT_TYPE;
|
|
2234
|
-
}
|
|
2235
|
-
function isLazy(object) {
|
|
2236
|
-
return typeOf3(object) === REACT_LAZY_TYPE;
|
|
2237
|
-
}
|
|
2238
|
-
function isMemo(object) {
|
|
2239
|
-
return typeOf3(object) === REACT_MEMO_TYPE;
|
|
2240
|
-
}
|
|
2241
|
-
function isPortal(object) {
|
|
2242
|
-
return typeOf3(object) === REACT_PORTAL_TYPE;
|
|
2243
|
-
}
|
|
2244
|
-
function isProfiler(object) {
|
|
2245
|
-
return typeOf3(object) === REACT_PROFILER_TYPE;
|
|
2246
|
-
}
|
|
2247
|
-
function isStrictMode(object) {
|
|
2248
|
-
return typeOf3(object) === REACT_STRICT_MODE_TYPE;
|
|
2249
|
-
}
|
|
2250
|
-
function isSuspense(object) {
|
|
2251
|
-
return typeOf3(object) === REACT_SUSPENSE_TYPE;
|
|
2252
|
-
}
|
|
2253
|
-
exports.AsyncMode = AsyncMode;
|
|
2254
|
-
exports.ConcurrentMode = ConcurrentMode;
|
|
2255
|
-
exports.ContextConsumer = ContextConsumer;
|
|
2256
|
-
exports.ContextProvider = ContextProvider;
|
|
2257
|
-
exports.Element = Element;
|
|
2258
|
-
exports.ForwardRef = ForwardRef;
|
|
2259
|
-
exports.Fragment = Fragment6;
|
|
2260
|
-
exports.Lazy = Lazy;
|
|
2261
|
-
exports.Memo = Memo;
|
|
2262
|
-
exports.Portal = Portal;
|
|
2263
|
-
exports.Profiler = Profiler;
|
|
2264
|
-
exports.StrictMode = StrictMode;
|
|
2265
|
-
exports.Suspense = Suspense;
|
|
2266
|
-
exports.isAsyncMode = isAsyncMode;
|
|
2267
|
-
exports.isConcurrentMode = isConcurrentMode;
|
|
2268
|
-
exports.isContextConsumer = isContextConsumer;
|
|
2269
|
-
exports.isContextProvider = isContextProvider;
|
|
2270
|
-
exports.isElement = isElement;
|
|
2271
|
-
exports.isForwardRef = isForwardRef;
|
|
2272
|
-
exports.isFragment = isFragment;
|
|
2273
|
-
exports.isLazy = isLazy;
|
|
2274
|
-
exports.isMemo = isMemo;
|
|
2275
|
-
exports.isPortal = isPortal;
|
|
2276
|
-
exports.isProfiler = isProfiler;
|
|
2277
|
-
exports.isStrictMode = isStrictMode;
|
|
2278
|
-
exports.isSuspense = isSuspense;
|
|
2279
|
-
exports.isValidElementType = isValidElementType;
|
|
2280
|
-
exports.typeOf = typeOf3;
|
|
2281
|
-
})();
|
|
2282
|
-
}
|
|
2283
|
-
}
|
|
2284
|
-
});
|
|
2285
|
-
|
|
2286
|
-
// node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js
|
|
2287
|
-
var require_react_is = __commonJS({
|
|
2288
|
-
"node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js"(exports, module2) {
|
|
2289
|
-
"use strict";
|
|
2290
|
-
init_process();
|
|
2291
|
-
if (false) {
|
|
2292
|
-
module2.exports = null;
|
|
2293
|
-
} else {
|
|
2294
|
-
module2.exports = require_react_is_development();
|
|
2295
|
-
}
|
|
2296
|
-
}
|
|
2297
|
-
});
|
|
2298
|
-
|
|
2299
|
-
// node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
|
|
2300
|
-
var require_hoist_non_react_statics_cjs = __commonJS({
|
|
2301
|
-
"node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module2) {
|
|
2302
|
-
"use strict";
|
|
2303
|
-
init_process();
|
|
2304
|
-
var reactIs = require_react_is();
|
|
2305
|
-
var REACT_STATICS = {
|
|
2306
|
-
childContextTypes: true,
|
|
2307
|
-
contextType: true,
|
|
2308
|
-
contextTypes: true,
|
|
2309
|
-
defaultProps: true,
|
|
2310
|
-
displayName: true,
|
|
2311
|
-
getDefaultProps: true,
|
|
2312
|
-
getDerivedStateFromError: true,
|
|
2313
|
-
getDerivedStateFromProps: true,
|
|
2314
|
-
mixins: true,
|
|
2315
|
-
propTypes: true,
|
|
2316
|
-
type: true
|
|
2317
|
-
};
|
|
2318
|
-
var KNOWN_STATICS = {
|
|
2319
|
-
name: true,
|
|
2320
|
-
length: true,
|
|
2321
|
-
prototype: true,
|
|
2322
|
-
caller: true,
|
|
2323
|
-
callee: true,
|
|
2324
|
-
arguments: true,
|
|
2325
|
-
arity: true
|
|
2326
|
-
};
|
|
2327
|
-
var FORWARD_REF_STATICS = {
|
|
2328
|
-
"$$typeof": true,
|
|
2329
|
-
render: true,
|
|
2330
|
-
defaultProps: true,
|
|
2331
|
-
displayName: true,
|
|
2332
|
-
propTypes: true
|
|
2333
|
-
};
|
|
2334
|
-
var MEMO_STATICS = {
|
|
2335
|
-
"$$typeof": true,
|
|
2336
|
-
compare: true,
|
|
2337
|
-
defaultProps: true,
|
|
2338
|
-
displayName: true,
|
|
2339
|
-
propTypes: true,
|
|
2340
|
-
type: true
|
|
2341
|
-
};
|
|
2342
|
-
var TYPE_STATICS = {};
|
|
2343
|
-
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
2344
|
-
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
2345
|
-
function getStatics(component) {
|
|
2346
|
-
if (reactIs.isMemo(component)) {
|
|
2347
|
-
return MEMO_STATICS;
|
|
2348
|
-
}
|
|
2349
|
-
return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
|
|
2350
|
-
}
|
|
2351
|
-
var defineProperty = Object.defineProperty;
|
|
2352
|
-
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
2353
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
2354
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
2355
|
-
var getPrototypeOf = Object.getPrototypeOf;
|
|
2356
|
-
var objectPrototype = Object.prototype;
|
|
2357
|
-
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
2358
|
-
if (typeof sourceComponent !== "string") {
|
|
2359
|
-
if (objectPrototype) {
|
|
2360
|
-
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
2361
|
-
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
2362
|
-
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
2363
|
-
}
|
|
2364
|
-
}
|
|
2365
|
-
var keys = getOwnPropertyNames(sourceComponent);
|
|
2366
|
-
if (getOwnPropertySymbols) {
|
|
2367
|
-
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
2368
|
-
}
|
|
2369
|
-
var targetStatics = getStatics(targetComponent);
|
|
2370
|
-
var sourceStatics = getStatics(sourceComponent);
|
|
2371
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
2372
|
-
var key = keys[i];
|
|
2373
|
-
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
2374
|
-
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
2375
|
-
try {
|
|
2376
|
-
defineProperty(targetComponent, key, descriptor);
|
|
2377
|
-
} catch (e) {
|
|
2378
|
-
}
|
|
2379
|
-
}
|
|
2380
|
-
}
|
|
2381
|
-
}
|
|
2382
|
-
return targetComponent;
|
|
2383
|
-
}
|
|
2384
|
-
module2.exports = hoistNonReactStatics;
|
|
2385
|
-
}
|
|
2386
|
-
});
|
|
2387
|
-
|
|
2388
|
-
// node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.development.js
|
|
2389
|
-
var require_react_jsx_runtime_development = __commonJS({
|
|
2390
|
-
"node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
|
|
243
|
+
// node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js
|
|
244
|
+
var require_react_is_development = __commonJS({
|
|
245
|
+
"node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js"(exports) {
|
|
2391
246
|
"use strict";
|
|
2392
247
|
init_process();
|
|
2393
248
|
if (true) {
|
|
2394
249
|
(function() {
|
|
2395
250
|
"use strict";
|
|
2396
|
-
var
|
|
2397
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
2398
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
2399
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
2400
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
2401
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
2402
|
-
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
2403
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
2404
|
-
var
|
|
2405
|
-
var
|
|
2406
|
-
var
|
|
2407
|
-
var
|
|
2408
|
-
var
|
|
2409
|
-
var
|
|
2410
|
-
var
|
|
2411
|
-
var
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
}
|
|
2416
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
2417
|
-
if (typeof maybeIterator === "function") {
|
|
2418
|
-
return maybeIterator;
|
|
2419
|
-
}
|
|
2420
|
-
return null;
|
|
2421
|
-
}
|
|
2422
|
-
var ReactSharedInternals = React17.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
2423
|
-
function error(format4) {
|
|
2424
|
-
{
|
|
2425
|
-
{
|
|
2426
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
2427
|
-
args[_key2 - 1] = arguments[_key2];
|
|
2428
|
-
}
|
|
2429
|
-
printWarning("error", format4, args);
|
|
2430
|
-
}
|
|
2431
|
-
}
|
|
2432
|
-
}
|
|
2433
|
-
function printWarning(level, format4, args) {
|
|
2434
|
-
{
|
|
2435
|
-
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
2436
|
-
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
2437
|
-
if (stack !== "") {
|
|
2438
|
-
format4 += "%s";
|
|
2439
|
-
args = args.concat([stack]);
|
|
2440
|
-
}
|
|
2441
|
-
var argsWithFormat = args.map(function(item) {
|
|
2442
|
-
return String(item);
|
|
2443
|
-
});
|
|
2444
|
-
argsWithFormat.unshift("Warning: " + format4);
|
|
2445
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
2446
|
-
}
|
|
2447
|
-
}
|
|
2448
|
-
var enableScopeAPI = false;
|
|
2449
|
-
var enableCacheElement = false;
|
|
2450
|
-
var enableTransitionTracing = false;
|
|
2451
|
-
var enableLegacyHidden = false;
|
|
2452
|
-
var enableDebugTracing = false;
|
|
2453
|
-
var REACT_MODULE_REFERENCE;
|
|
2454
|
-
{
|
|
2455
|
-
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
2456
|
-
}
|
|
251
|
+
var hasSymbol = typeof Symbol === "function" && Symbol.for;
|
|
252
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
|
|
253
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
|
|
254
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
|
|
255
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
|
|
256
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
|
|
257
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
|
|
258
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
|
|
259
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
|
|
260
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
|
|
261
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
|
|
262
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
|
|
263
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
|
|
264
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
|
|
265
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
|
|
266
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
|
|
267
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
|
|
268
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
|
|
269
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
|
|
2457
270
|
function isValidElementType(type) {
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
}
|
|
2461
|
-
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 || enableCacheElement || enableTransitionTracing) {
|
|
2462
|
-
return true;
|
|
2463
|
-
}
|
|
2464
|
-
if (typeof type === "object" && type !== null) {
|
|
2465
|
-
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
|
2466
|
-
// types supported by any Flight configuration anywhere since
|
|
2467
|
-
// we don't know which Flight build this will end up being used
|
|
2468
|
-
// with.
|
|
2469
|
-
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
|
2470
|
-
return true;
|
|
2471
|
-
}
|
|
2472
|
-
}
|
|
2473
|
-
return false;
|
|
2474
|
-
}
|
|
2475
|
-
function getWrappedName(outerType, innerType, wrapperName) {
|
|
2476
|
-
var displayName = outerType.displayName;
|
|
2477
|
-
if (displayName) {
|
|
2478
|
-
return displayName;
|
|
2479
|
-
}
|
|
2480
|
-
var functionName = innerType.displayName || innerType.name || "";
|
|
2481
|
-
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
2482
|
-
}
|
|
2483
|
-
function getContextName(type) {
|
|
2484
|
-
return type.displayName || "Context";
|
|
2485
|
-
}
|
|
2486
|
-
function getComponentNameFromType(type) {
|
|
2487
|
-
if (type == null) {
|
|
2488
|
-
return null;
|
|
2489
|
-
}
|
|
2490
|
-
{
|
|
2491
|
-
if (typeof type.tag === "number") {
|
|
2492
|
-
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
|
2493
|
-
}
|
|
2494
|
-
}
|
|
2495
|
-
if (typeof type === "function") {
|
|
2496
|
-
return type.displayName || type.name || null;
|
|
2497
|
-
}
|
|
2498
|
-
if (typeof type === "string") {
|
|
2499
|
-
return type;
|
|
2500
|
-
}
|
|
2501
|
-
switch (type) {
|
|
2502
|
-
case REACT_FRAGMENT_TYPE:
|
|
2503
|
-
return "Fragment";
|
|
2504
|
-
case REACT_PORTAL_TYPE:
|
|
2505
|
-
return "Portal";
|
|
2506
|
-
case REACT_PROFILER_TYPE:
|
|
2507
|
-
return "Profiler";
|
|
2508
|
-
case REACT_STRICT_MODE_TYPE:
|
|
2509
|
-
return "StrictMode";
|
|
2510
|
-
case REACT_SUSPENSE_TYPE:
|
|
2511
|
-
return "Suspense";
|
|
2512
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
2513
|
-
return "SuspenseList";
|
|
2514
|
-
}
|
|
2515
|
-
if (typeof type === "object") {
|
|
2516
|
-
switch (type.$$typeof) {
|
|
2517
|
-
case REACT_CONTEXT_TYPE:
|
|
2518
|
-
var context = type;
|
|
2519
|
-
return getContextName(context) + ".Consumer";
|
|
2520
|
-
case REACT_PROVIDER_TYPE:
|
|
2521
|
-
var provider = type;
|
|
2522
|
-
return getContextName(provider._context) + ".Provider";
|
|
2523
|
-
case REACT_FORWARD_REF_TYPE:
|
|
2524
|
-
return getWrappedName(type, type.render, "ForwardRef");
|
|
2525
|
-
case REACT_MEMO_TYPE:
|
|
2526
|
-
var outerName = type.displayName || null;
|
|
2527
|
-
if (outerName !== null) {
|
|
2528
|
-
return outerName;
|
|
2529
|
-
}
|
|
2530
|
-
return getComponentNameFromType(type.type) || "Memo";
|
|
2531
|
-
case REACT_LAZY_TYPE: {
|
|
2532
|
-
var lazyComponent = type;
|
|
2533
|
-
var payload = lazyComponent._payload;
|
|
2534
|
-
var init = lazyComponent._init;
|
|
2535
|
-
try {
|
|
2536
|
-
return getComponentNameFromType(init(payload));
|
|
2537
|
-
} catch (x2) {
|
|
2538
|
-
return null;
|
|
2539
|
-
}
|
|
2540
|
-
}
|
|
2541
|
-
}
|
|
2542
|
-
}
|
|
2543
|
-
return null;
|
|
2544
|
-
}
|
|
2545
|
-
var assign2 = Object.assign;
|
|
2546
|
-
var disabledDepth = 0;
|
|
2547
|
-
var prevLog;
|
|
2548
|
-
var prevInfo;
|
|
2549
|
-
var prevWarn;
|
|
2550
|
-
var prevError;
|
|
2551
|
-
var prevGroup;
|
|
2552
|
-
var prevGroupCollapsed;
|
|
2553
|
-
var prevGroupEnd;
|
|
2554
|
-
function disabledLog() {
|
|
2555
|
-
}
|
|
2556
|
-
disabledLog.__reactDisabledLog = true;
|
|
2557
|
-
function disableLogs() {
|
|
2558
|
-
{
|
|
2559
|
-
if (disabledDepth === 0) {
|
|
2560
|
-
prevLog = console.log;
|
|
2561
|
-
prevInfo = console.info;
|
|
2562
|
-
prevWarn = console.warn;
|
|
2563
|
-
prevError = console.error;
|
|
2564
|
-
prevGroup = console.group;
|
|
2565
|
-
prevGroupCollapsed = console.groupCollapsed;
|
|
2566
|
-
prevGroupEnd = console.groupEnd;
|
|
2567
|
-
var props = {
|
|
2568
|
-
configurable: true,
|
|
2569
|
-
enumerable: true,
|
|
2570
|
-
value: disabledLog,
|
|
2571
|
-
writable: true
|
|
2572
|
-
};
|
|
2573
|
-
Object.defineProperties(console, {
|
|
2574
|
-
info: props,
|
|
2575
|
-
log: props,
|
|
2576
|
-
warn: props,
|
|
2577
|
-
error: props,
|
|
2578
|
-
group: props,
|
|
2579
|
-
groupCollapsed: props,
|
|
2580
|
-
groupEnd: props
|
|
2581
|
-
});
|
|
2582
|
-
}
|
|
2583
|
-
disabledDepth++;
|
|
2584
|
-
}
|
|
2585
|
-
}
|
|
2586
|
-
function reenableLogs() {
|
|
2587
|
-
{
|
|
2588
|
-
disabledDepth--;
|
|
2589
|
-
if (disabledDepth === 0) {
|
|
2590
|
-
var props = {
|
|
2591
|
-
configurable: true,
|
|
2592
|
-
enumerable: true,
|
|
2593
|
-
writable: true
|
|
2594
|
-
};
|
|
2595
|
-
Object.defineProperties(console, {
|
|
2596
|
-
log: assign2({}, props, {
|
|
2597
|
-
value: prevLog
|
|
2598
|
-
}),
|
|
2599
|
-
info: assign2({}, props, {
|
|
2600
|
-
value: prevInfo
|
|
2601
|
-
}),
|
|
2602
|
-
warn: assign2({}, props, {
|
|
2603
|
-
value: prevWarn
|
|
2604
|
-
}),
|
|
2605
|
-
error: assign2({}, props, {
|
|
2606
|
-
value: prevError
|
|
2607
|
-
}),
|
|
2608
|
-
group: assign2({}, props, {
|
|
2609
|
-
value: prevGroup
|
|
2610
|
-
}),
|
|
2611
|
-
groupCollapsed: assign2({}, props, {
|
|
2612
|
-
value: prevGroupCollapsed
|
|
2613
|
-
}),
|
|
2614
|
-
groupEnd: assign2({}, props, {
|
|
2615
|
-
value: prevGroupEnd
|
|
2616
|
-
})
|
|
2617
|
-
});
|
|
2618
|
-
}
|
|
2619
|
-
if (disabledDepth < 0) {
|
|
2620
|
-
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
2621
|
-
}
|
|
2622
|
-
}
|
|
2623
|
-
}
|
|
2624
|
-
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
|
2625
|
-
var prefix2;
|
|
2626
|
-
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
2627
|
-
{
|
|
2628
|
-
if (prefix2 === void 0) {
|
|
2629
|
-
try {
|
|
2630
|
-
throw Error();
|
|
2631
|
-
} catch (x2) {
|
|
2632
|
-
var match2 = x2.stack.trim().match(/\n( *(at )?)/);
|
|
2633
|
-
prefix2 = match2 && match2[1] || "";
|
|
2634
|
-
}
|
|
2635
|
-
}
|
|
2636
|
-
return "\n" + prefix2 + name;
|
|
2637
|
-
}
|
|
2638
|
-
}
|
|
2639
|
-
var reentry = false;
|
|
2640
|
-
var componentFrameCache;
|
|
2641
|
-
{
|
|
2642
|
-
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
2643
|
-
componentFrameCache = new PossiblyWeakMap();
|
|
2644
|
-
}
|
|
2645
|
-
function describeNativeComponentFrame(fn, construct) {
|
|
2646
|
-
if (!fn || reentry) {
|
|
2647
|
-
return "";
|
|
2648
|
-
}
|
|
2649
|
-
{
|
|
2650
|
-
var frame = componentFrameCache.get(fn);
|
|
2651
|
-
if (frame !== void 0) {
|
|
2652
|
-
return frame;
|
|
2653
|
-
}
|
|
2654
|
-
}
|
|
2655
|
-
var control;
|
|
2656
|
-
reentry = true;
|
|
2657
|
-
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
2658
|
-
Error.prepareStackTrace = void 0;
|
|
2659
|
-
var previousDispatcher;
|
|
2660
|
-
{
|
|
2661
|
-
previousDispatcher = ReactCurrentDispatcher.current;
|
|
2662
|
-
ReactCurrentDispatcher.current = null;
|
|
2663
|
-
disableLogs();
|
|
2664
|
-
}
|
|
2665
|
-
try {
|
|
2666
|
-
if (construct) {
|
|
2667
|
-
var Fake = function() {
|
|
2668
|
-
throw Error();
|
|
2669
|
-
};
|
|
2670
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
2671
|
-
set: function() {
|
|
2672
|
-
throw Error();
|
|
2673
|
-
}
|
|
2674
|
-
});
|
|
2675
|
-
if (typeof Reflect === "object" && Reflect.construct) {
|
|
2676
|
-
try {
|
|
2677
|
-
Reflect.construct(Fake, []);
|
|
2678
|
-
} catch (x2) {
|
|
2679
|
-
control = x2;
|
|
2680
|
-
}
|
|
2681
|
-
Reflect.construct(fn, [], Fake);
|
|
2682
|
-
} else {
|
|
2683
|
-
try {
|
|
2684
|
-
Fake.call();
|
|
2685
|
-
} catch (x2) {
|
|
2686
|
-
control = x2;
|
|
2687
|
-
}
|
|
2688
|
-
fn.call(Fake.prototype);
|
|
2689
|
-
}
|
|
2690
|
-
} else {
|
|
2691
|
-
try {
|
|
2692
|
-
throw Error();
|
|
2693
|
-
} catch (x2) {
|
|
2694
|
-
control = x2;
|
|
2695
|
-
}
|
|
2696
|
-
fn();
|
|
2697
|
-
}
|
|
2698
|
-
} catch (sample) {
|
|
2699
|
-
if (sample && control && typeof sample.stack === "string") {
|
|
2700
|
-
var sampleLines = sample.stack.split("\n");
|
|
2701
|
-
var controlLines = control.stack.split("\n");
|
|
2702
|
-
var s = sampleLines.length - 1;
|
|
2703
|
-
var c = controlLines.length - 1;
|
|
2704
|
-
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
2705
|
-
c--;
|
|
2706
|
-
}
|
|
2707
|
-
for (; s >= 1 && c >= 0; s--, c--) {
|
|
2708
|
-
if (sampleLines[s] !== controlLines[c]) {
|
|
2709
|
-
if (s !== 1 || c !== 1) {
|
|
2710
|
-
do {
|
|
2711
|
-
s--;
|
|
2712
|
-
c--;
|
|
2713
|
-
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
2714
|
-
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
2715
|
-
if (fn.displayName && _frame.includes("<anonymous>")) {
|
|
2716
|
-
_frame = _frame.replace("<anonymous>", fn.displayName);
|
|
2717
|
-
}
|
|
2718
|
-
{
|
|
2719
|
-
if (typeof fn === "function") {
|
|
2720
|
-
componentFrameCache.set(fn, _frame);
|
|
2721
|
-
}
|
|
2722
|
-
}
|
|
2723
|
-
return _frame;
|
|
2724
|
-
}
|
|
2725
|
-
} while (s >= 1 && c >= 0);
|
|
2726
|
-
}
|
|
2727
|
-
break;
|
|
2728
|
-
}
|
|
2729
|
-
}
|
|
2730
|
-
}
|
|
2731
|
-
} finally {
|
|
2732
|
-
reentry = false;
|
|
2733
|
-
{
|
|
2734
|
-
ReactCurrentDispatcher.current = previousDispatcher;
|
|
2735
|
-
reenableLogs();
|
|
2736
|
-
}
|
|
2737
|
-
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
2738
|
-
}
|
|
2739
|
-
var name = fn ? fn.displayName || fn.name : "";
|
|
2740
|
-
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
2741
|
-
{
|
|
2742
|
-
if (typeof fn === "function") {
|
|
2743
|
-
componentFrameCache.set(fn, syntheticFrame);
|
|
2744
|
-
}
|
|
2745
|
-
}
|
|
2746
|
-
return syntheticFrame;
|
|
2747
|
-
}
|
|
2748
|
-
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
2749
|
-
{
|
|
2750
|
-
return describeNativeComponentFrame(fn, false);
|
|
2751
|
-
}
|
|
2752
|
-
}
|
|
2753
|
-
function shouldConstruct(Component) {
|
|
2754
|
-
var prototype = Component.prototype;
|
|
2755
|
-
return !!(prototype && prototype.isReactComponent);
|
|
2756
|
-
}
|
|
2757
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
2758
|
-
if (type == null) {
|
|
2759
|
-
return "";
|
|
2760
|
-
}
|
|
2761
|
-
if (typeof type === "function") {
|
|
2762
|
-
{
|
|
2763
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
2764
|
-
}
|
|
2765
|
-
}
|
|
2766
|
-
if (typeof type === "string") {
|
|
2767
|
-
return describeBuiltInComponentFrame(type);
|
|
2768
|
-
}
|
|
2769
|
-
switch (type) {
|
|
2770
|
-
case REACT_SUSPENSE_TYPE:
|
|
2771
|
-
return describeBuiltInComponentFrame("Suspense");
|
|
2772
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
2773
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
|
2774
|
-
}
|
|
2775
|
-
if (typeof type === "object") {
|
|
2776
|
-
switch (type.$$typeof) {
|
|
2777
|
-
case REACT_FORWARD_REF_TYPE:
|
|
2778
|
-
return describeFunctionComponentFrame(type.render);
|
|
2779
|
-
case REACT_MEMO_TYPE:
|
|
2780
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
2781
|
-
case REACT_LAZY_TYPE: {
|
|
2782
|
-
var lazyComponent = type;
|
|
2783
|
-
var payload = lazyComponent._payload;
|
|
2784
|
-
var init = lazyComponent._init;
|
|
2785
|
-
try {
|
|
2786
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
2787
|
-
} catch (x2) {
|
|
2788
|
-
}
|
|
2789
|
-
}
|
|
2790
|
-
}
|
|
2791
|
-
}
|
|
2792
|
-
return "";
|
|
2793
|
-
}
|
|
2794
|
-
var hasOwnProperty3 = Object.prototype.hasOwnProperty;
|
|
2795
|
-
var loggedTypeFailures = {};
|
|
2796
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
2797
|
-
function setCurrentlyValidatingElement(element) {
|
|
2798
|
-
{
|
|
2799
|
-
if (element) {
|
|
2800
|
-
var owner = element._owner;
|
|
2801
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
2802
|
-
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
|
2803
|
-
} else {
|
|
2804
|
-
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
|
2805
|
-
}
|
|
2806
|
-
}
|
|
2807
|
-
}
|
|
2808
|
-
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
2809
|
-
{
|
|
2810
|
-
var has = Function.call.bind(hasOwnProperty3);
|
|
2811
|
-
for (var typeSpecName in typeSpecs) {
|
|
2812
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
2813
|
-
var error$1 = void 0;
|
|
2814
|
-
try {
|
|
2815
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
2816
|
-
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
2817
|
-
err.name = "Invariant Violation";
|
|
2818
|
-
throw err;
|
|
2819
|
-
}
|
|
2820
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
2821
|
-
} catch (ex) {
|
|
2822
|
-
error$1 = ex;
|
|
2823
|
-
}
|
|
2824
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
2825
|
-
setCurrentlyValidatingElement(element);
|
|
2826
|
-
error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
|
|
2827
|
-
setCurrentlyValidatingElement(null);
|
|
2828
|
-
}
|
|
2829
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
2830
|
-
loggedTypeFailures[error$1.message] = true;
|
|
2831
|
-
setCurrentlyValidatingElement(element);
|
|
2832
|
-
error("Failed %s type: %s", location, error$1.message);
|
|
2833
|
-
setCurrentlyValidatingElement(null);
|
|
2834
|
-
}
|
|
2835
|
-
}
|
|
2836
|
-
}
|
|
2837
|
-
}
|
|
2838
|
-
}
|
|
2839
|
-
var isArrayImpl = Array.isArray;
|
|
2840
|
-
function isArray2(a) {
|
|
2841
|
-
return isArrayImpl(a);
|
|
2842
|
-
}
|
|
2843
|
-
function typeName(value) {
|
|
2844
|
-
{
|
|
2845
|
-
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
|
2846
|
-
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
2847
|
-
return type;
|
|
2848
|
-
}
|
|
2849
|
-
}
|
|
2850
|
-
function willCoercionThrow(value) {
|
|
2851
|
-
{
|
|
2852
|
-
try {
|
|
2853
|
-
testStringCoercion(value);
|
|
2854
|
-
return false;
|
|
2855
|
-
} catch (e) {
|
|
2856
|
-
return true;
|
|
2857
|
-
}
|
|
2858
|
-
}
|
|
2859
|
-
}
|
|
2860
|
-
function testStringCoercion(value) {
|
|
2861
|
-
return "" + value;
|
|
2862
|
-
}
|
|
2863
|
-
function checkKeyStringCoercion(value) {
|
|
2864
|
-
{
|
|
2865
|
-
if (willCoercionThrow(value)) {
|
|
2866
|
-
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
|
2867
|
-
return testStringCoercion(value);
|
|
2868
|
-
}
|
|
2869
|
-
}
|
|
2870
|
-
}
|
|
2871
|
-
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
2872
|
-
var RESERVED_PROPS = {
|
|
2873
|
-
key: true,
|
|
2874
|
-
ref: true,
|
|
2875
|
-
__self: true,
|
|
2876
|
-
__source: true
|
|
2877
|
-
};
|
|
2878
|
-
var specialPropKeyWarningShown;
|
|
2879
|
-
var specialPropRefWarningShown;
|
|
2880
|
-
var didWarnAboutStringRefs;
|
|
2881
|
-
{
|
|
2882
|
-
didWarnAboutStringRefs = {};
|
|
2883
|
-
}
|
|
2884
|
-
function hasValidRef(config3) {
|
|
2885
|
-
{
|
|
2886
|
-
if (hasOwnProperty3.call(config3, "ref")) {
|
|
2887
|
-
var getter = Object.getOwnPropertyDescriptor(config3, "ref").get;
|
|
2888
|
-
if (getter && getter.isReactWarning) {
|
|
2889
|
-
return false;
|
|
2890
|
-
}
|
|
2891
|
-
}
|
|
2892
|
-
}
|
|
2893
|
-
return config3.ref !== void 0;
|
|
2894
|
-
}
|
|
2895
|
-
function hasValidKey(config3) {
|
|
2896
|
-
{
|
|
2897
|
-
if (hasOwnProperty3.call(config3, "key")) {
|
|
2898
|
-
var getter = Object.getOwnPropertyDescriptor(config3, "key").get;
|
|
2899
|
-
if (getter && getter.isReactWarning) {
|
|
2900
|
-
return false;
|
|
2901
|
-
}
|
|
2902
|
-
}
|
|
2903
|
-
}
|
|
2904
|
-
return config3.key !== void 0;
|
|
2905
|
-
}
|
|
2906
|
-
function warnIfStringRefCannotBeAutoConverted(config3, self) {
|
|
2907
|
-
{
|
|
2908
|
-
if (typeof config3.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
|
|
2909
|
-
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
2910
|
-
if (!didWarnAboutStringRefs[componentName]) {
|
|
2911
|
-
error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config3.ref);
|
|
2912
|
-
didWarnAboutStringRefs[componentName] = true;
|
|
2913
|
-
}
|
|
2914
|
-
}
|
|
2915
|
-
}
|
|
2916
|
-
}
|
|
2917
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
2918
|
-
{
|
|
2919
|
-
var warnAboutAccessingKey = function() {
|
|
2920
|
-
if (!specialPropKeyWarningShown) {
|
|
2921
|
-
specialPropKeyWarningShown = true;
|
|
2922
|
-
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://reactjs.org/link/special-props)", displayName);
|
|
2923
|
-
}
|
|
2924
|
-
};
|
|
2925
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
2926
|
-
Object.defineProperty(props, "key", {
|
|
2927
|
-
get: warnAboutAccessingKey,
|
|
2928
|
-
configurable: true
|
|
2929
|
-
});
|
|
2930
|
-
}
|
|
2931
|
-
}
|
|
2932
|
-
function defineRefPropWarningGetter(props, displayName) {
|
|
2933
|
-
{
|
|
2934
|
-
var warnAboutAccessingRef = function() {
|
|
2935
|
-
if (!specialPropRefWarningShown) {
|
|
2936
|
-
specialPropRefWarningShown = true;
|
|
2937
|
-
error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
|
2938
|
-
}
|
|
2939
|
-
};
|
|
2940
|
-
warnAboutAccessingRef.isReactWarning = true;
|
|
2941
|
-
Object.defineProperty(props, "ref", {
|
|
2942
|
-
get: warnAboutAccessingRef,
|
|
2943
|
-
configurable: true
|
|
2944
|
-
});
|
|
2945
|
-
}
|
|
271
|
+
return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
272
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
2946
273
|
}
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
$$typeof
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
Object.defineProperty(element, "_source", {
|
|
2974
|
-
configurable: false,
|
|
2975
|
-
enumerable: false,
|
|
2976
|
-
writable: false,
|
|
2977
|
-
value: source
|
|
2978
|
-
});
|
|
2979
|
-
if (Object.freeze) {
|
|
2980
|
-
Object.freeze(element.props);
|
|
2981
|
-
Object.freeze(element);
|
|
2982
|
-
}
|
|
2983
|
-
}
|
|
2984
|
-
return element;
|
|
2985
|
-
};
|
|
2986
|
-
function jsxDEV(type, config3, maybeKey, source, self) {
|
|
2987
|
-
{
|
|
2988
|
-
var propName;
|
|
2989
|
-
var props = {};
|
|
2990
|
-
var key = null;
|
|
2991
|
-
var ref = null;
|
|
2992
|
-
if (maybeKey !== void 0) {
|
|
2993
|
-
{
|
|
2994
|
-
checkKeyStringCoercion(maybeKey);
|
|
2995
|
-
}
|
|
2996
|
-
key = "" + maybeKey;
|
|
2997
|
-
}
|
|
2998
|
-
if (hasValidKey(config3)) {
|
|
2999
|
-
{
|
|
3000
|
-
checkKeyStringCoercion(config3.key);
|
|
3001
|
-
}
|
|
3002
|
-
key = "" + config3.key;
|
|
3003
|
-
}
|
|
3004
|
-
if (hasValidRef(config3)) {
|
|
3005
|
-
ref = config3.ref;
|
|
3006
|
-
warnIfStringRefCannotBeAutoConverted(config3, self);
|
|
3007
|
-
}
|
|
3008
|
-
for (propName in config3) {
|
|
3009
|
-
if (hasOwnProperty3.call(config3, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
3010
|
-
props[propName] = config3[propName];
|
|
3011
|
-
}
|
|
3012
|
-
}
|
|
3013
|
-
if (type && type.defaultProps) {
|
|
3014
|
-
var defaultProps2 = type.defaultProps;
|
|
3015
|
-
for (propName in defaultProps2) {
|
|
3016
|
-
if (props[propName] === void 0) {
|
|
3017
|
-
props[propName] = defaultProps2[propName];
|
|
274
|
+
function typeOf3(object) {
|
|
275
|
+
if (typeof object === "object" && object !== null) {
|
|
276
|
+
var $$typeof = object.$$typeof;
|
|
277
|
+
switch ($$typeof) {
|
|
278
|
+
case REACT_ELEMENT_TYPE:
|
|
279
|
+
var type = object.type;
|
|
280
|
+
switch (type) {
|
|
281
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
282
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
283
|
+
case REACT_FRAGMENT_TYPE:
|
|
284
|
+
case REACT_PROFILER_TYPE:
|
|
285
|
+
case REACT_STRICT_MODE_TYPE:
|
|
286
|
+
case REACT_SUSPENSE_TYPE:
|
|
287
|
+
return type;
|
|
288
|
+
default:
|
|
289
|
+
var $$typeofType = type && type.$$typeof;
|
|
290
|
+
switch ($$typeofType) {
|
|
291
|
+
case REACT_CONTEXT_TYPE:
|
|
292
|
+
case REACT_FORWARD_REF_TYPE:
|
|
293
|
+
case REACT_LAZY_TYPE:
|
|
294
|
+
case REACT_MEMO_TYPE:
|
|
295
|
+
case REACT_PROVIDER_TYPE:
|
|
296
|
+
return $$typeofType;
|
|
297
|
+
default:
|
|
298
|
+
return $$typeof;
|
|
299
|
+
}
|
|
3018
300
|
}
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
if (key || ref) {
|
|
3022
|
-
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
3023
|
-
if (key) {
|
|
3024
|
-
defineKeyPropWarningGetter(props, displayName);
|
|
3025
|
-
}
|
|
3026
|
-
if (ref) {
|
|
3027
|
-
defineRefPropWarningGetter(props, displayName);
|
|
3028
|
-
}
|
|
301
|
+
case REACT_PORTAL_TYPE:
|
|
302
|
+
return $$typeof;
|
|
3029
303
|
}
|
|
3030
|
-
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
3031
304
|
}
|
|
305
|
+
return void 0;
|
|
3032
306
|
}
|
|
3033
|
-
var
|
|
3034
|
-
var
|
|
3035
|
-
|
|
307
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
308
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
309
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
310
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
311
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
312
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
313
|
+
var Fragment6 = REACT_FRAGMENT_TYPE;
|
|
314
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
315
|
+
var Memo = REACT_MEMO_TYPE;
|
|
316
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
317
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
318
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
319
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
320
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
321
|
+
function isAsyncMode(object) {
|
|
3036
322
|
{
|
|
3037
|
-
if (
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
3041
|
-
} else {
|
|
3042
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
323
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
324
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
325
|
+
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
|
|
3043
326
|
}
|
|
3044
327
|
}
|
|
328
|
+
return isConcurrentMode(object) || typeOf3(object) === REACT_ASYNC_MODE_TYPE;
|
|
3045
329
|
}
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
propTypesMisspellWarningShown = false;
|
|
330
|
+
function isConcurrentMode(object) {
|
|
331
|
+
return typeOf3(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
3049
332
|
}
|
|
3050
|
-
function
|
|
3051
|
-
|
|
3052
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
3053
|
-
}
|
|
333
|
+
function isContextConsumer(object) {
|
|
334
|
+
return typeOf3(object) === REACT_CONTEXT_TYPE;
|
|
3054
335
|
}
|
|
3055
|
-
function
|
|
3056
|
-
|
|
3057
|
-
if (ReactCurrentOwner$1.current) {
|
|
3058
|
-
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
|
3059
|
-
if (name) {
|
|
3060
|
-
return "\n\nCheck the render method of `" + name + "`.";
|
|
3061
|
-
}
|
|
3062
|
-
}
|
|
3063
|
-
return "";
|
|
3064
|
-
}
|
|
336
|
+
function isContextProvider(object) {
|
|
337
|
+
return typeOf3(object) === REACT_PROVIDER_TYPE;
|
|
3065
338
|
}
|
|
3066
|
-
function
|
|
3067
|
-
|
|
3068
|
-
if (source !== void 0) {
|
|
3069
|
-
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
|
3070
|
-
var lineNumber = source.lineNumber;
|
|
3071
|
-
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
|
3072
|
-
}
|
|
3073
|
-
return "";
|
|
3074
|
-
}
|
|
339
|
+
function isElement(object) {
|
|
340
|
+
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
3075
341
|
}
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
{
|
|
3079
|
-
var info = getDeclarationErrorAddendum();
|
|
3080
|
-
if (!info) {
|
|
3081
|
-
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
3082
|
-
if (parentName) {
|
|
3083
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
3084
|
-
}
|
|
3085
|
-
}
|
|
3086
|
-
return info;
|
|
3087
|
-
}
|
|
342
|
+
function isForwardRef(object) {
|
|
343
|
+
return typeOf3(object) === REACT_FORWARD_REF_TYPE;
|
|
3088
344
|
}
|
|
3089
|
-
function
|
|
3090
|
-
|
|
3091
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
3092
|
-
return;
|
|
3093
|
-
}
|
|
3094
|
-
element._store.validated = true;
|
|
3095
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
3096
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
3097
|
-
return;
|
|
3098
|
-
}
|
|
3099
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
3100
|
-
var childOwner = "";
|
|
3101
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
|
3102
|
-
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
3103
|
-
}
|
|
3104
|
-
setCurrentlyValidatingElement$1(element);
|
|
3105
|
-
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
3106
|
-
setCurrentlyValidatingElement$1(null);
|
|
3107
|
-
}
|
|
345
|
+
function isFragment(object) {
|
|
346
|
+
return typeOf3(object) === REACT_FRAGMENT_TYPE;
|
|
3108
347
|
}
|
|
3109
|
-
function
|
|
3110
|
-
|
|
3111
|
-
if (typeof node2 !== "object") {
|
|
3112
|
-
return;
|
|
3113
|
-
}
|
|
3114
|
-
if (isArray2(node2)) {
|
|
3115
|
-
for (var i = 0; i < node2.length; i++) {
|
|
3116
|
-
var child = node2[i];
|
|
3117
|
-
if (isValidElement(child)) {
|
|
3118
|
-
validateExplicitKey(child, parentType);
|
|
3119
|
-
}
|
|
3120
|
-
}
|
|
3121
|
-
} else if (isValidElement(node2)) {
|
|
3122
|
-
if (node2._store) {
|
|
3123
|
-
node2._store.validated = true;
|
|
3124
|
-
}
|
|
3125
|
-
} else if (node2) {
|
|
3126
|
-
var iteratorFn = getIteratorFn(node2);
|
|
3127
|
-
if (typeof iteratorFn === "function") {
|
|
3128
|
-
if (iteratorFn !== node2.entries) {
|
|
3129
|
-
var iterator = iteratorFn.call(node2);
|
|
3130
|
-
var step;
|
|
3131
|
-
while (!(step = iterator.next()).done) {
|
|
3132
|
-
if (isValidElement(step.value)) {
|
|
3133
|
-
validateExplicitKey(step.value, parentType);
|
|
3134
|
-
}
|
|
3135
|
-
}
|
|
3136
|
-
}
|
|
3137
|
-
}
|
|
3138
|
-
}
|
|
3139
|
-
}
|
|
348
|
+
function isLazy(object) {
|
|
349
|
+
return typeOf3(object) === REACT_LAZY_TYPE;
|
|
3140
350
|
}
|
|
3141
|
-
function
|
|
3142
|
-
|
|
3143
|
-
var type = element.type;
|
|
3144
|
-
if (type === null || type === void 0 || typeof type === "string") {
|
|
3145
|
-
return;
|
|
3146
|
-
}
|
|
3147
|
-
var propTypes;
|
|
3148
|
-
if (typeof type === "function") {
|
|
3149
|
-
propTypes = type.propTypes;
|
|
3150
|
-
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
3151
|
-
// Inner props are checked in the reconciler.
|
|
3152
|
-
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
3153
|
-
propTypes = type.propTypes;
|
|
3154
|
-
} else {
|
|
3155
|
-
return;
|
|
3156
|
-
}
|
|
3157
|
-
if (propTypes) {
|
|
3158
|
-
var name = getComponentNameFromType(type);
|
|
3159
|
-
checkPropTypes(propTypes, element.props, "prop", name, element);
|
|
3160
|
-
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
3161
|
-
propTypesMisspellWarningShown = true;
|
|
3162
|
-
var _name = getComponentNameFromType(type);
|
|
3163
|
-
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
3164
|
-
}
|
|
3165
|
-
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
3166
|
-
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
3167
|
-
}
|
|
3168
|
-
}
|
|
351
|
+
function isMemo(object) {
|
|
352
|
+
return typeOf3(object) === REACT_MEMO_TYPE;
|
|
3169
353
|
}
|
|
3170
|
-
function
|
|
3171
|
-
|
|
3172
|
-
var keys = Object.keys(fragment.props);
|
|
3173
|
-
for (var i = 0; i < keys.length; i++) {
|
|
3174
|
-
var key = keys[i];
|
|
3175
|
-
if (key !== "children" && key !== "key") {
|
|
3176
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
3177
|
-
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
3178
|
-
setCurrentlyValidatingElement$1(null);
|
|
3179
|
-
break;
|
|
3180
|
-
}
|
|
3181
|
-
}
|
|
3182
|
-
if (fragment.ref !== null) {
|
|
3183
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
3184
|
-
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
3185
|
-
setCurrentlyValidatingElement$1(null);
|
|
3186
|
-
}
|
|
3187
|
-
}
|
|
354
|
+
function isPortal(object) {
|
|
355
|
+
return typeOf3(object) === REACT_PORTAL_TYPE;
|
|
3188
356
|
}
|
|
3189
|
-
function
|
|
3190
|
-
|
|
3191
|
-
var validType = isValidElementType(type);
|
|
3192
|
-
if (!validType) {
|
|
3193
|
-
var info = "";
|
|
3194
|
-
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
3195
|
-
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.";
|
|
3196
|
-
}
|
|
3197
|
-
var sourceInfo = getSourceInfoErrorAddendum(source);
|
|
3198
|
-
if (sourceInfo) {
|
|
3199
|
-
info += sourceInfo;
|
|
3200
|
-
} else {
|
|
3201
|
-
info += getDeclarationErrorAddendum();
|
|
3202
|
-
}
|
|
3203
|
-
var typeString;
|
|
3204
|
-
if (type === null) {
|
|
3205
|
-
typeString = "null";
|
|
3206
|
-
} else if (isArray2(type)) {
|
|
3207
|
-
typeString = "array";
|
|
3208
|
-
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
3209
|
-
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
3210
|
-
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
3211
|
-
} else {
|
|
3212
|
-
typeString = typeof type;
|
|
3213
|
-
}
|
|
3214
|
-
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);
|
|
3215
|
-
}
|
|
3216
|
-
var element = jsxDEV(type, props, key, source, self);
|
|
3217
|
-
if (element == null) {
|
|
3218
|
-
return element;
|
|
3219
|
-
}
|
|
3220
|
-
if (validType) {
|
|
3221
|
-
var children = props.children;
|
|
3222
|
-
if (children !== void 0) {
|
|
3223
|
-
if (isStaticChildren) {
|
|
3224
|
-
if (isArray2(children)) {
|
|
3225
|
-
for (var i = 0; i < children.length; i++) {
|
|
3226
|
-
validateChildKeys(children[i], type);
|
|
3227
|
-
}
|
|
3228
|
-
if (Object.freeze) {
|
|
3229
|
-
Object.freeze(children);
|
|
3230
|
-
}
|
|
3231
|
-
} else {
|
|
3232
|
-
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.");
|
|
3233
|
-
}
|
|
3234
|
-
} else {
|
|
3235
|
-
validateChildKeys(children, type);
|
|
3236
|
-
}
|
|
3237
|
-
}
|
|
3238
|
-
}
|
|
3239
|
-
if (type === REACT_FRAGMENT_TYPE) {
|
|
3240
|
-
validateFragmentProps(element);
|
|
3241
|
-
} else {
|
|
3242
|
-
validatePropTypes(element);
|
|
3243
|
-
}
|
|
3244
|
-
return element;
|
|
3245
|
-
}
|
|
357
|
+
function isProfiler(object) {
|
|
358
|
+
return typeOf3(object) === REACT_PROFILER_TYPE;
|
|
3246
359
|
}
|
|
3247
|
-
function
|
|
3248
|
-
|
|
3249
|
-
return jsxWithValidation(type, props, key, true);
|
|
3250
|
-
}
|
|
360
|
+
function isStrictMode(object) {
|
|
361
|
+
return typeOf3(object) === REACT_STRICT_MODE_TYPE;
|
|
3251
362
|
}
|
|
3252
|
-
function
|
|
3253
|
-
|
|
3254
|
-
return jsxWithValidation(type, props, key, false);
|
|
3255
|
-
}
|
|
363
|
+
function isSuspense(object) {
|
|
364
|
+
return typeOf3(object) === REACT_SUSPENSE_TYPE;
|
|
3256
365
|
}
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
exports.
|
|
3260
|
-
exports.
|
|
3261
|
-
exports.
|
|
366
|
+
exports.AsyncMode = AsyncMode;
|
|
367
|
+
exports.ConcurrentMode = ConcurrentMode;
|
|
368
|
+
exports.ContextConsumer = ContextConsumer;
|
|
369
|
+
exports.ContextProvider = ContextProvider;
|
|
370
|
+
exports.Element = Element;
|
|
371
|
+
exports.ForwardRef = ForwardRef;
|
|
372
|
+
exports.Fragment = Fragment6;
|
|
373
|
+
exports.Lazy = Lazy;
|
|
374
|
+
exports.Memo = Memo;
|
|
375
|
+
exports.Portal = Portal;
|
|
376
|
+
exports.Profiler = Profiler;
|
|
377
|
+
exports.StrictMode = StrictMode;
|
|
378
|
+
exports.Suspense = Suspense;
|
|
379
|
+
exports.isAsyncMode = isAsyncMode;
|
|
380
|
+
exports.isConcurrentMode = isConcurrentMode;
|
|
381
|
+
exports.isContextConsumer = isContextConsumer;
|
|
382
|
+
exports.isContextProvider = isContextProvider;
|
|
383
|
+
exports.isElement = isElement;
|
|
384
|
+
exports.isForwardRef = isForwardRef;
|
|
385
|
+
exports.isFragment = isFragment;
|
|
386
|
+
exports.isLazy = isLazy;
|
|
387
|
+
exports.isMemo = isMemo;
|
|
388
|
+
exports.isPortal = isPortal;
|
|
389
|
+
exports.isProfiler = isProfiler;
|
|
390
|
+
exports.isStrictMode = isStrictMode;
|
|
391
|
+
exports.isSuspense = isSuspense;
|
|
392
|
+
exports.isValidElementType = isValidElementType;
|
|
393
|
+
exports.typeOf = typeOf3;
|
|
3262
394
|
})();
|
|
3263
395
|
}
|
|
3264
396
|
}
|
|
3265
397
|
});
|
|
3266
398
|
|
|
3267
|
-
// node_modules/.pnpm/react@
|
|
3268
|
-
var
|
|
3269
|
-
"node_modules/.pnpm/react@
|
|
399
|
+
// node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js
|
|
400
|
+
var require_react_is = __commonJS({
|
|
401
|
+
"node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js"(exports, module2) {
|
|
3270
402
|
"use strict";
|
|
3271
403
|
init_process();
|
|
3272
404
|
if (false) {
|
|
3273
405
|
module2.exports = null;
|
|
3274
406
|
} else {
|
|
3275
|
-
module2.exports =
|
|
407
|
+
module2.exports = require_react_is_development();
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
});
|
|
411
|
+
|
|
412
|
+
// node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
|
|
413
|
+
var require_hoist_non_react_statics_cjs = __commonJS({
|
|
414
|
+
"node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module2) {
|
|
415
|
+
"use strict";
|
|
416
|
+
init_process();
|
|
417
|
+
var reactIs = require_react_is();
|
|
418
|
+
var REACT_STATICS = {
|
|
419
|
+
childContextTypes: true,
|
|
420
|
+
contextType: true,
|
|
421
|
+
contextTypes: true,
|
|
422
|
+
defaultProps: true,
|
|
423
|
+
displayName: true,
|
|
424
|
+
getDefaultProps: true,
|
|
425
|
+
getDerivedStateFromError: true,
|
|
426
|
+
getDerivedStateFromProps: true,
|
|
427
|
+
mixins: true,
|
|
428
|
+
propTypes: true,
|
|
429
|
+
type: true
|
|
430
|
+
};
|
|
431
|
+
var KNOWN_STATICS = {
|
|
432
|
+
name: true,
|
|
433
|
+
length: true,
|
|
434
|
+
prototype: true,
|
|
435
|
+
caller: true,
|
|
436
|
+
callee: true,
|
|
437
|
+
arguments: true,
|
|
438
|
+
arity: true
|
|
439
|
+
};
|
|
440
|
+
var FORWARD_REF_STATICS = {
|
|
441
|
+
"$$typeof": true,
|
|
442
|
+
render: true,
|
|
443
|
+
defaultProps: true,
|
|
444
|
+
displayName: true,
|
|
445
|
+
propTypes: true
|
|
446
|
+
};
|
|
447
|
+
var MEMO_STATICS = {
|
|
448
|
+
"$$typeof": true,
|
|
449
|
+
compare: true,
|
|
450
|
+
defaultProps: true,
|
|
451
|
+
displayName: true,
|
|
452
|
+
propTypes: true,
|
|
453
|
+
type: true
|
|
454
|
+
};
|
|
455
|
+
var TYPE_STATICS = {};
|
|
456
|
+
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
457
|
+
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
458
|
+
function getStatics(component) {
|
|
459
|
+
if (reactIs.isMemo(component)) {
|
|
460
|
+
return MEMO_STATICS;
|
|
461
|
+
}
|
|
462
|
+
return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
|
|
463
|
+
}
|
|
464
|
+
var defineProperty = Object.defineProperty;
|
|
465
|
+
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
466
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
467
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
468
|
+
var getPrototypeOf = Object.getPrototypeOf;
|
|
469
|
+
var objectPrototype = Object.prototype;
|
|
470
|
+
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
471
|
+
if (typeof sourceComponent !== "string") {
|
|
472
|
+
if (objectPrototype) {
|
|
473
|
+
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
474
|
+
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
475
|
+
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
var keys = getOwnPropertyNames(sourceComponent);
|
|
479
|
+
if (getOwnPropertySymbols) {
|
|
480
|
+
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
481
|
+
}
|
|
482
|
+
var targetStatics = getStatics(targetComponent);
|
|
483
|
+
var sourceStatics = getStatics(sourceComponent);
|
|
484
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
485
|
+
var key = keys[i];
|
|
486
|
+
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
487
|
+
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
488
|
+
try {
|
|
489
|
+
defineProperty(targetComponent, key, descriptor);
|
|
490
|
+
} catch (e) {
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
return targetComponent;
|
|
3276
496
|
}
|
|
497
|
+
module2.exports = hoistNonReactStatics;
|
|
3277
498
|
}
|
|
3278
499
|
});
|
|
3279
500
|
|
|
@@ -3951,7 +1172,7 @@ var require_lib = __commonJS({
|
|
|
3951
1172
|
"use strict";
|
|
3952
1173
|
init_process();
|
|
3953
1174
|
exports.__esModule = true;
|
|
3954
|
-
var react_1 =
|
|
1175
|
+
var react_1 = require("react");
|
|
3955
1176
|
function useDigitInput2(_a) {
|
|
3956
1177
|
var acceptedCharacters = _a.acceptedCharacters, length2 = _a.length, value = _a.value, onChange2 = _a.onChange;
|
|
3957
1178
|
var val = padValue(value, length2);
|
|
@@ -6855,7 +4076,7 @@ init_process();
|
|
|
6855
4076
|
|
|
6856
4077
|
// packages/react-ui/src/lib/gamification/inapp/index.tsx
|
|
6857
4078
|
init_process();
|
|
6858
|
-
var import_react5 =
|
|
4079
|
+
var import_react5 = require("react");
|
|
6859
4080
|
|
|
6860
4081
|
// packages/react-ui/src/assets/icons/icon-exit.svg
|
|
6861
4082
|
var icon_exit_default = 'data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">%0A <rect width="24" height="24" rx="12" fill="white" fill-opacity="0.1"/>%0A <rect x="8.25" y="7" width="12.3744" height="1.76777" rx="0.883884" transform="rotate(45 8.25 7)" fill="white"/>%0A <rect x="7" y="15.75" width="12.3744" height="1.76777" rx="0.883884" transform="rotate(-45 7 15.75)" fill="white"/>%0A</svg>%0A';
|
|
@@ -6887,7 +4108,7 @@ function _extends() {
|
|
|
6887
4108
|
}
|
|
6888
4109
|
|
|
6889
4110
|
// node_modules/.pnpm/@emotion+styled@11.11.0_@emotion+react@11.11.1_@types+react@18.2.28_react@18.2.0/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js
|
|
6890
|
-
var React4 = __toESM(
|
|
4111
|
+
var React4 = __toESM(require("react"));
|
|
6891
4112
|
|
|
6892
4113
|
// node_modules/.pnpm/@emotion+is-prop-valid@1.2.1/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
|
|
6893
4114
|
init_process();
|
|
@@ -6917,8 +4138,8 @@ init_process();
|
|
|
6917
4138
|
|
|
6918
4139
|
// node_modules/.pnpm/@emotion+react@11.11.1_@types+react@18.2.28_react@18.2.0/node_modules/@emotion/react/dist/emotion-element-c39617d8.browser.esm.js
|
|
6919
4140
|
init_process();
|
|
6920
|
-
var React2 = __toESM(
|
|
6921
|
-
var import_react =
|
|
4141
|
+
var React2 = __toESM(require("react"));
|
|
4142
|
+
var import_react = require("react");
|
|
6922
4143
|
|
|
6923
4144
|
// node_modules/.pnpm/@emotion+cache@11.11.0/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
|
|
6924
4145
|
init_process();
|
|
@@ -8169,7 +5390,7 @@ var serializeStyles = function serializeStyles2(args, registered, mergedProps) {
|
|
|
8169
5390
|
|
|
8170
5391
|
// node_modules/.pnpm/@emotion+use-insertion-effect-with-fallbacks@1.0.1_react@18.2.0/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js
|
|
8171
5392
|
init_process();
|
|
8172
|
-
var React = __toESM(
|
|
5393
|
+
var React = __toESM(require("react"));
|
|
8173
5394
|
var syncFallback = function syncFallback2(create) {
|
|
8174
5395
|
return create();
|
|
8175
5396
|
};
|
|
@@ -8351,7 +5572,7 @@ if (true) {
|
|
|
8351
5572
|
var Emotion$1 = Emotion;
|
|
8352
5573
|
|
|
8353
5574
|
// node_modules/.pnpm/@emotion+react@11.11.1_@types+react@18.2.28_react@18.2.0/node_modules/@emotion/react/dist/emotion-react.browser.esm.js
|
|
8354
|
-
var React3 = __toESM(
|
|
5575
|
+
var React3 = __toESM(require("react"));
|
|
8355
5576
|
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
|
|
8356
5577
|
var pkg = {
|
|
8357
5578
|
name: "@emotion/react",
|
|
@@ -8819,7 +6040,7 @@ var createStyled = function createStyled2(tag, options) {
|
|
|
8819
6040
|
};
|
|
8820
6041
|
|
|
8821
6042
|
// node_modules/.pnpm/@emotion+styled@11.11.0_@emotion+react@11.11.1_@types+react@18.2.28_react@18.2.0/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js
|
|
8822
|
-
var import_react3 =
|
|
6043
|
+
var import_react3 = require("react");
|
|
8823
6044
|
var tags = [
|
|
8824
6045
|
"a",
|
|
8825
6046
|
"abbr",
|
|
@@ -9038,8 +6259,8 @@ var CloseIcon = newStyled.img`
|
|
|
9038
6259
|
|
|
9039
6260
|
// node_modules/.pnpm/@emotion+react@11.11.1_@types+react@18.2.28_react@18.2.0/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js
|
|
9040
6261
|
init_process();
|
|
9041
|
-
var ReactJSXRuntime = __toESM(
|
|
9042
|
-
var import_react4 =
|
|
6262
|
+
var ReactJSXRuntime = __toESM(require("react/jsx-runtime"));
|
|
6263
|
+
var import_react4 = require("react");
|
|
9043
6264
|
var import_hoist_non_react_statics2 = __toESM(require_hoist_non_react_statics_cjs());
|
|
9044
6265
|
var Fragment5 = ReactJSXRuntime.Fragment;
|
|
9045
6266
|
function jsx2(type, props, key) {
|
|
@@ -9075,7 +6296,7 @@ var InApp = ({ title: title3 = "", icon, color, openVoiting, closeInApp }) => {
|
|
|
9075
6296
|
|
|
9076
6297
|
// packages/react-ui/src/lib/gamification/login/index.tsx
|
|
9077
6298
|
init_process();
|
|
9078
|
-
var import_react21 =
|
|
6299
|
+
var import_react21 = require("react");
|
|
9079
6300
|
|
|
9080
6301
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/min/index.js
|
|
9081
6302
|
init_process();
|
|
@@ -9089,13 +6310,13 @@ init_process();
|
|
|
9089
6310
|
|
|
9090
6311
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/PhoneInputWithCountry.js
|
|
9091
6312
|
init_process();
|
|
9092
|
-
var import_react14 = __toESM(
|
|
6313
|
+
var import_react14 = __toESM(require("react"), 1);
|
|
9093
6314
|
var import_prop_types9 = __toESM(require_prop_types(), 1);
|
|
9094
6315
|
var import_classnames4 = __toESM(require_classnames(), 1);
|
|
9095
6316
|
|
|
9096
6317
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/InputSmart.js
|
|
9097
6318
|
init_process();
|
|
9098
|
-
var import_react7 = __toESM(
|
|
6319
|
+
var import_react7 = __toESM(require("react"), 1);
|
|
9099
6320
|
var import_prop_types2 = __toESM(require_prop_types(), 1);
|
|
9100
6321
|
|
|
9101
6322
|
// node_modules/.pnpm/input-format@0.3.8/node_modules/input-format/react/index.js
|
|
@@ -9103,7 +6324,7 @@ init_process();
|
|
|
9103
6324
|
|
|
9104
6325
|
// node_modules/.pnpm/input-format@0.3.8/node_modules/input-format/modules/react/Input.js
|
|
9105
6326
|
init_process();
|
|
9106
|
-
var import_react6 = __toESM(
|
|
6327
|
+
var import_react6 = __toESM(require("react"), 1);
|
|
9107
6328
|
var import_prop_types = __toESM(require_prop_types(), 1);
|
|
9108
6329
|
|
|
9109
6330
|
// node_modules/.pnpm/input-format@0.3.8/node_modules/input-format/modules/inputControl.js
|
|
@@ -14108,7 +11329,7 @@ var InputSmart_default = createInput();
|
|
|
14108
11329
|
|
|
14109
11330
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/InputBasic.js
|
|
14110
11331
|
init_process();
|
|
14111
|
-
var import_react9 = __toESM(
|
|
11332
|
+
var import_react9 = __toESM(require("react"), 1);
|
|
14112
11333
|
var import_prop_types3 = __toESM(require_prop_types(), 1);
|
|
14113
11334
|
var _excluded3 = ["value", "onChange", "country", "international", "withCountryCallingCode", "metadata", "inputComponent"];
|
|
14114
11335
|
function _extends4() {
|
|
@@ -14244,7 +11465,7 @@ function format2(prefix2, value, country, metadata2) {
|
|
|
14244
11465
|
|
|
14245
11466
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/CountrySelect.js
|
|
14246
11467
|
init_process();
|
|
14247
|
-
var import_react10 = __toESM(
|
|
11468
|
+
var import_react10 = __toESM(require("react"), 1);
|
|
14248
11469
|
var import_prop_types4 = __toESM(require_prop_types(), 1);
|
|
14249
11470
|
var import_classnames = __toESM(require_classnames(), 1);
|
|
14250
11471
|
|
|
@@ -14435,7 +11656,7 @@ function getSelectedOption(options, value) {
|
|
|
14435
11656
|
|
|
14436
11657
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/Flag.js
|
|
14437
11658
|
init_process();
|
|
14438
|
-
var import_react11 = __toESM(
|
|
11659
|
+
var import_react11 = __toESM(require("react"), 1);
|
|
14439
11660
|
var import_prop_types5 = __toESM(require_prop_types(), 1);
|
|
14440
11661
|
var import_classnames2 = __toESM(require_classnames(), 1);
|
|
14441
11662
|
var _excluded5 = ["country", "countryName", "flags", "flagUrl"];
|
|
@@ -14519,7 +11740,7 @@ FlagComponent.propTypes = {
|
|
|
14519
11740
|
|
|
14520
11741
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/InternationalIcon.js
|
|
14521
11742
|
init_process();
|
|
14522
|
-
var import_react12 = __toESM(
|
|
11743
|
+
var import_react12 = __toESM(require("react"), 1);
|
|
14523
11744
|
var import_prop_types6 = __toESM(require_prop_types(), 1);
|
|
14524
11745
|
var _excluded6 = ["aspectRatio"];
|
|
14525
11746
|
var _excluded23 = ["title"];
|
|
@@ -14777,7 +11998,7 @@ function getSupportedCountries(countries, metadata2) {
|
|
|
14777
11998
|
|
|
14778
11999
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/CountryIcon.js
|
|
14779
12000
|
init_process();
|
|
14780
|
-
var import_react13 = __toESM(
|
|
12001
|
+
var import_react13 = __toESM(require("react"), 1);
|
|
14781
12002
|
var import_prop_types7 = __toESM(require_prop_types(), 1);
|
|
14782
12003
|
var import_classnames3 = __toESM(require_classnames(), 1);
|
|
14783
12004
|
var _excluded7 = ["country", "label", "aspectRatio"];
|
|
@@ -16272,7 +13493,7 @@ function formatPhoneNumberIntl(value, metadata2) {
|
|
|
16272
13493
|
|
|
16273
13494
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/PhoneInputWithCountryDefault.js
|
|
16274
13495
|
init_process();
|
|
16275
|
-
var import_react15 = __toESM(
|
|
13496
|
+
var import_react15 = __toESM(require("react"), 1);
|
|
16276
13497
|
|
|
16277
13498
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/locale/en.json.js
|
|
16278
13499
|
init_process();
|
|
@@ -21077,14 +18298,14 @@ var login = async (host, phone, code) => {
|
|
|
21077
18298
|
|
|
21078
18299
|
// packages/react-ui/src/lib/gamification/vote/components/voting-header/components/timer/index.tsx
|
|
21079
18300
|
init_process();
|
|
21080
|
-
var import_react20 =
|
|
18301
|
+
var import_react20 = require("react");
|
|
21081
18302
|
|
|
21082
18303
|
// node_modules/.pnpm/react-countdown-circle-timer@3.2.1_react@18.2.0/node_modules/react-countdown-circle-timer/lib/index.module.js
|
|
21083
18304
|
init_process();
|
|
21084
|
-
var import_react16 = __toESM(
|
|
21085
|
-
var import_react17 =
|
|
21086
|
-
var import_react18 =
|
|
21087
|
-
var import_react19 =
|
|
18305
|
+
var import_react16 = __toESM(require("react"));
|
|
18306
|
+
var import_react17 = require("react");
|
|
18307
|
+
var import_react18 = require("react");
|
|
18308
|
+
var import_react19 = require("react");
|
|
21088
18309
|
var G = typeof window == "undefined" ? import_react19.useEffect : import_react19.useLayoutEffect;
|
|
21089
18310
|
var I = ({ isPlaying: o, duration: e, startAt: n = 0, updateInterval: t = 0, onComplete: s, onUpdate: r }) => {
|
|
21090
18311
|
let [i, c] = (0, import_react18.useState)(n), m = (0, import_react18.useRef)(0), p = (0, import_react18.useRef)(n), f = (0, import_react18.useRef)(n * -1e3), u = (0, import_react18.useRef)(null), a = (0, import_react18.useRef)(null), h = (0, import_react18.useRef)(null), w = (g) => {
|
|
@@ -25351,7 +22572,7 @@ var UserStatistics = ({
|
|
|
25351
22572
|
|
|
25352
22573
|
// packages/react-ui/src/lib/gamification/vote/index.tsx
|
|
25353
22574
|
init_process();
|
|
25354
|
-
var import_react22 =
|
|
22575
|
+
var import_react22 = require("react");
|
|
25355
22576
|
|
|
25356
22577
|
// packages/react-ui/src/assets/icons/icon-check.svg
|
|
25357
22578
|
var icon_check_default = 'data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="Checkmark">%0A<path id="Selected" fill-rule="evenodd" clip-rule="evenodd" d="M24 12.002C24 18.6294 18.6274 24.002 12 24.002C5.37258 24.002 0 18.6294 0 12.002C0 5.37454 5.37258 0.00195312 12 0.00195312C18.6274 0.00195312 24 5.37454 24 12.002ZM17.4086 8.15357C16.94 7.68494 16.1802 7.68494 15.7116 8.15357L10.4072 14.9579L7.62573 13.1036C7.07429 12.736 6.32925 12.885 5.96163 13.4365C5.59401 13.9879 5.74301 14.7329 6.29445 15.1006L9.89445 17.5006C10.3704 17.8179 11.0041 17.7551 11.4086 17.3506L17.4086 9.85063C17.8772 9.382 17.8772 8.6222 17.4086 8.15357Z" fill="%2300BD60"/>%0A</g>%0A</svg>%0A';
|
|
@@ -25984,7 +23205,7 @@ var map = (value = {}) => {
|
|
|
25984
23205
|
};
|
|
25985
23206
|
|
|
25986
23207
|
// node_modules/.pnpm/@nanostores+react@0.7.1_nanostores@0.9.4_react@18.2.0/node_modules/@nanostores/react/index.js
|
|
25987
|
-
var import_react23 =
|
|
23208
|
+
var import_react23 = require("react");
|
|
25988
23209
|
function useStore(store2, opts = {}) {
|
|
25989
23210
|
let subscribe2 = (0, import_react23.useCallback)(
|
|
25990
23211
|
(onChange2) => opts.keys ? listenKeys(store2, opts.keys, onChange2) : store2.listen(onChange2),
|
|
@@ -26036,7 +23257,7 @@ var QuestionsList = ({ store: store2, openQuestion }) => {
|
|
|
26036
23257
|
|
|
26037
23258
|
// packages/react-ui/src/lib/demo/components/Question.tsx
|
|
26038
23259
|
init_process();
|
|
26039
|
-
var import_react27 =
|
|
23260
|
+
var import_react27 = require("react");
|
|
26040
23261
|
|
|
26041
23262
|
// packages/react-ui/src/lib/gamification/vote/components/voting-header/index.tsx
|
|
26042
23263
|
init_process();
|
|
@@ -26274,7 +23495,7 @@ var Question3 = ({ store: store2, closeQuestion, vote }) => {
|
|
|
26274
23495
|
|
|
26275
23496
|
// packages/react-ui/src/lib/demo/components/Notifications.tsx
|
|
26276
23497
|
init_process();
|
|
26277
|
-
var import_react29 =
|
|
23498
|
+
var import_react29 = require("react");
|
|
26278
23499
|
var Notifications = ({ notificationsStore, openQuestion }) => {
|
|
26279
23500
|
const timeout = (0, import_react29.useRef)();
|
|
26280
23501
|
const [lastNotification, setLastNotification] = (0, import_react29.useState)();
|
|
@@ -26413,7 +23634,7 @@ init_process();
|
|
|
26413
23634
|
var StreamLayerThemeProvider = ({ children }) => /* @__PURE__ */ jsx2(ThemeProvider, { theme, children });
|
|
26414
23635
|
|
|
26415
23636
|
// packages/react/src/app/provider.tsx
|
|
26416
|
-
var import_react34 =
|
|
23637
|
+
var import_react34 = require("react");
|
|
26417
23638
|
|
|
26418
23639
|
// packages/react/src/app/useStreamLayerApp.ts
|
|
26419
23640
|
init_process();
|
|
@@ -33401,7 +30622,7 @@ function StreamLayer(sdkKey, production = true) {
|
|
|
33401
30622
|
}
|
|
33402
30623
|
|
|
33403
30624
|
// packages/react/src/app/useStreamLayerApp.ts
|
|
33404
|
-
var import_react33 =
|
|
30625
|
+
var import_react33 = require("react");
|
|
33405
30626
|
window.instance = null;
|
|
33406
30627
|
var useStreamLayerApp = (sdkKey, plugins, production) => {
|
|
33407
30628
|
const [sdk, setSdk] = (0, import_react33.useState)(null);
|
|
@@ -33458,7 +30679,7 @@ var StreamLayerProvider = ({
|
|
|
33458
30679
|
|
|
33459
30680
|
// packages/react/src/app/app.tsx
|
|
33460
30681
|
init_process();
|
|
33461
|
-
var import_react35 =
|
|
30682
|
+
var import_react35 = require("react");
|
|
33462
30683
|
var useStreamLayer = () => {
|
|
33463
30684
|
const { sdk } = (0, import_react35.useContext)(StreamLayerContext3);
|
|
33464
30685
|
return sdk;
|
|
@@ -33478,17 +30699,6 @@ var StreamLayerSDKReact = () => {
|
|
|
33478
30699
|
};
|
|
33479
30700
|
/*! Bundled license information:
|
|
33480
30701
|
|
|
33481
|
-
react/cjs/react.development.js:
|
|
33482
|
-
(**
|
|
33483
|
-
* @license React
|
|
33484
|
-
* react.development.js
|
|
33485
|
-
*
|
|
33486
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33487
|
-
*
|
|
33488
|
-
* This source code is licensed under the MIT license found in the
|
|
33489
|
-
* LICENSE file in the root directory of this source tree.
|
|
33490
|
-
*)
|
|
33491
|
-
|
|
33492
30702
|
react-is/cjs/react-is.development.js:
|
|
33493
30703
|
(** @license React v16.13.1
|
|
33494
30704
|
* react-is.development.js
|
|
@@ -33499,17 +30709,6 @@ react-is/cjs/react-is.development.js:
|
|
|
33499
30709
|
* LICENSE file in the root directory of this source tree.
|
|
33500
30710
|
*)
|
|
33501
30711
|
|
|
33502
|
-
react/cjs/react-jsx-runtime.development.js:
|
|
33503
|
-
(**
|
|
33504
|
-
* @license React
|
|
33505
|
-
* react-jsx-runtime.development.js
|
|
33506
|
-
*
|
|
33507
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33508
|
-
*
|
|
33509
|
-
* This source code is licensed under the MIT license found in the
|
|
33510
|
-
* LICENSE file in the root directory of this source tree.
|
|
33511
|
-
*)
|
|
33512
|
-
|
|
33513
30712
|
object-assign/index.js:
|
|
33514
30713
|
(*
|
|
33515
30714
|
object-assign
|