@bigbinary/neeto-time-zones 0.5.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.
@@ -0,0 +1,2027 @@
1
+ import { e as Plugin } from "./index-3103b741.js";
2
+ var react = { exports: {} };
3
+ var react_production_min = {};
4
+ /*
5
+ object-assign
6
+ (c) Sindre Sorhus
7
+ @license MIT
8
+ */
9
+ var objectAssign;
10
+ var hasRequiredObjectAssign;
11
+ function requireObjectAssign() {
12
+ if (hasRequiredObjectAssign)
13
+ return objectAssign;
14
+ hasRequiredObjectAssign = 1;
15
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
16
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
17
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
18
+ function toObject(val) {
19
+ if (val === null || val === void 0) {
20
+ throw new TypeError("Object.assign cannot be called with null or undefined");
21
+ }
22
+ return Object(val);
23
+ }
24
+ function shouldUseNative() {
25
+ try {
26
+ if (!Object.assign) {
27
+ return false;
28
+ }
29
+ var test1 = new String("abc");
30
+ test1[5] = "de";
31
+ if (Object.getOwnPropertyNames(test1)[0] === "5") {
32
+ return false;
33
+ }
34
+ var test2 = {};
35
+ for (var i = 0; i < 10; i++) {
36
+ test2["_" + String.fromCharCode(i)] = i;
37
+ }
38
+ var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
39
+ return test2[n];
40
+ });
41
+ if (order2.join("") !== "0123456789") {
42
+ return false;
43
+ }
44
+ var test3 = {};
45
+ "abcdefghijklmnopqrst".split("").forEach(function(letter) {
46
+ test3[letter] = letter;
47
+ });
48
+ if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
49
+ return false;
50
+ }
51
+ return true;
52
+ } catch (err) {
53
+ return false;
54
+ }
55
+ }
56
+ objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
57
+ var from;
58
+ var to = toObject(target);
59
+ var symbols;
60
+ for (var s = 1; s < arguments.length; s++) {
61
+ from = Object(arguments[s]);
62
+ for (var key in from) {
63
+ if (hasOwnProperty.call(from, key)) {
64
+ to[key] = from[key];
65
+ }
66
+ }
67
+ if (getOwnPropertySymbols) {
68
+ symbols = getOwnPropertySymbols(from);
69
+ for (var i = 0; i < symbols.length; i++) {
70
+ if (propIsEnumerable.call(from, symbols[i])) {
71
+ to[symbols[i]] = from[symbols[i]];
72
+ }
73
+ }
74
+ }
75
+ }
76
+ return to;
77
+ };
78
+ return objectAssign;
79
+ }
80
+ /** @license React v17.0.2
81
+ * react.production.min.js
82
+ *
83
+ * Copyright (c) Facebook, Inc. and its affiliates.
84
+ *
85
+ * This source code is licensed under the MIT license found in the
86
+ * LICENSE file in the root directory of this source tree.
87
+ */
88
+ var hasRequiredReact_production_min;
89
+ function requireReact_production_min() {
90
+ if (hasRequiredReact_production_min)
91
+ return react_production_min;
92
+ hasRequiredReact_production_min = 1;
93
+ var l = requireObjectAssign(), n = 60103, p = 60106;
94
+ react_production_min.Fragment = 60107;
95
+ react_production_min.StrictMode = 60108;
96
+ react_production_min.Profiler = 60114;
97
+ var q = 60109, r = 60110, t = 60112;
98
+ react_production_min.Suspense = 60113;
99
+ var u = 60115, v = 60116;
100
+ if ("function" === typeof Symbol && Symbol.for) {
101
+ var w = Symbol.for;
102
+ n = w("react.element");
103
+ p = w("react.portal");
104
+ react_production_min.Fragment = w("react.fragment");
105
+ react_production_min.StrictMode = w("react.strict_mode");
106
+ react_production_min.Profiler = w("react.profiler");
107
+ q = w("react.provider");
108
+ r = w("react.context");
109
+ t = w("react.forward_ref");
110
+ react_production_min.Suspense = w("react.suspense");
111
+ u = w("react.memo");
112
+ v = w("react.lazy");
113
+ }
114
+ var x = "function" === typeof Symbol && Symbol.iterator;
115
+ function y(a) {
116
+ if (null === a || "object" !== typeof a)
117
+ return null;
118
+ a = x && a[x] || a["@@iterator"];
119
+ return "function" === typeof a ? a : null;
120
+ }
121
+ function z(a) {
122
+ for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++)
123
+ b += "&args[]=" + encodeURIComponent(arguments[c]);
124
+ return "Minified React error #" + a + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
125
+ }
126
+ var A = { isMounted: function() {
127
+ return false;
128
+ }, enqueueForceUpdate: function() {
129
+ }, enqueueReplaceState: function() {
130
+ }, enqueueSetState: function() {
131
+ } }, B = {};
132
+ function C(a, b, c) {
133
+ this.props = a;
134
+ this.context = b;
135
+ this.refs = B;
136
+ this.updater = c || A;
137
+ }
138
+ C.prototype.isReactComponent = {};
139
+ C.prototype.setState = function(a, b) {
140
+ if ("object" !== typeof a && "function" !== typeof a && null != a)
141
+ throw Error(z(85));
142
+ this.updater.enqueueSetState(this, a, b, "setState");
143
+ };
144
+ C.prototype.forceUpdate = function(a) {
145
+ this.updater.enqueueForceUpdate(this, a, "forceUpdate");
146
+ };
147
+ function D() {
148
+ }
149
+ D.prototype = C.prototype;
150
+ function E(a, b, c) {
151
+ this.props = a;
152
+ this.context = b;
153
+ this.refs = B;
154
+ this.updater = c || A;
155
+ }
156
+ var F = E.prototype = new D();
157
+ F.constructor = E;
158
+ l(F, C.prototype);
159
+ F.isPureReactComponent = true;
160
+ var G = { current: null }, H = Object.prototype.hasOwnProperty, I = { key: true, ref: true, __self: true, __source: true };
161
+ function J(a, b, c) {
162
+ var e, d = {}, k = null, h2 = null;
163
+ if (null != b)
164
+ for (e in void 0 !== b.ref && (h2 = b.ref), void 0 !== b.key && (k = "" + b.key), b)
165
+ H.call(b, e) && !I.hasOwnProperty(e) && (d[e] = b[e]);
166
+ var g = arguments.length - 2;
167
+ if (1 === g)
168
+ d.children = c;
169
+ else if (1 < g) {
170
+ for (var f = Array(g), m = 0; m < g; m++)
171
+ f[m] = arguments[m + 2];
172
+ d.children = f;
173
+ }
174
+ if (a && a.defaultProps)
175
+ for (e in g = a.defaultProps, g)
176
+ void 0 === d[e] && (d[e] = g[e]);
177
+ return { $$typeof: n, type: a, key: k, ref: h2, props: d, _owner: G.current };
178
+ }
179
+ function K(a, b) {
180
+ return { $$typeof: n, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner };
181
+ }
182
+ function L(a) {
183
+ return "object" === typeof a && null !== a && a.$$typeof === n;
184
+ }
185
+ function escape(a) {
186
+ var b = { "=": "=0", ":": "=2" };
187
+ return "$" + a.replace(/[=:]/g, function(a2) {
188
+ return b[a2];
189
+ });
190
+ }
191
+ var M = /\/+/g;
192
+ function N(a, b) {
193
+ return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36);
194
+ }
195
+ function O(a, b, c, e, d) {
196
+ var k = typeof a;
197
+ if ("undefined" === k || "boolean" === k)
198
+ a = null;
199
+ var h2 = false;
200
+ if (null === a)
201
+ h2 = true;
202
+ else
203
+ switch (k) {
204
+ case "string":
205
+ case "number":
206
+ h2 = true;
207
+ break;
208
+ case "object":
209
+ switch (a.$$typeof) {
210
+ case n:
211
+ case p:
212
+ h2 = true;
213
+ }
214
+ }
215
+ if (h2)
216
+ return h2 = a, d = d(h2), a = "" === e ? "." + N(h2, 0) : e, Array.isArray(d) ? (c = "", null != a && (c = a.replace(M, "$&/") + "/"), O(d, b, c, "", function(a2) {
217
+ return a2;
218
+ })) : null != d && (L(d) && (d = K(d, c + (!d.key || h2 && h2.key === d.key ? "" : ("" + d.key).replace(M, "$&/") + "/") + a)), b.push(d)), 1;
219
+ h2 = 0;
220
+ e = "" === e ? "." : e + ":";
221
+ if (Array.isArray(a))
222
+ for (var g = 0; g < a.length; g++) {
223
+ k = a[g];
224
+ var f = e + N(k, g);
225
+ h2 += O(k, b, c, f, d);
226
+ }
227
+ else if (f = y(a), "function" === typeof f)
228
+ for (a = f.call(a), g = 0; !(k = a.next()).done; )
229
+ k = k.value, f = e + N(k, g++), h2 += O(k, b, c, f, d);
230
+ else if ("object" === k)
231
+ throw b = "" + a, Error(z(31, "[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b));
232
+ return h2;
233
+ }
234
+ function P(a, b, c) {
235
+ if (null == a)
236
+ return a;
237
+ var e = [], d = 0;
238
+ O(a, e, "", "", function(a2) {
239
+ return b.call(c, a2, d++);
240
+ });
241
+ return e;
242
+ }
243
+ function Q(a) {
244
+ if (-1 === a._status) {
245
+ var b = a._result;
246
+ b = b();
247
+ a._status = 0;
248
+ a._result = b;
249
+ b.then(function(b2) {
250
+ 0 === a._status && (b2 = b2.default, a._status = 1, a._result = b2);
251
+ }, function(b2) {
252
+ 0 === a._status && (a._status = 2, a._result = b2);
253
+ });
254
+ }
255
+ if (1 === a._status)
256
+ return a._result;
257
+ throw a._result;
258
+ }
259
+ var R = { current: null };
260
+ function S() {
261
+ var a = R.current;
262
+ if (null === a)
263
+ throw Error(z(321));
264
+ return a;
265
+ }
266
+ var T = { ReactCurrentDispatcher: R, ReactCurrentBatchConfig: { transition: 0 }, ReactCurrentOwner: G, IsSomeRendererActing: { current: false }, assign: l };
267
+ react_production_min.Children = { map: P, forEach: function(a, b, c) {
268
+ P(a, function() {
269
+ b.apply(this, arguments);
270
+ }, c);
271
+ }, count: function(a) {
272
+ var b = 0;
273
+ P(a, function() {
274
+ b++;
275
+ });
276
+ return b;
277
+ }, toArray: function(a) {
278
+ return P(a, function(a2) {
279
+ return a2;
280
+ }) || [];
281
+ }, only: function(a) {
282
+ if (!L(a))
283
+ throw Error(z(143));
284
+ return a;
285
+ } };
286
+ react_production_min.Component = C;
287
+ react_production_min.PureComponent = E;
288
+ react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = T;
289
+ react_production_min.cloneElement = function(a, b, c) {
290
+ if (null === a || void 0 === a)
291
+ throw Error(z(267, a));
292
+ var e = l({}, a.props), d = a.key, k = a.ref, h2 = a._owner;
293
+ if (null != b) {
294
+ void 0 !== b.ref && (k = b.ref, h2 = G.current);
295
+ void 0 !== b.key && (d = "" + b.key);
296
+ if (a.type && a.type.defaultProps)
297
+ var g = a.type.defaultProps;
298
+ for (f in b)
299
+ H.call(b, f) && !I.hasOwnProperty(f) && (e[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
300
+ }
301
+ var f = arguments.length - 2;
302
+ if (1 === f)
303
+ e.children = c;
304
+ else if (1 < f) {
305
+ g = Array(f);
306
+ for (var m = 0; m < f; m++)
307
+ g[m] = arguments[m + 2];
308
+ e.children = g;
309
+ }
310
+ return {
311
+ $$typeof: n,
312
+ type: a.type,
313
+ key: d,
314
+ ref: k,
315
+ props: e,
316
+ _owner: h2
317
+ };
318
+ };
319
+ react_production_min.createContext = function(a, b) {
320
+ void 0 === b && (b = null);
321
+ a = { $$typeof: r, _calculateChangedBits: b, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null };
322
+ a.Provider = { $$typeof: q, _context: a };
323
+ return a.Consumer = a;
324
+ };
325
+ react_production_min.createElement = J;
326
+ react_production_min.createFactory = function(a) {
327
+ var b = J.bind(null, a);
328
+ b.type = a;
329
+ return b;
330
+ };
331
+ react_production_min.createRef = function() {
332
+ return { current: null };
333
+ };
334
+ react_production_min.forwardRef = function(a) {
335
+ return { $$typeof: t, render: a };
336
+ };
337
+ react_production_min.isValidElement = L;
338
+ react_production_min.lazy = function(a) {
339
+ return { $$typeof: v, _payload: { _status: -1, _result: a }, _init: Q };
340
+ };
341
+ react_production_min.memo = function(a, b) {
342
+ return { $$typeof: u, type: a, compare: void 0 === b ? null : b };
343
+ };
344
+ react_production_min.useCallback = function(a, b) {
345
+ return S().useCallback(a, b);
346
+ };
347
+ react_production_min.useContext = function(a, b) {
348
+ return S().useContext(a, b);
349
+ };
350
+ react_production_min.useDebugValue = function() {
351
+ };
352
+ react_production_min.useEffect = function(a, b) {
353
+ return S().useEffect(a, b);
354
+ };
355
+ react_production_min.useImperativeHandle = function(a, b, c) {
356
+ return S().useImperativeHandle(a, b, c);
357
+ };
358
+ react_production_min.useLayoutEffect = function(a, b) {
359
+ return S().useLayoutEffect(a, b);
360
+ };
361
+ react_production_min.useMemo = function(a, b) {
362
+ return S().useMemo(a, b);
363
+ };
364
+ react_production_min.useReducer = function(a, b, c) {
365
+ return S().useReducer(a, b, c);
366
+ };
367
+ react_production_min.useRef = function(a) {
368
+ return S().useRef(a);
369
+ };
370
+ react_production_min.useState = function(a) {
371
+ return S().useState(a);
372
+ };
373
+ react_production_min.version = "17.0.2";
374
+ return react_production_min;
375
+ }
376
+ var react_development = {};
377
+ /** @license React v17.0.2
378
+ * react.development.js
379
+ *
380
+ * Copyright (c) Facebook, Inc. and its affiliates.
381
+ *
382
+ * This source code is licensed under the MIT license found in the
383
+ * LICENSE file in the root directory of this source tree.
384
+ */
385
+ var hasRequiredReact_development;
386
+ function requireReact_development() {
387
+ if (hasRequiredReact_development)
388
+ return react_development;
389
+ hasRequiredReact_development = 1;
390
+ (function(exports) {
391
+ if (process.env.NODE_ENV !== "production") {
392
+ (function() {
393
+ var _assign = requireObjectAssign();
394
+ var ReactVersion = "17.0.2";
395
+ var REACT_ELEMENT_TYPE = 60103;
396
+ var REACT_PORTAL_TYPE = 60106;
397
+ exports.Fragment = 60107;
398
+ exports.StrictMode = 60108;
399
+ exports.Profiler = 60114;
400
+ var REACT_PROVIDER_TYPE = 60109;
401
+ var REACT_CONTEXT_TYPE = 60110;
402
+ var REACT_FORWARD_REF_TYPE = 60112;
403
+ exports.Suspense = 60113;
404
+ var REACT_SUSPENSE_LIST_TYPE = 60120;
405
+ var REACT_MEMO_TYPE = 60115;
406
+ var REACT_LAZY_TYPE = 60116;
407
+ var REACT_BLOCK_TYPE = 60121;
408
+ var REACT_SERVER_BLOCK_TYPE = 60122;
409
+ var REACT_FUNDAMENTAL_TYPE = 60117;
410
+ var REACT_DEBUG_TRACING_MODE_TYPE = 60129;
411
+ var REACT_LEGACY_HIDDEN_TYPE = 60131;
412
+ if (typeof Symbol === "function" && Symbol.for) {
413
+ var symbolFor = Symbol.for;
414
+ REACT_ELEMENT_TYPE = symbolFor("react.element");
415
+ REACT_PORTAL_TYPE = symbolFor("react.portal");
416
+ exports.Fragment = symbolFor("react.fragment");
417
+ exports.StrictMode = symbolFor("react.strict_mode");
418
+ exports.Profiler = symbolFor("react.profiler");
419
+ REACT_PROVIDER_TYPE = symbolFor("react.provider");
420
+ REACT_CONTEXT_TYPE = symbolFor("react.context");
421
+ REACT_FORWARD_REF_TYPE = symbolFor("react.forward_ref");
422
+ exports.Suspense = symbolFor("react.suspense");
423
+ REACT_SUSPENSE_LIST_TYPE = symbolFor("react.suspense_list");
424
+ REACT_MEMO_TYPE = symbolFor("react.memo");
425
+ REACT_LAZY_TYPE = symbolFor("react.lazy");
426
+ REACT_BLOCK_TYPE = symbolFor("react.block");
427
+ REACT_SERVER_BLOCK_TYPE = symbolFor("react.server.block");
428
+ REACT_FUNDAMENTAL_TYPE = symbolFor("react.fundamental");
429
+ symbolFor("react.scope");
430
+ symbolFor("react.opaque.id");
431
+ REACT_DEBUG_TRACING_MODE_TYPE = symbolFor("react.debug_trace_mode");
432
+ symbolFor("react.offscreen");
433
+ REACT_LEGACY_HIDDEN_TYPE = symbolFor("react.legacy_hidden");
434
+ }
435
+ var MAYBE_ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
436
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
437
+ function getIteratorFn(maybeIterable) {
438
+ if (maybeIterable === null || typeof maybeIterable !== "object") {
439
+ return null;
440
+ }
441
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
442
+ if (typeof maybeIterator === "function") {
443
+ return maybeIterator;
444
+ }
445
+ return null;
446
+ }
447
+ var ReactCurrentDispatcher = {
448
+ /**
449
+ * @internal
450
+ * @type {ReactComponent}
451
+ */
452
+ current: null
453
+ };
454
+ var ReactCurrentBatchConfig = {
455
+ transition: 0
456
+ };
457
+ var ReactCurrentOwner = {
458
+ /**
459
+ * @internal
460
+ * @type {ReactComponent}
461
+ */
462
+ current: null
463
+ };
464
+ var ReactDebugCurrentFrame = {};
465
+ var currentExtraStackFrame = null;
466
+ function setExtraStackFrame(stack) {
467
+ {
468
+ currentExtraStackFrame = stack;
469
+ }
470
+ }
471
+ {
472
+ ReactDebugCurrentFrame.setExtraStackFrame = function(stack) {
473
+ {
474
+ currentExtraStackFrame = stack;
475
+ }
476
+ };
477
+ ReactDebugCurrentFrame.getCurrentStack = null;
478
+ ReactDebugCurrentFrame.getStackAddendum = function() {
479
+ var stack = "";
480
+ if (currentExtraStackFrame) {
481
+ stack += currentExtraStackFrame;
482
+ }
483
+ var impl = ReactDebugCurrentFrame.getCurrentStack;
484
+ if (impl) {
485
+ stack += impl() || "";
486
+ }
487
+ return stack;
488
+ };
489
+ }
490
+ var IsSomeRendererActing = {
491
+ current: false
492
+ };
493
+ var ReactSharedInternals = {
494
+ ReactCurrentDispatcher,
495
+ ReactCurrentBatchConfig,
496
+ ReactCurrentOwner,
497
+ IsSomeRendererActing,
498
+ // Used by renderers to avoid bundling object-assign twice in UMD bundles:
499
+ assign: _assign
500
+ };
501
+ {
502
+ ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
503
+ }
504
+ function warn(format) {
505
+ {
506
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
507
+ args[_key - 1] = arguments[_key];
508
+ }
509
+ printWarning("warn", format, args);
510
+ }
511
+ }
512
+ function error(format) {
513
+ {
514
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
515
+ args[_key2 - 1] = arguments[_key2];
516
+ }
517
+ printWarning("error", format, args);
518
+ }
519
+ }
520
+ function printWarning(level, format, args) {
521
+ {
522
+ var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
523
+ var stack = ReactDebugCurrentFrame2.getStackAddendum();
524
+ if (stack !== "") {
525
+ format += "%s";
526
+ args = args.concat([stack]);
527
+ }
528
+ var argsWithFormat = args.map(function(item) {
529
+ return "" + item;
530
+ });
531
+ argsWithFormat.unshift("Warning: " + format);
532
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
533
+ }
534
+ }
535
+ var didWarnStateUpdateForUnmountedComponent = {};
536
+ function warnNoop(publicInstance, callerName) {
537
+ {
538
+ var _constructor = publicInstance.constructor;
539
+ var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass";
540
+ var warningKey = componentName + "." + callerName;
541
+ if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
542
+ return;
543
+ }
544
+ 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);
545
+ didWarnStateUpdateForUnmountedComponent[warningKey] = true;
546
+ }
547
+ }
548
+ var ReactNoopUpdateQueue = {
549
+ /**
550
+ * Checks whether or not this composite component is mounted.
551
+ * @param {ReactClass} publicInstance The instance we want to test.
552
+ * @return {boolean} True if mounted, false otherwise.
553
+ * @protected
554
+ * @final
555
+ */
556
+ isMounted: function(publicInstance) {
557
+ return false;
558
+ },
559
+ /**
560
+ * Forces an update. This should only be invoked when it is known with
561
+ * certainty that we are **not** in a DOM transaction.
562
+ *
563
+ * You may want to call this when you know that some deeper aspect of the
564
+ * component's state has changed but `setState` was not called.
565
+ *
566
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
567
+ * `componentWillUpdate` and `componentDidUpdate`.
568
+ *
569
+ * @param {ReactClass} publicInstance The instance that should rerender.
570
+ * @param {?function} callback Called after component is updated.
571
+ * @param {?string} callerName name of the calling function in the public API.
572
+ * @internal
573
+ */
574
+ enqueueForceUpdate: function(publicInstance, callback, callerName) {
575
+ warnNoop(publicInstance, "forceUpdate");
576
+ },
577
+ /**
578
+ * Replaces all of the state. Always use this or `setState` to mutate state.
579
+ * You should treat `this.state` as immutable.
580
+ *
581
+ * There is no guarantee that `this.state` will be immediately updated, so
582
+ * accessing `this.state` after calling this method may return the old value.
583
+ *
584
+ * @param {ReactClass} publicInstance The instance that should rerender.
585
+ * @param {object} completeState Next state.
586
+ * @param {?function} callback Called after component is updated.
587
+ * @param {?string} callerName name of the calling function in the public API.
588
+ * @internal
589
+ */
590
+ enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
591
+ warnNoop(publicInstance, "replaceState");
592
+ },
593
+ /**
594
+ * Sets a subset of the state. This only exists because _pendingState is
595
+ * internal. This provides a merging strategy that is not available to deep
596
+ * properties which is confusing. TODO: Expose pendingState or don't use it
597
+ * during the merge.
598
+ *
599
+ * @param {ReactClass} publicInstance The instance that should rerender.
600
+ * @param {object} partialState Next partial state to be merged with state.
601
+ * @param {?function} callback Called after component is updated.
602
+ * @param {?string} Name of the calling function in the public API.
603
+ * @internal
604
+ */
605
+ enqueueSetState: function(publicInstance, partialState, callback, callerName) {
606
+ warnNoop(publicInstance, "setState");
607
+ }
608
+ };
609
+ var emptyObject = {};
610
+ {
611
+ Object.freeze(emptyObject);
612
+ }
613
+ function Component(props, context, updater) {
614
+ this.props = props;
615
+ this.context = context;
616
+ this.refs = emptyObject;
617
+ this.updater = updater || ReactNoopUpdateQueue;
618
+ }
619
+ Component.prototype.isReactComponent = {};
620
+ Component.prototype.setState = function(partialState, callback) {
621
+ if (!(typeof partialState === "object" || typeof partialState === "function" || partialState == null)) {
622
+ {
623
+ throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
624
+ }
625
+ }
626
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
627
+ };
628
+ Component.prototype.forceUpdate = function(callback) {
629
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
630
+ };
631
+ {
632
+ var deprecatedAPIs = {
633
+ isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
634
+ replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
635
+ };
636
+ var defineDeprecationWarning = function(methodName, info) {
637
+ Object.defineProperty(Component.prototype, methodName, {
638
+ get: function() {
639
+ warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
640
+ return void 0;
641
+ }
642
+ });
643
+ };
644
+ for (var fnName in deprecatedAPIs) {
645
+ if (deprecatedAPIs.hasOwnProperty(fnName)) {
646
+ defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
647
+ }
648
+ }
649
+ }
650
+ function ComponentDummy() {
651
+ }
652
+ ComponentDummy.prototype = Component.prototype;
653
+ function PureComponent(props, context, updater) {
654
+ this.props = props;
655
+ this.context = context;
656
+ this.refs = emptyObject;
657
+ this.updater = updater || ReactNoopUpdateQueue;
658
+ }
659
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
660
+ pureComponentPrototype.constructor = PureComponent;
661
+ _assign(pureComponentPrototype, Component.prototype);
662
+ pureComponentPrototype.isPureReactComponent = true;
663
+ function createRef() {
664
+ var refObject = {
665
+ current: null
666
+ };
667
+ {
668
+ Object.seal(refObject);
669
+ }
670
+ return refObject;
671
+ }
672
+ function getWrappedName(outerType, innerType, wrapperName) {
673
+ var functionName = innerType.displayName || innerType.name || "";
674
+ return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName);
675
+ }
676
+ function getContextName(type) {
677
+ return type.displayName || "Context";
678
+ }
679
+ function getComponentName(type) {
680
+ if (type == null) {
681
+ return null;
682
+ }
683
+ {
684
+ if (typeof type.tag === "number") {
685
+ error("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue.");
686
+ }
687
+ }
688
+ if (typeof type === "function") {
689
+ return type.displayName || type.name || null;
690
+ }
691
+ if (typeof type === "string") {
692
+ return type;
693
+ }
694
+ switch (type) {
695
+ case exports.Fragment:
696
+ return "Fragment";
697
+ case REACT_PORTAL_TYPE:
698
+ return "Portal";
699
+ case exports.Profiler:
700
+ return "Profiler";
701
+ case exports.StrictMode:
702
+ return "StrictMode";
703
+ case exports.Suspense:
704
+ return "Suspense";
705
+ case REACT_SUSPENSE_LIST_TYPE:
706
+ return "SuspenseList";
707
+ }
708
+ if (typeof type === "object") {
709
+ switch (type.$$typeof) {
710
+ case REACT_CONTEXT_TYPE:
711
+ var context = type;
712
+ return getContextName(context) + ".Consumer";
713
+ case REACT_PROVIDER_TYPE:
714
+ var provider = type;
715
+ return getContextName(provider._context) + ".Provider";
716
+ case REACT_FORWARD_REF_TYPE:
717
+ return getWrappedName(type, type.render, "ForwardRef");
718
+ case REACT_MEMO_TYPE:
719
+ return getComponentName(type.type);
720
+ case REACT_BLOCK_TYPE:
721
+ return getComponentName(type._render);
722
+ case REACT_LAZY_TYPE: {
723
+ var lazyComponent = type;
724
+ var payload = lazyComponent._payload;
725
+ var init = lazyComponent._init;
726
+ try {
727
+ return getComponentName(init(payload));
728
+ } catch (x) {
729
+ return null;
730
+ }
731
+ }
732
+ }
733
+ }
734
+ return null;
735
+ }
736
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
737
+ var RESERVED_PROPS = {
738
+ key: true,
739
+ ref: true,
740
+ __self: true,
741
+ __source: true
742
+ };
743
+ var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
744
+ {
745
+ didWarnAboutStringRefs = {};
746
+ }
747
+ function hasValidRef(config) {
748
+ {
749
+ if (hasOwnProperty.call(config, "ref")) {
750
+ var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
751
+ if (getter && getter.isReactWarning) {
752
+ return false;
753
+ }
754
+ }
755
+ }
756
+ return config.ref !== void 0;
757
+ }
758
+ function hasValidKey(config) {
759
+ {
760
+ if (hasOwnProperty.call(config, "key")) {
761
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
762
+ if (getter && getter.isReactWarning) {
763
+ return false;
764
+ }
765
+ }
766
+ }
767
+ return config.key !== void 0;
768
+ }
769
+ function defineKeyPropWarningGetter(props, displayName) {
770
+ var warnAboutAccessingKey = function() {
771
+ {
772
+ if (!specialPropKeyWarningShown) {
773
+ specialPropKeyWarningShown = true;
774
+ 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);
775
+ }
776
+ }
777
+ };
778
+ warnAboutAccessingKey.isReactWarning = true;
779
+ Object.defineProperty(props, "key", {
780
+ get: warnAboutAccessingKey,
781
+ configurable: true
782
+ });
783
+ }
784
+ function defineRefPropWarningGetter(props, displayName) {
785
+ var warnAboutAccessingRef = function() {
786
+ {
787
+ if (!specialPropRefWarningShown) {
788
+ specialPropRefWarningShown = true;
789
+ 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);
790
+ }
791
+ }
792
+ };
793
+ warnAboutAccessingRef.isReactWarning = true;
794
+ Object.defineProperty(props, "ref", {
795
+ get: warnAboutAccessingRef,
796
+ configurable: true
797
+ });
798
+ }
799
+ function warnIfStringRefCannotBeAutoConverted(config) {
800
+ {
801
+ if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
802
+ var componentName = getComponentName(ReactCurrentOwner.current.type);
803
+ if (!didWarnAboutStringRefs[componentName]) {
804
+ 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);
805
+ didWarnAboutStringRefs[componentName] = true;
806
+ }
807
+ }
808
+ }
809
+ }
810
+ var ReactElement = function(type, key, ref, self, source, owner, props) {
811
+ var element = {
812
+ // This tag allows us to uniquely identify this as a React Element
813
+ $$typeof: REACT_ELEMENT_TYPE,
814
+ // Built-in properties that belong on the element
815
+ type,
816
+ key,
817
+ ref,
818
+ props,
819
+ // Record the component responsible for creating this element.
820
+ _owner: owner
821
+ };
822
+ {
823
+ element._store = {};
824
+ Object.defineProperty(element._store, "validated", {
825
+ configurable: false,
826
+ enumerable: false,
827
+ writable: true,
828
+ value: false
829
+ });
830
+ Object.defineProperty(element, "_self", {
831
+ configurable: false,
832
+ enumerable: false,
833
+ writable: false,
834
+ value: self
835
+ });
836
+ Object.defineProperty(element, "_source", {
837
+ configurable: false,
838
+ enumerable: false,
839
+ writable: false,
840
+ value: source
841
+ });
842
+ if (Object.freeze) {
843
+ Object.freeze(element.props);
844
+ Object.freeze(element);
845
+ }
846
+ }
847
+ return element;
848
+ };
849
+ function createElement(type, config, children) {
850
+ var propName;
851
+ var props = {};
852
+ var key = null;
853
+ var ref = null;
854
+ var self = null;
855
+ var source = null;
856
+ if (config != null) {
857
+ if (hasValidRef(config)) {
858
+ ref = config.ref;
859
+ {
860
+ warnIfStringRefCannotBeAutoConverted(config);
861
+ }
862
+ }
863
+ if (hasValidKey(config)) {
864
+ key = "" + config.key;
865
+ }
866
+ self = config.__self === void 0 ? null : config.__self;
867
+ source = config.__source === void 0 ? null : config.__source;
868
+ for (propName in config) {
869
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
870
+ props[propName] = config[propName];
871
+ }
872
+ }
873
+ }
874
+ var childrenLength = arguments.length - 2;
875
+ if (childrenLength === 1) {
876
+ props.children = children;
877
+ } else if (childrenLength > 1) {
878
+ var childArray = Array(childrenLength);
879
+ for (var i = 0; i < childrenLength; i++) {
880
+ childArray[i] = arguments[i + 2];
881
+ }
882
+ {
883
+ if (Object.freeze) {
884
+ Object.freeze(childArray);
885
+ }
886
+ }
887
+ props.children = childArray;
888
+ }
889
+ if (type && type.defaultProps) {
890
+ var defaultProps = type.defaultProps;
891
+ for (propName in defaultProps) {
892
+ if (props[propName] === void 0) {
893
+ props[propName] = defaultProps[propName];
894
+ }
895
+ }
896
+ }
897
+ {
898
+ if (key || ref) {
899
+ var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
900
+ if (key) {
901
+ defineKeyPropWarningGetter(props, displayName);
902
+ }
903
+ if (ref) {
904
+ defineRefPropWarningGetter(props, displayName);
905
+ }
906
+ }
907
+ }
908
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
909
+ }
910
+ function cloneAndReplaceKey(oldElement, newKey) {
911
+ var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
912
+ return newElement;
913
+ }
914
+ function cloneElement(element, config, children) {
915
+ if (!!(element === null || element === void 0)) {
916
+ {
917
+ throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
918
+ }
919
+ }
920
+ var propName;
921
+ var props = _assign({}, element.props);
922
+ var key = element.key;
923
+ var ref = element.ref;
924
+ var self = element._self;
925
+ var source = element._source;
926
+ var owner = element._owner;
927
+ if (config != null) {
928
+ if (hasValidRef(config)) {
929
+ ref = config.ref;
930
+ owner = ReactCurrentOwner.current;
931
+ }
932
+ if (hasValidKey(config)) {
933
+ key = "" + config.key;
934
+ }
935
+ var defaultProps;
936
+ if (element.type && element.type.defaultProps) {
937
+ defaultProps = element.type.defaultProps;
938
+ }
939
+ for (propName in config) {
940
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
941
+ if (config[propName] === void 0 && defaultProps !== void 0) {
942
+ props[propName] = defaultProps[propName];
943
+ } else {
944
+ props[propName] = config[propName];
945
+ }
946
+ }
947
+ }
948
+ }
949
+ var childrenLength = arguments.length - 2;
950
+ if (childrenLength === 1) {
951
+ props.children = children;
952
+ } else if (childrenLength > 1) {
953
+ var childArray = Array(childrenLength);
954
+ for (var i = 0; i < childrenLength; i++) {
955
+ childArray[i] = arguments[i + 2];
956
+ }
957
+ props.children = childArray;
958
+ }
959
+ return ReactElement(element.type, key, ref, self, source, owner, props);
960
+ }
961
+ function isValidElement(object) {
962
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
963
+ }
964
+ var SEPARATOR = ".";
965
+ var SUBSEPARATOR = ":";
966
+ function escape(key) {
967
+ var escapeRegex = /[=:]/g;
968
+ var escaperLookup = {
969
+ "=": "=0",
970
+ ":": "=2"
971
+ };
972
+ var escapedString = key.replace(escapeRegex, function(match) {
973
+ return escaperLookup[match];
974
+ });
975
+ return "$" + escapedString;
976
+ }
977
+ var didWarnAboutMaps = false;
978
+ var userProvidedKeyEscapeRegex = /\/+/g;
979
+ function escapeUserProvidedKey(text) {
980
+ return text.replace(userProvidedKeyEscapeRegex, "$&/");
981
+ }
982
+ function getElementKey(element, index) {
983
+ if (typeof element === "object" && element !== null && element.key != null) {
984
+ return escape("" + element.key);
985
+ }
986
+ return index.toString(36);
987
+ }
988
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
989
+ var type = typeof children;
990
+ if (type === "undefined" || type === "boolean") {
991
+ children = null;
992
+ }
993
+ var invokeCallback = false;
994
+ if (children === null) {
995
+ invokeCallback = true;
996
+ } else {
997
+ switch (type) {
998
+ case "string":
999
+ case "number":
1000
+ invokeCallback = true;
1001
+ break;
1002
+ case "object":
1003
+ switch (children.$$typeof) {
1004
+ case REACT_ELEMENT_TYPE:
1005
+ case REACT_PORTAL_TYPE:
1006
+ invokeCallback = true;
1007
+ }
1008
+ }
1009
+ }
1010
+ if (invokeCallback) {
1011
+ var _child = children;
1012
+ var mappedChild = callback(_child);
1013
+ var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
1014
+ if (Array.isArray(mappedChild)) {
1015
+ var escapedChildKey = "";
1016
+ if (childKey != null) {
1017
+ escapedChildKey = escapeUserProvidedKey(childKey) + "/";
1018
+ }
1019
+ mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) {
1020
+ return c;
1021
+ });
1022
+ } else if (mappedChild != null) {
1023
+ if (isValidElement(mappedChild)) {
1024
+ mappedChild = cloneAndReplaceKey(
1025
+ mappedChild,
1026
+ // Keep both the (mapped) and old keys if they differ, just as
1027
+ // traverseAllChildren used to do for objects as children
1028
+ escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
1029
+ (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? (
1030
+ // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
1031
+ escapeUserProvidedKey("" + mappedChild.key) + "/"
1032
+ ) : "") + childKey
1033
+ );
1034
+ }
1035
+ array.push(mappedChild);
1036
+ }
1037
+ return 1;
1038
+ }
1039
+ var child;
1040
+ var nextName;
1041
+ var subtreeCount = 0;
1042
+ var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
1043
+ if (Array.isArray(children)) {
1044
+ for (var i = 0; i < children.length; i++) {
1045
+ child = children[i];
1046
+ nextName = nextNamePrefix + getElementKey(child, i);
1047
+ subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1048
+ }
1049
+ } else {
1050
+ var iteratorFn = getIteratorFn(children);
1051
+ if (typeof iteratorFn === "function") {
1052
+ var iterableChildren = children;
1053
+ {
1054
+ if (iteratorFn === iterableChildren.entries) {
1055
+ if (!didWarnAboutMaps) {
1056
+ warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");
1057
+ }
1058
+ didWarnAboutMaps = true;
1059
+ }
1060
+ }
1061
+ var iterator = iteratorFn.call(iterableChildren);
1062
+ var step;
1063
+ var ii = 0;
1064
+ while (!(step = iterator.next()).done) {
1065
+ child = step.value;
1066
+ nextName = nextNamePrefix + getElementKey(child, ii++);
1067
+ subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1068
+ }
1069
+ } else if (type === "object") {
1070
+ var childrenString = "" + children;
1071
+ {
1072
+ {
1073
+ throw Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead.");
1074
+ }
1075
+ }
1076
+ }
1077
+ }
1078
+ return subtreeCount;
1079
+ }
1080
+ function mapChildren(children, func, context) {
1081
+ if (children == null) {
1082
+ return children;
1083
+ }
1084
+ var result = [];
1085
+ var count = 0;
1086
+ mapIntoArray(children, result, "", "", function(child) {
1087
+ return func.call(context, child, count++);
1088
+ });
1089
+ return result;
1090
+ }
1091
+ function countChildren(children) {
1092
+ var n = 0;
1093
+ mapChildren(children, function() {
1094
+ n++;
1095
+ });
1096
+ return n;
1097
+ }
1098
+ function forEachChildren(children, forEachFunc, forEachContext) {
1099
+ mapChildren(children, function() {
1100
+ forEachFunc.apply(this, arguments);
1101
+ }, forEachContext);
1102
+ }
1103
+ function toArray(children) {
1104
+ return mapChildren(children, function(child) {
1105
+ return child;
1106
+ }) || [];
1107
+ }
1108
+ function onlyChild(children) {
1109
+ if (!isValidElement(children)) {
1110
+ {
1111
+ throw Error("React.Children.only expected to receive a single React element child.");
1112
+ }
1113
+ }
1114
+ return children;
1115
+ }
1116
+ function createContext(defaultValue, calculateChangedBits) {
1117
+ if (calculateChangedBits === void 0) {
1118
+ calculateChangedBits = null;
1119
+ } else {
1120
+ {
1121
+ if (calculateChangedBits !== null && typeof calculateChangedBits !== "function") {
1122
+ error("createContext: Expected the optional second argument to be a function. Instead received: %s", calculateChangedBits);
1123
+ }
1124
+ }
1125
+ }
1126
+ var context = {
1127
+ $$typeof: REACT_CONTEXT_TYPE,
1128
+ _calculateChangedBits: calculateChangedBits,
1129
+ // As a workaround to support multiple concurrent renderers, we categorize
1130
+ // some renderers as primary and others as secondary. We only expect
1131
+ // there to be two concurrent renderers at most: React Native (primary) and
1132
+ // Fabric (secondary); React DOM (primary) and React ART (secondary).
1133
+ // Secondary renderers store their context values on separate fields.
1134
+ _currentValue: defaultValue,
1135
+ _currentValue2: defaultValue,
1136
+ // Used to track how many concurrent renderers this context currently
1137
+ // supports within in a single renderer. Such as parallel server rendering.
1138
+ _threadCount: 0,
1139
+ // These are circular
1140
+ Provider: null,
1141
+ Consumer: null
1142
+ };
1143
+ context.Provider = {
1144
+ $$typeof: REACT_PROVIDER_TYPE,
1145
+ _context: context
1146
+ };
1147
+ var hasWarnedAboutUsingNestedContextConsumers = false;
1148
+ var hasWarnedAboutUsingConsumerProvider = false;
1149
+ var hasWarnedAboutDisplayNameOnConsumer = false;
1150
+ {
1151
+ var Consumer = {
1152
+ $$typeof: REACT_CONTEXT_TYPE,
1153
+ _context: context,
1154
+ _calculateChangedBits: context._calculateChangedBits
1155
+ };
1156
+ Object.defineProperties(Consumer, {
1157
+ Provider: {
1158
+ get: function() {
1159
+ if (!hasWarnedAboutUsingConsumerProvider) {
1160
+ hasWarnedAboutUsingConsumerProvider = true;
1161
+ 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?");
1162
+ }
1163
+ return context.Provider;
1164
+ },
1165
+ set: function(_Provider) {
1166
+ context.Provider = _Provider;
1167
+ }
1168
+ },
1169
+ _currentValue: {
1170
+ get: function() {
1171
+ return context._currentValue;
1172
+ },
1173
+ set: function(_currentValue) {
1174
+ context._currentValue = _currentValue;
1175
+ }
1176
+ },
1177
+ _currentValue2: {
1178
+ get: function() {
1179
+ return context._currentValue2;
1180
+ },
1181
+ set: function(_currentValue2) {
1182
+ context._currentValue2 = _currentValue2;
1183
+ }
1184
+ },
1185
+ _threadCount: {
1186
+ get: function() {
1187
+ return context._threadCount;
1188
+ },
1189
+ set: function(_threadCount) {
1190
+ context._threadCount = _threadCount;
1191
+ }
1192
+ },
1193
+ Consumer: {
1194
+ get: function() {
1195
+ if (!hasWarnedAboutUsingNestedContextConsumers) {
1196
+ hasWarnedAboutUsingNestedContextConsumers = true;
1197
+ 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?");
1198
+ }
1199
+ return context.Consumer;
1200
+ }
1201
+ },
1202
+ displayName: {
1203
+ get: function() {
1204
+ return context.displayName;
1205
+ },
1206
+ set: function(displayName) {
1207
+ if (!hasWarnedAboutDisplayNameOnConsumer) {
1208
+ warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName);
1209
+ hasWarnedAboutDisplayNameOnConsumer = true;
1210
+ }
1211
+ }
1212
+ }
1213
+ });
1214
+ context.Consumer = Consumer;
1215
+ }
1216
+ {
1217
+ context._currentRenderer = null;
1218
+ context._currentRenderer2 = null;
1219
+ }
1220
+ return context;
1221
+ }
1222
+ var Uninitialized = -1;
1223
+ var Pending = 0;
1224
+ var Resolved = 1;
1225
+ var Rejected = 2;
1226
+ function lazyInitializer(payload) {
1227
+ if (payload._status === Uninitialized) {
1228
+ var ctor = payload._result;
1229
+ var thenable = ctor();
1230
+ var pending = payload;
1231
+ pending._status = Pending;
1232
+ pending._result = thenable;
1233
+ thenable.then(function(moduleObject) {
1234
+ if (payload._status === Pending) {
1235
+ var defaultExport = moduleObject.default;
1236
+ {
1237
+ if (defaultExport === 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'))", moduleObject);
1239
+ }
1240
+ }
1241
+ var resolved = payload;
1242
+ resolved._status = Resolved;
1243
+ resolved._result = defaultExport;
1244
+ }
1245
+ }, function(error2) {
1246
+ if (payload._status === Pending) {
1247
+ var rejected = payload;
1248
+ rejected._status = Rejected;
1249
+ rejected._result = error2;
1250
+ }
1251
+ });
1252
+ }
1253
+ if (payload._status === Resolved) {
1254
+ return payload._result;
1255
+ } else {
1256
+ throw payload._result;
1257
+ }
1258
+ }
1259
+ function lazy(ctor) {
1260
+ var payload = {
1261
+ // We use these fields to store the result.
1262
+ _status: -1,
1263
+ _result: ctor
1264
+ };
1265
+ var lazyType = {
1266
+ $$typeof: REACT_LAZY_TYPE,
1267
+ _payload: payload,
1268
+ _init: lazyInitializer
1269
+ };
1270
+ {
1271
+ var defaultProps;
1272
+ var propTypes;
1273
+ Object.defineProperties(lazyType, {
1274
+ defaultProps: {
1275
+ configurable: true,
1276
+ get: function() {
1277
+ return defaultProps;
1278
+ },
1279
+ set: function(newDefaultProps) {
1280
+ 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.");
1281
+ defaultProps = newDefaultProps;
1282
+ Object.defineProperty(lazyType, "defaultProps", {
1283
+ enumerable: true
1284
+ });
1285
+ }
1286
+ },
1287
+ propTypes: {
1288
+ configurable: true,
1289
+ get: function() {
1290
+ return propTypes;
1291
+ },
1292
+ set: function(newPropTypes) {
1293
+ 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.");
1294
+ propTypes = newPropTypes;
1295
+ Object.defineProperty(lazyType, "propTypes", {
1296
+ enumerable: true
1297
+ });
1298
+ }
1299
+ }
1300
+ });
1301
+ }
1302
+ return lazyType;
1303
+ }
1304
+ function forwardRef(render) {
1305
+ {
1306
+ if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
1307
+ error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
1308
+ } else if (typeof render !== "function") {
1309
+ error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render);
1310
+ } else {
1311
+ if (render.length !== 0 && render.length !== 2) {
1312
+ 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.");
1313
+ }
1314
+ }
1315
+ if (render != null) {
1316
+ if (render.defaultProps != null || render.propTypes != null) {
1317
+ error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
1318
+ }
1319
+ }
1320
+ }
1321
+ var elementType = {
1322
+ $$typeof: REACT_FORWARD_REF_TYPE,
1323
+ render
1324
+ };
1325
+ {
1326
+ var ownName;
1327
+ Object.defineProperty(elementType, "displayName", {
1328
+ enumerable: false,
1329
+ configurable: true,
1330
+ get: function() {
1331
+ return ownName;
1332
+ },
1333
+ set: function(name) {
1334
+ ownName = name;
1335
+ if (render.displayName == null) {
1336
+ render.displayName = name;
1337
+ }
1338
+ }
1339
+ });
1340
+ }
1341
+ return elementType;
1342
+ }
1343
+ var enableScopeAPI = false;
1344
+ function isValidElementType(type) {
1345
+ if (typeof type === "string" || typeof type === "function") {
1346
+ return true;
1347
+ }
1348
+ if (type === exports.Fragment || type === exports.Profiler || type === REACT_DEBUG_TRACING_MODE_TYPE || type === exports.StrictMode || type === exports.Suspense || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) {
1349
+ return true;
1350
+ }
1351
+ if (typeof type === "object" && type !== null) {
1352
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
1353
+ return true;
1354
+ }
1355
+ }
1356
+ return false;
1357
+ }
1358
+ function memo(type, compare) {
1359
+ {
1360
+ if (!isValidElementType(type)) {
1361
+ error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
1362
+ }
1363
+ }
1364
+ var elementType = {
1365
+ $$typeof: REACT_MEMO_TYPE,
1366
+ type,
1367
+ compare: compare === void 0 ? null : compare
1368
+ };
1369
+ {
1370
+ var ownName;
1371
+ Object.defineProperty(elementType, "displayName", {
1372
+ enumerable: false,
1373
+ configurable: true,
1374
+ get: function() {
1375
+ return ownName;
1376
+ },
1377
+ set: function(name) {
1378
+ ownName = name;
1379
+ if (type.displayName == null) {
1380
+ type.displayName = name;
1381
+ }
1382
+ }
1383
+ });
1384
+ }
1385
+ return elementType;
1386
+ }
1387
+ function resolveDispatcher() {
1388
+ var dispatcher = ReactCurrentDispatcher.current;
1389
+ if (!(dispatcher !== null)) {
1390
+ {
1391
+ throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");
1392
+ }
1393
+ }
1394
+ return dispatcher;
1395
+ }
1396
+ function useContext(Context, unstable_observedBits) {
1397
+ var dispatcher = resolveDispatcher();
1398
+ {
1399
+ if (unstable_observedBits !== void 0) {
1400
+ error("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s", unstable_observedBits, typeof unstable_observedBits === "number" && Array.isArray(arguments[2]) ? "\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks" : "");
1401
+ }
1402
+ if (Context._context !== void 0) {
1403
+ var realContext = Context._context;
1404
+ if (realContext.Consumer === Context) {
1405
+ 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?");
1406
+ } else if (realContext.Provider === Context) {
1407
+ error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
1408
+ }
1409
+ }
1410
+ }
1411
+ return dispatcher.useContext(Context, unstable_observedBits);
1412
+ }
1413
+ function useState(initialState) {
1414
+ var dispatcher = resolveDispatcher();
1415
+ return dispatcher.useState(initialState);
1416
+ }
1417
+ function useReducer(reducer, initialArg, init) {
1418
+ var dispatcher = resolveDispatcher();
1419
+ return dispatcher.useReducer(reducer, initialArg, init);
1420
+ }
1421
+ function useRef(initialValue) {
1422
+ var dispatcher = resolveDispatcher();
1423
+ return dispatcher.useRef(initialValue);
1424
+ }
1425
+ function useEffect(create, deps) {
1426
+ var dispatcher = resolveDispatcher();
1427
+ return dispatcher.useEffect(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
+ var disabledDepth = 0;
1452
+ var prevLog;
1453
+ var prevInfo;
1454
+ var prevWarn;
1455
+ var prevError;
1456
+ var prevGroup;
1457
+ var prevGroupCollapsed;
1458
+ var prevGroupEnd;
1459
+ function disabledLog() {
1460
+ }
1461
+ disabledLog.__reactDisabledLog = true;
1462
+ function disableLogs() {
1463
+ {
1464
+ if (disabledDepth === 0) {
1465
+ prevLog = console.log;
1466
+ prevInfo = console.info;
1467
+ prevWarn = console.warn;
1468
+ prevError = console.error;
1469
+ prevGroup = console.group;
1470
+ prevGroupCollapsed = console.groupCollapsed;
1471
+ prevGroupEnd = console.groupEnd;
1472
+ var props = {
1473
+ configurable: true,
1474
+ enumerable: true,
1475
+ value: disabledLog,
1476
+ writable: true
1477
+ };
1478
+ Object.defineProperties(console, {
1479
+ info: props,
1480
+ log: props,
1481
+ warn: props,
1482
+ error: props,
1483
+ group: props,
1484
+ groupCollapsed: props,
1485
+ groupEnd: props
1486
+ });
1487
+ }
1488
+ disabledDepth++;
1489
+ }
1490
+ }
1491
+ function reenableLogs() {
1492
+ {
1493
+ disabledDepth--;
1494
+ if (disabledDepth === 0) {
1495
+ var props = {
1496
+ configurable: true,
1497
+ enumerable: true,
1498
+ writable: true
1499
+ };
1500
+ Object.defineProperties(console, {
1501
+ log: _assign({}, props, {
1502
+ value: prevLog
1503
+ }),
1504
+ info: _assign({}, props, {
1505
+ value: prevInfo
1506
+ }),
1507
+ warn: _assign({}, props, {
1508
+ value: prevWarn
1509
+ }),
1510
+ error: _assign({}, props, {
1511
+ value: prevError
1512
+ }),
1513
+ group: _assign({}, props, {
1514
+ value: prevGroup
1515
+ }),
1516
+ groupCollapsed: _assign({}, props, {
1517
+ value: prevGroupCollapsed
1518
+ }),
1519
+ groupEnd: _assign({}, props, {
1520
+ value: prevGroupEnd
1521
+ })
1522
+ });
1523
+ }
1524
+ if (disabledDepth < 0) {
1525
+ error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1526
+ }
1527
+ }
1528
+ }
1529
+ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
1530
+ var prefix;
1531
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
1532
+ {
1533
+ if (prefix === void 0) {
1534
+ try {
1535
+ throw Error();
1536
+ } catch (x) {
1537
+ var match = x.stack.trim().match(/\n( *(at )?)/);
1538
+ prefix = match && match[1] || "";
1539
+ }
1540
+ }
1541
+ return "\n" + prefix + name;
1542
+ }
1543
+ }
1544
+ var reentry = false;
1545
+ var componentFrameCache;
1546
+ {
1547
+ var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
1548
+ componentFrameCache = new PossiblyWeakMap();
1549
+ }
1550
+ function describeNativeComponentFrame(fn, construct) {
1551
+ if (!fn || reentry) {
1552
+ return "";
1553
+ }
1554
+ {
1555
+ var frame = componentFrameCache.get(fn);
1556
+ if (frame !== void 0) {
1557
+ return frame;
1558
+ }
1559
+ }
1560
+ var control;
1561
+ reentry = true;
1562
+ var previousPrepareStackTrace = Error.prepareStackTrace;
1563
+ Error.prepareStackTrace = void 0;
1564
+ var previousDispatcher;
1565
+ {
1566
+ previousDispatcher = ReactCurrentDispatcher$1.current;
1567
+ ReactCurrentDispatcher$1.current = null;
1568
+ disableLogs();
1569
+ }
1570
+ try {
1571
+ if (construct) {
1572
+ var Fake = function() {
1573
+ throw Error();
1574
+ };
1575
+ Object.defineProperty(Fake.prototype, "props", {
1576
+ set: function() {
1577
+ throw Error();
1578
+ }
1579
+ });
1580
+ if (typeof Reflect === "object" && Reflect.construct) {
1581
+ try {
1582
+ Reflect.construct(Fake, []);
1583
+ } catch (x) {
1584
+ control = x;
1585
+ }
1586
+ Reflect.construct(fn, [], Fake);
1587
+ } else {
1588
+ try {
1589
+ Fake.call();
1590
+ } catch (x) {
1591
+ control = x;
1592
+ }
1593
+ fn.call(Fake.prototype);
1594
+ }
1595
+ } else {
1596
+ try {
1597
+ throw Error();
1598
+ } catch (x) {
1599
+ control = x;
1600
+ }
1601
+ fn();
1602
+ }
1603
+ } catch (sample) {
1604
+ if (sample && control && typeof sample.stack === "string") {
1605
+ var sampleLines = sample.stack.split("\n");
1606
+ var controlLines = control.stack.split("\n");
1607
+ var s = sampleLines.length - 1;
1608
+ var c = controlLines.length - 1;
1609
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
1610
+ c--;
1611
+ }
1612
+ for (; s >= 1 && c >= 0; s--, c--) {
1613
+ if (sampleLines[s] !== controlLines[c]) {
1614
+ if (s !== 1 || c !== 1) {
1615
+ do {
1616
+ s--;
1617
+ c--;
1618
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
1619
+ var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
1620
+ {
1621
+ if (typeof fn === "function") {
1622
+ componentFrameCache.set(fn, _frame);
1623
+ }
1624
+ }
1625
+ return _frame;
1626
+ }
1627
+ } while (s >= 1 && c >= 0);
1628
+ }
1629
+ break;
1630
+ }
1631
+ }
1632
+ }
1633
+ } finally {
1634
+ reentry = false;
1635
+ {
1636
+ ReactCurrentDispatcher$1.current = previousDispatcher;
1637
+ reenableLogs();
1638
+ }
1639
+ Error.prepareStackTrace = previousPrepareStackTrace;
1640
+ }
1641
+ var name = fn ? fn.displayName || fn.name : "";
1642
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
1643
+ {
1644
+ if (typeof fn === "function") {
1645
+ componentFrameCache.set(fn, syntheticFrame);
1646
+ }
1647
+ }
1648
+ return syntheticFrame;
1649
+ }
1650
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
1651
+ {
1652
+ return describeNativeComponentFrame(fn, false);
1653
+ }
1654
+ }
1655
+ function shouldConstruct(Component2) {
1656
+ var prototype = Component2.prototype;
1657
+ return !!(prototype && prototype.isReactComponent);
1658
+ }
1659
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
1660
+ if (type == null) {
1661
+ return "";
1662
+ }
1663
+ if (typeof type === "function") {
1664
+ {
1665
+ return describeNativeComponentFrame(type, shouldConstruct(type));
1666
+ }
1667
+ }
1668
+ if (typeof type === "string") {
1669
+ return describeBuiltInComponentFrame(type);
1670
+ }
1671
+ switch (type) {
1672
+ case exports.Suspense:
1673
+ return describeBuiltInComponentFrame("Suspense");
1674
+ case REACT_SUSPENSE_LIST_TYPE:
1675
+ return describeBuiltInComponentFrame("SuspenseList");
1676
+ }
1677
+ if (typeof type === "object") {
1678
+ switch (type.$$typeof) {
1679
+ case REACT_FORWARD_REF_TYPE:
1680
+ return describeFunctionComponentFrame(type.render);
1681
+ case REACT_MEMO_TYPE:
1682
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
1683
+ case REACT_BLOCK_TYPE:
1684
+ return describeFunctionComponentFrame(type._render);
1685
+ case REACT_LAZY_TYPE: {
1686
+ var lazyComponent = type;
1687
+ var payload = lazyComponent._payload;
1688
+ var init = lazyComponent._init;
1689
+ try {
1690
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
1691
+ } catch (x) {
1692
+ }
1693
+ }
1694
+ }
1695
+ }
1696
+ return "";
1697
+ }
1698
+ var loggedTypeFailures = {};
1699
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
1700
+ function setCurrentlyValidatingElement(element) {
1701
+ {
1702
+ if (element) {
1703
+ var owner = element._owner;
1704
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1705
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
1706
+ } else {
1707
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
1708
+ }
1709
+ }
1710
+ }
1711
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
1712
+ {
1713
+ var has = Function.call.bind(Object.prototype.hasOwnProperty);
1714
+ for (var typeSpecName in typeSpecs) {
1715
+ if (has(typeSpecs, typeSpecName)) {
1716
+ var error$1 = void 0;
1717
+ try {
1718
+ if (typeof typeSpecs[typeSpecName] !== "function") {
1719
+ 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`.");
1720
+ err.name = "Invariant Violation";
1721
+ throw err;
1722
+ }
1723
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1724
+ } catch (ex) {
1725
+ error$1 = ex;
1726
+ }
1727
+ if (error$1 && !(error$1 instanceof Error)) {
1728
+ setCurrentlyValidatingElement(element);
1729
+ 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);
1730
+ setCurrentlyValidatingElement(null);
1731
+ }
1732
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
1733
+ loggedTypeFailures[error$1.message] = true;
1734
+ setCurrentlyValidatingElement(element);
1735
+ error("Failed %s type: %s", location, error$1.message);
1736
+ setCurrentlyValidatingElement(null);
1737
+ }
1738
+ }
1739
+ }
1740
+ }
1741
+ }
1742
+ function setCurrentlyValidatingElement$1(element) {
1743
+ {
1744
+ if (element) {
1745
+ var owner = element._owner;
1746
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1747
+ setExtraStackFrame(stack);
1748
+ } else {
1749
+ setExtraStackFrame(null);
1750
+ }
1751
+ }
1752
+ }
1753
+ var propTypesMisspellWarningShown;
1754
+ {
1755
+ propTypesMisspellWarningShown = false;
1756
+ }
1757
+ function getDeclarationErrorAddendum() {
1758
+ if (ReactCurrentOwner.current) {
1759
+ var name = getComponentName(ReactCurrentOwner.current.type);
1760
+ if (name) {
1761
+ return "\n\nCheck the render method of `" + name + "`.";
1762
+ }
1763
+ }
1764
+ return "";
1765
+ }
1766
+ function getSourceInfoErrorAddendum(source) {
1767
+ if (source !== void 0) {
1768
+ var fileName = source.fileName.replace(/^.*[\\\/]/, "");
1769
+ var lineNumber = source.lineNumber;
1770
+ return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
1771
+ }
1772
+ return "";
1773
+ }
1774
+ function getSourceInfoErrorAddendumForProps(elementProps) {
1775
+ if (elementProps !== null && elementProps !== void 0) {
1776
+ return getSourceInfoErrorAddendum(elementProps.__source);
1777
+ }
1778
+ return "";
1779
+ }
1780
+ var ownerHasKeyUseWarning = {};
1781
+ function getCurrentComponentErrorInfo(parentType) {
1782
+ var info = getDeclarationErrorAddendum();
1783
+ if (!info) {
1784
+ var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
1785
+ if (parentName) {
1786
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1787
+ }
1788
+ }
1789
+ return info;
1790
+ }
1791
+ function validateExplicitKey(element, parentType) {
1792
+ if (!element._store || element._store.validated || element.key != null) {
1793
+ return;
1794
+ }
1795
+ element._store.validated = true;
1796
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1797
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1798
+ return;
1799
+ }
1800
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
1801
+ var childOwner = "";
1802
+ if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1803
+ childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
1804
+ }
1805
+ {
1806
+ setCurrentlyValidatingElement$1(element);
1807
+ 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);
1808
+ setCurrentlyValidatingElement$1(null);
1809
+ }
1810
+ }
1811
+ function validateChildKeys(node, parentType) {
1812
+ if (typeof node !== "object") {
1813
+ return;
1814
+ }
1815
+ if (Array.isArray(node)) {
1816
+ for (var i = 0; i < node.length; i++) {
1817
+ var child = node[i];
1818
+ if (isValidElement(child)) {
1819
+ validateExplicitKey(child, parentType);
1820
+ }
1821
+ }
1822
+ } else if (isValidElement(node)) {
1823
+ if (node._store) {
1824
+ node._store.validated = true;
1825
+ }
1826
+ } else if (node) {
1827
+ var iteratorFn = getIteratorFn(node);
1828
+ if (typeof iteratorFn === "function") {
1829
+ if (iteratorFn !== node.entries) {
1830
+ var iterator = iteratorFn.call(node);
1831
+ var step;
1832
+ while (!(step = iterator.next()).done) {
1833
+ if (isValidElement(step.value)) {
1834
+ validateExplicitKey(step.value, parentType);
1835
+ }
1836
+ }
1837
+ }
1838
+ }
1839
+ }
1840
+ }
1841
+ function validatePropTypes(element) {
1842
+ {
1843
+ var type = element.type;
1844
+ if (type === null || type === void 0 || typeof type === "string") {
1845
+ return;
1846
+ }
1847
+ var propTypes;
1848
+ if (typeof type === "function") {
1849
+ propTypes = type.propTypes;
1850
+ } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
1851
+ // Inner props are checked in the reconciler.
1852
+ type.$$typeof === REACT_MEMO_TYPE)) {
1853
+ propTypes = type.propTypes;
1854
+ } else {
1855
+ return;
1856
+ }
1857
+ if (propTypes) {
1858
+ var name = getComponentName(type);
1859
+ checkPropTypes(propTypes, element.props, "prop", name, element);
1860
+ } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
1861
+ propTypesMisspellWarningShown = true;
1862
+ var _name = getComponentName(type);
1863
+ error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
1864
+ }
1865
+ if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
1866
+ error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1867
+ }
1868
+ }
1869
+ }
1870
+ function validateFragmentProps(fragment) {
1871
+ {
1872
+ var keys = Object.keys(fragment.props);
1873
+ for (var i = 0; i < keys.length; i++) {
1874
+ var key = keys[i];
1875
+ if (key !== "children" && key !== "key") {
1876
+ setCurrentlyValidatingElement$1(fragment);
1877
+ error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
1878
+ setCurrentlyValidatingElement$1(null);
1879
+ break;
1880
+ }
1881
+ }
1882
+ if (fragment.ref !== null) {
1883
+ setCurrentlyValidatingElement$1(fragment);
1884
+ error("Invalid attribute `ref` supplied to `React.Fragment`.");
1885
+ setCurrentlyValidatingElement$1(null);
1886
+ }
1887
+ }
1888
+ }
1889
+ function createElementWithValidation(type, props, children) {
1890
+ var validType = isValidElementType(type);
1891
+ if (!validType) {
1892
+ var info = "";
1893
+ if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
1894
+ 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.";
1895
+ }
1896
+ var sourceInfo = getSourceInfoErrorAddendumForProps(props);
1897
+ if (sourceInfo) {
1898
+ info += sourceInfo;
1899
+ } else {
1900
+ info += getDeclarationErrorAddendum();
1901
+ }
1902
+ var typeString;
1903
+ if (type === null) {
1904
+ typeString = "null";
1905
+ } else if (Array.isArray(type)) {
1906
+ typeString = "array";
1907
+ } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
1908
+ typeString = "<" + (getComponentName(type.type) || "Unknown") + " />";
1909
+ info = " Did you accidentally export a JSX literal instead of a component?";
1910
+ } else {
1911
+ typeString = typeof type;
1912
+ }
1913
+ {
1914
+ 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);
1915
+ }
1916
+ }
1917
+ var element = createElement.apply(this, arguments);
1918
+ if (element == null) {
1919
+ return element;
1920
+ }
1921
+ if (validType) {
1922
+ for (var i = 2; i < arguments.length; i++) {
1923
+ validateChildKeys(arguments[i], type);
1924
+ }
1925
+ }
1926
+ if (type === exports.Fragment) {
1927
+ validateFragmentProps(element);
1928
+ } else {
1929
+ validatePropTypes(element);
1930
+ }
1931
+ return element;
1932
+ }
1933
+ var didWarnAboutDeprecatedCreateFactory = false;
1934
+ function createFactoryWithValidation(type) {
1935
+ var validatedFactory = createElementWithValidation.bind(null, type);
1936
+ validatedFactory.type = type;
1937
+ {
1938
+ if (!didWarnAboutDeprecatedCreateFactory) {
1939
+ didWarnAboutDeprecatedCreateFactory = true;
1940
+ warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
1941
+ }
1942
+ Object.defineProperty(validatedFactory, "type", {
1943
+ enumerable: false,
1944
+ get: function() {
1945
+ warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
1946
+ Object.defineProperty(this, "type", {
1947
+ value: type
1948
+ });
1949
+ return type;
1950
+ }
1951
+ });
1952
+ }
1953
+ return validatedFactory;
1954
+ }
1955
+ function cloneElementWithValidation(element, props, children) {
1956
+ var newElement = cloneElement.apply(this, arguments);
1957
+ for (var i = 2; i < arguments.length; i++) {
1958
+ validateChildKeys(arguments[i], newElement.type);
1959
+ }
1960
+ validatePropTypes(newElement);
1961
+ return newElement;
1962
+ }
1963
+ {
1964
+ try {
1965
+ var frozenObject = Object.freeze({});
1966
+ /* @__PURE__ */ new Map([[frozenObject, null]]);
1967
+ /* @__PURE__ */ new Set([frozenObject]);
1968
+ } catch (e) {
1969
+ }
1970
+ }
1971
+ var createElement$1 = createElementWithValidation;
1972
+ var cloneElement$1 = cloneElementWithValidation;
1973
+ var createFactory = createFactoryWithValidation;
1974
+ var Children = {
1975
+ map: mapChildren,
1976
+ forEach: forEachChildren,
1977
+ count: countChildren,
1978
+ toArray,
1979
+ only: onlyChild
1980
+ };
1981
+ exports.Children = Children;
1982
+ exports.Component = Component;
1983
+ exports.PureComponent = PureComponent;
1984
+ exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
1985
+ exports.cloneElement = cloneElement$1;
1986
+ exports.createContext = createContext;
1987
+ exports.createElement = createElement$1;
1988
+ exports.createFactory = createFactory;
1989
+ exports.createRef = createRef;
1990
+ exports.forwardRef = forwardRef;
1991
+ exports.isValidElement = isValidElement;
1992
+ exports.lazy = lazy;
1993
+ exports.memo = memo;
1994
+ exports.useCallback = useCallback;
1995
+ exports.useContext = useContext;
1996
+ exports.useDebugValue = useDebugValue;
1997
+ exports.useEffect = useEffect;
1998
+ exports.useImperativeHandle = useImperativeHandle;
1999
+ exports.useLayoutEffect = useLayoutEffect;
2000
+ exports.useMemo = useMemo;
2001
+ exports.useReducer = useReducer;
2002
+ exports.useRef = useRef;
2003
+ exports.useState = useState;
2004
+ exports.version = ReactVersion;
2005
+ })();
2006
+ }
2007
+ })(react_development);
2008
+ return react_development;
2009
+ }
2010
+ if (process.env.NODE_ENV === "production") {
2011
+ react.exports = requireReact_production_min();
2012
+ } else {
2013
+ react.exports = requireReact_development();
2014
+ }
2015
+ var reactExports = react.exports;
2016
+ function NeetoTimezoneSelector(options = {}) {
2017
+ const id = (options == null ? void 0 : options.id) || "timezone-selector";
2018
+ const ref = reactExports.useCallback((node) => {
2019
+ if (node !== null) {
2020
+ new Plugin(node, options);
2021
+ }
2022
+ }, []);
2023
+ return /* @__PURE__ */ h("div", { id, ref });
2024
+ }
2025
+ export {
2026
+ NeetoTimezoneSelector as default
2027
+ };