@nearform/quantum 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,3857 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __getProtoOf = Object.getPrototypeOf;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __objRest = (source, exclude) => {
26
+ var target = {};
27
+ for (var prop in source)
28
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
+ target[prop] = source[prop];
30
+ if (source != null && __getOwnPropSymbols)
31
+ for (var prop of __getOwnPropSymbols(source)) {
32
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
+ target[prop] = source[prop];
34
+ }
35
+ return target;
36
+ };
37
+ var __commonJS = (cb, mod) => function __require() {
38
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
39
+ };
40
+ var __export = (target, all) => {
41
+ for (var name in all)
42
+ __defProp(target, name, { get: all[name], enumerable: true });
43
+ };
44
+ var __copyProps = (to, from, except, desc) => {
45
+ if (from && typeof from === "object" || typeof from === "function") {
46
+ for (let key of __getOwnPropNames(from))
47
+ if (!__hasOwnProp.call(to, key) && key !== except)
48
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
49
+ }
50
+ return to;
51
+ };
52
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
53
+ // If the importer is in node compatibility mode or this is not an ESM
54
+ // file that has been converted to a CommonJS file using a Babel-
55
+ // compatible transform (i.e. "__esModule" has not been set), then set
56
+ // "default" to the CommonJS "module.exports" for node compatibility.
57
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
58
+ mod
59
+ ));
60
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
61
+
62
+ // node_modules/react/cjs/react.production.min.js
63
+ var require_react_production_min = __commonJS({
64
+ "node_modules/react/cjs/react.production.min.js"(exports) {
65
+ "use strict";
66
+ var l = Symbol.for("react.element");
67
+ var n = Symbol.for("react.portal");
68
+ var p = Symbol.for("react.fragment");
69
+ var q = Symbol.for("react.strict_mode");
70
+ var r = Symbol.for("react.profiler");
71
+ var t = Symbol.for("react.provider");
72
+ var u = Symbol.for("react.context");
73
+ var v = Symbol.for("react.forward_ref");
74
+ var w = Symbol.for("react.suspense");
75
+ var x = Symbol.for("react.memo");
76
+ var y = Symbol.for("react.lazy");
77
+ var z = Symbol.iterator;
78
+ function A(a) {
79
+ if (null === a || "object" !== typeof a)
80
+ return null;
81
+ a = z && a[z] || a["@@iterator"];
82
+ return "function" === typeof a ? a : null;
83
+ }
84
+ var B = { isMounted: function() {
85
+ return false;
86
+ }, enqueueForceUpdate: function() {
87
+ }, enqueueReplaceState: function() {
88
+ }, enqueueSetState: function() {
89
+ } };
90
+ var C = Object.assign;
91
+ var D = {};
92
+ function E(a, b, e) {
93
+ this.props = a;
94
+ this.context = b;
95
+ this.refs = D;
96
+ this.updater = e || B;
97
+ }
98
+ E.prototype.isReactComponent = {};
99
+ E.prototype.setState = function(a, b) {
100
+ if ("object" !== typeof a && "function" !== typeof a && null != a)
101
+ throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
102
+ this.updater.enqueueSetState(this, a, b, "setState");
103
+ };
104
+ E.prototype.forceUpdate = function(a) {
105
+ this.updater.enqueueForceUpdate(this, a, "forceUpdate");
106
+ };
107
+ function F() {
108
+ }
109
+ F.prototype = E.prototype;
110
+ function G(a, b, e) {
111
+ this.props = a;
112
+ this.context = b;
113
+ this.refs = D;
114
+ this.updater = e || B;
115
+ }
116
+ var H = G.prototype = new F();
117
+ H.constructor = G;
118
+ C(H, E.prototype);
119
+ H.isPureReactComponent = true;
120
+ var I = Array.isArray;
121
+ var J = Object.prototype.hasOwnProperty;
122
+ var K = { current: null };
123
+ var L = { key: true, ref: true, __self: true, __source: true };
124
+ function M(a, b, e) {
125
+ var d, c = {}, k = null, h = null;
126
+ if (null != b)
127
+ for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b)
128
+ J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]);
129
+ var g = arguments.length - 2;
130
+ if (1 === g)
131
+ c.children = e;
132
+ else if (1 < g) {
133
+ for (var f = Array(g), m = 0; m < g; m++)
134
+ f[m] = arguments[m + 2];
135
+ c.children = f;
136
+ }
137
+ if (a && a.defaultProps)
138
+ for (d in g = a.defaultProps, g)
139
+ void 0 === c[d] && (c[d] = g[d]);
140
+ return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current };
141
+ }
142
+ function N(a, b) {
143
+ return { $$typeof: l, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner };
144
+ }
145
+ function O(a) {
146
+ return "object" === typeof a && null !== a && a.$$typeof === l;
147
+ }
148
+ function escape(a) {
149
+ var b = { "=": "=0", ":": "=2" };
150
+ return "$" + a.replace(/[=:]/g, function(a2) {
151
+ return b[a2];
152
+ });
153
+ }
154
+ var P = /\/+/g;
155
+ function Q(a, b) {
156
+ return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36);
157
+ }
158
+ function R(a, b, e, d, c) {
159
+ var k = typeof a;
160
+ if ("undefined" === k || "boolean" === k)
161
+ a = null;
162
+ var h = false;
163
+ if (null === a)
164
+ h = true;
165
+ else
166
+ switch (k) {
167
+ case "string":
168
+ case "number":
169
+ h = true;
170
+ break;
171
+ case "object":
172
+ switch (a.$$typeof) {
173
+ case l:
174
+ case n:
175
+ h = true;
176
+ }
177
+ }
178
+ if (h)
179
+ 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) {
180
+ return a2;
181
+ })) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
182
+ h = 0;
183
+ d = "" === d ? "." : d + ":";
184
+ if (I(a))
185
+ for (var g = 0; g < a.length; g++) {
186
+ k = a[g];
187
+ var f = d + Q(k, g);
188
+ h += R(k, b, e, f, c);
189
+ }
190
+ else if (f = A(a), "function" === typeof f)
191
+ for (a = f.call(a), g = 0; !(k = a.next()).done; )
192
+ k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c);
193
+ else if ("object" === k)
194
+ 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.");
195
+ return h;
196
+ }
197
+ function S(a, b, e) {
198
+ if (null == a)
199
+ return a;
200
+ var d = [], c = 0;
201
+ R(a, d, "", "", function(a2) {
202
+ return b.call(e, a2, c++);
203
+ });
204
+ return d;
205
+ }
206
+ function T(a) {
207
+ if (-1 === a._status) {
208
+ var b = a._result;
209
+ b = b();
210
+ b.then(function(b2) {
211
+ if (0 === a._status || -1 === a._status)
212
+ a._status = 1, a._result = b2;
213
+ }, function(b2) {
214
+ if (0 === a._status || -1 === a._status)
215
+ a._status = 2, a._result = b2;
216
+ });
217
+ -1 === a._status && (a._status = 0, a._result = b);
218
+ }
219
+ if (1 === a._status)
220
+ return a._result.default;
221
+ throw a._result;
222
+ }
223
+ var U = { current: null };
224
+ var V = { transition: null };
225
+ var W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K };
226
+ exports.Children = { map: S, forEach: function(a, b, e) {
227
+ S(a, function() {
228
+ b.apply(this, arguments);
229
+ }, e);
230
+ }, count: function(a) {
231
+ var b = 0;
232
+ S(a, function() {
233
+ b++;
234
+ });
235
+ return b;
236
+ }, toArray: function(a) {
237
+ return S(a, function(a2) {
238
+ return a2;
239
+ }) || [];
240
+ }, only: function(a) {
241
+ if (!O(a))
242
+ throw Error("React.Children.only expected to receive a single React element child.");
243
+ return a;
244
+ } };
245
+ exports.Component = E;
246
+ exports.Fragment = p;
247
+ exports.Profiler = r;
248
+ exports.PureComponent = G;
249
+ exports.StrictMode = q;
250
+ exports.Suspense = w;
251
+ exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
252
+ exports.cloneElement = function(a, b, e) {
253
+ if (null === a || void 0 === a)
254
+ throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
255
+ var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner;
256
+ if (null != b) {
257
+ void 0 !== b.ref && (k = b.ref, h = K.current);
258
+ void 0 !== b.key && (c = "" + b.key);
259
+ if (a.type && a.type.defaultProps)
260
+ var g = a.type.defaultProps;
261
+ for (f in b)
262
+ J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
263
+ }
264
+ var f = arguments.length - 2;
265
+ if (1 === f)
266
+ d.children = e;
267
+ else if (1 < f) {
268
+ g = Array(f);
269
+ for (var m = 0; m < f; m++)
270
+ g[m] = arguments[m + 2];
271
+ d.children = g;
272
+ }
273
+ return { $$typeof: l, type: a.type, key: c, ref: k, props: d, _owner: h };
274
+ };
275
+ exports.createContext = function(a) {
276
+ a = { $$typeof: u, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null };
277
+ a.Provider = { $$typeof: t, _context: a };
278
+ return a.Consumer = a;
279
+ };
280
+ exports.createElement = M;
281
+ exports.createFactory = function(a) {
282
+ var b = M.bind(null, a);
283
+ b.type = a;
284
+ return b;
285
+ };
286
+ exports.createRef = function() {
287
+ return { current: null };
288
+ };
289
+ exports.forwardRef = function(a) {
290
+ return { $$typeof: v, render: a };
291
+ };
292
+ exports.isValidElement = O;
293
+ exports.lazy = function(a) {
294
+ return { $$typeof: y, _payload: { _status: -1, _result: a }, _init: T };
295
+ };
296
+ exports.memo = function(a, b) {
297
+ return { $$typeof: x, type: a, compare: void 0 === b ? null : b };
298
+ };
299
+ exports.startTransition = function(a) {
300
+ var b = V.transition;
301
+ V.transition = {};
302
+ try {
303
+ a();
304
+ } finally {
305
+ V.transition = b;
306
+ }
307
+ };
308
+ exports.unstable_act = function() {
309
+ throw Error("act(...) is not supported in production builds of React.");
310
+ };
311
+ exports.useCallback = function(a, b) {
312
+ return U.current.useCallback(a, b);
313
+ };
314
+ exports.useContext = function(a) {
315
+ return U.current.useContext(a);
316
+ };
317
+ exports.useDebugValue = function() {
318
+ };
319
+ exports.useDeferredValue = function(a) {
320
+ return U.current.useDeferredValue(a);
321
+ };
322
+ exports.useEffect = function(a, b) {
323
+ return U.current.useEffect(a, b);
324
+ };
325
+ exports.useId = function() {
326
+ return U.current.useId();
327
+ };
328
+ exports.useImperativeHandle = function(a, b, e) {
329
+ return U.current.useImperativeHandle(a, b, e);
330
+ };
331
+ exports.useInsertionEffect = function(a, b) {
332
+ return U.current.useInsertionEffect(a, b);
333
+ };
334
+ exports.useLayoutEffect = function(a, b) {
335
+ return U.current.useLayoutEffect(a, b);
336
+ };
337
+ exports.useMemo = function(a, b) {
338
+ return U.current.useMemo(a, b);
339
+ };
340
+ exports.useReducer = function(a, b, e) {
341
+ return U.current.useReducer(a, b, e);
342
+ };
343
+ exports.useRef = function(a) {
344
+ return U.current.useRef(a);
345
+ };
346
+ exports.useState = function(a) {
347
+ return U.current.useState(a);
348
+ };
349
+ exports.useSyncExternalStore = function(a, b, e) {
350
+ return U.current.useSyncExternalStore(a, b, e);
351
+ };
352
+ exports.useTransition = function() {
353
+ return U.current.useTransition();
354
+ };
355
+ exports.version = "18.2.0";
356
+ }
357
+ });
358
+
359
+ // node_modules/react/cjs/react.development.js
360
+ var require_react_development = __commonJS({
361
+ "node_modules/react/cjs/react.development.js"(exports, module2) {
362
+ "use strict";
363
+ if (process.env.NODE_ENV !== "production") {
364
+ (function() {
365
+ "use strict";
366
+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
367
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
368
+ }
369
+ var ReactVersion = "18.2.0";
370
+ var REACT_ELEMENT_TYPE = Symbol.for("react.element");
371
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
372
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
373
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
374
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
375
+ var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
376
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
377
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
378
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
379
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
380
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
381
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
382
+ var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
383
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
384
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
385
+ function getIteratorFn(maybeIterable) {
386
+ if (maybeIterable === null || typeof maybeIterable !== "object") {
387
+ return null;
388
+ }
389
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
390
+ if (typeof maybeIterator === "function") {
391
+ return maybeIterator;
392
+ }
393
+ return null;
394
+ }
395
+ var ReactCurrentDispatcher = {
396
+ /**
397
+ * @internal
398
+ * @type {ReactComponent}
399
+ */
400
+ current: null
401
+ };
402
+ var ReactCurrentBatchConfig = {
403
+ transition: null
404
+ };
405
+ var ReactCurrentActQueue = {
406
+ current: null,
407
+ // Used to reproduce behavior of `batchedUpdates` in legacy mode.
408
+ isBatchingLegacy: false,
409
+ didScheduleLegacyUpdate: false
410
+ };
411
+ var ReactCurrentOwner = {
412
+ /**
413
+ * @internal
414
+ * @type {ReactComponent}
415
+ */
416
+ current: null
417
+ };
418
+ var ReactDebugCurrentFrame = {};
419
+ var currentExtraStackFrame = null;
420
+ function setExtraStackFrame(stack) {
421
+ {
422
+ currentExtraStackFrame = stack;
423
+ }
424
+ }
425
+ {
426
+ ReactDebugCurrentFrame.setExtraStackFrame = function(stack) {
427
+ {
428
+ currentExtraStackFrame = stack;
429
+ }
430
+ };
431
+ ReactDebugCurrentFrame.getCurrentStack = null;
432
+ ReactDebugCurrentFrame.getStackAddendum = function() {
433
+ var stack = "";
434
+ if (currentExtraStackFrame) {
435
+ stack += currentExtraStackFrame;
436
+ }
437
+ var impl = ReactDebugCurrentFrame.getCurrentStack;
438
+ if (impl) {
439
+ stack += impl() || "";
440
+ }
441
+ return stack;
442
+ };
443
+ }
444
+ var enableScopeAPI = false;
445
+ var enableCacheElement = false;
446
+ var enableTransitionTracing = false;
447
+ var enableLegacyHidden = false;
448
+ var enableDebugTracing = false;
449
+ var ReactSharedInternals = {
450
+ ReactCurrentDispatcher,
451
+ ReactCurrentBatchConfig,
452
+ ReactCurrentOwner
453
+ };
454
+ {
455
+ ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
456
+ ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
457
+ }
458
+ function warn(format) {
459
+ {
460
+ {
461
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
462
+ args[_key - 1] = arguments[_key];
463
+ }
464
+ printWarning("warn", format, args);
465
+ }
466
+ }
467
+ }
468
+ function error(format) {
469
+ {
470
+ {
471
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
472
+ args[_key2 - 1] = arguments[_key2];
473
+ }
474
+ printWarning("error", format, args);
475
+ }
476
+ }
477
+ }
478
+ function printWarning(level, format, args) {
479
+ {
480
+ var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
481
+ var stack = ReactDebugCurrentFrame2.getStackAddendum();
482
+ if (stack !== "") {
483
+ format += "%s";
484
+ args = args.concat([stack]);
485
+ }
486
+ var argsWithFormat = args.map(function(item) {
487
+ return String(item);
488
+ });
489
+ argsWithFormat.unshift("Warning: " + format);
490
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
491
+ }
492
+ }
493
+ var didWarnStateUpdateForUnmountedComponent = {};
494
+ function warnNoop(publicInstance, callerName) {
495
+ {
496
+ var _constructor = publicInstance.constructor;
497
+ var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass";
498
+ var warningKey = componentName + "." + callerName;
499
+ if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
500
+ return;
501
+ }
502
+ 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);
503
+ didWarnStateUpdateForUnmountedComponent[warningKey] = true;
504
+ }
505
+ }
506
+ var ReactNoopUpdateQueue = {
507
+ /**
508
+ * Checks whether or not this composite component is mounted.
509
+ * @param {ReactClass} publicInstance The instance we want to test.
510
+ * @return {boolean} True if mounted, false otherwise.
511
+ * @protected
512
+ * @final
513
+ */
514
+ isMounted: function(publicInstance) {
515
+ return false;
516
+ },
517
+ /**
518
+ * Forces an update. This should only be invoked when it is known with
519
+ * certainty that we are **not** in a DOM transaction.
520
+ *
521
+ * You may want to call this when you know that some deeper aspect of the
522
+ * component's state has changed but `setState` was not called.
523
+ *
524
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
525
+ * `componentWillUpdate` and `componentDidUpdate`.
526
+ *
527
+ * @param {ReactClass} publicInstance The instance that should rerender.
528
+ * @param {?function} callback Called after component is updated.
529
+ * @param {?string} callerName name of the calling function in the public API.
530
+ * @internal
531
+ */
532
+ enqueueForceUpdate: function(publicInstance, callback, callerName) {
533
+ warnNoop(publicInstance, "forceUpdate");
534
+ },
535
+ /**
536
+ * Replaces all of the state. Always use this or `setState` to mutate state.
537
+ * You should treat `this.state` as immutable.
538
+ *
539
+ * There is no guarantee that `this.state` will be immediately updated, so
540
+ * accessing `this.state` after calling this method may return the old value.
541
+ *
542
+ * @param {ReactClass} publicInstance The instance that should rerender.
543
+ * @param {object} completeState Next state.
544
+ * @param {?function} callback Called after component is updated.
545
+ * @param {?string} callerName name of the calling function in the public API.
546
+ * @internal
547
+ */
548
+ enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
549
+ warnNoop(publicInstance, "replaceState");
550
+ },
551
+ /**
552
+ * Sets a subset of the state. This only exists because _pendingState is
553
+ * internal. This provides a merging strategy that is not available to deep
554
+ * properties which is confusing. TODO: Expose pendingState or don't use it
555
+ * during the merge.
556
+ *
557
+ * @param {ReactClass} publicInstance The instance that should rerender.
558
+ * @param {object} partialState Next partial state to be merged with state.
559
+ * @param {?function} callback Called after component is updated.
560
+ * @param {?string} Name of the calling function in the public API.
561
+ * @internal
562
+ */
563
+ enqueueSetState: function(publicInstance, partialState, callback, callerName) {
564
+ warnNoop(publicInstance, "setState");
565
+ }
566
+ };
567
+ var assign = Object.assign;
568
+ var emptyObject = {};
569
+ {
570
+ Object.freeze(emptyObject);
571
+ }
572
+ function Component(props, context, updater) {
573
+ this.props = props;
574
+ this.context = context;
575
+ this.refs = emptyObject;
576
+ this.updater = updater || ReactNoopUpdateQueue;
577
+ }
578
+ Component.prototype.isReactComponent = {};
579
+ Component.prototype.setState = function(partialState, callback) {
580
+ if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null) {
581
+ throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
582
+ }
583
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
584
+ };
585
+ Component.prototype.forceUpdate = function(callback) {
586
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
587
+ };
588
+ {
589
+ var deprecatedAPIs = {
590
+ isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
591
+ replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
592
+ };
593
+ var defineDeprecationWarning = function(methodName, info) {
594
+ Object.defineProperty(Component.prototype, methodName, {
595
+ get: function() {
596
+ warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
597
+ return void 0;
598
+ }
599
+ });
600
+ };
601
+ for (var fnName in deprecatedAPIs) {
602
+ if (deprecatedAPIs.hasOwnProperty(fnName)) {
603
+ defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
604
+ }
605
+ }
606
+ }
607
+ function ComponentDummy() {
608
+ }
609
+ ComponentDummy.prototype = Component.prototype;
610
+ function PureComponent(props, context, updater) {
611
+ this.props = props;
612
+ this.context = context;
613
+ this.refs = emptyObject;
614
+ this.updater = updater || ReactNoopUpdateQueue;
615
+ }
616
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
617
+ pureComponentPrototype.constructor = PureComponent;
618
+ assign(pureComponentPrototype, Component.prototype);
619
+ pureComponentPrototype.isPureReactComponent = true;
620
+ function createRef() {
621
+ var refObject = {
622
+ current: null
623
+ };
624
+ {
625
+ Object.seal(refObject);
626
+ }
627
+ return refObject;
628
+ }
629
+ var isArrayImpl = Array.isArray;
630
+ function isArray(a) {
631
+ return isArrayImpl(a);
632
+ }
633
+ function typeName(value) {
634
+ {
635
+ var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
636
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
637
+ return type;
638
+ }
639
+ }
640
+ function willCoercionThrow(value) {
641
+ {
642
+ try {
643
+ testStringCoercion(value);
644
+ return false;
645
+ } catch (e) {
646
+ return true;
647
+ }
648
+ }
649
+ }
650
+ function testStringCoercion(value) {
651
+ return "" + value;
652
+ }
653
+ function checkKeyStringCoercion(value) {
654
+ {
655
+ if (willCoercionThrow(value)) {
656
+ error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
657
+ return testStringCoercion(value);
658
+ }
659
+ }
660
+ }
661
+ function getWrappedName(outerType, innerType, wrapperName) {
662
+ var displayName = outerType.displayName;
663
+ if (displayName) {
664
+ return displayName;
665
+ }
666
+ var functionName = innerType.displayName || innerType.name || "";
667
+ return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
668
+ }
669
+ function getContextName(type) {
670
+ return type.displayName || "Context";
671
+ }
672
+ function getComponentNameFromType(type) {
673
+ if (type == null) {
674
+ return null;
675
+ }
676
+ {
677
+ if (typeof type.tag === "number") {
678
+ error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
679
+ }
680
+ }
681
+ if (typeof type === "function") {
682
+ return type.displayName || type.name || null;
683
+ }
684
+ if (typeof type === "string") {
685
+ return type;
686
+ }
687
+ switch (type) {
688
+ case REACT_FRAGMENT_TYPE:
689
+ return "Fragment";
690
+ case REACT_PORTAL_TYPE:
691
+ return "Portal";
692
+ case REACT_PROFILER_TYPE:
693
+ return "Profiler";
694
+ case REACT_STRICT_MODE_TYPE:
695
+ return "StrictMode";
696
+ case REACT_SUSPENSE_TYPE:
697
+ return "Suspense";
698
+ case REACT_SUSPENSE_LIST_TYPE:
699
+ return "SuspenseList";
700
+ }
701
+ if (typeof type === "object") {
702
+ switch (type.$$typeof) {
703
+ case REACT_CONTEXT_TYPE:
704
+ var context = type;
705
+ return getContextName(context) + ".Consumer";
706
+ case REACT_PROVIDER_TYPE:
707
+ var provider = type;
708
+ return getContextName(provider._context) + ".Provider";
709
+ case REACT_FORWARD_REF_TYPE:
710
+ return getWrappedName(type, type.render, "ForwardRef");
711
+ case REACT_MEMO_TYPE:
712
+ var outerName = type.displayName || null;
713
+ if (outerName !== null) {
714
+ return outerName;
715
+ }
716
+ return getComponentNameFromType(type.type) || "Memo";
717
+ case REACT_LAZY_TYPE: {
718
+ var lazyComponent = type;
719
+ var payload = lazyComponent._payload;
720
+ var init = lazyComponent._init;
721
+ try {
722
+ return getComponentNameFromType(init(payload));
723
+ } catch (x) {
724
+ return null;
725
+ }
726
+ }
727
+ }
728
+ }
729
+ return null;
730
+ }
731
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
732
+ var RESERVED_PROPS = {
733
+ key: true,
734
+ ref: true,
735
+ __self: true,
736
+ __source: true
737
+ };
738
+ var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
739
+ {
740
+ didWarnAboutStringRefs = {};
741
+ }
742
+ function hasValidRef(config) {
743
+ {
744
+ if (hasOwnProperty.call(config, "ref")) {
745
+ var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
746
+ if (getter && getter.isReactWarning) {
747
+ return false;
748
+ }
749
+ }
750
+ }
751
+ return config.ref !== void 0;
752
+ }
753
+ function hasValidKey(config) {
754
+ {
755
+ if (hasOwnProperty.call(config, "key")) {
756
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
757
+ if (getter && getter.isReactWarning) {
758
+ return false;
759
+ }
760
+ }
761
+ }
762
+ return config.key !== void 0;
763
+ }
764
+ function defineKeyPropWarningGetter(props, displayName) {
765
+ var warnAboutAccessingKey = function() {
766
+ {
767
+ if (!specialPropKeyWarningShown) {
768
+ specialPropKeyWarningShown = true;
769
+ 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);
770
+ }
771
+ }
772
+ };
773
+ warnAboutAccessingKey.isReactWarning = true;
774
+ Object.defineProperty(props, "key", {
775
+ get: warnAboutAccessingKey,
776
+ configurable: true
777
+ });
778
+ }
779
+ function defineRefPropWarningGetter(props, displayName) {
780
+ var warnAboutAccessingRef = function() {
781
+ {
782
+ if (!specialPropRefWarningShown) {
783
+ specialPropRefWarningShown = true;
784
+ 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);
785
+ }
786
+ }
787
+ };
788
+ warnAboutAccessingRef.isReactWarning = true;
789
+ Object.defineProperty(props, "ref", {
790
+ get: warnAboutAccessingRef,
791
+ configurable: true
792
+ });
793
+ }
794
+ function warnIfStringRefCannotBeAutoConverted(config) {
795
+ {
796
+ if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
797
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
798
+ if (!didWarnAboutStringRefs[componentName]) {
799
+ 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);
800
+ didWarnAboutStringRefs[componentName] = true;
801
+ }
802
+ }
803
+ }
804
+ }
805
+ var ReactElement = function(type, key, ref, self, source, owner, props) {
806
+ var element = {
807
+ // This tag allows us to uniquely identify this as a React Element
808
+ $$typeof: REACT_ELEMENT_TYPE,
809
+ // Built-in properties that belong on the element
810
+ type,
811
+ key,
812
+ ref,
813
+ props,
814
+ // Record the component responsible for creating this element.
815
+ _owner: owner
816
+ };
817
+ {
818
+ element._store = {};
819
+ Object.defineProperty(element._store, "validated", {
820
+ configurable: false,
821
+ enumerable: false,
822
+ writable: true,
823
+ value: false
824
+ });
825
+ Object.defineProperty(element, "_self", {
826
+ configurable: false,
827
+ enumerable: false,
828
+ writable: false,
829
+ value: self
830
+ });
831
+ Object.defineProperty(element, "_source", {
832
+ configurable: false,
833
+ enumerable: false,
834
+ writable: false,
835
+ value: source
836
+ });
837
+ if (Object.freeze) {
838
+ Object.freeze(element.props);
839
+ Object.freeze(element);
840
+ }
841
+ }
842
+ return element;
843
+ };
844
+ function createElement(type, config, children) {
845
+ var propName;
846
+ var props = {};
847
+ var key = null;
848
+ var ref = null;
849
+ var self = null;
850
+ var source = null;
851
+ if (config != null) {
852
+ if (hasValidRef(config)) {
853
+ ref = config.ref;
854
+ {
855
+ warnIfStringRefCannotBeAutoConverted(config);
856
+ }
857
+ }
858
+ if (hasValidKey(config)) {
859
+ {
860
+ checkKeyStringCoercion(config.key);
861
+ }
862
+ key = "" + config.key;
863
+ }
864
+ self = config.__self === void 0 ? null : config.__self;
865
+ source = config.__source === void 0 ? null : config.__source;
866
+ for (propName in config) {
867
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
868
+ props[propName] = config[propName];
869
+ }
870
+ }
871
+ }
872
+ var childrenLength = arguments.length - 2;
873
+ if (childrenLength === 1) {
874
+ props.children = children;
875
+ } else if (childrenLength > 1) {
876
+ var childArray = Array(childrenLength);
877
+ for (var i = 0; i < childrenLength; i++) {
878
+ childArray[i] = arguments[i + 2];
879
+ }
880
+ {
881
+ if (Object.freeze) {
882
+ Object.freeze(childArray);
883
+ }
884
+ }
885
+ props.children = childArray;
886
+ }
887
+ if (type && type.defaultProps) {
888
+ var defaultProps = type.defaultProps;
889
+ for (propName in defaultProps) {
890
+ if (props[propName] === void 0) {
891
+ props[propName] = defaultProps[propName];
892
+ }
893
+ }
894
+ }
895
+ {
896
+ if (key || ref) {
897
+ var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
898
+ if (key) {
899
+ defineKeyPropWarningGetter(props, displayName);
900
+ }
901
+ if (ref) {
902
+ defineRefPropWarningGetter(props, displayName);
903
+ }
904
+ }
905
+ }
906
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
907
+ }
908
+ function cloneAndReplaceKey(oldElement, newKey) {
909
+ var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
910
+ return newElement;
911
+ }
912
+ function cloneElement(element, config, children) {
913
+ if (element === null || element === void 0) {
914
+ throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
915
+ }
916
+ var propName;
917
+ var props = assign({}, element.props);
918
+ var key = element.key;
919
+ var ref = element.ref;
920
+ var self = element._self;
921
+ var source = element._source;
922
+ var owner = element._owner;
923
+ if (config != null) {
924
+ if (hasValidRef(config)) {
925
+ ref = config.ref;
926
+ owner = ReactCurrentOwner.current;
927
+ }
928
+ if (hasValidKey(config)) {
929
+ {
930
+ checkKeyStringCoercion(config.key);
931
+ }
932
+ key = "" + config.key;
933
+ }
934
+ var defaultProps;
935
+ if (element.type && element.type.defaultProps) {
936
+ defaultProps = element.type.defaultProps;
937
+ }
938
+ for (propName in config) {
939
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
940
+ if (config[propName] === void 0 && defaultProps !== void 0) {
941
+ props[propName] = defaultProps[propName];
942
+ } else {
943
+ props[propName] = config[propName];
944
+ }
945
+ }
946
+ }
947
+ }
948
+ var childrenLength = arguments.length - 2;
949
+ if (childrenLength === 1) {
950
+ props.children = children;
951
+ } else if (childrenLength > 1) {
952
+ var childArray = Array(childrenLength);
953
+ for (var i = 0; i < childrenLength; i++) {
954
+ childArray[i] = arguments[i + 2];
955
+ }
956
+ props.children = childArray;
957
+ }
958
+ return ReactElement(element.type, key, ref, self, source, owner, props);
959
+ }
960
+ function isValidElement(object) {
961
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
962
+ }
963
+ var SEPARATOR = ".";
964
+ var SUBSEPARATOR = ":";
965
+ function escape(key) {
966
+ var escapeRegex = /[=:]/g;
967
+ var escaperLookup = {
968
+ "=": "=0",
969
+ ":": "=2"
970
+ };
971
+ var escapedString = key.replace(escapeRegex, function(match) {
972
+ return escaperLookup[match];
973
+ });
974
+ return "$" + escapedString;
975
+ }
976
+ var didWarnAboutMaps = false;
977
+ var userProvidedKeyEscapeRegex = /\/+/g;
978
+ function escapeUserProvidedKey(text) {
979
+ return text.replace(userProvidedKeyEscapeRegex, "$&/");
980
+ }
981
+ function getElementKey(element, index) {
982
+ if (typeof element === "object" && element !== null && element.key != null) {
983
+ {
984
+ checkKeyStringCoercion(element.key);
985
+ }
986
+ return escape("" + element.key);
987
+ }
988
+ return index.toString(36);
989
+ }
990
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
991
+ var type = typeof children;
992
+ if (type === "undefined" || type === "boolean") {
993
+ children = null;
994
+ }
995
+ var invokeCallback = false;
996
+ if (children === null) {
997
+ invokeCallback = true;
998
+ } else {
999
+ switch (type) {
1000
+ case "string":
1001
+ case "number":
1002
+ invokeCallback = true;
1003
+ break;
1004
+ case "object":
1005
+ switch (children.$$typeof) {
1006
+ case REACT_ELEMENT_TYPE:
1007
+ case REACT_PORTAL_TYPE:
1008
+ invokeCallback = true;
1009
+ }
1010
+ }
1011
+ }
1012
+ if (invokeCallback) {
1013
+ var _child = children;
1014
+ var mappedChild = callback(_child);
1015
+ var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
1016
+ if (isArray(mappedChild)) {
1017
+ var escapedChildKey = "";
1018
+ if (childKey != null) {
1019
+ escapedChildKey = escapeUserProvidedKey(childKey) + "/";
1020
+ }
1021
+ mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) {
1022
+ return c;
1023
+ });
1024
+ } else if (mappedChild != null) {
1025
+ if (isValidElement(mappedChild)) {
1026
+ {
1027
+ if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
1028
+ checkKeyStringCoercion(mappedChild.key);
1029
+ }
1030
+ }
1031
+ mappedChild = cloneAndReplaceKey(
1032
+ mappedChild,
1033
+ // Keep both the (mapped) and old keys if they differ, just as
1034
+ // traverseAllChildren used to do for objects as children
1035
+ escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
1036
+ (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? (
1037
+ // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
1038
+ // eslint-disable-next-line react-internal/safe-string-coercion
1039
+ escapeUserProvidedKey("" + mappedChild.key) + "/"
1040
+ ) : "") + childKey
1041
+ );
1042
+ }
1043
+ array.push(mappedChild);
1044
+ }
1045
+ return 1;
1046
+ }
1047
+ var child;
1048
+ var nextName;
1049
+ var subtreeCount = 0;
1050
+ var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
1051
+ if (isArray(children)) {
1052
+ for (var i = 0; i < children.length; i++) {
1053
+ child = children[i];
1054
+ nextName = nextNamePrefix + getElementKey(child, i);
1055
+ subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1056
+ }
1057
+ } else {
1058
+ var iteratorFn = getIteratorFn(children);
1059
+ if (typeof iteratorFn === "function") {
1060
+ var iterableChildren = children;
1061
+ {
1062
+ if (iteratorFn === iterableChildren.entries) {
1063
+ if (!didWarnAboutMaps) {
1064
+ warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");
1065
+ }
1066
+ didWarnAboutMaps = true;
1067
+ }
1068
+ }
1069
+ var iterator = iteratorFn.call(iterableChildren);
1070
+ var step;
1071
+ var ii = 0;
1072
+ while (!(step = iterator.next()).done) {
1073
+ child = step.value;
1074
+ nextName = nextNamePrefix + getElementKey(child, ii++);
1075
+ subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1076
+ }
1077
+ } else if (type === "object") {
1078
+ var childrenString = String(children);
1079
+ 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.");
1080
+ }
1081
+ }
1082
+ return subtreeCount;
1083
+ }
1084
+ function mapChildren(children, func, context) {
1085
+ if (children == null) {
1086
+ return children;
1087
+ }
1088
+ var result = [];
1089
+ var count = 0;
1090
+ mapIntoArray(children, result, "", "", function(child) {
1091
+ return func.call(context, child, count++);
1092
+ });
1093
+ return result;
1094
+ }
1095
+ function countChildren(children) {
1096
+ var n = 0;
1097
+ mapChildren(children, function() {
1098
+ n++;
1099
+ });
1100
+ return n;
1101
+ }
1102
+ function forEachChildren(children, forEachFunc, forEachContext) {
1103
+ mapChildren(children, function() {
1104
+ forEachFunc.apply(this, arguments);
1105
+ }, forEachContext);
1106
+ }
1107
+ function toArray(children) {
1108
+ return mapChildren(children, function(child) {
1109
+ return child;
1110
+ }) || [];
1111
+ }
1112
+ function onlyChild(children) {
1113
+ if (!isValidElement(children)) {
1114
+ throw new Error("React.Children.only expected to receive a single React element child.");
1115
+ }
1116
+ return children;
1117
+ }
1118
+ function createContext(defaultValue) {
1119
+ var context = {
1120
+ $$typeof: REACT_CONTEXT_TYPE,
1121
+ // As a workaround to support multiple concurrent renderers, we categorize
1122
+ // some renderers as primary and others as secondary. We only expect
1123
+ // there to be two concurrent renderers at most: React Native (primary) and
1124
+ // Fabric (secondary); React DOM (primary) and React ART (secondary).
1125
+ // Secondary renderers store their context values on separate fields.
1126
+ _currentValue: defaultValue,
1127
+ _currentValue2: defaultValue,
1128
+ // Used to track how many concurrent renderers this context currently
1129
+ // supports within in a single renderer. Such as parallel server rendering.
1130
+ _threadCount: 0,
1131
+ // These are circular
1132
+ Provider: null,
1133
+ Consumer: null,
1134
+ // Add these to use same hidden class in VM as ServerContext
1135
+ _defaultValue: null,
1136
+ _globalName: null
1137
+ };
1138
+ context.Provider = {
1139
+ $$typeof: REACT_PROVIDER_TYPE,
1140
+ _context: context
1141
+ };
1142
+ var hasWarnedAboutUsingNestedContextConsumers = false;
1143
+ var hasWarnedAboutUsingConsumerProvider = false;
1144
+ var hasWarnedAboutDisplayNameOnConsumer = false;
1145
+ {
1146
+ var Consumer = {
1147
+ $$typeof: REACT_CONTEXT_TYPE,
1148
+ _context: context
1149
+ };
1150
+ Object.defineProperties(Consumer, {
1151
+ Provider: {
1152
+ get: function() {
1153
+ if (!hasWarnedAboutUsingConsumerProvider) {
1154
+ hasWarnedAboutUsingConsumerProvider = true;
1155
+ 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?");
1156
+ }
1157
+ return context.Provider;
1158
+ },
1159
+ set: function(_Provider) {
1160
+ context.Provider = _Provider;
1161
+ }
1162
+ },
1163
+ _currentValue: {
1164
+ get: function() {
1165
+ return context._currentValue;
1166
+ },
1167
+ set: function(_currentValue) {
1168
+ context._currentValue = _currentValue;
1169
+ }
1170
+ },
1171
+ _currentValue2: {
1172
+ get: function() {
1173
+ return context._currentValue2;
1174
+ },
1175
+ set: function(_currentValue2) {
1176
+ context._currentValue2 = _currentValue2;
1177
+ }
1178
+ },
1179
+ _threadCount: {
1180
+ get: function() {
1181
+ return context._threadCount;
1182
+ },
1183
+ set: function(_threadCount) {
1184
+ context._threadCount = _threadCount;
1185
+ }
1186
+ },
1187
+ Consumer: {
1188
+ get: function() {
1189
+ if (!hasWarnedAboutUsingNestedContextConsumers) {
1190
+ hasWarnedAboutUsingNestedContextConsumers = true;
1191
+ 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?");
1192
+ }
1193
+ return context.Consumer;
1194
+ }
1195
+ },
1196
+ displayName: {
1197
+ get: function() {
1198
+ return context.displayName;
1199
+ },
1200
+ set: function(displayName) {
1201
+ if (!hasWarnedAboutDisplayNameOnConsumer) {
1202
+ warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName);
1203
+ hasWarnedAboutDisplayNameOnConsumer = true;
1204
+ }
1205
+ }
1206
+ }
1207
+ });
1208
+ context.Consumer = Consumer;
1209
+ }
1210
+ {
1211
+ context._currentRenderer = null;
1212
+ context._currentRenderer2 = null;
1213
+ }
1214
+ return context;
1215
+ }
1216
+ var Uninitialized = -1;
1217
+ var Pending = 0;
1218
+ var Resolved = 1;
1219
+ var Rejected = 2;
1220
+ function lazyInitializer(payload) {
1221
+ if (payload._status === Uninitialized) {
1222
+ var ctor = payload._result;
1223
+ var thenable = ctor();
1224
+ thenable.then(function(moduleObject2) {
1225
+ if (payload._status === Pending || payload._status === Uninitialized) {
1226
+ var resolved = payload;
1227
+ resolved._status = Resolved;
1228
+ resolved._result = moduleObject2;
1229
+ }
1230
+ }, function(error2) {
1231
+ if (payload._status === Pending || payload._status === Uninitialized) {
1232
+ var rejected = payload;
1233
+ rejected._status = Rejected;
1234
+ rejected._result = error2;
1235
+ }
1236
+ });
1237
+ if (payload._status === Uninitialized) {
1238
+ var pending = payload;
1239
+ pending._status = Pending;
1240
+ pending._result = thenable;
1241
+ }
1242
+ }
1243
+ if (payload._status === Resolved) {
1244
+ var moduleObject = payload._result;
1245
+ {
1246
+ if (moduleObject === void 0) {
1247
+ 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);
1248
+ }
1249
+ }
1250
+ {
1251
+ if (!("default" in moduleObject)) {
1252
+ 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);
1253
+ }
1254
+ }
1255
+ return moduleObject.default;
1256
+ } else {
1257
+ throw payload._result;
1258
+ }
1259
+ }
1260
+ function lazy(ctor) {
1261
+ var payload = {
1262
+ // We use these fields to store the result.
1263
+ _status: Uninitialized,
1264
+ _result: ctor
1265
+ };
1266
+ var lazyType = {
1267
+ $$typeof: REACT_LAZY_TYPE,
1268
+ _payload: payload,
1269
+ _init: lazyInitializer
1270
+ };
1271
+ {
1272
+ var defaultProps;
1273
+ var propTypes;
1274
+ Object.defineProperties(lazyType, {
1275
+ defaultProps: {
1276
+ configurable: true,
1277
+ get: function() {
1278
+ return defaultProps;
1279
+ },
1280
+ set: function(newDefaultProps) {
1281
+ 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.");
1282
+ defaultProps = newDefaultProps;
1283
+ Object.defineProperty(lazyType, "defaultProps", {
1284
+ enumerable: true
1285
+ });
1286
+ }
1287
+ },
1288
+ propTypes: {
1289
+ configurable: true,
1290
+ get: function() {
1291
+ return propTypes;
1292
+ },
1293
+ set: function(newPropTypes) {
1294
+ 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.");
1295
+ propTypes = newPropTypes;
1296
+ Object.defineProperty(lazyType, "propTypes", {
1297
+ enumerable: true
1298
+ });
1299
+ }
1300
+ }
1301
+ });
1302
+ }
1303
+ return lazyType;
1304
+ }
1305
+ function forwardRef7(render) {
1306
+ {
1307
+ if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
1308
+ error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
1309
+ } else if (typeof render !== "function") {
1310
+ error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render);
1311
+ } else {
1312
+ if (render.length !== 0 && render.length !== 2) {
1313
+ 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.");
1314
+ }
1315
+ }
1316
+ if (render != null) {
1317
+ if (render.defaultProps != null || render.propTypes != null) {
1318
+ error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
1319
+ }
1320
+ }
1321
+ }
1322
+ var elementType = {
1323
+ $$typeof: REACT_FORWARD_REF_TYPE,
1324
+ render
1325
+ };
1326
+ {
1327
+ var ownName;
1328
+ Object.defineProperty(elementType, "displayName", {
1329
+ enumerable: false,
1330
+ configurable: true,
1331
+ get: function() {
1332
+ return ownName;
1333
+ },
1334
+ set: function(name) {
1335
+ ownName = name;
1336
+ if (!render.name && !render.displayName) {
1337
+ render.displayName = name;
1338
+ }
1339
+ }
1340
+ });
1341
+ }
1342
+ return elementType;
1343
+ }
1344
+ var REACT_MODULE_REFERENCE;
1345
+ {
1346
+ REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
1347
+ }
1348
+ function isValidElementType(type) {
1349
+ if (typeof type === "string" || typeof type === "function") {
1350
+ return true;
1351
+ }
1352
+ 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) {
1353
+ return true;
1354
+ }
1355
+ if (typeof type === "object" && type !== null) {
1356
+ 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
1357
+ // types supported by any Flight configuration anywhere since
1358
+ // we don't know which Flight build this will end up being used
1359
+ // with.
1360
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
1361
+ return true;
1362
+ }
1363
+ }
1364
+ return false;
1365
+ }
1366
+ function memo(type, compare) {
1367
+ {
1368
+ if (!isValidElementType(type)) {
1369
+ error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
1370
+ }
1371
+ }
1372
+ var elementType = {
1373
+ $$typeof: REACT_MEMO_TYPE,
1374
+ type,
1375
+ compare: compare === void 0 ? null : compare
1376
+ };
1377
+ {
1378
+ var ownName;
1379
+ Object.defineProperty(elementType, "displayName", {
1380
+ enumerable: false,
1381
+ configurable: true,
1382
+ get: function() {
1383
+ return ownName;
1384
+ },
1385
+ set: function(name) {
1386
+ ownName = name;
1387
+ if (!type.name && !type.displayName) {
1388
+ type.displayName = name;
1389
+ }
1390
+ }
1391
+ });
1392
+ }
1393
+ return elementType;
1394
+ }
1395
+ function resolveDispatcher() {
1396
+ var dispatcher = ReactCurrentDispatcher.current;
1397
+ {
1398
+ if (dispatcher === null) {
1399
+ 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.");
1400
+ }
1401
+ }
1402
+ return dispatcher;
1403
+ }
1404
+ function useContext(Context) {
1405
+ var dispatcher = resolveDispatcher();
1406
+ {
1407
+ if (Context._context !== void 0) {
1408
+ var realContext = Context._context;
1409
+ if (realContext.Consumer === Context) {
1410
+ 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?");
1411
+ } else if (realContext.Provider === Context) {
1412
+ error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
1413
+ }
1414
+ }
1415
+ }
1416
+ return dispatcher.useContext(Context);
1417
+ }
1418
+ function useState(initialState) {
1419
+ var dispatcher = resolveDispatcher();
1420
+ return dispatcher.useState(initialState);
1421
+ }
1422
+ function useReducer(reducer, initialArg, init) {
1423
+ var dispatcher = resolveDispatcher();
1424
+ return dispatcher.useReducer(reducer, initialArg, init);
1425
+ }
1426
+ function useRef(initialValue) {
1427
+ var dispatcher = resolveDispatcher();
1428
+ return dispatcher.useRef(initialValue);
1429
+ }
1430
+ function useEffect(create, deps) {
1431
+ var dispatcher = resolveDispatcher();
1432
+ return dispatcher.useEffect(create, deps);
1433
+ }
1434
+ function useInsertionEffect(create, deps) {
1435
+ var dispatcher = resolveDispatcher();
1436
+ return dispatcher.useInsertionEffect(create, deps);
1437
+ }
1438
+ function useLayoutEffect(create, deps) {
1439
+ var dispatcher = resolveDispatcher();
1440
+ return dispatcher.useLayoutEffect(create, deps);
1441
+ }
1442
+ function useCallback(callback, deps) {
1443
+ var dispatcher = resolveDispatcher();
1444
+ return dispatcher.useCallback(callback, deps);
1445
+ }
1446
+ function useMemo(create, deps) {
1447
+ var dispatcher = resolveDispatcher();
1448
+ return dispatcher.useMemo(create, deps);
1449
+ }
1450
+ function useImperativeHandle(ref, create, deps) {
1451
+ var dispatcher = resolveDispatcher();
1452
+ return dispatcher.useImperativeHandle(ref, create, deps);
1453
+ }
1454
+ function useDebugValue(value, formatterFn) {
1455
+ {
1456
+ var dispatcher = resolveDispatcher();
1457
+ return dispatcher.useDebugValue(value, formatterFn);
1458
+ }
1459
+ }
1460
+ function useTransition() {
1461
+ var dispatcher = resolveDispatcher();
1462
+ return dispatcher.useTransition();
1463
+ }
1464
+ function useDeferredValue(value) {
1465
+ var dispatcher = resolveDispatcher();
1466
+ return dispatcher.useDeferredValue(value);
1467
+ }
1468
+ function useId() {
1469
+ var dispatcher = resolveDispatcher();
1470
+ return dispatcher.useId();
1471
+ }
1472
+ function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
1473
+ var dispatcher = resolveDispatcher();
1474
+ return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
1475
+ }
1476
+ var disabledDepth = 0;
1477
+ var prevLog;
1478
+ var prevInfo;
1479
+ var prevWarn;
1480
+ var prevError;
1481
+ var prevGroup;
1482
+ var prevGroupCollapsed;
1483
+ var prevGroupEnd;
1484
+ function disabledLog() {
1485
+ }
1486
+ disabledLog.__reactDisabledLog = true;
1487
+ function disableLogs() {
1488
+ {
1489
+ if (disabledDepth === 0) {
1490
+ prevLog = console.log;
1491
+ prevInfo = console.info;
1492
+ prevWarn = console.warn;
1493
+ prevError = console.error;
1494
+ prevGroup = console.group;
1495
+ prevGroupCollapsed = console.groupCollapsed;
1496
+ prevGroupEnd = console.groupEnd;
1497
+ var props = {
1498
+ configurable: true,
1499
+ enumerable: true,
1500
+ value: disabledLog,
1501
+ writable: true
1502
+ };
1503
+ Object.defineProperties(console, {
1504
+ info: props,
1505
+ log: props,
1506
+ warn: props,
1507
+ error: props,
1508
+ group: props,
1509
+ groupCollapsed: props,
1510
+ groupEnd: props
1511
+ });
1512
+ }
1513
+ disabledDepth++;
1514
+ }
1515
+ }
1516
+ function reenableLogs() {
1517
+ {
1518
+ disabledDepth--;
1519
+ if (disabledDepth === 0) {
1520
+ var props = {
1521
+ configurable: true,
1522
+ enumerable: true,
1523
+ writable: true
1524
+ };
1525
+ Object.defineProperties(console, {
1526
+ log: assign({}, props, {
1527
+ value: prevLog
1528
+ }),
1529
+ info: assign({}, props, {
1530
+ value: prevInfo
1531
+ }),
1532
+ warn: assign({}, props, {
1533
+ value: prevWarn
1534
+ }),
1535
+ error: assign({}, props, {
1536
+ value: prevError
1537
+ }),
1538
+ group: assign({}, props, {
1539
+ value: prevGroup
1540
+ }),
1541
+ groupCollapsed: assign({}, props, {
1542
+ value: prevGroupCollapsed
1543
+ }),
1544
+ groupEnd: assign({}, props, {
1545
+ value: prevGroupEnd
1546
+ })
1547
+ });
1548
+ }
1549
+ if (disabledDepth < 0) {
1550
+ error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1551
+ }
1552
+ }
1553
+ }
1554
+ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
1555
+ var prefix;
1556
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
1557
+ {
1558
+ if (prefix === void 0) {
1559
+ try {
1560
+ throw Error();
1561
+ } catch (x) {
1562
+ var match = x.stack.trim().match(/\n( *(at )?)/);
1563
+ prefix = match && match[1] || "";
1564
+ }
1565
+ }
1566
+ return "\n" + prefix + name;
1567
+ }
1568
+ }
1569
+ var reentry = false;
1570
+ var componentFrameCache;
1571
+ {
1572
+ var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
1573
+ componentFrameCache = new PossiblyWeakMap();
1574
+ }
1575
+ function describeNativeComponentFrame(fn, construct) {
1576
+ if (!fn || reentry) {
1577
+ return "";
1578
+ }
1579
+ {
1580
+ var frame = componentFrameCache.get(fn);
1581
+ if (frame !== void 0) {
1582
+ return frame;
1583
+ }
1584
+ }
1585
+ var control;
1586
+ reentry = true;
1587
+ var previousPrepareStackTrace = Error.prepareStackTrace;
1588
+ Error.prepareStackTrace = void 0;
1589
+ var previousDispatcher;
1590
+ {
1591
+ previousDispatcher = ReactCurrentDispatcher$1.current;
1592
+ ReactCurrentDispatcher$1.current = null;
1593
+ disableLogs();
1594
+ }
1595
+ try {
1596
+ if (construct) {
1597
+ var Fake = function() {
1598
+ throw Error();
1599
+ };
1600
+ Object.defineProperty(Fake.prototype, "props", {
1601
+ set: function() {
1602
+ throw Error();
1603
+ }
1604
+ });
1605
+ if (typeof Reflect === "object" && Reflect.construct) {
1606
+ try {
1607
+ Reflect.construct(Fake, []);
1608
+ } catch (x) {
1609
+ control = x;
1610
+ }
1611
+ Reflect.construct(fn, [], Fake);
1612
+ } else {
1613
+ try {
1614
+ Fake.call();
1615
+ } catch (x) {
1616
+ control = x;
1617
+ }
1618
+ fn.call(Fake.prototype);
1619
+ }
1620
+ } else {
1621
+ try {
1622
+ throw Error();
1623
+ } catch (x) {
1624
+ control = x;
1625
+ }
1626
+ fn();
1627
+ }
1628
+ } catch (sample) {
1629
+ if (sample && control && typeof sample.stack === "string") {
1630
+ var sampleLines = sample.stack.split("\n");
1631
+ var controlLines = control.stack.split("\n");
1632
+ var s = sampleLines.length - 1;
1633
+ var c = controlLines.length - 1;
1634
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
1635
+ c--;
1636
+ }
1637
+ for (; s >= 1 && c >= 0; s--, c--) {
1638
+ if (sampleLines[s] !== controlLines[c]) {
1639
+ if (s !== 1 || c !== 1) {
1640
+ do {
1641
+ s--;
1642
+ c--;
1643
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
1644
+ var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
1645
+ if (fn.displayName && _frame.includes("<anonymous>")) {
1646
+ _frame = _frame.replace("<anonymous>", fn.displayName);
1647
+ }
1648
+ {
1649
+ if (typeof fn === "function") {
1650
+ componentFrameCache.set(fn, _frame);
1651
+ }
1652
+ }
1653
+ return _frame;
1654
+ }
1655
+ } while (s >= 1 && c >= 0);
1656
+ }
1657
+ break;
1658
+ }
1659
+ }
1660
+ }
1661
+ } finally {
1662
+ reentry = false;
1663
+ {
1664
+ ReactCurrentDispatcher$1.current = previousDispatcher;
1665
+ reenableLogs();
1666
+ }
1667
+ Error.prepareStackTrace = previousPrepareStackTrace;
1668
+ }
1669
+ var name = fn ? fn.displayName || fn.name : "";
1670
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
1671
+ {
1672
+ if (typeof fn === "function") {
1673
+ componentFrameCache.set(fn, syntheticFrame);
1674
+ }
1675
+ }
1676
+ return syntheticFrame;
1677
+ }
1678
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
1679
+ {
1680
+ return describeNativeComponentFrame(fn, false);
1681
+ }
1682
+ }
1683
+ function shouldConstruct(Component2) {
1684
+ var prototype = Component2.prototype;
1685
+ return !!(prototype && prototype.isReactComponent);
1686
+ }
1687
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
1688
+ if (type == null) {
1689
+ return "";
1690
+ }
1691
+ if (typeof type === "function") {
1692
+ {
1693
+ return describeNativeComponentFrame(type, shouldConstruct(type));
1694
+ }
1695
+ }
1696
+ if (typeof type === "string") {
1697
+ return describeBuiltInComponentFrame(type);
1698
+ }
1699
+ switch (type) {
1700
+ case REACT_SUSPENSE_TYPE:
1701
+ return describeBuiltInComponentFrame("Suspense");
1702
+ case REACT_SUSPENSE_LIST_TYPE:
1703
+ return describeBuiltInComponentFrame("SuspenseList");
1704
+ }
1705
+ if (typeof type === "object") {
1706
+ switch (type.$$typeof) {
1707
+ case REACT_FORWARD_REF_TYPE:
1708
+ return describeFunctionComponentFrame(type.render);
1709
+ case REACT_MEMO_TYPE:
1710
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
1711
+ case REACT_LAZY_TYPE: {
1712
+ var lazyComponent = type;
1713
+ var payload = lazyComponent._payload;
1714
+ var init = lazyComponent._init;
1715
+ try {
1716
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
1717
+ } catch (x) {
1718
+ }
1719
+ }
1720
+ }
1721
+ }
1722
+ return "";
1723
+ }
1724
+ var loggedTypeFailures = {};
1725
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
1726
+ function setCurrentlyValidatingElement(element) {
1727
+ {
1728
+ if (element) {
1729
+ var owner = element._owner;
1730
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1731
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
1732
+ } else {
1733
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
1734
+ }
1735
+ }
1736
+ }
1737
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
1738
+ {
1739
+ var has = Function.call.bind(hasOwnProperty);
1740
+ for (var typeSpecName in typeSpecs) {
1741
+ if (has(typeSpecs, typeSpecName)) {
1742
+ var error$1 = void 0;
1743
+ try {
1744
+ if (typeof typeSpecs[typeSpecName] !== "function") {
1745
+ 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`.");
1746
+ err.name = "Invariant Violation";
1747
+ throw err;
1748
+ }
1749
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1750
+ } catch (ex) {
1751
+ error$1 = ex;
1752
+ }
1753
+ if (error$1 && !(error$1 instanceof Error)) {
1754
+ setCurrentlyValidatingElement(element);
1755
+ 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);
1756
+ setCurrentlyValidatingElement(null);
1757
+ }
1758
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
1759
+ loggedTypeFailures[error$1.message] = true;
1760
+ setCurrentlyValidatingElement(element);
1761
+ error("Failed %s type: %s", location, error$1.message);
1762
+ setCurrentlyValidatingElement(null);
1763
+ }
1764
+ }
1765
+ }
1766
+ }
1767
+ }
1768
+ function setCurrentlyValidatingElement$1(element) {
1769
+ {
1770
+ if (element) {
1771
+ var owner = element._owner;
1772
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1773
+ setExtraStackFrame(stack);
1774
+ } else {
1775
+ setExtraStackFrame(null);
1776
+ }
1777
+ }
1778
+ }
1779
+ var propTypesMisspellWarningShown;
1780
+ {
1781
+ propTypesMisspellWarningShown = false;
1782
+ }
1783
+ function getDeclarationErrorAddendum() {
1784
+ if (ReactCurrentOwner.current) {
1785
+ var name = getComponentNameFromType(ReactCurrentOwner.current.type);
1786
+ if (name) {
1787
+ return "\n\nCheck the render method of `" + name + "`.";
1788
+ }
1789
+ }
1790
+ return "";
1791
+ }
1792
+ function getSourceInfoErrorAddendum(source) {
1793
+ if (source !== void 0) {
1794
+ var fileName = source.fileName.replace(/^.*[\\\/]/, "");
1795
+ var lineNumber = source.lineNumber;
1796
+ return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
1797
+ }
1798
+ return "";
1799
+ }
1800
+ function getSourceInfoErrorAddendumForProps(elementProps) {
1801
+ if (elementProps !== null && elementProps !== void 0) {
1802
+ return getSourceInfoErrorAddendum(elementProps.__source);
1803
+ }
1804
+ return "";
1805
+ }
1806
+ var ownerHasKeyUseWarning = {};
1807
+ function getCurrentComponentErrorInfo(parentType) {
1808
+ var info = getDeclarationErrorAddendum();
1809
+ if (!info) {
1810
+ var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
1811
+ if (parentName) {
1812
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1813
+ }
1814
+ }
1815
+ return info;
1816
+ }
1817
+ function validateExplicitKey(element, parentType) {
1818
+ if (!element._store || element._store.validated || element.key != null) {
1819
+ return;
1820
+ }
1821
+ element._store.validated = true;
1822
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1823
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1824
+ return;
1825
+ }
1826
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
1827
+ var childOwner = "";
1828
+ if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1829
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1830
+ }
1831
+ {
1832
+ setCurrentlyValidatingElement$1(element);
1833
+ 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);
1834
+ setCurrentlyValidatingElement$1(null);
1835
+ }
1836
+ }
1837
+ function validateChildKeys(node, parentType) {
1838
+ if (typeof node !== "object") {
1839
+ return;
1840
+ }
1841
+ if (isArray(node)) {
1842
+ for (var i = 0; i < node.length; i++) {
1843
+ var child = node[i];
1844
+ if (isValidElement(child)) {
1845
+ validateExplicitKey(child, parentType);
1846
+ }
1847
+ }
1848
+ } else if (isValidElement(node)) {
1849
+ if (node._store) {
1850
+ node._store.validated = true;
1851
+ }
1852
+ } else if (node) {
1853
+ var iteratorFn = getIteratorFn(node);
1854
+ if (typeof iteratorFn === "function") {
1855
+ if (iteratorFn !== node.entries) {
1856
+ var iterator = iteratorFn.call(node);
1857
+ var step;
1858
+ while (!(step = iterator.next()).done) {
1859
+ if (isValidElement(step.value)) {
1860
+ validateExplicitKey(step.value, parentType);
1861
+ }
1862
+ }
1863
+ }
1864
+ }
1865
+ }
1866
+ }
1867
+ function validatePropTypes(element) {
1868
+ {
1869
+ var type = element.type;
1870
+ if (type === null || type === void 0 || typeof type === "string") {
1871
+ return;
1872
+ }
1873
+ var propTypes;
1874
+ if (typeof type === "function") {
1875
+ propTypes = type.propTypes;
1876
+ } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
1877
+ // Inner props are checked in the reconciler.
1878
+ type.$$typeof === REACT_MEMO_TYPE)) {
1879
+ propTypes = type.propTypes;
1880
+ } else {
1881
+ return;
1882
+ }
1883
+ if (propTypes) {
1884
+ var name = getComponentNameFromType(type);
1885
+ checkPropTypes(propTypes, element.props, "prop", name, element);
1886
+ } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
1887
+ propTypesMisspellWarningShown = true;
1888
+ var _name = getComponentNameFromType(type);
1889
+ error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
1890
+ }
1891
+ if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
1892
+ error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1893
+ }
1894
+ }
1895
+ }
1896
+ function validateFragmentProps(fragment) {
1897
+ {
1898
+ var keys = Object.keys(fragment.props);
1899
+ for (var i = 0; i < keys.length; i++) {
1900
+ var key = keys[i];
1901
+ if (key !== "children" && key !== "key") {
1902
+ setCurrentlyValidatingElement$1(fragment);
1903
+ error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
1904
+ setCurrentlyValidatingElement$1(null);
1905
+ break;
1906
+ }
1907
+ }
1908
+ if (fragment.ref !== null) {
1909
+ setCurrentlyValidatingElement$1(fragment);
1910
+ error("Invalid attribute `ref` supplied to `React.Fragment`.");
1911
+ setCurrentlyValidatingElement$1(null);
1912
+ }
1913
+ }
1914
+ }
1915
+ function createElementWithValidation(type, props, children) {
1916
+ var validType = isValidElementType(type);
1917
+ if (!validType) {
1918
+ var info = "";
1919
+ if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
1920
+ 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.";
1921
+ }
1922
+ var sourceInfo = getSourceInfoErrorAddendumForProps(props);
1923
+ if (sourceInfo) {
1924
+ info += sourceInfo;
1925
+ } else {
1926
+ info += getDeclarationErrorAddendum();
1927
+ }
1928
+ var typeString;
1929
+ if (type === null) {
1930
+ typeString = "null";
1931
+ } else if (isArray(type)) {
1932
+ typeString = "array";
1933
+ } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
1934
+ typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
1935
+ info = " Did you accidentally export a JSX literal instead of a component?";
1936
+ } else {
1937
+ typeString = typeof type;
1938
+ }
1939
+ {
1940
+ 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);
1941
+ }
1942
+ }
1943
+ var element = createElement.apply(this, arguments);
1944
+ if (element == null) {
1945
+ return element;
1946
+ }
1947
+ if (validType) {
1948
+ for (var i = 2; i < arguments.length; i++) {
1949
+ validateChildKeys(arguments[i], type);
1950
+ }
1951
+ }
1952
+ if (type === REACT_FRAGMENT_TYPE) {
1953
+ validateFragmentProps(element);
1954
+ } else {
1955
+ validatePropTypes(element);
1956
+ }
1957
+ return element;
1958
+ }
1959
+ var didWarnAboutDeprecatedCreateFactory = false;
1960
+ function createFactoryWithValidation(type) {
1961
+ var validatedFactory = createElementWithValidation.bind(null, type);
1962
+ validatedFactory.type = type;
1963
+ {
1964
+ if (!didWarnAboutDeprecatedCreateFactory) {
1965
+ didWarnAboutDeprecatedCreateFactory = true;
1966
+ warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
1967
+ }
1968
+ Object.defineProperty(validatedFactory, "type", {
1969
+ enumerable: false,
1970
+ get: function() {
1971
+ warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
1972
+ Object.defineProperty(this, "type", {
1973
+ value: type
1974
+ });
1975
+ return type;
1976
+ }
1977
+ });
1978
+ }
1979
+ return validatedFactory;
1980
+ }
1981
+ function cloneElementWithValidation(element, props, children) {
1982
+ var newElement = cloneElement.apply(this, arguments);
1983
+ for (var i = 2; i < arguments.length; i++) {
1984
+ validateChildKeys(arguments[i], newElement.type);
1985
+ }
1986
+ validatePropTypes(newElement);
1987
+ return newElement;
1988
+ }
1989
+ function startTransition(scope, options) {
1990
+ var prevTransition = ReactCurrentBatchConfig.transition;
1991
+ ReactCurrentBatchConfig.transition = {};
1992
+ var currentTransition = ReactCurrentBatchConfig.transition;
1993
+ {
1994
+ ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set();
1995
+ }
1996
+ try {
1997
+ scope();
1998
+ } finally {
1999
+ ReactCurrentBatchConfig.transition = prevTransition;
2000
+ {
2001
+ if (prevTransition === null && currentTransition._updatedFibers) {
2002
+ var updatedFibersCount = currentTransition._updatedFibers.size;
2003
+ if (updatedFibersCount > 10) {
2004
+ 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.");
2005
+ }
2006
+ currentTransition._updatedFibers.clear();
2007
+ }
2008
+ }
2009
+ }
2010
+ }
2011
+ var didWarnAboutMessageChannel = false;
2012
+ var enqueueTaskImpl = null;
2013
+ function enqueueTask(task) {
2014
+ if (enqueueTaskImpl === null) {
2015
+ try {
2016
+ var requireString = ("require" + Math.random()).slice(0, 7);
2017
+ var nodeRequire = module2 && module2[requireString];
2018
+ enqueueTaskImpl = nodeRequire.call(module2, "timers").setImmediate;
2019
+ } catch (_err) {
2020
+ enqueueTaskImpl = function(callback) {
2021
+ {
2022
+ if (didWarnAboutMessageChannel === false) {
2023
+ didWarnAboutMessageChannel = true;
2024
+ if (typeof MessageChannel === "undefined") {
2025
+ 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.");
2026
+ }
2027
+ }
2028
+ }
2029
+ var channel = new MessageChannel();
2030
+ channel.port1.onmessage = callback;
2031
+ channel.port2.postMessage(void 0);
2032
+ };
2033
+ }
2034
+ }
2035
+ return enqueueTaskImpl(task);
2036
+ }
2037
+ var actScopeDepth = 0;
2038
+ var didWarnNoAwaitAct = false;
2039
+ function act(callback) {
2040
+ {
2041
+ var prevActScopeDepth = actScopeDepth;
2042
+ actScopeDepth++;
2043
+ if (ReactCurrentActQueue.current === null) {
2044
+ ReactCurrentActQueue.current = [];
2045
+ }
2046
+ var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
2047
+ var result;
2048
+ try {
2049
+ ReactCurrentActQueue.isBatchingLegacy = true;
2050
+ result = callback();
2051
+ if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
2052
+ var queue = ReactCurrentActQueue.current;
2053
+ if (queue !== null) {
2054
+ ReactCurrentActQueue.didScheduleLegacyUpdate = false;
2055
+ flushActQueue(queue);
2056
+ }
2057
+ }
2058
+ } catch (error2) {
2059
+ popActScope(prevActScopeDepth);
2060
+ throw error2;
2061
+ } finally {
2062
+ ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
2063
+ }
2064
+ if (result !== null && typeof result === "object" && typeof result.then === "function") {
2065
+ var thenableResult = result;
2066
+ var wasAwaited = false;
2067
+ var thenable = {
2068
+ then: function(resolve, reject) {
2069
+ wasAwaited = true;
2070
+ thenableResult.then(function(returnValue2) {
2071
+ popActScope(prevActScopeDepth);
2072
+ if (actScopeDepth === 0) {
2073
+ recursivelyFlushAsyncActWork(returnValue2, resolve, reject);
2074
+ } else {
2075
+ resolve(returnValue2);
2076
+ }
2077
+ }, function(error2) {
2078
+ popActScope(prevActScopeDepth);
2079
+ reject(error2);
2080
+ });
2081
+ }
2082
+ };
2083
+ {
2084
+ if (!didWarnNoAwaitAct && typeof Promise !== "undefined") {
2085
+ Promise.resolve().then(function() {
2086
+ }).then(function() {
2087
+ if (!wasAwaited) {
2088
+ didWarnNoAwaitAct = true;
2089
+ 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 () => ...);");
2090
+ }
2091
+ });
2092
+ }
2093
+ }
2094
+ return thenable;
2095
+ } else {
2096
+ var returnValue = result;
2097
+ popActScope(prevActScopeDepth);
2098
+ if (actScopeDepth === 0) {
2099
+ var _queue = ReactCurrentActQueue.current;
2100
+ if (_queue !== null) {
2101
+ flushActQueue(_queue);
2102
+ ReactCurrentActQueue.current = null;
2103
+ }
2104
+ var _thenable = {
2105
+ then: function(resolve, reject) {
2106
+ if (ReactCurrentActQueue.current === null) {
2107
+ ReactCurrentActQueue.current = [];
2108
+ recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2109
+ } else {
2110
+ resolve(returnValue);
2111
+ }
2112
+ }
2113
+ };
2114
+ return _thenable;
2115
+ } else {
2116
+ var _thenable2 = {
2117
+ then: function(resolve, reject) {
2118
+ resolve(returnValue);
2119
+ }
2120
+ };
2121
+ return _thenable2;
2122
+ }
2123
+ }
2124
+ }
2125
+ }
2126
+ function popActScope(prevActScopeDepth) {
2127
+ {
2128
+ if (prevActScopeDepth !== actScopeDepth - 1) {
2129
+ error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
2130
+ }
2131
+ actScopeDepth = prevActScopeDepth;
2132
+ }
2133
+ }
2134
+ function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
2135
+ {
2136
+ var queue = ReactCurrentActQueue.current;
2137
+ if (queue !== null) {
2138
+ try {
2139
+ flushActQueue(queue);
2140
+ enqueueTask(function() {
2141
+ if (queue.length === 0) {
2142
+ ReactCurrentActQueue.current = null;
2143
+ resolve(returnValue);
2144
+ } else {
2145
+ recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2146
+ }
2147
+ });
2148
+ } catch (error2) {
2149
+ reject(error2);
2150
+ }
2151
+ } else {
2152
+ resolve(returnValue);
2153
+ }
2154
+ }
2155
+ }
2156
+ var isFlushing = false;
2157
+ function flushActQueue(queue) {
2158
+ {
2159
+ if (!isFlushing) {
2160
+ isFlushing = true;
2161
+ var i = 0;
2162
+ try {
2163
+ for (; i < queue.length; i++) {
2164
+ var callback = queue[i];
2165
+ do {
2166
+ callback = callback(true);
2167
+ } while (callback !== null);
2168
+ }
2169
+ queue.length = 0;
2170
+ } catch (error2) {
2171
+ queue = queue.slice(i + 1);
2172
+ throw error2;
2173
+ } finally {
2174
+ isFlushing = false;
2175
+ }
2176
+ }
2177
+ }
2178
+ }
2179
+ var createElement$1 = createElementWithValidation;
2180
+ var cloneElement$1 = cloneElementWithValidation;
2181
+ var createFactory = createFactoryWithValidation;
2182
+ var Children = {
2183
+ map: mapChildren,
2184
+ forEach: forEachChildren,
2185
+ count: countChildren,
2186
+ toArray,
2187
+ only: onlyChild
2188
+ };
2189
+ exports.Children = Children;
2190
+ exports.Component = Component;
2191
+ exports.Fragment = REACT_FRAGMENT_TYPE;
2192
+ exports.Profiler = REACT_PROFILER_TYPE;
2193
+ exports.PureComponent = PureComponent;
2194
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
2195
+ exports.Suspense = REACT_SUSPENSE_TYPE;
2196
+ exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
2197
+ exports.cloneElement = cloneElement$1;
2198
+ exports.createContext = createContext;
2199
+ exports.createElement = createElement$1;
2200
+ exports.createFactory = createFactory;
2201
+ exports.createRef = createRef;
2202
+ exports.forwardRef = forwardRef7;
2203
+ exports.isValidElement = isValidElement;
2204
+ exports.lazy = lazy;
2205
+ exports.memo = memo;
2206
+ exports.startTransition = startTransition;
2207
+ exports.unstable_act = act;
2208
+ exports.useCallback = useCallback;
2209
+ exports.useContext = useContext;
2210
+ exports.useDebugValue = useDebugValue;
2211
+ exports.useDeferredValue = useDeferredValue;
2212
+ exports.useEffect = useEffect;
2213
+ exports.useId = useId;
2214
+ exports.useImperativeHandle = useImperativeHandle;
2215
+ exports.useInsertionEffect = useInsertionEffect;
2216
+ exports.useLayoutEffect = useLayoutEffect;
2217
+ exports.useMemo = useMemo;
2218
+ exports.useReducer = useReducer;
2219
+ exports.useRef = useRef;
2220
+ exports.useState = useState;
2221
+ exports.useSyncExternalStore = useSyncExternalStore;
2222
+ exports.useTransition = useTransition;
2223
+ exports.version = ReactVersion;
2224
+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
2225
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2226
+ }
2227
+ })();
2228
+ }
2229
+ }
2230
+ });
2231
+
2232
+ // node_modules/react/index.js
2233
+ var require_react = __commonJS({
2234
+ "node_modules/react/index.js"(exports, module2) {
2235
+ "use strict";
2236
+ if (process.env.NODE_ENV === "production") {
2237
+ module2.exports = require_react_production_min();
2238
+ } else {
2239
+ module2.exports = require_react_development();
2240
+ }
2241
+ }
2242
+ });
2243
+
2244
+ // node_modules/react/cjs/react-jsx-runtime.production.min.js
2245
+ var require_react_jsx_runtime_production_min = __commonJS({
2246
+ "node_modules/react/cjs/react-jsx-runtime.production.min.js"(exports) {
2247
+ "use strict";
2248
+ var f = require_react();
2249
+ var k = Symbol.for("react.element");
2250
+ var l = Symbol.for("react.fragment");
2251
+ var m = Object.prototype.hasOwnProperty;
2252
+ var n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;
2253
+ var p = { key: true, ref: true, __self: true, __source: true };
2254
+ function q(c, a, g) {
2255
+ var b, d = {}, e = null, h = null;
2256
+ void 0 !== g && (e = "" + g);
2257
+ void 0 !== a.key && (e = "" + a.key);
2258
+ void 0 !== a.ref && (h = a.ref);
2259
+ for (b in a)
2260
+ m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
2261
+ if (c && c.defaultProps)
2262
+ for (b in a = c.defaultProps, a)
2263
+ void 0 === d[b] && (d[b] = a[b]);
2264
+ return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
2265
+ }
2266
+ exports.Fragment = l;
2267
+ exports.jsx = q;
2268
+ exports.jsxs = q;
2269
+ }
2270
+ });
2271
+
2272
+ // node_modules/react/cjs/react-jsx-runtime.development.js
2273
+ var require_react_jsx_runtime_development = __commonJS({
2274
+ "node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
2275
+ "use strict";
2276
+ if (process.env.NODE_ENV !== "production") {
2277
+ (function() {
2278
+ "use strict";
2279
+ var React7 = require_react();
2280
+ var REACT_ELEMENT_TYPE = Symbol.for("react.element");
2281
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
2282
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
2283
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
2284
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
2285
+ var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
2286
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
2287
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
2288
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
2289
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
2290
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
2291
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
2292
+ var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
2293
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
2294
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
2295
+ function getIteratorFn(maybeIterable) {
2296
+ if (maybeIterable === null || typeof maybeIterable !== "object") {
2297
+ return null;
2298
+ }
2299
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
2300
+ if (typeof maybeIterator === "function") {
2301
+ return maybeIterator;
2302
+ }
2303
+ return null;
2304
+ }
2305
+ var ReactSharedInternals = React7.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2306
+ function error(format) {
2307
+ {
2308
+ {
2309
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
2310
+ args[_key2 - 1] = arguments[_key2];
2311
+ }
2312
+ printWarning("error", format, args);
2313
+ }
2314
+ }
2315
+ }
2316
+ function printWarning(level, format, args) {
2317
+ {
2318
+ var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
2319
+ var stack = ReactDebugCurrentFrame2.getStackAddendum();
2320
+ if (stack !== "") {
2321
+ format += "%s";
2322
+ args = args.concat([stack]);
2323
+ }
2324
+ var argsWithFormat = args.map(function(item) {
2325
+ return String(item);
2326
+ });
2327
+ argsWithFormat.unshift("Warning: " + format);
2328
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
2329
+ }
2330
+ }
2331
+ var enableScopeAPI = false;
2332
+ var enableCacheElement = false;
2333
+ var enableTransitionTracing = false;
2334
+ var enableLegacyHidden = false;
2335
+ var enableDebugTracing = false;
2336
+ var REACT_MODULE_REFERENCE;
2337
+ {
2338
+ REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
2339
+ }
2340
+ function isValidElementType(type) {
2341
+ if (typeof type === "string" || typeof type === "function") {
2342
+ return true;
2343
+ }
2344
+ 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) {
2345
+ return true;
2346
+ }
2347
+ if (typeof type === "object" && type !== null) {
2348
+ 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
2349
+ // types supported by any Flight configuration anywhere since
2350
+ // we don't know which Flight build this will end up being used
2351
+ // with.
2352
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
2353
+ return true;
2354
+ }
2355
+ }
2356
+ return false;
2357
+ }
2358
+ function getWrappedName(outerType, innerType, wrapperName) {
2359
+ var displayName = outerType.displayName;
2360
+ if (displayName) {
2361
+ return displayName;
2362
+ }
2363
+ var functionName = innerType.displayName || innerType.name || "";
2364
+ return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
2365
+ }
2366
+ function getContextName(type) {
2367
+ return type.displayName || "Context";
2368
+ }
2369
+ function getComponentNameFromType(type) {
2370
+ if (type == null) {
2371
+ return null;
2372
+ }
2373
+ {
2374
+ if (typeof type.tag === "number") {
2375
+ error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
2376
+ }
2377
+ }
2378
+ if (typeof type === "function") {
2379
+ return type.displayName || type.name || null;
2380
+ }
2381
+ if (typeof type === "string") {
2382
+ return type;
2383
+ }
2384
+ switch (type) {
2385
+ case REACT_FRAGMENT_TYPE:
2386
+ return "Fragment";
2387
+ case REACT_PORTAL_TYPE:
2388
+ return "Portal";
2389
+ case REACT_PROFILER_TYPE:
2390
+ return "Profiler";
2391
+ case REACT_STRICT_MODE_TYPE:
2392
+ return "StrictMode";
2393
+ case REACT_SUSPENSE_TYPE:
2394
+ return "Suspense";
2395
+ case REACT_SUSPENSE_LIST_TYPE:
2396
+ return "SuspenseList";
2397
+ }
2398
+ if (typeof type === "object") {
2399
+ switch (type.$$typeof) {
2400
+ case REACT_CONTEXT_TYPE:
2401
+ var context = type;
2402
+ return getContextName(context) + ".Consumer";
2403
+ case REACT_PROVIDER_TYPE:
2404
+ var provider = type;
2405
+ return getContextName(provider._context) + ".Provider";
2406
+ case REACT_FORWARD_REF_TYPE:
2407
+ return getWrappedName(type, type.render, "ForwardRef");
2408
+ case REACT_MEMO_TYPE:
2409
+ var outerName = type.displayName || null;
2410
+ if (outerName !== null) {
2411
+ return outerName;
2412
+ }
2413
+ return getComponentNameFromType(type.type) || "Memo";
2414
+ case REACT_LAZY_TYPE: {
2415
+ var lazyComponent = type;
2416
+ var payload = lazyComponent._payload;
2417
+ var init = lazyComponent._init;
2418
+ try {
2419
+ return getComponentNameFromType(init(payload));
2420
+ } catch (x) {
2421
+ return null;
2422
+ }
2423
+ }
2424
+ }
2425
+ }
2426
+ return null;
2427
+ }
2428
+ var assign = Object.assign;
2429
+ var disabledDepth = 0;
2430
+ var prevLog;
2431
+ var prevInfo;
2432
+ var prevWarn;
2433
+ var prevError;
2434
+ var prevGroup;
2435
+ var prevGroupCollapsed;
2436
+ var prevGroupEnd;
2437
+ function disabledLog() {
2438
+ }
2439
+ disabledLog.__reactDisabledLog = true;
2440
+ function disableLogs() {
2441
+ {
2442
+ if (disabledDepth === 0) {
2443
+ prevLog = console.log;
2444
+ prevInfo = console.info;
2445
+ prevWarn = console.warn;
2446
+ prevError = console.error;
2447
+ prevGroup = console.group;
2448
+ prevGroupCollapsed = console.groupCollapsed;
2449
+ prevGroupEnd = console.groupEnd;
2450
+ var props = {
2451
+ configurable: true,
2452
+ enumerable: true,
2453
+ value: disabledLog,
2454
+ writable: true
2455
+ };
2456
+ Object.defineProperties(console, {
2457
+ info: props,
2458
+ log: props,
2459
+ warn: props,
2460
+ error: props,
2461
+ group: props,
2462
+ groupCollapsed: props,
2463
+ groupEnd: props
2464
+ });
2465
+ }
2466
+ disabledDepth++;
2467
+ }
2468
+ }
2469
+ function reenableLogs() {
2470
+ {
2471
+ disabledDepth--;
2472
+ if (disabledDepth === 0) {
2473
+ var props = {
2474
+ configurable: true,
2475
+ enumerable: true,
2476
+ writable: true
2477
+ };
2478
+ Object.defineProperties(console, {
2479
+ log: assign({}, props, {
2480
+ value: prevLog
2481
+ }),
2482
+ info: assign({}, props, {
2483
+ value: prevInfo
2484
+ }),
2485
+ warn: assign({}, props, {
2486
+ value: prevWarn
2487
+ }),
2488
+ error: assign({}, props, {
2489
+ value: prevError
2490
+ }),
2491
+ group: assign({}, props, {
2492
+ value: prevGroup
2493
+ }),
2494
+ groupCollapsed: assign({}, props, {
2495
+ value: prevGroupCollapsed
2496
+ }),
2497
+ groupEnd: assign({}, props, {
2498
+ value: prevGroupEnd
2499
+ })
2500
+ });
2501
+ }
2502
+ if (disabledDepth < 0) {
2503
+ error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
2504
+ }
2505
+ }
2506
+ }
2507
+ var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
2508
+ var prefix;
2509
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
2510
+ {
2511
+ if (prefix === void 0) {
2512
+ try {
2513
+ throw Error();
2514
+ } catch (x) {
2515
+ var match = x.stack.trim().match(/\n( *(at )?)/);
2516
+ prefix = match && match[1] || "";
2517
+ }
2518
+ }
2519
+ return "\n" + prefix + name;
2520
+ }
2521
+ }
2522
+ var reentry = false;
2523
+ var componentFrameCache;
2524
+ {
2525
+ var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
2526
+ componentFrameCache = new PossiblyWeakMap();
2527
+ }
2528
+ function describeNativeComponentFrame(fn, construct) {
2529
+ if (!fn || reentry) {
2530
+ return "";
2531
+ }
2532
+ {
2533
+ var frame = componentFrameCache.get(fn);
2534
+ if (frame !== void 0) {
2535
+ return frame;
2536
+ }
2537
+ }
2538
+ var control;
2539
+ reentry = true;
2540
+ var previousPrepareStackTrace = Error.prepareStackTrace;
2541
+ Error.prepareStackTrace = void 0;
2542
+ var previousDispatcher;
2543
+ {
2544
+ previousDispatcher = ReactCurrentDispatcher.current;
2545
+ ReactCurrentDispatcher.current = null;
2546
+ disableLogs();
2547
+ }
2548
+ try {
2549
+ if (construct) {
2550
+ var Fake = function() {
2551
+ throw Error();
2552
+ };
2553
+ Object.defineProperty(Fake.prototype, "props", {
2554
+ set: function() {
2555
+ throw Error();
2556
+ }
2557
+ });
2558
+ if (typeof Reflect === "object" && Reflect.construct) {
2559
+ try {
2560
+ Reflect.construct(Fake, []);
2561
+ } catch (x) {
2562
+ control = x;
2563
+ }
2564
+ Reflect.construct(fn, [], Fake);
2565
+ } else {
2566
+ try {
2567
+ Fake.call();
2568
+ } catch (x) {
2569
+ control = x;
2570
+ }
2571
+ fn.call(Fake.prototype);
2572
+ }
2573
+ } else {
2574
+ try {
2575
+ throw Error();
2576
+ } catch (x) {
2577
+ control = x;
2578
+ }
2579
+ fn();
2580
+ }
2581
+ } catch (sample) {
2582
+ if (sample && control && typeof sample.stack === "string") {
2583
+ var sampleLines = sample.stack.split("\n");
2584
+ var controlLines = control.stack.split("\n");
2585
+ var s = sampleLines.length - 1;
2586
+ var c = controlLines.length - 1;
2587
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
2588
+ c--;
2589
+ }
2590
+ for (; s >= 1 && c >= 0; s--, c--) {
2591
+ if (sampleLines[s] !== controlLines[c]) {
2592
+ if (s !== 1 || c !== 1) {
2593
+ do {
2594
+ s--;
2595
+ c--;
2596
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
2597
+ var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
2598
+ if (fn.displayName && _frame.includes("<anonymous>")) {
2599
+ _frame = _frame.replace("<anonymous>", fn.displayName);
2600
+ }
2601
+ {
2602
+ if (typeof fn === "function") {
2603
+ componentFrameCache.set(fn, _frame);
2604
+ }
2605
+ }
2606
+ return _frame;
2607
+ }
2608
+ } while (s >= 1 && c >= 0);
2609
+ }
2610
+ break;
2611
+ }
2612
+ }
2613
+ }
2614
+ } finally {
2615
+ reentry = false;
2616
+ {
2617
+ ReactCurrentDispatcher.current = previousDispatcher;
2618
+ reenableLogs();
2619
+ }
2620
+ Error.prepareStackTrace = previousPrepareStackTrace;
2621
+ }
2622
+ var name = fn ? fn.displayName || fn.name : "";
2623
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
2624
+ {
2625
+ if (typeof fn === "function") {
2626
+ componentFrameCache.set(fn, syntheticFrame);
2627
+ }
2628
+ }
2629
+ return syntheticFrame;
2630
+ }
2631
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
2632
+ {
2633
+ return describeNativeComponentFrame(fn, false);
2634
+ }
2635
+ }
2636
+ function shouldConstruct(Component) {
2637
+ var prototype = Component.prototype;
2638
+ return !!(prototype && prototype.isReactComponent);
2639
+ }
2640
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
2641
+ if (type == null) {
2642
+ return "";
2643
+ }
2644
+ if (typeof type === "function") {
2645
+ {
2646
+ return describeNativeComponentFrame(type, shouldConstruct(type));
2647
+ }
2648
+ }
2649
+ if (typeof type === "string") {
2650
+ return describeBuiltInComponentFrame(type);
2651
+ }
2652
+ switch (type) {
2653
+ case REACT_SUSPENSE_TYPE:
2654
+ return describeBuiltInComponentFrame("Suspense");
2655
+ case REACT_SUSPENSE_LIST_TYPE:
2656
+ return describeBuiltInComponentFrame("SuspenseList");
2657
+ }
2658
+ if (typeof type === "object") {
2659
+ switch (type.$$typeof) {
2660
+ case REACT_FORWARD_REF_TYPE:
2661
+ return describeFunctionComponentFrame(type.render);
2662
+ case REACT_MEMO_TYPE:
2663
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
2664
+ case REACT_LAZY_TYPE: {
2665
+ var lazyComponent = type;
2666
+ var payload = lazyComponent._payload;
2667
+ var init = lazyComponent._init;
2668
+ try {
2669
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
2670
+ } catch (x) {
2671
+ }
2672
+ }
2673
+ }
2674
+ }
2675
+ return "";
2676
+ }
2677
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
2678
+ var loggedTypeFailures = {};
2679
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
2680
+ function setCurrentlyValidatingElement(element) {
2681
+ {
2682
+ if (element) {
2683
+ var owner = element._owner;
2684
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2685
+ ReactDebugCurrentFrame.setExtraStackFrame(stack);
2686
+ } else {
2687
+ ReactDebugCurrentFrame.setExtraStackFrame(null);
2688
+ }
2689
+ }
2690
+ }
2691
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
2692
+ {
2693
+ var has = Function.call.bind(hasOwnProperty);
2694
+ for (var typeSpecName in typeSpecs) {
2695
+ if (has(typeSpecs, typeSpecName)) {
2696
+ var error$1 = void 0;
2697
+ try {
2698
+ if (typeof typeSpecs[typeSpecName] !== "function") {
2699
+ 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`.");
2700
+ err.name = "Invariant Violation";
2701
+ throw err;
2702
+ }
2703
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
2704
+ } catch (ex) {
2705
+ error$1 = ex;
2706
+ }
2707
+ if (error$1 && !(error$1 instanceof Error)) {
2708
+ setCurrentlyValidatingElement(element);
2709
+ 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);
2710
+ setCurrentlyValidatingElement(null);
2711
+ }
2712
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
2713
+ loggedTypeFailures[error$1.message] = true;
2714
+ setCurrentlyValidatingElement(element);
2715
+ error("Failed %s type: %s", location, error$1.message);
2716
+ setCurrentlyValidatingElement(null);
2717
+ }
2718
+ }
2719
+ }
2720
+ }
2721
+ }
2722
+ var isArrayImpl = Array.isArray;
2723
+ function isArray(a) {
2724
+ return isArrayImpl(a);
2725
+ }
2726
+ function typeName(value) {
2727
+ {
2728
+ var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
2729
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
2730
+ return type;
2731
+ }
2732
+ }
2733
+ function willCoercionThrow(value) {
2734
+ {
2735
+ try {
2736
+ testStringCoercion(value);
2737
+ return false;
2738
+ } catch (e) {
2739
+ return true;
2740
+ }
2741
+ }
2742
+ }
2743
+ function testStringCoercion(value) {
2744
+ return "" + value;
2745
+ }
2746
+ function checkKeyStringCoercion(value) {
2747
+ {
2748
+ if (willCoercionThrow(value)) {
2749
+ error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
2750
+ return testStringCoercion(value);
2751
+ }
2752
+ }
2753
+ }
2754
+ var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
2755
+ var RESERVED_PROPS = {
2756
+ key: true,
2757
+ ref: true,
2758
+ __self: true,
2759
+ __source: true
2760
+ };
2761
+ var specialPropKeyWarningShown;
2762
+ var specialPropRefWarningShown;
2763
+ var didWarnAboutStringRefs;
2764
+ {
2765
+ didWarnAboutStringRefs = {};
2766
+ }
2767
+ function hasValidRef(config) {
2768
+ {
2769
+ if (hasOwnProperty.call(config, "ref")) {
2770
+ var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
2771
+ if (getter && getter.isReactWarning) {
2772
+ return false;
2773
+ }
2774
+ }
2775
+ }
2776
+ return config.ref !== void 0;
2777
+ }
2778
+ function hasValidKey(config) {
2779
+ {
2780
+ if (hasOwnProperty.call(config, "key")) {
2781
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
2782
+ if (getter && getter.isReactWarning) {
2783
+ return false;
2784
+ }
2785
+ }
2786
+ }
2787
+ return config.key !== void 0;
2788
+ }
2789
+ function warnIfStringRefCannotBeAutoConverted(config, self) {
2790
+ {
2791
+ if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
2792
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
2793
+ if (!didWarnAboutStringRefs[componentName]) {
2794
+ 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);
2795
+ didWarnAboutStringRefs[componentName] = true;
2796
+ }
2797
+ }
2798
+ }
2799
+ }
2800
+ function defineKeyPropWarningGetter(props, displayName) {
2801
+ {
2802
+ var warnAboutAccessingKey = function() {
2803
+ if (!specialPropKeyWarningShown) {
2804
+ specialPropKeyWarningShown = true;
2805
+ 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);
2806
+ }
2807
+ };
2808
+ warnAboutAccessingKey.isReactWarning = true;
2809
+ Object.defineProperty(props, "key", {
2810
+ get: warnAboutAccessingKey,
2811
+ configurable: true
2812
+ });
2813
+ }
2814
+ }
2815
+ function defineRefPropWarningGetter(props, displayName) {
2816
+ {
2817
+ var warnAboutAccessingRef = function() {
2818
+ if (!specialPropRefWarningShown) {
2819
+ specialPropRefWarningShown = true;
2820
+ 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);
2821
+ }
2822
+ };
2823
+ warnAboutAccessingRef.isReactWarning = true;
2824
+ Object.defineProperty(props, "ref", {
2825
+ get: warnAboutAccessingRef,
2826
+ configurable: true
2827
+ });
2828
+ }
2829
+ }
2830
+ var ReactElement = function(type, key, ref, self, source, owner, props) {
2831
+ var element = {
2832
+ // This tag allows us to uniquely identify this as a React Element
2833
+ $$typeof: REACT_ELEMENT_TYPE,
2834
+ // Built-in properties that belong on the element
2835
+ type,
2836
+ key,
2837
+ ref,
2838
+ props,
2839
+ // Record the component responsible for creating this element.
2840
+ _owner: owner
2841
+ };
2842
+ {
2843
+ element._store = {};
2844
+ Object.defineProperty(element._store, "validated", {
2845
+ configurable: false,
2846
+ enumerable: false,
2847
+ writable: true,
2848
+ value: false
2849
+ });
2850
+ Object.defineProperty(element, "_self", {
2851
+ configurable: false,
2852
+ enumerable: false,
2853
+ writable: false,
2854
+ value: self
2855
+ });
2856
+ Object.defineProperty(element, "_source", {
2857
+ configurable: false,
2858
+ enumerable: false,
2859
+ writable: false,
2860
+ value: source
2861
+ });
2862
+ if (Object.freeze) {
2863
+ Object.freeze(element.props);
2864
+ Object.freeze(element);
2865
+ }
2866
+ }
2867
+ return element;
2868
+ };
2869
+ function jsxDEV(type, config, maybeKey, source, self) {
2870
+ {
2871
+ var propName;
2872
+ var props = {};
2873
+ var key = null;
2874
+ var ref = null;
2875
+ if (maybeKey !== void 0) {
2876
+ {
2877
+ checkKeyStringCoercion(maybeKey);
2878
+ }
2879
+ key = "" + maybeKey;
2880
+ }
2881
+ if (hasValidKey(config)) {
2882
+ {
2883
+ checkKeyStringCoercion(config.key);
2884
+ }
2885
+ key = "" + config.key;
2886
+ }
2887
+ if (hasValidRef(config)) {
2888
+ ref = config.ref;
2889
+ warnIfStringRefCannotBeAutoConverted(config, self);
2890
+ }
2891
+ for (propName in config) {
2892
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
2893
+ props[propName] = config[propName];
2894
+ }
2895
+ }
2896
+ if (type && type.defaultProps) {
2897
+ var defaultProps = type.defaultProps;
2898
+ for (propName in defaultProps) {
2899
+ if (props[propName] === void 0) {
2900
+ props[propName] = defaultProps[propName];
2901
+ }
2902
+ }
2903
+ }
2904
+ if (key || ref) {
2905
+ var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
2906
+ if (key) {
2907
+ defineKeyPropWarningGetter(props, displayName);
2908
+ }
2909
+ if (ref) {
2910
+ defineRefPropWarningGetter(props, displayName);
2911
+ }
2912
+ }
2913
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
2914
+ }
2915
+ }
2916
+ var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
2917
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
2918
+ function setCurrentlyValidatingElement$1(element) {
2919
+ {
2920
+ if (element) {
2921
+ var owner = element._owner;
2922
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2923
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
2924
+ } else {
2925
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
2926
+ }
2927
+ }
2928
+ }
2929
+ var propTypesMisspellWarningShown;
2930
+ {
2931
+ propTypesMisspellWarningShown = false;
2932
+ }
2933
+ function isValidElement(object) {
2934
+ {
2935
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
2936
+ }
2937
+ }
2938
+ function getDeclarationErrorAddendum() {
2939
+ {
2940
+ if (ReactCurrentOwner$1.current) {
2941
+ var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
2942
+ if (name) {
2943
+ return "\n\nCheck the render method of `" + name + "`.";
2944
+ }
2945
+ }
2946
+ return "";
2947
+ }
2948
+ }
2949
+ function getSourceInfoErrorAddendum(source) {
2950
+ {
2951
+ if (source !== void 0) {
2952
+ var fileName = source.fileName.replace(/^.*[\\\/]/, "");
2953
+ var lineNumber = source.lineNumber;
2954
+ return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
2955
+ }
2956
+ return "";
2957
+ }
2958
+ }
2959
+ var ownerHasKeyUseWarning = {};
2960
+ function getCurrentComponentErrorInfo(parentType) {
2961
+ {
2962
+ var info = getDeclarationErrorAddendum();
2963
+ if (!info) {
2964
+ var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
2965
+ if (parentName) {
2966
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
2967
+ }
2968
+ }
2969
+ return info;
2970
+ }
2971
+ }
2972
+ function validateExplicitKey(element, parentType) {
2973
+ {
2974
+ if (!element._store || element._store.validated || element.key != null) {
2975
+ return;
2976
+ }
2977
+ element._store.validated = true;
2978
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
2979
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
2980
+ return;
2981
+ }
2982
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
2983
+ var childOwner = "";
2984
+ if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
2985
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
2986
+ }
2987
+ setCurrentlyValidatingElement$1(element);
2988
+ 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);
2989
+ setCurrentlyValidatingElement$1(null);
2990
+ }
2991
+ }
2992
+ function validateChildKeys(node, parentType) {
2993
+ {
2994
+ if (typeof node !== "object") {
2995
+ return;
2996
+ }
2997
+ if (isArray(node)) {
2998
+ for (var i = 0; i < node.length; i++) {
2999
+ var child = node[i];
3000
+ if (isValidElement(child)) {
3001
+ validateExplicitKey(child, parentType);
3002
+ }
3003
+ }
3004
+ } else if (isValidElement(node)) {
3005
+ if (node._store) {
3006
+ node._store.validated = true;
3007
+ }
3008
+ } else if (node) {
3009
+ var iteratorFn = getIteratorFn(node);
3010
+ if (typeof iteratorFn === "function") {
3011
+ if (iteratorFn !== node.entries) {
3012
+ var iterator = iteratorFn.call(node);
3013
+ var step;
3014
+ while (!(step = iterator.next()).done) {
3015
+ if (isValidElement(step.value)) {
3016
+ validateExplicitKey(step.value, parentType);
3017
+ }
3018
+ }
3019
+ }
3020
+ }
3021
+ }
3022
+ }
3023
+ }
3024
+ function validatePropTypes(element) {
3025
+ {
3026
+ var type = element.type;
3027
+ if (type === null || type === void 0 || typeof type === "string") {
3028
+ return;
3029
+ }
3030
+ var propTypes;
3031
+ if (typeof type === "function") {
3032
+ propTypes = type.propTypes;
3033
+ } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
3034
+ // Inner props are checked in the reconciler.
3035
+ type.$$typeof === REACT_MEMO_TYPE)) {
3036
+ propTypes = type.propTypes;
3037
+ } else {
3038
+ return;
3039
+ }
3040
+ if (propTypes) {
3041
+ var name = getComponentNameFromType(type);
3042
+ checkPropTypes(propTypes, element.props, "prop", name, element);
3043
+ } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
3044
+ propTypesMisspellWarningShown = true;
3045
+ var _name = getComponentNameFromType(type);
3046
+ error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
3047
+ }
3048
+ if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
3049
+ error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
3050
+ }
3051
+ }
3052
+ }
3053
+ function validateFragmentProps(fragment) {
3054
+ {
3055
+ var keys = Object.keys(fragment.props);
3056
+ for (var i = 0; i < keys.length; i++) {
3057
+ var key = keys[i];
3058
+ if (key !== "children" && key !== "key") {
3059
+ setCurrentlyValidatingElement$1(fragment);
3060
+ error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
3061
+ setCurrentlyValidatingElement$1(null);
3062
+ break;
3063
+ }
3064
+ }
3065
+ if (fragment.ref !== null) {
3066
+ setCurrentlyValidatingElement$1(fragment);
3067
+ error("Invalid attribute `ref` supplied to `React.Fragment`.");
3068
+ setCurrentlyValidatingElement$1(null);
3069
+ }
3070
+ }
3071
+ }
3072
+ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
3073
+ {
3074
+ var validType = isValidElementType(type);
3075
+ if (!validType) {
3076
+ var info = "";
3077
+ if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
3078
+ 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.";
3079
+ }
3080
+ var sourceInfo = getSourceInfoErrorAddendum(source);
3081
+ if (sourceInfo) {
3082
+ info += sourceInfo;
3083
+ } else {
3084
+ info += getDeclarationErrorAddendum();
3085
+ }
3086
+ var typeString;
3087
+ if (type === null) {
3088
+ typeString = "null";
3089
+ } else if (isArray(type)) {
3090
+ typeString = "array";
3091
+ } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
3092
+ typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
3093
+ info = " Did you accidentally export a JSX literal instead of a component?";
3094
+ } else {
3095
+ typeString = typeof type;
3096
+ }
3097
+ 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);
3098
+ }
3099
+ var element = jsxDEV(type, props, key, source, self);
3100
+ if (element == null) {
3101
+ return element;
3102
+ }
3103
+ if (validType) {
3104
+ var children = props.children;
3105
+ if (children !== void 0) {
3106
+ if (isStaticChildren) {
3107
+ if (isArray(children)) {
3108
+ for (var i = 0; i < children.length; i++) {
3109
+ validateChildKeys(children[i], type);
3110
+ }
3111
+ if (Object.freeze) {
3112
+ Object.freeze(children);
3113
+ }
3114
+ } else {
3115
+ 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.");
3116
+ }
3117
+ } else {
3118
+ validateChildKeys(children, type);
3119
+ }
3120
+ }
3121
+ }
3122
+ if (type === REACT_FRAGMENT_TYPE) {
3123
+ validateFragmentProps(element);
3124
+ } else {
3125
+ validatePropTypes(element);
3126
+ }
3127
+ return element;
3128
+ }
3129
+ }
3130
+ function jsxWithValidationStatic(type, props, key) {
3131
+ {
3132
+ return jsxWithValidation(type, props, key, true);
3133
+ }
3134
+ }
3135
+ function jsxWithValidationDynamic(type, props, key) {
3136
+ {
3137
+ return jsxWithValidation(type, props, key, false);
3138
+ }
3139
+ }
3140
+ var jsx11 = jsxWithValidationDynamic;
3141
+ var jsxs2 = jsxWithValidationStatic;
3142
+ exports.Fragment = REACT_FRAGMENT_TYPE;
3143
+ exports.jsx = jsx11;
3144
+ exports.jsxs = jsxs2;
3145
+ })();
3146
+ }
3147
+ }
3148
+ });
3149
+
3150
+ // node_modules/react/jsx-runtime.js
3151
+ var require_jsx_runtime = __commonJS({
3152
+ "node_modules/react/jsx-runtime.js"(exports, module2) {
3153
+ "use strict";
3154
+ if (process.env.NODE_ENV === "production") {
3155
+ module2.exports = require_react_jsx_runtime_production_min();
3156
+ } else {
3157
+ module2.exports = require_react_jsx_runtime_development();
3158
+ }
3159
+ }
3160
+ });
3161
+
3162
+ // src/index.ts
3163
+ var src_exports = {};
3164
+ __export(src_exports, {
3165
+ Button: () => Button,
3166
+ Checkbox: () => Checkbox,
3167
+ Label: () => Label,
3168
+ Radio: () => RadioGroupItem,
3169
+ RadioGroup: () => RadioGroup,
3170
+ Table: () => Table,
3171
+ TableBody: () => TableBody,
3172
+ TableCaption: () => TableCaption,
3173
+ TableCell: () => TableCell,
3174
+ TableFooter: () => TableFooter,
3175
+ TableHead: () => TableHead,
3176
+ TableHeader: () => TableHeader,
3177
+ TableRow: () => TableRow,
3178
+ buttonVariants: () => buttonVariants,
3179
+ colors: () => colors
3180
+ });
3181
+ module.exports = __toCommonJS(src_exports);
3182
+
3183
+ // src/colors.ts
3184
+ var colors = {
3185
+ grey: {
3186
+ 50: "#F9FAFB",
3187
+ 100: "#F3F4F6",
3188
+ 200: "#E5E7EB",
3189
+ 300: "#D1D5DB",
3190
+ 400: "#9CA3AF",
3191
+ 500: "#6B7280",
3192
+ 600: "#4B5563",
3193
+ 700: "#374151",
3194
+ 800: "#1F2A37",
3195
+ 900: "#111928"
3196
+ },
3197
+ blue: {
3198
+ 50: "#F5FAFF",
3199
+ 100: "#E1EFFE",
3200
+ 200: "#C3DDFD",
3201
+ 300: "#A4CAFE",
3202
+ 400: "#76A9FA",
3203
+ 500: "#3F83F8",
3204
+ 600: "#2165E3",
3205
+ 700: "#1A56DB",
3206
+ 800: "#1E429F",
3207
+ 900: "#233876"
3208
+ },
3209
+ red: {
3210
+ 50: "#FDF2F2",
3211
+ 100: "#FDE8E8",
3212
+ 200: "#FBD5D5",
3213
+ 300: "#F8B4B4",
3214
+ 400: "#F98080",
3215
+ 500: "#F05252",
3216
+ 600: "#E02424",
3217
+ 700: "#C81E1E",
3218
+ 800: "#9B1C1C",
3219
+ 900: "#771D1D"
3220
+ },
3221
+ orange: {
3222
+ 50: "#FFF8F1",
3223
+ 100: "#FEECDC",
3224
+ 200: "#FCD9BD",
3225
+ 300: "#FDBA8C",
3226
+ 400: "#FF8A4C",
3227
+ 500: "#FF5A1F",
3228
+ 600: "#D03801",
3229
+ 700: "#B43403",
3230
+ 800: "#8A2C0D",
3231
+ 900: "#771D1D"
3232
+ },
3233
+ yellow: {
3234
+ 50: "#FDFDEA",
3235
+ 100: "#FDF6B2",
3236
+ 200: "#FCE96A",
3237
+ 300: "#FACA15",
3238
+ 400: "#E3A008",
3239
+ 500: "#C27803",
3240
+ 600: "#9F580A",
3241
+ 700: "#8E4B10",
3242
+ 800: "#723B13",
3243
+ 900: "#633112"
3244
+ },
3245
+ green: {
3246
+ 50: "#F3FAF7",
3247
+ 100: "#DEF7EC",
3248
+ 200: "#BCF0DA",
3249
+ 300: "#84E1BC",
3250
+ 400: "#31C48D",
3251
+ 500: "#0E9F6E",
3252
+ 600: "#057A55",
3253
+ 700: "#046C4E",
3254
+ 800: "#03543F",
3255
+ 900: "#014737"
3256
+ },
3257
+ teal: {
3258
+ 50: "#EDFAFA",
3259
+ 100: "#D5F5F6",
3260
+ 200: "#AFECEF",
3261
+ 300: "#7EDCE2",
3262
+ 400: "#16BDCA",
3263
+ 500: "#0694A2",
3264
+ 600: "#047481",
3265
+ 700: "#036672",
3266
+ 800: "#05505C",
3267
+ 900: "#014451"
3268
+ },
3269
+ indigo: {
3270
+ 50: "#F0F5FF",
3271
+ 100: "#E5EDFF",
3272
+ 200: "#CDDBFE",
3273
+ 300: "#B4C6FC",
3274
+ 400: "#8DA2FB",
3275
+ 500: "#6875F5",
3276
+ 600: "#5850EC",
3277
+ 700: "#5145CD",
3278
+ 800: "#42389D",
3279
+ 900: "#362F78"
3280
+ },
3281
+ purple: {
3282
+ 50: "#F6F5FF",
3283
+ 100: "#EDEBFE",
3284
+ 200: "#DCD7FE",
3285
+ 300: "#CABFFD",
3286
+ 400: "#AC94FA",
3287
+ 500: "#9061F9",
3288
+ 600: "#7E3AF2",
3289
+ 700: "#6C2BD9",
3290
+ 800: "#5521B5",
3291
+ 900: "#4A1D96"
3292
+ },
3293
+ pink: {
3294
+ 50: "#FFF6F9",
3295
+ 100: "#FFF1F5",
3296
+ 200: "#FFE8EE",
3297
+ 300: "#FFD9E3",
3298
+ 400: "#FFBFD0",
3299
+ 500: "#FF9DB7",
3300
+ 600: "#FB7A9C",
3301
+ 700: "#D95477",
3302
+ 800: "#A02042",
3303
+ 900: "#731837"
3304
+ }
3305
+ };
3306
+ var colors_default = __spreadValues({
3307
+ transparent: "transparent",
3308
+ current: "currentColor",
3309
+ primary: colors.blue,
3310
+ secondary: colors.pink,
3311
+ foreground: {
3312
+ DEFAULT: colors.grey["900"],
3313
+ muted: colors.grey["500"],
3314
+ subtle: colors.grey["400"],
3315
+ inverse: "#FFF"
3316
+ },
3317
+ accent: {
3318
+ DEFAULT: colors.blue["700"],
3319
+ hover: colors.grey["900"],
3320
+ focus: "#000",
3321
+ alt: colors.grey["300"],
3322
+ "alt-dark": colors.grey["600"]
3323
+ },
3324
+ border: {
3325
+ DEFAULT: colors.grey["300"],
3326
+ hover: colors.grey["400"],
3327
+ subtle: colors.grey["200"]
3328
+ },
3329
+ feedback: {
3330
+ green: colors.green["400"],
3331
+ yellow: colors.yellow["300"],
3332
+ orange: colors.orange["400"],
3333
+ red: colors.red["600"]
3334
+ },
3335
+ button: {
3336
+ active: colors.blue["700"],
3337
+ hover: colors.grey["900"],
3338
+ focus: "#000",
3339
+ disabled: colors.purple["50"]
3340
+ },
3341
+ white: {
3342
+ DEFAULT: "#fff"
3343
+ },
3344
+ black: {
3345
+ DEFAULT: "#000"
3346
+ }
3347
+ }, colors);
3348
+
3349
+ // src/components/Button/index.tsx
3350
+ var React = __toESM(require_react());
3351
+
3352
+ // node_modules/@babel/runtime/helpers/esm/extends.js
3353
+ function _extends() {
3354
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
3355
+ for (var i = 1; i < arguments.length; i++) {
3356
+ var source = arguments[i];
3357
+ for (var key in source) {
3358
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
3359
+ target[key] = source[key];
3360
+ }
3361
+ }
3362
+ }
3363
+ return target;
3364
+ };
3365
+ return _extends.apply(this, arguments);
3366
+ }
3367
+
3368
+ // node_modules/@radix-ui/react-slot/dist/index.mjs
3369
+ var import_react2 = __toESM(require_react(), 1);
3370
+
3371
+ // node_modules/@radix-ui/react-compose-refs/dist/index.mjs
3372
+ var import_react = __toESM(require_react(), 1);
3373
+ function $6ed0406888f73fc4$var$setRef(ref, value) {
3374
+ if (typeof ref === "function")
3375
+ ref(value);
3376
+ else if (ref !== null && ref !== void 0)
3377
+ ref.current = value;
3378
+ }
3379
+ function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs) {
3380
+ return (node) => refs.forEach(
3381
+ (ref) => $6ed0406888f73fc4$var$setRef(ref, node)
3382
+ );
3383
+ }
3384
+
3385
+ // node_modules/@radix-ui/react-slot/dist/index.mjs
3386
+ var $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /* @__PURE__ */ (0, import_react2.forwardRef)((props, forwardedRef) => {
3387
+ const _a = props, { children } = _a, slotProps = __objRest(_a, ["children"]);
3388
+ const childrenArray = import_react2.Children.toArray(children);
3389
+ const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);
3390
+ if (slottable) {
3391
+ const newElement = slottable.props.children;
3392
+ const newChildren = childrenArray.map((child) => {
3393
+ if (child === slottable) {
3394
+ if (import_react2.Children.count(newElement) > 1)
3395
+ return import_react2.Children.only(null);
3396
+ return /* @__PURE__ */ (0, import_react2.isValidElement)(newElement) ? newElement.props.children : null;
3397
+ } else
3398
+ return child;
3399
+ });
3400
+ return /* @__PURE__ */ (0, import_react2.createElement)($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
3401
+ ref: forwardedRef
3402
+ }), /* @__PURE__ */ (0, import_react2.isValidElement)(newElement) ? /* @__PURE__ */ (0, import_react2.cloneElement)(newElement, void 0, newChildren) : null);
3403
+ }
3404
+ return /* @__PURE__ */ (0, import_react2.createElement)($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
3405
+ ref: forwardedRef
3406
+ }), children);
3407
+ });
3408
+ $5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = "Slot";
3409
+ var $5e63c961fc1ce211$var$SlotClone = /* @__PURE__ */ (0, import_react2.forwardRef)((props, forwardedRef) => {
3410
+ const _a = props, { children } = _a, slotProps = __objRest(_a, ["children"]);
3411
+ if (/* @__PURE__ */ (0, import_react2.isValidElement)(children))
3412
+ return /* @__PURE__ */ (0, import_react2.cloneElement)(children, __spreadProps(__spreadValues({}, $5e63c961fc1ce211$var$mergeProps(slotProps, children.props)), {
3413
+ ref: forwardedRef ? $6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, children.ref) : children.ref
3414
+ }));
3415
+ return import_react2.Children.count(children) > 1 ? import_react2.Children.only(null) : null;
3416
+ });
3417
+ $5e63c961fc1ce211$var$SlotClone.displayName = "SlotClone";
3418
+ var $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children }) => {
3419
+ return /* @__PURE__ */ (0, import_react2.createElement)(import_react2.Fragment, null, children);
3420
+ };
3421
+ function $5e63c961fc1ce211$var$isSlottable(child) {
3422
+ return /* @__PURE__ */ (0, import_react2.isValidElement)(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;
3423
+ }
3424
+ function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
3425
+ const overrideProps = __spreadValues({}, childProps);
3426
+ for (const propName in childProps) {
3427
+ const slotPropValue = slotProps[propName];
3428
+ const childPropValue = childProps[propName];
3429
+ const isHandler = /^on[A-Z]/.test(propName);
3430
+ if (isHandler) {
3431
+ if (slotPropValue && childPropValue)
3432
+ overrideProps[propName] = (...args) => {
3433
+ childPropValue(...args);
3434
+ slotPropValue(...args);
3435
+ };
3436
+ else if (slotPropValue)
3437
+ overrideProps[propName] = slotPropValue;
3438
+ } else if (propName === "style")
3439
+ overrideProps[propName] = __spreadValues(__spreadValues({}, slotPropValue), childPropValue);
3440
+ else if (propName === "className")
3441
+ overrideProps[propName] = [
3442
+ slotPropValue,
3443
+ childPropValue
3444
+ ].filter(Boolean).join(" ");
3445
+ }
3446
+ return __spreadValues(__spreadValues({}, slotProps), overrideProps);
3447
+ }
3448
+
3449
+ // src/components/Button/index.tsx
3450
+ var import_class_variance_authority = require("class-variance-authority");
3451
+
3452
+ // src/lib/utils.ts
3453
+ var import_clsx = require("clsx");
3454
+ var import_tailwind_merge = require("tailwind-merge");
3455
+ function cn(...inputs) {
3456
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
3457
+ }
3458
+
3459
+ // src/components/Button/index.tsx
3460
+ var import_jsx_runtime = __toESM(require_jsx_runtime());
3461
+ var buttonVariants = (0, import_class_variance_authority.cva)(
3462
+ "inline-flex items-center justify-center whitespace-nowrap rounded-lg transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none border-2",
3463
+ {
3464
+ variants: {
3465
+ variant: {
3466
+ primary: "bg-button-active border-button-active text-white hover:bg-button-hover hover:border-button-hover focus:bg-button-focus focus:border-button-focus disabled:bg-button-disabled disabled:text-foreground-subtle disabled:border-button-disabled",
3467
+ secondary: "bg-white text-grey-900 border-border hover:bg-button-disabled hover:border-border focus:bg-primary-50 focus:border-foreground-muted disabled:bg-button-disabled disabled:border-border-subtle disabled:text-foreground-subtle",
3468
+ tertiary: "bg-transparent border-transparent text-foreground hover:bg-purple-50 hover:border-purple-50 focus:bg-blue-50 focus:border-blue-50 disabled:text-foreground-subtle",
3469
+ success: "bg-green-400 border-green-400 text-black hover:bg-green-500 hover:border-green-500 focus:bg-green-600 focus:border-green-600 disabled:bg-button-disabled disabled:border-button-disabled disabled:text-foreground-subtle",
3470
+ danger: "bg-red-600 border-red-600 text-white hover:bg-red-700 hover:border-red-700 focus:bg-red-800 focus:border-red-800 disabled:bg-button-disabled disabled:border-button-disabled disabled:text-foreground-subtle"
3471
+ },
3472
+ size: {
3473
+ lg: "px-4 py-3 text-base",
3474
+ md: "p-2.5 text-sm",
3475
+ sm: "px-2.5 py-2 text-sm",
3476
+ xs: "px-2 py-2.5 text-xs"
3477
+ }
3478
+ },
3479
+ defaultVariants: {
3480
+ variant: "primary",
3481
+ size: "md"
3482
+ }
3483
+ }
3484
+ );
3485
+ var Button = React.forwardRef(
3486
+ (_a, ref) => {
3487
+ var _b = _a, { className, variant, size, asChild = false } = _b, props = __objRest(_b, ["className", "variant", "size", "asChild"]);
3488
+ const Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : "button";
3489
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
3490
+ Comp,
3491
+ __spreadValues({
3492
+ className: cn(buttonVariants({ variant, size, className })),
3493
+ ref
3494
+ }, props)
3495
+ );
3496
+ }
3497
+ );
3498
+ Button.displayName = "Button";
3499
+
3500
+ // src/components/Checkbox/index.tsx
3501
+ var React2 = __toESM(require_react());
3502
+ var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
3503
+
3504
+ // src/assets/build/check.icon.tsx
3505
+ var import_jsx_runtime2 = __toESM(require_jsx_runtime());
3506
+ var Check = (props) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
3507
+ "svg",
3508
+ __spreadProps(__spreadValues({
3509
+ viewBox: "0 0 24 24",
3510
+ fill: "none",
3511
+ xmlns: "http://www.w3.org/2000/svg"
3512
+ }, props), {
3513
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("g", { id: "check", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
3514
+ "path",
3515
+ {
3516
+ id: "Vector",
3517
+ d: "M9.72648 17.5L9.72217 17.5C9.60611 17.5005 9.4852 17.4519 9.38785 17.3489L4.66647 12.3507C4.66633 12.3506 4.6662 12.3504 4.66607 12.3503C4.6169 12.2978 4.57557 12.233 4.54633 12.1585L4.08221 12.3408L4.54633 12.1585C4.517 12.0838 4.50096 12.0022 4.50004 11.9186C4.49817 11.748 4.55898 11.5911 4.65755 11.481C4.75482 11.3723 4.87789 11.3197 4.99627 11.3182C5.11455 11.3166 5.23805 11.3658 5.33701 11.4712L5.33813 11.4724L9.36492 15.7335L9.72855 16.1183L10.0919 15.7333L18.6614 6.65376L18.662 6.65306C18.7612 6.54761 18.8849 6.4984 19.0033 6.50004C19.1219 6.50168 19.2451 6.55443 19.3425 6.66337C19.4412 6.77376 19.5019 6.93091 19.5 7.10171C19.498 7.27229 19.4337 7.42694 19.3334 7.53385C19.3333 7.53398 19.3332 7.5341 19.3331 7.53423L10.0608 17.3489C9.96345 17.4519 9.84254 17.5005 9.72648 17.5Z"
3518
+ }
3519
+ ) })
3520
+ })
3521
+ );
3522
+
3523
+ // src/assets/build/minus.icon.tsx
3524
+ var import_jsx_runtime3 = __toESM(require_jsx_runtime());
3525
+ var Minus = (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("svg", __spreadProps(__spreadValues({ viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("g", { id: "minus", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
3526
+ "path",
3527
+ {
3528
+ id: "Vector",
3529
+ d: "M19 12L5 12",
3530
+ strokeWidth: "inherit",
3531
+ strokeLinecap: "round",
3532
+ strokeLinejoin: "round"
3533
+ }
3534
+ ) }) }));
3535
+
3536
+ // src/assets/build/radio-selected.icon.tsx
3537
+ var import_jsx_runtime4 = __toESM(require_jsx_runtime());
3538
+ var RadioSelected = (props) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", __spreadProps(__spreadValues({ xmlns: "http://www.w3.org/2000/svg" }, props), { viewBox: "0 0 20 20", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("g", { id: "State=Selected", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { id: "Ellipse 1", cx: 10, cy: 10, r: 4 }) }) }));
3539
+
3540
+ // src/assets/build/user.icon.tsx
3541
+ var import_jsx_runtime5 = __toESM(require_jsx_runtime());
3542
+
3543
+ // src/components/Checkbox/index.tsx
3544
+ var import_class_variance_authority2 = require("class-variance-authority");
3545
+ var import_jsx_runtime6 = __toESM(require_jsx_runtime());
3546
+ var checkboxVariants = (0, import_class_variance_authority2.cva)([
3547
+ [
3548
+ "peer",
3549
+ "h-5 w-5",
3550
+ "p-0.5",
3551
+ "shrink-0",
3552
+ "gap-0",
3553
+ "rounded",
3554
+ "border",
3555
+ "border-border"
3556
+ ],
3557
+ [
3558
+ "data-[state=checked]:border-blue-600",
3559
+ "data-[state=checked]:bg-blue-600",
3560
+ "data-[state=checked]:text-foreground-inverse",
3561
+ "data-[state=indeterminate]:border-blue-600",
3562
+ "data-[state=indeterminate]:bg-blue-600",
3563
+ "data-[state=indeterminate]:text-foreground-inverse"
3564
+ ],
3565
+ [
3566
+ "dark:data-[state=unchecked]:bg-grey-700",
3567
+ "dark:data-[state=unchecked]:border-grey-500"
3568
+ ]
3569
+ ]);
3570
+ var Checkbox = React2.forwardRef((_a, ref) => {
3571
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3572
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
3573
+ CheckboxPrimitive.Root,
3574
+ __spreadProps(__spreadValues({
3575
+ ref,
3576
+ className: cn(checkboxVariants(), className)
3577
+ }, props), {
3578
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
3579
+ CheckboxPrimitive.Indicator,
3580
+ {
3581
+ className: cn("flex items-center justify-center text-inherit"),
3582
+ children: [
3583
+ (props.checked === true || props.checked === void 0) && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Check, { className: "text-inherit stroke-current stroke-1 fill-current" }),
3584
+ props.checked === "indeterminate" && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Minus, { className: "text-inherit stroke-current stroke-3 fill-current" })
3585
+ ]
3586
+ }
3587
+ )
3588
+ })
3589
+ );
3590
+ });
3591
+ Checkbox.displayName = CheckboxPrimitive.Root.displayName;
3592
+
3593
+ // src/components/Label/index.tsx
3594
+ var React3 = __toESM(require_react());
3595
+ var LabelPrimitive = __toESM(require("@radix-ui/react-label"));
3596
+ var import_class_variance_authority3 = require("class-variance-authority");
3597
+ var import_jsx_runtime7 = __toESM(require_jsx_runtime());
3598
+ var labelVariants = (0, import_class_variance_authority3.cva)(
3599
+ "text-sm font-medium leading-normal peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:text-foreground-inverse",
3600
+ {
3601
+ variants: {
3602
+ size: {
3603
+ lg: "text-lg",
3604
+ md: "text-md",
3605
+ sm: "text-sm",
3606
+ xs: "text-xs",
3607
+ xl: "text-xl"
3608
+ }
3609
+ }
3610
+ }
3611
+ );
3612
+ var Label = React3.forwardRef((_a, ref) => {
3613
+ var _b = _a, { className, size } = _b, props = __objRest(_b, ["className", "size"]);
3614
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3615
+ LabelPrimitive.Root,
3616
+ __spreadValues({
3617
+ ref,
3618
+ className: cn(labelVariants({ size }), className)
3619
+ }, props)
3620
+ );
3621
+ });
3622
+ Label.displayName = LabelPrimitive.Root.displayName;
3623
+
3624
+ // src/components/Radio/RadioGroup.tsx
3625
+ var React4 = __toESM(require_react());
3626
+ var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"));
3627
+ var import_jsx_runtime8 = __toESM(require_jsx_runtime());
3628
+ var RadioGroup = React4.forwardRef((_a, ref) => {
3629
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3630
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3631
+ RadioGroupPrimitive.Root,
3632
+ __spreadProps(__spreadValues({
3633
+ className: cn("grid gap-2", className)
3634
+ }, props), {
3635
+ ref
3636
+ })
3637
+ );
3638
+ });
3639
+ RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
3640
+
3641
+ // src/components/Radio/RadioGroupItem.tsx
3642
+ var React5 = __toESM(require_react());
3643
+ var RadioGroupPrimitive2 = __toESM(require("@radix-ui/react-radio-group"));
3644
+ var import_class_variance_authority4 = require("class-variance-authority");
3645
+ var import_jsx_runtime9 = __toESM(require_jsx_runtime());
3646
+ var radioVariant = (0, import_class_variance_authority4.cva)([
3647
+ [
3648
+ "h-5 w-5",
3649
+ "rounded-full",
3650
+ "border-[0.533px]",
3651
+ "border-border",
3652
+ "bg-grey-50",
3653
+ "disabled:opacity-50",
3654
+ "text-foreground-inverse"
3655
+ ],
3656
+ [
3657
+ "data-[state=checked]:border-primary-600",
3658
+ "data-[state=checked]:bg-primary-600",
3659
+ "data-[state=checked]:bg-primary-600"
3660
+ ],
3661
+ ["dark:bg-grey-700", "dark:border-grey-500"]
3662
+ ]);
3663
+ var RadioGroupItem = React5.forwardRef((_a, ref) => {
3664
+ var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
3665
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3666
+ RadioGroupPrimitive2.Item,
3667
+ __spreadProps(__spreadValues({
3668
+ ref,
3669
+ className: cn(radioVariant(), className)
3670
+ }, props), {
3671
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadioGroupPrimitive2.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadioSelected, { className: "text-inherit stroke-current stroke-1 fill-current" }) })
3672
+ })
3673
+ );
3674
+ });
3675
+ RadioGroupItem.displayName = RadioGroupPrimitive2.Item.displayName;
3676
+
3677
+ // src/components/Table/index.tsx
3678
+ var React6 = __toESM(require_react());
3679
+ var import_class_variance_authority5 = require("class-variance-authority");
3680
+ var import_jsx_runtime10 = __toESM(require_jsx_runtime());
3681
+ var tableBodyVariants = (0, import_class_variance_authority5.cva)(["dark:bg-grey-900"], {
3682
+ variants: {
3683
+ variant: {
3684
+ line: [],
3685
+ zebra: [
3686
+ "[&>*:nth-child(odd)]:bg-purple-50",
3687
+ "dark:[&>*:nth-child(odd)]:bg-grey-800"
3688
+ ]
3689
+ }
3690
+ },
3691
+ defaultVariants: {
3692
+ variant: "line"
3693
+ },
3694
+ compoundVariants: [
3695
+ {
3696
+ variant: "line"
3697
+ }
3698
+ ]
3699
+ });
3700
+ var Table = React6.forwardRef((_a, ref) => {
3701
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3702
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3703
+ "table",
3704
+ __spreadValues({
3705
+ ref,
3706
+ className: cn("caption-bottom text-sm dark:text-white", className)
3707
+ }, props)
3708
+ ) });
3709
+ });
3710
+ Table.displayName = "Table";
3711
+ var TableHeader = React6.forwardRef((_a, ref) => {
3712
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3713
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3714
+ "thead",
3715
+ __spreadValues({
3716
+ ref,
3717
+ className: cn("bg-grey-50 dark:bg-grey-700", className)
3718
+ }, props)
3719
+ );
3720
+ });
3721
+ TableHeader.displayName = "TableHeader";
3722
+ var TableHead = React6.forwardRef((_a, ref) => {
3723
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3724
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3725
+ "th",
3726
+ __spreadValues({
3727
+ ref,
3728
+ className: cn(
3729
+ "px-4 leading-[21px] font-bold [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
3730
+ className
3731
+ )
3732
+ }, props)
3733
+ );
3734
+ });
3735
+ TableHead.displayName = "TableHead";
3736
+ var TableBody = React6.forwardRef(
3737
+ (_a, ref) => {
3738
+ var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
3739
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3740
+ "tbody",
3741
+ __spreadValues({
3742
+ ref,
3743
+ className: cn(tableBodyVariants({ variant }), className)
3744
+ }, props)
3745
+ );
3746
+ }
3747
+ );
3748
+ TableBody.displayName = "TableBody";
3749
+ var TableRow = React6.forwardRef((_a, ref) => {
3750
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3751
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3752
+ "tr",
3753
+ __spreadValues({
3754
+ ref,
3755
+ className: cn(
3756
+ "h-[50px] border-b-[1px] border-accent-alt dark:border-grey-500 self-stretch items-center gap-2 font-normal",
3757
+ className
3758
+ )
3759
+ }, props)
3760
+ );
3761
+ });
3762
+ TableRow.displayName = "TableRow";
3763
+ var TableCell = React6.forwardRef((_a, ref) => {
3764
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3765
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3766
+ "td",
3767
+ __spreadValues({
3768
+ ref,
3769
+ className: cn(
3770
+ " px-4 py-4 [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] ",
3771
+ className
3772
+ )
3773
+ }, props)
3774
+ );
3775
+ });
3776
+ TableCell.displayName = "TableCell";
3777
+ var TableCaption = React6.forwardRef((_a, ref) => {
3778
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3779
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("caption", __spreadValues({ ref, className: cn("mt-4", className) }, props));
3780
+ });
3781
+ TableCaption.displayName = "TableCaption";
3782
+ var TableFooter = React6.forwardRef((_a, ref) => {
3783
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3784
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3785
+ "tfoot",
3786
+ __spreadValues({
3787
+ ref,
3788
+ className: cn("bg-primary text-primary-foreground", className)
3789
+ }, props)
3790
+ );
3791
+ });
3792
+ TableFooter.displayName = "TableFooter";
3793
+ // Annotate the CommonJS export names for ESM import in node:
3794
+ 0 && (module.exports = {
3795
+ Button,
3796
+ Checkbox,
3797
+ Label,
3798
+ Radio,
3799
+ RadioGroup,
3800
+ Table,
3801
+ TableBody,
3802
+ TableCaption,
3803
+ TableCell,
3804
+ TableFooter,
3805
+ TableHead,
3806
+ TableHeader,
3807
+ TableRow,
3808
+ buttonVariants,
3809
+ colors
3810
+ });
3811
+ /*! Bundled license information:
3812
+
3813
+ react/cjs/react.production.min.js:
3814
+ (**
3815
+ * @license React
3816
+ * react.production.min.js
3817
+ *
3818
+ * Copyright (c) Facebook, Inc. and its affiliates.
3819
+ *
3820
+ * This source code is licensed under the MIT license found in the
3821
+ * LICENSE file in the root directory of this source tree.
3822
+ *)
3823
+
3824
+ react/cjs/react.development.js:
3825
+ (**
3826
+ * @license React
3827
+ * react.development.js
3828
+ *
3829
+ * Copyright (c) Facebook, Inc. and its affiliates.
3830
+ *
3831
+ * This source code is licensed under the MIT license found in the
3832
+ * LICENSE file in the root directory of this source tree.
3833
+ *)
3834
+
3835
+ react/cjs/react-jsx-runtime.production.min.js:
3836
+ (**
3837
+ * @license React
3838
+ * react-jsx-runtime.production.min.js
3839
+ *
3840
+ * Copyright (c) Facebook, Inc. and its affiliates.
3841
+ *
3842
+ * This source code is licensed under the MIT license found in the
3843
+ * LICENSE file in the root directory of this source tree.
3844
+ *)
3845
+
3846
+ react/cjs/react-jsx-runtime.development.js:
3847
+ (**
3848
+ * @license React
3849
+ * react-jsx-runtime.development.js
3850
+ *
3851
+ * Copyright (c) Facebook, Inc. and its affiliates.
3852
+ *
3853
+ * This source code is licensed under the MIT license found in the
3854
+ * LICENSE file in the root directory of this source tree.
3855
+ *)
3856
+ */
3857
+ //# sourceMappingURL=index.js.map