@realsee/live 0.4.0-alpha.2 → 0.4.0-alpha.3

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.
@@ -10658,7 +10658,7 @@
10658
10658
  : part2 < 128 ? 9 : 10;
10659
10659
  };
10660
10660
 
10661
- var require$$0$5 = aspromise;
10661
+ var require$$0$6 = aspromise;
10662
10662
 
10663
10663
  var require$$1$3 = base64_1;
10664
10664
 
@@ -10678,7 +10678,7 @@
10678
10678
  var util = exports;
10679
10679
 
10680
10680
  // used to return a Promise where callback is omitted
10681
- util.asPromise = require$$0$5;
10681
+ util.asPromise = require$$0$6;
10682
10682
 
10683
10683
  // converts to / from base64 encoded strings
10684
10684
  util.base64 = require$$1$3;
@@ -11549,13 +11549,13 @@
11549
11549
  BufferWriter$1 = BufferWriter_;
11550
11550
  };
11551
11551
 
11552
- var require$$0$4 = writer;
11552
+ var require$$0$5 = writer;
11553
11553
 
11554
11554
  var writer_buffer = BufferWriter;
11555
11555
 
11556
11556
  // extends Writer
11557
11557
 
11558
- (BufferWriter.prototype = Object.create(require$$0$4.prototype)).constructor = BufferWriter;
11558
+ (BufferWriter.prototype = Object.create(require$$0$5.prototype)).constructor = BufferWriter;
11559
11559
 
11560
11560
 
11561
11561
 
@@ -11568,7 +11568,7 @@
11568
11568
  * @constructor
11569
11569
  */
11570
11570
  function BufferWriter() {
11571
- require$$0$4.call(this);
11571
+ require$$0$5.call(this);
11572
11572
  }
11573
11573
 
11574
11574
  /**
@@ -12210,7 +12210,7 @@
12210
12210
  return this;
12211
12211
  };
12212
12212
 
12213
- var require$$0$3 = service;
12213
+ var require$$0$4 = service;
12214
12214
 
12215
12215
  var rpc_1 = createCommonjsModule(function (module, exports) {
12216
12216
 
@@ -12247,7 +12247,7 @@
12247
12247
  * @returns {undefined}
12248
12248
  */
12249
12249
 
12250
- rpc.Service = require$$0$3;
12250
+ rpc.Service = require$$0$4;
12251
12251
  });
12252
12252
 
12253
12253
  var roots = {};
@@ -12272,7 +12272,7 @@
12272
12272
  protobuf.build = "minimal";
12273
12273
 
12274
12274
  // Serialization
12275
- protobuf.Writer = require$$0$4;
12275
+ protobuf.Writer = require$$0$5;
12276
12276
  protobuf.BufferWriter = require$$1$2;
12277
12277
  protobuf.Reader = require$$2;
12278
12278
  protobuf.BufferReader = require$$3;
@@ -12298,9 +12298,9 @@
12298
12298
  configure();
12299
12299
  });
12300
12300
 
12301
- var require$$0$2 = indexMinimal;
12301
+ var require$$0$3 = indexMinimal;
12302
12302
 
12303
- var minimal = require$$0$2;
12303
+ var minimal = require$$0$3;
12304
12304
 
12305
12305
  var $protobuf = minimal;
12306
12306
 
@@ -31104,7 +31104,7 @@
31104
31104
  //Z_NULL: null // Use -1 or null inline, depending on var type
31105
31105
  };
31106
31106
 
31107
- var require$$0$1 = trees;
31107
+ var require$$0$2 = trees;
31108
31108
 
31109
31109
  var adler32 = adler32_1;
31110
31110
 
@@ -31133,7 +31133,7 @@
31133
31133
  // misrepresented as being the original software.
31134
31134
  // 3. This notice may not be removed or altered from any source distribution.
31135
31135
 
31136
- const { _tr_init, _tr_stored_block, _tr_flush_block, _tr_tally, _tr_align } = require$$0$1;
31136
+ const { _tr_init, _tr_stored_block, _tr_flush_block, _tr_tally, _tr_align } = require$$0$2;
31137
31137
 
31138
31138
 
31139
31139
 
@@ -36365,11 +36365,11 @@
36365
36365
  constants: constants
36366
36366
  };
36367
36367
 
36368
- var require$$0 = deflate_1$1;
36368
+ var require$$0$1 = deflate_1$1;
36369
36369
 
36370
36370
  var require$$1$1 = inflate_1$1;
36371
36371
 
36372
- const { Deflate, deflate, deflateRaw, gzip } = require$$0;
36372
+ const { Deflate, deflate, deflateRaw, gzip } = require$$0$1;
36373
36373
 
36374
36374
  const { Inflate, inflate, inflateRaw, ungzip } = require$$1$1;
36375
36375
 
@@ -49474,8 +49474,98 @@
49474
49474
  return live;
49475
49475
  }
49476
49476
 
49477
- /**
49478
- * @license React
49477
+ /*
49478
+ object-assign
49479
+ (c) Sindre Sorhus
49480
+ @license MIT
49481
+ */
49482
+ /* eslint-disable no-unused-vars */
49483
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
49484
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
49485
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
49486
+
49487
+ function toObject(val) {
49488
+ if (val === null || val === undefined) {
49489
+ throw new TypeError('Object.assign cannot be called with null or undefined');
49490
+ }
49491
+
49492
+ return Object(val);
49493
+ }
49494
+
49495
+ function shouldUseNative() {
49496
+ try {
49497
+ if (!Object.assign) {
49498
+ return false;
49499
+ }
49500
+
49501
+ // Detect buggy property enumeration order in older V8 versions.
49502
+
49503
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
49504
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
49505
+ test1[5] = 'de';
49506
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
49507
+ return false;
49508
+ }
49509
+
49510
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
49511
+ var test2 = {};
49512
+ for (var i = 0; i < 10; i++) {
49513
+ test2['_' + String.fromCharCode(i)] = i;
49514
+ }
49515
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
49516
+ return test2[n];
49517
+ });
49518
+ if (order2.join('') !== '0123456789') {
49519
+ return false;
49520
+ }
49521
+
49522
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
49523
+ var test3 = {};
49524
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
49525
+ test3[letter] = letter;
49526
+ });
49527
+ if (Object.keys(Object.assign({}, test3)).join('') !==
49528
+ 'abcdefghijklmnopqrst') {
49529
+ return false;
49530
+ }
49531
+
49532
+ return true;
49533
+ } catch (err) {
49534
+ // We don't expect any of the above to throw, but better to be safe.
49535
+ return false;
49536
+ }
49537
+ }
49538
+
49539
+ var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
49540
+ var from;
49541
+ var to = toObject(target);
49542
+ var symbols;
49543
+
49544
+ for (var s = 1; s < arguments.length; s++) {
49545
+ from = Object(arguments[s]);
49546
+
49547
+ for (var key in from) {
49548
+ if (hasOwnProperty.call(from, key)) {
49549
+ to[key] = from[key];
49550
+ }
49551
+ }
49552
+
49553
+ if (getOwnPropertySymbols) {
49554
+ symbols = getOwnPropertySymbols(from);
49555
+ for (var i = 0; i < symbols.length; i++) {
49556
+ if (propIsEnumerable.call(from, symbols[i])) {
49557
+ to[symbols[i]] = from[symbols[i]];
49558
+ }
49559
+ }
49560
+ }
49561
+ }
49562
+
49563
+ return to;
49564
+ };
49565
+
49566
+ var require$$0 = objectAssign;
49567
+
49568
+ /** @license React v17.0.2
49479
49569
  * react.development.js
49480
49570
  *
49481
49571
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -49489,44 +49579,59 @@
49489
49579
  {
49490
49580
  (function() {
49491
49581
 
49492
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
49493
- if (
49494
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
49495
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
49496
- 'function'
49497
- ) {
49498
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
49499
- }
49500
- var ReactVersion = '18.1.0';
49501
-
49502
- // -----------------------------------------------------------------------------
49503
-
49504
- var enableScopeAPI = false; // Experimental Create Event Handle API.
49505
- var enableCacheElement = false;
49506
- var enableTransitionTracing = false; // No known bugs, but needs performance testing
49507
-
49508
- var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
49509
- // stuff. Intended to enable React core members to more easily debug scheduling
49510
- // issues in DEV builds.
49582
+ var _assign = require$$0;
49511
49583
 
49512
- var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
49584
+ // TODO: this is special because it gets imported during build.
49585
+ var ReactVersion = '17.0.2';
49513
49586
 
49514
49587
  // ATTENTION
49515
-
49516
- var REACT_ELEMENT_TYPE = Symbol.for('react.element');
49517
- var REACT_PORTAL_TYPE = Symbol.for('react.portal');
49518
- var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
49519
- var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
49520
- var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
49521
- var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
49522
- var REACT_CONTEXT_TYPE = Symbol.for('react.context');
49523
- var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
49524
- var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
49525
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
49526
- var REACT_MEMO_TYPE = Symbol.for('react.memo');
49527
- var REACT_LAZY_TYPE = Symbol.for('react.lazy');
49528
- var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
49529
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
49588
+ // When adding new symbols to this file,
49589
+ // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
49590
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
49591
+ // nor polyfill, then a plain number is used for performance.
49592
+ var REACT_ELEMENT_TYPE = 0xeac7;
49593
+ var REACT_PORTAL_TYPE = 0xeaca;
49594
+ exports.Fragment = 0xeacb;
49595
+ exports.StrictMode = 0xeacc;
49596
+ exports.Profiler = 0xead2;
49597
+ var REACT_PROVIDER_TYPE = 0xeacd;
49598
+ var REACT_CONTEXT_TYPE = 0xeace;
49599
+ var REACT_FORWARD_REF_TYPE = 0xead0;
49600
+ exports.Suspense = 0xead1;
49601
+ var REACT_SUSPENSE_LIST_TYPE = 0xead8;
49602
+ var REACT_MEMO_TYPE = 0xead3;
49603
+ var REACT_LAZY_TYPE = 0xead4;
49604
+ var REACT_BLOCK_TYPE = 0xead9;
49605
+ var REACT_SERVER_BLOCK_TYPE = 0xeada;
49606
+ var REACT_FUNDAMENTAL_TYPE = 0xead5;
49607
+ var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
49608
+ var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
49609
+
49610
+ if (typeof Symbol === 'function' && Symbol.for) {
49611
+ var symbolFor = Symbol.for;
49612
+ REACT_ELEMENT_TYPE = symbolFor('react.element');
49613
+ REACT_PORTAL_TYPE = symbolFor('react.portal');
49614
+ exports.Fragment = symbolFor('react.fragment');
49615
+ exports.StrictMode = symbolFor('react.strict_mode');
49616
+ exports.Profiler = symbolFor('react.profiler');
49617
+ REACT_PROVIDER_TYPE = symbolFor('react.provider');
49618
+ REACT_CONTEXT_TYPE = symbolFor('react.context');
49619
+ REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
49620
+ exports.Suspense = symbolFor('react.suspense');
49621
+ REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
49622
+ REACT_MEMO_TYPE = symbolFor('react.memo');
49623
+ REACT_LAZY_TYPE = symbolFor('react.lazy');
49624
+ REACT_BLOCK_TYPE = symbolFor('react.block');
49625
+ REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
49626
+ REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
49627
+ symbolFor('react.scope');
49628
+ symbolFor('react.opaque.id');
49629
+ REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
49630
+ symbolFor('react.offscreen');
49631
+ REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
49632
+ }
49633
+
49634
+ var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
49530
49635
  var FAUX_ITERATOR_SYMBOL = '@@iterator';
49531
49636
  function getIteratorFn(maybeIterable) {
49532
49637
  if (maybeIterable === null || typeof maybeIterable !== 'object') {
@@ -49558,14 +49663,7 @@
49558
49663
  * should suspend for if it needs to.
49559
49664
  */
49560
49665
  var ReactCurrentBatchConfig = {
49561
- transition: null
49562
- };
49563
-
49564
- var ReactCurrentActQueue = {
49565
- current: null,
49566
- // Used to reproduce behavior of `batchedUpdates` in legacy mode.
49567
- isBatchingLegacy: false,
49568
- didScheduleLegacyUpdate: false
49666
+ transition: 0
49569
49667
  };
49570
49668
 
49571
49669
  /**
@@ -49618,15 +49716,24 @@
49618
49716
  };
49619
49717
  }
49620
49718
 
49719
+ /**
49720
+ * Used by act() to track whether you're inside an act() scope.
49721
+ */
49722
+ var IsSomeRendererActing = {
49723
+ current: false
49724
+ };
49725
+
49621
49726
  var ReactSharedInternals = {
49622
49727
  ReactCurrentDispatcher: ReactCurrentDispatcher,
49623
49728
  ReactCurrentBatchConfig: ReactCurrentBatchConfig,
49624
- ReactCurrentOwner: ReactCurrentOwner
49729
+ ReactCurrentOwner: ReactCurrentOwner,
49730
+ IsSomeRendererActing: IsSomeRendererActing,
49731
+ // Used by renderers to avoid bundling object-assign twice in UMD bundles:
49732
+ assign: _assign
49625
49733
  };
49626
49734
 
49627
49735
  {
49628
49736
  ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
49629
- ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
49630
49737
  }
49631
49738
 
49632
49739
  // by calls to these methods by a Babel plugin.
@@ -49636,24 +49743,20 @@
49636
49743
 
49637
49744
  function warn(format) {
49638
49745
  {
49639
- {
49640
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
49641
- args[_key - 1] = arguments[_key];
49642
- }
49643
-
49644
- printWarning('warn', format, args);
49746
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
49747
+ args[_key - 1] = arguments[_key];
49645
49748
  }
49749
+
49750
+ printWarning('warn', format, args);
49646
49751
  }
49647
49752
  }
49648
49753
  function error(format) {
49649
49754
  {
49650
- {
49651
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
49652
- args[_key2 - 1] = arguments[_key2];
49653
- }
49654
-
49655
- printWarning('error', format, args);
49755
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
49756
+ args[_key2 - 1] = arguments[_key2];
49656
49757
  }
49758
+
49759
+ printWarning('error', format, args);
49657
49760
  }
49658
49761
  }
49659
49762
 
@@ -49667,11 +49770,10 @@
49667
49770
  if (stack !== '') {
49668
49771
  format += '%s';
49669
49772
  args = args.concat([stack]);
49670
- } // eslint-disable-next-line react-internal/safe-string-coercion
49671
-
49773
+ }
49672
49774
 
49673
49775
  var argsWithFormat = args.map(function (item) {
49674
- return String(item);
49776
+ return '' + item;
49675
49777
  }); // Careful: RN currently depends on this prefix
49676
49778
 
49677
49779
  argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
@@ -49769,8 +49871,6 @@
49769
49871
  }
49770
49872
  };
49771
49873
 
49772
- var assign = Object.assign;
49773
-
49774
49874
  var emptyObject = {};
49775
49875
 
49776
49876
  {
@@ -49819,8 +49919,10 @@
49819
49919
  */
49820
49920
 
49821
49921
  Component.prototype.setState = function (partialState, callback) {
49822
- if (typeof partialState !== 'object' && typeof partialState !== 'function' && partialState != null) {
49823
- throw new Error('setState(...): takes an object of state variables to update or a ' + 'function which returns an object of state variables.');
49922
+ if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
49923
+ {
49924
+ throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." );
49925
+ }
49824
49926
  }
49825
49927
 
49826
49928
  this.updater.enqueueSetState(this, partialState, callback, 'setState');
@@ -49892,7 +49994,8 @@
49892
49994
  var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
49893
49995
  pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
49894
49996
 
49895
- assign(pureComponentPrototype, Component.prototype);
49997
+ _assign(pureComponentPrototype, Component.prototype);
49998
+
49896
49999
  pureComponentPrototype.isPureReactComponent = true;
49897
50000
 
49898
50001
  // an immutable object with a single mutable value
@@ -49908,96 +50011,16 @@
49908
50011
  return refObject;
49909
50012
  }
49910
50013
 
49911
- var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
49912
-
49913
- function isArray(a) {
49914
- return isArrayImpl(a);
49915
- }
49916
-
49917
- /*
49918
- * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
49919
- * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
49920
- *
49921
- * The functions in this module will throw an easier-to-understand,
49922
- * easier-to-debug exception with a clear errors message message explaining the
49923
- * problem. (Instead of a confusing exception thrown inside the implementation
49924
- * of the `value` object).
49925
- */
49926
- // $FlowFixMe only called in DEV, so void return is not possible.
49927
- function typeName(value) {
49928
- {
49929
- // toStringTag is needed for namespaced types like Temporal.Instant
49930
- var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
49931
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
49932
- return type;
49933
- }
49934
- } // $FlowFixMe only called in DEV, so void return is not possible.
49935
-
49936
-
49937
- function willCoercionThrow(value) {
49938
- {
49939
- try {
49940
- return false;
49941
- } catch (e) {
49942
- return true;
49943
- }
49944
- }
49945
- }
49946
-
49947
- function testStringCoercion(value) {
49948
- // If you ended up here by following an exception call stack, here's what's
49949
- // happened: you supplied an object or symbol value to React (as a prop, key,
49950
- // DOM attribute, CSS property, string ref, etc.) and when React tried to
49951
- // coerce it to a string using `'' + value`, an exception was thrown.
49952
- //
49953
- // The most common types that will cause this exception are `Symbol` instances
49954
- // and Temporal objects like `Temporal.Instant`. But any object that has a
49955
- // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
49956
- // exception. (Library authors do this to prevent users from using built-in
49957
- // numeric operators like `+` or comparison operators like `>=` because custom
49958
- // methods are needed to perform accurate arithmetic or comparison.)
49959
- //
49960
- // To fix the problem, coerce this object or symbol value to a string before
49961
- // passing it to React. The most reliable way is usually `String(value)`.
49962
- //
49963
- // To find which value is throwing, check the browser or debugger console.
49964
- // Before this exception was thrown, there should be `console.error` output
49965
- // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
49966
- // problem and how that type was used: key, atrribute, input value prop, etc.
49967
- // In most cases, this console output also shows the component and its
49968
- // ancestor components where the exception happened.
49969
- //
49970
- // eslint-disable-next-line react-internal/safe-string-coercion
49971
- return '' + value;
49972
- }
49973
- function checkKeyStringCoercion(value) {
49974
- {
49975
- if (willCoercionThrow()) {
49976
- error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
49977
-
49978
- return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
49979
- }
49980
- }
49981
- }
49982
-
49983
50014
  function getWrappedName(outerType, innerType, wrapperName) {
49984
- var displayName = outerType.displayName;
49985
-
49986
- if (displayName) {
49987
- return displayName;
49988
- }
49989
-
49990
50015
  var functionName = innerType.displayName || innerType.name || '';
49991
- return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
49992
- } // Keep in sync with react-reconciler/getComponentNameFromFiber
49993
-
50016
+ return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
50017
+ }
49994
50018
 
49995
50019
  function getContextName(type) {
49996
50020
  return type.displayName || 'Context';
49997
- } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
49998
-
50021
+ }
49999
50022
 
50000
- function getComponentNameFromType(type) {
50023
+ function getComponentName(type) {
50001
50024
  if (type == null) {
50002
50025
  // Host root, text node or just invalid type.
50003
50026
  return null;
@@ -50005,7 +50028,7 @@
50005
50028
 
50006
50029
  {
50007
50030
  if (typeof type.tag === 'number') {
50008
- error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
50031
+ error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
50009
50032
  }
50010
50033
  }
50011
50034
 
@@ -50018,24 +50041,23 @@
50018
50041
  }
50019
50042
 
50020
50043
  switch (type) {
50021
- case REACT_FRAGMENT_TYPE:
50044
+ case exports.Fragment:
50022
50045
  return 'Fragment';
50023
50046
 
50024
50047
  case REACT_PORTAL_TYPE:
50025
50048
  return 'Portal';
50026
50049
 
50027
- case REACT_PROFILER_TYPE:
50050
+ case exports.Profiler:
50028
50051
  return 'Profiler';
50029
50052
 
50030
- case REACT_STRICT_MODE_TYPE:
50053
+ case exports.StrictMode:
50031
50054
  return 'StrictMode';
50032
50055
 
50033
- case REACT_SUSPENSE_TYPE:
50056
+ case exports.Suspense:
50034
50057
  return 'Suspense';
50035
50058
 
50036
50059
  case REACT_SUSPENSE_LIST_TYPE:
50037
50060
  return 'SuspenseList';
50038
-
50039
50061
  }
50040
50062
 
50041
50063
  if (typeof type === 'object') {
@@ -50052,13 +50074,10 @@
50052
50074
  return getWrappedName(type, type.render, 'ForwardRef');
50053
50075
 
50054
50076
  case REACT_MEMO_TYPE:
50055
- var outerName = type.displayName || null;
50056
-
50057
- if (outerName !== null) {
50058
- return outerName;
50059
- }
50077
+ return getComponentName(type.type);
50060
50078
 
50061
- return getComponentNameFromType(type.type) || 'Memo';
50079
+ case REACT_BLOCK_TYPE:
50080
+ return getComponentName(type._render);
50062
50081
 
50063
50082
  case REACT_LAZY_TYPE:
50064
50083
  {
@@ -50067,13 +50086,11 @@
50067
50086
  var init = lazyComponent._init;
50068
50087
 
50069
50088
  try {
50070
- return getComponentNameFromType(init(payload));
50089
+ return getComponentName(init(payload));
50071
50090
  } catch (x) {
50072
50091
  return null;
50073
50092
  }
50074
50093
  }
50075
-
50076
- // eslint-disable-next-line no-fallthrough
50077
50094
  }
50078
50095
  }
50079
50096
 
@@ -50081,7 +50098,6 @@
50081
50098
  }
50082
50099
 
50083
50100
  var hasOwnProperty = Object.prototype.hasOwnProperty;
50084
-
50085
50101
  var RESERVED_PROPS = {
50086
50102
  key: true,
50087
50103
  ref: true,
@@ -50161,7 +50177,7 @@
50161
50177
  function warnIfStringRefCannotBeAutoConverted(config) {
50162
50178
  {
50163
50179
  if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
50164
- var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
50180
+ var componentName = getComponentName(ReactCurrentOwner.current.type);
50165
50181
 
50166
50182
  if (!didWarnAboutStringRefs[componentName]) {
50167
50183
  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, config.ref);
@@ -50270,10 +50286,6 @@
50270
50286
  }
50271
50287
 
50272
50288
  if (hasValidKey(config)) {
50273
- {
50274
- checkKeyStringCoercion(config.key);
50275
- }
50276
-
50277
50289
  key = '' + config.key;
50278
50290
  }
50279
50291
 
@@ -50346,13 +50358,16 @@
50346
50358
  */
50347
50359
 
50348
50360
  function cloneElement(element, config, children) {
50349
- if (element === null || element === undefined) {
50350
- throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
50361
+ if (!!(element === null || element === undefined)) {
50362
+ {
50363
+ throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + element + "." );
50364
+ }
50351
50365
  }
50352
50366
 
50353
50367
  var propName; // Original props are copied
50354
50368
 
50355
- var props = assign({}, element.props); // Reserved names are extracted
50369
+ var props = _assign({}, element.props); // Reserved names are extracted
50370
+
50356
50371
 
50357
50372
  var key = element.key;
50358
50373
  var ref = element.ref; // Self is preserved since the owner is preserved.
@@ -50373,10 +50388,6 @@
50373
50388
  }
50374
50389
 
50375
50390
  if (hasValidKey(config)) {
50376
- {
50377
- checkKeyStringCoercion(config.key);
50378
- }
50379
-
50380
50391
  key = '' + config.key;
50381
50392
  } // Remaining properties override existing props
50382
50393
 
@@ -50475,10 +50486,6 @@
50475
50486
  // that we don't block potential future ES APIs.
50476
50487
  if (typeof element === 'object' && element !== null && element.key != null) {
50477
50488
  // Explicit key
50478
- {
50479
- checkKeyStringCoercion(element.key);
50480
- }
50481
-
50482
50489
  return escape('' + element.key);
50483
50490
  } // Implicit key determined by the index in the set
50484
50491
 
@@ -50522,7 +50529,7 @@
50522
50529
 
50523
50530
  var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
50524
50531
 
50525
- if (isArray(mappedChild)) {
50532
+ if (Array.isArray(mappedChild)) {
50526
50533
  var escapedChildKey = '';
50527
50534
 
50528
50535
  if (childKey != null) {
@@ -50534,20 +50541,10 @@
50534
50541
  });
50535
50542
  } else if (mappedChild != null) {
50536
50543
  if (isValidElement(mappedChild)) {
50537
- {
50538
- // The `if` statement here prevents auto-disabling of the safe
50539
- // coercion ESLint rule, so we must manually disable it below.
50540
- // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
50541
- if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
50542
- checkKeyStringCoercion(mappedChild.key);
50543
- }
50544
- }
50545
-
50546
50544
  mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
50547
50545
  // traverseAllChildren used to do for objects as children
50548
50546
  escapedPrefix + ( // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
50549
50547
  mappedChild.key && (!_child || _child.key !== mappedChild.key) ? // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
50550
- // eslint-disable-next-line react-internal/safe-string-coercion
50551
50548
  escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey);
50552
50549
  }
50553
50550
 
@@ -50563,7 +50560,7 @@
50563
50560
 
50564
50561
  var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
50565
50562
 
50566
- if (isArray(children)) {
50563
+ if (Array.isArray(children)) {
50567
50564
  for (var i = 0; i < children.length; i++) {
50568
50565
  child = children[i];
50569
50566
  nextName = nextNamePrefix + getElementKey(child, i);
@@ -50596,9 +50593,13 @@
50596
50593
  subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
50597
50594
  }
50598
50595
  } else if (type === 'object') {
50599
- // eslint-disable-next-line react-internal/safe-string-coercion
50600
- var childrenString = String(children);
50601
- 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.');
50596
+ var childrenString = '' + children;
50597
+
50598
+ {
50599
+ {
50600
+ throw 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." );
50601
+ }
50602
+ }
50602
50603
  }
50603
50604
  }
50604
50605
 
@@ -50697,17 +50698,28 @@
50697
50698
 
50698
50699
  function onlyChild(children) {
50699
50700
  if (!isValidElement(children)) {
50700
- throw new Error('React.Children.only expected to receive a single React element child.');
50701
+ {
50702
+ throw Error( "React.Children.only expected to receive a single React element child." );
50703
+ }
50701
50704
  }
50702
50705
 
50703
50706
  return children;
50704
50707
  }
50705
50708
 
50706
- function createContext(defaultValue) {
50707
- // TODO: Second argument used to be an optional `calculateChangedBits`
50708
- // function. Warn to reserve for future use?
50709
+ function createContext(defaultValue, calculateChangedBits) {
50710
+ if (calculateChangedBits === undefined) {
50711
+ calculateChangedBits = null;
50712
+ } else {
50713
+ {
50714
+ if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {
50715
+ error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);
50716
+ }
50717
+ }
50718
+ }
50719
+
50709
50720
  var context = {
50710
50721
  $$typeof: REACT_CONTEXT_TYPE,
50722
+ _calculateChangedBits: calculateChangedBits,
50711
50723
  // As a workaround to support multiple concurrent renderers, we categorize
50712
50724
  // some renderers as primary and others as secondary. We only expect
50713
50725
  // there to be two concurrent renderers at most: React Native (primary) and
@@ -50720,10 +50732,7 @@
50720
50732
  _threadCount: 0,
50721
50733
  // These are circular
50722
50734
  Provider: null,
50723
- Consumer: null,
50724
- // Add these to use same hidden class in VM as ServerContext
50725
- _defaultValue: null,
50726
- _globalName: null
50735
+ Consumer: null
50727
50736
  };
50728
50737
  context.Provider = {
50729
50738
  $$typeof: REACT_PROVIDER_TYPE,
@@ -50739,7 +50748,8 @@
50739
50748
  // warn for the incorrect usage of Context as a Consumer.
50740
50749
  var Consumer = {
50741
50750
  $$typeof: REACT_CONTEXT_TYPE,
50742
- _context: context
50751
+ _context: context,
50752
+ _calculateChangedBits: context._calculateChangedBits
50743
50753
  }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here
50744
50754
 
50745
50755
  Object.defineProperties(Consumer, {
@@ -50826,54 +50836,38 @@
50826
50836
  if (payload._status === Uninitialized) {
50827
50837
  var ctor = payload._result;
50828
50838
  var thenable = ctor(); // Transition to the next state.
50829
- // This might throw either because it's missing or throws. If so, we treat it
50830
- // as still uninitialized and try again next time. Which is the same as what
50831
- // happens if the ctor or any wrappers processing the ctor throws. This might
50832
- // end up fixing it if the resolution was a concurrency bug.
50833
50839
 
50840
+ var pending = payload;
50841
+ pending._status = Pending;
50842
+ pending._result = thenable;
50834
50843
  thenable.then(function (moduleObject) {
50835
- if (payload._status === Pending || payload._status === Uninitialized) {
50836
- // Transition to the next state.
50844
+ if (payload._status === Pending) {
50845
+ var defaultExport = moduleObject.default;
50846
+
50847
+ {
50848
+ if (defaultExport === undefined) {
50849
+ error('lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + // Break up imports to avoid accidentally parsing them as dependencies.
50850
+ 'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))", moduleObject);
50851
+ }
50852
+ } // Transition to the next state.
50853
+
50854
+
50837
50855
  var resolved = payload;
50838
50856
  resolved._status = Resolved;
50839
- resolved._result = moduleObject;
50857
+ resolved._result = defaultExport;
50840
50858
  }
50841
50859
  }, function (error) {
50842
- if (payload._status === Pending || payload._status === Uninitialized) {
50860
+ if (payload._status === Pending) {
50843
50861
  // Transition to the next state.
50844
50862
  var rejected = payload;
50845
50863
  rejected._status = Rejected;
50846
50864
  rejected._result = error;
50847
50865
  }
50848
50866
  });
50849
-
50850
- if (payload._status === Uninitialized) {
50851
- // In case, we're still uninitialized, then we're waiting for the thenable
50852
- // to resolve. Set it as pending in the meantime.
50853
- var pending = payload;
50854
- pending._status = Pending;
50855
- pending._result = thenable;
50856
- }
50857
50867
  }
50858
50868
 
50859
50869
  if (payload._status === Resolved) {
50860
- var moduleObject = payload._result;
50861
-
50862
- {
50863
- if (moduleObject === undefined) {
50864
- error('lazy: Expected the result of a dynamic imp' + 'ort() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + // Break up imports to avoid accidentally parsing them as dependencies.
50865
- 'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))\n\n" + 'Did you accidentally put curly braces around the import?', moduleObject);
50866
- }
50867
- }
50868
-
50869
- {
50870
- if (!('default' in moduleObject)) {
50871
- error('lazy: Expected the result of a dynamic imp' + 'ort() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + // Break up imports to avoid accidentally parsing them as dependencies.
50872
- 'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))", moduleObject);
50873
- }
50874
- }
50875
-
50876
- return moduleObject.default;
50870
+ return payload._result;
50877
50871
  } else {
50878
50872
  throw payload._result;
50879
50873
  }
@@ -50882,7 +50876,7 @@
50882
50876
  function lazy(ctor) {
50883
50877
  var payload = {
50884
50878
  // We use these fields to store the result.
50885
- _status: Uninitialized,
50879
+ _status: -1,
50886
50880
  _result: ctor
50887
50881
  };
50888
50882
  var lazyType = {
@@ -50968,15 +50962,9 @@
50968
50962
  return ownName;
50969
50963
  },
50970
50964
  set: function (name) {
50971
- ownName = name; // The inner component shouldn't inherit this display name in most cases,
50972
- // because the component may be used elsewhere.
50973
- // But it's nice for anonymous functions to inherit the name,
50974
- // so that our component-stack generation logic will display their frames.
50975
- // An anonymous function generally suggests a pattern like:
50976
- // React.forwardRef((props, ref) => {...});
50977
- // This kind of inner function is not used elsewhere so the side effect is okay.
50978
-
50979
- if (!render.name && !render.displayName) {
50965
+ ownName = name;
50966
+
50967
+ if (render.displayName == null) {
50980
50968
  render.displayName = name;
50981
50969
  }
50982
50970
  }
@@ -50986,11 +50974,9 @@
50986
50974
  return elementType;
50987
50975
  }
50988
50976
 
50989
- var REACT_MODULE_REFERENCE;
50977
+ // Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
50990
50978
 
50991
- {
50992
- REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
50993
- }
50979
+ var enableScopeAPI = false; // Experimental Create Event Handle API.
50994
50980
 
50995
50981
  function isValidElementType(type) {
50996
50982
  if (typeof type === 'string' || typeof type === 'function') {
@@ -50998,16 +50984,12 @@
50998
50984
  } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
50999
50985
 
51000
50986
 
51001
- 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 ) {
50987
+ if (type === exports.Fragment || type === exports.Profiler || type === REACT_DEBUG_TRACING_MODE_TYPE || type === exports.StrictMode || type === exports.Suspense || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI ) {
51002
50988
  return true;
51003
50989
  }
51004
50990
 
51005
50991
  if (typeof type === 'object' && type !== null) {
51006
- 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
51007
- // types supported by any Flight configuration anywhere since
51008
- // we don't know which Flight build this will end up being used
51009
- // with.
51010
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
50992
+ 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 || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
51011
50993
  return true;
51012
50994
  }
51013
50995
  }
@@ -51037,15 +51019,9 @@
51037
51019
  return ownName;
51038
51020
  },
51039
51021
  set: function (name) {
51040
- ownName = name; // The inner component shouldn't inherit this display name in most cases,
51041
- // because the component may be used elsewhere.
51042
- // But it's nice for anonymous functions to inherit the name,
51043
- // so that our component-stack generation logic will display their frames.
51044
- // An anonymous function generally suggests a pattern like:
51045
- // React.memo((props) => {...});
51046
- // This kind of inner function is not used elsewhere so the side effect is okay.
51047
-
51048
- if (!type.name && !type.displayName) {
51022
+ ownName = name;
51023
+
51024
+ if (type.displayName == null) {
51049
51025
  type.displayName = name;
51050
51026
  }
51051
51027
  }
@@ -51058,22 +51034,24 @@
51058
51034
  function resolveDispatcher() {
51059
51035
  var dispatcher = ReactCurrentDispatcher.current;
51060
51036
 
51061
- {
51062
- if (dispatcher === null) {
51063
- 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:\n' + '1. You might have mismatching versions of React and the renderer (such as React DOM)\n' + '2. You might be breaking the Rules of Hooks\n' + '3. You might have more than one copy of React in the same app\n' + 'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.');
51037
+ if (!(dispatcher !== null)) {
51038
+ {
51039
+ throw 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." );
51064
51040
  }
51065
- } // Will result in a null access error if accessed outside render phase. We
51066
- // intentionally don't throw our own error because this is in a hot path.
51067
- // Also helps ensure this is inlined.
51068
-
51041
+ }
51069
51042
 
51070
51043
  return dispatcher;
51071
51044
  }
51072
- function useContext(Context) {
51045
+
51046
+ function useContext(Context, unstable_observedBits) {
51073
51047
  var dispatcher = resolveDispatcher();
51074
51048
 
51075
51049
  {
51076
- // TODO: add a more generic warning for invalid values.
51050
+ if (unstable_observedBits !== undefined) {
51051
+ error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://reactjs.org/link/rules-of-hooks' : '');
51052
+ } // TODO: add a more generic warning for invalid values.
51053
+
51054
+
51077
51055
  if (Context._context !== undefined) {
51078
51056
  var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
51079
51057
  // and nobody should be using this in existing code.
@@ -51086,7 +51064,7 @@
51086
51064
  }
51087
51065
  }
51088
51066
 
51089
- return dispatcher.useContext(Context);
51067
+ return dispatcher.useContext(Context, unstable_observedBits);
51090
51068
  }
51091
51069
  function useState(initialState) {
51092
51070
  var dispatcher = resolveDispatcher();
@@ -51104,10 +51082,6 @@
51104
51082
  var dispatcher = resolveDispatcher();
51105
51083
  return dispatcher.useEffect(create, deps);
51106
51084
  }
51107
- function useInsertionEffect(create, deps) {
51108
- var dispatcher = resolveDispatcher();
51109
- return dispatcher.useInsertionEffect(create, deps);
51110
- }
51111
51085
  function useLayoutEffect(create, deps) {
51112
51086
  var dispatcher = resolveDispatcher();
51113
51087
  return dispatcher.useLayoutEffect(create, deps);
@@ -51130,22 +51104,6 @@
51130
51104
  return dispatcher.useDebugValue(value, formatterFn);
51131
51105
  }
51132
51106
  }
51133
- function useTransition() {
51134
- var dispatcher = resolveDispatcher();
51135
- return dispatcher.useTransition();
51136
- }
51137
- function useDeferredValue(value) {
51138
- var dispatcher = resolveDispatcher();
51139
- return dispatcher.useDeferredValue(value);
51140
- }
51141
- function useId() {
51142
- var dispatcher = resolveDispatcher();
51143
- return dispatcher.useId();
51144
- }
51145
- function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
51146
- var dispatcher = resolveDispatcher();
51147
- return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
51148
- }
51149
51107
 
51150
51108
  // Helpers to patch console.logs to avoid logging during side-effect free
51151
51109
  // replaying on render function. This currently only patches the object
@@ -51210,25 +51168,25 @@
51210
51168
  }; // $FlowFixMe Flow thinks console is immutable.
51211
51169
 
51212
51170
  Object.defineProperties(console, {
51213
- log: assign({}, props, {
51171
+ log: _assign({}, props, {
51214
51172
  value: prevLog
51215
51173
  }),
51216
- info: assign({}, props, {
51174
+ info: _assign({}, props, {
51217
51175
  value: prevInfo
51218
51176
  }),
51219
- warn: assign({}, props, {
51177
+ warn: _assign({}, props, {
51220
51178
  value: prevWarn
51221
51179
  }),
51222
- error: assign({}, props, {
51180
+ error: _assign({}, props, {
51223
51181
  value: prevError
51224
51182
  }),
51225
- group: assign({}, props, {
51183
+ group: _assign({}, props, {
51226
51184
  value: prevGroup
51227
51185
  }),
51228
- groupCollapsed: assign({}, props, {
51186
+ groupCollapsed: _assign({}, props, {
51229
51187
  value: prevGroupCollapsed
51230
51188
  }),
51231
- groupEnd: assign({}, props, {
51189
+ groupEnd: _assign({}, props, {
51232
51190
  value: prevGroupEnd
51233
51191
  })
51234
51192
  });
@@ -51269,7 +51227,7 @@
51269
51227
 
51270
51228
  function describeNativeComponentFrame(fn, construct) {
51271
51229
  // If something asked for a stack inside a fake render, it should get ignored.
51272
- if ( !fn || reentry) {
51230
+ if (!fn || reentry) {
51273
51231
  return '';
51274
51232
  }
51275
51233
 
@@ -51378,14 +51336,7 @@
51378
51336
 
51379
51337
  if (c < 0 || sampleLines[s] !== controlLines[c]) {
51380
51338
  // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
51381
- var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
51382
- // but we have a user-provided "displayName"
51383
- // splice it in to make the stack more readable.
51384
-
51385
-
51386
- if (fn.displayName && _frame.includes('<anonymous>')) {
51387
- _frame = _frame.replace('<anonymous>', fn.displayName);
51388
- }
51339
+ var _frame = '\n' + sampleLines[s].replace(' at new ', ' at ');
51389
51340
 
51390
51341
  {
51391
51342
  if (typeof fn === 'function') {
@@ -51454,7 +51405,7 @@
51454
51405
  }
51455
51406
 
51456
51407
  switch (type) {
51457
- case REACT_SUSPENSE_TYPE:
51408
+ case exports.Suspense:
51458
51409
  return describeBuiltInComponentFrame('Suspense');
51459
51410
 
51460
51411
  case REACT_SUSPENSE_LIST_TYPE:
@@ -51470,6 +51421,9 @@
51470
51421
  // Memo may contain any component type so we recursively resolve it.
51471
51422
  return describeUnknownElementTypeFrameInDEV(type.type);
51472
51423
 
51424
+ case REACT_BLOCK_TYPE:
51425
+ return describeFunctionComponentFrame(type._render);
51426
+
51473
51427
  case REACT_LAZY_TYPE:
51474
51428
  {
51475
51429
  var lazyComponent = type;
@@ -51504,7 +51458,7 @@
51504
51458
  function checkPropTypes(typeSpecs, values, location, componentName, element) {
51505
51459
  {
51506
51460
  // $FlowFixMe This is okay but Flow doesn't know it.
51507
- var has = Function.call.bind(hasOwnProperty);
51461
+ var has = Function.call.bind(Object.prototype.hasOwnProperty);
51508
51462
 
51509
51463
  for (var typeSpecName in typeSpecs) {
51510
51464
  if (has(typeSpecs, typeSpecName)) {
@@ -51516,7 +51470,6 @@
51516
51470
  // This is intentionally an invariant that gets caught. It's the same
51517
51471
  // behavior as without this statement except with a better message.
51518
51472
  if (typeof typeSpecs[typeSpecName] !== 'function') {
51519
- // eslint-disable-next-line react-internal/prod-error-codes
51520
51473
  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`.');
51521
51474
  err.name = 'Invariant Violation';
51522
51475
  throw err;
@@ -51569,7 +51522,7 @@
51569
51522
 
51570
51523
  function getDeclarationErrorAddendum() {
51571
51524
  if (ReactCurrentOwner.current) {
51572
- var name = getComponentNameFromType(ReactCurrentOwner.current.type);
51525
+ var name = getComponentName(ReactCurrentOwner.current.type);
51573
51526
 
51574
51527
  if (name) {
51575
51528
  return '\n\nCheck the render method of `' + name + '`.';
@@ -51651,7 +51604,7 @@
51651
51604
 
51652
51605
  if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
51653
51606
  // Give the component that originally created this child.
51654
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
51607
+ childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
51655
51608
  }
51656
51609
 
51657
51610
  {
@@ -51678,7 +51631,7 @@
51678
51631
  return;
51679
51632
  }
51680
51633
 
51681
- if (isArray(node)) {
51634
+ if (Array.isArray(node)) {
51682
51635
  for (var i = 0; i < node.length; i++) {
51683
51636
  var child = node[i];
51684
51637
 
@@ -51740,12 +51693,12 @@
51740
51693
 
51741
51694
  if (propTypes) {
51742
51695
  // Intentionally inside to avoid triggering lazy initializers:
51743
- var name = getComponentNameFromType(type);
51696
+ var name = getComponentName(type);
51744
51697
  checkPropTypes(propTypes, element.props, 'prop', name, element);
51745
51698
  } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
51746
51699
  propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
51747
51700
 
51748
- var _name = getComponentNameFromType(type);
51701
+ var _name = getComponentName(type);
51749
51702
 
51750
51703
  error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
51751
51704
  }
@@ -51810,10 +51763,10 @@
51810
51763
 
51811
51764
  if (type === null) {
51812
51765
  typeString = 'null';
51813
- } else if (isArray(type)) {
51766
+ } else if (Array.isArray(type)) {
51814
51767
  typeString = 'array';
51815
51768
  } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
51816
- typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
51769
+ typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
51817
51770
  info = ' Did you accidentally export a JSX literal instead of a component?';
51818
51771
  } else {
51819
51772
  typeString = typeof type;
@@ -51842,7 +51795,7 @@
51842
51795
  }
51843
51796
  }
51844
51797
 
51845
- if (type === REACT_FRAGMENT_TYPE) {
51798
+ if (type === exports.Fragment) {
51846
51799
  validateFragmentProps(element);
51847
51800
  } else {
51848
51801
  validatePropTypes(element);
@@ -51889,263 +51842,12 @@
51889
51842
  return newElement;
51890
51843
  }
51891
51844
 
51892
- function startTransition(scope, options) {
51893
- var prevTransition = ReactCurrentBatchConfig.transition;
51894
- ReactCurrentBatchConfig.transition = {};
51895
- var currentTransition = ReactCurrentBatchConfig.transition;
51896
-
51897
- {
51898
- ReactCurrentBatchConfig.transition._updatedFibers = new Set();
51899
- }
51845
+ {
51900
51846
 
51901
51847
  try {
51902
- scope();
51903
- } finally {
51904
- ReactCurrentBatchConfig.transition = prevTransition;
51905
-
51906
- {
51907
- if (prevTransition === null && currentTransition._updatedFibers) {
51908
- var updatedFibersCount = currentTransition._updatedFibers.size;
51909
-
51910
- if (updatedFibersCount > 10) {
51911
- 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.');
51912
- }
51913
-
51914
- currentTransition._updatedFibers.clear();
51915
- }
51916
- }
51917
- }
51918
- }
51919
-
51920
- var didWarnAboutMessageChannel = false;
51921
- var enqueueTaskImpl = null;
51922
- function enqueueTask(task) {
51923
- if (enqueueTaskImpl === null) {
51924
- try {
51925
- // read require off the module object to get around the bundlers.
51926
- // we don't want them to detect a require and bundle a Node polyfill.
51927
- var requireString = ('require' + Math.random()).slice(0, 7);
51928
- var nodeRequire = module && module[requireString]; // assuming we're in node, let's try to get node's
51929
- // version of setImmediate, bypassing fake timers if any.
51930
-
51931
- enqueueTaskImpl = nodeRequire.call(module, 'timers').setImmediate;
51932
- } catch (_err) {
51933
- // we're in a browser
51934
- // we can't use regular timers because they may still be faked
51935
- // so we try MessageChannel+postMessage instead
51936
- enqueueTaskImpl = function (callback) {
51937
- {
51938
- if (didWarnAboutMessageChannel === false) {
51939
- didWarnAboutMessageChannel = true;
51940
-
51941
- if (typeof MessageChannel === 'undefined') {
51942
- 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.');
51943
- }
51944
- }
51945
- }
51946
-
51947
- var channel = new MessageChannel();
51948
- channel.port1.onmessage = callback;
51949
- channel.port2.postMessage(undefined);
51950
- };
51951
- }
51952
- }
51953
-
51954
- return enqueueTaskImpl(task);
51955
- }
51956
-
51957
- var actScopeDepth = 0;
51958
- var didWarnNoAwaitAct = false;
51959
- function act(callback) {
51960
- {
51961
- // `act` calls can be nested, so we track the depth. This represents the
51962
- // number of `act` scopes on the stack.
51963
- var prevActScopeDepth = actScopeDepth;
51964
- actScopeDepth++;
51965
-
51966
- if (ReactCurrentActQueue.current === null) {
51967
- // This is the outermost `act` scope. Initialize the queue. The reconciler
51968
- // will detect the queue and use it instead of Scheduler.
51969
- ReactCurrentActQueue.current = [];
51970
- }
51971
-
51972
- var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
51973
- var result;
51974
-
51975
- try {
51976
- // Used to reproduce behavior of `batchedUpdates` in legacy mode. Only
51977
- // set to `true` while the given callback is executed, not for updates
51978
- // triggered during an async event, because this is how the legacy
51979
- // implementation of `act` behaved.
51980
- ReactCurrentActQueue.isBatchingLegacy = true;
51981
- result = callback(); // Replicate behavior of original `act` implementation in legacy mode,
51982
- // which flushed updates immediately after the scope function exits, even
51983
- // if it's an async function.
51984
-
51985
- if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
51986
- var queue = ReactCurrentActQueue.current;
51987
-
51988
- if (queue !== null) {
51989
- ReactCurrentActQueue.didScheduleLegacyUpdate = false;
51990
- flushActQueue(queue);
51991
- }
51992
- }
51993
- } catch (error) {
51994
- popActScope(prevActScopeDepth);
51995
- throw error;
51996
- } finally {
51997
- ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
51998
- }
51999
-
52000
- if (result !== null && typeof result === 'object' && typeof result.then === 'function') {
52001
- var thenableResult = result; // The callback is an async function (i.e. returned a promise). Wait
52002
- // for it to resolve before exiting the current scope.
52003
-
52004
- var wasAwaited = false;
52005
- var thenable = {
52006
- then: function (resolve, reject) {
52007
- wasAwaited = true;
52008
- thenableResult.then(function (returnValue) {
52009
- popActScope(prevActScopeDepth);
52010
-
52011
- if (actScopeDepth === 0) {
52012
- // We've exited the outermost act scope. Recursively flush the
52013
- // queue until there's no remaining work.
52014
- recursivelyFlushAsyncActWork(returnValue, resolve, reject);
52015
- } else {
52016
- resolve(returnValue);
52017
- }
52018
- }, function (error) {
52019
- // The callback threw an error.
52020
- popActScope(prevActScopeDepth);
52021
- reject(error);
52022
- });
52023
- }
52024
- };
52025
-
52026
- {
52027
- if (!didWarnNoAwaitAct && typeof Promise !== 'undefined') {
52028
- // eslint-disable-next-line no-undef
52029
- Promise.resolve().then(function () {}).then(function () {
52030
- if (!wasAwaited) {
52031
- didWarnNoAwaitAct = true;
52032
-
52033
- 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 () => ...);');
52034
- }
52035
- });
52036
- }
52037
- }
52038
-
52039
- return thenable;
52040
- } else {
52041
- var returnValue = result; // The callback is not an async function. Exit the current scope
52042
- // immediately, without awaiting.
52043
-
52044
- popActScope(prevActScopeDepth);
52045
-
52046
- if (actScopeDepth === 0) {
52047
- // Exiting the outermost act scope. Flush the queue.
52048
- var _queue = ReactCurrentActQueue.current;
52049
-
52050
- if (_queue !== null) {
52051
- flushActQueue(_queue);
52052
- ReactCurrentActQueue.current = null;
52053
- } // Return a thenable. If the user awaits it, we'll flush again in
52054
- // case additional work was scheduled by a microtask.
52055
-
52056
-
52057
- var _thenable = {
52058
- then: function (resolve, reject) {
52059
- // Confirm we haven't re-entered another `act` scope, in case
52060
- // the user does something weird like await the thenable
52061
- // multiple times.
52062
- if (ReactCurrentActQueue.current === null) {
52063
- // Recursively flush the queue until there's no remaining work.
52064
- ReactCurrentActQueue.current = [];
52065
- recursivelyFlushAsyncActWork(returnValue, resolve, reject);
52066
- } else {
52067
- resolve(returnValue);
52068
- }
52069
- }
52070
- };
52071
- return _thenable;
52072
- } else {
52073
- // Since we're inside a nested `act` scope, the returned thenable
52074
- // immediately resolves. The outer scope will flush the queue.
52075
- var _thenable2 = {
52076
- then: function (resolve, reject) {
52077
- resolve(returnValue);
52078
- }
52079
- };
52080
- return _thenable2;
52081
- }
52082
- }
52083
- }
52084
- }
52085
-
52086
- function popActScope(prevActScopeDepth) {
52087
- {
52088
- if (prevActScopeDepth !== actScopeDepth - 1) {
52089
- error('You seem to have overlapping act() calls, this is not supported. ' + 'Be sure to await previous act() calls before making a new one. ');
52090
- }
52091
-
52092
- actScopeDepth = prevActScopeDepth;
52093
- }
52094
- }
52095
-
52096
- function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
52097
- {
52098
- var queue = ReactCurrentActQueue.current;
52099
-
52100
- if (queue !== null) {
52101
- try {
52102
- flushActQueue(queue);
52103
- enqueueTask(function () {
52104
- if (queue.length === 0) {
52105
- // No additional work was scheduled. Finish.
52106
- ReactCurrentActQueue.current = null;
52107
- resolve(returnValue);
52108
- } else {
52109
- // Keep flushing work until there's none left.
52110
- recursivelyFlushAsyncActWork(returnValue, resolve, reject);
52111
- }
52112
- });
52113
- } catch (error) {
52114
- reject(error);
52115
- }
52116
- } else {
52117
- resolve(returnValue);
52118
- }
52119
- }
52120
- }
52121
-
52122
- var isFlushing = false;
52123
-
52124
- function flushActQueue(queue) {
52125
- {
52126
- if (!isFlushing) {
52127
- // Prevent re-entrance.
52128
- isFlushing = true;
52129
- var i = 0;
52130
-
52131
- try {
52132
- for (; i < queue.length; i++) {
52133
- var callback = queue[i];
52134
-
52135
- do {
52136
- callback = callback(true);
52137
- } while (callback !== null);
52138
- }
52139
-
52140
- queue.length = 0;
52141
- } catch (error) {
52142
- // If something throws, leave the remaining callbacks on the queue.
52143
- queue = queue.slice(i + 1);
52144
- throw error;
52145
- } finally {
52146
- isFlushing = false;
52147
- }
52148
- }
51848
+ Object.freeze({});
51849
+ /* eslint-enable no-new */
51850
+ } catch (e) {
52149
51851
  }
52150
51852
  }
52151
51853
 
@@ -52162,11 +51864,7 @@
52162
51864
 
52163
51865
  exports.Children = Children;
52164
51866
  exports.Component = Component;
52165
- exports.Fragment = REACT_FRAGMENT_TYPE;
52166
- exports.Profiler = REACT_PROFILER_TYPE;
52167
51867
  exports.PureComponent = PureComponent;
52168
- exports.StrictMode = REACT_STRICT_MODE_TYPE;
52169
- exports.Suspense = REACT_SUSPENSE_TYPE;
52170
51868
  exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
52171
51869
  exports.cloneElement = cloneElement$1;
52172
51870
  exports.createContext = createContext;
@@ -52177,33 +51875,17 @@
52177
51875
  exports.isValidElement = isValidElement;
52178
51876
  exports.lazy = lazy;
52179
51877
  exports.memo = memo;
52180
- exports.startTransition = startTransition;
52181
- exports.unstable_act = act;
52182
51878
  exports.useCallback = useCallback;
52183
51879
  exports.useContext = useContext;
52184
51880
  exports.useDebugValue = useDebugValue;
52185
- exports.useDeferredValue = useDeferredValue;
52186
51881
  exports.useEffect = useEffect;
52187
- exports.useId = useId;
52188
51882
  exports.useImperativeHandle = useImperativeHandle;
52189
- exports.useInsertionEffect = useInsertionEffect;
52190
51883
  exports.useLayoutEffect = useLayoutEffect;
52191
51884
  exports.useMemo = useMemo;
52192
51885
  exports.useReducer = useReducer;
52193
51886
  exports.useRef = useRef;
52194
51887
  exports.useState = useState;
52195
- exports.useSyncExternalStore = useSyncExternalStore;
52196
- exports.useTransition = useTransition;
52197
51888
  exports.version = ReactVersion;
52198
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
52199
- if (
52200
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
52201
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
52202
- 'function'
52203
- ) {
52204
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
52205
- }
52206
-
52207
51889
  })();
52208
51890
  }
52209
51891
  });