@dialpad/dialtone-vue 3.94.0 → 3.94.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.
@@ -0,0 +1,2575 @@
1
+ import { h as Yn, Comment as Xn, Text as Gn, openBlock as bt, createBlock as Kn, Transition as Zn, mergeProps as an, withCtx as sn, withDirectives as Jn, createElementVNode as Qn, normalizeProps as er, guardReactiveProps as tr, renderSlot as wt, createCommentVNode as un, vShow as nr, resolveComponent as rr, createElementBlock as jt, withKeys as ir, createVNode as or, toHandlers as ar, createTextVNode as sr, toDisplayString as ur } from "vue";
2
+ const ge = {
3
+ ERROR: "error",
4
+ WARNING: "warning",
5
+ SUCCESS: "success"
6
+ }, Vo = {
7
+ LARGE: "lg",
8
+ EXTRA_LARGE: "xl"
9
+ }, _o = {
10
+ xs: "",
11
+ sm: "",
12
+ md: "",
13
+ lg: "d-description--lg",
14
+ xl: "d-description--xl"
15
+ }, Bo = {
16
+ xs: "d-label--xs",
17
+ sm: "d-label--sm",
18
+ md: "",
19
+ lg: "d-label--lg",
20
+ xl: "d-label--xl"
21
+ }, $o = {
22
+ esc: "Esc",
23
+ escape: "Escape",
24
+ tab: "Tab",
25
+ enter: "Enter",
26
+ space: "Space",
27
+ spacebar: "Spacebar",
28
+ up: "Up",
29
+ arrowup: "ArrowUp",
30
+ left: "Left",
31
+ arrowleft: "ArrowLeft",
32
+ right: "Right",
33
+ arrowright: "ArrowRight",
34
+ down: "Down",
35
+ arrowdown: "ArrowDown",
36
+ home: "Home",
37
+ end: "End"
38
+ }, cr = ge.ERROR, lr = "dt";
39
+ let pr = 0, kt;
40
+ const fr = typeof setImmediate == "function" ? setImmediate : setTimeout;
41
+ function cn(e = lr) {
42
+ return `${e}${pr++}`;
43
+ }
44
+ function dr(e, t) {
45
+ if (t) {
46
+ const n = vr(t);
47
+ return e[Math.abs(n) % e.length];
48
+ } else
49
+ return e[ln(e.length)];
50
+ }
51
+ function vr(e) {
52
+ let t;
53
+ for (let n = 0; n < e.length; n++)
54
+ t = Math.imul(31, t) + e.charCodeAt(n) | 0;
55
+ return t;
56
+ }
57
+ function ln(e) {
58
+ return Math.floor(Math.random() * e);
59
+ }
60
+ function hr(e) {
61
+ return e ? e.map((t) => typeof t == "string" ? {
62
+ message: t,
63
+ type: cr
64
+ } : t) : [];
65
+ }
66
+ function mr(e) {
67
+ const t = pn(e);
68
+ return !e || !t ? [] : e.filter((n) => !!n.message && n.type === t);
69
+ }
70
+ function pn(e) {
71
+ return e ? st(e, ge.ERROR) ? ge.ERROR : st(e, ge.WARNING) ? ge.WARNING : st(e, ge.SUCCESS) ? ge.SUCCESS : null : null;
72
+ }
73
+ function st(e, t) {
74
+ return !e || !t ? !1 : e.some((n) => (n == null ? void 0 : n.type) === t);
75
+ }
76
+ const gr = (e) => Yn("div", { innerHTML: e.html }), yr = () => new Promise((e) => {
77
+ fr(e);
78
+ });
79
+ function br(e, t = {}) {
80
+ return e ? e(t).some((n) => n.type === Xn || Array.isArray(n.children) && !n.children.length ? !1 : n.type !== Gn || typeof n.children == "string" && n.children.trim() !== "") : !1;
81
+ }
82
+ const wr = (e) => e == null ? void 0 : e.toLowerCase().split("-").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(""), Er = (e) => {
83
+ const t = Object.entries(e).filter(([n]) => n.startsWith("on"));
84
+ return Object.fromEntries(t);
85
+ };
86
+ function Or(e, t = 300) {
87
+ clearTimeout(kt), kt = setTimeout(e, t);
88
+ }
89
+ function xr(e) {
90
+ const t = e.getBoundingClientRect(), n = {
91
+ top: t.top < 0,
92
+ left: t.left < 0,
93
+ bottom: t.bottom > (window.innerHeight || document.documentElement.clientHeight),
94
+ right: t.right > (window.innerWidth || document.documentElement.clientWidth)
95
+ };
96
+ return n.any = Object.values(n).some((r) => r), n.all = Object.values(n).every((r) => r), n;
97
+ }
98
+ const Ar = /(?:(?:[^\s!@#$%^&*()_=+[\]{}\\|;:'",.<>/?]+)\.)/, Tr = new RegExp(
99
+ "(?:com|ru|org|net|de|jp|uk|br|it|pl|fr|in|au|ir|info|nl|cn|es|cz|kr|ca|eu|ua|co|gr|za|ro|biz|ch|se|tw|mx|vn|hu|be|tr|at|dk|tv|me|ar|sk|no|us|fi|id|cl|xyz|io|pt|by|il|ie|nz|kz|hk|lt|cc|my|sg|club|bg|edu|рф|pk|su|top|th|hr|rs|pe|pro|si|az|lv|pw|ae|ph|online|ng|ee|ws|ve|cat)"
100
+ ), Sr = new RegExp(
101
+ "(?:(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])\\.){3}(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])"
102
+ ), fn = new RegExp(
103
+ "(?:" + [
104
+ [
105
+ Ar.source,
106
+ Tr.source
107
+ ].join("+"),
108
+ Sr.source
109
+ ].join("|") + ")"
110
+ ), Dr = /(?:(?:[;/][^#?<>\s]*)?)/, dn = /(?:(?:\?[^#<>\s]+)?(?:#[^<>\s]+)?)/, vn = new RegExp(
111
+ "\\b" + [
112
+ fn.source,
113
+ Dr.source,
114
+ dn.source,
115
+ "(?!\\w)"
116
+ ].join("+")
117
+ ), hn = /\b[a-z\d.-]+:\/\/[^<>\s]+/, mn = new RegExp(
118
+ "(?:mailto:)?[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@" + [
119
+ fn.source,
120
+ dn.source
121
+ ].join("+") + "(?!\\w)"
122
+ );
123
+ function gn(e = 7, t = 15) {
124
+ let n = !0;
125
+ try {
126
+ RegExp("(?<=\\W)");
127
+ } catch {
128
+ n = !1;
129
+ }
130
+ return new RegExp(
131
+ `${n ? "(?:^|(?<=\\W))" : ""}(?![\\s\\-])\\+?(?:[0-9()\\- \\t]{${e},${t}})(?=\\b)(?=\\W(?=\\W|$)|\\s|$)`
132
+ );
133
+ }
134
+ const yn = gn(), Rr = new RegExp(
135
+ [
136
+ vn.source,
137
+ hn.source,
138
+ mn.source,
139
+ yn.source
140
+ ].join("|"),
141
+ "gi"
142
+ );
143
+ function Lr(e) {
144
+ var t;
145
+ return !e || !["string", "number"].includes(typeof e) ? !1 : (e = e.toString(), ((t = yn.exec(e)) == null ? void 0 : t[0]) === e);
146
+ }
147
+ function Cr(e) {
148
+ var t, n;
149
+ return !e || typeof e != "string" ? !1 : ((t = vn.exec(e)) == null ? void 0 : t[0]) === e || ((n = hn.exec(e)) == null ? void 0 : n[0]) === e;
150
+ }
151
+ function Pr(e) {
152
+ var t;
153
+ return !e || typeof e != "string" ? !1 : ((t = mn.exec(e)) == null ? void 0 : t[0]) === e;
154
+ }
155
+ function Nr(e) {
156
+ return e.filter((t) => !!t).join(" ");
157
+ }
158
+ function Ir(e, t = "en-US") {
159
+ return e.replace(/^\p{CWU}/u, (n) => n.toLocaleUpperCase(t));
160
+ }
161
+ const Uo = {
162
+ getUniqueString: cn,
163
+ getRandomElement: dr,
164
+ getRandomInt: ln,
165
+ formatMessages: hr,
166
+ filterFormattedMessages: mr,
167
+ hasFormattedMessageOfType: st,
168
+ getValidationState: pn,
169
+ htmlFragment: gr,
170
+ flushPromises: yr,
171
+ kebabCaseToPascalCase: wr,
172
+ extractVueListeners: Er,
173
+ debounce: Or,
174
+ isOutOfViewPort: xr,
175
+ getPhoneNumberRegex: gn,
176
+ linkRegex: Rr,
177
+ isEmailAddress: Pr,
178
+ isPhoneNumber: Lr,
179
+ isURL: Cr,
180
+ safeConcatStrings: Nr,
181
+ capitalizeFirstLetter: Ir
182
+ }, bn = (e, t) => {
183
+ const n = e.__vccOpts || e;
184
+ for (const [r, o] of t)
185
+ n[r] = o;
186
+ return n;
187
+ }, Mr = {
188
+ name: "DtLazyShow",
189
+ inheritAttrs: !1,
190
+ /******************
191
+ * PROPS *
192
+ ******************/
193
+ props: {
194
+ /**
195
+ * Whether the child slot is shown.
196
+ * @values true, false
197
+ */
198
+ show: {
199
+ type: Boolean,
200
+ default: !1
201
+ },
202
+ /**
203
+ * A valid Vue enter/leave CSS transition name.
204
+ */
205
+ transition: {
206
+ type: String,
207
+ default: null
208
+ },
209
+ /**
210
+ * Enable/Disable transition animation
211
+ * @values true, false
212
+ */
213
+ appear: {
214
+ type: Boolean,
215
+ default: !1
216
+ }
217
+ },
218
+ /******************
219
+ * DATA *
220
+ ******************/
221
+ data() {
222
+ return {
223
+ initialized: !!this.show
224
+ };
225
+ },
226
+ computed: {
227
+ /**
228
+ * Set the css property to false when running tests only.
229
+ * Refer to: https://vuejs.org/guide/built-ins/transition.html#javascript-hooks for details about
230
+ * transition `css` property
231
+ * @returns {boolean}
232
+ */
233
+ isCSSEnabled() {
234
+ return process.env.NODE_ENV !== "test";
235
+ }
236
+ },
237
+ /******************
238
+ * WATCH *
239
+ ******************/
240
+ watch: {
241
+ show: function(e) {
242
+ !e || this.initialized || (this.initialized = !0);
243
+ }
244
+ }
245
+ };
246
+ function jr(e, t, n, r, o, a) {
247
+ return bt(), Kn(Zn, an({
248
+ name: n.transition,
249
+ appear: n.appear
250
+ }, e.$attrs, { css: a.isCSSEnabled }), {
251
+ default: sn(() => [
252
+ Jn(Qn("div", er(tr(e.$attrs)), [
253
+ o.initialized ? wt(e.$slots, "default", { key: 0 }) : un("", !0)
254
+ ], 16), [
255
+ [nr, n.show]
256
+ ])
257
+ ]),
258
+ _: 3
259
+ }, 16, ["name", "appear", "css"]);
260
+ }
261
+ const kr = /* @__PURE__ */ bn(Mr, [["render", jr]]);
262
+ var B = "top", Y = "bottom", X = "right", $ = "left", pt = "auto", qe = [B, Y, X, $], Re = "start", Ue = "end", Vr = "clippingParents", wn = "viewport", Ve = "popper", _r = "reference", Vt = /* @__PURE__ */ qe.reduce(function(e, t) {
263
+ return e.concat([t + "-" + Re, t + "-" + Ue]);
264
+ }, []), En = /* @__PURE__ */ [].concat(qe, [pt]).reduce(function(e, t) {
265
+ return e.concat([t, t + "-" + Re, t + "-" + Ue]);
266
+ }, []), Br = "beforeRead", $r = "read", Ur = "afterRead", Hr = "beforeMain", Fr = "main", Wr = "afterMain", qr = "beforeWrite", zr = "write", Yr = "afterWrite", Et = [Br, $r, Ur, Hr, Fr, Wr, qr, zr, Yr];
267
+ function ne(e) {
268
+ return e ? (e.nodeName || "").toLowerCase() : null;
269
+ }
270
+ function q(e) {
271
+ if (e == null)
272
+ return window;
273
+ if (e.toString() !== "[object Window]") {
274
+ var t = e.ownerDocument;
275
+ return t && t.defaultView || window;
276
+ }
277
+ return e;
278
+ }
279
+ function we(e) {
280
+ var t = q(e).Element;
281
+ return e instanceof t || e instanceof Element;
282
+ }
283
+ function W(e) {
284
+ var t = q(e).HTMLElement;
285
+ return e instanceof t || e instanceof HTMLElement;
286
+ }
287
+ function Dt(e) {
288
+ if (typeof ShadowRoot > "u")
289
+ return !1;
290
+ var t = q(e).ShadowRoot;
291
+ return e instanceof t || e instanceof ShadowRoot;
292
+ }
293
+ function Xr(e) {
294
+ var t = e.state;
295
+ Object.keys(t.elements).forEach(function(n) {
296
+ var r = t.styles[n] || {}, o = t.attributes[n] || {}, a = t.elements[n];
297
+ !W(a) || !ne(a) || (Object.assign(a.style, r), Object.keys(o).forEach(function(l) {
298
+ var c = o[l];
299
+ c === !1 ? a.removeAttribute(l) : a.setAttribute(l, c === !0 ? "" : c);
300
+ }));
301
+ });
302
+ }
303
+ function Gr(e) {
304
+ var t = e.state, n = {
305
+ popper: {
306
+ position: t.options.strategy,
307
+ left: "0",
308
+ top: "0",
309
+ margin: "0"
310
+ },
311
+ arrow: {
312
+ position: "absolute"
313
+ },
314
+ reference: {}
315
+ };
316
+ return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
317
+ Object.keys(t.elements).forEach(function(r) {
318
+ var o = t.elements[r], a = t.attributes[r] || {}, l = Object.keys(t.styles.hasOwnProperty(r) ? t.styles[r] : n[r]), c = l.reduce(function(u, f) {
319
+ return u[f] = "", u;
320
+ }, {});
321
+ !W(o) || !ne(o) || (Object.assign(o.style, c), Object.keys(a).forEach(function(u) {
322
+ o.removeAttribute(u);
323
+ }));
324
+ });
325
+ };
326
+ }
327
+ const On = {
328
+ name: "applyStyles",
329
+ enabled: !0,
330
+ phase: "write",
331
+ fn: Xr,
332
+ effect: Gr,
333
+ requires: ["computeStyles"]
334
+ };
335
+ function K(e) {
336
+ return e.split("-")[0];
337
+ }
338
+ var be = Math.max, ct = Math.min, Le = Math.round;
339
+ function Ot() {
340
+ var e = navigator.userAgentData;
341
+ return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
342
+ return t.brand + "/" + t.version;
343
+ }).join(" ") : navigator.userAgent;
344
+ }
345
+ function xn() {
346
+ return !/^((?!chrome|android).)*safari/i.test(Ot());
347
+ }
348
+ function Ce(e, t, n) {
349
+ t === void 0 && (t = !1), n === void 0 && (n = !1);
350
+ var r = e.getBoundingClientRect(), o = 1, a = 1;
351
+ t && W(e) && (o = e.offsetWidth > 0 && Le(r.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && Le(r.height) / e.offsetHeight || 1);
352
+ var l = we(e) ? q(e) : window, c = l.visualViewport, u = !xn() && n, f = (r.left + (u && c ? c.offsetLeft : 0)) / o, p = (r.top + (u && c ? c.offsetTop : 0)) / a, g = r.width / o, x = r.height / a;
353
+ return {
354
+ width: g,
355
+ height: x,
356
+ top: p,
357
+ right: f + g,
358
+ bottom: p + x,
359
+ left: f,
360
+ x: f,
361
+ y: p
362
+ };
363
+ }
364
+ function Rt(e) {
365
+ var t = Ce(e), n = e.offsetWidth, r = e.offsetHeight;
366
+ return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - r) <= 1 && (r = t.height), {
367
+ x: e.offsetLeft,
368
+ y: e.offsetTop,
369
+ width: n,
370
+ height: r
371
+ };
372
+ }
373
+ function An(e, t) {
374
+ var n = t.getRootNode && t.getRootNode();
375
+ if (e.contains(t))
376
+ return !0;
377
+ if (n && Dt(n)) {
378
+ var r = t;
379
+ do {
380
+ if (r && e.isSameNode(r))
381
+ return !0;
382
+ r = r.parentNode || r.host;
383
+ } while (r);
384
+ }
385
+ return !1;
386
+ }
387
+ function Z(e) {
388
+ return q(e).getComputedStyle(e);
389
+ }
390
+ function Kr(e) {
391
+ return ["table", "td", "th"].indexOf(ne(e)) >= 0;
392
+ }
393
+ function pe(e) {
394
+ return ((we(e) ? e.ownerDocument : (
395
+ // $FlowFixMe[prop-missing]
396
+ e.document
397
+ )) || window.document).documentElement;
398
+ }
399
+ function ft(e) {
400
+ return ne(e) === "html" ? e : (
401
+ // this is a quicker (but less type safe) way to save quite some bytes from the bundle
402
+ // $FlowFixMe[incompatible-return]
403
+ // $FlowFixMe[prop-missing]
404
+ e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
405
+ e.parentNode || // DOM Element detected
406
+ (Dt(e) ? e.host : null) || // ShadowRoot detected
407
+ // $FlowFixMe[incompatible-call]: HTMLElement is a Node
408
+ pe(e)
409
+ );
410
+ }
411
+ function _t(e) {
412
+ return !W(e) || // https://github.com/popperjs/popper-core/issues/837
413
+ Z(e).position === "fixed" ? null : e.offsetParent;
414
+ }
415
+ function Zr(e) {
416
+ var t = /firefox/i.test(Ot()), n = /Trident/i.test(Ot());
417
+ if (n && W(e)) {
418
+ var r = Z(e);
419
+ if (r.position === "fixed")
420
+ return null;
421
+ }
422
+ var o = ft(e);
423
+ for (Dt(o) && (o = o.host); W(o) && ["html", "body"].indexOf(ne(o)) < 0; ) {
424
+ var a = Z(o);
425
+ 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")
426
+ return o;
427
+ o = o.parentNode;
428
+ }
429
+ return null;
430
+ }
431
+ function ze(e) {
432
+ for (var t = q(e), n = _t(e); n && Kr(n) && Z(n).position === "static"; )
433
+ n = _t(n);
434
+ return n && (ne(n) === "html" || ne(n) === "body" && Z(n).position === "static") ? t : n || Zr(e) || t;
435
+ }
436
+ function Lt(e) {
437
+ return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
438
+ }
439
+ function _e(e, t, n) {
440
+ return be(e, ct(t, n));
441
+ }
442
+ function Jr(e, t, n) {
443
+ var r = _e(e, t, n);
444
+ return r > n ? n : r;
445
+ }
446
+ function Tn() {
447
+ return {
448
+ top: 0,
449
+ right: 0,
450
+ bottom: 0,
451
+ left: 0
452
+ };
453
+ }
454
+ function Sn(e) {
455
+ return Object.assign({}, Tn(), e);
456
+ }
457
+ function Dn(e, t) {
458
+ return t.reduce(function(n, r) {
459
+ return n[r] = e, n;
460
+ }, {});
461
+ }
462
+ var Qr = function(t, n) {
463
+ return t = typeof t == "function" ? t(Object.assign({}, n.rects, {
464
+ placement: n.placement
465
+ })) : t, Sn(typeof t != "number" ? t : Dn(t, qe));
466
+ };
467
+ function ei(e) {
468
+ var t, n = e.state, r = e.name, o = e.options, a = n.elements.arrow, l = n.modifiersData.popperOffsets, c = K(n.placement), u = Lt(c), f = [$, X].indexOf(c) >= 0, p = f ? "height" : "width";
469
+ if (!(!a || !l)) {
470
+ var g = Qr(o.padding, n), x = Rt(a), m = u === "y" ? B : $, w = u === "y" ? Y : X, y = n.rects.reference[p] + n.rects.reference[u] - l[u] - n.rects.popper[p], b = l[u] - n.rects.reference[u], T = ze(a), R = T ? u === "y" ? T.clientHeight || 0 : T.clientWidth || 0 : 0, C = y / 2 - b / 2, i = g[m], E = R - x[p] - g[w], d = R / 2 - x[p] / 2 + C, D = _e(i, d, E), I = u;
471
+ n.modifiersData[r] = (t = {}, t[I] = D, t.centerOffset = D - d, t);
472
+ }
473
+ }
474
+ function ti(e) {
475
+ var t = e.state, n = e.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r;
476
+ if (o != null && !(typeof o == "string" && (o = t.elements.popper.querySelector(o), !o))) {
477
+ if (process.env.NODE_ENV !== "production" && (W(o) || console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', "To use an SVG arrow, wrap it in an HTMLElement that will be used as", "the arrow."].join(" "))), !An(t.elements.popper, o)) {
478
+ process.env.NODE_ENV !== "production" && console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
479
+ return;
480
+ }
481
+ t.elements.arrow = o;
482
+ }
483
+ }
484
+ const ni = {
485
+ name: "arrow",
486
+ enabled: !0,
487
+ phase: "main",
488
+ fn: ei,
489
+ effect: ti,
490
+ requires: ["popperOffsets"],
491
+ requiresIfExists: ["preventOverflow"]
492
+ };
493
+ function Pe(e) {
494
+ return e.split("-")[1];
495
+ }
496
+ var ri = {
497
+ top: "auto",
498
+ right: "auto",
499
+ bottom: "auto",
500
+ left: "auto"
501
+ };
502
+ function ii(e, t) {
503
+ var n = e.x, r = e.y, o = t.devicePixelRatio || 1;
504
+ return {
505
+ x: Le(n * o) / o || 0,
506
+ y: Le(r * o) / o || 0
507
+ };
508
+ }
509
+ function Bt(e) {
510
+ var t, n = e.popper, r = e.popperRect, o = e.placement, a = e.variation, l = e.offsets, c = e.position, u = e.gpuAcceleration, f = e.adaptive, p = e.roundOffsets, g = e.isFixed, x = l.x, m = x === void 0 ? 0 : x, w = l.y, y = w === void 0 ? 0 : w, b = typeof p == "function" ? p({
511
+ x: m,
512
+ y
513
+ }) : {
514
+ x: m,
515
+ y
516
+ };
517
+ m = b.x, y = b.y;
518
+ var T = l.hasOwnProperty("x"), R = l.hasOwnProperty("y"), C = $, i = B, E = window;
519
+ if (f) {
520
+ var d = ze(n), D = "clientHeight", I = "clientWidth";
521
+ if (d === q(n) && (d = pe(n), Z(d).position !== "static" && c === "absolute" && (D = "scrollHeight", I = "scrollWidth")), d = d, o === B || (o === $ || o === X) && a === Ue) {
522
+ i = Y;
523
+ var M = g && d === E && E.visualViewport ? E.visualViewport.height : (
524
+ // $FlowFixMe[prop-missing]
525
+ d[D]
526
+ );
527
+ y -= M - r.height, y *= u ? 1 : -1;
528
+ }
529
+ if (o === $ || (o === B || o === Y) && a === Ue) {
530
+ C = X;
531
+ var P = g && d === E && E.visualViewport ? E.visualViewport.width : (
532
+ // $FlowFixMe[prop-missing]
533
+ d[I]
534
+ );
535
+ m -= P - r.width, m *= u ? 1 : -1;
536
+ }
537
+ }
538
+ var A = Object.assign({
539
+ position: c
540
+ }, f && ri), L = p === !0 ? ii({
541
+ x: m,
542
+ y
543
+ }, q(n)) : {
544
+ x: m,
545
+ y
546
+ };
547
+ if (m = L.x, y = L.y, u) {
548
+ var N;
549
+ return Object.assign({}, A, (N = {}, N[i] = R ? "0" : "", N[C] = T ? "0" : "", N.transform = (E.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + y + "px)" : "translate3d(" + m + "px, " + y + "px, 0)", N));
550
+ }
551
+ return Object.assign({}, A, (t = {}, t[i] = R ? y + "px" : "", t[C] = T ? m + "px" : "", t.transform = "", t));
552
+ }
553
+ function oi(e) {
554
+ var t = e.state, n = e.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, a = n.adaptive, l = a === void 0 ? !0 : a, c = n.roundOffsets, u = c === void 0 ? !0 : c;
555
+ if (process.env.NODE_ENV !== "production") {
556
+ var f = Z(t.elements.popper).transitionProperty || "";
557
+ l && ["transform", "top", "right", "bottom", "left"].some(function(g) {
558
+ return f.indexOf(g) >= 0;
559
+ }) && console.warn(["Popper: Detected CSS transitions on at least one of the following", 'CSS properties: "transform", "top", "right", "bottom", "left".', `
560
+
561
+ `, 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', "for smooth transitions, or remove these properties from the CSS", "transition declaration on the popper element if only transitioning", "opacity or background-color for example.", `
562
+
563
+ `, "We recommend using the popper element as a wrapper around an inner", "element that can have any CSS property transitioned for animations."].join(" "));
564
+ }
565
+ var p = {
566
+ placement: K(t.placement),
567
+ variation: Pe(t.placement),
568
+ popper: t.elements.popper,
569
+ popperRect: t.rects.popper,
570
+ gpuAcceleration: o,
571
+ isFixed: t.options.strategy === "fixed"
572
+ };
573
+ t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Bt(Object.assign({}, p, {
574
+ offsets: t.modifiersData.popperOffsets,
575
+ position: t.options.strategy,
576
+ adaptive: l,
577
+ roundOffsets: u
578
+ })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Bt(Object.assign({}, p, {
579
+ offsets: t.modifiersData.arrow,
580
+ position: "absolute",
581
+ adaptive: !1,
582
+ roundOffsets: u
583
+ })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
584
+ "data-popper-placement": t.placement
585
+ });
586
+ }
587
+ const ai = {
588
+ name: "computeStyles",
589
+ enabled: !0,
590
+ phase: "beforeWrite",
591
+ fn: oi,
592
+ data: {}
593
+ };
594
+ var ot = {
595
+ passive: !0
596
+ };
597
+ function si(e) {
598
+ var t = e.state, n = e.instance, r = e.options, o = r.scroll, a = o === void 0 ? !0 : o, l = r.resize, c = l === void 0 ? !0 : l, u = q(t.elements.popper), f = [].concat(t.scrollParents.reference, t.scrollParents.popper);
599
+ return a && f.forEach(function(p) {
600
+ p.addEventListener("scroll", n.update, ot);
601
+ }), c && u.addEventListener("resize", n.update, ot), function() {
602
+ a && f.forEach(function(p) {
603
+ p.removeEventListener("scroll", n.update, ot);
604
+ }), c && u.removeEventListener("resize", n.update, ot);
605
+ };
606
+ }
607
+ const ui = {
608
+ name: "eventListeners",
609
+ enabled: !0,
610
+ phase: "write",
611
+ fn: function() {
612
+ },
613
+ effect: si,
614
+ data: {}
615
+ };
616
+ var ci = {
617
+ left: "right",
618
+ right: "left",
619
+ bottom: "top",
620
+ top: "bottom"
621
+ };
622
+ function ut(e) {
623
+ return e.replace(/left|right|bottom|top/g, function(t) {
624
+ return ci[t];
625
+ });
626
+ }
627
+ var li = {
628
+ start: "end",
629
+ end: "start"
630
+ };
631
+ function $t(e) {
632
+ return e.replace(/start|end/g, function(t) {
633
+ return li[t];
634
+ });
635
+ }
636
+ function Ct(e) {
637
+ var t = q(e), n = t.pageXOffset, r = t.pageYOffset;
638
+ return {
639
+ scrollLeft: n,
640
+ scrollTop: r
641
+ };
642
+ }
643
+ function Pt(e) {
644
+ return Ce(pe(e)).left + Ct(e).scrollLeft;
645
+ }
646
+ function pi(e, t) {
647
+ var n = q(e), r = pe(e), o = n.visualViewport, a = r.clientWidth, l = r.clientHeight, c = 0, u = 0;
648
+ if (o) {
649
+ a = o.width, l = o.height;
650
+ var f = xn();
651
+ (f || !f && t === "fixed") && (c = o.offsetLeft, u = o.offsetTop);
652
+ }
653
+ return {
654
+ width: a,
655
+ height: l,
656
+ x: c + Pt(e),
657
+ y: u
658
+ };
659
+ }
660
+ function fi(e) {
661
+ var t, n = pe(e), r = Ct(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, a = be(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), l = be(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), c = -r.scrollLeft + Pt(e), u = -r.scrollTop;
662
+ return Z(o || n).direction === "rtl" && (c += be(n.clientWidth, o ? o.clientWidth : 0) - a), {
663
+ width: a,
664
+ height: l,
665
+ x: c,
666
+ y: u
667
+ };
668
+ }
669
+ function Nt(e) {
670
+ var t = Z(e), n = t.overflow, r = t.overflowX, o = t.overflowY;
671
+ return /auto|scroll|overlay|hidden/.test(n + o + r);
672
+ }
673
+ function Rn(e) {
674
+ return ["html", "body", "#document"].indexOf(ne(e)) >= 0 ? e.ownerDocument.body : W(e) && Nt(e) ? e : Rn(ft(e));
675
+ }
676
+ function Be(e, t) {
677
+ var n;
678
+ t === void 0 && (t = []);
679
+ var r = Rn(e), o = r === ((n = e.ownerDocument) == null ? void 0 : n.body), a = q(r), l = o ? [a].concat(a.visualViewport || [], Nt(r) ? r : []) : r, c = t.concat(l);
680
+ return o ? c : (
681
+ // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
682
+ c.concat(Be(ft(l)))
683
+ );
684
+ }
685
+ function xt(e) {
686
+ return Object.assign({}, e, {
687
+ left: e.x,
688
+ top: e.y,
689
+ right: e.x + e.width,
690
+ bottom: e.y + e.height
691
+ });
692
+ }
693
+ function di(e, t) {
694
+ var n = Ce(e, !1, t === "fixed");
695
+ 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;
696
+ }
697
+ function Ut(e, t, n) {
698
+ return t === wn ? xt(pi(e, n)) : we(t) ? di(t, n) : xt(fi(pe(e)));
699
+ }
700
+ function vi(e) {
701
+ var t = Be(ft(e)), n = ["absolute", "fixed"].indexOf(Z(e).position) >= 0, r = n && W(e) ? ze(e) : e;
702
+ return we(r) ? t.filter(function(o) {
703
+ return we(o) && An(o, r) && ne(o) !== "body";
704
+ }) : [];
705
+ }
706
+ function hi(e, t, n, r) {
707
+ var o = t === "clippingParents" ? vi(e) : [].concat(t), a = [].concat(o, [n]), l = a[0], c = a.reduce(function(u, f) {
708
+ var p = Ut(e, f, r);
709
+ return u.top = be(p.top, u.top), u.right = ct(p.right, u.right), u.bottom = ct(p.bottom, u.bottom), u.left = be(p.left, u.left), u;
710
+ }, Ut(e, l, r));
711
+ return c.width = c.right - c.left, c.height = c.bottom - c.top, c.x = c.left, c.y = c.top, c;
712
+ }
713
+ function Ln(e) {
714
+ var t = e.reference, n = e.element, r = e.placement, o = r ? K(r) : null, a = r ? Pe(r) : null, l = t.x + t.width / 2 - n.width / 2, c = t.y + t.height / 2 - n.height / 2, u;
715
+ switch (o) {
716
+ case B:
717
+ u = {
718
+ x: l,
719
+ y: t.y - n.height
720
+ };
721
+ break;
722
+ case Y:
723
+ u = {
724
+ x: l,
725
+ y: t.y + t.height
726
+ };
727
+ break;
728
+ case X:
729
+ u = {
730
+ x: t.x + t.width,
731
+ y: c
732
+ };
733
+ break;
734
+ case $:
735
+ u = {
736
+ x: t.x - n.width,
737
+ y: c
738
+ };
739
+ break;
740
+ default:
741
+ u = {
742
+ x: t.x,
743
+ y: t.y
744
+ };
745
+ }
746
+ var f = o ? Lt(o) : null;
747
+ if (f != null) {
748
+ var p = f === "y" ? "height" : "width";
749
+ switch (a) {
750
+ case Re:
751
+ u[f] = u[f] - (t[p] / 2 - n[p] / 2);
752
+ break;
753
+ case Ue:
754
+ u[f] = u[f] + (t[p] / 2 - n[p] / 2);
755
+ break;
756
+ }
757
+ }
758
+ return u;
759
+ }
760
+ function He(e, t) {
761
+ t === void 0 && (t = {});
762
+ var n = t, r = n.placement, o = r === void 0 ? e.placement : r, a = n.strategy, l = a === void 0 ? e.strategy : a, c = n.boundary, u = c === void 0 ? Vr : c, f = n.rootBoundary, p = f === void 0 ? wn : f, g = n.elementContext, x = g === void 0 ? Ve : g, m = n.altBoundary, w = m === void 0 ? !1 : m, y = n.padding, b = y === void 0 ? 0 : y, T = Sn(typeof b != "number" ? b : Dn(b, qe)), R = x === Ve ? _r : Ve, C = e.rects.popper, i = e.elements[w ? R : x], E = hi(we(i) ? i : i.contextElement || pe(e.elements.popper), u, p, l), d = Ce(e.elements.reference), D = Ln({
763
+ reference: d,
764
+ element: C,
765
+ strategy: "absolute",
766
+ placement: o
767
+ }), I = xt(Object.assign({}, C, D)), M = x === Ve ? I : d, P = {
768
+ top: E.top - M.top + T.top,
769
+ bottom: M.bottom - E.bottom + T.bottom,
770
+ left: E.left - M.left + T.left,
771
+ right: M.right - E.right + T.right
772
+ }, A = e.modifiersData.offset;
773
+ if (x === Ve && A) {
774
+ var L = A[o];
775
+ Object.keys(P).forEach(function(N) {
776
+ var U = [X, Y].indexOf(N) >= 0 ? 1 : -1, H = [B, Y].indexOf(N) >= 0 ? "y" : "x";
777
+ P[N] += L[H] * U;
778
+ });
779
+ }
780
+ return P;
781
+ }
782
+ function mi(e, t) {
783
+ t === void 0 && (t = {});
784
+ var n = t, r = n.placement, o = n.boundary, a = n.rootBoundary, l = n.padding, c = n.flipVariations, u = n.allowedAutoPlacements, f = u === void 0 ? En : u, p = Pe(r), g = p ? c ? Vt : Vt.filter(function(w) {
785
+ return Pe(w) === p;
786
+ }) : qe, x = g.filter(function(w) {
787
+ return f.indexOf(w) >= 0;
788
+ });
789
+ x.length === 0 && (x = g, process.env.NODE_ENV !== "production" && console.error(["Popper: The `allowedAutoPlacements` option did not allow any", "placements. Ensure the `placement` option matches the variation", "of the allowed placements.", 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(" ")));
790
+ var m = x.reduce(function(w, y) {
791
+ return w[y] = He(e, {
792
+ placement: y,
793
+ boundary: o,
794
+ rootBoundary: a,
795
+ padding: l
796
+ })[K(y)], w;
797
+ }, {});
798
+ return Object.keys(m).sort(function(w, y) {
799
+ return m[w] - m[y];
800
+ });
801
+ }
802
+ function gi(e) {
803
+ if (K(e) === pt)
804
+ return [];
805
+ var t = ut(e);
806
+ return [$t(e), t, $t(t)];
807
+ }
808
+ function yi(e) {
809
+ var t = e.state, n = e.options, r = e.name;
810
+ if (!t.modifiersData[r]._skip) {
811
+ for (var o = n.mainAxis, a = o === void 0 ? !0 : o, l = n.altAxis, c = l === void 0 ? !0 : l, u = n.fallbackPlacements, f = n.padding, p = n.boundary, g = n.rootBoundary, x = n.altBoundary, m = n.flipVariations, w = m === void 0 ? !0 : m, y = n.allowedAutoPlacements, b = t.options.placement, T = K(b), R = T === b, C = u || (R || !w ? [ut(b)] : gi(b)), i = [b].concat(C).reduce(function(re, G) {
812
+ return re.concat(K(G) === pt ? mi(t, {
813
+ placement: G,
814
+ boundary: p,
815
+ rootBoundary: g,
816
+ padding: f,
817
+ flipVariations: w,
818
+ allowedAutoPlacements: y
819
+ }) : G);
820
+ }, []), E = t.rects.reference, d = t.rects.popper, D = /* @__PURE__ */ new Map(), I = !0, M = i[0], P = 0; P < i.length; P++) {
821
+ var A = i[P], L = K(A), N = Pe(A) === Re, U = [B, Y].indexOf(L) >= 0, H = U ? "width" : "height", k = He(t, {
822
+ placement: A,
823
+ boundary: p,
824
+ rootBoundary: g,
825
+ altBoundary: x,
826
+ padding: f
827
+ }), V = U ? N ? X : $ : N ? Y : B;
828
+ E[H] > d[H] && (V = ut(V));
829
+ var j = ut(V), J = [];
830
+ if (a && J.push(k[L] <= 0), c && J.push(k[V] <= 0, k[j] <= 0), J.every(function(re) {
831
+ return re;
832
+ })) {
833
+ M = A, I = !1;
834
+ break;
835
+ }
836
+ D.set(A, J);
837
+ }
838
+ if (I)
839
+ for (var Q = w ? 3 : 1, fe = function(G) {
840
+ var ie = i.find(function(Ee) {
841
+ var oe = D.get(Ee);
842
+ if (oe)
843
+ return oe.slice(0, G).every(function(Oe) {
844
+ return Oe;
845
+ });
846
+ });
847
+ if (ie)
848
+ return M = ie, "break";
849
+ }, ee = Q; ee > 0; ee--) {
850
+ var de = fe(ee);
851
+ if (de === "break")
852
+ break;
853
+ }
854
+ t.placement !== M && (t.modifiersData[r]._skip = !0, t.placement = M, t.reset = !0);
855
+ }
856
+ }
857
+ const bi = {
858
+ name: "flip",
859
+ enabled: !0,
860
+ phase: "main",
861
+ fn: yi,
862
+ requiresIfExists: ["offset"],
863
+ data: {
864
+ _skip: !1
865
+ }
866
+ };
867
+ function Ht(e, t, n) {
868
+ return n === void 0 && (n = {
869
+ x: 0,
870
+ y: 0
871
+ }), {
872
+ top: e.top - t.height - n.y,
873
+ right: e.right - t.width + n.x,
874
+ bottom: e.bottom - t.height + n.y,
875
+ left: e.left - t.width - n.x
876
+ };
877
+ }
878
+ function Ft(e) {
879
+ return [B, X, Y, $].some(function(t) {
880
+ return e[t] >= 0;
881
+ });
882
+ }
883
+ function wi(e) {
884
+ var t = e.state, n = e.name, r = t.rects.reference, o = t.rects.popper, a = t.modifiersData.preventOverflow, l = He(t, {
885
+ elementContext: "reference"
886
+ }), c = He(t, {
887
+ altBoundary: !0
888
+ }), u = Ht(l, r), f = Ht(c, o, a), p = Ft(u), g = Ft(f);
889
+ t.modifiersData[n] = {
890
+ referenceClippingOffsets: u,
891
+ popperEscapeOffsets: f,
892
+ isReferenceHidden: p,
893
+ hasPopperEscaped: g
894
+ }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
895
+ "data-popper-reference-hidden": p,
896
+ "data-popper-escaped": g
897
+ });
898
+ }
899
+ const Ei = {
900
+ name: "hide",
901
+ enabled: !0,
902
+ phase: "main",
903
+ requiresIfExists: ["preventOverflow"],
904
+ fn: wi
905
+ };
906
+ function Oi(e, t, n) {
907
+ var r = K(e), o = [$, B].indexOf(r) >= 0 ? -1 : 1, a = typeof n == "function" ? n(Object.assign({}, t, {
908
+ placement: e
909
+ })) : n, l = a[0], c = a[1];
910
+ return l = l || 0, c = (c || 0) * o, [$, X].indexOf(r) >= 0 ? {
911
+ x: c,
912
+ y: l
913
+ } : {
914
+ x: l,
915
+ y: c
916
+ };
917
+ }
918
+ function xi(e) {
919
+ var t = e.state, n = e.options, r = e.name, o = n.offset, a = o === void 0 ? [0, 0] : o, l = En.reduce(function(p, g) {
920
+ return p[g] = Oi(g, t.rects, a), p;
921
+ }, {}), c = l[t.placement], u = c.x, f = c.y;
922
+ t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += u, t.modifiersData.popperOffsets.y += f), t.modifiersData[r] = l;
923
+ }
924
+ const Ai = {
925
+ name: "offset",
926
+ enabled: !0,
927
+ phase: "main",
928
+ requires: ["popperOffsets"],
929
+ fn: xi
930
+ };
931
+ function Ti(e) {
932
+ var t = e.state, n = e.name;
933
+ t.modifiersData[n] = Ln({
934
+ reference: t.rects.reference,
935
+ element: t.rects.popper,
936
+ strategy: "absolute",
937
+ placement: t.placement
938
+ });
939
+ }
940
+ const Si = {
941
+ name: "popperOffsets",
942
+ enabled: !0,
943
+ phase: "read",
944
+ fn: Ti,
945
+ data: {}
946
+ };
947
+ function Di(e) {
948
+ return e === "x" ? "y" : "x";
949
+ }
950
+ function Ri(e) {
951
+ var t = e.state, n = e.options, r = e.name, o = n.mainAxis, a = o === void 0 ? !0 : o, l = n.altAxis, c = l === void 0 ? !1 : l, u = n.boundary, f = n.rootBoundary, p = n.altBoundary, g = n.padding, x = n.tether, m = x === void 0 ? !0 : x, w = n.tetherOffset, y = w === void 0 ? 0 : w, b = He(t, {
952
+ boundary: u,
953
+ rootBoundary: f,
954
+ padding: g,
955
+ altBoundary: p
956
+ }), T = K(t.placement), R = Pe(t.placement), C = !R, i = Lt(T), E = Di(i), d = t.modifiersData.popperOffsets, D = t.rects.reference, I = t.rects.popper, M = typeof y == "function" ? y(Object.assign({}, t.rects, {
957
+ placement: t.placement
958
+ })) : y, P = typeof M == "number" ? {
959
+ mainAxis: M,
960
+ altAxis: M
961
+ } : Object.assign({
962
+ mainAxis: 0,
963
+ altAxis: 0
964
+ }, M), A = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, L = {
965
+ x: 0,
966
+ y: 0
967
+ };
968
+ if (d) {
969
+ if (a) {
970
+ var N, U = i === "y" ? B : $, H = i === "y" ? Y : X, k = i === "y" ? "height" : "width", V = d[i], j = V + b[U], J = V - b[H], Q = m ? -I[k] / 2 : 0, fe = R === Re ? D[k] : I[k], ee = R === Re ? -I[k] : -D[k], de = t.elements.arrow, re = m && de ? Rt(de) : {
971
+ width: 0,
972
+ height: 0
973
+ }, G = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Tn(), ie = G[U], Ee = G[H], oe = _e(0, D[k], re[k]), Oe = C ? D[k] / 2 - Q - oe - ie - P.mainAxis : fe - oe - ie - P.mainAxis, ue = C ? -D[k] / 2 + Q + oe + Ee + P.mainAxis : ee + oe + Ee + P.mainAxis, xe = t.elements.arrow && ze(t.elements.arrow), Xe = xe ? i === "y" ? xe.clientTop || 0 : xe.clientLeft || 0 : 0, Ne = (N = A == null ? void 0 : A[i]) != null ? N : 0, Ge = V + Oe - Ne - Xe, Ke = V + ue - Ne, Ie = _e(m ? ct(j, Ge) : j, V, m ? be(J, Ke) : J);
974
+ d[i] = Ie, L[i] = Ie - V;
975
+ }
976
+ if (c) {
977
+ var Me, Ze = i === "x" ? B : $, Je = i === "x" ? Y : X, ae = d[E], ce = E === "y" ? "height" : "width", je = ae + b[Ze], ve = ae - b[Je], ke = [B, $].indexOf(T) !== -1, Qe = (Me = A == null ? void 0 : A[E]) != null ? Me : 0, et = ke ? je : ae - D[ce] - I[ce] - Qe + P.altAxis, tt = ke ? ae + D[ce] + I[ce] - Qe - P.altAxis : ve, nt = m && ke ? Jr(et, ae, tt) : _e(m ? et : je, ae, m ? tt : ve);
978
+ d[E] = nt, L[E] = nt - ae;
979
+ }
980
+ t.modifiersData[r] = L;
981
+ }
982
+ }
983
+ const Li = {
984
+ name: "preventOverflow",
985
+ enabled: !0,
986
+ phase: "main",
987
+ fn: Ri,
988
+ requiresIfExists: ["offset"]
989
+ };
990
+ function Ci(e) {
991
+ return {
992
+ scrollLeft: e.scrollLeft,
993
+ scrollTop: e.scrollTop
994
+ };
995
+ }
996
+ function Pi(e) {
997
+ return e === q(e) || !W(e) ? Ct(e) : Ci(e);
998
+ }
999
+ function Ni(e) {
1000
+ var t = e.getBoundingClientRect(), n = Le(t.width) / e.offsetWidth || 1, r = Le(t.height) / e.offsetHeight || 1;
1001
+ return n !== 1 || r !== 1;
1002
+ }
1003
+ function Ii(e, t, n) {
1004
+ n === void 0 && (n = !1);
1005
+ var r = W(t), o = W(t) && Ni(t), a = pe(t), l = Ce(e, o, n), c = {
1006
+ scrollLeft: 0,
1007
+ scrollTop: 0
1008
+ }, u = {
1009
+ x: 0,
1010
+ y: 0
1011
+ };
1012
+ return (r || !r && !n) && ((ne(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
1013
+ Nt(a)) && (c = Pi(t)), W(t) ? (u = Ce(t, !0), u.x += t.clientLeft, u.y += t.clientTop) : a && (u.x = Pt(a))), {
1014
+ x: l.left + c.scrollLeft - u.x,
1015
+ y: l.top + c.scrollTop - u.y,
1016
+ width: l.width,
1017
+ height: l.height
1018
+ };
1019
+ }
1020
+ function Mi(e) {
1021
+ var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
1022
+ e.forEach(function(a) {
1023
+ t.set(a.name, a);
1024
+ });
1025
+ function o(a) {
1026
+ n.add(a.name);
1027
+ var l = [].concat(a.requires || [], a.requiresIfExists || []);
1028
+ l.forEach(function(c) {
1029
+ if (!n.has(c)) {
1030
+ var u = t.get(c);
1031
+ u && o(u);
1032
+ }
1033
+ }), r.push(a);
1034
+ }
1035
+ return e.forEach(function(a) {
1036
+ n.has(a.name) || o(a);
1037
+ }), r;
1038
+ }
1039
+ function ji(e) {
1040
+ var t = Mi(e);
1041
+ return Et.reduce(function(n, r) {
1042
+ return n.concat(t.filter(function(o) {
1043
+ return o.phase === r;
1044
+ }));
1045
+ }, []);
1046
+ }
1047
+ function ki(e) {
1048
+ var t;
1049
+ return function() {
1050
+ return t || (t = new Promise(function(n) {
1051
+ Promise.resolve().then(function() {
1052
+ t = void 0, n(e());
1053
+ });
1054
+ })), t;
1055
+ };
1056
+ }
1057
+ function le(e) {
1058
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
1059
+ n[r - 1] = arguments[r];
1060
+ return [].concat(n).reduce(function(o, a) {
1061
+ return o.replace(/%s/, a);
1062
+ }, e);
1063
+ }
1064
+ var me = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', Vi = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', Wt = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
1065
+ function _i(e) {
1066
+ e.forEach(function(t) {
1067
+ [].concat(Object.keys(t), Wt).filter(function(n, r, o) {
1068
+ return o.indexOf(n) === r;
1069
+ }).forEach(function(n) {
1070
+ switch (n) {
1071
+ case "name":
1072
+ typeof t.name != "string" && console.error(le(me, String(t.name), '"name"', '"string"', '"' + String(t.name) + '"'));
1073
+ break;
1074
+ case "enabled":
1075
+ typeof t.enabled != "boolean" && console.error(le(me, t.name, '"enabled"', '"boolean"', '"' + String(t.enabled) + '"'));
1076
+ break;
1077
+ case "phase":
1078
+ Et.indexOf(t.phase) < 0 && console.error(le(me, t.name, '"phase"', "either " + Et.join(", "), '"' + String(t.phase) + '"'));
1079
+ break;
1080
+ case "fn":
1081
+ typeof t.fn != "function" && console.error(le(me, t.name, '"fn"', '"function"', '"' + String(t.fn) + '"'));
1082
+ break;
1083
+ case "effect":
1084
+ t.effect != null && typeof t.effect != "function" && console.error(le(me, t.name, '"effect"', '"function"', '"' + String(t.fn) + '"'));
1085
+ break;
1086
+ case "requires":
1087
+ t.requires != null && !Array.isArray(t.requires) && console.error(le(me, t.name, '"requires"', '"array"', '"' + String(t.requires) + '"'));
1088
+ break;
1089
+ case "requiresIfExists":
1090
+ Array.isArray(t.requiresIfExists) || console.error(le(me, t.name, '"requiresIfExists"', '"array"', '"' + String(t.requiresIfExists) + '"'));
1091
+ break;
1092
+ case "options":
1093
+ case "data":
1094
+ break;
1095
+ default:
1096
+ console.error('PopperJS: an invalid property has been provided to the "' + t.name + '" modifier, valid properties are ' + Wt.map(function(r) {
1097
+ return '"' + r + '"';
1098
+ }).join(", ") + '; but "' + n + '" was provided.');
1099
+ }
1100
+ t.requires && t.requires.forEach(function(r) {
1101
+ e.find(function(o) {
1102
+ return o.name === r;
1103
+ }) == null && console.error(le(Vi, String(t.name), r, r));
1104
+ });
1105
+ });
1106
+ });
1107
+ }
1108
+ function Bi(e, t) {
1109
+ var n = /* @__PURE__ */ new Set();
1110
+ return e.filter(function(r) {
1111
+ var o = t(r);
1112
+ if (!n.has(o))
1113
+ return n.add(o), !0;
1114
+ });
1115
+ }
1116
+ function $i(e) {
1117
+ var t = e.reduce(function(n, r) {
1118
+ var o = n[r.name];
1119
+ return n[r.name] = o ? Object.assign({}, o, r, {
1120
+ options: Object.assign({}, o.options, r.options),
1121
+ data: Object.assign({}, o.data, r.data)
1122
+ }) : r, n;
1123
+ }, {});
1124
+ return Object.keys(t).map(function(n) {
1125
+ return t[n];
1126
+ });
1127
+ }
1128
+ var qt = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.", Ui = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.", zt = {
1129
+ placement: "bottom",
1130
+ modifiers: [],
1131
+ strategy: "absolute"
1132
+ };
1133
+ function Yt() {
1134
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
1135
+ t[n] = arguments[n];
1136
+ return !t.some(function(r) {
1137
+ return !(r && typeof r.getBoundingClientRect == "function");
1138
+ });
1139
+ }
1140
+ function Hi(e) {
1141
+ e === void 0 && (e = {});
1142
+ var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, o = t.defaultOptions, a = o === void 0 ? zt : o;
1143
+ return function(c, u, f) {
1144
+ f === void 0 && (f = a);
1145
+ var p = {
1146
+ placement: "bottom",
1147
+ orderedModifiers: [],
1148
+ options: Object.assign({}, zt, a),
1149
+ modifiersData: {},
1150
+ elements: {
1151
+ reference: c,
1152
+ popper: u
1153
+ },
1154
+ attributes: {},
1155
+ styles: {}
1156
+ }, g = [], x = !1, m = {
1157
+ state: p,
1158
+ setOptions: function(T) {
1159
+ var R = typeof T == "function" ? T(p.options) : T;
1160
+ y(), p.options = Object.assign({}, a, p.options, R), p.scrollParents = {
1161
+ reference: we(c) ? Be(c) : c.contextElement ? Be(c.contextElement) : [],
1162
+ popper: Be(u)
1163
+ };
1164
+ var C = ji($i([].concat(r, p.options.modifiers)));
1165
+ if (p.orderedModifiers = C.filter(function(A) {
1166
+ return A.enabled;
1167
+ }), process.env.NODE_ENV !== "production") {
1168
+ var i = Bi([].concat(C, p.options.modifiers), function(A) {
1169
+ var L = A.name;
1170
+ return L;
1171
+ });
1172
+ if (_i(i), K(p.options.placement) === pt) {
1173
+ var E = p.orderedModifiers.find(function(A) {
1174
+ var L = A.name;
1175
+ return L === "flip";
1176
+ });
1177
+ E || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
1178
+ }
1179
+ var d = Z(u), D = d.marginTop, I = d.marginRight, M = d.marginBottom, P = d.marginLeft;
1180
+ [D, I, M, P].some(function(A) {
1181
+ return parseFloat(A);
1182
+ }) && console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', "between the popper and its reference element or boundary.", "To replicate margin, use the `offset` modifier, as well as", "the `padding` option in the `preventOverflow` and `flip`", "modifiers."].join(" "));
1183
+ }
1184
+ return w(), m.update();
1185
+ },
1186
+ // Sync update – it will always be executed, even if not necessary. This
1187
+ // is useful for low frequency updates where sync behavior simplifies the
1188
+ // logic.
1189
+ // For high frequency updates (e.g. `resize` and `scroll` events), always
1190
+ // prefer the async Popper#update method
1191
+ forceUpdate: function() {
1192
+ if (!x) {
1193
+ var T = p.elements, R = T.reference, C = T.popper;
1194
+ if (!Yt(R, C)) {
1195
+ process.env.NODE_ENV !== "production" && console.error(qt);
1196
+ return;
1197
+ }
1198
+ p.rects = {
1199
+ reference: Ii(R, ze(C), p.options.strategy === "fixed"),
1200
+ popper: Rt(C)
1201
+ }, p.reset = !1, p.placement = p.options.placement, p.orderedModifiers.forEach(function(A) {
1202
+ return p.modifiersData[A.name] = Object.assign({}, A.data);
1203
+ });
1204
+ for (var i = 0, E = 0; E < p.orderedModifiers.length; E++) {
1205
+ if (process.env.NODE_ENV !== "production" && (i += 1, i > 100)) {
1206
+ console.error(Ui);
1207
+ break;
1208
+ }
1209
+ if (p.reset === !0) {
1210
+ p.reset = !1, E = -1;
1211
+ continue;
1212
+ }
1213
+ var d = p.orderedModifiers[E], D = d.fn, I = d.options, M = I === void 0 ? {} : I, P = d.name;
1214
+ typeof D == "function" && (p = D({
1215
+ state: p,
1216
+ options: M,
1217
+ name: P,
1218
+ instance: m
1219
+ }) || p);
1220
+ }
1221
+ }
1222
+ },
1223
+ // Async and optimistically optimized update – it will not be executed if
1224
+ // not necessary (debounced to run at most once-per-tick)
1225
+ update: ki(function() {
1226
+ return new Promise(function(b) {
1227
+ m.forceUpdate(), b(p);
1228
+ });
1229
+ }),
1230
+ destroy: function() {
1231
+ y(), x = !0;
1232
+ }
1233
+ };
1234
+ if (!Yt(c, u))
1235
+ return process.env.NODE_ENV !== "production" && console.error(qt), m;
1236
+ m.setOptions(f).then(function(b) {
1237
+ !x && f.onFirstUpdate && f.onFirstUpdate(b);
1238
+ });
1239
+ function w() {
1240
+ p.orderedModifiers.forEach(function(b) {
1241
+ var T = b.name, R = b.options, C = R === void 0 ? {} : R, i = b.effect;
1242
+ if (typeof i == "function") {
1243
+ var E = i({
1244
+ state: p,
1245
+ name: T,
1246
+ instance: m,
1247
+ options: C
1248
+ }), d = function() {
1249
+ };
1250
+ g.push(E || d);
1251
+ }
1252
+ });
1253
+ }
1254
+ function y() {
1255
+ g.forEach(function(b) {
1256
+ return b();
1257
+ }), g = [];
1258
+ }
1259
+ return m;
1260
+ };
1261
+ }
1262
+ var Fi = [ui, Si, ai, On, Ai, bi, Li, ni, Ei], Wi = /* @__PURE__ */ Hi({
1263
+ defaultModifiers: Fi
1264
+ }), qi = "tippy-box", Cn = "tippy-content", zi = "tippy-backdrop", Pn = "tippy-arrow", Nn = "tippy-svg-arrow", ye = {
1265
+ passive: !0,
1266
+ capture: !0
1267
+ }, In = function() {
1268
+ return document.body;
1269
+ };
1270
+ function Yi(e, t) {
1271
+ return {}.hasOwnProperty.call(e, t);
1272
+ }
1273
+ function ht(e, t, n) {
1274
+ if (Array.isArray(e)) {
1275
+ var r = e[t];
1276
+ return r ?? (Array.isArray(n) ? n[t] : n);
1277
+ }
1278
+ return e;
1279
+ }
1280
+ function It(e, t) {
1281
+ var n = {}.toString.call(e);
1282
+ return n.indexOf("[object") === 0 && n.indexOf(t + "]") > -1;
1283
+ }
1284
+ function Mn(e, t) {
1285
+ return typeof e == "function" ? e.apply(void 0, t) : e;
1286
+ }
1287
+ function Xt(e, t) {
1288
+ if (t === 0)
1289
+ return e;
1290
+ var n;
1291
+ return function(r) {
1292
+ clearTimeout(n), n = setTimeout(function() {
1293
+ e(r);
1294
+ }, t);
1295
+ };
1296
+ }
1297
+ function Xi(e, t) {
1298
+ var n = Object.assign({}, e);
1299
+ return t.forEach(function(r) {
1300
+ delete n[r];
1301
+ }), n;
1302
+ }
1303
+ function Gi(e) {
1304
+ return e.split(/\s+/).filter(Boolean);
1305
+ }
1306
+ function De(e) {
1307
+ return [].concat(e);
1308
+ }
1309
+ function Gt(e, t) {
1310
+ e.indexOf(t) === -1 && e.push(t);
1311
+ }
1312
+ function Ki(e) {
1313
+ return e.filter(function(t, n) {
1314
+ return e.indexOf(t) === n;
1315
+ });
1316
+ }
1317
+ function Zi(e) {
1318
+ return e.split("-")[0];
1319
+ }
1320
+ function lt(e) {
1321
+ return [].slice.call(e);
1322
+ }
1323
+ function Kt(e) {
1324
+ return Object.keys(e).reduce(function(t, n) {
1325
+ return e[n] !== void 0 && (t[n] = e[n]), t;
1326
+ }, {});
1327
+ }
1328
+ function $e() {
1329
+ return document.createElement("div");
1330
+ }
1331
+ function Fe(e) {
1332
+ return ["Element", "Fragment"].some(function(t) {
1333
+ return It(e, t);
1334
+ });
1335
+ }
1336
+ function Ji(e) {
1337
+ return It(e, "NodeList");
1338
+ }
1339
+ function Qi(e) {
1340
+ return It(e, "MouseEvent");
1341
+ }
1342
+ function eo(e) {
1343
+ return !!(e && e._tippy && e._tippy.reference === e);
1344
+ }
1345
+ function to(e) {
1346
+ return Fe(e) ? [e] : Ji(e) ? lt(e) : Array.isArray(e) ? e : lt(document.querySelectorAll(e));
1347
+ }
1348
+ function mt(e, t) {
1349
+ e.forEach(function(n) {
1350
+ n && (n.style.transitionDuration = t + "ms");
1351
+ });
1352
+ }
1353
+ function Zt(e, t) {
1354
+ e.forEach(function(n) {
1355
+ n && n.setAttribute("data-state", t);
1356
+ });
1357
+ }
1358
+ function no(e) {
1359
+ var t, n = De(e), r = n[0];
1360
+ return r != null && (t = r.ownerDocument) != null && t.body ? r.ownerDocument : document;
1361
+ }
1362
+ function ro(e, t) {
1363
+ var n = t.clientX, r = t.clientY;
1364
+ return e.every(function(o) {
1365
+ var a = o.popperRect, l = o.popperState, c = o.props, u = c.interactiveBorder, f = Zi(l.placement), p = l.modifiersData.offset;
1366
+ if (!p)
1367
+ return !0;
1368
+ var g = f === "bottom" ? p.top.y : 0, x = f === "top" ? p.bottom.y : 0, m = f === "right" ? p.left.x : 0, w = f === "left" ? p.right.x : 0, y = a.top - r + g > u, b = r - a.bottom - x > u, T = a.left - n + m > u, R = n - a.right - w > u;
1369
+ return y || b || T || R;
1370
+ });
1371
+ }
1372
+ function gt(e, t, n) {
1373
+ var r = t + "EventListener";
1374
+ ["transitionend", "webkitTransitionEnd"].forEach(function(o) {
1375
+ e[r](o, n);
1376
+ });
1377
+ }
1378
+ function Jt(e, t) {
1379
+ for (var n = t; n; ) {
1380
+ var r;
1381
+ if (e.contains(n))
1382
+ return !0;
1383
+ n = n.getRootNode == null || (r = n.getRootNode()) == null ? void 0 : r.host;
1384
+ }
1385
+ return !1;
1386
+ }
1387
+ var te = {
1388
+ isTouch: !1
1389
+ }, Qt = 0;
1390
+ function io() {
1391
+ te.isTouch || (te.isTouch = !0, window.performance && document.addEventListener("mousemove", jn));
1392
+ }
1393
+ function jn() {
1394
+ var e = performance.now();
1395
+ e - Qt < 20 && (te.isTouch = !1, document.removeEventListener("mousemove", jn)), Qt = e;
1396
+ }
1397
+ function oo() {
1398
+ var e = document.activeElement;
1399
+ if (eo(e)) {
1400
+ var t = e._tippy;
1401
+ e.blur && !t.state.isVisible && e.blur();
1402
+ }
1403
+ }
1404
+ function ao() {
1405
+ document.addEventListener("touchstart", io, ye), window.addEventListener("blur", oo);
1406
+ }
1407
+ var so = typeof window < "u" && typeof document < "u", uo = so ? (
1408
+ // @ts-ignore
1409
+ !!window.msCrypto
1410
+ ) : !1;
1411
+ function Se(e) {
1412
+ var t = e === "destroy" ? "n already-" : " ";
1413
+ return [e + "() was called on a" + t + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
1414
+ }
1415
+ function en(e) {
1416
+ var t = /[ \t]{2,}/g, n = /^[ \t]*/gm;
1417
+ return e.replace(t, " ").replace(n, "").trim();
1418
+ }
1419
+ function co(e) {
1420
+ return en(`
1421
+ %ctippy.js
1422
+
1423
+ %c` + en(e) + `
1424
+
1425
+ %c👷‍ This is a development-only message. It will be removed in production.
1426
+ `);
1427
+ }
1428
+ function kn(e) {
1429
+ return [
1430
+ co(e),
1431
+ // title
1432
+ "color: #00C584; font-size: 1.3em; font-weight: bold;",
1433
+ // message
1434
+ "line-height: 1.5",
1435
+ // footer
1436
+ "color: #a6a095;"
1437
+ ];
1438
+ }
1439
+ var We;
1440
+ process.env.NODE_ENV !== "production" && lo();
1441
+ function lo() {
1442
+ We = /* @__PURE__ */ new Set();
1443
+ }
1444
+ function se(e, t) {
1445
+ if (e && !We.has(t)) {
1446
+ var n;
1447
+ We.add(t), (n = console).warn.apply(n, kn(t));
1448
+ }
1449
+ }
1450
+ function At(e, t) {
1451
+ if (e && !We.has(t)) {
1452
+ var n;
1453
+ We.add(t), (n = console).error.apply(n, kn(t));
1454
+ }
1455
+ }
1456
+ function po(e) {
1457
+ var t = !e, n = Object.prototype.toString.call(e) === "[object Object]" && !e.addEventListener;
1458
+ 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(" "));
1459
+ }
1460
+ var Vn = {
1461
+ animateFill: !1,
1462
+ followCursor: !1,
1463
+ inlinePositioning: !1,
1464
+ sticky: !1
1465
+ }, fo = {
1466
+ allowHTML: !1,
1467
+ animation: "fade",
1468
+ arrow: !0,
1469
+ content: "",
1470
+ inertia: !1,
1471
+ maxWidth: 350,
1472
+ role: "tooltip",
1473
+ theme: "",
1474
+ zIndex: 9999
1475
+ }, F = Object.assign({
1476
+ appendTo: In,
1477
+ aria: {
1478
+ content: "auto",
1479
+ expanded: "auto"
1480
+ },
1481
+ delay: 0,
1482
+ duration: [300, 250],
1483
+ getReferenceClientRect: null,
1484
+ hideOnClick: !0,
1485
+ ignoreAttributes: !1,
1486
+ interactive: !1,
1487
+ interactiveBorder: 2,
1488
+ interactiveDebounce: 0,
1489
+ moveTransition: "",
1490
+ offset: [0, 10],
1491
+ onAfterUpdate: function() {
1492
+ },
1493
+ onBeforeUpdate: function() {
1494
+ },
1495
+ onCreate: function() {
1496
+ },
1497
+ onDestroy: function() {
1498
+ },
1499
+ onHidden: function() {
1500
+ },
1501
+ onHide: function() {
1502
+ },
1503
+ onMount: function() {
1504
+ },
1505
+ onShow: function() {
1506
+ },
1507
+ onShown: function() {
1508
+ },
1509
+ onTrigger: function() {
1510
+ },
1511
+ onUntrigger: function() {
1512
+ },
1513
+ onClickOutside: function() {
1514
+ },
1515
+ placement: "top",
1516
+ plugins: [],
1517
+ popperOptions: {},
1518
+ render: null,
1519
+ showOnCreate: !1,
1520
+ touch: !0,
1521
+ trigger: "mouseenter focus",
1522
+ triggerTarget: null
1523
+ }, Vn, fo), vo = Object.keys(F), ho = function(t) {
1524
+ process.env.NODE_ENV !== "production" && Bn(t, []);
1525
+ var n = Object.keys(t);
1526
+ n.forEach(function(r) {
1527
+ F[r] = t[r];
1528
+ });
1529
+ };
1530
+ function _n(e) {
1531
+ var t = e.plugins || [], n = t.reduce(function(r, o) {
1532
+ var a = o.name, l = o.defaultValue;
1533
+ if (a) {
1534
+ var c;
1535
+ r[a] = e[a] !== void 0 ? e[a] : (c = F[a]) != null ? c : l;
1536
+ }
1537
+ return r;
1538
+ }, {});
1539
+ return Object.assign({}, e, n);
1540
+ }
1541
+ function mo(e, t) {
1542
+ var n = t ? Object.keys(_n(Object.assign({}, F, {
1543
+ plugins: t
1544
+ }))) : vo, r = n.reduce(function(o, a) {
1545
+ var l = (e.getAttribute("data-tippy-" + a) || "").trim();
1546
+ if (!l)
1547
+ return o;
1548
+ if (a === "content")
1549
+ o[a] = l;
1550
+ else
1551
+ try {
1552
+ o[a] = JSON.parse(l);
1553
+ } catch {
1554
+ o[a] = l;
1555
+ }
1556
+ return o;
1557
+ }, {});
1558
+ return r;
1559
+ }
1560
+ function tn(e, t) {
1561
+ var n = Object.assign({}, t, {
1562
+ content: Mn(t.content, [e])
1563
+ }, t.ignoreAttributes ? {} : mo(e, t.plugins));
1564
+ return n.aria = Object.assign({}, F.aria, n.aria), n.aria = {
1565
+ expanded: n.aria.expanded === "auto" ? t.interactive : n.aria.expanded,
1566
+ content: n.aria.content === "auto" ? t.interactive ? null : "describedby" : n.aria.content
1567
+ }, n;
1568
+ }
1569
+ function Bn(e, t) {
1570
+ e === void 0 && (e = {}), t === void 0 && (t = []);
1571
+ var n = Object.keys(e);
1572
+ n.forEach(function(r) {
1573
+ var o = Xi(F, Object.keys(Vn)), a = !Yi(o, r);
1574
+ a && (a = t.filter(function(l) {
1575
+ return l.name === r;
1576
+ }).length === 0), se(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.", `
1577
+
1578
+ `, `All props: https://atomiks.github.io/tippyjs/v6/all-props/
1579
+ `, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
1580
+ });
1581
+ }
1582
+ var go = function() {
1583
+ return "innerHTML";
1584
+ };
1585
+ function Tt(e, t) {
1586
+ e[go()] = t;
1587
+ }
1588
+ function nn(e) {
1589
+ var t = $e();
1590
+ return e === !0 ? t.className = Pn : (t.className = Nn, Fe(e) ? t.appendChild(e) : Tt(t, e)), t;
1591
+ }
1592
+ function rn(e, t) {
1593
+ Fe(t.content) ? (Tt(e, ""), e.appendChild(t.content)) : typeof t.content != "function" && (t.allowHTML ? Tt(e, t.content) : e.textContent = t.content);
1594
+ }
1595
+ function St(e) {
1596
+ var t = e.firstElementChild, n = lt(t.children);
1597
+ return {
1598
+ box: t,
1599
+ content: n.find(function(r) {
1600
+ return r.classList.contains(Cn);
1601
+ }),
1602
+ arrow: n.find(function(r) {
1603
+ return r.classList.contains(Pn) || r.classList.contains(Nn);
1604
+ }),
1605
+ backdrop: n.find(function(r) {
1606
+ return r.classList.contains(zi);
1607
+ })
1608
+ };
1609
+ }
1610
+ function $n(e) {
1611
+ var t = $e(), n = $e();
1612
+ n.className = qi, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
1613
+ var r = $e();
1614
+ r.className = Cn, r.setAttribute("data-state", "hidden"), rn(r, e.props), t.appendChild(n), n.appendChild(r), o(e.props, e.props);
1615
+ function o(a, l) {
1616
+ var c = St(t), u = c.box, f = c.content, p = c.arrow;
1617
+ l.theme ? u.setAttribute("data-theme", l.theme) : u.removeAttribute("data-theme"), typeof l.animation == "string" ? u.setAttribute("data-animation", l.animation) : u.removeAttribute("data-animation"), l.inertia ? u.setAttribute("data-inertia", "") : u.removeAttribute("data-inertia"), u.style.maxWidth = typeof l.maxWidth == "number" ? l.maxWidth + "px" : l.maxWidth, l.role ? u.setAttribute("role", l.role) : u.removeAttribute("role"), (a.content !== l.content || a.allowHTML !== l.allowHTML) && rn(f, e.props), l.arrow ? p ? a.arrow !== l.arrow && (u.removeChild(p), u.appendChild(nn(l.arrow))) : u.appendChild(nn(l.arrow)) : p && u.removeChild(p);
1618
+ }
1619
+ return {
1620
+ popper: t,
1621
+ onUpdate: o
1622
+ };
1623
+ }
1624
+ $n.$$tippy = !0;
1625
+ var yo = 1, at = [], yt = [];
1626
+ function bo(e, t) {
1627
+ var n = tn(e, Object.assign({}, F, _n(Kt(t)))), r, o, a, l = !1, c = !1, u = !1, f = !1, p, g, x, m = [], w = Xt(Ge, n.interactiveDebounce), y, b = yo++, T = null, R = Ki(n.plugins), C = {
1628
+ // Is the instance currently enabled?
1629
+ isEnabled: !0,
1630
+ // Is the tippy currently showing and not transitioning out?
1631
+ isVisible: !1,
1632
+ // Has the instance been destroyed?
1633
+ isDestroyed: !1,
1634
+ // Is the tippy currently mounted to the DOM?
1635
+ isMounted: !1,
1636
+ // Has the tippy finished transitioning in?
1637
+ isShown: !1
1638
+ }, i = {
1639
+ // properties
1640
+ id: b,
1641
+ reference: e,
1642
+ popper: $e(),
1643
+ popperInstance: T,
1644
+ props: n,
1645
+ state: C,
1646
+ plugins: R,
1647
+ // methods
1648
+ clearDelayTimeouts: et,
1649
+ setProps: tt,
1650
+ setContent: nt,
1651
+ show: Un,
1652
+ hide: Hn,
1653
+ hideWithInteractivity: Fn,
1654
+ enable: ke,
1655
+ disable: Qe,
1656
+ unmount: Wn,
1657
+ destroy: qn
1658
+ };
1659
+ if (!n.render)
1660
+ return process.env.NODE_ENV !== "production" && At(!0, "render() function has not been supplied."), i;
1661
+ var E = n.render(i), d = E.popper, D = E.onUpdate;
1662
+ d.setAttribute("data-tippy-root", ""), d.id = "tippy-" + i.id, i.popper = d, e._tippy = i, d._tippy = i;
1663
+ var I = R.map(function(s) {
1664
+ return s.fn(i);
1665
+ }), M = e.hasAttribute("aria-expanded");
1666
+ return xe(), Q(), V(), j("onCreate", [i]), n.showOnCreate && je(), d.addEventListener("mouseenter", function() {
1667
+ i.props.interactive && i.state.isVisible && i.clearDelayTimeouts();
1668
+ }), d.addEventListener("mouseleave", function() {
1669
+ i.props.interactive && i.props.trigger.indexOf("mouseenter") >= 0 && U().addEventListener("mousemove", w);
1670
+ }), i;
1671
+ function P() {
1672
+ var s = i.props.touch;
1673
+ return Array.isArray(s) ? s : [s, 0];
1674
+ }
1675
+ function A() {
1676
+ return P()[0] === "hold";
1677
+ }
1678
+ function L() {
1679
+ var s;
1680
+ return !!((s = i.props.render) != null && s.$$tippy);
1681
+ }
1682
+ function N() {
1683
+ return y || e;
1684
+ }
1685
+ function U() {
1686
+ var s = N().parentNode;
1687
+ return s ? no(s) : document;
1688
+ }
1689
+ function H() {
1690
+ return St(d);
1691
+ }
1692
+ function k(s) {
1693
+ return i.state.isMounted && !i.state.isVisible || te.isTouch || p && p.type === "focus" ? 0 : ht(i.props.delay, s ? 0 : 1, F.delay);
1694
+ }
1695
+ function V(s) {
1696
+ s === void 0 && (s = !1), d.style.pointerEvents = i.props.interactive && !s ? "" : "none", d.style.zIndex = "" + i.props.zIndex;
1697
+ }
1698
+ function j(s, v, h) {
1699
+ if (h === void 0 && (h = !0), I.forEach(function(O) {
1700
+ O[s] && O[s].apply(O, v);
1701
+ }), h) {
1702
+ var S;
1703
+ (S = i.props)[s].apply(S, v);
1704
+ }
1705
+ }
1706
+ function J() {
1707
+ var s = i.props.aria;
1708
+ if (s.content) {
1709
+ var v = "aria-" + s.content, h = d.id, S = De(i.props.triggerTarget || e);
1710
+ S.forEach(function(O) {
1711
+ var _ = O.getAttribute(v);
1712
+ if (i.state.isVisible)
1713
+ O.setAttribute(v, _ ? _ + " " + h : h);
1714
+ else {
1715
+ var z = _ && _.replace(h, "").trim();
1716
+ z ? O.setAttribute(v, z) : O.removeAttribute(v);
1717
+ }
1718
+ });
1719
+ }
1720
+ }
1721
+ function Q() {
1722
+ if (!(M || !i.props.aria.expanded)) {
1723
+ var s = De(i.props.triggerTarget || e);
1724
+ s.forEach(function(v) {
1725
+ i.props.interactive ? v.setAttribute("aria-expanded", i.state.isVisible && v === N() ? "true" : "false") : v.removeAttribute("aria-expanded");
1726
+ });
1727
+ }
1728
+ }
1729
+ function fe() {
1730
+ U().removeEventListener("mousemove", w), at = at.filter(function(s) {
1731
+ return s !== w;
1732
+ });
1733
+ }
1734
+ function ee(s) {
1735
+ if (!(te.isTouch && (u || s.type === "mousedown"))) {
1736
+ var v = s.composedPath && s.composedPath()[0] || s.target;
1737
+ if (!(i.props.interactive && Jt(d, v))) {
1738
+ if (De(i.props.triggerTarget || e).some(function(h) {
1739
+ return Jt(h, v);
1740
+ })) {
1741
+ if (te.isTouch || i.state.isVisible && i.props.trigger.indexOf("click") >= 0)
1742
+ return;
1743
+ } else
1744
+ j("onClickOutside", [i, s]);
1745
+ i.props.hideOnClick === !0 && (i.clearDelayTimeouts(), i.hide(), c = !0, setTimeout(function() {
1746
+ c = !1;
1747
+ }), i.state.isMounted || ie());
1748
+ }
1749
+ }
1750
+ }
1751
+ function de() {
1752
+ u = !0;
1753
+ }
1754
+ function re() {
1755
+ u = !1;
1756
+ }
1757
+ function G() {
1758
+ var s = U();
1759
+ s.addEventListener("mousedown", ee, !0), s.addEventListener("touchend", ee, ye), s.addEventListener("touchstart", re, ye), s.addEventListener("touchmove", de, ye);
1760
+ }
1761
+ function ie() {
1762
+ var s = U();
1763
+ s.removeEventListener("mousedown", ee, !0), s.removeEventListener("touchend", ee, ye), s.removeEventListener("touchstart", re, ye), s.removeEventListener("touchmove", de, ye);
1764
+ }
1765
+ function Ee(s, v) {
1766
+ Oe(s, function() {
1767
+ !i.state.isVisible && d.parentNode && d.parentNode.contains(d) && v();
1768
+ });
1769
+ }
1770
+ function oe(s, v) {
1771
+ Oe(s, v);
1772
+ }
1773
+ function Oe(s, v) {
1774
+ var h = H().box;
1775
+ function S(O) {
1776
+ O.target === h && (gt(h, "remove", S), v());
1777
+ }
1778
+ if (s === 0)
1779
+ return v();
1780
+ gt(h, "remove", g), gt(h, "add", S), g = S;
1781
+ }
1782
+ function ue(s, v, h) {
1783
+ h === void 0 && (h = !1);
1784
+ var S = De(i.props.triggerTarget || e);
1785
+ S.forEach(function(O) {
1786
+ O.addEventListener(s, v, h), m.push({
1787
+ node: O,
1788
+ eventType: s,
1789
+ handler: v,
1790
+ options: h
1791
+ });
1792
+ });
1793
+ }
1794
+ function xe() {
1795
+ A() && (ue("touchstart", Ne, {
1796
+ passive: !0
1797
+ }), ue("touchend", Ke, {
1798
+ passive: !0
1799
+ })), Gi(i.props.trigger).forEach(function(s) {
1800
+ if (s !== "manual")
1801
+ switch (ue(s, Ne), s) {
1802
+ case "mouseenter":
1803
+ ue("mouseleave", Ke);
1804
+ break;
1805
+ case "focus":
1806
+ ue(uo ? "focusout" : "blur", Ie);
1807
+ break;
1808
+ case "focusin":
1809
+ ue("focusout", Ie);
1810
+ break;
1811
+ }
1812
+ });
1813
+ }
1814
+ function Xe() {
1815
+ m.forEach(function(s) {
1816
+ var v = s.node, h = s.eventType, S = s.handler, O = s.options;
1817
+ v.removeEventListener(h, S, O);
1818
+ }), m = [];
1819
+ }
1820
+ function Ne(s) {
1821
+ var v, h = !1;
1822
+ if (!(!i.state.isEnabled || Me(s) || c)) {
1823
+ var S = ((v = p) == null ? void 0 : v.type) === "focus";
1824
+ p = s, y = s.currentTarget, Q(), !i.state.isVisible && Qi(s) && at.forEach(function(O) {
1825
+ return O(s);
1826
+ }), s.type === "click" && (i.props.trigger.indexOf("mouseenter") < 0 || l) && i.props.hideOnClick !== !1 && i.state.isVisible ? h = !0 : je(s), s.type === "click" && (l = !h), h && !S && ve(s);
1827
+ }
1828
+ }
1829
+ function Ge(s) {
1830
+ var v = s.target, h = N().contains(v) || d.contains(v);
1831
+ if (!(s.type === "mousemove" && h)) {
1832
+ var S = ce().concat(d).map(function(O) {
1833
+ var _, z = O._tippy, Ae = (_ = z.popperInstance) == null ? void 0 : _.state;
1834
+ return Ae ? {
1835
+ popperRect: O.getBoundingClientRect(),
1836
+ popperState: Ae,
1837
+ props: n
1838
+ } : null;
1839
+ }).filter(Boolean);
1840
+ ro(S, s) && (fe(), ve(s));
1841
+ }
1842
+ }
1843
+ function Ke(s) {
1844
+ var v = Me(s) || i.props.trigger.indexOf("click") >= 0 && l;
1845
+ if (!v) {
1846
+ if (i.props.interactive) {
1847
+ i.hideWithInteractivity(s);
1848
+ return;
1849
+ }
1850
+ ve(s);
1851
+ }
1852
+ }
1853
+ function Ie(s) {
1854
+ i.props.trigger.indexOf("focusin") < 0 && s.target !== N() || i.props.interactive && s.relatedTarget && d.contains(s.relatedTarget) || ve(s);
1855
+ }
1856
+ function Me(s) {
1857
+ return te.isTouch ? A() !== s.type.indexOf("touch") >= 0 : !1;
1858
+ }
1859
+ function Ze() {
1860
+ Je();
1861
+ var s = i.props, v = s.popperOptions, h = s.placement, S = s.offset, O = s.getReferenceClientRect, _ = s.moveTransition, z = L() ? St(d).arrow : null, Ae = O ? {
1862
+ getBoundingClientRect: O,
1863
+ contextElement: O.contextElement || N()
1864
+ } : e, Mt = {
1865
+ name: "$$tippy",
1866
+ enabled: !0,
1867
+ phase: "beforeWrite",
1868
+ requires: ["computeStyles"],
1869
+ fn: function(rt) {
1870
+ var Te = rt.state;
1871
+ if (L()) {
1872
+ var zn = H(), vt = zn.box;
1873
+ ["placement", "reference-hidden", "escaped"].forEach(function(it) {
1874
+ it === "placement" ? vt.setAttribute("data-placement", Te.placement) : Te.attributes.popper["data-popper-" + it] ? vt.setAttribute("data-" + it, "") : vt.removeAttribute("data-" + it);
1875
+ }), Te.attributes.popper = {};
1876
+ }
1877
+ }
1878
+ }, he = [{
1879
+ name: "offset",
1880
+ options: {
1881
+ offset: S
1882
+ }
1883
+ }, {
1884
+ name: "preventOverflow",
1885
+ options: {
1886
+ padding: {
1887
+ top: 2,
1888
+ bottom: 2,
1889
+ left: 5,
1890
+ right: 5
1891
+ }
1892
+ }
1893
+ }, {
1894
+ name: "flip",
1895
+ options: {
1896
+ padding: 5
1897
+ }
1898
+ }, {
1899
+ name: "computeStyles",
1900
+ options: {
1901
+ adaptive: !_
1902
+ }
1903
+ }, Mt];
1904
+ L() && z && he.push({
1905
+ name: "arrow",
1906
+ options: {
1907
+ element: z,
1908
+ padding: 3
1909
+ }
1910
+ }), he.push.apply(he, (v == null ? void 0 : v.modifiers) || []), i.popperInstance = Wi(Ae, d, Object.assign({}, v, {
1911
+ placement: h,
1912
+ onFirstUpdate: x,
1913
+ modifiers: he
1914
+ }));
1915
+ }
1916
+ function Je() {
1917
+ i.popperInstance && (i.popperInstance.destroy(), i.popperInstance = null);
1918
+ }
1919
+ function ae() {
1920
+ var s = i.props.appendTo, v, h = N();
1921
+ i.props.interactive && s === In || s === "parent" ? v = h.parentNode : v = Mn(s, [h]), v.contains(d) || v.appendChild(d), i.state.isMounted = !0, Ze(), process.env.NODE_ENV !== "production" && se(i.props.interactive && s === F.appendTo && h.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.", `
1922
+
1923
+ `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
1924
+
1925
+ `, "Specifying `appendTo: document.body` silences this warning, but it", "assumes you are using a focus management solution to handle", "keyboard navigation.", `
1926
+
1927
+ `, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
1928
+ }
1929
+ function ce() {
1930
+ return lt(d.querySelectorAll("[data-tippy-root]"));
1931
+ }
1932
+ function je(s) {
1933
+ i.clearDelayTimeouts(), s && j("onTrigger", [i, s]), G();
1934
+ var v = k(!0), h = P(), S = h[0], O = h[1];
1935
+ te.isTouch && S === "hold" && O && (v = O), v ? r = setTimeout(function() {
1936
+ i.show();
1937
+ }, v) : i.show();
1938
+ }
1939
+ function ve(s) {
1940
+ if (i.clearDelayTimeouts(), j("onUntrigger", [i, s]), !i.state.isVisible) {
1941
+ ie();
1942
+ return;
1943
+ }
1944
+ if (!(i.props.trigger.indexOf("mouseenter") >= 0 && i.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(s.type) >= 0 && l)) {
1945
+ var v = k(!1);
1946
+ v ? o = setTimeout(function() {
1947
+ i.state.isVisible && i.hide();
1948
+ }, v) : a = requestAnimationFrame(function() {
1949
+ i.hide();
1950
+ });
1951
+ }
1952
+ }
1953
+ function ke() {
1954
+ i.state.isEnabled = !0;
1955
+ }
1956
+ function Qe() {
1957
+ i.hide(), i.state.isEnabled = !1;
1958
+ }
1959
+ function et() {
1960
+ clearTimeout(r), clearTimeout(o), cancelAnimationFrame(a);
1961
+ }
1962
+ function tt(s) {
1963
+ if (process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, Se("setProps")), !i.state.isDestroyed) {
1964
+ j("onBeforeUpdate", [i, s]), Xe();
1965
+ var v = i.props, h = tn(e, Object.assign({}, v, Kt(s), {
1966
+ ignoreAttributes: !0
1967
+ }));
1968
+ i.props = h, xe(), v.interactiveDebounce !== h.interactiveDebounce && (fe(), w = Xt(Ge, h.interactiveDebounce)), v.triggerTarget && !h.triggerTarget ? De(v.triggerTarget).forEach(function(S) {
1969
+ S.removeAttribute("aria-expanded");
1970
+ }) : h.triggerTarget && e.removeAttribute("aria-expanded"), Q(), V(), D && D(v, h), i.popperInstance && (Ze(), ce().forEach(function(S) {
1971
+ requestAnimationFrame(S._tippy.popperInstance.forceUpdate);
1972
+ })), j("onAfterUpdate", [i, s]);
1973
+ }
1974
+ }
1975
+ function nt(s) {
1976
+ i.setProps({
1977
+ content: s
1978
+ });
1979
+ }
1980
+ function Un() {
1981
+ process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, Se("show"));
1982
+ var s = i.state.isVisible, v = i.state.isDestroyed, h = !i.state.isEnabled, S = te.isTouch && !i.props.touch, O = ht(i.props.duration, 0, F.duration);
1983
+ if (!(s || v || h || S) && !N().hasAttribute("disabled") && (j("onShow", [i], !1), i.props.onShow(i) !== !1)) {
1984
+ if (i.state.isVisible = !0, L() && (d.style.visibility = "visible"), V(), G(), i.state.isMounted || (d.style.transition = "none"), L()) {
1985
+ var _ = H(), z = _.box, Ae = _.content;
1986
+ mt([z, Ae], 0);
1987
+ }
1988
+ x = function() {
1989
+ var he;
1990
+ if (!(!i.state.isVisible || f)) {
1991
+ if (f = !0, d.offsetHeight, d.style.transition = i.props.moveTransition, L() && i.props.animation) {
1992
+ var dt = H(), rt = dt.box, Te = dt.content;
1993
+ mt([rt, Te], O), Zt([rt, Te], "visible");
1994
+ }
1995
+ J(), Q(), Gt(yt, i), (he = i.popperInstance) == null || he.forceUpdate(), j("onMount", [i]), i.props.animation && L() && oe(O, function() {
1996
+ i.state.isShown = !0, j("onShown", [i]);
1997
+ });
1998
+ }
1999
+ }, ae();
2000
+ }
2001
+ }
2002
+ function Hn() {
2003
+ process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, Se("hide"));
2004
+ var s = !i.state.isVisible, v = i.state.isDestroyed, h = !i.state.isEnabled, S = ht(i.props.duration, 1, F.duration);
2005
+ if (!(s || v || h) && (j("onHide", [i], !1), i.props.onHide(i) !== !1)) {
2006
+ if (i.state.isVisible = !1, i.state.isShown = !1, f = !1, l = !1, L() && (d.style.visibility = "hidden"), fe(), ie(), V(!0), L()) {
2007
+ var O = H(), _ = O.box, z = O.content;
2008
+ i.props.animation && (mt([_, z], S), Zt([_, z], "hidden"));
2009
+ }
2010
+ J(), Q(), i.props.animation ? L() && Ee(S, i.unmount) : i.unmount();
2011
+ }
2012
+ }
2013
+ function Fn(s) {
2014
+ process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, Se("hideWithInteractivity")), U().addEventListener("mousemove", w), Gt(at, w), w(s);
2015
+ }
2016
+ function Wn() {
2017
+ process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, Se("unmount")), i.state.isVisible && i.hide(), i.state.isMounted && (Je(), ce().forEach(function(s) {
2018
+ s._tippy.unmount();
2019
+ }), d.parentNode && d.parentNode.removeChild(d), yt = yt.filter(function(s) {
2020
+ return s !== i;
2021
+ }), i.state.isMounted = !1, j("onHidden", [i]));
2022
+ }
2023
+ function qn() {
2024
+ process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, Se("destroy")), !i.state.isDestroyed && (i.clearDelayTimeouts(), i.unmount(), Xe(), delete e._tippy, i.state.isDestroyed = !0, j("onDestroy", [i]));
2025
+ }
2026
+ }
2027
+ function Ye(e, t) {
2028
+ t === void 0 && (t = {});
2029
+ var n = F.plugins.concat(t.plugins || []);
2030
+ process.env.NODE_ENV !== "production" && (po(e), Bn(t, n)), ao();
2031
+ var r = Object.assign({}, t, {
2032
+ plugins: n
2033
+ }), o = to(e);
2034
+ if (process.env.NODE_ENV !== "production") {
2035
+ var a = Fe(r.content), l = o.length > 1;
2036
+ se(a && l, ["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.", `
2037
+
2038
+ `, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
2039
+
2040
+ `, `1) content: element.innerHTML
2041
+ `, "2) content: () => element.cloneNode(true)"].join(" "));
2042
+ }
2043
+ var c = o.reduce(function(u, f) {
2044
+ var p = f && bo(f, r);
2045
+ return p && u.push(p), u;
2046
+ }, []);
2047
+ return Fe(e) ? c[0] : c;
2048
+ }
2049
+ Ye.defaultProps = F;
2050
+ Ye.setDefaultProps = ho;
2051
+ Ye.currentInput = te;
2052
+ Object.assign({}, On, {
2053
+ effect: function(t) {
2054
+ var n = t.state, r = {
2055
+ popper: {
2056
+ position: n.options.strategy,
2057
+ left: "0",
2058
+ top: "0",
2059
+ margin: "0"
2060
+ },
2061
+ arrow: {
2062
+ position: "absolute"
2063
+ },
2064
+ reference: {}
2065
+ };
2066
+ Object.assign(n.elements.popper.style, r.popper), n.styles = r, n.elements.arrow && Object.assign(n.elements.arrow.style, r.arrow);
2067
+ }
2068
+ });
2069
+ var wo = {
2070
+ name: "sticky",
2071
+ defaultValue: !1,
2072
+ fn: function(t) {
2073
+ var n = t.reference, r = t.popper;
2074
+ function o() {
2075
+ return t.popperInstance ? t.popperInstance.state.elements.reference : n;
2076
+ }
2077
+ function a(f) {
2078
+ return t.props.sticky === !0 || t.props.sticky === f;
2079
+ }
2080
+ var l = null, c = null;
2081
+ function u() {
2082
+ var f = a("reference") ? o().getBoundingClientRect() : null, p = a("popper") ? r.getBoundingClientRect() : null;
2083
+ (f && on(l, f) || p && on(c, p)) && t.popperInstance && t.popperInstance.update(), l = f, c = p, t.state.isMounted && requestAnimationFrame(u);
2084
+ }
2085
+ return {
2086
+ onMount: function() {
2087
+ t.props.sticky && u();
2088
+ }
2089
+ };
2090
+ }
2091
+ };
2092
+ function on(e, t) {
2093
+ return e && t ? e.top !== t.top || e.right !== t.right || e.bottom !== t.bottom || e.left !== t.left : !0;
2094
+ }
2095
+ Ye.setDefaultProps({
2096
+ render: $n
2097
+ });
2098
+ const Eo = (e) => ({
2099
+ name: "arrowDetected",
2100
+ enabled: !0,
2101
+ phase: "main",
2102
+ fn: e,
2103
+ requiresIfExists: ["offset"]
2104
+ }), Oo = [
2105
+ "bottom",
2106
+ "bottom-start",
2107
+ "bottom-end",
2108
+ "right",
2109
+ "right-start",
2110
+ "right-end",
2111
+ "left",
2112
+ "left-start",
2113
+ "left-end",
2114
+ "top",
2115
+ "top-start",
2116
+ "top-end"
2117
+ ], xo = [!0, !1, "reference", "popper"], Ao = (e, t) => {
2118
+ const { contentElement: n } = { ...t };
2119
+ return delete t.contentElement, Ye(e, {
2120
+ ...t,
2121
+ plugins: [wo],
2122
+ render: () => Ro(n)
2123
+ });
2124
+ }, To = ({
2125
+ boundary: e = "clippingParents",
2126
+ fallbackPlacements: t = [],
2127
+ onChangePlacement: n = () => {
2128
+ },
2129
+ hasHideModifierEnabled: r = !1,
2130
+ // If set to false the dialog will display over top of the anchor when there is insufficient space.
2131
+ // if set to true it will never move from its position relative to the anchor and will clip instead.
2132
+ tether: o = !0
2133
+ } = {}) => ({
2134
+ modifiers: [
2135
+ {
2136
+ name: "flip",
2137
+ options: {
2138
+ fallbackPlacements: t,
2139
+ boundary: e
2140
+ }
2141
+ },
2142
+ {
2143
+ name: "hide",
2144
+ enabled: r
2145
+ },
2146
+ {
2147
+ name: "preventOverflow",
2148
+ options: {
2149
+ altAxis: !o,
2150
+ tether: o
2151
+ }
2152
+ },
2153
+ Eo(({ state: a }) => {
2154
+ n(a.placement);
2155
+ })
2156
+ ]
2157
+ }), So = (e) => {
2158
+ const t = document.createElement("span");
2159
+ return t.innerText = e.innerText || "", e.innerText = "", e.appendChild(t), t;
2160
+ }, Do = (e) => {
2161
+ const t = e == null ? void 0 : e.children[0];
2162
+ return t || So(e);
2163
+ }, Ro = (e) => {
2164
+ const t = document.createElement("div");
2165
+ return t.className = "tippy-box d-ps-absolute", t.appendChild(e), {
2166
+ popper: t
2167
+ };
2168
+ }, Lo = [
2169
+ ...Oo
2170
+ ], Co = 300, Po = {
2171
+ hover: "d-tooltip--hover",
2172
+ show: "d-tooltip--show",
2173
+ inverted: "d-tooltip--inverted",
2174
+ hide: "d-tooltip--hide"
2175
+ }, No = [
2176
+ ...xo
2177
+ ], Ho = [!0, !1, "toggle"];
2178
+ const Io = {
2179
+ // eslint-disable-next-line vue/multi-word-component-names
2180
+ name: "DtTooltip",
2181
+ components: {
2182
+ DtLazyShow: kr
2183
+ },
2184
+ props: {
2185
+ /**
2186
+ * The id of the tooltip
2187
+ */
2188
+ id: {
2189
+ type: String,
2190
+ default() {
2191
+ return cn();
2192
+ }
2193
+ },
2194
+ /**
2195
+ * If the popover does not fit in the direction described by "placement",
2196
+ * it will attempt to change its direction to the "fallbackPlacements"
2197
+ * if defined, otherwise it will automatically position to a new location
2198
+ * as it sees best fit. See
2199
+ * <a
2200
+ * class="d-link"
2201
+ * href="https://popper.js.org/docs/v2/modifiers/flip/#fallbackplacements"
2202
+ * target="_blank"
2203
+ * >
2204
+ * Popper.js docs
2205
+ * </a>
2206
+ * */
2207
+ fallbackPlacements: {
2208
+ type: Array,
2209
+ default: () => ["auto"]
2210
+ },
2211
+ /**
2212
+ * If true, applies inverted styles to the tooltip
2213
+ * @values true, false
2214
+ */
2215
+ inverted: {
2216
+ type: Boolean,
2217
+ default: !1
2218
+ },
2219
+ /**
2220
+ * Displaces the tooltip from its reference element
2221
+ * by the specified number of pixels. See
2222
+ * <a
2223
+ * class="d-link"
2224
+ * href="https://atomiks.github.io/tippyjs/v6/all-props/#offset"
2225
+ * target="_blank"
2226
+ * >
2227
+ * Tippy.js docs
2228
+ * </a>
2229
+ */
2230
+ offset: {
2231
+ type: Array,
2232
+ default: () => [0, -4]
2233
+ },
2234
+ /**
2235
+ * The direction the popover displays relative to the anchor. See
2236
+ * <a
2237
+ * class="d-link"
2238
+ * href="https://atomiks.github.io/tippyjs/v6/all-props/#placement"
2239
+ * target="_blank"
2240
+ * >
2241
+ * Tippy.js docs
2242
+ * </a>
2243
+ * @values top, top-start, top-end,
2244
+ * right, right-start, right-end,
2245
+ * left, left-start, left-end,
2246
+ * bottom, bottom-start, bottom-end,
2247
+ * auto, auto-start, auto-end
2248
+ */
2249
+ placement: {
2250
+ type: String,
2251
+ default: "top",
2252
+ validator(e) {
2253
+ return Lo.includes(e);
2254
+ }
2255
+ },
2256
+ /**
2257
+ * If the tooltip sticks to the anchor. This is usually not needed, but can be needed
2258
+ * if the reference element's position is animating, or to automatically update the popover
2259
+ * position in those cases the DOM layout changes the reference element's position.
2260
+ * `true` enables it, `reference` only checks the "reference" rect for changes and `popper` only
2261
+ * checks the "popper" rect for changes. See
2262
+ * <a
2263
+ * class="d-link"
2264
+ * href="https://atomiks.github.io/tippyjs/v6/all-props/#sticky"
2265
+ * target="_blank"
2266
+ * >
2267
+ * Tippy.js docs
2268
+ * </a>
2269
+ * @values true, false, reference, popper
2270
+ */
2271
+ sticky: {
2272
+ type: [Boolean, String],
2273
+ default: !1,
2274
+ validator: (e) => No.includes(e)
2275
+ },
2276
+ /**
2277
+ * Additional css classes for the tooltip content element.
2278
+ * Can accept all of String, Object, and Array, i.e. has the
2279
+ * same api as Vue's built-in handling of the class attribute.
2280
+ */
2281
+ contentClass: {
2282
+ type: [String, Object, Array],
2283
+ default: ""
2284
+ },
2285
+ /**
2286
+ * A provided message for the tooltip content
2287
+ */
2288
+ message: {
2289
+ type: String,
2290
+ default: ""
2291
+ },
2292
+ /**
2293
+ * Controls whether hover/focus causes the tooltip to appear.
2294
+ * Cannot be combined with the show prop. show value will be ignored.
2295
+ * by default this is true, if you override with false, the tooltip will never show up.
2296
+ */
2297
+ enabled: {
2298
+ type: Boolean,
2299
+ default: !0
2300
+ },
2301
+ /**
2302
+ * Controls whether the tooltip is shown. Leaving this null will have the tooltip trigger on mouseover by default.
2303
+ * If you set this value, the default mouseover behavior will be disabled and you can control it as you need.
2304
+ * Supports .sync modifier
2305
+ * @values null, true, false
2306
+ */
2307
+ show: {
2308
+ type: Boolean,
2309
+ default: null
2310
+ },
2311
+ /**
2312
+ * Named transition when the content display is toggled.
2313
+ * @see DtLazyShow
2314
+ */
2315
+ transition: {
2316
+ type: String,
2317
+ default: "fade"
2318
+ },
2319
+ /**
2320
+ * Whether to apply transition on initial render in the content lazy show component.
2321
+ * @values true, false
2322
+ */
2323
+ contentAppear: {
2324
+ type: Boolean,
2325
+ default: !1
2326
+ },
2327
+ /**
2328
+ * Whether the tooltip will have a delay when being focused or moused over.
2329
+ * @values true, false
2330
+ */
2331
+ delay: {
2332
+ type: Boolean,
2333
+ default: !0
2334
+ },
2335
+ /**
2336
+ * External anchor id to use in those cases the anchor can't be provided via the slot.
2337
+ * For instance, using the combobox's input as the anchor for the popover.
2338
+ */
2339
+ externalAnchor: {
2340
+ type: String,
2341
+ default: null
2342
+ }
2343
+ },
2344
+ emits: [
2345
+ /**
2346
+ * Event fired to sync the show prop with the parent component
2347
+ * @event update:show
2348
+ */
2349
+ "update:show",
2350
+ /**
2351
+ * Emitted when tooltip is shown or hidden
2352
+ *
2353
+ * @event shown
2354
+ * @type {Boolean}
2355
+ */
2356
+ "shown"
2357
+ ],
2358
+ data() {
2359
+ return {
2360
+ TOOLTIP_KIND_MODIFIERS: Po,
2361
+ hasSlotContent: br,
2362
+ tip: null,
2363
+ inTimer: null,
2364
+ // Internal state for whether the tooltip is shown. Changing the prop
2365
+ // will update this.
2366
+ isShown: !1,
2367
+ // this is where the placement currently is, this can be different than
2368
+ // the placement prop when there is not enough available room for the tip
2369
+ // to display and it uses a fallback placement.
2370
+ currentPlacement: this.placement
2371
+ };
2372
+ },
2373
+ computed: {
2374
+ // whether the tooltip is visible or not.
2375
+ isVisible() {
2376
+ return this.isShown && this.enabled && (!!this.message.trim() || !!this.$slots.default);
2377
+ },
2378
+ tooltipListeners() {
2379
+ return {
2380
+ "after-leave": () => {
2381
+ this.onLeaveTransitionComplete();
2382
+ },
2383
+ "after-enter": () => {
2384
+ this.onEnterTransitionComplete();
2385
+ }
2386
+ };
2387
+ },
2388
+ tippyProps() {
2389
+ return {
2390
+ offset: this.offset,
2391
+ interactive: !1,
2392
+ trigger: "manual",
2393
+ placement: this.placement,
2394
+ sticky: this.sticky,
2395
+ popperOptions: To({
2396
+ fallbackPlacements: this.fallbackPlacements,
2397
+ hasHideModifierEnabled: !0,
2398
+ onChangePlacement: this.onChangePlacement
2399
+ })
2400
+ };
2401
+ },
2402
+ anchor() {
2403
+ return this.externalAnchor ? document.body.querySelector(this.externalAnchor) : Do(this.$refs.anchor);
2404
+ }
2405
+ },
2406
+ watch: {
2407
+ tippyProps: {
2408
+ handler: "setProps",
2409
+ deep: !0
2410
+ },
2411
+ show: {
2412
+ handler: function(e) {
2413
+ e !== null && (this.isShown = e);
2414
+ },
2415
+ immediate: !0
2416
+ },
2417
+ isShown(e) {
2418
+ e ? (this.setProps(), this.tip.show()) : this.tip.hide();
2419
+ },
2420
+ sticky(e) {
2421
+ this.tip.setProps({
2422
+ sticky: e
2423
+ });
2424
+ }
2425
+ },
2426
+ mounted() {
2427
+ !this.enabled && this.show != null && (console.warn("Tooltip: You cannot use both the enabled and show props at the same time."), console.warn("The show prop will be ignored.")), this.externalAnchor && this.addExternalAnchorEventListeners(), this.tip = Ao(this.anchor, this.initOptions()), this.isShown && this.tip.show();
2428
+ },
2429
+ beforeUnmount() {
2430
+ var e;
2431
+ this.externalAnchor && this.removeExternalAnchorEventListeners(), this.tip && ((e = this.tip) == null || e.destroy());
2432
+ },
2433
+ methods: {
2434
+ calculateAnchorZindex() {
2435
+ return this.$el.getRootNode().querySelector('.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"]') || // Special case because we don't have any dialtone drawer component yet. Render at 651 when
2436
+ // anchor of popover is within a drawer.
2437
+ this.$el.closest(".d-zi-drawer") ? 651 : 400;
2438
+ },
2439
+ hasVisibleFocus() {
2440
+ return this.anchor.matches(":focus-visible");
2441
+ },
2442
+ onEnterAnchor(e) {
2443
+ this.delay ? this.inTimer = setTimeout((function(t) {
2444
+ this.triggerShow(t);
2445
+ }).bind(this, e), Co) : this.triggerShow(e);
2446
+ },
2447
+ triggerShow(e) {
2448
+ e.type === "focusin" ? this.show === null && this.hasVisibleFocus() && (this.isShown = !0) : this.show === null && (this.isShown = !0);
2449
+ },
2450
+ onLeaveAnchor(e) {
2451
+ e.type === "keydown" && e.code !== "Escape" || (clearTimeout(this.inTimer), this.triggerHide());
2452
+ },
2453
+ triggerHide() {
2454
+ this.show === null && (this.isShown = !1);
2455
+ },
2456
+ onChangePlacement(e) {
2457
+ this.currentPlacement = e;
2458
+ },
2459
+ onLeaveTransitionComplete() {
2460
+ var e;
2461
+ (e = this.tip) == null || e.unmount(), this.$emit("shown", !1), this.show !== null && this.$emit("update:show", !1);
2462
+ },
2463
+ onEnterTransitionComplete() {
2464
+ this.$emit("shown", !0), this.show !== null && this.$emit("update:show", !0);
2465
+ },
2466
+ setProps() {
2467
+ this.tip && this.tip.setProps && this.tip.setProps({
2468
+ ...this.tippyProps,
2469
+ zIndex: this.calculateAnchorZindex()
2470
+ });
2471
+ },
2472
+ onMount() {
2473
+ this.setProps();
2474
+ },
2475
+ initOptions() {
2476
+ return {
2477
+ contentElement: this.$refs.content.$el,
2478
+ allowHTML: !0,
2479
+ zIndex: this.calculateAnchorZindex(),
2480
+ onMount: this.onMount,
2481
+ ...this.tippyProps
2482
+ };
2483
+ },
2484
+ addExternalAnchorEventListeners() {
2485
+ ["focusin", "mouseenter"].forEach((e) => {
2486
+ this.anchor.addEventListener(e, (t) => this.onEnterAnchor(t));
2487
+ }), ["focusout", "mouseleave", "keydown"].forEach((e) => {
2488
+ this.anchor.addEventListener(e, (t) => this.onLeaveAnchor(t));
2489
+ });
2490
+ },
2491
+ removeExternalAnchorEventListeners() {
2492
+ ["focusin", "mouseenter"].forEach((e) => {
2493
+ this.anchor.removeEventListener(e, (t) => this.onEnterAnchor(t));
2494
+ }), ["focusout", "mouseleave", "keydown"].forEach((e) => {
2495
+ this.anchor.removeEventListener(e, (t) => this.onLeaveAnchor(t));
2496
+ });
2497
+ }
2498
+ }
2499
+ }, Mo = { "data-qa": "dt-tooltip-container" };
2500
+ function jo(e, t, n, r, o, a) {
2501
+ const l = rr("dt-lazy-show");
2502
+ return bt(), jt("div", Mo, [
2503
+ n.externalAnchor ? un("", !0) : (bt(), jt("span", {
2504
+ key: 0,
2505
+ ref: "anchor",
2506
+ "data-qa": "dt-tooltip-anchor",
2507
+ onFocusin: t[0] || (t[0] = (...c) => a.onEnterAnchor && a.onEnterAnchor(...c)),
2508
+ onFocusout: t[1] || (t[1] = (...c) => a.onLeaveAnchor && a.onLeaveAnchor(...c)),
2509
+ onMouseenter: t[2] || (t[2] = (...c) => a.onEnterAnchor && a.onEnterAnchor(...c)),
2510
+ onMouseleave: t[3] || (t[3] = (...c) => a.onLeaveAnchor && a.onLeaveAnchor(...c)),
2511
+ onKeydown: t[4] || (t[4] = ir((...c) => a.onLeaveAnchor && a.onLeaveAnchor(...c), ["esc"]))
2512
+ }, [
2513
+ wt(e.$slots, "anchor")
2514
+ ], 544)),
2515
+ or(l, an({
2516
+ id: n.id,
2517
+ ref: "content",
2518
+ show: a.isVisible,
2519
+ role: "tooltip",
2520
+ "aria-hidden": "false",
2521
+ "data-qa": "dt-tooltip",
2522
+ appear: n.contentAppear,
2523
+ transition: n.transition,
2524
+ class: [
2525
+ "d-tooltip",
2526
+ `d-tooltip__arrow-tippy--${o.currentPlacement}`,
2527
+ {
2528
+ [o.TOOLTIP_KIND_MODIFIERS.inverted]: n.inverted
2529
+ },
2530
+ n.contentClass
2531
+ ]
2532
+ }, ar(a.tooltipListeners)), {
2533
+ default: sn(() => [
2534
+ wt(e.$slots, "default", {}, () => [
2535
+ sr(ur(n.message), 1)
2536
+ ])
2537
+ ]),
2538
+ _: 3
2539
+ }, 16, ["id", "show", "appear", "transition", "class"])
2540
+ ]);
2541
+ }
2542
+ const Fo = /* @__PURE__ */ bn(Io, [["render", jo]]);
2543
+ export {
2544
+ Fo as D,
2545
+ $o as E,
2546
+ Bo as L,
2547
+ Lo as T,
2548
+ ge as V,
2549
+ bn as _,
2550
+ kr as a,
2551
+ pn as b,
2552
+ _o as c,
2553
+ Ir as d,
2554
+ Er as e,
2555
+ hr as f,
2556
+ cn as g,
2557
+ br as h,
2558
+ Vo as i,
2559
+ cr as j,
2560
+ mr as k,
2561
+ Co as l,
2562
+ Po as m,
2563
+ No as n,
2564
+ Ho as o,
2565
+ dr as p,
2566
+ xo as q,
2567
+ xr as r,
2568
+ Nr as s,
2569
+ To as t,
2570
+ Uo as u,
2571
+ Ao as v,
2572
+ Ye as w,
2573
+ gn as x,
2574
+ Rr as y
2575
+ };