@wavelengthusaf/components 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,3 +1,1282 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __commonJS = (cb, mod) => function __require() {
8
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
19
+ // If the importer is in node compatibility mode or this is not an ESM
20
+ // file that has been converted to a CommonJS file using a Babel-
21
+ // compatible transform (i.e. "__esModule" has not been set), then set
22
+ // "default" to the CommonJS "module.exports" for node compatibility.
23
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
24
+ mod
25
+ ));
26
+
27
+ // node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js
28
+ var require_react_is_production_min = __commonJS({
29
+ "node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
30
+ "use strict";
31
+ var b = "function" === typeof Symbol && Symbol.for;
32
+ var c = b ? Symbol.for("react.element") : 60103;
33
+ var d = b ? Symbol.for("react.portal") : 60106;
34
+ var e = b ? Symbol.for("react.fragment") : 60107;
35
+ var f = b ? Symbol.for("react.strict_mode") : 60108;
36
+ var g = b ? Symbol.for("react.profiler") : 60114;
37
+ var h = b ? Symbol.for("react.provider") : 60109;
38
+ var k = b ? Symbol.for("react.context") : 60110;
39
+ var l = b ? Symbol.for("react.async_mode") : 60111;
40
+ var m = b ? Symbol.for("react.concurrent_mode") : 60111;
41
+ var n = b ? Symbol.for("react.forward_ref") : 60112;
42
+ var p = b ? Symbol.for("react.suspense") : 60113;
43
+ var q = b ? Symbol.for("react.suspense_list") : 60120;
44
+ var r = b ? Symbol.for("react.memo") : 60115;
45
+ var t = b ? Symbol.for("react.lazy") : 60116;
46
+ var v = b ? Symbol.for("react.block") : 60121;
47
+ var w = b ? Symbol.for("react.fundamental") : 60117;
48
+ var x = b ? Symbol.for("react.responder") : 60118;
49
+ var y = b ? Symbol.for("react.scope") : 60119;
50
+ function z(a) {
51
+ if ("object" === typeof a && null !== a) {
52
+ var u = a.$$typeof;
53
+ switch (u) {
54
+ case c:
55
+ switch (a = a.type, a) {
56
+ case l:
57
+ case m:
58
+ case e:
59
+ case g:
60
+ case f:
61
+ case p:
62
+ return a;
63
+ default:
64
+ switch (a = a && a.$$typeof, a) {
65
+ case k:
66
+ case n:
67
+ case t:
68
+ case r:
69
+ case h:
70
+ return a;
71
+ default:
72
+ return u;
73
+ }
74
+ }
75
+ case d:
76
+ return u;
77
+ }
78
+ }
79
+ }
80
+ function A(a) {
81
+ return z(a) === m;
82
+ }
83
+ exports.AsyncMode = l;
84
+ exports.ConcurrentMode = m;
85
+ exports.ContextConsumer = k;
86
+ exports.ContextProvider = h;
87
+ exports.Element = c;
88
+ exports.ForwardRef = n;
89
+ exports.Fragment = e;
90
+ exports.Lazy = t;
91
+ exports.Memo = r;
92
+ exports.Portal = d;
93
+ exports.Profiler = g;
94
+ exports.StrictMode = f;
95
+ exports.Suspense = p;
96
+ exports.isAsyncMode = function(a) {
97
+ return A(a) || z(a) === l;
98
+ };
99
+ exports.isConcurrentMode = A;
100
+ exports.isContextConsumer = function(a) {
101
+ return z(a) === k;
102
+ };
103
+ exports.isContextProvider = function(a) {
104
+ return z(a) === h;
105
+ };
106
+ exports.isElement = function(a) {
107
+ return "object" === typeof a && null !== a && a.$$typeof === c;
108
+ };
109
+ exports.isForwardRef = function(a) {
110
+ return z(a) === n;
111
+ };
112
+ exports.isFragment = function(a) {
113
+ return z(a) === e;
114
+ };
115
+ exports.isLazy = function(a) {
116
+ return z(a) === t;
117
+ };
118
+ exports.isMemo = function(a) {
119
+ return z(a) === r;
120
+ };
121
+ exports.isPortal = function(a) {
122
+ return z(a) === d;
123
+ };
124
+ exports.isProfiler = function(a) {
125
+ return z(a) === g;
126
+ };
127
+ exports.isStrictMode = function(a) {
128
+ return z(a) === f;
129
+ };
130
+ exports.isSuspense = function(a) {
131
+ return z(a) === p;
132
+ };
133
+ exports.isValidElementType = function(a) {
134
+ return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
135
+ };
136
+ exports.typeOf = z;
137
+ }
138
+ });
139
+
140
+ // node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js
141
+ var require_react_is_development = __commonJS({
142
+ "node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js"(exports) {
143
+ "use strict";
144
+ if (process.env.NODE_ENV !== "production") {
145
+ (function() {
146
+ "use strict";
147
+ var hasSymbol = typeof Symbol === "function" && Symbol.for;
148
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
149
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
150
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
151
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
152
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
153
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
154
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
155
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
156
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
157
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
158
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
159
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
160
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
161
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
162
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
163
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
164
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
165
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
166
+ function isValidElementType(type) {
167
+ return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
168
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
169
+ }
170
+ function typeOf(object) {
171
+ if (typeof object === "object" && object !== null) {
172
+ var $$typeof = object.$$typeof;
173
+ switch ($$typeof) {
174
+ case REACT_ELEMENT_TYPE:
175
+ var type = object.type;
176
+ switch (type) {
177
+ case REACT_ASYNC_MODE_TYPE:
178
+ case REACT_CONCURRENT_MODE_TYPE:
179
+ case REACT_FRAGMENT_TYPE:
180
+ case REACT_PROFILER_TYPE:
181
+ case REACT_STRICT_MODE_TYPE:
182
+ case REACT_SUSPENSE_TYPE:
183
+ return type;
184
+ default:
185
+ var $$typeofType = type && type.$$typeof;
186
+ switch ($$typeofType) {
187
+ case REACT_CONTEXT_TYPE:
188
+ case REACT_FORWARD_REF_TYPE:
189
+ case REACT_LAZY_TYPE:
190
+ case REACT_MEMO_TYPE:
191
+ case REACT_PROVIDER_TYPE:
192
+ return $$typeofType;
193
+ default:
194
+ return $$typeof;
195
+ }
196
+ }
197
+ case REACT_PORTAL_TYPE:
198
+ return $$typeof;
199
+ }
200
+ }
201
+ return void 0;
202
+ }
203
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
204
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
205
+ var ContextConsumer = REACT_CONTEXT_TYPE;
206
+ var ContextProvider = REACT_PROVIDER_TYPE;
207
+ var Element = REACT_ELEMENT_TYPE;
208
+ var ForwardRef2 = REACT_FORWARD_REF_TYPE;
209
+ var Fragment = REACT_FRAGMENT_TYPE;
210
+ var Lazy = REACT_LAZY_TYPE;
211
+ var Memo2 = REACT_MEMO_TYPE;
212
+ var Portal = REACT_PORTAL_TYPE;
213
+ var Profiler = REACT_PROFILER_TYPE;
214
+ var StrictMode = REACT_STRICT_MODE_TYPE;
215
+ var Suspense = REACT_SUSPENSE_TYPE;
216
+ var hasWarnedAboutDeprecatedIsAsyncMode = false;
217
+ function isAsyncMode(object) {
218
+ {
219
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
220
+ hasWarnedAboutDeprecatedIsAsyncMode = true;
221
+ console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
222
+ }
223
+ }
224
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
225
+ }
226
+ function isConcurrentMode(object) {
227
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
228
+ }
229
+ function isContextConsumer(object) {
230
+ return typeOf(object) === REACT_CONTEXT_TYPE;
231
+ }
232
+ function isContextProvider(object) {
233
+ return typeOf(object) === REACT_PROVIDER_TYPE;
234
+ }
235
+ function isElement(object) {
236
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
237
+ }
238
+ function isForwardRef(object) {
239
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
240
+ }
241
+ function isFragment(object) {
242
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
243
+ }
244
+ function isLazy(object) {
245
+ return typeOf(object) === REACT_LAZY_TYPE;
246
+ }
247
+ function isMemo(object) {
248
+ return typeOf(object) === REACT_MEMO_TYPE;
249
+ }
250
+ function isPortal(object) {
251
+ return typeOf(object) === REACT_PORTAL_TYPE;
252
+ }
253
+ function isProfiler(object) {
254
+ return typeOf(object) === REACT_PROFILER_TYPE;
255
+ }
256
+ function isStrictMode(object) {
257
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
258
+ }
259
+ function isSuspense(object) {
260
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
261
+ }
262
+ exports.AsyncMode = AsyncMode;
263
+ exports.ConcurrentMode = ConcurrentMode;
264
+ exports.ContextConsumer = ContextConsumer;
265
+ exports.ContextProvider = ContextProvider;
266
+ exports.Element = Element;
267
+ exports.ForwardRef = ForwardRef2;
268
+ exports.Fragment = Fragment;
269
+ exports.Lazy = Lazy;
270
+ exports.Memo = Memo2;
271
+ exports.Portal = Portal;
272
+ exports.Profiler = Profiler;
273
+ exports.StrictMode = StrictMode;
274
+ exports.Suspense = Suspense;
275
+ exports.isAsyncMode = isAsyncMode;
276
+ exports.isConcurrentMode = isConcurrentMode;
277
+ exports.isContextConsumer = isContextConsumer;
278
+ exports.isContextProvider = isContextProvider;
279
+ exports.isElement = isElement;
280
+ exports.isForwardRef = isForwardRef;
281
+ exports.isFragment = isFragment;
282
+ exports.isLazy = isLazy;
283
+ exports.isMemo = isMemo;
284
+ exports.isPortal = isPortal;
285
+ exports.isProfiler = isProfiler;
286
+ exports.isStrictMode = isStrictMode;
287
+ exports.isSuspense = isSuspense;
288
+ exports.isValidElementType = isValidElementType;
289
+ exports.typeOf = typeOf;
290
+ })();
291
+ }
292
+ }
293
+ });
294
+
295
+ // node_modules/prop-types/node_modules/react-is/index.js
296
+ var require_react_is = __commonJS({
297
+ "node_modules/prop-types/node_modules/react-is/index.js"(exports, module) {
298
+ "use strict";
299
+ if (process.env.NODE_ENV === "production") {
300
+ module.exports = require_react_is_production_min();
301
+ } else {
302
+ module.exports = require_react_is_development();
303
+ }
304
+ }
305
+ });
306
+
307
+ // node_modules/object-assign/index.js
308
+ var require_object_assign = __commonJS({
309
+ "node_modules/object-assign/index.js"(exports, module) {
310
+ "use strict";
311
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
312
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
313
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
314
+ function toObject(val) {
315
+ if (val === null || val === void 0) {
316
+ throw new TypeError("Object.assign cannot be called with null or undefined");
317
+ }
318
+ return Object(val);
319
+ }
320
+ function shouldUseNative() {
321
+ try {
322
+ if (!Object.assign) {
323
+ return false;
324
+ }
325
+ var test1 = new String("abc");
326
+ test1[5] = "de";
327
+ if (Object.getOwnPropertyNames(test1)[0] === "5") {
328
+ return false;
329
+ }
330
+ var test2 = {};
331
+ for (var i = 0; i < 10; i++) {
332
+ test2["_" + String.fromCharCode(i)] = i;
333
+ }
334
+ var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
335
+ return test2[n];
336
+ });
337
+ if (order2.join("") !== "0123456789") {
338
+ return false;
339
+ }
340
+ var test3 = {};
341
+ "abcdefghijklmnopqrst".split("").forEach(function(letter) {
342
+ test3[letter] = letter;
343
+ });
344
+ if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
345
+ return false;
346
+ }
347
+ return true;
348
+ } catch (err) {
349
+ return false;
350
+ }
351
+ }
352
+ module.exports = shouldUseNative() ? Object.assign : function(target, source) {
353
+ var from;
354
+ var to = toObject(target);
355
+ var symbols;
356
+ for (var s = 1; s < arguments.length; s++) {
357
+ from = Object(arguments[s]);
358
+ for (var key in from) {
359
+ if (hasOwnProperty.call(from, key)) {
360
+ to[key] = from[key];
361
+ }
362
+ }
363
+ if (getOwnPropertySymbols) {
364
+ symbols = getOwnPropertySymbols(from);
365
+ for (var i = 0; i < symbols.length; i++) {
366
+ if (propIsEnumerable.call(from, symbols[i])) {
367
+ to[symbols[i]] = from[symbols[i]];
368
+ }
369
+ }
370
+ }
371
+ }
372
+ return to;
373
+ };
374
+ }
375
+ });
376
+
377
+ // node_modules/prop-types/lib/ReactPropTypesSecret.js
378
+ var require_ReactPropTypesSecret = __commonJS({
379
+ "node_modules/prop-types/lib/ReactPropTypesSecret.js"(exports, module) {
380
+ "use strict";
381
+ var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
382
+ module.exports = ReactPropTypesSecret;
383
+ }
384
+ });
385
+
386
+ // node_modules/prop-types/lib/has.js
387
+ var require_has = __commonJS({
388
+ "node_modules/prop-types/lib/has.js"(exports, module) {
389
+ "use strict";
390
+ module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
391
+ }
392
+ });
393
+
394
+ // node_modules/prop-types/checkPropTypes.js
395
+ var require_checkPropTypes = __commonJS({
396
+ "node_modules/prop-types/checkPropTypes.js"(exports, module) {
397
+ "use strict";
398
+ var printWarning = function() {
399
+ };
400
+ if (process.env.NODE_ENV !== "production") {
401
+ ReactPropTypesSecret = require_ReactPropTypesSecret();
402
+ loggedTypeFailures = {};
403
+ has = require_has();
404
+ printWarning = function(text) {
405
+ var message = "Warning: " + text;
406
+ if (typeof console !== "undefined") {
407
+ console.error(message);
408
+ }
409
+ try {
410
+ throw new Error(message);
411
+ } catch (x) {
412
+ }
413
+ };
414
+ }
415
+ var ReactPropTypesSecret;
416
+ var loggedTypeFailures;
417
+ var has;
418
+ function checkPropTypes(typeSpecs, values2, location, componentName, getStack) {
419
+ if (process.env.NODE_ENV !== "production") {
420
+ for (var typeSpecName in typeSpecs) {
421
+ if (has(typeSpecs, typeSpecName)) {
422
+ var error;
423
+ try {
424
+ if (typeof typeSpecs[typeSpecName] !== "function") {
425
+ var err = Error(
426
+ (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`."
427
+ );
428
+ err.name = "Invariant Violation";
429
+ throw err;
430
+ }
431
+ error = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, ReactPropTypesSecret);
432
+ } catch (ex) {
433
+ error = ex;
434
+ }
435
+ if (error && !(error instanceof Error)) {
436
+ printWarning(
437
+ (componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
438
+ );
439
+ }
440
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
441
+ loggedTypeFailures[error.message] = true;
442
+ var stack = getStack ? getStack() : "";
443
+ printWarning(
444
+ "Failed " + location + " type: " + error.message + (stack != null ? stack : "")
445
+ );
446
+ }
447
+ }
448
+ }
449
+ }
450
+ }
451
+ checkPropTypes.resetWarningCache = function() {
452
+ if (process.env.NODE_ENV !== "production") {
453
+ loggedTypeFailures = {};
454
+ }
455
+ };
456
+ module.exports = checkPropTypes;
457
+ }
458
+ });
459
+
460
+ // node_modules/prop-types/factoryWithTypeCheckers.js
461
+ var require_factoryWithTypeCheckers = __commonJS({
462
+ "node_modules/prop-types/factoryWithTypeCheckers.js"(exports, module) {
463
+ "use strict";
464
+ var ReactIs = require_react_is();
465
+ var assign = require_object_assign();
466
+ var ReactPropTypesSecret = require_ReactPropTypesSecret();
467
+ var has = require_has();
468
+ var checkPropTypes = require_checkPropTypes();
469
+ var printWarning = function() {
470
+ };
471
+ if (process.env.NODE_ENV !== "production") {
472
+ printWarning = function(text) {
473
+ var message = "Warning: " + text;
474
+ if (typeof console !== "undefined") {
475
+ console.error(message);
476
+ }
477
+ try {
478
+ throw new Error(message);
479
+ } catch (x) {
480
+ }
481
+ };
482
+ }
483
+ function emptyFunctionThatReturnsNull() {
484
+ return null;
485
+ }
486
+ module.exports = function(isValidElement, throwOnDirectAccess) {
487
+ var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
488
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
489
+ function getIteratorFn(maybeIterable) {
490
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
491
+ if (typeof iteratorFn === "function") {
492
+ return iteratorFn;
493
+ }
494
+ }
495
+ var ANONYMOUS = "<<anonymous>>";
496
+ var ReactPropTypes = {
497
+ array: createPrimitiveTypeChecker("array"),
498
+ bigint: createPrimitiveTypeChecker("bigint"),
499
+ bool: createPrimitiveTypeChecker("boolean"),
500
+ func: createPrimitiveTypeChecker("function"),
501
+ number: createPrimitiveTypeChecker("number"),
502
+ object: createPrimitiveTypeChecker("object"),
503
+ string: createPrimitiveTypeChecker("string"),
504
+ symbol: createPrimitiveTypeChecker("symbol"),
505
+ any: createAnyTypeChecker(),
506
+ arrayOf: createArrayOfTypeChecker,
507
+ element: createElementTypeChecker(),
508
+ elementType: createElementTypeTypeChecker(),
509
+ instanceOf: createInstanceTypeChecker,
510
+ node: createNodeChecker(),
511
+ objectOf: createObjectOfTypeChecker,
512
+ oneOf: createEnumTypeChecker,
513
+ oneOfType: createUnionTypeChecker,
514
+ shape: createShapeTypeChecker,
515
+ exact: createStrictShapeTypeChecker
516
+ };
517
+ function is(x, y) {
518
+ if (x === y) {
519
+ return x !== 0 || 1 / x === 1 / y;
520
+ } else {
521
+ return x !== x && y !== y;
522
+ }
523
+ }
524
+ function PropTypeError(message, data) {
525
+ this.message = message;
526
+ this.data = data && typeof data === "object" ? data : {};
527
+ this.stack = "";
528
+ }
529
+ PropTypeError.prototype = Error.prototype;
530
+ function createChainableTypeChecker(validate) {
531
+ if (process.env.NODE_ENV !== "production") {
532
+ var manualPropTypeCallCache = {};
533
+ var manualPropTypeWarningCount = 0;
534
+ }
535
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
536
+ componentName = componentName || ANONYMOUS;
537
+ propFullName = propFullName || propName;
538
+ if (secret !== ReactPropTypesSecret) {
539
+ if (throwOnDirectAccess) {
540
+ var err = new Error(
541
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
542
+ );
543
+ err.name = "Invariant Violation";
544
+ throw err;
545
+ } else if (process.env.NODE_ENV !== "production" && typeof console !== "undefined") {
546
+ var cacheKey = componentName + ":" + propName;
547
+ if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
548
+ manualPropTypeWarningCount < 3) {
549
+ printWarning(
550
+ "You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
551
+ );
552
+ manualPropTypeCallCache[cacheKey] = true;
553
+ manualPropTypeWarningCount++;
554
+ }
555
+ }
556
+ }
557
+ if (props[propName] == null) {
558
+ if (isRequired) {
559
+ if (props[propName] === null) {
560
+ return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
561
+ }
562
+ return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
563
+ }
564
+ return null;
565
+ } else {
566
+ return validate(props, propName, componentName, location, propFullName);
567
+ }
568
+ }
569
+ var chainedCheckType = checkType.bind(null, false);
570
+ chainedCheckType.isRequired = checkType.bind(null, true);
571
+ return chainedCheckType;
572
+ }
573
+ function createPrimitiveTypeChecker(expectedType) {
574
+ function validate(props, propName, componentName, location, propFullName, secret) {
575
+ var propValue = props[propName];
576
+ var propType = getPropType(propValue);
577
+ if (propType !== expectedType) {
578
+ var preciseType = getPreciseType(propValue);
579
+ return new PropTypeError(
580
+ "Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."),
581
+ { expectedType }
582
+ );
583
+ }
584
+ return null;
585
+ }
586
+ return createChainableTypeChecker(validate);
587
+ }
588
+ function createAnyTypeChecker() {
589
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull);
590
+ }
591
+ function createArrayOfTypeChecker(typeChecker) {
592
+ function validate(props, propName, componentName, location, propFullName) {
593
+ if (typeof typeChecker !== "function") {
594
+ return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
595
+ }
596
+ var propValue = props[propName];
597
+ if (!Array.isArray(propValue)) {
598
+ var propType = getPropType(propValue);
599
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
600
+ }
601
+ for (var i = 0; i < propValue.length; i++) {
602
+ var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
603
+ if (error instanceof Error) {
604
+ return error;
605
+ }
606
+ }
607
+ return null;
608
+ }
609
+ return createChainableTypeChecker(validate);
610
+ }
611
+ function createElementTypeChecker() {
612
+ function validate(props, propName, componentName, location, propFullName) {
613
+ var propValue = props[propName];
614
+ if (!isValidElement(propValue)) {
615
+ var propType = getPropType(propValue);
616
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
617
+ }
618
+ return null;
619
+ }
620
+ return createChainableTypeChecker(validate);
621
+ }
622
+ function createElementTypeTypeChecker() {
623
+ function validate(props, propName, componentName, location, propFullName) {
624
+ var propValue = props[propName];
625
+ if (!ReactIs.isValidElementType(propValue)) {
626
+ var propType = getPropType(propValue);
627
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
628
+ }
629
+ return null;
630
+ }
631
+ return createChainableTypeChecker(validate);
632
+ }
633
+ function createInstanceTypeChecker(expectedClass) {
634
+ function validate(props, propName, componentName, location, propFullName) {
635
+ if (!(props[propName] instanceof expectedClass)) {
636
+ var expectedClassName = expectedClass.name || ANONYMOUS;
637
+ var actualClassName = getClassName(props[propName]);
638
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
639
+ }
640
+ return null;
641
+ }
642
+ return createChainableTypeChecker(validate);
643
+ }
644
+ function createEnumTypeChecker(expectedValues) {
645
+ if (!Array.isArray(expectedValues)) {
646
+ if (process.env.NODE_ENV !== "production") {
647
+ if (arguments.length > 1) {
648
+ printWarning(
649
+ "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
650
+ );
651
+ } else {
652
+ printWarning("Invalid argument supplied to oneOf, expected an array.");
653
+ }
654
+ }
655
+ return emptyFunctionThatReturnsNull;
656
+ }
657
+ function validate(props, propName, componentName, location, propFullName) {
658
+ var propValue = props[propName];
659
+ for (var i = 0; i < expectedValues.length; i++) {
660
+ if (is(propValue, expectedValues[i])) {
661
+ return null;
662
+ }
663
+ }
664
+ var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
665
+ var type = getPreciseType(value);
666
+ if (type === "symbol") {
667
+ return String(value);
668
+ }
669
+ return value;
670
+ });
671
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
672
+ }
673
+ return createChainableTypeChecker(validate);
674
+ }
675
+ function createObjectOfTypeChecker(typeChecker) {
676
+ function validate(props, propName, componentName, location, propFullName) {
677
+ if (typeof typeChecker !== "function") {
678
+ return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
679
+ }
680
+ var propValue = props[propName];
681
+ var propType = getPropType(propValue);
682
+ if (propType !== "object") {
683
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
684
+ }
685
+ for (var key in propValue) {
686
+ if (has(propValue, key)) {
687
+ var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
688
+ if (error instanceof Error) {
689
+ return error;
690
+ }
691
+ }
692
+ }
693
+ return null;
694
+ }
695
+ return createChainableTypeChecker(validate);
696
+ }
697
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
698
+ if (!Array.isArray(arrayOfTypeCheckers)) {
699
+ process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
700
+ return emptyFunctionThatReturnsNull;
701
+ }
702
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
703
+ var checker = arrayOfTypeCheckers[i];
704
+ if (typeof checker !== "function") {
705
+ printWarning(
706
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
707
+ );
708
+ return emptyFunctionThatReturnsNull;
709
+ }
710
+ }
711
+ function validate(props, propName, componentName, location, propFullName) {
712
+ var expectedTypes = [];
713
+ for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
714
+ var checker2 = arrayOfTypeCheckers[i2];
715
+ var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
716
+ if (checkerResult == null) {
717
+ return null;
718
+ }
719
+ if (checkerResult.data && has(checkerResult.data, "expectedType")) {
720
+ expectedTypes.push(checkerResult.data.expectedType);
721
+ }
722
+ }
723
+ var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
724
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
725
+ }
726
+ return createChainableTypeChecker(validate);
727
+ }
728
+ function createNodeChecker() {
729
+ function validate(props, propName, componentName, location, propFullName) {
730
+ if (!isNode(props[propName])) {
731
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
732
+ }
733
+ return null;
734
+ }
735
+ return createChainableTypeChecker(validate);
736
+ }
737
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
738
+ return new PropTypeError(
739
+ (componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`."
740
+ );
741
+ }
742
+ function createShapeTypeChecker(shapeTypes) {
743
+ function validate(props, propName, componentName, location, propFullName) {
744
+ var propValue = props[propName];
745
+ var propType = getPropType(propValue);
746
+ if (propType !== "object") {
747
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
748
+ }
749
+ for (var key in shapeTypes) {
750
+ var checker = shapeTypes[key];
751
+ if (typeof checker !== "function") {
752
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
753
+ }
754
+ var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
755
+ if (error) {
756
+ return error;
757
+ }
758
+ }
759
+ return null;
760
+ }
761
+ return createChainableTypeChecker(validate);
762
+ }
763
+ function createStrictShapeTypeChecker(shapeTypes) {
764
+ function validate(props, propName, componentName, location, propFullName) {
765
+ var propValue = props[propName];
766
+ var propType = getPropType(propValue);
767
+ if (propType !== "object") {
768
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
769
+ }
770
+ var allKeys = assign({}, props[propName], shapeTypes);
771
+ for (var key in allKeys) {
772
+ var checker = shapeTypes[key];
773
+ if (has(shapeTypes, key) && typeof checker !== "function") {
774
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
775
+ }
776
+ if (!checker) {
777
+ return new PropTypeError(
778
+ "Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")
779
+ );
780
+ }
781
+ var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
782
+ if (error) {
783
+ return error;
784
+ }
785
+ }
786
+ return null;
787
+ }
788
+ return createChainableTypeChecker(validate);
789
+ }
790
+ function isNode(propValue) {
791
+ switch (typeof propValue) {
792
+ case "number":
793
+ case "string":
794
+ case "undefined":
795
+ return true;
796
+ case "boolean":
797
+ return !propValue;
798
+ case "object":
799
+ if (Array.isArray(propValue)) {
800
+ return propValue.every(isNode);
801
+ }
802
+ if (propValue === null || isValidElement(propValue)) {
803
+ return true;
804
+ }
805
+ var iteratorFn = getIteratorFn(propValue);
806
+ if (iteratorFn) {
807
+ var iterator = iteratorFn.call(propValue);
808
+ var step;
809
+ if (iteratorFn !== propValue.entries) {
810
+ while (!(step = iterator.next()).done) {
811
+ if (!isNode(step.value)) {
812
+ return false;
813
+ }
814
+ }
815
+ } else {
816
+ while (!(step = iterator.next()).done) {
817
+ var entry = step.value;
818
+ if (entry) {
819
+ if (!isNode(entry[1])) {
820
+ return false;
821
+ }
822
+ }
823
+ }
824
+ }
825
+ } else {
826
+ return false;
827
+ }
828
+ return true;
829
+ default:
830
+ return false;
831
+ }
832
+ }
833
+ function isSymbol(propType, propValue) {
834
+ if (propType === "symbol") {
835
+ return true;
836
+ }
837
+ if (!propValue) {
838
+ return false;
839
+ }
840
+ if (propValue["@@toStringTag"] === "Symbol") {
841
+ return true;
842
+ }
843
+ if (typeof Symbol === "function" && propValue instanceof Symbol) {
844
+ return true;
845
+ }
846
+ return false;
847
+ }
848
+ function getPropType(propValue) {
849
+ var propType = typeof propValue;
850
+ if (Array.isArray(propValue)) {
851
+ return "array";
852
+ }
853
+ if (propValue instanceof RegExp) {
854
+ return "object";
855
+ }
856
+ if (isSymbol(propType, propValue)) {
857
+ return "symbol";
858
+ }
859
+ return propType;
860
+ }
861
+ function getPreciseType(propValue) {
862
+ if (typeof propValue === "undefined" || propValue === null) {
863
+ return "" + propValue;
864
+ }
865
+ var propType = getPropType(propValue);
866
+ if (propType === "object") {
867
+ if (propValue instanceof Date) {
868
+ return "date";
869
+ } else if (propValue instanceof RegExp) {
870
+ return "regexp";
871
+ }
872
+ }
873
+ return propType;
874
+ }
875
+ function getPostfixForTypeWarning(value) {
876
+ var type = getPreciseType(value);
877
+ switch (type) {
878
+ case "array":
879
+ case "object":
880
+ return "an " + type;
881
+ case "boolean":
882
+ case "date":
883
+ case "regexp":
884
+ return "a " + type;
885
+ default:
886
+ return type;
887
+ }
888
+ }
889
+ function getClassName(propValue) {
890
+ if (!propValue.constructor || !propValue.constructor.name) {
891
+ return ANONYMOUS;
892
+ }
893
+ return propValue.constructor.name;
894
+ }
895
+ ReactPropTypes.checkPropTypes = checkPropTypes;
896
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
897
+ ReactPropTypes.PropTypes = ReactPropTypes;
898
+ return ReactPropTypes;
899
+ };
900
+ }
901
+ });
902
+
903
+ // node_modules/prop-types/factoryWithThrowingShims.js
904
+ var require_factoryWithThrowingShims = __commonJS({
905
+ "node_modules/prop-types/factoryWithThrowingShims.js"(exports, module) {
906
+ "use strict";
907
+ var ReactPropTypesSecret = require_ReactPropTypesSecret();
908
+ function emptyFunction() {
909
+ }
910
+ function emptyFunctionWithReset() {
911
+ }
912
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
913
+ module.exports = function() {
914
+ function shim(props, propName, componentName, location, propFullName, secret) {
915
+ if (secret === ReactPropTypesSecret) {
916
+ return;
917
+ }
918
+ var err = new Error(
919
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
920
+ );
921
+ err.name = "Invariant Violation";
922
+ throw err;
923
+ }
924
+ ;
925
+ shim.isRequired = shim;
926
+ function getShim() {
927
+ return shim;
928
+ }
929
+ ;
930
+ var ReactPropTypes = {
931
+ array: shim,
932
+ bigint: shim,
933
+ bool: shim,
934
+ func: shim,
935
+ number: shim,
936
+ object: shim,
937
+ string: shim,
938
+ symbol: shim,
939
+ any: shim,
940
+ arrayOf: getShim,
941
+ element: shim,
942
+ elementType: shim,
943
+ instanceOf: getShim,
944
+ node: shim,
945
+ objectOf: getShim,
946
+ oneOf: getShim,
947
+ oneOfType: getShim,
948
+ shape: getShim,
949
+ exact: getShim,
950
+ checkPropTypes: emptyFunctionWithReset,
951
+ resetWarningCache: emptyFunction
952
+ };
953
+ ReactPropTypes.PropTypes = ReactPropTypes;
954
+ return ReactPropTypes;
955
+ };
956
+ }
957
+ });
958
+
959
+ // node_modules/prop-types/index.js
960
+ var require_prop_types = __commonJS({
961
+ "node_modules/prop-types/index.js"(exports, module) {
962
+ "use strict";
963
+ if (process.env.NODE_ENV !== "production") {
964
+ ReactIs = require_react_is();
965
+ throwOnDirectAccess = true;
966
+ module.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
967
+ } else {
968
+ module.exports = require_factoryWithThrowingShims()();
969
+ }
970
+ var ReactIs;
971
+ var throwOnDirectAccess;
972
+ }
973
+ });
974
+
975
+ // node_modules/react-is/cjs/react-is.production.min.js
976
+ var require_react_is_production_min2 = __commonJS({
977
+ "node_modules/react-is/cjs/react-is.production.min.js"(exports) {
978
+ "use strict";
979
+ var b = Symbol.for("react.element");
980
+ var c = Symbol.for("react.portal");
981
+ var d = Symbol.for("react.fragment");
982
+ var e = Symbol.for("react.strict_mode");
983
+ var f = Symbol.for("react.profiler");
984
+ var g = Symbol.for("react.provider");
985
+ var h = Symbol.for("react.context");
986
+ var k = Symbol.for("react.server_context");
987
+ var l = Symbol.for("react.forward_ref");
988
+ var m = Symbol.for("react.suspense");
989
+ var n = Symbol.for("react.suspense_list");
990
+ var p = Symbol.for("react.memo");
991
+ var q = Symbol.for("react.lazy");
992
+ var t = Symbol.for("react.offscreen");
993
+ var u;
994
+ u = Symbol.for("react.module.reference");
995
+ function v(a) {
996
+ if ("object" === typeof a && null !== a) {
997
+ var r = a.$$typeof;
998
+ switch (r) {
999
+ case b:
1000
+ switch (a = a.type, a) {
1001
+ case d:
1002
+ case f:
1003
+ case e:
1004
+ case m:
1005
+ case n:
1006
+ return a;
1007
+ default:
1008
+ switch (a = a && a.$$typeof, a) {
1009
+ case k:
1010
+ case h:
1011
+ case l:
1012
+ case q:
1013
+ case p:
1014
+ case g:
1015
+ return a;
1016
+ default:
1017
+ return r;
1018
+ }
1019
+ }
1020
+ case c:
1021
+ return r;
1022
+ }
1023
+ }
1024
+ }
1025
+ exports.ContextConsumer = h;
1026
+ exports.ContextProvider = g;
1027
+ exports.Element = b;
1028
+ exports.ForwardRef = l;
1029
+ exports.Fragment = d;
1030
+ exports.Lazy = q;
1031
+ exports.Memo = p;
1032
+ exports.Portal = c;
1033
+ exports.Profiler = f;
1034
+ exports.StrictMode = e;
1035
+ exports.Suspense = m;
1036
+ exports.SuspenseList = n;
1037
+ exports.isAsyncMode = function() {
1038
+ return false;
1039
+ };
1040
+ exports.isConcurrentMode = function() {
1041
+ return false;
1042
+ };
1043
+ exports.isContextConsumer = function(a) {
1044
+ return v(a) === h;
1045
+ };
1046
+ exports.isContextProvider = function(a) {
1047
+ return v(a) === g;
1048
+ };
1049
+ exports.isElement = function(a) {
1050
+ return "object" === typeof a && null !== a && a.$$typeof === b;
1051
+ };
1052
+ exports.isForwardRef = function(a) {
1053
+ return v(a) === l;
1054
+ };
1055
+ exports.isFragment = function(a) {
1056
+ return v(a) === d;
1057
+ };
1058
+ exports.isLazy = function(a) {
1059
+ return v(a) === q;
1060
+ };
1061
+ exports.isMemo = function(a) {
1062
+ return v(a) === p;
1063
+ };
1064
+ exports.isPortal = function(a) {
1065
+ return v(a) === c;
1066
+ };
1067
+ exports.isProfiler = function(a) {
1068
+ return v(a) === f;
1069
+ };
1070
+ exports.isStrictMode = function(a) {
1071
+ return v(a) === e;
1072
+ };
1073
+ exports.isSuspense = function(a) {
1074
+ return v(a) === m;
1075
+ };
1076
+ exports.isSuspenseList = function(a) {
1077
+ return v(a) === n;
1078
+ };
1079
+ exports.isValidElementType = function(a) {
1080
+ return "string" === typeof a || "function" === typeof a || a === d || a === f || a === e || a === m || a === n || a === t || "object" === typeof a && null !== a && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u || void 0 !== a.getModuleId) ? true : false;
1081
+ };
1082
+ exports.typeOf = v;
1083
+ }
1084
+ });
1085
+
1086
+ // node_modules/react-is/cjs/react-is.development.js
1087
+ var require_react_is_development2 = __commonJS({
1088
+ "node_modules/react-is/cjs/react-is.development.js"(exports) {
1089
+ "use strict";
1090
+ if (process.env.NODE_ENV !== "production") {
1091
+ (function() {
1092
+ "use strict";
1093
+ var REACT_ELEMENT_TYPE = Symbol.for("react.element");
1094
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
1095
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
1096
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
1097
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
1098
+ var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
1099
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
1100
+ var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
1101
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
1102
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
1103
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
1104
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
1105
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
1106
+ var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
1107
+ var enableScopeAPI = false;
1108
+ var enableCacheElement = false;
1109
+ var enableTransitionTracing = false;
1110
+ var enableLegacyHidden = false;
1111
+ var enableDebugTracing = false;
1112
+ var REACT_MODULE_REFERENCE;
1113
+ {
1114
+ REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
1115
+ }
1116
+ function isValidElementType(type) {
1117
+ if (typeof type === "string" || typeof type === "function") {
1118
+ return true;
1119
+ }
1120
+ 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) {
1121
+ return true;
1122
+ }
1123
+ if (typeof type === "object" && type !== null) {
1124
+ 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
1125
+ // types supported by any Flight configuration anywhere since
1126
+ // we don't know which Flight build this will end up being used
1127
+ // with.
1128
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
1129
+ return true;
1130
+ }
1131
+ }
1132
+ return false;
1133
+ }
1134
+ function typeOf(object) {
1135
+ if (typeof object === "object" && object !== null) {
1136
+ var $$typeof = object.$$typeof;
1137
+ switch ($$typeof) {
1138
+ case REACT_ELEMENT_TYPE:
1139
+ var type = object.type;
1140
+ switch (type) {
1141
+ case REACT_FRAGMENT_TYPE:
1142
+ case REACT_PROFILER_TYPE:
1143
+ case REACT_STRICT_MODE_TYPE:
1144
+ case REACT_SUSPENSE_TYPE:
1145
+ case REACT_SUSPENSE_LIST_TYPE:
1146
+ return type;
1147
+ default:
1148
+ var $$typeofType = type && type.$$typeof;
1149
+ switch ($$typeofType) {
1150
+ case REACT_SERVER_CONTEXT_TYPE:
1151
+ case REACT_CONTEXT_TYPE:
1152
+ case REACT_FORWARD_REF_TYPE:
1153
+ case REACT_LAZY_TYPE:
1154
+ case REACT_MEMO_TYPE:
1155
+ case REACT_PROVIDER_TYPE:
1156
+ return $$typeofType;
1157
+ default:
1158
+ return $$typeof;
1159
+ }
1160
+ }
1161
+ case REACT_PORTAL_TYPE:
1162
+ return $$typeof;
1163
+ }
1164
+ }
1165
+ return void 0;
1166
+ }
1167
+ var ContextConsumer = REACT_CONTEXT_TYPE;
1168
+ var ContextProvider = REACT_PROVIDER_TYPE;
1169
+ var Element = REACT_ELEMENT_TYPE;
1170
+ var ForwardRef2 = REACT_FORWARD_REF_TYPE;
1171
+ var Fragment = REACT_FRAGMENT_TYPE;
1172
+ var Lazy = REACT_LAZY_TYPE;
1173
+ var Memo2 = REACT_MEMO_TYPE;
1174
+ var Portal = REACT_PORTAL_TYPE;
1175
+ var Profiler = REACT_PROFILER_TYPE;
1176
+ var StrictMode = REACT_STRICT_MODE_TYPE;
1177
+ var Suspense = REACT_SUSPENSE_TYPE;
1178
+ var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
1179
+ var hasWarnedAboutDeprecatedIsAsyncMode = false;
1180
+ var hasWarnedAboutDeprecatedIsConcurrentMode = false;
1181
+ function isAsyncMode(object) {
1182
+ {
1183
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1184
+ hasWarnedAboutDeprecatedIsAsyncMode = true;
1185
+ console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.");
1186
+ }
1187
+ }
1188
+ return false;
1189
+ }
1190
+ function isConcurrentMode(object) {
1191
+ {
1192
+ if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
1193
+ hasWarnedAboutDeprecatedIsConcurrentMode = true;
1194
+ console["warn"]("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.");
1195
+ }
1196
+ }
1197
+ return false;
1198
+ }
1199
+ function isContextConsumer(object) {
1200
+ return typeOf(object) === REACT_CONTEXT_TYPE;
1201
+ }
1202
+ function isContextProvider(object) {
1203
+ return typeOf(object) === REACT_PROVIDER_TYPE;
1204
+ }
1205
+ function isElement(object) {
1206
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1207
+ }
1208
+ function isForwardRef(object) {
1209
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
1210
+ }
1211
+ function isFragment(object) {
1212
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
1213
+ }
1214
+ function isLazy(object) {
1215
+ return typeOf(object) === REACT_LAZY_TYPE;
1216
+ }
1217
+ function isMemo(object) {
1218
+ return typeOf(object) === REACT_MEMO_TYPE;
1219
+ }
1220
+ function isPortal(object) {
1221
+ return typeOf(object) === REACT_PORTAL_TYPE;
1222
+ }
1223
+ function isProfiler(object) {
1224
+ return typeOf(object) === REACT_PROFILER_TYPE;
1225
+ }
1226
+ function isStrictMode(object) {
1227
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
1228
+ }
1229
+ function isSuspense(object) {
1230
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
1231
+ }
1232
+ function isSuspenseList(object) {
1233
+ return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
1234
+ }
1235
+ exports.ContextConsumer = ContextConsumer;
1236
+ exports.ContextProvider = ContextProvider;
1237
+ exports.Element = Element;
1238
+ exports.ForwardRef = ForwardRef2;
1239
+ exports.Fragment = Fragment;
1240
+ exports.Lazy = Lazy;
1241
+ exports.Memo = Memo2;
1242
+ exports.Portal = Portal;
1243
+ exports.Profiler = Profiler;
1244
+ exports.StrictMode = StrictMode;
1245
+ exports.Suspense = Suspense;
1246
+ exports.SuspenseList = SuspenseList;
1247
+ exports.isAsyncMode = isAsyncMode;
1248
+ exports.isConcurrentMode = isConcurrentMode;
1249
+ exports.isContextConsumer = isContextConsumer;
1250
+ exports.isContextProvider = isContextProvider;
1251
+ exports.isElement = isElement;
1252
+ exports.isForwardRef = isForwardRef;
1253
+ exports.isFragment = isFragment;
1254
+ exports.isLazy = isLazy;
1255
+ exports.isMemo = isMemo;
1256
+ exports.isPortal = isPortal;
1257
+ exports.isProfiler = isProfiler;
1258
+ exports.isStrictMode = isStrictMode;
1259
+ exports.isSuspense = isSuspense;
1260
+ exports.isSuspenseList = isSuspenseList;
1261
+ exports.isValidElementType = isValidElementType;
1262
+ exports.typeOf = typeOf;
1263
+ })();
1264
+ }
1265
+ }
1266
+ });
1267
+
1268
+ // node_modules/react-is/index.js
1269
+ var require_react_is2 = __commonJS({
1270
+ "node_modules/react-is/index.js"(exports, module) {
1271
+ "use strict";
1272
+ if (process.env.NODE_ENV === "production") {
1273
+ module.exports = require_react_is_production_min2();
1274
+ } else {
1275
+ module.exports = require_react_is_development2();
1276
+ }
1277
+ }
1278
+ });
1279
+
1
1280
  // src/functions/math.ts
2
1281
  function add(a, b) {
3
1282
  return a + b;
@@ -8,13 +1287,1691 @@ function concat(a, b) {
8
1287
  return a + b;
9
1288
  }
10
1289
 
11
- // src/index.ts
12
- function helloworld() {
13
- console.log("Hello World");
1290
+ // src/components/buttons/WavelengthButton/WavelengthButton.tsx
1291
+ import { Button } from "@mui/material";
1292
+
1293
+ // node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js
1294
+ function formatMuiErrorMessage(code) {
1295
+ let url = "https://mui.com/production-error/?code=" + code;
1296
+ for (let i = 1; i < arguments.length; i += 1) {
1297
+ url += "&args[]=" + encodeURIComponent(arguments[i]);
1298
+ }
1299
+ return "Minified MUI error #" + code + "; visit " + url + " for the full message.";
1300
+ }
1301
+
1302
+ // node_modules/@mui/styled-engine/index.js
1303
+ import emStyled from "@emotion/styled";
1304
+ import { ThemeContext, keyframes, css } from "@emotion/react";
1305
+ function styled(tag, options) {
1306
+ const stylesFactory = emStyled(tag, options);
1307
+ if (process.env.NODE_ENV !== "production") {
1308
+ return (...styles) => {
1309
+ const component = typeof tag === "string" ? `"${tag}"` : "component";
1310
+ if (styles.length === 0) {
1311
+ console.error([`MUI: Seems like you called \`styled(${component})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n"));
1312
+ } else if (styles.some((style3) => style3 === void 0)) {
1313
+ console.error(`MUI: the styled(${component})(...args) API requires all its args to be defined.`);
1314
+ }
1315
+ return stylesFactory(...styles);
1316
+ };
1317
+ }
1318
+ return stylesFactory;
1319
+ }
1320
+ var internal_processStyles = (tag, processor) => {
1321
+ if (Array.isArray(tag.__emotion_styles)) {
1322
+ tag.__emotion_styles = processor(tag.__emotion_styles);
1323
+ }
1324
+ };
1325
+
1326
+ // node_modules/@babel/runtime/helpers/esm/extends.js
1327
+ function _extends() {
1328
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
1329
+ for (var i = 1; i < arguments.length; i++) {
1330
+ var source = arguments[i];
1331
+ for (var key in source) {
1332
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
1333
+ target[key] = source[key];
1334
+ }
1335
+ }
1336
+ }
1337
+ return target;
1338
+ };
1339
+ return _extends.apply(this, arguments);
1340
+ }
1341
+
1342
+ // node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
1343
+ function _objectWithoutPropertiesLoose(source, excluded) {
1344
+ if (source == null)
1345
+ return {};
1346
+ var target = {};
1347
+ for (var key in source) {
1348
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
1349
+ if (excluded.indexOf(key) >= 0)
1350
+ continue;
1351
+ target[key] = source[key];
1352
+ }
1353
+ }
1354
+ return target;
1355
+ }
1356
+
1357
+ // node_modules/@mui/utils/esm/deepmerge/deepmerge.js
1358
+ function isPlainObject(item) {
1359
+ if (typeof item !== "object" || item === null) {
1360
+ return false;
1361
+ }
1362
+ const prototype = Object.getPrototypeOf(item);
1363
+ return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);
1364
+ }
1365
+ function deepClone(source) {
1366
+ if (!isPlainObject(source)) {
1367
+ return source;
1368
+ }
1369
+ const output = {};
1370
+ Object.keys(source).forEach((key) => {
1371
+ output[key] = deepClone(source[key]);
1372
+ });
1373
+ return output;
1374
+ }
1375
+ function deepmerge(target, source, options = {
1376
+ clone: true
1377
+ }) {
1378
+ const output = options.clone ? _extends({}, target) : target;
1379
+ if (isPlainObject(target) && isPlainObject(source)) {
1380
+ Object.keys(source).forEach((key) => {
1381
+ if (key === "__proto__") {
1382
+ return;
1383
+ }
1384
+ if (isPlainObject(source[key]) && key in target && isPlainObject(target[key])) {
1385
+ output[key] = deepmerge(target[key], source[key], options);
1386
+ } else if (options.clone) {
1387
+ output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];
1388
+ } else {
1389
+ output[key] = source[key];
1390
+ }
1391
+ });
1392
+ }
1393
+ return output;
1394
+ }
1395
+
1396
+ // node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js
1397
+ var import_react_is = __toESM(require_react_is2());
1398
+ var fnNameMatchRegex = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
1399
+ function getFunctionName(fn) {
1400
+ const match = `${fn}`.match(fnNameMatchRegex);
1401
+ const name = match && match[1];
1402
+ return name || "";
1403
+ }
1404
+ function getFunctionComponentName(Component, fallback = "") {
1405
+ return Component.displayName || Component.name || getFunctionName(Component) || fallback;
1406
+ }
1407
+ function getWrappedName(outerType, innerType, wrapperName) {
1408
+ const functionName = getFunctionComponentName(innerType);
1409
+ return outerType.displayName || (functionName !== "" ? `${wrapperName}(${functionName})` : wrapperName);
1410
+ }
1411
+ function getDisplayName(Component) {
1412
+ if (Component == null) {
1413
+ return void 0;
1414
+ }
1415
+ if (typeof Component === "string") {
1416
+ return Component;
1417
+ }
1418
+ if (typeof Component === "function") {
1419
+ return getFunctionComponentName(Component, "Component");
1420
+ }
1421
+ if (typeof Component === "object") {
1422
+ switch (Component.$$typeof) {
1423
+ case import_react_is.ForwardRef:
1424
+ return getWrappedName(Component, Component.render, "ForwardRef");
1425
+ case import_react_is.Memo:
1426
+ return getWrappedName(Component, Component.type, "memo");
1427
+ default:
1428
+ return void 0;
1429
+ }
1430
+ }
1431
+ return void 0;
1432
+ }
1433
+
1434
+ // node_modules/@mui/utils/esm/capitalize/capitalize.js
1435
+ function capitalize(string) {
1436
+ if (typeof string !== "string") {
1437
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`capitalize(string)\` expects a string argument.` : formatMuiErrorMessage(7));
1438
+ }
1439
+ return string.charAt(0).toUpperCase() + string.slice(1);
1440
+ }
1441
+
1442
+ // node_modules/@mui/system/esm/createTheme/createBreakpoints.js
1443
+ var _excluded = ["values", "unit", "step"];
1444
+ var sortBreakpointsValues = (values2) => {
1445
+ const breakpointsAsArray = Object.keys(values2).map((key) => ({
1446
+ key,
1447
+ val: values2[key]
1448
+ })) || [];
1449
+ breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val);
1450
+ return breakpointsAsArray.reduce((acc, obj) => {
1451
+ return _extends({}, acc, {
1452
+ [obj.key]: obj.val
1453
+ });
1454
+ }, {});
1455
+ };
1456
+ function createBreakpoints(breakpoints) {
1457
+ const {
1458
+ // The breakpoint **start** at this value.
1459
+ // For instance with the first breakpoint xs: [xs, sm).
1460
+ values: values2 = {
1461
+ xs: 0,
1462
+ // phone
1463
+ sm: 600,
1464
+ // tablet
1465
+ md: 900,
1466
+ // small laptop
1467
+ lg: 1200,
1468
+ // desktop
1469
+ xl: 1536
1470
+ // large screen
1471
+ },
1472
+ unit = "px",
1473
+ step = 5
1474
+ } = breakpoints, other = _objectWithoutPropertiesLoose(breakpoints, _excluded);
1475
+ const sortedValues = sortBreakpointsValues(values2);
1476
+ const keys = Object.keys(sortedValues);
1477
+ function up(key) {
1478
+ const value = typeof values2[key] === "number" ? values2[key] : key;
1479
+ return `@media (min-width:${value}${unit})`;
1480
+ }
1481
+ function down(key) {
1482
+ const value = typeof values2[key] === "number" ? values2[key] : key;
1483
+ return `@media (max-width:${value - step / 100}${unit})`;
1484
+ }
1485
+ function between(start, end) {
1486
+ const endIndex = keys.indexOf(end);
1487
+ return `@media (min-width:${typeof values2[start] === "number" ? values2[start] : start}${unit}) and (max-width:${(endIndex !== -1 && typeof values2[keys[endIndex]] === "number" ? values2[keys[endIndex]] : end) - step / 100}${unit})`;
1488
+ }
1489
+ function only(key) {
1490
+ if (keys.indexOf(key) + 1 < keys.length) {
1491
+ return between(key, keys[keys.indexOf(key) + 1]);
1492
+ }
1493
+ return up(key);
1494
+ }
1495
+ function not(key) {
1496
+ const keyIndex = keys.indexOf(key);
1497
+ if (keyIndex === 0) {
1498
+ return up(keys[1]);
1499
+ }
1500
+ if (keyIndex === keys.length - 1) {
1501
+ return down(keys[keyIndex]);
1502
+ }
1503
+ return between(key, keys[keys.indexOf(key) + 1]).replace("@media", "@media not all and");
1504
+ }
1505
+ return _extends({
1506
+ keys,
1507
+ values: sortedValues,
1508
+ up,
1509
+ down,
1510
+ between,
1511
+ only,
1512
+ not,
1513
+ unit
1514
+ }, other);
1515
+ }
1516
+
1517
+ // node_modules/@mui/system/esm/createTheme/shape.js
1518
+ var shape = {
1519
+ borderRadius: 4
1520
+ };
1521
+ var shape_default = shape;
1522
+
1523
+ // node_modules/@mui/system/esm/responsivePropType.js
1524
+ var import_prop_types = __toESM(require_prop_types());
1525
+ var responsivePropType = process.env.NODE_ENV !== "production" ? import_prop_types.default.oneOfType([import_prop_types.default.number, import_prop_types.default.string, import_prop_types.default.object, import_prop_types.default.array]) : {};
1526
+ var responsivePropType_default = responsivePropType;
1527
+
1528
+ // node_modules/@mui/system/esm/merge.js
1529
+ function merge(acc, item) {
1530
+ if (!item) {
1531
+ return acc;
1532
+ }
1533
+ return deepmerge(acc, item, {
1534
+ clone: false
1535
+ // No need to clone deep, it's way faster.
1536
+ });
1537
+ }
1538
+ var merge_default = merge;
1539
+
1540
+ // node_modules/@mui/system/esm/breakpoints.js
1541
+ var values = {
1542
+ xs: 0,
1543
+ // phone
1544
+ sm: 600,
1545
+ // tablet
1546
+ md: 900,
1547
+ // small laptop
1548
+ lg: 1200,
1549
+ // desktop
1550
+ xl: 1536
1551
+ // large screen
1552
+ };
1553
+ var defaultBreakpoints = {
1554
+ // Sorted ASC by size. That's important.
1555
+ // It can't be configured as it's used statically for propTypes.
1556
+ keys: ["xs", "sm", "md", "lg", "xl"],
1557
+ up: (key) => `@media (min-width:${values[key]}px)`
1558
+ };
1559
+ function handleBreakpoints(props, propValue, styleFromPropValue) {
1560
+ const theme = props.theme || {};
1561
+ if (Array.isArray(propValue)) {
1562
+ const themeBreakpoints = theme.breakpoints || defaultBreakpoints;
1563
+ return propValue.reduce((acc, item, index) => {
1564
+ acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);
1565
+ return acc;
1566
+ }, {});
1567
+ }
1568
+ if (typeof propValue === "object") {
1569
+ const themeBreakpoints = theme.breakpoints || defaultBreakpoints;
1570
+ return Object.keys(propValue).reduce((acc, breakpoint) => {
1571
+ if (Object.keys(themeBreakpoints.values || values).indexOf(breakpoint) !== -1) {
1572
+ const mediaKey = themeBreakpoints.up(breakpoint);
1573
+ acc[mediaKey] = styleFromPropValue(propValue[breakpoint], breakpoint);
1574
+ } else {
1575
+ const cssKey = breakpoint;
1576
+ acc[cssKey] = propValue[cssKey];
1577
+ }
1578
+ return acc;
1579
+ }, {});
1580
+ }
1581
+ const output = styleFromPropValue(propValue);
1582
+ return output;
1583
+ }
1584
+ function createEmptyBreakpointObject(breakpointsInput = {}) {
1585
+ var _breakpointsInput$key;
1586
+ const breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ? void 0 : _breakpointsInput$key.reduce((acc, key) => {
1587
+ const breakpointStyleKey = breakpointsInput.up(key);
1588
+ acc[breakpointStyleKey] = {};
1589
+ return acc;
1590
+ }, {});
1591
+ return breakpointsInOrder || {};
1592
+ }
1593
+ function removeUnusedBreakpoints(breakpointKeys, style3) {
1594
+ return breakpointKeys.reduce((acc, key) => {
1595
+ const breakpointOutput = acc[key];
1596
+ const isBreakpointUnused = !breakpointOutput || Object.keys(breakpointOutput).length === 0;
1597
+ if (isBreakpointUnused) {
1598
+ delete acc[key];
1599
+ }
1600
+ return acc;
1601
+ }, style3);
1602
+ }
1603
+
1604
+ // node_modules/@mui/system/esm/style.js
1605
+ function getPath(obj, path, checkVars = true) {
1606
+ if (!path || typeof path !== "string") {
1607
+ return null;
1608
+ }
1609
+ if (obj && obj.vars && checkVars) {
1610
+ const val = `vars.${path}`.split(".").reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);
1611
+ if (val != null) {
1612
+ return val;
1613
+ }
1614
+ }
1615
+ return path.split(".").reduce((acc, item) => {
1616
+ if (acc && acc[item] != null) {
1617
+ return acc[item];
1618
+ }
1619
+ return null;
1620
+ }, obj);
1621
+ }
1622
+ function getStyleValue(themeMapping, transform, propValueFinal, userValue = propValueFinal) {
1623
+ let value;
1624
+ if (typeof themeMapping === "function") {
1625
+ value = themeMapping(propValueFinal);
1626
+ } else if (Array.isArray(themeMapping)) {
1627
+ value = themeMapping[propValueFinal] || userValue;
1628
+ } else {
1629
+ value = getPath(themeMapping, propValueFinal) || userValue;
1630
+ }
1631
+ if (transform) {
1632
+ value = transform(value, userValue, themeMapping);
1633
+ }
1634
+ return value;
1635
+ }
1636
+ function style(options) {
1637
+ const {
1638
+ prop,
1639
+ cssProperty = options.prop,
1640
+ themeKey,
1641
+ transform
1642
+ } = options;
1643
+ const fn = (props) => {
1644
+ if (props[prop] == null) {
1645
+ return null;
1646
+ }
1647
+ const propValue = props[prop];
1648
+ const theme = props.theme;
1649
+ const themeMapping = getPath(theme, themeKey) || {};
1650
+ const styleFromPropValue = (propValueFinal) => {
1651
+ let value = getStyleValue(themeMapping, transform, propValueFinal);
1652
+ if (propValueFinal === value && typeof propValueFinal === "string") {
1653
+ value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === "default" ? "" : capitalize(propValueFinal)}`, propValueFinal);
1654
+ }
1655
+ if (cssProperty === false) {
1656
+ return value;
1657
+ }
1658
+ return {
1659
+ [cssProperty]: value
1660
+ };
1661
+ };
1662
+ return handleBreakpoints(props, propValue, styleFromPropValue);
1663
+ };
1664
+ fn.propTypes = process.env.NODE_ENV !== "production" ? {
1665
+ [prop]: responsivePropType_default
1666
+ } : {};
1667
+ fn.filterProps = [prop];
1668
+ return fn;
1669
+ }
1670
+ var style_default = style;
1671
+
1672
+ // node_modules/@mui/system/esm/memoize.js
1673
+ function memoize(fn) {
1674
+ const cache = {};
1675
+ return (arg) => {
1676
+ if (cache[arg] === void 0) {
1677
+ cache[arg] = fn(arg);
1678
+ }
1679
+ return cache[arg];
1680
+ };
1681
+ }
1682
+
1683
+ // node_modules/@mui/system/esm/spacing.js
1684
+ var properties = {
1685
+ m: "margin",
1686
+ p: "padding"
1687
+ };
1688
+ var directions = {
1689
+ t: "Top",
1690
+ r: "Right",
1691
+ b: "Bottom",
1692
+ l: "Left",
1693
+ x: ["Left", "Right"],
1694
+ y: ["Top", "Bottom"]
1695
+ };
1696
+ var aliases = {
1697
+ marginX: "mx",
1698
+ marginY: "my",
1699
+ paddingX: "px",
1700
+ paddingY: "py"
1701
+ };
1702
+ var getCssProperties = memoize((prop) => {
1703
+ if (prop.length > 2) {
1704
+ if (aliases[prop]) {
1705
+ prop = aliases[prop];
1706
+ } else {
1707
+ return [prop];
1708
+ }
1709
+ }
1710
+ const [a, b] = prop.split("");
1711
+ const property = properties[a];
1712
+ const direction = directions[b] || "";
1713
+ return Array.isArray(direction) ? direction.map((dir) => property + dir) : [property + direction];
1714
+ });
1715
+ var marginKeys = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"];
1716
+ var paddingKeys = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"];
1717
+ var spacingKeys = [...marginKeys, ...paddingKeys];
1718
+ function createUnaryUnit(theme, themeKey, defaultValue, propName) {
1719
+ var _getPath;
1720
+ const themeSpacing = (_getPath = getPath(theme, themeKey, false)) != null ? _getPath : defaultValue;
1721
+ if (typeof themeSpacing === "number") {
1722
+ return (abs) => {
1723
+ if (typeof abs === "string") {
1724
+ return abs;
1725
+ }
1726
+ if (process.env.NODE_ENV !== "production") {
1727
+ if (typeof abs !== "number") {
1728
+ console.error(`MUI: Expected ${propName} argument to be a number or a string, got ${abs}.`);
1729
+ }
1730
+ }
1731
+ return themeSpacing * abs;
1732
+ };
1733
+ }
1734
+ if (Array.isArray(themeSpacing)) {
1735
+ return (abs) => {
1736
+ if (typeof abs === "string") {
1737
+ return abs;
1738
+ }
1739
+ if (process.env.NODE_ENV !== "production") {
1740
+ if (!Number.isInteger(abs)) {
1741
+ console.error([`MUI: The \`theme.${themeKey}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${themeKey}\` as a number.`].join("\n"));
1742
+ } else if (abs > themeSpacing.length - 1) {
1743
+ console.error([`MUI: The value provided (${abs}) overflows.`, `The supported values are: ${JSON.stringify(themeSpacing)}.`, `${abs} > ${themeSpacing.length - 1}, you need to add the missing values.`].join("\n"));
1744
+ }
1745
+ }
1746
+ return themeSpacing[abs];
1747
+ };
1748
+ }
1749
+ if (typeof themeSpacing === "function") {
1750
+ return themeSpacing;
1751
+ }
1752
+ if (process.env.NODE_ENV !== "production") {
1753
+ console.error([`MUI: The \`theme.${themeKey}\` value (${themeSpacing}) is invalid.`, "It should be a number, an array or a function."].join("\n"));
1754
+ }
1755
+ return () => void 0;
1756
+ }
1757
+ function createUnarySpacing(theme) {
1758
+ return createUnaryUnit(theme, "spacing", 8, "spacing");
1759
+ }
1760
+ function getValue(transformer, propValue) {
1761
+ if (typeof propValue === "string" || propValue == null) {
1762
+ return propValue;
1763
+ }
1764
+ const abs = Math.abs(propValue);
1765
+ const transformed = transformer(abs);
1766
+ if (propValue >= 0) {
1767
+ return transformed;
1768
+ }
1769
+ if (typeof transformed === "number") {
1770
+ return -transformed;
1771
+ }
1772
+ return `-${transformed}`;
1773
+ }
1774
+ function getStyleFromPropValue(cssProperties, transformer) {
1775
+ return (propValue) => cssProperties.reduce((acc, cssProperty) => {
1776
+ acc[cssProperty] = getValue(transformer, propValue);
1777
+ return acc;
1778
+ }, {});
1779
+ }
1780
+ function resolveCssProperty(props, keys, prop, transformer) {
1781
+ if (keys.indexOf(prop) === -1) {
1782
+ return null;
1783
+ }
1784
+ const cssProperties = getCssProperties(prop);
1785
+ const styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);
1786
+ const propValue = props[prop];
1787
+ return handleBreakpoints(props, propValue, styleFromPropValue);
1788
+ }
1789
+ function style2(props, keys) {
1790
+ const transformer = createUnarySpacing(props.theme);
1791
+ return Object.keys(props).map((prop) => resolveCssProperty(props, keys, prop, transformer)).reduce(merge_default, {});
1792
+ }
1793
+ function margin(props) {
1794
+ return style2(props, marginKeys);
1795
+ }
1796
+ margin.propTypes = process.env.NODE_ENV !== "production" ? marginKeys.reduce((obj, key) => {
1797
+ obj[key] = responsivePropType_default;
1798
+ return obj;
1799
+ }, {}) : {};
1800
+ margin.filterProps = marginKeys;
1801
+ function padding(props) {
1802
+ return style2(props, paddingKeys);
1803
+ }
1804
+ padding.propTypes = process.env.NODE_ENV !== "production" ? paddingKeys.reduce((obj, key) => {
1805
+ obj[key] = responsivePropType_default;
1806
+ return obj;
1807
+ }, {}) : {};
1808
+ padding.filterProps = paddingKeys;
1809
+ function spacing(props) {
1810
+ return style2(props, spacingKeys);
1811
+ }
1812
+ spacing.propTypes = process.env.NODE_ENV !== "production" ? spacingKeys.reduce((obj, key) => {
1813
+ obj[key] = responsivePropType_default;
1814
+ return obj;
1815
+ }, {}) : {};
1816
+ spacing.filterProps = spacingKeys;
1817
+
1818
+ // node_modules/@mui/system/esm/createTheme/createSpacing.js
1819
+ function createSpacing(spacingInput = 8) {
1820
+ if (spacingInput.mui) {
1821
+ return spacingInput;
1822
+ }
1823
+ const transform = createUnarySpacing({
1824
+ spacing: spacingInput
1825
+ });
1826
+ const spacing2 = (...argsInput) => {
1827
+ if (process.env.NODE_ENV !== "production") {
1828
+ if (!(argsInput.length <= 4)) {
1829
+ console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${argsInput.length}`);
1830
+ }
1831
+ }
1832
+ const args = argsInput.length === 0 ? [1] : argsInput;
1833
+ return args.map((argument) => {
1834
+ const output = transform(argument);
1835
+ return typeof output === "number" ? `${output}px` : output;
1836
+ }).join(" ");
1837
+ };
1838
+ spacing2.mui = true;
1839
+ return spacing2;
1840
+ }
1841
+
1842
+ // node_modules/@mui/system/esm/compose.js
1843
+ function compose(...styles) {
1844
+ const handlers = styles.reduce((acc, style3) => {
1845
+ style3.filterProps.forEach((prop) => {
1846
+ acc[prop] = style3;
1847
+ });
1848
+ return acc;
1849
+ }, {});
1850
+ const fn = (props) => {
1851
+ return Object.keys(props).reduce((acc, prop) => {
1852
+ if (handlers[prop]) {
1853
+ return merge_default(acc, handlers[prop](props));
1854
+ }
1855
+ return acc;
1856
+ }, {});
1857
+ };
1858
+ fn.propTypes = process.env.NODE_ENV !== "production" ? styles.reduce((acc, style3) => Object.assign(acc, style3.propTypes), {}) : {};
1859
+ fn.filterProps = styles.reduce((acc, style3) => acc.concat(style3.filterProps), []);
1860
+ return fn;
1861
+ }
1862
+ var compose_default = compose;
1863
+
1864
+ // node_modules/@mui/system/esm/borders.js
1865
+ function borderTransform(value) {
1866
+ if (typeof value !== "number") {
1867
+ return value;
1868
+ }
1869
+ return `${value}px solid`;
1870
+ }
1871
+ function createBorderStyle(prop, transform) {
1872
+ return style_default({
1873
+ prop,
1874
+ themeKey: "borders",
1875
+ transform
1876
+ });
1877
+ }
1878
+ var border = createBorderStyle("border", borderTransform);
1879
+ var borderTop = createBorderStyle("borderTop", borderTransform);
1880
+ var borderRight = createBorderStyle("borderRight", borderTransform);
1881
+ var borderBottom = createBorderStyle("borderBottom", borderTransform);
1882
+ var borderLeft = createBorderStyle("borderLeft", borderTransform);
1883
+ var borderColor = createBorderStyle("borderColor");
1884
+ var borderTopColor = createBorderStyle("borderTopColor");
1885
+ var borderRightColor = createBorderStyle("borderRightColor");
1886
+ var borderBottomColor = createBorderStyle("borderBottomColor");
1887
+ var borderLeftColor = createBorderStyle("borderLeftColor");
1888
+ var outline = createBorderStyle("outline", borderTransform);
1889
+ var outlineColor = createBorderStyle("outlineColor");
1890
+ var borderRadius = (props) => {
1891
+ if (props.borderRadius !== void 0 && props.borderRadius !== null) {
1892
+ const transformer = createUnaryUnit(props.theme, "shape.borderRadius", 4, "borderRadius");
1893
+ const styleFromPropValue = (propValue) => ({
1894
+ borderRadius: getValue(transformer, propValue)
1895
+ });
1896
+ return handleBreakpoints(props, props.borderRadius, styleFromPropValue);
1897
+ }
1898
+ return null;
1899
+ };
1900
+ borderRadius.propTypes = process.env.NODE_ENV !== "production" ? {
1901
+ borderRadius: responsivePropType_default
1902
+ } : {};
1903
+ borderRadius.filterProps = ["borderRadius"];
1904
+ var borders = compose_default(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius, outline, outlineColor);
1905
+
1906
+ // node_modules/@mui/system/esm/cssGrid.js
1907
+ var gap = (props) => {
1908
+ if (props.gap !== void 0 && props.gap !== null) {
1909
+ const transformer = createUnaryUnit(props.theme, "spacing", 8, "gap");
1910
+ const styleFromPropValue = (propValue) => ({
1911
+ gap: getValue(transformer, propValue)
1912
+ });
1913
+ return handleBreakpoints(props, props.gap, styleFromPropValue);
1914
+ }
1915
+ return null;
1916
+ };
1917
+ gap.propTypes = process.env.NODE_ENV !== "production" ? {
1918
+ gap: responsivePropType_default
1919
+ } : {};
1920
+ gap.filterProps = ["gap"];
1921
+ var columnGap = (props) => {
1922
+ if (props.columnGap !== void 0 && props.columnGap !== null) {
1923
+ const transformer = createUnaryUnit(props.theme, "spacing", 8, "columnGap");
1924
+ const styleFromPropValue = (propValue) => ({
1925
+ columnGap: getValue(transformer, propValue)
1926
+ });
1927
+ return handleBreakpoints(props, props.columnGap, styleFromPropValue);
1928
+ }
1929
+ return null;
1930
+ };
1931
+ columnGap.propTypes = process.env.NODE_ENV !== "production" ? {
1932
+ columnGap: responsivePropType_default
1933
+ } : {};
1934
+ columnGap.filterProps = ["columnGap"];
1935
+ var rowGap = (props) => {
1936
+ if (props.rowGap !== void 0 && props.rowGap !== null) {
1937
+ const transformer = createUnaryUnit(props.theme, "spacing", 8, "rowGap");
1938
+ const styleFromPropValue = (propValue) => ({
1939
+ rowGap: getValue(transformer, propValue)
1940
+ });
1941
+ return handleBreakpoints(props, props.rowGap, styleFromPropValue);
1942
+ }
1943
+ return null;
1944
+ };
1945
+ rowGap.propTypes = process.env.NODE_ENV !== "production" ? {
1946
+ rowGap: responsivePropType_default
1947
+ } : {};
1948
+ rowGap.filterProps = ["rowGap"];
1949
+ var gridColumn = style_default({
1950
+ prop: "gridColumn"
1951
+ });
1952
+ var gridRow = style_default({
1953
+ prop: "gridRow"
1954
+ });
1955
+ var gridAutoFlow = style_default({
1956
+ prop: "gridAutoFlow"
1957
+ });
1958
+ var gridAutoColumns = style_default({
1959
+ prop: "gridAutoColumns"
1960
+ });
1961
+ var gridAutoRows = style_default({
1962
+ prop: "gridAutoRows"
1963
+ });
1964
+ var gridTemplateColumns = style_default({
1965
+ prop: "gridTemplateColumns"
1966
+ });
1967
+ var gridTemplateRows = style_default({
1968
+ prop: "gridTemplateRows"
1969
+ });
1970
+ var gridTemplateAreas = style_default({
1971
+ prop: "gridTemplateAreas"
1972
+ });
1973
+ var gridArea = style_default({
1974
+ prop: "gridArea"
1975
+ });
1976
+ var grid = compose_default(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);
1977
+
1978
+ // node_modules/@mui/system/esm/palette.js
1979
+ function paletteTransform(value, userValue) {
1980
+ if (userValue === "grey") {
1981
+ return userValue;
1982
+ }
1983
+ return value;
1984
+ }
1985
+ var color = style_default({
1986
+ prop: "color",
1987
+ themeKey: "palette",
1988
+ transform: paletteTransform
1989
+ });
1990
+ var bgcolor = style_default({
1991
+ prop: "bgcolor",
1992
+ cssProperty: "backgroundColor",
1993
+ themeKey: "palette",
1994
+ transform: paletteTransform
1995
+ });
1996
+ var backgroundColor = style_default({
1997
+ prop: "backgroundColor",
1998
+ themeKey: "palette",
1999
+ transform: paletteTransform
2000
+ });
2001
+ var palette = compose_default(color, bgcolor, backgroundColor);
2002
+
2003
+ // node_modules/@mui/system/esm/sizing.js
2004
+ function sizingTransform(value) {
2005
+ return value <= 1 && value !== 0 ? `${value * 100}%` : value;
2006
+ }
2007
+ var width = style_default({
2008
+ prop: "width",
2009
+ transform: sizingTransform
2010
+ });
2011
+ var maxWidth = (props) => {
2012
+ if (props.maxWidth !== void 0 && props.maxWidth !== null) {
2013
+ const styleFromPropValue = (propValue) => {
2014
+ var _props$theme, _props$theme2;
2015
+ const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || values[propValue];
2016
+ if (!breakpoint) {
2017
+ return {
2018
+ maxWidth: sizingTransform(propValue)
2019
+ };
2020
+ }
2021
+ if (((_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.breakpoints) == null ? void 0 : _props$theme2.unit) !== "px") {
2022
+ return {
2023
+ maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`
2024
+ };
2025
+ }
2026
+ return {
2027
+ maxWidth: breakpoint
2028
+ };
2029
+ };
2030
+ return handleBreakpoints(props, props.maxWidth, styleFromPropValue);
2031
+ }
2032
+ return null;
2033
+ };
2034
+ maxWidth.filterProps = ["maxWidth"];
2035
+ var minWidth = style_default({
2036
+ prop: "minWidth",
2037
+ transform: sizingTransform
2038
+ });
2039
+ var height = style_default({
2040
+ prop: "height",
2041
+ transform: sizingTransform
2042
+ });
2043
+ var maxHeight = style_default({
2044
+ prop: "maxHeight",
2045
+ transform: sizingTransform
2046
+ });
2047
+ var minHeight = style_default({
2048
+ prop: "minHeight",
2049
+ transform: sizingTransform
2050
+ });
2051
+ var sizeWidth = style_default({
2052
+ prop: "size",
2053
+ cssProperty: "width",
2054
+ transform: sizingTransform
2055
+ });
2056
+ var sizeHeight = style_default({
2057
+ prop: "size",
2058
+ cssProperty: "height",
2059
+ transform: sizingTransform
2060
+ });
2061
+ var boxSizing = style_default({
2062
+ prop: "boxSizing"
2063
+ });
2064
+ var sizing = compose_default(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);
2065
+
2066
+ // node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js
2067
+ var defaultSxConfig = {
2068
+ // borders
2069
+ border: {
2070
+ themeKey: "borders",
2071
+ transform: borderTransform
2072
+ },
2073
+ borderTop: {
2074
+ themeKey: "borders",
2075
+ transform: borderTransform
2076
+ },
2077
+ borderRight: {
2078
+ themeKey: "borders",
2079
+ transform: borderTransform
2080
+ },
2081
+ borderBottom: {
2082
+ themeKey: "borders",
2083
+ transform: borderTransform
2084
+ },
2085
+ borderLeft: {
2086
+ themeKey: "borders",
2087
+ transform: borderTransform
2088
+ },
2089
+ borderColor: {
2090
+ themeKey: "palette"
2091
+ },
2092
+ borderTopColor: {
2093
+ themeKey: "palette"
2094
+ },
2095
+ borderRightColor: {
2096
+ themeKey: "palette"
2097
+ },
2098
+ borderBottomColor: {
2099
+ themeKey: "palette"
2100
+ },
2101
+ borderLeftColor: {
2102
+ themeKey: "palette"
2103
+ },
2104
+ outline: {
2105
+ themeKey: "borders",
2106
+ transform: borderTransform
2107
+ },
2108
+ outlineColor: {
2109
+ themeKey: "palette"
2110
+ },
2111
+ borderRadius: {
2112
+ themeKey: "shape.borderRadius",
2113
+ style: borderRadius
2114
+ },
2115
+ // palette
2116
+ color: {
2117
+ themeKey: "palette",
2118
+ transform: paletteTransform
2119
+ },
2120
+ bgcolor: {
2121
+ themeKey: "palette",
2122
+ cssProperty: "backgroundColor",
2123
+ transform: paletteTransform
2124
+ },
2125
+ backgroundColor: {
2126
+ themeKey: "palette",
2127
+ transform: paletteTransform
2128
+ },
2129
+ // spacing
2130
+ p: {
2131
+ style: padding
2132
+ },
2133
+ pt: {
2134
+ style: padding
2135
+ },
2136
+ pr: {
2137
+ style: padding
2138
+ },
2139
+ pb: {
2140
+ style: padding
2141
+ },
2142
+ pl: {
2143
+ style: padding
2144
+ },
2145
+ px: {
2146
+ style: padding
2147
+ },
2148
+ py: {
2149
+ style: padding
2150
+ },
2151
+ padding: {
2152
+ style: padding
2153
+ },
2154
+ paddingTop: {
2155
+ style: padding
2156
+ },
2157
+ paddingRight: {
2158
+ style: padding
2159
+ },
2160
+ paddingBottom: {
2161
+ style: padding
2162
+ },
2163
+ paddingLeft: {
2164
+ style: padding
2165
+ },
2166
+ paddingX: {
2167
+ style: padding
2168
+ },
2169
+ paddingY: {
2170
+ style: padding
2171
+ },
2172
+ paddingInline: {
2173
+ style: padding
2174
+ },
2175
+ paddingInlineStart: {
2176
+ style: padding
2177
+ },
2178
+ paddingInlineEnd: {
2179
+ style: padding
2180
+ },
2181
+ paddingBlock: {
2182
+ style: padding
2183
+ },
2184
+ paddingBlockStart: {
2185
+ style: padding
2186
+ },
2187
+ paddingBlockEnd: {
2188
+ style: padding
2189
+ },
2190
+ m: {
2191
+ style: margin
2192
+ },
2193
+ mt: {
2194
+ style: margin
2195
+ },
2196
+ mr: {
2197
+ style: margin
2198
+ },
2199
+ mb: {
2200
+ style: margin
2201
+ },
2202
+ ml: {
2203
+ style: margin
2204
+ },
2205
+ mx: {
2206
+ style: margin
2207
+ },
2208
+ my: {
2209
+ style: margin
2210
+ },
2211
+ margin: {
2212
+ style: margin
2213
+ },
2214
+ marginTop: {
2215
+ style: margin
2216
+ },
2217
+ marginRight: {
2218
+ style: margin
2219
+ },
2220
+ marginBottom: {
2221
+ style: margin
2222
+ },
2223
+ marginLeft: {
2224
+ style: margin
2225
+ },
2226
+ marginX: {
2227
+ style: margin
2228
+ },
2229
+ marginY: {
2230
+ style: margin
2231
+ },
2232
+ marginInline: {
2233
+ style: margin
2234
+ },
2235
+ marginInlineStart: {
2236
+ style: margin
2237
+ },
2238
+ marginInlineEnd: {
2239
+ style: margin
2240
+ },
2241
+ marginBlock: {
2242
+ style: margin
2243
+ },
2244
+ marginBlockStart: {
2245
+ style: margin
2246
+ },
2247
+ marginBlockEnd: {
2248
+ style: margin
2249
+ },
2250
+ // display
2251
+ displayPrint: {
2252
+ cssProperty: false,
2253
+ transform: (value) => ({
2254
+ "@media print": {
2255
+ display: value
2256
+ }
2257
+ })
2258
+ },
2259
+ display: {},
2260
+ overflow: {},
2261
+ textOverflow: {},
2262
+ visibility: {},
2263
+ whiteSpace: {},
2264
+ // flexbox
2265
+ flexBasis: {},
2266
+ flexDirection: {},
2267
+ flexWrap: {},
2268
+ justifyContent: {},
2269
+ alignItems: {},
2270
+ alignContent: {},
2271
+ order: {},
2272
+ flex: {},
2273
+ flexGrow: {},
2274
+ flexShrink: {},
2275
+ alignSelf: {},
2276
+ justifyItems: {},
2277
+ justifySelf: {},
2278
+ // grid
2279
+ gap: {
2280
+ style: gap
2281
+ },
2282
+ rowGap: {
2283
+ style: rowGap
2284
+ },
2285
+ columnGap: {
2286
+ style: columnGap
2287
+ },
2288
+ gridColumn: {},
2289
+ gridRow: {},
2290
+ gridAutoFlow: {},
2291
+ gridAutoColumns: {},
2292
+ gridAutoRows: {},
2293
+ gridTemplateColumns: {},
2294
+ gridTemplateRows: {},
2295
+ gridTemplateAreas: {},
2296
+ gridArea: {},
2297
+ // positions
2298
+ position: {},
2299
+ zIndex: {
2300
+ themeKey: "zIndex"
2301
+ },
2302
+ top: {},
2303
+ right: {},
2304
+ bottom: {},
2305
+ left: {},
2306
+ // shadows
2307
+ boxShadow: {
2308
+ themeKey: "shadows"
2309
+ },
2310
+ // sizing
2311
+ width: {
2312
+ transform: sizingTransform
2313
+ },
2314
+ maxWidth: {
2315
+ style: maxWidth
2316
+ },
2317
+ minWidth: {
2318
+ transform: sizingTransform
2319
+ },
2320
+ height: {
2321
+ transform: sizingTransform
2322
+ },
2323
+ maxHeight: {
2324
+ transform: sizingTransform
2325
+ },
2326
+ minHeight: {
2327
+ transform: sizingTransform
2328
+ },
2329
+ boxSizing: {},
2330
+ // typography
2331
+ fontFamily: {
2332
+ themeKey: "typography"
2333
+ },
2334
+ fontSize: {
2335
+ themeKey: "typography"
2336
+ },
2337
+ fontStyle: {
2338
+ themeKey: "typography"
2339
+ },
2340
+ fontWeight: {
2341
+ themeKey: "typography"
2342
+ },
2343
+ letterSpacing: {},
2344
+ textTransform: {},
2345
+ lineHeight: {},
2346
+ textAlign: {},
2347
+ typography: {
2348
+ cssProperty: false,
2349
+ themeKey: "typography"
2350
+ }
2351
+ };
2352
+ var defaultSxConfig_default = defaultSxConfig;
2353
+
2354
+ // node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js
2355
+ function objectsHaveSameKeys(...objects) {
2356
+ const allKeys = objects.reduce((keys, object) => keys.concat(Object.keys(object)), []);
2357
+ const union = new Set(allKeys);
2358
+ return objects.every((object) => union.size === Object.keys(object).length);
2359
+ }
2360
+ function callIfFn(maybeFn, arg) {
2361
+ return typeof maybeFn === "function" ? maybeFn(arg) : maybeFn;
2362
+ }
2363
+ function unstable_createStyleFunctionSx() {
2364
+ function getThemeValue(prop, val, theme, config) {
2365
+ const props = {
2366
+ [prop]: val,
2367
+ theme
2368
+ };
2369
+ const options = config[prop];
2370
+ if (!options) {
2371
+ return {
2372
+ [prop]: val
2373
+ };
2374
+ }
2375
+ const {
2376
+ cssProperty = prop,
2377
+ themeKey,
2378
+ transform,
2379
+ style: style3
2380
+ } = options;
2381
+ if (val == null) {
2382
+ return null;
2383
+ }
2384
+ if (themeKey === "typography" && val === "inherit") {
2385
+ return {
2386
+ [prop]: val
2387
+ };
2388
+ }
2389
+ const themeMapping = getPath(theme, themeKey) || {};
2390
+ if (style3) {
2391
+ return style3(props);
2392
+ }
2393
+ const styleFromPropValue = (propValueFinal) => {
2394
+ let value = getStyleValue(themeMapping, transform, propValueFinal);
2395
+ if (propValueFinal === value && typeof propValueFinal === "string") {
2396
+ value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === "default" ? "" : capitalize(propValueFinal)}`, propValueFinal);
2397
+ }
2398
+ if (cssProperty === false) {
2399
+ return value;
2400
+ }
2401
+ return {
2402
+ [cssProperty]: value
2403
+ };
2404
+ };
2405
+ return handleBreakpoints(props, val, styleFromPropValue);
2406
+ }
2407
+ function styleFunctionSx2(props) {
2408
+ var _theme$unstable_sxCon;
2409
+ const {
2410
+ sx,
2411
+ theme = {}
2412
+ } = props || {};
2413
+ if (!sx) {
2414
+ return null;
2415
+ }
2416
+ const config = (_theme$unstable_sxCon = theme.unstable_sxConfig) != null ? _theme$unstable_sxCon : defaultSxConfig_default;
2417
+ function traverse(sxInput) {
2418
+ let sxObject = sxInput;
2419
+ if (typeof sxInput === "function") {
2420
+ sxObject = sxInput(theme);
2421
+ } else if (typeof sxInput !== "object") {
2422
+ return sxInput;
2423
+ }
2424
+ if (!sxObject) {
2425
+ return null;
2426
+ }
2427
+ const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints);
2428
+ const breakpointsKeys = Object.keys(emptyBreakpoints);
2429
+ let css2 = emptyBreakpoints;
2430
+ Object.keys(sxObject).forEach((styleKey) => {
2431
+ const value = callIfFn(sxObject[styleKey], theme);
2432
+ if (value !== null && value !== void 0) {
2433
+ if (typeof value === "object") {
2434
+ if (config[styleKey]) {
2435
+ css2 = merge_default(css2, getThemeValue(styleKey, value, theme, config));
2436
+ } else {
2437
+ const breakpointsValues = handleBreakpoints({
2438
+ theme
2439
+ }, value, (x) => ({
2440
+ [styleKey]: x
2441
+ }));
2442
+ if (objectsHaveSameKeys(breakpointsValues, value)) {
2443
+ css2[styleKey] = styleFunctionSx2({
2444
+ sx: value,
2445
+ theme
2446
+ });
2447
+ } else {
2448
+ css2 = merge_default(css2, breakpointsValues);
2449
+ }
2450
+ }
2451
+ } else {
2452
+ css2 = merge_default(css2, getThemeValue(styleKey, value, theme, config));
2453
+ }
2454
+ }
2455
+ });
2456
+ return removeUnusedBreakpoints(breakpointsKeys, css2);
2457
+ }
2458
+ return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);
2459
+ }
2460
+ return styleFunctionSx2;
2461
+ }
2462
+ var styleFunctionSx = unstable_createStyleFunctionSx();
2463
+ styleFunctionSx.filterProps = ["sx"];
2464
+ var styleFunctionSx_default = styleFunctionSx;
2465
+
2466
+ // node_modules/@mui/system/esm/createTheme/applyStyles.js
2467
+ function applyStyles(key, styles) {
2468
+ const theme = this;
2469
+ if (theme.vars && typeof theme.getColorSchemeSelector === "function") {
2470
+ const selector = theme.getColorSchemeSelector(key).replace(/(\[[^\]]+\])/, "*:where($1)");
2471
+ return {
2472
+ [selector]: styles
2473
+ };
2474
+ }
2475
+ if (theme.palette.mode === key) {
2476
+ return styles;
2477
+ }
2478
+ return {};
2479
+ }
2480
+
2481
+ // node_modules/@mui/system/esm/createTheme/createTheme.js
2482
+ var _excluded2 = ["breakpoints", "palette", "spacing", "shape"];
2483
+ function createTheme(options = {}, ...args) {
2484
+ const {
2485
+ breakpoints: breakpointsInput = {},
2486
+ palette: paletteInput = {},
2487
+ spacing: spacingInput,
2488
+ shape: shapeInput = {}
2489
+ } = options, other = _objectWithoutPropertiesLoose(options, _excluded2);
2490
+ const breakpoints = createBreakpoints(breakpointsInput);
2491
+ const spacing2 = createSpacing(spacingInput);
2492
+ let muiTheme = deepmerge({
2493
+ breakpoints,
2494
+ direction: "ltr",
2495
+ components: {},
2496
+ // Inject component definitions.
2497
+ palette: _extends({
2498
+ mode: "light"
2499
+ }, paletteInput),
2500
+ spacing: spacing2,
2501
+ shape: _extends({}, shape_default, shapeInput)
2502
+ }, other);
2503
+ muiTheme.applyStyles = applyStyles;
2504
+ muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
2505
+ muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig_default, other == null ? void 0 : other.unstable_sxConfig);
2506
+ muiTheme.unstable_sx = function sx(props) {
2507
+ return styleFunctionSx_default({
2508
+ sx: props,
2509
+ theme: this
2510
+ });
2511
+ };
2512
+ return muiTheme;
2513
+ }
2514
+ var createTheme_default = createTheme;
2515
+
2516
+ // node_modules/@mui/system/esm/propsToClassKey.js
2517
+ var _excluded3 = ["variant"];
2518
+ function isEmpty(string) {
2519
+ return string.length === 0;
2520
+ }
2521
+ function propsToClassKey(props) {
2522
+ const {
2523
+ variant
2524
+ } = props, other = _objectWithoutPropertiesLoose(props, _excluded3);
2525
+ let classKey = variant || "";
2526
+ Object.keys(other).sort().forEach((key) => {
2527
+ if (key === "color") {
2528
+ classKey += isEmpty(classKey) ? props[key] : capitalize(props[key]);
2529
+ } else {
2530
+ classKey += `${isEmpty(classKey) ? key : capitalize(key)}${capitalize(props[key].toString())}`;
2531
+ }
2532
+ });
2533
+ return classKey;
2534
+ }
2535
+
2536
+ // node_modules/@mui/system/esm/createStyled.js
2537
+ var _excluded4 = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
2538
+ function isEmpty2(obj) {
2539
+ return Object.keys(obj).length === 0;
2540
+ }
2541
+ function isStringTag(tag) {
2542
+ return typeof tag === "string" && // 96 is one less than the char code
2543
+ // for "a" so this is checking that
2544
+ // it's a lowercase character
2545
+ tag.charCodeAt(0) > 96;
2546
+ }
2547
+ var getStyleOverrides = (name, theme) => {
2548
+ if (theme.components && theme.components[name] && theme.components[name].styleOverrides) {
2549
+ return theme.components[name].styleOverrides;
2550
+ }
2551
+ return null;
2552
+ };
2553
+ var transformVariants = (variants) => {
2554
+ let numOfCallbacks = 0;
2555
+ const variantsStyles = {};
2556
+ if (variants) {
2557
+ variants.forEach((definition) => {
2558
+ let key = "";
2559
+ if (typeof definition.props === "function") {
2560
+ key = `callback${numOfCallbacks}`;
2561
+ numOfCallbacks += 1;
2562
+ } else {
2563
+ key = propsToClassKey(definition.props);
2564
+ }
2565
+ variantsStyles[key] = definition.style;
2566
+ });
2567
+ }
2568
+ return variantsStyles;
2569
+ };
2570
+ var getVariantStyles = (name, theme) => {
2571
+ let variants = [];
2572
+ if (theme && theme.components && theme.components[name] && theme.components[name].variants) {
2573
+ variants = theme.components[name].variants;
2574
+ }
2575
+ return transformVariants(variants);
2576
+ };
2577
+ var variantsResolver = (props, styles, variants) => {
2578
+ const {
2579
+ ownerState = {}
2580
+ } = props;
2581
+ const variantsStyles = [];
2582
+ let numOfCallbacks = 0;
2583
+ if (variants) {
2584
+ variants.forEach((variant) => {
2585
+ let isMatch = true;
2586
+ if (typeof variant.props === "function") {
2587
+ const propsToCheck = _extends({}, props, ownerState);
2588
+ isMatch = variant.props(propsToCheck);
2589
+ } else {
2590
+ Object.keys(variant.props).forEach((key) => {
2591
+ if (ownerState[key] !== variant.props[key] && props[key] !== variant.props[key]) {
2592
+ isMatch = false;
2593
+ }
2594
+ });
2595
+ }
2596
+ if (isMatch) {
2597
+ if (typeof variant.props === "function") {
2598
+ variantsStyles.push(styles[`callback${numOfCallbacks}`]);
2599
+ } else {
2600
+ variantsStyles.push(styles[propsToClassKey(variant.props)]);
2601
+ }
2602
+ }
2603
+ if (typeof variant.props === "function") {
2604
+ numOfCallbacks += 1;
2605
+ }
2606
+ });
2607
+ }
2608
+ return variantsStyles;
2609
+ };
2610
+ var themeVariantsResolver = (props, styles, theme, name) => {
2611
+ var _theme$components;
2612
+ const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[name]) == null ? void 0 : _theme$components.variants;
2613
+ return variantsResolver(props, styles, themeVariants);
2614
+ };
2615
+ function shouldForwardProp(prop) {
2616
+ return prop !== "ownerState" && prop !== "theme" && prop !== "sx" && prop !== "as";
2617
+ }
2618
+ var systemDefaultTheme = createTheme_default();
2619
+ var lowercaseFirstLetter = (string) => {
2620
+ if (!string) {
2621
+ return string;
2622
+ }
2623
+ return string.charAt(0).toLowerCase() + string.slice(1);
2624
+ };
2625
+ function resolveTheme({
2626
+ defaultTheme,
2627
+ theme,
2628
+ themeId
2629
+ }) {
2630
+ return isEmpty2(theme) ? defaultTheme : theme[themeId] || theme;
2631
+ }
2632
+ function defaultOverridesResolver(slot) {
2633
+ if (!slot) {
2634
+ return null;
2635
+ }
2636
+ return (props, styles) => styles[slot];
2637
+ }
2638
+ var muiStyledFunctionResolver = ({
2639
+ styledArg,
2640
+ props,
2641
+ defaultTheme,
2642
+ themeId
2643
+ }) => {
2644
+ const resolvedStyles = styledArg(_extends({}, props, {
2645
+ theme: resolveTheme(_extends({}, props, {
2646
+ defaultTheme,
2647
+ themeId
2648
+ }))
2649
+ }));
2650
+ let optionalVariants;
2651
+ if (resolvedStyles && resolvedStyles.variants) {
2652
+ optionalVariants = resolvedStyles.variants;
2653
+ delete resolvedStyles.variants;
2654
+ }
2655
+ if (optionalVariants) {
2656
+ const variantsStyles = variantsResolver(props, transformVariants(optionalVariants), optionalVariants);
2657
+ return [resolvedStyles, ...variantsStyles];
2658
+ }
2659
+ return resolvedStyles;
2660
+ };
2661
+ function createStyled(input = {}) {
2662
+ const {
2663
+ themeId,
2664
+ defaultTheme = systemDefaultTheme,
2665
+ rootShouldForwardProp = shouldForwardProp,
2666
+ slotShouldForwardProp = shouldForwardProp
2667
+ } = input;
2668
+ const systemSx = (props) => {
2669
+ return styleFunctionSx_default(_extends({}, props, {
2670
+ theme: resolveTheme(_extends({}, props, {
2671
+ defaultTheme,
2672
+ themeId
2673
+ }))
2674
+ }));
2675
+ };
2676
+ systemSx.__mui_systemSx = true;
2677
+ return (tag, inputOptions = {}) => {
2678
+ internal_processStyles(tag, (styles) => styles.filter((style3) => !(style3 != null && style3.__mui_systemSx)));
2679
+ const {
2680
+ name: componentName,
2681
+ slot: componentSlot,
2682
+ skipVariantsResolver: inputSkipVariantsResolver,
2683
+ skipSx: inputSkipSx,
2684
+ // TODO v6: remove `lowercaseFirstLetter()` in the next major release
2685
+ // For more details: https://github.com/mui/material-ui/pull/37908
2686
+ overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot))
2687
+ } = inputOptions, options = _objectWithoutPropertiesLoose(inputOptions, _excluded4);
2688
+ const skipVariantsResolver = inputSkipVariantsResolver !== void 0 ? inputSkipVariantsResolver : (
2689
+ // TODO v6: remove `Root` in the next major release
2690
+ // For more details: https://github.com/mui/material-ui/pull/37908
2691
+ componentSlot && componentSlot !== "Root" && componentSlot !== "root" || false
2692
+ );
2693
+ const skipSx = inputSkipSx || false;
2694
+ let label;
2695
+ if (process.env.NODE_ENV !== "production") {
2696
+ if (componentName) {
2697
+ label = `${componentName}-${lowercaseFirstLetter(componentSlot || "Root")}`;
2698
+ }
2699
+ }
2700
+ let shouldForwardPropOption = shouldForwardProp;
2701
+ if (componentSlot === "Root" || componentSlot === "root") {
2702
+ shouldForwardPropOption = rootShouldForwardProp;
2703
+ } else if (componentSlot) {
2704
+ shouldForwardPropOption = slotShouldForwardProp;
2705
+ } else if (isStringTag(tag)) {
2706
+ shouldForwardPropOption = void 0;
2707
+ }
2708
+ const defaultStyledResolver = styled(tag, _extends({
2709
+ shouldForwardProp: shouldForwardPropOption,
2710
+ label
2711
+ }, options));
2712
+ const muiStyledResolver = (styleArg, ...expressions) => {
2713
+ const expressionsWithDefaultTheme = expressions ? expressions.map((stylesArg) => {
2714
+ if (typeof stylesArg === "function" && stylesArg.__emotion_real !== stylesArg) {
2715
+ return (props) => muiStyledFunctionResolver({
2716
+ styledArg: stylesArg,
2717
+ props,
2718
+ defaultTheme,
2719
+ themeId
2720
+ });
2721
+ }
2722
+ if (isPlainObject(stylesArg)) {
2723
+ let transformedStylesArg = stylesArg;
2724
+ let styledArgVariants;
2725
+ if (stylesArg && stylesArg.variants) {
2726
+ styledArgVariants = stylesArg.variants;
2727
+ delete transformedStylesArg.variants;
2728
+ transformedStylesArg = (props) => {
2729
+ let result = stylesArg;
2730
+ const variantStyles = variantsResolver(props, transformVariants(styledArgVariants), styledArgVariants);
2731
+ variantStyles.forEach((variantStyle) => {
2732
+ result = deepmerge(result, variantStyle);
2733
+ });
2734
+ return result;
2735
+ };
2736
+ }
2737
+ return transformedStylesArg;
2738
+ }
2739
+ return stylesArg;
2740
+ }) : [];
2741
+ let transformedStyleArg = styleArg;
2742
+ if (isPlainObject(styleArg)) {
2743
+ let styledArgVariants;
2744
+ if (styleArg && styleArg.variants) {
2745
+ styledArgVariants = styleArg.variants;
2746
+ delete transformedStyleArg.variants;
2747
+ transformedStyleArg = (props) => {
2748
+ let result = styleArg;
2749
+ const variantStyles = variantsResolver(props, transformVariants(styledArgVariants), styledArgVariants);
2750
+ variantStyles.forEach((variantStyle) => {
2751
+ result = deepmerge(result, variantStyle);
2752
+ });
2753
+ return result;
2754
+ };
2755
+ }
2756
+ } else if (typeof styleArg === "function" && // On the server Emotion doesn't use React.forwardRef for creating components, so the created
2757
+ // component stays as a function. This condition makes sure that we do not interpolate functions
2758
+ // which are basically components used as a selectors.
2759
+ styleArg.__emotion_real !== styleArg) {
2760
+ transformedStyleArg = (props) => muiStyledFunctionResolver({
2761
+ styledArg: styleArg,
2762
+ props,
2763
+ defaultTheme,
2764
+ themeId
2765
+ });
2766
+ }
2767
+ if (componentName && overridesResolver) {
2768
+ expressionsWithDefaultTheme.push((props) => {
2769
+ const theme = resolveTheme(_extends({}, props, {
2770
+ defaultTheme,
2771
+ themeId
2772
+ }));
2773
+ const styleOverrides = getStyleOverrides(componentName, theme);
2774
+ if (styleOverrides) {
2775
+ const resolvedStyleOverrides = {};
2776
+ Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => {
2777
+ resolvedStyleOverrides[slotKey] = typeof slotStyle === "function" ? slotStyle(_extends({}, props, {
2778
+ theme
2779
+ })) : slotStyle;
2780
+ });
2781
+ return overridesResolver(props, resolvedStyleOverrides);
2782
+ }
2783
+ return null;
2784
+ });
2785
+ }
2786
+ if (componentName && !skipVariantsResolver) {
2787
+ expressionsWithDefaultTheme.push((props) => {
2788
+ const theme = resolveTheme(_extends({}, props, {
2789
+ defaultTheme,
2790
+ themeId
2791
+ }));
2792
+ return themeVariantsResolver(props, getVariantStyles(componentName, theme), theme, componentName);
2793
+ });
2794
+ }
2795
+ if (!skipSx) {
2796
+ expressionsWithDefaultTheme.push(systemSx);
2797
+ }
2798
+ const numOfCustomFnsApplied = expressionsWithDefaultTheme.length - expressions.length;
2799
+ if (Array.isArray(styleArg) && numOfCustomFnsApplied > 0) {
2800
+ const placeholders = new Array(numOfCustomFnsApplied).fill("");
2801
+ transformedStyleArg = [...styleArg, ...placeholders];
2802
+ transformedStyleArg.raw = [...styleArg.raw, ...placeholders];
2803
+ }
2804
+ const Component = defaultStyledResolver(transformedStyleArg, ...expressionsWithDefaultTheme);
2805
+ if (process.env.NODE_ENV !== "production") {
2806
+ let displayName;
2807
+ if (componentName) {
2808
+ displayName = `${componentName}${capitalize(componentSlot || "")}`;
2809
+ }
2810
+ if (displayName === void 0) {
2811
+ displayName = `Styled(${getDisplayName(tag)})`;
2812
+ }
2813
+ Component.displayName = displayName;
2814
+ }
2815
+ if (tag.muiName) {
2816
+ Component.muiName = tag.muiName;
2817
+ }
2818
+ return Component;
2819
+ };
2820
+ if (defaultStyledResolver.withConfig) {
2821
+ muiStyledResolver.withConfig = defaultStyledResolver.withConfig;
2822
+ }
2823
+ return muiStyledResolver;
2824
+ };
2825
+ }
2826
+
2827
+ // node_modules/@mui/system/esm/styled.js
2828
+ var styled2 = createStyled();
2829
+ var styled_default = styled2;
2830
+
2831
+ // src/components/buttons/WavelengthButton/WavelengthButton.tsx
2832
+ import React from "react";
2833
+
2834
+ // src/themes/WavelengthAppTheme.ts
2835
+ import { createContext, useContext } from "react";
2836
+ var WavelengthAppTheme = createContext({});
2837
+ var useThemeContext = () => useContext(WavelengthAppTheme);
2838
+
2839
+ // src/themes/Palette.ts
2840
+ var defaultPalette = {
2841
+ primary: `#336699`,
2842
+ secondary: `#66FFCC`
2843
+ };
2844
+ var arrowPalette = {
2845
+ primary: "#46D8ECFF",
2846
+ secondary: "#46D8EC99"
2847
+ };
2848
+ function getPalette() {
2849
+ const { name } = useThemeContext();
2850
+ if (name != void 0) {
2851
+ if (name.toLowerCase() === "arrow") {
2852
+ return arrowPalette;
2853
+ }
2854
+ }
2855
+ return defaultPalette;
2856
+ }
2857
+
2858
+ // src/components/buttons/WavelengthButton/WavelengthButton.tsx
2859
+ function WavelengthButton({ id, variant, margin: margin2, padding: padding2, autoFocus, disabled, onClick, children }) {
2860
+ const palette2 = getPalette();
2861
+ const WLContainedButton = styled_default(Button)(({}) => ({
2862
+ height: "45px",
2863
+ color: "#FFFFFF",
2864
+ background: palette2.primary,
2865
+ border: `1px solid`,
2866
+ borderRadius: "8px",
2867
+ borderColor: palette2.secondary
2868
+ }));
2869
+ const WLOutlinedButton = styled_default(Button)(({}) => ({
2870
+ height: "45px",
2871
+ border: `1px solid`,
2872
+ borderRadius: "8px",
2873
+ borderColor: palette2.primary,
2874
+ color: palette2.primary
2875
+ }));
2876
+ const WLTextButton = styled_default(Button)(({}) => ({
2877
+ height: "45px",
2878
+ border: "0px",
2879
+ borderRadius: "8px",
2880
+ "&:hover": {
2881
+ border: "0px",
2882
+ color: palette2.primary
2883
+ }
2884
+ }));
2885
+ if (variant === "contained") {
2886
+ return /* @__PURE__ */ React.createElement(WLContainedButton, { variant: "contained", id, autoFocus, disabled, onClick, sx: { margin: { margin: margin2 }, padding: { padding: padding2 } } }, children);
2887
+ }
2888
+ if (variant === "outlined") {
2889
+ return /* @__PURE__ */ React.createElement(WLOutlinedButton, { variant: "outlined", id, autoFocus, disabled, onClick, sx: { margin: { margin: margin2 }, padding: { padding: padding2 } } }, children);
2890
+ }
2891
+ return /* @__PURE__ */ React.createElement(WLTextButton, { variant: "outlined", id, autoFocus, disabled, onClick, sx: { margin: { margin: margin2 }, padding: { padding: padding2 } } }, children);
2892
+ }
2893
+
2894
+ // src/components/sample/MyComponent.tsx
2895
+ import React2 from "react";
2896
+ function MyComponent({ width: width2 = 100, height: height2 = 100 }) {
2897
+ const palette2 = getPalette();
2898
+ const divStyle = {
2899
+ display: "inline-block",
2900
+ border: "1px solid black",
2901
+ padding: "5px",
2902
+ borderRadius: "5px"
2903
+ };
2904
+ const titleStyle = {
2905
+ color: palette2.primary
2906
+ };
2907
+ return /* @__PURE__ */ React2.createElement("div", { style: divStyle }, /* @__PURE__ */ React2.createElement("center", null, /* @__PURE__ */ React2.createElement("p", { style: titleStyle }, "My Component")), /* @__PURE__ */ React2.createElement("br", null), /* @__PURE__ */ React2.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: width2, height: height2, viewBox: "0 0 96 105" }, /* @__PURE__ */ React2.createElement("g", { fill: palette2.secondary, stroke: palette2.secondary, strokeLinejoin: "round", strokeLinecap: "round" }, /* @__PURE__ */ React2.createElement("path", { d: "M14,40v24M81,40v24M38,68v24M57,68v24M28,42v31h39v-31z", strokeWidth: "12" }), /* @__PURE__ */ React2.createElement("path", { d: "M32,5l5,10M64,5l-6,10 ", strokeWidth: "2" })), /* @__PURE__ */ React2.createElement("path", { d: "M22,35h51v10h-51zM22,33c0-31,51-31,51,0", fill: palette2.secondary }), /* @__PURE__ */ React2.createElement("g", { fill: "#FFF" }, /* @__PURE__ */ React2.createElement("circle", { cx: "36", cy: "22", r: "2" }), /* @__PURE__ */ React2.createElement("circle", { cx: "59", cy: "22", r: "2" }))));
14
2908
  }
15
2909
  export {
2910
+ MyComponent,
2911
+ WavelengthAppTheme,
2912
+ WavelengthButton,
16
2913
  add,
17
2914
  concat,
18
- helloworld
2915
+ useThemeContext
19
2916
  };
2917
+ /*! Bundled license information:
2918
+
2919
+ react-is/cjs/react-is.production.min.js:
2920
+ (** @license React v16.13.1
2921
+ * react-is.production.min.js
2922
+ *
2923
+ * Copyright (c) Facebook, Inc. and its affiliates.
2924
+ *
2925
+ * This source code is licensed under the MIT license found in the
2926
+ * LICENSE file in the root directory of this source tree.
2927
+ *)
2928
+
2929
+ react-is/cjs/react-is.development.js:
2930
+ (** @license React v16.13.1
2931
+ * react-is.development.js
2932
+ *
2933
+ * Copyright (c) Facebook, Inc. and its affiliates.
2934
+ *
2935
+ * This source code is licensed under the MIT license found in the
2936
+ * LICENSE file in the root directory of this source tree.
2937
+ *)
2938
+
2939
+ object-assign/index.js:
2940
+ (*
2941
+ object-assign
2942
+ (c) Sindre Sorhus
2943
+ @license MIT
2944
+ *)
2945
+
2946
+ react-is/cjs/react-is.production.min.js:
2947
+ (**
2948
+ * @license React
2949
+ * react-is.production.min.js
2950
+ *
2951
+ * Copyright (c) Facebook, Inc. and its affiliates.
2952
+ *
2953
+ * This source code is licensed under the MIT license found in the
2954
+ * LICENSE file in the root directory of this source tree.
2955
+ *)
2956
+
2957
+ react-is/cjs/react-is.development.js:
2958
+ (**
2959
+ * @license React
2960
+ * react-is.development.js
2961
+ *
2962
+ * Copyright (c) Facebook, Inc. and its affiliates.
2963
+ *
2964
+ * This source code is licensed under the MIT license found in the
2965
+ * LICENSE file in the root directory of this source tree.
2966
+ *)
2967
+
2968
+ @mui/styled-engine/index.js:
2969
+ (**
2970
+ * @mui/styled-engine v5.15.7
2971
+ *
2972
+ * @license MIT
2973
+ * This source code is licensed under the MIT license found in the
2974
+ * LICENSE file in the root directory of this source tree.
2975
+ *)
2976
+ */
20
2977
  //# sourceMappingURL=index.mjs.map