integrate-sdk 0.5.0 → 0.5.2

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