fansunited-frontend-components 0.0.92 → 0.0.94

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 (139) hide show
  1. package/Betslip.js +1 -1
  2. package/ChanceGame.js +139 -146
  3. package/ClassicQuizPlay.js +1 -1
  4. package/CollectLead.js +14 -20
  5. package/CompetitionStatistics.js +27 -27
  6. package/CompetitorCard.js +895 -891
  7. package/Discussion.js +1 -1
  8. package/EitherOrPlay.js +1 -1
  9. package/EventCard.js +1494 -1571
  10. package/EventGamePlay.js +1 -1
  11. package/Leaderboard.js +249 -257
  12. package/List.js +319 -436
  13. package/MatchQuizPlay.js +1 -1
  14. package/Odds.js +30 -30
  15. package/PersonalityQuizPlay.js +1 -1
  16. package/PickThePair.js +627 -693
  17. package/PlayerOfTheMatch.js +256 -279
  18. package/PollVote.js +1 -1
  19. package/Predictor.js +19443 -2
  20. package/README.md +2 -1
  21. package/Standings.js +94 -99
  22. package/TopX.js +5871 -6988
  23. package/chunks/ChanceGameEmbedVariant-C3NGwvTF.js +21 -0
  24. package/chunks/OddsSkeleton-Bav8FHHN.js +26 -0
  25. package/chunks/{OddsStrip-B159Nivm.js → OddsStrip-CviVfQI4.js} +51 -53
  26. package/chunks/{PickOneOfX-D9qlxKTD.js → PickOneOfX-a6Dv0-rR.js} +210 -212
  27. package/chunks/index-B1d9q8fX.js +4 -0
  28. package/chunks/index-BP0pvFJ4.js +4 -0
  29. package/chunks/index-CHZyL_g_.js +4 -0
  30. package/chunks/index-CeCUdRmF.js +4 -0
  31. package/chunks/index-Ckyyw-I8.js +4 -0
  32. package/chunks/index-DGvCP5G8.js +4 -0
  33. package/chunks/index-yjMVOgwO.js +4 -0
  34. package/chunks/{main-CcPVuc5G.js → main-CFwRpvUi.js} +219 -238
  35. package/chunks/{main-By2Fg4Us.js → main-D9tFZv2q.js} +272 -309
  36. package/chunks/{main-Db4YC1C9.js → main-Dj4Manb5.js} +386 -407
  37. package/chunks/{main-BhONg691.js → main-DjiQz1dv.js} +764 -1125
  38. package/chunks/{main-BoLNJccN.js → main-Dys2_Jt2.js} +1625 -1954
  39. package/chunks/{main-JAewg2VD.js → main-dwV_55lz.js} +409 -432
  40. package/chunks/main-eAQMCxQ7.js +1949 -0
  41. package/chunks/{main-CWfREbUv.js → main-gexg6lc-.js} +959 -977
  42. package/index.js +40 -44
  43. package/package.json +13 -5
  44. package/chunks/AccessTime-B7Q_InTi.js +0 -10
  45. package/chunks/AlertMessage-CTbc9daZ.js +0 -318
  46. package/chunks/Avatar-Ve0m4ut_.js +0 -353
  47. package/chunks/Button-x1sQVMH2.js +0 -665
  48. package/chunks/Card-DfxnA3Cz.js +0 -196
  49. package/chunks/CardActions-TMBAbk8a.js +0 -140
  50. package/chunks/CardContent-CLQHztIU.js +0 -106
  51. package/chunks/ChanceGameEmbedVariant-C3TKbPI4.js +0 -913
  52. package/chunks/CheckCircle-DW1VzjQO.js +0 -8
  53. package/chunks/Chip-BUoNpinI.js +0 -365
  54. package/chunks/CircularProgress-D88LgW2V.js +0 -317
  55. package/chunks/Close-BxLZcPtb.js +0 -9
  56. package/chunks/Close-DVx6f5-e.js +0 -8
  57. package/chunks/CollectLeadForm-DtUFKk99.js +0 -3419
  58. package/chunks/ConsentsList-BcIMKviP.js +0 -339
  59. package/chunks/DirectionScope-CK0duYt8.js +0 -36
  60. package/chunks/Divider-D_ALv2uC.js +0 -166
  61. package/chunks/Edit-CiKqhDom.js +0 -99
  62. package/chunks/EmojiEvents-BYoxruEl.js +0 -8
  63. package/chunks/FavoriteBorder-YhT6RHv5.js +0 -11
  64. package/chunks/FormControl-BNG04EhC.js +0 -656
  65. package/chunks/FormControlContext-Ct0huDDM.js +0 -6
  66. package/chunks/FormLabel-Bl7hTa8O.js +0 -130
  67. package/chunks/GlobalStyles-PokSS9bO.js +0 -12
  68. package/chunks/InlineSpinner-BhKW6lxZ.js +0 -28
  69. package/chunks/Input-B7kPqO0b.js +0 -391
  70. package/chunks/KeyboardArrowDown-OGGGLEnE.js +0 -8
  71. package/chunks/KeyboardArrowRight-DN7qrp17.js +0 -11
  72. package/chunks/KeyboardArrowUp-jvN5m_A0.js +0 -8
  73. package/chunks/Link-brb09X-6.js +0 -319
  74. package/chunks/ListItemButton-BFG5QJbo.js +0 -1151
  75. package/chunks/ModalClose-D3i-AyMB.js +0 -153
  76. package/chunks/ModalDialog-Be6w76fh.js +0 -880
  77. package/chunks/NotFoundSkeleton-BHRVG8yg.js +0 -83
  78. package/chunks/Notification-CC66HKXb.js +0 -614
  79. package/chunks/OddsSkeleton-BBOVhfsn.js +0 -137
  80. package/chunks/OverlayScoreStateSkeleton-D5rnBJ_w.js +0 -154
  81. package/chunks/OverlayScoreStateWrapperSkeleton-CTXzD0bm.js +0 -81
  82. package/chunks/OverlaySignInSkeleton-T8A_9Tco.js +0 -518
  83. package/chunks/OverlaySkeleton-y02LRXZy.js +0 -1193
  84. package/chunks/Person-BD-IO4aX.js +0 -8
  85. package/chunks/PersonOutline-Nxl_9g9S.js +0 -8
  86. package/chunks/Popper-CGfJHTbM.js +0 -1263
  87. package/chunks/Portal-DQQSLiON.js +0 -74
  88. package/chunks/Portal-X8O64KaQ.js +0 -66
  89. package/chunks/Predictor-BJBBwZ6R.js +0 -19513
  90. package/chunks/PrizeCard-B2tBhY45.js +0 -36400
  91. package/chunks/Search-jaDXe8g7.js +0 -14
  92. package/chunks/Select-CzBMHr7z.js +0 -1165
  93. package/chunks/Sheet-x-YGYOYz.js +0 -132
  94. package/chunks/SignInCta-3NFxIOuf.js +0 -79
  95. package/chunks/Spinner-_5U881sC.js +0 -39
  96. package/chunks/SportsSoccer-DLUgspA-.js +0 -20
  97. package/chunks/Stack-CDpKA1D-.js +0 -169
  98. package/chunks/StandardContentSkeleton-DaZftDxZ.js +0 -57
  99. package/chunks/Table-IJ9-D2DF.js +0 -394
  100. package/chunks/Tabs-iyOvjGfd.js +0 -1084
  101. package/chunks/Textarea-Dv_Z4l5j.js +0 -475
  102. package/chunks/TimerOutlined-jNsK__Zz.js +0 -8
  103. package/chunks/Tooltip-clSjN1oC.js +0 -535
  104. package/chunks/Typography-BsucZNXl.js +0 -775
  105. package/chunks/areArraysEqual-B3mXtHvh.js +0 -6
  106. package/chunks/colorInversionUtils-AoR_6ghW.js +0 -347
  107. package/chunks/createSvgIcon-BWoHeNkc.js +0 -2813
  108. package/chunks/createSvgIcon-DBkOhFdn.js +0 -206
  109. package/chunks/dividerClasses-BkQMLbsL.js +0 -9
  110. package/chunks/elementAcceptingRef-DjUfkpLB.js +0 -25
  111. package/chunks/enums-B1lTCQvC.js +0 -15
  112. package/chunks/formLabelClasses-N0g8NZ67.js +0 -9
  113. package/chunks/getReactElementRef-B3MFPBbS.js +0 -21
  114. package/chunks/helpers-CKFwVhwj.js +0 -558
  115. package/chunks/index-Bg5jypgn.js +0 -11
  116. package/chunks/index-Bnad45hB.js +0 -4
  117. package/chunks/index-C6rtfeRX.js +0 -4
  118. package/chunks/index-CFc0WTOi.js +0 -848
  119. package/chunks/index-C_kf8WZI.js +0 -4
  120. package/chunks/index-CaVpDbdC.js +0 -4
  121. package/chunks/index-DJJVbXn_.js +0 -4
  122. package/chunks/index-DQO7VDRC.js +0 -4
  123. package/chunks/index-Kgehqf8J.js +0 -4
  124. package/chunks/main-W_W6YBtr.js +0 -3280
  125. package/chunks/ownerWindow-PI509BpA.js +0 -7
  126. package/chunks/searchEntities-SJcoznz0.js +0 -38
  127. package/chunks/sportsEvents-CGX-WkNB.js +0 -27
  128. package/chunks/useButton-C9taTgFS.js +0 -106
  129. package/chunks/useConsents-BLhgfEDf.js +0 -1168
  130. package/chunks/useControlled-BYdyS7Pn.js +0 -31
  131. package/chunks/useEmbedCode-DCWnWGak.js +0 -31
  132. package/chunks/useEventCallback-C9W0M_8l.js +0 -14
  133. package/chunks/useForwardedInput-CkAnayh_.js +0 -180
  134. package/chunks/useImageVariant-B62O7iLC.js +0 -15
  135. package/chunks/useInfoPage-BHdgKdme.js +0 -50
  136. package/chunks/useParticipationDraft-Brnd_p3w.js +0 -307
  137. package/chunks/useSwitch-DLSSqtcZ.js +0 -66
  138. package/chunks/variantColorInheritance-DZr7CNx6.js +0 -30
  139. package/chunks/visuallyHidden-B8J7BVSJ.js +0 -14
@@ -1,1263 +0,0 @@
1
- import { P as d, H as $e, _ as ee, ah as At, D as Ge } from "./PrizeCard-B2tBhY45.js";
2
- import * as L from "react";
3
- import { jsx as Te } from "react/jsx-runtime";
4
- import { o as Je, c as Ct } from "./getReactElementRef-B3MFPBbS.js";
5
- import { P as Tt, H as Ke } from "./Portal-DQQSLiON.js";
6
- import { r as Dt, m as St, u as De, l as jt, c as $t } from "./Typography-BsucZNXl.js";
7
- const Bt = d.oneOfType([d.func, d.object]), Mt = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
8
- function kt(e) {
9
- var t;
10
- const {
11
- elementType: r,
12
- externalSlotProps: o,
13
- ownerState: n,
14
- skipResolvingSlotProps: a = !1
15
- } = e, f = $e(e, Mt), i = a ? {} : Dt(o, n), {
16
- props: s,
17
- internalRef: l
18
- } = St(ee({}, f, {
19
- externalSlotProps: i
20
- })), p = De(l, i == null ? void 0 : i.ref, (t = e.additionalProps) == null ? void 0 : t.ref);
21
- return jt(r, ee({}, s, {
22
- ref: p
23
- }), n);
24
- }
25
- const Lt = {
26
- disableDefaultClasses: !1
27
- }, st = /* @__PURE__ */ L.createContext(Lt);
28
- process.env.NODE_ENV !== "production" && (st.displayName = "ClassNameConfiguratorContext");
29
- function Nt(e) {
30
- const {
31
- disableDefaultClasses: t
32
- } = L.useContext(st);
33
- return (r) => t ? "" : e(r);
34
- }
35
- const pt = "base";
36
- function Wt(e) {
37
- return `${pt}--${e}`;
38
- }
39
- function Ht(e, t) {
40
- return `${pt}-${e}-${t}`;
41
- }
42
- function ft(e, t) {
43
- const r = At[t];
44
- return r ? Wt(r) : Ht(e, t);
45
- }
46
- function Vt(e, t) {
47
- const r = {};
48
- return t.forEach((o) => {
49
- r[o] = ft(e, o);
50
- }), r;
51
- }
52
- var $ = "top", H = "bottom", V = "right", B = "left", Be = "auto", ue = [$, H, V, B], te = "start", le = "end", Ut = "clippingParents", lt = "viewport", se = "popper", Ft = "reference", Qe = /* @__PURE__ */ ue.reduce(function(e, t) {
53
- return e.concat([t + "-" + te, t + "-" + le]);
54
- }, []), ct = /* @__PURE__ */ [].concat(ue, [Be]).reduce(function(e, t) {
55
- return e.concat([t, t + "-" + te, t + "-" + le]);
56
- }, []), It = "beforeRead", qt = "read", Xt = "afterRead", Yt = "beforeMain", zt = "main", _t = "afterMain", Gt = "beforeWrite", Jt = "write", Kt = "afterWrite", Qt = [It, qt, Xt, Yt, zt, _t, Gt, Jt, Kt];
57
- function F(e) {
58
- return e ? (e.nodeName || "").toLowerCase() : null;
59
- }
60
- function N(e) {
61
- if (e == null)
62
- return window;
63
- if (e.toString() !== "[object Window]") {
64
- var t = e.ownerDocument;
65
- return t && t.defaultView || window;
66
- }
67
- return e;
68
- }
69
- function Q(e) {
70
- var t = N(e).Element;
71
- return e instanceof t || e instanceof Element;
72
- }
73
- function W(e) {
74
- var t = N(e).HTMLElement;
75
- return e instanceof t || e instanceof HTMLElement;
76
- }
77
- function Me(e) {
78
- if (typeof ShadowRoot > "u")
79
- return !1;
80
- var t = N(e).ShadowRoot;
81
- return e instanceof t || e instanceof ShadowRoot;
82
- }
83
- function Zt(e) {
84
- var t = e.state;
85
- Object.keys(t.elements).forEach(function(r) {
86
- var o = t.styles[r] || {}, n = t.attributes[r] || {}, a = t.elements[r];
87
- !W(a) || !F(a) || (Object.assign(a.style, o), Object.keys(n).forEach(function(f) {
88
- var i = n[f];
89
- i === !1 ? a.removeAttribute(f) : a.setAttribute(f, i === !0 ? "" : i);
90
- }));
91
- });
92
- }
93
- function er(e) {
94
- var t = e.state, r = {
95
- popper: {
96
- position: t.options.strategy,
97
- left: "0",
98
- top: "0",
99
- margin: "0"
100
- },
101
- arrow: {
102
- position: "absolute"
103
- },
104
- reference: {}
105
- };
106
- return Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function() {
107
- Object.keys(t.elements).forEach(function(o) {
108
- var n = t.elements[o], a = t.attributes[o] || {}, f = Object.keys(t.styles.hasOwnProperty(o) ? t.styles[o] : r[o]), i = f.reduce(function(s, l) {
109
- return s[l] = "", s;
110
- }, {});
111
- !W(n) || !F(n) || (Object.assign(n.style, i), Object.keys(a).forEach(function(s) {
112
- n.removeAttribute(s);
113
- }));
114
- });
115
- };
116
- }
117
- const tr = {
118
- name: "applyStyles",
119
- enabled: !0,
120
- phase: "write",
121
- fn: Zt,
122
- effect: er,
123
- requires: ["computeStyles"]
124
- };
125
- function U(e) {
126
- return e.split("-")[0];
127
- }
128
- var K = Math.max, we = Math.min, re = Math.round;
129
- function Se() {
130
- var e = navigator.userAgentData;
131
- return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
132
- return t.brand + "/" + t.version;
133
- }).join(" ") : navigator.userAgent;
134
- }
135
- function ut() {
136
- return !/^((?!chrome|android).)*safari/i.test(Se());
137
- }
138
- function oe(e, t, r) {
139
- t === void 0 && (t = !1), r === void 0 && (r = !1);
140
- var o = e.getBoundingClientRect(), n = 1, a = 1;
141
- t && W(e) && (n = e.offsetWidth > 0 && re(o.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && re(o.height) / e.offsetHeight || 1);
142
- var f = Q(e) ? N(e) : window, i = f.visualViewport, s = !ut() && r, l = (o.left + (s && i ? i.offsetLeft : 0)) / n, p = (o.top + (s && i ? i.offsetTop : 0)) / a, m = o.width / n, b = o.height / a;
143
- return {
144
- width: m,
145
- height: b,
146
- top: p,
147
- right: l + m,
148
- bottom: p + b,
149
- left: l,
150
- x: l,
151
- y: p
152
- };
153
- }
154
- function ke(e) {
155
- var t = oe(e), r = e.offsetWidth, o = e.offsetHeight;
156
- return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - o) <= 1 && (o = t.height), {
157
- x: e.offsetLeft,
158
- y: e.offsetTop,
159
- width: r,
160
- height: o
161
- };
162
- }
163
- function dt(e, t) {
164
- var r = t.getRootNode && t.getRootNode();
165
- if (e.contains(t))
166
- return !0;
167
- if (r && Me(r)) {
168
- var o = t;
169
- do {
170
- if (o && e.isSameNode(o))
171
- return !0;
172
- o = o.parentNode || o.host;
173
- } while (o);
174
- }
175
- return !1;
176
- }
177
- function X(e) {
178
- return N(e).getComputedStyle(e);
179
- }
180
- function rr(e) {
181
- return ["table", "td", "th"].indexOf(F(e)) >= 0;
182
- }
183
- function z(e) {
184
- return ((Q(e) ? e.ownerDocument : (
185
- // $FlowFixMe[prop-missing]
186
- e.document
187
- )) || window.document).documentElement;
188
- }
189
- function Oe(e) {
190
- return F(e) === "html" ? e : (
191
- // this is a quicker (but less type safe) way to save quite some bytes from the bundle
192
- // $FlowFixMe[incompatible-return]
193
- // $FlowFixMe[prop-missing]
194
- e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
195
- e.parentNode || // DOM Element detected
196
- (Me(e) ? e.host : null) || // ShadowRoot detected
197
- // $FlowFixMe[incompatible-call]: HTMLElement is a Node
198
- z(e)
199
- );
200
- }
201
- function Ze(e) {
202
- return !W(e) || // https://github.com/popperjs/popper-core/issues/837
203
- X(e).position === "fixed" ? null : e.offsetParent;
204
- }
205
- function or(e) {
206
- var t = /firefox/i.test(Se()), r = /Trident/i.test(Se());
207
- if (r && W(e)) {
208
- var o = X(e);
209
- if (o.position === "fixed")
210
- return null;
211
- }
212
- var n = Oe(e);
213
- for (Me(n) && (n = n.host); W(n) && ["html", "body"].indexOf(F(n)) < 0; ) {
214
- var a = X(n);
215
- if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || t && a.willChange === "filter" || t && a.filter && a.filter !== "none")
216
- return n;
217
- n = n.parentNode;
218
- }
219
- return null;
220
- }
221
- function de(e) {
222
- for (var t = N(e), r = Ze(e); r && rr(r) && X(r).position === "static"; )
223
- r = Ze(r);
224
- return r && (F(r) === "html" || F(r) === "body" && X(r).position === "static") ? t : r || or(e) || t;
225
- }
226
- function Le(e) {
227
- return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
228
- }
229
- function pe(e, t, r) {
230
- return K(e, we(t, r));
231
- }
232
- function nr(e, t, r) {
233
- var o = pe(e, t, r);
234
- return o > r ? r : o;
235
- }
236
- function vt() {
237
- return {
238
- top: 0,
239
- right: 0,
240
- bottom: 0,
241
- left: 0
242
- };
243
- }
244
- function mt(e) {
245
- return Object.assign({}, vt(), e);
246
- }
247
- function ht(e, t) {
248
- return t.reduce(function(r, o) {
249
- return r[o] = e, r;
250
- }, {});
251
- }
252
- var ar = function(t, r) {
253
- return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
254
- placement: r.placement
255
- })) : t, mt(typeof t != "number" ? t : ht(t, ue));
256
- };
257
- function ir(e) {
258
- var t, r = e.state, o = e.name, n = e.options, a = r.elements.arrow, f = r.modifiersData.popperOffsets, i = U(r.placement), s = Le(i), l = [B, V].indexOf(i) >= 0, p = l ? "height" : "width";
259
- if (!(!a || !f)) {
260
- var m = ar(n.padding, r), b = ke(a), c = s === "y" ? $ : B, O = s === "y" ? H : V, v = r.rects.reference[p] + r.rects.reference[s] - f[s] - r.rects.popper[p], h = f[s] - r.rects.reference[s], w = de(a), R = w ? s === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, x = v / 2 - h / 2, u = m[c], g = R - b[p] - m[O], y = R / 2 - b[p] / 2 + x, P = pe(u, y, g), C = s;
261
- r.modifiersData[o] = (t = {}, t[C] = P, t.centerOffset = P - y, t);
262
- }
263
- }
264
- function sr(e) {
265
- var t = e.state, r = e.options, o = r.element, n = o === void 0 ? "[data-popper-arrow]" : o;
266
- n != null && (typeof n == "string" && (n = t.elements.popper.querySelector(n), !n) || dt(t.elements.popper, n) && (t.elements.arrow = n));
267
- }
268
- const pr = {
269
- name: "arrow",
270
- enabled: !0,
271
- phase: "main",
272
- fn: ir,
273
- effect: sr,
274
- requires: ["popperOffsets"],
275
- requiresIfExists: ["preventOverflow"]
276
- };
277
- function ne(e) {
278
- return e.split("-")[1];
279
- }
280
- var fr = {
281
- top: "auto",
282
- right: "auto",
283
- bottom: "auto",
284
- left: "auto"
285
- };
286
- function lr(e, t) {
287
- var r = e.x, o = e.y, n = t.devicePixelRatio || 1;
288
- return {
289
- x: re(r * n) / n || 0,
290
- y: re(o * n) / n || 0
291
- };
292
- }
293
- function et(e) {
294
- var t, r = e.popper, o = e.popperRect, n = e.placement, a = e.variation, f = e.offsets, i = e.position, s = e.gpuAcceleration, l = e.adaptive, p = e.roundOffsets, m = e.isFixed, b = f.x, c = b === void 0 ? 0 : b, O = f.y, v = O === void 0 ? 0 : O, h = typeof p == "function" ? p({
295
- x: c,
296
- y: v
297
- }) : {
298
- x: c,
299
- y: v
300
- };
301
- c = h.x, v = h.y;
302
- var w = f.hasOwnProperty("x"), R = f.hasOwnProperty("y"), x = B, u = $, g = window;
303
- if (l) {
304
- var y = de(r), P = "clientHeight", C = "clientWidth";
305
- if (y === N(r) && (y = z(r), X(y).position !== "static" && i === "absolute" && (P = "scrollHeight", C = "scrollWidth")), y = y, n === $ || (n === B || n === V) && a === le) {
306
- u = H;
307
- var E = m && y === g && g.visualViewport ? g.visualViewport.height : (
308
- // $FlowFixMe[prop-missing]
309
- y[P]
310
- );
311
- v -= E - o.height, v *= s ? 1 : -1;
312
- }
313
- if (n === B || (n === $ || n === H) && a === le) {
314
- x = V;
315
- var A = m && y === g && g.visualViewport ? g.visualViewport.width : (
316
- // $FlowFixMe[prop-missing]
317
- y[C]
318
- );
319
- c -= A - o.width, c *= s ? 1 : -1;
320
- }
321
- }
322
- var T = Object.assign({
323
- position: i
324
- }, l && fr), M = p === !0 ? lr({
325
- x: c,
326
- y: v
327
- }, N(r)) : {
328
- x: c,
329
- y: v
330
- };
331
- if (c = M.x, v = M.y, s) {
332
- var S;
333
- return Object.assign({}, T, (S = {}, S[u] = R ? "0" : "", S[x] = w ? "0" : "", S.transform = (g.devicePixelRatio || 1) <= 1 ? "translate(" + c + "px, " + v + "px)" : "translate3d(" + c + "px, " + v + "px, 0)", S));
334
- }
335
- return Object.assign({}, T, (t = {}, t[u] = R ? v + "px" : "", t[x] = w ? c + "px" : "", t.transform = "", t));
336
- }
337
- function cr(e) {
338
- var t = e.state, r = e.options, o = r.gpuAcceleration, n = o === void 0 ? !0 : o, a = r.adaptive, f = a === void 0 ? !0 : a, i = r.roundOffsets, s = i === void 0 ? !0 : i, l = {
339
- placement: U(t.placement),
340
- variation: ne(t.placement),
341
- popper: t.elements.popper,
342
- popperRect: t.rects.popper,
343
- gpuAcceleration: n,
344
- isFixed: t.options.strategy === "fixed"
345
- };
346
- t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, et(Object.assign({}, l, {
347
- offsets: t.modifiersData.popperOffsets,
348
- position: t.options.strategy,
349
- adaptive: f,
350
- roundOffsets: s
351
- })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, et(Object.assign({}, l, {
352
- offsets: t.modifiersData.arrow,
353
- position: "absolute",
354
- adaptive: !1,
355
- roundOffsets: s
356
- })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
357
- "data-popper-placement": t.placement
358
- });
359
- }
360
- const ur = {
361
- name: "computeStyles",
362
- enabled: !0,
363
- phase: "beforeWrite",
364
- fn: cr,
365
- data: {}
366
- };
367
- var ye = {
368
- passive: !0
369
- };
370
- function dr(e) {
371
- var t = e.state, r = e.instance, o = e.options, n = o.scroll, a = n === void 0 ? !0 : n, f = o.resize, i = f === void 0 ? !0 : f, s = N(t.elements.popper), l = [].concat(t.scrollParents.reference, t.scrollParents.popper);
372
- return a && l.forEach(function(p) {
373
- p.addEventListener("scroll", r.update, ye);
374
- }), i && s.addEventListener("resize", r.update, ye), function() {
375
- a && l.forEach(function(p) {
376
- p.removeEventListener("scroll", r.update, ye);
377
- }), i && s.removeEventListener("resize", r.update, ye);
378
- };
379
- }
380
- const vr = {
381
- name: "eventListeners",
382
- enabled: !0,
383
- phase: "write",
384
- fn: function() {
385
- },
386
- effect: dr,
387
- data: {}
388
- };
389
- var mr = {
390
- left: "right",
391
- right: "left",
392
- bottom: "top",
393
- top: "bottom"
394
- };
395
- function be(e) {
396
- return e.replace(/left|right|bottom|top/g, function(t) {
397
- return mr[t];
398
- });
399
- }
400
- var hr = {
401
- start: "end",
402
- end: "start"
403
- };
404
- function tt(e) {
405
- return e.replace(/start|end/g, function(t) {
406
- return hr[t];
407
- });
408
- }
409
- function Ne(e) {
410
- var t = N(e), r = t.pageXOffset, o = t.pageYOffset;
411
- return {
412
- scrollLeft: r,
413
- scrollTop: o
414
- };
415
- }
416
- function We(e) {
417
- return oe(z(e)).left + Ne(e).scrollLeft;
418
- }
419
- function gr(e, t) {
420
- var r = N(e), o = z(e), n = r.visualViewport, a = o.clientWidth, f = o.clientHeight, i = 0, s = 0;
421
- if (n) {
422
- a = n.width, f = n.height;
423
- var l = ut();
424
- (l || !l && t === "fixed") && (i = n.offsetLeft, s = n.offsetTop);
425
- }
426
- return {
427
- width: a,
428
- height: f,
429
- x: i + We(e),
430
- y: s
431
- };
432
- }
433
- function yr(e) {
434
- var t, r = z(e), o = Ne(e), n = (t = e.ownerDocument) == null ? void 0 : t.body, a = K(r.scrollWidth, r.clientWidth, n ? n.scrollWidth : 0, n ? n.clientWidth : 0), f = K(r.scrollHeight, r.clientHeight, n ? n.scrollHeight : 0, n ? n.clientHeight : 0), i = -o.scrollLeft + We(e), s = -o.scrollTop;
435
- return X(n || r).direction === "rtl" && (i += K(r.clientWidth, n ? n.clientWidth : 0) - a), {
436
- width: a,
437
- height: f,
438
- x: i,
439
- y: s
440
- };
441
- }
442
- function He(e) {
443
- var t = X(e), r = t.overflow, o = t.overflowX, n = t.overflowY;
444
- return /auto|scroll|overlay|hidden/.test(r + n + o);
445
- }
446
- function gt(e) {
447
- return ["html", "body", "#document"].indexOf(F(e)) >= 0 ? e.ownerDocument.body : W(e) && He(e) ? e : gt(Oe(e));
448
- }
449
- function fe(e, t) {
450
- var r;
451
- t === void 0 && (t = []);
452
- var o = gt(e), n = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = N(o), f = n ? [a].concat(a.visualViewport || [], He(o) ? o : []) : o, i = t.concat(f);
453
- return n ? i : (
454
- // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
455
- i.concat(fe(Oe(f)))
456
- );
457
- }
458
- function je(e) {
459
- return Object.assign({}, e, {
460
- left: e.x,
461
- top: e.y,
462
- right: e.x + e.width,
463
- bottom: e.y + e.height
464
- });
465
- }
466
- function br(e, t) {
467
- var r = oe(e, !1, t === "fixed");
468
- return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
469
- }
470
- function rt(e, t, r) {
471
- return t === lt ? je(gr(e, r)) : Q(t) ? br(t, r) : je(yr(z(e)));
472
- }
473
- function wr(e) {
474
- var t = fe(Oe(e)), r = ["absolute", "fixed"].indexOf(X(e).position) >= 0, o = r && W(e) ? de(e) : e;
475
- return Q(o) ? t.filter(function(n) {
476
- return Q(n) && dt(n, o) && F(n) !== "body";
477
- }) : [];
478
- }
479
- function xr(e, t, r, o) {
480
- var n = t === "clippingParents" ? wr(e) : [].concat(t), a = [].concat(n, [r]), f = a[0], i = a.reduce(function(s, l) {
481
- var p = rt(e, l, o);
482
- return s.top = K(p.top, s.top), s.right = we(p.right, s.right), s.bottom = we(p.bottom, s.bottom), s.left = K(p.left, s.left), s;
483
- }, rt(e, f, o));
484
- return i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
485
- }
486
- function yt(e) {
487
- var t = e.reference, r = e.element, o = e.placement, n = o ? U(o) : null, a = o ? ne(o) : null, f = t.x + t.width / 2 - r.width / 2, i = t.y + t.height / 2 - r.height / 2, s;
488
- switch (n) {
489
- case $:
490
- s = {
491
- x: f,
492
- y: t.y - r.height
493
- };
494
- break;
495
- case H:
496
- s = {
497
- x: f,
498
- y: t.y + t.height
499
- };
500
- break;
501
- case V:
502
- s = {
503
- x: t.x + t.width,
504
- y: i
505
- };
506
- break;
507
- case B:
508
- s = {
509
- x: t.x - r.width,
510
- y: i
511
- };
512
- break;
513
- default:
514
- s = {
515
- x: t.x,
516
- y: t.y
517
- };
518
- }
519
- var l = n ? Le(n) : null;
520
- if (l != null) {
521
- var p = l === "y" ? "height" : "width";
522
- switch (a) {
523
- case te:
524
- s[l] = s[l] - (t[p] / 2 - r[p] / 2);
525
- break;
526
- case le:
527
- s[l] = s[l] + (t[p] / 2 - r[p] / 2);
528
- break;
529
- }
530
- }
531
- return s;
532
- }
533
- function ce(e, t) {
534
- t === void 0 && (t = {});
535
- var r = t, o = r.placement, n = o === void 0 ? e.placement : o, a = r.strategy, f = a === void 0 ? e.strategy : a, i = r.boundary, s = i === void 0 ? Ut : i, l = r.rootBoundary, p = l === void 0 ? lt : l, m = r.elementContext, b = m === void 0 ? se : m, c = r.altBoundary, O = c === void 0 ? !1 : c, v = r.padding, h = v === void 0 ? 0 : v, w = mt(typeof h != "number" ? h : ht(h, ue)), R = b === se ? Ft : se, x = e.rects.popper, u = e.elements[O ? R : b], g = xr(Q(u) ? u : u.contextElement || z(e.elements.popper), s, p, f), y = oe(e.elements.reference), P = yt({
536
- reference: y,
537
- element: x,
538
- strategy: "absolute",
539
- placement: n
540
- }), C = je(Object.assign({}, x, P)), E = b === se ? C : y, A = {
541
- top: g.top - E.top + w.top,
542
- bottom: E.bottom - g.bottom + w.bottom,
543
- left: g.left - E.left + w.left,
544
- right: E.right - g.right + w.right
545
- }, T = e.modifiersData.offset;
546
- if (b === se && T) {
547
- var M = T[n];
548
- Object.keys(A).forEach(function(S) {
549
- var I = [V, H].indexOf(S) >= 0 ? 1 : -1, q = [$, H].indexOf(S) >= 0 ? "y" : "x";
550
- A[S] += M[q] * I;
551
- });
552
- }
553
- return A;
554
- }
555
- function Or(e, t) {
556
- t === void 0 && (t = {});
557
- var r = t, o = r.placement, n = r.boundary, a = r.rootBoundary, f = r.padding, i = r.flipVariations, s = r.allowedAutoPlacements, l = s === void 0 ? ct : s, p = ne(o), m = p ? i ? Qe : Qe.filter(function(O) {
558
- return ne(O) === p;
559
- }) : ue, b = m.filter(function(O) {
560
- return l.indexOf(O) >= 0;
561
- });
562
- b.length === 0 && (b = m);
563
- var c = b.reduce(function(O, v) {
564
- return O[v] = ce(e, {
565
- placement: v,
566
- boundary: n,
567
- rootBoundary: a,
568
- padding: f
569
- })[U(v)], O;
570
- }, {});
571
- return Object.keys(c).sort(function(O, v) {
572
- return c[O] - c[v];
573
- });
574
- }
575
- function Pr(e) {
576
- if (U(e) === Be)
577
- return [];
578
- var t = be(e);
579
- return [tt(e), t, tt(t)];
580
- }
581
- function Er(e) {
582
- var t = e.state, r = e.options, o = e.name;
583
- if (!t.modifiersData[o]._skip) {
584
- for (var n = r.mainAxis, a = n === void 0 ? !0 : n, f = r.altAxis, i = f === void 0 ? !0 : f, s = r.fallbackPlacements, l = r.padding, p = r.boundary, m = r.rootBoundary, b = r.altBoundary, c = r.flipVariations, O = c === void 0 ? !0 : c, v = r.allowedAutoPlacements, h = t.options.placement, w = U(h), R = w === h, x = s || (R || !O ? [be(h)] : Pr(h)), u = [h].concat(x).reduce(function(Z, Y) {
585
- return Z.concat(U(Y) === Be ? Or(t, {
586
- placement: Y,
587
- boundary: p,
588
- rootBoundary: m,
589
- padding: l,
590
- flipVariations: O,
591
- allowedAutoPlacements: v
592
- }) : Y);
593
- }, []), g = t.rects.reference, y = t.rects.popper, P = /* @__PURE__ */ new Map(), C = !0, E = u[0], A = 0; A < u.length; A++) {
594
- var T = u[A], M = U(T), S = ne(T) === te, I = [$, H].indexOf(M) >= 0, q = I ? "width" : "height", D = ce(t, {
595
- placement: T,
596
- boundary: p,
597
- rootBoundary: m,
598
- altBoundary: b,
599
- padding: l
600
- }), j = I ? S ? V : B : S ? H : $;
601
- g[q] > y[q] && (j = be(j));
602
- var k = be(j), _ = [];
603
- if (a && _.push(D[M] <= 0), i && _.push(D[j] <= 0, D[k] <= 0), _.every(function(Z) {
604
- return Z;
605
- })) {
606
- E = T, C = !1;
607
- break;
608
- }
609
- P.set(T, _);
610
- }
611
- if (C)
612
- for (var ve = O ? 3 : 1, Ee = function(Y) {
613
- var ie = u.find(function(he) {
614
- var G = P.get(he);
615
- if (G)
616
- return G.slice(0, Y).every(function(Re) {
617
- return Re;
618
- });
619
- });
620
- if (ie)
621
- return E = ie, "break";
622
- }, ae = ve; ae > 0; ae--) {
623
- var me = Ee(ae);
624
- if (me === "break") break;
625
- }
626
- t.placement !== E && (t.modifiersData[o]._skip = !0, t.placement = E, t.reset = !0);
627
- }
628
- }
629
- const Rr = {
630
- name: "flip",
631
- enabled: !0,
632
- phase: "main",
633
- fn: Er,
634
- requiresIfExists: ["offset"],
635
- data: {
636
- _skip: !1
637
- }
638
- };
639
- function ot(e, t, r) {
640
- return r === void 0 && (r = {
641
- x: 0,
642
- y: 0
643
- }), {
644
- top: e.top - t.height - r.y,
645
- right: e.right - t.width + r.x,
646
- bottom: e.bottom - t.height + r.y,
647
- left: e.left - t.width - r.x
648
- };
649
- }
650
- function nt(e) {
651
- return [$, V, H, B].some(function(t) {
652
- return e[t] >= 0;
653
- });
654
- }
655
- function Ar(e) {
656
- var t = e.state, r = e.name, o = t.rects.reference, n = t.rects.popper, a = t.modifiersData.preventOverflow, f = ce(t, {
657
- elementContext: "reference"
658
- }), i = ce(t, {
659
- altBoundary: !0
660
- }), s = ot(f, o), l = ot(i, n, a), p = nt(s), m = nt(l);
661
- t.modifiersData[r] = {
662
- referenceClippingOffsets: s,
663
- popperEscapeOffsets: l,
664
- isReferenceHidden: p,
665
- hasPopperEscaped: m
666
- }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
667
- "data-popper-reference-hidden": p,
668
- "data-popper-escaped": m
669
- });
670
- }
671
- const Cr = {
672
- name: "hide",
673
- enabled: !0,
674
- phase: "main",
675
- requiresIfExists: ["preventOverflow"],
676
- fn: Ar
677
- };
678
- function Tr(e, t, r) {
679
- var o = U(e), n = [B, $].indexOf(o) >= 0 ? -1 : 1, a = typeof r == "function" ? r(Object.assign({}, t, {
680
- placement: e
681
- })) : r, f = a[0], i = a[1];
682
- return f = f || 0, i = (i || 0) * n, [B, V].indexOf(o) >= 0 ? {
683
- x: i,
684
- y: f
685
- } : {
686
- x: f,
687
- y: i
688
- };
689
- }
690
- function Dr(e) {
691
- var t = e.state, r = e.options, o = e.name, n = r.offset, a = n === void 0 ? [0, 0] : n, f = ct.reduce(function(p, m) {
692
- return p[m] = Tr(m, t.rects, a), p;
693
- }, {}), i = f[t.placement], s = i.x, l = i.y;
694
- t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += l), t.modifiersData[o] = f;
695
- }
696
- const Sr = {
697
- name: "offset",
698
- enabled: !0,
699
- phase: "main",
700
- requires: ["popperOffsets"],
701
- fn: Dr
702
- };
703
- function jr(e) {
704
- var t = e.state, r = e.name;
705
- t.modifiersData[r] = yt({
706
- reference: t.rects.reference,
707
- element: t.rects.popper,
708
- strategy: "absolute",
709
- placement: t.placement
710
- });
711
- }
712
- const $r = {
713
- name: "popperOffsets",
714
- enabled: !0,
715
- phase: "read",
716
- fn: jr,
717
- data: {}
718
- };
719
- function Br(e) {
720
- return e === "x" ? "y" : "x";
721
- }
722
- function Mr(e) {
723
- var t = e.state, r = e.options, o = e.name, n = r.mainAxis, a = n === void 0 ? !0 : n, f = r.altAxis, i = f === void 0 ? !1 : f, s = r.boundary, l = r.rootBoundary, p = r.altBoundary, m = r.padding, b = r.tether, c = b === void 0 ? !0 : b, O = r.tetherOffset, v = O === void 0 ? 0 : O, h = ce(t, {
724
- boundary: s,
725
- rootBoundary: l,
726
- padding: m,
727
- altBoundary: p
728
- }), w = U(t.placement), R = ne(t.placement), x = !R, u = Le(w), g = Br(u), y = t.modifiersData.popperOffsets, P = t.rects.reference, C = t.rects.popper, E = typeof v == "function" ? v(Object.assign({}, t.rects, {
729
- placement: t.placement
730
- })) : v, A = typeof E == "number" ? {
731
- mainAxis: E,
732
- altAxis: E
733
- } : Object.assign({
734
- mainAxis: 0,
735
- altAxis: 0
736
- }, E), T = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, M = {
737
- x: 0,
738
- y: 0
739
- };
740
- if (y) {
741
- if (a) {
742
- var S, I = u === "y" ? $ : B, q = u === "y" ? H : V, D = u === "y" ? "height" : "width", j = y[u], k = j + h[I], _ = j - h[q], ve = c ? -C[D] / 2 : 0, Ee = R === te ? P[D] : C[D], ae = R === te ? -C[D] : -P[D], me = t.elements.arrow, Z = c && me ? ke(me) : {
743
- width: 0,
744
- height: 0
745
- }, Y = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : vt(), ie = Y[I], he = Y[q], G = pe(0, P[D], Z[D]), Re = x ? P[D] / 2 - ve - G - ie - A.mainAxis : Ee - G - ie - A.mainAxis, wt = x ? -P[D] / 2 + ve + G + he + A.mainAxis : ae + G + he + A.mainAxis, Ae = t.elements.arrow && de(t.elements.arrow), xt = Ae ? u === "y" ? Ae.clientTop || 0 : Ae.clientLeft || 0 : 0, Ve = (S = T == null ? void 0 : T[u]) != null ? S : 0, Ot = j + Re - Ve - xt, Pt = j + wt - Ve, Ue = pe(c ? we(k, Ot) : k, j, c ? K(_, Pt) : _);
746
- y[u] = Ue, M[u] = Ue - j;
747
- }
748
- if (i) {
749
- var Fe, Et = u === "x" ? $ : B, Rt = u === "x" ? H : V, J = y[g], ge = g === "y" ? "height" : "width", Ie = J + h[Et], qe = J - h[Rt], Ce = [$, B].indexOf(w) !== -1, Xe = (Fe = T == null ? void 0 : T[g]) != null ? Fe : 0, Ye = Ce ? Ie : J - P[ge] - C[ge] - Xe + A.altAxis, ze = Ce ? J + P[ge] + C[ge] - Xe - A.altAxis : qe, _e = c && Ce ? nr(Ye, J, ze) : pe(c ? Ye : Ie, J, c ? ze : qe);
750
- y[g] = _e, M[g] = _e - J;
751
- }
752
- t.modifiersData[o] = M;
753
- }
754
- }
755
- const kr = {
756
- name: "preventOverflow",
757
- enabled: !0,
758
- phase: "main",
759
- fn: Mr,
760
- requiresIfExists: ["offset"]
761
- };
762
- function Lr(e) {
763
- return {
764
- scrollLeft: e.scrollLeft,
765
- scrollTop: e.scrollTop
766
- };
767
- }
768
- function Nr(e) {
769
- return e === N(e) || !W(e) ? Ne(e) : Lr(e);
770
- }
771
- function Wr(e) {
772
- var t = e.getBoundingClientRect(), r = re(t.width) / e.offsetWidth || 1, o = re(t.height) / e.offsetHeight || 1;
773
- return r !== 1 || o !== 1;
774
- }
775
- function Hr(e, t, r) {
776
- r === void 0 && (r = !1);
777
- var o = W(t), n = W(t) && Wr(t), a = z(t), f = oe(e, n, r), i = {
778
- scrollLeft: 0,
779
- scrollTop: 0
780
- }, s = {
781
- x: 0,
782
- y: 0
783
- };
784
- return (o || !o && !r) && ((F(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
785
- He(a)) && (i = Nr(t)), W(t) ? (s = oe(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : a && (s.x = We(a))), {
786
- x: f.left + i.scrollLeft - s.x,
787
- y: f.top + i.scrollTop - s.y,
788
- width: f.width,
789
- height: f.height
790
- };
791
- }
792
- function Vr(e) {
793
- var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), o = [];
794
- e.forEach(function(a) {
795
- t.set(a.name, a);
796
- });
797
- function n(a) {
798
- r.add(a.name);
799
- var f = [].concat(a.requires || [], a.requiresIfExists || []);
800
- f.forEach(function(i) {
801
- if (!r.has(i)) {
802
- var s = t.get(i);
803
- s && n(s);
804
- }
805
- }), o.push(a);
806
- }
807
- return e.forEach(function(a) {
808
- r.has(a.name) || n(a);
809
- }), o;
810
- }
811
- function Ur(e) {
812
- var t = Vr(e);
813
- return Qt.reduce(function(r, o) {
814
- return r.concat(t.filter(function(n) {
815
- return n.phase === o;
816
- }));
817
- }, []);
818
- }
819
- function Fr(e) {
820
- var t;
821
- return function() {
822
- return t || (t = new Promise(function(r) {
823
- Promise.resolve().then(function() {
824
- t = void 0, r(e());
825
- });
826
- })), t;
827
- };
828
- }
829
- function Ir(e) {
830
- var t = e.reduce(function(r, o) {
831
- var n = r[o.name];
832
- return r[o.name] = n ? Object.assign({}, n, o, {
833
- options: Object.assign({}, n.options, o.options),
834
- data: Object.assign({}, n.data, o.data)
835
- }) : o, r;
836
- }, {});
837
- return Object.keys(t).map(function(r) {
838
- return t[r];
839
- });
840
- }
841
- var at = {
842
- placement: "bottom",
843
- modifiers: [],
844
- strategy: "absolute"
845
- };
846
- function it() {
847
- for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
848
- t[r] = arguments[r];
849
- return !t.some(function(o) {
850
- return !(o && typeof o.getBoundingClientRect == "function");
851
- });
852
- }
853
- function qr(e) {
854
- e === void 0 && (e = {});
855
- var t = e, r = t.defaultModifiers, o = r === void 0 ? [] : r, n = t.defaultOptions, a = n === void 0 ? at : n;
856
- return function(i, s, l) {
857
- l === void 0 && (l = a);
858
- var p = {
859
- placement: "bottom",
860
- orderedModifiers: [],
861
- options: Object.assign({}, at, a),
862
- modifiersData: {},
863
- elements: {
864
- reference: i,
865
- popper: s
866
- },
867
- attributes: {},
868
- styles: {}
869
- }, m = [], b = !1, c = {
870
- state: p,
871
- setOptions: function(w) {
872
- var R = typeof w == "function" ? w(p.options) : w;
873
- v(), p.options = Object.assign({}, a, p.options, R), p.scrollParents = {
874
- reference: Q(i) ? fe(i) : i.contextElement ? fe(i.contextElement) : [],
875
- popper: fe(s)
876
- };
877
- var x = Ur(Ir([].concat(o, p.options.modifiers)));
878
- return p.orderedModifiers = x.filter(function(u) {
879
- return u.enabled;
880
- }), O(), c.update();
881
- },
882
- // Sync update – it will always be executed, even if not necessary. This
883
- // is useful for low frequency updates where sync behavior simplifies the
884
- // logic.
885
- // For high frequency updates (e.g. `resize` and `scroll` events), always
886
- // prefer the async Popper#update method
887
- forceUpdate: function() {
888
- if (!b) {
889
- var w = p.elements, R = w.reference, x = w.popper;
890
- if (it(R, x)) {
891
- p.rects = {
892
- reference: Hr(R, de(x), p.options.strategy === "fixed"),
893
- popper: ke(x)
894
- }, p.reset = !1, p.placement = p.options.placement, p.orderedModifiers.forEach(function(A) {
895
- return p.modifiersData[A.name] = Object.assign({}, A.data);
896
- });
897
- for (var u = 0; u < p.orderedModifiers.length; u++) {
898
- if (p.reset === !0) {
899
- p.reset = !1, u = -1;
900
- continue;
901
- }
902
- var g = p.orderedModifiers[u], y = g.fn, P = g.options, C = P === void 0 ? {} : P, E = g.name;
903
- typeof y == "function" && (p = y({
904
- state: p,
905
- options: C,
906
- name: E,
907
- instance: c
908
- }) || p);
909
- }
910
- }
911
- }
912
- },
913
- // Async and optimistically optimized update – it will not be executed if
914
- // not necessary (debounced to run at most once-per-tick)
915
- update: Fr(function() {
916
- return new Promise(function(h) {
917
- c.forceUpdate(), h(p);
918
- });
919
- }),
920
- destroy: function() {
921
- v(), b = !0;
922
- }
923
- };
924
- if (!it(i, s))
925
- return c;
926
- c.setOptions(l).then(function(h) {
927
- !b && l.onFirstUpdate && l.onFirstUpdate(h);
928
- });
929
- function O() {
930
- p.orderedModifiers.forEach(function(h) {
931
- var w = h.name, R = h.options, x = R === void 0 ? {} : R, u = h.effect;
932
- if (typeof u == "function") {
933
- var g = u({
934
- state: p,
935
- name: w,
936
- instance: c,
937
- options: x
938
- }), y = function() {
939
- };
940
- m.push(g || y);
941
- }
942
- });
943
- }
944
- function v() {
945
- m.forEach(function(h) {
946
- return h();
947
- }), m = [];
948
- }
949
- return c;
950
- };
951
- }
952
- var Xr = [vr, $r, ur, tr, Sr, Rr, kr, pr, Cr], Yr = /* @__PURE__ */ qr({
953
- defaultModifiers: Xr
954
- });
955
- const bt = "Popper";
956
- function zr(e) {
957
- return ft(bt, e);
958
- }
959
- Vt(bt, ["root"]);
960
- const _r = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"], Gr = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
961
- function Jr(e, t) {
962
- if (t === "ltr")
963
- return e;
964
- switch (e) {
965
- case "bottom-end":
966
- return "bottom-start";
967
- case "bottom-start":
968
- return "bottom-end";
969
- case "top-end":
970
- return "top-start";
971
- case "top-start":
972
- return "top-end";
973
- default:
974
- return e;
975
- }
976
- }
977
- function xe(e) {
978
- return typeof e == "function" ? e() : e;
979
- }
980
- function Pe(e) {
981
- return e.nodeType !== void 0;
982
- }
983
- function Kr(e) {
984
- return !Pe(e);
985
- }
986
- const Qr = () => $t({
987
- root: ["root"]
988
- }, Nt(zr)), Zr = {}, eo = /* @__PURE__ */ L.forwardRef(function(t, r) {
989
- var o;
990
- const {
991
- anchorEl: n,
992
- children: a,
993
- direction: f,
994
- disablePortal: i,
995
- modifiers: s,
996
- open: l,
997
- placement: p,
998
- popperOptions: m,
999
- popperRef: b,
1000
- slotProps: c = {},
1001
- slots: O = {},
1002
- TransitionProps: v
1003
- // @ts-ignore internal logic
1004
- // prevent from spreading to DOM, it can come from the parent component e.g. Select.
1005
- } = t, h = $e(t, _r), w = L.useRef(null), R = De(w, r), x = L.useRef(null), u = De(x, b), g = L.useRef(u);
1006
- Ge(() => {
1007
- g.current = u;
1008
- }, [u]), L.useImperativeHandle(b, () => x.current, []);
1009
- const y = Jr(p, f), [P, C] = L.useState(y), [E, A] = L.useState(xe(n));
1010
- L.useEffect(() => {
1011
- x.current && x.current.forceUpdate();
1012
- }), L.useEffect(() => {
1013
- n && A(xe(n));
1014
- }, [n]), Ge(() => {
1015
- if (!E || !l)
1016
- return;
1017
- const q = (k) => {
1018
- C(k.placement);
1019
- };
1020
- if (process.env.NODE_ENV !== "production" && E && Pe(E) && E.nodeType === 1) {
1021
- const k = E.getBoundingClientRect();
1022
- process.env.NODE_ENV !== "test" && k.top === 0 && k.left === 0 && k.right === 0 && k.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(`
1023
- `));
1024
- }
1025
- let D = [{
1026
- name: "preventOverflow",
1027
- options: {
1028
- altBoundary: i
1029
- }
1030
- }, {
1031
- name: "flip",
1032
- options: {
1033
- altBoundary: i
1034
- }
1035
- }, {
1036
- name: "onUpdate",
1037
- enabled: !0,
1038
- phase: "afterWrite",
1039
- fn: ({
1040
- state: k
1041
- }) => {
1042
- q(k);
1043
- }
1044
- }];
1045
- s != null && (D = D.concat(s)), m && m.modifiers != null && (D = D.concat(m.modifiers));
1046
- const j = Yr(E, w.current, ee({
1047
- placement: y
1048
- }, m, {
1049
- modifiers: D
1050
- }));
1051
- return g.current(j), () => {
1052
- j.destroy(), g.current(null);
1053
- };
1054
- }, [E, i, s, l, m, y]);
1055
- const T = {
1056
- placement: P
1057
- };
1058
- v !== null && (T.TransitionProps = v);
1059
- const M = Qr(), S = (o = O.root) != null ? o : "div", I = kt({
1060
- elementType: S,
1061
- externalSlotProps: c.root,
1062
- externalForwardedProps: h,
1063
- additionalProps: {
1064
- role: "tooltip",
1065
- ref: R
1066
- },
1067
- ownerState: t,
1068
- className: M.root
1069
- });
1070
- return /* @__PURE__ */ Te(S, ee({}, I, {
1071
- children: typeof a == "function" ? a(T) : a
1072
- }));
1073
- }), to = /* @__PURE__ */ L.forwardRef(function(t, r) {
1074
- const {
1075
- anchorEl: o,
1076
- children: n,
1077
- container: a,
1078
- direction: f = "ltr",
1079
- disablePortal: i = !1,
1080
- keepMounted: s = !1,
1081
- modifiers: l,
1082
- open: p,
1083
- placement: m = "bottom",
1084
- popperOptions: b = Zr,
1085
- popperRef: c,
1086
- style: O,
1087
- transition: v = !1,
1088
- slotProps: h = {},
1089
- slots: w = {}
1090
- } = t, R = $e(t, Gr), [x, u] = L.useState(!0), g = () => {
1091
- u(!1);
1092
- }, y = () => {
1093
- u(!0);
1094
- };
1095
- if (!s && !p && (!v || x))
1096
- return null;
1097
- let P;
1098
- if (a)
1099
- P = a;
1100
- else if (o) {
1101
- const A = xe(o);
1102
- P = A && Pe(A) ? Je(A).body : Je(null).body;
1103
- }
1104
- const C = !p && s && (!v || x) ? "none" : void 0, E = v ? {
1105
- in: p,
1106
- onEnter: g,
1107
- onExited: y
1108
- } : void 0;
1109
- return /* @__PURE__ */ Te(Tt, {
1110
- disablePortal: i,
1111
- container: P,
1112
- children: /* @__PURE__ */ Te(eo, ee({
1113
- anchorEl: o,
1114
- direction: f,
1115
- disablePortal: i,
1116
- modifiers: l,
1117
- ref: r,
1118
- open: v ? !x : p,
1119
- placement: m,
1120
- popperOptions: b,
1121
- popperRef: c,
1122
- slotProps: h,
1123
- slots: w
1124
- }, R, {
1125
- style: ee({
1126
- // Prevents scroll issue, waiting for Popper.js to add this style once initiated.
1127
- position: "fixed",
1128
- // Fix Popper.js display issue
1129
- top: 0,
1130
- left: 0,
1131
- display: C
1132
- }, O),
1133
- TransitionProps: E,
1134
- children: n
1135
- }))
1136
- });
1137
- });
1138
- process.env.NODE_ENV !== "production" && (to.propTypes = {
1139
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1140
- // │ These PropTypes are generated from the TypeScript type definitions. │
1141
- // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
1142
- // └─────────────────────────────────────────────────────────────────────┘
1143
- /**
1144
- * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
1145
- * or a function that returns either.
1146
- * It's used to set the position of the popper.
1147
- * The return value will passed as the reference object of the Popper instance.
1148
- */
1149
- anchorEl: Ct(d.oneOfType([Ke, d.object, d.func]), (e) => {
1150
- if (e.open) {
1151
- const t = xe(e.anchorEl);
1152
- if (t && Pe(t) && t.nodeType === 1) {
1153
- const r = t.getBoundingClientRect();
1154
- if (process.env.NODE_ENV !== "test" && r.top === 0 && r.left === 0 && r.right === 0 && r.bottom === 0)
1155
- 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(`
1156
- `));
1157
- } else if (!t || typeof t.getBoundingClientRect != "function" || Kr(t) && t.contextElement != null && t.contextElement.nodeType !== 1)
1158
- 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(`
1159
- `));
1160
- }
1161
- return null;
1162
- }),
1163
- /**
1164
- * Popper render function or node.
1165
- */
1166
- children: d.oneOfType([d.node, d.func]),
1167
- /**
1168
- * An HTML element or function that returns one.
1169
- * The `container` will have the portal children appended to it.
1170
- *
1171
- * You can also provide a callback, which is called in a React layout effect.
1172
- * This lets you set the container from a ref, and also makes server-side rendering possible.
1173
- *
1174
- * By default, it uses the body of the top-level document object,
1175
- * so it's simply `document.body` most of the time.
1176
- */
1177
- container: d.oneOfType([Ke, d.func]),
1178
- /**
1179
- * Direction of the text.
1180
- * @default 'ltr'
1181
- */
1182
- direction: d.oneOf(["ltr", "rtl"]),
1183
- /**
1184
- * The `children` will be under the DOM hierarchy of the parent component.
1185
- * @default false
1186
- */
1187
- disablePortal: d.bool,
1188
- /**
1189
- * Always keep the children in the DOM.
1190
- * This prop can be useful in SEO situation or
1191
- * when you want to maximize the responsiveness of the Popper.
1192
- * @default false
1193
- */
1194
- keepMounted: d.bool,
1195
- /**
1196
- * Popper.js is based on a "plugin-like" architecture,
1197
- * most of its features are fully encapsulated "modifiers".
1198
- *
1199
- * A modifier is a function that is called each time Popper.js needs to
1200
- * compute the position of the popper.
1201
- * For this reason, modifiers should be very performant to avoid bottlenecks.
1202
- * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
1203
- */
1204
- modifiers: d.arrayOf(d.shape({
1205
- data: d.object,
1206
- effect: d.func,
1207
- enabled: d.bool,
1208
- fn: d.func,
1209
- name: d.any,
1210
- options: d.object,
1211
- phase: d.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
1212
- requires: d.arrayOf(d.string),
1213
- requiresIfExists: d.arrayOf(d.string)
1214
- })),
1215
- /**
1216
- * If `true`, the component is shown.
1217
- */
1218
- open: d.bool.isRequired,
1219
- /**
1220
- * Popper placement.
1221
- * @default 'bottom'
1222
- */
1223
- placement: d.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"]),
1224
- /**
1225
- * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
1226
- * @default {}
1227
- */
1228
- popperOptions: d.shape({
1229
- modifiers: d.array,
1230
- onFirstUpdate: d.func,
1231
- placement: d.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"]),
1232
- strategy: d.oneOf(["absolute", "fixed"])
1233
- }),
1234
- /**
1235
- * A ref that points to the used popper instance.
1236
- */
1237
- popperRef: Bt,
1238
- /**
1239
- * The props used for each slot inside the Popper.
1240
- * @default {}
1241
- */
1242
- slotProps: d.shape({
1243
- root: d.oneOfType([d.func, d.object])
1244
- }),
1245
- /**
1246
- * The components used for each slot inside the Popper.
1247
- * Either a string to use a HTML element or a component.
1248
- * @default {}
1249
- */
1250
- slots: d.shape({
1251
- root: d.elementType
1252
- }),
1253
- /**
1254
- * Help supporting a react-transition-group/Transition component.
1255
- * @default false
1256
- */
1257
- transition: d.bool
1258
- });
1259
- export {
1260
- to as P,
1261
- Bt as r,
1262
- kt as u
1263
- };