@vue-interface/btn-dropdown 1.0.5 → 2.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,84 +1,49 @@
1
- var top = "top";
2
- var bottom = "bottom";
3
- var right = "right";
4
- var left = "left";
5
- var auto = "auto";
6
- var basePlacements = [top, bottom, right, left];
7
- var start = "start";
8
- var end = "end";
9
- var clippingParents = "clippingParents";
10
- var viewport = "viewport";
11
- var popper = "popper";
12
- var reference = "reference";
13
- var variationPlacements = /* @__PURE__ */ basePlacements.reduce(function(acc, placement) {
14
- return acc.concat([placement + "-" + start, placement + "-" + end]);
15
- }, []);
16
- var placements = /* @__PURE__ */ [].concat(basePlacements, [auto]).reduce(function(acc, placement) {
17
- return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
18
- }, []);
19
- var beforeRead = "beforeRead";
20
- var read = "read";
21
- var afterRead = "afterRead";
22
- var beforeMain = "beforeMain";
23
- var main = "main";
24
- var afterMain = "afterMain";
25
- var beforeWrite = "beforeWrite";
26
- var write = "write";
27
- var afterWrite = "afterWrite";
28
- var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
29
- function getNodeName(element) {
30
- return element ? (element.nodeName || "").toLowerCase() : null;
31
- }
32
- function getWindow(node) {
33
- if (node == null) {
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 Mt, createSlots as Lt } from "vue";
2
+ var R = "top", I = "bottom", N = "right", j = "left", ze = "auto", $e = [R, I, N, j], ae = "start", Oe = "end", Vt = "clippingParents", wt = "viewport", ve = "popper", qt = "reference", st = /* @__PURE__ */ $e.reduce(function(e, t) {
3
+ return e.concat([t + "-" + ae, t + "-" + Oe]);
4
+ }, []), Ot = /* @__PURE__ */ [].concat($e, [ze]).reduce(function(e, t) {
5
+ return e.concat([t, t + "-" + ae, t + "-" + Oe]);
6
+ }, []), Ft = "beforeRead", Wt = "read", Ht = "afterRead", Ut = "beforeMain", Xt = "main", Yt = "afterMain", Gt = "beforeWrite", Jt = "write", Kt = "afterWrite", qe = [Ft, Wt, Ht, Ut, Xt, Yt, Gt, Jt, Kt];
7
+ function H(e) {
8
+ return e ? (e.nodeName || "").toLowerCase() : null;
9
+ }
10
+ function M(e) {
11
+ if (e == null)
34
12
  return window;
35
- }
36
- if (node.toString() !== "[object Window]") {
37
- var ownerDocument = node.ownerDocument;
38
- return ownerDocument ? ownerDocument.defaultView || window : window;
39
- }
40
- return node;
41
- }
42
- function isElement(node) {
43
- var OwnElement = getWindow(node).Element;
44
- return node instanceof OwnElement || node instanceof Element;
45
- }
46
- function isHTMLElement(node) {
47
- var OwnElement = getWindow(node).HTMLElement;
48
- return node instanceof OwnElement || node instanceof HTMLElement;
49
- }
50
- function isShadowRoot(node) {
51
- if (typeof ShadowRoot === "undefined") {
52
- return false;
53
- }
54
- var OwnElement = getWindow(node).ShadowRoot;
55
- return node instanceof OwnElement || node instanceof ShadowRoot;
56
- }
57
- function applyStyles(_ref) {
58
- var state = _ref.state;
59
- Object.keys(state.elements).forEach(function(name) {
60
- var style = state.styles[name] || {};
61
- var attributes = state.attributes[name] || {};
62
- var element = state.elements[name];
63
- if (!isHTMLElement(element) || !getNodeName(element)) {
64
- return;
65
- }
66
- Object.assign(element.style, style);
67
- Object.keys(attributes).forEach(function(name2) {
68
- var value = attributes[name2];
69
- if (value === false) {
70
- element.removeAttribute(name2);
71
- } else {
72
- element.setAttribute(name2, value === true ? "" : value);
73
- }
74
- });
13
+ if (e.toString() !== "[object Window]") {
14
+ var t = e.ownerDocument;
15
+ return t && t.defaultView || window;
16
+ }
17
+ return e;
18
+ }
19
+ function ne(e) {
20
+ var t = M(e).Element;
21
+ return e instanceof t || e instanceof Element;
22
+ }
23
+ function T(e) {
24
+ var t = M(e).HTMLElement;
25
+ return e instanceof t || e instanceof HTMLElement;
26
+ }
27
+ function Xe(e) {
28
+ if (typeof ShadowRoot > "u")
29
+ return !1;
30
+ var t = M(e).ShadowRoot;
31
+ return e instanceof t || e instanceof ShadowRoot;
32
+ }
33
+ function Qt(e) {
34
+ var t = e.state;
35
+ Object.keys(t.elements).forEach(function(r) {
36
+ var n = t.styles[r] || {}, o = t.attributes[r] || {}, i = t.elements[r];
37
+ !T(i) || !H(i) || (Object.assign(i.style, n), Object.keys(o).forEach(function(a) {
38
+ var l = o[a];
39
+ l === !1 ? i.removeAttribute(a) : i.setAttribute(a, l === !0 ? "" : l);
40
+ }));
75
41
  });
76
42
  }
77
- function effect$2(_ref2) {
78
- var state = _ref2.state;
79
- var initialStyles = {
43
+ function Zt(e) {
44
+ var t = e.state, r = {
80
45
  popper: {
81
- position: state.options.strategy,
46
+ position: t.options.strategy,
82
47
  left: "0",
83
48
  top: "0",
84
49
  margin: "0"
@@ -88,167 +53,124 @@ function effect$2(_ref2) {
88
53
  },
89
54
  reference: {}
90
55
  };
91
- Object.assign(state.elements.popper.style, initialStyles.popper);
92
- state.styles = initialStyles;
93
- if (state.elements.arrow) {
94
- Object.assign(state.elements.arrow.style, initialStyles.arrow);
95
- }
96
- return function() {
97
- Object.keys(state.elements).forEach(function(name) {
98
- var element = state.elements[name];
99
- var attributes = state.attributes[name] || {};
100
- var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]);
101
- var style = styleProperties.reduce(function(style2, property) {
102
- style2[property] = "";
103
- return style2;
56
+ return Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function() {
57
+ Object.keys(t.elements).forEach(function(n) {
58
+ var o = t.elements[n], i = t.attributes[n] || {}, a = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), l = a.reduce(function(s, f) {
59
+ return s[f] = "", s;
104
60
  }, {});
105
- if (!isHTMLElement(element) || !getNodeName(element)) {
106
- return;
107
- }
108
- Object.assign(element.style, style);
109
- Object.keys(attributes).forEach(function(attribute) {
110
- element.removeAttribute(attribute);
111
- });
61
+ !T(o) || !H(o) || (Object.assign(o.style, l), Object.keys(i).forEach(function(s) {
62
+ o.removeAttribute(s);
63
+ }));
112
64
  });
113
65
  };
114
66
  }
115
- var applyStyles$1 = {
67
+ const _t = {
116
68
  name: "applyStyles",
117
- enabled: true,
69
+ enabled: !0,
118
70
  phase: "write",
119
- fn: applyStyles,
120
- effect: effect$2,
71
+ fn: Qt,
72
+ effect: Zt,
121
73
  requires: ["computeStyles"]
122
74
  };
123
- function getBasePlacement(placement) {
124
- return placement.split("-")[0];
125
- }
126
- var max = Math.max;
127
- var min = Math.min;
128
- var round = Math.round;
129
- function getBoundingClientRect(element, includeScale) {
130
- if (includeScale === void 0) {
131
- includeScale = false;
132
- }
133
- var rect = element.getBoundingClientRect();
134
- var scaleX = 1;
135
- var scaleY = 1;
136
- if (isHTMLElement(element) && includeScale) {
137
- var offsetHeight = element.offsetHeight;
138
- var offsetWidth = element.offsetWidth;
139
- if (offsetWidth > 0) {
140
- scaleX = round(rect.width) / offsetWidth || 1;
141
- }
142
- if (offsetHeight > 0) {
143
- scaleY = round(rect.height) / offsetHeight || 1;
144
- }
145
- }
75
+ function V(e) {
76
+ return e.split("-")[0];
77
+ }
78
+ var re = Math.max, je = Math.min, se = Math.round;
79
+ function Fe() {
80
+ var e = navigator.userAgentData;
81
+ return e != null && e.brands ? e.brands.map(function(t) {
82
+ return t.brand + "/" + t.version;
83
+ }).join(" ") : navigator.userAgent;
84
+ }
85
+ function xt() {
86
+ return !/^((?!chrome|android).)*safari/i.test(Fe());
87
+ }
88
+ function le(e, t, r) {
89
+ t === void 0 && (t = !1), r === void 0 && (r = !1);
90
+ var n = e.getBoundingClientRect(), o = 1, i = 1;
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 = !xt() && 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;
146
93
  return {
147
- width: rect.width / scaleX,
148
- height: rect.height / scaleY,
149
- top: rect.top / scaleY,
150
- right: rect.right / scaleX,
151
- bottom: rect.bottom / scaleY,
152
- left: rect.left / scaleX,
153
- x: rect.left / scaleX,
154
- y: rect.top / scaleY
94
+ width: h,
95
+ height: y,
96
+ top: p,
97
+ right: f + h,
98
+ bottom: p + y,
99
+ left: f,
100
+ x: f,
101
+ y: p
155
102
  };
156
103
  }
157
- function getLayoutRect(element) {
158
- var clientRect = getBoundingClientRect(element);
159
- var width = element.offsetWidth;
160
- var height = element.offsetHeight;
161
- if (Math.abs(clientRect.width - width) <= 1) {
162
- width = clientRect.width;
163
- }
164
- if (Math.abs(clientRect.height - height) <= 1) {
165
- height = clientRect.height;
166
- }
167
- return {
168
- x: element.offsetLeft,
169
- y: element.offsetTop,
170
- width,
171
- height
104
+ function Ye(e) {
105
+ var t = le(e), r = e.offsetWidth, n = e.offsetHeight;
106
+ return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
107
+ x: e.offsetLeft,
108
+ y: e.offsetTop,
109
+ width: r,
110
+ height: n
172
111
  };
173
112
  }
174
- function contains(parent, child) {
175
- var rootNode = child.getRootNode && child.getRootNode();
176
- if (parent.contains(child)) {
177
- return true;
178
- } else if (rootNode && isShadowRoot(rootNode)) {
179
- var next = child;
113
+ function $t(e, t) {
114
+ var r = t.getRootNode && t.getRootNode();
115
+ if (e.contains(t))
116
+ return !0;
117
+ if (r && Xe(r)) {
118
+ var n = t;
180
119
  do {
181
- if (next && parent.isSameNode(next)) {
182
- return true;
183
- }
184
- next = next.parentNode || next.host;
185
- } while (next);
120
+ if (n && e.isSameNode(n))
121
+ return !0;
122
+ n = n.parentNode || n.host;
123
+ } while (n);
186
124
  }
187
- return false;
125
+ return !1;
188
126
  }
189
- function getComputedStyle(element) {
190
- return getWindow(element).getComputedStyle(element);
127
+ function q(e) {
128
+ return M(e).getComputedStyle(e);
191
129
  }
192
- function isTableElement(element) {
193
- return ["table", "td", "th"].indexOf(getNodeName(element)) >= 0;
130
+ function er(e) {
131
+ return ["table", "td", "th"].indexOf(H(e)) >= 0;
194
132
  }
195
- function getDocumentElement(element) {
196
- return ((isElement(element) ? element.ownerDocument : element.document) || window.document).documentElement;
133
+ function Y(e) {
134
+ return ((ne(e) ? e.ownerDocument : e.document) || window.document).documentElement;
197
135
  }
198
- function getParentNode(element) {
199
- if (getNodeName(element) === "html") {
200
- return element;
201
- }
202
- return element.assignedSlot || element.parentNode || (isShadowRoot(element) ? element.host : null) || getDocumentElement(element);
136
+ function Te(e) {
137
+ return H(e) === "html" ? e : e.assignedSlot || e.parentNode || (Xe(e) ? e.host : null) || Y(e);
203
138
  }
204
- function getTrueOffsetParent(element) {
205
- if (!isHTMLElement(element) || getComputedStyle(element).position === "fixed") {
206
- return null;
207
- }
208
- return element.offsetParent;
209
- }
210
- function getContainingBlock(element) {
211
- var isFirefox = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1;
212
- var isIE = navigator.userAgent.indexOf("Trident") !== -1;
213
- if (isIE && isHTMLElement(element)) {
214
- var elementCss = getComputedStyle(element);
215
- if (elementCss.position === "fixed") {
139
+ function lt(e) {
140
+ return !T(e) || q(e).position === "fixed" ? null : e.offsetParent;
141
+ }
142
+ function tr(e) {
143
+ var t = /firefox/i.test(Fe()), r = /Trident/i.test(Fe());
144
+ if (r && T(e)) {
145
+ var n = q(e);
146
+ if (n.position === "fixed")
216
147
  return null;
217
- }
218
148
  }
219
- var currentNode = getParentNode(element);
220
- while (isHTMLElement(currentNode) && ["html", "body"].indexOf(getNodeName(currentNode)) < 0) {
221
- var css = getComputedStyle(currentNode);
222
- if (css.transform !== "none" || css.perspective !== "none" || css.contain === "paint" || ["transform", "perspective"].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === "filter" || isFirefox && css.filter && css.filter !== "none") {
223
- return currentNode;
224
- } else {
225
- currentNode = currentNode.parentNode;
226
- }
149
+ var o = Te(e);
150
+ for (Xe(o) && (o = o.host); T(o) && ["html", "body"].indexOf(H(o)) < 0; ) {
151
+ var i = q(o);
152
+ if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || t && i.willChange === "filter" || t && i.filter && i.filter !== "none")
153
+ return o;
154
+ o = o.parentNode;
227
155
  }
228
156
  return null;
229
157
  }
230
- function getOffsetParent(element) {
231
- var window2 = getWindow(element);
232
- var offsetParent = getTrueOffsetParent(element);
233
- while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === "static") {
234
- offsetParent = getTrueOffsetParent(offsetParent);
235
- }
236
- if (offsetParent && (getNodeName(offsetParent) === "html" || getNodeName(offsetParent) === "body" && getComputedStyle(offsetParent).position === "static")) {
237
- return window2;
238
- }
239
- return offsetParent || getContainingBlock(element) || window2;
158
+ function Ce(e) {
159
+ for (var t = M(e), r = lt(e); r && er(r) && q(r).position === "static"; )
160
+ r = lt(r);
161
+ return r && (H(r) === "html" || H(r) === "body" && q(r).position === "static") ? t : r || tr(e) || t;
240
162
  }
241
- function getMainAxisFromPlacement(placement) {
242
- return ["top", "bottom"].indexOf(placement) >= 0 ? "x" : "y";
163
+ function Ge(e) {
164
+ return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
243
165
  }
244
- function within(min$1, value, max$1) {
245
- return max(min$1, min(value, max$1));
166
+ function he(e, t, r) {
167
+ return re(e, je(t, r));
246
168
  }
247
- function withinMaxClamp(min2, value, max2) {
248
- var v = within(min2, value, max2);
249
- return v > max2 ? max2 : v;
169
+ function rr(e, t, r) {
170
+ var n = he(e, t, r);
171
+ return n > r ? r : n;
250
172
  }
251
- function getFreshSideObject() {
173
+ function Ct() {
252
174
  return {
253
175
  top: 0,
254
176
  right: 0,
@@ -256,1319 +178,923 @@ function getFreshSideObject() {
256
178
  left: 0
257
179
  };
258
180
  }
259
- function mergePaddingObject(paddingObject) {
260
- return Object.assign({}, getFreshSideObject(), paddingObject);
181
+ function Pt(e) {
182
+ return Object.assign({}, Ct(), e);
261
183
  }
262
- function expandToHashMap(value, keys) {
263
- return keys.reduce(function(hashMap, key) {
264
- hashMap[key] = value;
265
- return hashMap;
184
+ function Et(e, t) {
185
+ return t.reduce(function(r, n) {
186
+ return r[n] = e, r;
266
187
  }, {});
267
188
  }
268
- var toPaddingObject = function toPaddingObject2(padding, state) {
269
- padding = typeof padding === "function" ? padding(Object.assign({}, state.rects, {
270
- placement: state.placement
271
- })) : padding;
272
- return mergePaddingObject(typeof padding !== "number" ? padding : expandToHashMap(padding, basePlacements));
189
+ var nr = function(t, r) {
190
+ return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
191
+ placement: r.placement
192
+ })) : t, Pt(typeof t != "number" ? t : Et(t, $e));
273
193
  };
274
- function arrow(_ref) {
275
- var _state$modifiersData$;
276
- var state = _ref.state, name = _ref.name, options = _ref.options;
277
- var arrowElement = state.elements.arrow;
278
- var popperOffsets2 = state.modifiersData.popperOffsets;
279
- var basePlacement = getBasePlacement(state.placement);
280
- var axis = getMainAxisFromPlacement(basePlacement);
281
- var isVertical = [left, right].indexOf(basePlacement) >= 0;
282
- var len = isVertical ? "height" : "width";
283
- if (!arrowElement || !popperOffsets2) {
284
- return;
285
- }
286
- var paddingObject = toPaddingObject(options.padding, state);
287
- var arrowRect = getLayoutRect(arrowElement);
288
- var minProp = axis === "y" ? top : left;
289
- var maxProp = axis === "y" ? bottom : right;
290
- var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets2[axis] - state.rects.popper[len];
291
- var startDiff = popperOffsets2[axis] - state.rects.reference[axis];
292
- var arrowOffsetParent = getOffsetParent(arrowElement);
293
- var clientSize = arrowOffsetParent ? axis === "y" ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
294
- var centerToReference = endDiff / 2 - startDiff / 2;
295
- var min2 = paddingObject[minProp];
296
- var max2 = clientSize - arrowRect[len] - paddingObject[maxProp];
297
- var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;
298
- var offset2 = within(min2, center, max2);
299
- var axisProp = axis;
300
- state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset2, _state$modifiersData$.centerOffset = offset2 - center, _state$modifiersData$);
301
- }
302
- function effect$1(_ref2) {
303
- var state = _ref2.state, options = _ref2.options;
304
- var _options$element = options.element, arrowElement = _options$element === void 0 ? "[data-popper-arrow]" : _options$element;
305
- if (arrowElement == null) {
306
- return;
307
- }
308
- if (typeof arrowElement === "string") {
309
- arrowElement = state.elements.popper.querySelector(arrowElement);
310
- if (!arrowElement) {
194
+ function or(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, N].indexOf(l) >= 0, p = f ? "height" : "width";
196
+ if (!(!i || !a)) {
197
+ var h = nr(o.padding, r), y = Ye(i), u = s === "y" ? R : j, O = s === "y" ? I : N, 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
+ r.modifiersData[n] = (t = {}, t[E] = x, t.centerOffset = x - d, t);
199
+ }
200
+ }
201
+ function ir(e) {
202
+ var t = e.state, r = e.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n;
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(" "))), !$t(t.elements.popper, o)) {
205
+ process.env.NODE_ENV !== "production" && console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
311
206
  return;
312
207
  }
208
+ t.elements.arrow = o;
313
209
  }
314
- if (!contains(state.elements.popper, arrowElement)) {
315
- return;
316
- }
317
- state.elements.arrow = arrowElement;
318
210
  }
319
- var arrow$1 = {
211
+ const ar = {
320
212
  name: "arrow",
321
- enabled: true,
213
+ enabled: !0,
322
214
  phase: "main",
323
- fn: arrow,
324
- effect: effect$1,
215
+ fn: or,
216
+ effect: ir,
325
217
  requires: ["popperOffsets"],
326
218
  requiresIfExists: ["preventOverflow"]
327
219
  };
328
- function getVariation(placement) {
329
- return placement.split("-")[1];
220
+ function pe(e) {
221
+ return e.split("-")[1];
330
222
  }
331
- var unsetSides = {
223
+ var sr = {
332
224
  top: "auto",
333
225
  right: "auto",
334
226
  bottom: "auto",
335
227
  left: "auto"
336
228
  };
337
- function roundOffsetsByDPR(_ref) {
338
- var x = _ref.x, y = _ref.y;
339
- var win = window;
340
- var dpr = win.devicePixelRatio || 1;
229
+ function lr(e) {
230
+ var t = e.x, r = e.y, n = window, o = n.devicePixelRatio || 1;
341
231
  return {
342
- x: round(x * dpr) / dpr || 0,
343
- y: round(y * dpr) / dpr || 0
232
+ x: se(t * o) / o || 0,
233
+ y: se(r * o) / o || 0
344
234
  };
345
235
  }
346
- function mapToStyles(_ref2) {
347
- var _Object$assign2;
348
- var popper2 = _ref2.popper, popperRect = _ref2.popperRect, placement = _ref2.placement, variation = _ref2.variation, offsets = _ref2.offsets, position = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, roundOffsets = _ref2.roundOffsets, isFixed = _ref2.isFixed;
349
- var _offsets$x = offsets.x, x = _offsets$x === void 0 ? 0 : _offsets$x, _offsets$y = offsets.y, y = _offsets$y === void 0 ? 0 : _offsets$y;
350
- var _ref3 = typeof roundOffsets === "function" ? roundOffsets({
351
- x,
352
- y
236
+ function pt(e) {
237
+ var t, r = e.popper, n = e.popperRect, o = e.placement, i = e.variation, a = e.offsets, l = e.position, s = e.gpuAcceleration, f = e.adaptive, p = e.roundOffsets, h = e.isFixed, y = a.x, u = y === void 0 ? 0 : y, O = a.y, m = O === void 0 ? 0 : O, v = typeof p == "function" ? p({
238
+ x: u,
239
+ y: m
353
240
  }) : {
354
- x,
355
- y
241
+ x: u,
242
+ y: m
356
243
  };
357
- x = _ref3.x;
358
- y = _ref3.y;
359
- var hasX = offsets.hasOwnProperty("x");
360
- var hasY = offsets.hasOwnProperty("y");
361
- var sideX = left;
362
- var sideY = top;
363
- var win = window;
364
- if (adaptive) {
365
- var offsetParent = getOffsetParent(popper2);
366
- var heightProp = "clientHeight";
367
- var widthProp = "clientWidth";
368
- if (offsetParent === getWindow(popper2)) {
369
- offsetParent = getDocumentElement(popper2);
370
- if (getComputedStyle(offsetParent).position !== "static" && position === "absolute") {
371
- heightProp = "scrollHeight";
372
- widthProp = "scrollWidth";
373
- }
374
- }
375
- offsetParent = offsetParent;
376
- if (placement === top || (placement === left || placement === right) && variation === end) {
377
- sideY = bottom;
378
- var offsetY = isFixed && win.visualViewport ? win.visualViewport.height : offsetParent[heightProp];
379
- y -= offsetY - popperRect.height;
380
- y *= gpuAcceleration ? 1 : -1;
244
+ u = v.x, m = v.y;
245
+ var w = a.hasOwnProperty("x"), C = a.hasOwnProperty("y"), $ = j, c = R, g = window;
246
+ if (f) {
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 === N) && i === Oe) {
249
+ c = I;
250
+ var S = h && d === g && g.visualViewport ? g.visualViewport.height : d[x];
251
+ m -= S - n.height, m *= s ? 1 : -1;
381
252
  }
382
- if (placement === left || (placement === top || placement === bottom) && variation === end) {
383
- sideX = right;
384
- var offsetX = isFixed && win.visualViewport ? win.visualViewport.width : offsetParent[widthProp];
385
- x -= offsetX - popperRect.width;
386
- x *= gpuAcceleration ? 1 : -1;
253
+ if (o === j || (o === R || o === I) && i === Oe) {
254
+ $ = N;
255
+ var k = h && d === g && g.visualViewport ? g.visualViewport.width : d[E];
256
+ u -= k - n.width, u *= s ? 1 : -1;
387
257
  }
388
258
  }
389
- var commonStyles = Object.assign({
390
- position
391
- }, adaptive && unsetSides);
392
- var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
393
- x,
394
- y
259
+ var b = Object.assign({
260
+ position: l
261
+ }, f && sr), D = p === !0 ? lr({
262
+ x: u,
263
+ y: m
395
264
  }) : {
396
- x,
397
- y
265
+ x: u,
266
+ y: m
398
267
  };
399
- x = _ref4.x;
400
- y = _ref4.y;
401
- if (gpuAcceleration) {
402
- var _Object$assign;
403
- return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
404
- }
405
- return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : "", _Object$assign2[sideX] = hasX ? x + "px" : "", _Object$assign2.transform = "", _Object$assign2));
406
- }
407
- function computeStyles(_ref5) {
408
- var state = _ref5.state, options = _ref5.options;
409
- var _options$gpuAccelerat = options.gpuAcceleration, gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat, _options$adaptive = options.adaptive, adaptive = _options$adaptive === void 0 ? true : _options$adaptive, _options$roundOffsets = options.roundOffsets, roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
410
- var commonStyles = {
411
- placement: getBasePlacement(state.placement),
412
- variation: getVariation(state.placement),
413
- popper: state.elements.popper,
414
- popperRect: state.rects.popper,
415
- gpuAcceleration,
416
- isFixed: state.options.strategy === "fixed"
268
+ if (u = D.x, m = D.y, s) {
269
+ var A;
270
+ return Object.assign({}, b, (A = {}, A[c] = C ? "0" : "", A[$] = w ? "0" : "", A.transform = (g.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + m + "px)" : "translate3d(" + u + "px, " + m + "px, 0)", A));
271
+ }
272
+ return Object.assign({}, b, (t = {}, t[c] = C ? m + "px" : "", t[$] = w ? u + "px" : "", t.transform = "", t));
273
+ }
274
+ function pr(e) {
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
+ if (process.env.NODE_ENV !== "production") {
277
+ var f = q(t.elements.popper).transitionProperty || "";
278
+ a && ["transform", "top", "right", "bottom", "left"].some(function(h) {
279
+ return f.indexOf(h) >= 0;
280
+ }) && console.warn(["Popper: Detected CSS transitions on at least one of the following", 'CSS properties: "transform", "top", "right", "bottom", "left".', `
281
+
282
+ `, '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.", `
283
+
284
+ `, "We recommend using the popper element as a wrapper around an inner", "element that can have any CSS property transitioned for animations."].join(" "));
285
+ }
286
+ var p = {
287
+ placement: V(t.placement),
288
+ variation: pe(t.placement),
289
+ popper: t.elements.popper,
290
+ popperRect: t.rects.popper,
291
+ gpuAcceleration: o,
292
+ isFixed: t.options.strategy === "fixed"
417
293
  };
418
- if (state.modifiersData.popperOffsets != null) {
419
- state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
420
- offsets: state.modifiersData.popperOffsets,
421
- position: state.options.strategy,
422
- adaptive,
423
- roundOffsets
424
- })));
425
- }
426
- if (state.modifiersData.arrow != null) {
427
- state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
428
- offsets: state.modifiersData.arrow,
429
- position: "absolute",
430
- adaptive: false,
431
- roundOffsets
432
- })));
433
- }
434
- state.attributes.popper = Object.assign({}, state.attributes.popper, {
435
- "data-popper-placement": state.placement
294
+ t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, pt(Object.assign({}, p, {
295
+ offsets: t.modifiersData.popperOffsets,
296
+ position: t.options.strategy,
297
+ adaptive: a,
298
+ roundOffsets: s
299
+ })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, pt(Object.assign({}, p, {
300
+ offsets: t.modifiersData.arrow,
301
+ position: "absolute",
302
+ adaptive: !1,
303
+ roundOffsets: s
304
+ })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
305
+ "data-popper-placement": t.placement
436
306
  });
437
307
  }
438
- var computeStyles$1 = {
308
+ const fr = {
439
309
  name: "computeStyles",
440
- enabled: true,
310
+ enabled: !0,
441
311
  phase: "beforeWrite",
442
- fn: computeStyles,
312
+ fn: pr,
443
313
  data: {}
444
314
  };
445
- var passive = {
446
- passive: true
315
+ var De = {
316
+ passive: !0
447
317
  };
448
- function effect(_ref) {
449
- var state = _ref.state, instance = _ref.instance, options = _ref.options;
450
- var _options$scroll = options.scroll, scroll = _options$scroll === void 0 ? true : _options$scroll, _options$resize = options.resize, resize = _options$resize === void 0 ? true : _options$resize;
451
- var window2 = getWindow(state.elements.popper);
452
- var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
453
- if (scroll) {
454
- scrollParents.forEach(function(scrollParent) {
455
- scrollParent.addEventListener("scroll", instance.update, passive);
456
- });
457
- }
458
- if (resize) {
459
- window2.addEventListener("resize", instance.update, passive);
460
- }
461
- return function() {
462
- if (scroll) {
463
- scrollParents.forEach(function(scrollParent) {
464
- scrollParent.removeEventListener("scroll", instance.update, passive);
465
- });
466
- }
467
- if (resize) {
468
- window2.removeEventListener("resize", instance.update, passive);
469
- }
318
+ function ur(e) {
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
+ return i && f.forEach(function(p) {
321
+ p.addEventListener("scroll", r.update, De);
322
+ }), l && s.addEventListener("resize", r.update, De), function() {
323
+ i && f.forEach(function(p) {
324
+ p.removeEventListener("scroll", r.update, De);
325
+ }), l && s.removeEventListener("resize", r.update, De);
470
326
  };
471
327
  }
472
- var eventListeners = {
328
+ const cr = {
473
329
  name: "eventListeners",
474
- enabled: true,
330
+ enabled: !0,
475
331
  phase: "write",
476
- fn: function fn() {
332
+ fn: function() {
477
333
  },
478
- effect,
334
+ effect: ur,
479
335
  data: {}
480
336
  };
481
- var hash$1 = {
337
+ var dr = {
482
338
  left: "right",
483
339
  right: "left",
484
340
  bottom: "top",
485
341
  top: "bottom"
486
342
  };
487
- function getOppositePlacement(placement) {
488
- return placement.replace(/left|right|bottom|top/g, function(matched) {
489
- return hash$1[matched];
343
+ function Ae(e) {
344
+ return e.replace(/left|right|bottom|top/g, function(t) {
345
+ return dr[t];
490
346
  });
491
347
  }
492
- var hash = {
348
+ var vr = {
493
349
  start: "end",
494
350
  end: "start"
495
351
  };
496
- function getOppositeVariationPlacement(placement) {
497
- return placement.replace(/start|end/g, function(matched) {
498
- return hash[matched];
352
+ function ft(e) {
353
+ return e.replace(/start|end/g, function(t) {
354
+ return vr[t];
499
355
  });
500
356
  }
501
- function getWindowScroll(node) {
502
- var win = getWindow(node);
503
- var scrollLeft = win.pageXOffset;
504
- var scrollTop = win.pageYOffset;
357
+ function Je(e) {
358
+ var t = M(e), r = t.pageXOffset, n = t.pageYOffset;
505
359
  return {
506
- scrollLeft,
507
- scrollTop
360
+ scrollLeft: r,
361
+ scrollTop: n
508
362
  };
509
363
  }
510
- function getWindowScrollBarX(element) {
511
- return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
512
- }
513
- function getViewportRect(element) {
514
- var win = getWindow(element);
515
- var html = getDocumentElement(element);
516
- var visualViewport = win.visualViewport;
517
- var width = html.clientWidth;
518
- var height = html.clientHeight;
519
- var x = 0;
520
- var y = 0;
521
- if (visualViewport) {
522
- width = visualViewport.width;
523
- height = visualViewport.height;
524
- if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
525
- x = visualViewport.offsetLeft;
526
- y = visualViewport.offsetTop;
527
- }
528
- }
529
- return {
530
- width,
531
- height,
532
- x: x + getWindowScrollBarX(element),
533
- y
534
- };
364
+ function Ke(e) {
365
+ return le(Y(e)).left + Je(e).scrollLeft;
535
366
  }
536
- function getDocumentRect(element) {
537
- var _element$ownerDocumen;
538
- var html = getDocumentElement(element);
539
- var winScroll = getWindowScroll(element);
540
- var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
541
- var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
542
- var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
543
- var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
544
- var y = -winScroll.scrollTop;
545
- if (getComputedStyle(body || html).direction === "rtl") {
546
- x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
367
+ function hr(e, t) {
368
+ var r = M(e), n = Y(e), o = r.visualViewport, i = n.clientWidth, a = n.clientHeight, l = 0, s = 0;
369
+ if (o) {
370
+ i = o.width, a = o.height;
371
+ var f = xt();
372
+ (f || !f && t === "fixed") && (l = o.offsetLeft, s = o.offsetTop);
547
373
  }
548
374
  return {
549
- width,
550
- height,
551
- x,
552
- y
375
+ width: i,
376
+ height: a,
377
+ x: l + Ke(e),
378
+ y: s
553
379
  };
554
380
  }
555
- function isScrollParent(element) {
556
- var _getComputedStyle = getComputedStyle(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY;
557
- return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
558
- }
559
- function getScrollParent(node) {
560
- if (["html", "body", "#document"].indexOf(getNodeName(node)) >= 0) {
561
- return node.ownerDocument.body;
562
- }
563
- if (isHTMLElement(node) && isScrollParent(node)) {
564
- return node;
565
- }
566
- return getScrollParent(getParentNode(node));
567
- }
568
- function listScrollParents(element, list) {
569
- var _element$ownerDocumen;
570
- if (list === void 0) {
571
- list = [];
572
- }
573
- var scrollParent = getScrollParent(element);
574
- var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
575
- var win = getWindow(scrollParent);
576
- var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
577
- var updatedList = list.concat(target);
578
- return isBody ? updatedList : updatedList.concat(listScrollParents(getParentNode(target)));
579
- }
580
- function rectToClientRect(rect) {
581
- return Object.assign({}, rect, {
582
- left: rect.x,
583
- top: rect.y,
584
- right: rect.x + rect.width,
585
- bottom: rect.y + rect.height
586
- });
381
+ function mr(e) {
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
+ return q(o || r).direction === "rtl" && (l += re(r.clientWidth, o ? o.clientWidth : 0) - i), {
384
+ width: i,
385
+ height: a,
386
+ x: l,
387
+ y: s
388
+ };
587
389
  }
588
- function getInnerBoundingClientRect(element) {
589
- var rect = getBoundingClientRect(element);
590
- rect.top = rect.top + element.clientTop;
591
- rect.left = rect.left + element.clientLeft;
592
- rect.bottom = rect.top + element.clientHeight;
593
- rect.right = rect.left + element.clientWidth;
594
- rect.width = element.clientWidth;
595
- rect.height = element.clientHeight;
596
- rect.x = rect.left;
597
- rect.y = rect.top;
598
- return rect;
599
- }
600
- function getClientRectFromMixedType(element, clippingParent) {
601
- return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
602
- }
603
- function getClippingParents(element) {
604
- var clippingParents2 = listScrollParents(getParentNode(element));
605
- var canEscapeClipping = ["absolute", "fixed"].indexOf(getComputedStyle(element).position) >= 0;
606
- var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
607
- if (!isElement(clipperElement)) {
608
- return [];
609
- }
610
- return clippingParents2.filter(function(clippingParent) {
611
- return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== "body";
390
+ function Qe(e) {
391
+ var t = q(e), r = t.overflow, n = t.overflowX, o = t.overflowY;
392
+ return /auto|scroll|overlay|hidden/.test(r + o + n);
393
+ }
394
+ function St(e) {
395
+ return ["html", "body", "#document"].indexOf(H(e)) >= 0 ? e.ownerDocument.body : T(e) && Qe(e) ? e : St(Te(e));
396
+ }
397
+ function me(e, t) {
398
+ var r;
399
+ t === void 0 && (t = []);
400
+ var n = St(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
+ return o ? l : l.concat(me(Te(a)));
402
+ }
403
+ function We(e) {
404
+ return Object.assign({}, e, {
405
+ left: e.x,
406
+ top: e.y,
407
+ right: e.x + e.width,
408
+ bottom: e.y + e.height
612
409
  });
613
410
  }
614
- function getClippingRect(element, boundary, rootBoundary) {
615
- var mainClippingParents = boundary === "clippingParents" ? getClippingParents(element) : [].concat(boundary);
616
- var clippingParents2 = [].concat(mainClippingParents, [rootBoundary]);
617
- var firstClippingParent = clippingParents2[0];
618
- var clippingRect = clippingParents2.reduce(function(accRect, clippingParent) {
619
- var rect = getClientRectFromMixedType(element, clippingParent);
620
- accRect.top = max(rect.top, accRect.top);
621
- accRect.right = min(rect.right, accRect.right);
622
- accRect.bottom = min(rect.bottom, accRect.bottom);
623
- accRect.left = max(rect.left, accRect.left);
624
- return accRect;
625
- }, getClientRectFromMixedType(element, firstClippingParent));
626
- clippingRect.width = clippingRect.right - clippingRect.left;
627
- clippingRect.height = clippingRect.bottom - clippingRect.top;
628
- clippingRect.x = clippingRect.left;
629
- clippingRect.y = clippingRect.top;
630
- return clippingRect;
631
- }
632
- function computeOffsets(_ref) {
633
- var reference2 = _ref.reference, element = _ref.element, placement = _ref.placement;
634
- var basePlacement = placement ? getBasePlacement(placement) : null;
635
- var variation = placement ? getVariation(placement) : null;
636
- var commonX = reference2.x + reference2.width / 2 - element.width / 2;
637
- var commonY = reference2.y + reference2.height / 2 - element.height / 2;
638
- var offsets;
639
- switch (basePlacement) {
640
- case top:
641
- offsets = {
642
- x: commonX,
643
- y: reference2.y - element.height
411
+ function gr(e, t) {
412
+ var r = le(e, !1, t === "fixed");
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
+ }
415
+ function ut(e, t, r) {
416
+ return t === wt ? We(hr(e, r)) : ne(t) ? gr(t, r) : We(mr(Y(e)));
417
+ }
418
+ function br(e) {
419
+ var t = me(Te(e)), r = ["absolute", "fixed"].indexOf(q(e).position) >= 0, n = r && T(e) ? Ce(e) : e;
420
+ return ne(n) ? t.filter(function(o) {
421
+ return ne(o) && $t(o, n) && H(o) !== "body";
422
+ }) : [];
423
+ }
424
+ function yr(e, t, r, n) {
425
+ var o = t === "clippingParents" ? br(e) : [].concat(t), i = [].concat(o, [r]), a = i[0], l = i.reduce(function(s, f) {
426
+ var p = ut(e, f, n);
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
+ }, ut(e, a, n));
429
+ return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
430
+ }
431
+ function kt(e) {
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
+ switch (o) {
434
+ case R:
435
+ s = {
436
+ x: a,
437
+ y: t.y - r.height
644
438
  };
645
439
  break;
646
- case bottom:
647
- offsets = {
648
- x: commonX,
649
- y: reference2.y + reference2.height
440
+ case I:
441
+ s = {
442
+ x: a,
443
+ y: t.y + t.height
650
444
  };
651
445
  break;
652
- case right:
653
- offsets = {
654
- x: reference2.x + reference2.width,
655
- y: commonY
446
+ case N:
447
+ s = {
448
+ x: t.x + t.width,
449
+ y: l
656
450
  };
657
451
  break;
658
- case left:
659
- offsets = {
660
- x: reference2.x - element.width,
661
- y: commonY
452
+ case j:
453
+ s = {
454
+ x: t.x - r.width,
455
+ y: l
662
456
  };
663
457
  break;
664
458
  default:
665
- offsets = {
666
- x: reference2.x,
667
- y: reference2.y
459
+ s = {
460
+ x: t.x,
461
+ y: t.y
668
462
  };
669
463
  }
670
- var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
671
- if (mainAxis != null) {
672
- var len = mainAxis === "y" ? "height" : "width";
673
- switch (variation) {
674
- case start:
675
- offsets[mainAxis] = offsets[mainAxis] - (reference2[len] / 2 - element[len] / 2);
464
+ var f = o ? Ge(o) : null;
465
+ if (f != null) {
466
+ var p = f === "y" ? "height" : "width";
467
+ switch (i) {
468
+ case ae:
469
+ s[f] = s[f] - (t[p] / 2 - r[p] / 2);
676
470
  break;
677
- case end:
678
- offsets[mainAxis] = offsets[mainAxis] + (reference2[len] / 2 - element[len] / 2);
471
+ case Oe:
472
+ s[f] = s[f] + (t[p] / 2 - r[p] / 2);
679
473
  break;
680
474
  }
681
475
  }
682
- return offsets;
476
+ return s;
683
477
  }
684
- function detectOverflow(state, options) {
685
- if (options === void 0) {
686
- options = {};
687
- }
688
- var _options = options, _options$placement = _options.placement, placement = _options$placement === void 0 ? state.placement : _options$placement, _options$boundary = _options.boundary, boundary = _options$boundary === void 0 ? clippingParents : _options$boundary, _options$rootBoundary = _options.rootBoundary, rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary, _options$elementConte = _options.elementContext, elementContext = _options$elementConte === void 0 ? popper : _options$elementConte, _options$altBoundary = _options.altBoundary, altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary, _options$padding = _options.padding, padding = _options$padding === void 0 ? 0 : _options$padding;
689
- var paddingObject = mergePaddingObject(typeof padding !== "number" ? padding : expandToHashMap(padding, basePlacements));
690
- var altContext = elementContext === popper ? reference : popper;
691
- var popperRect = state.rects.popper;
692
- var element = state.elements[altBoundary ? altContext : elementContext];
693
- var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
694
- var referenceClientRect = getBoundingClientRect(state.elements.reference);
695
- var popperOffsets2 = computeOffsets({
696
- reference: referenceClientRect,
697
- element: popperRect,
478
+ function xe(e, t) {
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 ? Vt : l, f = r.rootBoundary, p = f === void 0 ? wt : 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 = Pt(typeof v != "number" ? v : Et(v, $e)), C = y === ve ? qt : ve, $ = e.rects.popper, c = e.elements[O ? C : y], g = yr(ne(c) ? c : c.contextElement || Y(e.elements.popper), s, p, a), d = le(e.elements.reference), x = kt({
481
+ reference: d,
482
+ element: $,
698
483
  strategy: "absolute",
699
- placement
700
- });
701
- var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets2));
702
- var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect;
703
- var overflowOffsets = {
704
- top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
705
- bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
706
- left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
707
- right: elementClientRect.right - clippingClientRect.right + paddingObject.right
708
- };
709
- var offsetData = state.modifiersData.offset;
710
- if (elementContext === popper && offsetData) {
711
- var offset2 = offsetData[placement];
712
- Object.keys(overflowOffsets).forEach(function(key) {
713
- var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;
714
- var axis = [top, bottom].indexOf(key) >= 0 ? "y" : "x";
715
- overflowOffsets[key] += offset2[axis] * multiply;
484
+ placement: o
485
+ }), E = We(Object.assign({}, $, x)), S = y === ve ? E : d, k = {
486
+ top: g.top - S.top + w.top,
487
+ bottom: S.bottom - g.bottom + w.bottom,
488
+ left: g.left - S.left + w.left,
489
+ right: S.right - g.right + w.right
490
+ }, b = e.modifiersData.offset;
491
+ if (y === ve && b) {
492
+ var D = b[o];
493
+ Object.keys(k).forEach(function(A) {
494
+ var G = [N, I].indexOf(A) >= 0 ? 1 : -1, J = [R, I].indexOf(A) >= 0 ? "y" : "x";
495
+ k[A] += D[J] * G;
716
496
  });
717
497
  }
718
- return overflowOffsets;
498
+ return k;
719
499
  }
720
- function computeAutoPlacement(state, options) {
721
- if (options === void 0) {
722
- options = {};
723
- }
724
- var _options = options, placement = _options.placement, boundary = _options.boundary, rootBoundary = _options.rootBoundary, padding = _options.padding, flipVariations = _options.flipVariations, _options$allowedAutoP = _options.allowedAutoPlacements, allowedAutoPlacements = _options$allowedAutoP === void 0 ? placements : _options$allowedAutoP;
725
- var variation = getVariation(placement);
726
- var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function(placement2) {
727
- return getVariation(placement2) === variation;
728
- }) : basePlacements;
729
- var allowedPlacements = placements$1.filter(function(placement2) {
730
- return allowedAutoPlacements.indexOf(placement2) >= 0;
500
+ function wr(e, t) {
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 ? Ot : s, p = pe(n), h = p ? l ? st : st.filter(function(O) {
503
+ return pe(O) === p;
504
+ }) : $e, y = h.filter(function(O) {
505
+ return f.indexOf(O) >= 0;
731
506
  });
732
- if (allowedPlacements.length === 0) {
733
- allowedPlacements = placements$1;
734
- }
735
- var overflows = allowedPlacements.reduce(function(acc, placement2) {
736
- acc[placement2] = detectOverflow(state, {
737
- placement: placement2,
738
- boundary,
739
- rootBoundary,
740
- padding
741
- })[getBasePlacement(placement2)];
742
- return acc;
507
+ y.length === 0 && (y = h, 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(" ")));
508
+ var u = y.reduce(function(O, m) {
509
+ return O[m] = xe(e, {
510
+ placement: m,
511
+ boundary: o,
512
+ rootBoundary: i,
513
+ padding: a
514
+ })[V(m)], O;
743
515
  }, {});
744
- return Object.keys(overflows).sort(function(a, b) {
745
- return overflows[a] - overflows[b];
516
+ return Object.keys(u).sort(function(O, m) {
517
+ return u[O] - u[m];
746
518
  });
747
519
  }
748
- function getExpandedFallbackPlacements(placement) {
749
- if (getBasePlacement(placement) === auto) {
520
+ function Or(e) {
521
+ if (V(e) === ze)
750
522
  return [];
751
- }
752
- var oppositePlacement = getOppositePlacement(placement);
753
- return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];
754
- }
755
- function flip(_ref) {
756
- var state = _ref.state, options = _ref.options, name = _ref.name;
757
- if (state.modifiersData[name]._skip) {
758
- return;
759
- }
760
- var _options$mainAxis = options.mainAxis, checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis, _options$altAxis = options.altAxis, checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis, specifiedFallbackPlacements = options.fallbackPlacements, padding = options.padding, boundary = options.boundary, rootBoundary = options.rootBoundary, altBoundary = options.altBoundary, _options$flipVariatio = options.flipVariations, flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio, allowedAutoPlacements = options.allowedAutoPlacements;
761
- var preferredPlacement = state.options.placement;
762
- var basePlacement = getBasePlacement(preferredPlacement);
763
- var isBasePlacement = basePlacement === preferredPlacement;
764
- var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));
765
- var placements2 = [preferredPlacement].concat(fallbackPlacements).reduce(function(acc, placement2) {
766
- return acc.concat(getBasePlacement(placement2) === auto ? computeAutoPlacement(state, {
767
- placement: placement2,
768
- boundary,
769
- rootBoundary,
770
- padding,
771
- flipVariations,
772
- allowedAutoPlacements
773
- }) : placement2);
774
- }, []);
775
- var referenceRect = state.rects.reference;
776
- var popperRect = state.rects.popper;
777
- var checksMap = /* @__PURE__ */ new Map();
778
- var makeFallbackChecks = true;
779
- var firstFittingPlacement = placements2[0];
780
- for (var i = 0; i < placements2.length; i++) {
781
- var placement = placements2[i];
782
- var _basePlacement = getBasePlacement(placement);
783
- var isStartVariation = getVariation(placement) === start;
784
- var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;
785
- var len = isVertical ? "width" : "height";
786
- var overflow = detectOverflow(state, {
787
- placement,
788
- boundary,
789
- rootBoundary,
790
- altBoundary,
791
- padding
792
- });
793
- var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;
794
- if (referenceRect[len] > popperRect[len]) {
795
- mainVariationSide = getOppositePlacement(mainVariationSide);
796
- }
797
- var altVariationSide = getOppositePlacement(mainVariationSide);
798
- var checks = [];
799
- if (checkMainAxis) {
800
- checks.push(overflow[_basePlacement] <= 0);
801
- }
802
- if (checkAltAxis) {
803
- checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);
804
- }
805
- if (checks.every(function(check) {
806
- return check;
807
- })) {
808
- firstFittingPlacement = placement;
809
- makeFallbackChecks = false;
810
- break;
811
- }
812
- checksMap.set(placement, checks);
813
- }
814
- if (makeFallbackChecks) {
815
- var numberOfChecks = flipVariations ? 3 : 1;
816
- var _loop = function _loop2(_i2) {
817
- var fittingPlacement = placements2.find(function(placement2) {
818
- var checks2 = checksMap.get(placement2);
819
- if (checks2) {
820
- return checks2.slice(0, _i2).every(function(check) {
821
- return check;
822
- });
823
- }
824
- });
825
- if (fittingPlacement) {
826
- firstFittingPlacement = fittingPlacement;
827
- return "break";
828
- }
829
- };
830
- for (var _i = numberOfChecks; _i > 0; _i--) {
831
- var _ret = _loop(_i);
832
- if (_ret === "break")
523
+ var t = Ae(e);
524
+ return [ft(e), t, ft(t)];
525
+ }
526
+ function xr(e) {
527
+ var t = e.state, r = e.options, n = e.name;
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)] : Or(v)), c = [v].concat($).reduce(function(oe, U) {
530
+ return oe.concat(V(U) === ze ? wr(t, {
531
+ placement: U,
532
+ boundary: p,
533
+ rootBoundary: h,
534
+ padding: f,
535
+ flipVariations: O,
536
+ allowedAutoPlacements: m
537
+ }) : U);
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, I].indexOf(D) >= 0, J = G ? "width" : "height", z = xe(t, {
540
+ placement: b,
541
+ boundary: p,
542
+ rootBoundary: h,
543
+ altBoundary: y,
544
+ padding: f
545
+ }), L = G ? A ? N : j : A ? I : R;
546
+ g[J] > d[J] && (L = Ae(L));
547
+ var Pe = Ae(L), K = [];
548
+ if (i && K.push(z[D] <= 0), l && K.push(z[L] <= 0, z[Pe] <= 0), K.every(function(oe) {
549
+ return oe;
550
+ })) {
551
+ S = b, E = !1;
833
552
  break;
553
+ }
554
+ x.set(b, K);
834
555
  }
835
- }
836
- if (state.placement !== firstFittingPlacement) {
837
- state.modifiersData[name]._skip = true;
838
- state.placement = firstFittingPlacement;
839
- state.reset = true;
556
+ if (E)
557
+ for (var Ee = O ? 3 : 1, Ie = function(U) {
558
+ var ce = c.find(function(ke) {
559
+ var Q = x.get(ke);
560
+ if (Q)
561
+ return Q.slice(0, U).every(function(Ne) {
562
+ return Ne;
563
+ });
564
+ });
565
+ if (ce)
566
+ return S = ce, "break";
567
+ }, ue = Ee; ue > 0; ue--) {
568
+ var Se = Ie(ue);
569
+ if (Se === "break")
570
+ break;
571
+ }
572
+ t.placement !== S && (t.modifiersData[n]._skip = !0, t.placement = S, t.reset = !0);
840
573
  }
841
574
  }
842
- var flip$1 = {
575
+ const $r = {
843
576
  name: "flip",
844
- enabled: true,
577
+ enabled: !0,
845
578
  phase: "main",
846
- fn: flip,
579
+ fn: xr,
847
580
  requiresIfExists: ["offset"],
848
581
  data: {
849
- _skip: false
582
+ _skip: !1
850
583
  }
851
584
  };
852
- function getSideOffsets(overflow, rect, preventedOffsets) {
853
- if (preventedOffsets === void 0) {
854
- preventedOffsets = {
855
- x: 0,
856
- y: 0
857
- };
858
- }
859
- return {
860
- top: overflow.top - rect.height - preventedOffsets.y,
861
- right: overflow.right - rect.width + preventedOffsets.x,
862
- bottom: overflow.bottom - rect.height + preventedOffsets.y,
863
- left: overflow.left - rect.width - preventedOffsets.x
585
+ function ct(e, t, r) {
586
+ return r === void 0 && (r = {
587
+ x: 0,
588
+ y: 0
589
+ }), {
590
+ top: e.top - t.height - r.y,
591
+ right: e.right - t.width + r.x,
592
+ bottom: e.bottom - t.height + r.y,
593
+ left: e.left - t.width - r.x
864
594
  };
865
595
  }
866
- function isAnySideFullyClipped(overflow) {
867
- return [top, right, bottom, left].some(function(side) {
868
- return overflow[side] >= 0;
596
+ function dt(e) {
597
+ return [R, N, I, j].some(function(t) {
598
+ return e[t] >= 0;
869
599
  });
870
600
  }
871
- function hide(_ref) {
872
- var state = _ref.state, name = _ref.name;
873
- var referenceRect = state.rects.reference;
874
- var popperRect = state.rects.popper;
875
- var preventedOffsets = state.modifiersData.preventOverflow;
876
- var referenceOverflow = detectOverflow(state, {
601
+ function Cr(e) {
602
+ var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, i = t.modifiersData.preventOverflow, a = xe(t, {
877
603
  elementContext: "reference"
878
- });
879
- var popperAltOverflow = detectOverflow(state, {
880
- altBoundary: true
881
- });
882
- var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
883
- var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
884
- var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
885
- var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
886
- state.modifiersData[name] = {
887
- referenceClippingOffsets,
888
- popperEscapeOffsets,
889
- isReferenceHidden,
890
- hasPopperEscaped
891
- };
892
- state.attributes.popper = Object.assign({}, state.attributes.popper, {
893
- "data-popper-reference-hidden": isReferenceHidden,
894
- "data-popper-escaped": hasPopperEscaped
604
+ }), l = xe(t, {
605
+ altBoundary: !0
606
+ }), s = ct(a, n), f = ct(l, o, i), p = dt(s), h = dt(f);
607
+ t.modifiersData[r] = {
608
+ referenceClippingOffsets: s,
609
+ popperEscapeOffsets: f,
610
+ isReferenceHidden: p,
611
+ hasPopperEscaped: h
612
+ }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
613
+ "data-popper-reference-hidden": p,
614
+ "data-popper-escaped": h
895
615
  });
896
616
  }
897
- var hide$1 = {
617
+ const Pr = {
898
618
  name: "hide",
899
- enabled: true,
619
+ enabled: !0,
900
620
  phase: "main",
901
621
  requiresIfExists: ["preventOverflow"],
902
- fn: hide
622
+ fn: Cr
903
623
  };
904
- function distanceAndSkiddingToXY(placement, rects, offset2) {
905
- var basePlacement = getBasePlacement(placement);
906
- var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
907
- var _ref = typeof offset2 === "function" ? offset2(Object.assign({}, rects, {
908
- placement
909
- })) : offset2, skidding = _ref[0], distance = _ref[1];
910
- skidding = skidding || 0;
911
- distance = (distance || 0) * invertDistance;
912
- return [left, right].indexOf(basePlacement) >= 0 ? {
913
- x: distance,
914
- y: skidding
624
+ function Er(e, t, r) {
625
+ var n = V(e), o = [j, R].indexOf(n) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, t, {
626
+ placement: e
627
+ })) : r, a = i[0], l = i[1];
628
+ return a = a || 0, l = (l || 0) * o, [j, N].indexOf(n) >= 0 ? {
629
+ x: l,
630
+ y: a
915
631
  } : {
916
- x: skidding,
917
- y: distance
632
+ x: a,
633
+ y: l
918
634
  };
919
635
  }
920
- function offset(_ref2) {
921
- var state = _ref2.state, options = _ref2.options, name = _ref2.name;
922
- var _options$offset = options.offset, offset2 = _options$offset === void 0 ? [0, 0] : _options$offset;
923
- var data = placements.reduce(function(acc, placement) {
924
- acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset2);
925
- return acc;
926
- }, {});
927
- var _data$state$placement = data[state.placement], x = _data$state$placement.x, y = _data$state$placement.y;
928
- if (state.modifiersData.popperOffsets != null) {
929
- state.modifiersData.popperOffsets.x += x;
930
- state.modifiersData.popperOffsets.y += y;
931
- }
932
- state.modifiersData[name] = data;
636
+ function Sr(e) {
637
+ var t = e.state, r = e.options, n = e.name, o = r.offset, i = o === void 0 ? [0, 0] : o, a = Ot.reduce(function(p, h) {
638
+ return p[h] = Er(h, t.rects, i), p;
639
+ }, {}), l = a[t.placement], s = l.x, f = l.y;
640
+ t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += f), t.modifiersData[n] = a;
933
641
  }
934
- var offset$1 = {
642
+ const kr = {
935
643
  name: "offset",
936
- enabled: true,
644
+ enabled: !0,
937
645
  phase: "main",
938
646
  requires: ["popperOffsets"],
939
- fn: offset
647
+ fn: Sr
940
648
  };
941
- function popperOffsets(_ref) {
942
- var state = _ref.state, name = _ref.name;
943
- state.modifiersData[name] = computeOffsets({
944
- reference: state.rects.reference,
945
- element: state.rects.popper,
649
+ function Br(e) {
650
+ var t = e.state, r = e.name;
651
+ t.modifiersData[r] = kt({
652
+ reference: t.rects.reference,
653
+ element: t.rects.popper,
946
654
  strategy: "absolute",
947
- placement: state.placement
655
+ placement: t.placement
948
656
  });
949
657
  }
950
- var popperOffsets$1 = {
658
+ const Dr = {
951
659
  name: "popperOffsets",
952
- enabled: true,
660
+ enabled: !0,
953
661
  phase: "read",
954
- fn: popperOffsets,
662
+ fn: Br,
955
663
  data: {}
956
664
  };
957
- function getAltAxis(axis) {
958
- return axis === "x" ? "y" : "x";
959
- }
960
- function preventOverflow(_ref) {
961
- var state = _ref.state, options = _ref.options, name = _ref.name;
962
- var _options$mainAxis = options.mainAxis, checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis, _options$altAxis = options.altAxis, checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis, boundary = options.boundary, rootBoundary = options.rootBoundary, altBoundary = options.altBoundary, padding = options.padding, _options$tether = options.tether, tether = _options$tether === void 0 ? true : _options$tether, _options$tetherOffset = options.tetherOffset, tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;
963
- var overflow = detectOverflow(state, {
964
- boundary,
965
- rootBoundary,
966
- padding,
967
- altBoundary
968
- });
969
- var basePlacement = getBasePlacement(state.placement);
970
- var variation = getVariation(state.placement);
971
- var isBasePlacement = !variation;
972
- var mainAxis = getMainAxisFromPlacement(basePlacement);
973
- var altAxis = getAltAxis(mainAxis);
974
- var popperOffsets2 = state.modifiersData.popperOffsets;
975
- var referenceRect = state.rects.reference;
976
- var popperRect = state.rects.popper;
977
- var tetherOffsetValue = typeof tetherOffset === "function" ? tetherOffset(Object.assign({}, state.rects, {
978
- placement: state.placement
979
- })) : tetherOffset;
980
- var normalizedTetherOffsetValue = typeof tetherOffsetValue === "number" ? {
981
- mainAxis: tetherOffsetValue,
982
- altAxis: tetherOffsetValue
665
+ function Ar(e) {
666
+ return e === "x" ? "y" : "x";
667
+ }
668
+ function Rr(e) {
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
+ boundary: s,
671
+ rootBoundary: f,
672
+ padding: h,
673
+ altBoundary: p
674
+ }), w = V(t.placement), C = pe(t.placement), $ = !C, c = Ge(w), g = Ar(c), d = t.modifiersData.popperOffsets, x = t.rects.reference, E = t.rects.popper, S = typeof m == "function" ? m(Object.assign({}, t.rects, {
675
+ placement: t.placement
676
+ })) : m, k = typeof S == "number" ? {
677
+ mainAxis: S,
678
+ altAxis: S
983
679
  } : Object.assign({
984
680
  mainAxis: 0,
985
681
  altAxis: 0
986
- }, tetherOffsetValue);
987
- var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;
988
- var data = {
682
+ }, S), b = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, D = {
989
683
  x: 0,
990
684
  y: 0
991
685
  };
992
- if (!popperOffsets2) {
993
- return;
994
- }
995
- if (checkMainAxis) {
996
- var _offsetModifierState$;
997
- var mainSide = mainAxis === "y" ? top : left;
998
- var altSide = mainAxis === "y" ? bottom : right;
999
- var len = mainAxis === "y" ? "height" : "width";
1000
- var offset2 = popperOffsets2[mainAxis];
1001
- var min$1 = offset2 + overflow[mainSide];
1002
- var max$1 = offset2 - overflow[altSide];
1003
- var additive = tether ? -popperRect[len] / 2 : 0;
1004
- var minLen = variation === start ? referenceRect[len] : popperRect[len];
1005
- var maxLen = variation === start ? -popperRect[len] : -referenceRect[len];
1006
- var arrowElement = state.elements.arrow;
1007
- var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {
1008
- width: 0,
1009
- height: 0
1010
- };
1011
- var arrowPaddingObject = state.modifiersData["arrow#persistent"] ? state.modifiersData["arrow#persistent"].padding : getFreshSideObject();
1012
- var arrowPaddingMin = arrowPaddingObject[mainSide];
1013
- var arrowPaddingMax = arrowPaddingObject[altSide];
1014
- var arrowLen = within(0, referenceRect[len], arrowRect[len]);
1015
- var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;
1016
- var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
1017
- var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
1018
- var clientOffset = arrowOffsetParent ? mainAxis === "y" ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
1019
- var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
1020
- var tetherMin = offset2 + minOffset - offsetModifierValue - clientOffset;
1021
- var tetherMax = offset2 + maxOffset - offsetModifierValue;
1022
- var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset2, tether ? max(max$1, tetherMax) : max$1);
1023
- popperOffsets2[mainAxis] = preventedOffset;
1024
- data[mainAxis] = preventedOffset - offset2;
1025
- }
1026
- if (checkAltAxis) {
1027
- var _offsetModifierState$2;
1028
- var _mainSide = mainAxis === "x" ? top : left;
1029
- var _altSide = mainAxis === "x" ? bottom : right;
1030
- var _offset = popperOffsets2[altAxis];
1031
- var _len = altAxis === "y" ? "height" : "width";
1032
- var _min = _offset + overflow[_mainSide];
1033
- var _max = _offset - overflow[_altSide];
1034
- var isOriginSide = [top, left].indexOf(basePlacement) !== -1;
1035
- var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;
1036
- var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;
1037
- var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;
1038
- var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);
1039
- popperOffsets2[altAxis] = _preventedOffset;
1040
- data[altAxis] = _preventedOffset - _offset;
686
+ if (!!d) {
687
+ if (i) {
688
+ var A, G = c === "y" ? R : j, J = c === "y" ? I : N, z = c === "y" ? "height" : "width", L = d[c], Pe = L + v[G], K = L - v[J], Ee = u ? -E[z] / 2 : 0, Ie = C === ae ? x[z] : E[z], ue = C === ae ? -E[z] : -x[z], Se = t.elements.arrow, oe = u && Se ? Ye(Se) : {
689
+ width: 0,
690
+ height: 0
691
+ }, U = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ct(), ce = U[G], ke = U[J], Q = he(0, x[z], oe[z]), Ne = $ ? x[z] / 2 - Ee - Q - ce - k.mainAxis : Ie - Q - ce - k.mainAxis, At = $ ? -x[z] / 2 + Ee + Q + ke + k.mainAxis : ue + Q + ke + k.mainAxis, Me = t.elements.arrow && Ce(t.elements.arrow), Rt = Me ? c === "y" ? Me.clientTop || 0 : Me.clientLeft || 0 : 0, Ze = (A = b == null ? void 0 : b[c]) != null ? A : 0, jt = L + Ne - Ze - Rt, zt = L + At - Ze, _e = he(u ? je(Pe, jt) : Pe, L, u ? re(K, zt) : K);
692
+ d[c] = _e, D[c] = _e - L;
693
+ }
694
+ if (l) {
695
+ var et, Tt = c === "x" ? R : j, It = c === "x" ? I : N, Z = d[g], Be = g === "y" ? "height" : "width", tt = Z + v[Tt], rt = Z - v[It], 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 ? rr(ot, Z, it) : he(u ? ot : tt, Z, u ? it : rt);
696
+ d[g] = at, D[g] = at - Z;
697
+ }
698
+ t.modifiersData[n] = D;
1041
699
  }
1042
- state.modifiersData[name] = data;
1043
700
  }
1044
- var preventOverflow$1 = {
701
+ const jr = {
1045
702
  name: "preventOverflow",
1046
- enabled: true,
703
+ enabled: !0,
1047
704
  phase: "main",
1048
- fn: preventOverflow,
705
+ fn: Rr,
1049
706
  requiresIfExists: ["offset"]
1050
707
  };
1051
- function getHTMLElementScroll(element) {
708
+ function zr(e) {
1052
709
  return {
1053
- scrollLeft: element.scrollLeft,
1054
- scrollTop: element.scrollTop
710
+ scrollLeft: e.scrollLeft,
711
+ scrollTop: e.scrollTop
1055
712
  };
1056
713
  }
1057
- function getNodeScroll(node) {
1058
- if (node === getWindow(node) || !isHTMLElement(node)) {
1059
- return getWindowScroll(node);
1060
- } else {
1061
- return getHTMLElementScroll(node);
1062
- }
714
+ function Tr(e) {
715
+ return e === M(e) || !T(e) ? Je(e) : zr(e);
1063
716
  }
1064
- function isElementScaled(element) {
1065
- var rect = element.getBoundingClientRect();
1066
- var scaleX = round(rect.width) / element.offsetWidth || 1;
1067
- var scaleY = round(rect.height) / element.offsetHeight || 1;
1068
- return scaleX !== 1 || scaleY !== 1;
717
+ function Ir(e) {
718
+ var t = e.getBoundingClientRect(), r = se(t.width) / e.offsetWidth || 1, n = se(t.height) / e.offsetHeight || 1;
719
+ return r !== 1 || n !== 1;
1069
720
  }
1070
- function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
1071
- if (isFixed === void 0) {
1072
- isFixed = false;
1073
- }
1074
- var isOffsetParentAnElement = isHTMLElement(offsetParent);
1075
- var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
1076
- var documentElement = getDocumentElement(offsetParent);
1077
- var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
1078
- var scroll = {
721
+ function Nr(e, t, r) {
722
+ r === void 0 && (r = !1);
723
+ var n = T(t), o = T(t) && Ir(t), i = Y(t), a = le(e, o, r), l = {
1079
724
  scrollLeft: 0,
1080
725
  scrollTop: 0
1081
- };
1082
- var offsets = {
726
+ }, s = {
1083
727
  x: 0,
1084
728
  y: 0
1085
729
  };
1086
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1087
- if (getNodeName(offsetParent) !== "body" || isScrollParent(documentElement)) {
1088
- scroll = getNodeScroll(offsetParent);
1089
- }
1090
- if (isHTMLElement(offsetParent)) {
1091
- offsets = getBoundingClientRect(offsetParent, true);
1092
- offsets.x += offsetParent.clientLeft;
1093
- offsets.y += offsetParent.clientTop;
1094
- } else if (documentElement) {
1095
- offsets.x = getWindowScrollBarX(documentElement);
1096
- }
1097
- }
1098
- return {
1099
- x: rect.left + scroll.scrollLeft - offsets.x,
1100
- y: rect.top + scroll.scrollTop - offsets.y,
1101
- width: rect.width,
1102
- height: rect.height
730
+ return (n || !n && !r) && ((H(t) !== "body" || Qe(i)) && (l = Tr(t)), T(t) ? (s = le(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : i && (s.x = Ke(i))), {
731
+ x: a.left + l.scrollLeft - s.x,
732
+ y: a.top + l.scrollTop - s.y,
733
+ width: a.width,
734
+ height: a.height
1103
735
  };
1104
736
  }
1105
- function order(modifiers) {
1106
- var map = /* @__PURE__ */ new Map();
1107
- var visited = /* @__PURE__ */ new Set();
1108
- var result = [];
1109
- modifiers.forEach(function(modifier) {
1110
- map.set(modifier.name, modifier);
737
+ function Mr(e) {
738
+ var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
739
+ e.forEach(function(i) {
740
+ t.set(i.name, i);
1111
741
  });
1112
- function sort(modifier) {
1113
- visited.add(modifier.name);
1114
- var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
1115
- requires.forEach(function(dep) {
1116
- if (!visited.has(dep)) {
1117
- var depModifier = map.get(dep);
1118
- if (depModifier) {
1119
- sort(depModifier);
1120
- }
742
+ function o(i) {
743
+ r.add(i.name);
744
+ var a = [].concat(i.requires || [], i.requiresIfExists || []);
745
+ a.forEach(function(l) {
746
+ if (!r.has(l)) {
747
+ var s = t.get(l);
748
+ s && o(s);
1121
749
  }
1122
- });
1123
- result.push(modifier);
750
+ }), n.push(i);
1124
751
  }
1125
- modifiers.forEach(function(modifier) {
1126
- if (!visited.has(modifier.name)) {
1127
- sort(modifier);
1128
- }
1129
- });
1130
- return result;
752
+ return e.forEach(function(i) {
753
+ r.has(i.name) || o(i);
754
+ }), n;
1131
755
  }
1132
- function orderModifiers(modifiers) {
1133
- var orderedModifiers = order(modifiers);
1134
- return modifierPhases.reduce(function(acc, phase) {
1135
- return acc.concat(orderedModifiers.filter(function(modifier) {
1136
- return modifier.phase === phase;
756
+ function Lr(e) {
757
+ var t = Mr(e);
758
+ return qe.reduce(function(r, n) {
759
+ return r.concat(t.filter(function(o) {
760
+ return o.phase === n;
1137
761
  }));
1138
762
  }, []);
1139
763
  }
1140
- function debounce(fn2) {
1141
- var pending;
764
+ function Vr(e) {
765
+ var t;
1142
766
  return function() {
1143
- if (!pending) {
1144
- pending = new Promise(function(resolve) {
1145
- Promise.resolve().then(function() {
1146
- pending = void 0;
1147
- resolve(fn2());
1148
- });
767
+ return t || (t = new Promise(function(r) {
768
+ Promise.resolve().then(function() {
769
+ t = void 0, r(e());
1149
770
  });
1150
- }
1151
- return pending;
771
+ })), t;
1152
772
  };
1153
773
  }
1154
- function mergeByName(modifiers) {
1155
- var merged = modifiers.reduce(function(merged2, current) {
1156
- var existing = merged2[current.name];
1157
- merged2[current.name] = existing ? Object.assign({}, existing, current, {
1158
- options: Object.assign({}, existing.options, current.options),
1159
- data: Object.assign({}, existing.data, current.data)
1160
- }) : current;
1161
- return merged2;
774
+ function X(e) {
775
+ for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
776
+ r[n - 1] = arguments[n];
777
+ return [].concat(r).reduce(function(o, i) {
778
+ return o.replace(/%s/, i);
779
+ }, e);
780
+ }
781
+ var _ = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', qr = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', vt = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
782
+ function Fr(e) {
783
+ e.forEach(function(t) {
784
+ [].concat(Object.keys(t), vt).filter(function(r, n, o) {
785
+ return o.indexOf(r) === n;
786
+ }).forEach(function(r) {
787
+ switch (r) {
788
+ case "name":
789
+ typeof t.name != "string" && console.error(X(_, String(t.name), '"name"', '"string"', '"' + String(t.name) + '"'));
790
+ break;
791
+ case "enabled":
792
+ typeof t.enabled != "boolean" && console.error(X(_, t.name, '"enabled"', '"boolean"', '"' + String(t.enabled) + '"'));
793
+ break;
794
+ case "phase":
795
+ qe.indexOf(t.phase) < 0 && console.error(X(_, t.name, '"phase"', "either " + qe.join(", "), '"' + String(t.phase) + '"'));
796
+ break;
797
+ case "fn":
798
+ typeof t.fn != "function" && console.error(X(_, t.name, '"fn"', '"function"', '"' + String(t.fn) + '"'));
799
+ break;
800
+ case "effect":
801
+ t.effect != null && typeof t.effect != "function" && console.error(X(_, t.name, '"effect"', '"function"', '"' + String(t.fn) + '"'));
802
+ break;
803
+ case "requires":
804
+ t.requires != null && !Array.isArray(t.requires) && console.error(X(_, t.name, '"requires"', '"array"', '"' + String(t.requires) + '"'));
805
+ break;
806
+ case "requiresIfExists":
807
+ Array.isArray(t.requiresIfExists) || console.error(X(_, t.name, '"requiresIfExists"', '"array"', '"' + String(t.requiresIfExists) + '"'));
808
+ break;
809
+ case "options":
810
+ case "data":
811
+ break;
812
+ default:
813
+ console.error('PopperJS: an invalid property has been provided to the "' + t.name + '" modifier, valid properties are ' + vt.map(function(n) {
814
+ return '"' + n + '"';
815
+ }).join(", ") + '; but "' + r + '" was provided.');
816
+ }
817
+ t.requires && t.requires.forEach(function(n) {
818
+ e.find(function(o) {
819
+ return o.name === n;
820
+ }) == null && console.error(X(qr, String(t.name), n, n));
821
+ });
822
+ });
823
+ });
824
+ }
825
+ function Wr(e, t) {
826
+ var r = /* @__PURE__ */ new Set();
827
+ return e.filter(function(n) {
828
+ var o = t(n);
829
+ if (!r.has(o))
830
+ return r.add(o), !0;
831
+ });
832
+ }
833
+ function Hr(e) {
834
+ var t = e.reduce(function(r, n) {
835
+ var o = r[n.name];
836
+ return r[n.name] = o ? Object.assign({}, o, n, {
837
+ options: Object.assign({}, o.options, n.options),
838
+ data: Object.assign({}, o.data, n.data)
839
+ }) : n, r;
1162
840
  }, {});
1163
- return Object.keys(merged).map(function(key) {
1164
- return merged[key];
841
+ return Object.keys(t).map(function(r) {
842
+ return t[r];
1165
843
  });
1166
844
  }
1167
- var DEFAULT_OPTIONS = {
845
+ var ht = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.", Ur = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.", mt = {
1168
846
  placement: "bottom",
1169
847
  modifiers: [],
1170
848
  strategy: "absolute"
1171
849
  };
1172
- function areValidElements() {
1173
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1174
- args[_key] = arguments[_key];
1175
- }
1176
- return !args.some(function(element) {
1177
- return !(element && typeof element.getBoundingClientRect === "function");
850
+ function gt() {
851
+ for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
852
+ t[r] = arguments[r];
853
+ return !t.some(function(n) {
854
+ return !(n && typeof n.getBoundingClientRect == "function");
1178
855
  });
1179
856
  }
1180
- function popperGenerator(generatorOptions) {
1181
- if (generatorOptions === void 0) {
1182
- generatorOptions = {};
1183
- }
1184
- var _generatorOptions = generatorOptions, _generatorOptions$def = _generatorOptions.defaultModifiers, defaultModifiers2 = _generatorOptions$def === void 0 ? [] : _generatorOptions$def, _generatorOptions$def2 = _generatorOptions.defaultOptions, defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
1185
- return function createPopper2(reference2, popper2, options) {
1186
- if (options === void 0) {
1187
- options = defaultOptions;
1188
- }
1189
- var state = {
857
+ function Xr(e) {
858
+ e === void 0 && (e = {});
859
+ var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, o = t.defaultOptions, i = o === void 0 ? mt : o;
860
+ return function(l, s, f) {
861
+ f === void 0 && (f = i);
862
+ var p = {
1190
863
  placement: "bottom",
1191
864
  orderedModifiers: [],
1192
- options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
865
+ options: Object.assign({}, mt, i),
1193
866
  modifiersData: {},
1194
867
  elements: {
1195
- reference: reference2,
1196
- popper: popper2
868
+ reference: l,
869
+ popper: s
1197
870
  },
1198
871
  attributes: {},
1199
872
  styles: {}
1200
- };
1201
- var effectCleanupFns = [];
1202
- var isDestroyed = false;
1203
- var instance = {
1204
- state,
1205
- setOptions: function setOptions(setOptionsAction) {
1206
- var options2 = typeof setOptionsAction === "function" ? setOptionsAction(state.options) : setOptionsAction;
1207
- cleanupModifierEffects();
1208
- state.options = Object.assign({}, defaultOptions, state.options, options2);
1209
- state.scrollParents = {
1210
- reference: isElement(reference2) ? listScrollParents(reference2) : reference2.contextElement ? listScrollParents(reference2.contextElement) : [],
1211
- popper: listScrollParents(popper2)
873
+ }, h = [], y = !1, u = {
874
+ state: p,
875
+ setOptions: function(w) {
876
+ var C = typeof w == "function" ? w(p.options) : w;
877
+ m(), p.options = Object.assign({}, i, p.options, C), p.scrollParents = {
878
+ reference: ne(l) ? me(l) : l.contextElement ? me(l.contextElement) : [],
879
+ popper: me(s)
1212
880
  };
1213
- var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers2, state.options.modifiers)));
1214
- state.orderedModifiers = orderedModifiers.filter(function(m) {
1215
- return m.enabled;
1216
- });
1217
- runModifierEffects();
1218
- return instance.update();
1219
- },
1220
- forceUpdate: function forceUpdate() {
1221
- if (isDestroyed) {
1222
- return;
1223
- }
1224
- var _state$elements = state.elements, reference3 = _state$elements.reference, popper3 = _state$elements.popper;
1225
- if (!areValidElements(reference3, popper3)) {
1226
- return;
881
+ var $ = Lr(Hr([].concat(n, p.options.modifiers)));
882
+ if (p.orderedModifiers = $.filter(function(b) {
883
+ return b.enabled;
884
+ }), process.env.NODE_ENV !== "production") {
885
+ var c = Wr([].concat($, p.options.modifiers), function(b) {
886
+ var D = b.name;
887
+ return D;
888
+ });
889
+ if (Fr(c), V(p.options.placement) === ze) {
890
+ var g = p.orderedModifiers.find(function(b) {
891
+ var D = b.name;
892
+ return D === "flip";
893
+ });
894
+ g || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
895
+ }
896
+ var d = q(s), x = d.marginTop, E = d.marginRight, S = d.marginBottom, k = d.marginLeft;
897
+ [x, E, S, k].some(function(b) {
898
+ return parseFloat(b);
899
+ }) && 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(" "));
1227
900
  }
1228
- state.rects = {
1229
- reference: getCompositeRect(reference3, getOffsetParent(popper3), state.options.strategy === "fixed"),
1230
- popper: getLayoutRect(popper3)
1231
- };
1232
- state.reset = false;
1233
- state.placement = state.options.placement;
1234
- state.orderedModifiers.forEach(function(modifier) {
1235
- return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
1236
- });
1237
- for (var index = 0; index < state.orderedModifiers.length; index++) {
1238
- if (state.reset === true) {
1239
- state.reset = false;
1240
- index = -1;
1241
- continue;
901
+ return O(), u.update();
902
+ },
903
+ forceUpdate: function() {
904
+ if (!y) {
905
+ var w = p.elements, C = w.reference, $ = w.popper;
906
+ if (!gt(C, $)) {
907
+ process.env.NODE_ENV !== "production" && console.error(ht);
908
+ return;
1242
909
  }
1243
- var _state$orderedModifie = state.orderedModifiers[index], fn2 = _state$orderedModifie.fn, _state$orderedModifie2 = _state$orderedModifie.options, _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2, name = _state$orderedModifie.name;
1244
- if (typeof fn2 === "function") {
1245
- state = fn2({
1246
- state,
1247
- options: _options,
1248
- name,
1249
- instance
1250
- }) || state;
910
+ p.rects = {
911
+ reference: Nr(C, Ce($), p.options.strategy === "fixed"),
912
+ popper: Ye($)
913
+ }, p.reset = !1, p.placement = p.options.placement, p.orderedModifiers.forEach(function(b) {
914
+ return p.modifiersData[b.name] = Object.assign({}, b.data);
915
+ });
916
+ for (var c = 0, g = 0; g < p.orderedModifiers.length; g++) {
917
+ if (process.env.NODE_ENV !== "production" && (c += 1, c > 100)) {
918
+ console.error(Ur);
919
+ break;
920
+ }
921
+ if (p.reset === !0) {
922
+ p.reset = !1, g = -1;
923
+ continue;
924
+ }
925
+ var d = p.orderedModifiers[g], x = d.fn, E = d.options, S = E === void 0 ? {} : E, k = d.name;
926
+ typeof x == "function" && (p = x({
927
+ state: p,
928
+ options: S,
929
+ name: k,
930
+ instance: u
931
+ }) || p);
1251
932
  }
1252
933
  }
1253
934
  },
1254
- update: debounce(function() {
1255
- return new Promise(function(resolve) {
1256
- instance.forceUpdate();
1257
- resolve(state);
935
+ update: Vr(function() {
936
+ return new Promise(function(v) {
937
+ u.forceUpdate(), v(p);
1258
938
  });
1259
939
  }),
1260
- destroy: function destroy() {
1261
- cleanupModifierEffects();
1262
- isDestroyed = true;
940
+ destroy: function() {
941
+ m(), y = !0;
1263
942
  }
1264
943
  };
1265
- if (!areValidElements(reference2, popper2)) {
1266
- return instance;
1267
- }
1268
- instance.setOptions(options).then(function(state2) {
1269
- if (!isDestroyed && options.onFirstUpdate) {
1270
- options.onFirstUpdate(state2);
1271
- }
944
+ if (!gt(l, s))
945
+ return process.env.NODE_ENV !== "production" && console.error(ht), u;
946
+ u.setOptions(f).then(function(v) {
947
+ !y && f.onFirstUpdate && f.onFirstUpdate(v);
1272
948
  });
1273
- function runModifierEffects() {
1274
- state.orderedModifiers.forEach(function(_ref3) {
1275
- var name = _ref3.name, _ref3$options = _ref3.options, options2 = _ref3$options === void 0 ? {} : _ref3$options, effect2 = _ref3.effect;
1276
- if (typeof effect2 === "function") {
1277
- var cleanupFn = effect2({
1278
- state,
1279
- name,
1280
- instance,
1281
- options: options2
1282
- });
1283
- var noopFn = function noopFn2() {
949
+ function O() {
950
+ p.orderedModifiers.forEach(function(v) {
951
+ var w = v.name, C = v.options, $ = C === void 0 ? {} : C, c = v.effect;
952
+ if (typeof c == "function") {
953
+ var g = c({
954
+ state: p,
955
+ name: w,
956
+ instance: u,
957
+ options: $
958
+ }), d = function() {
1284
959
  };
1285
- effectCleanupFns.push(cleanupFn || noopFn);
960
+ h.push(g || d);
1286
961
  }
1287
962
  });
1288
963
  }
1289
- function cleanupModifierEffects() {
1290
- effectCleanupFns.forEach(function(fn2) {
1291
- return fn2();
1292
- });
1293
- effectCleanupFns = [];
964
+ function m() {
965
+ h.forEach(function(v) {
966
+ return v();
967
+ }), h = [];
1294
968
  }
1295
- return instance;
969
+ return u;
1296
970
  };
1297
971
  }
1298
- var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyStyles$1, offset$1, flip$1, preventOverflow$1, arrow$1, hide$1];
1299
- var createPopper = /* @__PURE__ */ popperGenerator({
1300
- defaultModifiers
972
+ var Yr = [cr, Dr, fr, _t, kr, $r, jr, ar, Pr], Gr = /* @__PURE__ */ Xr({
973
+ defaultModifiers: Yr
1301
974
  });
1302
- var Sizeable$1 = {
975
+ const Jr = {
1303
976
  props: {
977
+ componentPrefix: String,
1304
978
  size: String,
1305
- sizePrefix: {
1306
- type: String,
1307
- default() {
1308
- return this.$options.name && this.$options.name.toLowerCase();
1309
- }
1310
- }
979
+ sizePrefix: String
1311
980
  },
1312
981
  computed: {
1313
982
  sizeableClassPrefix() {
1314
- return this.sizePrefix;
983
+ return this.sizePrefix || this.componentPrefix;
984
+ },
985
+ hasSizeablePrefix() {
986
+ return this.size && !!this.size.match(
987
+ new RegExp(`^${this.sizeableClassPrefix}`)
988
+ );
1315
989
  },
1316
990
  sizeableClass() {
1317
- if (!this.size || !this.sizeableClassPrefix) {
1318
- return "";
1319
- }
1320
- return `${this.sizeableClassPrefix}-${this.size}`;
991
+ return this.size ? !this.sizeableClassPrefix || this.hasSizeablePrefix ? this.size : `${this.sizeableClassPrefix}-${this.size}` : "";
1321
992
  }
1322
993
  }
1323
- };
1324
- var Variant = {
994
+ }, Kr = {
1325
995
  props: {
996
+ componentPrefix: String,
1326
997
  variant: String,
1327
- variantPrefix: {
1328
- type: String,
1329
- default() {
1330
- return this.$options.name && this.$options.name.toLowerCase();
1331
- }
1332
- }
998
+ variantPrefix: String
1333
999
  },
1334
1000
  computed: {
1335
1001
  variantClassPrefix() {
1336
- return this.variantPrefix;
1002
+ return this.variantPrefix || this.componentPrefix;
1337
1003
  },
1338
- variantClass() {
1339
- if (!this.variant || !this.variantClassPrefix) {
1340
- return "";
1341
- }
1342
- return `${this.variantClassPrefix}-${this.variant}`;
1343
- }
1344
- }
1345
- };
1346
- var render$5 = function() {
1347
- var _vm = this;
1348
- var _h = _vm.$createElement;
1349
- var _c = _vm._self._c || _h;
1350
- return _vm.to ? _c("router-link", {
1351
- class: _vm.classes,
1352
- attrs: {
1353
- "to": _vm.to,
1354
- "disabled": _vm.disabled,
1355
- "role": "button"
1356
- },
1357
- on: {
1358
- "click": _vm.onClick
1359
- }
1360
- }, [_vm._t("default")], 2) : _vm.href ? _c("a", {
1361
- class: _vm.classes,
1362
- attrs: {
1363
- "href": _vm.href,
1364
- "disabled": _vm.disabled,
1365
- "role": "button"
1004
+ hasVariantPrefix() {
1005
+ return this.variant && !!this.variant.match(
1006
+ new RegExp(`^${this.variantClassPrefix}`)
1007
+ );
1366
1008
  },
1367
- on: {
1368
- "click": _vm.onClick
1369
- }
1370
- }, [_vm._t("default")], 2) : _vm.label ? _c("label", {
1371
- class: _vm.classes,
1372
- attrs: {
1373
- "disabled": _vm.disabled,
1374
- "role": "button"
1375
- },
1376
- on: {
1377
- "click": _vm.onClick
1378
- }
1379
- }, [_vm._t("default")], 2) : _c("button", {
1380
- class: _vm.classes,
1381
- attrs: {
1382
- "type": _vm.type,
1383
- "disabled": _vm.disabled
1384
- },
1385
- on: {
1386
- "click": _vm.onClick
1387
- }
1388
- }, [_vm._t("default")], 2);
1389
- };
1390
- var staticRenderFns$5 = [];
1391
- function normalizeComponent$2(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
1392
- var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
1393
- if (render2) {
1394
- options.render = render2;
1395
- options.staticRenderFns = staticRenderFns2;
1396
- options._compiled = true;
1397
- }
1398
- if (functionalTemplate) {
1399
- options.functional = true;
1400
- }
1401
- if (scopeId) {
1402
- options._scopeId = "data-v-" + scopeId;
1403
- }
1404
- var hook;
1405
- if (moduleIdentifier) {
1406
- hook = function(context) {
1407
- context = context || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
1408
- if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
1409
- context = __VUE_SSR_CONTEXT__;
1410
- }
1411
- if (injectStyles) {
1412
- injectStyles.call(this, context);
1413
- }
1414
- if (context && context._registeredComponents) {
1415
- context._registeredComponents.add(moduleIdentifier);
1416
- }
1417
- };
1418
- options._ssrRegister = hook;
1419
- } else if (injectStyles) {
1420
- hook = shadowMode ? function() {
1421
- injectStyles.call(this, (options.functional ? this.parent : this).$root.$options.shadowRoot);
1422
- } : injectStyles;
1423
- }
1424
- if (hook) {
1425
- if (options.functional) {
1426
- options._injectStyles = hook;
1427
- var originalRender = options.render;
1428
- options.render = function renderWithStyleInjection(h, context) {
1429
- hook.call(context);
1430
- return originalRender(h, context);
1431
- };
1432
- } else {
1433
- var existing = options.beforeCreate;
1434
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
1009
+ variantClass() {
1010
+ return this.variant ? !this.variantClassPrefix || this.hasVariantPrefix ? this.variant : `${this.variantClassPrefix}-${this.variant}` : "";
1435
1011
  }
1436
1012
  }
1437
- return {
1438
- exports: scriptExports,
1439
- options
1440
- };
1441
- }
1442
- const __vue2_script$6 = {
1013
+ }, Qr = {
1443
1014
  name: "Btn",
1444
- mixins: [Sizeable$1, Variant],
1015
+ mixins: [
1016
+ Jr,
1017
+ Kr
1018
+ ],
1445
1019
  props: {
1446
1020
  active: Boolean,
1447
1021
  block: Boolean,
1022
+ componentPrefix: {
1023
+ type: String,
1024
+ default: "btn"
1025
+ },
1448
1026
  disabled: Boolean,
1449
- href: String,
1450
- label: Boolean,
1027
+ label: String,
1451
1028
  outline: Boolean,
1452
- to: [Object, String],
1453
- type: String
1029
+ tag: String,
1030
+ variant: {
1031
+ type: String,
1032
+ default: "primary"
1033
+ }
1454
1034
  },
1455
1035
  computed: {
1456
- variantClassPrefix() {
1457
- return this.variantPrefix + (this.outline ? "-outline" : "");
1458
- },
1459
1036
  classes() {
1460
- return ["btn", this.variantClass, this.sizeableClass, this.block ? "btn-block" : "", this.active ? "active" : ""];
1461
- }
1462
- },
1463
- methods: {
1464
- onClick(event) {
1465
- if (!this.disabled) {
1466
- this.$emit("click", event);
1467
- } else {
1468
- event.preventDefault();
1469
- }
1037
+ return [
1038
+ "btn",
1039
+ this.variantClass,
1040
+ this.sizeableClass,
1041
+ this.active && "active",
1042
+ this.block && "btn-block",
1043
+ this.disabled && "disabled"
1044
+ ];
1045
+ },
1046
+ component() {
1047
+ return this.tag ? this.tag : this.$attrs.href ? "a" : "button";
1048
+ },
1049
+ variantClassPrefix() {
1050
+ return (this.variantPrefix || this.componentPrefix) + (this.outline ? "-outline" : "");
1470
1051
  }
1471
1052
  }
1053
+ }, fe = (e, t) => {
1054
+ const r = e.__vccOpts || e;
1055
+ for (const [n, o] of t)
1056
+ r[n] = o;
1057
+ return r;
1472
1058
  };
1473
- const __cssModules$6 = {};
1474
- var __component__$6 = /* @__PURE__ */ normalizeComponent$2(__vue2_script$6, render$5, staticRenderFns$5, false, __vue2_injectStyles$6, null, null, null);
1475
- function __vue2_injectStyles$6(context) {
1476
- for (let o in __cssModules$6) {
1477
- this[o] = __cssModules$6[o];
1478
- }
1479
- }
1480
- var Btn = /* @__PURE__ */ function() {
1481
- return __component__$6.exports;
1482
- }();
1483
- var Sizeable = {
1059
+ function Zr(e, t, r, n, o, i) {
1060
+ return W(), ee(He(i.component), ge(e.$attrs, {
1061
+ disabled: r.disabled,
1062
+ class: i.classes,
1063
+ role: "button"
1064
+ }), {
1065
+ default: B(() => [
1066
+ P(e.$slots, "default", {}, () => [
1067
+ be(ye(r.label), 1)
1068
+ ])
1069
+ ]),
1070
+ _: 3
1071
+ }, 16, ["disabled", "class"]);
1072
+ }
1073
+ const _r = /* @__PURE__ */ fe(Qr, [["render", Zr]]), en = {
1484
1074
  props: {
1075
+ componentPrefix: String,
1485
1076
  size: String,
1486
- sizePrefix: {
1487
- type: String,
1488
- default() {
1489
- return this.$options.name && this.$options.name.toLowerCase();
1490
- }
1491
- }
1077
+ sizePrefix: String
1492
1078
  },
1493
1079
  computed: {
1494
1080
  sizeableClassPrefix() {
1495
- return this.sizePrefix;
1081
+ return this.sizePrefix || this.componentPrefix;
1082
+ },
1083
+ hasSizeablePrefix() {
1084
+ return this.size && !!this.size.match(new RegExp(`^${this.sizeableClassPrefix}`));
1496
1085
  },
1497
1086
  sizeableClass() {
1498
- if (!this.size || !this.sizeableClassPrefix) {
1499
- return "";
1500
- }
1501
- return `${this.sizeableClassPrefix}-${this.size}`;
1087
+ return this.size ? !this.sizeableClassPrefix || this.hasSizeablePrefix ? this.size : `${this.sizeableClassPrefix}-${this.size}` : "";
1502
1088
  }
1503
1089
  }
1504
- };
1505
- var render$2$1 = function() {
1506
- var _vm = this;
1507
- var _h = _vm.$createElement;
1508
- var _c = _vm._self._c || _h;
1509
- return _c("div", {
1510
- class: _vm.classes,
1511
- attrs: {
1512
- "data-toggle": _vm.toggle ? "buttons" : false,
1513
- "role": "group"
1514
- }
1515
- }, [_vm._t("default")], 2);
1516
- };
1517
- var staticRenderFns$2$1 = [];
1518
- function normalizeComponent$1(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
1519
- var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
1520
- if (render2) {
1521
- options.render = render2;
1522
- options.staticRenderFns = staticRenderFns2;
1523
- options._compiled = true;
1524
- }
1525
- if (functionalTemplate) {
1526
- options.functional = true;
1527
- }
1528
- if (scopeId) {
1529
- options._scopeId = "data-v-" + scopeId;
1530
- }
1531
- var hook;
1532
- if (moduleIdentifier) {
1533
- hook = function(context) {
1534
- context = context || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
1535
- if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
1536
- context = __VUE_SSR_CONTEXT__;
1537
- }
1538
- if (injectStyles) {
1539
- injectStyles.call(this, context);
1540
- }
1541
- if (context && context._registeredComponents) {
1542
- context._registeredComponents.add(moduleIdentifier);
1543
- }
1544
- };
1545
- options._ssrRegister = hook;
1546
- } else if (injectStyles) {
1547
- hook = shadowMode ? function() {
1548
- injectStyles.call(this, (options.functional ? this.parent : this).$root.$options.shadowRoot);
1549
- } : injectStyles;
1550
- }
1551
- if (hook) {
1552
- if (options.functional) {
1553
- options._injectStyles = hook;
1554
- var originalRender = options.render;
1555
- options.render = function renderWithStyleInjection(h, context) {
1556
- hook.call(context);
1557
- return originalRender(h, context);
1558
- };
1559
- } else {
1560
- var existing = options.beforeCreate;
1561
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
1562
- }
1563
- }
1564
- return {
1565
- exports: scriptExports,
1566
- options
1567
- };
1568
- }
1569
- const __vue2_script$2$1 = {
1090
+ }, tn = (e, t) => {
1091
+ const r = e.__vccOpts || e;
1092
+ for (const [n, o] of t)
1093
+ r[n] = o;
1094
+ return r;
1095
+ }, rn = {
1570
1096
  name: "BtnGroup",
1571
- mixins: [Sizeable],
1097
+ mixins: [en],
1572
1098
  props: {
1573
1099
  sizePrefix: {
1574
1100
  type: String,
@@ -1589,172 +1115,84 @@ const __vue2_script$2$1 = {
1589
1115
  };
1590
1116
  }
1591
1117
  }
1592
- };
1593
- const __cssModules$2$1 = {};
1594
- var __component__$2$1 = /* @__PURE__ */ normalizeComponent$1(__vue2_script$2$1, render$2$1, staticRenderFns$2$1, false, __vue2_injectStyles$2$1, null, null, null);
1595
- function __vue2_injectStyles$2$1(context) {
1596
- for (let o in __cssModules$2$1) {
1597
- this[o] = __cssModules$2$1[o];
1598
- }
1599
- }
1600
- var BtnGroup = /* @__PURE__ */ function() {
1601
- return __component__$2$1.exports;
1602
- }();
1603
- function normalizeComponent(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
1604
- var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
1605
- if (render2) {
1606
- options.render = render2;
1607
- options.staticRenderFns = staticRenderFns2;
1608
- options._compiled = true;
1609
- }
1610
- if (functionalTemplate) {
1611
- options.functional = true;
1612
- }
1613
- if (scopeId) {
1614
- options._scopeId = "data-v-" + scopeId;
1615
- }
1616
- var hook;
1617
- if (moduleIdentifier) {
1618
- hook = function(context) {
1619
- context = context || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
1620
- if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
1621
- context = __VUE_SSR_CONTEXT__;
1622
- }
1623
- if (injectStyles) {
1624
- injectStyles.call(this, context);
1625
- }
1626
- if (context && context._registeredComponents) {
1627
- context._registeredComponents.add(moduleIdentifier);
1628
- }
1629
- };
1630
- options._ssrRegister = hook;
1631
- } else if (injectStyles) {
1632
- hook = shadowMode ? function() {
1633
- injectStyles.call(this, (options.functional ? this.parent : this).$root.$options.shadowRoot);
1634
- } : injectStyles;
1635
- }
1636
- if (hook) {
1637
- if (options.functional) {
1638
- options._injectStyles = hook;
1639
- var originalRender = options.render;
1640
- options.render = function renderWithStyleInjection(h, context) {
1641
- hook.call(context);
1642
- return originalRender(h, context);
1643
- };
1644
- } else {
1645
- var existing = options.beforeCreate;
1646
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
1647
- }
1648
- }
1649
- return {
1650
- exports: scriptExports,
1651
- options
1118
+ }, nn = ["data-toggle"];
1119
+ function on(e, t, r, n, o, i) {
1120
+ return W(), Ue("div", {
1121
+ class: F(i.classes),
1122
+ "data-toggle": r.toggle ? "buttons" : !1,
1123
+ role: "group"
1124
+ }, [P(e.$slots, "default")], 10, nn);
1125
+ }
1126
+ const an = /* @__PURE__ */ tn(rn, [["render", on]]);
1127
+ function Ve(e, t) {
1128
+ e.props.class = `${e.props.class || ""} ${t}`.trim();
1129
+ }
1130
+ function bt(e, t) {
1131
+ return (r) => {
1132
+ typeof t == "function" && t(r), r.cancelBubble || e(r);
1652
1133
  };
1653
1134
  }
1654
- function appendClass(vnode, str) {
1655
- vnode.data.staticClass = `${vnode.data.staticClass || ""} ${str}`.trim();
1656
- }
1657
- function wrap(wrapper, fn2) {
1658
- return (e) => {
1659
- if (typeof fn2 === "function") {
1660
- fn2(e);
1661
- }
1662
- if (!e.cancelBubble) {
1663
- wrapper(e);
1664
- }
1665
- };
1135
+ function yt(e, t) {
1136
+ return e.attrs.on[t] || e.type && e.type.listeners && e.componentOptions.listeners[t];
1666
1137
  }
1667
- function listener(vnode, key) {
1668
- return vnode.data.on[key] || vnode.componentOptions && vnode.componentOptions.listeners && vnode.componentOptions.listeners[key];
1138
+ function sn(e) {
1139
+ return e && e.type && (e.type === "fragment" || typeof e.type == "symbol");
1669
1140
  }
1670
- const __vue2_script$5 = {
1671
- functional: true,
1672
- render(h, context) {
1673
- context.children.filter((vnode) => !!vnode.tag).forEach((vnode, i) => {
1674
- vnode.data = Object.assign({ staticClass: void 0 }, vnode.data);
1675
- if (!vnode.data.on) {
1676
- vnode.data.on = {};
1677
- }
1678
- const isDropdownItem = vnode.data.staticClass && vnode.data.staticClass.match(/dropdown-item/);
1679
- const isDropdownDivider = vnode.data.staticClass && vnode.data.staticClass.match(/dropdown-divider/);
1680
- vnode.data.on.click = wrap((e) => {
1681
- context.parent.$emit("click-item", e, vnode);
1682
- }, listener(vnode, "click"));
1683
- vnode.data.on.blur = wrap((e) => {
1684
- context.parent.$emit("blur-item", e, vnode);
1685
- }, listener(vnode, "blur"));
1686
- if (vnode.tag.match(/^h\d$/)) {
1687
- appendClass(vnode, "dropdown-header");
1688
- } else if (vnode.tag === "hr" && !isDropdownDivider) {
1689
- vnode.tag = "div";
1690
- appendClass(vnode, "dropdown-divider");
1691
- } else if (!isDropdownItem && !isDropdownDivider) {
1692
- appendClass(vnode, "dropdown-item");
1693
- }
1694
- });
1695
- return context.children;
1696
- }
1697
- };
1698
- let __vue2_render, __vue2_staticRenderFns;
1699
- const __cssModules$5 = {};
1700
- var __component__$5 = /* @__PURE__ */ normalizeComponent(__vue2_script$5, __vue2_render, __vue2_staticRenderFns, false, __vue2_injectStyles$5, null, null, null);
1701
- function __vue2_injectStyles$5(context) {
1702
- for (let o in __cssModules$5) {
1703
- this[o] = __cssModules$5[o];
1141
+ function Bt(e) {
1142
+ for (const t of e) {
1143
+ if (sn(t))
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 = {});
1146
+ const r = t.props.class && t.props.class.match(/dropdown-item/), n = t.props.class && t.props.class.match(/dropdown-divider/);
1147
+ t.attrs.on.click = bt((o) => {
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");
1704
1152
  }
1153
+ return e;
1705
1154
  }
1706
- var DropdownMenuItems = /* @__PURE__ */ function() {
1707
- return __component__$5.exports;
1708
- }();
1709
- var render$4 = function() {
1710
- var _vm = this;
1711
- var _h = _vm.$createElement;
1712
- var _c = _vm._self._c || _h;
1713
- return _c("div", { staticClass: "dropdown-menu", class: {
1714
- "dropdown-menu-left": _vm.align === "left",
1715
- "dropdown-menu-right": _vm.align === "right",
1716
- "show": _vm.show
1717
- }, attrs: { "aria-labelledby": _vm.$attrs.id } }, [_c("dropdown-menu-items", [_vm._t("default")], 2)], 1);
1718
- };
1719
- var staticRenderFns$4 = [];
1720
- const __vue2_script$4 = {
1155
+ const ln = (e, t) => Nt("div", {}, Bt(t.slots.default())), pn = ln, fn = {
1721
1156
  name: "DropdownMenu",
1722
1157
  components: {
1723
- DropdownMenuItems
1158
+ DropdownMenuItems: pn
1724
1159
  },
1725
1160
  props: {
1726
1161
  align: {
1727
1162
  type: String,
1728
1163
  default: "left",
1729
- validate(value) {
1730
- return ["left", "right"].indexOf(value.toLowerCase()) !== -1;
1164
+ validate(e) {
1165
+ return ["left", "right"].indexOf(e.toLowerCase()) !== -1;
1731
1166
  }
1732
1167
  },
1733
1168
  show: Boolean
1734
1169
  }
1735
- };
1736
- const __cssModules$4 = {};
1737
- var __component__$4 = /* @__PURE__ */ normalizeComponent(__vue2_script$4, render$4, staticRenderFns$4, false, __vue2_injectStyles$4, null, null, null);
1738
- function __vue2_injectStyles$4(context) {
1739
- for (let o in __cssModules$4) {
1740
- this[o] = __cssModules$4[o];
1741
- }
1742
- }
1743
- var DropdownMenu = /* @__PURE__ */ function() {
1744
- return __component__$4.exports;
1745
- }();
1746
- var render$3 = function() {
1747
- var _vm = this;
1748
- var _h = _vm.$createElement;
1749
- var _c = _vm._self._c || _h;
1750
- return _c(_vm.is, _vm._b({ tag: "component", attrs: { "id": _vm.id, "aria-haspopup": "true", "aria-expanded": _vm.expanded, "type": _vm.is === "button" ? "button" : void 0 } }, "component", _vm.to ? { to: _vm.to } : { href: _vm.href }, false), [_vm._t("default")], 2);
1751
- };
1752
- var staticRenderFns$3 = [];
1753
- const __vue2_script$3 = {
1170
+ }, un = ["aria-labelledby"];
1171
+ function cn(e, t, r, n, o, i) {
1172
+ const a = te("dropdown-menu-items");
1173
+ return W(), Ue("div", {
1174
+ class: F(["dropdown-menu", {
1175
+ "dropdown-menu-left": r.align === "left",
1176
+ "dropdown-menu-right": r.align === "right",
1177
+ show: r.show
1178
+ }]),
1179
+ "aria-labelledby": e.$attrs.id
1180
+ }, [
1181
+ we(a, null, {
1182
+ default: B(() => [
1183
+ P(e.$slots, "default", {
1184
+ onClick: t[0] || (t[0] = (...l) => e.onItemClick && e.onItemClick(...l))
1185
+ })
1186
+ ]),
1187
+ _: 3
1188
+ })
1189
+ ], 10, un);
1190
+ }
1191
+ const dn = /* @__PURE__ */ fe(fn, [["render", cn]]), vn = {
1754
1192
  props: {
1755
1193
  expanded: {
1756
1194
  type: Boolean,
1757
- default: false
1195
+ default: !1
1758
1196
  },
1759
1197
  id: String,
1760
1198
  href: String,
@@ -1762,61 +1200,58 @@ const __vue2_script$3 = {
1762
1200
  },
1763
1201
  computed: {
1764
1202
  is() {
1765
- if (this.to) {
1766
- return "router-link";
1767
- }
1768
- if (this.href) {
1769
- return "a";
1770
- }
1771
- return "button";
1203
+ return this.to ? "router-link" : this.href ? "a" : "button";
1772
1204
  }
1773
1205
  }
1774
1206
  };
1775
- const __cssModules$3 = {};
1776
- var __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, render$3, staticRenderFns$3, false, __vue2_injectStyles$3, null, null, null);
1777
- function __vue2_injectStyles$3(context) {
1778
- for (let o in __cssModules$3) {
1779
- this[o] = __cssModules$3[o];
1780
- }
1781
- }
1782
- var BtnDropdownAction = /* @__PURE__ */ function() {
1783
- return __component__$3.exports;
1784
- }();
1785
- var DropdownHandler = {
1207
+ function hn(e, t, r, n, o, i) {
1208
+ return W(), ee(He(i.is), ge({ id: r.id }, r.to ? { to: r.to } : { href: r.href }, {
1209
+ "aria-haspopup": "true",
1210
+ "aria-expanded": r.expanded,
1211
+ type: i.is === "button" ? "button" : void 0
1212
+ }), {
1213
+ default: B(() => [
1214
+ P(e.$slots, "default")
1215
+ ]),
1216
+ _: 3
1217
+ }, 16, ["id", "aria-expanded", "type"]);
1218
+ }
1219
+ const mn = /* @__PURE__ */ fe(vn, [["render", hn]]), Dt = {
1786
1220
  components: {
1787
- BtnDropdownAction,
1788
- BtnGroup,
1789
- DropdownMenu
1221
+ BtnDropdownAction: mn,
1222
+ BtnGroup: an,
1223
+ DropdownMenu: dn
1790
1224
  },
1791
- extends: Btn,
1225
+ extends: _r,
1226
+ emits: ["click-toggle", "show", "hide", "toggle"],
1792
1227
  props: {
1793
1228
  align: {
1794
1229
  type: String,
1795
1230
  default: "left",
1796
- validate(value) {
1797
- return ["left", "right"].indexOf(value.toLowerCase()) !== -1;
1231
+ validate(e) {
1232
+ return ["left", "right"].indexOf(e.toLowerCase()) !== -1;
1798
1233
  }
1799
1234
  },
1800
1235
  animated: {
1801
1236
  type: Boolean,
1802
- default: true
1237
+ default: !0
1803
1238
  },
1804
1239
  buttonClass: [Object, String],
1805
1240
  caret: {
1806
1241
  type: Boolean,
1807
- default: true
1242
+ default: !0
1808
1243
  },
1809
1244
  dropup: {
1810
1245
  type: Boolean,
1811
- default: false
1246
+ default: !1
1812
1247
  },
1813
1248
  dropright: {
1814
1249
  type: Boolean,
1815
- default: false
1250
+ default: !1
1816
1251
  },
1817
1252
  dropleft: {
1818
1253
  type: Boolean,
1819
- default: false
1254
+ default: !1
1820
1255
  },
1821
1256
  height: String,
1822
1257
  href: String,
@@ -1828,11 +1263,11 @@ var DropdownHandler = {
1828
1263
  },
1829
1264
  rotate: {
1830
1265
  type: Boolean,
1831
- default: false
1266
+ default: !1
1832
1267
  },
1833
1268
  split: {
1834
1269
  type: Boolean,
1835
- default: false
1270
+ default: !1
1836
1271
  },
1837
1272
  to: [String, Object],
1838
1273
  type: {
@@ -1844,22 +1279,34 @@ var DropdownHandler = {
1844
1279
  data() {
1845
1280
  return {
1846
1281
  popper: null,
1847
- triggerAnimation: false,
1848
- expanded: false
1282
+ triggerAnimation: !1,
1283
+ expanded: !1
1849
1284
  };
1850
1285
  },
1851
1286
  computed: {
1287
+ scope() {
1288
+ return {
1289
+ placement: this.placement,
1290
+ variantClassPrefix: this.variantClassPrefix,
1291
+ sizeableClassPrefix: this.sizeableClassPrefix,
1292
+ classes: this.classes,
1293
+ actionClasses: this.actionClasses,
1294
+ toggleStyle: this.toggleStyle,
1295
+ toggleClasses: this.toggleClasses,
1296
+ focus: this.focus,
1297
+ queryFocusable: this.queryFocusable,
1298
+ isFocusable: this.isFocusable,
1299
+ toggle: this.toggle,
1300
+ show: this.show,
1301
+ hide: this.hide,
1302
+ onBlur: this.onBlur,
1303
+ onClickItem: this.onClickItem,
1304
+ onClickToggle: this.onClickToggle,
1305
+ expanded: this.expanded
1306
+ };
1307
+ },
1852
1308
  placement() {
1853
- if (this.dropup) {
1854
- return "top";
1855
- }
1856
- if (this.dropleft) {
1857
- return "left";
1858
- }
1859
- if (this.dropright) {
1860
- return "right";
1861
- }
1862
- return "bottom";
1309
+ return this.dropup ? "top" : this.dropleft ? "left" : this.dropright ? "right" : "bottom";
1863
1310
  },
1864
1311
  variantClassPrefix() {
1865
1312
  return "btn" + (this.outline ? "-outline" : "");
@@ -1869,22 +1316,22 @@ var DropdownHandler = {
1869
1316
  },
1870
1317
  classes() {
1871
1318
  return {
1872
- "dropdown": this.dropup && this.dropright && this.dropleft,
1873
- "dropup": this.dropup,
1874
- "dropright": this.dropright,
1875
- "dropleft": this.dropleft,
1319
+ dropdown: this.dropup && this.dropright && this.dropleft,
1320
+ dropup: this.dropup,
1321
+ dropright: this.dropright,
1322
+ dropleft: this.dropleft,
1876
1323
  "icon-only": !this.nav && !this.split && !!this.$slots.icon && !this.$slots.label,
1877
1324
  "hide-caret": !this.caret,
1878
- "expanded": this.expanded,
1325
+ expanded: this.expanded,
1879
1326
  "rotate-90": !this.nav && this.split && this.rotate && this.expanded
1880
1327
  };
1881
1328
  },
1882
1329
  actionClasses() {
1883
1330
  return Object.assign({
1884
- "btn": !this.nav,
1331
+ btn: !this.nav,
1885
1332
  [this.variantClass]: !this.nav && !!this.variant,
1886
1333
  [this.sizeableClass]: !!this.size
1887
- }, typeof this.buttonClass === "object" ? this.buttonClass : {
1334
+ }, typeof this.buttonClass == "object" ? this.buttonClass : {
1888
1335
  [this.buttonClass]: !!this.buttonClass
1889
1336
  });
1890
1337
  },
@@ -1896,21 +1343,21 @@ var DropdownHandler = {
1896
1343
  },
1897
1344
  toggleClasses() {
1898
1345
  return Object.assign({
1899
- "active": this.active,
1900
- "btn": !this.nav,
1346
+ active: this.active,
1347
+ btn: !this.nav,
1901
1348
  "btn-block": !!this.block,
1902
1349
  "nav-link": !!this.nav,
1903
1350
  "rotate-90": !this.split && this.rotate && this.expanded,
1904
- "dropdown-toggle": true,
1351
+ "dropdown-toggle": !0,
1905
1352
  "dropdown-toggle-split": !this.nav && this.split,
1906
1353
  [this.variantClass]: !this.nav && !!this.variant,
1907
1354
  [this.sizeableClass]: !!this.size
1908
- }, typeof this.buttonClass === "object" ? this.buttonClass : {
1355
+ }, typeof this.buttonClass == "object" ? this.buttonClass : {
1909
1356
  [this.buttonClass]: !!this.buttonClass
1910
1357
  });
1911
1358
  }
1912
1359
  },
1913
- beforeDestroy() {
1360
+ beforeUnmount() {
1914
1361
  this.popper && this.popper.destroy();
1915
1362
  },
1916
1363
  methods: {
@@ -1920,209 +1367,243 @@ var DropdownHandler = {
1920
1367
  queryFocusable() {
1921
1368
  return this.$el.querySelector(".dropdown-menu").querySelectorAll('label, input, select, textarea, [tabindex]:not([tabindex="-1"])');
1922
1369
  },
1923
- isFocusable(element) {
1924
- const nodes = this.queryFocusable();
1925
- for (let i in nodes) {
1926
- if (element === nodes[i]) {
1927
- return true;
1928
- }
1929
- }
1930
- return false;
1370
+ isFocusable(e) {
1371
+ const t = this.queryFocusable();
1372
+ for (let r in t)
1373
+ if (e === t[r])
1374
+ return !0;
1375
+ return !1;
1931
1376
  },
1932
1377
  toggle(e) {
1933
- !this.expanded ? this.show() : this.hide();
1378
+ this.expanded ? this.hide() : this.show();
1934
1379
  },
1935
1380
  show() {
1936
- this.expanded = true;
1937
- const target = this.$refs.split && this.$refs.split.$el || this.$el;
1938
- if (!this.nav && !this.popper) {
1939
- this.popper = createPopper(target, this.$refs.menu.$el, {
1940
- placement: `${this.placement}-${this.align === "left" ? "start" : "end"}`,
1941
- onFirstUpdate: () => {
1942
- this.triggerAnimation = this.animated;
1943
- },
1944
- modifiers: [{
1945
- name: "offset",
1946
- options: {
1947
- offset: [0, !this.nav ? this.offset : 1]
1948
- }
1949
- }]
1950
- });
1951
- } else if (this.popper) {
1952
- this.popper.update();
1953
- }
1381
+ this.expanded = !0;
1382
+ const e = this.$refs.split && this.$refs.split.$el || this.$el;
1383
+ !this.nav && !this.popper ? this.popper = Gr(e, this.$refs.menu.$el, {
1384
+ placement: `${this.placement}-${this.align === "left" ? "start" : "end"}`,
1385
+ onFirstUpdate: () => {
1386
+ this.triggerAnimation = this.animated;
1387
+ },
1388
+ modifiers: [{
1389
+ name: "offset",
1390
+ options: {
1391
+ offset: [0, this.nav ? 1 : this.offset]
1392
+ }
1393
+ }]
1394
+ }) : this.popper && this.popper.update();
1954
1395
  },
1955
1396
  hide() {
1956
- this.expanded = false;
1397
+ this.expanded = !1;
1957
1398
  },
1958
1399
  onBlur(e) {
1959
- if (!this.$el.contains(e.relatedTarget)) {
1960
- this.hide();
1961
- }
1400
+ this.$el.contains(e.relatedTarget) || this.hide();
1962
1401
  },
1963
1402
  onClickItem(e) {
1964
- if (!this.isFocusable(e.target)) {
1965
- this.hide();
1966
- }
1403
+ this.isFocusable(e.target) || this.hide();
1967
1404
  },
1968
1405
  onClickToggle(e) {
1969
- e.target.focus();
1970
- this.$emit("click-toggle", e);
1971
- if (!e.defaultPrevented) {
1972
- this.toggle();
1973
- }
1406
+ this.$emit("click-toggle", e), e.defaultPrevented || this.toggle();
1974
1407
  }
1975
1408
  },
1976
1409
  watch: {
1977
- expanded(value) {
1410
+ expanded(e) {
1978
1411
  this.$nextTick(() => {
1979
- this.$emit(value ? "show" : "hide");
1980
- this.$emit("toggle", value);
1412
+ this.$emit(e ? "show" : "hide"), this.$emit("toggle", e);
1981
1413
  });
1982
1414
  }
1983
1415
  }
1984
- };
1985
- var render$2 = function() {
1986
- var _vm = this;
1987
- var _h = _vm.$createElement;
1988
- var _c = _vm._self._c || _h;
1989
- return _c("btn-group", { staticClass: "btn-dropdown-split", class: _vm.classes, on: { "click": _vm.onClick } }, [!_vm.dropleft ? _vm._t("button", function() {
1990
- return [!_vm.dropleft ? _c("btn-dropdown-action", { ref: "button", class: _vm.actionClasses, attrs: { "id": _vm.$attrs.id, "expanded": _vm.expanded, "href": _vm.href, "to": _vm.to }, nativeOn: { "click": function($event) {
1991
- return function(e) {
1992
- return _vm.$emit("click", e);
1993
- }.apply(null, arguments);
1994
- } } }, [_vm._t("icon"), _vm._t("label", function() {
1995
- return [_vm._v(" " + _vm._s(_vm.label) + " ")];
1996
- })], 2) : _vm._e()];
1997
- }, null, this) : _vm._e(), _c("btn-group", { ref: "split" }, [_vm._t("split", function() {
1998
- return [_vm.split ? _c("button", { class: _vm.toggleClasses, attrs: { "id": _vm.$attrs.id, "type": "button", "aria-haspopup": "true", "aria-expanded": _vm.expanded }, on: { "blur": _vm.onBlur, "click": _vm.onClickToggle } }) : _vm._e()];
1999
- }, null, this), _c("dropdown-menu", { ref: "menu", class: { animated: _vm.triggerAnimation }, attrs: { "id": _vm.$attrs.id, "align": _vm.align, "show": _vm.expanded }, on: { "click-item": _vm.onClickItem, "blur-item": _vm.onBlur } }, [_vm._t("default")], 2)], 2), _vm.dropleft ? _vm._t("button", function() {
2000
- return [_vm.dropleft ? _c("btn-dropdown-action", { ref: "button", class: _vm.actionClasses, attrs: { "id": _vm.$attrs.id, "expanded": _vm.expanded, "href": _vm.href, "to": _vm.to }, nativeOn: { "click": function($event) {
2001
- return function(e) {
2002
- return _vm.$emit("click", e);
2003
- }.apply(null, arguments);
2004
- } } }, [_vm._t("icon"), _vm._t("label", function() {
2005
- return [_vm._v(" " + _vm._s(_vm.label) + " ")];
2006
- })], 2) : _vm._e()];
2007
- }, null, this) : _vm._e()], 2);
2008
- };
2009
- var staticRenderFns$2 = [];
2010
- const __vue2_script$2 = {
1416
+ }, gn = {
2011
1417
  mixins: [
2012
- DropdownHandler
1418
+ Dt
1419
+ ],
1420
+ emits: [
1421
+ "click"
2013
1422
  ]
2014
- };
2015
- const __cssModules$2 = {};
2016
- var __component__$2 = /* @__PURE__ */ normalizeComponent(__vue2_script$2, render$2, staticRenderFns$2, false, __vue2_injectStyles$2, null, null, null);
2017
- function __vue2_injectStyles$2(context) {
2018
- for (let o in __cssModules$2) {
2019
- this[o] = __cssModules$2[o];
2020
- }
2021
- }
2022
- var BtnDropdownSplit = /* @__PURE__ */ function() {
2023
- return __component__$2.exports;
2024
- }();
2025
- var render$1 = function() {
2026
- var _vm = this;
2027
- var _h = _vm.$createElement;
2028
- var _c = _vm._self._c || _h;
2029
- return _c("btn-group", { class: _vm.classes }, [_vm._t("button", function() {
2030
- return [_c("btn-dropdown-action", { ref: "button", class: _vm.toggleClasses, style: _vm.toggleStyle, attrs: { "id": _vm.$attrs.id, "expanded": _vm.expanded, "href": _vm.href, "to": _vm.to }, nativeOn: { "blur": function($event) {
2031
- return _vm.onBlur.apply(null, arguments);
2032
- }, "click": function($event) {
2033
- return _vm.onClickToggle.apply(null, arguments);
2034
- } } }, [_vm._t("icon"), _vm._t("label", function() {
2035
- return [_vm._v(" " + _vm._s(_vm.label) + " ")];
2036
- })], 2)];
2037
- }, null, this), _c("dropdown-menu", { ref: "menu", class: { animated: _vm.triggerAnimation }, attrs: { "id": _vm.$attrs.id, "align": _vm.align, "show": _vm.expanded }, on: { "blur-item": _vm.onBlur, "click-item": _vm.onClickItem } }, [_vm._t("default")], 2)], 2);
2038
- };
2039
- var staticRenderFns$1 = [];
2040
- const __vue2_script$1 = {
1423
+ }, bn = ["id", "aria-expanded"];
1424
+ function yn(e, t, r, n, o, i) {
1425
+ const a = te("btn-dropdown-action"), l = te("dropdown-menu"), s = te("btn-group");
1426
+ return W(), ee(s, {
1427
+ class: F([e.classes, "btn-dropdown-split"])
1428
+ }, {
1429
+ default: B(() => [
1430
+ e.dropleft ? de("", !0) : P(e.$slots, "button", ie(ge({ key: 0 }, e.scope)), () => [
1431
+ e.dropleft ? de("", !0) : (W(), ee(a, {
1432
+ key: 0,
1433
+ id: e.$attrs.id,
1434
+ ref: "button",
1435
+ expanded: e.expanded,
1436
+ href: e.href,
1437
+ to: e.to,
1438
+ class: F(e.actionClasses),
1439
+ onClick: t[0] || (t[0] = (f) => e.$emit("click", f))
1440
+ }, {
1441
+ default: B(() => [
1442
+ P(e.$slots, "icon"),
1443
+ P(e.$slots, "label", {}, () => [
1444
+ be(ye(e.label), 1)
1445
+ ])
1446
+ ]),
1447
+ _: 3
1448
+ }, 8, ["id", "expanded", "href", "to", "class"]))
1449
+ ]),
1450
+ we(s, { ref: "split" }, {
1451
+ default: B(() => [
1452
+ P(e.$slots, "split", ie(Re(e.scope)), () => [
1453
+ e.split ? (W(), Ue("button", {
1454
+ key: 0,
1455
+ id: e.$attrs.id,
1456
+ type: "button",
1457
+ "aria-haspopup": "true",
1458
+ "aria-expanded": e.expanded,
1459
+ class: F(e.toggleClasses),
1460
+ onBlur: t[1] || (t[1] = (...f) => e.onBlur && e.onBlur(...f)),
1461
+ onClick: t[2] || (t[2] = (...f) => e.onClickToggle && e.onClickToggle(...f))
1462
+ }, null, 42, bn)) : de("", !0)
1463
+ ]),
1464
+ we(l, {
1465
+ id: e.$attrs.id,
1466
+ ref: "menu",
1467
+ align: e.align,
1468
+ show: e.expanded,
1469
+ class: F({ animated: e.triggerAnimation }),
1470
+ onClickItem: e.onClickItem,
1471
+ onBlurItem: e.onBlur
1472
+ }, {
1473
+ default: B(() => [
1474
+ P(e.$slots, "default")
1475
+ ]),
1476
+ _: 3
1477
+ }, 8, ["id", "align", "show", "class", "onClickItem", "onBlurItem"])
1478
+ ]),
1479
+ _: 3
1480
+ }, 512),
1481
+ e.dropleft ? P(e.$slots, "button", ie(ge({ key: 1 }, e.scope)), () => [
1482
+ e.dropleft ? (W(), ee(a, {
1483
+ key: 0,
1484
+ id: e.$attrs.id,
1485
+ ref: "button",
1486
+ expanded: e.expanded,
1487
+ href: e.href,
1488
+ to: e.to,
1489
+ class: F(e.actionClasses),
1490
+ onClick: t[3] || (t[3] = (f) => e.$emit("click", f))
1491
+ }, {
1492
+ default: B(() => [
1493
+ P(e.$slots, "icon"),
1494
+ P(e.$slots, "label", {}, () => [
1495
+ be(ye(e.label), 1)
1496
+ ])
1497
+ ]),
1498
+ _: 3
1499
+ }, 8, ["id", "expanded", "href", "to", "class"])) : de("", !0)
1500
+ ]) : de("", !0)
1501
+ ]),
1502
+ _: 3
1503
+ }, 8, ["class"]);
1504
+ }
1505
+ const wn = /* @__PURE__ */ fe(gn, [["render", yn]]), On = {
2041
1506
  mixins: [
2042
- DropdownHandler
1507
+ Dt
2043
1508
  ]
2044
1509
  };
2045
- const __cssModules$1 = {};
2046
- var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, null, null, null);
2047
- function __vue2_injectStyles$1(context) {
2048
- for (let o in __cssModules$1) {
2049
- this[o] = __cssModules$1[o];
2050
- }
2051
- }
2052
- var BtnDropdownSingle = /* @__PURE__ */ function() {
2053
- return __component__$1.exports;
2054
- }();
2055
- var render = function() {
2056
- var this$1$1 = this;
2057
- var _vm = this;
2058
- var _h = _vm.$createElement;
2059
- var _c = _vm._self._c || _h;
2060
- return _c(_vm.$attrs.split === void 0 || !!_vm.$attrs.nav ? "btn-dropdown-single" : "btn-dropdown-split", _vm._b({ tag: "component", staticClass: "btn-dropdown", on: { "click": function() {
2061
- var ref;
2062
- var args = [], len = arguments.length;
2063
- while (len--)
2064
- args[len] = arguments[len];
2065
- return (ref = this$1$1).$emit.apply(ref, ["click"].concat(args));
2066
- }, "click-toggle": function() {
2067
- var ref;
2068
- var args = [], len = arguments.length;
2069
- while (len--)
2070
- args[len] = arguments[len];
2071
- return (ref = this$1$1).$emit.apply(ref, ["click-toggle"].concat(args));
2072
- }, "dropdown": function() {
2073
- var ref;
2074
- var args = [], len = arguments.length;
2075
- while (len--)
2076
- args[len] = arguments[len];
2077
- return (ref = this$1$1).$emit.apply(ref, ["dropdown"].concat(args));
2078
- }, "show": function() {
2079
- var ref;
2080
- var args = [], len = arguments.length;
2081
- while (len--)
2082
- args[len] = arguments[len];
2083
- return (ref = this$1$1).$emit.apply(ref, ["show"].concat(args));
2084
- }, "hide": function() {
2085
- var ref;
2086
- var args = [], len = arguments.length;
2087
- while (len--)
2088
- args[len] = arguments[len];
2089
- return (ref = this$1$1).$emit.apply(ref, ["hide"].concat(args));
2090
- }, "toggle": function() {
2091
- var ref;
2092
- var args = [], len = arguments.length;
2093
- while (len--)
2094
- args[len] = arguments[len];
2095
- return (ref = this$1$1).$emit.apply(ref, ["toggle"].concat(args));
2096
- } }, scopedSlots: _vm._u([{ key: "icon", fn: function() {
2097
- return [_vm._t("icon")];
2098
- }, proxy: true }, _vm.$attrs.label || this.$slots.label ? { key: "label", fn: function() {
2099
- return [_vm._t("label", function() {
2100
- return [_vm._v(" " + _vm._s(_vm.$attrs.label) + " ")];
2101
- })];
2102
- }, proxy: true } : null, { key: "button", fn: function(slot) {
2103
- return [_vm._t("button", null, null, slot)];
2104
- } }, { key: "split", fn: function(slot) {
2105
- return [_vm._t("split", null, null, slot)];
2106
- } }], null, true) }, "component", _vm.$attrs, false), [_vm._t("default")], 2);
2107
- };
2108
- var staticRenderFns = [];
2109
- var BtnDropdown_vue_vue_type_style_index_0_lang = "";
2110
- const __vue2_script = {
1510
+ function xn(e, t, r, n, o, i) {
1511
+ const a = te("btn-dropdown-action"), l = te("dropdown-menu"), s = te("btn-group");
1512
+ return W(), ee(s, {
1513
+ class: F(e.classes)
1514
+ }, {
1515
+ default: B(() => [
1516
+ P(e.$slots, "button", ie(Re(e.scope)), () => [
1517
+ we(a, {
1518
+ id: e.$attrs.id,
1519
+ ref: "button",
1520
+ expanded: e.expanded,
1521
+ href: e.href,
1522
+ to: e.to,
1523
+ style: Mt(e.toggleStyle),
1524
+ class: F(e.toggleClasses),
1525
+ onBlur: e.onBlur,
1526
+ onClick: e.onClickToggle
1527
+ }, {
1528
+ default: B(() => [
1529
+ P(e.$slots, "icon"),
1530
+ P(e.$slots, "label", {}, () => [
1531
+ be(ye(e.label), 1)
1532
+ ])
1533
+ ]),
1534
+ _: 3
1535
+ }, 8, ["id", "expanded", "href", "to", "style", "class", "onBlur", "onClick"])
1536
+ ]),
1537
+ we(l, {
1538
+ id: e.$attrs.id,
1539
+ ref: "menu",
1540
+ align: e.align,
1541
+ show: e.expanded,
1542
+ class: F({ animated: e.triggerAnimation }),
1543
+ onBlurItem: e.onBlur,
1544
+ onClickItem: e.onClickItem
1545
+ }, {
1546
+ default: B(() => [
1547
+ P(e.$slots, "default")
1548
+ ]),
1549
+ _: 3
1550
+ }, 8, ["id", "align", "show", "class", "onBlurItem", "onClickItem"])
1551
+ ]),
1552
+ _: 3
1553
+ }, 8, ["class"]);
1554
+ }
1555
+ const $n = /* @__PURE__ */ fe(On, [["render", xn]]);
1556
+ const Cn = {
2111
1557
  name: "BtnDropdown",
2112
1558
  components: {
2113
- BtnDropdownSplit,
2114
- BtnDropdownSingle
1559
+ BtnDropdownSplit: wn,
1560
+ BtnDropdownSingle: $n
2115
1561
  },
2116
- inheritAttrs: false
1562
+ inheritAttrs: !1,
1563
+ emits: [
1564
+ "click",
1565
+ "click-toggle",
1566
+ "dropdown",
1567
+ "show",
1568
+ "hide",
1569
+ "toggle"
1570
+ ]
1571
+ };
1572
+ function Pn(e, t, r, n, o, i) {
1573
+ 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
+ onClick: t[0] || (t[0] = (...a) => e.$emit("click", ...a)),
1575
+ onClickToggle: t[1] || (t[1] = (...a) => e.$emit("click-toggle", ...a)),
1576
+ onDropdown: t[2] || (t[2] = (...a) => e.$emit("dropdown", ...a)),
1577
+ onShow: t[3] || (t[3] = (...a) => e.$emit("show", ...a)),
1578
+ onHide: t[4] || (t[4] = (...a) => e.$emit("hide", ...a)),
1579
+ onToggle: t[5] || (t[5] = (...a) => e.$emit("toggle", ...a))
1580
+ }), Lt({
1581
+ icon: B(() => [
1582
+ P(e.$slots, "icon")
1583
+ ]),
1584
+ button: B((a) => [
1585
+ P(e.$slots, "button", ie(Re(a)))
1586
+ ]),
1587
+ split: B((a) => [
1588
+ P(e.$slots, "split", ie(Re(a)))
1589
+ ]),
1590
+ default: B(() => [
1591
+ P(e.$slots, "default")
1592
+ ]),
1593
+ _: 2
1594
+ }, [
1595
+ e.$attrs.label || e.$slots.label ? {
1596
+ name: "label",
1597
+ fn: B(() => [
1598
+ P(e.$slots, "label", {}, () => [
1599
+ be(ye(e.$attrs.label), 1)
1600
+ ])
1601
+ ]),
1602
+ key: "0"
1603
+ } : void 0
1604
+ ]), 1040);
1605
+ }
1606
+ const Sn = /* @__PURE__ */ fe(Cn, [["render", Pn]]);
1607
+ export {
1608
+ Sn as BtnDropdown
2117
1609
  };
2118
- const __cssModules = {};
2119
- var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles, null, null, null);
2120
- function __vue2_injectStyles(context) {
2121
- for (let o in __cssModules) {
2122
- this[o] = __cssModules[o];
2123
- }
2124
- }
2125
- var BtnDropdown = /* @__PURE__ */ function() {
2126
- return __component__.exports;
2127
- }();
2128
- export { BtnDropdown };