@hiver/connector-admin 0.0.9 → 0.0.10-beta.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 (149) hide show
  1. package/app/connectors/index.d.ts +1 -1
  2. package/app/connectors/index.d.ts.map +1 -1
  3. package/app/connectors/pages/auth-success/index.d.ts +2 -0
  4. package/app/connectors/pages/auth-success/index.d.ts.map +1 -0
  5. package/app/connectors/pages/auth-success/styles.d.ts +4 -0
  6. package/app/connectors/pages/auth-success/styles.d.ts.map +1 -0
  7. package/app/connectors/pages/connector-view/dashboard/index.d.ts.map +1 -1
  8. package/app/connectors/pages/settings/index.d.ts.map +1 -1
  9. package/app/connectors/pages/settings/styles.d.ts +1 -0
  10. package/app/connectors/pages/settings/styles.d.ts.map +1 -1
  11. package/app/connectors/router.d.ts.map +1 -1
  12. package/components/ui/form/index.d.ts +19 -0
  13. package/components/ui/form/index.d.ts.map +1 -0
  14. package/components/ui/form/styles.d.ts +4 -0
  15. package/components/ui/form/styles.d.ts.map +1 -0
  16. package/components/ui/form-fields/index.d.ts.map +1 -1
  17. package/components/ui/select/style.d.ts +2 -0
  18. package/components/ui/select/style.d.ts.map +1 -0
  19. package/constants/api.d.ts +1 -0
  20. package/constants/api.d.ts.map +1 -1
  21. package/constants/app-constants.d.ts +2 -0
  22. package/constants/app-constants.d.ts.map +1 -1
  23. package/constants/router-paths.d.ts +1 -0
  24. package/constants/router-paths.d.ts.map +1 -1
  25. package/context/index.d.ts +7 -0
  26. package/context/index.d.ts.map +1 -1
  27. package/context/main-app-provider/index.d.ts.map +1 -1
  28. package/features/auth/api/index.d.ts +8 -0
  29. package/features/auth/api/index.d.ts.map +1 -0
  30. package/features/auth/components/api-executor/index.d.ts +8 -0
  31. package/features/auth/components/api-executor/index.d.ts.map +1 -0
  32. package/features/auth/components/api-executor/styles.d.ts +12 -0
  33. package/features/auth/components/api-executor/styles.d.ts.map +1 -0
  34. package/features/auth/components/auth-form/index.d.ts +10 -0
  35. package/features/auth/components/auth-form/index.d.ts.map +1 -0
  36. package/features/auth/components/auth-form/reducer.d.ts +11 -0
  37. package/features/auth/components/auth-form/reducer.d.ts.map +1 -0
  38. package/features/auth/components/auth-form/styles.d.ts +8 -0
  39. package/features/auth/components/auth-form/styles.d.ts.map +1 -0
  40. package/features/auth/components/auth-header-skeleton/index.d.ts +2 -0
  41. package/features/auth/components/auth-header-skeleton/index.d.ts.map +1 -0
  42. package/features/auth/constants/api.d.ts +6 -0
  43. package/features/auth/constants/api.d.ts.map +1 -0
  44. package/features/auth/constants/form-config.d.ts +71 -0
  45. package/features/auth/constants/form-config.d.ts.map +1 -0
  46. package/features/auth/constants/index.d.ts +4 -1
  47. package/features/auth/constants/index.d.ts.map +1 -1
  48. package/features/auth/store/initial-state.d.ts +19 -0
  49. package/features/auth/store/initial-state.d.ts.map +1 -0
  50. package/features/auth/store/selectors.d.ts +12 -0
  51. package/features/auth/store/selectors.d.ts.map +1 -0
  52. package/features/auth/store/slice.d.ts +75 -0
  53. package/features/auth/store/slice.d.ts.map +1 -0
  54. package/features/auth/types/connector.d.ts +2 -0
  55. package/features/auth/types/connector.d.ts.map +1 -0
  56. package/features/auth/types/form.d.ts +24 -0
  57. package/features/auth/types/form.d.ts.map +1 -0
  58. package/features/auth/types/request.d.ts +33 -0
  59. package/features/auth/types/request.d.ts.map +1 -0
  60. package/features/auth/utils/index.d.ts +13 -0
  61. package/features/auth/utils/index.d.ts.map +1 -0
  62. package/features/auth/utils/type-guards.d.ts +8 -0
  63. package/features/auth/utils/type-guards.d.ts.map +1 -0
  64. package/features/connector-library/constants/api.d.ts.map +1 -1
  65. package/features/connector-library/store/initial-state.d.ts +3 -2
  66. package/features/connector-library/store/initial-state.d.ts.map +1 -1
  67. package/features/connector-library/store/selectors.d.ts +1 -1
  68. package/features/connector-library/store/selectors.d.ts.map +1 -1
  69. package/features/connector-library/store/slice.d.ts +3 -1
  70. package/features/connector-library/store/slice.d.ts.map +1 -1
  71. package/features/connector-library/types/connector.d.ts +1 -42
  72. package/features/connector-library/types/connector.d.ts.map +1 -1
  73. package/features/connector-library/utils/type-guards.d.ts +3 -2
  74. package/features/connector-library/utils/type-guards.d.ts.map +1 -1
  75. package/features/request-new-connector/api/index.d.ts +8 -0
  76. package/features/request-new-connector/api/index.d.ts.map +1 -0
  77. package/features/request-new-connector/components/custom-connector-card/index.d.ts +1 -0
  78. package/features/request-new-connector/components/custom-connector-card/index.d.ts.map +1 -1
  79. package/features/request-new-connector/components/request-new-modal/index.d.ts +1 -0
  80. package/features/request-new-connector/components/request-new-modal/index.d.ts.map +1 -1
  81. package/features/request-new-connector/components/request-new-modal/request-panel.d.ts.map +1 -1
  82. package/features/request-new-connector/constants/api.d.ts +2 -0
  83. package/features/request-new-connector/constants/api.d.ts.map +1 -0
  84. package/features/request-new-connector/constants/index.d.ts +4 -0
  85. package/features/request-new-connector/constants/index.d.ts.map +1 -1
  86. package/features/request-new-connector/types/index.d.ts +16 -1
  87. package/features/request-new-connector/types/index.d.ts.map +1 -1
  88. package/features/request-new-connector/utils/type-guards.d.ts +3 -0
  89. package/features/request-new-connector/utils/type-guards.d.ts.map +1 -0
  90. package/features/toast-message/CloseButton.d.ts +4 -0
  91. package/features/toast-message/CloseButton.d.ts.map +1 -0
  92. package/features/toast-message/HiverIconToast.d.ts +7 -0
  93. package/features/toast-message/HiverIconToast.d.ts.map +1 -0
  94. package/features/toast-message/__tests__/toastMessage.test.d.ts +2 -0
  95. package/features/toast-message/__tests__/toastMessage.test.d.ts.map +1 -0
  96. package/features/toast-message/constants/toast.d.ts +4 -0
  97. package/features/toast-message/constants/toast.d.ts.map +1 -0
  98. package/features/toast-message/showMessage.d.ts +13 -0
  99. package/features/toast-message/showMessage.d.ts.map +1 -0
  100. package/features/toast-message/style.d.ts +7 -0
  101. package/features/toast-message/style.d.ts.map +1 -0
  102. package/{index-CWnqz_7p.js → index-3QhF4nPL.js} +13 -14
  103. package/index-BG0JDAxl.js +711 -0
  104. package/{index-CihMwBsW.js → index-BTijOkJN.js} +1 -1
  105. package/{index-D5knnyWw.js → index-CTf_uj1d.js} +25 -25
  106. package/{index-0ckwA6Bt.js → index-DHQTzZga.js} +1063 -1028
  107. package/{index-g_hNAZie.js → index-DwS53blc.js} +10386 -9235
  108. package/index-MhhY7aRi.js +3772 -0
  109. package/index.es.js +1 -1
  110. package/index.umd.js +373 -194
  111. package/package.json +1 -1
  112. package/store/hooks.d.ts +4 -0
  113. package/store/hooks.d.ts.map +1 -1
  114. package/store/index.d.ts +8 -0
  115. package/store/index.d.ts.map +1 -1
  116. package/store/request-connector-api/initial-state.d.ts +9 -0
  117. package/store/request-connector-api/initial-state.d.ts.map +1 -0
  118. package/store/request-connector-api/selectors.d.ts +5 -0
  119. package/store/request-connector-api/selectors.d.ts.map +1 -0
  120. package/store/request-connector-api/slice.d.ts +39 -0
  121. package/store/request-connector-api/slice.d.ts.map +1 -0
  122. package/styled-ui-components-BiFtpk_x.js +2253 -0
  123. package/testing/mocks/handlers/auth.d.ts +2 -0
  124. package/testing/mocks/handlers/auth.d.ts.map +1 -0
  125. package/testing/mocks/handlers/connector-template.d.ts +8 -0
  126. package/testing/mocks/handlers/connector-template.d.ts.map +1 -1
  127. package/testing/mocks/handlers/request-connector-api.d.ts +2 -0
  128. package/testing/mocks/handlers/request-connector-api.d.ts.map +1 -0
  129. package/testing/mocks/handlers/update-connector.d.ts.map +1 -1
  130. package/testing/mocks/handlers.d.ts.map +1 -1
  131. package/testing/setup-store.d.ts +4 -0
  132. package/testing/setup-store.d.ts.map +1 -1
  133. package/types/common.d.ts +2 -0
  134. package/types/common.d.ts.map +1 -0
  135. package/types/connector.d.ts +60 -0
  136. package/types/connector.d.ts.map +1 -0
  137. package/types/json.d.ts +7 -0
  138. package/types/json.d.ts.map +1 -0
  139. package/types/router.d.ts +2 -0
  140. package/types/router.d.ts.map +1 -1
  141. package/utils/index.d.ts +2 -0
  142. package/utils/index.d.ts.map +1 -1
  143. package/utils/type-guards.d.ts +3 -0
  144. package/utils/type-guards.d.ts.map +1 -0
  145. package/Typography-BvoDUPsi.js +0 -174
  146. package/features/auth/components/auth.d.ts +0 -2
  147. package/features/auth/components/auth.d.ts.map +0 -1
  148. package/index-CPqWySPe.js +0 -2954
  149. package/index-xau7jZsj.js +0 -40
@@ -0,0 +1,2253 @@
1
+ import { ay as Uo, az as Ht, aA as Vo, f as wt, g as Ot, k as Ve, aB as qt, j as te, aC as Fo, _ as C, y as Ho, P as n, aD as at, E as co, o as gt, aE as Xt, aF as qo, m as xt, s as je, i as Tt, a9 as fo, ab as zt, l as Be, h as uo, n as vo, H as Xo, aG as zo, aH as Ze, b as Yo, u as Ko, d as Yt, aI as Go, aJ as Kt, aK as et, aL as Jo, aM as Qo } from "./index-DwS53blc.js";
2
+ import * as $ from "react";
3
+ import Zo from "react";
4
+ function er(e, t = 0, o = 1) {
5
+ return process.env.NODE_ENV !== "production" && (e < t || e > o) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${o}].`), Uo(e, t, o);
6
+ }
7
+ function tr(e) {
8
+ e = e.slice(1);
9
+ const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
10
+ let o = e.match(t);
11
+ return o && o[0].length === 1 && (o = o.map((r) => r + r)), o ? `rgb${o.length === 4 ? "a" : ""}(${o.map((r, a) => a < 3 ? parseInt(r, 16) : Math.round(parseInt(r, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
12
+ }
13
+ function ho(e) {
14
+ if (e.type)
15
+ return e;
16
+ if (e.charAt(0) === "#")
17
+ return ho(tr(e));
18
+ const t = e.indexOf("("), o = e.substring(0, t);
19
+ if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(o) === -1)
20
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
21
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : Ht(9, e));
22
+ let r = e.substring(t + 1, e.length - 1), a;
23
+ if (o === "color") {
24
+ if (r = r.split(" "), a = r.shift(), r.length === 4 && r[3].charAt(0) === "/" && (r[3] = r[3].slice(1)), ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(a) === -1)
25
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${a}\` color space.
26
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : Ht(10, a));
27
+ } else
28
+ r = r.split(",");
29
+ return r = r.map((i) => parseFloat(i)), {
30
+ type: o,
31
+ values: r,
32
+ colorSpace: a
33
+ };
34
+ }
35
+ function or(e) {
36
+ const {
37
+ type: t,
38
+ colorSpace: o
39
+ } = e;
40
+ let {
41
+ values: r
42
+ } = e;
43
+ return t.indexOf("rgb") !== -1 ? r = r.map((a, i) => i < 3 ? parseInt(a, 10) : a) : t.indexOf("hsl") !== -1 && (r[1] = `${r[1]}%`, r[2] = `${r[2]}%`), t.indexOf("color") !== -1 ? r = `${o} ${r.join(" ")}` : r = `${r.join(", ")}`, `${t}(${r})`;
44
+ }
45
+ function rr(e, t) {
46
+ return e = ho(e), t = er(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, or(e);
47
+ }
48
+ function nr(e) {
49
+ return String(e).match(/[\d.\-+]*\s*(.*)/)[1] || "";
50
+ }
51
+ function ar(e) {
52
+ return parseFloat(e);
53
+ }
54
+ var Pt = {};
55
+ Object.defineProperty(Pt, "__esModule", {
56
+ value: !0
57
+ });
58
+ var mo = Pt.default = void 0, ir = pr(Zo), sr = Vo;
59
+ function go(e) {
60
+ if (typeof WeakMap != "function") return null;
61
+ var t = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap();
62
+ return (go = function(r) {
63
+ return r ? o : t;
64
+ })(e);
65
+ }
66
+ function pr(e, t) {
67
+ if (e && e.__esModule) return e;
68
+ if (e === null || typeof e != "object" && typeof e != "function") return { default: e };
69
+ var o = go(t);
70
+ if (o && o.has(e)) return o.get(e);
71
+ var r = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor;
72
+ for (var i in e) if (i !== "default" && Object.prototype.hasOwnProperty.call(e, i)) {
73
+ var l = a ? Object.getOwnPropertyDescriptor(e, i) : null;
74
+ l && (l.get || l.set) ? Object.defineProperty(r, i, l) : r[i] = e[i];
75
+ }
76
+ return r.default = e, o && o.set(e, r), r;
77
+ }
78
+ function lr(e) {
79
+ return Object.keys(e).length === 0;
80
+ }
81
+ function cr(e = null) {
82
+ const t = ir.useContext(sr.ThemeContext);
83
+ return !t || lr(t) ? e : t;
84
+ }
85
+ mo = Pt.default = cr;
86
+ var W = "top", z = "bottom", Y = "right", I = "left", Et = "auto", Fe = [W, z, Y, I], Pe = "start", Ie = "end", fr = "clippingParents", bo = "viewport", Ne = "popper", ur = "reference", Gt = /* @__PURE__ */ Fe.reduce(function(e, t) {
87
+ return e.concat([t + "-" + Pe, t + "-" + Ie]);
88
+ }, []), yo = /* @__PURE__ */ [].concat(Fe, [Et]).reduce(function(e, t) {
89
+ return e.concat([t, t + "-" + Pe, t + "-" + Ie]);
90
+ }, []), dr = "beforeRead", vr = "read", hr = "afterRead", mr = "beforeMain", gr = "main", br = "afterMain", yr = "beforeWrite", wr = "write", Or = "afterWrite", xr = [dr, vr, hr, mr, gr, br, yr, wr, Or];
91
+ function re(e) {
92
+ return e ? (e.nodeName || "").toLowerCase() : null;
93
+ }
94
+ function V(e) {
95
+ if (e == null)
96
+ return window;
97
+ if (e.toString() !== "[object Window]") {
98
+ var t = e.ownerDocument;
99
+ return t && t.defaultView || window;
100
+ }
101
+ return e;
102
+ }
103
+ function me(e) {
104
+ var t = V(e).Element;
105
+ return e instanceof t || e instanceof Element;
106
+ }
107
+ function X(e) {
108
+ var t = V(e).HTMLElement;
109
+ return e instanceof t || e instanceof HTMLElement;
110
+ }
111
+ function Rt(e) {
112
+ if (typeof ShadowRoot > "u")
113
+ return !1;
114
+ var t = V(e).ShadowRoot;
115
+ return e instanceof t || e instanceof ShadowRoot;
116
+ }
117
+ function Tr(e) {
118
+ var t = e.state;
119
+ Object.keys(t.elements).forEach(function(o) {
120
+ var r = t.styles[o] || {}, a = t.attributes[o] || {}, i = t.elements[o];
121
+ !X(i) || !re(i) || (Object.assign(i.style, r), Object.keys(a).forEach(function(l) {
122
+ var p = a[l];
123
+ p === !1 ? i.removeAttribute(l) : i.setAttribute(l, p === !0 ? "" : p);
124
+ }));
125
+ });
126
+ }
127
+ function Pr(e) {
128
+ var t = e.state, o = {
129
+ popper: {
130
+ position: t.options.strategy,
131
+ left: "0",
132
+ top: "0",
133
+ margin: "0"
134
+ },
135
+ arrow: {
136
+ position: "absolute"
137
+ },
138
+ reference: {}
139
+ };
140
+ return Object.assign(t.elements.popper.style, o.popper), t.styles = o, t.elements.arrow && Object.assign(t.elements.arrow.style, o.arrow), function() {
141
+ Object.keys(t.elements).forEach(function(r) {
142
+ var a = t.elements[r], i = t.attributes[r] || {}, l = Object.keys(t.styles.hasOwnProperty(r) ? t.styles[r] : o[r]), p = l.reduce(function(s, f) {
143
+ return s[f] = "", s;
144
+ }, {});
145
+ !X(a) || !re(a) || (Object.assign(a.style, p), Object.keys(i).forEach(function(s) {
146
+ a.removeAttribute(s);
147
+ }));
148
+ });
149
+ };
150
+ }
151
+ const Er = {
152
+ name: "applyStyles",
153
+ enabled: !0,
154
+ phase: "write",
155
+ fn: Tr,
156
+ effect: Pr,
157
+ requires: ["computeStyles"]
158
+ };
159
+ function oe(e) {
160
+ return e.split("-")[0];
161
+ }
162
+ var he = Math.max, it = Math.min, Ee = Math.round;
163
+ function bt() {
164
+ var e = navigator.userAgentData;
165
+ return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
166
+ return t.brand + "/" + t.version;
167
+ }).join(" ") : navigator.userAgent;
168
+ }
169
+ function wo() {
170
+ return !/^((?!chrome|android).)*safari/i.test(bt());
171
+ }
172
+ function Re(e, t, o) {
173
+ t === void 0 && (t = !1), o === void 0 && (o = !1);
174
+ var r = e.getBoundingClientRect(), a = 1, i = 1;
175
+ t && X(e) && (a = e.offsetWidth > 0 && Ee(r.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && Ee(r.height) / e.offsetHeight || 1);
176
+ var l = me(e) ? V(e) : window, p = l.visualViewport, s = !wo() && o, f = (r.left + (s && p ? p.offsetLeft : 0)) / a, c = (r.top + (s && p ? p.offsetTop : 0)) / i, v = r.width / a, b = r.height / i;
177
+ return {
178
+ width: v,
179
+ height: b,
180
+ top: c,
181
+ right: f + v,
182
+ bottom: c + b,
183
+ left: f,
184
+ x: f,
185
+ y: c
186
+ };
187
+ }
188
+ function Ct(e) {
189
+ var t = Re(e), o = e.offsetWidth, r = e.offsetHeight;
190
+ return Math.abs(t.width - o) <= 1 && (o = t.width), Math.abs(t.height - r) <= 1 && (r = t.height), {
191
+ x: e.offsetLeft,
192
+ y: e.offsetTop,
193
+ width: o,
194
+ height: r
195
+ };
196
+ }
197
+ function Oo(e, t) {
198
+ var o = t.getRootNode && t.getRootNode();
199
+ if (e.contains(t))
200
+ return !0;
201
+ if (o && Rt(o)) {
202
+ var r = t;
203
+ do {
204
+ if (r && e.isSameNode(r))
205
+ return !0;
206
+ r = r.parentNode || r.host;
207
+ } while (r);
208
+ }
209
+ return !1;
210
+ }
211
+ function ie(e) {
212
+ return V(e).getComputedStyle(e);
213
+ }
214
+ function Rr(e) {
215
+ return ["table", "td", "th"].indexOf(re(e)) >= 0;
216
+ }
217
+ function ce(e) {
218
+ return ((me(e) ? e.ownerDocument : (
219
+ // $FlowFixMe[prop-missing]
220
+ e.document
221
+ )) || window.document).documentElement;
222
+ }
223
+ function lt(e) {
224
+ return re(e) === "html" ? e : (
225
+ // this is a quicker (but less type safe) way to save quite some bytes from the bundle
226
+ // $FlowFixMe[incompatible-return]
227
+ // $FlowFixMe[prop-missing]
228
+ e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
229
+ e.parentNode || // DOM Element detected
230
+ (Rt(e) ? e.host : null) || // ShadowRoot detected
231
+ // $FlowFixMe[incompatible-call]: HTMLElement is a Node
232
+ ce(e)
233
+ );
234
+ }
235
+ function Jt(e) {
236
+ return !X(e) || // https://github.com/popperjs/popper-core/issues/837
237
+ ie(e).position === "fixed" ? null : e.offsetParent;
238
+ }
239
+ function Cr(e) {
240
+ var t = /firefox/i.test(bt()), o = /Trident/i.test(bt());
241
+ if (o && X(e)) {
242
+ var r = ie(e);
243
+ if (r.position === "fixed")
244
+ return null;
245
+ }
246
+ var a = lt(e);
247
+ for (Rt(a) && (a = a.host); X(a) && ["html", "body"].indexOf(re(a)) < 0; ) {
248
+ var i = ie(a);
249
+ if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || t && i.willChange === "filter" || t && i.filter && i.filter !== "none")
250
+ return a;
251
+ a = a.parentNode;
252
+ }
253
+ return null;
254
+ }
255
+ function He(e) {
256
+ for (var t = V(e), o = Jt(e); o && Rr(o) && ie(o).position === "static"; )
257
+ o = Jt(o);
258
+ return o && (re(o) === "html" || re(o) === "body" && ie(o).position === "static") ? t : o || Cr(e) || t;
259
+ }
260
+ function jt(e) {
261
+ return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
262
+ }
263
+ function _e(e, t, o) {
264
+ return he(e, it(t, o));
265
+ }
266
+ function jr(e, t, o) {
267
+ var r = _e(e, t, o);
268
+ return r > o ? o : r;
269
+ }
270
+ function xo() {
271
+ return {
272
+ top: 0,
273
+ right: 0,
274
+ bottom: 0,
275
+ left: 0
276
+ };
277
+ }
278
+ function To(e) {
279
+ return Object.assign({}, xo(), e);
280
+ }
281
+ function Po(e, t) {
282
+ return t.reduce(function(o, r) {
283
+ return o[r] = e, o;
284
+ }, {});
285
+ }
286
+ var $r = function(t, o) {
287
+ return t = typeof t == "function" ? t(Object.assign({}, o.rects, {
288
+ placement: o.placement
289
+ })) : t, To(typeof t != "number" ? t : Po(t, Fe));
290
+ };
291
+ function Mr(e) {
292
+ var t, o = e.state, r = e.name, a = e.options, i = o.elements.arrow, l = o.modifiersData.popperOffsets, p = oe(o.placement), s = jt(p), f = [I, Y].indexOf(p) >= 0, c = f ? "height" : "width";
293
+ if (!(!i || !l)) {
294
+ var v = $r(a.padding, o), b = Ct(i), u = s === "y" ? W : I, T = s === "y" ? z : Y, h = o.rects.reference[c] + o.rects.reference[s] - l[s] - o.rects.popper[c], m = l[s] - o.rects.reference[s], x = He(i), j = x ? s === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, O = h / 2 - m / 2, d = v[u], y = j - b[c] - v[T], g = j / 2 - b[c] / 2 + O, P = _e(d, g, y), M = s;
295
+ o.modifiersData[r] = (t = {}, t[M] = P, t.centerOffset = P - g, t);
296
+ }
297
+ }
298
+ function Ar(e) {
299
+ var t = e.state, o = e.options, r = o.element, a = r === void 0 ? "[data-popper-arrow]" : r;
300
+ a != null && (typeof a == "string" && (a = t.elements.popper.querySelector(a), !a) || Oo(t.elements.popper, a) && (t.elements.arrow = a));
301
+ }
302
+ const Dr = {
303
+ name: "arrow",
304
+ enabled: !0,
305
+ phase: "main",
306
+ fn: Mr,
307
+ effect: Ar,
308
+ requires: ["popperOffsets"],
309
+ requiresIfExists: ["preventOverflow"]
310
+ };
311
+ function Ce(e) {
312
+ return e.split("-")[1];
313
+ }
314
+ var kr = {
315
+ top: "auto",
316
+ right: "auto",
317
+ bottom: "auto",
318
+ left: "auto"
319
+ };
320
+ function Lr(e, t) {
321
+ var o = e.x, r = e.y, a = t.devicePixelRatio || 1;
322
+ return {
323
+ x: Ee(o * a) / a || 0,
324
+ y: Ee(r * a) / a || 0
325
+ };
326
+ }
327
+ function Qt(e) {
328
+ var t, o = e.popper, r = e.popperRect, a = e.placement, i = e.variation, l = e.offsets, p = e.position, s = e.gpuAcceleration, f = e.adaptive, c = e.roundOffsets, v = e.isFixed, b = l.x, u = b === void 0 ? 0 : b, T = l.y, h = T === void 0 ? 0 : T, m = typeof c == "function" ? c({
329
+ x: u,
330
+ y: h
331
+ }) : {
332
+ x: u,
333
+ y: h
334
+ };
335
+ u = m.x, h = m.y;
336
+ var x = l.hasOwnProperty("x"), j = l.hasOwnProperty("y"), O = I, d = W, y = window;
337
+ if (f) {
338
+ var g = He(o), P = "clientHeight", M = "clientWidth";
339
+ if (g === V(o) && (g = ce(o), ie(g).position !== "static" && p === "absolute" && (P = "scrollHeight", M = "scrollWidth")), g = g, a === W || (a === I || a === Y) && i === Ie) {
340
+ d = z;
341
+ var E = v && g === y && y.visualViewport ? y.visualViewport.height : (
342
+ // $FlowFixMe[prop-missing]
343
+ g[P]
344
+ );
345
+ h -= E - r.height, h *= s ? 1 : -1;
346
+ }
347
+ if (a === I || (a === W || a === z) && i === Ie) {
348
+ O = Y;
349
+ var R = v && g === y && y.visualViewport ? y.visualViewport.width : (
350
+ // $FlowFixMe[prop-missing]
351
+ g[M]
352
+ );
353
+ u -= R - r.width, u *= s ? 1 : -1;
354
+ }
355
+ }
356
+ var D = Object.assign({
357
+ position: p
358
+ }, f && kr), N = c === !0 ? Lr({
359
+ x: u,
360
+ y: h
361
+ }, V(o)) : {
362
+ x: u,
363
+ y: h
364
+ };
365
+ if (u = N.x, h = N.y, s) {
366
+ var k;
367
+ return Object.assign({}, D, (k = {}, k[d] = j ? "0" : "", k[O] = x ? "0" : "", k.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + h + "px)" : "translate3d(" + u + "px, " + h + "px, 0)", k));
368
+ }
369
+ return Object.assign({}, D, (t = {}, t[d] = j ? h + "px" : "", t[O] = x ? u + "px" : "", t.transform = "", t));
370
+ }
371
+ function Nr(e) {
372
+ var t = e.state, o = e.options, r = o.gpuAcceleration, a = r === void 0 ? !0 : r, i = o.adaptive, l = i === void 0 ? !0 : i, p = o.roundOffsets, s = p === void 0 ? !0 : p, f = {
373
+ placement: oe(t.placement),
374
+ variation: Ce(t.placement),
375
+ popper: t.elements.popper,
376
+ popperRect: t.rects.popper,
377
+ gpuAcceleration: a,
378
+ isFixed: t.options.strategy === "fixed"
379
+ };
380
+ t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Qt(Object.assign({}, f, {
381
+ offsets: t.modifiersData.popperOffsets,
382
+ position: t.options.strategy,
383
+ adaptive: l,
384
+ roundOffsets: s
385
+ })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Qt(Object.assign({}, f, {
386
+ offsets: t.modifiersData.arrow,
387
+ position: "absolute",
388
+ adaptive: !1,
389
+ roundOffsets: s
390
+ })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
391
+ "data-popper-placement": t.placement
392
+ });
393
+ }
394
+ const Sr = {
395
+ name: "computeStyles",
396
+ enabled: !0,
397
+ phase: "beforeWrite",
398
+ fn: Nr,
399
+ data: {}
400
+ };
401
+ var tt = {
402
+ passive: !0
403
+ };
404
+ function Br(e) {
405
+ var t = e.state, o = e.instance, r = e.options, a = r.scroll, i = a === void 0 ? !0 : a, l = r.resize, p = l === void 0 ? !0 : l, s = V(t.elements.popper), f = [].concat(t.scrollParents.reference, t.scrollParents.popper);
406
+ return i && f.forEach(function(c) {
407
+ c.addEventListener("scroll", o.update, tt);
408
+ }), p && s.addEventListener("resize", o.update, tt), function() {
409
+ i && f.forEach(function(c) {
410
+ c.removeEventListener("scroll", o.update, tt);
411
+ }), p && s.removeEventListener("resize", o.update, tt);
412
+ };
413
+ }
414
+ const _r = {
415
+ name: "eventListeners",
416
+ enabled: !0,
417
+ phase: "write",
418
+ fn: function() {
419
+ },
420
+ effect: Br,
421
+ data: {}
422
+ };
423
+ var Wr = {
424
+ left: "right",
425
+ right: "left",
426
+ bottom: "top",
427
+ top: "bottom"
428
+ };
429
+ function nt(e) {
430
+ return e.replace(/left|right|bottom|top/g, function(t) {
431
+ return Wr[t];
432
+ });
433
+ }
434
+ var Ir = {
435
+ start: "end",
436
+ end: "start"
437
+ };
438
+ function Zt(e) {
439
+ return e.replace(/start|end/g, function(t) {
440
+ return Ir[t];
441
+ });
442
+ }
443
+ function $t(e) {
444
+ var t = V(e), o = t.pageXOffset, r = t.pageYOffset;
445
+ return {
446
+ scrollLeft: o,
447
+ scrollTop: r
448
+ };
449
+ }
450
+ function Mt(e) {
451
+ return Re(ce(e)).left + $t(e).scrollLeft;
452
+ }
453
+ function Ur(e, t) {
454
+ var o = V(e), r = ce(e), a = o.visualViewport, i = r.clientWidth, l = r.clientHeight, p = 0, s = 0;
455
+ if (a) {
456
+ i = a.width, l = a.height;
457
+ var f = wo();
458
+ (f || !f && t === "fixed") && (p = a.offsetLeft, s = a.offsetTop);
459
+ }
460
+ return {
461
+ width: i,
462
+ height: l,
463
+ x: p + Mt(e),
464
+ y: s
465
+ };
466
+ }
467
+ function Vr(e) {
468
+ var t, o = ce(e), r = $t(e), a = (t = e.ownerDocument) == null ? void 0 : t.body, i = he(o.scrollWidth, o.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), l = he(o.scrollHeight, o.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), p = -r.scrollLeft + Mt(e), s = -r.scrollTop;
469
+ return ie(a || o).direction === "rtl" && (p += he(o.clientWidth, a ? a.clientWidth : 0) - i), {
470
+ width: i,
471
+ height: l,
472
+ x: p,
473
+ y: s
474
+ };
475
+ }
476
+ function At(e) {
477
+ var t = ie(e), o = t.overflow, r = t.overflowX, a = t.overflowY;
478
+ return /auto|scroll|overlay|hidden/.test(o + a + r);
479
+ }
480
+ function Eo(e) {
481
+ return ["html", "body", "#document"].indexOf(re(e)) >= 0 ? e.ownerDocument.body : X(e) && At(e) ? e : Eo(lt(e));
482
+ }
483
+ function We(e, t) {
484
+ var o;
485
+ t === void 0 && (t = []);
486
+ var r = Eo(e), a = r === ((o = e.ownerDocument) == null ? void 0 : o.body), i = V(r), l = a ? [i].concat(i.visualViewport || [], At(r) ? r : []) : r, p = t.concat(l);
487
+ return a ? p : (
488
+ // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
489
+ p.concat(We(lt(l)))
490
+ );
491
+ }
492
+ function yt(e) {
493
+ return Object.assign({}, e, {
494
+ left: e.x,
495
+ top: e.y,
496
+ right: e.x + e.width,
497
+ bottom: e.y + e.height
498
+ });
499
+ }
500
+ function Fr(e, t) {
501
+ var o = Re(e, !1, t === "fixed");
502
+ return o.top = o.top + e.clientTop, o.left = o.left + e.clientLeft, o.bottom = o.top + e.clientHeight, o.right = o.left + e.clientWidth, o.width = e.clientWidth, o.height = e.clientHeight, o.x = o.left, o.y = o.top, o;
503
+ }
504
+ function eo(e, t, o) {
505
+ return t === bo ? yt(Ur(e, o)) : me(t) ? Fr(t, o) : yt(Vr(ce(e)));
506
+ }
507
+ function Hr(e) {
508
+ var t = We(lt(e)), o = ["absolute", "fixed"].indexOf(ie(e).position) >= 0, r = o && X(e) ? He(e) : e;
509
+ return me(r) ? t.filter(function(a) {
510
+ return me(a) && Oo(a, r) && re(a) !== "body";
511
+ }) : [];
512
+ }
513
+ function qr(e, t, o, r) {
514
+ var a = t === "clippingParents" ? Hr(e) : [].concat(t), i = [].concat(a, [o]), l = i[0], p = i.reduce(function(s, f) {
515
+ var c = eo(e, f, r);
516
+ return s.top = he(c.top, s.top), s.right = it(c.right, s.right), s.bottom = it(c.bottom, s.bottom), s.left = he(c.left, s.left), s;
517
+ }, eo(e, l, r));
518
+ return p.width = p.right - p.left, p.height = p.bottom - p.top, p.x = p.left, p.y = p.top, p;
519
+ }
520
+ function Ro(e) {
521
+ var t = e.reference, o = e.element, r = e.placement, a = r ? oe(r) : null, i = r ? Ce(r) : null, l = t.x + t.width / 2 - o.width / 2, p = t.y + t.height / 2 - o.height / 2, s;
522
+ switch (a) {
523
+ case W:
524
+ s = {
525
+ x: l,
526
+ y: t.y - o.height
527
+ };
528
+ break;
529
+ case z:
530
+ s = {
531
+ x: l,
532
+ y: t.y + t.height
533
+ };
534
+ break;
535
+ case Y:
536
+ s = {
537
+ x: t.x + t.width,
538
+ y: p
539
+ };
540
+ break;
541
+ case I:
542
+ s = {
543
+ x: t.x - o.width,
544
+ y: p
545
+ };
546
+ break;
547
+ default:
548
+ s = {
549
+ x: t.x,
550
+ y: t.y
551
+ };
552
+ }
553
+ var f = a ? jt(a) : null;
554
+ if (f != null) {
555
+ var c = f === "y" ? "height" : "width";
556
+ switch (i) {
557
+ case Pe:
558
+ s[f] = s[f] - (t[c] / 2 - o[c] / 2);
559
+ break;
560
+ case Ie:
561
+ s[f] = s[f] + (t[c] / 2 - o[c] / 2);
562
+ break;
563
+ }
564
+ }
565
+ return s;
566
+ }
567
+ function Ue(e, t) {
568
+ t === void 0 && (t = {});
569
+ var o = t, r = o.placement, a = r === void 0 ? e.placement : r, i = o.strategy, l = i === void 0 ? e.strategy : i, p = o.boundary, s = p === void 0 ? fr : p, f = o.rootBoundary, c = f === void 0 ? bo : f, v = o.elementContext, b = v === void 0 ? Ne : v, u = o.altBoundary, T = u === void 0 ? !1 : u, h = o.padding, m = h === void 0 ? 0 : h, x = To(typeof m != "number" ? m : Po(m, Fe)), j = b === Ne ? ur : Ne, O = e.rects.popper, d = e.elements[T ? j : b], y = qr(me(d) ? d : d.contextElement || ce(e.elements.popper), s, c, l), g = Re(e.elements.reference), P = Ro({
570
+ reference: g,
571
+ element: O,
572
+ strategy: "absolute",
573
+ placement: a
574
+ }), M = yt(Object.assign({}, O, P)), E = b === Ne ? M : g, R = {
575
+ top: y.top - E.top + x.top,
576
+ bottom: E.bottom - y.bottom + x.bottom,
577
+ left: y.left - E.left + x.left,
578
+ right: E.right - y.right + x.right
579
+ }, D = e.modifiersData.offset;
580
+ if (b === Ne && D) {
581
+ var N = D[a];
582
+ Object.keys(R).forEach(function(k) {
583
+ var K = [Y, z].indexOf(k) >= 0 ? 1 : -1, G = [W, z].indexOf(k) >= 0 ? "y" : "x";
584
+ R[k] += N[G] * K;
585
+ });
586
+ }
587
+ return R;
588
+ }
589
+ function Xr(e, t) {
590
+ t === void 0 && (t = {});
591
+ var o = t, r = o.placement, a = o.boundary, i = o.rootBoundary, l = o.padding, p = o.flipVariations, s = o.allowedAutoPlacements, f = s === void 0 ? yo : s, c = Ce(r), v = c ? p ? Gt : Gt.filter(function(T) {
592
+ return Ce(T) === c;
593
+ }) : Fe, b = v.filter(function(T) {
594
+ return f.indexOf(T) >= 0;
595
+ });
596
+ b.length === 0 && (b = v);
597
+ var u = b.reduce(function(T, h) {
598
+ return T[h] = Ue(e, {
599
+ placement: h,
600
+ boundary: a,
601
+ rootBoundary: i,
602
+ padding: l
603
+ })[oe(h)], T;
604
+ }, {});
605
+ return Object.keys(u).sort(function(T, h) {
606
+ return u[T] - u[h];
607
+ });
608
+ }
609
+ function zr(e) {
610
+ if (oe(e) === Et)
611
+ return [];
612
+ var t = nt(e);
613
+ return [Zt(e), t, Zt(t)];
614
+ }
615
+ function Yr(e) {
616
+ var t = e.state, o = e.options, r = e.name;
617
+ if (!t.modifiersData[r]._skip) {
618
+ for (var a = o.mainAxis, i = a === void 0 ? !0 : a, l = o.altAxis, p = l === void 0 ? !0 : l, s = o.fallbackPlacements, f = o.padding, c = o.boundary, v = o.rootBoundary, b = o.altBoundary, u = o.flipVariations, T = u === void 0 ? !0 : u, h = o.allowedAutoPlacements, m = t.options.placement, x = oe(m), j = x === m, O = s || (j || !T ? [nt(m)] : zr(m)), d = [m].concat(O).reduce(function(ne, Q) {
619
+ return ne.concat(oe(Q) === Et ? Xr(t, {
620
+ placement: Q,
621
+ boundary: c,
622
+ rootBoundary: v,
623
+ padding: f,
624
+ flipVariations: T,
625
+ allowedAutoPlacements: h
626
+ }) : Q);
627
+ }, []), y = t.rects.reference, g = t.rects.popper, P = /* @__PURE__ */ new Map(), M = !0, E = d[0], R = 0; R < d.length; R++) {
628
+ var D = d[R], N = oe(D), k = Ce(D) === Pe, K = [W, z].indexOf(N) >= 0, G = K ? "width" : "height", A = Ue(t, {
629
+ placement: D,
630
+ boundary: c,
631
+ rootBoundary: v,
632
+ altBoundary: b,
633
+ padding: f
634
+ }), L = K ? k ? Y : I : k ? z : W;
635
+ y[G] > g[G] && (L = nt(L));
636
+ var S = nt(L), J = [];
637
+ if (i && J.push(A[N] <= 0), p && J.push(A[L] <= 0, A[S] <= 0), J.every(function(ne) {
638
+ return ne;
639
+ })) {
640
+ E = D, M = !1;
641
+ break;
642
+ }
643
+ P.set(D, J);
644
+ }
645
+ if (M)
646
+ for (var ge = T ? 3 : 1, be = function(Q) {
647
+ var se = d.find(function(pe) {
648
+ var B = P.get(pe);
649
+ if (B)
650
+ return B.slice(0, Q).every(function(Z) {
651
+ return Z;
652
+ });
653
+ });
654
+ if (se)
655
+ return E = se, "break";
656
+ }, fe = ge; fe > 0; fe--) {
657
+ var ue = be(fe);
658
+ if (ue === "break") break;
659
+ }
660
+ t.placement !== E && (t.modifiersData[r]._skip = !0, t.placement = E, t.reset = !0);
661
+ }
662
+ }
663
+ const Kr = {
664
+ name: "flip",
665
+ enabled: !0,
666
+ phase: "main",
667
+ fn: Yr,
668
+ requiresIfExists: ["offset"],
669
+ data: {
670
+ _skip: !1
671
+ }
672
+ };
673
+ function to(e, t, o) {
674
+ return o === void 0 && (o = {
675
+ x: 0,
676
+ y: 0
677
+ }), {
678
+ top: e.top - t.height - o.y,
679
+ right: e.right - t.width + o.x,
680
+ bottom: e.bottom - t.height + o.y,
681
+ left: e.left - t.width - o.x
682
+ };
683
+ }
684
+ function oo(e) {
685
+ return [W, Y, z, I].some(function(t) {
686
+ return e[t] >= 0;
687
+ });
688
+ }
689
+ function Gr(e) {
690
+ var t = e.state, o = e.name, r = t.rects.reference, a = t.rects.popper, i = t.modifiersData.preventOverflow, l = Ue(t, {
691
+ elementContext: "reference"
692
+ }), p = Ue(t, {
693
+ altBoundary: !0
694
+ }), s = to(l, r), f = to(p, a, i), c = oo(s), v = oo(f);
695
+ t.modifiersData[o] = {
696
+ referenceClippingOffsets: s,
697
+ popperEscapeOffsets: f,
698
+ isReferenceHidden: c,
699
+ hasPopperEscaped: v
700
+ }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
701
+ "data-popper-reference-hidden": c,
702
+ "data-popper-escaped": v
703
+ });
704
+ }
705
+ const Jr = {
706
+ name: "hide",
707
+ enabled: !0,
708
+ phase: "main",
709
+ requiresIfExists: ["preventOverflow"],
710
+ fn: Gr
711
+ };
712
+ function Qr(e, t, o) {
713
+ var r = oe(e), a = [I, W].indexOf(r) >= 0 ? -1 : 1, i = typeof o == "function" ? o(Object.assign({}, t, {
714
+ placement: e
715
+ })) : o, l = i[0], p = i[1];
716
+ return l = l || 0, p = (p || 0) * a, [I, Y].indexOf(r) >= 0 ? {
717
+ x: p,
718
+ y: l
719
+ } : {
720
+ x: l,
721
+ y: p
722
+ };
723
+ }
724
+ function Zr(e) {
725
+ var t = e.state, o = e.options, r = e.name, a = o.offset, i = a === void 0 ? [0, 0] : a, l = yo.reduce(function(c, v) {
726
+ return c[v] = Qr(v, t.rects, i), c;
727
+ }, {}), p = l[t.placement], s = p.x, f = p.y;
728
+ t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += f), t.modifiersData[r] = l;
729
+ }
730
+ const en = {
731
+ name: "offset",
732
+ enabled: !0,
733
+ phase: "main",
734
+ requires: ["popperOffsets"],
735
+ fn: Zr
736
+ };
737
+ function tn(e) {
738
+ var t = e.state, o = e.name;
739
+ t.modifiersData[o] = Ro({
740
+ reference: t.rects.reference,
741
+ element: t.rects.popper,
742
+ strategy: "absolute",
743
+ placement: t.placement
744
+ });
745
+ }
746
+ const on = {
747
+ name: "popperOffsets",
748
+ enabled: !0,
749
+ phase: "read",
750
+ fn: tn,
751
+ data: {}
752
+ };
753
+ function rn(e) {
754
+ return e === "x" ? "y" : "x";
755
+ }
756
+ function nn(e) {
757
+ var t = e.state, o = e.options, r = e.name, a = o.mainAxis, i = a === void 0 ? !0 : a, l = o.altAxis, p = l === void 0 ? !1 : l, s = o.boundary, f = o.rootBoundary, c = o.altBoundary, v = o.padding, b = o.tether, u = b === void 0 ? !0 : b, T = o.tetherOffset, h = T === void 0 ? 0 : T, m = Ue(t, {
758
+ boundary: s,
759
+ rootBoundary: f,
760
+ padding: v,
761
+ altBoundary: c
762
+ }), x = oe(t.placement), j = Ce(t.placement), O = !j, d = jt(x), y = rn(d), g = t.modifiersData.popperOffsets, P = t.rects.reference, M = t.rects.popper, E = typeof h == "function" ? h(Object.assign({}, t.rects, {
763
+ placement: t.placement
764
+ })) : h, R = typeof E == "number" ? {
765
+ mainAxis: E,
766
+ altAxis: E
767
+ } : Object.assign({
768
+ mainAxis: 0,
769
+ altAxis: 0
770
+ }, E), D = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, N = {
771
+ x: 0,
772
+ y: 0
773
+ };
774
+ if (g) {
775
+ if (i) {
776
+ var k, K = d === "y" ? W : I, G = d === "y" ? z : Y, A = d === "y" ? "height" : "width", L = g[d], S = L + m[K], J = L - m[G], ge = u ? -M[A] / 2 : 0, be = j === Pe ? P[A] : M[A], fe = j === Pe ? -M[A] : -P[A], ue = t.elements.arrow, ne = u && ue ? Ct(ue) : {
777
+ width: 0,
778
+ height: 0
779
+ }, Q = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : xo(), se = Q[K], pe = Q[G], B = _e(0, P[A], ne[A]), Z = O ? P[A] / 2 - ge - B - se - R.mainAxis : be - B - se - R.mainAxis, ye = O ? -P[A] / 2 + ge + B + pe + R.mainAxis : fe + B + pe + R.mainAxis, F = t.elements.arrow && He(t.elements.arrow), ft = F ? d === "y" ? F.clientTop || 0 : F.clientLeft || 0 : 0, qe = (k = D == null ? void 0 : D[d]) != null ? k : 0, Xe = L + Z - qe - ft, H = L + ye - qe, $e = _e(u ? it(S, Xe) : S, L, u ? he(J, H) : J);
780
+ g[d] = $e, N[d] = $e - L;
781
+ }
782
+ if (p) {
783
+ var ze, _ = d === "x" ? W : I, Ye = d === "x" ? z : Y, ee = g[y], we = y === "y" ? "height" : "width", de = ee + m[_], Oe = ee - m[Ye], xe = [W, I].indexOf(x) !== -1, Te = (ze = D == null ? void 0 : D[y]) != null ? ze : 0, ve = xe ? de : ee - P[we] - M[we] - Te + R.altAxis, Me = xe ? ee + P[we] + M[we] - Te - R.altAxis : Oe, Ke = u && xe ? jr(ve, ee, Me) : _e(u ? ve : de, ee, u ? Me : Oe);
784
+ g[y] = Ke, N[y] = Ke - ee;
785
+ }
786
+ t.modifiersData[r] = N;
787
+ }
788
+ }
789
+ const an = {
790
+ name: "preventOverflow",
791
+ enabled: !0,
792
+ phase: "main",
793
+ fn: nn,
794
+ requiresIfExists: ["offset"]
795
+ };
796
+ function sn(e) {
797
+ return {
798
+ scrollLeft: e.scrollLeft,
799
+ scrollTop: e.scrollTop
800
+ };
801
+ }
802
+ function pn(e) {
803
+ return e === V(e) || !X(e) ? $t(e) : sn(e);
804
+ }
805
+ function ln(e) {
806
+ var t = e.getBoundingClientRect(), o = Ee(t.width) / e.offsetWidth || 1, r = Ee(t.height) / e.offsetHeight || 1;
807
+ return o !== 1 || r !== 1;
808
+ }
809
+ function cn(e, t, o) {
810
+ o === void 0 && (o = !1);
811
+ var r = X(t), a = X(t) && ln(t), i = ce(t), l = Re(e, a, o), p = {
812
+ scrollLeft: 0,
813
+ scrollTop: 0
814
+ }, s = {
815
+ x: 0,
816
+ y: 0
817
+ };
818
+ return (r || !r && !o) && ((re(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
819
+ At(i)) && (p = pn(t)), X(t) ? (s = Re(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : i && (s.x = Mt(i))), {
820
+ x: l.left + p.scrollLeft - s.x,
821
+ y: l.top + p.scrollTop - s.y,
822
+ width: l.width,
823
+ height: l.height
824
+ };
825
+ }
826
+ function fn(e) {
827
+ var t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set(), r = [];
828
+ e.forEach(function(i) {
829
+ t.set(i.name, i);
830
+ });
831
+ function a(i) {
832
+ o.add(i.name);
833
+ var l = [].concat(i.requires || [], i.requiresIfExists || []);
834
+ l.forEach(function(p) {
835
+ if (!o.has(p)) {
836
+ var s = t.get(p);
837
+ s && a(s);
838
+ }
839
+ }), r.push(i);
840
+ }
841
+ return e.forEach(function(i) {
842
+ o.has(i.name) || a(i);
843
+ }), r;
844
+ }
845
+ function un(e) {
846
+ var t = fn(e);
847
+ return xr.reduce(function(o, r) {
848
+ return o.concat(t.filter(function(a) {
849
+ return a.phase === r;
850
+ }));
851
+ }, []);
852
+ }
853
+ function dn(e) {
854
+ var t;
855
+ return function() {
856
+ return t || (t = new Promise(function(o) {
857
+ Promise.resolve().then(function() {
858
+ t = void 0, o(e());
859
+ });
860
+ })), t;
861
+ };
862
+ }
863
+ function vn(e) {
864
+ var t = e.reduce(function(o, r) {
865
+ var a = o[r.name];
866
+ return o[r.name] = a ? Object.assign({}, a, r, {
867
+ options: Object.assign({}, a.options, r.options),
868
+ data: Object.assign({}, a.data, r.data)
869
+ }) : r, o;
870
+ }, {});
871
+ return Object.keys(t).map(function(o) {
872
+ return t[o];
873
+ });
874
+ }
875
+ var ro = {
876
+ placement: "bottom",
877
+ modifiers: [],
878
+ strategy: "absolute"
879
+ };
880
+ function no() {
881
+ for (var e = arguments.length, t = new Array(e), o = 0; o < e; o++)
882
+ t[o] = arguments[o];
883
+ return !t.some(function(r) {
884
+ return !(r && typeof r.getBoundingClientRect == "function");
885
+ });
886
+ }
887
+ function hn(e) {
888
+ e === void 0 && (e = {});
889
+ var t = e, o = t.defaultModifiers, r = o === void 0 ? [] : o, a = t.defaultOptions, i = a === void 0 ? ro : a;
890
+ return function(p, s, f) {
891
+ f === void 0 && (f = i);
892
+ var c = {
893
+ placement: "bottom",
894
+ orderedModifiers: [],
895
+ options: Object.assign({}, ro, i),
896
+ modifiersData: {},
897
+ elements: {
898
+ reference: p,
899
+ popper: s
900
+ },
901
+ attributes: {},
902
+ styles: {}
903
+ }, v = [], b = !1, u = {
904
+ state: c,
905
+ setOptions: function(x) {
906
+ var j = typeof x == "function" ? x(c.options) : x;
907
+ h(), c.options = Object.assign({}, i, c.options, j), c.scrollParents = {
908
+ reference: me(p) ? We(p) : p.contextElement ? We(p.contextElement) : [],
909
+ popper: We(s)
910
+ };
911
+ var O = un(vn([].concat(r, c.options.modifiers)));
912
+ return c.orderedModifiers = O.filter(function(d) {
913
+ return d.enabled;
914
+ }), T(), u.update();
915
+ },
916
+ // Sync update – it will always be executed, even if not necessary. This
917
+ // is useful for low frequency updates where sync behavior simplifies the
918
+ // logic.
919
+ // For high frequency updates (e.g. `resize` and `scroll` events), always
920
+ // prefer the async Popper#update method
921
+ forceUpdate: function() {
922
+ if (!b) {
923
+ var x = c.elements, j = x.reference, O = x.popper;
924
+ if (no(j, O)) {
925
+ c.rects = {
926
+ reference: cn(j, He(O), c.options.strategy === "fixed"),
927
+ popper: Ct(O)
928
+ }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(R) {
929
+ return c.modifiersData[R.name] = Object.assign({}, R.data);
930
+ });
931
+ for (var d = 0; d < c.orderedModifiers.length; d++) {
932
+ if (c.reset === !0) {
933
+ c.reset = !1, d = -1;
934
+ continue;
935
+ }
936
+ var y = c.orderedModifiers[d], g = y.fn, P = y.options, M = P === void 0 ? {} : P, E = y.name;
937
+ typeof g == "function" && (c = g({
938
+ state: c,
939
+ options: M,
940
+ name: E,
941
+ instance: u
942
+ }) || c);
943
+ }
944
+ }
945
+ }
946
+ },
947
+ // Async and optimistically optimized update – it will not be executed if
948
+ // not necessary (debounced to run at most once-per-tick)
949
+ update: dn(function() {
950
+ return new Promise(function(m) {
951
+ u.forceUpdate(), m(c);
952
+ });
953
+ }),
954
+ destroy: function() {
955
+ h(), b = !0;
956
+ }
957
+ };
958
+ if (!no(p, s))
959
+ return u;
960
+ u.setOptions(f).then(function(m) {
961
+ !b && f.onFirstUpdate && f.onFirstUpdate(m);
962
+ });
963
+ function T() {
964
+ c.orderedModifiers.forEach(function(m) {
965
+ var x = m.name, j = m.options, O = j === void 0 ? {} : j, d = m.effect;
966
+ if (typeof d == "function") {
967
+ var y = d({
968
+ state: c,
969
+ name: x,
970
+ instance: u,
971
+ options: O
972
+ }), g = function() {
973
+ };
974
+ v.push(y || g);
975
+ }
976
+ });
977
+ }
978
+ function h() {
979
+ v.forEach(function(m) {
980
+ return m();
981
+ }), v = [];
982
+ }
983
+ return u;
984
+ };
985
+ }
986
+ var mn = [_r, on, Sr, Er, en, Kr, an, Dr, Jr], gn = /* @__PURE__ */ hn({
987
+ defaultModifiers: mn
988
+ });
989
+ function bn(e) {
990
+ return Ot("MuiPopper", e);
991
+ }
992
+ wt("MuiPopper", ["root"]);
993
+ const yn = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"], wn = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
994
+ function On(e, t) {
995
+ if (t === "ltr")
996
+ return e;
997
+ switch (e) {
998
+ case "bottom-end":
999
+ return "bottom-start";
1000
+ case "bottom-start":
1001
+ return "bottom-end";
1002
+ case "top-end":
1003
+ return "top-start";
1004
+ case "top-start":
1005
+ return "top-end";
1006
+ default:
1007
+ return e;
1008
+ }
1009
+ }
1010
+ function st(e) {
1011
+ return typeof e == "function" ? e() : e;
1012
+ }
1013
+ function ct(e) {
1014
+ return e.nodeType !== void 0;
1015
+ }
1016
+ function xn(e) {
1017
+ return !ct(e);
1018
+ }
1019
+ const Tn = (e) => {
1020
+ const {
1021
+ classes: t
1022
+ } = e;
1023
+ return xt({
1024
+ root: ["root"]
1025
+ }, bn, t);
1026
+ }, Pn = {}, En = /* @__PURE__ */ $.forwardRef(function(t, o) {
1027
+ var r;
1028
+ const {
1029
+ anchorEl: a,
1030
+ children: i,
1031
+ direction: l,
1032
+ disablePortal: p,
1033
+ modifiers: s,
1034
+ open: f,
1035
+ placement: c,
1036
+ popperOptions: v,
1037
+ popperRef: b,
1038
+ slotProps: u = {},
1039
+ slots: T = {},
1040
+ TransitionProps: h
1041
+ // @ts-ignore internal logic
1042
+ // prevent from spreading to DOM, it can come from the parent component e.g. Select.
1043
+ } = t, m = Ve(t, yn), x = $.useRef(null), j = gt(x, o), O = $.useRef(null), d = gt(O, b), y = $.useRef(d);
1044
+ Xt(() => {
1045
+ y.current = d;
1046
+ }, [d]), $.useImperativeHandle(b, () => O.current, []);
1047
+ const g = On(c, l), [P, M] = $.useState(g), [E, R] = $.useState(st(a));
1048
+ $.useEffect(() => {
1049
+ O.current && O.current.forceUpdate();
1050
+ }), $.useEffect(() => {
1051
+ a && R(st(a));
1052
+ }, [a]), Xt(() => {
1053
+ if (!E || !f)
1054
+ return;
1055
+ const G = (S) => {
1056
+ M(S.placement);
1057
+ };
1058
+ if (process.env.NODE_ENV !== "production" && E && ct(E) && E.nodeType === 1) {
1059
+ const S = E.getBoundingClientRect();
1060
+ process.env.NODE_ENV !== "test" && S.top === 0 && S.left === 0 && S.right === 0 && S.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
1061
+ `));
1062
+ }
1063
+ let A = [{
1064
+ name: "preventOverflow",
1065
+ options: {
1066
+ altBoundary: p
1067
+ }
1068
+ }, {
1069
+ name: "flip",
1070
+ options: {
1071
+ altBoundary: p
1072
+ }
1073
+ }, {
1074
+ name: "onUpdate",
1075
+ enabled: !0,
1076
+ phase: "afterWrite",
1077
+ fn: ({
1078
+ state: S
1079
+ }) => {
1080
+ G(S);
1081
+ }
1082
+ }];
1083
+ s != null && (A = A.concat(s)), v && v.modifiers != null && (A = A.concat(v.modifiers));
1084
+ const L = gn(E, x.current, C({
1085
+ placement: g
1086
+ }, v, {
1087
+ modifiers: A
1088
+ }));
1089
+ return y.current(L), () => {
1090
+ L.destroy(), y.current(null);
1091
+ };
1092
+ }, [E, p, s, f, v, g]);
1093
+ const D = {
1094
+ placement: P
1095
+ };
1096
+ h !== null && (D.TransitionProps = h);
1097
+ const N = Tn(t), k = (r = T.root) != null ? r : "div", K = qo({
1098
+ elementType: k,
1099
+ externalSlotProps: u.root,
1100
+ externalForwardedProps: m,
1101
+ additionalProps: {
1102
+ role: "tooltip",
1103
+ ref: j
1104
+ },
1105
+ ownerState: t,
1106
+ className: N.root
1107
+ });
1108
+ return /* @__PURE__ */ te.jsx(k, C({}, K, {
1109
+ children: typeof i == "function" ? i(D) : i
1110
+ }));
1111
+ }), Co = /* @__PURE__ */ $.forwardRef(function(t, o) {
1112
+ const {
1113
+ anchorEl: r,
1114
+ children: a,
1115
+ container: i,
1116
+ direction: l = "ltr",
1117
+ disablePortal: p = !1,
1118
+ keepMounted: s = !1,
1119
+ modifiers: f,
1120
+ open: c,
1121
+ placement: v = "bottom",
1122
+ popperOptions: b = Pn,
1123
+ popperRef: u,
1124
+ style: T,
1125
+ transition: h = !1,
1126
+ slotProps: m = {},
1127
+ slots: x = {}
1128
+ } = t, j = Ve(t, wn), [O, d] = $.useState(!0), y = () => {
1129
+ d(!1);
1130
+ }, g = () => {
1131
+ d(!0);
1132
+ };
1133
+ if (!s && !c && (!h || O))
1134
+ return null;
1135
+ let P;
1136
+ if (i)
1137
+ P = i;
1138
+ else if (r) {
1139
+ const R = st(r);
1140
+ P = R && ct(R) ? qt(R).body : qt(null).body;
1141
+ }
1142
+ const M = !c && s && (!h || O) ? "none" : void 0, E = h ? {
1143
+ in: c,
1144
+ onEnter: y,
1145
+ onExited: g
1146
+ } : void 0;
1147
+ return /* @__PURE__ */ te.jsx(Fo, {
1148
+ disablePortal: p,
1149
+ container: P,
1150
+ children: /* @__PURE__ */ te.jsx(En, C({
1151
+ anchorEl: r,
1152
+ direction: l,
1153
+ disablePortal: p,
1154
+ modifiers: f,
1155
+ ref: o,
1156
+ open: h ? !O : c,
1157
+ placement: v,
1158
+ popperOptions: b,
1159
+ popperRef: u,
1160
+ slotProps: m,
1161
+ slots: x
1162
+ }, j, {
1163
+ style: C({
1164
+ // Prevents scroll issue, waiting for Popper.js to add this style once initiated.
1165
+ position: "fixed",
1166
+ // Fix Popper.js display issue
1167
+ top: 0,
1168
+ left: 0,
1169
+ display: M
1170
+ }, T),
1171
+ TransitionProps: E,
1172
+ children: a
1173
+ }))
1174
+ });
1175
+ });
1176
+ process.env.NODE_ENV !== "production" && (Co.propTypes = {
1177
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
1178
+ // │ These PropTypes are generated from the TypeScript type definitions. │
1179
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
1180
+ // └─────────────────────────────────────────────────────────────────────┘
1181
+ /**
1182
+ * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
1183
+ * or a function that returns either.
1184
+ * It's used to set the position of the popper.
1185
+ * The return value will passed as the reference object of the Popper instance.
1186
+ */
1187
+ anchorEl: Ho(n.oneOfType([at, n.object, n.func]), (e) => {
1188
+ if (e.open) {
1189
+ const t = st(e.anchorEl);
1190
+ if (t && ct(t) && t.nodeType === 1) {
1191
+ const o = t.getBoundingClientRect();
1192
+ if (process.env.NODE_ENV !== "test" && o.top === 0 && o.left === 0 && o.right === 0 && o.bottom === 0)
1193
+ return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
1194
+ `));
1195
+ } else if (!t || typeof t.getBoundingClientRect != "function" || xn(t) && t.contextElement != null && t.contextElement.nodeType !== 1)
1196
+ return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "It should be an HTML element instance or a virtualElement ", "(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
1197
+ `));
1198
+ }
1199
+ return null;
1200
+ }),
1201
+ /**
1202
+ * Popper render function or node.
1203
+ */
1204
+ children: n.oneOfType([n.node, n.func]),
1205
+ /**
1206
+ * An HTML element or function that returns one.
1207
+ * The `container` will have the portal children appended to it.
1208
+ *
1209
+ * You can also provide a callback, which is called in a React layout effect.
1210
+ * This lets you set the container from a ref, and also makes server-side rendering possible.
1211
+ *
1212
+ * By default, it uses the body of the top-level document object,
1213
+ * so it's simply `document.body` most of the time.
1214
+ */
1215
+ container: n.oneOfType([at, n.func]),
1216
+ /**
1217
+ * Direction of the text.
1218
+ * @default 'ltr'
1219
+ */
1220
+ direction: n.oneOf(["ltr", "rtl"]),
1221
+ /**
1222
+ * The `children` will be under the DOM hierarchy of the parent component.
1223
+ * @default false
1224
+ */
1225
+ disablePortal: n.bool,
1226
+ /**
1227
+ * Always keep the children in the DOM.
1228
+ * This prop can be useful in SEO situation or
1229
+ * when you want to maximize the responsiveness of the Popper.
1230
+ * @default false
1231
+ */
1232
+ keepMounted: n.bool,
1233
+ /**
1234
+ * Popper.js is based on a "plugin-like" architecture,
1235
+ * most of its features are fully encapsulated "modifiers".
1236
+ *
1237
+ * A modifier is a function that is called each time Popper.js needs to
1238
+ * compute the position of the popper.
1239
+ * For this reason, modifiers should be very performant to avoid bottlenecks.
1240
+ * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
1241
+ */
1242
+ modifiers: n.arrayOf(n.shape({
1243
+ data: n.object,
1244
+ effect: n.func,
1245
+ enabled: n.bool,
1246
+ fn: n.func,
1247
+ name: n.any,
1248
+ options: n.object,
1249
+ phase: n.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
1250
+ requires: n.arrayOf(n.string),
1251
+ requiresIfExists: n.arrayOf(n.string)
1252
+ })),
1253
+ /**
1254
+ * If `true`, the component is shown.
1255
+ */
1256
+ open: n.bool.isRequired,
1257
+ /**
1258
+ * Popper placement.
1259
+ * @default 'bottom'
1260
+ */
1261
+ placement: n.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1262
+ /**
1263
+ * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
1264
+ * @default {}
1265
+ */
1266
+ popperOptions: n.shape({
1267
+ modifiers: n.array,
1268
+ onFirstUpdate: n.func,
1269
+ placement: n.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1270
+ strategy: n.oneOf(["absolute", "fixed"])
1271
+ }),
1272
+ /**
1273
+ * A ref that points to the used popper instance.
1274
+ */
1275
+ popperRef: co,
1276
+ /**
1277
+ * The props used for each slot inside the Popper.
1278
+ * @default {}
1279
+ */
1280
+ slotProps: n.shape({
1281
+ root: n.oneOfType([n.func, n.object])
1282
+ }),
1283
+ /**
1284
+ * The components used for each slot inside the Popper.
1285
+ * Either a string to use a HTML element or a component.
1286
+ * @default {}
1287
+ */
1288
+ slots: n.shape({
1289
+ root: n.elementType
1290
+ }),
1291
+ /**
1292
+ * Help supporting a react-transition-group/Transition component.
1293
+ * @default false
1294
+ */
1295
+ transition: n.bool
1296
+ });
1297
+ const Rn = ["anchorEl", "component", "components", "componentsProps", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "transition", "slots", "slotProps"], Cn = je(Co, {
1298
+ name: "MuiPopper",
1299
+ slot: "Root",
1300
+ overridesResolver: (e, t) => t.root
1301
+ })({}), Dt = /* @__PURE__ */ $.forwardRef(function(t, o) {
1302
+ var r;
1303
+ const a = mo(), i = Tt({
1304
+ props: t,
1305
+ name: "MuiPopper"
1306
+ }), {
1307
+ anchorEl: l,
1308
+ component: p,
1309
+ components: s,
1310
+ componentsProps: f,
1311
+ container: c,
1312
+ disablePortal: v,
1313
+ keepMounted: b,
1314
+ modifiers: u,
1315
+ open: T,
1316
+ placement: h,
1317
+ popperOptions: m,
1318
+ popperRef: x,
1319
+ transition: j,
1320
+ slots: O,
1321
+ slotProps: d
1322
+ } = i, y = Ve(i, Rn), g = (r = O == null ? void 0 : O.root) != null ? r : s == null ? void 0 : s.Root, P = C({
1323
+ anchorEl: l,
1324
+ container: c,
1325
+ disablePortal: v,
1326
+ keepMounted: b,
1327
+ modifiers: u,
1328
+ open: T,
1329
+ placement: h,
1330
+ popperOptions: m,
1331
+ popperRef: x,
1332
+ transition: j
1333
+ }, y);
1334
+ return /* @__PURE__ */ te.jsx(Cn, C({
1335
+ as: p,
1336
+ direction: a == null ? void 0 : a.direction,
1337
+ slots: {
1338
+ root: g
1339
+ },
1340
+ slotProps: d ?? f
1341
+ }, P, {
1342
+ ref: o
1343
+ }));
1344
+ });
1345
+ process.env.NODE_ENV !== "production" && (Dt.propTypes = {
1346
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
1347
+ // │ These PropTypes are generated from the TypeScript type definitions. │
1348
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
1349
+ // └─────────────────────────────────────────────────────────────────────┘
1350
+ /**
1351
+ * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
1352
+ * or a function that returns either.
1353
+ * It's used to set the position of the popper.
1354
+ * The return value will passed as the reference object of the Popper instance.
1355
+ */
1356
+ anchorEl: n.oneOfType([at, n.object, n.func]),
1357
+ /**
1358
+ * Popper render function or node.
1359
+ */
1360
+ children: n.oneOfType([n.node, n.func]),
1361
+ /**
1362
+ * The component used for the root node.
1363
+ * Either a string to use a HTML element or a component.
1364
+ */
1365
+ component: n.elementType,
1366
+ /**
1367
+ * The components used for each slot inside the Popper.
1368
+ * Either a string to use a HTML element or a component.
1369
+ * @default {}
1370
+ */
1371
+ components: n.shape({
1372
+ Root: n.elementType
1373
+ }),
1374
+ /**
1375
+ * The props used for each slot inside the Popper.
1376
+ * @default {}
1377
+ */
1378
+ componentsProps: n.shape({
1379
+ root: n.oneOfType([n.func, n.object])
1380
+ }),
1381
+ /**
1382
+ * An HTML element or function that returns one.
1383
+ * The `container` will have the portal children appended to it.
1384
+ *
1385
+ * You can also provide a callback, which is called in a React layout effect.
1386
+ * This lets you set the container from a ref, and also makes server-side rendering possible.
1387
+ *
1388
+ * By default, it uses the body of the top-level document object,
1389
+ * so it's simply `document.body` most of the time.
1390
+ */
1391
+ container: n.oneOfType([at, n.func]),
1392
+ /**
1393
+ * The `children` will be under the DOM hierarchy of the parent component.
1394
+ * @default false
1395
+ */
1396
+ disablePortal: n.bool,
1397
+ /**
1398
+ * Always keep the children in the DOM.
1399
+ * This prop can be useful in SEO situation or
1400
+ * when you want to maximize the responsiveness of the Popper.
1401
+ * @default false
1402
+ */
1403
+ keepMounted: n.bool,
1404
+ /**
1405
+ * Popper.js is based on a "plugin-like" architecture,
1406
+ * most of its features are fully encapsulated "modifiers".
1407
+ *
1408
+ * A modifier is a function that is called each time Popper.js needs to
1409
+ * compute the position of the popper.
1410
+ * For this reason, modifiers should be very performant to avoid bottlenecks.
1411
+ * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
1412
+ */
1413
+ modifiers: n.arrayOf(n.shape({
1414
+ data: n.object,
1415
+ effect: n.func,
1416
+ enabled: n.bool,
1417
+ fn: n.func,
1418
+ name: n.any,
1419
+ options: n.object,
1420
+ phase: n.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
1421
+ requires: n.arrayOf(n.string),
1422
+ requiresIfExists: n.arrayOf(n.string)
1423
+ })),
1424
+ /**
1425
+ * If `true`, the component is shown.
1426
+ */
1427
+ open: n.bool.isRequired,
1428
+ /**
1429
+ * Popper placement.
1430
+ * @default 'bottom'
1431
+ */
1432
+ placement: n.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1433
+ /**
1434
+ * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
1435
+ * @default {}
1436
+ */
1437
+ popperOptions: n.shape({
1438
+ modifiers: n.array,
1439
+ onFirstUpdate: n.func,
1440
+ placement: n.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1441
+ strategy: n.oneOf(["absolute", "fixed"])
1442
+ }),
1443
+ /**
1444
+ * A ref that points to the used popper instance.
1445
+ */
1446
+ popperRef: co,
1447
+ /**
1448
+ * The props used for each slot inside the Popper.
1449
+ * @default {}
1450
+ */
1451
+ slotProps: n.shape({
1452
+ root: n.oneOfType([n.func, n.object])
1453
+ }),
1454
+ /**
1455
+ * The components used for each slot inside the Popper.
1456
+ * Either a string to use a HTML element or a component.
1457
+ * @default {}
1458
+ */
1459
+ slots: n.shape({
1460
+ root: n.elementType
1461
+ }),
1462
+ /**
1463
+ * The system prop that allows defining system overrides as well as additional CSS styles.
1464
+ */
1465
+ sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
1466
+ /**
1467
+ * Help supporting a react-transition-group/Transition component.
1468
+ * @default false
1469
+ */
1470
+ transition: n.bool
1471
+ });
1472
+ function jn(e) {
1473
+ return Ot("MuiSkeleton", e);
1474
+ }
1475
+ wt("MuiSkeleton", ["root", "text", "rectangular", "rounded", "circular", "pulse", "wave", "withChildren", "fitContent", "heightAuto"]);
1476
+ const $n = ["animation", "className", "component", "height", "style", "variant", "width"];
1477
+ let pt = (e) => e, ao, io, so, po;
1478
+ const Mn = (e) => {
1479
+ const {
1480
+ classes: t,
1481
+ variant: o,
1482
+ animation: r,
1483
+ hasChildren: a,
1484
+ width: i,
1485
+ height: l
1486
+ } = e;
1487
+ return xt({
1488
+ root: ["root", o, r, a && "withChildren", a && !i && "fitContent", a && !l && "heightAuto"]
1489
+ }, jn, t);
1490
+ }, An = fo(ao || (ao = pt`
1491
+ 0% {
1492
+ opacity: 1;
1493
+ }
1494
+
1495
+ 50% {
1496
+ opacity: 0.4;
1497
+ }
1498
+
1499
+ 100% {
1500
+ opacity: 1;
1501
+ }
1502
+ `)), Dn = fo(io || (io = pt`
1503
+ 0% {
1504
+ transform: translateX(-100%);
1505
+ }
1506
+
1507
+ 50% {
1508
+ /* +0.5s of delay between each loop */
1509
+ transform: translateX(100%);
1510
+ }
1511
+
1512
+ 100% {
1513
+ transform: translateX(100%);
1514
+ }
1515
+ `)), kn = je("span", {
1516
+ name: "MuiSkeleton",
1517
+ slot: "Root",
1518
+ overridesResolver: (e, t) => {
1519
+ const {
1520
+ ownerState: o
1521
+ } = e;
1522
+ return [t.root, t[o.variant], o.animation !== !1 && t[o.animation], o.hasChildren && t.withChildren, o.hasChildren && !o.width && t.fitContent, o.hasChildren && !o.height && t.heightAuto];
1523
+ }
1524
+ })(({
1525
+ theme: e,
1526
+ ownerState: t
1527
+ }) => {
1528
+ const o = nr(e.shape.borderRadius) || "px", r = ar(e.shape.borderRadius);
1529
+ return C({
1530
+ display: "block",
1531
+ // Create a "on paper" color with sufficient contrast retaining the color
1532
+ backgroundColor: e.vars ? e.vars.palette.Skeleton.bg : rr(e.palette.text.primary, e.palette.mode === "light" ? 0.11 : 0.13),
1533
+ height: "1.2em"
1534
+ }, t.variant === "text" && {
1535
+ marginTop: 0,
1536
+ marginBottom: 0,
1537
+ height: "auto",
1538
+ transformOrigin: "0 55%",
1539
+ transform: "scale(1, 0.60)",
1540
+ borderRadius: `${r}${o}/${Math.round(r / 0.6 * 10) / 10}${o}`,
1541
+ "&:empty:before": {
1542
+ content: '"\\00a0"'
1543
+ }
1544
+ }, t.variant === "circular" && {
1545
+ borderRadius: "50%"
1546
+ }, t.variant === "rounded" && {
1547
+ borderRadius: (e.vars || e).shape.borderRadius
1548
+ }, t.hasChildren && {
1549
+ "& > *": {
1550
+ visibility: "hidden"
1551
+ }
1552
+ }, t.hasChildren && !t.width && {
1553
+ maxWidth: "fit-content"
1554
+ }, t.hasChildren && !t.height && {
1555
+ height: "auto"
1556
+ });
1557
+ }, ({
1558
+ ownerState: e
1559
+ }) => e.animation === "pulse" && zt(so || (so = pt`
1560
+ animation: ${0} 2s ease-in-out 0.5s infinite;
1561
+ `), An), ({
1562
+ ownerState: e,
1563
+ theme: t
1564
+ }) => e.animation === "wave" && zt(po || (po = pt`
1565
+ position: relative;
1566
+ overflow: hidden;
1567
+
1568
+ /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
1569
+ -webkit-mask-image: -webkit-radial-gradient(white, black);
1570
+
1571
+ &::after {
1572
+ animation: ${0} 2s linear 0.5s infinite;
1573
+ background: linear-gradient(
1574
+ 90deg,
1575
+ transparent,
1576
+ ${0},
1577
+ transparent
1578
+ );
1579
+ content: '';
1580
+ position: absolute;
1581
+ transform: translateX(-100%); /* Avoid flash during server-side hydration */
1582
+ bottom: 0;
1583
+ left: 0;
1584
+ right: 0;
1585
+ top: 0;
1586
+ }
1587
+ `), Dn, (t.vars || t).palette.action.hover)), jo = /* @__PURE__ */ $.forwardRef(function(t, o) {
1588
+ const r = Tt({
1589
+ props: t,
1590
+ name: "MuiSkeleton"
1591
+ }), {
1592
+ animation: a = "pulse",
1593
+ className: i,
1594
+ component: l = "span",
1595
+ height: p,
1596
+ style: s,
1597
+ variant: f = "text",
1598
+ width: c
1599
+ } = r, v = Ve(r, $n), b = C({}, r, {
1600
+ animation: a,
1601
+ component: l,
1602
+ variant: f,
1603
+ hasChildren: !!v.children
1604
+ }), u = Mn(b);
1605
+ return /* @__PURE__ */ te.jsx(kn, C({
1606
+ as: l,
1607
+ ref: o,
1608
+ className: Be(u.root, i),
1609
+ ownerState: b
1610
+ }, v, {
1611
+ style: C({
1612
+ width: c,
1613
+ height: p
1614
+ }, s)
1615
+ }));
1616
+ });
1617
+ process.env.NODE_ENV !== "production" && (jo.propTypes = {
1618
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
1619
+ // │ These PropTypes are generated from the TypeScript type definitions. │
1620
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1621
+ // └─────────────────────────────────────────────────────────────────────┘
1622
+ /**
1623
+ * The animation.
1624
+ * If `false` the animation effect is disabled.
1625
+ * @default 'pulse'
1626
+ */
1627
+ animation: n.oneOf(["pulse", "wave", !1]),
1628
+ /**
1629
+ * Optional children to infer width and height from.
1630
+ */
1631
+ children: n.node,
1632
+ /**
1633
+ * Override or extend the styles applied to the component.
1634
+ */
1635
+ classes: n.object,
1636
+ /**
1637
+ * @ignore
1638
+ */
1639
+ className: n.string,
1640
+ /**
1641
+ * The component used for the root node.
1642
+ * Either a string to use a HTML element or a component.
1643
+ */
1644
+ component: n.elementType,
1645
+ /**
1646
+ * Height of the skeleton.
1647
+ * Useful when you don't want to adapt the skeleton to a text element but for instance a card.
1648
+ */
1649
+ height: n.oneOfType([n.number, n.string]),
1650
+ /**
1651
+ * @ignore
1652
+ */
1653
+ style: n.object,
1654
+ /**
1655
+ * The system prop that allows defining system overrides as well as additional CSS styles.
1656
+ */
1657
+ sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
1658
+ /**
1659
+ * The type of content that will be rendered.
1660
+ * @default 'text'
1661
+ */
1662
+ variant: n.oneOfType([n.oneOf(["circular", "rectangular", "rounded", "text"]), n.string]),
1663
+ /**
1664
+ * Width of the skeleton.
1665
+ * Useful when the skeleton is inside an inline element with no width of its own.
1666
+ */
1667
+ width: n.oneOfType([n.number, n.string])
1668
+ });
1669
+ function Ln(e) {
1670
+ return Ot("MuiTooltip", e);
1671
+ }
1672
+ const le = wt("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]), Nn = ["arrow", "children", "classes", "components", "componentsProps", "describeChild", "disableFocusListener", "disableHoverListener", "disableInteractive", "disableTouchListener", "enterDelay", "enterNextDelay", "enterTouchDelay", "followCursor", "id", "leaveDelay", "leaveTouchDelay", "onClose", "onOpen", "open", "placement", "PopperComponent", "PopperProps", "slotProps", "slots", "title", "TransitionComponent", "TransitionProps"];
1673
+ function Sn(e) {
1674
+ return Math.round(e * 1e5) / 1e5;
1675
+ }
1676
+ const Bn = (e) => {
1677
+ const {
1678
+ classes: t,
1679
+ disableInteractive: o,
1680
+ arrow: r,
1681
+ touch: a,
1682
+ placement: i
1683
+ } = e, l = {
1684
+ popper: ["popper", !o && "popperInteractive", r && "popperArrow"],
1685
+ tooltip: ["tooltip", r && "tooltipArrow", a && "touch", `tooltipPlacement${uo(i.split("-")[0])}`],
1686
+ arrow: ["arrow"]
1687
+ };
1688
+ return xt(l, Ln, t);
1689
+ }, _n = je(Dt, {
1690
+ name: "MuiTooltip",
1691
+ slot: "Popper",
1692
+ overridesResolver: (e, t) => {
1693
+ const {
1694
+ ownerState: o
1695
+ } = e;
1696
+ return [t.popper, !o.disableInteractive && t.popperInteractive, o.arrow && t.popperArrow, !o.open && t.popperClose];
1697
+ }
1698
+ })(({
1699
+ theme: e,
1700
+ ownerState: t,
1701
+ open: o
1702
+ }) => C({
1703
+ zIndex: (e.vars || e).zIndex.tooltip,
1704
+ pointerEvents: "none"
1705
+ }, !t.disableInteractive && {
1706
+ pointerEvents: "auto"
1707
+ }, !o && {
1708
+ pointerEvents: "none"
1709
+ }, t.arrow && {
1710
+ [`&[data-popper-placement*="bottom"] .${le.arrow}`]: {
1711
+ top: 0,
1712
+ marginTop: "-0.71em",
1713
+ "&::before": {
1714
+ transformOrigin: "0 100%"
1715
+ }
1716
+ },
1717
+ [`&[data-popper-placement*="top"] .${le.arrow}`]: {
1718
+ bottom: 0,
1719
+ marginBottom: "-0.71em",
1720
+ "&::before": {
1721
+ transformOrigin: "100% 0"
1722
+ }
1723
+ },
1724
+ [`&[data-popper-placement*="right"] .${le.arrow}`]: C({}, t.isRtl ? {
1725
+ right: 0,
1726
+ marginRight: "-0.71em"
1727
+ } : {
1728
+ left: 0,
1729
+ marginLeft: "-0.71em"
1730
+ }, {
1731
+ height: "1em",
1732
+ width: "0.71em",
1733
+ "&::before": {
1734
+ transformOrigin: "100% 100%"
1735
+ }
1736
+ }),
1737
+ [`&[data-popper-placement*="left"] .${le.arrow}`]: C({}, t.isRtl ? {
1738
+ left: 0,
1739
+ marginLeft: "-0.71em"
1740
+ } : {
1741
+ right: 0,
1742
+ marginRight: "-0.71em"
1743
+ }, {
1744
+ height: "1em",
1745
+ width: "0.71em",
1746
+ "&::before": {
1747
+ transformOrigin: "0 0"
1748
+ }
1749
+ })
1750
+ })), Wn = je("div", {
1751
+ name: "MuiTooltip",
1752
+ slot: "Tooltip",
1753
+ overridesResolver: (e, t) => {
1754
+ const {
1755
+ ownerState: o
1756
+ } = e;
1757
+ return [t.tooltip, o.touch && t.touch, o.arrow && t.tooltipArrow, t[`tooltipPlacement${uo(o.placement.split("-")[0])}`]];
1758
+ }
1759
+ })(({
1760
+ theme: e,
1761
+ ownerState: t
1762
+ }) => C({
1763
+ backgroundColor: e.vars ? e.vars.palette.Tooltip.bg : vo(e.palette.grey[700], 0.92),
1764
+ borderRadius: (e.vars || e).shape.borderRadius,
1765
+ color: (e.vars || e).palette.common.white,
1766
+ fontFamily: e.typography.fontFamily,
1767
+ padding: "4px 8px",
1768
+ fontSize: e.typography.pxToRem(11),
1769
+ maxWidth: 300,
1770
+ margin: 2,
1771
+ wordWrap: "break-word",
1772
+ fontWeight: e.typography.fontWeightMedium
1773
+ }, t.arrow && {
1774
+ position: "relative",
1775
+ margin: 0
1776
+ }, t.touch && {
1777
+ padding: "8px 16px",
1778
+ fontSize: e.typography.pxToRem(14),
1779
+ lineHeight: `${Sn(16 / 14)}em`,
1780
+ fontWeight: e.typography.fontWeightRegular
1781
+ }, {
1782
+ [`.${le.popper}[data-popper-placement*="left"] &`]: C({
1783
+ transformOrigin: "right center"
1784
+ }, t.isRtl ? C({
1785
+ marginLeft: "14px"
1786
+ }, t.touch && {
1787
+ marginLeft: "24px"
1788
+ }) : C({
1789
+ marginRight: "14px"
1790
+ }, t.touch && {
1791
+ marginRight: "24px"
1792
+ })),
1793
+ [`.${le.popper}[data-popper-placement*="right"] &`]: C({
1794
+ transformOrigin: "left center"
1795
+ }, t.isRtl ? C({
1796
+ marginRight: "14px"
1797
+ }, t.touch && {
1798
+ marginRight: "24px"
1799
+ }) : C({
1800
+ marginLeft: "14px"
1801
+ }, t.touch && {
1802
+ marginLeft: "24px"
1803
+ })),
1804
+ [`.${le.popper}[data-popper-placement*="top"] &`]: C({
1805
+ transformOrigin: "center bottom",
1806
+ marginBottom: "14px"
1807
+ }, t.touch && {
1808
+ marginBottom: "24px"
1809
+ }),
1810
+ [`.${le.popper}[data-popper-placement*="bottom"] &`]: C({
1811
+ transformOrigin: "center top",
1812
+ marginTop: "14px"
1813
+ }, t.touch && {
1814
+ marginTop: "24px"
1815
+ })
1816
+ })), In = je("span", {
1817
+ name: "MuiTooltip",
1818
+ slot: "Arrow",
1819
+ overridesResolver: (e, t) => t.arrow
1820
+ })(({
1821
+ theme: e
1822
+ }) => ({
1823
+ overflow: "hidden",
1824
+ position: "absolute",
1825
+ width: "1em",
1826
+ height: "0.71em",
1827
+ boxSizing: "border-box",
1828
+ color: e.vars ? e.vars.palette.Tooltip.bg : vo(e.palette.grey[700], 0.9),
1829
+ "&::before": {
1830
+ content: '""',
1831
+ margin: "auto",
1832
+ display: "block",
1833
+ width: "100%",
1834
+ height: "100%",
1835
+ backgroundColor: "currentColor",
1836
+ transform: "rotate(45deg)"
1837
+ }
1838
+ }));
1839
+ let ot = !1;
1840
+ const lo = new Qo();
1841
+ let Se = {
1842
+ x: 0,
1843
+ y: 0
1844
+ };
1845
+ function rt(e, t) {
1846
+ return (o, ...r) => {
1847
+ t && t(o, ...r), e(o, ...r);
1848
+ };
1849
+ }
1850
+ const Un = /* @__PURE__ */ $.forwardRef(function(t, o) {
1851
+ var r, a, i, l, p, s, f, c, v, b, u, T, h, m, x, j, O, d, y;
1852
+ const g = Tt({
1853
+ props: t,
1854
+ name: "MuiTooltip"
1855
+ }), {
1856
+ arrow: P = !1,
1857
+ children: M,
1858
+ components: E = {},
1859
+ componentsProps: R = {},
1860
+ describeChild: D = !1,
1861
+ disableFocusListener: N = !1,
1862
+ disableHoverListener: k = !1,
1863
+ disableInteractive: K = !1,
1864
+ disableTouchListener: G = !1,
1865
+ enterDelay: A = 100,
1866
+ enterNextDelay: L = 0,
1867
+ enterTouchDelay: S = 700,
1868
+ followCursor: J = !1,
1869
+ id: ge,
1870
+ leaveDelay: be = 0,
1871
+ leaveTouchDelay: fe = 1500,
1872
+ onClose: ue,
1873
+ onOpen: ne,
1874
+ open: Q,
1875
+ placement: se = "bottom",
1876
+ PopperComponent: pe,
1877
+ PopperProps: B = {},
1878
+ slotProps: Z = {},
1879
+ slots: ye = {},
1880
+ title: F,
1881
+ TransitionComponent: ft = Kt,
1882
+ TransitionProps: qe
1883
+ } = g, Xe = Ve(g, Nn), H = /* @__PURE__ */ $.isValidElement(M) ? M : /* @__PURE__ */ te.jsx("span", {
1884
+ children: M
1885
+ }), $e = Xo(), ze = zo(), [_, Ye] = $.useState(), [ee, we] = $.useState(null), de = $.useRef(!1), Oe = K || J, xe = Ze(), Te = Ze(), ve = Ze(), Me = Ze(), [Ke, kt] = Yo({
1886
+ controlled: Q,
1887
+ default: !1,
1888
+ name: "Tooltip",
1889
+ state: "open"
1890
+ });
1891
+ let ae = Ke;
1892
+ if (process.env.NODE_ENV !== "production") {
1893
+ const {
1894
+ current: w
1895
+ } = $.useRef(Q !== void 0);
1896
+ $.useEffect(() => {
1897
+ _ && _.disabled && !w && F !== "" && _.tagName.toLowerCase() === "button" && console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.", "A disabled element does not fire events.", "Tooltip needs to listen to the child element's events to display the title.", "", "Add a simple wrapper element, such as a `span`."].join(`
1898
+ `));
1899
+ }, [F, _, w]);
1900
+ }
1901
+ const ut = Ko(ge), Ae = $.useRef(), Ge = Yt(() => {
1902
+ Ae.current !== void 0 && (document.body.style.WebkitUserSelect = Ae.current, Ae.current = void 0), Me.clear();
1903
+ });
1904
+ $.useEffect(() => Ge, [Ge]);
1905
+ const Lt = (w) => {
1906
+ lo.clear(), ot = !0, kt(!0), ne && !ae && ne(w);
1907
+ }, Je = Yt(
1908
+ /**
1909
+ * @param {React.SyntheticEvent | Event} event
1910
+ */
1911
+ (w) => {
1912
+ lo.start(800 + be, () => {
1913
+ ot = !1;
1914
+ }), kt(!1), ue && ae && ue(w), xe.start($e.transitions.duration.shortest, () => {
1915
+ de.current = !1;
1916
+ });
1917
+ }
1918
+ ), Qe = (w) => {
1919
+ de.current && w.type !== "touchstart" || (_ && _.removeAttribute("title"), Te.clear(), ve.clear(), A || ot && L ? Te.start(ot ? L : A, () => {
1920
+ Lt(w);
1921
+ }) : Lt(w));
1922
+ }, dt = (w) => {
1923
+ Te.clear(), ve.start(be, () => {
1924
+ Je(w);
1925
+ });
1926
+ }, {
1927
+ isFocusVisibleRef: Nt,
1928
+ onBlur: $o,
1929
+ onFocus: Mo,
1930
+ ref: Ao
1931
+ } = Go(), [, St] = $.useState(!1), Bt = (w) => {
1932
+ $o(w), Nt.current === !1 && (St(!1), dt(w));
1933
+ }, _t = (w) => {
1934
+ _ || Ye(w.currentTarget), Mo(w), Nt.current === !0 && (St(!0), Qe(w));
1935
+ }, Wt = (w) => {
1936
+ de.current = !0;
1937
+ const U = H.props;
1938
+ U.onTouchStart && U.onTouchStart(w);
1939
+ }, Do = (w) => {
1940
+ Wt(w), ve.clear(), xe.clear(), Ge(), Ae.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", Me.start(S, () => {
1941
+ document.body.style.WebkitUserSelect = Ae.current, Qe(w);
1942
+ });
1943
+ }, ko = (w) => {
1944
+ H.props.onTouchEnd && H.props.onTouchEnd(w), Ge(), ve.start(fe, () => {
1945
+ Je(w);
1946
+ });
1947
+ };
1948
+ $.useEffect(() => {
1949
+ if (!ae)
1950
+ return;
1951
+ function w(U) {
1952
+ (U.key === "Escape" || U.key === "Esc") && Je(U);
1953
+ }
1954
+ return document.addEventListener("keydown", w), () => {
1955
+ document.removeEventListener("keydown", w);
1956
+ };
1957
+ }, [Je, ae]);
1958
+ const Lo = gt(H.ref, Ao, Ye, o);
1959
+ !F && F !== 0 && (ae = !1);
1960
+ const vt = $.useRef(), No = (w) => {
1961
+ const U = H.props;
1962
+ U.onMouseMove && U.onMouseMove(w), Se = {
1963
+ x: w.clientX,
1964
+ y: w.clientY
1965
+ }, vt.current && vt.current.update();
1966
+ }, De = {}, ht = typeof F == "string";
1967
+ D ? (De.title = !ae && ht && !k ? F : null, De["aria-describedby"] = ae ? ut : null) : (De["aria-label"] = ht ? F : null, De["aria-labelledby"] = ae && !ht ? ut : null);
1968
+ const q = C({}, De, Xe, H.props, {
1969
+ className: Be(Xe.className, H.props.className),
1970
+ onTouchStart: Wt,
1971
+ ref: Lo
1972
+ }, J ? {
1973
+ onMouseMove: No
1974
+ } : {});
1975
+ process.env.NODE_ENV !== "production" && (q["data-mui-internal-clone-element"] = !0, $.useEffect(() => {
1976
+ _ && !_.getAttribute("data-mui-internal-clone-element") && console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.", "Please make sure that props are spread on the same element that the ref is applied to."].join(`
1977
+ `));
1978
+ }, [_]));
1979
+ const ke = {};
1980
+ G || (q.onTouchStart = Do, q.onTouchEnd = ko), k || (q.onMouseOver = rt(Qe, q.onMouseOver), q.onMouseLeave = rt(dt, q.onMouseLeave), Oe || (ke.onMouseOver = Qe, ke.onMouseLeave = dt)), N || (q.onFocus = rt(_t, q.onFocus), q.onBlur = rt(Bt, q.onBlur), Oe || (ke.onFocus = _t, ke.onBlur = Bt)), process.env.NODE_ENV !== "production" && H.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${H.props.title}\` or the Tooltip component.`].join(`
1981
+ `));
1982
+ const So = $.useMemo(() => {
1983
+ var w;
1984
+ let U = [{
1985
+ name: "arrow",
1986
+ enabled: !!ee,
1987
+ options: {
1988
+ element: ee,
1989
+ padding: 4
1990
+ }
1991
+ }];
1992
+ return (w = B.popperOptions) != null && w.modifiers && (U = U.concat(B.popperOptions.modifiers)), C({}, B.popperOptions, {
1993
+ modifiers: U
1994
+ });
1995
+ }, [ee, B]), Le = C({}, g, {
1996
+ isRtl: ze,
1997
+ arrow: P,
1998
+ disableInteractive: Oe,
1999
+ placement: se,
2000
+ PopperComponentProp: pe,
2001
+ touch: de.current
2002
+ }), mt = Bn(Le), It = (r = (a = ye.popper) != null ? a : E.Popper) != null ? r : _n, Ut = (i = (l = (p = ye.transition) != null ? p : E.Transition) != null ? l : ft) != null ? i : Kt, Vt = (s = (f = ye.tooltip) != null ? f : E.Tooltip) != null ? s : Wn, Ft = (c = (v = ye.arrow) != null ? v : E.Arrow) != null ? c : In, Bo = et(It, C({}, B, (b = Z.popper) != null ? b : R.popper, {
2003
+ className: Be(mt.popper, B == null ? void 0 : B.className, (u = (T = Z.popper) != null ? T : R.popper) == null ? void 0 : u.className)
2004
+ }), Le), _o = et(Ut, C({}, qe, (h = Z.transition) != null ? h : R.transition), Le), Wo = et(Vt, C({}, (m = Z.tooltip) != null ? m : R.tooltip, {
2005
+ className: Be(mt.tooltip, (x = (j = Z.tooltip) != null ? j : R.tooltip) == null ? void 0 : x.className)
2006
+ }), Le), Io = et(Ft, C({}, (O = Z.arrow) != null ? O : R.arrow, {
2007
+ className: Be(mt.arrow, (d = (y = Z.arrow) != null ? y : R.arrow) == null ? void 0 : d.className)
2008
+ }), Le);
2009
+ return /* @__PURE__ */ te.jsxs($.Fragment, {
2010
+ children: [/* @__PURE__ */ $.cloneElement(H, q), /* @__PURE__ */ te.jsx(It, C({
2011
+ as: pe ?? Dt,
2012
+ placement: se,
2013
+ anchorEl: J ? {
2014
+ getBoundingClientRect: () => ({
2015
+ top: Se.y,
2016
+ left: Se.x,
2017
+ right: Se.x,
2018
+ bottom: Se.y,
2019
+ width: 0,
2020
+ height: 0
2021
+ })
2022
+ } : _,
2023
+ popperRef: vt,
2024
+ open: _ ? ae : !1,
2025
+ id: ut,
2026
+ transition: !0
2027
+ }, ke, Bo, {
2028
+ popperOptions: So,
2029
+ children: ({
2030
+ TransitionProps: w
2031
+ }) => /* @__PURE__ */ te.jsx(Ut, C({
2032
+ timeout: $e.transitions.duration.shorter
2033
+ }, w, _o, {
2034
+ children: /* @__PURE__ */ te.jsxs(Vt, C({}, Wo, {
2035
+ children: [F, P ? /* @__PURE__ */ te.jsx(Ft, C({}, Io, {
2036
+ ref: we
2037
+ })) : null]
2038
+ }))
2039
+ }))
2040
+ }))]
2041
+ });
2042
+ });
2043
+ process.env.NODE_ENV !== "production" && (Un.propTypes = {
2044
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
2045
+ // │ These PropTypes are generated from the TypeScript type definitions. │
2046
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
2047
+ // └─────────────────────────────────────────────────────────────────────┘
2048
+ /**
2049
+ * If `true`, adds an arrow to the tooltip.
2050
+ * @default false
2051
+ */
2052
+ arrow: n.bool,
2053
+ /**
2054
+ * Tooltip reference element.
2055
+ */
2056
+ children: Jo.isRequired,
2057
+ /**
2058
+ * Override or extend the styles applied to the component.
2059
+ */
2060
+ classes: n.object,
2061
+ /**
2062
+ * @ignore
2063
+ */
2064
+ className: n.string,
2065
+ /**
2066
+ * The components used for each slot inside.
2067
+ *
2068
+ * This prop is an alias for the `slots` prop.
2069
+ * It's recommended to use the `slots` prop instead.
2070
+ *
2071
+ * @default {}
2072
+ */
2073
+ components: n.shape({
2074
+ Arrow: n.elementType,
2075
+ Popper: n.elementType,
2076
+ Tooltip: n.elementType,
2077
+ Transition: n.elementType
2078
+ }),
2079
+ /**
2080
+ * The extra props for the slot components.
2081
+ * You can override the existing props or add new ones.
2082
+ *
2083
+ * This prop is an alias for the `slotProps` prop.
2084
+ * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
2085
+ *
2086
+ * @default {}
2087
+ */
2088
+ componentsProps: n.shape({
2089
+ arrow: n.object,
2090
+ popper: n.object,
2091
+ tooltip: n.object,
2092
+ transition: n.object
2093
+ }),
2094
+ /**
2095
+ * Set to `true` if the `title` acts as an accessible description.
2096
+ * By default the `title` acts as an accessible label for the child.
2097
+ * @default false
2098
+ */
2099
+ describeChild: n.bool,
2100
+ /**
2101
+ * Do not respond to focus-visible events.
2102
+ * @default false
2103
+ */
2104
+ disableFocusListener: n.bool,
2105
+ /**
2106
+ * Do not respond to hover events.
2107
+ * @default false
2108
+ */
2109
+ disableHoverListener: n.bool,
2110
+ /**
2111
+ * Makes a tooltip not interactive, i.e. it will close when the user
2112
+ * hovers over the tooltip before the `leaveDelay` is expired.
2113
+ * @default false
2114
+ */
2115
+ disableInteractive: n.bool,
2116
+ /**
2117
+ * Do not respond to long press touch events.
2118
+ * @default false
2119
+ */
2120
+ disableTouchListener: n.bool,
2121
+ /**
2122
+ * The number of milliseconds to wait before showing the tooltip.
2123
+ * This prop won't impact the enter touch delay (`enterTouchDelay`).
2124
+ * @default 100
2125
+ */
2126
+ enterDelay: n.number,
2127
+ /**
2128
+ * The number of milliseconds to wait before showing the tooltip when one was already recently opened.
2129
+ * @default 0
2130
+ */
2131
+ enterNextDelay: n.number,
2132
+ /**
2133
+ * The number of milliseconds a user must touch the element before showing the tooltip.
2134
+ * @default 700
2135
+ */
2136
+ enterTouchDelay: n.number,
2137
+ /**
2138
+ * If `true`, the tooltip follow the cursor over the wrapped element.
2139
+ * @default false
2140
+ */
2141
+ followCursor: n.bool,
2142
+ /**
2143
+ * This prop is used to help implement the accessibility logic.
2144
+ * If you don't provide this prop. It falls back to a randomly generated id.
2145
+ */
2146
+ id: n.string,
2147
+ /**
2148
+ * The number of milliseconds to wait before hiding the tooltip.
2149
+ * This prop won't impact the leave touch delay (`leaveTouchDelay`).
2150
+ * @default 0
2151
+ */
2152
+ leaveDelay: n.number,
2153
+ /**
2154
+ * The number of milliseconds after the user stops touching an element before hiding the tooltip.
2155
+ * @default 1500
2156
+ */
2157
+ leaveTouchDelay: n.number,
2158
+ /**
2159
+ * Callback fired when the component requests to be closed.
2160
+ *
2161
+ * @param {React.SyntheticEvent} event The event source of the callback.
2162
+ */
2163
+ onClose: n.func,
2164
+ /**
2165
+ * Callback fired when the component requests to be open.
2166
+ *
2167
+ * @param {React.SyntheticEvent} event The event source of the callback.
2168
+ */
2169
+ onOpen: n.func,
2170
+ /**
2171
+ * If `true`, the component is shown.
2172
+ */
2173
+ open: n.bool,
2174
+ /**
2175
+ * Tooltip placement.
2176
+ * @default 'bottom'
2177
+ */
2178
+ placement: n.oneOf(["bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
2179
+ /**
2180
+ * The component used for the popper.
2181
+ * @default Popper
2182
+ */
2183
+ PopperComponent: n.elementType,
2184
+ /**
2185
+ * Props applied to the [`Popper`](/material-ui/api/popper/) element.
2186
+ * @default {}
2187
+ */
2188
+ PopperProps: n.object,
2189
+ /**
2190
+ * The extra props for the slot components.
2191
+ * You can override the existing props or add new ones.
2192
+ *
2193
+ * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
2194
+ *
2195
+ * @default {}
2196
+ */
2197
+ slotProps: n.shape({
2198
+ arrow: n.object,
2199
+ popper: n.object,
2200
+ tooltip: n.object,
2201
+ transition: n.object
2202
+ }),
2203
+ /**
2204
+ * The components used for each slot inside.
2205
+ *
2206
+ * This prop is an alias for the `components` prop, which will be deprecated in the future.
2207
+ *
2208
+ * @default {}
2209
+ */
2210
+ slots: n.shape({
2211
+ arrow: n.elementType,
2212
+ popper: n.elementType,
2213
+ tooltip: n.elementType,
2214
+ transition: n.elementType
2215
+ }),
2216
+ /**
2217
+ * The system prop that allows defining system overrides as well as additional CSS styles.
2218
+ */
2219
+ sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
2220
+ /**
2221
+ * Tooltip title. Zero-length titles string, undefined, null and false are never displayed.
2222
+ */
2223
+ title: n.node,
2224
+ /**
2225
+ * The component used for the transition.
2226
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
2227
+ * @default Grow
2228
+ */
2229
+ TransitionComponent: n.elementType,
2230
+ /**
2231
+ * Props applied to the transition element.
2232
+ * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
2233
+ */
2234
+ TransitionProps: n.object
2235
+ });
2236
+ const Hn = (e) => e.connectorLirary.connectorTemplateList, qn = (e) => e.connectorLirary.connectorTemplates, Xn = (e) => e.connectorLirary.selectedConnectorData, zn = (e) => e.connectorLirary.templateListApiStatus, Yn = (e) => e.connectorLirary.connectorList, Kn = (e) => e.connectorLirary.connectors, Gn = (e) => e.connectorLirary.selectedConnector, Jn = (e) => e.connectorLirary.templateDetailsApiStatus, Qn = (e) => e.connectorLirary.currentUpdatingConnectors, Zn = je(jo)`
2237
+ display: block;
2238
+ margin: ${(e) => e.margin ? e.margin : 0};
2239
+ `;
2240
+ export {
2241
+ Zn as C,
2242
+ Dt as P,
2243
+ Un as T,
2244
+ qn as a,
2245
+ zn as b,
2246
+ Yn as c,
2247
+ Kn as d,
2248
+ Xn as e,
2249
+ Jn as f,
2250
+ Gn as g,
2251
+ Qn as h,
2252
+ Hn as s
2253
+ };