react-luminus-components 1.0.6 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/.vite/manifest.json +43 -44
  2. package/dist/Collapse.module-DvvJlfPd.js +212 -0
  3. package/dist/Collapse.module-cs5hXOag.mjs +2896 -0
  4. package/dist/Modal-B2qKFgqh.js +1 -0
  5. package/dist/{Modal-DsY3WNWM.mjs → Modal-Dx5XXGby.mjs} +166 -162
  6. package/dist/SimpleTooltip-C9ijHgfs.js +1 -0
  7. package/dist/SimpleTooltip-CmA9EcfY.mjs +1622 -0
  8. package/dist/components/BnfTableValueFormats/UserAvatarValueFormat/UserAvatarValueFormat.d.ts +3 -0
  9. package/dist/components/BnfTableValueFormats/index.d.ts +1 -0
  10. package/dist/components/Buttons/ContextButton/ContextButton.d.ts +13 -0
  11. package/dist/components/Buttons/PrimaryButton/PrimaryButton.d.ts +14 -0
  12. package/dist/components/Buttons/index.d.ts +3 -0
  13. package/dist/components/Dropdown/Dropdown.d.ts +8 -0
  14. package/dist/components/Dropdown/comps/DropdownItem/DropdownItem.d.ts +9 -0
  15. package/dist/components/Dropdown/comps/DropdownToggle/DropdownToggle.d.ts +7 -0
  16. package/dist/components/Dropdown/comps/SimpleToggle/SimpleToggle.d.ts +10 -0
  17. package/dist/components/Dropdown/comps/index.d.ts +4 -0
  18. package/dist/components/Dropdown/index.d.ts +2 -0
  19. package/dist/components/Form/SelectInput/SelectInput.d.ts +2 -1
  20. package/dist/components/HookForm/index.d.ts +0 -1
  21. package/dist/components/Tabs/Tabs.d.ts +7 -0
  22. package/dist/components/Tabs/comps/Tab/Tab.d.ts +7 -0
  23. package/dist/components/Tabs/comps/index.d.ts +1 -0
  24. package/dist/components/Tabs/index.d.ts +2 -0
  25. package/dist/components/Toaster/Toaster.d.ts +3 -0
  26. package/dist/components/UserAvatar/index.d.ts +0 -1
  27. package/dist/components/common/ApiFileDownloadButton/ApiFileDownloadButton.d.ts +2 -3
  28. package/dist/components/common/Badge/Badge.d.ts +9 -0
  29. package/dist/components/common/Collapse/Collapse.d.ts +8 -0
  30. package/dist/components/common/index.d.ts +2 -0
  31. package/dist/contexts.cjs.js +1 -1
  32. package/dist/contexts.es.js +64 -53
  33. package/dist/{hasClass-DABt6TfW.js → hasClass-CIO7dHdo.js} +5 -5
  34. package/dist/{hasClass-D3KZs5y_.mjs → hasClass-CjtZdrqe.mjs} +24 -23
  35. package/dist/hooks/useNotifications/useNotifications.d.ts +1 -1
  36. package/dist/hooks.cjs.js +1 -1
  37. package/dist/hooks.es.js +3 -3
  38. package/dist/layout/SideMenu/MenuItem/MenuItem.d.ts +2 -1
  39. package/dist/layout/SideMenu/SideMenu.d.ts +2 -1
  40. package/dist/layout.cjs.js +1 -1
  41. package/dist/layout.es.js +85 -156
  42. package/dist/main.cjs.js +1 -1
  43. package/dist/main.d.ts +8 -2
  44. package/dist/main.es.js +1689 -992
  45. package/dist/models/prop-types/HookFormSelectInputProps.d.ts +1 -0
  46. package/dist/style.css +1 -1
  47. package/dist/{useConfirm-Yw2xz-A-.mjs → useConfirm-BiBuEjQ7.mjs} +1 -1
  48. package/dist/useConfirm-DSLva5Mk.js +1 -0
  49. package/package.json +4 -2
  50. package/dist/HomeDashboard.module-BI8obEZ_.js +0 -212
  51. package/dist/HomeDashboard.module-CuVVnp4t.mjs +0 -2664
  52. package/dist/Modal-DmUjIS_Q.js +0 -1
  53. package/dist/SimpleTooltip-C8wTRZNZ.mjs +0 -1759
  54. package/dist/SimpleTooltip-HYwwaCn4.js +0 -1
  55. package/dist/components/UserAvatar/UserAvatarDropdown/UserAvatarDropdown.d.ts +0 -7
  56. package/dist/useConfirm-CQCMwQlb.js +0 -1
  57. /package/dist/components/{HookForm → Buttons}/FloatingSubmit/FloatingFormSubmit.d.ts +0 -0
  58. /package/dist/components/{UserAvatar → Dropdown/comps}/UserAvatarToggle/UserAvatarToggle.d.ts +0 -0
@@ -1,1759 +0,0 @@
1
- import * as K from "react";
2
- import Q, { useRef as V, useState as Be, useCallback as N, useMemo as De, useEffect as he, cloneElement as ur } from "react";
3
- import { h as lr, j as T, e as ye } from "./HomeDashboard.module-CuVVnp4t.mjs";
4
- import { _ as fr, g as Ct, j as dr, i as Fe, h as Ce, o as Tt, l as fe, k as pr, p as ut, q as Ke, f as lt, r as vr, n as ne, v as $t, m as ft, z as hr, F as dt, A as _e, P as mr } from "./hasClass-D3KZs5y_.mjs";
5
- import gr from "react-dom";
6
- var St = {
7
- color: void 0,
8
- size: void 0,
9
- className: void 0,
10
- style: void 0,
11
- attr: void 0
12
- }, pt = Q.createContext && /* @__PURE__ */ Q.createContext(St), yr = ["attr", "size", "title"];
13
- function wr(e, t) {
14
- if (e == null)
15
- return {};
16
- var r = br(e, t), n, i;
17
- if (Object.getOwnPropertySymbols) {
18
- var o = Object.getOwnPropertySymbols(e);
19
- for (i = 0; i < o.length; i++)
20
- n = o[i], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
21
- }
22
- return r;
23
- }
24
- function br(e, t) {
25
- if (e == null)
26
- return {};
27
- var r = {}, n = Object.keys(e), i, o;
28
- for (o = 0; o < n.length; o++)
29
- i = n[o], !(t.indexOf(i) >= 0) && (r[i] = e[i]);
30
- return r;
31
- }
32
- function Te() {
33
- return Te = Object.assign ? Object.assign.bind() : function(e) {
34
- for (var t = 1; t < arguments.length; t++) {
35
- var r = arguments[t];
36
- for (var n in r)
37
- Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
38
- }
39
- return e;
40
- }, Te.apply(this, arguments);
41
- }
42
- function vt(e, t) {
43
- var r = Object.keys(e);
44
- if (Object.getOwnPropertySymbols) {
45
- var n = Object.getOwnPropertySymbols(e);
46
- t && (n = n.filter(function(i) {
47
- return Object.getOwnPropertyDescriptor(e, i).enumerable;
48
- })), r.push.apply(r, n);
49
- }
50
- return r;
51
- }
52
- function $e(e) {
53
- for (var t = 1; t < arguments.length; t++) {
54
- var r = arguments[t] != null ? arguments[t] : {};
55
- t % 2 ? vt(Object(r), !0).forEach(function(n) {
56
- Or(e, n, r[n]);
57
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : vt(Object(r)).forEach(function(n) {
58
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
59
- });
60
- }
61
- return e;
62
- }
63
- function Or(e, t, r) {
64
- return t = xr(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
65
- }
66
- function xr(e) {
67
- var t = Er(e, "string");
68
- return typeof t == "symbol" ? t : String(t);
69
- }
70
- function Er(e, t) {
71
- if (typeof e != "object" || e === null)
72
- return e;
73
- var r = e[Symbol.toPrimitive];
74
- if (r !== void 0) {
75
- var n = r.call(e, t || "default");
76
- if (typeof n != "object")
77
- return n;
78
- throw new TypeError("@@toPrimitive must return a primitive value.");
79
- }
80
- return (t === "string" ? String : Number)(e);
81
- }
82
- function Bt(e) {
83
- return e && e.map((t, r) => /* @__PURE__ */ Q.createElement(t.tag, $e({
84
- key: r
85
- }, t.attr), Bt(t.child)));
86
- }
87
- function te(e) {
88
- return (t) => /* @__PURE__ */ Q.createElement(jr, Te({
89
- attr: $e({}, e.attr)
90
- }, t), Bt(e.child));
91
- }
92
- function jr(e) {
93
- var t = (r) => {
94
- var {
95
- attr: n,
96
- size: i,
97
- title: o
98
- } = e, u = wr(e, yr), s = i || r.size || "1em", a;
99
- return r.className && (a = r.className), e.className && (a = (a ? a + " " : "") + e.className), /* @__PURE__ */ Q.createElement("svg", Te({
100
- stroke: "currentColor",
101
- fill: "currentColor",
102
- strokeWidth: "0"
103
- }, r.attr, n, u, {
104
- className: a,
105
- style: $e($e({
106
- color: e.color || r.color
107
- }, r.style), e.style),
108
- height: s,
109
- width: s,
110
- xmlns: "http://www.w3.org/2000/svg"
111
- }), o && /* @__PURE__ */ Q.createElement("title", null, o), e.children);
112
- };
113
- return pt !== void 0 ? /* @__PURE__ */ Q.createElement(pt.Consumer, null, (r) => t(r)) : t(St);
114
- }
115
- function ui(e) {
116
- return te({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }, child: [] }] })(e);
117
- }
118
- function li(e) {
119
- return te({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z" }, child: [] }] })(e);
120
- }
121
- function fi(e) {
122
- return te({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M4 20h16v2H4zM4 2h16v2H4zM9.41 13.59 8 15l4 4 4-4-1.41-1.41L13 15.17V8.83l1.59 1.58L16 9l-4-4-4 4 1.41 1.41L11 8.83v6.34z" }, child: [] }] })(e);
123
- }
124
- function di(e) {
125
- return te({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" }, child: [] }] })(e);
126
- }
127
- function pi(e) {
128
- return te({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z" }, child: [] }] })(e);
129
- }
130
- function vi(e) {
131
- return te({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z" }, child: [] }] })(e);
132
- }
133
- function hi(e) {
134
- return te({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z" }, child: [] }] })(e);
135
- }
136
- function ke() {
137
- return ke = Object.assign ? Object.assign.bind() : function(e) {
138
- for (var t = 1; t < arguments.length; t++) {
139
- var r = arguments[t];
140
- for (var n in r)
141
- Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
142
- }
143
- return e;
144
- }, ke.apply(this, arguments);
145
- }
146
- function ht(e) {
147
- return "default" + e.charAt(0).toUpperCase() + e.substr(1);
148
- }
149
- function Pr(e) {
150
- var t = Ar(e, "string");
151
- return typeof t == "symbol" ? t : String(t);
152
- }
153
- function Ar(e, t) {
154
- if (typeof e != "object" || e === null)
155
- return e;
156
- var r = e[Symbol.toPrimitive];
157
- if (r !== void 0) {
158
- var n = r.call(e, t || "default");
159
- if (typeof n != "object")
160
- return n;
161
- throw new TypeError("@@toPrimitive must return a primitive value.");
162
- }
163
- return (t === "string" ? String : Number)(e);
164
- }
165
- function Lt(e, t, r) {
166
- var n = V(e !== void 0), i = Be(t), o = i[0], u = i[1], s = e !== void 0, a = n.current;
167
- return n.current = s, !s && a && o !== t && u(t), [s ? e : o, N(function(l) {
168
- for (var c = arguments.length, p = new Array(c > 1 ? c - 1 : 0), h = 1; h < c; h++)
169
- p[h - 1] = arguments[h];
170
- r && r.apply(void 0, [l].concat(p)), u(l);
171
- }, [r])];
172
- }
173
- function mi(e, t) {
174
- return Object.keys(t).reduce(function(r, n) {
175
- var i, o = r, u = o[ht(n)], s = o[n], a = fr(o, [ht(n), n].map(Pr)), l = t[n], c = Lt(s, u, e[l]), p = c[0], h = c[1];
176
- return ke({}, a, (i = {}, i[n] = p, i[l] = h, i));
177
- }, e);
178
- }
179
- const Ve = 2 ** 31 - 1;
180
- function Ht(e, t, r) {
181
- const n = r - Date.now();
182
- e.current = n <= Ve ? setTimeout(t, n) : setTimeout(() => Ht(e, t, r), Ve);
183
- }
184
- function Mr() {
185
- const e = Ct(), t = V();
186
- return dr(() => clearTimeout(t.current)), De(() => {
187
- const r = () => clearTimeout(t.current);
188
- function n(i, o = 0) {
189
- e() && (r(), o <= Ve ? t.current = setTimeout(i, o) : Ht(t, i, Date.now() + o));
190
- }
191
- return {
192
- set: n,
193
- clear: r,
194
- handleRef: t
195
- };
196
- }, []);
197
- }
198
- var mt = Object.prototype.hasOwnProperty;
199
- function gt(e, t, r) {
200
- for (r of e.keys())
201
- if (de(r, t))
202
- return r;
203
- }
204
- function de(e, t) {
205
- var r, n, i;
206
- if (e === t)
207
- return !0;
208
- if (e && t && (r = e.constructor) === t.constructor) {
209
- if (r === Date)
210
- return e.getTime() === t.getTime();
211
- if (r === RegExp)
212
- return e.toString() === t.toString();
213
- if (r === Array) {
214
- if ((n = e.length) === t.length)
215
- for (; n-- && de(e[n], t[n]); )
216
- ;
217
- return n === -1;
218
- }
219
- if (r === Set) {
220
- if (e.size !== t.size)
221
- return !1;
222
- for (n of e)
223
- if (i = n, i && typeof i == "object" && (i = gt(t, i), !i) || !t.has(i))
224
- return !1;
225
- return !0;
226
- }
227
- if (r === Map) {
228
- if (e.size !== t.size)
229
- return !1;
230
- for (n of e)
231
- if (i = n[0], i && typeof i == "object" && (i = gt(t, i), !i) || !de(n[1], t.get(i)))
232
- return !1;
233
- return !0;
234
- }
235
- if (r === ArrayBuffer)
236
- e = new Uint8Array(e), t = new Uint8Array(t);
237
- else if (r === DataView) {
238
- if ((n = e.byteLength) === t.byteLength)
239
- for (; n-- && e.getInt8(n) === t.getInt8(n); )
240
- ;
241
- return n === -1;
242
- }
243
- if (ArrayBuffer.isView(e)) {
244
- if ((n = e.byteLength) === t.byteLength)
245
- for (; n-- && e[n] === t[n]; )
246
- ;
247
- return n === -1;
248
- }
249
- if (!r || typeof e == "object") {
250
- n = 0;
251
- for (r in e)
252
- if (mt.call(e, r) && ++n && !mt.call(t, r) || !(r in t) || !de(e[r], t[r]))
253
- return !1;
254
- return Object.keys(t).length === n;
255
- }
256
- }
257
- return e !== e && t !== t;
258
- }
259
- function Rr(e) {
260
- const t = Ct();
261
- return [e[0], N((r) => {
262
- if (t())
263
- return e[1](r);
264
- }, [t, e[1]])];
265
- }
266
- var $ = "top", W = "bottom", z = "right", S = "left", qe = "auto", we = [$, W, z, S], ie = "start", me = "end", Dr = "clippingParents", Nt = "viewport", le = "popper", Cr = "reference", yt = /* @__PURE__ */ we.reduce(function(e, t) {
267
- return e.concat([t + "-" + ie, t + "-" + me]);
268
- }, []), Wt = /* @__PURE__ */ [].concat(we, [qe]).reduce(function(e, t) {
269
- return e.concat([t, t + "-" + ie, t + "-" + me]);
270
- }, []), Tr = "beforeRead", $r = "read", Sr = "afterRead", Br = "beforeMain", Lr = "main", Hr = "afterMain", Nr = "beforeWrite", Wr = "write", zr = "afterWrite", Fr = [Tr, $r, Sr, Br, Lr, Hr, Nr, Wr, zr];
271
- function _(e) {
272
- return e.split("-")[0];
273
- }
274
- function H(e) {
275
- if (e == null)
276
- return window;
277
- if (e.toString() !== "[object Window]") {
278
- var t = e.ownerDocument;
279
- return t && t.defaultView || window;
280
- }
281
- return e;
282
- }
283
- function ee(e) {
284
- var t = H(e).Element;
285
- return e instanceof t || e instanceof Element;
286
- }
287
- function k(e) {
288
- var t = H(e).HTMLElement;
289
- return e instanceof t || e instanceof HTMLElement;
290
- }
291
- function Xe(e) {
292
- if (typeof ShadowRoot > "u")
293
- return !1;
294
- var t = H(e).ShadowRoot;
295
- return e instanceof t || e instanceof ShadowRoot;
296
- }
297
- var Z = Math.max, Se = Math.min, oe = Math.round;
298
- function Ie() {
299
- var e = navigator.userAgentData;
300
- return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
301
- return t.brand + "/" + t.version;
302
- }).join(" ") : navigator.userAgent;
303
- }
304
- function zt() {
305
- return !/^((?!chrome|android).)*safari/i.test(Ie());
306
- }
307
- function ae(e, t, r) {
308
- t === void 0 && (t = !1), r === void 0 && (r = !1);
309
- var n = e.getBoundingClientRect(), i = 1, o = 1;
310
- t && k(e) && (i = e.offsetWidth > 0 && oe(n.width) / e.offsetWidth || 1, o = e.offsetHeight > 0 && oe(n.height) / e.offsetHeight || 1);
311
- var u = ee(e) ? H(e) : window, s = u.visualViewport, a = !zt() && r, l = (n.left + (a && s ? s.offsetLeft : 0)) / i, c = (n.top + (a && s ? s.offsetTop : 0)) / o, p = n.width / i, h = n.height / o;
312
- return {
313
- width: p,
314
- height: h,
315
- top: c,
316
- right: l + p,
317
- bottom: c + h,
318
- left: l,
319
- x: l,
320
- y: c
321
- };
322
- }
323
- function Ye(e) {
324
- var t = ae(e), r = e.offsetWidth, n = e.offsetHeight;
325
- return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
326
- x: e.offsetLeft,
327
- y: e.offsetTop,
328
- width: r,
329
- height: n
330
- };
331
- }
332
- function Ft(e, t) {
333
- var r = t.getRootNode && t.getRootNode();
334
- if (e.contains(t))
335
- return !0;
336
- if (r && Xe(r)) {
337
- var n = t;
338
- do {
339
- if (n && e.isSameNode(n))
340
- return !0;
341
- n = n.parentNode || n.host;
342
- } while (n);
343
- }
344
- return !1;
345
- }
346
- function q(e) {
347
- return e ? (e.nodeName || "").toLowerCase() : null;
348
- }
349
- function I(e) {
350
- return H(e).getComputedStyle(e);
351
- }
352
- function _r(e) {
353
- return ["table", "td", "th"].indexOf(q(e)) >= 0;
354
- }
355
- function X(e) {
356
- return ((ee(e) ? e.ownerDocument : (
357
- // $FlowFixMe[prop-missing]
358
- e.document
359
- )) || window.document).documentElement;
360
- }
361
- function Le(e) {
362
- return q(e) === "html" ? e : (
363
- // this is a quicker (but less type safe) way to save quite some bytes from the bundle
364
- // $FlowFixMe[incompatible-return]
365
- // $FlowFixMe[prop-missing]
366
- e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
367
- e.parentNode || // DOM Element detected
368
- (Xe(e) ? e.host : null) || // ShadowRoot detected
369
- // $FlowFixMe[incompatible-call]: HTMLElement is a Node
370
- X(e)
371
- );
372
- }
373
- function wt(e) {
374
- return !k(e) || // https://github.com/popperjs/popper-core/issues/837
375
- I(e).position === "fixed" ? null : e.offsetParent;
376
- }
377
- function kr(e) {
378
- var t = /firefox/i.test(Ie()), r = /Trident/i.test(Ie());
379
- if (r && k(e)) {
380
- var n = I(e);
381
- if (n.position === "fixed")
382
- return null;
383
- }
384
- var i = Le(e);
385
- for (Xe(i) && (i = i.host); k(i) && ["html", "body"].indexOf(q(i)) < 0; ) {
386
- var o = I(i);
387
- if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || t && o.willChange === "filter" || t && o.filter && o.filter !== "none")
388
- return i;
389
- i = i.parentNode;
390
- }
391
- return null;
392
- }
393
- function be(e) {
394
- for (var t = H(e), r = wt(e); r && _r(r) && I(r).position === "static"; )
395
- r = wt(r);
396
- return r && (q(r) === "html" || q(r) === "body" && I(r).position === "static") ? t : r || kr(e) || t;
397
- }
398
- function Ge(e) {
399
- return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
400
- }
401
- function pe(e, t, r) {
402
- return Z(e, Se(t, r));
403
- }
404
- function Vr(e, t, r) {
405
- var n = pe(e, t, r);
406
- return n > r ? r : n;
407
- }
408
- function _t() {
409
- return {
410
- top: 0,
411
- right: 0,
412
- bottom: 0,
413
- left: 0
414
- };
415
- }
416
- function kt(e) {
417
- return Object.assign({}, _t(), e);
418
- }
419
- function Vt(e, t) {
420
- return t.reduce(function(r, n) {
421
- return r[n] = e, r;
422
- }, {});
423
- }
424
- var Ir = function(t, r) {
425
- return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
426
- placement: r.placement
427
- })) : t, kt(typeof t != "number" ? t : Vt(t, we));
428
- };
429
- function Ur(e) {
430
- var t, r = e.state, n = e.name, i = e.options, o = r.elements.arrow, u = r.modifiersData.popperOffsets, s = _(r.placement), a = Ge(s), l = [S, z].indexOf(s) >= 0, c = l ? "height" : "width";
431
- if (!(!o || !u)) {
432
- var p = Ir(i.padding, r), h = Ye(o), d = a === "y" ? $ : S, v = a === "y" ? W : z, g = r.rects.reference[c] + r.rects.reference[a] - u[a] - r.rects.popper[c], f = u[a] - r.rects.reference[a], y = be(o), m = y ? a === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, O = g / 2 - f / 2, w = p[d], x = m - h[c] - p[v], b = m / 2 - h[c] / 2 + O, E = pe(w, b, x), P = a;
433
- r.modifiersData[n] = (t = {}, t[P] = E, t.centerOffset = E - b, t);
434
- }
435
- }
436
- function Kr(e) {
437
- var t = e.state, r = e.options, n = r.element, i = n === void 0 ? "[data-popper-arrow]" : n;
438
- i != null && (typeof i == "string" && (i = t.elements.popper.querySelector(i), !i) || Ft(t.elements.popper, i) && (t.elements.arrow = i));
439
- }
440
- const qr = {
441
- name: "arrow",
442
- enabled: !0,
443
- phase: "main",
444
- fn: Ur,
445
- effect: Kr,
446
- requires: ["popperOffsets"],
447
- requiresIfExists: ["preventOverflow"]
448
- };
449
- function se(e) {
450
- return e.split("-")[1];
451
- }
452
- var Xr = {
453
- top: "auto",
454
- right: "auto",
455
- bottom: "auto",
456
- left: "auto"
457
- };
458
- function Yr(e, t) {
459
- var r = e.x, n = e.y, i = t.devicePixelRatio || 1;
460
- return {
461
- x: oe(r * i) / i || 0,
462
- y: oe(n * i) / i || 0
463
- };
464
- }
465
- function bt(e) {
466
- var t, r = e.popper, n = e.popperRect, i = e.placement, o = e.variation, u = e.offsets, s = e.position, a = e.gpuAcceleration, l = e.adaptive, c = e.roundOffsets, p = e.isFixed, h = u.x, d = h === void 0 ? 0 : h, v = u.y, g = v === void 0 ? 0 : v, f = typeof c == "function" ? c({
467
- x: d,
468
- y: g
469
- }) : {
470
- x: d,
471
- y: g
472
- };
473
- d = f.x, g = f.y;
474
- var y = u.hasOwnProperty("x"), m = u.hasOwnProperty("y"), O = S, w = $, x = window;
475
- if (l) {
476
- var b = be(r), E = "clientHeight", P = "clientWidth";
477
- if (b === H(r) && (b = X(r), I(b).position !== "static" && s === "absolute" && (E = "scrollHeight", P = "scrollWidth")), b = b, i === $ || (i === S || i === z) && o === me) {
478
- w = W;
479
- var A = p && b === x && x.visualViewport ? x.visualViewport.height : (
480
- // $FlowFixMe[prop-missing]
481
- b[E]
482
- );
483
- g -= A - n.height, g *= a ? 1 : -1;
484
- }
485
- if (i === S || (i === $ || i === W) && o === me) {
486
- O = z;
487
- var j = p && b === x && x.visualViewport ? x.visualViewport.width : (
488
- // $FlowFixMe[prop-missing]
489
- b[P]
490
- );
491
- d -= j - n.width, d *= a ? 1 : -1;
492
- }
493
- }
494
- var M = Object.assign({
495
- position: s
496
- }, l && Xr), B = c === !0 ? Yr({
497
- x: d,
498
- y: g
499
- }, H(r)) : {
500
- x: d,
501
- y: g
502
- };
503
- if (d = B.x, g = B.y, a) {
504
- var R;
505
- return Object.assign({}, M, (R = {}, R[w] = m ? "0" : "", R[O] = y ? "0" : "", R.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + d + "px, " + g + "px)" : "translate3d(" + d + "px, " + g + "px, 0)", R));
506
- }
507
- return Object.assign({}, M, (t = {}, t[w] = m ? g + "px" : "", t[O] = y ? d + "px" : "", t.transform = "", t));
508
- }
509
- function Gr(e) {
510
- var t = e.state, r = e.options, n = r.gpuAcceleration, i = n === void 0 ? !0 : n, o = r.adaptive, u = o === void 0 ? !0 : o, s = r.roundOffsets, a = s === void 0 ? !0 : s, l = {
511
- placement: _(t.placement),
512
- variation: se(t.placement),
513
- popper: t.elements.popper,
514
- popperRect: t.rects.popper,
515
- gpuAcceleration: i,
516
- isFixed: t.options.strategy === "fixed"
517
- };
518
- t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, bt(Object.assign({}, l, {
519
- offsets: t.modifiersData.popperOffsets,
520
- position: t.options.strategy,
521
- adaptive: u,
522
- roundOffsets: a
523
- })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, bt(Object.assign({}, l, {
524
- offsets: t.modifiersData.arrow,
525
- position: "absolute",
526
- adaptive: !1,
527
- roundOffsets: a
528
- })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
529
- "data-popper-placement": t.placement
530
- });
531
- }
532
- const Jr = {
533
- name: "computeStyles",
534
- enabled: !0,
535
- phase: "beforeWrite",
536
- fn: Gr,
537
- data: {}
538
- };
539
- var Ae = {
540
- passive: !0
541
- };
542
- function Qr(e) {
543
- var t = e.state, r = e.instance, n = e.options, i = n.scroll, o = i === void 0 ? !0 : i, u = n.resize, s = u === void 0 ? !0 : u, a = H(t.elements.popper), l = [].concat(t.scrollParents.reference, t.scrollParents.popper);
544
- return o && l.forEach(function(c) {
545
- c.addEventListener("scroll", r.update, Ae);
546
- }), s && a.addEventListener("resize", r.update, Ae), function() {
547
- o && l.forEach(function(c) {
548
- c.removeEventListener("scroll", r.update, Ae);
549
- }), s && a.removeEventListener("resize", r.update, Ae);
550
- };
551
- }
552
- const Zr = {
553
- name: "eventListeners",
554
- enabled: !0,
555
- phase: "write",
556
- fn: function() {
557
- },
558
- effect: Qr,
559
- data: {}
560
- };
561
- var en = {
562
- left: "right",
563
- right: "left",
564
- bottom: "top",
565
- top: "bottom"
566
- };
567
- function Me(e) {
568
- return e.replace(/left|right|bottom|top/g, function(t) {
569
- return en[t];
570
- });
571
- }
572
- var tn = {
573
- start: "end",
574
- end: "start"
575
- };
576
- function Ot(e) {
577
- return e.replace(/start|end/g, function(t) {
578
- return tn[t];
579
- });
580
- }
581
- function Je(e) {
582
- var t = H(e), r = t.pageXOffset, n = t.pageYOffset;
583
- return {
584
- scrollLeft: r,
585
- scrollTop: n
586
- };
587
- }
588
- function Qe(e) {
589
- return ae(X(e)).left + Je(e).scrollLeft;
590
- }
591
- function rn(e, t) {
592
- var r = H(e), n = X(e), i = r.visualViewport, o = n.clientWidth, u = n.clientHeight, s = 0, a = 0;
593
- if (i) {
594
- o = i.width, u = i.height;
595
- var l = zt();
596
- (l || !l && t === "fixed") && (s = i.offsetLeft, a = i.offsetTop);
597
- }
598
- return {
599
- width: o,
600
- height: u,
601
- x: s + Qe(e),
602
- y: a
603
- };
604
- }
605
- function nn(e) {
606
- var t, r = X(e), n = Je(e), i = (t = e.ownerDocument) == null ? void 0 : t.body, o = Z(r.scrollWidth, r.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), u = Z(r.scrollHeight, r.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), s = -n.scrollLeft + Qe(e), a = -n.scrollTop;
607
- return I(i || r).direction === "rtl" && (s += Z(r.clientWidth, i ? i.clientWidth : 0) - o), {
608
- width: o,
609
- height: u,
610
- x: s,
611
- y: a
612
- };
613
- }
614
- function Ze(e) {
615
- var t = I(e), r = t.overflow, n = t.overflowX, i = t.overflowY;
616
- return /auto|scroll|overlay|hidden/.test(r + i + n);
617
- }
618
- function It(e) {
619
- return ["html", "body", "#document"].indexOf(q(e)) >= 0 ? e.ownerDocument.body : k(e) && Ze(e) ? e : It(Le(e));
620
- }
621
- function ve(e, t) {
622
- var r;
623
- t === void 0 && (t = []);
624
- var n = It(e), i = n === ((r = e.ownerDocument) == null ? void 0 : r.body), o = H(n), u = i ? [o].concat(o.visualViewport || [], Ze(n) ? n : []) : n, s = t.concat(u);
625
- return i ? s : (
626
- // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
627
- s.concat(ve(Le(u)))
628
- );
629
- }
630
- function Ue(e) {
631
- return Object.assign({}, e, {
632
- left: e.x,
633
- top: e.y,
634
- right: e.x + e.width,
635
- bottom: e.y + e.height
636
- });
637
- }
638
- function on(e, t) {
639
- var r = ae(e, !1, t === "fixed");
640
- 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;
641
- }
642
- function xt(e, t, r) {
643
- return t === Nt ? Ue(rn(e, r)) : ee(t) ? on(t, r) : Ue(nn(X(e)));
644
- }
645
- function an(e) {
646
- var t = ve(Le(e)), r = ["absolute", "fixed"].indexOf(I(e).position) >= 0, n = r && k(e) ? be(e) : e;
647
- return ee(n) ? t.filter(function(i) {
648
- return ee(i) && Ft(i, n) && q(i) !== "body";
649
- }) : [];
650
- }
651
- function sn(e, t, r, n) {
652
- var i = t === "clippingParents" ? an(e) : [].concat(t), o = [].concat(i, [r]), u = o[0], s = o.reduce(function(a, l) {
653
- var c = xt(e, l, n);
654
- return a.top = Z(c.top, a.top), a.right = Se(c.right, a.right), a.bottom = Se(c.bottom, a.bottom), a.left = Z(c.left, a.left), a;
655
- }, xt(e, u, n));
656
- return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
657
- }
658
- function Ut(e) {
659
- var t = e.reference, r = e.element, n = e.placement, i = n ? _(n) : null, o = n ? se(n) : null, u = t.x + t.width / 2 - r.width / 2, s = t.y + t.height / 2 - r.height / 2, a;
660
- switch (i) {
661
- case $:
662
- a = {
663
- x: u,
664
- y: t.y - r.height
665
- };
666
- break;
667
- case W:
668
- a = {
669
- x: u,
670
- y: t.y + t.height
671
- };
672
- break;
673
- case z:
674
- a = {
675
- x: t.x + t.width,
676
- y: s
677
- };
678
- break;
679
- case S:
680
- a = {
681
- x: t.x - r.width,
682
- y: s
683
- };
684
- break;
685
- default:
686
- a = {
687
- x: t.x,
688
- y: t.y
689
- };
690
- }
691
- var l = i ? Ge(i) : null;
692
- if (l != null) {
693
- var c = l === "y" ? "height" : "width";
694
- switch (o) {
695
- case ie:
696
- a[l] = a[l] - (t[c] / 2 - r[c] / 2);
697
- break;
698
- case me:
699
- a[l] = a[l] + (t[c] / 2 - r[c] / 2);
700
- break;
701
- }
702
- }
703
- return a;
704
- }
705
- function ge(e, t) {
706
- t === void 0 && (t = {});
707
- var r = t, n = r.placement, i = n === void 0 ? e.placement : n, o = r.strategy, u = o === void 0 ? e.strategy : o, s = r.boundary, a = s === void 0 ? Dr : s, l = r.rootBoundary, c = l === void 0 ? Nt : l, p = r.elementContext, h = p === void 0 ? le : p, d = r.altBoundary, v = d === void 0 ? !1 : d, g = r.padding, f = g === void 0 ? 0 : g, y = kt(typeof f != "number" ? f : Vt(f, we)), m = h === le ? Cr : le, O = e.rects.popper, w = e.elements[v ? m : h], x = sn(ee(w) ? w : w.contextElement || X(e.elements.popper), a, c, u), b = ae(e.elements.reference), E = Ut({
708
- reference: b,
709
- element: O,
710
- strategy: "absolute",
711
- placement: i
712
- }), P = Ue(Object.assign({}, O, E)), A = h === le ? P : b, j = {
713
- top: x.top - A.top + y.top,
714
- bottom: A.bottom - x.bottom + y.bottom,
715
- left: x.left - A.left + y.left,
716
- right: A.right - x.right + y.right
717
- }, M = e.modifiersData.offset;
718
- if (h === le && M) {
719
- var B = M[i];
720
- Object.keys(j).forEach(function(R) {
721
- var C = [z, W].indexOf(R) >= 0 ? 1 : -1, D = [$, W].indexOf(R) >= 0 ? "y" : "x";
722
- j[R] += B[D] * C;
723
- });
724
- }
725
- return j;
726
- }
727
- function cn(e, t) {
728
- t === void 0 && (t = {});
729
- var r = t, n = r.placement, i = r.boundary, o = r.rootBoundary, u = r.padding, s = r.flipVariations, a = r.allowedAutoPlacements, l = a === void 0 ? Wt : a, c = se(n), p = c ? s ? yt : yt.filter(function(v) {
730
- return se(v) === c;
731
- }) : we, h = p.filter(function(v) {
732
- return l.indexOf(v) >= 0;
733
- });
734
- h.length === 0 && (h = p);
735
- var d = h.reduce(function(v, g) {
736
- return v[g] = ge(e, {
737
- placement: g,
738
- boundary: i,
739
- rootBoundary: o,
740
- padding: u
741
- })[_(g)], v;
742
- }, {});
743
- return Object.keys(d).sort(function(v, g) {
744
- return d[v] - d[g];
745
- });
746
- }
747
- function un(e) {
748
- if (_(e) === qe)
749
- return [];
750
- var t = Me(e);
751
- return [Ot(e), t, Ot(t)];
752
- }
753
- function ln(e) {
754
- var t = e.state, r = e.options, n = e.name;
755
- if (!t.modifiersData[n]._skip) {
756
- for (var i = r.mainAxis, o = i === void 0 ? !0 : i, u = r.altAxis, s = u === void 0 ? !0 : u, a = r.fallbackPlacements, l = r.padding, c = r.boundary, p = r.rootBoundary, h = r.altBoundary, d = r.flipVariations, v = d === void 0 ? !0 : d, g = r.allowedAutoPlacements, f = t.options.placement, y = _(f), m = y === f, O = a || (m || !v ? [Me(f)] : un(f)), w = [f].concat(O).reduce(function(re, U) {
757
- return re.concat(_(U) === qe ? cn(t, {
758
- placement: U,
759
- boundary: c,
760
- rootBoundary: p,
761
- padding: l,
762
- flipVariations: v,
763
- allowedAutoPlacements: g
764
- }) : U);
765
- }, []), x = t.rects.reference, b = t.rects.popper, E = /* @__PURE__ */ new Map(), P = !0, A = w[0], j = 0; j < w.length; j++) {
766
- var M = w[j], B = _(M), R = se(M) === ie, C = [$, W].indexOf(B) >= 0, D = C ? "width" : "height", L = ge(t, {
767
- placement: M,
768
- boundary: c,
769
- rootBoundary: p,
770
- altBoundary: h,
771
- padding: l
772
- }), F = C ? R ? z : S : R ? W : $;
773
- x[D] > b[D] && (F = Me(F));
774
- var Oe = Me(F), Y = [];
775
- if (o && Y.push(L[B] <= 0), s && Y.push(L[F] <= 0, L[Oe] <= 0), Y.every(function(re) {
776
- return re;
777
- })) {
778
- A = M, P = !1;
779
- break;
780
- }
781
- E.set(M, Y);
782
- }
783
- if (P)
784
- for (var xe = v ? 3 : 1, He = function(U) {
785
- var ue = w.find(function(je) {
786
- var G = E.get(je);
787
- if (G)
788
- return G.slice(0, U).every(function(Ne) {
789
- return Ne;
790
- });
791
- });
792
- if (ue)
793
- return A = ue, "break";
794
- }, ce = xe; ce > 0; ce--) {
795
- var Ee = He(ce);
796
- if (Ee === "break")
797
- break;
798
- }
799
- t.placement !== A && (t.modifiersData[n]._skip = !0, t.placement = A, t.reset = !0);
800
- }
801
- }
802
- const fn = {
803
- name: "flip",
804
- enabled: !0,
805
- phase: "main",
806
- fn: ln,
807
- requiresIfExists: ["offset"],
808
- data: {
809
- _skip: !1
810
- }
811
- };
812
- function Et(e, t, r) {
813
- return r === void 0 && (r = {
814
- x: 0,
815
- y: 0
816
- }), {
817
- top: e.top - t.height - r.y,
818
- right: e.right - t.width + r.x,
819
- bottom: e.bottom - t.height + r.y,
820
- left: e.left - t.width - r.x
821
- };
822
- }
823
- function jt(e) {
824
- return [$, z, W, S].some(function(t) {
825
- return e[t] >= 0;
826
- });
827
- }
828
- function dn(e) {
829
- var t = e.state, r = e.name, n = t.rects.reference, i = t.rects.popper, o = t.modifiersData.preventOverflow, u = ge(t, {
830
- elementContext: "reference"
831
- }), s = ge(t, {
832
- altBoundary: !0
833
- }), a = Et(u, n), l = Et(s, i, o), c = jt(a), p = jt(l);
834
- t.modifiersData[r] = {
835
- referenceClippingOffsets: a,
836
- popperEscapeOffsets: l,
837
- isReferenceHidden: c,
838
- hasPopperEscaped: p
839
- }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
840
- "data-popper-reference-hidden": c,
841
- "data-popper-escaped": p
842
- });
843
- }
844
- const pn = {
845
- name: "hide",
846
- enabled: !0,
847
- phase: "main",
848
- requiresIfExists: ["preventOverflow"],
849
- fn: dn
850
- };
851
- function vn(e, t, r) {
852
- var n = _(e), i = [S, $].indexOf(n) >= 0 ? -1 : 1, o = typeof r == "function" ? r(Object.assign({}, t, {
853
- placement: e
854
- })) : r, u = o[0], s = o[1];
855
- return u = u || 0, s = (s || 0) * i, [S, z].indexOf(n) >= 0 ? {
856
- x: s,
857
- y: u
858
- } : {
859
- x: u,
860
- y: s
861
- };
862
- }
863
- function hn(e) {
864
- var t = e.state, r = e.options, n = e.name, i = r.offset, o = i === void 0 ? [0, 0] : i, u = Wt.reduce(function(c, p) {
865
- return c[p] = vn(p, t.rects, o), c;
866
- }, {}), s = u[t.placement], a = s.x, l = s.y;
867
- t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += a, t.modifiersData.popperOffsets.y += l), t.modifiersData[n] = u;
868
- }
869
- const mn = {
870
- name: "offset",
871
- enabled: !0,
872
- phase: "main",
873
- requires: ["popperOffsets"],
874
- fn: hn
875
- };
876
- function gn(e) {
877
- var t = e.state, r = e.name;
878
- t.modifiersData[r] = Ut({
879
- reference: t.rects.reference,
880
- element: t.rects.popper,
881
- strategy: "absolute",
882
- placement: t.placement
883
- });
884
- }
885
- const yn = {
886
- name: "popperOffsets",
887
- enabled: !0,
888
- phase: "read",
889
- fn: gn,
890
- data: {}
891
- };
892
- function wn(e) {
893
- return e === "x" ? "y" : "x";
894
- }
895
- function bn(e) {
896
- var t = e.state, r = e.options, n = e.name, i = r.mainAxis, o = i === void 0 ? !0 : i, u = r.altAxis, s = u === void 0 ? !1 : u, a = r.boundary, l = r.rootBoundary, c = r.altBoundary, p = r.padding, h = r.tether, d = h === void 0 ? !0 : h, v = r.tetherOffset, g = v === void 0 ? 0 : v, f = ge(t, {
897
- boundary: a,
898
- rootBoundary: l,
899
- padding: p,
900
- altBoundary: c
901
- }), y = _(t.placement), m = se(t.placement), O = !m, w = Ge(y), x = wn(w), b = t.modifiersData.popperOffsets, E = t.rects.reference, P = t.rects.popper, A = typeof g == "function" ? g(Object.assign({}, t.rects, {
902
- placement: t.placement
903
- })) : g, j = typeof A == "number" ? {
904
- mainAxis: A,
905
- altAxis: A
906
- } : Object.assign({
907
- mainAxis: 0,
908
- altAxis: 0
909
- }, A), M = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, B = {
910
- x: 0,
911
- y: 0
912
- };
913
- if (b) {
914
- if (o) {
915
- var R, C = w === "y" ? $ : S, D = w === "y" ? W : z, L = w === "y" ? "height" : "width", F = b[w], Oe = F + f[C], Y = F - f[D], xe = d ? -P[L] / 2 : 0, He = m === ie ? E[L] : P[L], ce = m === ie ? -P[L] : -E[L], Ee = t.elements.arrow, re = d && Ee ? Ye(Ee) : {
916
- width: 0,
917
- height: 0
918
- }, U = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : _t(), ue = U[C], je = U[D], G = pe(0, E[L], re[L]), Ne = O ? E[L] / 2 - xe - G - ue - j.mainAxis : He - G - ue - j.mainAxis, nr = O ? -E[L] / 2 + xe + G + je + j.mainAxis : ce + G + je + j.mainAxis, We = t.elements.arrow && be(t.elements.arrow), ir = We ? w === "y" ? We.clientTop || 0 : We.clientLeft || 0 : 0, et = (R = M == null ? void 0 : M[w]) != null ? R : 0, or = F + Ne - et - ir, ar = F + nr - et, tt = pe(d ? Se(Oe, or) : Oe, F, d ? Z(Y, ar) : Y);
919
- b[w] = tt, B[w] = tt - F;
920
- }
921
- if (s) {
922
- var rt, sr = w === "x" ? $ : S, cr = w === "x" ? W : z, J = b[x], Pe = x === "y" ? "height" : "width", nt = J + f[sr], it = J - f[cr], ze = [$, S].indexOf(y) !== -1, ot = (rt = M == null ? void 0 : M[x]) != null ? rt : 0, at = ze ? nt : J - E[Pe] - P[Pe] - ot + j.altAxis, st = ze ? J + E[Pe] + P[Pe] - ot - j.altAxis : it, ct = d && ze ? Vr(at, J, st) : pe(d ? at : nt, J, d ? st : it);
923
- b[x] = ct, B[x] = ct - J;
924
- }
925
- t.modifiersData[n] = B;
926
- }
927
- }
928
- const On = {
929
- name: "preventOverflow",
930
- enabled: !0,
931
- phase: "main",
932
- fn: bn,
933
- requiresIfExists: ["offset"]
934
- };
935
- function xn(e) {
936
- return {
937
- scrollLeft: e.scrollLeft,
938
- scrollTop: e.scrollTop
939
- };
940
- }
941
- function En(e) {
942
- return e === H(e) || !k(e) ? Je(e) : xn(e);
943
- }
944
- function jn(e) {
945
- var t = e.getBoundingClientRect(), r = oe(t.width) / e.offsetWidth || 1, n = oe(t.height) / e.offsetHeight || 1;
946
- return r !== 1 || n !== 1;
947
- }
948
- function Pn(e, t, r) {
949
- r === void 0 && (r = !1);
950
- var n = k(t), i = k(t) && jn(t), o = X(t), u = ae(e, i, r), s = {
951
- scrollLeft: 0,
952
- scrollTop: 0
953
- }, a = {
954
- x: 0,
955
- y: 0
956
- };
957
- return (n || !n && !r) && ((q(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
958
- Ze(o)) && (s = En(t)), k(t) ? (a = ae(t, !0), a.x += t.clientLeft, a.y += t.clientTop) : o && (a.x = Qe(o))), {
959
- x: u.left + s.scrollLeft - a.x,
960
- y: u.top + s.scrollTop - a.y,
961
- width: u.width,
962
- height: u.height
963
- };
964
- }
965
- function An(e) {
966
- var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
967
- e.forEach(function(o) {
968
- t.set(o.name, o);
969
- });
970
- function i(o) {
971
- r.add(o.name);
972
- var u = [].concat(o.requires || [], o.requiresIfExists || []);
973
- u.forEach(function(s) {
974
- if (!r.has(s)) {
975
- var a = t.get(s);
976
- a && i(a);
977
- }
978
- }), n.push(o);
979
- }
980
- return e.forEach(function(o) {
981
- r.has(o.name) || i(o);
982
- }), n;
983
- }
984
- function Mn(e) {
985
- var t = An(e);
986
- return Fr.reduce(function(r, n) {
987
- return r.concat(t.filter(function(i) {
988
- return i.phase === n;
989
- }));
990
- }, []);
991
- }
992
- function Rn(e) {
993
- var t;
994
- return function() {
995
- return t || (t = new Promise(function(r) {
996
- Promise.resolve().then(function() {
997
- t = void 0, r(e());
998
- });
999
- })), t;
1000
- };
1001
- }
1002
- function Dn(e) {
1003
- var t = e.reduce(function(r, n) {
1004
- var i = r[n.name];
1005
- return r[n.name] = i ? Object.assign({}, i, n, {
1006
- options: Object.assign({}, i.options, n.options),
1007
- data: Object.assign({}, i.data, n.data)
1008
- }) : n, r;
1009
- }, {});
1010
- return Object.keys(t).map(function(r) {
1011
- return t[r];
1012
- });
1013
- }
1014
- var Pt = {
1015
- placement: "bottom",
1016
- modifiers: [],
1017
- strategy: "absolute"
1018
- };
1019
- function At() {
1020
- for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
1021
- t[r] = arguments[r];
1022
- return !t.some(function(n) {
1023
- return !(n && typeof n.getBoundingClientRect == "function");
1024
- });
1025
- }
1026
- function Cn(e) {
1027
- e === void 0 && (e = {});
1028
- var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, i = t.defaultOptions, o = i === void 0 ? Pt : i;
1029
- return function(s, a, l) {
1030
- l === void 0 && (l = o);
1031
- var c = {
1032
- placement: "bottom",
1033
- orderedModifiers: [],
1034
- options: Object.assign({}, Pt, o),
1035
- modifiersData: {},
1036
- elements: {
1037
- reference: s,
1038
- popper: a
1039
- },
1040
- attributes: {},
1041
- styles: {}
1042
- }, p = [], h = !1, d = {
1043
- state: c,
1044
- setOptions: function(y) {
1045
- var m = typeof y == "function" ? y(c.options) : y;
1046
- g(), c.options = Object.assign({}, o, c.options, m), c.scrollParents = {
1047
- reference: ee(s) ? ve(s) : s.contextElement ? ve(s.contextElement) : [],
1048
- popper: ve(a)
1049
- };
1050
- var O = Mn(Dn([].concat(n, c.options.modifiers)));
1051
- return c.orderedModifiers = O.filter(function(w) {
1052
- return w.enabled;
1053
- }), v(), d.update();
1054
- },
1055
- // Sync update – it will always be executed, even if not necessary. This
1056
- // is useful for low frequency updates where sync behavior simplifies the
1057
- // logic.
1058
- // For high frequency updates (e.g. `resize` and `scroll` events), always
1059
- // prefer the async Popper#update method
1060
- forceUpdate: function() {
1061
- if (!h) {
1062
- var y = c.elements, m = y.reference, O = y.popper;
1063
- if (At(m, O)) {
1064
- c.rects = {
1065
- reference: Pn(m, be(O), c.options.strategy === "fixed"),
1066
- popper: Ye(O)
1067
- }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(j) {
1068
- return c.modifiersData[j.name] = Object.assign({}, j.data);
1069
- });
1070
- for (var w = 0; w < c.orderedModifiers.length; w++) {
1071
- if (c.reset === !0) {
1072
- c.reset = !1, w = -1;
1073
- continue;
1074
- }
1075
- var x = c.orderedModifiers[w], b = x.fn, E = x.options, P = E === void 0 ? {} : E, A = x.name;
1076
- typeof b == "function" && (c = b({
1077
- state: c,
1078
- options: P,
1079
- name: A,
1080
- instance: d
1081
- }) || c);
1082
- }
1083
- }
1084
- }
1085
- },
1086
- // Async and optimistically optimized update – it will not be executed if
1087
- // not necessary (debounced to run at most once-per-tick)
1088
- update: Rn(function() {
1089
- return new Promise(function(f) {
1090
- d.forceUpdate(), f(c);
1091
- });
1092
- }),
1093
- destroy: function() {
1094
- g(), h = !0;
1095
- }
1096
- };
1097
- if (!At(s, a))
1098
- return d;
1099
- d.setOptions(l).then(function(f) {
1100
- !h && l.onFirstUpdate && l.onFirstUpdate(f);
1101
- });
1102
- function v() {
1103
- c.orderedModifiers.forEach(function(f) {
1104
- var y = f.name, m = f.options, O = m === void 0 ? {} : m, w = f.effect;
1105
- if (typeof w == "function") {
1106
- var x = w({
1107
- state: c,
1108
- name: y,
1109
- instance: d,
1110
- options: O
1111
- }), b = function() {
1112
- };
1113
- p.push(x || b);
1114
- }
1115
- });
1116
- }
1117
- function g() {
1118
- p.forEach(function(f) {
1119
- return f();
1120
- }), p = [];
1121
- }
1122
- return d;
1123
- };
1124
- }
1125
- const Tn = Cn({
1126
- defaultModifiers: [pn, yn, Jr, Zr, mn, fn, On, qr]
1127
- }), $n = ["enabled", "placement", "strategy", "modifiers"];
1128
- function Sn(e, t) {
1129
- if (e == null)
1130
- return {};
1131
- var r = {}, n = Object.keys(e), i, o;
1132
- for (o = 0; o < n.length; o++)
1133
- i = n[o], !(t.indexOf(i) >= 0) && (r[i] = e[i]);
1134
- return r;
1135
- }
1136
- const Bn = {
1137
- name: "applyStyles",
1138
- enabled: !1,
1139
- phase: "afterWrite",
1140
- fn: () => {
1141
- }
1142
- }, Ln = {
1143
- name: "ariaDescribedBy",
1144
- enabled: !0,
1145
- phase: "afterWrite",
1146
- effect: ({
1147
- state: e
1148
- }) => () => {
1149
- const {
1150
- reference: t,
1151
- popper: r
1152
- } = e.elements;
1153
- if ("removeAttribute" in t) {
1154
- const n = (t.getAttribute("aria-describedby") || "").split(",").filter((i) => i.trim() !== r.id);
1155
- n.length ? t.setAttribute("aria-describedby", n.join(",")) : t.removeAttribute("aria-describedby");
1156
- }
1157
- },
1158
- fn: ({
1159
- state: e
1160
- }) => {
1161
- var t;
1162
- const {
1163
- popper: r,
1164
- reference: n
1165
- } = e.elements, i = (t = r.getAttribute("role")) == null ? void 0 : t.toLowerCase();
1166
- if (r.id && i === "tooltip" && "setAttribute" in n) {
1167
- const o = n.getAttribute("aria-describedby");
1168
- if (o && o.split(",").indexOf(r.id) !== -1)
1169
- return;
1170
- n.setAttribute("aria-describedby", o ? `${o},${r.id}` : r.id);
1171
- }
1172
- }
1173
- }, Hn = [];
1174
- function Nn(e, t, r = {}) {
1175
- let {
1176
- enabled: n = !0,
1177
- placement: i = "bottom",
1178
- strategy: o = "absolute",
1179
- modifiers: u = Hn
1180
- } = r, s = Sn(r, $n);
1181
- const a = V(u), l = V(), c = N(() => {
1182
- var f;
1183
- (f = l.current) == null || f.update();
1184
- }, []), p = N(() => {
1185
- var f;
1186
- (f = l.current) == null || f.forceUpdate();
1187
- }, []), [h, d] = Rr(Be({
1188
- placement: i,
1189
- update: c,
1190
- forceUpdate: p,
1191
- attributes: {},
1192
- styles: {
1193
- popper: {},
1194
- arrow: {}
1195
- }
1196
- })), v = De(() => ({
1197
- name: "updateStateModifier",
1198
- enabled: !0,
1199
- phase: "write",
1200
- requires: ["computeStyles"],
1201
- fn: ({
1202
- state: f
1203
- }) => {
1204
- const y = {}, m = {};
1205
- Object.keys(f.elements).forEach((O) => {
1206
- y[O] = f.styles[O], m[O] = f.attributes[O];
1207
- }), d({
1208
- state: f,
1209
- styles: y,
1210
- attributes: m,
1211
- update: c,
1212
- forceUpdate: p,
1213
- placement: f.placement
1214
- });
1215
- }
1216
- }), [c, p, d]), g = De(() => (de(a.current, u) || (a.current = u), a.current), [u]);
1217
- return he(() => {
1218
- !l.current || !n || l.current.setOptions({
1219
- placement: i,
1220
- strategy: o,
1221
- modifiers: [...g, v, Bn]
1222
- });
1223
- }, [o, i, v, n, g]), he(() => {
1224
- if (!(!n || e == null || t == null))
1225
- return l.current = Tn(e, t, Object.assign({}, s, {
1226
- placement: i,
1227
- strategy: o,
1228
- modifiers: [...g, Ln, v]
1229
- })), () => {
1230
- l.current != null && (l.current.destroy(), l.current = void 0, d((f) => Object.assign({}, f, {
1231
- attributes: {},
1232
- styles: {
1233
- popper: {}
1234
- }
1235
- })));
1236
- };
1237
- }, [n, e, t]), h;
1238
- }
1239
- var Wn = process.env.NODE_ENV !== "production", Kt = function() {
1240
- };
1241
- if (Wn) {
1242
- var zn = function(t, r) {
1243
- var n = arguments.length;
1244
- r = new Array(n > 1 ? n - 1 : 0);
1245
- for (var i = 1; i < n; i++)
1246
- r[i - 1] = arguments[i];
1247
- var o = 0, u = "Warning: " + t.replace(/%s/g, function() {
1248
- return r[o++];
1249
- });
1250
- typeof console < "u" && console.error(u);
1251
- try {
1252
- throw new Error(u);
1253
- } catch {
1254
- }
1255
- };
1256
- Kt = function(e, t, r) {
1257
- var n = arguments.length;
1258
- r = new Array(n > 2 ? n - 2 : 0);
1259
- for (var i = 2; i < n; i++)
1260
- r[i - 2] = arguments[i];
1261
- if (t === void 0)
1262
- throw new Error(
1263
- "`warning(condition, format, ...args)` requires a warning message argument"
1264
- );
1265
- e || zn.apply(null, [t].concat(r));
1266
- };
1267
- }
1268
- var Fn = Kt;
1269
- const qt = /* @__PURE__ */ lr(Fn), Mt = () => {
1270
- };
1271
- function _n(e) {
1272
- return e.button === 0;
1273
- }
1274
- function kn(e) {
1275
- return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
1276
- }
1277
- const Re = (e) => e && ("current" in e ? e.current : e), Rt = {
1278
- click: "mousedown",
1279
- mouseup: "mousedown",
1280
- pointerup: "pointerdown"
1281
- };
1282
- function Vn(e, t = Mt, {
1283
- disabled: r,
1284
- clickTrigger: n = "click"
1285
- } = {}) {
1286
- const i = V(!1), o = V(!1), u = N((l) => {
1287
- const c = Re(e);
1288
- qt(!!c, "ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"), i.current = !c || kn(l) || !_n(l) || !!Fe(c, l.target) || o.current, o.current = !1;
1289
- }, [e]), s = Ce((l) => {
1290
- const c = Re(e);
1291
- c && Fe(c, l.target) && (o.current = !0);
1292
- }), a = Ce((l) => {
1293
- i.current || t(l);
1294
- });
1295
- he(() => {
1296
- var l, c;
1297
- if (r || e == null)
1298
- return;
1299
- const p = Tt(Re(e)), h = p.defaultView || window;
1300
- let d = (l = h.event) != null ? l : (c = h.parent) == null ? void 0 : c.event, v = null;
1301
- Rt[n] && (v = fe(p, Rt[n], s, !0));
1302
- const g = fe(p, n, u, !0), f = fe(p, n, (m) => {
1303
- if (m === d) {
1304
- d = void 0;
1305
- return;
1306
- }
1307
- a(m);
1308
- });
1309
- let y = [];
1310
- return "ontouchstart" in p.documentElement && (y = [].slice.call(p.body.children).map((m) => fe(m, "mousemove", Mt))), () => {
1311
- v == null || v(), g(), f(), y.forEach((m) => m());
1312
- };
1313
- }, [e, r, n, u, s, a]);
1314
- }
1315
- function In(e) {
1316
- const t = {};
1317
- return Array.isArray(e) ? (e == null || e.forEach((r) => {
1318
- t[r.name] = r;
1319
- }), t) : e || t;
1320
- }
1321
- function Un(e = {}) {
1322
- return Array.isArray(e) ? e : Object.keys(e).map((t) => (e[t].name = t, e[t]));
1323
- }
1324
- function Kn({
1325
- enabled: e,
1326
- enableEvents: t,
1327
- placement: r,
1328
- flip: n,
1329
- offset: i,
1330
- fixed: o,
1331
- containerPadding: u,
1332
- arrowElement: s,
1333
- popperConfig: a = {}
1334
- }) {
1335
- var l, c, p, h, d;
1336
- const v = In(a.modifiers);
1337
- return Object.assign({}, a, {
1338
- placement: r,
1339
- enabled: e,
1340
- strategy: o ? "fixed" : a.strategy,
1341
- modifiers: Un(Object.assign({}, v, {
1342
- eventListeners: {
1343
- enabled: t,
1344
- options: (l = v.eventListeners) == null ? void 0 : l.options
1345
- },
1346
- preventOverflow: Object.assign({}, v.preventOverflow, {
1347
- options: u ? Object.assign({
1348
- padding: u
1349
- }, (c = v.preventOverflow) == null ? void 0 : c.options) : (p = v.preventOverflow) == null ? void 0 : p.options
1350
- }),
1351
- offset: {
1352
- options: Object.assign({
1353
- offset: i
1354
- }, (h = v.offset) == null ? void 0 : h.options)
1355
- },
1356
- arrow: Object.assign({}, v.arrow, {
1357
- enabled: !!s,
1358
- options: Object.assign({}, (d = v.arrow) == null ? void 0 : d.options, {
1359
- element: s
1360
- })
1361
- }),
1362
- flip: Object.assign({
1363
- enabled: !!n
1364
- }, v.flip)
1365
- }))
1366
- });
1367
- }
1368
- const qn = () => {
1369
- };
1370
- function Xn(e, t, {
1371
- disabled: r,
1372
- clickTrigger: n
1373
- } = {}) {
1374
- const i = t || qn;
1375
- Vn(e, i, {
1376
- disabled: r,
1377
- clickTrigger: n
1378
- });
1379
- const o = Ce((u) => {
1380
- pr(u) && i(u);
1381
- });
1382
- he(() => {
1383
- if (r || e == null)
1384
- return;
1385
- const u = Tt(Re(e));
1386
- let s = (u.defaultView || window).event;
1387
- const a = fe(u, "keyup", (l) => {
1388
- if (l === s) {
1389
- s = void 0;
1390
- return;
1391
- }
1392
- o(l);
1393
- });
1394
- return () => {
1395
- a();
1396
- };
1397
- }, [e, r, o]);
1398
- }
1399
- const Xt = /* @__PURE__ */ K.forwardRef((e, t) => {
1400
- const {
1401
- flip: r,
1402
- offset: n,
1403
- placement: i,
1404
- containerPadding: o,
1405
- popperConfig: u = {},
1406
- transition: s,
1407
- runTransition: a
1408
- } = e, [l, c] = ut(), [p, h] = ut(), d = Ke(c, t), v = lt(e.container), g = lt(e.target), [f, y] = Be(!e.show), m = Nn(g, l, Kn({
1409
- placement: i,
1410
- enableEvents: !!e.show,
1411
- containerPadding: o || 5,
1412
- flip: r,
1413
- offset: n,
1414
- arrowElement: p,
1415
- popperConfig: u
1416
- }));
1417
- e.show && f && y(!1);
1418
- const O = (...M) => {
1419
- y(!0), e.onExited && e.onExited(...M);
1420
- }, w = e.show || !f;
1421
- if (Xn(l, e.onHide, {
1422
- disabled: !e.rootClose || e.rootCloseDisabled,
1423
- clickTrigger: e.rootCloseEvent
1424
- }), !w)
1425
- return null;
1426
- const {
1427
- onExit: x,
1428
- onExiting: b,
1429
- onEnter: E,
1430
- onEntering: P,
1431
- onEntered: A
1432
- } = e;
1433
- let j = e.children(Object.assign({}, m.attributes.popper, {
1434
- style: m.styles.popper,
1435
- ref: d
1436
- }), {
1437
- popper: m,
1438
- placement: i,
1439
- show: !!e.show,
1440
- arrowProps: Object.assign({}, m.attributes.arrow, {
1441
- style: m.styles.arrow,
1442
- ref: h
1443
- })
1444
- });
1445
- return j = vr(s, a, {
1446
- in: !!e.show,
1447
- appear: !0,
1448
- mountOnEnter: !0,
1449
- unmountOnExit: !0,
1450
- children: j,
1451
- onExit: x,
1452
- onExiting: b,
1453
- onExited: O,
1454
- onEnter: E,
1455
- onEntering: P,
1456
- onEntered: A
1457
- }), v ? /* @__PURE__ */ gr.createPortal(j, v) : null;
1458
- });
1459
- Xt.displayName = "Overlay";
1460
- const Yn = Xt, Yt = /* @__PURE__ */ K.forwardRef(({
1461
- className: e,
1462
- bsPrefix: t,
1463
- as: r = "div",
1464
- ...n
1465
- }, i) => (t = ne(t, "popover-header"), /* @__PURE__ */ T.jsx(r, {
1466
- ref: i,
1467
- className: ye(e, t),
1468
- ...n
1469
- })));
1470
- Yt.displayName = "PopoverHeader";
1471
- const Gn = Yt, Gt = /* @__PURE__ */ K.forwardRef(({
1472
- className: e,
1473
- bsPrefix: t,
1474
- as: r = "div",
1475
- ...n
1476
- }, i) => (t = ne(t, "popover-body"), /* @__PURE__ */ T.jsx(r, {
1477
- ref: i,
1478
- className: ye(e, t),
1479
- ...n
1480
- })));
1481
- Gt.displayName = "PopoverBody";
1482
- const Jt = Gt;
1483
- function Qt(e, t) {
1484
- let r = e;
1485
- return e === "left" ? r = t ? "end" : "start" : e === "right" && (r = t ? "start" : "end"), r;
1486
- }
1487
- function Zt(e = "absolute") {
1488
- return {
1489
- position: e,
1490
- top: "0",
1491
- left: "0",
1492
- opacity: "0",
1493
- pointerEvents: "none"
1494
- };
1495
- }
1496
- const Jn = /* @__PURE__ */ K.forwardRef(({
1497
- bsPrefix: e,
1498
- placement: t = "right",
1499
- className: r,
1500
- style: n,
1501
- children: i,
1502
- body: o,
1503
- arrowProps: u,
1504
- hasDoneInitialMeasure: s,
1505
- popper: a,
1506
- show: l,
1507
- ...c
1508
- }, p) => {
1509
- const h = ne(e, "popover"), d = $t(), [v] = (t == null ? void 0 : t.split("-")) || [], g = Qt(v, d);
1510
- let f = n;
1511
- return l && !s && (f = {
1512
- ...n,
1513
- ...Zt(a == null ? void 0 : a.strategy)
1514
- }), /* @__PURE__ */ T.jsxs("div", {
1515
- ref: p,
1516
- role: "tooltip",
1517
- style: f,
1518
- "x-placement": v,
1519
- className: ye(r, h, v && `bs-popover-${g}`),
1520
- ...c,
1521
- children: [/* @__PURE__ */ T.jsx("div", {
1522
- className: "popover-arrow",
1523
- ...u
1524
- }), o ? /* @__PURE__ */ T.jsx(Jt, {
1525
- children: i
1526
- }) : i]
1527
- });
1528
- }), Qn = Object.assign(Jn, {
1529
- Header: Gn,
1530
- Body: Jt,
1531
- // Default popover offset.
1532
- // https://github.com/twbs/bootstrap/blob/5c32767e0e0dbac2d934bcdee03719a65d3f1187/js/src/popover.js#L28
1533
- POPPER_OFFSET: [0, 8]
1534
- }), er = /* @__PURE__ */ K.forwardRef(({
1535
- bsPrefix: e,
1536
- placement: t = "right",
1537
- className: r,
1538
- style: n,
1539
- children: i,
1540
- arrowProps: o,
1541
- hasDoneInitialMeasure: u,
1542
- popper: s,
1543
- show: a,
1544
- ...l
1545
- }, c) => {
1546
- e = ne(e, "tooltip");
1547
- const p = $t(), [h] = (t == null ? void 0 : t.split("-")) || [], d = Qt(h, p);
1548
- let v = n;
1549
- return a && !u && (v = {
1550
- ...n,
1551
- ...Zt(s == null ? void 0 : s.strategy)
1552
- }), /* @__PURE__ */ T.jsxs("div", {
1553
- ref: c,
1554
- style: v,
1555
- role: "tooltip",
1556
- "x-placement": h,
1557
- className: ye(r, e, `bs-tooltip-${d}`),
1558
- ...l,
1559
- children: [/* @__PURE__ */ T.jsx("div", {
1560
- className: "tooltip-arrow",
1561
- ...o
1562
- }), /* @__PURE__ */ T.jsx("div", {
1563
- className: `${e}-inner`,
1564
- children: i
1565
- })]
1566
- });
1567
- });
1568
- er.displayName = "Tooltip";
1569
- const tr = Object.assign(er, {
1570
- // Default tooltip offset.
1571
- // https://github.com/twbs/bootstrap/blob/beca2a6c7f6bc88b6449339fc76edcda832c59e5/js/src/tooltip.js#L65
1572
- TOOLTIP_OFFSET: [0, 6]
1573
- });
1574
- function Zn(e) {
1575
- const t = V(null), r = ne(void 0, "popover"), n = ne(void 0, "tooltip"), i = De(() => ({
1576
- name: "offset",
1577
- options: {
1578
- offset: () => {
1579
- if (e)
1580
- return e;
1581
- if (t.current) {
1582
- if (ft(t.current, r))
1583
- return Qn.POPPER_OFFSET;
1584
- if (ft(t.current, n))
1585
- return tr.TOOLTIP_OFFSET;
1586
- }
1587
- return [0, 0];
1588
- }
1589
- }
1590
- }), [e, r, n]);
1591
- return [t, [i]];
1592
- }
1593
- function ei(e, t) {
1594
- const {
1595
- ref: r
1596
- } = e, {
1597
- ref: n
1598
- } = t;
1599
- e.ref = r.__wrapped || (r.__wrapped = (i) => r(_e(i))), t.ref = n.__wrapped || (n.__wrapped = (i) => n(_e(i)));
1600
- }
1601
- const rr = /* @__PURE__ */ K.forwardRef(({
1602
- children: e,
1603
- transition: t = dt,
1604
- popperConfig: r = {},
1605
- rootClose: n = !1,
1606
- placement: i = "top",
1607
- show: o = !1,
1608
- ...u
1609
- }, s) => {
1610
- const a = V({}), [l, c] = Be(null), [p, h] = Zn(u.offset), d = Ke(s, p), v = t === !0 ? dt : t || void 0, g = Ce((f) => {
1611
- c(f), r == null || r.onFirstUpdate == null || r.onFirstUpdate(f);
1612
- });
1613
- return hr(() => {
1614
- l && u.target && (a.current.scheduleUpdate == null || a.current.scheduleUpdate());
1615
- }, [l, u.target]), he(() => {
1616
- o || c(null);
1617
- }, [o]), /* @__PURE__ */ T.jsx(Yn, {
1618
- ...u,
1619
- ref: d,
1620
- popperConfig: {
1621
- ...r,
1622
- modifiers: h.concat(r.modifiers || []),
1623
- onFirstUpdate: g
1624
- },
1625
- transition: v,
1626
- rootClose: n,
1627
- placement: i,
1628
- show: o,
1629
- children: (f, {
1630
- arrowProps: y,
1631
- popper: m,
1632
- show: O
1633
- }) => {
1634
- var w, x;
1635
- ei(f, y);
1636
- const b = m == null ? void 0 : m.placement, E = Object.assign(a.current, {
1637
- state: m == null ? void 0 : m.state,
1638
- scheduleUpdate: m == null ? void 0 : m.update,
1639
- placement: b,
1640
- outOfBoundaries: (m == null || (w = m.state) == null || (x = w.modifiersData.hide) == null ? void 0 : x.isReferenceHidden) || !1,
1641
- strategy: r.strategy
1642
- }), P = !!l;
1643
- return typeof e == "function" ? e({
1644
- ...f,
1645
- placement: b,
1646
- show: O,
1647
- ...!t && O && {
1648
- className: "show"
1649
- },
1650
- popper: E,
1651
- arrowProps: y,
1652
- hasDoneInitialMeasure: P
1653
- }) : /* @__PURE__ */ K.cloneElement(e, {
1654
- ...f,
1655
- placement: b,
1656
- arrowProps: y,
1657
- popper: E,
1658
- hasDoneInitialMeasure: P,
1659
- className: ye(e.props.className, !t && O && "show"),
1660
- style: {
1661
- ...e.props.style,
1662
- ...f.style
1663
- }
1664
- });
1665
- }
1666
- });
1667
- });
1668
- rr.displayName = "Overlay";
1669
- const ti = rr;
1670
- function ri(e) {
1671
- return e && typeof e == "object" ? e : {
1672
- show: e,
1673
- hide: e
1674
- };
1675
- }
1676
- function Dt(e, t, r) {
1677
- const [n] = t, i = n.currentTarget, o = n.relatedTarget || n.nativeEvent[r];
1678
- (!o || o !== i) && !Fe(i, o) && e(...t);
1679
- }
1680
- mr.oneOf(["click", "hover", "focus"]);
1681
- const ni = ({
1682
- trigger: e = ["hover", "focus"],
1683
- overlay: t,
1684
- children: r,
1685
- popperConfig: n = {},
1686
- show: i,
1687
- defaultShow: o = !1,
1688
- onToggle: u,
1689
- delay: s,
1690
- placement: a,
1691
- flip: l = a && a.indexOf("auto") !== -1,
1692
- ...c
1693
- }) => {
1694
- const p = V(null), h = Ke(p, r.ref), d = Mr(), v = V(""), [g, f] = Lt(i, o, u), y = ri(s), {
1695
- onFocus: m,
1696
- onBlur: O,
1697
- onClick: w
1698
- } = typeof r != "function" ? K.Children.only(r).props : {}, x = (D) => {
1699
- h(_e(D));
1700
- }, b = N(() => {
1701
- if (d.clear(), v.current = "show", !y.show) {
1702
- f(!0);
1703
- return;
1704
- }
1705
- d.set(() => {
1706
- v.current === "show" && f(!0);
1707
- }, y.show);
1708
- }, [y.show, f, d]), E = N(() => {
1709
- if (d.clear(), v.current = "hide", !y.hide) {
1710
- f(!1);
1711
- return;
1712
- }
1713
- d.set(() => {
1714
- v.current === "hide" && f(!1);
1715
- }, y.hide);
1716
- }, [y.hide, f, d]), P = N((...D) => {
1717
- b(), m == null || m(...D);
1718
- }, [b, m]), A = N((...D) => {
1719
- E(), O == null || O(...D);
1720
- }, [E, O]), j = N((...D) => {
1721
- f(!g), w == null || w(...D);
1722
- }, [w, f, g]), M = N((...D) => {
1723
- Dt(b, D, "fromElement");
1724
- }, [b]), B = N((...D) => {
1725
- Dt(E, D, "toElement");
1726
- }, [E]), R = e == null ? [] : [].concat(e), C = {
1727
- ref: x
1728
- };
1729
- return R.indexOf("click") !== -1 && (C.onClick = j), R.indexOf("focus") !== -1 && (C.onFocus = P, C.onBlur = A), R.indexOf("hover") !== -1 && (process.env.NODE_ENV !== "production" && qt(R.length > 1, '[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'), C.onMouseOver = M, C.onMouseOut = B), /* @__PURE__ */ T.jsxs(T.Fragment, {
1730
- children: [typeof r == "function" ? r(C) : /* @__PURE__ */ ur(r, C), /* @__PURE__ */ T.jsx(ti, {
1731
- ...c,
1732
- show: g,
1733
- onHide: E,
1734
- flip: l,
1735
- placement: a,
1736
- popperConfig: n,
1737
- target: p.current,
1738
- children: t
1739
- })]
1740
- });
1741
- }, ii = ni, gi = ({ text: e, placement: t, children: r }) => /* @__PURE__ */ T.jsx(ii, { placement: t, overlay: /* @__PURE__ */ T.jsx(tr, { className: "luminus-tooltip", children: e }), children: r });
1742
- export {
1743
- pi as M,
1744
- ii as O,
1745
- Qn as P,
1746
- gi as S,
1747
- tr as T,
1748
- vi as a,
1749
- hi as b,
1750
- di as c,
1751
- li as d,
1752
- fi as e,
1753
- Vn as f,
1754
- mi as g,
1755
- ui as h,
1756
- Kn as m,
1757
- Nn as u,
1758
- qt as w
1759
- };