stone-kit 0.0.1081 → 0.0.1086

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/{FilterWithSave-DUZgU1Yr.js → FilterWithSave-D4iIFzmS.js} +1074 -1127
  2. package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +1 -1
  3. package/dist/components/CommercialLotCard/CommercialLotCard.js +2 -3
  4. package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +1 -1
  5. package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +0 -2
  6. package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +1 -1
  7. package/dist/components/FilterWithSave/ui/FilterWithSave.js +1 -1
  8. package/dist/components/FormModal/ui/ModalForm.js +1 -1
  9. package/dist/components/LotCard/hooks/useLotCard.js +1 -1
  10. package/dist/components/LotCard/index.js +1 -1
  11. package/dist/components/LotCard/ui/LotCard.d.ts +1 -1
  12. package/dist/components/LotCard/ui/LotCard.js +2 -3
  13. package/dist/components/LotCard/ui/LotCard.types.d.ts +0 -2
  14. package/dist/components/Modal/ui/Modal.js +22 -22
  15. package/dist/components/SortSelect/index.js +1 -1
  16. package/dist/components/SortSelect/ui/SortSelect.js +1 -1
  17. package/dist/components/TabSwitcher/index.js +1 -1
  18. package/dist/components/TabSwitcher/ui/TabSwitcher.js +1 -1
  19. package/dist/layout/components/Header/Header.js +1 -1
  20. package/dist/layout/components/Menu.js +1 -1
  21. package/dist/main.js +1 -1
  22. package/dist/pages/ButtonsPage/Buttons.js +1 -1
  23. package/dist/pages/FormsPage/FormsPage.js +1 -1
  24. package/dist/pages/IconsPage/IconsPage.js +1 -1
  25. package/dist/pages/InputPage/InputPage.js +1 -1
  26. package/dist/pages/LogoPage/LogoPage.js +1 -1
  27. package/dist/pages/LotsPage/LotsPage.js +4 -5
  28. package/dist/pages/ModalsPage/ModalPage.js +1 -1
  29. package/dist/pages/SelectPage/SelectPage.js +1 -1
  30. package/dist/pages/TabsPage/TabsPage.js +1 -1
  31. package/dist/pages/TagsPage/TagsPage.js +1 -1
  32. package/dist/stone-kit.css +1 -1
  33. package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +1 -1
  34. package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +1 -1
  35. package/dist/stories/shared/ui/FormModal/FormModal.stories.js +1 -1
  36. package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +1 -1
  37. package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +1 -1
  38. package/package.json +1 -1
  39. package/dist/components/Tooltip/Tooltip.d.ts +0 -11
  40. package/dist/components/Tooltip/Tooltip.js +0 -2012
@@ -1,2012 +0,0 @@
1
- import { jsx as me } from "react/jsx-runtime";
2
- import wt, { forwardRef as Vn, cloneElement as sn, useState as st, useLayoutEffect as In, useEffect as Ot, useRef as Et, useCallback as rt, useMemo as Hn } from "react";
3
- import { c as vt } from "../../index-YnD2EP-S.js";
4
- import { createPortal as Wn } from "react-dom";
5
- import { TooltipIcon as Vt } from "../Icons/TooltipIcon.js";
6
- var U = "top", G = "bottom", K = "right", F = "left", Lt = "auto", Ue = [U, G, K, F], De = "start", Ie = "end", _n = "clippingParents", un = "viewport", $e = "popper", Un = "reference", It = /* @__PURE__ */ Ue.reduce(function(e, t) {
7
- return e.concat([t + "-" + De, t + "-" + Ie]);
8
- }, []), cn = /* @__PURE__ */ [].concat(Ue, [Lt]).reduce(function(e, t) {
9
- return e.concat([t, t + "-" + De, t + "-" + Ie]);
10
- }, []), Fn = "beforeRead", qn = "read", zn = "afterRead", Yn = "beforeMain", Xn = "main", Gn = "afterMain", Kn = "beforeWrite", Jn = "write", Qn = "afterWrite", Zn = [Fn, qn, zn, Yn, Xn, Gn, Kn, Jn, Qn];
11
- function te(e) {
12
- return e ? (e.nodeName || "").toLowerCase() : null;
13
- }
14
- function z(e) {
15
- if (e == null)
16
- return window;
17
- if (e.toString() !== "[object Window]") {
18
- var t = e.ownerDocument;
19
- return t && t.defaultView || window;
20
- }
21
- return e;
22
- }
23
- function ye(e) {
24
- var t = z(e).Element;
25
- return e instanceof t || e instanceof Element;
26
- }
27
- function X(e) {
28
- var t = z(e).HTMLElement;
29
- return e instanceof t || e instanceof HTMLElement;
30
- }
31
- function jt(e) {
32
- if (typeof ShadowRoot > "u")
33
- return !1;
34
- var t = z(e).ShadowRoot;
35
- return e instanceof t || e instanceof ShadowRoot;
36
- }
37
- function er(e) {
38
- var t = e.state;
39
- Object.keys(t.elements).forEach(function(n) {
40
- var r = t.styles[n] || {}, o = t.attributes[n] || {}, a = t.elements[n];
41
- !X(a) || !te(a) || (Object.assign(a.style, r), Object.keys(o).forEach(function(c) {
42
- var p = o[c];
43
- p === !1 ? a.removeAttribute(c) : a.setAttribute(c, p === !0 ? "" : p);
44
- }));
45
- });
46
- }
47
- function tr(e) {
48
- var t = e.state, n = {
49
- popper: {
50
- position: t.options.strategy,
51
- left: "0",
52
- top: "0",
53
- margin: "0"
54
- },
55
- arrow: {
56
- position: "absolute"
57
- },
58
- reference: {}
59
- };
60
- return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
61
- Object.keys(t.elements).forEach(function(r) {
62
- var o = t.elements[r], a = t.attributes[r] || {}, c = Object.keys(t.styles.hasOwnProperty(r) ? t.styles[r] : n[r]), p = c.reduce(function(s, l) {
63
- return s[l] = "", s;
64
- }, {});
65
- !X(o) || !te(o) || (Object.assign(o.style, p), Object.keys(a).forEach(function(s) {
66
- o.removeAttribute(s);
67
- }));
68
- });
69
- };
70
- }
71
- const pn = {
72
- name: "applyStyles",
73
- enabled: !0,
74
- phase: "write",
75
- fn: er,
76
- effect: tr,
77
- requires: ["computeStyles"]
78
- };
79
- function ee(e) {
80
- return e.split("-")[0];
81
- }
82
- var ge = Math.max, ct = Math.min, Ce = Math.round;
83
- function xt() {
84
- var e = navigator.userAgentData;
85
- return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
86
- return t.brand + "/" + t.version;
87
- }).join(" ") : navigator.userAgent;
88
- }
89
- function fn() {
90
- return !/^((?!chrome|android).)*safari/i.test(xt());
91
- }
92
- function Se(e, t, n) {
93
- t === void 0 && (t = !1), n === void 0 && (n = !1);
94
- var r = e.getBoundingClientRect(), o = 1, a = 1;
95
- t && X(e) && (o = e.offsetWidth > 0 && Ce(r.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && Ce(r.height) / e.offsetHeight || 1);
96
- var c = ye(e) ? z(e) : window, p = c.visualViewport, s = !fn() && n, l = (r.left + (s && p ? p.offsetLeft : 0)) / o, f = (r.top + (s && p ? p.offsetTop : 0)) / a, b = r.width / o, E = r.height / a;
97
- return {
98
- width: b,
99
- height: E,
100
- top: f,
101
- right: l + b,
102
- bottom: f + E,
103
- left: l,
104
- x: l,
105
- y: f
106
- };
107
- }
108
- function Pt(e) {
109
- var t = Se(e), n = e.offsetWidth, r = e.offsetHeight;
110
- return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - r) <= 1 && (r = t.height), {
111
- x: e.offsetLeft,
112
- y: e.offsetTop,
113
- width: n,
114
- height: r
115
- };
116
- }
117
- function ln(e, t) {
118
- var n = t.getRootNode && t.getRootNode();
119
- if (e.contains(t))
120
- return !0;
121
- if (n && jt(n)) {
122
- var r = t;
123
- do {
124
- if (r && e.isSameNode(r))
125
- return !0;
126
- r = r.parentNode || r.host;
127
- } while (r);
128
- }
129
- return !1;
130
- }
131
- function se(e) {
132
- return z(e).getComputedStyle(e);
133
- }
134
- function nr(e) {
135
- return ["table", "td", "th"].indexOf(te(e)) >= 0;
136
- }
137
- function pe(e) {
138
- return ((ye(e) ? e.ownerDocument : (
139
- // $FlowFixMe[prop-missing]
140
- e.document
141
- )) || window.document).documentElement;
142
- }
143
- function ft(e) {
144
- return te(e) === "html" ? e : (
145
- // this is a quicker (but less type safe) way to save quite some bytes from the bundle
146
- // $FlowFixMe[incompatible-return]
147
- // $FlowFixMe[prop-missing]
148
- e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
149
- e.parentNode || // DOM Element detected
150
- (jt(e) ? e.host : null) || // ShadowRoot detected
151
- // $FlowFixMe[incompatible-call]: HTMLElement is a Node
152
- pe(e)
153
- );
154
- }
155
- function Ht(e) {
156
- return !X(e) || // https://github.com/popperjs/popper-core/issues/837
157
- se(e).position === "fixed" ? null : e.offsetParent;
158
- }
159
- function rr(e) {
160
- var t = /firefox/i.test(xt()), n = /Trident/i.test(xt());
161
- if (n && X(e)) {
162
- var r = se(e);
163
- if (r.position === "fixed")
164
- return null;
165
- }
166
- var o = ft(e);
167
- for (jt(o) && (o = o.host); X(o) && ["html", "body"].indexOf(te(o)) < 0; ) {
168
- var a = se(o);
169
- if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || t && a.willChange === "filter" || t && a.filter && a.filter !== "none")
170
- return o;
171
- o = o.parentNode;
172
- }
173
- return null;
174
- }
175
- function Fe(e) {
176
- for (var t = z(e), n = Ht(e); n && nr(n) && se(n).position === "static"; )
177
- n = Ht(n);
178
- return n && (te(n) === "html" || te(n) === "body" && se(n).position === "static") ? t : n || rr(e) || t;
179
- }
180
- function Nt(e) {
181
- return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
182
- }
183
- function ke(e, t, n) {
184
- return ge(e, ct(t, n));
185
- }
186
- function ir(e, t, n) {
187
- var r = ke(e, t, n);
188
- return r > n ? n : r;
189
- }
190
- function dn() {
191
- return {
192
- top: 0,
193
- right: 0,
194
- bottom: 0,
195
- left: 0
196
- };
197
- }
198
- function vn(e) {
199
- return Object.assign({}, dn(), e);
200
- }
201
- function mn(e, t) {
202
- return t.reduce(function(n, r) {
203
- return n[r] = e, n;
204
- }, {});
205
- }
206
- var or = function(t, n) {
207
- return t = typeof t == "function" ? t(Object.assign({}, n.rects, {
208
- placement: n.placement
209
- })) : t, vn(typeof t != "number" ? t : mn(t, Ue));
210
- };
211
- function ar(e) {
212
- var t, n = e.state, r = e.name, o = e.options, a = n.elements.arrow, c = n.modifiersData.popperOffsets, p = ee(n.placement), s = Nt(p), l = [F, K].indexOf(p) >= 0, f = l ? "height" : "width";
213
- if (!(!a || !c)) {
214
- var b = or(o.padding, n), E = Pt(a), m = s === "y" ? U : F, w = s === "y" ? G : K, y = n.rects.reference[f] + n.rects.reference[s] - c[s] - n.rects.popper[f], h = c[s] - n.rects.reference[s], x = Fe(a), L = x ? s === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, N = y / 2 - h / 2, i = b[m], T = L - E[f] - b[w], d = L / 2 - E[f] / 2 + N, P = ke(i, d, T), k = s;
215
- n.modifiersData[r] = (t = {}, t[k] = P, t.centerOffset = P - d, t);
216
- }
217
- }
218
- function sr(e) {
219
- var t = e.state, n = e.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r;
220
- o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || ln(t.elements.popper, o) && (t.elements.arrow = o));
221
- }
222
- const ur = {
223
- name: "arrow",
224
- enabled: !0,
225
- phase: "main",
226
- fn: ar,
227
- effect: sr,
228
- requires: ["popperOffsets"],
229
- requiresIfExists: ["preventOverflow"]
230
- };
231
- function Le(e) {
232
- return e.split("-")[1];
233
- }
234
- var cr = {
235
- top: "auto",
236
- right: "auto",
237
- bottom: "auto",
238
- left: "auto"
239
- };
240
- function pr(e, t) {
241
- var n = e.x, r = e.y, o = t.devicePixelRatio || 1;
242
- return {
243
- x: Ce(n * o) / o || 0,
244
- y: Ce(r * o) / o || 0
245
- };
246
- }
247
- function Wt(e) {
248
- var t, n = e.popper, r = e.popperRect, o = e.placement, a = e.variation, c = e.offsets, p = e.position, s = e.gpuAcceleration, l = e.adaptive, f = e.roundOffsets, b = e.isFixed, E = c.x, m = E === void 0 ? 0 : E, w = c.y, y = w === void 0 ? 0 : w, h = typeof f == "function" ? f({
249
- x: m,
250
- y
251
- }) : {
252
- x: m,
253
- y
254
- };
255
- m = h.x, y = h.y;
256
- var x = c.hasOwnProperty("x"), L = c.hasOwnProperty("y"), N = F, i = U, T = window;
257
- if (l) {
258
- var d = Fe(n), P = "clientHeight", k = "clientWidth";
259
- if (d === z(n) && (d = pe(n), se(d).position !== "static" && p === "absolute" && (P = "scrollHeight", k = "scrollWidth")), d = d, o === U || (o === F || o === K) && a === Ie) {
260
- i = G;
261
- var D = b && d === T && T.visualViewport ? T.visualViewport.height : (
262
- // $FlowFixMe[prop-missing]
263
- d[P]
264
- );
265
- y -= D - r.height, y *= s ? 1 : -1;
266
- }
267
- if (o === F || (o === U || o === G) && a === Ie) {
268
- N = K;
269
- var C = b && d === T && T.visualViewport ? T.visualViewport.width : (
270
- // $FlowFixMe[prop-missing]
271
- d[k]
272
- );
273
- m -= C - r.width, m *= s ? 1 : -1;
274
- }
275
- }
276
- var M = Object.assign({
277
- position: p
278
- }, l && cr), $ = f === !0 ? pr({
279
- x: m,
280
- y
281
- }, z(n)) : {
282
- x: m,
283
- y
284
- };
285
- if (m = $.x, y = $.y, s) {
286
- var R;
287
- return Object.assign({}, M, (R = {}, R[i] = L ? "0" : "", R[N] = x ? "0" : "", R.transform = (T.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + y + "px)" : "translate3d(" + m + "px, " + y + "px, 0)", R));
288
- }
289
- return Object.assign({}, M, (t = {}, t[i] = L ? y + "px" : "", t[N] = x ? m + "px" : "", t.transform = "", t));
290
- }
291
- function fr(e) {
292
- var t = e.state, n = e.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, a = n.adaptive, c = a === void 0 ? !0 : a, p = n.roundOffsets, s = p === void 0 ? !0 : p, l = {
293
- placement: ee(t.placement),
294
- variation: Le(t.placement),
295
- popper: t.elements.popper,
296
- popperRect: t.rects.popper,
297
- gpuAcceleration: o,
298
- isFixed: t.options.strategy === "fixed"
299
- };
300
- t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Wt(Object.assign({}, l, {
301
- offsets: t.modifiersData.popperOffsets,
302
- position: t.options.strategy,
303
- adaptive: c,
304
- roundOffsets: s
305
- })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Wt(Object.assign({}, l, {
306
- offsets: t.modifiersData.arrow,
307
- position: "absolute",
308
- adaptive: !1,
309
- roundOffsets: s
310
- })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
311
- "data-popper-placement": t.placement
312
- });
313
- }
314
- const lr = {
315
- name: "computeStyles",
316
- enabled: !0,
317
- phase: "beforeWrite",
318
- fn: fr,
319
- data: {}
320
- };
321
- var it = {
322
- passive: !0
323
- };
324
- function dr(e) {
325
- var t = e.state, n = e.instance, r = e.options, o = r.scroll, a = o === void 0 ? !0 : o, c = r.resize, p = c === void 0 ? !0 : c, s = z(t.elements.popper), l = [].concat(t.scrollParents.reference, t.scrollParents.popper);
326
- return a && l.forEach(function(f) {
327
- f.addEventListener("scroll", n.update, it);
328
- }), p && s.addEventListener("resize", n.update, it), function() {
329
- a && l.forEach(function(f) {
330
- f.removeEventListener("scroll", n.update, it);
331
- }), p && s.removeEventListener("resize", n.update, it);
332
- };
333
- }
334
- const vr = {
335
- name: "eventListeners",
336
- enabled: !0,
337
- phase: "write",
338
- fn: function() {
339
- },
340
- effect: dr,
341
- data: {}
342
- };
343
- var mr = {
344
- left: "right",
345
- right: "left",
346
- bottom: "top",
347
- top: "bottom"
348
- };
349
- function ut(e) {
350
- return e.replace(/left|right|bottom|top/g, function(t) {
351
- return mr[t];
352
- });
353
- }
354
- var hr = {
355
- start: "end",
356
- end: "start"
357
- };
358
- function _t(e) {
359
- return e.replace(/start|end/g, function(t) {
360
- return hr[t];
361
- });
362
- }
363
- function Rt(e) {
364
- var t = z(e), n = t.pageXOffset, r = t.pageYOffset;
365
- return {
366
- scrollLeft: n,
367
- scrollTop: r
368
- };
369
- }
370
- function Mt(e) {
371
- return Se(pe(e)).left + Rt(e).scrollLeft;
372
- }
373
- function gr(e, t) {
374
- var n = z(e), r = pe(e), o = n.visualViewport, a = r.clientWidth, c = r.clientHeight, p = 0, s = 0;
375
- if (o) {
376
- a = o.width, c = o.height;
377
- var l = fn();
378
- (l || !l && t === "fixed") && (p = o.offsetLeft, s = o.offsetTop);
379
- }
380
- return {
381
- width: a,
382
- height: c,
383
- x: p + Mt(e),
384
- y: s
385
- };
386
- }
387
- function yr(e) {
388
- var t, n = pe(e), r = Rt(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, a = ge(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), c = ge(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), p = -r.scrollLeft + Mt(e), s = -r.scrollTop;
389
- return se(o || n).direction === "rtl" && (p += ge(n.clientWidth, o ? o.clientWidth : 0) - a), {
390
- width: a,
391
- height: c,
392
- x: p,
393
- y: s
394
- };
395
- }
396
- function $t(e) {
397
- var t = se(e), n = t.overflow, r = t.overflowX, o = t.overflowY;
398
- return /auto|scroll|overlay|hidden/.test(n + o + r);
399
- }
400
- function hn(e) {
401
- return ["html", "body", "#document"].indexOf(te(e)) >= 0 ? e.ownerDocument.body : X(e) && $t(e) ? e : hn(ft(e));
402
- }
403
- function Be(e, t) {
404
- var n;
405
- t === void 0 && (t = []);
406
- var r = hn(e), o = r === ((n = e.ownerDocument) == null ? void 0 : n.body), a = z(r), c = o ? [a].concat(a.visualViewport || [], $t(r) ? r : []) : r, p = t.concat(c);
407
- return o ? p : (
408
- // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
409
- p.concat(Be(ft(c)))
410
- );
411
- }
412
- function Tt(e) {
413
- return Object.assign({}, e, {
414
- left: e.x,
415
- top: e.y,
416
- right: e.x + e.width,
417
- bottom: e.y + e.height
418
- });
419
- }
420
- function br(e, t) {
421
- var n = Se(e, !1, t === "fixed");
422
- return n.top = n.top + e.clientTop, n.left = n.left + e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n;
423
- }
424
- function Ut(e, t, n) {
425
- return t === un ? Tt(gr(e, n)) : ye(t) ? br(t, n) : Tt(yr(pe(e)));
426
- }
427
- function wr(e) {
428
- var t = Be(ft(e)), n = ["absolute", "fixed"].indexOf(se(e).position) >= 0, r = n && X(e) ? Fe(e) : e;
429
- return ye(r) ? t.filter(function(o) {
430
- return ye(o) && ln(o, r) && te(o) !== "body";
431
- }) : [];
432
- }
433
- function Or(e, t, n, r) {
434
- var o = t === "clippingParents" ? wr(e) : [].concat(t), a = [].concat(o, [n]), c = a[0], p = a.reduce(function(s, l) {
435
- var f = Ut(e, l, r);
436
- return s.top = ge(f.top, s.top), s.right = ct(f.right, s.right), s.bottom = ct(f.bottom, s.bottom), s.left = ge(f.left, s.left), s;
437
- }, Ut(e, c, r));
438
- return p.width = p.right - p.left, p.height = p.bottom - p.top, p.x = p.left, p.y = p.top, p;
439
- }
440
- function gn(e) {
441
- var t = e.reference, n = e.element, r = e.placement, o = r ? ee(r) : null, a = r ? Le(r) : null, c = t.x + t.width / 2 - n.width / 2, p = t.y + t.height / 2 - n.height / 2, s;
442
- switch (o) {
443
- case U:
444
- s = {
445
- x: c,
446
- y: t.y - n.height
447
- };
448
- break;
449
- case G:
450
- s = {
451
- x: c,
452
- y: t.y + t.height
453
- };
454
- break;
455
- case K:
456
- s = {
457
- x: t.x + t.width,
458
- y: p
459
- };
460
- break;
461
- case F:
462
- s = {
463
- x: t.x - n.width,
464
- y: p
465
- };
466
- break;
467
- default:
468
- s = {
469
- x: t.x,
470
- y: t.y
471
- };
472
- }
473
- var l = o ? Nt(o) : null;
474
- if (l != null) {
475
- var f = l === "y" ? "height" : "width";
476
- switch (a) {
477
- case De:
478
- s[l] = s[l] - (t[f] / 2 - n[f] / 2);
479
- break;
480
- case Ie:
481
- s[l] = s[l] + (t[f] / 2 - n[f] / 2);
482
- break;
483
- }
484
- }
485
- return s;
486
- }
487
- function He(e, t) {
488
- t === void 0 && (t = {});
489
- var n = t, r = n.placement, o = r === void 0 ? e.placement : r, a = n.strategy, c = a === void 0 ? e.strategy : a, p = n.boundary, s = p === void 0 ? _n : p, l = n.rootBoundary, f = l === void 0 ? un : l, b = n.elementContext, E = b === void 0 ? $e : b, m = n.altBoundary, w = m === void 0 ? !1 : m, y = n.padding, h = y === void 0 ? 0 : y, x = vn(typeof h != "number" ? h : mn(h, Ue)), L = E === $e ? Un : $e, N = e.rects.popper, i = e.elements[w ? L : E], T = Or(ye(i) ? i : i.contextElement || pe(e.elements.popper), s, f, c), d = Se(e.elements.reference), P = gn({
490
- reference: d,
491
- element: N,
492
- placement: o
493
- }), k = Tt(Object.assign({}, N, P)), D = E === $e ? k : d, C = {
494
- top: T.top - D.top + x.top,
495
- bottom: D.bottom - T.bottom + x.bottom,
496
- left: T.left - D.left + x.left,
497
- right: D.right - T.right + x.right
498
- }, M = e.modifiersData.offset;
499
- if (E === $e && M) {
500
- var $ = M[o];
501
- Object.keys(C).forEach(function(R) {
502
- var j = [K, G].indexOf(R) >= 0 ? 1 : -1, O = [U, G].indexOf(R) >= 0 ? "y" : "x";
503
- C[R] += $[O] * j;
504
- });
505
- }
506
- return C;
507
- }
508
- function Er(e, t) {
509
- t === void 0 && (t = {});
510
- var n = t, r = n.placement, o = n.boundary, a = n.rootBoundary, c = n.padding, p = n.flipVariations, s = n.allowedAutoPlacements, l = s === void 0 ? cn : s, f = Le(r), b = f ? p ? It : It.filter(function(w) {
511
- return Le(w) === f;
512
- }) : Ue, E = b.filter(function(w) {
513
- return l.indexOf(w) >= 0;
514
- });
515
- E.length === 0 && (E = b);
516
- var m = E.reduce(function(w, y) {
517
- return w[y] = He(e, {
518
- placement: y,
519
- boundary: o,
520
- rootBoundary: a,
521
- padding: c
522
- })[ee(y)], w;
523
- }, {});
524
- return Object.keys(m).sort(function(w, y) {
525
- return m[w] - m[y];
526
- });
527
- }
528
- function xr(e) {
529
- if (ee(e) === Lt)
530
- return [];
531
- var t = ut(e);
532
- return [_t(e), t, _t(t)];
533
- }
534
- function Tr(e) {
535
- var t = e.state, n = e.options, r = e.name;
536
- if (!t.modifiersData[r]._skip) {
537
- for (var o = n.mainAxis, a = o === void 0 ? !0 : o, c = n.altAxis, p = c === void 0 ? !0 : c, s = n.fallbackPlacements, l = n.padding, f = n.boundary, b = n.rootBoundary, E = n.altBoundary, m = n.flipVariations, w = m === void 0 ? !0 : m, y = n.allowedAutoPlacements, h = t.options.placement, x = ee(h), L = x === h, N = s || (L || !w ? [ut(h)] : xr(h)), i = [h].concat(N).reduce(function(ne, J) {
538
- return ne.concat(ee(J) === Lt ? Er(t, {
539
- placement: J,
540
- boundary: f,
541
- rootBoundary: b,
542
- padding: l,
543
- flipVariations: w,
544
- allowedAutoPlacements: y
545
- }) : J);
546
- }, []), T = t.rects.reference, d = t.rects.popper, P = /* @__PURE__ */ new Map(), k = !0, D = i[0], C = 0; C < i.length; C++) {
547
- var M = i[C], $ = ee(M), R = Le(M) === De, j = [U, G].indexOf($) >= 0, O = j ? "width" : "height", I = He(t, {
548
- placement: M,
549
- boundary: f,
550
- rootBoundary: b,
551
- altBoundary: E,
552
- padding: l
553
- }), V = j ? R ? K : F : R ? G : U;
554
- T[O] > d[O] && (V = ut(V));
555
- var B = ut(V), W = [];
556
- if (a && W.push(I[$] <= 0), p && W.push(I[V] <= 0, I[B] <= 0), W.every(function(ne) {
557
- return ne;
558
- })) {
559
- D = M, k = !1;
560
- break;
561
- }
562
- P.set(M, W);
563
- }
564
- if (k)
565
- for (var H = w ? 3 : 1, fe = function(J) {
566
- var re = i.find(function(be) {
567
- var ie = P.get(be);
568
- if (ie)
569
- return ie.slice(0, J).every(function(we) {
570
- return we;
571
- });
572
- });
573
- if (re)
574
- return D = re, "break";
575
- }, Q = H; Q > 0; Q--) {
576
- var le = fe(Q);
577
- if (le === "break") break;
578
- }
579
- t.placement !== D && (t.modifiersData[r]._skip = !0, t.placement = D, t.reset = !0);
580
- }
581
- }
582
- const Ar = {
583
- name: "flip",
584
- enabled: !0,
585
- phase: "main",
586
- fn: Tr,
587
- requiresIfExists: ["offset"],
588
- data: {
589
- _skip: !1
590
- }
591
- };
592
- function Ft(e, t, n) {
593
- return n === void 0 && (n = {
594
- x: 0,
595
- y: 0
596
- }), {
597
- top: e.top - t.height - n.y,
598
- right: e.right - t.width + n.x,
599
- bottom: e.bottom - t.height + n.y,
600
- left: e.left - t.width - n.x
601
- };
602
- }
603
- function qt(e) {
604
- return [U, K, G, F].some(function(t) {
605
- return e[t] >= 0;
606
- });
607
- }
608
- function Dr(e) {
609
- var t = e.state, n = e.name, r = t.rects.reference, o = t.rects.popper, a = t.modifiersData.preventOverflow, c = He(t, {
610
- elementContext: "reference"
611
- }), p = He(t, {
612
- altBoundary: !0
613
- }), s = Ft(c, r), l = Ft(p, o, a), f = qt(s), b = qt(l);
614
- t.modifiersData[n] = {
615
- referenceClippingOffsets: s,
616
- popperEscapeOffsets: l,
617
- isReferenceHidden: f,
618
- hasPopperEscaped: b
619
- }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
620
- "data-popper-reference-hidden": f,
621
- "data-popper-escaped": b
622
- });
623
- }
624
- const Cr = {
625
- name: "hide",
626
- enabled: !0,
627
- phase: "main",
628
- requiresIfExists: ["preventOverflow"],
629
- fn: Dr
630
- };
631
- function Sr(e, t, n) {
632
- var r = ee(e), o = [F, U].indexOf(r) >= 0 ? -1 : 1, a = typeof n == "function" ? n(Object.assign({}, t, {
633
- placement: e
634
- })) : n, c = a[0], p = a[1];
635
- return c = c || 0, p = (p || 0) * o, [F, K].indexOf(r) >= 0 ? {
636
- x: p,
637
- y: c
638
- } : {
639
- x: c,
640
- y: p
641
- };
642
- }
643
- function Lr(e) {
644
- var t = e.state, n = e.options, r = e.name, o = n.offset, a = o === void 0 ? [0, 0] : o, c = cn.reduce(function(f, b) {
645
- return f[b] = Sr(b, t.rects, a), f;
646
- }, {}), p = c[t.placement], s = p.x, l = p.y;
647
- t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += l), t.modifiersData[r] = c;
648
- }
649
- const jr = {
650
- name: "offset",
651
- enabled: !0,
652
- phase: "main",
653
- requires: ["popperOffsets"],
654
- fn: Lr
655
- };
656
- function Pr(e) {
657
- var t = e.state, n = e.name;
658
- t.modifiersData[n] = gn({
659
- reference: t.rects.reference,
660
- element: t.rects.popper,
661
- placement: t.placement
662
- });
663
- }
664
- const Nr = {
665
- name: "popperOffsets",
666
- enabled: !0,
667
- phase: "read",
668
- fn: Pr,
669
- data: {}
670
- };
671
- function Rr(e) {
672
- return e === "x" ? "y" : "x";
673
- }
674
- function Mr(e) {
675
- var t = e.state, n = e.options, r = e.name, o = n.mainAxis, a = o === void 0 ? !0 : o, c = n.altAxis, p = c === void 0 ? !1 : c, s = n.boundary, l = n.rootBoundary, f = n.altBoundary, b = n.padding, E = n.tether, m = E === void 0 ? !0 : E, w = n.tetherOffset, y = w === void 0 ? 0 : w, h = He(t, {
676
- boundary: s,
677
- rootBoundary: l,
678
- padding: b,
679
- altBoundary: f
680
- }), x = ee(t.placement), L = Le(t.placement), N = !L, i = Nt(x), T = Rr(i), d = t.modifiersData.popperOffsets, P = t.rects.reference, k = t.rects.popper, D = typeof y == "function" ? y(Object.assign({}, t.rects, {
681
- placement: t.placement
682
- })) : y, C = typeof D == "number" ? {
683
- mainAxis: D,
684
- altAxis: D
685
- } : Object.assign({
686
- mainAxis: 0,
687
- altAxis: 0
688
- }, D), M = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, $ = {
689
- x: 0,
690
- y: 0
691
- };
692
- if (d) {
693
- if (a) {
694
- var R, j = i === "y" ? U : F, O = i === "y" ? G : K, I = i === "y" ? "height" : "width", V = d[i], B = V + h[j], W = V - h[O], H = m ? -k[I] / 2 : 0, fe = L === De ? P[I] : k[I], Q = L === De ? -k[I] : -P[I], le = t.elements.arrow, ne = m && le ? Pt(le) : {
695
- width: 0,
696
- height: 0
697
- }, J = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : dn(), re = J[j], be = J[O], ie = ke(0, P[I], ne[I]), we = N ? P[I] / 2 - H - ie - re - C.mainAxis : fe - ie - re - C.mainAxis, ue = N ? -P[I] / 2 + H + ie + be + C.mainAxis : Q + ie + be + C.mainAxis, Oe = t.elements.arrow && Fe(t.elements.arrow), ze = Oe ? i === "y" ? Oe.clientTop || 0 : Oe.clientLeft || 0 : 0, je = (R = M?.[i]) != null ? R : 0, Ye = V + we - je - ze, Xe = V + ue - je, Pe = ke(m ? ct(B, Ye) : B, V, m ? ge(W, Xe) : W);
698
- d[i] = Pe, $[i] = Pe - V;
699
- }
700
- if (p) {
701
- var Ne, Ge = i === "x" ? U : F, Ke = i === "x" ? G : K, oe = d[T], ce = T === "y" ? "height" : "width", Re = oe + h[Ge], de = oe - h[Ke], Me = [U, F].indexOf(x) !== -1, Je = (Ne = M?.[T]) != null ? Ne : 0, Qe = Me ? Re : oe - P[ce] - k[ce] - Je + C.altAxis, Ze = Me ? oe + P[ce] + k[ce] - Je - C.altAxis : de, et = m && Me ? ir(Qe, oe, Ze) : ke(m ? Qe : Re, oe, m ? Ze : de);
702
- d[T] = et, $[T] = et - oe;
703
- }
704
- t.modifiersData[r] = $;
705
- }
706
- }
707
- const $r = {
708
- name: "preventOverflow",
709
- enabled: !0,
710
- phase: "main",
711
- fn: Mr,
712
- requiresIfExists: ["offset"]
713
- };
714
- function kr(e) {
715
- return {
716
- scrollLeft: e.scrollLeft,
717
- scrollTop: e.scrollTop
718
- };
719
- }
720
- function Br(e) {
721
- return e === z(e) || !X(e) ? Rt(e) : kr(e);
722
- }
723
- function Vr(e) {
724
- var t = e.getBoundingClientRect(), n = Ce(t.width) / e.offsetWidth || 1, r = Ce(t.height) / e.offsetHeight || 1;
725
- return n !== 1 || r !== 1;
726
- }
727
- function Ir(e, t, n) {
728
- n === void 0 && (n = !1);
729
- var r = X(t), o = X(t) && Vr(t), a = pe(t), c = Se(e, o, n), p = {
730
- scrollLeft: 0,
731
- scrollTop: 0
732
- }, s = {
733
- x: 0,
734
- y: 0
735
- };
736
- return (r || !r && !n) && ((te(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
737
- $t(a)) && (p = Br(t)), X(t) ? (s = Se(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : a && (s.x = Mt(a))), {
738
- x: c.left + p.scrollLeft - s.x,
739
- y: c.top + p.scrollTop - s.y,
740
- width: c.width,
741
- height: c.height
742
- };
743
- }
744
- function Hr(e) {
745
- var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
746
- e.forEach(function(a) {
747
- t.set(a.name, a);
748
- });
749
- function o(a) {
750
- n.add(a.name);
751
- var c = [].concat(a.requires || [], a.requiresIfExists || []);
752
- c.forEach(function(p) {
753
- if (!n.has(p)) {
754
- var s = t.get(p);
755
- s && o(s);
756
- }
757
- }), r.push(a);
758
- }
759
- return e.forEach(function(a) {
760
- n.has(a.name) || o(a);
761
- }), r;
762
- }
763
- function Wr(e) {
764
- var t = Hr(e);
765
- return Zn.reduce(function(n, r) {
766
- return n.concat(t.filter(function(o) {
767
- return o.phase === r;
768
- }));
769
- }, []);
770
- }
771
- function _r(e) {
772
- var t;
773
- return function() {
774
- return t || (t = new Promise(function(n) {
775
- Promise.resolve().then(function() {
776
- t = void 0, n(e());
777
- });
778
- })), t;
779
- };
780
- }
781
- function Ur(e) {
782
- var t = e.reduce(function(n, r) {
783
- var o = n[r.name];
784
- return n[r.name] = o ? Object.assign({}, o, r, {
785
- options: Object.assign({}, o.options, r.options),
786
- data: Object.assign({}, o.data, r.data)
787
- }) : r, n;
788
- }, {});
789
- return Object.keys(t).map(function(n) {
790
- return t[n];
791
- });
792
- }
793
- var zt = {
794
- placement: "bottom",
795
- modifiers: [],
796
- strategy: "absolute"
797
- };
798
- function Yt() {
799
- for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
800
- t[n] = arguments[n];
801
- return !t.some(function(r) {
802
- return !(r && typeof r.getBoundingClientRect == "function");
803
- });
804
- }
805
- function Fr(e) {
806
- e === void 0 && (e = {});
807
- var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, o = t.defaultOptions, a = o === void 0 ? zt : o;
808
- return function(p, s, l) {
809
- l === void 0 && (l = a);
810
- var f = {
811
- placement: "bottom",
812
- orderedModifiers: [],
813
- options: Object.assign({}, zt, a),
814
- modifiersData: {},
815
- elements: {
816
- reference: p,
817
- popper: s
818
- },
819
- attributes: {},
820
- styles: {}
821
- }, b = [], E = !1, m = {
822
- state: f,
823
- setOptions: function(x) {
824
- var L = typeof x == "function" ? x(f.options) : x;
825
- y(), f.options = Object.assign({}, a, f.options, L), f.scrollParents = {
826
- reference: ye(p) ? Be(p) : p.contextElement ? Be(p.contextElement) : [],
827
- popper: Be(s)
828
- };
829
- var N = Wr(Ur([].concat(r, f.options.modifiers)));
830
- return f.orderedModifiers = N.filter(function(i) {
831
- return i.enabled;
832
- }), w(), m.update();
833
- },
834
- // Sync update – it will always be executed, even if not necessary. This
835
- // is useful for low frequency updates where sync behavior simplifies the
836
- // logic.
837
- // For high frequency updates (e.g. `resize` and `scroll` events), always
838
- // prefer the async Popper#update method
839
- forceUpdate: function() {
840
- if (!E) {
841
- var x = f.elements, L = x.reference, N = x.popper;
842
- if (Yt(L, N)) {
843
- f.rects = {
844
- reference: Ir(L, Fe(N), f.options.strategy === "fixed"),
845
- popper: Pt(N)
846
- }, f.reset = !1, f.placement = f.options.placement, f.orderedModifiers.forEach(function(C) {
847
- return f.modifiersData[C.name] = Object.assign({}, C.data);
848
- });
849
- for (var i = 0; i < f.orderedModifiers.length; i++) {
850
- if (f.reset === !0) {
851
- f.reset = !1, i = -1;
852
- continue;
853
- }
854
- var T = f.orderedModifiers[i], d = T.fn, P = T.options, k = P === void 0 ? {} : P, D = T.name;
855
- typeof d == "function" && (f = d({
856
- state: f,
857
- options: k,
858
- name: D,
859
- instance: m
860
- }) || f);
861
- }
862
- }
863
- }
864
- },
865
- // Async and optimistically optimized update – it will not be executed if
866
- // not necessary (debounced to run at most once-per-tick)
867
- update: _r(function() {
868
- return new Promise(function(h) {
869
- m.forceUpdate(), h(f);
870
- });
871
- }),
872
- destroy: function() {
873
- y(), E = !0;
874
- }
875
- };
876
- if (!Yt(p, s))
877
- return m;
878
- m.setOptions(l).then(function(h) {
879
- !E && l.onFirstUpdate && l.onFirstUpdate(h);
880
- });
881
- function w() {
882
- f.orderedModifiers.forEach(function(h) {
883
- var x = h.name, L = h.options, N = L === void 0 ? {} : L, i = h.effect;
884
- if (typeof i == "function") {
885
- var T = i({
886
- state: f,
887
- name: x,
888
- instance: m,
889
- options: N
890
- }), d = function() {
891
- };
892
- b.push(T || d);
893
- }
894
- });
895
- }
896
- function y() {
897
- b.forEach(function(h) {
898
- return h();
899
- }), b = [];
900
- }
901
- return m;
902
- };
903
- }
904
- var qr = [vr, Nr, lr, pn, jr, Ar, $r, ur, Cr], zr = /* @__PURE__ */ Fr({
905
- defaultModifiers: qr
906
- }), Yr = "tippy-box", yn = "tippy-content", Xr = "tippy-backdrop", bn = "tippy-arrow", wn = "tippy-svg-arrow", he = {
907
- passive: !0,
908
- capture: !0
909
- }, On = function() {
910
- return document.body;
911
- };
912
- function Gr(e, t) {
913
- return {}.hasOwnProperty.call(e, t);
914
- }
915
- function mt(e, t, n) {
916
- if (Array.isArray(e)) {
917
- var r = e[t];
918
- return r ?? (Array.isArray(n) ? n[t] : n);
919
- }
920
- return e;
921
- }
922
- function kt(e, t) {
923
- var n = {}.toString.call(e);
924
- return n.indexOf("[object") === 0 && n.indexOf(t + "]") > -1;
925
- }
926
- function En(e, t) {
927
- return typeof e == "function" ? e.apply(void 0, t) : e;
928
- }
929
- function Xt(e, t) {
930
- if (t === 0)
931
- return e;
932
- var n;
933
- return function(r) {
934
- clearTimeout(n), n = setTimeout(function() {
935
- e(r);
936
- }, t);
937
- };
938
- }
939
- function Kr(e, t) {
940
- var n = Object.assign({}, e);
941
- return t.forEach(function(r) {
942
- delete n[r];
943
- }), n;
944
- }
945
- function Jr(e) {
946
- return e.split(/\s+/).filter(Boolean);
947
- }
948
- function Ae(e) {
949
- return [].concat(e);
950
- }
951
- function Gt(e, t) {
952
- e.indexOf(t) === -1 && e.push(t);
953
- }
954
- function Qr(e) {
955
- return e.filter(function(t, n) {
956
- return e.indexOf(t) === n;
957
- });
958
- }
959
- function Zr(e) {
960
- return e.split("-")[0];
961
- }
962
- function pt(e) {
963
- return [].slice.call(e);
964
- }
965
- function Kt(e) {
966
- return Object.keys(e).reduce(function(t, n) {
967
- return e[n] !== void 0 && (t[n] = e[n]), t;
968
- }, {});
969
- }
970
- function Ve() {
971
- return document.createElement("div");
972
- }
973
- function We(e) {
974
- return ["Element", "Fragment"].some(function(t) {
975
- return kt(e, t);
976
- });
977
- }
978
- function ei(e) {
979
- return kt(e, "NodeList");
980
- }
981
- function ti(e) {
982
- return kt(e, "MouseEvent");
983
- }
984
- function ni(e) {
985
- return !!(e && e._tippy && e._tippy.reference === e);
986
- }
987
- function ri(e) {
988
- return We(e) ? [e] : ei(e) ? pt(e) : Array.isArray(e) ? e : pt(document.querySelectorAll(e));
989
- }
990
- function ht(e, t) {
991
- e.forEach(function(n) {
992
- n && (n.style.transitionDuration = t + "ms");
993
- });
994
- }
995
- function Jt(e, t) {
996
- e.forEach(function(n) {
997
- n && n.setAttribute("data-state", t);
998
- });
999
- }
1000
- function ii(e) {
1001
- var t, n = Ae(e), r = n[0];
1002
- return r != null && (t = r.ownerDocument) != null && t.body ? r.ownerDocument : document;
1003
- }
1004
- function oi(e, t) {
1005
- var n = t.clientX, r = t.clientY;
1006
- return e.every(function(o) {
1007
- var a = o.popperRect, c = o.popperState, p = o.props, s = p.interactiveBorder, l = Zr(c.placement), f = c.modifiersData.offset;
1008
- if (!f)
1009
- return !0;
1010
- var b = l === "bottom" ? f.top.y : 0, E = l === "top" ? f.bottom.y : 0, m = l === "right" ? f.left.x : 0, w = l === "left" ? f.right.x : 0, y = a.top - r + b > s, h = r - a.bottom - E > s, x = a.left - n + m > s, L = n - a.right - w > s;
1011
- return y || h || x || L;
1012
- });
1013
- }
1014
- function gt(e, t, n) {
1015
- var r = t + "EventListener";
1016
- ["transitionend", "webkitTransitionEnd"].forEach(function(o) {
1017
- e[r](o, n);
1018
- });
1019
- }
1020
- function Qt(e, t) {
1021
- for (var n = t; n; ) {
1022
- var r;
1023
- if (e.contains(n))
1024
- return !0;
1025
- n = n.getRootNode == null || (r = n.getRootNode()) == null ? void 0 : r.host;
1026
- }
1027
- return !1;
1028
- }
1029
- var Z = {
1030
- isTouch: !1
1031
- }, Zt = 0;
1032
- function ai() {
1033
- Z.isTouch || (Z.isTouch = !0, window.performance && document.addEventListener("mousemove", xn));
1034
- }
1035
- function xn() {
1036
- var e = performance.now();
1037
- e - Zt < 20 && (Z.isTouch = !1, document.removeEventListener("mousemove", xn)), Zt = e;
1038
- }
1039
- function si() {
1040
- var e = document.activeElement;
1041
- if (ni(e)) {
1042
- var t = e._tippy;
1043
- e.blur && !t.state.isVisible && e.blur();
1044
- }
1045
- }
1046
- function ui() {
1047
- document.addEventListener("touchstart", ai, he), window.addEventListener("blur", si);
1048
- }
1049
- var ci = typeof window < "u" && typeof document < "u", pi = ci ? (
1050
- // @ts-ignore
1051
- !!window.msCrypto
1052
- ) : !1;
1053
- function Te(e) {
1054
- var t = e === "destroy" ? "n already-" : " ";
1055
- return [e + "() was called on a" + t + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
1056
- }
1057
- function en(e) {
1058
- var t = /[ \t]{2,}/g, n = /^[ \t]*/gm;
1059
- return e.replace(t, " ").replace(n, "").trim();
1060
- }
1061
- function fi(e) {
1062
- return en(`
1063
- %ctippy.js
1064
-
1065
- %c` + en(e) + `
1066
-
1067
- %c👷‍ This is a development-only message. It will be removed in production.
1068
- `);
1069
- }
1070
- function Tn(e) {
1071
- return [
1072
- fi(e),
1073
- // title
1074
- "color: #00C584; font-size: 1.3em; font-weight: bold;",
1075
- // message
1076
- "line-height: 1.5",
1077
- // footer
1078
- "color: #a6a095;"
1079
- ];
1080
- }
1081
- var _e;
1082
- process.env.NODE_ENV !== "production" && li();
1083
- function li() {
1084
- _e = /* @__PURE__ */ new Set();
1085
- }
1086
- function ae(e, t) {
1087
- if (e && !_e.has(t)) {
1088
- var n;
1089
- _e.add(t), (n = console).warn.apply(n, Tn(t));
1090
- }
1091
- }
1092
- function At(e, t) {
1093
- if (e && !_e.has(t)) {
1094
- var n;
1095
- _e.add(t), (n = console).error.apply(n, Tn(t));
1096
- }
1097
- }
1098
- function di(e) {
1099
- var t = !e, n = Object.prototype.toString.call(e) === "[object Object]" && !e.addEventListener;
1100
- At(t, ["tippy() was passed", "`" + String(e) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), At(n, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
1101
- }
1102
- var An = {
1103
- animateFill: !1,
1104
- followCursor: !1,
1105
- inlinePositioning: !1,
1106
- sticky: !1
1107
- }, vi = {
1108
- allowHTML: !1,
1109
- animation: "fade",
1110
- arrow: !0,
1111
- content: "",
1112
- inertia: !1,
1113
- maxWidth: 350,
1114
- role: "tooltip",
1115
- theme: "",
1116
- zIndex: 9999
1117
- }, q = Object.assign({
1118
- appendTo: On,
1119
- aria: {
1120
- content: "auto",
1121
- expanded: "auto"
1122
- },
1123
- delay: 0,
1124
- duration: [300, 250],
1125
- getReferenceClientRect: null,
1126
- hideOnClick: !0,
1127
- ignoreAttributes: !1,
1128
- interactive: !1,
1129
- interactiveBorder: 2,
1130
- interactiveDebounce: 0,
1131
- moveTransition: "",
1132
- offset: [0, 10],
1133
- onAfterUpdate: function() {
1134
- },
1135
- onBeforeUpdate: function() {
1136
- },
1137
- onCreate: function() {
1138
- },
1139
- onDestroy: function() {
1140
- },
1141
- onHidden: function() {
1142
- },
1143
- onHide: function() {
1144
- },
1145
- onMount: function() {
1146
- },
1147
- onShow: function() {
1148
- },
1149
- onShown: function() {
1150
- },
1151
- onTrigger: function() {
1152
- },
1153
- onUntrigger: function() {
1154
- },
1155
- onClickOutside: function() {
1156
- },
1157
- placement: "top",
1158
- plugins: [],
1159
- popperOptions: {},
1160
- render: null,
1161
- showOnCreate: !1,
1162
- touch: !0,
1163
- trigger: "mouseenter focus",
1164
- triggerTarget: null
1165
- }, An, vi), mi = Object.keys(q), hi = function(t) {
1166
- process.env.NODE_ENV !== "production" && Cn(t, []);
1167
- var n = Object.keys(t);
1168
- n.forEach(function(r) {
1169
- q[r] = t[r];
1170
- });
1171
- };
1172
- function Dn(e) {
1173
- var t = e.plugins || [], n = t.reduce(function(r, o) {
1174
- var a = o.name, c = o.defaultValue;
1175
- if (a) {
1176
- var p;
1177
- r[a] = e[a] !== void 0 ? e[a] : (p = q[a]) != null ? p : c;
1178
- }
1179
- return r;
1180
- }, {});
1181
- return Object.assign({}, e, n);
1182
- }
1183
- function gi(e, t) {
1184
- var n = t ? Object.keys(Dn(Object.assign({}, q, {
1185
- plugins: t
1186
- }))) : mi, r = n.reduce(function(o, a) {
1187
- var c = (e.getAttribute("data-tippy-" + a) || "").trim();
1188
- if (!c)
1189
- return o;
1190
- if (a === "content")
1191
- o[a] = c;
1192
- else
1193
- try {
1194
- o[a] = JSON.parse(c);
1195
- } catch {
1196
- o[a] = c;
1197
- }
1198
- return o;
1199
- }, {});
1200
- return r;
1201
- }
1202
- function tn(e, t) {
1203
- var n = Object.assign({}, t, {
1204
- content: En(t.content, [e])
1205
- }, t.ignoreAttributes ? {} : gi(e, t.plugins));
1206
- return n.aria = Object.assign({}, q.aria, n.aria), n.aria = {
1207
- expanded: n.aria.expanded === "auto" ? t.interactive : n.aria.expanded,
1208
- content: n.aria.content === "auto" ? t.interactive ? null : "describedby" : n.aria.content
1209
- }, n;
1210
- }
1211
- function Cn(e, t) {
1212
- e === void 0 && (e = {}), t === void 0 && (t = []);
1213
- var n = Object.keys(e);
1214
- n.forEach(function(r) {
1215
- var o = Kr(q, Object.keys(An)), a = !Gr(o, r);
1216
- a && (a = t.filter(function(c) {
1217
- return c.name === r;
1218
- }).length === 0), ae(a, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
1219
-
1220
- `, `All props: https://atomiks.github.io/tippyjs/v6/all-props/
1221
- `, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
1222
- });
1223
- }
1224
- var yi = function() {
1225
- return "innerHTML";
1226
- };
1227
- function Dt(e, t) {
1228
- e[yi()] = t;
1229
- }
1230
- function nn(e) {
1231
- var t = Ve();
1232
- return e === !0 ? t.className = bn : (t.className = wn, We(e) ? t.appendChild(e) : Dt(t, e)), t;
1233
- }
1234
- function rn(e, t) {
1235
- We(t.content) ? (Dt(e, ""), e.appendChild(t.content)) : typeof t.content != "function" && (t.allowHTML ? Dt(e, t.content) : e.textContent = t.content);
1236
- }
1237
- function Ct(e) {
1238
- var t = e.firstElementChild, n = pt(t.children);
1239
- return {
1240
- box: t,
1241
- content: n.find(function(r) {
1242
- return r.classList.contains(yn);
1243
- }),
1244
- arrow: n.find(function(r) {
1245
- return r.classList.contains(bn) || r.classList.contains(wn);
1246
- }),
1247
- backdrop: n.find(function(r) {
1248
- return r.classList.contains(Xr);
1249
- })
1250
- };
1251
- }
1252
- function Sn(e) {
1253
- var t = Ve(), n = Ve();
1254
- n.className = Yr, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
1255
- var r = Ve();
1256
- r.className = yn, r.setAttribute("data-state", "hidden"), rn(r, e.props), t.appendChild(n), n.appendChild(r), o(e.props, e.props);
1257
- function o(a, c) {
1258
- var p = Ct(t), s = p.box, l = p.content, f = p.arrow;
1259
- c.theme ? s.setAttribute("data-theme", c.theme) : s.removeAttribute("data-theme"), typeof c.animation == "string" ? s.setAttribute("data-animation", c.animation) : s.removeAttribute("data-animation"), c.inertia ? s.setAttribute("data-inertia", "") : s.removeAttribute("data-inertia"), s.style.maxWidth = typeof c.maxWidth == "number" ? c.maxWidth + "px" : c.maxWidth, c.role ? s.setAttribute("role", c.role) : s.removeAttribute("role"), (a.content !== c.content || a.allowHTML !== c.allowHTML) && rn(l, e.props), c.arrow ? f ? a.arrow !== c.arrow && (s.removeChild(f), s.appendChild(nn(c.arrow))) : s.appendChild(nn(c.arrow)) : f && s.removeChild(f);
1260
- }
1261
- return {
1262
- popper: t,
1263
- onUpdate: o
1264
- };
1265
- }
1266
- Sn.$$tippy = !0;
1267
- var bi = 1, ot = [], yt = [];
1268
- function wi(e, t) {
1269
- var n = tn(e, Object.assign({}, q, Dn(Kt(t)))), r, o, a, c = !1, p = !1, s = !1, l = !1, f, b, E, m = [], w = Xt(Ye, n.interactiveDebounce), y, h = bi++, x = null, L = Qr(n.plugins), N = {
1270
- // Is the instance currently enabled?
1271
- isEnabled: !0,
1272
- // Is the tippy currently showing and not transitioning out?
1273
- isVisible: !1,
1274
- // Has the instance been destroyed?
1275
- isDestroyed: !1,
1276
- // Is the tippy currently mounted to the DOM?
1277
- isMounted: !1,
1278
- // Has the tippy finished transitioning in?
1279
- isShown: !1
1280
- }, i = {
1281
- // properties
1282
- id: h,
1283
- reference: e,
1284
- popper: Ve(),
1285
- popperInstance: x,
1286
- props: n,
1287
- state: N,
1288
- plugins: L,
1289
- // methods
1290
- clearDelayTimeouts: Qe,
1291
- setProps: Ze,
1292
- setContent: et,
1293
- show: Nn,
1294
- hide: Rn,
1295
- hideWithInteractivity: Mn,
1296
- enable: Me,
1297
- disable: Je,
1298
- unmount: $n,
1299
- destroy: kn
1300
- };
1301
- if (!n.render)
1302
- return process.env.NODE_ENV !== "production" && At(!0, "render() function has not been supplied."), i;
1303
- var T = n.render(i), d = T.popper, P = T.onUpdate;
1304
- d.setAttribute("data-tippy-root", ""), d.id = "tippy-" + i.id, i.popper = d, e._tippy = i, d._tippy = i;
1305
- var k = L.map(function(u) {
1306
- return u.fn(i);
1307
- }), D = e.hasAttribute("aria-expanded");
1308
- return Oe(), H(), V(), B("onCreate", [i]), n.showOnCreate && Re(), d.addEventListener("mouseenter", function() {
1309
- i.props.interactive && i.state.isVisible && i.clearDelayTimeouts();
1310
- }), d.addEventListener("mouseleave", function() {
1311
- i.props.interactive && i.props.trigger.indexOf("mouseenter") >= 0 && j().addEventListener("mousemove", w);
1312
- }), i;
1313
- function C() {
1314
- var u = i.props.touch;
1315
- return Array.isArray(u) ? u : [u, 0];
1316
- }
1317
- function M() {
1318
- return C()[0] === "hold";
1319
- }
1320
- function $() {
1321
- var u;
1322
- return !!((u = i.props.render) != null && u.$$tippy);
1323
- }
1324
- function R() {
1325
- return y || e;
1326
- }
1327
- function j() {
1328
- var u = R().parentNode;
1329
- return u ? ii(u) : document;
1330
- }
1331
- function O() {
1332
- return Ct(d);
1333
- }
1334
- function I(u) {
1335
- return i.state.isMounted && !i.state.isVisible || Z.isTouch || f && f.type === "focus" ? 0 : mt(i.props.delay, u ? 0 : 1, q.delay);
1336
- }
1337
- function V(u) {
1338
- u === void 0 && (u = !1), d.style.pointerEvents = i.props.interactive && !u ? "" : "none", d.style.zIndex = "" + i.props.zIndex;
1339
- }
1340
- function B(u, v, g) {
1341
- if (g === void 0 && (g = !0), k.forEach(function(A) {
1342
- A[u] && A[u].apply(A, v);
1343
- }), g) {
1344
- var S;
1345
- (S = i.props)[u].apply(S, v);
1346
- }
1347
- }
1348
- function W() {
1349
- var u = i.props.aria;
1350
- if (u.content) {
1351
- var v = "aria-" + u.content, g = d.id, S = Ae(i.props.triggerTarget || e);
1352
- S.forEach(function(A) {
1353
- var _ = A.getAttribute(v);
1354
- if (i.state.isVisible)
1355
- A.setAttribute(v, _ ? _ + " " + g : g);
1356
- else {
1357
- var Y = _ && _.replace(g, "").trim();
1358
- Y ? A.setAttribute(v, Y) : A.removeAttribute(v);
1359
- }
1360
- });
1361
- }
1362
- }
1363
- function H() {
1364
- if (!(D || !i.props.aria.expanded)) {
1365
- var u = Ae(i.props.triggerTarget || e);
1366
- u.forEach(function(v) {
1367
- i.props.interactive ? v.setAttribute("aria-expanded", i.state.isVisible && v === R() ? "true" : "false") : v.removeAttribute("aria-expanded");
1368
- });
1369
- }
1370
- }
1371
- function fe() {
1372
- j().removeEventListener("mousemove", w), ot = ot.filter(function(u) {
1373
- return u !== w;
1374
- });
1375
- }
1376
- function Q(u) {
1377
- if (!(Z.isTouch && (s || u.type === "mousedown"))) {
1378
- var v = u.composedPath && u.composedPath()[0] || u.target;
1379
- if (!(i.props.interactive && Qt(d, v))) {
1380
- if (Ae(i.props.triggerTarget || e).some(function(g) {
1381
- return Qt(g, v);
1382
- })) {
1383
- if (Z.isTouch || i.state.isVisible && i.props.trigger.indexOf("click") >= 0)
1384
- return;
1385
- } else
1386
- B("onClickOutside", [i, u]);
1387
- i.props.hideOnClick === !0 && (i.clearDelayTimeouts(), i.hide(), p = !0, setTimeout(function() {
1388
- p = !1;
1389
- }), i.state.isMounted || re());
1390
- }
1391
- }
1392
- }
1393
- function le() {
1394
- s = !0;
1395
- }
1396
- function ne() {
1397
- s = !1;
1398
- }
1399
- function J() {
1400
- var u = j();
1401
- u.addEventListener("mousedown", Q, !0), u.addEventListener("touchend", Q, he), u.addEventListener("touchstart", ne, he), u.addEventListener("touchmove", le, he);
1402
- }
1403
- function re() {
1404
- var u = j();
1405
- u.removeEventListener("mousedown", Q, !0), u.removeEventListener("touchend", Q, he), u.removeEventListener("touchstart", ne, he), u.removeEventListener("touchmove", le, he);
1406
- }
1407
- function be(u, v) {
1408
- we(u, function() {
1409
- !i.state.isVisible && d.parentNode && d.parentNode.contains(d) && v();
1410
- });
1411
- }
1412
- function ie(u, v) {
1413
- we(u, v);
1414
- }
1415
- function we(u, v) {
1416
- var g = O().box;
1417
- function S(A) {
1418
- A.target === g && (gt(g, "remove", S), v());
1419
- }
1420
- if (u === 0)
1421
- return v();
1422
- gt(g, "remove", b), gt(g, "add", S), b = S;
1423
- }
1424
- function ue(u, v, g) {
1425
- g === void 0 && (g = !1);
1426
- var S = Ae(i.props.triggerTarget || e);
1427
- S.forEach(function(A) {
1428
- A.addEventListener(u, v, g), m.push({
1429
- node: A,
1430
- eventType: u,
1431
- handler: v,
1432
- options: g
1433
- });
1434
- });
1435
- }
1436
- function Oe() {
1437
- M() && (ue("touchstart", je, {
1438
- passive: !0
1439
- }), ue("touchend", Xe, {
1440
- passive: !0
1441
- })), Jr(i.props.trigger).forEach(function(u) {
1442
- if (u !== "manual")
1443
- switch (ue(u, je), u) {
1444
- case "mouseenter":
1445
- ue("mouseleave", Xe);
1446
- break;
1447
- case "focus":
1448
- ue(pi ? "focusout" : "blur", Pe);
1449
- break;
1450
- case "focusin":
1451
- ue("focusout", Pe);
1452
- break;
1453
- }
1454
- });
1455
- }
1456
- function ze() {
1457
- m.forEach(function(u) {
1458
- var v = u.node, g = u.eventType, S = u.handler, A = u.options;
1459
- v.removeEventListener(g, S, A);
1460
- }), m = [];
1461
- }
1462
- function je(u) {
1463
- var v, g = !1;
1464
- if (!(!i.state.isEnabled || Ne(u) || p)) {
1465
- var S = ((v = f) == null ? void 0 : v.type) === "focus";
1466
- f = u, y = u.currentTarget, H(), !i.state.isVisible && ti(u) && ot.forEach(function(A) {
1467
- return A(u);
1468
- }), u.type === "click" && (i.props.trigger.indexOf("mouseenter") < 0 || c) && i.props.hideOnClick !== !1 && i.state.isVisible ? g = !0 : Re(u), u.type === "click" && (c = !g), g && !S && de(u);
1469
- }
1470
- }
1471
- function Ye(u) {
1472
- var v = u.target, g = R().contains(v) || d.contains(v);
1473
- if (!(u.type === "mousemove" && g)) {
1474
- var S = ce().concat(d).map(function(A) {
1475
- var _, Y = A._tippy, Ee = (_ = Y.popperInstance) == null ? void 0 : _.state;
1476
- return Ee ? {
1477
- popperRect: A.getBoundingClientRect(),
1478
- popperState: Ee,
1479
- props: n
1480
- } : null;
1481
- }).filter(Boolean);
1482
- oi(S, u) && (fe(), de(u));
1483
- }
1484
- }
1485
- function Xe(u) {
1486
- var v = Ne(u) || i.props.trigger.indexOf("click") >= 0 && c;
1487
- if (!v) {
1488
- if (i.props.interactive) {
1489
- i.hideWithInteractivity(u);
1490
- return;
1491
- }
1492
- de(u);
1493
- }
1494
- }
1495
- function Pe(u) {
1496
- i.props.trigger.indexOf("focusin") < 0 && u.target !== R() || i.props.interactive && u.relatedTarget && d.contains(u.relatedTarget) || de(u);
1497
- }
1498
- function Ne(u) {
1499
- return Z.isTouch ? M() !== u.type.indexOf("touch") >= 0 : !1;
1500
- }
1501
- function Ge() {
1502
- Ke();
1503
- var u = i.props, v = u.popperOptions, g = u.placement, S = u.offset, A = u.getReferenceClientRect, _ = u.moveTransition, Y = $() ? Ct(d).arrow : null, Ee = A ? {
1504
- getBoundingClientRect: A,
1505
- contextElement: A.contextElement || R()
1506
- } : e, Bt = {
1507
- name: "$$tippy",
1508
- enabled: !0,
1509
- phase: "beforeWrite",
1510
- requires: ["computeStyles"],
1511
- fn: function(tt) {
1512
- var xe = tt.state;
1513
- if ($()) {
1514
- var Bn = O(), dt = Bn.box;
1515
- ["placement", "reference-hidden", "escaped"].forEach(function(nt) {
1516
- nt === "placement" ? dt.setAttribute("data-placement", xe.placement) : xe.attributes.popper["data-popper-" + nt] ? dt.setAttribute("data-" + nt, "") : dt.removeAttribute("data-" + nt);
1517
- }), xe.attributes.popper = {};
1518
- }
1519
- }
1520
- }, ve = [{
1521
- name: "offset",
1522
- options: {
1523
- offset: S
1524
- }
1525
- }, {
1526
- name: "preventOverflow",
1527
- options: {
1528
- padding: {
1529
- top: 2,
1530
- bottom: 2,
1531
- left: 5,
1532
- right: 5
1533
- }
1534
- }
1535
- }, {
1536
- name: "flip",
1537
- options: {
1538
- padding: 5
1539
- }
1540
- }, {
1541
- name: "computeStyles",
1542
- options: {
1543
- adaptive: !_
1544
- }
1545
- }, Bt];
1546
- $() && Y && ve.push({
1547
- name: "arrow",
1548
- options: {
1549
- element: Y,
1550
- padding: 3
1551
- }
1552
- }), ve.push.apply(ve, v?.modifiers || []), i.popperInstance = zr(Ee, d, Object.assign({}, v, {
1553
- placement: g,
1554
- onFirstUpdate: E,
1555
- modifiers: ve
1556
- }));
1557
- }
1558
- function Ke() {
1559
- i.popperInstance && (i.popperInstance.destroy(), i.popperInstance = null);
1560
- }
1561
- function oe() {
1562
- var u = i.props.appendTo, v, g = R();
1563
- i.props.interactive && u === On || u === "parent" ? v = g.parentNode : v = En(u, [g]), v.contains(d) || v.appendChild(d), i.state.isMounted = !0, Ge(), process.env.NODE_ENV !== "production" && ae(i.props.interactive && u === q.appendTo && g.nextElementSibling !== d, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
1564
-
1565
- `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
1566
-
1567
- `, "Specifying `appendTo: document.body` silences this warning, but it", "assumes you are using a focus management solution to handle", "keyboard navigation.", `
1568
-
1569
- `, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
1570
- }
1571
- function ce() {
1572
- return pt(d.querySelectorAll("[data-tippy-root]"));
1573
- }
1574
- function Re(u) {
1575
- i.clearDelayTimeouts(), u && B("onTrigger", [i, u]), J();
1576
- var v = I(!0), g = C(), S = g[0], A = g[1];
1577
- Z.isTouch && S === "hold" && A && (v = A), v ? r = setTimeout(function() {
1578
- i.show();
1579
- }, v) : i.show();
1580
- }
1581
- function de(u) {
1582
- if (i.clearDelayTimeouts(), B("onUntrigger", [i, u]), !i.state.isVisible) {
1583
- re();
1584
- return;
1585
- }
1586
- if (!(i.props.trigger.indexOf("mouseenter") >= 0 && i.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(u.type) >= 0 && c)) {
1587
- var v = I(!1);
1588
- v ? o = setTimeout(function() {
1589
- i.state.isVisible && i.hide();
1590
- }, v) : a = requestAnimationFrame(function() {
1591
- i.hide();
1592
- });
1593
- }
1594
- }
1595
- function Me() {
1596
- i.state.isEnabled = !0;
1597
- }
1598
- function Je() {
1599
- i.hide(), i.state.isEnabled = !1;
1600
- }
1601
- function Qe() {
1602
- clearTimeout(r), clearTimeout(o), cancelAnimationFrame(a);
1603
- }
1604
- function Ze(u) {
1605
- if (process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Te("setProps")), !i.state.isDestroyed) {
1606
- B("onBeforeUpdate", [i, u]), ze();
1607
- var v = i.props, g = tn(e, Object.assign({}, v, Kt(u), {
1608
- ignoreAttributes: !0
1609
- }));
1610
- i.props = g, Oe(), v.interactiveDebounce !== g.interactiveDebounce && (fe(), w = Xt(Ye, g.interactiveDebounce)), v.triggerTarget && !g.triggerTarget ? Ae(v.triggerTarget).forEach(function(S) {
1611
- S.removeAttribute("aria-expanded");
1612
- }) : g.triggerTarget && e.removeAttribute("aria-expanded"), H(), V(), P && P(v, g), i.popperInstance && (Ge(), ce().forEach(function(S) {
1613
- requestAnimationFrame(S._tippy.popperInstance.forceUpdate);
1614
- })), B("onAfterUpdate", [i, u]);
1615
- }
1616
- }
1617
- function et(u) {
1618
- i.setProps({
1619
- content: u
1620
- });
1621
- }
1622
- function Nn() {
1623
- process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Te("show"));
1624
- var u = i.state.isVisible, v = i.state.isDestroyed, g = !i.state.isEnabled, S = Z.isTouch && !i.props.touch, A = mt(i.props.duration, 0, q.duration);
1625
- if (!(u || v || g || S) && !R().hasAttribute("disabled") && (B("onShow", [i], !1), i.props.onShow(i) !== !1)) {
1626
- if (i.state.isVisible = !0, $() && (d.style.visibility = "visible"), V(), J(), i.state.isMounted || (d.style.transition = "none"), $()) {
1627
- var _ = O(), Y = _.box, Ee = _.content;
1628
- ht([Y, Ee], 0);
1629
- }
1630
- E = function() {
1631
- var ve;
1632
- if (!(!i.state.isVisible || l)) {
1633
- if (l = !0, d.offsetHeight, d.style.transition = i.props.moveTransition, $() && i.props.animation) {
1634
- var lt = O(), tt = lt.box, xe = lt.content;
1635
- ht([tt, xe], A), Jt([tt, xe], "visible");
1636
- }
1637
- W(), H(), Gt(yt, i), (ve = i.popperInstance) == null || ve.forceUpdate(), B("onMount", [i]), i.props.animation && $() && ie(A, function() {
1638
- i.state.isShown = !0, B("onShown", [i]);
1639
- });
1640
- }
1641
- }, oe();
1642
- }
1643
- }
1644
- function Rn() {
1645
- process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Te("hide"));
1646
- var u = !i.state.isVisible, v = i.state.isDestroyed, g = !i.state.isEnabled, S = mt(i.props.duration, 1, q.duration);
1647
- if (!(u || v || g) && (B("onHide", [i], !1), i.props.onHide(i) !== !1)) {
1648
- if (i.state.isVisible = !1, i.state.isShown = !1, l = !1, c = !1, $() && (d.style.visibility = "hidden"), fe(), re(), V(!0), $()) {
1649
- var A = O(), _ = A.box, Y = A.content;
1650
- i.props.animation && (ht([_, Y], S), Jt([_, Y], "hidden"));
1651
- }
1652
- W(), H(), i.props.animation ? $() && be(S, i.unmount) : i.unmount();
1653
- }
1654
- }
1655
- function Mn(u) {
1656
- process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Te("hideWithInteractivity")), j().addEventListener("mousemove", w), Gt(ot, w), w(u);
1657
- }
1658
- function $n() {
1659
- process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Te("unmount")), i.state.isVisible && i.hide(), i.state.isMounted && (Ke(), ce().forEach(function(u) {
1660
- u._tippy.unmount();
1661
- }), d.parentNode && d.parentNode.removeChild(d), yt = yt.filter(function(u) {
1662
- return u !== i;
1663
- }), i.state.isMounted = !1, B("onHidden", [i]));
1664
- }
1665
- function kn() {
1666
- process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Te("destroy")), !i.state.isDestroyed && (i.clearDelayTimeouts(), i.unmount(), ze(), delete e._tippy, i.state.isDestroyed = !0, B("onDestroy", [i]));
1667
- }
1668
- }
1669
- function qe(e, t) {
1670
- t === void 0 && (t = {});
1671
- var n = q.plugins.concat(t.plugins || []);
1672
- process.env.NODE_ENV !== "production" && (di(e), Cn(t, n)), ui();
1673
- var r = Object.assign({}, t, {
1674
- plugins: n
1675
- }), o = ri(e);
1676
- if (process.env.NODE_ENV !== "production") {
1677
- var a = We(r.content), c = o.length > 1;
1678
- ae(a && c, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
1679
-
1680
- `, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
1681
-
1682
- `, `1) content: element.innerHTML
1683
- `, "2) content: () => element.cloneNode(true)"].join(" "));
1684
- }
1685
- var p = o.reduce(function(s, l) {
1686
- var f = l && wi(l, r);
1687
- return f && s.push(f), s;
1688
- }, []);
1689
- return We(e) ? p[0] : p;
1690
- }
1691
- qe.defaultProps = q;
1692
- qe.setDefaultProps = hi;
1693
- qe.currentInput = Z;
1694
- Object.assign({}, pn, {
1695
- effect: function(t) {
1696
- var n = t.state, r = {
1697
- popper: {
1698
- position: n.options.strategy,
1699
- left: "0",
1700
- top: "0",
1701
- margin: "0"
1702
- },
1703
- arrow: {
1704
- position: "absolute"
1705
- },
1706
- reference: {}
1707
- };
1708
- Object.assign(n.elements.popper.style, r.popper), n.styles = r, n.elements.arrow && Object.assign(n.elements.arrow.style, r.arrow);
1709
- }
1710
- });
1711
- qe.setDefaultProps({
1712
- render: Sn
1713
- });
1714
- function Ln(e, t) {
1715
- if (e == null) return {};
1716
- var n = {}, r = Object.keys(e), o, a;
1717
- for (a = 0; a < r.length; a++)
1718
- o = r[a], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
1719
- return n;
1720
- }
1721
- var jn = typeof window < "u" && typeof document < "u";
1722
- function St(e, t) {
1723
- e && (typeof e == "function" && e(t), {}.hasOwnProperty.call(e, "current") && (e.current = t));
1724
- }
1725
- function on() {
1726
- return jn && document.createElement("div");
1727
- }
1728
- function Oi(e) {
1729
- var t = {
1730
- "data-placement": e.placement
1731
- };
1732
- return e.referenceHidden && (t["data-reference-hidden"] = ""), e.escaped && (t["data-escaped"] = ""), t;
1733
- }
1734
- function Pn(e, t) {
1735
- if (e === t)
1736
- return !0;
1737
- if (typeof e == "object" && e != null && typeof t == "object" && t != null) {
1738
- if (Object.keys(e).length !== Object.keys(t).length)
1739
- return !1;
1740
- for (var n in e)
1741
- if (t.hasOwnProperty(n)) {
1742
- if (!Pn(e[n], t[n]))
1743
- return !1;
1744
- } else
1745
- return !1;
1746
- return !0;
1747
- } else
1748
- return !1;
1749
- }
1750
- function Ei(e) {
1751
- var t = [];
1752
- return e.forEach(function(n) {
1753
- t.find(function(r) {
1754
- return Pn(n, r);
1755
- }) || t.push(n);
1756
- }), t;
1757
- }
1758
- function xi(e, t) {
1759
- var n, r;
1760
- return Object.assign({}, t, {
1761
- popperOptions: Object.assign({}, e.popperOptions, t.popperOptions, {
1762
- modifiers: Ei([].concat(((n = e.popperOptions) == null ? void 0 : n.modifiers) || [], ((r = t.popperOptions) == null ? void 0 : r.modifiers) || []))
1763
- })
1764
- });
1765
- }
1766
- var bt = jn ? In : Ot;
1767
- function Ti(e) {
1768
- var t = Et();
1769
- return t.current || (t.current = typeof e == "function" ? e() : e), t.current;
1770
- }
1771
- function an(e, t, n) {
1772
- n.split(/\s+/).forEach(function(r) {
1773
- r && e.classList[t](r);
1774
- });
1775
- }
1776
- var Ai = {
1777
- name: "className",
1778
- defaultValue: "",
1779
- fn: function(t) {
1780
- var n = t.popper.firstElementChild, r = function() {
1781
- var p;
1782
- return !!((p = t.props.render) != null && p.$$tippy);
1783
- };
1784
- function o() {
1785
- if (t.props.className && !r()) {
1786
- process.env.NODE_ENV !== "production" && console.warn(["@tippyjs/react: Cannot use `className` prop in conjunction with", "`render` prop. Place the className on the element you are", "rendering."].join(" "));
1787
- return;
1788
- }
1789
- an(n, "add", t.props.className);
1790
- }
1791
- function a() {
1792
- r() && an(n, "remove", t.props.className);
1793
- }
1794
- return {
1795
- onCreate: o,
1796
- onBeforeUpdate: a,
1797
- onAfterUpdate: o
1798
- };
1799
- }
1800
- };
1801
- function Di(e) {
1802
- function t(n) {
1803
- var r = n.children, o = n.content, a = n.visible, c = n.singleton, p = n.render, s = n.reference, l = n.disabled, f = l === void 0 ? !1 : l, b = n.ignoreAttributes, E = b === void 0 ? !0 : b;
1804
- n.__source, n.__self;
1805
- var m = Ln(n, ["children", "content", "visible", "singleton", "render", "reference", "disabled", "ignoreAttributes", "__source", "__self"]), w = a !== void 0, y = c !== void 0, h = st(!1), x = h[0], L = h[1], N = st({}), i = N[0], T = N[1], d = st(), P = d[0], k = d[1], D = Ti(function() {
1806
- return {
1807
- container: on(),
1808
- renders: 1
1809
- };
1810
- }), C = Object.assign({
1811
- ignoreAttributes: E
1812
- }, m, {
1813
- content: D.container
1814
- });
1815
- w && (process.env.NODE_ENV !== "production" && ["trigger", "hideOnClick", "showOnCreate"].forEach(function(j) {
1816
- C[j] !== void 0 && console.warn(["@tippyjs/react: Cannot specify `" + j + "` prop in", "controlled mode (`visible` prop)"].join(" "));
1817
- }), C.trigger = "manual", C.hideOnClick = !1), y && (f = !0);
1818
- var M = C, $ = C.plugins || [];
1819
- p && (M = Object.assign({}, C, {
1820
- plugins: y && c.data != null ? [].concat($, [{
1821
- fn: function() {
1822
- return {
1823
- onTrigger: function(I, V) {
1824
- var B = c.data.children.find(function(W) {
1825
- var H = W.instance;
1826
- return H.reference === V.currentTarget;
1827
- });
1828
- I.state.$$activeSingletonInstance = B.instance, k(B.content);
1829
- }
1830
- };
1831
- }
1832
- }]) : $,
1833
- render: function() {
1834
- return {
1835
- popper: D.container
1836
- };
1837
- }
1838
- }));
1839
- var R = [s].concat(r ? [r.type] : []);
1840
- return bt(function() {
1841
- var j = s;
1842
- s && s.hasOwnProperty("current") && (j = s.current);
1843
- var O = e(j || D.ref || on(), Object.assign({}, M, {
1844
- plugins: [Ai].concat(C.plugins || [])
1845
- }));
1846
- return D.instance = O, f && O.disable(), a && O.show(), y && c.hook({
1847
- instance: O,
1848
- content: o,
1849
- props: M,
1850
- setSingletonContent: k
1851
- }), L(!0), function() {
1852
- O.destroy(), c?.cleanup(O);
1853
- };
1854
- }, R), bt(function() {
1855
- var j;
1856
- if (D.renders === 1) {
1857
- D.renders++;
1858
- return;
1859
- }
1860
- var O = D.instance;
1861
- O.setProps(xi(O.props, M)), (j = O.popperInstance) == null || j.forceUpdate(), f ? O.disable() : O.enable(), w && (a ? O.show() : O.hide()), y && c.hook({
1862
- instance: O,
1863
- content: o,
1864
- props: M,
1865
- setSingletonContent: k
1866
- });
1867
- }), bt(function() {
1868
- var j;
1869
- if (p) {
1870
- var O = D.instance;
1871
- O.setProps({
1872
- popperOptions: Object.assign({}, O.props.popperOptions, {
1873
- modifiers: [].concat((((j = O.props.popperOptions) == null ? void 0 : j.modifiers) || []).filter(function(I) {
1874
- var V = I.name;
1875
- return V !== "$$tippyReact";
1876
- }), [{
1877
- name: "$$tippyReact",
1878
- enabled: !0,
1879
- phase: "beforeWrite",
1880
- requires: ["computeStyles"],
1881
- fn: function(V) {
1882
- var B, W = V.state, H = (B = W.modifiersData) == null ? void 0 : B.hide;
1883
- (i.placement !== W.placement || i.referenceHidden !== H?.isReferenceHidden || i.escaped !== H?.hasPopperEscaped) && T({
1884
- placement: W.placement,
1885
- referenceHidden: H?.isReferenceHidden,
1886
- escaped: H?.hasPopperEscaped
1887
- }), W.attributes.popper = {};
1888
- }
1889
- }])
1890
- })
1891
- });
1892
- }
1893
- }, [i.placement, i.referenceHidden, i.escaped].concat(R)), /* @__PURE__ */ wt.createElement(wt.Fragment, null, r ? /* @__PURE__ */ sn(r, {
1894
- ref: function(O) {
1895
- D.ref = O, St(r.ref, O);
1896
- }
1897
- }) : null, x && /* @__PURE__ */ Wn(p ? p(Oi(i), P, D.instance) : o, D.container));
1898
- }
1899
- return t;
1900
- }
1901
- var Ci = (function(e, t) {
1902
- return /* @__PURE__ */ Vn(function(r, o) {
1903
- var a = r.children, c = Ln(r, ["children"]);
1904
- return (
1905
- // If I spread them separately here, Babel adds the _extends ponyfill for
1906
- // some reason
1907
- /* @__PURE__ */ wt.createElement(e, Object.assign({}, t, c), a ? /* @__PURE__ */ sn(a, {
1908
- ref: function(s) {
1909
- St(o, s), St(a.ref, s);
1910
- }
1911
- }) : null)
1912
- );
1913
- });
1914
- }), Si = /* @__PURE__ */ Ci(/* @__PURE__ */ Di(qe));
1915
- const Li = "_tooltip_pzic3_12", ji = "_tooltipWrapper_pzic3_25", Pi = "_icon_pzic3_29", at = {
1916
- tooltip: Li,
1917
- tooltipWrapper: ji,
1918
- icon: Pi
1919
- }, Ni = 14, Ri = 100, Mi = 200, Hi = ({
1920
- text: e,
1921
- className: t,
1922
- iconClassName: n,
1923
- icon: r,
1924
- placement: o = "top",
1925
- offset: a = [0, 8]
1926
- }) => {
1927
- const c = Et(null), p = Et(!1), [s, l] = st(!1);
1928
- Ot(() => {
1929
- const h = window.matchMedia("(hover: none)"), x = () => l(h.matches);
1930
- return x(), h.addEventListener("change", x), () => h.removeEventListener("change", x);
1931
- }, []);
1932
- const f = rt(() => {
1933
- p.current || c.current?.hide();
1934
- }, []), b = rt((h) => {
1935
- c.current = h, p.current = !0, setTimeout(() => {
1936
- p.current = !1;
1937
- }, Ri), window.addEventListener("scroll", f, { passive: !0, capture: !0 });
1938
- }, [f]), E = rt(() => {
1939
- window.removeEventListener("scroll", f, { capture: !0 });
1940
- }, [f]);
1941
- Ot(() => () => {
1942
- window.removeEventListener("scroll", f, { capture: !0 });
1943
- }, [f]);
1944
- const m = rt((h) => {
1945
- h.stopPropagation(), h.preventDefault();
1946
- }, []), w = Hn(
1947
- () => /* @__PURE__ */ me(
1948
- "div",
1949
- {
1950
- className: vt(at.tooltip, t),
1951
- onClick: m,
1952
- onMouseDown: m,
1953
- children: e
1954
- }
1955
- ),
1956
- [e, t, m]
1957
- ), y = s ? "click" : "mouseenter focus";
1958
- return e ? /* @__PURE__ */ me(
1959
- "span",
1960
- {
1961
- className: at.tooltipWrapper,
1962
- onClick: m,
1963
- onMouseDown: m,
1964
- onPointerDown: m,
1965
- children: /* @__PURE__ */ me(
1966
- Si,
1967
- {
1968
- content: w,
1969
- placement: o,
1970
- offset: a,
1971
- delay: s ? 0 : [Mi, 0],
1972
- popperOptions: {
1973
- modifiers: [
1974
- { name: "preventOverflow", options: { boundary: "viewport", padding: 16 } },
1975
- { name: "flip", options: { boundary: "viewport", padding: 16 } }
1976
- ]
1977
- },
1978
- trigger: y,
1979
- hideOnClick: !s,
1980
- interactive: s,
1981
- onClickOutside: s ? (h) => h.hide() : void 0,
1982
- animation: !1,
1983
- arrow: !1,
1984
- zIndex: Ni,
1985
- appendTo: () => document.body,
1986
- onShow: b,
1987
- onHide: E,
1988
- children: /* @__PURE__ */ me(
1989
- "div",
1990
- {
1991
- role: "button",
1992
- "aria-label": e,
1993
- tabIndex: 0,
1994
- className: vt(at.icon, n),
1995
- children: r ?? /* @__PURE__ */ me(Vt, {})
1996
- }
1997
- )
1998
- }
1999
- )
2000
- }
2001
- ) : /* @__PURE__ */ me(
2002
- "div",
2003
- {
2004
- className: vt(at.icon, n),
2005
- "aria-hidden": !0,
2006
- children: r ?? /* @__PURE__ */ me(Vt, {})
2007
- }
2008
- );
2009
- };
2010
- export {
2011
- Hi as Tooltip
2012
- };