@hai-dev/ui-kit 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/README.md +73 -0
  2. package/dist/Button-BjNjCLw8.js +6428 -0
  3. package/dist/DialogTitle-1A3dJ174.js +3258 -0
  4. package/dist/assets/error-upload-dialog.css +1 -0
  5. package/dist/assets/photo-crop-uploader.css +1 -0
  6. package/dist/assets/upload-button.css +1 -0
  7. package/dist/assets/upload-dialog.css +1 -0
  8. package/dist/components/index.d.ts +1 -0
  9. package/dist/components/index.js +4 -0
  10. package/dist/components/photo-crop-uploader/components/error-upload-dialog/error-upload-dialog.d.ts +3 -0
  11. package/dist/components/photo-crop-uploader/components/error-upload-dialog/error-upload-dialog.js +33 -0
  12. package/dist/components/photo-crop-uploader/components/error-upload-dialog/index.d.ts +1 -0
  13. package/dist/components/photo-crop-uploader/components/error-upload-dialog/index.js +4 -0
  14. package/dist/components/photo-crop-uploader/components/error-upload-dialog/types.d.ts +9 -0
  15. package/dist/components/photo-crop-uploader/components/error-upload-dialog/types.js +1 -0
  16. package/dist/components/photo-crop-uploader/components/index.d.ts +3 -0
  17. package/dist/components/photo-crop-uploader/components/index.js +8 -0
  18. package/dist/components/photo-crop-uploader/components/upload-button/constants.d.ts +3 -0
  19. package/dist/components/photo-crop-uploader/components/upload-button/constants.js +6 -0
  20. package/dist/components/photo-crop-uploader/components/upload-button/index.d.ts +1 -0
  21. package/dist/components/photo-crop-uploader/components/upload-button/index.js +4 -0
  22. package/dist/components/photo-crop-uploader/components/upload-button/types.d.ts +12 -0
  23. package/dist/components/photo-crop-uploader/components/upload-button/types.js +1 -0
  24. package/dist/components/photo-crop-uploader/components/upload-button/upload-button.d.ts +3 -0
  25. package/dist/components/photo-crop-uploader/components/upload-button/upload-button.js +90 -0
  26. package/dist/components/photo-crop-uploader/components/upload-dialog/index.d.ts +1 -0
  27. package/dist/components/photo-crop-uploader/components/upload-dialog/index.js +4 -0
  28. package/dist/components/photo-crop-uploader/components/upload-dialog/types.d.ts +27 -0
  29. package/dist/components/photo-crop-uploader/components/upload-dialog/types.js +1 -0
  30. package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog.d.ts +3 -0
  31. package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog.js +123 -0
  32. package/dist/components/photo-crop-uploader/constants.d.ts +41 -0
  33. package/dist/components/photo-crop-uploader/constants.js +64 -0
  34. package/dist/components/photo-crop-uploader/errors/index.d.ts +2 -0
  35. package/dist/components/photo-crop-uploader/errors/index.js +6 -0
  36. package/dist/components/photo-crop-uploader/errors/photo-file.error.d.ts +7 -0
  37. package/dist/components/photo-crop-uploader/errors/photo-file.error.js +15 -0
  38. package/dist/components/photo-crop-uploader/errors/photo-size.error.d.ts +10 -0
  39. package/dist/components/photo-crop-uploader/errors/photo-size.error.js +19 -0
  40. package/dist/components/photo-crop-uploader/index.d.ts +1 -0
  41. package/dist/components/photo-crop-uploader/index.js +4 -0
  42. package/dist/components/photo-crop-uploader/locale.d.ts +2 -0
  43. package/dist/components/photo-crop-uploader/locale.js +47 -0
  44. package/dist/components/photo-crop-uploader/photo-crop-uploader.d.ts +3 -0
  45. package/dist/components/photo-crop-uploader/photo-crop-uploader.js +143 -0
  46. package/dist/components/photo-crop-uploader/photo-crop-uploder.stories.d.ts +7 -0
  47. package/dist/components/photo-crop-uploader/types.d.ts +33 -0
  48. package/dist/components/photo-crop-uploader/types.js +1 -0
  49. package/dist/components/photo-crop-uploader/utils/get-croped-photo.d.ts +4 -0
  50. package/dist/components/photo-crop-uploader/utils/get-croped-photo.js +26 -0
  51. package/dist/components/photo-crop-uploader/utils/get-photo-crop.d.ts +2 -0
  52. package/dist/components/photo-crop-uploader/utils/get-photo-crop.js +18 -0
  53. package/dist/components/photo-crop-uploader/utils/index.d.ts +4 -0
  54. package/dist/components/photo-crop-uploader/utils/index.js +10 -0
  55. package/dist/components/photo-crop-uploader/utils/read-photo.d.ts +3 -0
  56. package/dist/components/photo-crop-uploader/utils/read-photo.js +51 -0
  57. package/dist/components/photo-crop-uploader/utils/validate-photo-file.d.ts +3 -0
  58. package/dist/components/photo-crop-uploader/utils/validate-photo-file.js +24 -0
  59. package/dist/constants.d.ts +3 -0
  60. package/dist/constants.js +6 -0
  61. package/dist/index-BiffjjQq.js +431 -0
  62. package/dist/index.d.ts +5 -0
  63. package/dist/index.js +26 -0
  64. package/dist/types.d.ts +2 -0
  65. package/dist/types.js +1 -0
  66. package/package.json +73 -0
@@ -0,0 +1,3258 @@
1
+ import * as m from "react";
2
+ import te from "react";
3
+ import { e as dt, f as pt, i as ft, h as gt, T as yt, j as mt, k as ht, P as e, _ as bt, l as vt, m as et, n as W, g as V, u as H, o as j, p as Fe, b as A, q, r as ce, t as $e, v as ke, w as ue, x as U, y as Et, z as Be, A as Ue, D as Tt, E as xt } from "./Button-BjNjCLw8.js";
4
+ import { jsx as D, jsxs as tt } from "react/jsx-runtime";
5
+ function Ot(t) {
6
+ return Object.keys(t).length === 0;
7
+ }
8
+ function St(t = null) {
9
+ const n = m.useContext(dt);
10
+ return !n || Ot(n) ? t : n;
11
+ }
12
+ const Rt = pt();
13
+ function Dt(t = Rt) {
14
+ return St(t);
15
+ }
16
+ const Nt = (t) => {
17
+ const n = {
18
+ systemProps: {},
19
+ otherProps: {}
20
+ }, r = t?.theme?.unstable_sxConfig ?? gt;
21
+ return Object.keys(t).forEach((o) => {
22
+ r[o] ? n.systemProps[o] = t[o] : n.otherProps[o] = t[o];
23
+ }), n;
24
+ };
25
+ function Pt(t) {
26
+ const {
27
+ sx: n,
28
+ ...r
29
+ } = t, {
30
+ systemProps: o,
31
+ otherProps: a
32
+ } = Nt(r);
33
+ let i;
34
+ return Array.isArray(n) ? i = [o, ...n] : typeof n == "function" ? i = (...c) => {
35
+ const p = n(...c);
36
+ return ft(p) ? {
37
+ ...o,
38
+ ...p
39
+ } : o;
40
+ } : i = {
41
+ ...o,
42
+ ...n
43
+ }, {
44
+ ...a,
45
+ sx: i
46
+ };
47
+ }
48
+ const Ct = "exact-prop: ​";
49
+ function nt(t) {
50
+ return process.env.NODE_ENV === "production" ? t : {
51
+ ...t,
52
+ [Ct]: (n) => {
53
+ const r = Object.keys(n).filter((o) => !t.hasOwnProperty(o));
54
+ return r.length > 0 ? new Error(`The following props are not supported: ${r.map((o) => `\`${o}\``).join(", ")}. Please remove them.`) : null;
55
+ }
56
+ };
57
+ }
58
+ function _e() {
59
+ const t = Dt(mt);
60
+ return process.env.NODE_ENV !== "production" && m.useDebugValue(t), t[yt] || t;
61
+ }
62
+ function We(...t) {
63
+ return t.reduce((n, r) => r == null ? n : function(...a) {
64
+ n.apply(this, a), r.apply(this, a);
65
+ }, () => {
66
+ });
67
+ }
68
+ function wt() {
69
+ return Pt;
70
+ }
71
+ function X(t) {
72
+ return t && t.ownerDocument || document;
73
+ }
74
+ function he(t) {
75
+ return X(t).defaultView || window;
76
+ }
77
+ function Ve(t, n) {
78
+ typeof t == "function" ? t(n) : t && (t.current = n);
79
+ }
80
+ var ge = { exports: {} }, w = {};
81
+ /**
82
+ * @license React
83
+ * react-dom.production.js
84
+ *
85
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
86
+ *
87
+ * This source code is licensed under the MIT license found in the
88
+ * LICENSE file in the root directory of this source tree.
89
+ */
90
+ var He;
91
+ function kt() {
92
+ if (He) return w;
93
+ He = 1;
94
+ var t = te;
95
+ function n(d) {
96
+ var l = "https://react.dev/errors/" + d;
97
+ if (1 < arguments.length) {
98
+ l += "?args[]=" + encodeURIComponent(arguments[1]);
99
+ for (var g = 2; g < arguments.length; g++)
100
+ l += "&args[]=" + encodeURIComponent(arguments[g]);
101
+ }
102
+ return "Minified React error #" + d + "; visit " + l + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
103
+ }
104
+ function r() {
105
+ }
106
+ var o = {
107
+ d: {
108
+ f: r,
109
+ r: function() {
110
+ throw Error(n(522));
111
+ },
112
+ D: r,
113
+ C: r,
114
+ L: r,
115
+ m: r,
116
+ X: r,
117
+ S: r,
118
+ M: r
119
+ },
120
+ p: 0,
121
+ findDOMNode: null
122
+ }, a = Symbol.for("react.portal");
123
+ function i(d, l, g) {
124
+ var u = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
125
+ return {
126
+ $$typeof: a,
127
+ key: u == null ? null : "" + u,
128
+ children: d,
129
+ containerInfo: l,
130
+ implementation: g
131
+ };
132
+ }
133
+ var c = t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
134
+ function p(d, l) {
135
+ if (d === "font") return "";
136
+ if (typeof l == "string")
137
+ return l === "use-credentials" ? l : "";
138
+ }
139
+ return w.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = o, w.createPortal = function(d, l) {
140
+ var g = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
141
+ if (!l || l.nodeType !== 1 && l.nodeType !== 9 && l.nodeType !== 11)
142
+ throw Error(n(299));
143
+ return i(d, l, null, g);
144
+ }, w.flushSync = function(d) {
145
+ var l = c.T, g = o.p;
146
+ try {
147
+ if (c.T = null, o.p = 2, d) return d();
148
+ } finally {
149
+ c.T = l, o.p = g, o.d.f();
150
+ }
151
+ }, w.preconnect = function(d, l) {
152
+ typeof d == "string" && (l ? (l = l.crossOrigin, l = typeof l == "string" ? l === "use-credentials" ? l : "" : void 0) : l = null, o.d.C(d, l));
153
+ }, w.prefetchDNS = function(d) {
154
+ typeof d == "string" && o.d.D(d);
155
+ }, w.preinit = function(d, l) {
156
+ if (typeof d == "string" && l && typeof l.as == "string") {
157
+ var g = l.as, u = p(g, l.crossOrigin), s = typeof l.integrity == "string" ? l.integrity : void 0, f = typeof l.fetchPriority == "string" ? l.fetchPriority : void 0;
158
+ g === "style" ? o.d.S(
159
+ d,
160
+ typeof l.precedence == "string" ? l.precedence : void 0,
161
+ {
162
+ crossOrigin: u,
163
+ integrity: s,
164
+ fetchPriority: f
165
+ }
166
+ ) : g === "script" && o.d.X(d, {
167
+ crossOrigin: u,
168
+ integrity: s,
169
+ fetchPriority: f,
170
+ nonce: typeof l.nonce == "string" ? l.nonce : void 0
171
+ });
172
+ }
173
+ }, w.preinitModule = function(d, l) {
174
+ if (typeof d == "string")
175
+ if (typeof l == "object" && l !== null) {
176
+ if (l.as == null || l.as === "script") {
177
+ var g = p(
178
+ l.as,
179
+ l.crossOrigin
180
+ );
181
+ o.d.M(d, {
182
+ crossOrigin: g,
183
+ integrity: typeof l.integrity == "string" ? l.integrity : void 0,
184
+ nonce: typeof l.nonce == "string" ? l.nonce : void 0
185
+ });
186
+ }
187
+ } else l == null && o.d.M(d);
188
+ }, w.preload = function(d, l) {
189
+ if (typeof d == "string" && typeof l == "object" && l !== null && typeof l.as == "string") {
190
+ var g = l.as, u = p(g, l.crossOrigin);
191
+ o.d.L(d, g, {
192
+ crossOrigin: u,
193
+ integrity: typeof l.integrity == "string" ? l.integrity : void 0,
194
+ nonce: typeof l.nonce == "string" ? l.nonce : void 0,
195
+ type: typeof l.type == "string" ? l.type : void 0,
196
+ fetchPriority: typeof l.fetchPriority == "string" ? l.fetchPriority : void 0,
197
+ referrerPolicy: typeof l.referrerPolicy == "string" ? l.referrerPolicy : void 0,
198
+ imageSrcSet: typeof l.imageSrcSet == "string" ? l.imageSrcSet : void 0,
199
+ imageSizes: typeof l.imageSizes == "string" ? l.imageSizes : void 0,
200
+ media: typeof l.media == "string" ? l.media : void 0
201
+ });
202
+ }
203
+ }, w.preloadModule = function(d, l) {
204
+ if (typeof d == "string")
205
+ if (l) {
206
+ var g = p(l.as, l.crossOrigin);
207
+ o.d.m(d, {
208
+ as: typeof l.as == "string" && l.as !== "script" ? l.as : void 0,
209
+ crossOrigin: g,
210
+ integrity: typeof l.integrity == "string" ? l.integrity : void 0
211
+ });
212
+ } else o.d.m(d);
213
+ }, w.requestFormReset = function(d) {
214
+ o.d.r(d);
215
+ }, w.unstable_batchedUpdates = function(d, l) {
216
+ return d(l);
217
+ }, w.useFormState = function(d, l, g) {
218
+ return c.H.useFormState(d, l, g);
219
+ }, w.useFormStatus = function() {
220
+ return c.H.useHostTransitionStatus();
221
+ }, w.version = "19.1.1", w;
222
+ }
223
+ var k = {};
224
+ /**
225
+ * @license React
226
+ * react-dom.development.js
227
+ *
228
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
229
+ *
230
+ * This source code is licensed under the MIT license found in the
231
+ * LICENSE file in the root directory of this source tree.
232
+ */
233
+ var qe;
234
+ function _t() {
235
+ return qe || (qe = 1, process.env.NODE_ENV !== "production" && (function() {
236
+ function t() {
237
+ }
238
+ function n(u) {
239
+ return "" + u;
240
+ }
241
+ function r(u, s, f) {
242
+ var y = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
243
+ try {
244
+ n(y);
245
+ var E = !1;
246
+ } catch {
247
+ E = !0;
248
+ }
249
+ return E && (console.error(
250
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
251
+ typeof Symbol == "function" && Symbol.toStringTag && y[Symbol.toStringTag] || y.constructor.name || "Object"
252
+ ), n(y)), {
253
+ $$typeof: l,
254
+ key: y == null ? null : "" + y,
255
+ children: u,
256
+ containerInfo: s,
257
+ implementation: f
258
+ };
259
+ }
260
+ function o(u, s) {
261
+ if (u === "font") return "";
262
+ if (typeof s == "string")
263
+ return s === "use-credentials" ? s : "";
264
+ }
265
+ function a(u) {
266
+ return u === null ? "`null`" : u === void 0 ? "`undefined`" : u === "" ? "an empty string" : 'something with type "' + typeof u + '"';
267
+ }
268
+ function i(u) {
269
+ return u === null ? "`null`" : u === void 0 ? "`undefined`" : u === "" ? "an empty string" : typeof u == "string" ? JSON.stringify(u) : typeof u == "number" ? "`" + u + "`" : 'something with type "' + typeof u + '"';
270
+ }
271
+ function c() {
272
+ var u = g.H;
273
+ return u === null && console.error(
274
+ `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
275
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
276
+ 2. You might be breaking the Rules of Hooks
277
+ 3. You might have more than one copy of React in the same app
278
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
279
+ ), u;
280
+ }
281
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
282
+ var p = te, d = {
283
+ d: {
284
+ f: t,
285
+ r: function() {
286
+ throw Error(
287
+ "Invalid form element. requestFormReset must be passed a form that was rendered by React."
288
+ );
289
+ },
290
+ D: t,
291
+ C: t,
292
+ L: t,
293
+ m: t,
294
+ X: t,
295
+ S: t,
296
+ M: t
297
+ },
298
+ p: 0,
299
+ findDOMNode: null
300
+ }, l = Symbol.for("react.portal"), g = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
301
+ typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error(
302
+ "React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
303
+ ), k.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = d, k.createPortal = function(u, s) {
304
+ var f = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
305
+ if (!s || s.nodeType !== 1 && s.nodeType !== 9 && s.nodeType !== 11)
306
+ throw Error("Target container is not a DOM element.");
307
+ return r(u, s, null, f);
308
+ }, k.flushSync = function(u) {
309
+ var s = g.T, f = d.p;
310
+ try {
311
+ if (g.T = null, d.p = 2, u)
312
+ return u();
313
+ } finally {
314
+ g.T = s, d.p = f, d.d.f() && console.error(
315
+ "flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
316
+ );
317
+ }
318
+ }, k.preconnect = function(u, s) {
319
+ typeof u == "string" && u ? s != null && typeof s != "object" ? console.error(
320
+ "ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
321
+ i(s)
322
+ ) : s != null && typeof s.crossOrigin != "string" && console.error(
323
+ "ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
324
+ a(s.crossOrigin)
325
+ ) : console.error(
326
+ "ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
327
+ a(u)
328
+ ), typeof u == "string" && (s ? (s = s.crossOrigin, s = typeof s == "string" ? s === "use-credentials" ? s : "" : void 0) : s = null, d.d.C(u, s));
329
+ }, k.prefetchDNS = function(u) {
330
+ if (typeof u != "string" || !u)
331
+ console.error(
332
+ "ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
333
+ a(u)
334
+ );
335
+ else if (1 < arguments.length) {
336
+ var s = arguments[1];
337
+ typeof s == "object" && s.hasOwnProperty("crossOrigin") ? console.error(
338
+ "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
339
+ i(s)
340
+ ) : console.error(
341
+ "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
342
+ i(s)
343
+ );
344
+ }
345
+ typeof u == "string" && d.d.D(u);
346
+ }, k.preinit = function(u, s) {
347
+ if (typeof u == "string" && u ? s == null || typeof s != "object" ? console.error(
348
+ "ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
349
+ i(s)
350
+ ) : s.as !== "style" && s.as !== "script" && console.error(
351
+ 'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
352
+ i(s.as)
353
+ ) : console.error(
354
+ "ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
355
+ a(u)
356
+ ), typeof u == "string" && s && typeof s.as == "string") {
357
+ var f = s.as, y = o(f, s.crossOrigin), E = typeof s.integrity == "string" ? s.integrity : void 0, T = typeof s.fetchPriority == "string" ? s.fetchPriority : void 0;
358
+ f === "style" ? d.d.S(
359
+ u,
360
+ typeof s.precedence == "string" ? s.precedence : void 0,
361
+ {
362
+ crossOrigin: y,
363
+ integrity: E,
364
+ fetchPriority: T
365
+ }
366
+ ) : f === "script" && d.d.X(u, {
367
+ crossOrigin: y,
368
+ integrity: E,
369
+ fetchPriority: T,
370
+ nonce: typeof s.nonce == "string" ? s.nonce : void 0
371
+ });
372
+ }
373
+ }, k.preinitModule = function(u, s) {
374
+ var f = "";
375
+ if (typeof u == "string" && u || (f += " The `href` argument encountered was " + a(u) + "."), s !== void 0 && typeof s != "object" ? f += " The `options` argument encountered was " + a(s) + "." : s && "as" in s && s.as !== "script" && (f += " The `as` option encountered was " + i(s.as) + "."), f)
376
+ console.error(
377
+ "ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
378
+ f
379
+ );
380
+ else
381
+ switch (f = s && typeof s.as == "string" ? s.as : "script", f) {
382
+ case "script":
383
+ break;
384
+ default:
385
+ f = i(f), console.error(
386
+ 'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
387
+ f,
388
+ u
389
+ );
390
+ }
391
+ typeof u == "string" && (typeof s == "object" && s !== null ? (s.as == null || s.as === "script") && (f = o(
392
+ s.as,
393
+ s.crossOrigin
394
+ ), d.d.M(u, {
395
+ crossOrigin: f,
396
+ integrity: typeof s.integrity == "string" ? s.integrity : void 0,
397
+ nonce: typeof s.nonce == "string" ? s.nonce : void 0
398
+ })) : s == null && d.d.M(u));
399
+ }, k.preload = function(u, s) {
400
+ var f = "";
401
+ if (typeof u == "string" && u || (f += " The `href` argument encountered was " + a(u) + "."), s == null || typeof s != "object" ? f += " The `options` argument encountered was " + a(s) + "." : typeof s.as == "string" && s.as || (f += " The `as` option encountered was " + a(s.as) + "."), f && console.error(
402
+ 'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
403
+ f
404
+ ), typeof u == "string" && typeof s == "object" && s !== null && typeof s.as == "string") {
405
+ f = s.as;
406
+ var y = o(
407
+ f,
408
+ s.crossOrigin
409
+ );
410
+ d.d.L(u, f, {
411
+ crossOrigin: y,
412
+ integrity: typeof s.integrity == "string" ? s.integrity : void 0,
413
+ nonce: typeof s.nonce == "string" ? s.nonce : void 0,
414
+ type: typeof s.type == "string" ? s.type : void 0,
415
+ fetchPriority: typeof s.fetchPriority == "string" ? s.fetchPriority : void 0,
416
+ referrerPolicy: typeof s.referrerPolicy == "string" ? s.referrerPolicy : void 0,
417
+ imageSrcSet: typeof s.imageSrcSet == "string" ? s.imageSrcSet : void 0,
418
+ imageSizes: typeof s.imageSizes == "string" ? s.imageSizes : void 0,
419
+ media: typeof s.media == "string" ? s.media : void 0
420
+ });
421
+ }
422
+ }, k.preloadModule = function(u, s) {
423
+ var f = "";
424
+ typeof u == "string" && u || (f += " The `href` argument encountered was " + a(u) + "."), s !== void 0 && typeof s != "object" ? f += " The `options` argument encountered was " + a(s) + "." : s && "as" in s && typeof s.as != "string" && (f += " The `as` option encountered was " + a(s.as) + "."), f && console.error(
425
+ 'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
426
+ f
427
+ ), typeof u == "string" && (s ? (f = o(
428
+ s.as,
429
+ s.crossOrigin
430
+ ), d.d.m(u, {
431
+ as: typeof s.as == "string" && s.as !== "script" ? s.as : void 0,
432
+ crossOrigin: f,
433
+ integrity: typeof s.integrity == "string" ? s.integrity : void 0
434
+ })) : d.d.m(u));
435
+ }, k.requestFormReset = function(u) {
436
+ d.d.r(u);
437
+ }, k.unstable_batchedUpdates = function(u, s) {
438
+ return u(s);
439
+ }, k.useFormState = function(u, s, f) {
440
+ return c().useFormState(u, s, f);
441
+ }, k.useFormStatus = function() {
442
+ return c().useHostTransitionStatus();
443
+ }, k.version = "19.1.1", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
444
+ })()), k;
445
+ }
446
+ var Ke;
447
+ function Mt() {
448
+ if (Ke) return ge.exports;
449
+ Ke = 1;
450
+ function t() {
451
+ if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
452
+ if (process.env.NODE_ENV !== "production")
453
+ throw new Error("^_^");
454
+ try {
455
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t);
456
+ } catch (n) {
457
+ console.error(n);
458
+ }
459
+ }
460
+ }
461
+ return process.env.NODE_ENV === "production" ? (t(), ge.exports = kt()) : ge.exports = _t(), ge.exports;
462
+ }
463
+ var ot = Mt();
464
+ const ye = /* @__PURE__ */ ht(ot), Ge = {
465
+ disabled: !1
466
+ };
467
+ var At = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape({
468
+ enter: e.number,
469
+ exit: e.number,
470
+ appear: e.number
471
+ }).isRequired]) : null;
472
+ process.env.NODE_ENV !== "production" && e.oneOfType([e.string, e.shape({
473
+ enter: e.string,
474
+ exit: e.string,
475
+ active: e.string
476
+ }), e.shape({
477
+ enter: e.string,
478
+ enterDone: e.string,
479
+ enterActive: e.string,
480
+ exit: e.string,
481
+ exitDone: e.string,
482
+ exitActive: e.string
483
+ })]);
484
+ var jt = function(n) {
485
+ return n.scrollTop;
486
+ }, ae = "unmounted", z = "exited", Y = "entering", ee = "entered", Ce = "exiting", K = /* @__PURE__ */ (function(t) {
487
+ bt(n, t);
488
+ function n(o, a) {
489
+ var i;
490
+ i = t.call(this, o, a) || this;
491
+ var c = a, p = c && !c.isMounting ? o.enter : o.appear, d;
492
+ return i.appearStatus = null, o.in ? p ? (d = z, i.appearStatus = Y) : d = ee : o.unmountOnExit || o.mountOnEnter ? d = ae : d = z, i.state = {
493
+ status: d
494
+ }, i.nextCallback = null, i;
495
+ }
496
+ n.getDerivedStateFromProps = function(a, i) {
497
+ var c = a.in;
498
+ return c && i.status === ae ? {
499
+ status: z
500
+ } : null;
501
+ };
502
+ var r = n.prototype;
503
+ return r.componentDidMount = function() {
504
+ this.updateStatus(!0, this.appearStatus);
505
+ }, r.componentDidUpdate = function(a) {
506
+ var i = null;
507
+ if (a !== this.props) {
508
+ var c = this.state.status;
509
+ this.props.in ? c !== Y && c !== ee && (i = Y) : (c === Y || c === ee) && (i = Ce);
510
+ }
511
+ this.updateStatus(!1, i);
512
+ }, r.componentWillUnmount = function() {
513
+ this.cancelNextCallback();
514
+ }, r.getTimeouts = function() {
515
+ var a = this.props.timeout, i, c, p;
516
+ return i = c = p = a, a != null && typeof a != "number" && (i = a.exit, c = a.enter, p = a.appear !== void 0 ? a.appear : c), {
517
+ exit: i,
518
+ enter: c,
519
+ appear: p
520
+ };
521
+ }, r.updateStatus = function(a, i) {
522
+ if (a === void 0 && (a = !1), i !== null)
523
+ if (this.cancelNextCallback(), i === Y) {
524
+ if (this.props.unmountOnExit || this.props.mountOnEnter) {
525
+ var c = this.props.nodeRef ? this.props.nodeRef.current : ye.findDOMNode(this);
526
+ c && jt(c);
527
+ }
528
+ this.performEnter(a);
529
+ } else
530
+ this.performExit();
531
+ else this.props.unmountOnExit && this.state.status === z && this.setState({
532
+ status: ae
533
+ });
534
+ }, r.performEnter = function(a) {
535
+ var i = this, c = this.props.enter, p = this.context ? this.context.isMounting : a, d = this.props.nodeRef ? [p] : [ye.findDOMNode(this), p], l = d[0], g = d[1], u = this.getTimeouts(), s = p ? u.appear : u.enter;
536
+ if (!a && !c || Ge.disabled) {
537
+ this.safeSetState({
538
+ status: ee
539
+ }, function() {
540
+ i.props.onEntered(l);
541
+ });
542
+ return;
543
+ }
544
+ this.props.onEnter(l, g), this.safeSetState({
545
+ status: Y
546
+ }, function() {
547
+ i.props.onEntering(l, g), i.onTransitionEnd(s, function() {
548
+ i.safeSetState({
549
+ status: ee
550
+ }, function() {
551
+ i.props.onEntered(l, g);
552
+ });
553
+ });
554
+ });
555
+ }, r.performExit = function() {
556
+ var a = this, i = this.props.exit, c = this.getTimeouts(), p = this.props.nodeRef ? void 0 : ye.findDOMNode(this);
557
+ if (!i || Ge.disabled) {
558
+ this.safeSetState({
559
+ status: z
560
+ }, function() {
561
+ a.props.onExited(p);
562
+ });
563
+ return;
564
+ }
565
+ this.props.onExit(p), this.safeSetState({
566
+ status: Ce
567
+ }, function() {
568
+ a.props.onExiting(p), a.onTransitionEnd(c.exit, function() {
569
+ a.safeSetState({
570
+ status: z
571
+ }, function() {
572
+ a.props.onExited(p);
573
+ });
574
+ });
575
+ });
576
+ }, r.cancelNextCallback = function() {
577
+ this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
578
+ }, r.safeSetState = function(a, i) {
579
+ i = this.setNextCallback(i), this.setState(a, i);
580
+ }, r.setNextCallback = function(a) {
581
+ var i = this, c = !0;
582
+ return this.nextCallback = function(p) {
583
+ c && (c = !1, i.nextCallback = null, a(p));
584
+ }, this.nextCallback.cancel = function() {
585
+ c = !1;
586
+ }, this.nextCallback;
587
+ }, r.onTransitionEnd = function(a, i) {
588
+ this.setNextCallback(i);
589
+ var c = this.props.nodeRef ? this.props.nodeRef.current : ye.findDOMNode(this), p = a == null && !this.props.addEndListener;
590
+ if (!c || p) {
591
+ setTimeout(this.nextCallback, 0);
592
+ return;
593
+ }
594
+ if (this.props.addEndListener) {
595
+ var d = this.props.nodeRef ? [this.nextCallback] : [c, this.nextCallback], l = d[0], g = d[1];
596
+ this.props.addEndListener(l, g);
597
+ }
598
+ a != null && setTimeout(this.nextCallback, a);
599
+ }, r.render = function() {
600
+ var a = this.state.status;
601
+ if (a === ae)
602
+ return null;
603
+ var i = this.props, c = i.children;
604
+ i.in, i.mountOnEnter, i.unmountOnExit, i.appear, i.enter, i.exit, i.timeout, i.addEndListener, i.onEnter, i.onEntering, i.onEntered, i.onExit, i.onExiting, i.onExited, i.nodeRef;
605
+ var p = vt(i, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
606
+ return (
607
+ // allows for nested Transitions
608
+ /* @__PURE__ */ te.createElement(et.Provider, {
609
+ value: null
610
+ }, typeof c == "function" ? c(a, p) : te.cloneElement(te.Children.only(c), p))
611
+ );
612
+ }, n;
613
+ })(te.Component);
614
+ K.contextType = et;
615
+ K.propTypes = process.env.NODE_ENV !== "production" ? {
616
+ /**
617
+ * A React reference to DOM element that need to transition:
618
+ * https://stackoverflow.com/a/51127130/4671932
619
+ *
620
+ * - When `nodeRef` prop is used, `node` is not passed to callback functions
621
+ * (e.g. `onEnter`) because user already has direct access to the node.
622
+ * - When changing `key` prop of `Transition` in a `TransitionGroup` a new
623
+ * `nodeRef` need to be provided to `Transition` with changed `key` prop
624
+ * (see
625
+ * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
626
+ */
627
+ nodeRef: e.shape({
628
+ current: typeof Element > "u" ? e.any : function(t, n, r, o, a, i) {
629
+ var c = t[n];
630
+ return e.instanceOf(c && "ownerDocument" in c ? c.ownerDocument.defaultView.Element : Element)(t, n, r, o, a, i);
631
+ }
632
+ }),
633
+ /**
634
+ * A `function` child can be used instead of a React element. This function is
635
+ * called with the current transition status (`'entering'`, `'entered'`,
636
+ * `'exiting'`, `'exited'`), which can be used to apply context
637
+ * specific props to a component.
638
+ *
639
+ * ```jsx
640
+ * <Transition in={this.state.in} timeout={150}>
641
+ * {state => (
642
+ * <MyComponent className={`fade fade-${state}`} />
643
+ * )}
644
+ * </Transition>
645
+ * ```
646
+ */
647
+ children: e.oneOfType([e.func.isRequired, e.element.isRequired]).isRequired,
648
+ /**
649
+ * Show the component; triggers the enter or exit states
650
+ */
651
+ in: e.bool,
652
+ /**
653
+ * By default the child component is mounted immediately along with
654
+ * the parent `Transition` component. If you want to "lazy mount" the component on the
655
+ * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
656
+ * mounted, even on "exited", unless you also specify `unmountOnExit`.
657
+ */
658
+ mountOnEnter: e.bool,
659
+ /**
660
+ * By default the child component stays mounted after it reaches the `'exited'` state.
661
+ * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
662
+ */
663
+ unmountOnExit: e.bool,
664
+ /**
665
+ * By default the child component does not perform the enter transition when
666
+ * it first mounts, regardless of the value of `in`. If you want this
667
+ * behavior, set both `appear` and `in` to `true`.
668
+ *
669
+ * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
670
+ * > only adds an additional enter transition. However, in the
671
+ * > `<CSSTransition>` component that first enter transition does result in
672
+ * > additional `.appear-*` classes, that way you can choose to style it
673
+ * > differently.
674
+ */
675
+ appear: e.bool,
676
+ /**
677
+ * Enable or disable enter transitions.
678
+ */
679
+ enter: e.bool,
680
+ /**
681
+ * Enable or disable exit transitions.
682
+ */
683
+ exit: e.bool,
684
+ /**
685
+ * The duration of the transition, in milliseconds.
686
+ * Required unless `addEndListener` is provided.
687
+ *
688
+ * You may specify a single timeout for all transitions:
689
+ *
690
+ * ```jsx
691
+ * timeout={500}
692
+ * ```
693
+ *
694
+ * or individually:
695
+ *
696
+ * ```jsx
697
+ * timeout={{
698
+ * appear: 500,
699
+ * enter: 300,
700
+ * exit: 500,
701
+ * }}
702
+ * ```
703
+ *
704
+ * - `appear` defaults to the value of `enter`
705
+ * - `enter` defaults to `0`
706
+ * - `exit` defaults to `0`
707
+ *
708
+ * @type {number | { enter?: number, exit?: number, appear?: number }}
709
+ */
710
+ timeout: function(n) {
711
+ var r = At;
712
+ n.addEndListener || (r = r.isRequired);
713
+ for (var o = arguments.length, a = new Array(o > 1 ? o - 1 : 0), i = 1; i < o; i++)
714
+ a[i - 1] = arguments[i];
715
+ return r.apply(void 0, [n].concat(a));
716
+ },
717
+ /**
718
+ * Add a custom transition end trigger. Called with the transitioning
719
+ * DOM node and a `done` callback. Allows for more fine grained transition end
720
+ * logic. Timeouts are still used as a fallback if provided.
721
+ *
722
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
723
+ *
724
+ * ```jsx
725
+ * addEndListener={(node, done) => {
726
+ * // use the css transitionend event to mark the finish of a transition
727
+ * node.addEventListener('transitionend', done, false);
728
+ * }}
729
+ * ```
730
+ */
731
+ addEndListener: e.func,
732
+ /**
733
+ * Callback fired before the "entering" status is applied. An extra parameter
734
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
735
+ *
736
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
737
+ *
738
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
739
+ */
740
+ onEnter: e.func,
741
+ /**
742
+ * Callback fired after the "entering" status is applied. An extra parameter
743
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
744
+ *
745
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
746
+ *
747
+ * @type Function(node: HtmlElement, isAppearing: bool)
748
+ */
749
+ onEntering: e.func,
750
+ /**
751
+ * Callback fired after the "entered" status is applied. An extra parameter
752
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
753
+ *
754
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
755
+ *
756
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
757
+ */
758
+ onEntered: e.func,
759
+ /**
760
+ * Callback fired before the "exiting" status is applied.
761
+ *
762
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
763
+ *
764
+ * @type Function(node: HtmlElement) -> void
765
+ */
766
+ onExit: e.func,
767
+ /**
768
+ * Callback fired after the "exiting" status is applied.
769
+ *
770
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
771
+ *
772
+ * @type Function(node: HtmlElement) -> void
773
+ */
774
+ onExiting: e.func,
775
+ /**
776
+ * Callback fired after the "exited" status is applied.
777
+ *
778
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
779
+ *
780
+ * @type Function(node: HtmlElement) -> void
781
+ */
782
+ onExited: e.func
783
+ } : {};
784
+ function Q() {
785
+ }
786
+ K.defaultProps = {
787
+ in: !1,
788
+ mountOnEnter: !1,
789
+ unmountOnExit: !1,
790
+ appear: !1,
791
+ enter: !0,
792
+ exit: !0,
793
+ onEnter: Q,
794
+ onEntering: Q,
795
+ onEntered: Q,
796
+ onExit: Q,
797
+ onExiting: Q,
798
+ onExited: Q
799
+ };
800
+ K.UNMOUNTED = ae;
801
+ K.EXITED = z;
802
+ K.ENTERING = Y;
803
+ K.ENTERED = ee;
804
+ K.EXITING = Ce;
805
+ const It = (t) => t.scrollTop;
806
+ function ze(t, n) {
807
+ const {
808
+ timeout: r,
809
+ easing: o,
810
+ style: a = {}
811
+ } = t;
812
+ return {
813
+ duration: a.transitionDuration ?? (typeof r == "number" ? r : r[n.mode] || 0),
814
+ easing: a.transitionTimingFunction ?? (typeof o == "object" ? o[n.mode] : o),
815
+ delay: a.transitionDelay
816
+ };
817
+ }
818
+ function Lt(t) {
819
+ const n = typeof t;
820
+ switch (n) {
821
+ case "number":
822
+ return Number.isNaN(t) ? "NaN" : Number.isFinite(t) ? t !== Math.floor(t) ? "float" : "number" : "Infinity";
823
+ case "object":
824
+ return t === null ? "null" : t.constructor.name;
825
+ default:
826
+ return n;
827
+ }
828
+ }
829
+ function rt(t, n, r, o) {
830
+ const a = t[n];
831
+ if (a == null || !Number.isInteger(a)) {
832
+ const i = Lt(a);
833
+ return new RangeError(`Invalid ${o} \`${n}\` of type \`${i}\` supplied to \`${r}\`, expected \`integer\`.`);
834
+ }
835
+ return null;
836
+ }
837
+ function it(t, n, r, o) {
838
+ return t[n] === void 0 ? null : rt(t, n, r, o);
839
+ }
840
+ function we() {
841
+ return null;
842
+ }
843
+ it.isRequired = rt;
844
+ we.isRequired = we;
845
+ const Ft = process.env.NODE_ENV === "production" ? we : it;
846
+ function $t(t) {
847
+ return W("MuiPaper", t);
848
+ }
849
+ V("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
850
+ const Bt = (t) => {
851
+ const {
852
+ square: n,
853
+ elevation: r,
854
+ variant: o,
855
+ classes: a
856
+ } = t, i = {
857
+ root: ["root", o, !n && "rounded", o === "elevation" && `elevation${r}`]
858
+ };
859
+ return q(i, $t, a);
860
+ }, Ut = j("div", {
861
+ name: "MuiPaper",
862
+ slot: "Root",
863
+ overridesResolver: (t, n) => {
864
+ const {
865
+ ownerState: r
866
+ } = t;
867
+ return [n.root, n[r.variant], !r.square && n.rounded, r.variant === "elevation" && n[`elevation${r.elevation}`]];
868
+ }
869
+ })(ce(({
870
+ theme: t
871
+ }) => ({
872
+ backgroundColor: (t.vars || t).palette.background.paper,
873
+ color: (t.vars || t).palette.text.primary,
874
+ transition: t.transitions.create("box-shadow"),
875
+ variants: [{
876
+ props: ({
877
+ ownerState: n
878
+ }) => !n.square,
879
+ style: {
880
+ borderRadius: t.shape.borderRadius
881
+ }
882
+ }, {
883
+ props: {
884
+ variant: "outlined"
885
+ },
886
+ style: {
887
+ border: `1px solid ${(t.vars || t).palette.divider}`
888
+ }
889
+ }, {
890
+ props: {
891
+ variant: "elevation"
892
+ },
893
+ style: {
894
+ boxShadow: "var(--Paper-shadow)",
895
+ backgroundImage: "var(--Paper-overlay)"
896
+ }
897
+ }]
898
+ }))), Me = /* @__PURE__ */ m.forwardRef(function(n, r) {
899
+ const o = H({
900
+ props: n,
901
+ name: "MuiPaper"
902
+ }), a = _e(), {
903
+ className: i,
904
+ component: c = "div",
905
+ elevation: p = 1,
906
+ square: d = !1,
907
+ variant: l = "elevation",
908
+ ...g
909
+ } = o, u = {
910
+ ...o,
911
+ component: c,
912
+ elevation: p,
913
+ square: d,
914
+ variant: l
915
+ }, s = Bt(u);
916
+ return process.env.NODE_ENV !== "production" && a.shadows[p] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${p}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${p}]\` is defined.`].join(`
917
+ `)), /* @__PURE__ */ D(Ut, {
918
+ as: c,
919
+ ownerState: u,
920
+ className: A(s.root, i),
921
+ ref: r,
922
+ ...g,
923
+ style: {
924
+ ...l === "elevation" && {
925
+ "--Paper-shadow": (a.vars || a).shadows[p],
926
+ ...a.vars && {
927
+ "--Paper-overlay": a.vars.overlays?.[p]
928
+ },
929
+ ...!a.vars && a.palette.mode === "dark" && {
930
+ "--Paper-overlay": `linear-gradient(${Fe("#fff", $e(p))}, ${Fe("#fff", $e(p))})`
931
+ }
932
+ },
933
+ ...g.style
934
+ }
935
+ });
936
+ });
937
+ process.env.NODE_ENV !== "production" && (Me.propTypes = {
938
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
939
+ // │ These PropTypes are generated from the TypeScript type definitions. │
940
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
941
+ // └─────────────────────────────────────────────────────────────────────┘
942
+ /**
943
+ * The content of the component.
944
+ */
945
+ children: e.node,
946
+ /**
947
+ * Override or extend the styles applied to the component.
948
+ */
949
+ classes: e.object,
950
+ /**
951
+ * @ignore
952
+ */
953
+ className: e.string,
954
+ /**
955
+ * The component used for the root node.
956
+ * Either a string to use a HTML element or a component.
957
+ */
958
+ component: e.elementType,
959
+ /**
960
+ * Shadow depth, corresponds to `dp` in the spec.
961
+ * It accepts values between 0 and 24 inclusive.
962
+ * @default 1
963
+ */
964
+ elevation: ke(Ft, (t) => {
965
+ const {
966
+ elevation: n,
967
+ variant: r
968
+ } = t;
969
+ return n > 0 && r === "outlined" ? new Error(`MUI: Combining \`elevation={${n}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null;
970
+ }),
971
+ /**
972
+ * If `true`, rounded corners are disabled.
973
+ * @default false
974
+ */
975
+ square: e.bool,
976
+ /**
977
+ * @ignore
978
+ */
979
+ style: e.object,
980
+ /**
981
+ * The system prop that allows defining system overrides as well as additional CSS styles.
982
+ */
983
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
984
+ /**
985
+ * The variant to use.
986
+ * @default 'elevation'
987
+ */
988
+ variant: e.oneOfType([e.oneOf(["elevation", "outlined"]), e.string])
989
+ });
990
+ function Wt(t) {
991
+ return typeof t == "string";
992
+ }
993
+ function Vt(t, n, r) {
994
+ return t === void 0 || Wt(t) ? n : {
995
+ ...n,
996
+ ownerState: {
997
+ ...n.ownerState,
998
+ ...r
999
+ }
1000
+ };
1001
+ }
1002
+ function Ht(t, n, r) {
1003
+ return typeof t == "function" ? t(n, r) : t;
1004
+ }
1005
+ function st(t, n = []) {
1006
+ if (t === void 0)
1007
+ return {};
1008
+ const r = {};
1009
+ return Object.keys(t).filter((o) => o.match(/^on[A-Z]/) && typeof t[o] == "function" && !n.includes(o)).forEach((o) => {
1010
+ r[o] = t[o];
1011
+ }), r;
1012
+ }
1013
+ function Ye(t) {
1014
+ if (t === void 0)
1015
+ return {};
1016
+ const n = {};
1017
+ return Object.keys(t).filter((r) => !(r.match(/^on[A-Z]/) && typeof t[r] == "function")).forEach((r) => {
1018
+ n[r] = t[r];
1019
+ }), n;
1020
+ }
1021
+ function qt(t) {
1022
+ const {
1023
+ getSlotProps: n,
1024
+ additionalProps: r,
1025
+ externalSlotProps: o,
1026
+ externalForwardedProps: a,
1027
+ className: i
1028
+ } = t;
1029
+ if (!n) {
1030
+ const f = A(r?.className, i, a?.className, o?.className), y = {
1031
+ ...r?.style,
1032
+ ...a?.style,
1033
+ ...o?.style
1034
+ }, E = {
1035
+ ...r,
1036
+ ...a,
1037
+ ...o
1038
+ };
1039
+ return f.length > 0 && (E.className = f), Object.keys(y).length > 0 && (E.style = y), {
1040
+ props: E,
1041
+ internalRef: void 0
1042
+ };
1043
+ }
1044
+ const c = st({
1045
+ ...a,
1046
+ ...o
1047
+ }), p = Ye(o), d = Ye(a), l = n(c), g = A(l?.className, r?.className, i, a?.className, o?.className), u = {
1048
+ ...l?.style,
1049
+ ...r?.style,
1050
+ ...a?.style,
1051
+ ...o?.style
1052
+ }, s = {
1053
+ ...l,
1054
+ ...r,
1055
+ ...d,
1056
+ ...p
1057
+ };
1058
+ return g.length > 0 && (s.className = g), Object.keys(u).length > 0 && (s.style = u), {
1059
+ props: s,
1060
+ internalRef: l.ref
1061
+ };
1062
+ }
1063
+ function B(t, n) {
1064
+ const {
1065
+ className: r,
1066
+ elementType: o,
1067
+ ownerState: a,
1068
+ externalForwardedProps: i,
1069
+ internalForwardedProps: c,
1070
+ shouldForwardComponentProp: p = !1,
1071
+ ...d
1072
+ } = n, {
1073
+ component: l,
1074
+ slots: g = {
1075
+ [t]: void 0
1076
+ },
1077
+ slotProps: u = {
1078
+ [t]: void 0
1079
+ },
1080
+ ...s
1081
+ } = i, f = g[t] || o, y = Ht(u[t], a), {
1082
+ props: {
1083
+ component: E,
1084
+ ...T
1085
+ },
1086
+ internalRef: S
1087
+ } = qt({
1088
+ className: r,
1089
+ ...d,
1090
+ externalForwardedProps: t === "root" ? s : void 0,
1091
+ externalSlotProps: y
1092
+ }), R = ue(S, y?.ref, n.ref), h = t === "root" ? E || l : E, x = Vt(f, {
1093
+ ...t === "root" && !l && !g[t] && c,
1094
+ ...t !== "root" && !g[t] && c,
1095
+ ...T,
1096
+ ...h && !p && {
1097
+ as: h
1098
+ },
1099
+ ...h && p && {
1100
+ component: h
1101
+ },
1102
+ ref: R
1103
+ }, a);
1104
+ return [f, x];
1105
+ }
1106
+ function Kt(t) {
1107
+ return W("MuiTypography", t);
1108
+ }
1109
+ V("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
1110
+ const Gt = {
1111
+ primary: !0,
1112
+ secondary: !0,
1113
+ error: !0,
1114
+ info: !0,
1115
+ success: !0,
1116
+ warning: !0,
1117
+ textPrimary: !0,
1118
+ textSecondary: !0,
1119
+ textDisabled: !0
1120
+ }, zt = wt(), Yt = (t) => {
1121
+ const {
1122
+ align: n,
1123
+ gutterBottom: r,
1124
+ noWrap: o,
1125
+ paragraph: a,
1126
+ variant: i,
1127
+ classes: c
1128
+ } = t, p = {
1129
+ root: ["root", i, t.align !== "inherit" && `align${U(n)}`, r && "gutterBottom", o && "noWrap", a && "paragraph"]
1130
+ };
1131
+ return q(p, Kt, c);
1132
+ }, Xt = j("span", {
1133
+ name: "MuiTypography",
1134
+ slot: "Root",
1135
+ overridesResolver: (t, n) => {
1136
+ const {
1137
+ ownerState: r
1138
+ } = t;
1139
+ return [n.root, r.variant && n[r.variant], r.align !== "inherit" && n[`align${U(r.align)}`], r.noWrap && n.noWrap, r.gutterBottom && n.gutterBottom, r.paragraph && n.paragraph];
1140
+ }
1141
+ })(ce(({
1142
+ theme: t
1143
+ }) => ({
1144
+ margin: 0,
1145
+ variants: [{
1146
+ props: {
1147
+ variant: "inherit"
1148
+ },
1149
+ style: {
1150
+ // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
1151
+ font: "inherit",
1152
+ lineHeight: "inherit",
1153
+ letterSpacing: "inherit"
1154
+ }
1155
+ }, ...Object.entries(t.typography).filter(([n, r]) => n !== "inherit" && r && typeof r == "object").map(([n, r]) => ({
1156
+ props: {
1157
+ variant: n
1158
+ },
1159
+ style: r
1160
+ })), ...Object.entries(t.palette).filter(Et()).map(([n]) => ({
1161
+ props: {
1162
+ color: n
1163
+ },
1164
+ style: {
1165
+ color: (t.vars || t).palette[n].main
1166
+ }
1167
+ })), ...Object.entries(t.palette?.text || {}).filter(([, n]) => typeof n == "string").map(([n]) => ({
1168
+ props: {
1169
+ color: `text${U(n)}`
1170
+ },
1171
+ style: {
1172
+ color: (t.vars || t).palette.text[n]
1173
+ }
1174
+ })), {
1175
+ props: ({
1176
+ ownerState: n
1177
+ }) => n.align !== "inherit",
1178
+ style: {
1179
+ textAlign: "var(--Typography-textAlign)"
1180
+ }
1181
+ }, {
1182
+ props: ({
1183
+ ownerState: n
1184
+ }) => n.noWrap,
1185
+ style: {
1186
+ overflow: "hidden",
1187
+ textOverflow: "ellipsis",
1188
+ whiteSpace: "nowrap"
1189
+ }
1190
+ }, {
1191
+ props: ({
1192
+ ownerState: n
1193
+ }) => n.gutterBottom,
1194
+ style: {
1195
+ marginBottom: "0.35em"
1196
+ }
1197
+ }, {
1198
+ props: ({
1199
+ ownerState: n
1200
+ }) => n.paragraph,
1201
+ style: {
1202
+ marginBottom: 16
1203
+ }
1204
+ }]
1205
+ }))), Xe = {
1206
+ h1: "h1",
1207
+ h2: "h2",
1208
+ h3: "h3",
1209
+ h4: "h4",
1210
+ h5: "h5",
1211
+ h6: "h6",
1212
+ subtitle1: "h6",
1213
+ subtitle2: "h6",
1214
+ body1: "p",
1215
+ body2: "p",
1216
+ inherit: "p"
1217
+ }, Ae = /* @__PURE__ */ m.forwardRef(function(n, r) {
1218
+ const {
1219
+ color: o,
1220
+ ...a
1221
+ } = H({
1222
+ props: n,
1223
+ name: "MuiTypography"
1224
+ }), i = !Gt[o], c = zt({
1225
+ ...a,
1226
+ ...i && {
1227
+ color: o
1228
+ }
1229
+ }), {
1230
+ align: p = "inherit",
1231
+ className: d,
1232
+ component: l,
1233
+ gutterBottom: g = !1,
1234
+ noWrap: u = !1,
1235
+ paragraph: s = !1,
1236
+ variant: f = "body1",
1237
+ variantMapping: y = Xe,
1238
+ ...E
1239
+ } = c, T = {
1240
+ ...c,
1241
+ align: p,
1242
+ color: o,
1243
+ className: d,
1244
+ component: l,
1245
+ gutterBottom: g,
1246
+ noWrap: u,
1247
+ paragraph: s,
1248
+ variant: f,
1249
+ variantMapping: y
1250
+ }, S = l || (s ? "p" : y[f] || Xe[f]) || "span", R = Yt(T);
1251
+ return /* @__PURE__ */ D(Xt, {
1252
+ as: S,
1253
+ ref: r,
1254
+ className: A(R.root, d),
1255
+ ...E,
1256
+ ownerState: T,
1257
+ style: {
1258
+ ...p !== "inherit" && {
1259
+ "--Typography-textAlign": p
1260
+ },
1261
+ ...E.style
1262
+ }
1263
+ });
1264
+ });
1265
+ process.env.NODE_ENV !== "production" && (Ae.propTypes = {
1266
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
1267
+ // │ These PropTypes are generated from the TypeScript type definitions. │
1268
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1269
+ // └─────────────────────────────────────────────────────────────────────┘
1270
+ /**
1271
+ * Set the text-align on the component.
1272
+ * @default 'inherit'
1273
+ */
1274
+ align: e.oneOf(["center", "inherit", "justify", "left", "right"]),
1275
+ /**
1276
+ * The content of the component.
1277
+ */
1278
+ children: e.node,
1279
+ /**
1280
+ * Override or extend the styles applied to the component.
1281
+ */
1282
+ classes: e.object,
1283
+ /**
1284
+ * @ignore
1285
+ */
1286
+ className: e.string,
1287
+ /**
1288
+ * The color of the component.
1289
+ * It supports both default and custom theme colors, which can be added as shown in the
1290
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
1291
+ */
1292
+ color: e.oneOfType([e.oneOf(["primary", "secondary", "success", "error", "info", "warning", "textPrimary", "textSecondary", "textDisabled"]), e.string]),
1293
+ /**
1294
+ * The component used for the root node.
1295
+ * Either a string to use a HTML element or a component.
1296
+ */
1297
+ component: e.elementType,
1298
+ /**
1299
+ * If `true`, the text will have a bottom margin.
1300
+ * @default false
1301
+ */
1302
+ gutterBottom: e.bool,
1303
+ /**
1304
+ * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
1305
+ *
1306
+ * Note that text overflow can only happen with block or inline-block level elements
1307
+ * (the element needs to have a width in order to overflow).
1308
+ * @default false
1309
+ */
1310
+ noWrap: e.bool,
1311
+ /**
1312
+ * If `true`, the element will be a paragraph element.
1313
+ * @default false
1314
+ * @deprecated Use the `component` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1315
+ */
1316
+ paragraph: e.bool,
1317
+ /**
1318
+ * @ignore
1319
+ */
1320
+ style: e.object,
1321
+ /**
1322
+ * The system prop that allows defining system overrides as well as additional CSS styles.
1323
+ */
1324
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1325
+ /**
1326
+ * Applies the theme typography styles.
1327
+ * @default 'body1'
1328
+ */
1329
+ variant: e.oneOfType([e.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), e.string]),
1330
+ /**
1331
+ * The component maps the variant prop to a range of different HTML element types.
1332
+ * For instance, subtitle1 to `<h6>`.
1333
+ * If you wish to change that mapping, you can provide your own.
1334
+ * Alternatively, you can use the `component` prop.
1335
+ * @default {
1336
+ * h1: 'h1',
1337
+ * h2: 'h2',
1338
+ * h3: 'h3',
1339
+ * h4: 'h4',
1340
+ * h5: 'h5',
1341
+ * h6: 'h6',
1342
+ * subtitle1: 'h6',
1343
+ * subtitle2: 'h6',
1344
+ * body1: 'p',
1345
+ * body2: 'p',
1346
+ * inherit: 'p',
1347
+ * }
1348
+ */
1349
+ variantMapping: e.object
1350
+ });
1351
+ function at(t, n, r, o, a) {
1352
+ if (process.env.NODE_ENV === "production")
1353
+ return null;
1354
+ const i = t[n], c = a || n;
1355
+ return i == null ? null : i && i.nodeType !== 1 ? new Error(`Invalid ${o} \`${c}\` supplied to \`${r}\`. Expected an HTMLElement.`) : null;
1356
+ }
1357
+ function je(t) {
1358
+ return parseInt(m.version, 10) >= 19 ? t?.props?.ref || null : t?.ref || null;
1359
+ }
1360
+ function Zt(t) {
1361
+ return typeof t == "function" ? t() : t;
1362
+ }
1363
+ const be = /* @__PURE__ */ m.forwardRef(function(n, r) {
1364
+ const {
1365
+ children: o,
1366
+ container: a,
1367
+ disablePortal: i = !1
1368
+ } = n, [c, p] = m.useState(null), d = ue(/* @__PURE__ */ m.isValidElement(o) ? je(o) : null, r);
1369
+ if (Be(() => {
1370
+ i || p(Zt(a) || document.body);
1371
+ }, [a, i]), Be(() => {
1372
+ if (c && !i)
1373
+ return Ve(r, c), () => {
1374
+ Ve(r, null);
1375
+ };
1376
+ }, [r, c, i]), i) {
1377
+ if (/* @__PURE__ */ m.isValidElement(o)) {
1378
+ const l = {
1379
+ ref: d
1380
+ };
1381
+ return /* @__PURE__ */ m.cloneElement(o, l);
1382
+ }
1383
+ return o;
1384
+ }
1385
+ return c && /* @__PURE__ */ ot.createPortal(o, c);
1386
+ });
1387
+ process.env.NODE_ENV !== "production" && (be.propTypes = {
1388
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
1389
+ // │ These PropTypes are generated from the TypeScript type definitions. │
1390
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
1391
+ // └─────────────────────────────────────────────────────────────────────┘
1392
+ /**
1393
+ * The children to render into the `container`.
1394
+ */
1395
+ children: e.node,
1396
+ /**
1397
+ * An HTML element or function that returns one.
1398
+ * The `container` will have the portal children appended to it.
1399
+ *
1400
+ * You can also provide a callback, which is called in a React layout effect.
1401
+ * This lets you set the container from a ref, and also makes server-side rendering possible.
1402
+ *
1403
+ * By default, it uses the body of the top-level document object,
1404
+ * so it's simply `document.body` most of the time.
1405
+ */
1406
+ container: e.oneOfType([at, e.func]),
1407
+ /**
1408
+ * The `children` will be under the DOM hierarchy of the parent component.
1409
+ * @default false
1410
+ */
1411
+ disablePortal: e.bool
1412
+ });
1413
+ process.env.NODE_ENV !== "production" && (be.propTypes = nt(be.propTypes));
1414
+ function Jt(t) {
1415
+ const {
1416
+ prototype: n = {}
1417
+ } = t;
1418
+ return !!n.isReactComponent;
1419
+ }
1420
+ function lt(t, n, r, o, a) {
1421
+ const i = t[n], c = a || n;
1422
+ if (i == null || // When server-side rendering React doesn't warn either.
1423
+ // This is not an accurate check for SSR.
1424
+ // This is only in place for Emotion compat.
1425
+ // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
1426
+ typeof window > "u")
1427
+ return null;
1428
+ let p;
1429
+ const d = i.type;
1430
+ return typeof d == "function" && !Jt(d) && (p = "Did you accidentally use a plain function component for an element instead?"), p !== void 0 ? new Error(`Invalid ${o} \`${c}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${p} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
1431
+ }
1432
+ const Te = ke(e.element, lt);
1433
+ Te.isRequired = ke(e.element.isRequired, lt);
1434
+ const Qt = {
1435
+ entering: {
1436
+ opacity: 1
1437
+ },
1438
+ entered: {
1439
+ opacity: 1
1440
+ }
1441
+ }, ve = /* @__PURE__ */ m.forwardRef(function(n, r) {
1442
+ const o = _e(), a = {
1443
+ enter: o.transitions.duration.enteringScreen,
1444
+ exit: o.transitions.duration.leavingScreen
1445
+ }, {
1446
+ addEndListener: i,
1447
+ appear: c = !0,
1448
+ children: p,
1449
+ easing: d,
1450
+ in: l,
1451
+ onEnter: g,
1452
+ onEntered: u,
1453
+ onEntering: s,
1454
+ onExit: f,
1455
+ onExited: y,
1456
+ onExiting: E,
1457
+ style: T,
1458
+ timeout: S = a,
1459
+ // eslint-disable-next-line react/prop-types
1460
+ TransitionComponent: R = K,
1461
+ ...h
1462
+ } = n, x = m.useRef(null), P = ue(x, je(p), r), C = (O) => (v) => {
1463
+ if (O) {
1464
+ const b = x.current;
1465
+ v === void 0 ? O(b) : O(b, v);
1466
+ }
1467
+ }, N = C(s), _ = C((O, v) => {
1468
+ It(O);
1469
+ const b = ze({
1470
+ style: T,
1471
+ timeout: S,
1472
+ easing: d
1473
+ }, {
1474
+ mode: "enter"
1475
+ });
1476
+ O.style.webkitTransition = o.transitions.create("opacity", b), O.style.transition = o.transitions.create("opacity", b), g && g(O, v);
1477
+ }), M = C(u), I = C(E), F = C((O) => {
1478
+ const v = ze({
1479
+ style: T,
1480
+ timeout: S,
1481
+ easing: d
1482
+ }, {
1483
+ mode: "exit"
1484
+ });
1485
+ O.style.webkitTransition = o.transitions.create("opacity", v), O.style.transition = o.transitions.create("opacity", v), f && f(O);
1486
+ }), ne = C(y);
1487
+ return /* @__PURE__ */ D(R, {
1488
+ appear: c,
1489
+ in: l,
1490
+ nodeRef: x,
1491
+ onEnter: _,
1492
+ onEntered: M,
1493
+ onEntering: N,
1494
+ onExit: F,
1495
+ onExited: ne,
1496
+ onExiting: I,
1497
+ addEndListener: (O) => {
1498
+ i && i(x.current, O);
1499
+ },
1500
+ timeout: S,
1501
+ ...h,
1502
+ children: (O, {
1503
+ ownerState: v,
1504
+ ...b
1505
+ }) => /* @__PURE__ */ m.cloneElement(p, {
1506
+ style: {
1507
+ opacity: 0,
1508
+ visibility: O === "exited" && !l ? "hidden" : void 0,
1509
+ ...Qt[O],
1510
+ ...T,
1511
+ ...p.props.style
1512
+ },
1513
+ ref: P,
1514
+ ...b
1515
+ })
1516
+ });
1517
+ });
1518
+ process.env.NODE_ENV !== "production" && (ve.propTypes = {
1519
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
1520
+ // │ These PropTypes are generated from the TypeScript type definitions. │
1521
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1522
+ // └─────────────────────────────────────────────────────────────────────┘
1523
+ /**
1524
+ * Add a custom transition end trigger. Called with the transitioning DOM
1525
+ * node and a done callback. Allows for more fine grained transition end
1526
+ * logic. Note: Timeouts are still used as a fallback if provided.
1527
+ */
1528
+ addEndListener: e.func,
1529
+ /**
1530
+ * Perform the enter transition when it first mounts if `in` is also `true`.
1531
+ * Set this to `false` to disable this behavior.
1532
+ * @default true
1533
+ */
1534
+ appear: e.bool,
1535
+ /**
1536
+ * A single child content element.
1537
+ */
1538
+ children: Te.isRequired,
1539
+ /**
1540
+ * The transition timing function.
1541
+ * You may specify a single easing or a object containing enter and exit values.
1542
+ */
1543
+ easing: e.oneOfType([e.shape({
1544
+ enter: e.string,
1545
+ exit: e.string
1546
+ }), e.string]),
1547
+ /**
1548
+ * If `true`, the component will transition in.
1549
+ */
1550
+ in: e.bool,
1551
+ /**
1552
+ * @ignore
1553
+ */
1554
+ onEnter: e.func,
1555
+ /**
1556
+ * @ignore
1557
+ */
1558
+ onEntered: e.func,
1559
+ /**
1560
+ * @ignore
1561
+ */
1562
+ onEntering: e.func,
1563
+ /**
1564
+ * @ignore
1565
+ */
1566
+ onExit: e.func,
1567
+ /**
1568
+ * @ignore
1569
+ */
1570
+ onExited: e.func,
1571
+ /**
1572
+ * @ignore
1573
+ */
1574
+ onExiting: e.func,
1575
+ /**
1576
+ * @ignore
1577
+ */
1578
+ style: e.object,
1579
+ /**
1580
+ * The duration for the transition, in milliseconds.
1581
+ * You may specify a single timeout for all transitions, or individually with an object.
1582
+ * @default {
1583
+ * enter: theme.transitions.duration.enteringScreen,
1584
+ * exit: theme.transitions.duration.leavingScreen,
1585
+ * }
1586
+ */
1587
+ timeout: e.oneOfType([e.number, e.shape({
1588
+ appear: e.number,
1589
+ enter: e.number,
1590
+ exit: e.number
1591
+ })])
1592
+ });
1593
+ function en(t) {
1594
+ return W("MuiBackdrop", t);
1595
+ }
1596
+ V("MuiBackdrop", ["root", "invisible"]);
1597
+ const tn = (t) => {
1598
+ const {
1599
+ classes: n,
1600
+ invisible: r
1601
+ } = t;
1602
+ return q({
1603
+ root: ["root", r && "invisible"]
1604
+ }, en, n);
1605
+ }, nn = j("div", {
1606
+ name: "MuiBackdrop",
1607
+ slot: "Root",
1608
+ overridesResolver: (t, n) => {
1609
+ const {
1610
+ ownerState: r
1611
+ } = t;
1612
+ return [n.root, r.invisible && n.invisible];
1613
+ }
1614
+ })({
1615
+ position: "fixed",
1616
+ display: "flex",
1617
+ alignItems: "center",
1618
+ justifyContent: "center",
1619
+ right: 0,
1620
+ bottom: 0,
1621
+ top: 0,
1622
+ left: 0,
1623
+ backgroundColor: "rgba(0, 0, 0, 0.5)",
1624
+ WebkitTapHighlightColor: "transparent",
1625
+ variants: [{
1626
+ props: {
1627
+ invisible: !0
1628
+ },
1629
+ style: {
1630
+ backgroundColor: "transparent"
1631
+ }
1632
+ }]
1633
+ }), Ie = /* @__PURE__ */ m.forwardRef(function(n, r) {
1634
+ const o = H({
1635
+ props: n,
1636
+ name: "MuiBackdrop"
1637
+ }), {
1638
+ children: a,
1639
+ className: i,
1640
+ component: c = "div",
1641
+ invisible: p = !1,
1642
+ open: d,
1643
+ components: l = {},
1644
+ componentsProps: g = {},
1645
+ slotProps: u = {},
1646
+ slots: s = {},
1647
+ TransitionComponent: f,
1648
+ transitionDuration: y,
1649
+ ...E
1650
+ } = o, T = {
1651
+ ...o,
1652
+ component: c,
1653
+ invisible: p
1654
+ }, S = tn(T), R = {
1655
+ transition: f,
1656
+ root: l.Root,
1657
+ ...s
1658
+ }, h = {
1659
+ ...g,
1660
+ ...u
1661
+ }, x = {
1662
+ component: c,
1663
+ slots: R,
1664
+ slotProps: h
1665
+ }, [P, C] = B("root", {
1666
+ elementType: nn,
1667
+ externalForwardedProps: x,
1668
+ className: A(S.root, i),
1669
+ ownerState: T
1670
+ }), [N, _] = B("transition", {
1671
+ elementType: ve,
1672
+ externalForwardedProps: x,
1673
+ ownerState: T
1674
+ });
1675
+ return /* @__PURE__ */ D(N, {
1676
+ in: d,
1677
+ timeout: y,
1678
+ ...E,
1679
+ ..._,
1680
+ children: /* @__PURE__ */ D(P, {
1681
+ "aria-hidden": !0,
1682
+ ...C,
1683
+ classes: S,
1684
+ ref: r,
1685
+ children: a
1686
+ })
1687
+ });
1688
+ });
1689
+ process.env.NODE_ENV !== "production" && (Ie.propTypes = {
1690
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
1691
+ // │ These PropTypes are generated from the TypeScript type definitions. │
1692
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1693
+ // └─────────────────────────────────────────────────────────────────────┘
1694
+ /**
1695
+ * The content of the component.
1696
+ */
1697
+ children: e.node,
1698
+ /**
1699
+ * Override or extend the styles applied to the component.
1700
+ */
1701
+ classes: e.object,
1702
+ /**
1703
+ * @ignore
1704
+ */
1705
+ className: e.string,
1706
+ /**
1707
+ * The component used for the root node.
1708
+ * Either a string to use a HTML element or a component.
1709
+ */
1710
+ component: e.elementType,
1711
+ /**
1712
+ * The components used for each slot inside.
1713
+ *
1714
+ * @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1715
+ *
1716
+ * @default {}
1717
+ */
1718
+ components: e.shape({
1719
+ Root: e.elementType
1720
+ }),
1721
+ /**
1722
+ * The extra props for the slot components.
1723
+ * You can override the existing props or add new ones.
1724
+ *
1725
+ * @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1726
+ *
1727
+ * @default {}
1728
+ */
1729
+ componentsProps: e.shape({
1730
+ root: e.object
1731
+ }),
1732
+ /**
1733
+ * If `true`, the backdrop is invisible.
1734
+ * It can be used when rendering a popover or a custom select component.
1735
+ * @default false
1736
+ */
1737
+ invisible: e.bool,
1738
+ /**
1739
+ * If `true`, the component is shown.
1740
+ */
1741
+ open: e.bool.isRequired,
1742
+ /**
1743
+ * The props used for each slot inside.
1744
+ * @default {}
1745
+ */
1746
+ slotProps: e.shape({
1747
+ root: e.oneOfType([e.func, e.object]),
1748
+ transition: e.oneOfType([e.func, e.object])
1749
+ }),
1750
+ /**
1751
+ * The components used for each slot inside.
1752
+ * @default {}
1753
+ */
1754
+ slots: e.shape({
1755
+ root: e.elementType,
1756
+ transition: e.elementType
1757
+ }),
1758
+ /**
1759
+ * The system prop that allows defining system overrides as well as additional CSS styles.
1760
+ */
1761
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1762
+ /**
1763
+ * The component used for the transition.
1764
+ * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
1765
+ * @default Fade
1766
+ * @deprecated Use `slots.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1767
+ */
1768
+ TransitionComponent: e.elementType,
1769
+ /**
1770
+ * The duration for the transition, in milliseconds.
1771
+ * You may specify a single timeout for all transitions, or individually with an object.
1772
+ */
1773
+ transitionDuration: e.oneOfType([e.number, e.shape({
1774
+ appear: e.number,
1775
+ enter: e.number,
1776
+ exit: e.number
1777
+ })])
1778
+ });
1779
+ function on(t = window) {
1780
+ const n = t.document.documentElement.clientWidth;
1781
+ return t.innerWidth - n;
1782
+ }
1783
+ function rn(t) {
1784
+ const n = X(t);
1785
+ return n.body === t ? he(t).innerWidth > n.documentElement.clientWidth : t.scrollHeight > t.clientHeight;
1786
+ }
1787
+ function le(t, n) {
1788
+ n ? t.setAttribute("aria-hidden", "true") : t.removeAttribute("aria-hidden");
1789
+ }
1790
+ function Ze(t) {
1791
+ return parseInt(he(t).getComputedStyle(t).paddingRight, 10) || 0;
1792
+ }
1793
+ function sn(t) {
1794
+ const r = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].includes(t.tagName), o = t.tagName === "INPUT" && t.getAttribute("type") === "hidden";
1795
+ return r || o;
1796
+ }
1797
+ function Je(t, n, r, o, a) {
1798
+ const i = [n, r, ...o];
1799
+ [].forEach.call(t.children, (c) => {
1800
+ const p = !i.includes(c), d = !sn(c);
1801
+ p && d && le(c, a);
1802
+ });
1803
+ }
1804
+ function Ne(t, n) {
1805
+ let r = -1;
1806
+ return t.some((o, a) => n(o) ? (r = a, !0) : !1), r;
1807
+ }
1808
+ function an(t, n) {
1809
+ const r = [], o = t.container;
1810
+ if (!n.disableScrollLock) {
1811
+ if (rn(o)) {
1812
+ const c = on(he(o));
1813
+ r.push({
1814
+ value: o.style.paddingRight,
1815
+ property: "padding-right",
1816
+ el: o
1817
+ }), o.style.paddingRight = `${Ze(o) + c}px`;
1818
+ const p = X(o).querySelectorAll(".mui-fixed");
1819
+ [].forEach.call(p, (d) => {
1820
+ r.push({
1821
+ value: d.style.paddingRight,
1822
+ property: "padding-right",
1823
+ el: d
1824
+ }), d.style.paddingRight = `${Ze(d) + c}px`;
1825
+ });
1826
+ }
1827
+ let i;
1828
+ if (o.parentNode instanceof DocumentFragment)
1829
+ i = X(o).body;
1830
+ else {
1831
+ const c = o.parentElement, p = he(o);
1832
+ i = c?.nodeName === "HTML" && p.getComputedStyle(c).overflowY === "scroll" ? c : o;
1833
+ }
1834
+ r.push({
1835
+ value: i.style.overflow,
1836
+ property: "overflow",
1837
+ el: i
1838
+ }, {
1839
+ value: i.style.overflowX,
1840
+ property: "overflow-x",
1841
+ el: i
1842
+ }, {
1843
+ value: i.style.overflowY,
1844
+ property: "overflow-y",
1845
+ el: i
1846
+ }), i.style.overflow = "hidden";
1847
+ }
1848
+ return () => {
1849
+ r.forEach(({
1850
+ value: i,
1851
+ el: c,
1852
+ property: p
1853
+ }) => {
1854
+ i ? c.style.setProperty(p, i) : c.style.removeProperty(p);
1855
+ });
1856
+ };
1857
+ }
1858
+ function ln(t) {
1859
+ const n = [];
1860
+ return [].forEach.call(t.children, (r) => {
1861
+ r.getAttribute("aria-hidden") === "true" && n.push(r);
1862
+ }), n;
1863
+ }
1864
+ class cn {
1865
+ constructor() {
1866
+ this.modals = [], this.containers = [];
1867
+ }
1868
+ add(n, r) {
1869
+ let o = this.modals.indexOf(n);
1870
+ if (o !== -1)
1871
+ return o;
1872
+ o = this.modals.length, this.modals.push(n), n.modalRef && le(n.modalRef, !1);
1873
+ const a = ln(r);
1874
+ Je(r, n.mount, n.modalRef, a, !0);
1875
+ const i = Ne(this.containers, (c) => c.container === r);
1876
+ return i !== -1 ? (this.containers[i].modals.push(n), o) : (this.containers.push({
1877
+ modals: [n],
1878
+ container: r,
1879
+ restore: null,
1880
+ hiddenSiblings: a
1881
+ }), o);
1882
+ }
1883
+ mount(n, r) {
1884
+ const o = Ne(this.containers, (i) => i.modals.includes(n)), a = this.containers[o];
1885
+ a.restore || (a.restore = an(a, r));
1886
+ }
1887
+ remove(n, r = !0) {
1888
+ const o = this.modals.indexOf(n);
1889
+ if (o === -1)
1890
+ return o;
1891
+ const a = Ne(this.containers, (c) => c.modals.includes(n)), i = this.containers[a];
1892
+ if (i.modals.splice(i.modals.indexOf(n), 1), this.modals.splice(o, 1), i.modals.length === 0)
1893
+ i.restore && i.restore(), n.modalRef && le(n.modalRef, r), Je(i.container, n.mount, n.modalRef, i.hiddenSiblings, !1), this.containers.splice(a, 1);
1894
+ else {
1895
+ const c = i.modals[i.modals.length - 1];
1896
+ c.modalRef && le(c.modalRef, !1);
1897
+ }
1898
+ return o;
1899
+ }
1900
+ isTopModal(n) {
1901
+ return this.modals.length > 0 && this.modals[this.modals.length - 1] === n;
1902
+ }
1903
+ }
1904
+ const un = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
1905
+ function dn(t) {
1906
+ const n = parseInt(t.getAttribute("tabindex") || "", 10);
1907
+ return Number.isNaN(n) ? t.contentEditable === "true" || (t.nodeName === "AUDIO" || t.nodeName === "VIDEO" || t.nodeName === "DETAILS") && t.getAttribute("tabindex") === null ? 0 : t.tabIndex : n;
1908
+ }
1909
+ function pn(t) {
1910
+ if (t.tagName !== "INPUT" || t.type !== "radio" || !t.name)
1911
+ return !1;
1912
+ const n = (o) => t.ownerDocument.querySelector(`input[type="radio"]${o}`);
1913
+ let r = n(`[name="${t.name}"]:checked`);
1914
+ return r || (r = n(`[name="${t.name}"]`)), r !== t;
1915
+ }
1916
+ function fn(t) {
1917
+ return !(t.disabled || t.tagName === "INPUT" && t.type === "hidden" || pn(t));
1918
+ }
1919
+ function gn(t) {
1920
+ const n = [], r = [];
1921
+ return Array.from(t.querySelectorAll(un)).forEach((o, a) => {
1922
+ const i = dn(o);
1923
+ i === -1 || !fn(o) || (i === 0 ? n.push(o) : r.push({
1924
+ documentOrder: a,
1925
+ tabIndex: i,
1926
+ node: o
1927
+ }));
1928
+ }), r.sort((o, a) => o.tabIndex === a.tabIndex ? o.documentOrder - a.documentOrder : o.tabIndex - a.tabIndex).map((o) => o.node).concat(n);
1929
+ }
1930
+ function yn() {
1931
+ return !0;
1932
+ }
1933
+ function Ee(t) {
1934
+ const {
1935
+ children: n,
1936
+ disableAutoFocus: r = !1,
1937
+ disableEnforceFocus: o = !1,
1938
+ disableRestoreFocus: a = !1,
1939
+ getTabbable: i = gn,
1940
+ isEnabled: c = yn,
1941
+ open: p
1942
+ } = t, d = m.useRef(!1), l = m.useRef(null), g = m.useRef(null), u = m.useRef(null), s = m.useRef(null), f = m.useRef(!1), y = m.useRef(null), E = ue(je(n), y), T = m.useRef(null);
1943
+ m.useEffect(() => {
1944
+ !p || !y.current || (f.current = !r);
1945
+ }, [r, p]), m.useEffect(() => {
1946
+ if (!p || !y.current)
1947
+ return;
1948
+ const h = X(y.current);
1949
+ return y.current.contains(h.activeElement) || (y.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
1950
+ `)), y.current.setAttribute("tabIndex", "-1")), f.current && y.current.focus()), () => {
1951
+ a || (u.current && u.current.focus && (d.current = !0, u.current.focus()), u.current = null);
1952
+ };
1953
+ }, [p]), m.useEffect(() => {
1954
+ if (!p || !y.current)
1955
+ return;
1956
+ const h = X(y.current), x = (N) => {
1957
+ T.current = N, !(o || !c() || N.key !== "Tab") && h.activeElement === y.current && N.shiftKey && (d.current = !0, g.current && g.current.focus());
1958
+ }, P = () => {
1959
+ const N = y.current;
1960
+ if (N === null)
1961
+ return;
1962
+ if (!h.hasFocus() || !c() || d.current) {
1963
+ d.current = !1;
1964
+ return;
1965
+ }
1966
+ if (N.contains(h.activeElement) || o && h.activeElement !== l.current && h.activeElement !== g.current)
1967
+ return;
1968
+ if (h.activeElement !== s.current)
1969
+ s.current = null;
1970
+ else if (s.current !== null)
1971
+ return;
1972
+ if (!f.current)
1973
+ return;
1974
+ let _ = [];
1975
+ if ((h.activeElement === l.current || h.activeElement === g.current) && (_ = i(y.current)), _.length > 0) {
1976
+ const M = !!(T.current?.shiftKey && T.current?.key === "Tab"), I = _[0], F = _[_.length - 1];
1977
+ typeof I != "string" && typeof F != "string" && (M ? F.focus() : I.focus());
1978
+ } else
1979
+ N.focus();
1980
+ };
1981
+ h.addEventListener("focusin", P), h.addEventListener("keydown", x, !0);
1982
+ const C = setInterval(() => {
1983
+ h.activeElement && h.activeElement.tagName === "BODY" && P();
1984
+ }, 50);
1985
+ return () => {
1986
+ clearInterval(C), h.removeEventListener("focusin", P), h.removeEventListener("keydown", x, !0);
1987
+ };
1988
+ }, [r, o, a, c, p, i]);
1989
+ const S = (h) => {
1990
+ u.current === null && (u.current = h.relatedTarget), f.current = !0, s.current = h.target;
1991
+ const x = n.props.onFocus;
1992
+ x && x(h);
1993
+ }, R = (h) => {
1994
+ u.current === null && (u.current = h.relatedTarget), f.current = !0;
1995
+ };
1996
+ return /* @__PURE__ */ tt(m.Fragment, {
1997
+ children: [/* @__PURE__ */ D("div", {
1998
+ tabIndex: p ? 0 : -1,
1999
+ onFocus: R,
2000
+ ref: l,
2001
+ "data-testid": "sentinelStart"
2002
+ }), /* @__PURE__ */ m.cloneElement(n, {
2003
+ ref: E,
2004
+ onFocus: S
2005
+ }), /* @__PURE__ */ D("div", {
2006
+ tabIndex: p ? 0 : -1,
2007
+ onFocus: R,
2008
+ ref: g,
2009
+ "data-testid": "sentinelEnd"
2010
+ })]
2011
+ });
2012
+ }
2013
+ process.env.NODE_ENV !== "production" && (Ee.propTypes = {
2014
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
2015
+ // │ These PropTypes are generated from the TypeScript type definitions. │
2016
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
2017
+ // └─────────────────────────────────────────────────────────────────────┘
2018
+ /**
2019
+ * A single child content element.
2020
+ */
2021
+ children: Te,
2022
+ /**
2023
+ * If `true`, the focus trap will not automatically shift focus to itself when it opens, and
2024
+ * replace it to the last focused element when it closes.
2025
+ * This also works correctly with any focus trap children that have the `disableAutoFocus` prop.
2026
+ *
2027
+ * Generally this should never be set to `true` as it makes the focus trap less
2028
+ * accessible to assistive technologies, like screen readers.
2029
+ * @default false
2030
+ */
2031
+ disableAutoFocus: e.bool,
2032
+ /**
2033
+ * If `true`, the focus trap will not prevent focus from leaving the focus trap while open.
2034
+ *
2035
+ * Generally this should never be set to `true` as it makes the focus trap less
2036
+ * accessible to assistive technologies, like screen readers.
2037
+ * @default false
2038
+ */
2039
+ disableEnforceFocus: e.bool,
2040
+ /**
2041
+ * If `true`, the focus trap will not restore focus to previously focused element once
2042
+ * focus trap is hidden or unmounted.
2043
+ * @default false
2044
+ */
2045
+ disableRestoreFocus: e.bool,
2046
+ /**
2047
+ * Returns an array of ordered tabbable nodes (i.e. in tab order) within the root.
2048
+ * For instance, you can provide the "tabbable" npm dependency.
2049
+ * @param {HTMLElement} root
2050
+ */
2051
+ getTabbable: e.func,
2052
+ /**
2053
+ * This prop extends the `open` prop.
2054
+ * It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.
2055
+ * This prop should be memoized.
2056
+ * It can be used to support multiple focus trap mounted at the same time.
2057
+ * @default function defaultIsEnabled(): boolean {
2058
+ * return true;
2059
+ * }
2060
+ */
2061
+ isEnabled: e.func,
2062
+ /**
2063
+ * If `true`, focus is locked.
2064
+ */
2065
+ open: e.bool.isRequired
2066
+ });
2067
+ process.env.NODE_ENV !== "production" && (Ee.propTypes = nt(Ee.propTypes));
2068
+ function mn(t) {
2069
+ return typeof t == "function" ? t() : t;
2070
+ }
2071
+ function hn(t) {
2072
+ return t ? t.props.hasOwnProperty("in") : !1;
2073
+ }
2074
+ const Qe = () => {
2075
+ }, me = new cn();
2076
+ function bn(t) {
2077
+ const {
2078
+ container: n,
2079
+ disableEscapeKeyDown: r = !1,
2080
+ disableScrollLock: o = !1,
2081
+ closeAfterTransition: a = !1,
2082
+ onTransitionEnter: i,
2083
+ onTransitionExited: c,
2084
+ children: p,
2085
+ onClose: d,
2086
+ open: l,
2087
+ rootRef: g
2088
+ } = t, u = m.useRef({}), s = m.useRef(null), f = m.useRef(null), y = ue(f, g), [E, T] = m.useState(!l), S = hn(p);
2089
+ let R = !0;
2090
+ (t["aria-hidden"] === "false" || t["aria-hidden"] === !1) && (R = !1);
2091
+ const h = () => X(s.current), x = () => (u.current.modalRef = f.current, u.current.mount = s.current, u.current), P = () => {
2092
+ me.mount(x(), {
2093
+ disableScrollLock: o
2094
+ }), f.current && (f.current.scrollTop = 0);
2095
+ }, C = Ue(() => {
2096
+ const v = mn(n) || h().body;
2097
+ me.add(x(), v), f.current && P();
2098
+ }), N = () => me.isTopModal(x()), _ = Ue((v) => {
2099
+ s.current = v, v && (l && N() ? P() : f.current && le(f.current, R));
2100
+ }), M = m.useCallback(() => {
2101
+ me.remove(x(), R);
2102
+ }, [R]);
2103
+ m.useEffect(() => () => {
2104
+ M();
2105
+ }, [M]), m.useEffect(() => {
2106
+ l ? C() : (!S || !a) && M();
2107
+ }, [l, M, S, a, C]);
2108
+ const I = (v) => (b) => {
2109
+ v.onKeyDown?.(b), !(b.key !== "Escape" || b.which === 229 || // Wait until IME is settled.
2110
+ !N()) && (r || (b.stopPropagation(), d && d(b, "escapeKeyDown")));
2111
+ }, F = (v) => (b) => {
2112
+ v.onClick?.(b), b.target === b.currentTarget && d && d(b, "backdropClick");
2113
+ };
2114
+ return {
2115
+ getRootProps: (v = {}) => {
2116
+ const b = st(t);
2117
+ delete b.onTransitionEnter, delete b.onTransitionExited;
2118
+ const Z = {
2119
+ ...b,
2120
+ ...v
2121
+ };
2122
+ return {
2123
+ /*
2124
+ * Marking an element with the role presentation indicates to assistive technology
2125
+ * that this element should be ignored; it exists to support the web application and
2126
+ * is not meant for humans to interact with directly.
2127
+ * https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md
2128
+ */
2129
+ role: "presentation",
2130
+ ...Z,
2131
+ onKeyDown: I(Z),
2132
+ ref: y
2133
+ };
2134
+ },
2135
+ getBackdropProps: (v = {}) => {
2136
+ const b = v;
2137
+ return {
2138
+ "aria-hidden": !0,
2139
+ ...b,
2140
+ onClick: F(b),
2141
+ open: l
2142
+ };
2143
+ },
2144
+ getTransitionProps: () => {
2145
+ const v = () => {
2146
+ T(!1), i && i();
2147
+ }, b = () => {
2148
+ T(!0), c && c(), a && M();
2149
+ };
2150
+ return {
2151
+ onEnter: We(v, p?.props.onEnter ?? Qe),
2152
+ onExited: We(b, p?.props.onExited ?? Qe)
2153
+ };
2154
+ },
2155
+ rootRef: y,
2156
+ portalRef: _,
2157
+ isTopModal: N,
2158
+ exited: E,
2159
+ hasTransition: S
2160
+ };
2161
+ }
2162
+ function vn(t) {
2163
+ return W("MuiModal", t);
2164
+ }
2165
+ V("MuiModal", ["root", "hidden", "backdrop"]);
2166
+ const En = (t) => {
2167
+ const {
2168
+ open: n,
2169
+ exited: r,
2170
+ classes: o
2171
+ } = t;
2172
+ return q({
2173
+ root: ["root", !n && r && "hidden"],
2174
+ backdrop: ["backdrop"]
2175
+ }, vn, o);
2176
+ }, Tn = j("div", {
2177
+ name: "MuiModal",
2178
+ slot: "Root",
2179
+ overridesResolver: (t, n) => {
2180
+ const {
2181
+ ownerState: r
2182
+ } = t;
2183
+ return [n.root, !r.open && r.exited && n.hidden];
2184
+ }
2185
+ })(ce(({
2186
+ theme: t
2187
+ }) => ({
2188
+ position: "fixed",
2189
+ zIndex: (t.vars || t).zIndex.modal,
2190
+ right: 0,
2191
+ bottom: 0,
2192
+ top: 0,
2193
+ left: 0,
2194
+ variants: [{
2195
+ props: ({
2196
+ ownerState: n
2197
+ }) => !n.open && n.exited,
2198
+ style: {
2199
+ visibility: "hidden"
2200
+ }
2201
+ }]
2202
+ }))), xn = j(Ie, {
2203
+ name: "MuiModal",
2204
+ slot: "Backdrop"
2205
+ })({
2206
+ zIndex: -1
2207
+ }), ct = /* @__PURE__ */ m.forwardRef(function(n, r) {
2208
+ const o = H({
2209
+ name: "MuiModal",
2210
+ props: n
2211
+ }), {
2212
+ BackdropComponent: a = xn,
2213
+ BackdropProps: i,
2214
+ classes: c,
2215
+ className: p,
2216
+ closeAfterTransition: d = !1,
2217
+ children: l,
2218
+ container: g,
2219
+ component: u,
2220
+ components: s = {},
2221
+ componentsProps: f = {},
2222
+ disableAutoFocus: y = !1,
2223
+ disableEnforceFocus: E = !1,
2224
+ disableEscapeKeyDown: T = !1,
2225
+ disablePortal: S = !1,
2226
+ disableRestoreFocus: R = !1,
2227
+ disableScrollLock: h = !1,
2228
+ hideBackdrop: x = !1,
2229
+ keepMounted: P = !1,
2230
+ onClose: C,
2231
+ onTransitionEnter: N,
2232
+ onTransitionExited: _,
2233
+ open: M,
2234
+ slotProps: I = {},
2235
+ slots: F = {},
2236
+ // eslint-disable-next-line react/prop-types
2237
+ theme: ne,
2238
+ ...$
2239
+ } = o, O = {
2240
+ ...o,
2241
+ closeAfterTransition: d,
2242
+ disableAutoFocus: y,
2243
+ disableEnforceFocus: E,
2244
+ disableEscapeKeyDown: T,
2245
+ disablePortal: S,
2246
+ disableRestoreFocus: R,
2247
+ disableScrollLock: h,
2248
+ hideBackdrop: x,
2249
+ keepMounted: P
2250
+ }, {
2251
+ getRootProps: v,
2252
+ getBackdropProps: b,
2253
+ getTransitionProps: Z,
2254
+ portalRef: oe,
2255
+ isTopModal: xe,
2256
+ exited: de,
2257
+ hasTransition: pe
2258
+ } = bn({
2259
+ ...O,
2260
+ rootRef: r
2261
+ }), L = {
2262
+ ...O,
2263
+ exited: de
2264
+ }, re = En(L), J = {};
2265
+ if (l.props.tabIndex === void 0 && (J.tabIndex = "-1"), pe) {
2266
+ const {
2267
+ onEnter: G,
2268
+ onExited: ie
2269
+ } = Z();
2270
+ J.onEnter = G, J.onExited = ie;
2271
+ }
2272
+ const fe = {
2273
+ slots: {
2274
+ root: s.Root,
2275
+ backdrop: s.Backdrop,
2276
+ ...F
2277
+ },
2278
+ slotProps: {
2279
+ ...f,
2280
+ ...I
2281
+ }
2282
+ }, [Oe, Se] = B("root", {
2283
+ ref: r,
2284
+ elementType: Tn,
2285
+ externalForwardedProps: {
2286
+ ...fe,
2287
+ ...$,
2288
+ component: u
2289
+ },
2290
+ getSlotProps: v,
2291
+ ownerState: L,
2292
+ className: A(p, re?.root, !L.open && L.exited && re?.hidden)
2293
+ }), [Re, De] = B("backdrop", {
2294
+ ref: i?.ref,
2295
+ elementType: a,
2296
+ externalForwardedProps: fe,
2297
+ shouldForwardComponentProp: !0,
2298
+ additionalProps: i,
2299
+ getSlotProps: (G) => b({
2300
+ ...G,
2301
+ onClick: (ie) => {
2302
+ G?.onClick && G.onClick(ie);
2303
+ }
2304
+ }),
2305
+ className: A(i?.className, re?.backdrop),
2306
+ ownerState: L
2307
+ });
2308
+ return !P && !M && (!pe || de) ? null : /* @__PURE__ */ D(be, {
2309
+ ref: oe,
2310
+ container: g,
2311
+ disablePortal: S,
2312
+ children: /* @__PURE__ */ tt(Oe, {
2313
+ ...Se,
2314
+ children: [!x && a ? /* @__PURE__ */ D(Re, {
2315
+ ...De
2316
+ }) : null, /* @__PURE__ */ D(Ee, {
2317
+ disableEnforceFocus: E,
2318
+ disableAutoFocus: y,
2319
+ disableRestoreFocus: R,
2320
+ isEnabled: xe,
2321
+ open: M,
2322
+ children: /* @__PURE__ */ m.cloneElement(l, J)
2323
+ })]
2324
+ })
2325
+ });
2326
+ });
2327
+ process.env.NODE_ENV !== "production" && (ct.propTypes = {
2328
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
2329
+ // │ These PropTypes are generated from the TypeScript type definitions. │
2330
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
2331
+ // └─────────────────────────────────────────────────────────────────────┘
2332
+ /**
2333
+ * A backdrop component. This prop enables custom backdrop rendering.
2334
+ * @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
2335
+ * Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
2336
+ * @default styled(Backdrop, {
2337
+ * name: 'MuiModal',
2338
+ * slot: 'Backdrop',
2339
+ * })({
2340
+ * zIndex: -1,
2341
+ * })
2342
+ */
2343
+ BackdropComponent: e.elementType,
2344
+ /**
2345
+ * Props applied to the [`Backdrop`](https://mui.com/material-ui/api/backdrop/) element.
2346
+ * @deprecated Use `slotProps.backdrop` instead.
2347
+ */
2348
+ BackdropProps: e.object,
2349
+ /**
2350
+ * A single child content element.
2351
+ */
2352
+ children: Te.isRequired,
2353
+ /**
2354
+ * Override or extend the styles applied to the component.
2355
+ */
2356
+ classes: e.object,
2357
+ /**
2358
+ * @ignore
2359
+ */
2360
+ className: e.string,
2361
+ /**
2362
+ * When set to true the Modal waits until a nested Transition is completed before closing.
2363
+ * @default false
2364
+ */
2365
+ closeAfterTransition: e.bool,
2366
+ /**
2367
+ * The component used for the root node.
2368
+ * Either a string to use a HTML element or a component.
2369
+ */
2370
+ component: e.elementType,
2371
+ /**
2372
+ * The components used for each slot inside.
2373
+ *
2374
+ * @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2375
+ *
2376
+ * @default {}
2377
+ */
2378
+ components: e.shape({
2379
+ Backdrop: e.elementType,
2380
+ Root: e.elementType
2381
+ }),
2382
+ /**
2383
+ * The extra props for the slot components.
2384
+ * You can override the existing props or add new ones.
2385
+ *
2386
+ * @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2387
+ *
2388
+ * @default {}
2389
+ */
2390
+ componentsProps: e.shape({
2391
+ backdrop: e.oneOfType([e.func, e.object]),
2392
+ root: e.oneOfType([e.func, e.object])
2393
+ }),
2394
+ /**
2395
+ * An HTML element or function that returns one.
2396
+ * The `container` will have the portal children appended to it.
2397
+ *
2398
+ * You can also provide a callback, which is called in a React layout effect.
2399
+ * This lets you set the container from a ref, and also makes server-side rendering possible.
2400
+ *
2401
+ * By default, it uses the body of the top-level document object,
2402
+ * so it's simply `document.body` most of the time.
2403
+ */
2404
+ container: e.oneOfType([at, e.func]),
2405
+ /**
2406
+ * If `true`, the modal will not automatically shift focus to itself when it opens, and
2407
+ * replace it to the last focused element when it closes.
2408
+ * This also works correctly with any modal children that have the `disableAutoFocus` prop.
2409
+ *
2410
+ * Generally this should never be set to `true` as it makes the modal less
2411
+ * accessible to assistive technologies, like screen readers.
2412
+ * @default false
2413
+ */
2414
+ disableAutoFocus: e.bool,
2415
+ /**
2416
+ * If `true`, the modal will not prevent focus from leaving the modal while open.
2417
+ *
2418
+ * Generally this should never be set to `true` as it makes the modal less
2419
+ * accessible to assistive technologies, like screen readers.
2420
+ * @default false
2421
+ */
2422
+ disableEnforceFocus: e.bool,
2423
+ /**
2424
+ * If `true`, hitting escape will not fire the `onClose` callback.
2425
+ * @default false
2426
+ */
2427
+ disableEscapeKeyDown: e.bool,
2428
+ /**
2429
+ * The `children` will be under the DOM hierarchy of the parent component.
2430
+ * @default false
2431
+ */
2432
+ disablePortal: e.bool,
2433
+ /**
2434
+ * If `true`, the modal will not restore focus to previously focused element once
2435
+ * modal is hidden or unmounted.
2436
+ * @default false
2437
+ */
2438
+ disableRestoreFocus: e.bool,
2439
+ /**
2440
+ * Disable the scroll lock behavior.
2441
+ * @default false
2442
+ */
2443
+ disableScrollLock: e.bool,
2444
+ /**
2445
+ * If `true`, the backdrop is not rendered.
2446
+ * @default false
2447
+ */
2448
+ hideBackdrop: e.bool,
2449
+ /**
2450
+ * Always keep the children in the DOM.
2451
+ * This prop can be useful in SEO situation or
2452
+ * when you want to maximize the responsiveness of the Modal.
2453
+ * @default false
2454
+ */
2455
+ keepMounted: e.bool,
2456
+ /**
2457
+ * Callback fired when the component requests to be closed.
2458
+ * The `reason` parameter can optionally be used to control the response to `onClose`.
2459
+ *
2460
+ * @param {object} event The event source of the callback.
2461
+ * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
2462
+ */
2463
+ onClose: e.func,
2464
+ /**
2465
+ * A function called when a transition enters.
2466
+ */
2467
+ onTransitionEnter: e.func,
2468
+ /**
2469
+ * A function called when a transition has exited.
2470
+ */
2471
+ onTransitionExited: e.func,
2472
+ /**
2473
+ * If `true`, the component is shown.
2474
+ */
2475
+ open: e.bool.isRequired,
2476
+ /**
2477
+ * The props used for each slot inside the Modal.
2478
+ * @default {}
2479
+ */
2480
+ slotProps: e.shape({
2481
+ backdrop: e.oneOfType([e.func, e.object]),
2482
+ root: e.oneOfType([e.func, e.object])
2483
+ }),
2484
+ /**
2485
+ * The components used for each slot inside the Modal.
2486
+ * Either a string to use a HTML element or a component.
2487
+ * @default {}
2488
+ */
2489
+ slots: e.shape({
2490
+ backdrop: e.elementType,
2491
+ root: e.elementType
2492
+ }),
2493
+ /**
2494
+ * The system prop that allows defining system overrides as well as additional CSS styles.
2495
+ */
2496
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
2497
+ });
2498
+ function On(t) {
2499
+ return W("MuiDialog", t);
2500
+ }
2501
+ const Pe = V("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), Le = /* @__PURE__ */ m.createContext({});
2502
+ process.env.NODE_ENV !== "production" && (Le.displayName = "DialogContext");
2503
+ const Sn = j(Ie, {
2504
+ name: "MuiDialog",
2505
+ slot: "Backdrop",
2506
+ overrides: (t, n) => n.backdrop
2507
+ })({
2508
+ // Improve scrollable dialog support.
2509
+ zIndex: -1
2510
+ }), Rn = (t) => {
2511
+ const {
2512
+ classes: n,
2513
+ scroll: r,
2514
+ maxWidth: o,
2515
+ fullWidth: a,
2516
+ fullScreen: i
2517
+ } = t, c = {
2518
+ root: ["root"],
2519
+ container: ["container", `scroll${U(r)}`],
2520
+ paper: ["paper", `paperScroll${U(r)}`, `paperWidth${U(String(o))}`, a && "paperFullWidth", i && "paperFullScreen"]
2521
+ };
2522
+ return q(c, On, n);
2523
+ }, Dn = j(ct, {
2524
+ name: "MuiDialog",
2525
+ slot: "Root"
2526
+ })({
2527
+ "@media print": {
2528
+ // Use !important to override the Modal inline-style.
2529
+ position: "absolute !important"
2530
+ }
2531
+ }), Nn = j("div", {
2532
+ name: "MuiDialog",
2533
+ slot: "Container",
2534
+ overridesResolver: (t, n) => {
2535
+ const {
2536
+ ownerState: r
2537
+ } = t;
2538
+ return [n.container, n[`scroll${U(r.scroll)}`]];
2539
+ }
2540
+ })({
2541
+ height: "100%",
2542
+ "@media print": {
2543
+ height: "auto"
2544
+ },
2545
+ // We disable the focus ring for mouse, touch and keyboard users.
2546
+ outline: 0,
2547
+ variants: [{
2548
+ props: {
2549
+ scroll: "paper"
2550
+ },
2551
+ style: {
2552
+ display: "flex",
2553
+ justifyContent: "center",
2554
+ alignItems: "center"
2555
+ }
2556
+ }, {
2557
+ props: {
2558
+ scroll: "body"
2559
+ },
2560
+ style: {
2561
+ overflowY: "auto",
2562
+ overflowX: "hidden",
2563
+ textAlign: "center",
2564
+ "&::after": {
2565
+ content: '""',
2566
+ display: "inline-block",
2567
+ verticalAlign: "middle",
2568
+ height: "100%",
2569
+ width: "0"
2570
+ }
2571
+ }
2572
+ }]
2573
+ }), Pn = j(Me, {
2574
+ name: "MuiDialog",
2575
+ slot: "Paper",
2576
+ overridesResolver: (t, n) => {
2577
+ const {
2578
+ ownerState: r
2579
+ } = t;
2580
+ return [n.paper, n[`scrollPaper${U(r.scroll)}`], n[`paperWidth${U(String(r.maxWidth))}`], r.fullWidth && n.paperFullWidth, r.fullScreen && n.paperFullScreen];
2581
+ }
2582
+ })(ce(({
2583
+ theme: t
2584
+ }) => ({
2585
+ margin: 32,
2586
+ position: "relative",
2587
+ overflowY: "auto",
2588
+ "@media print": {
2589
+ overflowY: "visible",
2590
+ boxShadow: "none"
2591
+ },
2592
+ variants: [{
2593
+ props: {
2594
+ scroll: "paper"
2595
+ },
2596
+ style: {
2597
+ display: "flex",
2598
+ flexDirection: "column",
2599
+ maxHeight: "calc(100% - 64px)"
2600
+ }
2601
+ }, {
2602
+ props: {
2603
+ scroll: "body"
2604
+ },
2605
+ style: {
2606
+ display: "inline-block",
2607
+ verticalAlign: "middle",
2608
+ textAlign: "initial"
2609
+ }
2610
+ }, {
2611
+ props: ({
2612
+ ownerState: n
2613
+ }) => !n.maxWidth,
2614
+ style: {
2615
+ maxWidth: "calc(100% - 64px)"
2616
+ }
2617
+ }, {
2618
+ props: {
2619
+ maxWidth: "xs"
2620
+ },
2621
+ style: {
2622
+ maxWidth: t.breakpoints.unit === "px" ? Math.max(t.breakpoints.values.xs, 444) : `max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,
2623
+ [`&.${Pe.paperScrollBody}`]: {
2624
+ [t.breakpoints.down(Math.max(t.breakpoints.values.xs, 444) + 64)]: {
2625
+ maxWidth: "calc(100% - 64px)"
2626
+ }
2627
+ }
2628
+ }
2629
+ }, ...Object.keys(t.breakpoints.values).filter((n) => n !== "xs").map((n) => ({
2630
+ props: {
2631
+ maxWidth: n
2632
+ },
2633
+ style: {
2634
+ maxWidth: `${t.breakpoints.values[n]}${t.breakpoints.unit}`,
2635
+ [`&.${Pe.paperScrollBody}`]: {
2636
+ [t.breakpoints.down(t.breakpoints.values[n] + 64)]: {
2637
+ maxWidth: "calc(100% - 64px)"
2638
+ }
2639
+ }
2640
+ }
2641
+ })), {
2642
+ props: ({
2643
+ ownerState: n
2644
+ }) => n.fullWidth,
2645
+ style: {
2646
+ width: "calc(100% - 64px)"
2647
+ }
2648
+ }, {
2649
+ props: ({
2650
+ ownerState: n
2651
+ }) => n.fullScreen,
2652
+ style: {
2653
+ margin: 0,
2654
+ width: "100%",
2655
+ maxWidth: "100%",
2656
+ height: "100%",
2657
+ maxHeight: "none",
2658
+ borderRadius: 0,
2659
+ [`&.${Pe.paperScrollBody}`]: {
2660
+ margin: 0,
2661
+ maxWidth: "100%"
2662
+ }
2663
+ }
2664
+ }]
2665
+ }))), Cn = /* @__PURE__ */ m.forwardRef(function(n, r) {
2666
+ const o = H({
2667
+ props: n,
2668
+ name: "MuiDialog"
2669
+ }), a = _e(), i = {
2670
+ enter: a.transitions.duration.enteringScreen,
2671
+ exit: a.transitions.duration.leavingScreen
2672
+ }, {
2673
+ "aria-describedby": c,
2674
+ "aria-labelledby": p,
2675
+ "aria-modal": d = !0,
2676
+ BackdropComponent: l,
2677
+ BackdropProps: g,
2678
+ children: u,
2679
+ className: s,
2680
+ disableEscapeKeyDown: f = !1,
2681
+ fullScreen: y = !1,
2682
+ fullWidth: E = !1,
2683
+ maxWidth: T = "sm",
2684
+ onClick: S,
2685
+ onClose: R,
2686
+ open: h,
2687
+ PaperComponent: x = Me,
2688
+ PaperProps: P = {},
2689
+ scroll: C = "paper",
2690
+ slots: N = {},
2691
+ slotProps: _ = {},
2692
+ TransitionComponent: M = ve,
2693
+ transitionDuration: I = i,
2694
+ TransitionProps: F,
2695
+ ...ne
2696
+ } = o, $ = {
2697
+ ...o,
2698
+ disableEscapeKeyDown: f,
2699
+ fullScreen: y,
2700
+ fullWidth: E,
2701
+ maxWidth: T,
2702
+ scroll: C
2703
+ }, O = Rn($), v = m.useRef(), b = (se) => {
2704
+ v.current = se.target === se.currentTarget;
2705
+ }, Z = (se) => {
2706
+ S && S(se), v.current && (v.current = null, R && R(se, "backdropClick"));
2707
+ }, oe = Tt(p), xe = m.useMemo(() => ({
2708
+ titleId: oe
2709
+ }), [oe]), de = {
2710
+ transition: M,
2711
+ ...N
2712
+ }, pe = {
2713
+ transition: F,
2714
+ paper: P,
2715
+ backdrop: g,
2716
+ ..._
2717
+ }, L = {
2718
+ slots: de,
2719
+ slotProps: pe
2720
+ }, [re, J] = B("root", {
2721
+ elementType: Dn,
2722
+ shouldForwardComponentProp: !0,
2723
+ externalForwardedProps: L,
2724
+ ownerState: $,
2725
+ className: A(O.root, s),
2726
+ ref: r
2727
+ }), [fe, Oe] = B("backdrop", {
2728
+ elementType: Sn,
2729
+ shouldForwardComponentProp: !0,
2730
+ externalForwardedProps: L,
2731
+ ownerState: $
2732
+ }), [Se, Re] = B("paper", {
2733
+ elementType: Pn,
2734
+ shouldForwardComponentProp: !0,
2735
+ externalForwardedProps: L,
2736
+ ownerState: $,
2737
+ className: A(O.paper, P.className)
2738
+ }), [De, G] = B("container", {
2739
+ elementType: Nn,
2740
+ externalForwardedProps: L,
2741
+ ownerState: $,
2742
+ className: O.container
2743
+ }), [ie, ut] = B("transition", {
2744
+ elementType: ve,
2745
+ externalForwardedProps: L,
2746
+ ownerState: $,
2747
+ additionalProps: {
2748
+ appear: !0,
2749
+ in: h,
2750
+ timeout: I,
2751
+ role: "presentation"
2752
+ }
2753
+ });
2754
+ return /* @__PURE__ */ D(re, {
2755
+ closeAfterTransition: !0,
2756
+ slots: {
2757
+ backdrop: fe
2758
+ },
2759
+ slotProps: {
2760
+ backdrop: {
2761
+ transitionDuration: I,
2762
+ as: l,
2763
+ ...Oe
2764
+ }
2765
+ },
2766
+ disableEscapeKeyDown: f,
2767
+ onClose: R,
2768
+ open: h,
2769
+ onClick: Z,
2770
+ ...J,
2771
+ ...ne,
2772
+ children: /* @__PURE__ */ D(ie, {
2773
+ ...ut,
2774
+ children: /* @__PURE__ */ D(De, {
2775
+ onMouseDown: b,
2776
+ ...G,
2777
+ children: /* @__PURE__ */ D(Se, {
2778
+ as: x,
2779
+ elevation: 24,
2780
+ role: "dialog",
2781
+ "aria-describedby": c,
2782
+ "aria-labelledby": oe,
2783
+ "aria-modal": d,
2784
+ ...Re,
2785
+ children: /* @__PURE__ */ D(Le.Provider, {
2786
+ value: xe,
2787
+ children: u
2788
+ })
2789
+ })
2790
+ })
2791
+ })
2792
+ });
2793
+ });
2794
+ process.env.NODE_ENV !== "production" && (Cn.propTypes = {
2795
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
2796
+ // │ These PropTypes are generated from the TypeScript type definitions. │
2797
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
2798
+ // └─────────────────────────────────────────────────────────────────────┘
2799
+ /**
2800
+ * The id(s) of the element(s) that describe the dialog.
2801
+ */
2802
+ "aria-describedby": e.string,
2803
+ /**
2804
+ * The id(s) of the element(s) that label the dialog.
2805
+ */
2806
+ "aria-labelledby": e.string,
2807
+ /**
2808
+ * Informs assistive technologies that the element is modal.
2809
+ * It's added on the element with role="dialog".
2810
+ * @default true
2811
+ */
2812
+ "aria-modal": e.oneOfType([e.oneOf(["false", "true"]), e.bool]),
2813
+ /**
2814
+ * A backdrop component. This prop enables custom backdrop rendering.
2815
+ * @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
2816
+ * Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
2817
+ * @default styled(Backdrop, {
2818
+ * name: 'MuiModal',
2819
+ * slot: 'Backdrop',
2820
+ * })({
2821
+ * zIndex: -1,
2822
+ * })
2823
+ */
2824
+ BackdropComponent: e.elementType,
2825
+ /**
2826
+ * @ignore
2827
+ */
2828
+ BackdropProps: e.object,
2829
+ /**
2830
+ * Dialog children, usually the included sub-components.
2831
+ */
2832
+ children: e.node,
2833
+ /**
2834
+ * Override or extend the styles applied to the component.
2835
+ */
2836
+ classes: e.object,
2837
+ /**
2838
+ * @ignore
2839
+ */
2840
+ className: e.string,
2841
+ /**
2842
+ * If `true`, hitting escape will not fire the `onClose` callback.
2843
+ * @default false
2844
+ */
2845
+ disableEscapeKeyDown: e.bool,
2846
+ /**
2847
+ * If `true`, the dialog is full-screen.
2848
+ * @default false
2849
+ */
2850
+ fullScreen: e.bool,
2851
+ /**
2852
+ * If `true`, the dialog stretches to `maxWidth`.
2853
+ *
2854
+ * Notice that the dialog width grow is limited by the default margin.
2855
+ * @default false
2856
+ */
2857
+ fullWidth: e.bool,
2858
+ /**
2859
+ * Determine the max-width of the dialog.
2860
+ * The dialog width grows with the size of the screen.
2861
+ * Set to `false` to disable `maxWidth`.
2862
+ * @default 'sm'
2863
+ */
2864
+ maxWidth: e.oneOfType([e.oneOf(["xs", "sm", "md", "lg", "xl", !1]), e.string]),
2865
+ /**
2866
+ * @ignore
2867
+ */
2868
+ onClick: e.func,
2869
+ /**
2870
+ * Callback fired when the component requests to be closed.
2871
+ *
2872
+ * @param {object} event The event source of the callback.
2873
+ * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
2874
+ */
2875
+ onClose: e.func,
2876
+ /**
2877
+ * If `true`, the component is shown.
2878
+ */
2879
+ open: e.bool.isRequired,
2880
+ /**
2881
+ * The component used to render the body of the dialog.
2882
+ * @default Paper
2883
+ */
2884
+ PaperComponent: e.elementType,
2885
+ /**
2886
+ * Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
2887
+ * @default {}
2888
+ * @deprecated Use `slotProps.paper` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2889
+ */
2890
+ PaperProps: e.object,
2891
+ /**
2892
+ * Determine the container for scrolling the dialog.
2893
+ * @default 'paper'
2894
+ */
2895
+ scroll: e.oneOf(["body", "paper"]),
2896
+ /**
2897
+ * The props used for each slot inside.
2898
+ * @default {}
2899
+ */
2900
+ slotProps: e.shape({
2901
+ backdrop: e.oneOfType([e.func, e.object]),
2902
+ container: e.oneOfType([e.func, e.object]),
2903
+ paper: e.oneOfType([e.func, e.object]),
2904
+ root: e.oneOfType([e.func, e.object]),
2905
+ transition: e.oneOfType([e.func, e.object])
2906
+ }),
2907
+ /**
2908
+ * The components used for each slot inside.
2909
+ * @default {}
2910
+ */
2911
+ slots: e.shape({
2912
+ backdrop: e.elementType,
2913
+ container: e.elementType,
2914
+ paper: e.elementType,
2915
+ root: e.elementType,
2916
+ transition: e.elementType
2917
+ }),
2918
+ /**
2919
+ * The system prop that allows defining system overrides as well as additional CSS styles.
2920
+ */
2921
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
2922
+ /**
2923
+ * The component used for the transition.
2924
+ * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
2925
+ * @default Fade
2926
+ * @deprecated Use `slots.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2927
+ */
2928
+ TransitionComponent: e.elementType,
2929
+ /**
2930
+ * The duration for the transition, in milliseconds.
2931
+ * You may specify a single timeout for all transitions, or individually with an object.
2932
+ * @default {
2933
+ * enter: theme.transitions.duration.enteringScreen,
2934
+ * exit: theme.transitions.duration.leavingScreen,
2935
+ * }
2936
+ */
2937
+ transitionDuration: e.oneOfType([e.number, e.shape({
2938
+ appear: e.number,
2939
+ enter: e.number,
2940
+ exit: e.number
2941
+ })]),
2942
+ /**
2943
+ * Props applied to the transition element.
2944
+ * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
2945
+ * @deprecated Use `slotProps.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
2946
+ */
2947
+ TransitionProps: e.object
2948
+ });
2949
+ function wn(t) {
2950
+ return W("MuiDialogActions", t);
2951
+ }
2952
+ V("MuiDialogActions", ["root", "spacing"]);
2953
+ const kn = (t) => {
2954
+ const {
2955
+ classes: n,
2956
+ disableSpacing: r
2957
+ } = t;
2958
+ return q({
2959
+ root: ["root", !r && "spacing"]
2960
+ }, wn, n);
2961
+ }, _n = j("div", {
2962
+ name: "MuiDialogActions",
2963
+ slot: "Root",
2964
+ overridesResolver: (t, n) => {
2965
+ const {
2966
+ ownerState: r
2967
+ } = t;
2968
+ return [n.root, !r.disableSpacing && n.spacing];
2969
+ }
2970
+ })({
2971
+ display: "flex",
2972
+ alignItems: "center",
2973
+ padding: 8,
2974
+ justifyContent: "flex-end",
2975
+ flex: "0 0 auto",
2976
+ variants: [{
2977
+ props: ({
2978
+ ownerState: t
2979
+ }) => !t.disableSpacing,
2980
+ style: {
2981
+ "& > :not(style) ~ :not(style)": {
2982
+ marginLeft: 8
2983
+ }
2984
+ }
2985
+ }]
2986
+ }), Mn = /* @__PURE__ */ m.forwardRef(function(n, r) {
2987
+ const o = H({
2988
+ props: n,
2989
+ name: "MuiDialogActions"
2990
+ }), {
2991
+ className: a,
2992
+ disableSpacing: i = !1,
2993
+ ...c
2994
+ } = o, p = {
2995
+ ...o,
2996
+ disableSpacing: i
2997
+ }, d = kn(p);
2998
+ return /* @__PURE__ */ D(_n, {
2999
+ className: A(d.root, a),
3000
+ ownerState: p,
3001
+ ref: r,
3002
+ ...c
3003
+ });
3004
+ });
3005
+ process.env.NODE_ENV !== "production" && (Mn.propTypes = {
3006
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
3007
+ // │ These PropTypes are generated from the TypeScript type definitions. │
3008
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
3009
+ // └─────────────────────────────────────────────────────────────────────┘
3010
+ /**
3011
+ * The content of the component.
3012
+ */
3013
+ children: e.node,
3014
+ /**
3015
+ * Override or extend the styles applied to the component.
3016
+ */
3017
+ classes: e.object,
3018
+ /**
3019
+ * @ignore
3020
+ */
3021
+ className: e.string,
3022
+ /**
3023
+ * If `true`, the actions do not have additional margin.
3024
+ * @default false
3025
+ */
3026
+ disableSpacing: e.bool,
3027
+ /**
3028
+ * The system prop that allows defining system overrides as well as additional CSS styles.
3029
+ */
3030
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
3031
+ });
3032
+ function An(t) {
3033
+ return W("MuiDialogContent", t);
3034
+ }
3035
+ V("MuiDialogContent", ["root", "dividers"]);
3036
+ function jn(t) {
3037
+ return W("MuiDialogTitle", t);
3038
+ }
3039
+ const In = V("MuiDialogTitle", ["root"]), Ln = (t) => {
3040
+ const {
3041
+ classes: n,
3042
+ dividers: r
3043
+ } = t;
3044
+ return q({
3045
+ root: ["root", r && "dividers"]
3046
+ }, An, n);
3047
+ }, Fn = j("div", {
3048
+ name: "MuiDialogContent",
3049
+ slot: "Root",
3050
+ overridesResolver: (t, n) => {
3051
+ const {
3052
+ ownerState: r
3053
+ } = t;
3054
+ return [n.root, r.dividers && n.dividers];
3055
+ }
3056
+ })(ce(({
3057
+ theme: t
3058
+ }) => ({
3059
+ flex: "1 1 auto",
3060
+ // Add iOS momentum scrolling for iOS < 13.0
3061
+ WebkitOverflowScrolling: "touch",
3062
+ overflowY: "auto",
3063
+ padding: "20px 24px",
3064
+ variants: [{
3065
+ props: ({
3066
+ ownerState: n
3067
+ }) => n.dividers,
3068
+ style: {
3069
+ padding: "16px 24px",
3070
+ borderTop: `1px solid ${(t.vars || t).palette.divider}`,
3071
+ borderBottom: `1px solid ${(t.vars || t).palette.divider}`
3072
+ }
3073
+ }, {
3074
+ props: ({
3075
+ ownerState: n
3076
+ }) => !n.dividers,
3077
+ style: {
3078
+ [`.${In.root} + &`]: {
3079
+ paddingTop: 0
3080
+ }
3081
+ }
3082
+ }]
3083
+ }))), $n = /* @__PURE__ */ m.forwardRef(function(n, r) {
3084
+ const o = H({
3085
+ props: n,
3086
+ name: "MuiDialogContent"
3087
+ }), {
3088
+ className: a,
3089
+ dividers: i = !1,
3090
+ ...c
3091
+ } = o, p = {
3092
+ ...o,
3093
+ dividers: i
3094
+ }, d = Ln(p);
3095
+ return /* @__PURE__ */ D(Fn, {
3096
+ className: A(d.root, a),
3097
+ ownerState: p,
3098
+ ref: r,
3099
+ ...c
3100
+ });
3101
+ });
3102
+ process.env.NODE_ENV !== "production" && ($n.propTypes = {
3103
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
3104
+ // │ These PropTypes are generated from the TypeScript type definitions. │
3105
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
3106
+ // └─────────────────────────────────────────────────────────────────────┘
3107
+ /**
3108
+ * The content of the component.
3109
+ */
3110
+ children: e.node,
3111
+ /**
3112
+ * Override or extend the styles applied to the component.
3113
+ */
3114
+ classes: e.object,
3115
+ /**
3116
+ * @ignore
3117
+ */
3118
+ className: e.string,
3119
+ /**
3120
+ * Display the top and bottom dividers.
3121
+ * @default false
3122
+ */
3123
+ dividers: e.bool,
3124
+ /**
3125
+ * The system prop that allows defining system overrides as well as additional CSS styles.
3126
+ */
3127
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
3128
+ });
3129
+ function Bn(t) {
3130
+ return W("MuiDialogContentText", t);
3131
+ }
3132
+ V("MuiDialogContentText", ["root"]);
3133
+ const Un = (t) => {
3134
+ const {
3135
+ classes: n
3136
+ } = t, o = q({
3137
+ root: ["root"]
3138
+ }, Bn, n);
3139
+ return {
3140
+ ...n,
3141
+ // forward classes to the Typography
3142
+ ...o
3143
+ };
3144
+ }, Wn = j(Ae, {
3145
+ shouldForwardProp: (t) => xt(t) || t === "classes",
3146
+ name: "MuiDialogContentText",
3147
+ slot: "Root"
3148
+ })({}), Vn = /* @__PURE__ */ m.forwardRef(function(n, r) {
3149
+ const o = H({
3150
+ props: n,
3151
+ name: "MuiDialogContentText"
3152
+ }), {
3153
+ children: a,
3154
+ className: i,
3155
+ ...c
3156
+ } = o, p = Un(c);
3157
+ return /* @__PURE__ */ D(Wn, {
3158
+ component: "p",
3159
+ variant: "body1",
3160
+ color: "textSecondary",
3161
+ ref: r,
3162
+ ownerState: c,
3163
+ className: A(p.root, i),
3164
+ ...o,
3165
+ classes: p
3166
+ });
3167
+ });
3168
+ process.env.NODE_ENV !== "production" && (Vn.propTypes = {
3169
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
3170
+ // │ These PropTypes are generated from the TypeScript type definitions. │
3171
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
3172
+ // └─────────────────────────────────────────────────────────────────────┘
3173
+ /**
3174
+ * The content of the component.
3175
+ */
3176
+ children: e.node,
3177
+ /**
3178
+ * Override or extend the styles applied to the component.
3179
+ */
3180
+ classes: e.object,
3181
+ /**
3182
+ * @ignore
3183
+ */
3184
+ className: e.string,
3185
+ /**
3186
+ * The system prop that allows defining system overrides as well as additional CSS styles.
3187
+ */
3188
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
3189
+ });
3190
+ const Hn = (t) => {
3191
+ const {
3192
+ classes: n
3193
+ } = t;
3194
+ return q({
3195
+ root: ["root"]
3196
+ }, jn, n);
3197
+ }, qn = j(Ae, {
3198
+ name: "MuiDialogTitle",
3199
+ slot: "Root"
3200
+ })({
3201
+ padding: "16px 24px",
3202
+ flex: "0 0 auto"
3203
+ }), Kn = /* @__PURE__ */ m.forwardRef(function(n, r) {
3204
+ const o = H({
3205
+ props: n,
3206
+ name: "MuiDialogTitle"
3207
+ }), {
3208
+ className: a,
3209
+ id: i,
3210
+ ...c
3211
+ } = o, p = o, d = Hn(p), {
3212
+ titleId: l = i
3213
+ } = m.useContext(Le);
3214
+ return /* @__PURE__ */ D(qn, {
3215
+ component: "h2",
3216
+ className: A(d.root, a),
3217
+ ownerState: p,
3218
+ ref: r,
3219
+ variant: "h6",
3220
+ id: i ?? l,
3221
+ ...c
3222
+ });
3223
+ });
3224
+ process.env.NODE_ENV !== "production" && (Kn.propTypes = {
3225
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
3226
+ // │ These PropTypes are generated from the TypeScript type definitions. │
3227
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
3228
+ // └─────────────────────────────────────────────────────────────────────┘
3229
+ /**
3230
+ * The content of the component.
3231
+ */
3232
+ children: e.node,
3233
+ /**
3234
+ * Override or extend the styles applied to the component.
3235
+ */
3236
+ classes: e.object,
3237
+ /**
3238
+ * @ignore
3239
+ */
3240
+ className: e.string,
3241
+ /**
3242
+ * @ignore
3243
+ */
3244
+ id: e.string,
3245
+ /**
3246
+ * The system prop that allows defining system overrides as well as additional CSS styles.
3247
+ */
3248
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
3249
+ });
3250
+ export {
3251
+ Cn as D,
3252
+ Kn as a,
3253
+ $n as b,
3254
+ Vn as c,
3255
+ Mn as d,
3256
+ Pt as e,
3257
+ Dt as u
3258
+ };