@genai-fi/base 3.0.1

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.
Files changed (99) hide show
  1. package/LICENSE +7 -0
  2. package/README.md +18 -0
  3. package/dist/Button-DQwRVw4a.js +1918 -0
  4. package/dist/DefaultPropsProvider-C0Ib4Mye.js +520 -0
  5. package/dist/DialogQR-BU45QB3i.js +1625 -0
  6. package/dist/FileSaver.min-DhePf63e.js +2397 -0
  7. package/dist/FlashWifi-CaAOKd3g.js +33 -0
  8. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  9. package/dist/assets/AlertPara.css +1 -0
  10. package/dist/assets/ConnectionStatus.css +1 -0
  11. package/dist/assets/DialogQR.css +1 -0
  12. package/dist/assets/Motd.css +1 -0
  13. package/dist/assets/Privacy.css +1 -0
  14. package/dist/assets/Spinner.css +1 -0
  15. package/dist/assets/Webcam.css +1 -0
  16. package/dist/assets/style.css +1 -0
  17. package/dist/assets/theme.css +1 -0
  18. package/dist/colours.module.css +19 -0
  19. package/dist/components/AlertPara/AlertPara.d.ts +8 -0
  20. package/dist/components/AlertPara/AlertPara.js +19 -0
  21. package/dist/components/BusyButton/BusyButton.d.ts +7 -0
  22. package/dist/components/BusyButton/BusyButton.js +25 -0
  23. package/dist/components/Button/Button.d.ts +6 -0
  24. package/dist/components/Button/Button.js +6 -0
  25. package/dist/components/ConnectionStatus/ConnectionStatus.d.ts +12 -0
  26. package/dist/components/ConnectionStatus/ConnectionStatus.js +82 -0
  27. package/dist/components/ConnectionStatus/FlashWifi.d.ts +1 -0
  28. package/dist/components/ConnectionStatus/FlashWifi.js +6 -0
  29. package/dist/components/ConnectionStatus/check.d.ts +1 -0
  30. package/dist/components/ConnectionStatus/check.js +10 -0
  31. package/dist/components/ConnectionStatus/ice.d.ts +13 -0
  32. package/dist/components/ConnectionStatus/ice.js +12 -0
  33. package/dist/components/ContentLoader/ContentError.d.ts +5 -0
  34. package/dist/components/ContentLoader/ContentError.js +21 -0
  35. package/dist/components/ContentLoader/ContentLoader.d.ts +8 -0
  36. package/dist/components/ContentLoader/ContentLoader.js +51 -0
  37. package/dist/components/ContentLoader/ContentProgress.d.ts +6 -0
  38. package/dist/components/ContentLoader/ContentProgress.js +31 -0
  39. package/dist/components/Motd/Motd.d.ts +5 -0
  40. package/dist/components/Motd/Motd.js +48 -0
  41. package/dist/components/Privacy/Privacy.d.ts +7 -0
  42. package/dist/components/Privacy/Privacy.js +57 -0
  43. package/dist/components/QRCode/DialogQR.d.ts +7 -0
  44. package/dist/components/QRCode/DialogQR.js +14 -0
  45. package/dist/components/QRCode/QRCode.d.ts +9 -0
  46. package/dist/components/QRCode/QRCode.js +61 -0
  47. package/dist/components/Spinner/Spinner.d.ts +6 -0
  48. package/dist/components/Spinner/Spinner.js +33 -0
  49. package/dist/components/Webcam/Webcam.d.ts +15 -0
  50. package/dist/components/Webcam/Webcam.js +397 -0
  51. package/dist/components/Webcam/webcamClass.d.ts +32 -0
  52. package/dist/components/Webcam/webcamClass.js +76 -0
  53. package/dist/createSvgIcon-BfF8yuCp.js +249 -0
  54. package/dist/createTheme-BIcG8YPQ.js +2895 -0
  55. package/dist/hooks/id.d.ts +1 -0
  56. package/dist/hooks/id.js +16 -0
  57. package/dist/hooks/onlyOnce.d.ts +1 -0
  58. package/dist/hooks/onlyOnce.js +7 -0
  59. package/dist/hooks/peer.d.ts +25 -0
  60. package/dist/hooks/peer.js +70 -0
  61. package/dist/hooks/random.d.ts +1 -0
  62. package/dist/hooks/random.js +9 -0
  63. package/dist/hooks/useTabActive.d.ts +1 -0
  64. package/dist/hooks/useTabActive.js +17 -0
  65. package/dist/index-SOhdqzHq.js +113 -0
  66. package/dist/main.d.ts +21 -0
  67. package/dist/main.js +49 -0
  68. package/dist/react-D-b-Xrzv.js +98 -0
  69. package/dist/services/peer2peer/Incoming.d.ts +13 -0
  70. package/dist/services/peer2peer/Incoming.js +39 -0
  71. package/dist/services/peer2peer/Outgoing.d.ts +25 -0
  72. package/dist/services/peer2peer/Outgoing.js +65 -0
  73. package/dist/services/peer2peer/Peer2Peer.d.ts +80 -0
  74. package/dist/services/peer2peer/Peer2Peer.js +3367 -0
  75. package/dist/services/peer2peer/PeerConnection.d.ts +40 -0
  76. package/dist/services/peer2peer/PeerConnection.js +155 -0
  77. package/dist/services/peer2peer/error.d.ts +2 -0
  78. package/dist/services/peer2peer/error.js +5 -0
  79. package/dist/services/peer2peer/types.d.ts +38 -0
  80. package/dist/services/peer2peer/types.js +1 -0
  81. package/dist/state/webrtcState.d.ts +12 -0
  82. package/dist/state/webrtcState.js +6 -0
  83. package/dist/style/theme.d.ts +1 -0
  84. package/dist/style/theme.js +33 -0
  85. package/dist/style.module-DSFm2eLD.js +9 -0
  86. package/dist/util/backoff.d.ts +1 -0
  87. package/dist/util/backoff.js +6 -0
  88. package/dist/util/base64.d.ts +2 -0
  89. package/dist/util/base64.js +19 -0
  90. package/dist/util/canvas.d.ts +7 -0
  91. package/dist/util/canvas.js +92 -0
  92. package/dist/util/crypto.d.ts +7 -0
  93. package/dist/util/crypto.js +50 -0
  94. package/dist/util/randomId.d.ts +1 -0
  95. package/dist/util/randomId.js +8 -0
  96. package/dist/util/zip.d.ts +13 -0
  97. package/dist/util/zip.js +94 -0
  98. package/dist/webrtcState-D0nJpE9Z.js +406 -0
  99. package/package.json +88 -0
@@ -0,0 +1,520 @@
1
+ import { g as oe, r as D, d as se, s as j, i as ie, a as ae, P as A, c as fe } from "./createTheme-BIcG8YPQ.js";
2
+ import ue from "@emotion/styled";
3
+ import "@emotion/react";
4
+ import * as U from "react";
5
+ import "react/jsx-runtime";
6
+ function K(e) {
7
+ var n, t, r = "";
8
+ if (typeof e == "string" || typeof e == "number") r += e;
9
+ else if (typeof e == "object") if (Array.isArray(e)) {
10
+ var o = e.length;
11
+ for (n = 0; n < o; n++) e[n] && (t = K(e[n])) && (r && (r += " "), r += t);
12
+ } else for (t in e) e[t] && (r && (r += " "), r += t);
13
+ return r;
14
+ }
15
+ function Ge() {
16
+ for (var e, n, t = 0, r = "", o = arguments.length; t < o; t++) (e = arguments[t]) && (n = K(e)) && (r && (r += " "), r += n);
17
+ return r;
18
+ }
19
+ function ke(e, n, t = void 0) {
20
+ const r = {};
21
+ for (const o in e) {
22
+ const s = e[o];
23
+ let i = "", a = !0;
24
+ for (let f = 0; f < s.length; f += 1) {
25
+ const u = s[f];
26
+ u && (i += (a === !0 ? "" : " ") + n(u), a = !1, t && t[u] && (i += " " + t[u]));
27
+ }
28
+ r[o] = i;
29
+ }
30
+ return r;
31
+ }
32
+ function ce(e) {
33
+ for (var n = 0, t, r = 0, o = e.length; o >= 4; ++r, o -= 4)
34
+ t = e.charCodeAt(r) & 255 | (e.charCodeAt(++r) & 255) << 8 | (e.charCodeAt(++r) & 255) << 16 | (e.charCodeAt(++r) & 255) << 24, t = /* Math.imul(k, m): */
35
+ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */
36
+ t >>> 24, n = /* Math.imul(k, m): */
37
+ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
38
+ (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16);
39
+ switch (o) {
40
+ case 3:
41
+ n ^= (e.charCodeAt(r + 2) & 255) << 16;
42
+ case 2:
43
+ n ^= (e.charCodeAt(r + 1) & 255) << 8;
44
+ case 1:
45
+ n ^= e.charCodeAt(r) & 255, n = /* Math.imul(h, m): */
46
+ (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16);
47
+ }
48
+ return n ^= n >>> 13, n = /* Math.imul(h, m): */
49
+ (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), ((n ^ n >>> 15) >>> 0).toString(36);
50
+ }
51
+ var le = {
52
+ animationIterationCount: 1,
53
+ aspectRatio: 1,
54
+ borderImageOutset: 1,
55
+ borderImageSlice: 1,
56
+ borderImageWidth: 1,
57
+ boxFlex: 1,
58
+ boxFlexGroup: 1,
59
+ boxOrdinalGroup: 1,
60
+ columnCount: 1,
61
+ columns: 1,
62
+ flex: 1,
63
+ flexGrow: 1,
64
+ flexPositive: 1,
65
+ flexShrink: 1,
66
+ flexNegative: 1,
67
+ flexOrder: 1,
68
+ gridRow: 1,
69
+ gridRowEnd: 1,
70
+ gridRowSpan: 1,
71
+ gridRowStart: 1,
72
+ gridColumn: 1,
73
+ gridColumnEnd: 1,
74
+ gridColumnSpan: 1,
75
+ gridColumnStart: 1,
76
+ msGridRow: 1,
77
+ msGridRowSpan: 1,
78
+ msGridColumn: 1,
79
+ msGridColumnSpan: 1,
80
+ fontWeight: 1,
81
+ lineHeight: 1,
82
+ opacity: 1,
83
+ order: 1,
84
+ orphans: 1,
85
+ scale: 1,
86
+ tabSize: 1,
87
+ widows: 1,
88
+ zIndex: 1,
89
+ zoom: 1,
90
+ WebkitLineClamp: 1,
91
+ // SVG-related properties
92
+ fillOpacity: 1,
93
+ floodOpacity: 1,
94
+ stopOpacity: 1,
95
+ strokeDasharray: 1,
96
+ strokeDashoffset: 1,
97
+ strokeMiterlimit: 1,
98
+ strokeOpacity: 1,
99
+ strokeWidth: 1
100
+ };
101
+ function de(e) {
102
+ var n = /* @__PURE__ */ Object.create(null);
103
+ return function(t) {
104
+ return n[t] === void 0 && (n[t] = e(t)), n[t];
105
+ };
106
+ }
107
+ var me = /[A-Z]|^ms/g, he = /_EMO_([^_]+?)_([^]*?)_EMO_/g, q = function(n) {
108
+ return n.charCodeAt(1) === 45;
109
+ }, M = function(n) {
110
+ return n != null && typeof n != "boolean";
111
+ }, R = /* @__PURE__ */ de(function(e) {
112
+ return q(e) ? e : e.replace(me, "-$&").toLowerCase();
113
+ }), z = function(n, t) {
114
+ switch (n) {
115
+ case "animation":
116
+ case "animationName":
117
+ if (typeof t == "string")
118
+ return t.replace(he, function(r, o, s) {
119
+ return y = {
120
+ name: o,
121
+ styles: s,
122
+ next: y
123
+ }, o;
124
+ });
125
+ }
126
+ return le[n] !== 1 && !q(n) && typeof t == "number" && t !== 0 ? t + "px" : t;
127
+ };
128
+ function _(e, n, t) {
129
+ if (t == null)
130
+ return "";
131
+ var r = t;
132
+ if (r.__emotion_styles !== void 0)
133
+ return r;
134
+ switch (typeof t) {
135
+ case "boolean":
136
+ return "";
137
+ case "object": {
138
+ var o = t;
139
+ if (o.anim === 1)
140
+ return y = {
141
+ name: o.name,
142
+ styles: o.styles,
143
+ next: y
144
+ }, o.name;
145
+ var s = t;
146
+ if (s.styles !== void 0) {
147
+ var i = s.next;
148
+ if (i !== void 0)
149
+ for (; i !== void 0; )
150
+ y = {
151
+ name: i.name,
152
+ styles: i.styles,
153
+ next: y
154
+ }, i = i.next;
155
+ var a = s.styles + ";";
156
+ return a;
157
+ }
158
+ return ye(e, n, t);
159
+ }
160
+ }
161
+ var f = t;
162
+ return f;
163
+ }
164
+ function ye(e, n, t) {
165
+ var r = "";
166
+ if (Array.isArray(t))
167
+ for (var o = 0; o < t.length; o++)
168
+ r += _(e, n, t[o]) + ";";
169
+ else
170
+ for (var s in t) {
171
+ var i = t[s];
172
+ if (typeof i != "object") {
173
+ var a = i;
174
+ M(a) && (r += R(s) + ":" + z(s, a) + ";");
175
+ } else if (Array.isArray(i) && typeof i[0] == "string" && n == null)
176
+ for (var f = 0; f < i.length; f++)
177
+ M(i[f]) && (r += R(s) + ":" + z(s, i[f]) + ";");
178
+ else {
179
+ var u = _(e, n, i);
180
+ switch (s) {
181
+ case "animation":
182
+ case "animationName": {
183
+ r += R(s) + ":" + u + ";";
184
+ break;
185
+ }
186
+ default:
187
+ r += s + "{" + u + "}";
188
+ }
189
+ }
190
+ }
191
+ return r;
192
+ }
193
+ var G = /label:\s*([^\s;{]+)\s*(;|$)/g, y;
194
+ function pe(e, n, t) {
195
+ if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
196
+ return e[0];
197
+ var r = !0, o = "";
198
+ y = void 0;
199
+ var s = e[0];
200
+ if (s == null || s.raw === void 0)
201
+ r = !1, o += _(t, n, s);
202
+ else {
203
+ var i = s;
204
+ o += i[0];
205
+ }
206
+ for (var a = 1; a < e.length; a++)
207
+ if (o += _(t, n, e[a]), r) {
208
+ var f = s;
209
+ o += f[a];
210
+ }
211
+ G.lastIndex = 0;
212
+ for (var u = "", c; (c = G.exec(o)) !== null; )
213
+ u += "-" + c[1];
214
+ var g = ce(o) + u;
215
+ return {
216
+ name: g,
217
+ styles: o,
218
+ next: y
219
+ };
220
+ }
221
+ /**
222
+ * @mui/styled-engine v7.1.0
223
+ *
224
+ * @license MIT
225
+ * This source code is licensed under the MIT license found in the
226
+ * LICENSE file in the root directory of this source tree.
227
+ */
228
+ function ve(e, n) {
229
+ const t = ue(e, n);
230
+ return process.env.NODE_ENV !== "production" ? (...r) => {
231
+ const o = typeof e == "string" ? `"${e}"` : "component";
232
+ return r.length === 0 ? console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
233
+ `)) : r.some((s) => s === void 0) && console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`), t(...r);
234
+ } : t;
235
+ }
236
+ function xe(e, n) {
237
+ Array.isArray(e.__emotion_styles) && (e.__emotion_styles = n(e.__emotion_styles));
238
+ }
239
+ const k = [];
240
+ function L(e) {
241
+ return k[0] = e, pe(k);
242
+ }
243
+ function Le(e, n, t = "Mui") {
244
+ const r = {};
245
+ return n.forEach((o) => {
246
+ r[o] = oe(e, o, t);
247
+ }), r;
248
+ }
249
+ function Y(e, n = "") {
250
+ return e.displayName || e.name || n;
251
+ }
252
+ function W(e, n, t) {
253
+ const r = Y(n);
254
+ return e.displayName || (r !== "" ? `${t}(${r})` : t);
255
+ }
256
+ function Se(e) {
257
+ if (e != null) {
258
+ if (typeof e == "string")
259
+ return e;
260
+ if (typeof e == "function")
261
+ return Y(e, "Component");
262
+ if (typeof e == "object")
263
+ switch (e.$$typeof) {
264
+ case D.ForwardRef:
265
+ return W(e, e.render, "ForwardRef");
266
+ case D.Memo:
267
+ return W(e, e.type, "memo");
268
+ default:
269
+ return;
270
+ }
271
+ }
272
+ }
273
+ function B(e) {
274
+ const {
275
+ variants: n,
276
+ ...t
277
+ } = e, r = {
278
+ variants: n,
279
+ style: L(t),
280
+ isProcessed: !0
281
+ };
282
+ return r.style === t || n && n.forEach((o) => {
283
+ typeof o.style != "function" && (o.style = L(o.style));
284
+ }), r;
285
+ }
286
+ const we = se();
287
+ function E(e) {
288
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
289
+ }
290
+ function ge(e) {
291
+ return e ? (n, t) => t[e] : null;
292
+ }
293
+ function be(e, n, t) {
294
+ e.theme = _e(e.theme) ? t : e.theme[n] || e.theme;
295
+ }
296
+ function O(e, n) {
297
+ const t = typeof n == "function" ? n(e) : n;
298
+ if (Array.isArray(t))
299
+ return t.flatMap((r) => O(e, r));
300
+ if (Array.isArray(t == null ? void 0 : t.variants)) {
301
+ let r;
302
+ if (t.isProcessed)
303
+ r = t.style;
304
+ else {
305
+ const {
306
+ variants: o,
307
+ ...s
308
+ } = t;
309
+ r = s;
310
+ }
311
+ return Z(e, t.variants, [r]);
312
+ }
313
+ return t != null && t.isProcessed ? t.style : t;
314
+ }
315
+ function Z(e, n, t = []) {
316
+ var o;
317
+ let r;
318
+ e: for (let s = 0; s < n.length; s += 1) {
319
+ const i = n[s];
320
+ if (typeof i.props == "function") {
321
+ if (r ?? (r = {
322
+ ...e,
323
+ ...e.ownerState,
324
+ ownerState: e.ownerState
325
+ }), !i.props(r))
326
+ continue;
327
+ } else
328
+ for (const a in i.props)
329
+ if (e[a] !== i.props[a] && ((o = e.ownerState) == null ? void 0 : o[a]) !== i.props[a])
330
+ continue e;
331
+ typeof i.style == "function" ? (r ?? (r = {
332
+ ...e,
333
+ ...e.ownerState,
334
+ ownerState: e.ownerState
335
+ }), t.push(i.style(r))) : t.push(i.style);
336
+ }
337
+ return t;
338
+ }
339
+ function Pe(e = {}) {
340
+ const {
341
+ themeId: n,
342
+ defaultTheme: t = we,
343
+ rootShouldForwardProp: r = E,
344
+ slotShouldForwardProp: o = E
345
+ } = e;
346
+ function s(a) {
347
+ be(a, n, t);
348
+ }
349
+ return (a, f = {}) => {
350
+ xe(a, (l) => l.filter((d) => d !== j));
351
+ const {
352
+ name: u,
353
+ slot: c,
354
+ skipVariantsResolver: g,
355
+ skipSx: Q,
356
+ // TODO v6: remove `lowercaseFirstLetter()` in the next major release
357
+ // For more details: https://github.com/mui/material-ui/pull/37908
358
+ overridesResolver: $ = ge(J(c)),
359
+ ...X
360
+ } = f, ee = g !== void 0 ? g : (
361
+ // TODO v6: remove `Root` in the next major release
362
+ // For more details: https://github.com/mui/material-ui/pull/37908
363
+ c && c !== "Root" && c !== "root" || !1
364
+ ), te = Q || !1;
365
+ let b = E;
366
+ c === "Root" || c === "root" ? b = r : c ? b = o : Ne(a) && (b = void 0);
367
+ const N = ve(a, {
368
+ shouldForwardProp: b,
369
+ label: Ae(u, c),
370
+ ...X
371
+ }), ne = (l) => {
372
+ if (typeof l == "function" && l.__emotion_real !== l)
373
+ return function(x) {
374
+ return O(x, l);
375
+ };
376
+ if (ie(l)) {
377
+ const d = B(l);
378
+ return d.variants ? function(p) {
379
+ return O(p, d);
380
+ } : d.style;
381
+ }
382
+ return l;
383
+ }, F = (...l) => {
384
+ const d = [], x = l.map(ne), p = [];
385
+ if (d.push(s), u && $ && p.push(function(h) {
386
+ var w, V;
387
+ const m = (V = (w = h.theme.components) == null ? void 0 : w[u]) == null ? void 0 : V.styleOverrides;
388
+ if (!m)
389
+ return null;
390
+ const S = {};
391
+ for (const I in m)
392
+ S[I] = O(h, m[I]);
393
+ return $(h, S);
394
+ }), u && !ee && p.push(function(h) {
395
+ var S, w;
396
+ const v = h.theme, m = (w = (S = v == null ? void 0 : v.components) == null ? void 0 : S[u]) == null ? void 0 : w.variants;
397
+ return m ? Z(h, m) : null;
398
+ }), te || p.push(j), Array.isArray(x[0])) {
399
+ const P = x.shift(), h = new Array(d.length).fill(""), v = new Array(p.length).fill("");
400
+ let m;
401
+ m = [...h, ...P, ...v], m.raw = [...h, ...P.raw, ...v], d.unshift(m);
402
+ }
403
+ const re = [...d, ...x, ...p], C = N(...re);
404
+ return a.muiName && (C.muiName = a.muiName), process.env.NODE_ENV !== "production" && (C.displayName = Oe(u, c, a)), C;
405
+ };
406
+ return N.withConfig && (F.withConfig = N.withConfig), F;
407
+ };
408
+ }
409
+ function Oe(e, n, t) {
410
+ return e ? `${e}${ae(n || "")}` : `Styled(${Se(t)})`;
411
+ }
412
+ function Ae(e, n) {
413
+ let t;
414
+ return process.env.NODE_ENV !== "production" && e && (t = `${e}-${J(n || "Root")}`), t;
415
+ }
416
+ function _e(e) {
417
+ for (const n in e)
418
+ return !1;
419
+ return !0;
420
+ }
421
+ function Ne(e) {
422
+ return typeof e == "string" && // 96 is one less than the char code
423
+ // for "a" so this is checking that
424
+ // it's a lowercase character
425
+ e.charCodeAt(0) > 96;
426
+ }
427
+ function J(e) {
428
+ return e && e.charAt(0).toLowerCase() + e.slice(1);
429
+ }
430
+ function T(e, n) {
431
+ const t = {
432
+ ...n
433
+ };
434
+ for (const r in e)
435
+ if (Object.prototype.hasOwnProperty.call(e, r)) {
436
+ const o = r;
437
+ if (o === "components" || o === "slots")
438
+ t[o] = {
439
+ ...e[o],
440
+ ...t[o]
441
+ };
442
+ else if (o === "componentsProps" || o === "slotProps") {
443
+ const s = e[o], i = n[o];
444
+ if (!i)
445
+ t[o] = s || {};
446
+ else if (!s)
447
+ t[o] = i;
448
+ else {
449
+ t[o] = {
450
+ ...i
451
+ };
452
+ for (const a in s)
453
+ if (Object.prototype.hasOwnProperty.call(s, a)) {
454
+ const f = a;
455
+ t[o][f] = T(s[f], i[f]);
456
+ }
457
+ }
458
+ } else t[o] === void 0 && (t[o] = e[o]);
459
+ }
460
+ return t;
461
+ }
462
+ const Ce = /* @__PURE__ */ U.createContext(void 0);
463
+ process.env.NODE_ENV !== "production" && (A.node, A.object);
464
+ function Re(e) {
465
+ const {
466
+ theme: n,
467
+ name: t,
468
+ props: r
469
+ } = e;
470
+ if (!n || !n.components || !n.components[t])
471
+ return r;
472
+ const o = n.components[t];
473
+ return o.defaultProps ? T(o.defaultProps, r) : !o.styleOverrides && !o.variants ? T(o, r) : r;
474
+ }
475
+ function Ee({
476
+ props: e,
477
+ name: n
478
+ }) {
479
+ const t = U.useContext(Ce);
480
+ return Re({
481
+ props: e,
482
+ name: n,
483
+ theme: {
484
+ components: t
485
+ }
486
+ });
487
+ }
488
+ const H = {
489
+ theme: void 0
490
+ };
491
+ function Te(e) {
492
+ let n, t;
493
+ return function(o) {
494
+ let s = n;
495
+ return (s === void 0 || o.theme !== t) && (H.theme = o.theme, s = B(e(H)), n = s, t = o.theme), s;
496
+ };
497
+ }
498
+ const $e = fe(), Fe = "$$material";
499
+ function Ve(e) {
500
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
501
+ }
502
+ const Ie = (e) => Ve(e) && e !== "classes", We = Pe({
503
+ themeId: Fe,
504
+ defaultTheme: $e,
505
+ rootShouldForwardProp: Ie
506
+ }), He = Te;
507
+ process.env.NODE_ENV !== "production" && (A.node, A.object.isRequired);
508
+ function Ue(e) {
509
+ return Ee(e);
510
+ }
511
+ export {
512
+ ke as a,
513
+ Ie as b,
514
+ Ge as c,
515
+ Le as g,
516
+ He as m,
517
+ T as r,
518
+ We as s,
519
+ Ue as u
520
+ };