@dialpad/dialtone-vue 3.92.0 → 3.92.1

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