react-luminus-components 1.1.0 → 1.1.2

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