@wrdagency/react-islands 0.1.0

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/server.js ADDED
@@ -0,0 +1,3235 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __commonJS = (cb, mod) => function __require() {
9
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
+ };
11
+ var __export = (target, all) => {
12
+ for (var name in all)
13
+ __defProp(target, name, { get: all[name], enumerable: true });
14
+ };
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from))
18
+ if (!__hasOwnProp.call(to, key) && key !== except)
19
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
20
+ }
21
+ return to;
22
+ };
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
24
+ // If the importer is in node compatibility mode or this is not an ESM
25
+ // file that has been converted to a CommonJS file using a Babel-
26
+ // compatible transform (i.e. "__esModule" has not been set), then set
27
+ // "default" to the CommonJS "module.exports" for node compatibility.
28
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
29
+ mod
30
+ ));
31
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
+ var __async = (__this, __arguments, generator) => {
33
+ return new Promise((resolve, reject) => {
34
+ var fulfilled = (value) => {
35
+ try {
36
+ step(generator.next(value));
37
+ } catch (e) {
38
+ reject(e);
39
+ }
40
+ };
41
+ var rejected = (value) => {
42
+ try {
43
+ step(generator.throw(value));
44
+ } catch (e) {
45
+ reject(e);
46
+ }
47
+ };
48
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
49
+ step((generator = generator.apply(__this, __arguments)).next());
50
+ });
51
+ };
52
+
53
+ // node_modules/react/cjs/react.production.min.js
54
+ var require_react_production_min = __commonJS({
55
+ "node_modules/react/cjs/react.production.min.js"(exports2) {
56
+ "use strict";
57
+ var l = Symbol.for("react.element");
58
+ var n = Symbol.for("react.portal");
59
+ var p = Symbol.for("react.fragment");
60
+ var q = Symbol.for("react.strict_mode");
61
+ var r = Symbol.for("react.profiler");
62
+ var t = Symbol.for("react.provider");
63
+ var u = Symbol.for("react.context");
64
+ var v = Symbol.for("react.forward_ref");
65
+ var w = Symbol.for("react.suspense");
66
+ var x = Symbol.for("react.memo");
67
+ var y = Symbol.for("react.lazy");
68
+ var z = Symbol.iterator;
69
+ function A(a) {
70
+ if (null === a || "object" !== typeof a)
71
+ return null;
72
+ a = z && a[z] || a["@@iterator"];
73
+ return "function" === typeof a ? a : null;
74
+ }
75
+ var B = { isMounted: function() {
76
+ return false;
77
+ }, enqueueForceUpdate: function() {
78
+ }, enqueueReplaceState: function() {
79
+ }, enqueueSetState: function() {
80
+ } };
81
+ var C = Object.assign;
82
+ var D = {};
83
+ function E(a, b, e) {
84
+ this.props = a;
85
+ this.context = b;
86
+ this.refs = D;
87
+ this.updater = e || B;
88
+ }
89
+ E.prototype.isReactComponent = {};
90
+ E.prototype.setState = function(a, b) {
91
+ if ("object" !== typeof a && "function" !== typeof a && null != a)
92
+ throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
93
+ this.updater.enqueueSetState(this, a, b, "setState");
94
+ };
95
+ E.prototype.forceUpdate = function(a) {
96
+ this.updater.enqueueForceUpdate(this, a, "forceUpdate");
97
+ };
98
+ function F() {
99
+ }
100
+ F.prototype = E.prototype;
101
+ function G(a, b, e) {
102
+ this.props = a;
103
+ this.context = b;
104
+ this.refs = D;
105
+ this.updater = e || B;
106
+ }
107
+ var H = G.prototype = new F();
108
+ H.constructor = G;
109
+ C(H, E.prototype);
110
+ H.isPureReactComponent = true;
111
+ var I = Array.isArray;
112
+ var J = Object.prototype.hasOwnProperty;
113
+ var K = { current: null };
114
+ var L = { key: true, ref: true, __self: true, __source: true };
115
+ function M(a, b, e) {
116
+ var d, c = {}, k = null, h = null;
117
+ if (null != b)
118
+ for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b)
119
+ J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]);
120
+ var g = arguments.length - 2;
121
+ if (1 === g)
122
+ c.children = e;
123
+ else if (1 < g) {
124
+ for (var f = Array(g), m = 0; m < g; m++)
125
+ f[m] = arguments[m + 2];
126
+ c.children = f;
127
+ }
128
+ if (a && a.defaultProps)
129
+ for (d in g = a.defaultProps, g)
130
+ void 0 === c[d] && (c[d] = g[d]);
131
+ return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current };
132
+ }
133
+ function N(a, b) {
134
+ return { $$typeof: l, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner };
135
+ }
136
+ function O(a) {
137
+ return "object" === typeof a && null !== a && a.$$typeof === l;
138
+ }
139
+ function escape(a) {
140
+ var b = { "=": "=0", ":": "=2" };
141
+ return "$" + a.replace(/[=:]/g, function(a2) {
142
+ return b[a2];
143
+ });
144
+ }
145
+ var P = /\/+/g;
146
+ function Q(a, b) {
147
+ return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36);
148
+ }
149
+ function R(a, b, e, d, c) {
150
+ var k = typeof a;
151
+ if ("undefined" === k || "boolean" === k)
152
+ a = null;
153
+ var h = false;
154
+ if (null === a)
155
+ h = true;
156
+ else
157
+ switch (k) {
158
+ case "string":
159
+ case "number":
160
+ h = true;
161
+ break;
162
+ case "object":
163
+ switch (a.$$typeof) {
164
+ case l:
165
+ case n:
166
+ h = true;
167
+ }
168
+ }
169
+ if (h)
170
+ return h = a, c = c(h), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function(a2) {
171
+ return a2;
172
+ })) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
173
+ h = 0;
174
+ d = "" === d ? "." : d + ":";
175
+ if (I(a))
176
+ for (var g = 0; g < a.length; g++) {
177
+ k = a[g];
178
+ var f = d + Q(k, g);
179
+ h += R(k, b, e, f, c);
180
+ }
181
+ else if (f = A(a), "function" === typeof f)
182
+ for (a = f.call(a), g = 0; !(k = a.next()).done; )
183
+ k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c);
184
+ else if ("object" === k)
185
+ throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead.");
186
+ return h;
187
+ }
188
+ function S(a, b, e) {
189
+ if (null == a)
190
+ return a;
191
+ var d = [], c = 0;
192
+ R(a, d, "", "", function(a2) {
193
+ return b.call(e, a2, c++);
194
+ });
195
+ return d;
196
+ }
197
+ function T(a) {
198
+ if (-1 === a._status) {
199
+ var b = a._result;
200
+ b = b();
201
+ b.then(function(b2) {
202
+ if (0 === a._status || -1 === a._status)
203
+ a._status = 1, a._result = b2;
204
+ }, function(b2) {
205
+ if (0 === a._status || -1 === a._status)
206
+ a._status = 2, a._result = b2;
207
+ });
208
+ -1 === a._status && (a._status = 0, a._result = b);
209
+ }
210
+ if (1 === a._status)
211
+ return a._result.default;
212
+ throw a._result;
213
+ }
214
+ var U = { current: null };
215
+ var V = { transition: null };
216
+ var W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K };
217
+ exports2.Children = { map: S, forEach: function(a, b, e) {
218
+ S(a, function() {
219
+ b.apply(this, arguments);
220
+ }, e);
221
+ }, count: function(a) {
222
+ var b = 0;
223
+ S(a, function() {
224
+ b++;
225
+ });
226
+ return b;
227
+ }, toArray: function(a) {
228
+ return S(a, function(a2) {
229
+ return a2;
230
+ }) || [];
231
+ }, only: function(a) {
232
+ if (!O(a))
233
+ throw Error("React.Children.only expected to receive a single React element child.");
234
+ return a;
235
+ } };
236
+ exports2.Component = E;
237
+ exports2.Fragment = p;
238
+ exports2.Profiler = r;
239
+ exports2.PureComponent = G;
240
+ exports2.StrictMode = q;
241
+ exports2.Suspense = w;
242
+ exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
243
+ exports2.cloneElement = function(a, b, e) {
244
+ if (null === a || void 0 === a)
245
+ throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
246
+ var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner;
247
+ if (null != b) {
248
+ void 0 !== b.ref && (k = b.ref, h = K.current);
249
+ void 0 !== b.key && (c = "" + b.key);
250
+ if (a.type && a.type.defaultProps)
251
+ var g = a.type.defaultProps;
252
+ for (f in b)
253
+ J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
254
+ }
255
+ var f = arguments.length - 2;
256
+ if (1 === f)
257
+ d.children = e;
258
+ else if (1 < f) {
259
+ g = Array(f);
260
+ for (var m = 0; m < f; m++)
261
+ g[m] = arguments[m + 2];
262
+ d.children = g;
263
+ }
264
+ return { $$typeof: l, type: a.type, key: c, ref: k, props: d, _owner: h };
265
+ };
266
+ exports2.createContext = function(a) {
267
+ a = { $$typeof: u, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null };
268
+ a.Provider = { $$typeof: t, _context: a };
269
+ return a.Consumer = a;
270
+ };
271
+ exports2.createElement = M;
272
+ exports2.createFactory = function(a) {
273
+ var b = M.bind(null, a);
274
+ b.type = a;
275
+ return b;
276
+ };
277
+ exports2.createRef = function() {
278
+ return { current: null };
279
+ };
280
+ exports2.forwardRef = function(a) {
281
+ return { $$typeof: v, render: a };
282
+ };
283
+ exports2.isValidElement = O;
284
+ exports2.lazy = function(a) {
285
+ return { $$typeof: y, _payload: { _status: -1, _result: a }, _init: T };
286
+ };
287
+ exports2.memo = function(a, b) {
288
+ return { $$typeof: x, type: a, compare: void 0 === b ? null : b };
289
+ };
290
+ exports2.startTransition = function(a) {
291
+ var b = V.transition;
292
+ V.transition = {};
293
+ try {
294
+ a();
295
+ } finally {
296
+ V.transition = b;
297
+ }
298
+ };
299
+ exports2.unstable_act = function() {
300
+ throw Error("act(...) is not supported in production builds of React.");
301
+ };
302
+ exports2.useCallback = function(a, b) {
303
+ return U.current.useCallback(a, b);
304
+ };
305
+ exports2.useContext = function(a) {
306
+ return U.current.useContext(a);
307
+ };
308
+ exports2.useDebugValue = function() {
309
+ };
310
+ exports2.useDeferredValue = function(a) {
311
+ return U.current.useDeferredValue(a);
312
+ };
313
+ exports2.useEffect = function(a, b) {
314
+ return U.current.useEffect(a, b);
315
+ };
316
+ exports2.useId = function() {
317
+ return U.current.useId();
318
+ };
319
+ exports2.useImperativeHandle = function(a, b, e) {
320
+ return U.current.useImperativeHandle(a, b, e);
321
+ };
322
+ exports2.useInsertionEffect = function(a, b) {
323
+ return U.current.useInsertionEffect(a, b);
324
+ };
325
+ exports2.useLayoutEffect = function(a, b) {
326
+ return U.current.useLayoutEffect(a, b);
327
+ };
328
+ exports2.useMemo = function(a, b) {
329
+ return U.current.useMemo(a, b);
330
+ };
331
+ exports2.useReducer = function(a, b, e) {
332
+ return U.current.useReducer(a, b, e);
333
+ };
334
+ exports2.useRef = function(a) {
335
+ return U.current.useRef(a);
336
+ };
337
+ exports2.useState = function(a) {
338
+ return U.current.useState(a);
339
+ };
340
+ exports2.useSyncExternalStore = function(a, b, e) {
341
+ return U.current.useSyncExternalStore(a, b, e);
342
+ };
343
+ exports2.useTransition = function() {
344
+ return U.current.useTransition();
345
+ };
346
+ exports2.version = "18.2.0";
347
+ }
348
+ });
349
+
350
+ // node_modules/react/cjs/react.development.js
351
+ var require_react_development = __commonJS({
352
+ "node_modules/react/cjs/react.development.js"(exports2, module2) {
353
+ "use strict";
354
+ if (process.env.NODE_ENV !== "production") {
355
+ (function() {
356
+ "use strict";
357
+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
358
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
359
+ }
360
+ var ReactVersion = "18.2.0";
361
+ var REACT_ELEMENT_TYPE = Symbol.for("react.element");
362
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
363
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
364
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
365
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
366
+ var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
367
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
368
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
369
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
370
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
371
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
372
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
373
+ var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
374
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
375
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
376
+ function getIteratorFn(maybeIterable) {
377
+ if (maybeIterable === null || typeof maybeIterable !== "object") {
378
+ return null;
379
+ }
380
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
381
+ if (typeof maybeIterator === "function") {
382
+ return maybeIterator;
383
+ }
384
+ return null;
385
+ }
386
+ var ReactCurrentDispatcher = {
387
+ /**
388
+ * @internal
389
+ * @type {ReactComponent}
390
+ */
391
+ current: null
392
+ };
393
+ var ReactCurrentBatchConfig = {
394
+ transition: null
395
+ };
396
+ var ReactCurrentActQueue = {
397
+ current: null,
398
+ // Used to reproduce behavior of `batchedUpdates` in legacy mode.
399
+ isBatchingLegacy: false,
400
+ didScheduleLegacyUpdate: false
401
+ };
402
+ var ReactCurrentOwner = {
403
+ /**
404
+ * @internal
405
+ * @type {ReactComponent}
406
+ */
407
+ current: null
408
+ };
409
+ var ReactDebugCurrentFrame = {};
410
+ var currentExtraStackFrame = null;
411
+ function setExtraStackFrame(stack) {
412
+ {
413
+ currentExtraStackFrame = stack;
414
+ }
415
+ }
416
+ {
417
+ ReactDebugCurrentFrame.setExtraStackFrame = function(stack) {
418
+ {
419
+ currentExtraStackFrame = stack;
420
+ }
421
+ };
422
+ ReactDebugCurrentFrame.getCurrentStack = null;
423
+ ReactDebugCurrentFrame.getStackAddendum = function() {
424
+ var stack = "";
425
+ if (currentExtraStackFrame) {
426
+ stack += currentExtraStackFrame;
427
+ }
428
+ var impl = ReactDebugCurrentFrame.getCurrentStack;
429
+ if (impl) {
430
+ stack += impl() || "";
431
+ }
432
+ return stack;
433
+ };
434
+ }
435
+ var enableScopeAPI = false;
436
+ var enableCacheElement = false;
437
+ var enableTransitionTracing = false;
438
+ var enableLegacyHidden = false;
439
+ var enableDebugTracing = false;
440
+ var ReactSharedInternals = {
441
+ ReactCurrentDispatcher,
442
+ ReactCurrentBatchConfig,
443
+ ReactCurrentOwner
444
+ };
445
+ {
446
+ ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
447
+ ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
448
+ }
449
+ function warn(format) {
450
+ {
451
+ {
452
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
453
+ args[_key - 1] = arguments[_key];
454
+ }
455
+ printWarning("warn", format, args);
456
+ }
457
+ }
458
+ }
459
+ function error(format) {
460
+ {
461
+ {
462
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
463
+ args[_key2 - 1] = arguments[_key2];
464
+ }
465
+ printWarning("error", format, args);
466
+ }
467
+ }
468
+ }
469
+ function printWarning(level, format, args) {
470
+ {
471
+ var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
472
+ var stack = ReactDebugCurrentFrame2.getStackAddendum();
473
+ if (stack !== "") {
474
+ format += "%s";
475
+ args = args.concat([stack]);
476
+ }
477
+ var argsWithFormat = args.map(function(item) {
478
+ return String(item);
479
+ });
480
+ argsWithFormat.unshift("Warning: " + format);
481
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
482
+ }
483
+ }
484
+ var didWarnStateUpdateForUnmountedComponent = {};
485
+ function warnNoop(publicInstance, callerName) {
486
+ {
487
+ var _constructor = publicInstance.constructor;
488
+ var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass";
489
+ var warningKey = componentName + "." + callerName;
490
+ if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
491
+ return;
492
+ }
493
+ 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);
494
+ didWarnStateUpdateForUnmountedComponent[warningKey] = true;
495
+ }
496
+ }
497
+ var ReactNoopUpdateQueue = {
498
+ /**
499
+ * Checks whether or not this composite component is mounted.
500
+ * @param {ReactClass} publicInstance The instance we want to test.
501
+ * @return {boolean} True if mounted, false otherwise.
502
+ * @protected
503
+ * @final
504
+ */
505
+ isMounted: function(publicInstance) {
506
+ return false;
507
+ },
508
+ /**
509
+ * Forces an update. This should only be invoked when it is known with
510
+ * certainty that we are **not** in a DOM transaction.
511
+ *
512
+ * You may want to call this when you know that some deeper aspect of the
513
+ * component's state has changed but `setState` was not called.
514
+ *
515
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
516
+ * `componentWillUpdate` and `componentDidUpdate`.
517
+ *
518
+ * @param {ReactClass} publicInstance The instance that should rerender.
519
+ * @param {?function} callback Called after component is updated.
520
+ * @param {?string} callerName name of the calling function in the public API.
521
+ * @internal
522
+ */
523
+ enqueueForceUpdate: function(publicInstance, callback, callerName) {
524
+ warnNoop(publicInstance, "forceUpdate");
525
+ },
526
+ /**
527
+ * Replaces all of the state. Always use this or `setState` to mutate state.
528
+ * You should treat `this.state` as immutable.
529
+ *
530
+ * There is no guarantee that `this.state` will be immediately updated, so
531
+ * accessing `this.state` after calling this method may return the old value.
532
+ *
533
+ * @param {ReactClass} publicInstance The instance that should rerender.
534
+ * @param {object} completeState Next state.
535
+ * @param {?function} callback Called after component is updated.
536
+ * @param {?string} callerName name of the calling function in the public API.
537
+ * @internal
538
+ */
539
+ enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
540
+ warnNoop(publicInstance, "replaceState");
541
+ },
542
+ /**
543
+ * Sets a subset of the state. This only exists because _pendingState is
544
+ * internal. This provides a merging strategy that is not available to deep
545
+ * properties which is confusing. TODO: Expose pendingState or don't use it
546
+ * during the merge.
547
+ *
548
+ * @param {ReactClass} publicInstance The instance that should rerender.
549
+ * @param {object} partialState Next partial state to be merged with state.
550
+ * @param {?function} callback Called after component is updated.
551
+ * @param {?string} Name of the calling function in the public API.
552
+ * @internal
553
+ */
554
+ enqueueSetState: function(publicInstance, partialState, callback, callerName) {
555
+ warnNoop(publicInstance, "setState");
556
+ }
557
+ };
558
+ var assign = Object.assign;
559
+ var emptyObject = {};
560
+ {
561
+ Object.freeze(emptyObject);
562
+ }
563
+ function Component(props, context, updater) {
564
+ this.props = props;
565
+ this.context = context;
566
+ this.refs = emptyObject;
567
+ this.updater = updater || ReactNoopUpdateQueue;
568
+ }
569
+ Component.prototype.isReactComponent = {};
570
+ Component.prototype.setState = function(partialState, callback) {
571
+ if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null) {
572
+ throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
573
+ }
574
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
575
+ };
576
+ Component.prototype.forceUpdate = function(callback) {
577
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
578
+ };
579
+ {
580
+ var deprecatedAPIs = {
581
+ isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
582
+ replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
583
+ };
584
+ var defineDeprecationWarning = function(methodName, info) {
585
+ Object.defineProperty(Component.prototype, methodName, {
586
+ get: function() {
587
+ warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
588
+ return void 0;
589
+ }
590
+ });
591
+ };
592
+ for (var fnName in deprecatedAPIs) {
593
+ if (deprecatedAPIs.hasOwnProperty(fnName)) {
594
+ defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
595
+ }
596
+ }
597
+ }
598
+ function ComponentDummy() {
599
+ }
600
+ ComponentDummy.prototype = Component.prototype;
601
+ function PureComponent(props, context, updater) {
602
+ this.props = props;
603
+ this.context = context;
604
+ this.refs = emptyObject;
605
+ this.updater = updater || ReactNoopUpdateQueue;
606
+ }
607
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
608
+ pureComponentPrototype.constructor = PureComponent;
609
+ assign(pureComponentPrototype, Component.prototype);
610
+ pureComponentPrototype.isPureReactComponent = true;
611
+ function createRef() {
612
+ var refObject = {
613
+ current: null
614
+ };
615
+ {
616
+ Object.seal(refObject);
617
+ }
618
+ return refObject;
619
+ }
620
+ var isArrayImpl = Array.isArray;
621
+ function isArray(a) {
622
+ return isArrayImpl(a);
623
+ }
624
+ function typeName(value) {
625
+ {
626
+ var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
627
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
628
+ return type;
629
+ }
630
+ }
631
+ function willCoercionThrow(value) {
632
+ {
633
+ try {
634
+ testStringCoercion(value);
635
+ return false;
636
+ } catch (e) {
637
+ return true;
638
+ }
639
+ }
640
+ }
641
+ function testStringCoercion(value) {
642
+ return "" + value;
643
+ }
644
+ function checkKeyStringCoercion(value) {
645
+ {
646
+ if (willCoercionThrow(value)) {
647
+ error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
648
+ return testStringCoercion(value);
649
+ }
650
+ }
651
+ }
652
+ function getWrappedName(outerType, innerType, wrapperName) {
653
+ var displayName = outerType.displayName;
654
+ if (displayName) {
655
+ return displayName;
656
+ }
657
+ var functionName = innerType.displayName || innerType.name || "";
658
+ return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
659
+ }
660
+ function getContextName(type) {
661
+ return type.displayName || "Context";
662
+ }
663
+ function getComponentNameFromType(type) {
664
+ if (type == null) {
665
+ return null;
666
+ }
667
+ {
668
+ if (typeof type.tag === "number") {
669
+ error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
670
+ }
671
+ }
672
+ if (typeof type === "function") {
673
+ return type.displayName || type.name || null;
674
+ }
675
+ if (typeof type === "string") {
676
+ return type;
677
+ }
678
+ switch (type) {
679
+ case REACT_FRAGMENT_TYPE:
680
+ return "Fragment";
681
+ case REACT_PORTAL_TYPE:
682
+ return "Portal";
683
+ case REACT_PROFILER_TYPE:
684
+ return "Profiler";
685
+ case REACT_STRICT_MODE_TYPE:
686
+ return "StrictMode";
687
+ case REACT_SUSPENSE_TYPE:
688
+ return "Suspense";
689
+ case REACT_SUSPENSE_LIST_TYPE:
690
+ return "SuspenseList";
691
+ }
692
+ if (typeof type === "object") {
693
+ switch (type.$$typeof) {
694
+ case REACT_CONTEXT_TYPE:
695
+ var context = type;
696
+ return getContextName(context) + ".Consumer";
697
+ case REACT_PROVIDER_TYPE:
698
+ var provider = type;
699
+ return getContextName(provider._context) + ".Provider";
700
+ case REACT_FORWARD_REF_TYPE:
701
+ return getWrappedName(type, type.render, "ForwardRef");
702
+ case REACT_MEMO_TYPE:
703
+ var outerName = type.displayName || null;
704
+ if (outerName !== null) {
705
+ return outerName;
706
+ }
707
+ return getComponentNameFromType(type.type) || "Memo";
708
+ case REACT_LAZY_TYPE: {
709
+ var lazyComponent = type;
710
+ var payload = lazyComponent._payload;
711
+ var init = lazyComponent._init;
712
+ try {
713
+ return getComponentNameFromType(init(payload));
714
+ } catch (x) {
715
+ return null;
716
+ }
717
+ }
718
+ }
719
+ }
720
+ return null;
721
+ }
722
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
723
+ var RESERVED_PROPS = {
724
+ key: true,
725
+ ref: true,
726
+ __self: true,
727
+ __source: true
728
+ };
729
+ var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
730
+ {
731
+ didWarnAboutStringRefs = {};
732
+ }
733
+ function hasValidRef(config) {
734
+ {
735
+ if (hasOwnProperty.call(config, "ref")) {
736
+ var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
737
+ if (getter && getter.isReactWarning) {
738
+ return false;
739
+ }
740
+ }
741
+ }
742
+ return config.ref !== void 0;
743
+ }
744
+ function hasValidKey(config) {
745
+ {
746
+ if (hasOwnProperty.call(config, "key")) {
747
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
748
+ if (getter && getter.isReactWarning) {
749
+ return false;
750
+ }
751
+ }
752
+ }
753
+ return config.key !== void 0;
754
+ }
755
+ function defineKeyPropWarningGetter(props, displayName) {
756
+ var warnAboutAccessingKey = function() {
757
+ {
758
+ if (!specialPropKeyWarningShown) {
759
+ specialPropKeyWarningShown = true;
760
+ 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);
761
+ }
762
+ }
763
+ };
764
+ warnAboutAccessingKey.isReactWarning = true;
765
+ Object.defineProperty(props, "key", {
766
+ get: warnAboutAccessingKey,
767
+ configurable: true
768
+ });
769
+ }
770
+ function defineRefPropWarningGetter(props, displayName) {
771
+ var warnAboutAccessingRef = function() {
772
+ {
773
+ if (!specialPropRefWarningShown) {
774
+ specialPropRefWarningShown = true;
775
+ 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);
776
+ }
777
+ }
778
+ };
779
+ warnAboutAccessingRef.isReactWarning = true;
780
+ Object.defineProperty(props, "ref", {
781
+ get: warnAboutAccessingRef,
782
+ configurable: true
783
+ });
784
+ }
785
+ function warnIfStringRefCannotBeAutoConverted(config) {
786
+ {
787
+ if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
788
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
789
+ if (!didWarnAboutStringRefs[componentName]) {
790
+ 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);
791
+ didWarnAboutStringRefs[componentName] = true;
792
+ }
793
+ }
794
+ }
795
+ }
796
+ var ReactElement = function(type, key, ref, self, source, owner, props) {
797
+ var element = {
798
+ // This tag allows us to uniquely identify this as a React Element
799
+ $$typeof: REACT_ELEMENT_TYPE,
800
+ // Built-in properties that belong on the element
801
+ type,
802
+ key,
803
+ ref,
804
+ props,
805
+ // Record the component responsible for creating this element.
806
+ _owner: owner
807
+ };
808
+ {
809
+ element._store = {};
810
+ Object.defineProperty(element._store, "validated", {
811
+ configurable: false,
812
+ enumerable: false,
813
+ writable: true,
814
+ value: false
815
+ });
816
+ Object.defineProperty(element, "_self", {
817
+ configurable: false,
818
+ enumerable: false,
819
+ writable: false,
820
+ value: self
821
+ });
822
+ Object.defineProperty(element, "_source", {
823
+ configurable: false,
824
+ enumerable: false,
825
+ writable: false,
826
+ value: source
827
+ });
828
+ if (Object.freeze) {
829
+ Object.freeze(element.props);
830
+ Object.freeze(element);
831
+ }
832
+ }
833
+ return element;
834
+ };
835
+ function createElement(type, config, children) {
836
+ var propName;
837
+ var props = {};
838
+ var key = null;
839
+ var ref = null;
840
+ var self = null;
841
+ var source = null;
842
+ if (config != null) {
843
+ if (hasValidRef(config)) {
844
+ ref = config.ref;
845
+ {
846
+ warnIfStringRefCannotBeAutoConverted(config);
847
+ }
848
+ }
849
+ if (hasValidKey(config)) {
850
+ {
851
+ checkKeyStringCoercion(config.key);
852
+ }
853
+ key = "" + config.key;
854
+ }
855
+ self = config.__self === void 0 ? null : config.__self;
856
+ source = config.__source === void 0 ? null : config.__source;
857
+ for (propName in config) {
858
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
859
+ props[propName] = config[propName];
860
+ }
861
+ }
862
+ }
863
+ var childrenLength = arguments.length - 2;
864
+ if (childrenLength === 1) {
865
+ props.children = children;
866
+ } else if (childrenLength > 1) {
867
+ var childArray = Array(childrenLength);
868
+ for (var i = 0; i < childrenLength; i++) {
869
+ childArray[i] = arguments[i + 2];
870
+ }
871
+ {
872
+ if (Object.freeze) {
873
+ Object.freeze(childArray);
874
+ }
875
+ }
876
+ props.children = childArray;
877
+ }
878
+ if (type && type.defaultProps) {
879
+ var defaultProps = type.defaultProps;
880
+ for (propName in defaultProps) {
881
+ if (props[propName] === void 0) {
882
+ props[propName] = defaultProps[propName];
883
+ }
884
+ }
885
+ }
886
+ {
887
+ if (key || ref) {
888
+ var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
889
+ if (key) {
890
+ defineKeyPropWarningGetter(props, displayName);
891
+ }
892
+ if (ref) {
893
+ defineRefPropWarningGetter(props, displayName);
894
+ }
895
+ }
896
+ }
897
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
898
+ }
899
+ function cloneAndReplaceKey(oldElement, newKey) {
900
+ var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
901
+ return newElement;
902
+ }
903
+ function cloneElement(element, config, children) {
904
+ if (element === null || element === void 0) {
905
+ throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
906
+ }
907
+ var propName;
908
+ var props = assign({}, element.props);
909
+ var key = element.key;
910
+ var ref = element.ref;
911
+ var self = element._self;
912
+ var source = element._source;
913
+ var owner = element._owner;
914
+ if (config != null) {
915
+ if (hasValidRef(config)) {
916
+ ref = config.ref;
917
+ owner = ReactCurrentOwner.current;
918
+ }
919
+ if (hasValidKey(config)) {
920
+ {
921
+ checkKeyStringCoercion(config.key);
922
+ }
923
+ key = "" + config.key;
924
+ }
925
+ var defaultProps;
926
+ if (element.type && element.type.defaultProps) {
927
+ defaultProps = element.type.defaultProps;
928
+ }
929
+ for (propName in config) {
930
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
931
+ if (config[propName] === void 0 && defaultProps !== void 0) {
932
+ props[propName] = defaultProps[propName];
933
+ } else {
934
+ props[propName] = config[propName];
935
+ }
936
+ }
937
+ }
938
+ }
939
+ var childrenLength = arguments.length - 2;
940
+ if (childrenLength === 1) {
941
+ props.children = children;
942
+ } else if (childrenLength > 1) {
943
+ var childArray = Array(childrenLength);
944
+ for (var i = 0; i < childrenLength; i++) {
945
+ childArray[i] = arguments[i + 2];
946
+ }
947
+ props.children = childArray;
948
+ }
949
+ return ReactElement(element.type, key, ref, self, source, owner, props);
950
+ }
951
+ function isValidElement(object) {
952
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
953
+ }
954
+ var SEPARATOR = ".";
955
+ var SUBSEPARATOR = ":";
956
+ function escape(key) {
957
+ var escapeRegex = /[=:]/g;
958
+ var escaperLookup = {
959
+ "=": "=0",
960
+ ":": "=2"
961
+ };
962
+ var escapedString = key.replace(escapeRegex, function(match) {
963
+ return escaperLookup[match];
964
+ });
965
+ return "$" + escapedString;
966
+ }
967
+ var didWarnAboutMaps = false;
968
+ var userProvidedKeyEscapeRegex = /\/+/g;
969
+ function escapeUserProvidedKey(text) {
970
+ return text.replace(userProvidedKeyEscapeRegex, "$&/");
971
+ }
972
+ function getElementKey(element, index) {
973
+ if (typeof element === "object" && element !== null && element.key != null) {
974
+ {
975
+ checkKeyStringCoercion(element.key);
976
+ }
977
+ return escape("" + element.key);
978
+ }
979
+ return index.toString(36);
980
+ }
981
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
982
+ var type = typeof children;
983
+ if (type === "undefined" || type === "boolean") {
984
+ children = null;
985
+ }
986
+ var invokeCallback = false;
987
+ if (children === null) {
988
+ invokeCallback = true;
989
+ } else {
990
+ switch (type) {
991
+ case "string":
992
+ case "number":
993
+ invokeCallback = true;
994
+ break;
995
+ case "object":
996
+ switch (children.$$typeof) {
997
+ case REACT_ELEMENT_TYPE:
998
+ case REACT_PORTAL_TYPE:
999
+ invokeCallback = true;
1000
+ }
1001
+ }
1002
+ }
1003
+ if (invokeCallback) {
1004
+ var _child = children;
1005
+ var mappedChild = callback(_child);
1006
+ var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
1007
+ if (isArray(mappedChild)) {
1008
+ var escapedChildKey = "";
1009
+ if (childKey != null) {
1010
+ escapedChildKey = escapeUserProvidedKey(childKey) + "/";
1011
+ }
1012
+ mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) {
1013
+ return c;
1014
+ });
1015
+ } else if (mappedChild != null) {
1016
+ if (isValidElement(mappedChild)) {
1017
+ {
1018
+ if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
1019
+ checkKeyStringCoercion(mappedChild.key);
1020
+ }
1021
+ }
1022
+ mappedChild = cloneAndReplaceKey(
1023
+ mappedChild,
1024
+ // Keep both the (mapped) and old keys if they differ, just as
1025
+ // traverseAllChildren used to do for objects as children
1026
+ escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
1027
+ (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? (
1028
+ // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
1029
+ // eslint-disable-next-line react-internal/safe-string-coercion
1030
+ escapeUserProvidedKey("" + mappedChild.key) + "/"
1031
+ ) : "") + childKey
1032
+ );
1033
+ }
1034
+ array.push(mappedChild);
1035
+ }
1036
+ return 1;
1037
+ }
1038
+ var child;
1039
+ var nextName;
1040
+ var subtreeCount = 0;
1041
+ var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
1042
+ if (isArray(children)) {
1043
+ for (var i = 0; i < children.length; i++) {
1044
+ child = children[i];
1045
+ nextName = nextNamePrefix + getElementKey(child, i);
1046
+ subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1047
+ }
1048
+ } else {
1049
+ var iteratorFn = getIteratorFn(children);
1050
+ if (typeof iteratorFn === "function") {
1051
+ var iterableChildren = children;
1052
+ {
1053
+ if (iteratorFn === iterableChildren.entries) {
1054
+ if (!didWarnAboutMaps) {
1055
+ warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");
1056
+ }
1057
+ didWarnAboutMaps = true;
1058
+ }
1059
+ }
1060
+ var iterator = iteratorFn.call(iterableChildren);
1061
+ var step;
1062
+ var ii = 0;
1063
+ while (!(step = iterator.next()).done) {
1064
+ child = step.value;
1065
+ nextName = nextNamePrefix + getElementKey(child, ii++);
1066
+ subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1067
+ }
1068
+ } else if (type === "object") {
1069
+ var childrenString = String(children);
1070
+ 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.");
1071
+ }
1072
+ }
1073
+ return subtreeCount;
1074
+ }
1075
+ function mapChildren(children, func, context) {
1076
+ if (children == null) {
1077
+ return children;
1078
+ }
1079
+ var result = [];
1080
+ var count = 0;
1081
+ mapIntoArray(children, result, "", "", function(child) {
1082
+ return func.call(context, child, count++);
1083
+ });
1084
+ return result;
1085
+ }
1086
+ function countChildren(children) {
1087
+ var n = 0;
1088
+ mapChildren(children, function() {
1089
+ n++;
1090
+ });
1091
+ return n;
1092
+ }
1093
+ function forEachChildren(children, forEachFunc, forEachContext) {
1094
+ mapChildren(children, function() {
1095
+ forEachFunc.apply(this, arguments);
1096
+ }, forEachContext);
1097
+ }
1098
+ function toArray(children) {
1099
+ return mapChildren(children, function(child) {
1100
+ return child;
1101
+ }) || [];
1102
+ }
1103
+ function onlyChild(children) {
1104
+ if (!isValidElement(children)) {
1105
+ throw new Error("React.Children.only expected to receive a single React element child.");
1106
+ }
1107
+ return children;
1108
+ }
1109
+ function createContext(defaultValue) {
1110
+ var context = {
1111
+ $$typeof: REACT_CONTEXT_TYPE,
1112
+ // As a workaround to support multiple concurrent renderers, we categorize
1113
+ // some renderers as primary and others as secondary. We only expect
1114
+ // there to be two concurrent renderers at most: React Native (primary) and
1115
+ // Fabric (secondary); React DOM (primary) and React ART (secondary).
1116
+ // Secondary renderers store their context values on separate fields.
1117
+ _currentValue: defaultValue,
1118
+ _currentValue2: defaultValue,
1119
+ // Used to track how many concurrent renderers this context currently
1120
+ // supports within in a single renderer. Such as parallel server rendering.
1121
+ _threadCount: 0,
1122
+ // These are circular
1123
+ Provider: null,
1124
+ Consumer: null,
1125
+ // Add these to use same hidden class in VM as ServerContext
1126
+ _defaultValue: null,
1127
+ _globalName: null
1128
+ };
1129
+ context.Provider = {
1130
+ $$typeof: REACT_PROVIDER_TYPE,
1131
+ _context: context
1132
+ };
1133
+ var hasWarnedAboutUsingNestedContextConsumers = false;
1134
+ var hasWarnedAboutUsingConsumerProvider = false;
1135
+ var hasWarnedAboutDisplayNameOnConsumer = false;
1136
+ {
1137
+ var Consumer = {
1138
+ $$typeof: REACT_CONTEXT_TYPE,
1139
+ _context: context
1140
+ };
1141
+ Object.defineProperties(Consumer, {
1142
+ Provider: {
1143
+ get: function() {
1144
+ if (!hasWarnedAboutUsingConsumerProvider) {
1145
+ hasWarnedAboutUsingConsumerProvider = true;
1146
+ 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?");
1147
+ }
1148
+ return context.Provider;
1149
+ },
1150
+ set: function(_Provider) {
1151
+ context.Provider = _Provider;
1152
+ }
1153
+ },
1154
+ _currentValue: {
1155
+ get: function() {
1156
+ return context._currentValue;
1157
+ },
1158
+ set: function(_currentValue) {
1159
+ context._currentValue = _currentValue;
1160
+ }
1161
+ },
1162
+ _currentValue2: {
1163
+ get: function() {
1164
+ return context._currentValue2;
1165
+ },
1166
+ set: function(_currentValue2) {
1167
+ context._currentValue2 = _currentValue2;
1168
+ }
1169
+ },
1170
+ _threadCount: {
1171
+ get: function() {
1172
+ return context._threadCount;
1173
+ },
1174
+ set: function(_threadCount) {
1175
+ context._threadCount = _threadCount;
1176
+ }
1177
+ },
1178
+ Consumer: {
1179
+ get: function() {
1180
+ if (!hasWarnedAboutUsingNestedContextConsumers) {
1181
+ hasWarnedAboutUsingNestedContextConsumers = true;
1182
+ 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?");
1183
+ }
1184
+ return context.Consumer;
1185
+ }
1186
+ },
1187
+ displayName: {
1188
+ get: function() {
1189
+ return context.displayName;
1190
+ },
1191
+ set: function(displayName) {
1192
+ if (!hasWarnedAboutDisplayNameOnConsumer) {
1193
+ warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName);
1194
+ hasWarnedAboutDisplayNameOnConsumer = true;
1195
+ }
1196
+ }
1197
+ }
1198
+ });
1199
+ context.Consumer = Consumer;
1200
+ }
1201
+ {
1202
+ context._currentRenderer = null;
1203
+ context._currentRenderer2 = null;
1204
+ }
1205
+ return context;
1206
+ }
1207
+ var Uninitialized = -1;
1208
+ var Pending = 0;
1209
+ var Resolved = 1;
1210
+ var Rejected = 2;
1211
+ function lazyInitializer(payload) {
1212
+ if (payload._status === Uninitialized) {
1213
+ var ctor = payload._result;
1214
+ var thenable = ctor();
1215
+ thenable.then(function(moduleObject2) {
1216
+ if (payload._status === Pending || payload._status === Uninitialized) {
1217
+ var resolved = payload;
1218
+ resolved._status = Resolved;
1219
+ resolved._result = moduleObject2;
1220
+ }
1221
+ }, function(error2) {
1222
+ if (payload._status === Pending || payload._status === Uninitialized) {
1223
+ var rejected = payload;
1224
+ rejected._status = Rejected;
1225
+ rejected._result = error2;
1226
+ }
1227
+ });
1228
+ if (payload._status === Uninitialized) {
1229
+ var pending = payload;
1230
+ pending._status = Pending;
1231
+ pending._result = thenable;
1232
+ }
1233
+ }
1234
+ if (payload._status === Resolved) {
1235
+ var moduleObject = payload._result;
1236
+ {
1237
+ if (moduleObject === void 0) {
1238
+ error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", moduleObject);
1239
+ }
1240
+ }
1241
+ {
1242
+ if (!("default" in moduleObject)) {
1243
+ error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
1244
+ }
1245
+ }
1246
+ return moduleObject.default;
1247
+ } else {
1248
+ throw payload._result;
1249
+ }
1250
+ }
1251
+ function lazy(ctor) {
1252
+ var payload = {
1253
+ // We use these fields to store the result.
1254
+ _status: Uninitialized,
1255
+ _result: ctor
1256
+ };
1257
+ var lazyType = {
1258
+ $$typeof: REACT_LAZY_TYPE,
1259
+ _payload: payload,
1260
+ _init: lazyInitializer
1261
+ };
1262
+ {
1263
+ var defaultProps;
1264
+ var propTypes;
1265
+ Object.defineProperties(lazyType, {
1266
+ defaultProps: {
1267
+ configurable: true,
1268
+ get: function() {
1269
+ return defaultProps;
1270
+ },
1271
+ set: function(newDefaultProps) {
1272
+ 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.");
1273
+ defaultProps = newDefaultProps;
1274
+ Object.defineProperty(lazyType, "defaultProps", {
1275
+ enumerable: true
1276
+ });
1277
+ }
1278
+ },
1279
+ propTypes: {
1280
+ configurable: true,
1281
+ get: function() {
1282
+ return propTypes;
1283
+ },
1284
+ set: function(newPropTypes) {
1285
+ 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.");
1286
+ propTypes = newPropTypes;
1287
+ Object.defineProperty(lazyType, "propTypes", {
1288
+ enumerable: true
1289
+ });
1290
+ }
1291
+ }
1292
+ });
1293
+ }
1294
+ return lazyType;
1295
+ }
1296
+ function forwardRef(render) {
1297
+ {
1298
+ if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
1299
+ error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
1300
+ } else if (typeof render !== "function") {
1301
+ error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render);
1302
+ } else {
1303
+ if (render.length !== 0 && render.length !== 2) {
1304
+ 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.");
1305
+ }
1306
+ }
1307
+ if (render != null) {
1308
+ if (render.defaultProps != null || render.propTypes != null) {
1309
+ error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
1310
+ }
1311
+ }
1312
+ }
1313
+ var elementType = {
1314
+ $$typeof: REACT_FORWARD_REF_TYPE,
1315
+ render
1316
+ };
1317
+ {
1318
+ var ownName;
1319
+ Object.defineProperty(elementType, "displayName", {
1320
+ enumerable: false,
1321
+ configurable: true,
1322
+ get: function() {
1323
+ return ownName;
1324
+ },
1325
+ set: function(name) {
1326
+ ownName = name;
1327
+ if (!render.name && !render.displayName) {
1328
+ render.displayName = name;
1329
+ }
1330
+ }
1331
+ });
1332
+ }
1333
+ return elementType;
1334
+ }
1335
+ var REACT_MODULE_REFERENCE;
1336
+ {
1337
+ REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
1338
+ }
1339
+ function isValidElementType(type) {
1340
+ if (typeof type === "string" || typeof type === "function") {
1341
+ return true;
1342
+ }
1343
+ 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) {
1344
+ return true;
1345
+ }
1346
+ if (typeof type === "object" && type !== null) {
1347
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
1348
+ // types supported by any Flight configuration anywhere since
1349
+ // we don't know which Flight build this will end up being used
1350
+ // with.
1351
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
1352
+ return true;
1353
+ }
1354
+ }
1355
+ return false;
1356
+ }
1357
+ function memo(type, compare) {
1358
+ {
1359
+ if (!isValidElementType(type)) {
1360
+ error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
1361
+ }
1362
+ }
1363
+ var elementType = {
1364
+ $$typeof: REACT_MEMO_TYPE,
1365
+ type,
1366
+ compare: compare === void 0 ? null : compare
1367
+ };
1368
+ {
1369
+ var ownName;
1370
+ Object.defineProperty(elementType, "displayName", {
1371
+ enumerable: false,
1372
+ configurable: true,
1373
+ get: function() {
1374
+ return ownName;
1375
+ },
1376
+ set: function(name) {
1377
+ ownName = name;
1378
+ if (!type.name && !type.displayName) {
1379
+ type.displayName = name;
1380
+ }
1381
+ }
1382
+ });
1383
+ }
1384
+ return elementType;
1385
+ }
1386
+ function resolveDispatcher() {
1387
+ var dispatcher = ReactCurrentDispatcher.current;
1388
+ {
1389
+ if (dispatcher === null) {
1390
+ error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");
1391
+ }
1392
+ }
1393
+ return dispatcher;
1394
+ }
1395
+ function useContext(Context) {
1396
+ var dispatcher = resolveDispatcher();
1397
+ {
1398
+ if (Context._context !== void 0) {
1399
+ var realContext = Context._context;
1400
+ if (realContext.Consumer === Context) {
1401
+ 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?");
1402
+ } else if (realContext.Provider === Context) {
1403
+ error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
1404
+ }
1405
+ }
1406
+ }
1407
+ return dispatcher.useContext(Context);
1408
+ }
1409
+ function useState(initialState) {
1410
+ var dispatcher = resolveDispatcher();
1411
+ return dispatcher.useState(initialState);
1412
+ }
1413
+ function useReducer(reducer, initialArg, init) {
1414
+ var dispatcher = resolveDispatcher();
1415
+ return dispatcher.useReducer(reducer, initialArg, init);
1416
+ }
1417
+ function useRef(initialValue) {
1418
+ var dispatcher = resolveDispatcher();
1419
+ return dispatcher.useRef(initialValue);
1420
+ }
1421
+ function useEffect(create, deps) {
1422
+ var dispatcher = resolveDispatcher();
1423
+ return dispatcher.useEffect(create, deps);
1424
+ }
1425
+ function useInsertionEffect(create, deps) {
1426
+ var dispatcher = resolveDispatcher();
1427
+ return dispatcher.useInsertionEffect(create, deps);
1428
+ }
1429
+ function useLayoutEffect(create, deps) {
1430
+ var dispatcher = resolveDispatcher();
1431
+ return dispatcher.useLayoutEffect(create, deps);
1432
+ }
1433
+ function useCallback(callback, deps) {
1434
+ var dispatcher = resolveDispatcher();
1435
+ return dispatcher.useCallback(callback, deps);
1436
+ }
1437
+ function useMemo(create, deps) {
1438
+ var dispatcher = resolveDispatcher();
1439
+ return dispatcher.useMemo(create, deps);
1440
+ }
1441
+ function useImperativeHandle(ref, create, deps) {
1442
+ var dispatcher = resolveDispatcher();
1443
+ return dispatcher.useImperativeHandle(ref, create, deps);
1444
+ }
1445
+ function useDebugValue(value, formatterFn) {
1446
+ {
1447
+ var dispatcher = resolveDispatcher();
1448
+ return dispatcher.useDebugValue(value, formatterFn);
1449
+ }
1450
+ }
1451
+ function useTransition() {
1452
+ var dispatcher = resolveDispatcher();
1453
+ return dispatcher.useTransition();
1454
+ }
1455
+ function useDeferredValue(value) {
1456
+ var dispatcher = resolveDispatcher();
1457
+ return dispatcher.useDeferredValue(value);
1458
+ }
1459
+ function useId() {
1460
+ var dispatcher = resolveDispatcher();
1461
+ return dispatcher.useId();
1462
+ }
1463
+ function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
1464
+ var dispatcher = resolveDispatcher();
1465
+ return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
1466
+ }
1467
+ var disabledDepth = 0;
1468
+ var prevLog;
1469
+ var prevInfo;
1470
+ var prevWarn;
1471
+ var prevError;
1472
+ var prevGroup;
1473
+ var prevGroupCollapsed;
1474
+ var prevGroupEnd;
1475
+ function disabledLog() {
1476
+ }
1477
+ disabledLog.__reactDisabledLog = true;
1478
+ function disableLogs() {
1479
+ {
1480
+ if (disabledDepth === 0) {
1481
+ prevLog = console.log;
1482
+ prevInfo = console.info;
1483
+ prevWarn = console.warn;
1484
+ prevError = console.error;
1485
+ prevGroup = console.group;
1486
+ prevGroupCollapsed = console.groupCollapsed;
1487
+ prevGroupEnd = console.groupEnd;
1488
+ var props = {
1489
+ configurable: true,
1490
+ enumerable: true,
1491
+ value: disabledLog,
1492
+ writable: true
1493
+ };
1494
+ Object.defineProperties(console, {
1495
+ info: props,
1496
+ log: props,
1497
+ warn: props,
1498
+ error: props,
1499
+ group: props,
1500
+ groupCollapsed: props,
1501
+ groupEnd: props
1502
+ });
1503
+ }
1504
+ disabledDepth++;
1505
+ }
1506
+ }
1507
+ function reenableLogs() {
1508
+ {
1509
+ disabledDepth--;
1510
+ if (disabledDepth === 0) {
1511
+ var props = {
1512
+ configurable: true,
1513
+ enumerable: true,
1514
+ writable: true
1515
+ };
1516
+ Object.defineProperties(console, {
1517
+ log: assign({}, props, {
1518
+ value: prevLog
1519
+ }),
1520
+ info: assign({}, props, {
1521
+ value: prevInfo
1522
+ }),
1523
+ warn: assign({}, props, {
1524
+ value: prevWarn
1525
+ }),
1526
+ error: assign({}, props, {
1527
+ value: prevError
1528
+ }),
1529
+ group: assign({}, props, {
1530
+ value: prevGroup
1531
+ }),
1532
+ groupCollapsed: assign({}, props, {
1533
+ value: prevGroupCollapsed
1534
+ }),
1535
+ groupEnd: assign({}, props, {
1536
+ value: prevGroupEnd
1537
+ })
1538
+ });
1539
+ }
1540
+ if (disabledDepth < 0) {
1541
+ error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1542
+ }
1543
+ }
1544
+ }
1545
+ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
1546
+ var prefix;
1547
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
1548
+ {
1549
+ if (prefix === void 0) {
1550
+ try {
1551
+ throw Error();
1552
+ } catch (x) {
1553
+ var match = x.stack.trim().match(/\n( *(at )?)/);
1554
+ prefix = match && match[1] || "";
1555
+ }
1556
+ }
1557
+ return "\n" + prefix + name;
1558
+ }
1559
+ }
1560
+ var reentry = false;
1561
+ var componentFrameCache;
1562
+ {
1563
+ var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
1564
+ componentFrameCache = new PossiblyWeakMap();
1565
+ }
1566
+ function describeNativeComponentFrame(fn, construct) {
1567
+ if (!fn || reentry) {
1568
+ return "";
1569
+ }
1570
+ {
1571
+ var frame = componentFrameCache.get(fn);
1572
+ if (frame !== void 0) {
1573
+ return frame;
1574
+ }
1575
+ }
1576
+ var control;
1577
+ reentry = true;
1578
+ var previousPrepareStackTrace = Error.prepareStackTrace;
1579
+ Error.prepareStackTrace = void 0;
1580
+ var previousDispatcher;
1581
+ {
1582
+ previousDispatcher = ReactCurrentDispatcher$1.current;
1583
+ ReactCurrentDispatcher$1.current = null;
1584
+ disableLogs();
1585
+ }
1586
+ try {
1587
+ if (construct) {
1588
+ var Fake = function() {
1589
+ throw Error();
1590
+ };
1591
+ Object.defineProperty(Fake.prototype, "props", {
1592
+ set: function() {
1593
+ throw Error();
1594
+ }
1595
+ });
1596
+ if (typeof Reflect === "object" && Reflect.construct) {
1597
+ try {
1598
+ Reflect.construct(Fake, []);
1599
+ } catch (x) {
1600
+ control = x;
1601
+ }
1602
+ Reflect.construct(fn, [], Fake);
1603
+ } else {
1604
+ try {
1605
+ Fake.call();
1606
+ } catch (x) {
1607
+ control = x;
1608
+ }
1609
+ fn.call(Fake.prototype);
1610
+ }
1611
+ } else {
1612
+ try {
1613
+ throw Error();
1614
+ } catch (x) {
1615
+ control = x;
1616
+ }
1617
+ fn();
1618
+ }
1619
+ } catch (sample) {
1620
+ if (sample && control && typeof sample.stack === "string") {
1621
+ var sampleLines = sample.stack.split("\n");
1622
+ var controlLines = control.stack.split("\n");
1623
+ var s = sampleLines.length - 1;
1624
+ var c = controlLines.length - 1;
1625
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
1626
+ c--;
1627
+ }
1628
+ for (; s >= 1 && c >= 0; s--, c--) {
1629
+ if (sampleLines[s] !== controlLines[c]) {
1630
+ if (s !== 1 || c !== 1) {
1631
+ do {
1632
+ s--;
1633
+ c--;
1634
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
1635
+ var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
1636
+ if (fn.displayName && _frame.includes("<anonymous>")) {
1637
+ _frame = _frame.replace("<anonymous>", fn.displayName);
1638
+ }
1639
+ {
1640
+ if (typeof fn === "function") {
1641
+ componentFrameCache.set(fn, _frame);
1642
+ }
1643
+ }
1644
+ return _frame;
1645
+ }
1646
+ } while (s >= 1 && c >= 0);
1647
+ }
1648
+ break;
1649
+ }
1650
+ }
1651
+ }
1652
+ } finally {
1653
+ reentry = false;
1654
+ {
1655
+ ReactCurrentDispatcher$1.current = previousDispatcher;
1656
+ reenableLogs();
1657
+ }
1658
+ Error.prepareStackTrace = previousPrepareStackTrace;
1659
+ }
1660
+ var name = fn ? fn.displayName || fn.name : "";
1661
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
1662
+ {
1663
+ if (typeof fn === "function") {
1664
+ componentFrameCache.set(fn, syntheticFrame);
1665
+ }
1666
+ }
1667
+ return syntheticFrame;
1668
+ }
1669
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
1670
+ {
1671
+ return describeNativeComponentFrame(fn, false);
1672
+ }
1673
+ }
1674
+ function shouldConstruct(Component2) {
1675
+ var prototype = Component2.prototype;
1676
+ return !!(prototype && prototype.isReactComponent);
1677
+ }
1678
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
1679
+ if (type == null) {
1680
+ return "";
1681
+ }
1682
+ if (typeof type === "function") {
1683
+ {
1684
+ return describeNativeComponentFrame(type, shouldConstruct(type));
1685
+ }
1686
+ }
1687
+ if (typeof type === "string") {
1688
+ return describeBuiltInComponentFrame(type);
1689
+ }
1690
+ switch (type) {
1691
+ case REACT_SUSPENSE_TYPE:
1692
+ return describeBuiltInComponentFrame("Suspense");
1693
+ case REACT_SUSPENSE_LIST_TYPE:
1694
+ return describeBuiltInComponentFrame("SuspenseList");
1695
+ }
1696
+ if (typeof type === "object") {
1697
+ switch (type.$$typeof) {
1698
+ case REACT_FORWARD_REF_TYPE:
1699
+ return describeFunctionComponentFrame(type.render);
1700
+ case REACT_MEMO_TYPE:
1701
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
1702
+ case REACT_LAZY_TYPE: {
1703
+ var lazyComponent = type;
1704
+ var payload = lazyComponent._payload;
1705
+ var init = lazyComponent._init;
1706
+ try {
1707
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
1708
+ } catch (x) {
1709
+ }
1710
+ }
1711
+ }
1712
+ }
1713
+ return "";
1714
+ }
1715
+ var loggedTypeFailures = {};
1716
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
1717
+ function setCurrentlyValidatingElement(element) {
1718
+ {
1719
+ if (element) {
1720
+ var owner = element._owner;
1721
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1722
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
1723
+ } else {
1724
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
1725
+ }
1726
+ }
1727
+ }
1728
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
1729
+ {
1730
+ var has = Function.call.bind(hasOwnProperty);
1731
+ for (var typeSpecName in typeSpecs) {
1732
+ if (has(typeSpecs, typeSpecName)) {
1733
+ var error$1 = void 0;
1734
+ try {
1735
+ if (typeof typeSpecs[typeSpecName] !== "function") {
1736
+ 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`.");
1737
+ err.name = "Invariant Violation";
1738
+ throw err;
1739
+ }
1740
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1741
+ } catch (ex) {
1742
+ error$1 = ex;
1743
+ }
1744
+ if (error$1 && !(error$1 instanceof Error)) {
1745
+ setCurrentlyValidatingElement(element);
1746
+ 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);
1747
+ setCurrentlyValidatingElement(null);
1748
+ }
1749
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
1750
+ loggedTypeFailures[error$1.message] = true;
1751
+ setCurrentlyValidatingElement(element);
1752
+ error("Failed %s type: %s", location, error$1.message);
1753
+ setCurrentlyValidatingElement(null);
1754
+ }
1755
+ }
1756
+ }
1757
+ }
1758
+ }
1759
+ function setCurrentlyValidatingElement$1(element) {
1760
+ {
1761
+ if (element) {
1762
+ var owner = element._owner;
1763
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1764
+ setExtraStackFrame(stack);
1765
+ } else {
1766
+ setExtraStackFrame(null);
1767
+ }
1768
+ }
1769
+ }
1770
+ var propTypesMisspellWarningShown;
1771
+ {
1772
+ propTypesMisspellWarningShown = false;
1773
+ }
1774
+ function getDeclarationErrorAddendum() {
1775
+ if (ReactCurrentOwner.current) {
1776
+ var name = getComponentNameFromType(ReactCurrentOwner.current.type);
1777
+ if (name) {
1778
+ return "\n\nCheck the render method of `" + name + "`.";
1779
+ }
1780
+ }
1781
+ return "";
1782
+ }
1783
+ function getSourceInfoErrorAddendum(source) {
1784
+ if (source !== void 0) {
1785
+ var fileName = source.fileName.replace(/^.*[\\\/]/, "");
1786
+ var lineNumber = source.lineNumber;
1787
+ return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
1788
+ }
1789
+ return "";
1790
+ }
1791
+ function getSourceInfoErrorAddendumForProps(elementProps) {
1792
+ if (elementProps !== null && elementProps !== void 0) {
1793
+ return getSourceInfoErrorAddendum(elementProps.__source);
1794
+ }
1795
+ return "";
1796
+ }
1797
+ var ownerHasKeyUseWarning = {};
1798
+ function getCurrentComponentErrorInfo(parentType) {
1799
+ var info = getDeclarationErrorAddendum();
1800
+ if (!info) {
1801
+ var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
1802
+ if (parentName) {
1803
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1804
+ }
1805
+ }
1806
+ return info;
1807
+ }
1808
+ function validateExplicitKey(element, parentType) {
1809
+ if (!element._store || element._store.validated || element.key != null) {
1810
+ return;
1811
+ }
1812
+ element._store.validated = true;
1813
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1814
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1815
+ return;
1816
+ }
1817
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
1818
+ var childOwner = "";
1819
+ if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1820
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1821
+ }
1822
+ {
1823
+ setCurrentlyValidatingElement$1(element);
1824
+ 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);
1825
+ setCurrentlyValidatingElement$1(null);
1826
+ }
1827
+ }
1828
+ function validateChildKeys(node, parentType) {
1829
+ if (typeof node !== "object") {
1830
+ return;
1831
+ }
1832
+ if (isArray(node)) {
1833
+ for (var i = 0; i < node.length; i++) {
1834
+ var child = node[i];
1835
+ if (isValidElement(child)) {
1836
+ validateExplicitKey(child, parentType);
1837
+ }
1838
+ }
1839
+ } else if (isValidElement(node)) {
1840
+ if (node._store) {
1841
+ node._store.validated = true;
1842
+ }
1843
+ } else if (node) {
1844
+ var iteratorFn = getIteratorFn(node);
1845
+ if (typeof iteratorFn === "function") {
1846
+ if (iteratorFn !== node.entries) {
1847
+ var iterator = iteratorFn.call(node);
1848
+ var step;
1849
+ while (!(step = iterator.next()).done) {
1850
+ if (isValidElement(step.value)) {
1851
+ validateExplicitKey(step.value, parentType);
1852
+ }
1853
+ }
1854
+ }
1855
+ }
1856
+ }
1857
+ }
1858
+ function validatePropTypes(element) {
1859
+ {
1860
+ var type = element.type;
1861
+ if (type === null || type === void 0 || typeof type === "string") {
1862
+ return;
1863
+ }
1864
+ var propTypes;
1865
+ if (typeof type === "function") {
1866
+ propTypes = type.propTypes;
1867
+ } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
1868
+ // Inner props are checked in the reconciler.
1869
+ type.$$typeof === REACT_MEMO_TYPE)) {
1870
+ propTypes = type.propTypes;
1871
+ } else {
1872
+ return;
1873
+ }
1874
+ if (propTypes) {
1875
+ var name = getComponentNameFromType(type);
1876
+ checkPropTypes(propTypes, element.props, "prop", name, element);
1877
+ } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
1878
+ propTypesMisspellWarningShown = true;
1879
+ var _name = getComponentNameFromType(type);
1880
+ error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
1881
+ }
1882
+ if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
1883
+ error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1884
+ }
1885
+ }
1886
+ }
1887
+ function validateFragmentProps(fragment) {
1888
+ {
1889
+ var keys = Object.keys(fragment.props);
1890
+ for (var i = 0; i < keys.length; i++) {
1891
+ var key = keys[i];
1892
+ if (key !== "children" && key !== "key") {
1893
+ setCurrentlyValidatingElement$1(fragment);
1894
+ error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
1895
+ setCurrentlyValidatingElement$1(null);
1896
+ break;
1897
+ }
1898
+ }
1899
+ if (fragment.ref !== null) {
1900
+ setCurrentlyValidatingElement$1(fragment);
1901
+ error("Invalid attribute `ref` supplied to `React.Fragment`.");
1902
+ setCurrentlyValidatingElement$1(null);
1903
+ }
1904
+ }
1905
+ }
1906
+ function createElementWithValidation(type, props, children) {
1907
+ var validType = isValidElementType(type);
1908
+ if (!validType) {
1909
+ var info = "";
1910
+ if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
1911
+ 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.";
1912
+ }
1913
+ var sourceInfo = getSourceInfoErrorAddendumForProps(props);
1914
+ if (sourceInfo) {
1915
+ info += sourceInfo;
1916
+ } else {
1917
+ info += getDeclarationErrorAddendum();
1918
+ }
1919
+ var typeString;
1920
+ if (type === null) {
1921
+ typeString = "null";
1922
+ } else if (isArray(type)) {
1923
+ typeString = "array";
1924
+ } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
1925
+ typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
1926
+ info = " Did you accidentally export a JSX literal instead of a component?";
1927
+ } else {
1928
+ typeString = typeof type;
1929
+ }
1930
+ {
1931
+ 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);
1932
+ }
1933
+ }
1934
+ var element = createElement.apply(this, arguments);
1935
+ if (element == null) {
1936
+ return element;
1937
+ }
1938
+ if (validType) {
1939
+ for (var i = 2; i < arguments.length; i++) {
1940
+ validateChildKeys(arguments[i], type);
1941
+ }
1942
+ }
1943
+ if (type === REACT_FRAGMENT_TYPE) {
1944
+ validateFragmentProps(element);
1945
+ } else {
1946
+ validatePropTypes(element);
1947
+ }
1948
+ return element;
1949
+ }
1950
+ var didWarnAboutDeprecatedCreateFactory = false;
1951
+ function createFactoryWithValidation(type) {
1952
+ var validatedFactory = createElementWithValidation.bind(null, type);
1953
+ validatedFactory.type = type;
1954
+ {
1955
+ if (!didWarnAboutDeprecatedCreateFactory) {
1956
+ didWarnAboutDeprecatedCreateFactory = true;
1957
+ warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
1958
+ }
1959
+ Object.defineProperty(validatedFactory, "type", {
1960
+ enumerable: false,
1961
+ get: function() {
1962
+ warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
1963
+ Object.defineProperty(this, "type", {
1964
+ value: type
1965
+ });
1966
+ return type;
1967
+ }
1968
+ });
1969
+ }
1970
+ return validatedFactory;
1971
+ }
1972
+ function cloneElementWithValidation(element, props, children) {
1973
+ var newElement = cloneElement.apply(this, arguments);
1974
+ for (var i = 2; i < arguments.length; i++) {
1975
+ validateChildKeys(arguments[i], newElement.type);
1976
+ }
1977
+ validatePropTypes(newElement);
1978
+ return newElement;
1979
+ }
1980
+ function startTransition(scope, options) {
1981
+ var prevTransition = ReactCurrentBatchConfig.transition;
1982
+ ReactCurrentBatchConfig.transition = {};
1983
+ var currentTransition = ReactCurrentBatchConfig.transition;
1984
+ {
1985
+ ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set();
1986
+ }
1987
+ try {
1988
+ scope();
1989
+ } finally {
1990
+ ReactCurrentBatchConfig.transition = prevTransition;
1991
+ {
1992
+ if (prevTransition === null && currentTransition._updatedFibers) {
1993
+ var updatedFibersCount = currentTransition._updatedFibers.size;
1994
+ if (updatedFibersCount > 10) {
1995
+ 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.");
1996
+ }
1997
+ currentTransition._updatedFibers.clear();
1998
+ }
1999
+ }
2000
+ }
2001
+ }
2002
+ var didWarnAboutMessageChannel = false;
2003
+ var enqueueTaskImpl = null;
2004
+ function enqueueTask(task) {
2005
+ if (enqueueTaskImpl === null) {
2006
+ try {
2007
+ var requireString = ("require" + Math.random()).slice(0, 7);
2008
+ var nodeRequire = module2 && module2[requireString];
2009
+ enqueueTaskImpl = nodeRequire.call(module2, "timers").setImmediate;
2010
+ } catch (_err) {
2011
+ enqueueTaskImpl = function(callback) {
2012
+ {
2013
+ if (didWarnAboutMessageChannel === false) {
2014
+ didWarnAboutMessageChannel = true;
2015
+ if (typeof MessageChannel === "undefined") {
2016
+ 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.");
2017
+ }
2018
+ }
2019
+ }
2020
+ var channel = new MessageChannel();
2021
+ channel.port1.onmessage = callback;
2022
+ channel.port2.postMessage(void 0);
2023
+ };
2024
+ }
2025
+ }
2026
+ return enqueueTaskImpl(task);
2027
+ }
2028
+ var actScopeDepth = 0;
2029
+ var didWarnNoAwaitAct = false;
2030
+ function act(callback) {
2031
+ {
2032
+ var prevActScopeDepth = actScopeDepth;
2033
+ actScopeDepth++;
2034
+ if (ReactCurrentActQueue.current === null) {
2035
+ ReactCurrentActQueue.current = [];
2036
+ }
2037
+ var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
2038
+ var result;
2039
+ try {
2040
+ ReactCurrentActQueue.isBatchingLegacy = true;
2041
+ result = callback();
2042
+ if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
2043
+ var queue = ReactCurrentActQueue.current;
2044
+ if (queue !== null) {
2045
+ ReactCurrentActQueue.didScheduleLegacyUpdate = false;
2046
+ flushActQueue(queue);
2047
+ }
2048
+ }
2049
+ } catch (error2) {
2050
+ popActScope(prevActScopeDepth);
2051
+ throw error2;
2052
+ } finally {
2053
+ ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
2054
+ }
2055
+ if (result !== null && typeof result === "object" && typeof result.then === "function") {
2056
+ var thenableResult = result;
2057
+ var wasAwaited = false;
2058
+ var thenable = {
2059
+ then: function(resolve, reject) {
2060
+ wasAwaited = true;
2061
+ thenableResult.then(function(returnValue2) {
2062
+ popActScope(prevActScopeDepth);
2063
+ if (actScopeDepth === 0) {
2064
+ recursivelyFlushAsyncActWork(returnValue2, resolve, reject);
2065
+ } else {
2066
+ resolve(returnValue2);
2067
+ }
2068
+ }, function(error2) {
2069
+ popActScope(prevActScopeDepth);
2070
+ reject(error2);
2071
+ });
2072
+ }
2073
+ };
2074
+ {
2075
+ if (!didWarnNoAwaitAct && typeof Promise !== "undefined") {
2076
+ Promise.resolve().then(function() {
2077
+ }).then(function() {
2078
+ if (!wasAwaited) {
2079
+ didWarnNoAwaitAct = true;
2080
+ 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 () => ...);");
2081
+ }
2082
+ });
2083
+ }
2084
+ }
2085
+ return thenable;
2086
+ } else {
2087
+ var returnValue = result;
2088
+ popActScope(prevActScopeDepth);
2089
+ if (actScopeDepth === 0) {
2090
+ var _queue = ReactCurrentActQueue.current;
2091
+ if (_queue !== null) {
2092
+ flushActQueue(_queue);
2093
+ ReactCurrentActQueue.current = null;
2094
+ }
2095
+ var _thenable = {
2096
+ then: function(resolve, reject) {
2097
+ if (ReactCurrentActQueue.current === null) {
2098
+ ReactCurrentActQueue.current = [];
2099
+ recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2100
+ } else {
2101
+ resolve(returnValue);
2102
+ }
2103
+ }
2104
+ };
2105
+ return _thenable;
2106
+ } else {
2107
+ var _thenable2 = {
2108
+ then: function(resolve, reject) {
2109
+ resolve(returnValue);
2110
+ }
2111
+ };
2112
+ return _thenable2;
2113
+ }
2114
+ }
2115
+ }
2116
+ }
2117
+ function popActScope(prevActScopeDepth) {
2118
+ {
2119
+ if (prevActScopeDepth !== actScopeDepth - 1) {
2120
+ error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
2121
+ }
2122
+ actScopeDepth = prevActScopeDepth;
2123
+ }
2124
+ }
2125
+ function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
2126
+ {
2127
+ var queue = ReactCurrentActQueue.current;
2128
+ if (queue !== null) {
2129
+ try {
2130
+ flushActQueue(queue);
2131
+ enqueueTask(function() {
2132
+ if (queue.length === 0) {
2133
+ ReactCurrentActQueue.current = null;
2134
+ resolve(returnValue);
2135
+ } else {
2136
+ recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2137
+ }
2138
+ });
2139
+ } catch (error2) {
2140
+ reject(error2);
2141
+ }
2142
+ } else {
2143
+ resolve(returnValue);
2144
+ }
2145
+ }
2146
+ }
2147
+ var isFlushing = false;
2148
+ function flushActQueue(queue) {
2149
+ {
2150
+ if (!isFlushing) {
2151
+ isFlushing = true;
2152
+ var i = 0;
2153
+ try {
2154
+ for (; i < queue.length; i++) {
2155
+ var callback = queue[i];
2156
+ do {
2157
+ callback = callback(true);
2158
+ } while (callback !== null);
2159
+ }
2160
+ queue.length = 0;
2161
+ } catch (error2) {
2162
+ queue = queue.slice(i + 1);
2163
+ throw error2;
2164
+ } finally {
2165
+ isFlushing = false;
2166
+ }
2167
+ }
2168
+ }
2169
+ }
2170
+ var createElement$1 = createElementWithValidation;
2171
+ var cloneElement$1 = cloneElementWithValidation;
2172
+ var createFactory = createFactoryWithValidation;
2173
+ var Children = {
2174
+ map: mapChildren,
2175
+ forEach: forEachChildren,
2176
+ count: countChildren,
2177
+ toArray,
2178
+ only: onlyChild
2179
+ };
2180
+ exports2.Children = Children;
2181
+ exports2.Component = Component;
2182
+ exports2.Fragment = REACT_FRAGMENT_TYPE;
2183
+ exports2.Profiler = REACT_PROFILER_TYPE;
2184
+ exports2.PureComponent = PureComponent;
2185
+ exports2.StrictMode = REACT_STRICT_MODE_TYPE;
2186
+ exports2.Suspense = REACT_SUSPENSE_TYPE;
2187
+ exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
2188
+ exports2.cloneElement = cloneElement$1;
2189
+ exports2.createContext = createContext;
2190
+ exports2.createElement = createElement$1;
2191
+ exports2.createFactory = createFactory;
2192
+ exports2.createRef = createRef;
2193
+ exports2.forwardRef = forwardRef;
2194
+ exports2.isValidElement = isValidElement;
2195
+ exports2.lazy = lazy;
2196
+ exports2.memo = memo;
2197
+ exports2.startTransition = startTransition;
2198
+ exports2.unstable_act = act;
2199
+ exports2.useCallback = useCallback;
2200
+ exports2.useContext = useContext;
2201
+ exports2.useDebugValue = useDebugValue;
2202
+ exports2.useDeferredValue = useDeferredValue;
2203
+ exports2.useEffect = useEffect;
2204
+ exports2.useId = useId;
2205
+ exports2.useImperativeHandle = useImperativeHandle;
2206
+ exports2.useInsertionEffect = useInsertionEffect;
2207
+ exports2.useLayoutEffect = useLayoutEffect;
2208
+ exports2.useMemo = useMemo;
2209
+ exports2.useReducer = useReducer;
2210
+ exports2.useRef = useRef;
2211
+ exports2.useState = useState;
2212
+ exports2.useSyncExternalStore = useSyncExternalStore;
2213
+ exports2.useTransition = useTransition;
2214
+ exports2.version = ReactVersion;
2215
+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
2216
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2217
+ }
2218
+ })();
2219
+ }
2220
+ }
2221
+ });
2222
+
2223
+ // node_modules/react/index.js
2224
+ var require_react = __commonJS({
2225
+ "node_modules/react/index.js"(exports2, module2) {
2226
+ "use strict";
2227
+ if (process.env.NODE_ENV === "production") {
2228
+ module2.exports = require_react_production_min();
2229
+ } else {
2230
+ module2.exports = require_react_development();
2231
+ }
2232
+ }
2233
+ });
2234
+
2235
+ // node_modules/react/cjs/react-jsx-runtime.production.min.js
2236
+ var require_react_jsx_runtime_production_min = __commonJS({
2237
+ "node_modules/react/cjs/react-jsx-runtime.production.min.js"(exports2) {
2238
+ "use strict";
2239
+ var f = require_react();
2240
+ var k = Symbol.for("react.element");
2241
+ var l = Symbol.for("react.fragment");
2242
+ var m = Object.prototype.hasOwnProperty;
2243
+ var n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;
2244
+ var p = { key: true, ref: true, __self: true, __source: true };
2245
+ function q(c, a, g) {
2246
+ var b, d = {}, e = null, h = null;
2247
+ void 0 !== g && (e = "" + g);
2248
+ void 0 !== a.key && (e = "" + a.key);
2249
+ void 0 !== a.ref && (h = a.ref);
2250
+ for (b in a)
2251
+ m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
2252
+ if (c && c.defaultProps)
2253
+ for (b in a = c.defaultProps, a)
2254
+ void 0 === d[b] && (d[b] = a[b]);
2255
+ return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
2256
+ }
2257
+ exports2.Fragment = l;
2258
+ exports2.jsx = q;
2259
+ exports2.jsxs = q;
2260
+ }
2261
+ });
2262
+
2263
+ // node_modules/react/cjs/react-jsx-runtime.development.js
2264
+ var require_react_jsx_runtime_development = __commonJS({
2265
+ "node_modules/react/cjs/react-jsx-runtime.development.js"(exports2) {
2266
+ "use strict";
2267
+ if (process.env.NODE_ENV !== "production") {
2268
+ (function() {
2269
+ "use strict";
2270
+ var React = require_react();
2271
+ var REACT_ELEMENT_TYPE = Symbol.for("react.element");
2272
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
2273
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
2274
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
2275
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
2276
+ var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
2277
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
2278
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
2279
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
2280
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
2281
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
2282
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
2283
+ var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
2284
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
2285
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
2286
+ function getIteratorFn(maybeIterable) {
2287
+ if (maybeIterable === null || typeof maybeIterable !== "object") {
2288
+ return null;
2289
+ }
2290
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
2291
+ if (typeof maybeIterator === "function") {
2292
+ return maybeIterator;
2293
+ }
2294
+ return null;
2295
+ }
2296
+ var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2297
+ function error(format) {
2298
+ {
2299
+ {
2300
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
2301
+ args[_key2 - 1] = arguments[_key2];
2302
+ }
2303
+ printWarning("error", format, args);
2304
+ }
2305
+ }
2306
+ }
2307
+ function printWarning(level, format, args) {
2308
+ {
2309
+ var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
2310
+ var stack = ReactDebugCurrentFrame2.getStackAddendum();
2311
+ if (stack !== "") {
2312
+ format += "%s";
2313
+ args = args.concat([stack]);
2314
+ }
2315
+ var argsWithFormat = args.map(function(item) {
2316
+ return String(item);
2317
+ });
2318
+ argsWithFormat.unshift("Warning: " + format);
2319
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
2320
+ }
2321
+ }
2322
+ var enableScopeAPI = false;
2323
+ var enableCacheElement = false;
2324
+ var enableTransitionTracing = false;
2325
+ var enableLegacyHidden = false;
2326
+ var enableDebugTracing = false;
2327
+ var REACT_MODULE_REFERENCE;
2328
+ {
2329
+ REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
2330
+ }
2331
+ function isValidElementType(type) {
2332
+ if (typeof type === "string" || typeof type === "function") {
2333
+ return true;
2334
+ }
2335
+ 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) {
2336
+ return true;
2337
+ }
2338
+ if (typeof type === "object" && type !== null) {
2339
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
2340
+ // types supported by any Flight configuration anywhere since
2341
+ // we don't know which Flight build this will end up being used
2342
+ // with.
2343
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
2344
+ return true;
2345
+ }
2346
+ }
2347
+ return false;
2348
+ }
2349
+ function getWrappedName(outerType, innerType, wrapperName) {
2350
+ var displayName = outerType.displayName;
2351
+ if (displayName) {
2352
+ return displayName;
2353
+ }
2354
+ var functionName = innerType.displayName || innerType.name || "";
2355
+ return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
2356
+ }
2357
+ function getContextName(type) {
2358
+ return type.displayName || "Context";
2359
+ }
2360
+ function getComponentNameFromType(type) {
2361
+ if (type == null) {
2362
+ return null;
2363
+ }
2364
+ {
2365
+ if (typeof type.tag === "number") {
2366
+ error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
2367
+ }
2368
+ }
2369
+ if (typeof type === "function") {
2370
+ return type.displayName || type.name || null;
2371
+ }
2372
+ if (typeof type === "string") {
2373
+ return type;
2374
+ }
2375
+ switch (type) {
2376
+ case REACT_FRAGMENT_TYPE:
2377
+ return "Fragment";
2378
+ case REACT_PORTAL_TYPE:
2379
+ return "Portal";
2380
+ case REACT_PROFILER_TYPE:
2381
+ return "Profiler";
2382
+ case REACT_STRICT_MODE_TYPE:
2383
+ return "StrictMode";
2384
+ case REACT_SUSPENSE_TYPE:
2385
+ return "Suspense";
2386
+ case REACT_SUSPENSE_LIST_TYPE:
2387
+ return "SuspenseList";
2388
+ }
2389
+ if (typeof type === "object") {
2390
+ switch (type.$$typeof) {
2391
+ case REACT_CONTEXT_TYPE:
2392
+ var context = type;
2393
+ return getContextName(context) + ".Consumer";
2394
+ case REACT_PROVIDER_TYPE:
2395
+ var provider = type;
2396
+ return getContextName(provider._context) + ".Provider";
2397
+ case REACT_FORWARD_REF_TYPE:
2398
+ return getWrappedName(type, type.render, "ForwardRef");
2399
+ case REACT_MEMO_TYPE:
2400
+ var outerName = type.displayName || null;
2401
+ if (outerName !== null) {
2402
+ return outerName;
2403
+ }
2404
+ return getComponentNameFromType(type.type) || "Memo";
2405
+ case REACT_LAZY_TYPE: {
2406
+ var lazyComponent = type;
2407
+ var payload = lazyComponent._payload;
2408
+ var init = lazyComponent._init;
2409
+ try {
2410
+ return getComponentNameFromType(init(payload));
2411
+ } catch (x) {
2412
+ return null;
2413
+ }
2414
+ }
2415
+ }
2416
+ }
2417
+ return null;
2418
+ }
2419
+ var assign = Object.assign;
2420
+ var disabledDepth = 0;
2421
+ var prevLog;
2422
+ var prevInfo;
2423
+ var prevWarn;
2424
+ var prevError;
2425
+ var prevGroup;
2426
+ var prevGroupCollapsed;
2427
+ var prevGroupEnd;
2428
+ function disabledLog() {
2429
+ }
2430
+ disabledLog.__reactDisabledLog = true;
2431
+ function disableLogs() {
2432
+ {
2433
+ if (disabledDepth === 0) {
2434
+ prevLog = console.log;
2435
+ prevInfo = console.info;
2436
+ prevWarn = console.warn;
2437
+ prevError = console.error;
2438
+ prevGroup = console.group;
2439
+ prevGroupCollapsed = console.groupCollapsed;
2440
+ prevGroupEnd = console.groupEnd;
2441
+ var props = {
2442
+ configurable: true,
2443
+ enumerable: true,
2444
+ value: disabledLog,
2445
+ writable: true
2446
+ };
2447
+ Object.defineProperties(console, {
2448
+ info: props,
2449
+ log: props,
2450
+ warn: props,
2451
+ error: props,
2452
+ group: props,
2453
+ groupCollapsed: props,
2454
+ groupEnd: props
2455
+ });
2456
+ }
2457
+ disabledDepth++;
2458
+ }
2459
+ }
2460
+ function reenableLogs() {
2461
+ {
2462
+ disabledDepth--;
2463
+ if (disabledDepth === 0) {
2464
+ var props = {
2465
+ configurable: true,
2466
+ enumerable: true,
2467
+ writable: true
2468
+ };
2469
+ Object.defineProperties(console, {
2470
+ log: assign({}, props, {
2471
+ value: prevLog
2472
+ }),
2473
+ info: assign({}, props, {
2474
+ value: prevInfo
2475
+ }),
2476
+ warn: assign({}, props, {
2477
+ value: prevWarn
2478
+ }),
2479
+ error: assign({}, props, {
2480
+ value: prevError
2481
+ }),
2482
+ group: assign({}, props, {
2483
+ value: prevGroup
2484
+ }),
2485
+ groupCollapsed: assign({}, props, {
2486
+ value: prevGroupCollapsed
2487
+ }),
2488
+ groupEnd: assign({}, props, {
2489
+ value: prevGroupEnd
2490
+ })
2491
+ });
2492
+ }
2493
+ if (disabledDepth < 0) {
2494
+ error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
2495
+ }
2496
+ }
2497
+ }
2498
+ var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
2499
+ var prefix;
2500
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
2501
+ {
2502
+ if (prefix === void 0) {
2503
+ try {
2504
+ throw Error();
2505
+ } catch (x) {
2506
+ var match = x.stack.trim().match(/\n( *(at )?)/);
2507
+ prefix = match && match[1] || "";
2508
+ }
2509
+ }
2510
+ return "\n" + prefix + name;
2511
+ }
2512
+ }
2513
+ var reentry = false;
2514
+ var componentFrameCache;
2515
+ {
2516
+ var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
2517
+ componentFrameCache = new PossiblyWeakMap();
2518
+ }
2519
+ function describeNativeComponentFrame(fn, construct) {
2520
+ if (!fn || reentry) {
2521
+ return "";
2522
+ }
2523
+ {
2524
+ var frame = componentFrameCache.get(fn);
2525
+ if (frame !== void 0) {
2526
+ return frame;
2527
+ }
2528
+ }
2529
+ var control;
2530
+ reentry = true;
2531
+ var previousPrepareStackTrace = Error.prepareStackTrace;
2532
+ Error.prepareStackTrace = void 0;
2533
+ var previousDispatcher;
2534
+ {
2535
+ previousDispatcher = ReactCurrentDispatcher.current;
2536
+ ReactCurrentDispatcher.current = null;
2537
+ disableLogs();
2538
+ }
2539
+ try {
2540
+ if (construct) {
2541
+ var Fake = function() {
2542
+ throw Error();
2543
+ };
2544
+ Object.defineProperty(Fake.prototype, "props", {
2545
+ set: function() {
2546
+ throw Error();
2547
+ }
2548
+ });
2549
+ if (typeof Reflect === "object" && Reflect.construct) {
2550
+ try {
2551
+ Reflect.construct(Fake, []);
2552
+ } catch (x) {
2553
+ control = x;
2554
+ }
2555
+ Reflect.construct(fn, [], Fake);
2556
+ } else {
2557
+ try {
2558
+ Fake.call();
2559
+ } catch (x) {
2560
+ control = x;
2561
+ }
2562
+ fn.call(Fake.prototype);
2563
+ }
2564
+ } else {
2565
+ try {
2566
+ throw Error();
2567
+ } catch (x) {
2568
+ control = x;
2569
+ }
2570
+ fn();
2571
+ }
2572
+ } catch (sample) {
2573
+ if (sample && control && typeof sample.stack === "string") {
2574
+ var sampleLines = sample.stack.split("\n");
2575
+ var controlLines = control.stack.split("\n");
2576
+ var s = sampleLines.length - 1;
2577
+ var c = controlLines.length - 1;
2578
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
2579
+ c--;
2580
+ }
2581
+ for (; s >= 1 && c >= 0; s--, c--) {
2582
+ if (sampleLines[s] !== controlLines[c]) {
2583
+ if (s !== 1 || c !== 1) {
2584
+ do {
2585
+ s--;
2586
+ c--;
2587
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
2588
+ var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
2589
+ if (fn.displayName && _frame.includes("<anonymous>")) {
2590
+ _frame = _frame.replace("<anonymous>", fn.displayName);
2591
+ }
2592
+ {
2593
+ if (typeof fn === "function") {
2594
+ componentFrameCache.set(fn, _frame);
2595
+ }
2596
+ }
2597
+ return _frame;
2598
+ }
2599
+ } while (s >= 1 && c >= 0);
2600
+ }
2601
+ break;
2602
+ }
2603
+ }
2604
+ }
2605
+ } finally {
2606
+ reentry = false;
2607
+ {
2608
+ ReactCurrentDispatcher.current = previousDispatcher;
2609
+ reenableLogs();
2610
+ }
2611
+ Error.prepareStackTrace = previousPrepareStackTrace;
2612
+ }
2613
+ var name = fn ? fn.displayName || fn.name : "";
2614
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
2615
+ {
2616
+ if (typeof fn === "function") {
2617
+ componentFrameCache.set(fn, syntheticFrame);
2618
+ }
2619
+ }
2620
+ return syntheticFrame;
2621
+ }
2622
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
2623
+ {
2624
+ return describeNativeComponentFrame(fn, false);
2625
+ }
2626
+ }
2627
+ function shouldConstruct(Component) {
2628
+ var prototype = Component.prototype;
2629
+ return !!(prototype && prototype.isReactComponent);
2630
+ }
2631
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
2632
+ if (type == null) {
2633
+ return "";
2634
+ }
2635
+ if (typeof type === "function") {
2636
+ {
2637
+ return describeNativeComponentFrame(type, shouldConstruct(type));
2638
+ }
2639
+ }
2640
+ if (typeof type === "string") {
2641
+ return describeBuiltInComponentFrame(type);
2642
+ }
2643
+ switch (type) {
2644
+ case REACT_SUSPENSE_TYPE:
2645
+ return describeBuiltInComponentFrame("Suspense");
2646
+ case REACT_SUSPENSE_LIST_TYPE:
2647
+ return describeBuiltInComponentFrame("SuspenseList");
2648
+ }
2649
+ if (typeof type === "object") {
2650
+ switch (type.$$typeof) {
2651
+ case REACT_FORWARD_REF_TYPE:
2652
+ return describeFunctionComponentFrame(type.render);
2653
+ case REACT_MEMO_TYPE:
2654
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
2655
+ case REACT_LAZY_TYPE: {
2656
+ var lazyComponent = type;
2657
+ var payload = lazyComponent._payload;
2658
+ var init = lazyComponent._init;
2659
+ try {
2660
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
2661
+ } catch (x) {
2662
+ }
2663
+ }
2664
+ }
2665
+ }
2666
+ return "";
2667
+ }
2668
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
2669
+ var loggedTypeFailures = {};
2670
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
2671
+ function setCurrentlyValidatingElement(element) {
2672
+ {
2673
+ if (element) {
2674
+ var owner = element._owner;
2675
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2676
+ ReactDebugCurrentFrame.setExtraStackFrame(stack);
2677
+ } else {
2678
+ ReactDebugCurrentFrame.setExtraStackFrame(null);
2679
+ }
2680
+ }
2681
+ }
2682
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
2683
+ {
2684
+ var has = Function.call.bind(hasOwnProperty);
2685
+ for (var typeSpecName in typeSpecs) {
2686
+ if (has(typeSpecs, typeSpecName)) {
2687
+ var error$1 = void 0;
2688
+ try {
2689
+ if (typeof typeSpecs[typeSpecName] !== "function") {
2690
+ 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`.");
2691
+ err.name = "Invariant Violation";
2692
+ throw err;
2693
+ }
2694
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
2695
+ } catch (ex) {
2696
+ error$1 = ex;
2697
+ }
2698
+ if (error$1 && !(error$1 instanceof Error)) {
2699
+ setCurrentlyValidatingElement(element);
2700
+ 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);
2701
+ setCurrentlyValidatingElement(null);
2702
+ }
2703
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
2704
+ loggedTypeFailures[error$1.message] = true;
2705
+ setCurrentlyValidatingElement(element);
2706
+ error("Failed %s type: %s", location, error$1.message);
2707
+ setCurrentlyValidatingElement(null);
2708
+ }
2709
+ }
2710
+ }
2711
+ }
2712
+ }
2713
+ var isArrayImpl = Array.isArray;
2714
+ function isArray(a) {
2715
+ return isArrayImpl(a);
2716
+ }
2717
+ function typeName(value) {
2718
+ {
2719
+ var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
2720
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
2721
+ return type;
2722
+ }
2723
+ }
2724
+ function willCoercionThrow(value) {
2725
+ {
2726
+ try {
2727
+ testStringCoercion(value);
2728
+ return false;
2729
+ } catch (e) {
2730
+ return true;
2731
+ }
2732
+ }
2733
+ }
2734
+ function testStringCoercion(value) {
2735
+ return "" + value;
2736
+ }
2737
+ function checkKeyStringCoercion(value) {
2738
+ {
2739
+ if (willCoercionThrow(value)) {
2740
+ error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
2741
+ return testStringCoercion(value);
2742
+ }
2743
+ }
2744
+ }
2745
+ var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
2746
+ var RESERVED_PROPS = {
2747
+ key: true,
2748
+ ref: true,
2749
+ __self: true,
2750
+ __source: true
2751
+ };
2752
+ var specialPropKeyWarningShown;
2753
+ var specialPropRefWarningShown;
2754
+ var didWarnAboutStringRefs;
2755
+ {
2756
+ didWarnAboutStringRefs = {};
2757
+ }
2758
+ function hasValidRef(config) {
2759
+ {
2760
+ if (hasOwnProperty.call(config, "ref")) {
2761
+ var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
2762
+ if (getter && getter.isReactWarning) {
2763
+ return false;
2764
+ }
2765
+ }
2766
+ }
2767
+ return config.ref !== void 0;
2768
+ }
2769
+ function hasValidKey(config) {
2770
+ {
2771
+ if (hasOwnProperty.call(config, "key")) {
2772
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
2773
+ if (getter && getter.isReactWarning) {
2774
+ return false;
2775
+ }
2776
+ }
2777
+ }
2778
+ return config.key !== void 0;
2779
+ }
2780
+ function warnIfStringRefCannotBeAutoConverted(config, self) {
2781
+ {
2782
+ if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
2783
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
2784
+ if (!didWarnAboutStringRefs[componentName]) {
2785
+ error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
2786
+ didWarnAboutStringRefs[componentName] = true;
2787
+ }
2788
+ }
2789
+ }
2790
+ }
2791
+ function defineKeyPropWarningGetter(props, displayName) {
2792
+ {
2793
+ var warnAboutAccessingKey = function() {
2794
+ if (!specialPropKeyWarningShown) {
2795
+ specialPropKeyWarningShown = true;
2796
+ 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);
2797
+ }
2798
+ };
2799
+ warnAboutAccessingKey.isReactWarning = true;
2800
+ Object.defineProperty(props, "key", {
2801
+ get: warnAboutAccessingKey,
2802
+ configurable: true
2803
+ });
2804
+ }
2805
+ }
2806
+ function defineRefPropWarningGetter(props, displayName) {
2807
+ {
2808
+ var warnAboutAccessingRef = function() {
2809
+ if (!specialPropRefWarningShown) {
2810
+ specialPropRefWarningShown = true;
2811
+ 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);
2812
+ }
2813
+ };
2814
+ warnAboutAccessingRef.isReactWarning = true;
2815
+ Object.defineProperty(props, "ref", {
2816
+ get: warnAboutAccessingRef,
2817
+ configurable: true
2818
+ });
2819
+ }
2820
+ }
2821
+ var ReactElement = function(type, key, ref, self, source, owner, props) {
2822
+ var element = {
2823
+ // This tag allows us to uniquely identify this as a React Element
2824
+ $$typeof: REACT_ELEMENT_TYPE,
2825
+ // Built-in properties that belong on the element
2826
+ type,
2827
+ key,
2828
+ ref,
2829
+ props,
2830
+ // Record the component responsible for creating this element.
2831
+ _owner: owner
2832
+ };
2833
+ {
2834
+ element._store = {};
2835
+ Object.defineProperty(element._store, "validated", {
2836
+ configurable: false,
2837
+ enumerable: false,
2838
+ writable: true,
2839
+ value: false
2840
+ });
2841
+ Object.defineProperty(element, "_self", {
2842
+ configurable: false,
2843
+ enumerable: false,
2844
+ writable: false,
2845
+ value: self
2846
+ });
2847
+ Object.defineProperty(element, "_source", {
2848
+ configurable: false,
2849
+ enumerable: false,
2850
+ writable: false,
2851
+ value: source
2852
+ });
2853
+ if (Object.freeze) {
2854
+ Object.freeze(element.props);
2855
+ Object.freeze(element);
2856
+ }
2857
+ }
2858
+ return element;
2859
+ };
2860
+ function jsxDEV(type, config, maybeKey, source, self) {
2861
+ {
2862
+ var propName;
2863
+ var props = {};
2864
+ var key = null;
2865
+ var ref = null;
2866
+ if (maybeKey !== void 0) {
2867
+ {
2868
+ checkKeyStringCoercion(maybeKey);
2869
+ }
2870
+ key = "" + maybeKey;
2871
+ }
2872
+ if (hasValidKey(config)) {
2873
+ {
2874
+ checkKeyStringCoercion(config.key);
2875
+ }
2876
+ key = "" + config.key;
2877
+ }
2878
+ if (hasValidRef(config)) {
2879
+ ref = config.ref;
2880
+ warnIfStringRefCannotBeAutoConverted(config, self);
2881
+ }
2882
+ for (propName in config) {
2883
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
2884
+ props[propName] = config[propName];
2885
+ }
2886
+ }
2887
+ if (type && type.defaultProps) {
2888
+ var defaultProps = type.defaultProps;
2889
+ for (propName in defaultProps) {
2890
+ if (props[propName] === void 0) {
2891
+ props[propName] = defaultProps[propName];
2892
+ }
2893
+ }
2894
+ }
2895
+ if (key || ref) {
2896
+ var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
2897
+ if (key) {
2898
+ defineKeyPropWarningGetter(props, displayName);
2899
+ }
2900
+ if (ref) {
2901
+ defineRefPropWarningGetter(props, displayName);
2902
+ }
2903
+ }
2904
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
2905
+ }
2906
+ }
2907
+ var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
2908
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
2909
+ function setCurrentlyValidatingElement$1(element) {
2910
+ {
2911
+ if (element) {
2912
+ var owner = element._owner;
2913
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2914
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
2915
+ } else {
2916
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
2917
+ }
2918
+ }
2919
+ }
2920
+ var propTypesMisspellWarningShown;
2921
+ {
2922
+ propTypesMisspellWarningShown = false;
2923
+ }
2924
+ function isValidElement(object) {
2925
+ {
2926
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
2927
+ }
2928
+ }
2929
+ function getDeclarationErrorAddendum() {
2930
+ {
2931
+ if (ReactCurrentOwner$1.current) {
2932
+ var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
2933
+ if (name) {
2934
+ return "\n\nCheck the render method of `" + name + "`.";
2935
+ }
2936
+ }
2937
+ return "";
2938
+ }
2939
+ }
2940
+ function getSourceInfoErrorAddendum(source) {
2941
+ {
2942
+ if (source !== void 0) {
2943
+ var fileName = source.fileName.replace(/^.*[\\\/]/, "");
2944
+ var lineNumber = source.lineNumber;
2945
+ return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
2946
+ }
2947
+ return "";
2948
+ }
2949
+ }
2950
+ var ownerHasKeyUseWarning = {};
2951
+ function getCurrentComponentErrorInfo(parentType) {
2952
+ {
2953
+ var info = getDeclarationErrorAddendum();
2954
+ if (!info) {
2955
+ var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
2956
+ if (parentName) {
2957
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
2958
+ }
2959
+ }
2960
+ return info;
2961
+ }
2962
+ }
2963
+ function validateExplicitKey(element, parentType) {
2964
+ {
2965
+ if (!element._store || element._store.validated || element.key != null) {
2966
+ return;
2967
+ }
2968
+ element._store.validated = true;
2969
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
2970
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
2971
+ return;
2972
+ }
2973
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
2974
+ var childOwner = "";
2975
+ if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
2976
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
2977
+ }
2978
+ setCurrentlyValidatingElement$1(element);
2979
+ 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);
2980
+ setCurrentlyValidatingElement$1(null);
2981
+ }
2982
+ }
2983
+ function validateChildKeys(node, parentType) {
2984
+ {
2985
+ if (typeof node !== "object") {
2986
+ return;
2987
+ }
2988
+ if (isArray(node)) {
2989
+ for (var i = 0; i < node.length; i++) {
2990
+ var child = node[i];
2991
+ if (isValidElement(child)) {
2992
+ validateExplicitKey(child, parentType);
2993
+ }
2994
+ }
2995
+ } else if (isValidElement(node)) {
2996
+ if (node._store) {
2997
+ node._store.validated = true;
2998
+ }
2999
+ } else if (node) {
3000
+ var iteratorFn = getIteratorFn(node);
3001
+ if (typeof iteratorFn === "function") {
3002
+ if (iteratorFn !== node.entries) {
3003
+ var iterator = iteratorFn.call(node);
3004
+ var step;
3005
+ while (!(step = iterator.next()).done) {
3006
+ if (isValidElement(step.value)) {
3007
+ validateExplicitKey(step.value, parentType);
3008
+ }
3009
+ }
3010
+ }
3011
+ }
3012
+ }
3013
+ }
3014
+ }
3015
+ function validatePropTypes(element) {
3016
+ {
3017
+ var type = element.type;
3018
+ if (type === null || type === void 0 || typeof type === "string") {
3019
+ return;
3020
+ }
3021
+ var propTypes;
3022
+ if (typeof type === "function") {
3023
+ propTypes = type.propTypes;
3024
+ } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
3025
+ // Inner props are checked in the reconciler.
3026
+ type.$$typeof === REACT_MEMO_TYPE)) {
3027
+ propTypes = type.propTypes;
3028
+ } else {
3029
+ return;
3030
+ }
3031
+ if (propTypes) {
3032
+ var name = getComponentNameFromType(type);
3033
+ checkPropTypes(propTypes, element.props, "prop", name, element);
3034
+ } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
3035
+ propTypesMisspellWarningShown = true;
3036
+ var _name = getComponentNameFromType(type);
3037
+ error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
3038
+ }
3039
+ if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
3040
+ error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
3041
+ }
3042
+ }
3043
+ }
3044
+ function validateFragmentProps(fragment) {
3045
+ {
3046
+ var keys = Object.keys(fragment.props);
3047
+ for (var i = 0; i < keys.length; i++) {
3048
+ var key = keys[i];
3049
+ if (key !== "children" && key !== "key") {
3050
+ setCurrentlyValidatingElement$1(fragment);
3051
+ error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
3052
+ setCurrentlyValidatingElement$1(null);
3053
+ break;
3054
+ }
3055
+ }
3056
+ if (fragment.ref !== null) {
3057
+ setCurrentlyValidatingElement$1(fragment);
3058
+ error("Invalid attribute `ref` supplied to `React.Fragment`.");
3059
+ setCurrentlyValidatingElement$1(null);
3060
+ }
3061
+ }
3062
+ }
3063
+ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
3064
+ {
3065
+ var validType = isValidElementType(type);
3066
+ if (!validType) {
3067
+ var info = "";
3068
+ if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
3069
+ 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.";
3070
+ }
3071
+ var sourceInfo = getSourceInfoErrorAddendum(source);
3072
+ if (sourceInfo) {
3073
+ info += sourceInfo;
3074
+ } else {
3075
+ info += getDeclarationErrorAddendum();
3076
+ }
3077
+ var typeString;
3078
+ if (type === null) {
3079
+ typeString = "null";
3080
+ } else if (isArray(type)) {
3081
+ typeString = "array";
3082
+ } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
3083
+ typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
3084
+ info = " Did you accidentally export a JSX literal instead of a component?";
3085
+ } else {
3086
+ typeString = typeof type;
3087
+ }
3088
+ error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
3089
+ }
3090
+ var element = jsxDEV(type, props, key, source, self);
3091
+ if (element == null) {
3092
+ return element;
3093
+ }
3094
+ if (validType) {
3095
+ var children = props.children;
3096
+ if (children !== void 0) {
3097
+ if (isStaticChildren) {
3098
+ if (isArray(children)) {
3099
+ for (var i = 0; i < children.length; i++) {
3100
+ validateChildKeys(children[i], type);
3101
+ }
3102
+ if (Object.freeze) {
3103
+ Object.freeze(children);
3104
+ }
3105
+ } else {
3106
+ error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
3107
+ }
3108
+ } else {
3109
+ validateChildKeys(children, type);
3110
+ }
3111
+ }
3112
+ }
3113
+ if (type === REACT_FRAGMENT_TYPE) {
3114
+ validateFragmentProps(element);
3115
+ } else {
3116
+ validatePropTypes(element);
3117
+ }
3118
+ return element;
3119
+ }
3120
+ }
3121
+ function jsxWithValidationStatic(type, props, key) {
3122
+ {
3123
+ return jsxWithValidation(type, props, key, true);
3124
+ }
3125
+ }
3126
+ function jsxWithValidationDynamic(type, props, key) {
3127
+ {
3128
+ return jsxWithValidation(type, props, key, false);
3129
+ }
3130
+ }
3131
+ var jsx2 = jsxWithValidationDynamic;
3132
+ var jsxs = jsxWithValidationStatic;
3133
+ exports2.Fragment = REACT_FRAGMENT_TYPE;
3134
+ exports2.jsx = jsx2;
3135
+ exports2.jsxs = jsxs;
3136
+ })();
3137
+ }
3138
+ }
3139
+ });
3140
+
3141
+ // node_modules/react/jsx-runtime.js
3142
+ var require_jsx_runtime = __commonJS({
3143
+ "node_modules/react/jsx-runtime.js"(exports2, module2) {
3144
+ "use strict";
3145
+ if (process.env.NODE_ENV === "production") {
3146
+ module2.exports = require_react_jsx_runtime_production_min();
3147
+ } else {
3148
+ module2.exports = require_react_jsx_runtime_development();
3149
+ }
3150
+ }
3151
+ });
3152
+
3153
+ // src/server.tsx
3154
+ var server_exports = {};
3155
+ __export(server_exports, {
3156
+ prerenderIslands: () => prerenderIslands
3157
+ });
3158
+ module.exports = __toCommonJS(server_exports);
3159
+ var import_promises = __toESM(require("fs/promises"));
3160
+ var import_node_path = __toESM(require("path"));
3161
+ var import_server = require("react-dom/server");
3162
+ var import_jsx_runtime = __toESM(require_jsx_runtime());
3163
+ function prerenderIslands(opts) {
3164
+ return __async(this, null, function* () {
3165
+ const { islands, outDir } = opts;
3166
+ try {
3167
+ yield import_promises.default.access(outDir);
3168
+ for (const file of yield import_promises.default.readdir(outDir)) {
3169
+ yield import_promises.default.unlink(import_node_path.default.resolve(outDir, file));
3170
+ }
3171
+ } catch (error) {
3172
+ yield import_promises.default.mkdir(outDir);
3173
+ }
3174
+ for (const island of Object.values(islands)) {
3175
+ const { component, opts: opts2 } = island;
3176
+ const { name } = opts2;
3177
+ const Component = component;
3178
+ const html = (0, import_server.renderToString)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, {}));
3179
+ const file = import_node_path.default.resolve(outDir, `${name}.html`);
3180
+ console.log(`Rendering component ${name} to ${file}`);
3181
+ import_promises.default.writeFile(file, html, { flag: "w+" });
3182
+ }
3183
+ });
3184
+ }
3185
+ // Annotate the CommonJS export names for ESM import in node:
3186
+ 0 && (module.exports = {
3187
+ prerenderIslands
3188
+ });
3189
+ /*! Bundled license information:
3190
+
3191
+ react/cjs/react.production.min.js:
3192
+ (**
3193
+ * @license React
3194
+ * react.production.min.js
3195
+ *
3196
+ * Copyright (c) Facebook, Inc. and its affiliates.
3197
+ *
3198
+ * This source code is licensed under the MIT license found in the
3199
+ * LICENSE file in the root directory of this source tree.
3200
+ *)
3201
+
3202
+ react/cjs/react.development.js:
3203
+ (**
3204
+ * @license React
3205
+ * react.development.js
3206
+ *
3207
+ * Copyright (c) Facebook, Inc. and its affiliates.
3208
+ *
3209
+ * This source code is licensed under the MIT license found in the
3210
+ * LICENSE file in the root directory of this source tree.
3211
+ *)
3212
+
3213
+ react/cjs/react-jsx-runtime.production.min.js:
3214
+ (**
3215
+ * @license React
3216
+ * react-jsx-runtime.production.min.js
3217
+ *
3218
+ * Copyright (c) Facebook, Inc. and its affiliates.
3219
+ *
3220
+ * This source code is licensed under the MIT license found in the
3221
+ * LICENSE file in the root directory of this source tree.
3222
+ *)
3223
+
3224
+ react/cjs/react-jsx-runtime.development.js:
3225
+ (**
3226
+ * @license React
3227
+ * react-jsx-runtime.development.js
3228
+ *
3229
+ * Copyright (c) Facebook, Inc. and its affiliates.
3230
+ *
3231
+ * This source code is licensed under the MIT license found in the
3232
+ * LICENSE file in the root directory of this source tree.
3233
+ *)
3234
+ */
3235
+ //# sourceMappingURL=server.js.map