@vue-interface/btn-dropdown 2.0.0-beta.1 → 2.0.0-beta.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.
- package/dist/btn-dropdown.es.js +179 -196
- package/dist/btn-dropdown.umd.js +2 -2
- package/package.json +2 -2
- package/src/BtnDropdownSingle.vue +2 -2
- package/src/BtnDropdownSplit.vue +2 -2
package/dist/btn-dropdown.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { openBlock as W, createBlock as ee, resolveDynamicComponent as He, mergeProps as ge, withCtx as B, renderSlot as P, createTextVNode as be, toDisplayString as ye, createElementBlock as Ue, normalizeClass as F, h as Nt, resolveComponent as te, createVNode as we, normalizeProps as ie, createCommentVNode as de, guardReactiveProps as Re, normalizeStyle as
|
|
2
|
-
var R = "top",
|
|
1
|
+
import { openBlock as W, createBlock as ee, resolveDynamicComponent as He, mergeProps as ge, withCtx as B, renderSlot as P, createTextVNode as be, toDisplayString as ye, createElementBlock as Ue, normalizeClass as F, h as Tt, Fragment as Nt, resolveComponent as te, createVNode as we, normalizeProps as ie, createCommentVNode as de, guardReactiveProps as Re, normalizeStyle as It, createSlots as Mt } from "vue";
|
|
2
|
+
var R = "top", N = "bottom", I = "right", j = "left", ze = "auto", $e = [R, N, I, j], ae = "start", Oe = "end", Lt = "clippingParents", bt = "viewport", ve = "popper", Vt = "reference", st = /* @__PURE__ */ $e.reduce(function(e, t) {
|
|
3
3
|
return e.concat([t + "-" + ae, t + "-" + Oe]);
|
|
4
|
-
}, []),
|
|
4
|
+
}, []), yt = /* @__PURE__ */ [].concat($e, [ze]).reduce(function(e, t) {
|
|
5
5
|
return e.concat([t, t + "-" + ae, t + "-" + Oe]);
|
|
6
|
-
}, []),
|
|
6
|
+
}, []), qt = "beforeRead", Ft = "read", Wt = "afterRead", Ht = "beforeMain", Ut = "main", Xt = "afterMain", Yt = "beforeWrite", Gt = "write", Jt = "afterWrite", qe = [qt, Ft, Wt, Ht, Ut, Xt, Yt, Gt, Jt];
|
|
7
7
|
function H(e) {
|
|
8
8
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
9
9
|
}
|
|
@@ -30,7 +30,7 @@ function Xe(e) {
|
|
|
30
30
|
var t = M(e).ShadowRoot;
|
|
31
31
|
return e instanceof t || e instanceof ShadowRoot;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Kt(e) {
|
|
34
34
|
var t = e.state;
|
|
35
35
|
Object.keys(t.elements).forEach(function(r) {
|
|
36
36
|
var n = t.styles[r] || {}, o = t.attributes[r] || {}, i = t.elements[r];
|
|
@@ -40,7 +40,7 @@ function Qt(e) {
|
|
|
40
40
|
}));
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Qt(e) {
|
|
44
44
|
var t = e.state, r = {
|
|
45
45
|
popper: {
|
|
46
46
|
position: t.options.strategy,
|
|
@@ -64,12 +64,12 @@ function Zt(e) {
|
|
|
64
64
|
});
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
const
|
|
67
|
+
const Zt = {
|
|
68
68
|
name: "applyStyles",
|
|
69
69
|
enabled: !0,
|
|
70
70
|
phase: "write",
|
|
71
|
-
fn:
|
|
72
|
-
effect:
|
|
71
|
+
fn: Kt,
|
|
72
|
+
effect: Qt,
|
|
73
73
|
requires: ["computeStyles"]
|
|
74
74
|
};
|
|
75
75
|
function V(e) {
|
|
@@ -82,14 +82,14 @@ function Fe() {
|
|
|
82
82
|
return t.brand + "/" + t.version;
|
|
83
83
|
}).join(" ") : navigator.userAgent;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function wt() {
|
|
86
86
|
return !/^((?!chrome|android).)*safari/i.test(Fe());
|
|
87
87
|
}
|
|
88
88
|
function le(e, t, r) {
|
|
89
89
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
90
90
|
var n = e.getBoundingClientRect(), o = 1, i = 1;
|
|
91
91
|
t && T(e) && (o = e.offsetWidth > 0 && se(n.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && se(n.height) / e.offsetHeight || 1);
|
|
92
|
-
var a = ne(e) ? M(e) : window, l = a.visualViewport, s = !
|
|
92
|
+
var a = ne(e) ? M(e) : window, l = a.visualViewport, s = !wt() && r, f = (n.left + (s && l ? l.offsetLeft : 0)) / o, p = (n.top + (s && l ? l.offsetTop : 0)) / i, h = n.width / o, y = n.height / i;
|
|
93
93
|
return {
|
|
94
94
|
width: h,
|
|
95
95
|
height: y,
|
|
@@ -110,7 +110,7 @@ function Ye(e) {
|
|
|
110
110
|
height: n
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Ot(e, t) {
|
|
114
114
|
var r = t.getRootNode && t.getRootNode();
|
|
115
115
|
if (e.contains(t))
|
|
116
116
|
return !0;
|
|
@@ -127,7 +127,7 @@ function $t(e, t) {
|
|
|
127
127
|
function q(e) {
|
|
128
128
|
return M(e).getComputedStyle(e);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function _t(e) {
|
|
131
131
|
return ["table", "td", "th"].indexOf(H(e)) >= 0;
|
|
132
132
|
}
|
|
133
133
|
function Y(e) {
|
|
@@ -139,7 +139,7 @@ function Te(e) {
|
|
|
139
139
|
function lt(e) {
|
|
140
140
|
return !T(e) || q(e).position === "fixed" ? null : e.offsetParent;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function er(e) {
|
|
143
143
|
var t = /firefox/i.test(Fe()), r = /Trident/i.test(Fe());
|
|
144
144
|
if (r && T(e)) {
|
|
145
145
|
var n = q(e);
|
|
@@ -156,9 +156,9 @@ function tr(e) {
|
|
|
156
156
|
return null;
|
|
157
157
|
}
|
|
158
158
|
function Ce(e) {
|
|
159
|
-
for (var t = M(e), r = lt(e); r &&
|
|
159
|
+
for (var t = M(e), r = lt(e); r && _t(r) && q(r).position === "static"; )
|
|
160
160
|
r = lt(r);
|
|
161
|
-
return r && (H(r) === "html" || H(r) === "body" && q(r).position === "static") ? t : r ||
|
|
161
|
+
return r && (H(r) === "html" || H(r) === "body" && q(r).position === "static") ? t : r || er(e) || t;
|
|
162
162
|
}
|
|
163
163
|
function Ge(e) {
|
|
164
164
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
@@ -166,11 +166,11 @@ function Ge(e) {
|
|
|
166
166
|
function he(e, t, r) {
|
|
167
167
|
return re(e, je(t, r));
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function tr(e, t, r) {
|
|
170
170
|
var n = he(e, t, r);
|
|
171
171
|
return n > r ? r : n;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function xt() {
|
|
174
174
|
return {
|
|
175
175
|
top: 0,
|
|
176
176
|
right: 0,
|
|
@@ -178,55 +178,55 @@ function Ct() {
|
|
|
178
178
|
left: 0
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
return Object.assign({},
|
|
181
|
+
function $t(e) {
|
|
182
|
+
return Object.assign({}, xt(), e);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function Ct(e, t) {
|
|
185
185
|
return t.reduce(function(r, n) {
|
|
186
186
|
return r[n] = e, r;
|
|
187
187
|
}, {});
|
|
188
188
|
}
|
|
189
|
-
var
|
|
189
|
+
var rr = function(t, r) {
|
|
190
190
|
return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
|
|
191
191
|
placement: r.placement
|
|
192
|
-
})) : t,
|
|
192
|
+
})) : t, $t(typeof t != "number" ? t : Ct(t, $e));
|
|
193
193
|
};
|
|
194
|
-
function
|
|
195
|
-
var t, r = e.state, n = e.name, o = e.options, i = r.elements.arrow, a = r.modifiersData.popperOffsets, l = V(r.placement), s = Ge(l), f = [j,
|
|
194
|
+
function nr(e) {
|
|
195
|
+
var t, r = e.state, n = e.name, o = e.options, i = r.elements.arrow, a = r.modifiersData.popperOffsets, l = V(r.placement), s = Ge(l), f = [j, I].indexOf(l) >= 0, p = f ? "height" : "width";
|
|
196
196
|
if (!(!i || !a)) {
|
|
197
|
-
var h =
|
|
197
|
+
var h = rr(o.padding, r), y = Ye(i), u = s === "y" ? R : j, O = s === "y" ? N : I, m = r.rects.reference[p] + r.rects.reference[s] - a[s] - r.rects.popper[p], v = a[s] - r.rects.reference[s], w = Ce(i), C = w ? s === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, $ = m / 2 - v / 2, c = h[u], g = C - y[p] - h[O], d = C / 2 - y[p] / 2 + $, x = he(c, d, g), E = s;
|
|
198
198
|
r.modifiersData[n] = (t = {}, t[E] = x, t.centerOffset = x - d, t);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function or(e) {
|
|
202
202
|
var t = e.state, r = e.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n;
|
|
203
203
|
if (o != null && !(typeof o == "string" && (o = t.elements.popper.querySelector(o), !o))) {
|
|
204
|
-
if (process.env.NODE_ENV !== "production" && (T(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(" "))),
|
|
204
|
+
if (process.env.NODE_ENV !== "production" && (T(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(" "))), !Ot(t.elements.popper, o)) {
|
|
205
205
|
process.env.NODE_ENV !== "production" && console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
|
|
206
206
|
return;
|
|
207
207
|
}
|
|
208
208
|
t.elements.arrow = o;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
const
|
|
211
|
+
const ir = {
|
|
212
212
|
name: "arrow",
|
|
213
213
|
enabled: !0,
|
|
214
214
|
phase: "main",
|
|
215
|
-
fn:
|
|
216
|
-
effect:
|
|
215
|
+
fn: nr,
|
|
216
|
+
effect: or,
|
|
217
217
|
requires: ["popperOffsets"],
|
|
218
218
|
requiresIfExists: ["preventOverflow"]
|
|
219
219
|
};
|
|
220
220
|
function pe(e) {
|
|
221
221
|
return e.split("-")[1];
|
|
222
222
|
}
|
|
223
|
-
var
|
|
223
|
+
var ar = {
|
|
224
224
|
top: "auto",
|
|
225
225
|
right: "auto",
|
|
226
226
|
bottom: "auto",
|
|
227
227
|
left: "auto"
|
|
228
228
|
};
|
|
229
|
-
function
|
|
229
|
+
function sr(e) {
|
|
230
230
|
var t = e.x, r = e.y, n = window, o = n.devicePixelRatio || 1;
|
|
231
231
|
return {
|
|
232
232
|
x: se(t * o) / o || 0,
|
|
@@ -245,20 +245,20 @@ function pt(e) {
|
|
|
245
245
|
var w = a.hasOwnProperty("x"), C = a.hasOwnProperty("y"), $ = j, c = R, g = window;
|
|
246
246
|
if (f) {
|
|
247
247
|
var d = Ce(r), x = "clientHeight", E = "clientWidth";
|
|
248
|
-
if (d === M(r) && (d = Y(r), q(d).position !== "static" && l === "absolute" && (x = "scrollHeight", E = "scrollWidth")), d = d, o === R || (o === j || o ===
|
|
249
|
-
c =
|
|
248
|
+
if (d === M(r) && (d = Y(r), q(d).position !== "static" && l === "absolute" && (x = "scrollHeight", E = "scrollWidth")), d = d, o === R || (o === j || o === I) && i === Oe) {
|
|
249
|
+
c = N;
|
|
250
250
|
var S = h && d === g && g.visualViewport ? g.visualViewport.height : d[x];
|
|
251
251
|
m -= S - n.height, m *= s ? 1 : -1;
|
|
252
252
|
}
|
|
253
|
-
if (o === j || (o === R || o ===
|
|
254
|
-
$ =
|
|
253
|
+
if (o === j || (o === R || o === N) && i === Oe) {
|
|
254
|
+
$ = I;
|
|
255
255
|
var k = h && d === g && g.visualViewport ? g.visualViewport.width : d[E];
|
|
256
256
|
u -= k - n.width, u *= s ? 1 : -1;
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
var b = Object.assign({
|
|
260
260
|
position: l
|
|
261
|
-
}, f &&
|
|
261
|
+
}, f && ar), D = p === !0 ? sr({
|
|
262
262
|
x: u,
|
|
263
263
|
y: m
|
|
264
264
|
}) : {
|
|
@@ -271,7 +271,7 @@ function pt(e) {
|
|
|
271
271
|
}
|
|
272
272
|
return Object.assign({}, b, (t = {}, t[c] = C ? m + "px" : "", t[$] = w ? u + "px" : "", t.transform = "", t));
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function lr(e) {
|
|
275
275
|
var t = e.state, r = e.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, i = r.adaptive, a = i === void 0 ? !0 : i, l = r.roundOffsets, s = l === void 0 ? !0 : l;
|
|
276
276
|
if (process.env.NODE_ENV !== "production") {
|
|
277
277
|
var f = q(t.elements.popper).transitionProperty || "";
|
|
@@ -305,17 +305,17 @@ function pr(e) {
|
|
|
305
305
|
"data-popper-placement": t.placement
|
|
306
306
|
});
|
|
307
307
|
}
|
|
308
|
-
const
|
|
308
|
+
const pr = {
|
|
309
309
|
name: "computeStyles",
|
|
310
310
|
enabled: !0,
|
|
311
311
|
phase: "beforeWrite",
|
|
312
|
-
fn:
|
|
312
|
+
fn: lr,
|
|
313
313
|
data: {}
|
|
314
314
|
};
|
|
315
315
|
var De = {
|
|
316
316
|
passive: !0
|
|
317
317
|
};
|
|
318
|
-
function
|
|
318
|
+
function fr(e) {
|
|
319
319
|
var t = e.state, r = e.instance, n = e.options, o = n.scroll, i = o === void 0 ? !0 : o, a = n.resize, l = a === void 0 ? !0 : a, s = M(t.elements.popper), f = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
320
320
|
return i && f.forEach(function(p) {
|
|
321
321
|
p.addEventListener("scroll", r.update, De);
|
|
@@ -325,16 +325,16 @@ function ur(e) {
|
|
|
325
325
|
}), l && s.removeEventListener("resize", r.update, De);
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
|
-
const
|
|
328
|
+
const ur = {
|
|
329
329
|
name: "eventListeners",
|
|
330
330
|
enabled: !0,
|
|
331
331
|
phase: "write",
|
|
332
332
|
fn: function() {
|
|
333
333
|
},
|
|
334
|
-
effect:
|
|
334
|
+
effect: fr,
|
|
335
335
|
data: {}
|
|
336
336
|
};
|
|
337
|
-
var
|
|
337
|
+
var cr = {
|
|
338
338
|
left: "right",
|
|
339
339
|
right: "left",
|
|
340
340
|
bottom: "top",
|
|
@@ -342,16 +342,16 @@ var dr = {
|
|
|
342
342
|
};
|
|
343
343
|
function Ae(e) {
|
|
344
344
|
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
345
|
-
return
|
|
345
|
+
return cr[t];
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
|
-
var
|
|
348
|
+
var dr = {
|
|
349
349
|
start: "end",
|
|
350
350
|
end: "start"
|
|
351
351
|
};
|
|
352
352
|
function ft(e) {
|
|
353
353
|
return e.replace(/start|end/g, function(t) {
|
|
354
|
-
return
|
|
354
|
+
return dr[t];
|
|
355
355
|
});
|
|
356
356
|
}
|
|
357
357
|
function Je(e) {
|
|
@@ -364,11 +364,11 @@ function Je(e) {
|
|
|
364
364
|
function Ke(e) {
|
|
365
365
|
return le(Y(e)).left + Je(e).scrollLeft;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function vr(e, t) {
|
|
368
368
|
var r = M(e), n = Y(e), o = r.visualViewport, i = n.clientWidth, a = n.clientHeight, l = 0, s = 0;
|
|
369
369
|
if (o) {
|
|
370
370
|
i = o.width, a = o.height;
|
|
371
|
-
var f =
|
|
371
|
+
var f = wt();
|
|
372
372
|
(f || !f && t === "fixed") && (l = o.offsetLeft, s = o.offsetTop);
|
|
373
373
|
}
|
|
374
374
|
return {
|
|
@@ -378,7 +378,7 @@ function hr(e, t) {
|
|
|
378
378
|
y: s
|
|
379
379
|
};
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function hr(e) {
|
|
382
382
|
var t, r = Y(e), n = Je(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, i = re(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), a = re(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), l = -n.scrollLeft + Ke(e), s = -n.scrollTop;
|
|
383
383
|
return q(o || r).direction === "rtl" && (l += re(r.clientWidth, o ? o.clientWidth : 0) - i), {
|
|
384
384
|
width: i,
|
|
@@ -391,13 +391,13 @@ function Qe(e) {
|
|
|
391
391
|
var t = q(e), r = t.overflow, n = t.overflowX, o = t.overflowY;
|
|
392
392
|
return /auto|scroll|overlay|hidden/.test(r + o + n);
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
return ["html", "body", "#document"].indexOf(H(e)) >= 0 ? e.ownerDocument.body : T(e) && Qe(e) ? e :
|
|
394
|
+
function Pt(e) {
|
|
395
|
+
return ["html", "body", "#document"].indexOf(H(e)) >= 0 ? e.ownerDocument.body : T(e) && Qe(e) ? e : Pt(Te(e));
|
|
396
396
|
}
|
|
397
397
|
function me(e, t) {
|
|
398
398
|
var r;
|
|
399
399
|
t === void 0 && (t = []);
|
|
400
|
-
var n =
|
|
400
|
+
var n = Pt(e), o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), i = M(n), a = o ? [i].concat(i.visualViewport || [], Qe(n) ? n : []) : n, l = t.concat(a);
|
|
401
401
|
return o ? l : l.concat(me(Te(a)));
|
|
402
402
|
}
|
|
403
403
|
function We(e) {
|
|
@@ -408,27 +408,27 @@ function We(e) {
|
|
|
408
408
|
bottom: e.y + e.height
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function mr(e, t) {
|
|
412
412
|
var r = le(e, !1, t === "fixed");
|
|
413
413
|
return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
|
|
414
414
|
}
|
|
415
415
|
function ut(e, t, r) {
|
|
416
|
-
return t ===
|
|
416
|
+
return t === bt ? We(vr(e, r)) : ne(t) ? mr(t, r) : We(hr(Y(e)));
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function gr(e) {
|
|
419
419
|
var t = me(Te(e)), r = ["absolute", "fixed"].indexOf(q(e).position) >= 0, n = r && T(e) ? Ce(e) : e;
|
|
420
420
|
return ne(n) ? t.filter(function(o) {
|
|
421
|
-
return ne(o) &&
|
|
421
|
+
return ne(o) && Ot(o, n) && H(o) !== "body";
|
|
422
422
|
}) : [];
|
|
423
423
|
}
|
|
424
|
-
function
|
|
425
|
-
var o = t === "clippingParents" ?
|
|
424
|
+
function br(e, t, r, n) {
|
|
425
|
+
var o = t === "clippingParents" ? gr(e) : [].concat(t), i = [].concat(o, [r]), a = i[0], l = i.reduce(function(s, f) {
|
|
426
426
|
var p = ut(e, f, n);
|
|
427
427
|
return s.top = re(p.top, s.top), s.right = je(p.right, s.right), s.bottom = je(p.bottom, s.bottom), s.left = re(p.left, s.left), s;
|
|
428
428
|
}, ut(e, a, n));
|
|
429
429
|
return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function Et(e) {
|
|
432
432
|
var t = e.reference, r = e.element, n = e.placement, o = n ? V(n) : null, i = n ? pe(n) : null, a = t.x + t.width / 2 - r.width / 2, l = t.y + t.height / 2 - r.height / 2, s;
|
|
433
433
|
switch (o) {
|
|
434
434
|
case R:
|
|
@@ -437,13 +437,13 @@ function kt(e) {
|
|
|
437
437
|
y: t.y - r.height
|
|
438
438
|
};
|
|
439
439
|
break;
|
|
440
|
-
case
|
|
440
|
+
case N:
|
|
441
441
|
s = {
|
|
442
442
|
x: a,
|
|
443
443
|
y: t.y + t.height
|
|
444
444
|
};
|
|
445
445
|
break;
|
|
446
|
-
case
|
|
446
|
+
case I:
|
|
447
447
|
s = {
|
|
448
448
|
x: t.x + t.width,
|
|
449
449
|
y: l
|
|
@@ -477,7 +477,7 @@ function kt(e) {
|
|
|
477
477
|
}
|
|
478
478
|
function xe(e, t) {
|
|
479
479
|
t === void 0 && (t = {});
|
|
480
|
-
var r = t, n = r.placement, o = n === void 0 ? e.placement : n, i = r.strategy, a = i === void 0 ? e.strategy : i, l = r.boundary, s = l === void 0 ?
|
|
480
|
+
var r = t, n = r.placement, o = n === void 0 ? e.placement : n, i = r.strategy, a = i === void 0 ? e.strategy : i, l = r.boundary, s = l === void 0 ? Lt : l, f = r.rootBoundary, p = f === void 0 ? bt : f, h = r.elementContext, y = h === void 0 ? ve : h, u = r.altBoundary, O = u === void 0 ? !1 : u, m = r.padding, v = m === void 0 ? 0 : m, w = $t(typeof v != "number" ? v : Ct(v, $e)), C = y === ve ? Vt : ve, $ = e.rects.popper, c = e.elements[O ? C : y], g = br(ne(c) ? c : c.contextElement || Y(e.elements.popper), s, p, a), d = le(e.elements.reference), x = Et({
|
|
481
481
|
reference: d,
|
|
482
482
|
element: $,
|
|
483
483
|
strategy: "absolute",
|
|
@@ -491,15 +491,15 @@ function xe(e, t) {
|
|
|
491
491
|
if (y === ve && b) {
|
|
492
492
|
var D = b[o];
|
|
493
493
|
Object.keys(k).forEach(function(A) {
|
|
494
|
-
var G = [
|
|
494
|
+
var G = [I, N].indexOf(A) >= 0 ? 1 : -1, J = [R, N].indexOf(A) >= 0 ? "y" : "x";
|
|
495
495
|
k[A] += D[J] * G;
|
|
496
496
|
});
|
|
497
497
|
}
|
|
498
498
|
return k;
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function yr(e, t) {
|
|
501
501
|
t === void 0 && (t = {});
|
|
502
|
-
var r = t, n = r.placement, o = r.boundary, i = r.rootBoundary, a = r.padding, l = r.flipVariations, s = r.allowedAutoPlacements, f = s === void 0 ?
|
|
502
|
+
var r = t, n = r.placement, o = r.boundary, i = r.rootBoundary, a = r.padding, l = r.flipVariations, s = r.allowedAutoPlacements, f = s === void 0 ? yt : s, p = pe(n), h = p ? l ? st : st.filter(function(O) {
|
|
503
503
|
return pe(O) === p;
|
|
504
504
|
}) : $e, y = h.filter(function(O) {
|
|
505
505
|
return f.indexOf(O) >= 0;
|
|
@@ -517,17 +517,17 @@ function wr(e, t) {
|
|
|
517
517
|
return u[O] - u[m];
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function wr(e) {
|
|
521
521
|
if (V(e) === ze)
|
|
522
522
|
return [];
|
|
523
523
|
var t = Ae(e);
|
|
524
524
|
return [ft(e), t, ft(t)];
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function Or(e) {
|
|
527
527
|
var t = e.state, r = e.options, n = e.name;
|
|
528
528
|
if (!t.modifiersData[n]._skip) {
|
|
529
|
-
for (var o = r.mainAxis, i = o === void 0 ? !0 : o, a = r.altAxis, l = a === void 0 ? !0 : a, s = r.fallbackPlacements, f = r.padding, p = r.boundary, h = r.rootBoundary, y = r.altBoundary, u = r.flipVariations, O = u === void 0 ? !0 : u, m = r.allowedAutoPlacements, v = t.options.placement, w = V(v), C = w === v, $ = s || (C || !O ? [Ae(v)] :
|
|
530
|
-
return oe.concat(V(U) === ze ?
|
|
529
|
+
for (var o = r.mainAxis, i = o === void 0 ? !0 : o, a = r.altAxis, l = a === void 0 ? !0 : a, s = r.fallbackPlacements, f = r.padding, p = r.boundary, h = r.rootBoundary, y = r.altBoundary, u = r.flipVariations, O = u === void 0 ? !0 : u, m = r.allowedAutoPlacements, v = t.options.placement, w = V(v), C = w === v, $ = s || (C || !O ? [Ae(v)] : wr(v)), c = [v].concat($).reduce(function(oe, U) {
|
|
530
|
+
return oe.concat(V(U) === ze ? yr(t, {
|
|
531
531
|
placement: U,
|
|
532
532
|
boundary: p,
|
|
533
533
|
rootBoundary: h,
|
|
@@ -536,13 +536,13 @@ function xr(e) {
|
|
|
536
536
|
allowedAutoPlacements: m
|
|
537
537
|
}) : U);
|
|
538
538
|
}, []), g = t.rects.reference, d = t.rects.popper, x = /* @__PURE__ */ new Map(), E = !0, S = c[0], k = 0; k < c.length; k++) {
|
|
539
|
-
var b = c[k], D = V(b), A = pe(b) === ae, G = [R,
|
|
539
|
+
var b = c[k], D = V(b), A = pe(b) === ae, G = [R, N].indexOf(D) >= 0, J = G ? "width" : "height", z = xe(t, {
|
|
540
540
|
placement: b,
|
|
541
541
|
boundary: p,
|
|
542
542
|
rootBoundary: h,
|
|
543
543
|
altBoundary: y,
|
|
544
544
|
padding: f
|
|
545
|
-
}), L = G ? A ?
|
|
545
|
+
}), L = G ? A ? I : j : A ? N : R;
|
|
546
546
|
g[J] > d[J] && (L = Ae(L));
|
|
547
547
|
var Pe = Ae(L), K = [];
|
|
548
548
|
if (i && K.push(z[D] <= 0), l && K.push(z[L] <= 0, z[Pe] <= 0), K.every(function(oe) {
|
|
@@ -554,29 +554,29 @@ function xr(e) {
|
|
|
554
554
|
x.set(b, K);
|
|
555
555
|
}
|
|
556
556
|
if (E)
|
|
557
|
-
for (var Ee = O ? 3 : 1,
|
|
557
|
+
for (var Ee = O ? 3 : 1, Ne = function(U) {
|
|
558
558
|
var ce = c.find(function(ke) {
|
|
559
559
|
var Q = x.get(ke);
|
|
560
560
|
if (Q)
|
|
561
|
-
return Q.slice(0, U).every(function(
|
|
562
|
-
return
|
|
561
|
+
return Q.slice(0, U).every(function(Ie) {
|
|
562
|
+
return Ie;
|
|
563
563
|
});
|
|
564
564
|
});
|
|
565
565
|
if (ce)
|
|
566
566
|
return S = ce, "break";
|
|
567
567
|
}, ue = Ee; ue > 0; ue--) {
|
|
568
|
-
var Se =
|
|
568
|
+
var Se = Ne(ue);
|
|
569
569
|
if (Se === "break")
|
|
570
570
|
break;
|
|
571
571
|
}
|
|
572
572
|
t.placement !== S && (t.modifiersData[n]._skip = !0, t.placement = S, t.reset = !0);
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
const
|
|
575
|
+
const xr = {
|
|
576
576
|
name: "flip",
|
|
577
577
|
enabled: !0,
|
|
578
578
|
phase: "main",
|
|
579
|
-
fn:
|
|
579
|
+
fn: Or,
|
|
580
580
|
requiresIfExists: ["offset"],
|
|
581
581
|
data: {
|
|
582
582
|
_skip: !1
|
|
@@ -594,11 +594,11 @@ function ct(e, t, r) {
|
|
|
594
594
|
};
|
|
595
595
|
}
|
|
596
596
|
function dt(e) {
|
|
597
|
-
return [R,
|
|
597
|
+
return [R, I, N, j].some(function(t) {
|
|
598
598
|
return e[t] >= 0;
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function $r(e) {
|
|
602
602
|
var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, i = t.modifiersData.preventOverflow, a = xe(t, {
|
|
603
603
|
elementContext: "reference"
|
|
604
604
|
}), l = xe(t, {
|
|
@@ -614,18 +614,18 @@ function Cr(e) {
|
|
|
614
614
|
"data-popper-escaped": h
|
|
615
615
|
});
|
|
616
616
|
}
|
|
617
|
-
const
|
|
617
|
+
const Cr = {
|
|
618
618
|
name: "hide",
|
|
619
619
|
enabled: !0,
|
|
620
620
|
phase: "main",
|
|
621
621
|
requiresIfExists: ["preventOverflow"],
|
|
622
|
-
fn:
|
|
622
|
+
fn: $r
|
|
623
623
|
};
|
|
624
|
-
function
|
|
624
|
+
function Pr(e, t, r) {
|
|
625
625
|
var n = V(e), o = [j, R].indexOf(n) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, t, {
|
|
626
626
|
placement: e
|
|
627
627
|
})) : r, a = i[0], l = i[1];
|
|
628
|
-
return a = a || 0, l = (l || 0) * o, [j,
|
|
628
|
+
return a = a || 0, l = (l || 0) * o, [j, I].indexOf(n) >= 0 ? {
|
|
629
629
|
x: l,
|
|
630
630
|
y: a
|
|
631
631
|
} : {
|
|
@@ -633,45 +633,45 @@ function Er(e, t, r) {
|
|
|
633
633
|
y: l
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
|
-
function
|
|
637
|
-
var t = e.state, r = e.options, n = e.name, o = r.offset, i = o === void 0 ? [0, 0] : o, a =
|
|
638
|
-
return p[h] =
|
|
636
|
+
function Er(e) {
|
|
637
|
+
var t = e.state, r = e.options, n = e.name, o = r.offset, i = o === void 0 ? [0, 0] : o, a = yt.reduce(function(p, h) {
|
|
638
|
+
return p[h] = Pr(h, t.rects, i), p;
|
|
639
639
|
}, {}), l = a[t.placement], s = l.x, f = l.y;
|
|
640
640
|
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += f), t.modifiersData[n] = a;
|
|
641
641
|
}
|
|
642
|
-
const
|
|
642
|
+
const Sr = {
|
|
643
643
|
name: "offset",
|
|
644
644
|
enabled: !0,
|
|
645
645
|
phase: "main",
|
|
646
646
|
requires: ["popperOffsets"],
|
|
647
|
-
fn:
|
|
647
|
+
fn: Er
|
|
648
648
|
};
|
|
649
|
-
function
|
|
649
|
+
function kr(e) {
|
|
650
650
|
var t = e.state, r = e.name;
|
|
651
|
-
t.modifiersData[r] =
|
|
651
|
+
t.modifiersData[r] = Et({
|
|
652
652
|
reference: t.rects.reference,
|
|
653
653
|
element: t.rects.popper,
|
|
654
654
|
strategy: "absolute",
|
|
655
655
|
placement: t.placement
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
|
-
const
|
|
658
|
+
const Br = {
|
|
659
659
|
name: "popperOffsets",
|
|
660
660
|
enabled: !0,
|
|
661
661
|
phase: "read",
|
|
662
|
-
fn:
|
|
662
|
+
fn: kr,
|
|
663
663
|
data: {}
|
|
664
664
|
};
|
|
665
|
-
function
|
|
665
|
+
function Dr(e) {
|
|
666
666
|
return e === "x" ? "y" : "x";
|
|
667
667
|
}
|
|
668
|
-
function
|
|
668
|
+
function Ar(e) {
|
|
669
669
|
var t = e.state, r = e.options, n = e.name, o = r.mainAxis, i = o === void 0 ? !0 : o, a = r.altAxis, l = a === void 0 ? !1 : a, s = r.boundary, f = r.rootBoundary, p = r.altBoundary, h = r.padding, y = r.tether, u = y === void 0 ? !0 : y, O = r.tetherOffset, m = O === void 0 ? 0 : O, v = xe(t, {
|
|
670
670
|
boundary: s,
|
|
671
671
|
rootBoundary: f,
|
|
672
672
|
padding: h,
|
|
673
673
|
altBoundary: p
|
|
674
|
-
}), w = V(t.placement), C = pe(t.placement), $ = !C, c = Ge(w), g =
|
|
674
|
+
}), w = V(t.placement), C = pe(t.placement), $ = !C, c = Ge(w), g = Dr(c), d = t.modifiersData.popperOffsets, x = t.rects.reference, E = t.rects.popper, S = typeof m == "function" ? m(Object.assign({}, t.rects, {
|
|
675
675
|
placement: t.placement
|
|
676
676
|
})) : m, k = typeof S == "number" ? {
|
|
677
677
|
mainAxis: S,
|
|
@@ -685,56 +685,56 @@ function Rr(e) {
|
|
|
685
685
|
};
|
|
686
686
|
if (!!d) {
|
|
687
687
|
if (i) {
|
|
688
|
-
var A, G = c === "y" ? R : j, J = c === "y" ?
|
|
688
|
+
var A, G = c === "y" ? R : j, J = c === "y" ? N : I, z = c === "y" ? "height" : "width", L = d[c], Pe = L + v[G], K = L - v[J], Ee = u ? -E[z] / 2 : 0, Ne = C === ae ? x[z] : E[z], ue = C === ae ? -E[z] : -x[z], Se = t.elements.arrow, oe = u && Se ? Ye(Se) : {
|
|
689
689
|
width: 0,
|
|
690
690
|
height: 0
|
|
691
|
-
}, U = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding :
|
|
691
|
+
}, U = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : xt(), ce = U[G], ke = U[J], Q = he(0, x[z], oe[z]), Ie = $ ? x[z] / 2 - Ee - Q - ce - k.mainAxis : Ne - Q - ce - k.mainAxis, Bt = $ ? -x[z] / 2 + Ee + Q + ke + k.mainAxis : ue + Q + ke + k.mainAxis, Me = t.elements.arrow && Ce(t.elements.arrow), Dt = Me ? c === "y" ? Me.clientTop || 0 : Me.clientLeft || 0 : 0, Ze = (A = b == null ? void 0 : b[c]) != null ? A : 0, At = L + Ie - Ze - Dt, Rt = L + Bt - Ze, _e = he(u ? je(Pe, At) : Pe, L, u ? re(K, Rt) : K);
|
|
692
692
|
d[c] = _e, D[c] = _e - L;
|
|
693
693
|
}
|
|
694
694
|
if (l) {
|
|
695
|
-
var et,
|
|
695
|
+
var et, jt = c === "x" ? R : j, zt = c === "x" ? N : I, Z = d[g], Be = g === "y" ? "height" : "width", tt = Z + v[jt], rt = Z - v[zt], Le = [R, j].indexOf(w) !== -1, nt = (et = b == null ? void 0 : b[g]) != null ? et : 0, ot = Le ? tt : Z - x[Be] - E[Be] - nt + k.altAxis, it = Le ? Z + x[Be] + E[Be] - nt - k.altAxis : rt, at = u && Le ? tr(ot, Z, it) : he(u ? ot : tt, Z, u ? it : rt);
|
|
696
696
|
d[g] = at, D[g] = at - Z;
|
|
697
697
|
}
|
|
698
698
|
t.modifiersData[n] = D;
|
|
699
699
|
}
|
|
700
700
|
}
|
|
701
|
-
const
|
|
701
|
+
const Rr = {
|
|
702
702
|
name: "preventOverflow",
|
|
703
703
|
enabled: !0,
|
|
704
704
|
phase: "main",
|
|
705
|
-
fn:
|
|
705
|
+
fn: Ar,
|
|
706
706
|
requiresIfExists: ["offset"]
|
|
707
707
|
};
|
|
708
|
-
function
|
|
708
|
+
function jr(e) {
|
|
709
709
|
return {
|
|
710
710
|
scrollLeft: e.scrollLeft,
|
|
711
711
|
scrollTop: e.scrollTop
|
|
712
712
|
};
|
|
713
713
|
}
|
|
714
|
-
function
|
|
715
|
-
return e === M(e) || !T(e) ? Je(e) :
|
|
714
|
+
function zr(e) {
|
|
715
|
+
return e === M(e) || !T(e) ? Je(e) : jr(e);
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function Tr(e) {
|
|
718
718
|
var t = e.getBoundingClientRect(), r = se(t.width) / e.offsetWidth || 1, n = se(t.height) / e.offsetHeight || 1;
|
|
719
719
|
return r !== 1 || n !== 1;
|
|
720
720
|
}
|
|
721
721
|
function Nr(e, t, r) {
|
|
722
722
|
r === void 0 && (r = !1);
|
|
723
|
-
var n = T(t), o = T(t) &&
|
|
723
|
+
var n = T(t), o = T(t) && Tr(t), i = Y(t), a = le(e, o, r), l = {
|
|
724
724
|
scrollLeft: 0,
|
|
725
725
|
scrollTop: 0
|
|
726
726
|
}, s = {
|
|
727
727
|
x: 0,
|
|
728
728
|
y: 0
|
|
729
729
|
};
|
|
730
|
-
return (n || !n && !r) && ((H(t) !== "body" || Qe(i)) && (l =
|
|
730
|
+
return (n || !n && !r) && ((H(t) !== "body" || Qe(i)) && (l = zr(t)), T(t) ? (s = le(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : i && (s.x = Ke(i))), {
|
|
731
731
|
x: a.left + l.scrollLeft - s.x,
|
|
732
732
|
y: a.top + l.scrollTop - s.y,
|
|
733
733
|
width: a.width,
|
|
734
734
|
height: a.height
|
|
735
735
|
};
|
|
736
736
|
}
|
|
737
|
-
function
|
|
737
|
+
function Ir(e) {
|
|
738
738
|
var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
|
|
739
739
|
e.forEach(function(i) {
|
|
740
740
|
t.set(i.name, i);
|
|
@@ -753,15 +753,15 @@ function Mr(e) {
|
|
|
753
753
|
r.has(i.name) || o(i);
|
|
754
754
|
}), n;
|
|
755
755
|
}
|
|
756
|
-
function
|
|
757
|
-
var t =
|
|
756
|
+
function Mr(e) {
|
|
757
|
+
var t = Ir(e);
|
|
758
758
|
return qe.reduce(function(r, n) {
|
|
759
759
|
return r.concat(t.filter(function(o) {
|
|
760
760
|
return o.phase === n;
|
|
761
761
|
}));
|
|
762
762
|
}, []);
|
|
763
763
|
}
|
|
764
|
-
function
|
|
764
|
+
function Lr(e) {
|
|
765
765
|
var t;
|
|
766
766
|
return function() {
|
|
767
767
|
return t || (t = new Promise(function(r) {
|
|
@@ -778,8 +778,8 @@ function X(e) {
|
|
|
778
778
|
return o.replace(/%s/, i);
|
|
779
779
|
}, e);
|
|
780
780
|
}
|
|
781
|
-
var _ = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',
|
|
782
|
-
function
|
|
781
|
+
var _ = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', Vr = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', vt = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
|
|
782
|
+
function qr(e) {
|
|
783
783
|
e.forEach(function(t) {
|
|
784
784
|
[].concat(Object.keys(t), vt).filter(function(r, n, o) {
|
|
785
785
|
return o.indexOf(r) === n;
|
|
@@ -817,12 +817,12 @@ function Fr(e) {
|
|
|
817
817
|
t.requires && t.requires.forEach(function(n) {
|
|
818
818
|
e.find(function(o) {
|
|
819
819
|
return o.name === n;
|
|
820
|
-
}) == null && console.error(X(
|
|
820
|
+
}) == null && console.error(X(Vr, String(t.name), n, n));
|
|
821
821
|
});
|
|
822
822
|
});
|
|
823
823
|
});
|
|
824
824
|
}
|
|
825
|
-
function
|
|
825
|
+
function Fr(e, t) {
|
|
826
826
|
var r = /* @__PURE__ */ new Set();
|
|
827
827
|
return e.filter(function(n) {
|
|
828
828
|
var o = t(n);
|
|
@@ -830,7 +830,7 @@ function Wr(e, t) {
|
|
|
830
830
|
return r.add(o), !0;
|
|
831
831
|
});
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function Wr(e) {
|
|
834
834
|
var t = e.reduce(function(r, n) {
|
|
835
835
|
var o = r[n.name];
|
|
836
836
|
return r[n.name] = o ? Object.assign({}, o, n, {
|
|
@@ -842,7 +842,7 @@ function Hr(e) {
|
|
|
842
842
|
return t[r];
|
|
843
843
|
});
|
|
844
844
|
}
|
|
845
|
-
var ht = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",
|
|
845
|
+
var ht = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.", Hr = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.", mt = {
|
|
846
846
|
placement: "bottom",
|
|
847
847
|
modifiers: [],
|
|
848
848
|
strategy: "absolute"
|
|
@@ -854,7 +854,7 @@ function gt() {
|
|
|
854
854
|
return !(n && typeof n.getBoundingClientRect == "function");
|
|
855
855
|
});
|
|
856
856
|
}
|
|
857
|
-
function
|
|
857
|
+
function Ur(e) {
|
|
858
858
|
e === void 0 && (e = {});
|
|
859
859
|
var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, o = t.defaultOptions, i = o === void 0 ? mt : o;
|
|
860
860
|
return function(l, s, f) {
|
|
@@ -878,15 +878,15 @@ function Xr(e) {
|
|
|
878
878
|
reference: ne(l) ? me(l) : l.contextElement ? me(l.contextElement) : [],
|
|
879
879
|
popper: me(s)
|
|
880
880
|
};
|
|
881
|
-
var $ =
|
|
881
|
+
var $ = Mr(Wr([].concat(n, p.options.modifiers)));
|
|
882
882
|
if (p.orderedModifiers = $.filter(function(b) {
|
|
883
883
|
return b.enabled;
|
|
884
884
|
}), process.env.NODE_ENV !== "production") {
|
|
885
|
-
var c =
|
|
885
|
+
var c = Fr([].concat($, p.options.modifiers), function(b) {
|
|
886
886
|
var D = b.name;
|
|
887
887
|
return D;
|
|
888
888
|
});
|
|
889
|
-
if (
|
|
889
|
+
if (qr(c), V(p.options.placement) === ze) {
|
|
890
890
|
var g = p.orderedModifiers.find(function(b) {
|
|
891
891
|
var D = b.name;
|
|
892
892
|
return D === "flip";
|
|
@@ -915,7 +915,7 @@ function Xr(e) {
|
|
|
915
915
|
});
|
|
916
916
|
for (var c = 0, g = 0; g < p.orderedModifiers.length; g++) {
|
|
917
917
|
if (process.env.NODE_ENV !== "production" && (c += 1, c > 100)) {
|
|
918
|
-
console.error(
|
|
918
|
+
console.error(Hr);
|
|
919
919
|
break;
|
|
920
920
|
}
|
|
921
921
|
if (p.reset === !0) {
|
|
@@ -932,7 +932,7 @@ function Xr(e) {
|
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
934
|
},
|
|
935
|
-
update:
|
|
935
|
+
update: Lr(function() {
|
|
936
936
|
return new Promise(function(v) {
|
|
937
937
|
u.forceUpdate(), v(p);
|
|
938
938
|
});
|
|
@@ -969,10 +969,10 @@ function Xr(e) {
|
|
|
969
969
|
return u;
|
|
970
970
|
};
|
|
971
971
|
}
|
|
972
|
-
var
|
|
973
|
-
defaultModifiers:
|
|
972
|
+
var Xr = [ur, Br, pr, Zt, Sr, xr, Rr, ir, Cr], Yr = /* @__PURE__ */ Ur({
|
|
973
|
+
defaultModifiers: Xr
|
|
974
974
|
});
|
|
975
|
-
const
|
|
975
|
+
const Gr = {
|
|
976
976
|
props: {
|
|
977
977
|
componentPrefix: String,
|
|
978
978
|
size: String,
|
|
@@ -991,7 +991,7 @@ const Jr = {
|
|
|
991
991
|
return this.size ? !this.sizeableClassPrefix || this.hasSizeablePrefix ? this.size : `${this.sizeableClassPrefix}-${this.size}` : "";
|
|
992
992
|
}
|
|
993
993
|
}
|
|
994
|
-
},
|
|
994
|
+
}, Jr = {
|
|
995
995
|
props: {
|
|
996
996
|
componentPrefix: String,
|
|
997
997
|
variant: String,
|
|
@@ -1010,11 +1010,11 @@ const Jr = {
|
|
|
1010
1010
|
return this.variant ? !this.variantClassPrefix || this.hasVariantPrefix ? this.variant : `${this.variantClassPrefix}-${this.variant}` : "";
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
|
-
},
|
|
1013
|
+
}, Kr = {
|
|
1014
1014
|
name: "Btn",
|
|
1015
1015
|
mixins: [
|
|
1016
|
-
|
|
1017
|
-
|
|
1016
|
+
Gr,
|
|
1017
|
+
Jr
|
|
1018
1018
|
],
|
|
1019
1019
|
props: {
|
|
1020
1020
|
active: Boolean,
|
|
@@ -1056,7 +1056,7 @@ const Jr = {
|
|
|
1056
1056
|
r[n] = o;
|
|
1057
1057
|
return r;
|
|
1058
1058
|
};
|
|
1059
|
-
function
|
|
1059
|
+
function Qr(e, t, r, n, o, i) {
|
|
1060
1060
|
return W(), ee(He(i.component), ge(e.$attrs, {
|
|
1061
1061
|
disabled: r.disabled,
|
|
1062
1062
|
class: i.classes,
|
|
@@ -1070,7 +1070,7 @@ function Zr(e, t, r, n, o, i) {
|
|
|
1070
1070
|
_: 3
|
|
1071
1071
|
}, 16, ["disabled", "class"]);
|
|
1072
1072
|
}
|
|
1073
|
-
const
|
|
1073
|
+
const Zr = /* @__PURE__ */ fe(Kr, [["render", Qr]]), _r = {
|
|
1074
1074
|
props: {
|
|
1075
1075
|
componentPrefix: String,
|
|
1076
1076
|
size: String,
|
|
@@ -1087,14 +1087,14 @@ const _r = /* @__PURE__ */ fe(Qr, [["render", Zr]]), en = {
|
|
|
1087
1087
|
return this.size ? !this.sizeableClassPrefix || this.hasSizeablePrefix ? this.size : `${this.sizeableClassPrefix}-${this.size}` : "";
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
|
-
},
|
|
1090
|
+
}, en = (e, t) => {
|
|
1091
1091
|
const r = e.__vccOpts || e;
|
|
1092
1092
|
for (const [n, o] of t)
|
|
1093
1093
|
r[n] = o;
|
|
1094
1094
|
return r;
|
|
1095
|
-
},
|
|
1095
|
+
}, tn = {
|
|
1096
1096
|
name: "BtnGroup",
|
|
1097
|
-
mixins: [
|
|
1097
|
+
mixins: [_r],
|
|
1098
1098
|
props: {
|
|
1099
1099
|
sizePrefix: {
|
|
1100
1100
|
type: String,
|
|
@@ -1115,47 +1115,30 @@ const _r = /* @__PURE__ */ fe(Qr, [["render", Zr]]), en = {
|
|
|
1115
1115
|
};
|
|
1116
1116
|
}
|
|
1117
1117
|
}
|
|
1118
|
-
},
|
|
1119
|
-
function
|
|
1118
|
+
}, rn = ["data-toggle"];
|
|
1119
|
+
function nn(e, t, r, n, o, i) {
|
|
1120
1120
|
return W(), Ue("div", {
|
|
1121
1121
|
class: F(i.classes),
|
|
1122
1122
|
"data-toggle": r.toggle ? "buttons" : !1,
|
|
1123
1123
|
role: "group"
|
|
1124
|
-
}, [P(e.$slots, "default")], 10,
|
|
1124
|
+
}, [P(e.$slots, "default")], 10, rn);
|
|
1125
1125
|
}
|
|
1126
|
-
const
|
|
1126
|
+
const on = /* @__PURE__ */ en(tn, [["render", nn]]);
|
|
1127
1127
|
function Ve(e, t) {
|
|
1128
1128
|
e.props.class = `${e.props.class || ""} ${t}`.trim();
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1131
|
-
return (r) => {
|
|
1132
|
-
typeof t == "function" && t(r), r.cancelBubble || e(r);
|
|
1133
|
-
};
|
|
1134
|
-
}
|
|
1135
|
-
function yt(e, t) {
|
|
1136
|
-
return e.attrs.on[t] || e.type && e.type.listeners && e.componentOptions.listeners[t];
|
|
1137
|
-
}
|
|
1138
|
-
function sn(e) {
|
|
1139
|
-
return e && e.type && (e.type === "fragment" || typeof e.type == "symbol");
|
|
1140
|
-
}
|
|
1141
|
-
function Bt(e) {
|
|
1130
|
+
function St(e) {
|
|
1142
1131
|
for (const t of e) {
|
|
1143
|
-
|
|
1144
|
-
return Bt(t.children);
|
|
1145
|
-
t.props = Object.assign({ class: void 0 }, t.props), t.attrs = Object.assign({}, t.attrs), t.attrs.on || (t.attrs.on = {});
|
|
1132
|
+
t.type === Nt && St(t.children), t.props = Object.assign({ class: void 0 }, t.props), t.attrs = Object.assign({}, t.attrs), t.attrs.on || (t.attrs.on = {});
|
|
1146
1133
|
const r = t.props.class && t.props.class.match(/dropdown-item/), n = t.props.class && t.props.class.match(/dropdown-divider/);
|
|
1147
|
-
t.
|
|
1148
|
-
context.parent.$emit("click-item", o, t);
|
|
1149
|
-
}, yt(t, "click")), t.attrs.on.blur = bt((o) => {
|
|
1150
|
-
context.parent.$emit("blur-item", o, t);
|
|
1151
|
-
}, yt(t, "blur")), typeof t.type == "string" && t.type.match(/^h\d$/) ? Ve(t, "dropdown-header") : t.type === "hr" && !n ? (t.type = "div", Ve(t, "dropdown-divider")) : !r && !n && Ve(t, "dropdown-item");
|
|
1134
|
+
typeof t.type == "string" && t.type.match(/^h\d$/) ? Ve(t, "dropdown-header") : t.type === "hr" && !n ? (t.type = "div", Ve(t, "dropdown-divider")) : !r && !n && Ve(t, "dropdown-item");
|
|
1152
1135
|
}
|
|
1153
1136
|
return e;
|
|
1154
1137
|
}
|
|
1155
|
-
const
|
|
1138
|
+
const an = (e, t) => Tt("div", {}, St(t.slots.default())), sn = an, ln = {
|
|
1156
1139
|
name: "DropdownMenu",
|
|
1157
1140
|
components: {
|
|
1158
|
-
DropdownMenuItems:
|
|
1141
|
+
DropdownMenuItems: sn
|
|
1159
1142
|
},
|
|
1160
1143
|
props: {
|
|
1161
1144
|
align: {
|
|
@@ -1167,8 +1150,8 @@ const ln = (e, t) => Nt("div", {}, Bt(t.slots.default())), pn = ln, fn = {
|
|
|
1167
1150
|
},
|
|
1168
1151
|
show: Boolean
|
|
1169
1152
|
}
|
|
1170
|
-
},
|
|
1171
|
-
function
|
|
1153
|
+
}, pn = ["aria-labelledby"];
|
|
1154
|
+
function fn(e, t, r, n, o, i) {
|
|
1172
1155
|
const a = te("dropdown-menu-items");
|
|
1173
1156
|
return W(), Ue("div", {
|
|
1174
1157
|
class: F(["dropdown-menu", {
|
|
@@ -1186,9 +1169,9 @@ function cn(e, t, r, n, o, i) {
|
|
|
1186
1169
|
]),
|
|
1187
1170
|
_: 3
|
|
1188
1171
|
})
|
|
1189
|
-
], 10,
|
|
1172
|
+
], 10, pn);
|
|
1190
1173
|
}
|
|
1191
|
-
const
|
|
1174
|
+
const un = /* @__PURE__ */ fe(ln, [["render", fn]]), cn = {
|
|
1192
1175
|
props: {
|
|
1193
1176
|
expanded: {
|
|
1194
1177
|
type: Boolean,
|
|
@@ -1204,7 +1187,7 @@ const dn = /* @__PURE__ */ fe(fn, [["render", cn]]), vn = {
|
|
|
1204
1187
|
}
|
|
1205
1188
|
}
|
|
1206
1189
|
};
|
|
1207
|
-
function
|
|
1190
|
+
function dn(e, t, r, n, o, i) {
|
|
1208
1191
|
return W(), ee(He(i.is), ge({ id: r.id }, r.to ? { to: r.to } : { href: r.href }, {
|
|
1209
1192
|
"aria-haspopup": "true",
|
|
1210
1193
|
"aria-expanded": r.expanded,
|
|
@@ -1216,13 +1199,13 @@ function hn(e, t, r, n, o, i) {
|
|
|
1216
1199
|
_: 3
|
|
1217
1200
|
}, 16, ["id", "aria-expanded", "type"]);
|
|
1218
1201
|
}
|
|
1219
|
-
const
|
|
1202
|
+
const vn = /* @__PURE__ */ fe(cn, [["render", dn]]), kt = {
|
|
1220
1203
|
components: {
|
|
1221
|
-
BtnDropdownAction:
|
|
1222
|
-
BtnGroup:
|
|
1223
|
-
DropdownMenu:
|
|
1204
|
+
BtnDropdownAction: vn,
|
|
1205
|
+
BtnGroup: on,
|
|
1206
|
+
DropdownMenu: un
|
|
1224
1207
|
},
|
|
1225
|
-
extends:
|
|
1208
|
+
extends: Zr,
|
|
1226
1209
|
emits: ["click-toggle", "show", "hide", "toggle"],
|
|
1227
1210
|
props: {
|
|
1228
1211
|
align: {
|
|
@@ -1380,7 +1363,7 @@ const mn = /* @__PURE__ */ fe(vn, [["render", hn]]), Dt = {
|
|
|
1380
1363
|
show() {
|
|
1381
1364
|
this.expanded = !0;
|
|
1382
1365
|
const e = this.$refs.split && this.$refs.split.$el || this.$el;
|
|
1383
|
-
!this.nav && !this.popper ? this.popper =
|
|
1366
|
+
!this.nav && !this.popper ? this.popper = Yr(e, this.$refs.menu.$el, {
|
|
1384
1367
|
placement: `${this.placement}-${this.align === "left" ? "start" : "end"}`,
|
|
1385
1368
|
onFirstUpdate: () => {
|
|
1386
1369
|
this.triggerAnimation = this.animated;
|
|
@@ -1413,15 +1396,15 @@ const mn = /* @__PURE__ */ fe(vn, [["render", hn]]), Dt = {
|
|
|
1413
1396
|
});
|
|
1414
1397
|
}
|
|
1415
1398
|
}
|
|
1416
|
-
},
|
|
1399
|
+
}, hn = {
|
|
1417
1400
|
mixins: [
|
|
1418
|
-
|
|
1401
|
+
kt
|
|
1419
1402
|
],
|
|
1420
1403
|
emits: [
|
|
1421
1404
|
"click"
|
|
1422
1405
|
]
|
|
1423
|
-
},
|
|
1424
|
-
function
|
|
1406
|
+
}, mn = ["id", "aria-expanded"];
|
|
1407
|
+
function gn(e, t, r, n, o, i) {
|
|
1425
1408
|
const a = te("btn-dropdown-action"), l = te("dropdown-menu"), s = te("btn-group");
|
|
1426
1409
|
return W(), ee(s, {
|
|
1427
1410
|
class: F([e.classes, "btn-dropdown-split"])
|
|
@@ -1459,7 +1442,7 @@ function yn(e, t, r, n, o, i) {
|
|
|
1459
1442
|
class: F(e.toggleClasses),
|
|
1460
1443
|
onBlur: t[1] || (t[1] = (...f) => e.onBlur && e.onBlur(...f)),
|
|
1461
1444
|
onClick: t[2] || (t[2] = (...f) => e.onClickToggle && e.onClickToggle(...f))
|
|
1462
|
-
}, null, 42,
|
|
1445
|
+
}, null, 42, mn)) : de("", !0)
|
|
1463
1446
|
]),
|
|
1464
1447
|
we(l, {
|
|
1465
1448
|
id: e.$attrs.id,
|
|
@@ -1467,14 +1450,14 @@ function yn(e, t, r, n, o, i) {
|
|
|
1467
1450
|
align: e.align,
|
|
1468
1451
|
show: e.expanded,
|
|
1469
1452
|
class: F({ animated: e.triggerAnimation }),
|
|
1470
|
-
|
|
1471
|
-
|
|
1453
|
+
onClick: e.onClickItem,
|
|
1454
|
+
onBlur: e.onBlur
|
|
1472
1455
|
}, {
|
|
1473
1456
|
default: B(() => [
|
|
1474
1457
|
P(e.$slots, "default")
|
|
1475
1458
|
]),
|
|
1476
1459
|
_: 3
|
|
1477
|
-
}, 8, ["id", "align", "show", "class", "
|
|
1460
|
+
}, 8, ["id", "align", "show", "class", "onClick", "onBlur"])
|
|
1478
1461
|
]),
|
|
1479
1462
|
_: 3
|
|
1480
1463
|
}, 512),
|
|
@@ -1502,12 +1485,12 @@ function yn(e, t, r, n, o, i) {
|
|
|
1502
1485
|
_: 3
|
|
1503
1486
|
}, 8, ["class"]);
|
|
1504
1487
|
}
|
|
1505
|
-
const
|
|
1488
|
+
const bn = /* @__PURE__ */ fe(hn, [["render", gn]]), yn = {
|
|
1506
1489
|
mixins: [
|
|
1507
|
-
|
|
1490
|
+
kt
|
|
1508
1491
|
]
|
|
1509
1492
|
};
|
|
1510
|
-
function
|
|
1493
|
+
function wn(e, t, r, n, o, i) {
|
|
1511
1494
|
const a = te("btn-dropdown-action"), l = te("dropdown-menu"), s = te("btn-group");
|
|
1512
1495
|
return W(), ee(s, {
|
|
1513
1496
|
class: F(e.classes)
|
|
@@ -1520,7 +1503,7 @@ function xn(e, t, r, n, o, i) {
|
|
|
1520
1503
|
expanded: e.expanded,
|
|
1521
1504
|
href: e.href,
|
|
1522
1505
|
to: e.to,
|
|
1523
|
-
style:
|
|
1506
|
+
style: It(e.toggleStyle),
|
|
1524
1507
|
class: F(e.toggleClasses),
|
|
1525
1508
|
onBlur: e.onBlur,
|
|
1526
1509
|
onClick: e.onClickToggle
|
|
@@ -1540,24 +1523,24 @@ function xn(e, t, r, n, o, i) {
|
|
|
1540
1523
|
align: e.align,
|
|
1541
1524
|
show: e.expanded,
|
|
1542
1525
|
class: F({ animated: e.triggerAnimation }),
|
|
1543
|
-
|
|
1544
|
-
|
|
1526
|
+
onBlur: e.onBlur,
|
|
1527
|
+
onClick: e.onClickItem
|
|
1545
1528
|
}, {
|
|
1546
1529
|
default: B(() => [
|
|
1547
1530
|
P(e.$slots, "default")
|
|
1548
1531
|
]),
|
|
1549
1532
|
_: 3
|
|
1550
|
-
}, 8, ["id", "align", "show", "class", "
|
|
1533
|
+
}, 8, ["id", "align", "show", "class", "onBlur", "onClick"])
|
|
1551
1534
|
]),
|
|
1552
1535
|
_: 3
|
|
1553
1536
|
}, 8, ["class"]);
|
|
1554
1537
|
}
|
|
1555
|
-
const
|
|
1556
|
-
const
|
|
1538
|
+
const On = /* @__PURE__ */ fe(yn, [["render", wn]]);
|
|
1539
|
+
const xn = {
|
|
1557
1540
|
name: "BtnDropdown",
|
|
1558
1541
|
components: {
|
|
1559
|
-
BtnDropdownSplit:
|
|
1560
|
-
BtnDropdownSingle:
|
|
1542
|
+
BtnDropdownSplit: bn,
|
|
1543
|
+
BtnDropdownSingle: On
|
|
1561
1544
|
},
|
|
1562
1545
|
inheritAttrs: !1,
|
|
1563
1546
|
emits: [
|
|
@@ -1569,7 +1552,7 @@ const Cn = {
|
|
|
1569
1552
|
"toggle"
|
|
1570
1553
|
]
|
|
1571
1554
|
};
|
|
1572
|
-
function
|
|
1555
|
+
function $n(e, t, r, n, o, i) {
|
|
1573
1556
|
return W(), ee(He(e.$attrs.split === void 0 || !!e.$attrs.nav ? "btn-dropdown-single" : "btn-dropdown-split"), ge({ class: "btn-dropdown" }, e.$attrs, {
|
|
1574
1557
|
onClick: t[0] || (t[0] = (...a) => e.$emit("click", ...a)),
|
|
1575
1558
|
onClickToggle: t[1] || (t[1] = (...a) => e.$emit("click-toggle", ...a)),
|
|
@@ -1577,7 +1560,7 @@ function Pn(e, t, r, n, o, i) {
|
|
|
1577
1560
|
onShow: t[3] || (t[3] = (...a) => e.$emit("show", ...a)),
|
|
1578
1561
|
onHide: t[4] || (t[4] = (...a) => e.$emit("hide", ...a)),
|
|
1579
1562
|
onToggle: t[5] || (t[5] = (...a) => e.$emit("toggle", ...a))
|
|
1580
|
-
}),
|
|
1563
|
+
}), Mt({
|
|
1581
1564
|
icon: B(() => [
|
|
1582
1565
|
P(e.$slots, "icon")
|
|
1583
1566
|
]),
|
|
@@ -1603,7 +1586,7 @@ function Pn(e, t, r, n, o, i) {
|
|
|
1603
1586
|
} : void 0
|
|
1604
1587
|
]), 1040);
|
|
1605
1588
|
}
|
|
1606
|
-
const
|
|
1589
|
+
const Pn = /* @__PURE__ */ fe(xn, [["render", $n]]);
|
|
1607
1590
|
export {
|
|
1608
|
-
|
|
1591
|
+
Pn as BtnDropdown
|
|
1609
1592
|
};
|
package/dist/btn-dropdown.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(U,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(U=typeof globalThis<"u"?globalThis:U||self,i(U.BtnDropdown={},U.Vue))})(this,function(U,i){"use strict";var A="top",T="bottom",N="right",z="left",me="auto",ae=[A,T,N,z],ee="start",se="end",
|
|
1
|
+
(function(U,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(U=typeof globalThis<"u"?globalThis:U||self,i(U.BtnDropdown={},U.Vue))})(this,function(U,i){"use strict";var A="top",T="bottom",N="right",z="left",me="auto",ae=[A,T,N,z],ee="start",se="end",vt="clippingParents",Ie="viewport",le="popper",gt="reference",Le=ae.reduce(function(e,t){return e.concat([t+"-"+ee,t+"-"+se])},[]),qe=[].concat(ae,[me]).reduce(function(e,t){return e.concat([t,t+"-"+ee,t+"-"+se])},[]),bt="beforeRead",yt="read",wt="afterRead",xt="beforeMain",Ct="main",Ot="afterMain",$t="beforeWrite",Pt="write",St="afterWrite",Pe=[bt,yt,wt,xt,Ct,Ot,$t,Pt,St];function q(e){return e?(e.nodeName||"").toLowerCase():null}function V(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function X(e){var t=V(e).Element;return e instanceof t||e instanceof Element}function R(e){var t=V(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Se(e){if(typeof ShadowRoot>"u")return!1;var t=V(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function kt(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!R(a)||!q(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(s){var p=o[s];p===!1?a.removeAttribute(s):a.setAttribute(s,p===!0?"":p)}))})}function Bt(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),p=s.reduce(function(l,c){return l[c]="",l},{});!R(o)||!q(o)||(Object.assign(o.style,p),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const Et={name:"applyStyles",enabled:!0,phase:"write",fn:kt,effect:Bt,requires:["computeStyles"]};function M(e){return e.split("-")[0]}var Y=Math.max,ve=Math.min,te=Math.round;function ke(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Fe(){return!/^((?!chrome|android).)*safari/i.test(ke())}function re(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&R(e)&&(o=e.offsetWidth>0&&te(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&te(n.height)/e.offsetHeight||1);var s=X(e)?V(e):window,p=s.visualViewport,l=!Fe()&&r,c=(n.left+(l&&p?p.offsetLeft:0))/o,f=(n.top+(l&&p?p.offsetTop:0))/a,v=n.width/o,w=n.height/a;return{width:v,height:w,top:f,right:c+v,bottom:f+w,left:c,x:c,y:f}}function Be(e){var t=re(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function We(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Se(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function I(e){return V(e).getComputedStyle(e)}function Dt(e){return["table","td","th"].indexOf(q(e))>=0}function F(e){return((X(e)?e.ownerDocument:e.document)||window.document).documentElement}function ge(e){return q(e)==="html"?e:e.assignedSlot||e.parentNode||(Se(e)?e.host:null)||F(e)}function He(e){return!R(e)||I(e).position==="fixed"?null:e.offsetParent}function At(e){var t=/firefox/i.test(ke()),r=/Trident/i.test(ke());if(r&&R(e)){var n=I(e);if(n.position==="fixed")return null}var o=ge(e);for(Se(o)&&(o=o.host);R(o)&&["html","body"].indexOf(q(o))<0;){var a=I(o);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")return o;o=o.parentNode}return null}function pe(e){for(var t=V(e),r=He(e);r&&Dt(r)&&I(r).position==="static";)r=He(r);return r&&(q(r)==="html"||q(r)==="body"&&I(r).position==="static")?t:r||At(e)||t}function Ee(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fe(e,t,r){return Y(e,ve(t,r))}function zt(e,t,r){var n=fe(e,t,r);return n>r?r:n}function Ue(){return{top:0,right:0,bottom:0,left:0}}function Xe(e){return Object.assign({},Ue(),e)}function Ye(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Rt=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Xe(typeof t!="number"?t:Ye(t,ae))};function jt(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,p=M(r.placement),l=Ee(p),c=[z,N].indexOf(p)>=0,f=c?"height":"width";if(!(!a||!s)){var v=Rt(o.padding,r),w=Be(a),d=l==="y"?A:z,C=l==="y"?T:N,g=r.rects.reference[f]+r.rects.reference[l]-s[l]-r.rects.popper[f],m=s[l]-r.rects.reference[l],x=pe(a),P=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,$=g/2-m/2,u=v[d],b=P-w[f]-v[C],h=P/2-w[f]/2+$,O=fe(u,h,b),S=l;r.modifiersData[n]=(t={},t[S]=O,t.centerOffset=O-h,t)}}function Tt(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;if(o!=null&&!(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(R(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(" "))),!We(t.elements.popper,o)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}t.elements.arrow=o}}const Nt={name:"arrow",enabled:!0,phase:"main",fn:jt,effect:Tt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var Vt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Mt(e){var t=e.x,r=e.y,n=window,o=n.devicePixelRatio||1;return{x:te(t*o)/o||0,y:te(r*o)/o||0}}function Ge(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,p=e.position,l=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,v=e.isFixed,w=s.x,d=w===void 0?0:w,C=s.y,g=C===void 0?0:C,m=typeof f=="function"?f({x:d,y:g}):{x:d,y:g};d=m.x,g=m.y;var x=s.hasOwnProperty("x"),P=s.hasOwnProperty("y"),$=z,u=A,b=window;if(c){var h=pe(r),O="clientHeight",S="clientWidth";if(h===V(r)&&(h=F(r),I(h).position!=="static"&&p==="absolute"&&(O="scrollHeight",S="scrollWidth")),h=h,o===A||(o===z||o===N)&&a===se){u=T;var k=v&&h===b&&b.visualViewport?b.visualViewport.height:h[O];g-=k-n.height,g*=l?1:-1}if(o===z||(o===A||o===T)&&a===se){$=N;var B=v&&h===b&&b.visualViewport?b.visualViewport.width:h[S];d-=B-n.width,d*=l?1:-1}}var y=Object.assign({position:p},c&&Vt),E=f===!0?Mt({x:d,y:g}):{x:d,y:g};if(d=E.x,g=E.y,l){var D;return Object.assign({},y,(D={},D[u]=P?"0":"",D[$]=x?"0":"",D.transform=(b.devicePixelRatio||1)<=1?"translate("+d+"px, "+g+"px)":"translate3d("+d+"px, "+g+"px, 0)",D))}return Object.assign({},y,(t={},t[u]=P?g+"px":"",t[$]=x?d+"px":"",t.transform="",t))}function It(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,s=a===void 0?!0:a,p=r.roundOffsets,l=p===void 0?!0:p;if(process.env.NODE_ENV!=="production"){var c=I(t.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some(function(v){return c.indexOf(v)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
|
|
2
2
|
|
|
3
3
|
`,'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.",`
|
|
4
4
|
|
|
5
|
-
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var f={placement:I(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ge(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ge(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ft={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:qt,data:{}};var be={passive:!0};function Wt(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,s=n.resize,p=s===void 0?!0:s,l=V(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(f){f.addEventListener("scroll",r.update,be)}),p&&l.addEventListener("resize",r.update,be),function(){a&&c.forEach(function(f){f.removeEventListener("scroll",r.update,be)}),p&&l.removeEventListener("resize",r.update,be)}}const Ht={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Wt,data:{}};var Ut={left:"right",right:"left",bottom:"top",top:"bottom"};function ye(e){return e.replace(/left|right|bottom|top/g,function(t){return Ut[t]})}var Xt={start:"end",end:"start"};function Je(e){return e.replace(/start|end/g,function(t){return Xt[t]})}function De(e){var t=V(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Ae(e){return re(F(e)).left+De(e).scrollLeft}function Yt(e,t){var r=V(e),n=F(e),o=r.visualViewport,a=n.clientWidth,s=n.clientHeight,p=0,l=0;if(o){a=o.width,s=o.height;var c=Fe();(c||!c&&t==="fixed")&&(p=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:p+Ae(e),y:l}}function Gt(e){var t,r=F(e),n=De(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Y(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Y(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),p=-n.scrollLeft+Ae(e),l=-n.scrollTop;return M(o||r).direction==="rtl"&&(p+=Y(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:p,y:l}}function ze(e){var t=M(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Ke(e){return["html","body","#document"].indexOf(q(e))>=0?e.ownerDocument.body:R(e)&&ze(e)?e:Ke(ge(e))}function ce(e,t){var r;t===void 0&&(t=[]);var n=Ke(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=V(n),s=o?[a].concat(a.visualViewport||[],ze(n)?n:[]):n,p=t.concat(s);return o?p:p.concat(ce(ge(s)))}function Re(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Jt(e,t){var r=re(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Qe(e,t,r){return t===Me?Re(Yt(e,r)):X(t)?Jt(t,r):Re(Gt(F(e)))}function Kt(e){var t=ce(ge(e)),r=["absolute","fixed"].indexOf(M(e).position)>=0,n=r&&R(e)?pe(e):e;return X(n)?t.filter(function(o){return X(o)&&We(o,n)&&q(o)!=="body"}):[]}function Qt(e,t,r,n){var o=t==="clippingParents"?Kt(e):[].concat(t),a=[].concat(o,[r]),s=a[0],p=a.reduce(function(l,c){var f=Qe(e,c,n);return l.top=Y(f.top,l.top),l.right=ve(f.right,l.right),l.bottom=ve(f.bottom,l.bottom),l.left=Y(f.left,l.left),l},Qe(e,s,n));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}function Ze(e){var t=e.reference,r=e.element,n=e.placement,o=n?I(n):null,a=n?ne(n):null,s=t.x+t.width/2-r.width/2,p=t.y+t.height/2-r.height/2,l;switch(o){case A:l={x:s,y:t.y-r.height};break;case T:l={x:s,y:t.y+t.height};break;case N:l={x:t.x+t.width,y:p};break;case z:l={x:t.x-r.width,y:p};break;default:l={x:t.x,y:t.y}}var c=o?Ee(o):null;if(c!=null){var f=c==="y"?"height":"width";switch(a){case ee:l[c]=l[c]-(t[f]/2-r[f]/2);break;case se:l[c]=l[c]+(t[f]/2-r[f]/2);break}}return l}function de(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,s=a===void 0?e.strategy:a,p=r.boundary,l=p===void 0?bt:p,c=r.rootBoundary,f=c===void 0?Me:c,v=r.elementContext,w=v===void 0?le:v,d=r.altBoundary,C=d===void 0?!1:d,g=r.padding,m=g===void 0?0:g,x=Xe(typeof m!="number"?m:Ye(m,ae)),P=w===le?yt:le,$=e.rects.popper,u=e.elements[C?P:w],b=Qt(X(u)?u:u.contextElement||F(e.elements.popper),l,f,s),h=re(e.elements.reference),O=Ze({reference:h,element:$,strategy:"absolute",placement:o}),S=Re(Object.assign({},$,O)),k=w===le?S:h,B={top:b.top-k.top+x.top,bottom:k.bottom-b.bottom+x.bottom,left:b.left-k.left+x.left,right:k.right-b.right+x.right},y=e.modifiersData.offset;if(w===le&&y){var E=y[o];Object.keys(B).forEach(function(D){var J=[N,T].indexOf(D)>=0?1:-1,K=[A,T].indexOf(D)>=0?"y":"x";B[D]+=E[K]*J})}return B}function Zt(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,s=r.padding,p=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?qe:l,f=ne(n),v=f?p?Le:Le.filter(function(C){return ne(C)===f}):ae,w=v.filter(function(C){return c.indexOf(C)>=0});w.length===0&&(w=v,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(" ")));var d=w.reduce(function(C,g){return C[g]=de(e,{placement:g,boundary:o,rootBoundary:a,padding:s})[I(g)],C},{});return Object.keys(d).sort(function(C,g){return d[C]-d[g]})}function _t(e){if(I(e)===me)return[];var t=ye(e);return[Je(e),t,Je(t)]}function er(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,p=s===void 0?!0:s,l=r.fallbackPlacements,c=r.padding,f=r.boundary,v=r.rootBoundary,w=r.altBoundary,d=r.flipVariations,C=d===void 0?!0:d,g=r.allowedAutoPlacements,m=t.options.placement,x=I(m),P=x===m,$=l||(P||!C?[ye(m)]:_t(m)),u=[m].concat($).reduce(function(ie,H){return ie.concat(I(H)===me?Zt(t,{placement:H,boundary:f,rootBoundary:v,padding:c,flipVariations:C,allowedAutoPlacements:g}):H)},[]),b=t.rects.reference,h=t.rects.popper,O=new Map,S=!0,k=u[0],B=0;B<u.length;B++){var y=u[B],E=I(y),D=ne(y)===ee,J=[A,T].indexOf(E)>=0,K=J?"width":"height",j=de(t,{placement:y,boundary:f,rootBoundary:v,altBoundary:w,padding:c}),L=J?D?N:z:D?T:A;b[K]>h[K]&&(L=ye(L));var we=ye(L),Q=[];if(a&&Q.push(j[E]<=0),p&&Q.push(j[L]<=0,j[we]<=0),Q.every(function(ie){return ie})){k=y,S=!1;break}O.set(y,Q)}if(S)for(var xe=C?3:1,Te=function(H){var he=u.find(function(Oe){var Z=O.get(Oe);if(Z)return Z.slice(0,H).every(function(Ne){return Ne})});if(he)return k=he,"break"},ue=xe;ue>0;ue--){var Ce=Te(ue);if(Ce==="break")break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}}const tr={name:"flip",enabled:!0,phase:"main",fn:er,requiresIfExists:["offset"],data:{_skip:!1}};function _e(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function et(e){return[A,N,T,z].some(function(t){return e[t]>=0})}function rr(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=de(t,{elementContext:"reference"}),p=de(t,{altBoundary:!0}),l=_e(s,n),c=_e(p,o,a),f=et(l),v=et(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":v})}const nr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rr};function or(e,t,r){var n=I(e),o=[z,A].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=a[0],p=a[1];return s=s||0,p=(p||0)*o,[z,N].indexOf(n)>=0?{x:p,y:s}:{x:s,y:p}}function ir(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,s=qe.reduce(function(f,v){return f[v]=or(v,t.rects,a),f},{}),p=s[t.placement],l=p.x,c=p.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=s}const ar={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ir};function sr(e){var t=e.state,r=e.name;t.modifiersData[r]=Ze({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const lr={name:"popperOffsets",enabled:!0,phase:"read",fn:sr,data:{}};function pr(e){return e==="x"?"y":"x"}function fr(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,p=s===void 0?!1:s,l=r.boundary,c=r.rootBoundary,f=r.altBoundary,v=r.padding,w=r.tether,d=w===void 0?!0:w,C=r.tetherOffset,g=C===void 0?0:C,m=de(t,{boundary:l,rootBoundary:c,padding:v,altBoundary:f}),x=I(t.placement),P=ne(t.placement),$=!P,u=Ee(x),b=pr(u),h=t.modifiersData.popperOffsets,O=t.rects.reference,S=t.rects.popper,k=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,B=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),y=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(!!h){if(a){var D,J=u==="y"?A:z,K=u==="y"?T:N,j=u==="y"?"height":"width",L=h[u],we=L+m[J],Q=L-m[K],xe=d?-S[j]/2:0,Te=P===ee?O[j]:S[j],ue=P===ee?-S[j]:-O[j],Ce=t.elements.arrow,ie=d&&Ce?Be(Ce):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ue(),he=H[J],Oe=H[K],Z=fe(0,O[j],ie[j]),Ne=$?O[j]/2-xe-Z-he-B.mainAxis:Te-Z-he-B.mainAxis,_r=$?-O[j]/2+xe+Z+Oe+B.mainAxis:ue+Z+Oe+B.mainAxis,Ve=t.elements.arrow&&pe(t.elements.arrow),en=Ve?u==="y"?Ve.clientTop||0:Ve.clientLeft||0:0,pt=(D=y==null?void 0:y[u])!=null?D:0,tn=L+Ne-pt-en,rn=L+_r-pt,ft=fe(d?ve(we,tn):we,L,d?Y(Q,rn):Q);h[u]=ft,E[u]=ft-L}if(p){var ct,nn=u==="x"?A:z,on=u==="x"?T:N,_=h[b],$e=b==="y"?"height":"width",dt=_+m[nn],ut=_-m[on],Ie=[A,z].indexOf(x)!==-1,ht=(ct=y==null?void 0:y[b])!=null?ct:0,mt=Ie?dt:_-O[$e]-S[$e]-ht+B.altAxis,vt=Ie?_+O[$e]+S[$e]-ht-B.altAxis:ut,gt=d&&Ie?jt(mt,_,vt):fe(d?mt:dt,_,d?vt:ut);h[b]=gt,E[b]=gt-_}t.modifiersData[n]=E}}const cr={name:"preventOverflow",enabled:!0,phase:"main",fn:fr,requiresIfExists:["offset"]};function dr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ur(e){return e===V(e)||!R(e)?De(e):dr(e)}function hr(e){var t=e.getBoundingClientRect(),r=te(t.width)/e.offsetWidth||1,n=te(t.height)/e.offsetHeight||1;return r!==1||n!==1}function mr(e,t,r){r===void 0&&(r=!1);var n=R(t),o=R(t)&&hr(t),a=F(t),s=re(e,o,r),p={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((q(t)!=="body"||ze(a))&&(p=ur(t)),R(t)?(l=re(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Ae(a))),{x:s.left+p.scrollLeft-l.x,y:s.top+p.scrollTop-l.y,width:s.width,height:s.height}}function vr(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(p){if(!r.has(p)){var l=t.get(p);l&&o(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function gr(e){var t=vr(e);return Pe.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function br(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function W(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return[].concat(r).reduce(function(o,a){return o.replace(/%s/,a)},e)}var G='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',yr='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',tt=["name","enabled","phase","fn","effect","requires","options"];function wr(e){e.forEach(function(t){[].concat(Object.keys(t),tt).filter(function(r,n,o){return o.indexOf(r)===n}).forEach(function(r){switch(r){case"name":typeof t.name!="string"&&console.error(W(G,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(W(G,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":Pe.indexOf(t.phase)<0&&console.error(W(G,t.name,'"phase"',"either "+Pe.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(W(G,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(W(G,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(W(G,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(W(G,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+tt.map(function(n){return'"'+n+'"'}).join(", ")+'; but "'+r+'" was provided.')}t.requires&&t.requires.forEach(function(n){e.find(function(o){return o.name===n})==null&&console.error(W(yr,String(t.name),n,n))})})})}function xr(e,t){var r=new Set;return e.filter(function(n){var o=t(n);if(!r.has(o))return r.add(o),!0})}function Cr(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var rt="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Or="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",nt={placement:"bottom",modifiers:[],strategy:"absolute"};function ot(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function $r(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?nt:o;return function(p,l,c){c===void 0&&(c=a);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},nt,a),modifiersData:{},elements:{reference:p,popper:l},attributes:{},styles:{}},v=[],w=!1,d={state:f,setOptions:function(x){var P=typeof x=="function"?x(f.options):x;g(),f.options=Object.assign({},a,f.options,P),f.scrollParents={reference:X(p)?ce(p):p.contextElement?ce(p.contextElement):[],popper:ce(l)};var $=gr(Cr([].concat(n,f.options.modifiers)));if(f.orderedModifiers=$.filter(function(y){return y.enabled}),process.env.NODE_ENV!=="production"){var u=xr([].concat($,f.options.modifiers),function(y){var E=y.name;return E});if(wr(u),I(f.options.placement)===me){var b=f.orderedModifiers.find(function(y){var E=y.name;return E==="flip"});b||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var h=M(l),O=h.marginTop,S=h.marginRight,k=h.marginBottom,B=h.marginLeft;[O,S,k,B].some(function(y){return parseFloat(y)})&&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(" "))}return C(),d.update()},forceUpdate:function(){if(!w){var x=f.elements,P=x.reference,$=x.popper;if(!ot(P,$)){process.env.NODE_ENV!=="production"&&console.error(rt);return}f.rects={reference:mr(P,pe($),f.options.strategy==="fixed"),popper:Be($)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(y){return f.modifiersData[y.name]=Object.assign({},y.data)});for(var u=0,b=0;b<f.orderedModifiers.length;b++){if(process.env.NODE_ENV!=="production"&&(u+=1,u>100)){console.error(Or);break}if(f.reset===!0){f.reset=!1,b=-1;continue}var h=f.orderedModifiers[b],O=h.fn,S=h.options,k=S===void 0?{}:S,B=h.name;typeof O=="function"&&(f=O({state:f,options:k,name:B,instance:d})||f)}}},update:br(function(){return new Promise(function(m){d.forceUpdate(),m(f)})}),destroy:function(){g(),w=!0}};if(!ot(p,l))return process.env.NODE_ENV!=="production"&&console.error(rt),d;d.setOptions(c).then(function(m){!w&&c.onFirstUpdate&&c.onFirstUpdate(m)});function C(){f.orderedModifiers.forEach(function(m){var x=m.name,P=m.options,$=P===void 0?{}:P,u=m.effect;if(typeof u=="function"){var b=u({state:f,name:x,instance:d,options:$}),h=function(){};v.push(b||h)}})}function g(){v.forEach(function(m){return m()}),v=[]}return d}}var Pr=[Ht,lr,Ft,At,ar,tr,cr,It,nr],Sr=$r({defaultModifiers:Pr});const kr={name:"Btn",mixins:[{props:{componentPrefix:String,size:String,sizePrefix:String},computed:{sizeableClassPrefix(){return this.sizePrefix||this.componentPrefix},hasSizeablePrefix(){return this.size&&!!this.size.match(new RegExp(`^${this.sizeableClassPrefix}`))},sizeableClass(){return this.size?!this.sizeableClassPrefix||this.hasSizeablePrefix?this.size:`${this.sizeableClassPrefix}-${this.size}`:""}}},{props:{componentPrefix:String,variant:String,variantPrefix:String},computed:{variantClassPrefix(){return this.variantPrefix||this.componentPrefix},hasVariantPrefix(){return this.variant&&!!this.variant.match(new RegExp(`^${this.variantClassPrefix}`))},variantClass(){return this.variant?!this.variantClassPrefix||this.hasVariantPrefix?this.variant:`${this.variantClassPrefix}-${this.variant}`:""}}}],props:{active:Boolean,block:Boolean,componentPrefix:{type:String,default:"btn"},disabled:Boolean,label:String,outline:Boolean,tag:String,variant:{type:String,default:"primary"}},computed:{classes(){return["btn",this.variantClass,this.sizeableClass,this.active&&"active",this.block&&"btn-block",this.disabled&&"disabled"]},component(){return this.tag?this.tag:this.$attrs.href?"a":"button"},variantClassPrefix(){return(this.variantPrefix||this.componentPrefix)+(this.outline?"-outline":"")}}},oe=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r};function Br(e,t,r,n,o,a){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.component),i.mergeProps(e.$attrs,{disabled:r.disabled,class:a.classes,role:"button"}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(r.label),1)])]),_:3},16,["disabled","class"])}const Er=oe(kr,[["render",Br]]),Dr={props:{componentPrefix:String,size:String,sizePrefix:String},computed:{sizeableClassPrefix(){return this.sizePrefix||this.componentPrefix},hasSizeablePrefix(){return this.size&&!!this.size.match(new RegExp(`^${this.sizeableClassPrefix}`))},sizeableClass(){return this.size?!this.sizeableClassPrefix||this.hasSizeablePrefix?this.size:`${this.sizeableClassPrefix}-${this.size}`:""}}},Ar=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},zr={name:"BtnGroup",mixins:[Dr],props:{sizePrefix:{type:String,default(){return"btn-group"}},toggle:Boolean,vertical:Boolean},computed:{classes(){return{"btn-group":!this.vertical,"btn-group-toggle":this.toggle,"btn-group-vertical":this.vertical,[this.sizeableClass]:!!this.size}}}},Rr=["data-toggle"];function jr(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(a.classes),"data-toggle":r.toggle?"buttons":!1,role:"group"},[i.renderSlot(e.$slots,"default")],10,Rr)}const Tr=Ar(zr,[["render",jr]]);function je(e,t){e.props.class=`${e.props.class||""} ${t}`.trim()}function it(e,t){return r=>{typeof t=="function"&&t(r),r.cancelBubble||e(r)}}function at(e,t){return e.attrs.on[t]||e.type&&e.type.listeners&&e.componentOptions.listeners[t]}function Nr(e){return e&&e.type&&(e.type==="fragment"||typeof e.type=="symbol")}function st(e){for(const t of e){if(Nr(t))return st(t.children);t.props=Object.assign({class:void 0},t.props),t.attrs=Object.assign({},t.attrs),t.attrs.on||(t.attrs.on={});const r=t.props.class&&t.props.class.match(/dropdown-item/),n=t.props.class&&t.props.class.match(/dropdown-divider/);t.attrs.on.click=it(o=>{context.parent.$emit("click-item",o,t)},at(t,"click")),t.attrs.on.blur=it(o=>{context.parent.$emit("blur-item",o,t)},at(t,"blur")),typeof t.type=="string"&&t.type.match(/^h\d$/)?je(t,"dropdown-header"):t.type==="hr"&&!n?(t.type="div",je(t,"dropdown-divider")):!r&&!n&&je(t,"dropdown-item")}return e}const Vr={name:"DropdownMenu",components:{DropdownMenuItems:(e,t)=>i.h("div",{},st(t.slots.default()))},props:{align:{type:String,default:"left",validate(e){return["left","right"].indexOf(e.toLowerCase())!==-1}},show:Boolean}},Ir=["aria-labelledby"];function Mr(e,t,r,n,o,a){const s=i.resolveComponent("dropdown-menu-items");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["dropdown-menu",{"dropdown-menu-left":r.align==="left","dropdown-menu-right":r.align==="right",show:r.show}]),"aria-labelledby":e.$attrs.id},[i.createVNode(s,null,{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{onClick:t[0]||(t[0]=(...p)=>e.onItemClick&&e.onItemClick(...p))})]),_:3})],10,Ir)}const Lr=oe(Vr,[["render",Mr]]),qr={props:{expanded:{type:Boolean,default:!1},id:String,href:String,to:[String,Object]},computed:{is(){return this.to?"router-link":this.href?"a":"button"}}};function Fr(e,t,r,n,o,a){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.is),i.mergeProps({id:r.id},r.to?{to:r.to}:{href:r.href},{"aria-haspopup":"true","aria-expanded":r.expanded,type:a.is==="button"?"button":void 0}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},16,["id","aria-expanded","type"])}const lt={components:{BtnDropdownAction:oe(qr,[["render",Fr]]),BtnGroup:Tr,DropdownMenu:Lr},extends:Er,emits:["click-toggle","show","hide","toggle"],props:{align:{type:String,default:"left",validate(e){return["left","right"].indexOf(e.toLowerCase())!==-1}},animated:{type:Boolean,default:!0},buttonClass:[Object,String],caret:{type:Boolean,default:!0},dropup:{type:Boolean,default:!1},dropright:{type:Boolean,default:!1},dropleft:{type:Boolean,default:!1},height:String,href:String,nav:Boolean,label:String,offset:{type:Number,default:5},rotate:{type:Boolean,default:!1},split:{type:Boolean,default:!1},to:[String,Object],type:{type:String,default:"button"},width:String},data(){return{popper:null,triggerAnimation:!1,expanded:!1}},computed:{scope(){return{placement:this.placement,variantClassPrefix:this.variantClassPrefix,sizeableClassPrefix:this.sizeableClassPrefix,classes:this.classes,actionClasses:this.actionClasses,toggleStyle:this.toggleStyle,toggleClasses:this.toggleClasses,focus:this.focus,queryFocusable:this.queryFocusable,isFocusable:this.isFocusable,toggle:this.toggle,show:this.show,hide:this.hide,onBlur:this.onBlur,onClickItem:this.onClickItem,onClickToggle:this.onClickToggle,expanded:this.expanded}},placement(){return this.dropup?"top":this.dropleft?"left":this.dropright?"right":"bottom"},variantClassPrefix(){return"btn"+(this.outline?"-outline":"")},sizeableClassPrefix(){return"btn"},classes(){return{dropdown:this.dropup&&this.dropright&&this.dropleft,dropup:this.dropup,dropright:this.dropright,dropleft:this.dropleft,"icon-only":!this.nav&&!this.split&&!!this.$slots.icon&&!this.$slots.label,"hide-caret":!this.caret,expanded:this.expanded,"rotate-90":!this.nav&&this.split&&this.rotate&&this.expanded}},actionClasses(){return Object.assign({btn:!this.nav,[this.variantClass]:!this.nav&&!!this.variant,[this.sizeableClass]:!!this.size},typeof this.buttonClass=="object"?this.buttonClass:{[this.buttonClass]:!!this.buttonClass})},toggleStyle(){return{width:this.width,height:this.height}},toggleClasses(){return Object.assign({active:this.active,btn:!this.nav,"btn-block":!!this.block,"nav-link":!!this.nav,"rotate-90":!this.split&&this.rotate&&this.expanded,"dropdown-toggle":!0,"dropdown-toggle-split":!this.nav&&this.split,[this.variantClass]:!this.nav&&!!this.variant,[this.sizeableClass]:!!this.size},typeof this.buttonClass=="object"?this.buttonClass:{[this.buttonClass]:!!this.buttonClass})}},beforeUnmount(){this.popper&&this.popper.destroy()},methods:{focus(){this.$el.querySelector(".dropdown-toggle").focus()},queryFocusable(){return this.$el.querySelector(".dropdown-menu").querySelectorAll('label, input, select, textarea, [tabindex]:not([tabindex="-1"])')},isFocusable(e){const t=this.queryFocusable();for(let r in t)if(e===t[r])return!0;return!1},toggle(e){this.expanded?this.hide():this.show()},show(){this.expanded=!0;const e=this.$refs.split&&this.$refs.split.$el||this.$el;!this.nav&&!this.popper?this.popper=Sr(e,this.$refs.menu.$el,{placement:`${this.placement}-${this.align==="left"?"start":"end"}`,onFirstUpdate:()=>{this.triggerAnimation=this.animated},modifiers:[{name:"offset",options:{offset:[0,this.nav?1:this.offset]}}]}):this.popper&&this.popper.update()},hide(){this.expanded=!1},onBlur(e){this.$el.contains(e.relatedTarget)||this.hide()},onClickItem(e){this.isFocusable(e.target)||this.hide()},onClickToggle(e){this.$emit("click-toggle",e),e.defaultPrevented||this.toggle()}},watch:{expanded(e){this.$nextTick(()=>{this.$emit(e?"show":"hide"),this.$emit("toggle",e)})}}},Wr={mixins:[lt],emits:["click"]},Hr=["id","aria-expanded"];function Ur(e,t,r,n,o,a){const s=i.resolveComponent("btn-dropdown-action"),p=i.resolveComponent("dropdown-menu"),l=i.resolveComponent("btn-group");return i.openBlock(),i.createBlock(l,{class:i.normalizeClass([e.classes,"btn-dropdown-split"])},{default:i.withCtx(()=>[e.dropleft?i.createCommentVNode("",!0):i.renderSlot(e.$slots,"button",i.normalizeProps(i.mergeProps({key:0},e.scope)),()=>[e.dropleft?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(s,{key:0,id:e.$attrs.id,ref:"button",expanded:e.expanded,href:e.href,to:e.to,class:i.normalizeClass(e.actionClasses),onClick:t[0]||(t[0]=c=>e.$emit("click",c))},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"icon"),i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(e.label),1)])]),_:3},8,["id","expanded","href","to","class"]))]),i.createVNode(l,{ref:"split"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"split",i.normalizeProps(i.guardReactiveProps(e.scope)),()=>[e.split?(i.openBlock(),i.createElementBlock("button",{key:0,id:e.$attrs.id,type:"button","aria-haspopup":"true","aria-expanded":e.expanded,class:i.normalizeClass(e.toggleClasses),onBlur:t[1]||(t[1]=(...c)=>e.onBlur&&e.onBlur(...c)),onClick:t[2]||(t[2]=(...c)=>e.onClickToggle&&e.onClickToggle(...c))},null,42,Hr)):i.createCommentVNode("",!0)]),i.createVNode(p,{id:e.$attrs.id,ref:"menu",align:e.align,show:e.expanded,class:i.normalizeClass({animated:e.triggerAnimation}),onClickItem:e.onClickItem,onBlurItem:e.onBlur},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["id","align","show","class","onClickItem","onBlurItem"])]),_:3},512),e.dropleft?i.renderSlot(e.$slots,"button",i.normalizeProps(i.mergeProps({key:1},e.scope)),()=>[e.dropleft?(i.openBlock(),i.createBlock(s,{key:0,id:e.$attrs.id,ref:"button",expanded:e.expanded,href:e.href,to:e.to,class:i.normalizeClass(e.actionClasses),onClick:t[3]||(t[3]=c=>e.$emit("click",c))},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"icon"),i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(e.label),1)])]),_:3},8,["id","expanded","href","to","class"])):i.createCommentVNode("",!0)]):i.createCommentVNode("",!0)]),_:3},8,["class"])}const Xr=oe(Wr,[["render",Ur]]),Yr={mixins:[lt]};function Gr(e,t,r,n,o,a){const s=i.resolveComponent("btn-dropdown-action"),p=i.resolveComponent("dropdown-menu"),l=i.resolveComponent("btn-group");return i.openBlock(),i.createBlock(l,{class:i.normalizeClass(e.classes)},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"button",i.normalizeProps(i.guardReactiveProps(e.scope)),()=>[i.createVNode(s,{id:e.$attrs.id,ref:"button",expanded:e.expanded,href:e.href,to:e.to,style:i.normalizeStyle(e.toggleStyle),class:i.normalizeClass(e.toggleClasses),onBlur:e.onBlur,onClick:e.onClickToggle},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"icon"),i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(e.label),1)])]),_:3},8,["id","expanded","href","to","style","class","onBlur","onClick"])]),i.createVNode(p,{id:e.$attrs.id,ref:"menu",align:e.align,show:e.expanded,class:i.normalizeClass({animated:e.triggerAnimation}),onBlurItem:e.onBlur,onClickItem:e.onClickItem},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["id","align","show","class","onBlurItem","onClickItem"])]),_:3},8,["class"])}const Jr=oe(Yr,[["render",Gr]]),cn="",Kr={name:"BtnDropdown",components:{BtnDropdownSplit:Xr,BtnDropdownSingle:Jr},inheritAttrs:!1,emits:["click","click-toggle","dropdown","show","hide","toggle"]};function Qr(e,t,r,n,o,a){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.$attrs.split===void 0||!!e.$attrs.nav?"btn-dropdown-single":"btn-dropdown-split"),i.mergeProps({class:"btn-dropdown"},e.$attrs,{onClick:t[0]||(t[0]=(...s)=>e.$emit("click",...s)),onClickToggle:t[1]||(t[1]=(...s)=>e.$emit("click-toggle",...s)),onDropdown:t[2]||(t[2]=(...s)=>e.$emit("dropdown",...s)),onShow:t[3]||(t[3]=(...s)=>e.$emit("show",...s)),onHide:t[4]||(t[4]=(...s)=>e.$emit("hide",...s)),onToggle:t[5]||(t[5]=(...s)=>e.$emit("toggle",...s))}),i.createSlots({icon:i.withCtx(()=>[i.renderSlot(e.$slots,"icon")]),button:i.withCtx(s=>[i.renderSlot(e.$slots,"button",i.normalizeProps(i.guardReactiveProps(s)))]),split:i.withCtx(s=>[i.renderSlot(e.$slots,"split",i.normalizeProps(i.guardReactiveProps(s)))]),default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:2},[e.$attrs.label||e.$slots.label?{name:"label",fn:i.withCtx(()=>[i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(e.$attrs.label),1)])]),key:"0"}:void 0]),1040)}const Zr=oe(Kr,[["render",Qr]]);U.BtnDropdown=Zr,Object.defineProperties(U,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
5
|
+
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var f={placement:M(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ge(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ge(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Lt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:It,data:{}};var be={passive:!0};function qt(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,s=n.resize,p=s===void 0?!0:s,l=V(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(f){f.addEventListener("scroll",r.update,be)}),p&&l.addEventListener("resize",r.update,be),function(){a&&c.forEach(function(f){f.removeEventListener("scroll",r.update,be)}),p&&l.removeEventListener("resize",r.update,be)}}const Ft={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:qt,data:{}};var Wt={left:"right",right:"left",bottom:"top",top:"bottom"};function ye(e){return e.replace(/left|right|bottom|top/g,function(t){return Wt[t]})}var Ht={start:"end",end:"start"};function Je(e){return e.replace(/start|end/g,function(t){return Ht[t]})}function De(e){var t=V(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Ae(e){return re(F(e)).left+De(e).scrollLeft}function Ut(e,t){var r=V(e),n=F(e),o=r.visualViewport,a=n.clientWidth,s=n.clientHeight,p=0,l=0;if(o){a=o.width,s=o.height;var c=Fe();(c||!c&&t==="fixed")&&(p=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:p+Ae(e),y:l}}function Xt(e){var t,r=F(e),n=De(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Y(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Y(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),p=-n.scrollLeft+Ae(e),l=-n.scrollTop;return I(o||r).direction==="rtl"&&(p+=Y(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:p,y:l}}function ze(e){var t=I(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Ke(e){return["html","body","#document"].indexOf(q(e))>=0?e.ownerDocument.body:R(e)&&ze(e)?e:Ke(ge(e))}function ce(e,t){var r;t===void 0&&(t=[]);var n=Ke(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=V(n),s=o?[a].concat(a.visualViewport||[],ze(n)?n:[]):n,p=t.concat(s);return o?p:p.concat(ce(ge(s)))}function Re(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Yt(e,t){var r=re(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Qe(e,t,r){return t===Ie?Re(Ut(e,r)):X(t)?Yt(t,r):Re(Xt(F(e)))}function Gt(e){var t=ce(ge(e)),r=["absolute","fixed"].indexOf(I(e).position)>=0,n=r&&R(e)?pe(e):e;return X(n)?t.filter(function(o){return X(o)&&We(o,n)&&q(o)!=="body"}):[]}function Jt(e,t,r,n){var o=t==="clippingParents"?Gt(e):[].concat(t),a=[].concat(o,[r]),s=a[0],p=a.reduce(function(l,c){var f=Qe(e,c,n);return l.top=Y(f.top,l.top),l.right=ve(f.right,l.right),l.bottom=ve(f.bottom,l.bottom),l.left=Y(f.left,l.left),l},Qe(e,s,n));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}function Ze(e){var t=e.reference,r=e.element,n=e.placement,o=n?M(n):null,a=n?ne(n):null,s=t.x+t.width/2-r.width/2,p=t.y+t.height/2-r.height/2,l;switch(o){case A:l={x:s,y:t.y-r.height};break;case T:l={x:s,y:t.y+t.height};break;case N:l={x:t.x+t.width,y:p};break;case z:l={x:t.x-r.width,y:p};break;default:l={x:t.x,y:t.y}}var c=o?Ee(o):null;if(c!=null){var f=c==="y"?"height":"width";switch(a){case ee:l[c]=l[c]-(t[f]/2-r[f]/2);break;case se:l[c]=l[c]+(t[f]/2-r[f]/2);break}}return l}function de(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,s=a===void 0?e.strategy:a,p=r.boundary,l=p===void 0?vt:p,c=r.rootBoundary,f=c===void 0?Ie:c,v=r.elementContext,w=v===void 0?le:v,d=r.altBoundary,C=d===void 0?!1:d,g=r.padding,m=g===void 0?0:g,x=Xe(typeof m!="number"?m:Ye(m,ae)),P=w===le?gt:le,$=e.rects.popper,u=e.elements[C?P:w],b=Jt(X(u)?u:u.contextElement||F(e.elements.popper),l,f,s),h=re(e.elements.reference),O=Ze({reference:h,element:$,strategy:"absolute",placement:o}),S=Re(Object.assign({},$,O)),k=w===le?S:h,B={top:b.top-k.top+x.top,bottom:k.bottom-b.bottom+x.bottom,left:b.left-k.left+x.left,right:k.right-b.right+x.right},y=e.modifiersData.offset;if(w===le&&y){var E=y[o];Object.keys(B).forEach(function(D){var J=[N,T].indexOf(D)>=0?1:-1,K=[A,T].indexOf(D)>=0?"y":"x";B[D]+=E[K]*J})}return B}function Kt(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,s=r.padding,p=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?qe:l,f=ne(n),v=f?p?Le:Le.filter(function(C){return ne(C)===f}):ae,w=v.filter(function(C){return c.indexOf(C)>=0});w.length===0&&(w=v,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(" ")));var d=w.reduce(function(C,g){return C[g]=de(e,{placement:g,boundary:o,rootBoundary:a,padding:s})[M(g)],C},{});return Object.keys(d).sort(function(C,g){return d[C]-d[g]})}function Qt(e){if(M(e)===me)return[];var t=ye(e);return[Je(e),t,Je(t)]}function Zt(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,p=s===void 0?!0:s,l=r.fallbackPlacements,c=r.padding,f=r.boundary,v=r.rootBoundary,w=r.altBoundary,d=r.flipVariations,C=d===void 0?!0:d,g=r.allowedAutoPlacements,m=t.options.placement,x=M(m),P=x===m,$=l||(P||!C?[ye(m)]:Qt(m)),u=[m].concat($).reduce(function(ie,H){return ie.concat(M(H)===me?Kt(t,{placement:H,boundary:f,rootBoundary:v,padding:c,flipVariations:C,allowedAutoPlacements:g}):H)},[]),b=t.rects.reference,h=t.rects.popper,O=new Map,S=!0,k=u[0],B=0;B<u.length;B++){var y=u[B],E=M(y),D=ne(y)===ee,J=[A,T].indexOf(E)>=0,K=J?"width":"height",j=de(t,{placement:y,boundary:f,rootBoundary:v,altBoundary:w,padding:c}),L=J?D?N:z:D?T:A;b[K]>h[K]&&(L=ye(L));var we=ye(L),Q=[];if(a&&Q.push(j[E]<=0),p&&Q.push(j[L]<=0,j[we]<=0),Q.every(function(ie){return ie})){k=y,S=!1;break}O.set(y,Q)}if(S)for(var xe=C?3:1,Te=function(H){var he=u.find(function(Oe){var Z=O.get(Oe);if(Z)return Z.slice(0,H).every(function(Ne){return Ne})});if(he)return k=he,"break"},ue=xe;ue>0;ue--){var Ce=Te(ue);if(Ce==="break")break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}}const _t={name:"flip",enabled:!0,phase:"main",fn:Zt,requiresIfExists:["offset"],data:{_skip:!1}};function _e(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function et(e){return[A,N,T,z].some(function(t){return e[t]>=0})}function er(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=de(t,{elementContext:"reference"}),p=de(t,{altBoundary:!0}),l=_e(s,n),c=_e(p,o,a),f=et(l),v=et(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":v})}const tr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:er};function rr(e,t,r){var n=M(e),o=[z,A].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=a[0],p=a[1];return s=s||0,p=(p||0)*o,[z,N].indexOf(n)>=0?{x:p,y:s}:{x:s,y:p}}function nr(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,s=qe.reduce(function(f,v){return f[v]=rr(v,t.rects,a),f},{}),p=s[t.placement],l=p.x,c=p.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=s}const or={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:nr};function ir(e){var t=e.state,r=e.name;t.modifiersData[r]=Ze({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ar={name:"popperOffsets",enabled:!0,phase:"read",fn:ir,data:{}};function sr(e){return e==="x"?"y":"x"}function lr(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,p=s===void 0?!1:s,l=r.boundary,c=r.rootBoundary,f=r.altBoundary,v=r.padding,w=r.tether,d=w===void 0?!0:w,C=r.tetherOffset,g=C===void 0?0:C,m=de(t,{boundary:l,rootBoundary:c,padding:v,altBoundary:f}),x=M(t.placement),P=ne(t.placement),$=!P,u=Ee(x),b=sr(u),h=t.modifiersData.popperOffsets,O=t.rects.reference,S=t.rects.popper,k=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,B=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),y=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(!!h){if(a){var D,J=u==="y"?A:z,K=u==="y"?T:N,j=u==="y"?"height":"width",L=h[u],we=L+m[J],Q=L-m[K],xe=d?-S[j]/2:0,Te=P===ee?O[j]:S[j],ue=P===ee?-S[j]:-O[j],Ce=t.elements.arrow,ie=d&&Ce?Be(Ce):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ue(),he=H[J],Oe=H[K],Z=fe(0,O[j],ie[j]),Ne=$?O[j]/2-xe-Z-he-B.mainAxis:Te-Z-he-B.mainAxis,Kr=$?-O[j]/2+xe+Z+Oe+B.mainAxis:ue+Z+Oe+B.mainAxis,Ve=t.elements.arrow&&pe(t.elements.arrow),Qr=Ve?u==="y"?Ve.clientTop||0:Ve.clientLeft||0:0,st=(D=y==null?void 0:y[u])!=null?D:0,Zr=L+Ne-st-Qr,_r=L+Kr-st,lt=fe(d?ve(we,Zr):we,L,d?Y(Q,_r):Q);h[u]=lt,E[u]=lt-L}if(p){var pt,en=u==="x"?A:z,tn=u==="x"?T:N,_=h[b],$e=b==="y"?"height":"width",ft=_+m[en],ct=_-m[tn],Me=[A,z].indexOf(x)!==-1,dt=(pt=y==null?void 0:y[b])!=null?pt:0,ut=Me?ft:_-O[$e]-S[$e]-dt+B.altAxis,ht=Me?_+O[$e]+S[$e]-dt-B.altAxis:ct,mt=d&&Me?zt(ut,_,ht):fe(d?ut:ft,_,d?ht:ct);h[b]=mt,E[b]=mt-_}t.modifiersData[n]=E}}const pr={name:"preventOverflow",enabled:!0,phase:"main",fn:lr,requiresIfExists:["offset"]};function fr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function cr(e){return e===V(e)||!R(e)?De(e):fr(e)}function dr(e){var t=e.getBoundingClientRect(),r=te(t.width)/e.offsetWidth||1,n=te(t.height)/e.offsetHeight||1;return r!==1||n!==1}function ur(e,t,r){r===void 0&&(r=!1);var n=R(t),o=R(t)&&dr(t),a=F(t),s=re(e,o,r),p={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((q(t)!=="body"||ze(a))&&(p=cr(t)),R(t)?(l=re(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Ae(a))),{x:s.left+p.scrollLeft-l.x,y:s.top+p.scrollTop-l.y,width:s.width,height:s.height}}function hr(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(p){if(!r.has(p)){var l=t.get(p);l&&o(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function mr(e){var t=hr(e);return Pe.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function vr(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function W(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return[].concat(r).reduce(function(o,a){return o.replace(/%s/,a)},e)}var G='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',gr='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',tt=["name","enabled","phase","fn","effect","requires","options"];function br(e){e.forEach(function(t){[].concat(Object.keys(t),tt).filter(function(r,n,o){return o.indexOf(r)===n}).forEach(function(r){switch(r){case"name":typeof t.name!="string"&&console.error(W(G,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(W(G,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":Pe.indexOf(t.phase)<0&&console.error(W(G,t.name,'"phase"',"either "+Pe.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(W(G,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(W(G,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(W(G,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(W(G,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+tt.map(function(n){return'"'+n+'"'}).join(", ")+'; but "'+r+'" was provided.')}t.requires&&t.requires.forEach(function(n){e.find(function(o){return o.name===n})==null&&console.error(W(gr,String(t.name),n,n))})})})}function yr(e,t){var r=new Set;return e.filter(function(n){var o=t(n);if(!r.has(o))return r.add(o),!0})}function wr(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var rt="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",xr="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",nt={placement:"bottom",modifiers:[],strategy:"absolute"};function ot(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Cr(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?nt:o;return function(p,l,c){c===void 0&&(c=a);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},nt,a),modifiersData:{},elements:{reference:p,popper:l},attributes:{},styles:{}},v=[],w=!1,d={state:f,setOptions:function(x){var P=typeof x=="function"?x(f.options):x;g(),f.options=Object.assign({},a,f.options,P),f.scrollParents={reference:X(p)?ce(p):p.contextElement?ce(p.contextElement):[],popper:ce(l)};var $=mr(wr([].concat(n,f.options.modifiers)));if(f.orderedModifiers=$.filter(function(y){return y.enabled}),process.env.NODE_ENV!=="production"){var u=yr([].concat($,f.options.modifiers),function(y){var E=y.name;return E});if(br(u),M(f.options.placement)===me){var b=f.orderedModifiers.find(function(y){var E=y.name;return E==="flip"});b||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var h=I(l),O=h.marginTop,S=h.marginRight,k=h.marginBottom,B=h.marginLeft;[O,S,k,B].some(function(y){return parseFloat(y)})&&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(" "))}return C(),d.update()},forceUpdate:function(){if(!w){var x=f.elements,P=x.reference,$=x.popper;if(!ot(P,$)){process.env.NODE_ENV!=="production"&&console.error(rt);return}f.rects={reference:ur(P,pe($),f.options.strategy==="fixed"),popper:Be($)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(y){return f.modifiersData[y.name]=Object.assign({},y.data)});for(var u=0,b=0;b<f.orderedModifiers.length;b++){if(process.env.NODE_ENV!=="production"&&(u+=1,u>100)){console.error(xr);break}if(f.reset===!0){f.reset=!1,b=-1;continue}var h=f.orderedModifiers[b],O=h.fn,S=h.options,k=S===void 0?{}:S,B=h.name;typeof O=="function"&&(f=O({state:f,options:k,name:B,instance:d})||f)}}},update:vr(function(){return new Promise(function(m){d.forceUpdate(),m(f)})}),destroy:function(){g(),w=!0}};if(!ot(p,l))return process.env.NODE_ENV!=="production"&&console.error(rt),d;d.setOptions(c).then(function(m){!w&&c.onFirstUpdate&&c.onFirstUpdate(m)});function C(){f.orderedModifiers.forEach(function(m){var x=m.name,P=m.options,$=P===void 0?{}:P,u=m.effect;if(typeof u=="function"){var b=u({state:f,name:x,instance:d,options:$}),h=function(){};v.push(b||h)}})}function g(){v.forEach(function(m){return m()}),v=[]}return d}}var Or=[Ft,ar,Lt,Et,or,_t,pr,Nt,tr],$r=Cr({defaultModifiers:Or});const Pr={name:"Btn",mixins:[{props:{componentPrefix:String,size:String,sizePrefix:String},computed:{sizeableClassPrefix(){return this.sizePrefix||this.componentPrefix},hasSizeablePrefix(){return this.size&&!!this.size.match(new RegExp(`^${this.sizeableClassPrefix}`))},sizeableClass(){return this.size?!this.sizeableClassPrefix||this.hasSizeablePrefix?this.size:`${this.sizeableClassPrefix}-${this.size}`:""}}},{props:{componentPrefix:String,variant:String,variantPrefix:String},computed:{variantClassPrefix(){return this.variantPrefix||this.componentPrefix},hasVariantPrefix(){return this.variant&&!!this.variant.match(new RegExp(`^${this.variantClassPrefix}`))},variantClass(){return this.variant?!this.variantClassPrefix||this.hasVariantPrefix?this.variant:`${this.variantClassPrefix}-${this.variant}`:""}}}],props:{active:Boolean,block:Boolean,componentPrefix:{type:String,default:"btn"},disabled:Boolean,label:String,outline:Boolean,tag:String,variant:{type:String,default:"primary"}},computed:{classes(){return["btn",this.variantClass,this.sizeableClass,this.active&&"active",this.block&&"btn-block",this.disabled&&"disabled"]},component(){return this.tag?this.tag:this.$attrs.href?"a":"button"},variantClassPrefix(){return(this.variantPrefix||this.componentPrefix)+(this.outline?"-outline":"")}}},oe=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r};function Sr(e,t,r,n,o,a){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.component),i.mergeProps(e.$attrs,{disabled:r.disabled,class:a.classes,role:"button"}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(r.label),1)])]),_:3},16,["disabled","class"])}const kr=oe(Pr,[["render",Sr]]),Br={props:{componentPrefix:String,size:String,sizePrefix:String},computed:{sizeableClassPrefix(){return this.sizePrefix||this.componentPrefix},hasSizeablePrefix(){return this.size&&!!this.size.match(new RegExp(`^${this.sizeableClassPrefix}`))},sizeableClass(){return this.size?!this.sizeableClassPrefix||this.hasSizeablePrefix?this.size:`${this.sizeableClassPrefix}-${this.size}`:""}}},Er=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},Dr={name:"BtnGroup",mixins:[Br],props:{sizePrefix:{type:String,default(){return"btn-group"}},toggle:Boolean,vertical:Boolean},computed:{classes(){return{"btn-group":!this.vertical,"btn-group-toggle":this.toggle,"btn-group-vertical":this.vertical,[this.sizeableClass]:!!this.size}}}},Ar=["data-toggle"];function zr(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(a.classes),"data-toggle":r.toggle?"buttons":!1,role:"group"},[i.renderSlot(e.$slots,"default")],10,Ar)}const Rr=Er(Dr,[["render",zr]]);function je(e,t){e.props.class=`${e.props.class||""} ${t}`.trim()}function it(e){for(const t of e){t.type===i.Fragment&&it(t.children),t.props=Object.assign({class:void 0},t.props),t.attrs=Object.assign({},t.attrs),t.attrs.on||(t.attrs.on={});const r=t.props.class&&t.props.class.match(/dropdown-item/),n=t.props.class&&t.props.class.match(/dropdown-divider/);typeof t.type=="string"&&t.type.match(/^h\d$/)?je(t,"dropdown-header"):t.type==="hr"&&!n?(t.type="div",je(t,"dropdown-divider")):!r&&!n&&je(t,"dropdown-item")}return e}const jr={name:"DropdownMenu",components:{DropdownMenuItems:(e,t)=>i.h("div",{},it(t.slots.default()))},props:{align:{type:String,default:"left",validate(e){return["left","right"].indexOf(e.toLowerCase())!==-1}},show:Boolean}},Tr=["aria-labelledby"];function Nr(e,t,r,n,o,a){const s=i.resolveComponent("dropdown-menu-items");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["dropdown-menu",{"dropdown-menu-left":r.align==="left","dropdown-menu-right":r.align==="right",show:r.show}]),"aria-labelledby":e.$attrs.id},[i.createVNode(s,null,{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{onClick:t[0]||(t[0]=(...p)=>e.onItemClick&&e.onItemClick(...p))})]),_:3})],10,Tr)}const Vr=oe(jr,[["render",Nr]]),Mr={props:{expanded:{type:Boolean,default:!1},id:String,href:String,to:[String,Object]},computed:{is(){return this.to?"router-link":this.href?"a":"button"}}};function Ir(e,t,r,n,o,a){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.is),i.mergeProps({id:r.id},r.to?{to:r.to}:{href:r.href},{"aria-haspopup":"true","aria-expanded":r.expanded,type:a.is==="button"?"button":void 0}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},16,["id","aria-expanded","type"])}const at={components:{BtnDropdownAction:oe(Mr,[["render",Ir]]),BtnGroup:Rr,DropdownMenu:Vr},extends:kr,emits:["click-toggle","show","hide","toggle"],props:{align:{type:String,default:"left",validate(e){return["left","right"].indexOf(e.toLowerCase())!==-1}},animated:{type:Boolean,default:!0},buttonClass:[Object,String],caret:{type:Boolean,default:!0},dropup:{type:Boolean,default:!1},dropright:{type:Boolean,default:!1},dropleft:{type:Boolean,default:!1},height:String,href:String,nav:Boolean,label:String,offset:{type:Number,default:5},rotate:{type:Boolean,default:!1},split:{type:Boolean,default:!1},to:[String,Object],type:{type:String,default:"button"},width:String},data(){return{popper:null,triggerAnimation:!1,expanded:!1}},computed:{scope(){return{placement:this.placement,variantClassPrefix:this.variantClassPrefix,sizeableClassPrefix:this.sizeableClassPrefix,classes:this.classes,actionClasses:this.actionClasses,toggleStyle:this.toggleStyle,toggleClasses:this.toggleClasses,focus:this.focus,queryFocusable:this.queryFocusable,isFocusable:this.isFocusable,toggle:this.toggle,show:this.show,hide:this.hide,onBlur:this.onBlur,onClickItem:this.onClickItem,onClickToggle:this.onClickToggle,expanded:this.expanded}},placement(){return this.dropup?"top":this.dropleft?"left":this.dropright?"right":"bottom"},variantClassPrefix(){return"btn"+(this.outline?"-outline":"")},sizeableClassPrefix(){return"btn"},classes(){return{dropdown:this.dropup&&this.dropright&&this.dropleft,dropup:this.dropup,dropright:this.dropright,dropleft:this.dropleft,"icon-only":!this.nav&&!this.split&&!!this.$slots.icon&&!this.$slots.label,"hide-caret":!this.caret,expanded:this.expanded,"rotate-90":!this.nav&&this.split&&this.rotate&&this.expanded}},actionClasses(){return Object.assign({btn:!this.nav,[this.variantClass]:!this.nav&&!!this.variant,[this.sizeableClass]:!!this.size},typeof this.buttonClass=="object"?this.buttonClass:{[this.buttonClass]:!!this.buttonClass})},toggleStyle(){return{width:this.width,height:this.height}},toggleClasses(){return Object.assign({active:this.active,btn:!this.nav,"btn-block":!!this.block,"nav-link":!!this.nav,"rotate-90":!this.split&&this.rotate&&this.expanded,"dropdown-toggle":!0,"dropdown-toggle-split":!this.nav&&this.split,[this.variantClass]:!this.nav&&!!this.variant,[this.sizeableClass]:!!this.size},typeof this.buttonClass=="object"?this.buttonClass:{[this.buttonClass]:!!this.buttonClass})}},beforeUnmount(){this.popper&&this.popper.destroy()},methods:{focus(){this.$el.querySelector(".dropdown-toggle").focus()},queryFocusable(){return this.$el.querySelector(".dropdown-menu").querySelectorAll('label, input, select, textarea, [tabindex]:not([tabindex="-1"])')},isFocusable(e){const t=this.queryFocusable();for(let r in t)if(e===t[r])return!0;return!1},toggle(e){this.expanded?this.hide():this.show()},show(){this.expanded=!0;const e=this.$refs.split&&this.$refs.split.$el||this.$el;!this.nav&&!this.popper?this.popper=$r(e,this.$refs.menu.$el,{placement:`${this.placement}-${this.align==="left"?"start":"end"}`,onFirstUpdate:()=>{this.triggerAnimation=this.animated},modifiers:[{name:"offset",options:{offset:[0,this.nav?1:this.offset]}}]}):this.popper&&this.popper.update()},hide(){this.expanded=!1},onBlur(e){this.$el.contains(e.relatedTarget)||this.hide()},onClickItem(e){this.isFocusable(e.target)||this.hide()},onClickToggle(e){this.$emit("click-toggle",e),e.defaultPrevented||this.toggle()}},watch:{expanded(e){this.$nextTick(()=>{this.$emit(e?"show":"hide"),this.$emit("toggle",e)})}}},Lr={mixins:[at],emits:["click"]},qr=["id","aria-expanded"];function Fr(e,t,r,n,o,a){const s=i.resolveComponent("btn-dropdown-action"),p=i.resolveComponent("dropdown-menu"),l=i.resolveComponent("btn-group");return i.openBlock(),i.createBlock(l,{class:i.normalizeClass([e.classes,"btn-dropdown-split"])},{default:i.withCtx(()=>[e.dropleft?i.createCommentVNode("",!0):i.renderSlot(e.$slots,"button",i.normalizeProps(i.mergeProps({key:0},e.scope)),()=>[e.dropleft?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(s,{key:0,id:e.$attrs.id,ref:"button",expanded:e.expanded,href:e.href,to:e.to,class:i.normalizeClass(e.actionClasses),onClick:t[0]||(t[0]=c=>e.$emit("click",c))},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"icon"),i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(e.label),1)])]),_:3},8,["id","expanded","href","to","class"]))]),i.createVNode(l,{ref:"split"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"split",i.normalizeProps(i.guardReactiveProps(e.scope)),()=>[e.split?(i.openBlock(),i.createElementBlock("button",{key:0,id:e.$attrs.id,type:"button","aria-haspopup":"true","aria-expanded":e.expanded,class:i.normalizeClass(e.toggleClasses),onBlur:t[1]||(t[1]=(...c)=>e.onBlur&&e.onBlur(...c)),onClick:t[2]||(t[2]=(...c)=>e.onClickToggle&&e.onClickToggle(...c))},null,42,qr)):i.createCommentVNode("",!0)]),i.createVNode(p,{id:e.$attrs.id,ref:"menu",align:e.align,show:e.expanded,class:i.normalizeClass({animated:e.triggerAnimation}),onClick:e.onClickItem,onBlur:e.onBlur},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["id","align","show","class","onClick","onBlur"])]),_:3},512),e.dropleft?i.renderSlot(e.$slots,"button",i.normalizeProps(i.mergeProps({key:1},e.scope)),()=>[e.dropleft?(i.openBlock(),i.createBlock(s,{key:0,id:e.$attrs.id,ref:"button",expanded:e.expanded,href:e.href,to:e.to,class:i.normalizeClass(e.actionClasses),onClick:t[3]||(t[3]=c=>e.$emit("click",c))},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"icon"),i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(e.label),1)])]),_:3},8,["id","expanded","href","to","class"])):i.createCommentVNode("",!0)]):i.createCommentVNode("",!0)]),_:3},8,["class"])}const Wr=oe(Lr,[["render",Fr]]),Hr={mixins:[at]};function Ur(e,t,r,n,o,a){const s=i.resolveComponent("btn-dropdown-action"),p=i.resolveComponent("dropdown-menu"),l=i.resolveComponent("btn-group");return i.openBlock(),i.createBlock(l,{class:i.normalizeClass(e.classes)},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"button",i.normalizeProps(i.guardReactiveProps(e.scope)),()=>[i.createVNode(s,{id:e.$attrs.id,ref:"button",expanded:e.expanded,href:e.href,to:e.to,style:i.normalizeStyle(e.toggleStyle),class:i.normalizeClass(e.toggleClasses),onBlur:e.onBlur,onClick:e.onClickToggle},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"icon"),i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(e.label),1)])]),_:3},8,["id","expanded","href","to","style","class","onBlur","onClick"])]),i.createVNode(p,{id:e.$attrs.id,ref:"menu",align:e.align,show:e.expanded,class:i.normalizeClass({animated:e.triggerAnimation}),onBlur:e.onBlur,onClick:e.onClickItem},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["id","align","show","class","onBlur","onClick"])]),_:3},8,["class"])}const Xr=oe(Hr,[["render",Ur]]),ln="",Yr={name:"BtnDropdown",components:{BtnDropdownSplit:Wr,BtnDropdownSingle:Xr},inheritAttrs:!1,emits:["click","click-toggle","dropdown","show","hide","toggle"]};function Gr(e,t,r,n,o,a){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.$attrs.split===void 0||!!e.$attrs.nav?"btn-dropdown-single":"btn-dropdown-split"),i.mergeProps({class:"btn-dropdown"},e.$attrs,{onClick:t[0]||(t[0]=(...s)=>e.$emit("click",...s)),onClickToggle:t[1]||(t[1]=(...s)=>e.$emit("click-toggle",...s)),onDropdown:t[2]||(t[2]=(...s)=>e.$emit("dropdown",...s)),onShow:t[3]||(t[3]=(...s)=>e.$emit("show",...s)),onHide:t[4]||(t[4]=(...s)=>e.$emit("hide",...s)),onToggle:t[5]||(t[5]=(...s)=>e.$emit("toggle",...s))}),i.createSlots({icon:i.withCtx(()=>[i.renderSlot(e.$slots,"icon")]),button:i.withCtx(s=>[i.renderSlot(e.$slots,"button",i.normalizeProps(i.guardReactiveProps(s)))]),split:i.withCtx(s=>[i.renderSlot(e.$slots,"split",i.normalizeProps(i.guardReactiveProps(s)))]),default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:2},[e.$attrs.label||e.$slots.label?{name:"label",fn:i.withCtx(()=>[i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(e.$attrs.label),1)])]),key:"0"}:void 0]),1040)}const Jr=oe(Yr,[["render",Gr]]);U.BtnDropdown=Jr,Object.defineProperties(U,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-interface/btn-dropdown",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.2",
|
|
4
4
|
"description": "A Vue button dropdown component.",
|
|
5
5
|
"files": [
|
|
6
6
|
"index.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@popperjs/core": "^2.11.2",
|
|
44
44
|
"@vue-interface/btn": "^3.0.0-beta.1",
|
|
45
45
|
"@vue-interface/btn-group": "^2.0.0-beta.0",
|
|
46
|
-
"@vue-interface/dropdown-menu": "^2.0.0-beta.
|
|
46
|
+
"@vue-interface/dropdown-menu": "^2.0.0-beta.5"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"vue": "^3.0.0"
|
package/src/BtnDropdownSplit.vue
CHANGED