@hot-updater/react-native 0.12.3 → 0.12.5

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/dist/index.js CHANGED
@@ -1,1568 +1,5 @@
1
- /*! For license information please see index.js.LICENSE.txt */
2
1
  "use strict";
3
2
  var __webpack_modules__ = {
4
- "../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js": function(module, exports1, __webpack_require__) {
5
- module = __webpack_require__.nmd(module);
6
- /**
7
- * @license React
8
- * react.development.js
9
- *
10
- * Copyright (c) Facebook, Inc. and its affiliates.
11
- *
12
- * This source code is licensed under the MIT license found in the
13
- * LICENSE file in the root directory of this source tree.
14
- */ if ("production" !== process.env.NODE_ENV) (function() {
15
- 'use strict';
16
- if ('undefined' != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && 'function' == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart) __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
17
- var ReactVersion = '18.3.1';
18
- var REACT_ELEMENT_TYPE = Symbol.for('react.element');
19
- var REACT_PORTAL_TYPE = Symbol.for('react.portal');
20
- var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
21
- var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
22
- var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
23
- var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
24
- var REACT_CONTEXT_TYPE = Symbol.for('react.context');
25
- var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
26
- var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
27
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
28
- var REACT_MEMO_TYPE = Symbol.for('react.memo');
29
- var REACT_LAZY_TYPE = Symbol.for('react.lazy');
30
- var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
31
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
32
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
33
- function getIteratorFn(maybeIterable) {
34
- if (null === maybeIterable || 'object' != typeof maybeIterable) return null;
35
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
36
- if ('function' == typeof maybeIterator) return maybeIterator;
37
- return null;
38
- }
39
- var ReactCurrentDispatcher = {
40
- current: null
41
- };
42
- var ReactCurrentBatchConfig = {
43
- transition: null
44
- };
45
- var ReactCurrentActQueue = {
46
- current: null,
47
- isBatchingLegacy: false,
48
- didScheduleLegacyUpdate: false
49
- };
50
- var ReactCurrentOwner = {
51
- current: null
52
- };
53
- var ReactDebugCurrentFrame = {};
54
- var currentExtraStackFrame = null;
55
- function setExtraStackFrame(stack) {
56
- currentExtraStackFrame = stack;
57
- }
58
- ReactDebugCurrentFrame.setExtraStackFrame = function(stack) {
59
- currentExtraStackFrame = stack;
60
- };
61
- ReactDebugCurrentFrame.getCurrentStack = null;
62
- ReactDebugCurrentFrame.getStackAddendum = function() {
63
- var stack = '';
64
- if (currentExtraStackFrame) stack += currentExtraStackFrame;
65
- var impl = ReactDebugCurrentFrame.getCurrentStack;
66
- if (impl) stack += impl() || '';
67
- return stack;
68
- };
69
- var enableScopeAPI = false;
70
- var enableCacheElement = false;
71
- var enableTransitionTracing = false;
72
- var enableLegacyHidden = false;
73
- var enableDebugTracing = false;
74
- var ReactSharedInternals = {
75
- ReactCurrentDispatcher: ReactCurrentDispatcher,
76
- ReactCurrentBatchConfig: ReactCurrentBatchConfig,
77
- ReactCurrentOwner: ReactCurrentOwner
78
- };
79
- ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
80
- ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
81
- function warn(format) {
82
- for(var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)args[_key - 1] = arguments[_key];
83
- printWarning('warn', format, args);
84
- }
85
- function error(format) {
86
- for(var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++)args[_key2 - 1] = arguments[_key2];
87
- printWarning('error', format, args);
88
- }
89
- function printWarning(level, format, args) {
90
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
91
- var stack = ReactDebugCurrentFrame.getStackAddendum();
92
- if ('' !== stack) {
93
- format += '%s';
94
- args = args.concat([
95
- stack
96
- ]);
97
- }
98
- var argsWithFormat = args.map(function(item) {
99
- return String(item);
100
- });
101
- argsWithFormat.unshift('Warning: ' + format);
102
- Function.prototype.apply.call(console[level], console, argsWithFormat);
103
- }
104
- var didWarnStateUpdateForUnmountedComponent = {};
105
- function warnNoop(publicInstance, callerName) {
106
- var _constructor = publicInstance.constructor;
107
- var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
108
- var warningKey = componentName + "." + callerName;
109
- if (didWarnStateUpdateForUnmountedComponent[warningKey]) return;
110
- 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);
111
- didWarnStateUpdateForUnmountedComponent[warningKey] = true;
112
- }
113
- var ReactNoopUpdateQueue = {
114
- isMounted: function(publicInstance) {
115
- return false;
116
- },
117
- enqueueForceUpdate: function(publicInstance, callback, callerName) {
118
- warnNoop(publicInstance, 'forceUpdate');
119
- },
120
- enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
121
- warnNoop(publicInstance, 'replaceState');
122
- },
123
- enqueueSetState: function(publicInstance, partialState, callback, callerName) {
124
- warnNoop(publicInstance, 'setState');
125
- }
126
- };
127
- var assign = Object.assign;
128
- var emptyObject = {};
129
- Object.freeze(emptyObject);
130
- function Component(props, context, updater) {
131
- this.props = props;
132
- this.context = context;
133
- this.refs = emptyObject;
134
- this.updater = updater || ReactNoopUpdateQueue;
135
- }
136
- Component.prototype.isReactComponent = {};
137
- Component.prototype.setState = function(partialState, callback) {
138
- if ('object' != typeof partialState && 'function' != typeof partialState && null != partialState) throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
139
- this.updater.enqueueSetState(this, partialState, callback, 'setState');
140
- };
141
- Component.prototype.forceUpdate = function(callback) {
142
- this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
143
- };
144
- var deprecatedAPIs = {
145
- isMounted: [
146
- 'isMounted',
147
- "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
148
- ],
149
- replaceState: [
150
- 'replaceState',
151
- "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
152
- ]
153
- };
154
- var defineDeprecationWarning = function(methodName, info) {
155
- Object.defineProperty(Component.prototype, methodName, {
156
- get: function() {
157
- warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
158
- }
159
- });
160
- };
161
- for(var fnName in deprecatedAPIs)if (deprecatedAPIs.hasOwnProperty(fnName)) defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
162
- function ComponentDummy() {}
163
- ComponentDummy.prototype = Component.prototype;
164
- function PureComponent(props, context, updater) {
165
- this.props = props;
166
- this.context = context;
167
- this.refs = emptyObject;
168
- this.updater = updater || ReactNoopUpdateQueue;
169
- }
170
- var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
171
- pureComponentPrototype.constructor = PureComponent;
172
- assign(pureComponentPrototype, Component.prototype);
173
- pureComponentPrototype.isPureReactComponent = true;
174
- function createRef() {
175
- var refObject = {
176
- current: null
177
- };
178
- Object.seal(refObject);
179
- return refObject;
180
- }
181
- var isArrayImpl = Array.isArray;
182
- function isArray(a) {
183
- return isArrayImpl(a);
184
- }
185
- function typeName(value) {
186
- var hasToStringTag = 'function' == typeof Symbol && Symbol.toStringTag;
187
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
188
- return type;
189
- }
190
- function willCoercionThrow(value) {
191
- try {
192
- testStringCoercion(value);
193
- return false;
194
- } catch (e) {
195
- return true;
196
- }
197
- }
198
- function testStringCoercion(value) {
199
- return '' + value;
200
- }
201
- function checkKeyStringCoercion(value) {
202
- if (willCoercionThrow(value)) {
203
- error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
204
- return testStringCoercion(value);
205
- }
206
- }
207
- function getWrappedName(outerType, innerType, wrapperName) {
208
- var displayName = outerType.displayName;
209
- if (displayName) return displayName;
210
- var functionName = innerType.displayName || innerType.name || '';
211
- return '' !== functionName ? wrapperName + "(" + functionName + ")" : wrapperName;
212
- }
213
- function getContextName(type) {
214
- return type.displayName || 'Context';
215
- }
216
- function getComponentNameFromType(type) {
217
- if (null == type) return null;
218
- if ('number' == typeof type.tag) error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
219
- if ('function' == typeof type) return type.displayName || type.name || null;
220
- if ('string' == typeof type) return type;
221
- switch(type){
222
- case REACT_FRAGMENT_TYPE:
223
- return 'Fragment';
224
- case REACT_PORTAL_TYPE:
225
- return 'Portal';
226
- case REACT_PROFILER_TYPE:
227
- return 'Profiler';
228
- case REACT_STRICT_MODE_TYPE:
229
- return 'StrictMode';
230
- case REACT_SUSPENSE_TYPE:
231
- return 'Suspense';
232
- case REACT_SUSPENSE_LIST_TYPE:
233
- return 'SuspenseList';
234
- }
235
- if ('object' == typeof type) switch(type.$$typeof){
236
- case REACT_CONTEXT_TYPE:
237
- var context = type;
238
- return getContextName(context) + '.Consumer';
239
- case REACT_PROVIDER_TYPE:
240
- var provider = type;
241
- return getContextName(provider._context) + '.Provider';
242
- case REACT_FORWARD_REF_TYPE:
243
- return getWrappedName(type, type.render, 'ForwardRef');
244
- case REACT_MEMO_TYPE:
245
- var outerName = type.displayName || null;
246
- if (null !== outerName) return outerName;
247
- return getComponentNameFromType(type.type) || 'Memo';
248
- case REACT_LAZY_TYPE:
249
- var lazyComponent = type;
250
- var payload = lazyComponent._payload;
251
- var init = lazyComponent._init;
252
- try {
253
- return getComponentNameFromType(init(payload));
254
- } catch (x) {
255
- break;
256
- }
257
- }
258
- return null;
259
- }
260
- var hasOwnProperty = Object.prototype.hasOwnProperty;
261
- var RESERVED_PROPS = {
262
- key: true,
263
- ref: true,
264
- __self: true,
265
- __source: true
266
- };
267
- var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
268
- didWarnAboutStringRefs = {};
269
- function hasValidRef(config) {
270
- if (hasOwnProperty.call(config, 'ref')) {
271
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
272
- if (getter && getter.isReactWarning) return false;
273
- }
274
- return void 0 !== config.ref;
275
- }
276
- function hasValidKey(config) {
277
- if (hasOwnProperty.call(config, 'key')) {
278
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
279
- if (getter && getter.isReactWarning) return false;
280
- }
281
- return void 0 !== config.key;
282
- }
283
- function defineKeyPropWarningGetter(props, displayName) {
284
- var warnAboutAccessingKey = function() {
285
- if (!specialPropKeyWarningShown) {
286
- specialPropKeyWarningShown = true;
287
- 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);
288
- }
289
- };
290
- warnAboutAccessingKey.isReactWarning = true;
291
- Object.defineProperty(props, 'key', {
292
- get: warnAboutAccessingKey,
293
- configurable: true
294
- });
295
- }
296
- function defineRefPropWarningGetter(props, displayName) {
297
- var warnAboutAccessingRef = function() {
298
- if (!specialPropRefWarningShown) {
299
- specialPropRefWarningShown = true;
300
- 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);
301
- }
302
- };
303
- warnAboutAccessingRef.isReactWarning = true;
304
- Object.defineProperty(props, 'ref', {
305
- get: warnAboutAccessingRef,
306
- configurable: true
307
- });
308
- }
309
- function warnIfStringRefCannotBeAutoConverted(config) {
310
- if ('string' == typeof config.ref && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
311
- var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
312
- if (!didWarnAboutStringRefs[componentName]) {
313
- 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);
314
- didWarnAboutStringRefs[componentName] = true;
315
- }
316
- }
317
- }
318
- var ReactElement = function(type, key, ref, self, source, owner, props) {
319
- var element = {
320
- $$typeof: REACT_ELEMENT_TYPE,
321
- type: type,
322
- key: key,
323
- ref: ref,
324
- props: props,
325
- _owner: owner
326
- };
327
- element._store = {};
328
- Object.defineProperty(element._store, 'validated', {
329
- configurable: false,
330
- enumerable: false,
331
- writable: true,
332
- value: false
333
- });
334
- Object.defineProperty(element, '_self', {
335
- configurable: false,
336
- enumerable: false,
337
- writable: false,
338
- value: self
339
- });
340
- Object.defineProperty(element, '_source', {
341
- configurable: false,
342
- enumerable: false,
343
- writable: false,
344
- value: source
345
- });
346
- if (Object.freeze) {
347
- Object.freeze(element.props);
348
- Object.freeze(element);
349
- }
350
- return element;
351
- };
352
- function createElement(type, config, children) {
353
- var propName;
354
- var props = {};
355
- var key = null;
356
- var ref = null;
357
- var self = null;
358
- var source = null;
359
- if (null != config) {
360
- if (hasValidRef(config)) {
361
- ref = config.ref;
362
- warnIfStringRefCannotBeAutoConverted(config);
363
- }
364
- if (hasValidKey(config)) {
365
- checkKeyStringCoercion(config.key);
366
- key = '' + config.key;
367
- }
368
- self = void 0 === config.__self ? null : config.__self;
369
- source = void 0 === config.__source ? null : config.__source;
370
- for(propName in config)if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) props[propName] = config[propName];
371
- }
372
- var childrenLength = arguments.length - 2;
373
- if (1 === childrenLength) props.children = children;
374
- else if (childrenLength > 1) {
375
- var childArray = Array(childrenLength);
376
- for(var i = 0; i < childrenLength; i++)childArray[i] = arguments[i + 2];
377
- if (Object.freeze) Object.freeze(childArray);
378
- props.children = childArray;
379
- }
380
- if (type && type.defaultProps) {
381
- var defaultProps = type.defaultProps;
382
- for(propName in defaultProps)if (void 0 === props[propName]) props[propName] = defaultProps[propName];
383
- }
384
- if (key || ref) {
385
- var displayName = 'function' == typeof type ? type.displayName || type.name || 'Unknown' : type;
386
- if (key) defineKeyPropWarningGetter(props, displayName);
387
- if (ref) defineRefPropWarningGetter(props, displayName);
388
- }
389
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
390
- }
391
- function cloneAndReplaceKey(oldElement, newKey) {
392
- var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
393
- return newElement;
394
- }
395
- function cloneElement(element, config, children) {
396
- if (null == element) throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
397
- var propName;
398
- var props = assign({}, element.props);
399
- var key = element.key;
400
- var ref = element.ref;
401
- var self = element._self;
402
- var source = element._source;
403
- var owner = element._owner;
404
- if (null != config) {
405
- if (hasValidRef(config)) {
406
- ref = config.ref;
407
- owner = ReactCurrentOwner.current;
408
- }
409
- if (hasValidKey(config)) {
410
- checkKeyStringCoercion(config.key);
411
- key = '' + config.key;
412
- }
413
- var defaultProps;
414
- if (element.type && element.type.defaultProps) defaultProps = element.type.defaultProps;
415
- for(propName in config)if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
416
- if (void 0 === config[propName] && void 0 !== defaultProps) props[propName] = defaultProps[propName];
417
- else props[propName] = config[propName];
418
- }
419
- }
420
- var childrenLength = arguments.length - 2;
421
- if (1 === childrenLength) props.children = children;
422
- else if (childrenLength > 1) {
423
- var childArray = Array(childrenLength);
424
- for(var i = 0; i < childrenLength; i++)childArray[i] = arguments[i + 2];
425
- props.children = childArray;
426
- }
427
- return ReactElement(element.type, key, ref, self, source, owner, props);
428
- }
429
- function isValidElement(object) {
430
- return 'object' == typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
431
- }
432
- var SEPARATOR = '.';
433
- var SUBSEPARATOR = ':';
434
- function escape(key) {
435
- var escapeRegex = /[=:]/g;
436
- var escaperLookup = {
437
- '=': '=0',
438
- ':': '=2'
439
- };
440
- var escapedString = key.replace(escapeRegex, function(match) {
441
- return escaperLookup[match];
442
- });
443
- return '$' + escapedString;
444
- }
445
- var didWarnAboutMaps = false;
446
- var userProvidedKeyEscapeRegex = /\/+/g;
447
- function escapeUserProvidedKey(text) {
448
- return text.replace(userProvidedKeyEscapeRegex, '$&/');
449
- }
450
- function getElementKey(element, index) {
451
- if ('object' == typeof element && null !== element && null != element.key) {
452
- checkKeyStringCoercion(element.key);
453
- return escape('' + element.key);
454
- }
455
- return index.toString(36);
456
- }
457
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
458
- var type = typeof children;
459
- if ('undefined' === type || 'boolean' === type) children = null;
460
- var invokeCallback = false;
461
- if (null === children) invokeCallback = true;
462
- else switch(type){
463
- case 'string':
464
- case 'number':
465
- invokeCallback = true;
466
- break;
467
- case 'object':
468
- switch(children.$$typeof){
469
- case REACT_ELEMENT_TYPE:
470
- case REACT_PORTAL_TYPE:
471
- invokeCallback = true;
472
- }
473
- }
474
- if (invokeCallback) {
475
- var _child = children;
476
- var mappedChild = callback(_child);
477
- var childKey = '' === nameSoFar ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
478
- if (isArray(mappedChild)) {
479
- var escapedChildKey = '';
480
- if (null != childKey) escapedChildKey = escapeUserProvidedKey(childKey) + '/';
481
- mapIntoArray(mappedChild, array, escapedChildKey, '', function(c) {
482
- return c;
483
- });
484
- } else if (null != mappedChild) {
485
- if (isValidElement(mappedChild)) {
486
- if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) checkKeyStringCoercion(mappedChild.key);
487
- mappedChild = cloneAndReplaceKey(mappedChild, escapedPrefix + (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey);
488
- }
489
- array.push(mappedChild);
490
- }
491
- return 1;
492
- }
493
- var child;
494
- var nextName;
495
- var subtreeCount = 0;
496
- var nextNamePrefix = '' === nameSoFar ? SEPARATOR : nameSoFar + SUBSEPARATOR;
497
- if (isArray(children)) for(var i = 0; i < children.length; i++){
498
- child = children[i];
499
- nextName = nextNamePrefix + getElementKey(child, i);
500
- subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
501
- }
502
- else {
503
- var iteratorFn = getIteratorFn(children);
504
- if ('function' == typeof iteratorFn) {
505
- var iterableChildren = children;
506
- if (iteratorFn === iterableChildren.entries) {
507
- if (!didWarnAboutMaps) warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");
508
- didWarnAboutMaps = true;
509
- }
510
- var iterator = iteratorFn.call(iterableChildren);
511
- var step;
512
- var ii = 0;
513
- while(!(step = iterator.next()).done){
514
- child = step.value;
515
- nextName = nextNamePrefix + getElementKey(child, ii++);
516
- subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
517
- }
518
- } else if ('object' === type) {
519
- var childrenString = String(children);
520
- throw new Error("Objects are not valid as a React child (found: " + ('[object Object]' === childrenString ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + "). If you meant to render a collection of children, use an array instead.");
521
- }
522
- }
523
- return subtreeCount;
524
- }
525
- function mapChildren(children, func, context) {
526
- if (null == children) return children;
527
- var result = [];
528
- var count = 0;
529
- mapIntoArray(children, result, '', '', function(child) {
530
- return func.call(context, child, count++);
531
- });
532
- return result;
533
- }
534
- function countChildren(children) {
535
- var n = 0;
536
- mapChildren(children, function() {
537
- n++;
538
- });
539
- return n;
540
- }
541
- function forEachChildren(children, forEachFunc, forEachContext) {
542
- mapChildren(children, function() {
543
- forEachFunc.apply(this, arguments);
544
- }, forEachContext);
545
- }
546
- function toArray(children) {
547
- return mapChildren(children, function(child) {
548
- return child;
549
- }) || [];
550
- }
551
- function onlyChild(children) {
552
- if (!isValidElement(children)) throw new Error('React.Children.only expected to receive a single React element child.');
553
- return children;
554
- }
555
- function createContext(defaultValue) {
556
- var context = {
557
- $$typeof: REACT_CONTEXT_TYPE,
558
- _currentValue: defaultValue,
559
- _currentValue2: defaultValue,
560
- _threadCount: 0,
561
- Provider: null,
562
- Consumer: null,
563
- _defaultValue: null,
564
- _globalName: null
565
- };
566
- context.Provider = {
567
- $$typeof: REACT_PROVIDER_TYPE,
568
- _context: context
569
- };
570
- var hasWarnedAboutUsingNestedContextConsumers = false;
571
- var hasWarnedAboutUsingConsumerProvider = false;
572
- var hasWarnedAboutDisplayNameOnConsumer = false;
573
- var Consumer = {
574
- $$typeof: REACT_CONTEXT_TYPE,
575
- _context: context
576
- };
577
- Object.defineProperties(Consumer, {
578
- Provider: {
579
- get: function() {
580
- if (!hasWarnedAboutUsingConsumerProvider) {
581
- hasWarnedAboutUsingConsumerProvider = true;
582
- 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?");
583
- }
584
- return context.Provider;
585
- },
586
- set: function(_Provider) {
587
- context.Provider = _Provider;
588
- }
589
- },
590
- _currentValue: {
591
- get: function() {
592
- return context._currentValue;
593
- },
594
- set: function(_currentValue) {
595
- context._currentValue = _currentValue;
596
- }
597
- },
598
- _currentValue2: {
599
- get: function() {
600
- return context._currentValue2;
601
- },
602
- set: function(_currentValue2) {
603
- context._currentValue2 = _currentValue2;
604
- }
605
- },
606
- _threadCount: {
607
- get: function() {
608
- return context._threadCount;
609
- },
610
- set: function(_threadCount) {
611
- context._threadCount = _threadCount;
612
- }
613
- },
614
- Consumer: {
615
- get: function() {
616
- if (!hasWarnedAboutUsingNestedContextConsumers) {
617
- hasWarnedAboutUsingNestedContextConsumers = true;
618
- 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?");
619
- }
620
- return context.Consumer;
621
- }
622
- },
623
- displayName: {
624
- get: function() {
625
- return context.displayName;
626
- },
627
- set: function(displayName) {
628
- if (!hasWarnedAboutDisplayNameOnConsumer) {
629
- warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName);
630
- hasWarnedAboutDisplayNameOnConsumer = true;
631
- }
632
- }
633
- }
634
- });
635
- context.Consumer = Consumer;
636
- context._currentRenderer = null;
637
- context._currentRenderer2 = null;
638
- return context;
639
- }
640
- var Uninitialized = -1;
641
- var Pending = 0;
642
- var Resolved = 1;
643
- var Rejected = 2;
644
- function lazyInitializer(payload) {
645
- if (payload._status === Uninitialized) {
646
- var ctor = payload._result;
647
- var thenable = ctor();
648
- thenable.then(function(moduleObject) {
649
- if (payload._status === Pending || payload._status === Uninitialized) {
650
- var resolved = payload;
651
- resolved._status = Resolved;
652
- resolved._result = moduleObject;
653
- }
654
- }, function(error) {
655
- if (payload._status === Pending || payload._status === Uninitialized) {
656
- var rejected = payload;
657
- rejected._status = Rejected;
658
- rejected._result = error;
659
- }
660
- });
661
- if (payload._status === Uninitialized) {
662
- var pending = payload;
663
- pending._status = Pending;
664
- pending._result = thenable;
665
- }
666
- }
667
- if (payload._status === Resolved) {
668
- var moduleObject = payload._result;
669
- if (void 0 === moduleObject) 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);
670
- if (!('default' in moduleObject)) 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);
671
- return moduleObject.default;
672
- }
673
- throw payload._result;
674
- }
675
- function lazy(ctor) {
676
- var payload = {
677
- _status: Uninitialized,
678
- _result: ctor
679
- };
680
- var lazyType = {
681
- $$typeof: REACT_LAZY_TYPE,
682
- _payload: payload,
683
- _init: lazyInitializer
684
- };
685
- var defaultProps;
686
- var propTypes;
687
- Object.defineProperties(lazyType, {
688
- defaultProps: {
689
- configurable: true,
690
- get: function() {
691
- return defaultProps;
692
- },
693
- set: function(newDefaultProps) {
694
- 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.");
695
- defaultProps = newDefaultProps;
696
- Object.defineProperty(lazyType, 'defaultProps', {
697
- enumerable: true
698
- });
699
- }
700
- },
701
- propTypes: {
702
- configurable: true,
703
- get: function() {
704
- return propTypes;
705
- },
706
- set: function(newPropTypes) {
707
- 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.");
708
- propTypes = newPropTypes;
709
- Object.defineProperty(lazyType, 'propTypes', {
710
- enumerable: true
711
- });
712
- }
713
- }
714
- });
715
- return lazyType;
716
- }
717
- function forwardRef(render) {
718
- if (null != render && render.$$typeof === REACT_MEMO_TYPE) error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
719
- else if ('function' != typeof render) error('forwardRef requires a render function but was given %s.', null === render ? 'null' : typeof render);
720
- else if (0 !== render.length && 2 !== render.length) error('forwardRef render functions accept exactly two parameters: props and ref. %s', 1 === render.length ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');
721
- if (null != render) {
722
- if (null != render.defaultProps || null != render.propTypes) error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
723
- }
724
- var elementType = {
725
- $$typeof: REACT_FORWARD_REF_TYPE,
726
- render: render
727
- };
728
- var ownName;
729
- Object.defineProperty(elementType, 'displayName', {
730
- enumerable: false,
731
- configurable: true,
732
- get: function() {
733
- return ownName;
734
- },
735
- set: function(name) {
736
- ownName = name;
737
- if (!render.name && !render.displayName) render.displayName = name;
738
- }
739
- });
740
- return elementType;
741
- }
742
- var REACT_MODULE_REFERENCE;
743
- REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
744
- function isValidElementType(type) {
745
- if ('string' == typeof type || 'function' == typeof type) return true;
746
- 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) return true;
747
- if ('object' == typeof type && null !== type) {
748
- 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_MODULE_REFERENCE || void 0 !== type.getModuleId) return true;
749
- }
750
- return false;
751
- }
752
- function memo(type, compare) {
753
- if (!isValidElementType(type)) error("memo: The first argument must be a component. Instead received: %s", null === type ? 'null' : typeof type);
754
- var elementType = {
755
- $$typeof: REACT_MEMO_TYPE,
756
- type: type,
757
- compare: void 0 === compare ? null : compare
758
- };
759
- var ownName;
760
- Object.defineProperty(elementType, 'displayName', {
761
- enumerable: false,
762
- configurable: true,
763
- get: function() {
764
- return ownName;
765
- },
766
- set: function(name) {
767
- ownName = name;
768
- if (!type.name && !type.displayName) type.displayName = name;
769
- }
770
- });
771
- return elementType;
772
- }
773
- function resolveDispatcher() {
774
- var dispatcher = ReactCurrentDispatcher.current;
775
- if (null === dispatcher) 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.");
776
- return dispatcher;
777
- }
778
- function useContext(Context) {
779
- var dispatcher = resolveDispatcher();
780
- if (void 0 !== Context._context) {
781
- var realContext = Context._context;
782
- if (realContext.Consumer === Context) 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?");
783
- else if (realContext.Provider === Context) error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
784
- }
785
- return dispatcher.useContext(Context);
786
- }
787
- function useState(initialState) {
788
- var dispatcher = resolveDispatcher();
789
- return dispatcher.useState(initialState);
790
- }
791
- function useReducer(reducer, initialArg, init) {
792
- var dispatcher = resolveDispatcher();
793
- return dispatcher.useReducer(reducer, initialArg, init);
794
- }
795
- function useRef(initialValue) {
796
- var dispatcher = resolveDispatcher();
797
- return dispatcher.useRef(initialValue);
798
- }
799
- function useEffect(create, deps) {
800
- var dispatcher = resolveDispatcher();
801
- return dispatcher.useEffect(create, deps);
802
- }
803
- function useInsertionEffect(create, deps) {
804
- var dispatcher = resolveDispatcher();
805
- return dispatcher.useInsertionEffect(create, deps);
806
- }
807
- function useLayoutEffect(create, deps) {
808
- var dispatcher = resolveDispatcher();
809
- return dispatcher.useLayoutEffect(create, deps);
810
- }
811
- function useCallback(callback, deps) {
812
- var dispatcher = resolveDispatcher();
813
- return dispatcher.useCallback(callback, deps);
814
- }
815
- function useMemo(create, deps) {
816
- var dispatcher = resolveDispatcher();
817
- return dispatcher.useMemo(create, deps);
818
- }
819
- function useImperativeHandle(ref, create, deps) {
820
- var dispatcher = resolveDispatcher();
821
- return dispatcher.useImperativeHandle(ref, create, deps);
822
- }
823
- function useDebugValue(value, formatterFn) {
824
- var dispatcher = resolveDispatcher();
825
- return dispatcher.useDebugValue(value, formatterFn);
826
- }
827
- function useTransition() {
828
- var dispatcher = resolveDispatcher();
829
- return dispatcher.useTransition();
830
- }
831
- function useDeferredValue(value) {
832
- var dispatcher = resolveDispatcher();
833
- return dispatcher.useDeferredValue(value);
834
- }
835
- function useId() {
836
- var dispatcher = resolveDispatcher();
837
- return dispatcher.useId();
838
- }
839
- function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
840
- var dispatcher = resolveDispatcher();
841
- return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
842
- }
843
- var disabledDepth = 0;
844
- var prevLog;
845
- var prevInfo;
846
- var prevWarn;
847
- var prevError;
848
- var prevGroup;
849
- var prevGroupCollapsed;
850
- var prevGroupEnd;
851
- function disabledLog() {}
852
- disabledLog.__reactDisabledLog = true;
853
- function disableLogs() {
854
- if (0 === disabledDepth) {
855
- prevLog = console.log;
856
- prevInfo = console.info;
857
- prevWarn = console.warn;
858
- prevError = console.error;
859
- prevGroup = console.group;
860
- prevGroupCollapsed = console.groupCollapsed;
861
- prevGroupEnd = console.groupEnd;
862
- var props = {
863
- configurable: true,
864
- enumerable: true,
865
- value: disabledLog,
866
- writable: true
867
- };
868
- Object.defineProperties(console, {
869
- info: props,
870
- log: props,
871
- warn: props,
872
- error: props,
873
- group: props,
874
- groupCollapsed: props,
875
- groupEnd: props
876
- });
877
- }
878
- disabledDepth++;
879
- }
880
- function reenableLogs() {
881
- disabledDepth--;
882
- if (0 === disabledDepth) {
883
- var props = {
884
- configurable: true,
885
- enumerable: true,
886
- writable: true
887
- };
888
- Object.defineProperties(console, {
889
- log: assign({}, props, {
890
- value: prevLog
891
- }),
892
- info: assign({}, props, {
893
- value: prevInfo
894
- }),
895
- warn: assign({}, props, {
896
- value: prevWarn
897
- }),
898
- error: assign({}, props, {
899
- value: prevError
900
- }),
901
- group: assign({}, props, {
902
- value: prevGroup
903
- }),
904
- groupCollapsed: assign({}, props, {
905
- value: prevGroupCollapsed
906
- }),
907
- groupEnd: assign({}, props, {
908
- value: prevGroupEnd
909
- })
910
- });
911
- }
912
- if (disabledDepth < 0) error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
913
- }
914
- var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
915
- var prefix;
916
- function describeBuiltInComponentFrame(name, source, ownerFn) {
917
- if (void 0 === prefix) try {
918
- throw Error();
919
- } catch (x) {
920
- var match = x.stack.trim().match(/\n( *(at )?)/);
921
- prefix = match && match[1] || '';
922
- }
923
- return '\n' + prefix + name;
924
- }
925
- var reentry = false;
926
- var componentFrameCache;
927
- var PossiblyWeakMap = 'function' == typeof WeakMap ? WeakMap : Map;
928
- componentFrameCache = new PossiblyWeakMap();
929
- function describeNativeComponentFrame(fn, construct) {
930
- if (!fn || reentry) return '';
931
- var frame = componentFrameCache.get(fn);
932
- if (void 0 !== frame) return frame;
933
- var control;
934
- reentry = true;
935
- var previousPrepareStackTrace = Error.prepareStackTrace;
936
- Error.prepareStackTrace = void 0;
937
- var previousDispatcher;
938
- previousDispatcher = ReactCurrentDispatcher$1.current;
939
- ReactCurrentDispatcher$1.current = null;
940
- disableLogs();
941
- try {
942
- if (construct) {
943
- var Fake = function() {
944
- throw Error();
945
- };
946
- Object.defineProperty(Fake.prototype, 'props', {
947
- set: function() {
948
- throw Error();
949
- }
950
- });
951
- if ('object' == typeof Reflect && Reflect.construct) {
952
- try {
953
- Reflect.construct(Fake, []);
954
- } catch (x) {
955
- control = x;
956
- }
957
- Reflect.construct(fn, [], Fake);
958
- } else {
959
- try {
960
- Fake.call();
961
- } catch (x) {
962
- control = x;
963
- }
964
- fn.call(Fake.prototype);
965
- }
966
- } else {
967
- try {
968
- throw Error();
969
- } catch (x) {
970
- control = x;
971
- }
972
- fn();
973
- }
974
- } catch (sample) {
975
- if (sample && control && 'string' == typeof sample.stack) {
976
- var sampleLines = sample.stack.split('\n');
977
- var controlLines = control.stack.split('\n');
978
- var s = sampleLines.length - 1;
979
- var c = controlLines.length - 1;
980
- while(s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c])c--;
981
- for(; s >= 1 && c >= 0; s--, c--)if (sampleLines[s] !== controlLines[c]) {
982
- if (1 !== s || 1 !== c) do {
983
- s--;
984
- c--;
985
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
986
- var _frame = '\n' + sampleLines[s].replace(' at new ', ' at ');
987
- if (fn.displayName && _frame.includes('<anonymous>')) _frame = _frame.replace('<anonymous>', fn.displayName);
988
- if ('function' == typeof fn) componentFrameCache.set(fn, _frame);
989
- return _frame;
990
- }
991
- }while (s >= 1 && c >= 0);
992
- break;
993
- }
994
- }
995
- } finally{
996
- reentry = false;
997
- ReactCurrentDispatcher$1.current = previousDispatcher;
998
- reenableLogs();
999
- Error.prepareStackTrace = previousPrepareStackTrace;
1000
- }
1001
- var name = fn ? fn.displayName || fn.name : '';
1002
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
1003
- if ('function' == typeof fn) componentFrameCache.set(fn, syntheticFrame);
1004
- return syntheticFrame;
1005
- }
1006
- function describeFunctionComponentFrame(fn, source, ownerFn) {
1007
- return describeNativeComponentFrame(fn, false);
1008
- }
1009
- function shouldConstruct(Component) {
1010
- var prototype = Component.prototype;
1011
- return !!(prototype && prototype.isReactComponent);
1012
- }
1013
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
1014
- if (null == type) return '';
1015
- if ('function' == typeof type) return describeNativeComponentFrame(type, shouldConstruct(type));
1016
- if ('string' == typeof type) return describeBuiltInComponentFrame(type);
1017
- switch(type){
1018
- case REACT_SUSPENSE_TYPE:
1019
- return describeBuiltInComponentFrame('Suspense');
1020
- case REACT_SUSPENSE_LIST_TYPE:
1021
- return describeBuiltInComponentFrame('SuspenseList');
1022
- }
1023
- if ('object' == typeof type) switch(type.$$typeof){
1024
- case REACT_FORWARD_REF_TYPE:
1025
- return describeFunctionComponentFrame(type.render);
1026
- case REACT_MEMO_TYPE:
1027
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
1028
- case REACT_LAZY_TYPE:
1029
- var lazyComponent = type;
1030
- var payload = lazyComponent._payload;
1031
- var init = lazyComponent._init;
1032
- try {
1033
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
1034
- } catch (x) {}
1035
- }
1036
- return '';
1037
- }
1038
- var loggedTypeFailures = {};
1039
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
1040
- function setCurrentlyValidatingElement(element) {
1041
- if (element) {
1042
- var owner = element._owner;
1043
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1044
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
1045
- } else ReactDebugCurrentFrame$1.setExtraStackFrame(null);
1046
- }
1047
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
1048
- var has = Function.call.bind(hasOwnProperty);
1049
- for(var typeSpecName in typeSpecs)if (has(typeSpecs, typeSpecName)) {
1050
- var error$1 = void 0;
1051
- try {
1052
- if ('function' != typeof typeSpecs[typeSpecName]) {
1053
- 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`.");
1054
- err.name = 'Invariant Violation';
1055
- throw err;
1056
- }
1057
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
1058
- } catch (ex) {
1059
- error$1 = ex;
1060
- }
1061
- if (error$1 && !(error$1 instanceof Error)) {
1062
- setCurrentlyValidatingElement(element);
1063
- 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);
1064
- setCurrentlyValidatingElement(null);
1065
- }
1066
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
1067
- loggedTypeFailures[error$1.message] = true;
1068
- setCurrentlyValidatingElement(element);
1069
- error('Failed %s type: %s', location, error$1.message);
1070
- setCurrentlyValidatingElement(null);
1071
- }
1072
- }
1073
- }
1074
- function setCurrentlyValidatingElement$1(element) {
1075
- if (element) {
1076
- var owner = element._owner;
1077
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1078
- setExtraStackFrame(stack);
1079
- } else setExtraStackFrame(null);
1080
- }
1081
- var propTypesMisspellWarningShown;
1082
- propTypesMisspellWarningShown = false;
1083
- function getDeclarationErrorAddendum() {
1084
- if (ReactCurrentOwner.current) {
1085
- var name = getComponentNameFromType(ReactCurrentOwner.current.type);
1086
- if (name) return '\n\nCheck the render method of `' + name + '`.';
1087
- }
1088
- return '';
1089
- }
1090
- function getSourceInfoErrorAddendum(source) {
1091
- if (void 0 !== source) {
1092
- var fileName = source.fileName.replace(/^.*[\\\/]/, '');
1093
- var lineNumber = source.lineNumber;
1094
- return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
1095
- }
1096
- return '';
1097
- }
1098
- function getSourceInfoErrorAddendumForProps(elementProps) {
1099
- if (null != elementProps) return getSourceInfoErrorAddendum(elementProps.__source);
1100
- return '';
1101
- }
1102
- var ownerHasKeyUseWarning = {};
1103
- function getCurrentComponentErrorInfo(parentType) {
1104
- var info = getDeclarationErrorAddendum();
1105
- if (!info) {
1106
- var parentName = 'string' == typeof parentType ? parentType : parentType.displayName || parentType.name;
1107
- if (parentName) info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1108
- }
1109
- return info;
1110
- }
1111
- function validateExplicitKey(element, parentType) {
1112
- if (!element._store || element._store.validated || null != element.key) return;
1113
- element._store.validated = true;
1114
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1115
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) return;
1116
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
1117
- var childOwner = '';
1118
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1119
- setCurrentlyValidatingElement$1(element);
1120
- 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);
1121
- setCurrentlyValidatingElement$1(null);
1122
- }
1123
- function validateChildKeys(node, parentType) {
1124
- if ('object' != typeof node) return;
1125
- if (isArray(node)) for(var i = 0; i < node.length; i++){
1126
- var child = node[i];
1127
- if (isValidElement(child)) validateExplicitKey(child, parentType);
1128
- }
1129
- else if (isValidElement(node)) {
1130
- if (node._store) node._store.validated = true;
1131
- } else if (node) {
1132
- var iteratorFn = getIteratorFn(node);
1133
- if ('function' == typeof iteratorFn) {
1134
- if (iteratorFn !== node.entries) {
1135
- var iterator = iteratorFn.call(node);
1136
- var step;
1137
- while(!(step = iterator.next()).done)if (isValidElement(step.value)) validateExplicitKey(step.value, parentType);
1138
- }
1139
- }
1140
- }
1141
- }
1142
- function validatePropTypes(element) {
1143
- var type = element.type;
1144
- if (null == type || 'string' == typeof type) return;
1145
- var propTypes;
1146
- if ('function' == typeof type) propTypes = type.propTypes;
1147
- else {
1148
- if ('object' != typeof type || type.$$typeof !== REACT_FORWARD_REF_TYPE && type.$$typeof !== REACT_MEMO_TYPE) return;
1149
- propTypes = type.propTypes;
1150
- }
1151
- if (propTypes) {
1152
- var name = getComponentNameFromType(type);
1153
- checkPropTypes(propTypes, element.props, 'prop', name, element);
1154
- } else if (void 0 !== type.PropTypes && !propTypesMisspellWarningShown) {
1155
- propTypesMisspellWarningShown = true;
1156
- var _name = getComponentNameFromType(type);
1157
- error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
1158
- }
1159
- if ('function' == typeof type.getDefaultProps && !type.getDefaultProps.isReactClassApproved) error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1160
- }
1161
- function validateFragmentProps(fragment) {
1162
- var keys = Object.keys(fragment.props);
1163
- for(var i = 0; i < keys.length; i++){
1164
- var key = keys[i];
1165
- if ('children' !== key && 'key' !== key) {
1166
- setCurrentlyValidatingElement$1(fragment);
1167
- error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
1168
- setCurrentlyValidatingElement$1(null);
1169
- break;
1170
- }
1171
- }
1172
- if (null !== fragment.ref) {
1173
- setCurrentlyValidatingElement$1(fragment);
1174
- error('Invalid attribute `ref` supplied to `React.Fragment`.');
1175
- setCurrentlyValidatingElement$1(null);
1176
- }
1177
- }
1178
- function createElementWithValidation(type, props, children) {
1179
- var validType = isValidElementType(type);
1180
- if (!validType) {
1181
- var info = '';
1182
- if (void 0 === type || 'object' == typeof type && null !== type && 0 === Object.keys(type).length) 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.";
1183
- var sourceInfo = getSourceInfoErrorAddendumForProps(props);
1184
- if (sourceInfo) info += sourceInfo;
1185
- else info += getDeclarationErrorAddendum();
1186
- var typeString;
1187
- if (null === type) typeString = 'null';
1188
- else if (isArray(type)) typeString = 'array';
1189
- else if (void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE) {
1190
- typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
1191
- info = ' Did you accidentally export a JSX literal instead of a component?';
1192
- } else typeString = typeof type;
1193
- 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);
1194
- }
1195
- var element = createElement.apply(this, arguments);
1196
- if (null == element) return element;
1197
- if (validType) for(var i = 2; i < arguments.length; i++)validateChildKeys(arguments[i], type);
1198
- if (type === REACT_FRAGMENT_TYPE) validateFragmentProps(element);
1199
- else validatePropTypes(element);
1200
- return element;
1201
- }
1202
- var didWarnAboutDeprecatedCreateFactory = false;
1203
- function createFactoryWithValidation(type) {
1204
- var validatedFactory = createElementWithValidation.bind(null, type);
1205
- validatedFactory.type = type;
1206
- if (!didWarnAboutDeprecatedCreateFactory) {
1207
- didWarnAboutDeprecatedCreateFactory = true;
1208
- warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
1209
- }
1210
- Object.defineProperty(validatedFactory, 'type', {
1211
- enumerable: false,
1212
- get: function() {
1213
- warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
1214
- Object.defineProperty(this, 'type', {
1215
- value: type
1216
- });
1217
- return type;
1218
- }
1219
- });
1220
- return validatedFactory;
1221
- }
1222
- function cloneElementWithValidation(element, props, children) {
1223
- var newElement = cloneElement.apply(this, arguments);
1224
- for(var i = 2; i < arguments.length; i++)validateChildKeys(arguments[i], newElement.type);
1225
- validatePropTypes(newElement);
1226
- return newElement;
1227
- }
1228
- function startTransition(scope, options) {
1229
- var prevTransition = ReactCurrentBatchConfig.transition;
1230
- ReactCurrentBatchConfig.transition = {};
1231
- var currentTransition = ReactCurrentBatchConfig.transition;
1232
- ReactCurrentBatchConfig.transition._updatedFibers = new Set();
1233
- try {
1234
- scope();
1235
- } finally{
1236
- ReactCurrentBatchConfig.transition = prevTransition;
1237
- if (null === prevTransition && currentTransition._updatedFibers) {
1238
- var updatedFibersCount = currentTransition._updatedFibers.size;
1239
- if (updatedFibersCount > 10) 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.");
1240
- currentTransition._updatedFibers.clear();
1241
- }
1242
- }
1243
- }
1244
- var didWarnAboutMessageChannel = false;
1245
- var enqueueTaskImpl = null;
1246
- function enqueueTask(task) {
1247
- if (null === enqueueTaskImpl) try {
1248
- var requireString = ('require' + Math.random()).slice(0, 7);
1249
- var nodeRequire = module && module[requireString];
1250
- enqueueTaskImpl = nodeRequire.call(module, 'timers').setImmediate;
1251
- } catch (_err) {
1252
- enqueueTaskImpl = function(callback) {
1253
- if (false === didWarnAboutMessageChannel) {
1254
- didWarnAboutMessageChannel = true;
1255
- if ('undefined' == typeof MessageChannel) 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.");
1256
- }
1257
- var channel = new MessageChannel();
1258
- channel.port1.onmessage = callback;
1259
- channel.port2.postMessage(void 0);
1260
- };
1261
- }
1262
- return enqueueTaskImpl(task);
1263
- }
1264
- var actScopeDepth = 0;
1265
- var didWarnNoAwaitAct = false;
1266
- function act(callback) {
1267
- var prevActScopeDepth = actScopeDepth;
1268
- actScopeDepth++;
1269
- if (null === ReactCurrentActQueue.current) ReactCurrentActQueue.current = [];
1270
- var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
1271
- var result;
1272
- try {
1273
- ReactCurrentActQueue.isBatchingLegacy = true;
1274
- result = callback();
1275
- if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
1276
- var queue = ReactCurrentActQueue.current;
1277
- if (null !== queue) {
1278
- ReactCurrentActQueue.didScheduleLegacyUpdate = false;
1279
- flushActQueue(queue);
1280
- }
1281
- }
1282
- } catch (error) {
1283
- popActScope(prevActScopeDepth);
1284
- throw error;
1285
- } finally{
1286
- ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
1287
- }
1288
- if (null !== result && 'object' == typeof result && 'function' == typeof result.then) {
1289
- var thenableResult = result;
1290
- var wasAwaited = false;
1291
- var thenable = {
1292
- then: function(resolve, reject) {
1293
- wasAwaited = true;
1294
- thenableResult.then(function(returnValue) {
1295
- popActScope(prevActScopeDepth);
1296
- if (0 === actScopeDepth) recursivelyFlushAsyncActWork(returnValue, resolve, reject);
1297
- else resolve(returnValue);
1298
- }, function(error) {
1299
- popActScope(prevActScopeDepth);
1300
- reject(error);
1301
- });
1302
- }
1303
- };
1304
- if (!didWarnNoAwaitAct && 'undefined' != typeof Promise) Promise.resolve().then(function() {}).then(function() {
1305
- if (!wasAwaited) {
1306
- didWarnNoAwaitAct = true;
1307
- 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 () => ...);");
1308
- }
1309
- });
1310
- return thenable;
1311
- }
1312
- var returnValue = result;
1313
- popActScope(prevActScopeDepth);
1314
- if (0 === actScopeDepth) {
1315
- var _queue = ReactCurrentActQueue.current;
1316
- if (null !== _queue) {
1317
- flushActQueue(_queue);
1318
- ReactCurrentActQueue.current = null;
1319
- }
1320
- var _thenable = {
1321
- then: function(resolve, reject) {
1322
- if (null === ReactCurrentActQueue.current) {
1323
- ReactCurrentActQueue.current = [];
1324
- recursivelyFlushAsyncActWork(returnValue, resolve, reject);
1325
- } else resolve(returnValue);
1326
- }
1327
- };
1328
- return _thenable;
1329
- }
1330
- var _thenable2 = {
1331
- then: function(resolve, reject) {
1332
- resolve(returnValue);
1333
- }
1334
- };
1335
- return _thenable2;
1336
- }
1337
- function popActScope(prevActScopeDepth) {
1338
- if (prevActScopeDepth !== actScopeDepth - 1) error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
1339
- actScopeDepth = prevActScopeDepth;
1340
- }
1341
- function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
1342
- var queue = ReactCurrentActQueue.current;
1343
- if (null !== queue) try {
1344
- flushActQueue(queue);
1345
- enqueueTask(function() {
1346
- if (0 === queue.length) {
1347
- ReactCurrentActQueue.current = null;
1348
- resolve(returnValue);
1349
- } else recursivelyFlushAsyncActWork(returnValue, resolve, reject);
1350
- });
1351
- } catch (error) {
1352
- reject(error);
1353
- }
1354
- else resolve(returnValue);
1355
- }
1356
- var isFlushing = false;
1357
- function flushActQueue(queue) {
1358
- if (!isFlushing) {
1359
- isFlushing = true;
1360
- var i = 0;
1361
- try {
1362
- for(; i < queue.length; i++){
1363
- var callback = queue[i];
1364
- do callback = callback(true);
1365
- while (null !== callback);
1366
- }
1367
- queue.length = 0;
1368
- } catch (error) {
1369
- queue = queue.slice(i + 1);
1370
- throw error;
1371
- } finally{
1372
- isFlushing = false;
1373
- }
1374
- }
1375
- }
1376
- var createElement$1 = createElementWithValidation;
1377
- var cloneElement$1 = cloneElementWithValidation;
1378
- var createFactory = createFactoryWithValidation;
1379
- var Children = {
1380
- map: mapChildren,
1381
- forEach: forEachChildren,
1382
- count: countChildren,
1383
- toArray: toArray,
1384
- only: onlyChild
1385
- };
1386
- exports1.Children = Children;
1387
- exports1.Component = Component;
1388
- exports1.Fragment = REACT_FRAGMENT_TYPE;
1389
- exports1.Profiler = REACT_PROFILER_TYPE;
1390
- exports1.PureComponent = PureComponent;
1391
- exports1.StrictMode = REACT_STRICT_MODE_TYPE;
1392
- exports1.Suspense = REACT_SUSPENSE_TYPE;
1393
- exports1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
1394
- exports1.act = act;
1395
- exports1.cloneElement = cloneElement$1;
1396
- exports1.createContext = createContext;
1397
- exports1.createElement = createElement$1;
1398
- exports1.createFactory = createFactory;
1399
- exports1.createRef = createRef;
1400
- exports1.forwardRef = forwardRef;
1401
- exports1.isValidElement = isValidElement;
1402
- exports1.lazy = lazy;
1403
- exports1.memo = memo;
1404
- exports1.startTransition = startTransition;
1405
- exports1.unstable_act = act;
1406
- exports1.useCallback = useCallback;
1407
- exports1.useContext = useContext;
1408
- exports1.useDebugValue = useDebugValue;
1409
- exports1.useDeferredValue = useDeferredValue;
1410
- exports1.useEffect = useEffect;
1411
- exports1.useId = useId;
1412
- exports1.useImperativeHandle = useImperativeHandle;
1413
- exports1.useInsertionEffect = useInsertionEffect;
1414
- exports1.useLayoutEffect = useLayoutEffect;
1415
- exports1.useMemo = useMemo;
1416
- exports1.useReducer = useReducer;
1417
- exports1.useRef = useRef;
1418
- exports1.useState = useState;
1419
- exports1.useSyncExternalStore = useSyncExternalStore;
1420
- exports1.useTransition = useTransition;
1421
- exports1.version = ReactVersion;
1422
- if ('undefined' != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && 'function' == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop) __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
1423
- })();
1424
- },
1425
- "../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js": function(__unused_webpack_module, exports1) {
1426
- /**
1427
- * @license React
1428
- * react.production.min.js
1429
- *
1430
- * Copyright (c) Facebook, Inc. and its affiliates.
1431
- *
1432
- * This source code is licensed under the MIT license found in the
1433
- * LICENSE file in the root directory of this source tree.
1434
- */ var l = Symbol.for("react.element"), n = Symbol.for("react.portal"), z = (Symbol.for("react.fragment"), Symbol.for("react.strict_mode"), Symbol.for("react.profiler"), Symbol.for("react.provider"), Symbol.for("react.context"), Symbol.for("react.forward_ref"), Symbol.for("react.suspense"), Symbol.for("react.memo"), Symbol.for("react.lazy"), Symbol.iterator);
1435
- function A(a) {
1436
- if (null === a || "object" != typeof a) return null;
1437
- a = z && a[z] || a["@@iterator"];
1438
- return "function" == typeof a ? a : null;
1439
- }
1440
- var B = {
1441
- isMounted: function() {
1442
- return !1;
1443
- },
1444
- enqueueForceUpdate: function() {},
1445
- enqueueReplaceState: function() {},
1446
- enqueueSetState: function() {}
1447
- }, C = Object.assign, D = {};
1448
- function E(a, b, e) {
1449
- this.props = a;
1450
- this.context = b;
1451
- this.refs = D;
1452
- this.updater = e || B;
1453
- }
1454
- E.prototype.isReactComponent = {};
1455
- E.prototype.setState = function(a, b) {
1456
- if ("object" != typeof a && "function" != typeof a && null != a) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
1457
- this.updater.enqueueSetState(this, a, b, "setState");
1458
- };
1459
- E.prototype.forceUpdate = function(a) {
1460
- this.updater.enqueueForceUpdate(this, a, "forceUpdate");
1461
- };
1462
- function F() {}
1463
- F.prototype = E.prototype;
1464
- function G(a, b, e) {
1465
- this.props = a;
1466
- this.context = b;
1467
- this.refs = D;
1468
- this.updater = e || B;
1469
- }
1470
- var H = G.prototype = new F;
1471
- H.constructor = G;
1472
- C(H, E.prototype);
1473
- H.isPureReactComponent = !0;
1474
- var I = Array.isArray, J = Object.prototype.hasOwnProperty, K = {
1475
- current: null
1476
- }, L = {
1477
- key: !0,
1478
- ref: !0,
1479
- __self: !0,
1480
- __source: !0
1481
- };
1482
- function N(a, b) {
1483
- return {
1484
- $$typeof: l,
1485
- type: a.type,
1486
- key: b,
1487
- ref: a.ref,
1488
- props: a.props,
1489
- _owner: a._owner
1490
- };
1491
- }
1492
- function O(a) {
1493
- return "object" == typeof a && null !== a && a.$$typeof === l;
1494
- }
1495
- function escape(a) {
1496
- var b = {
1497
- "=": "=0",
1498
- ":": "=2"
1499
- };
1500
- return "$" + a.replace(/[=:]/g, function(a) {
1501
- return b[a];
1502
- });
1503
- }
1504
- var P = /\/+/g;
1505
- function Q(a, b) {
1506
- return "object" == typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36);
1507
- }
1508
- function R(a, b, e, d, c) {
1509
- var k = typeof a;
1510
- if ("undefined" === k || "boolean" === k) a = null;
1511
- var h = !1;
1512
- if (null === a) h = !0;
1513
- else switch(k){
1514
- case "string":
1515
- case "number":
1516
- h = !0;
1517
- break;
1518
- case "object":
1519
- switch(a.$$typeof){
1520
- case l:
1521
- case n:
1522
- h = !0;
1523
- }
1524
- }
1525
- if (h) return h = a, c = c(h), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function(a) {
1526
- return a;
1527
- })) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
1528
- h = 0;
1529
- d = "" === d ? "." : d + ":";
1530
- if (I(a)) for(var g = 0; g < a.length; g++){
1531
- k = a[g];
1532
- var f = d + Q(k, g);
1533
- h += R(k, b, e, f, c);
1534
- }
1535
- else if (f = A(a), "function" == typeof f) for(a = f.call(a), g = 0; !(k = a.next()).done;)k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c);
1536
- else if ("object" === k) throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead.");
1537
- return h;
1538
- }
1539
- var U = {
1540
- current: null
1541
- };
1542
- exports1.useCallback = function(a, b) {
1543
- return U.current.useCallback(a, b);
1544
- };
1545
- exports1.useEffect = function(a, b) {
1546
- return U.current.useEffect(a, b);
1547
- };
1548
- exports1.useLayoutEffect = function(a, b) {
1549
- return U.current.useLayoutEffect(a, b);
1550
- };
1551
- exports1.useRef = function(a) {
1552
- return U.current.useRef(a);
1553
- };
1554
- exports1.useState = function(a) {
1555
- return U.current.useState(a);
1556
- };
1557
- exports1.useSyncExternalStore = function(a, b, e) {
1558
- return U.current.useSyncExternalStore(a, b, e);
1559
- };
1560
- "18.3.1";
1561
- },
1562
- "../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
1563
- if ('production' === process.env.NODE_ENV) module.exports = __webpack_require__("../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js");
1564
- else module.exports = __webpack_require__("../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js");
1565
- },
1566
3
  "./src/specs/NativeHotUpdater.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1567
4
  __webpack_require__.d(__webpack_exports__, {
1568
5
  Z: ()=>__WEBPACK_DEFAULT_EXPORT__
@@ -1579,12 +16,9 @@ function __webpack_require__(moduleId) {
1579
16
  var cachedModule = __webpack_module_cache__[moduleId];
1580
17
  if (void 0 !== cachedModule) return cachedModule.exports;
1581
18
  var module = __webpack_module_cache__[moduleId] = {
1582
- id: moduleId,
1583
- loaded: false,
1584
19
  exports: {}
1585
20
  };
1586
21
  __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
1587
- module.loaded = true;
1588
22
  return module.exports;
1589
23
  }
1590
24
  (()=>{
@@ -1623,13 +57,6 @@ function __webpack_require__(moduleId) {
1623
57
  });
1624
58
  };
1625
59
  })();
1626
- (()=>{
1627
- __webpack_require__.nmd = function(module) {
1628
- module.paths = [];
1629
- if (!module.children) module.children = [];
1630
- return module;
1631
- };
1632
- })();
1633
60
  var __webpack_exports__ = {};
1634
61
  (()=>{
1635
62
  __webpack_require__.r(__webpack_exports__);
@@ -1734,7 +161,7 @@ var __webpack_exports__ = {};
1734
161
  id: updateInfo.id
1735
162
  };
1736
163
  };
1737
- var react = __webpack_require__("../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js");
164
+ const external_react_namespaceObject = require("react");
1738
165
  const createHotUpdaterStore = ()=>{
1739
166
  let state = {
1740
167
  progress: 0,
@@ -1763,17 +190,17 @@ var __webpack_exports__ = {};
1763
190
  };
1764
191
  };
1765
192
  const hotUpdaterStore = createHotUpdaterStore();
1766
- const useHotUpdaterStore = ()=>(0, react.useSyncExternalStore)(hotUpdaterStore.subscribe, hotUpdaterStore.getSnapshot, hotUpdaterStore.getSnapshot);
193
+ const useHotUpdaterStore = ()=>(0, external_react_namespaceObject.useSyncExternalStore)(hotUpdaterStore.subscribe, hotUpdaterStore.getSnapshot, hotUpdaterStore.getSnapshot);
1767
194
  function useEventCallback(fn) {
1768
- const callbackRef = (0, react.useRef)(()=>{
195
+ const callbackRef = (0, external_react_namespaceObject.useRef)(()=>{
1769
196
  throw new Error("Cannot call an event handler while rendering.");
1770
197
  });
1771
- (0, react.useLayoutEffect)(()=>{
198
+ (0, external_react_namespaceObject.useLayoutEffect)(()=>{
1772
199
  callbackRef.current = fn;
1773
200
  }, [
1774
201
  fn
1775
202
  ]);
1776
- return (0, react.useCallback)((...args)=>callbackRef.current?.(...args), [
203
+ return (0, external_react_namespaceObject.useCallback)((...args)=>callbackRef.current?.(...args), [
1777
204
  callbackRef
1778
205
  ]);
1779
206
  }
@@ -1782,7 +209,7 @@ var __webpack_exports__ = {};
1782
209
  return (WrappedComponent)=>{
1783
210
  const HotUpdaterHOC = ()=>{
1784
211
  const { progress } = useHotUpdaterStore();
1785
- const [updateStatus, setUpdateStatus] = (0, react.useState)("CHECK_FOR_UPDATE");
212
+ const [updateStatus, setUpdateStatus] = (0, external_react_namespaceObject.useState)("CHECK_FOR_UPDATE");
1786
213
  const initHotUpdater = useEventCallback(async ()=>{
1787
214
  try {
1788
215
  setUpdateStatus("CHECK_FOR_UPDATE");
@@ -1823,12 +250,12 @@ var __webpack_exports__ = {};
1823
250
  throw error;
1824
251
  }
1825
252
  });
1826
- (0, react.useEffect)(()=>{
253
+ (0, external_react_namespaceObject.useEffect)(()=>{
1827
254
  restConfig.onProgress?.(progress);
1828
255
  }, [
1829
256
  progress
1830
257
  ]);
1831
- (0, react.useLayoutEffect)(()=>{
258
+ (0, external_react_namespaceObject.useLayoutEffect)(()=>{
1832
259
  initHotUpdater();
1833
260
  }, []);
1834
261
  if (restConfig.fallbackComponent && "UPDATE_PROCESS_COMPLETED" !== updateStatus) {