From dc70f366f4df04bf49b9a842ec6e995ef0216b0f Mon Sep 17 00:00:00 2001 From: Matt Smith Date: Sat, 30 Mar 2024 08:52:34 -0500 Subject: [PATCH] CR and size filters --- src/components/components.vue.es.js | 1264 +++++++++-------- src/components/components.vue.es.js.map | 2 +- .../CompendiumBrowserCreatures.vue | 18 +- 3 files changed, 643 insertions(+), 641 deletions(-) diff --git a/src/components/components.vue.es.js b/src/components/components.vue.es.js index ba45322..6a0d22a 100644 --- a/src/components/components.vue.es.js +++ b/src/components/components.vue.es.js @@ -1,17 +1,17 @@ -import { openBlock as re, createElementBlock as ie, normalizeClass as de, Fragment as ot, renderList as pt, createCommentVNode as se, toDisplayString as Ce, renderSlot as Be, toRefs as Me, ref as he, computed as K, onMounted as pa, onUnmounted as Ar, watch as ge, mergeProps as ua, createElementVNode as $, withModifiers as Vt, withKeys as Ja, createBlock as ur, Teleport as Dr, getCurrentInstance as Zt, nextTick as Yt, onBeforeUnmount as Nr, onUpdated as Br, resolveComponent as jt, withDirectives as Qa, vModelText as Mr, vModelSelect as Vr, createVNode as ft, createTextVNode as La, withCtx as Kt } from "../lib/vue.esm-browser.js"; -function jr(...e) { +import { openBlock as re, createElementBlock as ie, normalizeClass as de, Fragment as st, renderList as pt, createCommentVNode as oe, toDisplayString as Ce, renderSlot as Be, toRefs as Me, ref as he, computed as K, onMounted as pa, onUnmounted as Tr, watch as ge, mergeProps as ua, createElementVNode as $, withModifiers as Vt, withKeys as Ja, createBlock as ur, Teleport as Dr, getCurrentInstance as Zt, nextTick as Yt, onBeforeUnmount as Nr, onUpdated as Br, resolveComponent as Rt, withDirectives as Qa, vModelText as Mr, vModelSelect as Vr, createVNode as ft, createTextVNode as La, withCtx as Kt } from "../lib/vue.esm-browser.js"; +function Rr(...e) { return e.reduce((a, t) => a + t, ""); } function Za(e) { const a = e.uuid.replace(".Actor", ""), t = game.dnd5e.moduleArt.map.get(a); return (t == null ? void 0 : t.actor) ?? e.img; } -async function Rr(e = [], a = []) { +async function jr(e = [], a = []) { if (!e || !a || a.length < 1) return; let t = []; - for (let o of e) { - const m = await game.packs.get(o).getIndex({ fields: a }); + for (let s of e) { + const m = await game.packs.get(s).getIndex({ fields: a }); t = t.concat(m.contents); } return t; @@ -32,14 +32,14 @@ function Ir(e, a, t = "Actor") { } const ea = (e, a) => { const t = e.__vccOpts || e; - for (const [o, n] of a) - t[o] = n; + for (const [s, n] of a) + t[s] = n; return t; }, zr = { name: "Tabs", props: ["context", "actor", "group", "tabs", "flags"], setup() { - return { concat: jr }; + return { concat: Rr }; }, data() { return { @@ -63,15 +63,15 @@ const ea = (e, a) => { Object.values(this.tabs).forEach((t) => console.log(t)), console.log("Active", e), this.currentTab = (e == null ? void 0 : e.key) ?? "creatures", this.changeTab(!1); } }, Fr = ["data-group"], Ur = ["data-tab"], Hr = { key: 1 }; -function Wr(e, a, t, o, n, m) { +function Wr(e, a, t, s, n, m) { return re(), ie("nav", { class: de(`tabs tabs--${t.group}`), "data-group": t.group }, [ - (re(!0), ie(ot, null, pt(t.tabs, (l, d) => (re(), ie("span", { + (re(!0), ie(st, null, pt(t.tabs, (l, d) => (re(), ie("span", { key: "tab-" + t.group + "-" + d }, [ - l.hidden ? se("", !0) : (re(), ie("a", { + l.hidden ? oe("", !0) : (re(), ie("a", { key: 0, onClick: a[0] || (a[0] = (...p) => m.changeTab && m.changeTab(...p)), class: de(m.getTabClass(l, d)), @@ -79,9 +79,9 @@ function Wr(e, a, t, o, n, m) { }, [ l.icon ? (re(), ie("i", { key: 0, - class: de(o.concat("fas ", l.icon)) - }, null, 2)) : se("", !0), - l.hideLabel ? se("", !0) : (re(), ie("span", Hr, Ce(l.label), 1)) + class: de(s.concat("fas ", l.icon)) + }, null, 2)) : oe("", !0), + l.hideLabel ? oe("", !0) : (re(), ie("span", Hr, Ce(l.label), 1)) ], 10, Ur)) ]))), 128)) ], 10, Fr); @@ -90,7 +90,7 @@ const _r = /* @__PURE__ */ ea(zr, [["render", Wr]]), $r = { name: "Tab", props: ["context", "actor", "tab", "group", "classes"] }, Gr = ["data-group", "data-tab"]; -function Kr(e, a, t, o, n, m) { +function Kr(e, a, t, s, n, m) { return re(), ie("div", { class: de("tab " + t.tab.key + (t.tab.active ? " active" : "") + (t.classes ? " " + t.classes : "")), "data-group": t.group, @@ -103,13 +103,13 @@ const Xr = /* @__PURE__ */ ea($r, [["render", Kr]]), Yr = { name: "Stub", props: ["context"] }; -function Jr(e, a, t, o, n, m) { +function Jr(e, a, t, s, n, m) { return re(), ie("h1", null, [ Be(e.$slots, "default", {}, void 0, !0) ]); } const Qr = /* @__PURE__ */ ea(Yr, [["render", Jr], ["__scopeId", "data-v-ceecbcd3"]]); -function oa(e) { +function sa(e) { return [null, void 0, !1].indexOf(e) !== -1; } function Zr(e) { @@ -122,7 +122,7 @@ function cr(e) { var er = cr(function(e, a) { e.exports = /* @__PURE__ */ function() { var t = ["decimals", "thousand", "mark", "prefix", "suffix", "encoder", "decoder", "negativeBefore", "negative", "edit", "undo"]; - function o(g) { + function s(g) { return g.split("").reverse().join(""); } function n(g, w) { @@ -141,13 +141,13 @@ var er = cr(function(e, a) { function p(g, w) { return g = g.toString().split("e"), (+((g = (g = Math.round(+(g[0] + "e" + (g[1] ? +g[1] + w : w)))).toString().split("e"))[0] + "e" + (g[1] ? +g[1] - w : -w))).toFixed(w); } - function y(g, w, S, k, V, b, D, j, P, U, F, A) { - var J, X, N, H = A, ne = "", G = ""; - return b && (A = b(A)), !!d(A) && (g !== !1 && parseFloat(A.toFixed(g)) === 0 && (A = 0), A < 0 && (J = !0, A = Math.abs(A)), g !== !1 && (A = p(A, g)), (A = A.toString()).indexOf(".") !== -1 ? (N = (X = A.split("."))[0], S && (ne = S + X[1])) : N = A, w && (N = o(N).match(/.{1,3}/g), N = o(N.join(o(w)))), J && j && (G += j), k && (G += k), J && P && (G += P), G += N, G += ne, V && (G += V), U && (G = U(G, H)), G); + function y(g, w, S, k, V, b, D, R, P, U, F, T) { + var J, X, N, H = T, ne = "", G = ""; + return b && (T = b(T)), !!d(T) && (g !== !1 && parseFloat(T.toFixed(g)) === 0 && (T = 0), T < 0 && (J = !0, T = Math.abs(T)), g !== !1 && (T = p(T, g)), (T = T.toString()).indexOf(".") !== -1 ? (N = (X = T.split("."))[0], S && (ne = S + X[1])) : N = T, w && (N = s(N).match(/.{1,3}/g), N = s(N.join(s(w)))), J && R && (G += R), k && (G += k), J && P && (G += P), G += N, G += ne, V && (G += V), U && (G = U(G, H)), G); } - function v(g, w, S, k, V, b, D, j, P, U, F, A) { + function v(g, w, S, k, V, b, D, R, P, U, F, T) { var J, X = ""; - return F && (A = F(A)), !(!A || typeof A != "string") && (j && n(A, j) && (A = A.replace(j, ""), J = !0), k && n(A, k) && (A = A.replace(k, "")), P && n(A, P) && (A = A.replace(P, ""), J = !0), V && m(A, V) && (A = A.slice(0, -1 * V.length)), w && (A = A.split(w).join("")), S && (A = A.replace(S, ".")), J && (X += "-"), (X = (X += A).replace(/[^0-9\.\-.]/g, "")) !== "" && (X = Number(X), D && (X = D(X)), !!d(X) && X)); + return F && (T = F(T)), !(!T || typeof T != "string") && (R && n(T, R) && (T = T.replace(R, ""), J = !0), k && n(T, k) && (T = T.replace(k, "")), P && n(T, P) && (T = T.replace(P, ""), J = !0), V && m(T, V) && (T = T.slice(0, -1 * V.length)), w && (T = T.split(w).join("")), S && (T = T.replace(S, ".")), J && (X += "-"), (X = (X += T).replace(/[^0-9\.\-.]/g, "")) !== "" && (X = Number(X), D && (X = D(X)), !!d(X) && X)); } function x(g) { var w, S, k, V = {}; @@ -169,7 +169,7 @@ var er = cr(function(e, a) { } return l(V, "mark", "thousand"), l(V, "prefix", "negative"), l(V, "prefix", "negativeBefore"), V; } - function T(g, w, S) { + function A(g, w, S) { var k, V = []; for (k = 0; k < t.length; k += 1) V.push(g[t[k]]); @@ -179,129 +179,129 @@ var er = cr(function(e, a) { if (!(this instanceof E)) return new E(g); typeof g == "object" && (g = x(g), this.to = function(w) { - return T(g, y, w); + return A(g, y, w); }, this.from = function(w) { - return T(g, v, w); + return A(g, v, w); }); } return E; }(); }), en = Zr(cr(function(e, a) { (function(t) { - function o(s) { - return n(s) && typeof s.from == "function"; + function s(o) { + return n(o) && typeof o.from == "function"; } - function n(s) { - return typeof s == "object" && typeof s.to == "function"; + function n(o) { + return typeof o == "object" && typeof o.to == "function"; } - function m(s) { - s.parentElement.removeChild(s); + function m(o) { + o.parentElement.removeChild(o); } - function l(s) { - return s != null; + function l(o) { + return o != null; } - function d(s) { - s.preventDefault(); + function d(o) { + o.preventDefault(); } - function p(s) { - return s.filter(function(r) { + function p(o) { + return o.filter(function(r) { return !this[r] && (this[r] = !0); }, {}); } - function y(s, r) { - return Math.round(s / r) * r; + function y(o, r) { + return Math.round(o / r) * r; } - function v(s, r) { - var L = s.getBoundingClientRect(), z = s.ownerDocument, B = z.documentElement, W = b(z); + function v(o, r) { + var L = o.getBoundingClientRect(), z = o.ownerDocument, B = z.documentElement, W = b(z); return /webkit.*Chrome.*Mobile/i.test(navigator.userAgent) && (W.x = 0), r ? L.top + W.y - B.clientTop : L.left + W.x - B.clientLeft; } - function x(s) { - return typeof s == "number" && !isNaN(s) && isFinite(s); + function x(o) { + return typeof o == "number" && !isNaN(o) && isFinite(o); } - function T(s, r, L) { - L > 0 && (S(s, r), setTimeout(function() { - k(s, r); + function A(o, r, L) { + L > 0 && (S(o, r), setTimeout(function() { + k(o, r); }, L)); } - function E(s) { - return Math.max(Math.min(s, 100), 0); + function E(o) { + return Math.max(Math.min(o, 100), 0); } - function g(s) { - return Array.isArray(s) ? s : [s]; + function g(o) { + return Array.isArray(o) ? o : [o]; } - function w(s) { - var r = (s = String(s)).split("."); + function w(o) { + var r = (o = String(o)).split("."); return r.length > 1 ? r[1].length : 0; } - function S(s, r) { - s.classList && !/\s/.test(r) ? s.classList.add(r) : s.className += " " + r; + function S(o, r) { + o.classList && !/\s/.test(r) ? o.classList.add(r) : o.className += " " + r; } - function k(s, r) { - s.classList && !/\s/.test(r) ? s.classList.remove(r) : s.className = s.className.replace(new RegExp("(^|\\b)" + r.split(" ").join("|") + "(\\b|$)", "gi"), " "); + function k(o, r) { + o.classList && !/\s/.test(r) ? o.classList.remove(r) : o.className = o.className.replace(new RegExp("(^|\\b)" + r.split(" ").join("|") + "(\\b|$)", "gi"), " "); } - function V(s, r) { - return s.classList ? s.classList.contains(r) : new RegExp("\\b" + r + "\\b").test(s.className); + function V(o, r) { + return o.classList ? o.classList.contains(r) : new RegExp("\\b" + r + "\\b").test(o.className); } - function b(s) { - var r = window.pageXOffset !== void 0, L = (s.compatMode || "") === "CSS1Compat"; - return { x: r ? window.pageXOffset : L ? s.documentElement.scrollLeft : s.body.scrollLeft, y: r ? window.pageYOffset : L ? s.documentElement.scrollTop : s.body.scrollTop }; + function b(o) { + var r = window.pageXOffset !== void 0, L = (o.compatMode || "") === "CSS1Compat"; + return { x: r ? window.pageXOffset : L ? o.documentElement.scrollLeft : o.body.scrollLeft, y: r ? window.pageYOffset : L ? o.documentElement.scrollTop : o.body.scrollTop }; } function D() { return window.navigator.pointerEnabled ? { start: "pointerdown", move: "pointermove", end: "pointerup" } : window.navigator.msPointerEnabled ? { start: "MSPointerDown", move: "MSPointerMove", end: "MSPointerUp" } : { start: "mousedown touchstart", move: "mousemove touchmove", end: "mouseup touchend" }; } - function j() { - var s = !1; + function R() { + var o = !1; try { var r = Object.defineProperty({}, "passive", { get: function() { - s = !0; + o = !0; } }); window.addEventListener("test", null, r); } catch { } - return s; + return o; } function P() { return window.CSS && CSS.supports && CSS.supports("touch-action", "none"); } - function U(s, r) { - return 100 / (r - s); + function U(o, r) { + return 100 / (r - o); } - function F(s, r, L) { - return 100 * r / (s[L + 1] - s[L]); + function F(o, r, L) { + return 100 * r / (o[L + 1] - o[L]); } - function A(s, r) { - return F(s, s[0] < 0 ? r + Math.abs(s[0]) : r - s[0], 0); + function T(o, r) { + return F(o, o[0] < 0 ? r + Math.abs(o[0]) : r - o[0], 0); } - function J(s, r) { - return r * (s[1] - s[0]) / 100 + s[0]; + function J(o, r) { + return r * (o[1] - o[0]) / 100 + o[0]; } - function X(s, r) { - for (var L = 1; s >= r[L]; ) + function X(o, r) { + for (var L = 1; o >= r[L]; ) L += 1; return L; } - function N(s, r, L) { - if (L >= s.slice(-1)[0]) + function N(o, r, L) { + if (L >= o.slice(-1)[0]) return 100; - var z = X(L, s), B = s[z - 1], W = s[z], ue = r[z - 1], xe = r[z]; - return ue + A([B, W], L) / U(ue, xe); + var z = X(L, o), B = o[z - 1], W = o[z], ue = r[z - 1], xe = r[z]; + return ue + T([B, W], L) / U(ue, xe); } - function H(s, r, L) { + function H(o, r, L) { if (L >= 100) - return s.slice(-1)[0]; - var z = X(L, r), B = s[z - 1], W = s[z], ue = r[z - 1]; + return o.slice(-1)[0]; + var z = X(L, r), B = o[z - 1], W = o[z], ue = r[z - 1]; return J([B, W], (L - ue) * U(ue, r[z])); } - function ne(s, r, L, z) { + function ne(o, r, L, z) { if (z === 100) return z; - var B = X(z, s), W = s[B - 1], ue = s[B]; - return L ? z - W > (ue - W) / 2 ? ue : W : r[B - 1] ? s[B - 1] + y(z - s[B - 1], r[B - 1]) : z; + var B = X(z, o), W = o[B - 1], ue = o[B]; + return L ? z - W > (ue - W) / 2 ? ue : W : r[B - 1] ? o[B - 1] + y(z - o[B - 1], r[B - 1]) : z; } var G, ee; t.PipsMode = void 0, (ee = t.PipsMode || (t.PipsMode = {})).Range = "range", ee.Steps = "steps", ee.Positions = "positions", ee.Count = "count", ee.Values = "values", t.PipsType = void 0, (G = t.PipsType || (t.PipsType = {}))[G.None = -1] = "None", G[G.NoValue = 0] = "NoValue", G[G.LargeValue = 1] = "LargeValue", G[G.SmallValue = 2] = "SmallValue"; - var oe = function() { - function s(r, L, z) { + var se = function() { + function o(r, L, z) { var B; this.xPct = [], this.xVal = [], this.xSteps = [], this.xNumSteps = [], this.xHighestCompleteStep = [], this.xSteps = [z || !1], this.xNumSteps = [!1], this.snap = L; var W = []; @@ -314,11 +314,11 @@ var er = cr(function(e, a) { for (this.xNumSteps = this.xSteps.slice(0), B = 0; B < this.xNumSteps.length; B++) this.handleStepPoint(B, this.xNumSteps[B]); } - return s.prototype.getDistance = function(r) { + return o.prototype.getDistance = function(r) { for (var L = [], z = 0; z < this.xNumSteps.length - 1; z++) L[z] = F(this.xVal, r, z); return L; - }, s.prototype.getAbsoluteDistance = function(r, L, z) { + }, o.prototype.getAbsoluteDistance = function(r, L, z) { var B, W = 0; if (r < this.xPct[this.xPct.length - 1]) for (; r > this.xPct[W + 1]; ) @@ -330,33 +330,33 @@ var er = cr(function(e, a) { for (B = z ? (r - this.xPct[W]) / (this.xPct[W + 1] - this.xPct[W]) : (this.xPct[W + 1] - r) / (this.xPct[W + 1] - this.xPct[W]); xe > 0; ) ye = this.xPct[W + 1 + Q] - this.xPct[W + Q], L[W + Q] * ue + 100 - 100 * B > 100 ? (Ve = ye * B, ue = (xe - 100 * B) / L[W + Q], B = 1) : (Ve = L[W + Q] * ye / 100 * ue, ue = 0), z ? (me -= Ve, this.xPct.length + Q >= 1 && Q--) : (me += Ve, this.xPct.length - Q >= 1 && Q++), xe = L[W + Q] * ue; return r + me; - }, s.prototype.toStepping = function(r) { + }, o.prototype.toStepping = function(r) { return r = N(this.xVal, this.xPct, r); - }, s.prototype.fromStepping = function(r) { + }, o.prototype.fromStepping = function(r) { return H(this.xVal, this.xPct, r); - }, s.prototype.getStep = function(r) { + }, o.prototype.getStep = function(r) { return r = ne(this.xPct, this.xSteps, this.snap, r); - }, s.prototype.getDefaultStep = function(r, L, z) { + }, o.prototype.getDefaultStep = function(r, L, z) { var B = X(r, this.xPct); return (r === 100 || L && r === this.xPct[B - 1]) && (B = Math.max(B - 1, 1)), (this.xVal[B] - this.xVal[B - 1]) / z; - }, s.prototype.getNearbySteps = function(r) { + }, o.prototype.getNearbySteps = function(r) { var L = X(r, this.xPct); return { stepBefore: { startValue: this.xVal[L - 2], step: this.xNumSteps[L - 2], highestStep: this.xHighestCompleteStep[L - 2] }, thisStep: { startValue: this.xVal[L - 1], step: this.xNumSteps[L - 1], highestStep: this.xHighestCompleteStep[L - 1] }, stepAfter: { startValue: this.xVal[L], step: this.xNumSteps[L], highestStep: this.xHighestCompleteStep[L] } }; - }, s.prototype.countStepDecimals = function() { + }, o.prototype.countStepDecimals = function() { var r = this.xNumSteps.map(w); return Math.max.apply(null, r); - }, s.prototype.hasNoSize = function() { + }, o.prototype.hasNoSize = function() { return this.xVal[0] === this.xVal[this.xVal.length - 1]; - }, s.prototype.convert = function(r) { + }, o.prototype.convert = function(r) { return this.getStep(this.toStepping(r)); - }, s.prototype.handleEntryPoint = function(r, L) { + }, o.prototype.handleEntryPoint = function(r, L) { var z; if (!x(z = r === "min" ? 0 : r === "max" ? 100 : parseFloat(r)) || !x(L[0])) throw new Error("noUiSlider: 'range' value isn't numeric."); this.xPct.push(z), this.xVal.push(L[0]); var B = Number(L[1]); z ? this.xSteps.push(!isNaN(B) && B) : isNaN(B) || (this.xSteps[0] = B), this.xHighestCompleteStep.push(0); - }, s.prototype.handleStepPoint = function(r, L) { + }, o.prototype.handleStepPoint = function(r, L) { if (L) if (this.xVal[r] !== this.xVal[r + 1]) { this.xSteps[r] = F([this.xVal[r], this.xVal[r + 1]], L, 0) / U(this.xPct[r], this.xPct[r + 1]); @@ -364,198 +364,198 @@ var er = cr(function(e, a) { this.xHighestCompleteStep[r] = W; } else this.xSteps[r] = this.xHighestCompleteStep[r] = this.xVal[r]; - }, s; - }(), Ae = { to: function(s) { - return s === void 0 ? "" : s.toFixed(2); + }, o; + }(), Te = { to: function(o) { + return o === void 0 ? "" : o.toFixed(2); }, from: Number }, Y = { target: "target", base: "base", origin: "origin", handle: "handle", handleLower: "handle-lower", handleUpper: "handle-upper", touchArea: "touch-area", horizontal: "horizontal", vertical: "vertical", background: "background", connect: "connect", connects: "connects", ltr: "ltr", rtl: "rtl", textDirectionLtr: "txt-dir-ltr", textDirectionRtl: "txt-dir-rtl", draggable: "draggable", drag: "state-drag", tap: "state-tap", active: "active", tooltip: "tooltip", pips: "pips", pipsHorizontal: "pips-horizontal", pipsVertical: "pips-vertical", marker: "marker", markerHorizontal: "marker-horizontal", markerVertical: "marker-vertical", markerNormal: "marker-normal", markerLarge: "marker-large", markerSub: "marker-sub", value: "value", valueHorizontal: "value-horizontal", valueVertical: "value-vertical", valueNormal: "value-normal", valueLarge: "value-large", valueSub: "value-sub" }, Z = { tooltips: ".__tooltips", aria: ".__aria" }; - function te(s, r) { + function te(o, r) { if (!x(r)) throw new Error("noUiSlider: 'step' is not numeric."); - s.singleStep = r; + o.singleStep = r; } - function pe(s, r) { + function pe(o, r) { if (!x(r)) throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric."); - s.keyboardPageMultiplier = r; + o.keyboardPageMultiplier = r; } - function Le(s, r) { + function Le(o, r) { if (!x(r)) throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric."); - s.keyboardMultiplier = r; + o.keyboardMultiplier = r; } - function ce(s, r) { + function ce(o, r) { if (!x(r)) throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric."); - s.keyboardDefaultStep = r; + o.keyboardDefaultStep = r; } - function _(s, r) { + function _(o, r) { if (typeof r != "object" || Array.isArray(r)) throw new Error("noUiSlider: 'range' is not an object."); if (r.min === void 0 || r.max === void 0) throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'."); - s.spectrum = new oe(r, s.snap || !1, s.singleStep); + o.spectrum = new se(r, o.snap || !1, o.singleStep); } - function h(s, r) { + function h(o, r) { if (r = g(r), !Array.isArray(r) || !r.length) throw new Error("noUiSlider: 'start' option is incorrect."); - s.handles = r.length, s.start = r; + o.handles = r.length, o.start = r; } - function R(s, r) { + function j(o, r) { if (typeof r != "boolean") throw new Error("noUiSlider: 'snap' option must be a boolean."); - s.snap = r; + o.snap = r; } - function be(s, r) { + function be(o, r) { if (typeof r != "boolean") throw new Error("noUiSlider: 'animate' option must be a boolean."); - s.animate = r; + o.animate = r; } - function je(s, r) { + function Re(o, r) { if (typeof r != "number") throw new Error("noUiSlider: 'animationDuration' option must be a number."); - s.animationDuration = r; + o.animationDuration = r; } - function gt(s, r) { + function gt(o, r) { var L, z = [!1]; if (r === "lower" ? r = [!0, !1] : r === "upper" && (r = [!1, !0]), r === !0 || r === !1) { - for (L = 1; L < s.handles; L++) + for (L = 1; L < o.handles; L++) z.push(r); z.push(!1); } else { - if (!Array.isArray(r) || !r.length || r.length !== s.handles + 1) + if (!Array.isArray(r) || !r.length || r.length !== o.handles + 1) throw new Error("noUiSlider: 'connect' option doesn't match handle count."); z = r; } - s.connect = z; + o.connect = z; } - function bt(s, r) { + function bt(o, r) { switch (r) { case "horizontal": - s.ort = 0; + o.ort = 0; break; case "vertical": - s.ort = 1; + o.ort = 1; break; default: throw new Error("noUiSlider: 'orientation' option is invalid."); } } - function Ke(s, r) { + function Ke(o, r) { if (!x(r)) throw new Error("noUiSlider: 'margin' option must be numeric."); - r !== 0 && (s.margin = s.spectrum.getDistance(r)); + r !== 0 && (o.margin = o.spectrum.getDistance(r)); } - function kt(s, r) { + function kt(o, r) { if (!x(r)) throw new Error("noUiSlider: 'limit' option must be numeric."); - if (s.limit = s.spectrum.getDistance(r), !s.limit || s.handles < 2) + if (o.limit = o.spectrum.getDistance(r), !o.limit || o.handles < 2) throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles."); } - function Ft(s, r) { + function Ft(o, r) { var L; if (!x(r) && !Array.isArray(r)) throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers."); if (Array.isArray(r) && r.length !== 2 && !x(r[0]) && !x(r[1])) throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers."); if (r !== 0) { - for (Array.isArray(r) || (r = [r, r]), s.padding = [s.spectrum.getDistance(r[0]), s.spectrum.getDistance(r[1])], L = 0; L < s.spectrum.xNumSteps.length - 1; L++) - if (s.padding[0][L] < 0 || s.padding[1][L] < 0) + for (Array.isArray(r) || (r = [r, r]), o.padding = [o.spectrum.getDistance(r[0]), o.spectrum.getDistance(r[1])], L = 0; L < o.spectrum.xNumSteps.length - 1; L++) + if (o.padding[0][L] < 0 || o.padding[1][L] < 0) throw new Error("noUiSlider: 'padding' option must be a positive number(s)."); - var z = r[0] + r[1], B = s.spectrum.xVal[0]; - if (z / (s.spectrum.xVal[s.spectrum.xVal.length - 1] - B) > 1) + var z = r[0] + r[1], B = o.spectrum.xVal[0]; + if (z / (o.spectrum.xVal[o.spectrum.xVal.length - 1] - B) > 1) throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range."); } } - function Qe(s, r) { + function Qe(o, r) { switch (r) { case "ltr": - s.dir = 0; + o.dir = 0; break; case "rtl": - s.dir = 1; + o.dir = 1; break; default: throw new Error("noUiSlider: 'direction' option was not recognized."); } } - function Pt(s, r) { + function Pt(o, r) { if (typeof r != "string") throw new Error("noUiSlider: 'behaviour' must be a string containing options."); var L = r.indexOf("tap") >= 0, z = r.indexOf("drag") >= 0, B = r.indexOf("fixed") >= 0, W = r.indexOf("snap") >= 0, ue = r.indexOf("hover") >= 0, xe = r.indexOf("unconstrained") >= 0, ye = r.indexOf("drag-all") >= 0, Ve = r.indexOf("smooth-steps") >= 0; if (B) { - if (s.handles !== 2) + if (o.handles !== 2) throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles"); - Ke(s, s.start[1] - s.start[0]); + Ke(o, o.start[1] - o.start[0]); } - if (xe && (s.margin || s.limit)) + if (xe && (o.margin || o.limit)) throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit"); - s.events = { tap: L || W, drag: z, dragAll: ye, smoothSteps: Ve, fixed: B, snap: W, hover: ue, unconstrained: xe }; + o.events = { tap: L || W, drag: z, dragAll: ye, smoothSteps: Ve, fixed: B, snap: W, hover: ue, unconstrained: xe }; } - function Ze(s, r) { + function Ze(o, r) { if (r !== !1) if (r === !0 || n(r)) { - s.tooltips = []; - for (var L = 0; L < s.handles; L++) - s.tooltips.push(r); + o.tooltips = []; + for (var L = 0; L < o.handles; L++) + o.tooltips.push(r); } else { - if ((r = g(r)).length !== s.handles) + if ((r = g(r)).length !== o.handles) throw new Error("noUiSlider: must pass a formatter for all handles."); r.forEach(function(z) { if (typeof z != "boolean" && !n(z)) throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'."); - }), s.tooltips = r; + }), o.tooltips = r; } } - function _e(s, r) { - if (r.length !== s.handles) + function _e(o, r) { + if (r.length !== o.handles) throw new Error("noUiSlider: must pass a attributes for all handles."); - s.handleAttributes = r; + o.handleAttributes = r; } - function qe(s, r) { + function qe(o, r) { if (!n(r)) throw new Error("noUiSlider: 'ariaFormat' requires 'to' method."); - s.ariaFormat = r; + o.ariaFormat = r; } - function ze(s, r) { - if (!o(r)) + function ze(o, r) { + if (!s(r)) throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods."); - s.format = r; + o.format = r; } - function Xe(s, r) { + function Xe(o, r) { if (typeof r != "boolean") throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean."); - s.keyboardSupport = r; + o.keyboardSupport = r; } - function yt(s, r) { - s.documentElement = r; + function yt(o, r) { + o.documentElement = r; } - function Ct(s, r) { + function Ct(o, r) { if (typeof r != "string" && r !== !1) throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`."); - s.cssPrefix = r; + o.cssPrefix = r; } - function Ie(s, r) { + function Ie(o, r) { if (typeof r != "object") throw new Error("noUiSlider: 'cssClasses' must be an object."); - typeof s.cssPrefix == "string" ? (s.cssClasses = {}, Object.keys(r).forEach(function(L) { - s.cssClasses[L] = s.cssPrefix + r[L]; - })) : s.cssClasses = r; + typeof o.cssPrefix == "string" ? (o.cssClasses = {}, Object.keys(r).forEach(function(L) { + o.cssClasses[L] = o.cssPrefix + r[L]; + })) : o.cssClasses = r; } - function ct(s) { - var r = { margin: null, limit: null, padding: null, animate: !0, animationDuration: 300, ariaFormat: Ae, format: Ae }, L = { step: { r: !1, t: te }, keyboardPageMultiplier: { r: !1, t: pe }, keyboardMultiplier: { r: !1, t: Le }, keyboardDefaultStep: { r: !1, t: ce }, start: { r: !0, t: h }, connect: { r: !0, t: gt }, direction: { r: !0, t: Qe }, snap: { r: !1, t: R }, animate: { r: !1, t: be }, animationDuration: { r: !1, t: je }, range: { r: !0, t: _ }, orientation: { r: !1, t: bt }, margin: { r: !1, t: Ke }, limit: { r: !1, t: kt }, padding: { r: !1, t: Ft }, behaviour: { r: !0, t: Pt }, ariaFormat: { r: !1, t: qe }, format: { r: !1, t: ze }, tooltips: { r: !1, t: Ze }, keyboardSupport: { r: !0, t: Xe }, documentElement: { r: !1, t: yt }, cssPrefix: { r: !0, t: Ct }, cssClasses: { r: !0, t: Ie }, handleAttributes: { r: !1, t: _e } }, z = { connect: !1, direction: "ltr", behaviour: "tap", orientation: "horizontal", keyboardSupport: !0, cssPrefix: "noUi-", cssClasses: Y, keyboardPageMultiplier: 5, keyboardMultiplier: 1, keyboardDefaultStep: 10 }; - s.format && !s.ariaFormat && (s.ariaFormat = s.format), Object.keys(L).forEach(function(ye) { - if (l(s[ye]) || z[ye] !== void 0) - L[ye].t(r, l(s[ye]) ? s[ye] : z[ye]); + function ct(o) { + var r = { margin: null, limit: null, padding: null, animate: !0, animationDuration: 300, ariaFormat: Te, format: Te }, L = { step: { r: !1, t: te }, keyboardPageMultiplier: { r: !1, t: pe }, keyboardMultiplier: { r: !1, t: Le }, keyboardDefaultStep: { r: !1, t: ce }, start: { r: !0, t: h }, connect: { r: !0, t: gt }, direction: { r: !0, t: Qe }, snap: { r: !1, t: j }, animate: { r: !1, t: be }, animationDuration: { r: !1, t: Re }, range: { r: !0, t: _ }, orientation: { r: !1, t: bt }, margin: { r: !1, t: Ke }, limit: { r: !1, t: kt }, padding: { r: !1, t: Ft }, behaviour: { r: !0, t: Pt }, ariaFormat: { r: !1, t: qe }, format: { r: !1, t: ze }, tooltips: { r: !1, t: Ze }, keyboardSupport: { r: !0, t: Xe }, documentElement: { r: !1, t: yt }, cssPrefix: { r: !0, t: Ct }, cssClasses: { r: !0, t: Ie }, handleAttributes: { r: !1, t: _e } }, z = { connect: !1, direction: "ltr", behaviour: "tap", orientation: "horizontal", keyboardSupport: !0, cssPrefix: "noUi-", cssClasses: Y, keyboardPageMultiplier: 5, keyboardMultiplier: 1, keyboardDefaultStep: 10 }; + o.format && !o.ariaFormat && (o.ariaFormat = o.format), Object.keys(L).forEach(function(ye) { + if (l(o[ye]) || z[ye] !== void 0) + L[ye].t(r, l(o[ye]) ? o[ye] : z[ye]); else if (L[ye].r) throw new Error("noUiSlider: '" + ye + "' is required."); - }), r.pips = s.pips; + }), r.pips = o.pips; var B = document.createElement("div"), W = B.style.msTransform !== void 0, ue = B.style.transform !== void 0; r.transformRule = ue ? "transform" : W ? "msTransform" : "webkitTransform"; var xe = [["left", "top"], ["right", "bottom"]]; return r.style = xe[r.dir][r.ort], r; } - function et(s, r, L) { - var z, B, W, ue, xe, ye = D(), Ve = P() && j(), me = s, Q = r.spectrum, $e = [], we = [], Ne = [], Fe = 0, Ue = {}, at = s.ownerDocument, Tt = r.documentElement || at.documentElement, wt = at.body, ga = at.dir === "rtl" || r.ort === 1 ? 0 : 100; + function et(o, r, L) { + var z, B, W, ue, xe, ye = D(), Ve = P() && R(), me = o, Q = r.spectrum, $e = [], we = [], Ne = [], Fe = 0, Ue = {}, at = o.ownerDocument, At = r.documentElement || at.documentElement, wt = at.body, ga = at.dir === "rtl" || r.ort === 1 ? 0 : 100; function He(i, c) { var f = at.createElement("div"); return c && S(f, c), i.appendChild(f), f; @@ -598,7 +598,7 @@ var er = cr(function(e, a) { i && m(i); }), xe = null); } - function At() { + function Tt() { Ht(), xe = B.map(wa), Oa("update" + Z.tooltips, function(i, c, f) { if (xe && r.tooltips && xe[c] !== !1) { var O = i[c]; @@ -641,24 +641,24 @@ var er = cr(function(e, a) { return (f = p(f.slice().sort(function(Ee, ve) { return Ee - ve; })))[0] !== q && (f.unshift(q), ae = !0), f[f.length - 1] !== M && (f.push(M), I = !0), f.forEach(function(Ee, ve) { - var Oe, fe, De, Re, Te, $a, ka, Ga, Ka, Xa, Pa = Ee, Mt = f[ve + 1], Ya = i.mode === t.PipsMode.Steps; + var Oe, fe, De, je, Ae, $a, ka, Ga, Ka, Xa, Pa = Ee, Mt = f[ve + 1], Ya = i.mode === t.PipsMode.Steps; for (Ya && (Oe = Q.xNumSteps[ve]), Oe || (Oe = Mt - Pa), Mt === void 0 && (Mt = Pa), Oe = Math.max(Oe, 1e-7), fe = Pa; fe <= Mt; fe = c(fe, Oe)) { - for (Ga = (Te = (Re = Q.toStepping(fe)) - Pe) / (i.density || 1), Xa = Te / (Ka = Math.round(Ga)), De = 1; De <= Ka; De += 1) + for (Ga = (Ae = (je = Q.toStepping(fe)) - Pe) / (i.density || 1), Xa = Ae / (Ka = Math.round(Ga)), De = 1; De <= Ka; De += 1) O[($a = Pe + De * Xa).toFixed(5)] = [Q.fromStepping($a), 0]; - ka = f.indexOf(fe) > -1 ? t.PipsType.LargeValue : Ya ? t.PipsType.SmallValue : t.PipsType.NoValue, !ve && ae && fe !== Mt && (ka = 0), fe === Mt && I || (O[Re.toFixed(5)] = [fe, ka]), Pe = Re; + ka = f.indexOf(fe) > -1 ? t.PipsType.LargeValue : Ya ? t.PipsType.SmallValue : t.PipsType.NoValue, !ve && ae && fe !== Mt && (ka = 0), fe === Mt && I || (O[je.toFixed(5)] = [fe, ka]), Pe = je; } }), O; } function Sa(i, c, f) { var O, q, M = at.createElement("div"), ae = ((O = {})[t.PipsType.None] = "", O[t.PipsType.NoValue] = r.cssClasses.valueNormal, O[t.PipsType.LargeValue] = r.cssClasses.valueLarge, O[t.PipsType.SmallValue] = r.cssClasses.valueSub, O), I = ((q = {})[t.PipsType.None] = "", q[t.PipsType.NoValue] = r.cssClasses.markerNormal, q[t.PipsType.LargeValue] = r.cssClasses.markerLarge, q[t.PipsType.SmallValue] = r.cssClasses.markerSub, q), Pe = [r.cssClasses.valueHorizontal, r.cssClasses.valueVertical], Ee = [r.cssClasses.markerHorizontal, r.cssClasses.markerVertical]; function ve(fe, De) { - var Re = De === r.cssClasses.value, Te = Re ? ae : I; - return De + " " + (Re ? Pe : Ee)[r.ort] + " " + Te[fe]; + var je = De === r.cssClasses.value, Ae = je ? ae : I; + return De + " " + (je ? Pe : Ee)[r.ort] + " " + Ae[fe]; } - function Oe(fe, De, Re) { - if ((Re = c ? c(De, Re) : Re) !== t.PipsType.None) { - var Te = He(M, !1); - Te.className = ve(Re, r.cssClasses.marker), Te.style[r.style] = fe + "%", Re > t.PipsType.NoValue && ((Te = He(M, !1)).className = ve(Re, r.cssClasses.value), Te.setAttribute("data-value", String(De)), Te.style[r.style] = fe + "%", Te.innerHTML = String(f.to(De))); + function Oe(fe, De, je) { + if ((je = c ? c(De, je) : je) !== t.PipsType.None) { + var Ae = He(M, !1); + Ae.className = ve(je, r.cssClasses.marker), Ae.style[r.style] = fe + "%", je > t.PipsType.NoValue && ((Ae = He(M, !1)).className = ve(je, r.cssClasses.value), Ae.setAttribute("data-value", String(De)), Ae.style[r.style] = fe + "%", Ae.innerHTML = String(f.to(De))); } } return S(M, r.cssClasses.pips), S(M, r.ort === 0 ? r.cssClasses.pipsHorizontal : r.cssClasses.pipsVertical), Object.keys(i).forEach(function(fe) { @@ -735,7 +735,7 @@ var er = cr(function(e, a) { } function $t(i, c) { c.handle && (k(c.handle, r.cssClasses.active), Fe -= 1), c.listeners.forEach(function(f) { - Tt.removeEventListener(f[0], f[1]); + At.removeEventListener(f[0], f[1]); }), Fe === 0 && (k(me, r.cssClasses.drag), Ea(), i.cursor && (wt.style.cursor = "", wt.removeEventListener("selectstart", d))), r.events.smoothSteps && (c.handleNumbers.forEach(function(f) { Ot(f, we[f], !0, !0, !1, !1); }), c.handleNumbers.forEach(function(f) { @@ -748,7 +748,7 @@ var er = cr(function(e, a) { if (!c.handleNumbers.some(Ut)) { var f; c.handleNumbers.length === 1 && (f = B[c.handleNumbers[0]].children[0], Fe += 1, S(f, r.cssClasses.active)), i.stopPropagation(); - var O = [], q = C(ye.move, Tt, Ia, { target: i.target, handle: f, connect: c.connect, listeners: O, startCalcPoint: i.calcPoint, baseSize: u(), pageOffset: i.pageOffset, handleNumbers: c.handleNumbers, buttonsProperty: i.buttons, locations: we.slice() }), M = C(ye.end, Tt, $t, { target: i.target, handle: f, listeners: O, doNotReject: !0, handleNumbers: c.handleNumbers }), ae = C("mouseout", Tt, ra, { target: i.target, handle: f, listeners: O, doNotReject: !0, handleNumbers: c.handleNumbers }); + var O = [], q = C(ye.move, At, Ia, { target: i.target, handle: f, connect: c.connect, listeners: O, startCalcPoint: i.calcPoint, baseSize: u(), pageOffset: i.pageOffset, handleNumbers: c.handleNumbers, buttonsProperty: i.buttons, locations: we.slice() }), M = C(ye.end, At, $t, { target: i.target, handle: f, listeners: O, doNotReject: !0, handleNumbers: c.handleNumbers }), ae = C("mouseout", At, ra, { target: i.target, handle: f, listeners: O, doNotReject: !0, handleNumbers: c.handleNumbers }); O.push.apply(O, q.concat(M, ae)), i.cursor && (wt.style.cursor = getComputedStyle(i.target).cursor, B.length > 1 && S(me, r.cssClasses.drag), wt.addEventListener("selectstart", d, !1)), c.handleNumbers.forEach(function(I) { ke("start", I); }); @@ -757,7 +757,7 @@ var er = cr(function(e, a) { function br(i) { i.stopPropagation(); var c = Se(i.calcPoint), f = lt(c); - f !== !1 && (r.events.snap || T(me, r.cssClasses.tap, r.animationDuration), Ot(f, c, !0, !0), Ea(), ke("slide", f, !0), ke("update", f, !0), r.events.snap ? Bt(i, { handleNumbers: [f] }) : (ke("change", f, !0), ke("set", f, !0))); + f !== !1 && (r.events.snap || A(me, r.cssClasses.tap, r.animationDuration), Ot(f, c, !0, !0), Ea(), ke("slide", f, !0), ke("update", f, !0), r.events.snap ? Bt(i, { handleNumbers: [f] }) : (ke("change", f, !0), ke("set", f, !0))); } function yr(i) { var c = Se(i.calcPoint), f = Q.getStep(c), O = Q.fromStepping(f); @@ -776,10 +776,10 @@ var er = cr(function(e, a) { if (!(ve || Oe || fe || De)) return !0; if (i.preventDefault(), Oe || ve) { - var Re = ve ? 0 : 1, Te = _a(c)[Re]; - if (Te === null) + var je = ve ? 0 : 1, Ae = _a(c)[je]; + if (Ae === null) return !1; - Te === !1 && (Te = Q.getDefaultStep(we[c], ve, r.keyboardDefaultStep)), Te *= Ee || Pe ? r.keyboardPageMultiplier : r.keyboardMultiplier, Te = Math.max(Te, 1e-7), Te *= ve ? -1 : 1, ae = $e[c] + Te; + Ae === !1 && (Ae = Q.getDefaultStep(we[c], ve, r.keyboardDefaultStep)), Ae *= Ee || Pe ? r.keyboardPageMultiplier : r.keyboardMultiplier, Ae = Math.max(Ae, 1e-7), Ae *= ve ? -1 : 1, ae = $e[c] + Ae; } else ae = De ? r.spectrum.xVal[r.spectrum.xVal.length - 1] : r.spectrum.xVal[0]; return Ot(c, Q.toStepping(ae), !0, !0), ke("slide", c), ke("update", c), ke("change", c), ke("set", c), !1; @@ -870,7 +870,7 @@ var er = cr(function(e, a) { } function ia(i, c, f) { var O = g(i), q = we[0] === void 0; - c = c === void 0 || c, r.animate && !q && T(me, r.cssClasses.tap, r.animationDuration), Ne.forEach(function(I) { + c = c === void 0 || c, r.animate && !q && A(me, r.cssClasses.tap, r.animationDuration), Ne.forEach(function(I) { Ot(I, Ha(O[I], I), !0, !1, f); }); var M = Ne.length === 1 ? 0 : 1; @@ -928,12 +928,12 @@ var er = cr(function(e, a) { var q = ct(L); O.forEach(function(M) { i[M] !== void 0 && (r[M] = q[M]); - }), Q = q.spectrum, r.margin = q.margin, r.limit = q.limit, r.padding = q.padding, r.pips ? Nt(r.pips) : dt(), r.tooltips ? At() : Ht(), we = [], ia(l(i.start) ? i.start : f, c); + }), Q = q.spectrum, r.margin = q.margin, r.limit = q.limit, r.padding = q.padding, r.pips ? Nt(r.pips) : dt(), r.tooltips ? Tt() : Ht(), we = [], ia(l(i.start) ? i.start : f, c); } - function Tr() { - z = Ye(me), ya(r.connect, z), Sr(r.events), ia(r.start), r.pips && Nt(r.pips), r.tooltips && At(), Wt(); + function Ar() { + z = Ye(me), ya(r.connect, z), Sr(r.events), ia(r.start), r.pips && Nt(r.pips), r.tooltips && Tt(), Wt(); } - Tr(); + Ar(); var la = { destroy: Pr, steps: Cr, on: Oa, off: Gt, get: Wa, set: ia, setHandle: kr, reset: Er, __moveHandles: function(i, c, f) { za(i, c, we, f); }, options: L, updateOptions: Lr, target: me, removePips: dt, removeTooltips: Ht, getPositions: function() { @@ -945,15 +945,15 @@ var er = cr(function(e, a) { }, pips: Nt }; return la; } - function tt(s, r) { - if (!s || !s.nodeName) - throw new Error("noUiSlider: create requires a single element, got: " + s); - if (s.noUiSlider) + function tt(o, r) { + if (!o || !o.nodeName) + throw new Error("noUiSlider: create requires a single element, got: " + o); + if (o.noUiSlider) throw new Error("noUiSlider: Slider was already initialized."); - var L = et(s, ct(r), r); - return s.noUiSlider = L, L; + var L = et(o, ct(r), r); + return o.noUiSlider = L, L; } - var Lt = { __spectrum: oe, cssClasses: Y, create: tt }; + var Lt = { __spectrum: se, cssClasses: Y, create: tt }; t.create = tt, t.cssClasses = Y, t.default = Lt, Object.defineProperty(t, "__esModule", { value: !0 }); })(a); })); @@ -961,89 +961,89 @@ function tr(e, a) { if (!Array.isArray(e) || !Array.isArray(a)) return !1; const t = a.slice().sort(); - return e.length === a.length && e.slice().sort().every(function(o, n) { - return o === t[n]; + return e.length === a.length && e.slice().sort().every(function(s, n) { + return s === t[n]; }); } -var Ta = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide", "drag", "update", "change", "set", "end"], props: { value: { validator: function(e) { +var Aa = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide", "drag", "update", "change", "set", "end"], props: { value: { validator: function(e) { return (a) => typeof a == "number" || a instanceof Array || a == null || a === !1; }, required: !1 }, modelValue: { validator: function(e) { return (a) => typeof a == "number" || a instanceof Array || a == null || a === !1; }, required: !1 }, id: { type: [String, Number], required: !1 }, disabled: { type: Boolean, required: !1, default: !1 }, min: { type: Number, required: !1, default: 0 }, max: { type: Number, required: !1, default: 100 }, step: { type: Number, required: !1, default: 1 }, orientation: { type: String, required: !1, default: "horizontal" }, direction: { type: String, required: !1, default: "ltr" }, tooltips: { type: Boolean, required: !1, default: !0 }, options: { type: Object, required: !1, default: () => ({}) }, merge: { type: Number, required: !1, default: -1 }, format: { type: [Object, Function, Boolean], required: !1, default: null }, classes: { type: Object, required: !1, default: () => ({}) }, showTooltip: { type: String, required: !1, default: "always" }, tooltipPosition: { type: String, required: !1, default: null }, lazy: { type: Boolean, required: !1, default: !0 }, ariaLabelledby: { type: String, required: !1, default: void 0 }, aria: { required: !1, type: Object, default: () => ({}) } }, setup(e, a) { const t = function(l, d, p) { const { value: y, modelValue: v, min: x } = Me(l); - let T = v && v.value !== void 0 ? v : y; - const E = he(T.value); - if (oa(T.value) && (T = he(x.value)), Array.isArray(T.value) && T.value.length == 0) + let A = v && v.value !== void 0 ? v : y; + const E = he(A.value); + if (sa(A.value) && (A = he(x.value)), Array.isArray(A.value) && A.value.length == 0) throw new Error("Slider v-model must not be an empty array"); - return { value: T, initialValue: E }; - }(e), o = function(l, d, p) { - const { classes: y, showTooltip: v, tooltipPosition: x, orientation: T } = Me(l), E = K(() => ({ target: "slider-target", focused: "slider-focused", tooltipFocus: "slider-tooltip-focus", tooltipDrag: "slider-tooltip-drag", ltr: "slider-ltr", rtl: "slider-rtl", horizontal: "slider-horizontal", vertical: "slider-vertical", textDirectionRtl: "slider-txt-dir-rtl", textDirectionLtr: "slider-txt-dir-ltr", base: "slider-base", connects: "slider-connects", connect: "slider-connect", origin: "slider-origin", handle: "slider-handle", handleLower: "slider-handle-lower", handleUpper: "slider-handle-upper", touchArea: "slider-touch-area", tooltip: "slider-tooltip", tooltipTop: "slider-tooltip-top", tooltipBottom: "slider-tooltip-bottom", tooltipLeft: "slider-tooltip-left", tooltipRight: "slider-tooltip-right", tooltipHidden: "slider-tooltip-hidden", active: "slider-active", draggable: "slider-draggable", tap: "slider-state-tap", drag: "slider-state-drag", pips: "slider-pips", pipsHorizontal: "slider-pips-horizontal", pipsVertical: "slider-pips-vertical", marker: "slider-marker", markerHorizontal: "slider-marker-horizontal", markerVertical: "slider-marker-vertical", markerNormal: "slider-marker-normal", markerLarge: "slider-marker-large", markerSub: "slider-marker-sub", value: "slider-value", valueHorizontal: "slider-value-horizontal", valueVertical: "slider-value-vertical", valueNormal: "slider-value-normal", valueLarge: "slider-value-large", valueSub: "slider-value-sub", ...y.value })); + return { value: A, initialValue: E }; + }(e), s = function(l, d, p) { + const { classes: y, showTooltip: v, tooltipPosition: x, orientation: A } = Me(l), E = K(() => ({ target: "slider-target", focused: "slider-focused", tooltipFocus: "slider-tooltip-focus", tooltipDrag: "slider-tooltip-drag", ltr: "slider-ltr", rtl: "slider-rtl", horizontal: "slider-horizontal", vertical: "slider-vertical", textDirectionRtl: "slider-txt-dir-rtl", textDirectionLtr: "slider-txt-dir-ltr", base: "slider-base", connects: "slider-connects", connect: "slider-connect", origin: "slider-origin", handle: "slider-handle", handleLower: "slider-handle-lower", handleUpper: "slider-handle-upper", touchArea: "slider-touch-area", tooltip: "slider-tooltip", tooltipTop: "slider-tooltip-top", tooltipBottom: "slider-tooltip-bottom", tooltipLeft: "slider-tooltip-left", tooltipRight: "slider-tooltip-right", tooltipHidden: "slider-tooltip-hidden", active: "slider-active", draggable: "slider-draggable", tap: "slider-state-tap", drag: "slider-state-drag", pips: "slider-pips", pipsHorizontal: "slider-pips-horizontal", pipsVertical: "slider-pips-vertical", marker: "slider-marker", markerHorizontal: "slider-marker-horizontal", markerVertical: "slider-marker-vertical", markerNormal: "slider-marker-normal", markerLarge: "slider-marker-large", markerSub: "slider-marker-sub", value: "slider-value", valueHorizontal: "slider-value-horizontal", valueVertical: "slider-value-vertical", valueNormal: "slider-value-normal", valueLarge: "slider-value-large", valueSub: "slider-value-sub", ...y.value })); return { classList: K(() => { const g = { ...E.value }; return Object.keys(g).forEach((w) => { g[w] = Array.isArray(g[w]) ? g[w].filter((S) => S !== null).join(" ") : g[w]; - }), v.value !== "always" && (g.target += ` ${v.value === "drag" ? g.tooltipDrag : g.tooltipFocus}`), T.value === "horizontal" && (g.tooltip += x.value === "bottom" ? ` ${g.tooltipBottom}` : ` ${g.tooltipTop}`), T.value === "vertical" && (g.tooltip += x.value === "right" ? ` ${g.tooltipRight}` : ` ${g.tooltipLeft}`), g; + }), v.value !== "always" && (g.target += ` ${v.value === "drag" ? g.tooltipDrag : g.tooltipFocus}`), A.value === "horizontal" && (g.tooltip += x.value === "bottom" ? ` ${g.tooltipBottom}` : ` ${g.tooltipTop}`), A.value === "vertical" && (g.tooltip += x.value === "right" ? ` ${g.tooltipRight}` : ` ${g.tooltipLeft}`), g; }) }; }(e), n = function(l, d, p) { - const { format: y, step: v } = Me(l), x = p.value, T = p.classList, E = K(() => y && y.value ? typeof y.value == "function" ? { to: y.value } : er({ ...y.value }) : er({ decimals: v.value >= 0 ? 0 : 2 })), g = K(() => Array.isArray(x.value) ? x.value.map((w) => E.value) : E.value); + const { format: y, step: v } = Me(l), x = p.value, A = p.classList, E = K(() => y && y.value ? typeof y.value == "function" ? { to: y.value } : er({ ...y.value }) : er({ decimals: v.value >= 0 ? 0 : 2 })), g = K(() => Array.isArray(x.value) ? x.value.map((w) => E.value) : E.value); return { tooltipFormat: E, tooltipsFormat: g, tooltipsMerge: (w, S, k) => { - var V = getComputedStyle(w).direction === "rtl", b = w.noUiSlider.options.direction === "rtl", D = w.noUiSlider.options.orientation === "vertical", j = w.noUiSlider.getTooltips(), P = w.noUiSlider.getOrigins(); - j.forEach(function(U, F) { + var V = getComputedStyle(w).direction === "rtl", b = w.noUiSlider.options.direction === "rtl", D = w.noUiSlider.options.orientation === "vertical", R = w.noUiSlider.getTooltips(), P = w.noUiSlider.getOrigins(); + R.forEach(function(U, F) { U && P[F].appendChild(U); - }), w.noUiSlider.on("update", function(U, F, A, J, X) { + }), w.noUiSlider.on("update", function(U, F, T, J, X) { var N = [[]], H = [[]], ne = [[]], G = 0; - j[0] && (N[0][0] = 0, H[0][0] = X[0], ne[0][0] = E.value.to(parseFloat(U[0]))); + R[0] && (N[0][0] = 0, H[0][0] = X[0], ne[0][0] = E.value.to(parseFloat(U[0]))); for (var ee = 1; ee < U.length; ee++) - (!j[ee] || U[ee] - U[ee - 1] > S) && (N[++G] = [], ne[G] = [], H[G] = []), j[ee] && (N[G].push(ee), ne[G].push(E.value.to(parseFloat(U[ee]))), H[G].push(X[ee])); - N.forEach(function(oe, Ae) { - for (var Y = oe.length, Z = 0; Z < Y; Z++) { - var te = oe[Z]; + (!R[ee] || U[ee] - U[ee - 1] > S) && (N[++G] = [], ne[G] = [], H[G] = []), R[ee] && (N[G].push(ee), ne[G].push(E.value.to(parseFloat(U[ee]))), H[G].push(X[ee])); + N.forEach(function(se, Te) { + for (var Y = se.length, Z = 0; Z < Y; Z++) { + var te = se[Z]; if (Z === Y - 1) { var pe = 0; - H[Ae].forEach(function(h) { + H[Te].forEach(function(h) { pe += 1e3 - h; }); - var Le = D ? "bottom" : "right", ce = b ? 0 : Y - 1, _ = 1e3 - H[Ae][ce]; - pe = (V && !D ? 100 : 0) + pe / Y - _, j[te].innerHTML = ne[Ae].join(k), j[te].style.display = "block", j[te].style[Le] = pe + "%", T.value.tooltipHidden.split(" ").forEach((h) => { - j[te].classList.contains(h) && j[te].classList.remove(h); + var Le = D ? "bottom" : "right", ce = b ? 0 : Y - 1, _ = 1e3 - H[Te][ce]; + pe = (V && !D ? 100 : 0) + pe / Y - _, R[te].innerHTML = ne[Te].join(k), R[te].style.display = "block", R[te].style[Le] = pe + "%", A.value.tooltipHidden.split(" ").forEach((h) => { + R[te].classList.contains(h) && R[te].classList.remove(h); }); } else - j[te].style.display = "none", T.value.tooltipHidden.split(" ").forEach((h) => { - j[te].classList.add(h); + R[te].style.display = "none", A.value.tooltipHidden.split(" ").forEach((h) => { + R[te].classList.add(h); }); } }); }); } }; - }(e, 0, { value: t.value, classList: o.classList }), m = function(l, d, p) { - const { orientation: y, direction: v, tooltips: x, step: T, min: E, max: g, merge: w, id: S, disabled: k, options: V, classes: b, format: D, lazy: j, ariaLabelledby: P, aria: U } = Me(l), F = p.value, A = p.initialValue, J = p.tooltipsFormat, X = p.tooltipsMerge, N = p.tooltipFormat, H = p.classList, ne = he(null), G = he(null), ee = he(!1), oe = K(() => { - let h = { cssPrefix: "", cssClasses: H.value, orientation: y.value, direction: v.value, tooltips: !!x.value && J.value, connect: "lower", start: oa(F.value) ? E.value : F.value, range: { min: E.value, max: g.value } }; - if (T.value > 0 && (h.step = T.value), Array.isArray(F.value) && (h.connect = !0), P && P.value || U && Object.keys(U.value).length) { - let R = Array.isArray(F.value) ? F.value : [F.value]; - h.handleAttributes = R.map((be) => Object.assign({}, U.value, P && P.value ? { "aria-labelledby": P.value } : {})); + }(e, 0, { value: t.value, classList: s.classList }), m = function(l, d, p) { + const { orientation: y, direction: v, tooltips: x, step: A, min: E, max: g, merge: w, id: S, disabled: k, options: V, classes: b, format: D, lazy: R, ariaLabelledby: P, aria: U } = Me(l), F = p.value, T = p.initialValue, J = p.tooltipsFormat, X = p.tooltipsMerge, N = p.tooltipFormat, H = p.classList, ne = he(null), G = he(null), ee = he(!1), se = K(() => { + let h = { cssPrefix: "", cssClasses: H.value, orientation: y.value, direction: v.value, tooltips: !!x.value && J.value, connect: "lower", start: sa(F.value) ? E.value : F.value, range: { min: E.value, max: g.value } }; + if (A.value > 0 && (h.step = A.value), Array.isArray(F.value) && (h.connect = !0), P && P.value || U && Object.keys(U.value).length) { + let j = Array.isArray(F.value) ? F.value : [F.value]; + h.handleAttributes = j.map((be) => Object.assign({}, U.value, P && P.value ? { "aria-labelledby": P.value } : {})); } return D.value && (h.ariaFormat = N.value), h; - }), Ae = K(() => { + }), Te = K(() => { let h = { id: S && S.value ? S.value : void 0 }; return k.value && (h.disabled = !0), h; }), Y = K(() => Array.isArray(F.value)), Z = () => { let h = G.value.get(); - return Array.isArray(h) ? h.map((R) => parseFloat(R)) : parseFloat(h); + return Array.isArray(h) ? h.map((j) => parseFloat(j)) : parseFloat(h); }, te = function(h) { - let R = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1]; - G.value.set(h, R); + let j = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1]; + G.value.set(h, j); }, pe = (h) => { d.emit("input", h), d.emit("update:modelValue", h), d.emit("update", h); }, Le = () => { - G.value = en.create(ne.value, Object.assign({}, oe.value, V.value)), x.value && Y.value && w.value >= 0 && X(ne.value, w.value, " - "), G.value.on("set", () => { + G.value = en.create(ne.value, Object.assign({}, se.value, V.value)), x.value && Y.value && w.value >= 0 && X(ne.value, w.value, " - "), G.value.on("set", () => { const h = Z(); - d.emit("change", h), d.emit("set", h), j.value && pe(h); + d.emit("change", h), d.emit("set", h), R.value && pe(h); }), G.value.on("update", () => { if (!ee.value) return; const h = Z(); - Y.value && tr(F.value, h) || !Y.value && F.value == h ? d.emit("update", h) : j.value || pe(h); + Y.value && tr(F.value, h) || !Y.value && F.value == h ? d.emit("update", h) : R.value || pe(h); }), G.value.on("start", () => { d.emit("start", Z()); }), G.value.on("end", () => { @@ -1054,51 +1054,51 @@ var Ta = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide d.emit("drag", Z()); }), ne.value.querySelectorAll("[data-handle]").forEach((h) => { h.onblur = () => { - ne.value && H.value.focused.split(" ").forEach((R) => { - ne.value.classList.remove(R); + ne.value && H.value.focused.split(" ").forEach((j) => { + ne.value.classList.remove(j); }); }, h.onfocus = () => { - H.value.focused.split(" ").forEach((R) => { - ne.value.classList.add(R); + H.value.focused.split(" ").forEach((j) => { + ne.value.classList.add(j); }); }; }), ee.value = !0; }, ce = () => { G.value.off(), G.value.destroy(), G.value = null; - }, _ = (h, R) => { + }, _ = (h, j) => { ee.value = !1, ce(), Le(); }; - return pa(Le), Ar(ce), ge(Y, _, { immediate: !1 }), ge(E, _, { immediate: !1 }), ge(g, _, { immediate: !1 }), ge(T, _, { immediate: !1 }), ge(y, _, { immediate: !1 }), ge(v, _, { immediate: !1 }), ge(x, _, { immediate: !1 }), ge(w, _, { immediate: !1 }), ge(D, _, { immediate: !1, deep: !0 }), ge(V, _, { immediate: !1, deep: !0 }), ge(b, _, { immediate: !1, deep: !0 }), ge(F, (h, R) => { - R && (typeof R == "object" && typeof h == "object" && h && Object.keys(R) > Object.keys(h) || typeof R == "object" && typeof h != "object" || oa(h)) && _(); + return pa(Le), Tr(ce), ge(Y, _, { immediate: !1 }), ge(E, _, { immediate: !1 }), ge(g, _, { immediate: !1 }), ge(A, _, { immediate: !1 }), ge(y, _, { immediate: !1 }), ge(v, _, { immediate: !1 }), ge(x, _, { immediate: !1 }), ge(w, _, { immediate: !1 }), ge(D, _, { immediate: !1, deep: !0 }), ge(V, _, { immediate: !1, deep: !0 }), ge(b, _, { immediate: !1, deep: !0 }), ge(F, (h, j) => { + j && (typeof j == "object" && typeof h == "object" && h && Object.keys(j) > Object.keys(h) || typeof j == "object" && typeof h != "object" || sa(h)) && _(); }, { immediate: !1 }), ge(F, (h) => { - if (oa(h)) + if (sa(h)) return void te(E.value, !1); - let R = Z(); - Y.value && !Array.isArray(R) && (R = [R]), (Y.value && !tr(h, R) || !Y.value && h != R) && te(h, !1); - }, { deep: !0 }), { slider: ne, slider$: G, isRange: Y, sliderProps: Ae, init: Le, destroy: ce, refresh: _, update: te, reset: () => { - pe(A.value); + let j = Z(); + Y.value && !Array.isArray(j) && (j = [j]), (Y.value && !tr(h, j) || !Y.value && h != j) && te(h, !1); + }, { deep: !0 }), { slider: ne, slider$: G, isRange: Y, sliderProps: Te, init: Le, destroy: ce, refresh: _, update: te, reset: () => { + pe(T.value); } }; - }(e, a, { value: t.value, initialValue: t.initialValue, tooltipFormat: n.tooltipFormat, tooltipsFormat: n.tooltipsFormat, tooltipsMerge: n.tooltipsMerge, classList: o.classList }); - return { ...o, ...n, ...m }; + }(e, a, { value: t.value, initialValue: t.initialValue, tooltipFormat: n.tooltipFormat, tooltipsFormat: n.tooltipsFormat, tooltipsMerge: n.tooltipsMerge, classList: s.classList }); + return { ...s, ...n, ...m }; } }; -Ta.render = function(e, a, t, o, n, m) { +Aa.render = function(e, a, t, s, n, m) { return re(), ie("div", ua(e.sliderProps, { ref: "slider" }), null, 16); -}, Ta.__file = "src/Slider.vue"; +}, Aa.__file = "src/Slider.vue"; function rt(e) { return [null, void 0].indexOf(e) !== -1; } function tn(e, a, t) { - const { object: o, valueProp: n, mode: m } = Me(e), l = Zt().proxy, d = t.iv, p = (x, T = !0) => { + const { object: s, valueProp: n, mode: m } = Me(e), l = Zt().proxy, d = t.iv, p = (x, A = !0) => { d.value = v(x); const E = y(x); - a.emit("change", E, l), T && (a.emit("input", E), a.emit("update:modelValue", E)); - }, y = (x) => o.value || rt(x) ? x : Array.isArray(x) ? x.map((T) => T[n.value]) : x[n.value], v = (x) => rt(x) ? m.value === "single" ? {} : [] : x; + a.emit("change", E, l), A && (a.emit("input", E), a.emit("update:modelValue", E)); + }, y = (x) => s.value || rt(x) ? x : Array.isArray(x) ? x.map((A) => A[n.value]) : x[n.value], v = (x) => rt(x) ? m.value === "single" ? {} : [] : x; return { update: p }; } function an(e, a) { - const { value: t, modelValue: o, mode: n, valueProp: m } = Me(e), l = he(n.value !== "single" ? [] : {}), d = K(() => o && o.value !== void 0 ? o.value : t.value), p = K(() => n.value === "single" ? l.value[m.value] : l.value.map((v) => v[m.value])), y = K(() => n.value !== "single" ? l.value.map((v) => v[m.value]).join(",") : l.value[m.value]); + const { value: t, modelValue: s, mode: n, valueProp: m } = Me(e), l = he(n.value !== "single" ? [] : {}), d = K(() => s && s.value !== void 0 ? s.value : t.value), p = K(() => n.value === "single" ? l.value[m.value] : l.value.map((v) => v[m.value])), y = K(() => n.value !== "single" ? l.value.map((v) => v[m.value]).join(",") : l.value[m.value]); return { iv: l, internalValue: l, @@ -1109,25 +1109,25 @@ function an(e, a) { }; } function rn(e, a, t) { - const { regex: o } = Me(e), n = Zt().proxy, m = t.isOpen, l = t.open, d = he(null), p = () => { + const { regex: s } = Me(e), n = Zt().proxy, m = t.isOpen, l = t.open, d = he(null), p = () => { d.value = ""; - }, y = (T) => { - d.value = T.target.value; - }, v = (T) => { - if (o && o.value) { - let E = o.value; - typeof E == "string" && (E = new RegExp(E)), T.key.match(E) || T.preventDefault(); + }, y = (A) => { + d.value = A.target.value; + }, v = (A) => { + if (s && s.value) { + let E = s.value; + typeof E == "string" && (E = new RegExp(E)), A.key.match(E) || A.preventDefault(); } - }, x = (T) => { - if (o && o.value) { - let g = (T.clipboardData || /* istanbul ignore next */ - window.clipboardData).getData("Text"), w = o.value; - typeof w == "string" && (w = new RegExp(w)), g.split("").every((S) => !!S.match(w)) || T.preventDefault(); + }, x = (A) => { + if (s && s.value) { + let g = (A.clipboardData || /* istanbul ignore next */ + window.clipboardData).getData("Text"), w = s.value; + typeof w == "string" && (w = new RegExp(w)), g.split("").every((S) => !!S.match(w)) || A.preventDefault(); } - a.emit("paste", T, n); + a.emit("paste", A, n); }; - return ge(d, (T) => { - !m.value && T && l(), a.emit("search-change", T, n); + return ge(d, (A) => { + !m.value && A && l(), a.emit("search-change", A, n); }), { search: d, clearSearch: p, @@ -1137,8 +1137,8 @@ function rn(e, a, t) { }; } function nn(e, a, t) { - const { groupSelect: o, mode: n, groups: m, disabledProp: l } = Me(e), d = he(null), p = (v) => { - v === void 0 || v !== null && v[l.value] || m.value && v && v.group && (n.value === "single" || !o.value) || (d.value = v); + const { groupSelect: s, mode: n, groups: m, disabledProp: l } = Me(e), d = he(null), p = (v) => { + v === void 0 || v !== null && v[l.value] || m.value && v && v.group && (n.value === "single" || !s.value) || (d.value = v); }; return { pointer: d, @@ -1154,15 +1154,15 @@ function Ca(e, a = !0) { function ln(e) { return Object.prototype.toString.call(e) === "[object Object]"; } -function on(e, a) { +function sn(e, a) { const t = a.slice().sort(); - return e.length === a.length && e.slice().sort().every(function(o, n) { - return o === t[n]; + return e.length === a.length && e.slice().sort().every(function(s, n) { + return s === t[n]; }); } -function sn(e, a, t) { +function on(e, a, t) { const { - options: o, + options: s, mode: n, trackBy: m, limit: l, @@ -1171,7 +1171,7 @@ function sn(e, a, t) { createOption: y, label: v, appendNewTag: x, - appendNewOption: T, + appendNewOption: A, multipleLabel: E, object: g, loading: w, @@ -1180,11 +1180,11 @@ function sn(e, a, t) { minChars: V, filterResults: b, clearOnSearch: D, - clearOnSelect: j, + clearOnSelect: R, valueProp: P, allowAbsent: U, groupLabel: F, - canDeselect: A, + canDeselect: T, max: J, strict: X, closeOnSelect: N, @@ -1192,19 +1192,19 @@ function sn(e, a, t) { groups: ne, reverse: G, infinite: ee, - groupOptions: oe, - groupHideEmpty: Ae, + groupOptions: se, + groupHideEmpty: Te, groupSelect: Y, onCreate: Z, disabledProp: te, searchStart: pe, searchFilter: Le - } = Me(e), ce = Zt().proxy, _ = t.iv, h = t.ev, R = t.search, be = t.clearSearch, je = t.update, gt = t.pointer, bt = t.setPointer, Ke = t.clearPointer, kt = t.focus, Ft = t.deactivate, Qe = t.close, Pt = t.localize, Ze = he([]), _e = he([]), qe = he(!1), ze = he(null), Xe = he(ee.value && l.value === -1 ? 10 : l.value), yt = K(() => p.value || y.value || !1), Ct = K(() => x.value !== void 0 ? x.value : T.value !== void 0 ? T.value : !0), Ie = K(() => { + } = Me(e), ce = Zt().proxy, _ = t.iv, h = t.ev, j = t.search, be = t.clearSearch, Re = t.update, gt = t.pointer, bt = t.setPointer, Ke = t.clearPointer, kt = t.focus, Ft = t.deactivate, Qe = t.close, Pt = t.localize, Ze = he([]), _e = he([]), qe = he(!1), ze = he(null), Xe = he(ee.value && l.value === -1 ? 10 : l.value), yt = K(() => p.value || y.value || !1), Ct = K(() => x.value !== void 0 ? x.value : A.value !== void 0 ? A.value : !0), Ie = K(() => { if (ne.value) { let u = tt.value || /* istanbul ignore next */ [], C = []; return u.forEach((le) => { - Wt(le[oe.value]).forEach((Se) => { + Wt(le[se.value]).forEach((Se) => { C.push(Object.assign({}, Se, le[te.value] ? { [te.value]: !0 } : {})); }); }), C; @@ -1215,7 +1215,7 @@ function sn(e, a, t) { } }), ct = K(() => { let u = Ie.value; - return G.value && (u = u.reverse()), W.value.length && (u = W.value.concat(u)), At(u); + return G.value && (u = u.reverse()), W.value.length && (u = W.value.concat(u)), Tt(u); }), et = K(() => { let u = ct.value; return Xe.value > 0 && (u = u.slice(0, Xe.value)), u; @@ -1226,29 +1226,29 @@ function sn(e, a, t) { []; return Ze.value.length && u.push({ [F.value]: " ", - [oe.value]: [...Ze.value], + [se.value]: [...Ze.value], __CREATE__: !0 }), u.concat(C); }), Lt = K(() => { let u = [...tt.value].map((C) => ({ ...C })); - return W.value.length && (u[0] && u[0].__CREATE__ ? u[0][oe.value] = [...W.value, ...u[0][oe.value]] : u = [{ + return W.value.length && (u[0] && u[0].__CREATE__ ? u[0][se.value] = [...W.value, ...u[0][se.value]] : u = [{ [F.value]: " ", - [oe.value]: [...W.value], + [se.value]: [...W.value], __CREATE__: !0 }].concat(u)), u; - }), s = K(() => { + }), o = K(() => { if (!ne.value) return []; let u = Lt.value; return Ht((u || /* istanbul ignore next */ []).map((C, le) => { - const Se = Wt(C[oe.value]); + const Se = Wt(C[se.value]); return { ...C, index: le, group: !0, - [oe.value]: At(Se, !1).map((lt) => Object.assign({}, lt, C[te.value] ? { [te.value]: !0 } : {})), - __VISIBLE__: At(Se).map((lt) => Object.assign({}, lt, C[te.value] ? { [te.value]: !0 } : {})) + [se.value]: Tt(Se, !1).map((lt) => Object.assign({}, lt, C[te.value] ? { [te.value]: !0 } : {})), + __VISIBLE__: Tt(Se).map((lt) => Object.assign({}, lt, C[te.value] ? { [te.value]: !0 } : {})) }; })); }), r = K(() => { @@ -1259,10 +1259,10 @@ function sn(e, a, t) { case "tags": return !rt(_.value) && _.value.length > 0; } - }), L = K(() => E !== void 0 && E.value !== void 0 ? E.value(_.value, ce) : _.value && _.value.length > 1 ? `${_.value.length} options selected` : "1 option selected"), z = K(() => !Ie.value.length && !qe.value && !W.value.length), B = K(() => Ie.value.length > 0 && et.value.length == 0 && (R.value && ne.value || !ne.value)), W = K(() => yt.value === !1 || !R.value ? [] : wa(R.value) !== -1 ? [] : [{ - [P.value]: R.value, - [ue.value[0]]: R.value, - [v.value]: R.value, + }), L = K(() => E !== void 0 && E.value !== void 0 ? E.value(_.value, ce) : _.value && _.value.length > 1 ? `${_.value.length} options selected` : "1 option selected"), z = K(() => !Ie.value.length && !qe.value && !W.value.length), B = K(() => Ie.value.length > 0 && et.value.length == 0 && (j.value && ne.value || !ne.value)), W = K(() => yt.value === !1 || !j.value ? [] : wa(j.value) !== -1 ? [] : [{ + [P.value]: j.value, + [ue.value[0]]: j.value, + [v.value]: j.value, __CREATE__: !0 }]), ue = K(() => m.value ? Array.isArray(m.value) ? m.value : [m.value] : [v.value]), xe = K(() => { switch (n.value) { @@ -1275,11 +1275,11 @@ function sn(e, a, t) { }), ye = K(() => w.value || qe.value), Ve = (u) => { switch (typeof u != "object" && (u = Ye(u)), n.value) { case "single": - je(u); + Re(u); break; case "multiple": case "tags": - je(_.value.concat(u)); + Re(_.value.concat(u)); break; } a.emit("select", Q(u), u, ce); @@ -1290,7 +1290,7 @@ function sn(e, a, t) { break; case "tags": case "multiple": - je(Array.isArray(u) ? _.value.filter((C) => u.map((le) => le[P.value]).indexOf(C[P.value]) === -1) : _.value.filter((C) => C[P.value] != u[P.value])); + Re(Array.isArray(u) ? _.value.filter((C) => u.map((le) => le[P.value]).indexOf(C[P.value]) === -1) : _.value.filter((C) => C[P.value] != u[P.value])); break; } a.emit("deselect", Q(u), u, ce); @@ -1303,10 +1303,10 @@ function sn(e, a, t) { } $e(u); }, Ne = () => { - je(xe.value), a.emit("clear", ce); + Re(xe.value), a.emit("clear", ce); }, Fe = (u) => { if (u.group !== void 0) - return n.value === "single" ? !1 : ya(u[oe.value]) && u[oe.value].length; + return n.value === "single" ? !1 : ya(u[se.value]) && u[se.value].length; switch (n.value) { case "single": return !rt(_.value) && _.value[P.value] == u[P.value]; @@ -1314,7 +1314,7 @@ function sn(e, a, t) { case "multiple": return !rt(_.value) && _.value.map((C) => C[P.value]).indexOf(u[P.value]) !== -1; } - }, Ue = (u) => u[te.value] === !0, at = () => J === void 0 || J.value === -1 || !r.value && J.value > 0 ? !1 : _.value.length >= J.value, Tt = (u) => { + }, Ue = (u) => u[te.value] === !0, at = () => J === void 0 || J.value === -1 || !r.value && J.value > 0 ? !1 : _.value.length >= J.value, At = (u) => { if (!Ue(u)) { if (Z && Z.value && !Fe(u) && u.__CREATE__ && (u = { ...u }, delete u.__CREATE__, u = Z.value(u, ce), u instanceof Promise)) { qe.value = !0, u.then((C) => { @@ -1328,10 +1328,10 @@ function sn(e, a, t) { switch (u.__CREATE__ && (u = { ...u }, delete u.__CREATE__), n.value) { case "single": if (u && Fe(u)) { - A.value && me(u), H.value && (Ke(), Qe()); + T.value && me(u), H.value && (Ke(), Qe()); return; } - u && He(u), j.value && be(), N.value && (Ke(), Qe()), u && Ve(u); + u && He(u), R.value && be(), N.value && (Ke(), Qe()), u && Ve(u); break; case "multiple": if (u && Fe(u)) { @@ -1342,7 +1342,7 @@ function sn(e, a, t) { a.emit("max", ce); return; } - u && (He(u), Ve(u)), j.value && be(), d.value && Ke(), N.value && Qe(); + u && (He(u), Ve(u)), R.value && be(), d.value && Ke(), N.value && Qe(); break; case "tags": if (u && Fe(u)) { @@ -1353,7 +1353,7 @@ function sn(e, a, t) { a.emit("max", ce); return; } - u && He(u), j.value && be(), u && Ve(u), d.value && Ke(), N.value && Qe(); + u && He(u), R.value && be(), u && Ve(u), d.value && Ke(), N.value && Qe(); break; } N.value || kt(); @@ -1362,9 +1362,9 @@ function sn(e, a, t) { switch (n.value) { case "multiple": case "tags": - ta(u[oe.value]) ? me(u[oe.value]) : Ve( - u[oe.value].filter((C) => _.value.map((le) => le[P.value]).indexOf(C[P.value]) === -1).filter((C) => !C[te.value]).filter((C, le) => _.value.length + 1 + le <= J.value || J.value === -1) - ), d.value && gt.value && bt(s.value.filter((C) => !C[te.value])[gt.value.index]); + ta(u[se.value]) ? me(u[se.value]) : Ve( + u[se.value].filter((C) => _.value.map((le) => le[P.value]).indexOf(C[P.value]) === -1).filter((C) => !C[te.value]).filter((C, le) => _.value.length + 1 + le <= J.value || J.value === -1) + ), d.value && gt.value && bt(o.value.filter((C) => !C[te.value])[gt.value.index]); break; } N.value && Ft(); @@ -1375,16 +1375,16 @@ function sn(e, a, t) { n.value !== "single" && Ve(et.value.filter((u) => !u.disabled && !Fe(u))); }, ta = (u) => u.find((C) => !Fe(C) && !C[te.value]) === void 0, ya = (u) => u.find((C) => !Fe(C)) === void 0, Ye = (u) => Ie.value[Ie.value.map((C) => String(C[P.value])).indexOf(String(u))], wa = (u) => Ie.value.findIndex((C) => ue.value.some((le) => (parseInt(C[le]) == C[le] ? parseInt(C[le]) : C[le]) === (parseInt(u) == u ? parseInt(u) : u))), aa = (u) => ["tags", "multiple"].indexOf(n.value) !== -1 && d.value && Fe(u), Ut = (u) => { Ze.value.push(u); - }, Ht = (u) => Ae.value ? u.filter( - (C) => R.value ? C.__VISIBLE__.length : C[oe.value].length - ) : u.filter((C) => R.value ? C.__VISIBLE__.length : !0), At = (u, C = !0) => { + }, Ht = (u) => Te.value ? u.filter( + (C) => j.value ? C.__VISIBLE__.length : C[se.value].length + ) : u.filter((C) => j.value ? C.__VISIBLE__.length : !0), Tt = (u, C = !0) => { let le = u; - if (R.value && b.value) { + if (j.value && b.value) { let Se = Le.value; Se || (Se = (lt, ra, Ia) => ue.value.some(($t) => { let Bt = Ca(Pt(lt[$t]), X.value); return pe.value ? Bt.startsWith(Ca(ra, X.value)) : Bt.indexOf(Ca(ra, X.value)) !== -1; - })), le = le.filter((lt) => Se(lt, R.value, ce)); + })), le = le.filter((lt) => Se(lt, j.value, ce)); } return d.value && C && (le = le.filter((Se) => !aa(Se))), le; }, Wt = (u) => { @@ -1396,7 +1396,7 @@ function sn(e, a, t) { }, Dt = () => { rt(h.value) || (_.value = dt(h.value)); }, St = (u) => (qe.value = !0, new Promise((C, le) => { - o.value(R.value, ce).then((Se) => { + s.value(j.value, ce).then((Se) => { _e.value = Se || [], typeof u == "function" && u(Se), qe.value = !1; }).catch((Se) => { console.error(Se), _e.value = [], qe.value = !1; @@ -1430,10 +1430,10 @@ function sn(e, a, t) { [P.value]: C, [ue.value[0]]: C }), Nt = () => { - ze.value = ge(R, (u) => { + ze.value = ge(j, (u) => { u.length < V.value || !u && V.value !== 0 || (qe.value = !0, D.value && (_e.value = []), setTimeout(() => { - u == R.value && o.value(R.value, ce).then((C) => { - (u == R.value || !R.value) && (_e.value = C, gt.value = et.value.filter((le) => le[te.value] !== !0)[0] || null, qe.value = !1); + u == j.value && s.value(j.value, ce).then((C) => { + (u == j.value || !j.value) && (_e.value = C, gt.value = et.value.filter((le) => le[te.value] !== !0)[0] || null, qe.value = !1); }).catch( /* istanbul ignore next */ (C) => { @@ -1445,23 +1445,23 @@ function sn(e, a, t) { }; if (n.value !== "single" && !rt(h.value) && !Array.isArray(h.value)) throw new Error(`v-model must be an array when using "${n.value}" mode`); - return o && typeof o.value == "function" ? k.value ? St(Dt) : g.value == !0 && Dt() : (_e.value = o.value, Dt()), S.value > -1 && Nt(), ge(S, (u, C) => { + return s && typeof s.value == "function" ? k.value ? St(Dt) : g.value == !0 && Dt() : (_e.value = s.value, Dt()), S.value > -1 && Nt(), ge(S, (u, C) => { ze.value && ze.value(), u >= 0 && Nt(); }), ge(h, (u) => { if (rt(u)) { - je(dt(u), !1); + Re(dt(u), !1); return; } switch (n.value) { case "single": - (g.value ? u[P.value] != _.value[P.value] : u != _.value[P.value]) && je(dt(u), !1); + (g.value ? u[P.value] != _.value[P.value] : u != _.value[P.value]) && Re(dt(u), !1); break; case "multiple": case "tags": - on(g.value ? u.map((C) => C[P.value]) : u, _.value.map((C) => C[P.value])) || je(dt(u), !1); + sn(g.value ? u.map((C) => C[P.value]) : u, _.value.map((C) => C[P.value])) || Re(dt(u), !1); break; } - }, { deep: !0 }), ge(o, (u, C) => { + }, { deep: !0 }), ge(s, (u, C) => { typeof e.options == "function" ? k.value && (!C || u && u.toString() !== C.toString()) && St() : (_e.value = e.options, Object.keys(_.value).length || Dt(), _t()); }), ge(v, _t), ge(l, (u, C) => { Xe.value = ee.value && u === -1 ? 10 : u; @@ -1475,8 +1475,8 @@ function sn(e, a, t) { extendedOptions: Ie, eg: tt, extendedGroups: tt, - fg: s, - filteredGroups: s, + fg: o, + filteredGroups: o, noOptions: z, noResults: B, resolving: qe, @@ -1491,7 +1491,7 @@ function sn(e, a, t) { isDisabled: Ue, isMax: at, getOption: Ye, - handleOptionClick: Tt, + handleOptionClick: At, handleGroupClick: ga, handleTagRemove: we, refreshOptions: Sa, @@ -1501,7 +1501,7 @@ function sn(e, a, t) { } function un(e, a, t) { const { - valueProp: o, + valueProp: s, showOptions: n, searchable: m, groupLabel: l, @@ -1510,35 +1510,35 @@ function un(e, a, t) { groupSelect: y, disabledProp: v, groupOptions: x - } = Me(e), T = t.fo, E = t.fg, g = t.handleOptionClick, w = t.handleGroupClick, S = t.search, k = t.pointer, V = t.setPointer, b = t.clearPointer, D = t.multiselect, j = t.isOpen, P = K(() => T.value.filter((h) => !h[v.value])), U = K(() => E.value.filter((h) => !h[v.value])), F = K(() => p.value !== "single" && y.value), A = K(() => k.value && k.value.group), J = K(() => ce(k.value)), X = K(() => { - const h = A.value ? k.value : ( + } = Me(e), A = t.fo, E = t.fg, g = t.handleOptionClick, w = t.handleGroupClick, S = t.search, k = t.pointer, V = t.setPointer, b = t.clearPointer, D = t.multiselect, R = t.isOpen, P = K(() => A.value.filter((h) => !h[v.value])), U = K(() => E.value.filter((h) => !h[v.value])), F = K(() => p.value !== "single" && y.value), T = K(() => k.value && k.value.group), J = K(() => ce(k.value)), X = K(() => { + const h = T.value ? k.value : ( /* istanbul ignore next */ ce(k.value) - ), R = U.value.map((je) => je[l.value]).indexOf(h[l.value]); - let be = U.value[R - 1]; + ), j = U.value.map((Re) => Re[l.value]).indexOf(h[l.value]); + let be = U.value[j - 1]; return be === void 0 && (be = H.value), be; }), N = K(() => { - let h = U.value.map((R) => R.label).indexOf(A.value ? k.value[l.value] : ce(k.value)[l.value]) + 1; + let h = U.value.map((j) => j.label).indexOf(T.value ? k.value[l.value] : ce(k.value)[l.value]) + 1; return U.value.length <= h && (h = 0), U.value[h]; }), H = K(() => [...U.value].slice(-1)[0]), ne = K(() => k.value.__VISIBLE__.filter((h) => !h[v.value])[0]), G = K(() => { - const h = J.value.__VISIBLE__.filter((R) => !R[v.value]); - return h[h.map((R) => R[o.value]).indexOf(k.value[o.value]) - 1]; + const h = J.value.__VISIBLE__.filter((j) => !j[v.value]); + return h[h.map((j) => j[s.value]).indexOf(k.value[s.value]) - 1]; }), ee = K(() => { - const h = ce(k.value).__VISIBLE__.filter((R) => !R[v.value]); - return h[h.map((R) => R[o.value]).indexOf(k.value[o.value]) + 1]; - }), oe = K(() => [...X.value.__VISIBLE__.filter((h) => !h[v.value])].slice(-1)[0]), Ae = K(() => [...H.value.__VISIBLE__.filter((h) => !h[v.value])].slice(-1)[0]), Y = (h) => k.value && (!h.group && k.value[o.value] === h[o.value] || h.group !== void 0 && k.value[l.value] === h[l.value]) ? !0 : void 0, Z = () => { + const h = ce(k.value).__VISIBLE__.filter((j) => !j[v.value]); + return h[h.map((j) => j[s.value]).indexOf(k.value[s.value]) + 1]; + }), se = K(() => [...X.value.__VISIBLE__.filter((h) => !h[v.value])].slice(-1)[0]), Te = K(() => [...H.value.__VISIBLE__.filter((h) => !h[v.value])].slice(-1)[0]), Y = (h) => k.value && (!h.group && k.value[s.value] === h[s.value] || h.group !== void 0 && k.value[l.value] === h[l.value]) ? !0 : void 0, Z = () => { V(P.value[0] || null); }, te = () => { - !k.value || k.value[v.value] === !0 || (A.value ? w(k.value) : g(k.value)); + !k.value || k.value[v.value] === !0 || (T.value ? w(k.value) : g(k.value)); }, pe = () => { if (k.value === null) V((d.value && F.value ? U.value[0].__CREATE__ ? P.value[0] : U.value[0] : P.value[0]) || null); else if (d.value && F.value) { - let h = A.value ? ne.value : ee.value; + let h = T.value ? ne.value : ee.value; h === void 0 && (h = N.value, h.__CREATE__ && (h = h[x.value][0])), V(h || /* istanbul ignore next */ null); } else { - let h = P.value.map((R) => R[o.value]).indexOf(k.value[o.value]) + 1; + let h = P.value.map((j) => j[s.value]).indexOf(k.value[s.value]) + 1; P.value.length <= h && (h = 0), V(P.value[h] || null); } Yt(() => { @@ -1547,35 +1547,35 @@ function un(e, a, t) { }, Le = () => { if (k.value === null) { let h = P.value[P.value.length - 1]; - d.value && F.value && (h = Ae.value, h === void 0 && (h = H.value)), V(h || null); + d.value && F.value && (h = Te.value, h === void 0 && (h = H.value)), V(h || null); } else if (d.value && F.value) { - let h = A.value ? oe.value : G.value; - h === void 0 && (h = A.value ? X.value : J.value, h.__CREATE__ && (h = oe.value, h === void 0 && (h = X.value))), V(h || /* istanbul ignore next */ + let h = T.value ? se.value : G.value; + h === void 0 && (h = T.value ? X.value : J.value, h.__CREATE__ && (h = se.value, h === void 0 && (h = X.value))), V(h || /* istanbul ignore next */ null); } else { - let h = P.value.map((R) => R[o.value]).indexOf(k.value[o.value]) - 1; + let h = P.value.map((j) => j[s.value]).indexOf(k.value[s.value]) - 1; h < 0 && (h = P.value.length - 1), V(P.value[h] || null); } Yt(() => { _(); }); - }, ce = (h) => U.value.find((R) => R.__VISIBLE__.map((be) => be[o.value]).indexOf(h[o.value]) !== -1), _ = () => { + }, ce = (h) => U.value.find((j) => j.__VISIBLE__.map((be) => be[s.value]).indexOf(h[s.value]) !== -1), _ = () => { let h = D.value.querySelector("[data-pointed]"); if (!h) return; - let R = h.parentElement.parentElement; - d.value && (R = A.value ? h.parentElement.parentElement.parentElement : h.parentElement.parentElement.parentElement.parentElement), h.offsetTop + h.offsetHeight > R.clientHeight + R.scrollTop && (R.scrollTop = h.offsetTop + h.offsetHeight - R.clientHeight), h.offsetTop < R.scrollTop && (R.scrollTop = h.offsetTop); + let j = h.parentElement.parentElement; + d.value && (j = T.value ? h.parentElement.parentElement.parentElement : h.parentElement.parentElement.parentElement.parentElement), h.offsetTop + h.offsetHeight > j.clientHeight + j.scrollTop && (j.scrollTop = h.offsetTop + h.offsetHeight - j.clientHeight), h.offsetTop < j.scrollTop && (j.scrollTop = h.offsetTop); }; return ge(S, (h) => { m.value && (h.length && n.value ? Z() : b()); - }), ge(j, (h) => { + }), ge(R, (h) => { if (h && (D != null && D.value)) { - let R = D.value.querySelectorAll("[data-selected]")[0]; - if (!R) + let j = D.value.querySelectorAll("[data-selected]")[0]; + if (!j) return; - let be = R.parentElement.parentElement; + let be = j.parentElement.parentElement; Yt(() => { - be.scrollTop > 0 || (be.scrollTop = R.offsetTop); + be.scrollTop > 0 || (be.scrollTop = j.offsetTop); }); } }), { @@ -1611,37 +1611,37 @@ function Na(e) { var a = We(e).ShadowRoot; return e instanceof a || e instanceof ShadowRoot; } -var xt = Math.max, fa = Math.min, Rt = Math.round; -function Aa() { +var xt = Math.max, fa = Math.min, jt = Math.round; +function Ta() { var e = navigator.userAgentData; return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(a) { return a.brand + "/" + a.version; }).join(" ") : navigator.userAgent; } function dr() { - return !/^((?!chrome|android).)*safari/i.test(Aa()); + return !/^((?!chrome|android).)*safari/i.test(Ta()); } function qt(e, a, t) { a === void 0 && (a = !1), t === void 0 && (t = !1); - var o = e.getBoundingClientRect(), n = 1, m = 1; - a && Ge(e) && (n = e.offsetWidth > 0 && Rt(o.width) / e.offsetWidth || 1, m = e.offsetHeight > 0 && Rt(o.height) / e.offsetHeight || 1); - var l = Et(e) ? We(e) : window, d = l.visualViewport, p = !dr() && t, y = (o.left + (p && d ? d.offsetLeft : 0)) / n, v = (o.top + (p && d ? d.offsetTop : 0)) / m, x = o.width / n, T = o.height / m; + var s = e.getBoundingClientRect(), n = 1, m = 1; + a && Ge(e) && (n = e.offsetWidth > 0 && jt(s.width) / e.offsetWidth || 1, m = e.offsetHeight > 0 && jt(s.height) / e.offsetHeight || 1); + var l = Et(e) ? We(e) : window, d = l.visualViewport, p = !dr() && t, y = (s.left + (p && d ? d.offsetLeft : 0)) / n, v = (s.top + (p && d ? d.offsetTop : 0)) / m, x = s.width / n, A = s.height / m; return { width: x, - height: T, + height: A, top: v, right: y + x, - bottom: v + T, + bottom: v + A, left: y, x: y, y: v }; } function Ba(e) { - var a = We(e), t = a.pageXOffset, o = a.pageYOffset; + var a = We(e), t = a.pageXOffset, s = a.pageYOffset; return { scrollLeft: t, - scrollTop: o + scrollTop: s }; } function cn(e) { @@ -1669,23 +1669,23 @@ function ut(e) { return We(e).getComputedStyle(e); } function Va(e) { - var a = ut(e), t = a.overflow, o = a.overflowX, n = a.overflowY; - return /auto|scroll|overlay|hidden/.test(t + n + o); + var a = ut(e), t = a.overflow, s = a.overflowX, n = a.overflowY; + return /auto|scroll|overlay|hidden/.test(t + n + s); } function fn(e) { - var a = e.getBoundingClientRect(), t = Rt(a.width) / e.offsetWidth || 1, o = Rt(a.height) / e.offsetHeight || 1; - return t !== 1 || o !== 1; + var a = e.getBoundingClientRect(), t = jt(a.width) / e.offsetWidth || 1, s = jt(a.height) / e.offsetHeight || 1; + return t !== 1 || s !== 1; } function pn(e, a, t) { t === void 0 && (t = !1); - var o = Ge(a), n = Ge(a) && fn(a), m = mt(a), l = qt(e, n, t), d = { + var s = Ge(a), n = Ge(a) && fn(a), m = mt(a), l = qt(e, n, t), d = { scrollLeft: 0, scrollTop: 0 }, p = { x: 0, y: 0 }; - return (o || !o && !t) && ((nt(a) !== "body" || // https://github.com/popperjs/popper-core/issues/1078 + return (s || !s && !t) && ((nt(a) !== "body" || // https://github.com/popperjs/popper-core/issues/1078 Va(m)) && (d = dn(a)), Ge(a) ? (p = qt(a, !0), p.x += a.clientLeft, p.y += a.clientTop) : m && (p.x = Ma(m))), { x: l.left + d.scrollLeft - p.x, y: l.top + d.scrollTop - p.y, @@ -1694,12 +1694,12 @@ function pn(e, a, t) { }; } function fr(e) { - var a = qt(e), t = e.offsetWidth, o = e.offsetHeight; - return Math.abs(a.width - t) <= 1 && (t = a.width), Math.abs(a.height - o) <= 1 && (o = a.height), { + var a = qt(e), t = e.offsetWidth, s = e.offsetHeight; + return Math.abs(a.width - t) <= 1 && (t = a.width), Math.abs(a.height - s) <= 1 && (s = a.height), { x: e.offsetLeft, y: e.offsetTop, width: t, - height: o + height: s }; } function va(e) { @@ -1720,7 +1720,7 @@ function pr(e) { function Jt(e, a) { var t; a === void 0 && (a = []); - var o = pr(e), n = o === ((t = e.ownerDocument) == null ? void 0 : t.body), m = We(o), l = n ? [m].concat(m.visualViewport || [], Va(o) ? o : []) : o, d = a.concat(l); + var s = pr(e), n = s === ((t = e.ownerDocument) == null ? void 0 : t.body), m = We(s), l = n ? [m].concat(m.visualViewport || [], Va(s) ? s : []) : s, d = a.concat(l); return n ? d : ( // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here d.concat(Jt(va(l))) @@ -1734,10 +1734,10 @@ function ar(e) { ut(e).position === "fixed" ? null : e.offsetParent; } function hn(e) { - var a = /firefox/i.test(Aa()), t = /Trident/i.test(Aa()); + var a = /firefox/i.test(Ta()), t = /Trident/i.test(Ta()); if (t && Ge(e)) { - var o = ut(e); - if (o.position === "fixed") + var s = ut(e); + if (s.position === "fixed") return null; } var n = va(e); @@ -1754,13 +1754,13 @@ function ha(e) { t = ar(t); return t && (nt(t) === "html" || nt(t) === "body" && ut(t).position === "static") ? a : t || hn(e) || a; } -var Je = "top", it = "bottom", ht = "right", st = "left", ja = "auto", ma = [Je, it, ht, st], It = "start", Qt = "end", mn = "clippingParents", vr = "viewport", Xt = "popper", gn = "reference", rr = /* @__PURE__ */ ma.reduce(function(e, a) { +var Je = "top", it = "bottom", ht = "right", ot = "left", Ra = "auto", ma = [Je, it, ht, ot], It = "start", Qt = "end", mn = "clippingParents", vr = "viewport", Xt = "popper", gn = "reference", rr = /* @__PURE__ */ ma.reduce(function(e, a) { return e.concat([a + "-" + It, a + "-" + Qt]); -}, []), bn = /* @__PURE__ */ [].concat(ma, [ja]).reduce(function(e, a) { +}, []), bn = /* @__PURE__ */ [].concat(ma, [Ra]).reduce(function(e, a) { return e.concat([a, a + "-" + It, a + "-" + Qt]); }, []), yn = "beforeRead", wn = "read", Sn = "afterRead", On = "beforeMain", xn = "main", En = "afterMain", kn = "beforeWrite", Pn = "write", Cn = "afterWrite", Ln = [yn, wn, Sn, On, xn, En, kn, Pn, Cn]; -function Tn(e) { - var a = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set(), o = []; +function An(e) { + var a = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set(), s = []; e.forEach(function(m) { a.set(m.name, m); }); @@ -1772,17 +1772,17 @@ function Tn(e) { var p = a.get(d); p && n(p); } - }), o.push(m); + }), s.push(m); } return e.forEach(function(m) { t.has(m.name) || n(m); - }), o; + }), s; } -function An(e) { - var a = Tn(e); - return Ln.reduce(function(t, o) { +function Tn(e) { + var a = An(e); + return Ln.reduce(function(t, s) { return t.concat(a.filter(function(n) { - return n.phase === o; + return n.phase === s; })); }, []); } @@ -1797,19 +1797,19 @@ function Dn(e) { }; } function Nn(e) { - var a = e.reduce(function(t, o) { - var n = t[o.name]; - return t[o.name] = n ? Object.assign({}, n, o, { - options: Object.assign({}, n.options, o.options), - data: Object.assign({}, n.data, o.data) - }) : o, t; + var a = e.reduce(function(t, s) { + var n = t[s.name]; + return t[s.name] = n ? Object.assign({}, n, s, { + options: Object.assign({}, n.options, s.options), + data: Object.assign({}, n.data, s.data) + }) : s, t; }, {}); return Object.keys(a).map(function(t) { return a[t]; }); } function Bn(e, a) { - var t = We(e), o = mt(e), n = t.visualViewport, m = o.clientWidth, l = o.clientHeight, d = 0, p = 0; + var t = We(e), s = mt(e), n = t.visualViewport, m = s.clientWidth, l = s.clientHeight, d = 0, p = 0; if (n) { m = n.width, l = n.height; var y = dr(); @@ -1823,7 +1823,7 @@ function Bn(e, a) { }; } function Mn(e) { - var a, t = mt(e), o = Ba(e), n = (a = e.ownerDocument) == null ? void 0 : a.body, m = xt(t.scrollWidth, t.clientWidth, n ? n.scrollWidth : 0, n ? n.clientWidth : 0), l = xt(t.scrollHeight, t.clientHeight, n ? n.scrollHeight : 0, n ? n.clientHeight : 0), d = -o.scrollLeft + Ma(e), p = -o.scrollTop; + var a, t = mt(e), s = Ba(e), n = (a = e.ownerDocument) == null ? void 0 : a.body, m = xt(t.scrollWidth, t.clientWidth, n ? n.scrollWidth : 0, n ? n.clientWidth : 0), l = xt(t.scrollHeight, t.clientHeight, n ? n.scrollHeight : 0, n ? n.clientHeight : 0), d = -s.scrollLeft + Ma(e), p = -s.scrollTop; return ut(n || t).direction === "rtl" && (d += xt(t.clientWidth, n ? n.clientWidth : 0) - m), { width: m, height: l, @@ -1836,12 +1836,12 @@ function Vn(e, a) { if (e.contains(a)) return !0; if (t && Na(t)) { - var o = a; + var s = a; do { - if (o && e.isSameNode(o)) + if (s && e.isSameNode(s)) return !0; - o = o.parentNode || o.host; - } while (o); + s = s.parentNode || s.host; + } while (s); } return !1; } @@ -1853,24 +1853,24 @@ function Da(e) { bottom: e.y + e.height }); } -function jn(e, a) { +function Rn(e, a) { var t = qt(e, !1, a === "fixed"); return t.top = t.top + e.clientTop, t.left = t.left + e.clientLeft, t.bottom = t.top + e.clientHeight, t.right = t.left + e.clientWidth, t.width = e.clientWidth, t.height = e.clientHeight, t.x = t.left, t.y = t.top, t; } function nr(e, a, t) { - return a === vr ? Da(Bn(e, t)) : Et(a) ? jn(a, t) : Da(Mn(mt(e))); + return a === vr ? Da(Bn(e, t)) : Et(a) ? Rn(a, t) : Da(Mn(mt(e))); } -function Rn(e) { - var a = Jt(va(e)), t = ["absolute", "fixed"].indexOf(ut(e).position) >= 0, o = t && Ge(e) ? ha(e) : e; - return Et(o) ? a.filter(function(n) { - return Et(n) && Vn(n, o) && nt(n) !== "body"; +function jn(e) { + var a = Jt(va(e)), t = ["absolute", "fixed"].indexOf(ut(e).position) >= 0, s = t && Ge(e) ? ha(e) : e; + return Et(s) ? a.filter(function(n) { + return Et(n) && Vn(n, s) && nt(n) !== "body"; }) : []; } -function qn(e, a, t, o) { - var n = a === "clippingParents" ? Rn(e) : [].concat(a), m = [].concat(n, [t]), l = m[0], d = m.reduce(function(p, y) { - var v = nr(e, y, o); +function qn(e, a, t, s) { + var n = a === "clippingParents" ? jn(e) : [].concat(a), m = [].concat(n, [t]), l = m[0], d = m.reduce(function(p, y) { + var v = nr(e, y, s); return p.top = xt(v.top, p.top), p.right = fa(v.right, p.right), p.bottom = fa(v.bottom, p.bottom), p.left = xt(v.left, p.left), p; - }, nr(e, l, o)); + }, nr(e, l, s)); return d.width = d.right - d.left, d.height = d.bottom - d.top, d.x = d.left, d.y = d.top, d; } function vt(e) { @@ -1883,7 +1883,7 @@ function hr(e) { return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y"; } function mr(e) { - var a = e.reference, t = e.element, o = e.placement, n = o ? vt(o) : null, m = o ? zt(o) : null, l = a.x + a.width / 2 - t.width / 2, d = a.y + a.height / 2 - t.height / 2, p; + var a = e.reference, t = e.element, s = e.placement, n = s ? vt(s) : null, m = s ? zt(s) : null, l = a.x + a.width / 2 - t.width / 2, d = a.y + a.height / 2 - t.height / 2, p; switch (n) { case Je: p = { @@ -1903,7 +1903,7 @@ function mr(e) { y: d }; break; - case st: + case ot: p = { x: a.x - t.width, y: d @@ -1941,24 +1941,24 @@ function In(e) { return Object.assign({}, gr(), e); } function zn(e, a) { - return a.reduce(function(t, o) { - return t[o] = e, t; + return a.reduce(function(t, s) { + return t[s] = e, t; }, {}); } -function Ra(e, a) { +function ja(e, a) { a === void 0 && (a = {}); - var t = a, o = t.placement, n = o === void 0 ? e.placement : o, m = t.strategy, l = m === void 0 ? e.strategy : m, d = t.boundary, p = d === void 0 ? mn : d, y = t.rootBoundary, v = y === void 0 ? vr : y, x = t.elementContext, T = x === void 0 ? Xt : x, E = t.altBoundary, g = E === void 0 ? !1 : E, w = t.padding, S = w === void 0 ? 0 : w, k = In(typeof S != "number" ? S : zn(S, ma)), V = T === Xt ? gn : Xt, b = e.rects.popper, D = e.elements[g ? V : T], j = qn(Et(D) ? D : D.contextElement || mt(e.elements.popper), p, v, l), P = qt(e.elements.reference), U = mr({ + var t = a, s = t.placement, n = s === void 0 ? e.placement : s, m = t.strategy, l = m === void 0 ? e.strategy : m, d = t.boundary, p = d === void 0 ? mn : d, y = t.rootBoundary, v = y === void 0 ? vr : y, x = t.elementContext, A = x === void 0 ? Xt : x, E = t.altBoundary, g = E === void 0 ? !1 : E, w = t.padding, S = w === void 0 ? 0 : w, k = In(typeof S != "number" ? S : zn(S, ma)), V = A === Xt ? gn : Xt, b = e.rects.popper, D = e.elements[g ? V : A], R = qn(Et(D) ? D : D.contextElement || mt(e.elements.popper), p, v, l), P = qt(e.elements.reference), U = mr({ reference: P, element: b, strategy: "absolute", placement: n - }), F = Da(Object.assign({}, b, U)), A = T === Xt ? F : P, J = { - top: j.top - A.top + k.top, - bottom: A.bottom - j.bottom + k.bottom, - left: j.left - A.left + k.left, - right: A.right - j.right + k.right + }), F = Da(Object.assign({}, b, U)), T = A === Xt ? F : P, J = { + top: R.top - T.top + k.top, + bottom: T.bottom - R.bottom + k.bottom, + left: R.left - T.left + k.left, + right: T.right - R.right + k.right }, X = e.modifiersData.offset; - if (T === Xt && X) { + if (A === Xt && X) { var N = X[n]; Object.keys(J).forEach(function(H) { var ne = [ht, it].indexOf(H) >= 0 ? 1 : -1, G = [Je, it].indexOf(H) >= 0 ? "y" : "x"; @@ -1975,13 +1975,13 @@ var ir = { function lr() { for (var e = arguments.length, a = new Array(e), t = 0; t < e; t++) a[t] = arguments[t]; - return !a.some(function(o) { - return !(o && typeof o.getBoundingClientRect == "function"); + return !a.some(function(s) { + return !(s && typeof s.getBoundingClientRect == "function"); }); } function Fn(e) { e === void 0 && (e = {}); - var a = e, t = a.defaultModifiers, o = t === void 0 ? [] : t, n = a.defaultOptions, m = n === void 0 ? ir : n; + var a = e, t = a.defaultModifiers, s = t === void 0 ? [] : t, n = a.defaultOptions, m = n === void 0 ? ir : n; return function(d, p, y) { y === void 0 && (y = m); var v = { @@ -1995,7 +1995,7 @@ function Fn(e) { }, attributes: {}, styles: {} - }, x = [], T = !1, E = { + }, x = [], A = !1, E = { state: v, setOptions: function(k) { var V = typeof k == "function" ? k(v.options) : k; @@ -2003,7 +2003,7 @@ function Fn(e) { reference: Et(d) ? Jt(d) : d.contextElement ? Jt(d.contextElement) : [], popper: Jt(p) }; - var b = An(Nn([].concat(o, v.options.modifiers))); + var b = Tn(Nn([].concat(s, v.options.modifiers))); return v.orderedModifiers = b.filter(function(D) { return D.enabled; }), g(), E.update(); @@ -2014,7 +2014,7 @@ function Fn(e) { // For high frequency updates (e.g. `resize` and `scroll` events), always // prefer the async Popper#update method forceUpdate: function() { - if (!T) { + if (!A) { var k = v.elements, V = k.reference, b = k.popper; if (lr(V, b)) { v.rects = { @@ -2028,11 +2028,11 @@ function Fn(e) { v.reset = !1, D = -1; continue; } - var j = v.orderedModifiers[D], P = j.fn, U = j.options, F = U === void 0 ? {} : U, A = j.name; + var R = v.orderedModifiers[D], P = R.fn, U = R.options, F = U === void 0 ? {} : U, T = R.name; typeof P == "function" && (v = P({ state: v, options: F, - name: A, + name: T, instance: E }) || v); } @@ -2047,26 +2047,26 @@ function Fn(e) { }); }), destroy: function() { - w(), T = !0; + w(), A = !0; } }; if (!lr(d, p)) return E; E.setOptions(y).then(function(S) { - !T && y.onFirstUpdate && y.onFirstUpdate(S); + !A && y.onFirstUpdate && y.onFirstUpdate(S); }); function g() { v.orderedModifiers.forEach(function(S) { var k = S.name, V = S.options, b = V === void 0 ? {} : V, D = S.effect; if (typeof D == "function") { - var j = D({ + var R = D({ state: v, name: k, instance: E, options: b }), P = function() { }; - x.push(j || P); + x.push(R || P); } }); } @@ -2078,17 +2078,17 @@ function Fn(e) { return E; }; } -var sa = { +var oa = { passive: !0 }; function Un(e) { - var a = e.state, t = e.instance, o = e.options, n = o.scroll, m = n === void 0 ? !0 : n, l = o.resize, d = l === void 0 ? !0 : l, p = We(a.elements.popper), y = [].concat(a.scrollParents.reference, a.scrollParents.popper); + var a = e.state, t = e.instance, s = e.options, n = s.scroll, m = n === void 0 ? !0 : n, l = s.resize, d = l === void 0 ? !0 : l, p = We(a.elements.popper), y = [].concat(a.scrollParents.reference, a.scrollParents.popper); return m && y.forEach(function(v) { - v.addEventListener("scroll", t.update, sa); - }), d && p.addEventListener("resize", t.update, sa), function() { + v.addEventListener("scroll", t.update, oa); + }), d && p.addEventListener("resize", t.update, oa), function() { m && y.forEach(function(v) { - v.removeEventListener("scroll", t.update, sa); - }), d && p.removeEventListener("resize", t.update, sa); + v.removeEventListener("scroll", t.update, oa); + }), d && p.removeEventListener("resize", t.update, oa); }; } var Hn = { @@ -2122,14 +2122,14 @@ var _n = { left: "auto" }; function Gn(e, a) { - var t = e.x, o = e.y, n = a.devicePixelRatio || 1; + var t = e.x, s = e.y, n = a.devicePixelRatio || 1; return { - x: Rt(t * n) / n || 0, - y: Rt(o * n) / n || 0 + x: jt(t * n) / n || 0, + y: jt(s * n) / n || 0 }; } -function or(e) { - var a, t = e.popper, o = e.popperRect, n = e.placement, m = e.variation, l = e.offsets, d = e.position, p = e.gpuAcceleration, y = e.adaptive, v = e.roundOffsets, x = e.isFixed, T = l.x, E = T === void 0 ? 0 : T, g = l.y, w = g === void 0 ? 0 : g, S = typeof v == "function" ? v({ +function sr(e) { + var a, t = e.popper, s = e.popperRect, n = e.placement, m = e.variation, l = e.offsets, d = e.position, p = e.gpuAcceleration, y = e.adaptive, v = e.roundOffsets, x = e.isFixed, A = l.x, E = A === void 0 ? 0 : A, g = l.y, w = g === void 0 ? 0 : g, S = typeof v == "function" ? v({ x: E, y: w }) : { @@ -2137,24 +2137,24 @@ function or(e) { y: w }; E = S.x, w = S.y; - var k = l.hasOwnProperty("x"), V = l.hasOwnProperty("y"), b = st, D = Je, j = window; + var k = l.hasOwnProperty("x"), V = l.hasOwnProperty("y"), b = ot, D = Je, R = window; if (y) { var P = ha(t), U = "clientHeight", F = "clientWidth"; - if (P === We(t) && (P = mt(t), ut(P).position !== "static" && d === "absolute" && (U = "scrollHeight", F = "scrollWidth")), P = P, n === Je || (n === st || n === ht) && m === Qt) { + if (P === We(t) && (P = mt(t), ut(P).position !== "static" && d === "absolute" && (U = "scrollHeight", F = "scrollWidth")), P = P, n === Je || (n === ot || n === ht) && m === Qt) { D = it; - var A = x && P === j && j.visualViewport ? j.visualViewport.height : ( + var T = x && P === R && R.visualViewport ? R.visualViewport.height : ( // $FlowFixMe[prop-missing] P[U] ); - w -= A - o.height, w *= p ? 1 : -1; + w -= T - s.height, w *= p ? 1 : -1; } - if (n === st || (n === Je || n === it) && m === Qt) { + if (n === ot || (n === Je || n === it) && m === Qt) { b = ht; - var J = x && P === j && j.visualViewport ? j.visualViewport.width : ( + var J = x && P === R && R.visualViewport ? R.visualViewport.width : ( // $FlowFixMe[prop-missing] P[F] ); - E -= J - o.width, E *= p ? 1 : -1; + E -= J - s.width, E *= p ? 1 : -1; } } var X = Object.assign({ @@ -2168,12 +2168,12 @@ function or(e) { }; if (E = N.x, w = N.y, p) { var H; - return Object.assign({}, X, (H = {}, H[D] = V ? "0" : "", H[b] = k ? "0" : "", H.transform = (j.devicePixelRatio || 1) <= 1 ? "translate(" + E + "px, " + w + "px)" : "translate3d(" + E + "px, " + w + "px, 0)", H)); + return Object.assign({}, X, (H = {}, H[D] = V ? "0" : "", H[b] = k ? "0" : "", H.transform = (R.devicePixelRatio || 1) <= 1 ? "translate(" + E + "px, " + w + "px)" : "translate3d(" + E + "px, " + w + "px, 0)", H)); } return Object.assign({}, X, (a = {}, a[D] = V ? w + "px" : "", a[b] = k ? E + "px" : "", a.transform = "", a)); } function Kn(e) { - var a = e.state, t = e.options, o = t.gpuAcceleration, n = o === void 0 ? !0 : o, m = t.adaptive, l = m === void 0 ? !0 : m, d = t.roundOffsets, p = d === void 0 ? !0 : d, y = { + var a = e.state, t = e.options, s = t.gpuAcceleration, n = s === void 0 ? !0 : s, m = t.adaptive, l = m === void 0 ? !0 : m, d = t.roundOffsets, p = d === void 0 ? !0 : d, y = { placement: vt(a.placement), variation: zt(a.placement), popper: a.elements.popper, @@ -2181,12 +2181,12 @@ function Kn(e) { gpuAcceleration: n, isFixed: a.options.strategy === "fixed" }; - a.modifiersData.popperOffsets != null && (a.styles.popper = Object.assign({}, a.styles.popper, or(Object.assign({}, y, { + a.modifiersData.popperOffsets != null && (a.styles.popper = Object.assign({}, a.styles.popper, sr(Object.assign({}, y, { offsets: a.modifiersData.popperOffsets, position: a.options.strategy, adaptive: l, roundOffsets: p - })))), a.modifiersData.arrow != null && (a.styles.arrow = Object.assign({}, a.styles.arrow, or(Object.assign({}, y, { + })))), a.modifiersData.arrow != null && (a.styles.arrow = Object.assign({}, a.styles.arrow, sr(Object.assign({}, y, { offsets: a.modifiersData.arrow, position: "absolute", adaptive: !1, @@ -2205,8 +2205,8 @@ var Xn = { function Yn(e) { var a = e.state; Object.keys(a.elements).forEach(function(t) { - var o = a.styles[t] || {}, n = a.attributes[t] || {}, m = a.elements[t]; - !Ge(m) || !nt(m) || (Object.assign(m.style, o), Object.keys(n).forEach(function(l) { + var s = a.styles[t] || {}, n = a.attributes[t] || {}, m = a.elements[t]; + !Ge(m) || !nt(m) || (Object.assign(m.style, s), Object.keys(n).forEach(function(l) { var d = n[l]; d === !1 ? m.removeAttribute(l) : m.setAttribute(l, d === !0 ? "" : d); })); @@ -2226,8 +2226,8 @@ function Jn(e) { reference: {} }; return Object.assign(a.elements.popper.style, t.popper), a.styles = t, a.elements.arrow && Object.assign(a.elements.arrow.style, t.arrow), function() { - Object.keys(a.elements).forEach(function(o) { - var n = a.elements[o], m = a.attributes[o] || {}, l = Object.keys(a.styles.hasOwnProperty(o) ? a.styles[o] : t[o]), d = l.reduce(function(p, y) { + Object.keys(a.elements).forEach(function(s) { + var n = a.elements[s], m = a.attributes[s] || {}, l = Object.keys(a.styles.hasOwnProperty(s) ? a.styles[s] : t[s]), d = l.reduce(function(p, y) { return p[y] = "", p; }, {}); !Ge(n) || !nt(n) || (Object.assign(n.style, d), Object.keys(m).forEach(function(p) { @@ -2253,40 +2253,40 @@ function ca(e, a, t) { return xt(e, fa(a, t)); } function ai(e, a, t) { - var o = ca(e, a, t); - return o > t ? t : o; + var s = ca(e, a, t); + return s > t ? t : s; } function ri(e) { - var a = e.state, t = e.options, o = e.name, n = t.mainAxis, m = n === void 0 ? !0 : n, l = t.altAxis, d = l === void 0 ? !1 : l, p = t.boundary, y = t.rootBoundary, v = t.altBoundary, x = t.padding, T = t.tether, E = T === void 0 ? !0 : T, g = t.tetherOffset, w = g === void 0 ? 0 : g, S = Ra(a, { + var a = e.state, t = e.options, s = e.name, n = t.mainAxis, m = n === void 0 ? !0 : n, l = t.altAxis, d = l === void 0 ? !1 : l, p = t.boundary, y = t.rootBoundary, v = t.altBoundary, x = t.padding, A = t.tether, E = A === void 0 ? !0 : A, g = t.tetherOffset, w = g === void 0 ? 0 : g, S = ja(a, { boundary: p, rootBoundary: y, padding: x, altBoundary: v - }), k = vt(a.placement), V = zt(a.placement), b = !V, D = hr(k), j = ti(D), P = a.modifiersData.popperOffsets, U = a.rects.reference, F = a.rects.popper, A = typeof w == "function" ? w(Object.assign({}, a.rects, { + }), k = vt(a.placement), V = zt(a.placement), b = !V, D = hr(k), R = ti(D), P = a.modifiersData.popperOffsets, U = a.rects.reference, F = a.rects.popper, T = typeof w == "function" ? w(Object.assign({}, a.rects, { placement: a.placement - })) : w, J = typeof A == "number" ? { - mainAxis: A, - altAxis: A + })) : w, J = typeof T == "number" ? { + mainAxis: T, + altAxis: T } : Object.assign({ mainAxis: 0, altAxis: 0 - }, A), X = a.modifiersData.offset ? a.modifiersData.offset[a.placement] : null, N = { + }, T), X = a.modifiersData.offset ? a.modifiersData.offset[a.placement] : null, N = { x: 0, y: 0 }; if (P) { if (m) { - var H, ne = D === "y" ? Je : st, G = D === "y" ? it : ht, ee = D === "y" ? "height" : "width", oe = P[D], Ae = oe + S[ne], Y = oe - S[G], Z = E ? -F[ee] / 2 : 0, te = V === It ? U[ee] : F[ee], pe = V === It ? -F[ee] : -U[ee], Le = a.elements.arrow, ce = E && Le ? fr(Le) : { + var H, ne = D === "y" ? Je : ot, G = D === "y" ? it : ht, ee = D === "y" ? "height" : "width", se = P[D], Te = se + S[ne], Y = se - S[G], Z = E ? -F[ee] / 2 : 0, te = V === It ? U[ee] : F[ee], pe = V === It ? -F[ee] : -U[ee], Le = a.elements.arrow, ce = E && Le ? fr(Le) : { width: 0, height: 0 - }, _ = a.modifiersData["arrow#persistent"] ? a.modifiersData["arrow#persistent"].padding : gr(), h = _[ne], R = _[G], be = ca(0, U[ee], ce[ee]), je = b ? U[ee] / 2 - Z - be - h - J.mainAxis : te - be - h - J.mainAxis, gt = b ? -U[ee] / 2 + Z + be + R + J.mainAxis : pe + be + R + J.mainAxis, bt = a.elements.arrow && ha(a.elements.arrow), Ke = bt ? D === "y" ? bt.clientTop || 0 : bt.clientLeft || 0 : 0, kt = (H = X == null ? void 0 : X[D]) != null ? H : 0, Ft = oe + je - kt - Ke, Qe = oe + gt - kt, Pt = ca(E ? fa(Ae, Ft) : Ae, oe, E ? xt(Y, Qe) : Y); - P[D] = Pt, N[D] = Pt - oe; + }, _ = a.modifiersData["arrow#persistent"] ? a.modifiersData["arrow#persistent"].padding : gr(), h = _[ne], j = _[G], be = ca(0, U[ee], ce[ee]), Re = b ? U[ee] / 2 - Z - be - h - J.mainAxis : te - be - h - J.mainAxis, gt = b ? -U[ee] / 2 + Z + be + j + J.mainAxis : pe + be + j + J.mainAxis, bt = a.elements.arrow && ha(a.elements.arrow), Ke = bt ? D === "y" ? bt.clientTop || 0 : bt.clientLeft || 0 : 0, kt = (H = X == null ? void 0 : X[D]) != null ? H : 0, Ft = se + Re - kt - Ke, Qe = se + gt - kt, Pt = ca(E ? fa(Te, Ft) : Te, se, E ? xt(Y, Qe) : Y); + P[D] = Pt, N[D] = Pt - se; } if (d) { - var Ze, _e = D === "x" ? Je : st, qe = D === "x" ? it : ht, ze = P[j], Xe = j === "y" ? "height" : "width", yt = ze + S[_e], Ct = ze - S[qe], Ie = [Je, st].indexOf(k) !== -1, ct = (Ze = X == null ? void 0 : X[j]) != null ? Ze : 0, et = Ie ? yt : ze - U[Xe] - F[Xe] - ct + J.altAxis, tt = Ie ? ze + U[Xe] + F[Xe] - ct - J.altAxis : Ct, Lt = E && Ie ? ai(et, ze, tt) : ca(E ? et : yt, ze, E ? tt : Ct); - P[j] = Lt, N[j] = Lt - ze; + var Ze, _e = D === "x" ? Je : ot, qe = D === "x" ? it : ht, ze = P[R], Xe = R === "y" ? "height" : "width", yt = ze + S[_e], Ct = ze - S[qe], Ie = [Je, ot].indexOf(k) !== -1, ct = (Ze = X == null ? void 0 : X[R]) != null ? Ze : 0, et = Ie ? yt : ze - U[Xe] - F[Xe] - ct + J.altAxis, tt = Ie ? ze + U[Xe] + F[Xe] - ct - J.altAxis : Ct, Lt = E && Ie ? ai(et, ze, tt) : ca(E ? et : yt, ze, E ? tt : Ct); + P[R] = Lt, N[R] = Lt - ze; } - a.modifiersData[o] = N; + a.modifiersData[s] = N; } } var ni = { @@ -2310,21 +2310,21 @@ var li = { start: "end", end: "start" }; -function sr(e) { +function or(e) { return e.replace(/start|end/g, function(a) { return li[a]; }); } -function oi(e, a) { +function si(e, a) { a === void 0 && (a = {}); - var t = a, o = t.placement, n = t.boundary, m = t.rootBoundary, l = t.padding, d = t.flipVariations, p = t.allowedAutoPlacements, y = p === void 0 ? bn : p, v = zt(o), x = v ? d ? rr : rr.filter(function(g) { + var t = a, s = t.placement, n = t.boundary, m = t.rootBoundary, l = t.padding, d = t.flipVariations, p = t.allowedAutoPlacements, y = p === void 0 ? bn : p, v = zt(s), x = v ? d ? rr : rr.filter(function(g) { return zt(g) === v; - }) : ma, T = x.filter(function(g) { + }) : ma, A = x.filter(function(g) { return y.indexOf(g) >= 0; }); - T.length === 0 && (T = x); - var E = T.reduce(function(g, w) { - return g[w] = Ra(e, { + A.length === 0 && (A = x); + var E = A.reduce(function(g, w) { + return g[w] = ja(e, { placement: w, boundary: n, rootBoundary: m, @@ -2335,17 +2335,17 @@ function oi(e, a) { return E[g] - E[w]; }); } -function si(e) { - if (vt(e) === ja) +function oi(e) { + if (vt(e) === Ra) return []; var a = da(e); - return [sr(e), a, sr(a)]; + return [or(e), a, or(a)]; } function ui(e) { - var a = e.state, t = e.options, o = e.name; - if (!a.modifiersData[o]._skip) { - for (var n = t.mainAxis, m = n === void 0 ? !0 : n, l = t.altAxis, d = l === void 0 ? !0 : l, p = t.fallbackPlacements, y = t.padding, v = t.boundary, x = t.rootBoundary, T = t.altBoundary, E = t.flipVariations, g = E === void 0 ? !0 : E, w = t.allowedAutoPlacements, S = a.options.placement, k = vt(S), V = k === S, b = p || (V || !g ? [da(S)] : si(S)), D = [S].concat(b).reduce(function(ce, _) { - return ce.concat(vt(_) === ja ? oi(a, { + var a = e.state, t = e.options, s = e.name; + if (!a.modifiersData[s]._skip) { + for (var n = t.mainAxis, m = n === void 0 ? !0 : n, l = t.altAxis, d = l === void 0 ? !0 : l, p = t.fallbackPlacements, y = t.padding, v = t.boundary, x = t.rootBoundary, A = t.altBoundary, E = t.flipVariations, g = E === void 0 ? !0 : E, w = t.allowedAutoPlacements, S = a.options.placement, k = vt(S), V = k === S, b = p || (V || !g ? [da(S)] : oi(S)), D = [S].concat(b).reduce(function(ce, _) { + return ce.concat(vt(_) === Ra ? si(a, { placement: _, boundary: v, rootBoundary: x, @@ -2353,41 +2353,41 @@ function ui(e) { flipVariations: g, allowedAutoPlacements: w }) : _); - }, []), j = a.rects.reference, P = a.rects.popper, U = /* @__PURE__ */ new Map(), F = !0, A = D[0], J = 0; J < D.length; J++) { - var X = D[J], N = vt(X), H = zt(X) === It, ne = [Je, it].indexOf(N) >= 0, G = ne ? "width" : "height", ee = Ra(a, { + }, []), R = a.rects.reference, P = a.rects.popper, U = /* @__PURE__ */ new Map(), F = !0, T = D[0], J = 0; J < D.length; J++) { + var X = D[J], N = vt(X), H = zt(X) === It, ne = [Je, it].indexOf(N) >= 0, G = ne ? "width" : "height", ee = ja(a, { placement: X, boundary: v, rootBoundary: x, - altBoundary: T, + altBoundary: A, padding: y - }), oe = ne ? H ? ht : st : H ? it : Je; - j[G] > P[G] && (oe = da(oe)); - var Ae = da(oe), Y = []; - if (m && Y.push(ee[N] <= 0), d && Y.push(ee[oe] <= 0, ee[Ae] <= 0), Y.every(function(ce) { + }), se = ne ? H ? ht : ot : H ? it : Je; + R[G] > P[G] && (se = da(se)); + var Te = da(se), Y = []; + if (m && Y.push(ee[N] <= 0), d && Y.push(ee[se] <= 0, ee[Te] <= 0), Y.every(function(ce) { return ce; })) { - A = X, F = !1; + T = X, F = !1; break; } U.set(X, Y); } if (F) for (var Z = g ? 3 : 1, te = function(_) { - var h = D.find(function(R) { - var be = U.get(R); + var h = D.find(function(j) { + var be = U.get(j); if (be) - return be.slice(0, _).every(function(je) { - return je; + return be.slice(0, _).every(function(Re) { + return Re; }); }); if (h) - return A = h, "break"; + return T = h, "break"; }, pe = Z; pe > 0; pe--) { var Le = te(pe); if (Le === "break") break; } - a.placement !== A && (a.modifiersData[o]._skip = !0, a.placement = A, a.reset = !0); + a.placement !== T && (a.modifiersData[s]._skip = !0, a.placement = T, a.reset = !0); } } var ci = { @@ -2401,8 +2401,8 @@ var ci = { } }; function di(e, a, t) { - const { disabled: o, appendTo: n, appendToBody: m, openDirection: l } = Me(e), d = Zt().proxy, p = t.multiselect, y = t.dropdown, v = he(!1), x = he(null), T = he(null), E = K(() => n.value || m.value), g = K(() => l.value === "top" && T.value === "bottom" || l.value === "bottom" && T.value !== "top" ? "bottom" : "top"), w = () => { - v.value || o.value || (v.value = !0, a.emit("open", d), E.value && Yt(() => { + const { disabled: s, appendTo: n, appendToBody: m, openDirection: l } = Me(e), d = Zt().proxy, p = t.multiselect, y = t.dropdown, v = he(!1), x = he(null), A = he(null), E = K(() => n.value || m.value), g = K(() => l.value === "top" && A.value === "bottom" || l.value === "bottom" && A.value !== "top" ? "bottom" : "top"), w = () => { + v.value || s.value || (v.value = !0, a.emit("open", d), E.value && Yt(() => { k(); })); }, S = () => { @@ -2411,10 +2411,10 @@ function di(e, a, t) { if (!x.value) return; let b = parseInt(window.getComputedStyle(y.value).borderTopWidth.replace("px", "")), D = parseInt(window.getComputedStyle(y.value).borderBottomWidth.replace("px", "")); - x.value.setOptions((j) => ({ - ...j, + x.value.setOptions((R) => ({ + ...R, modifiers: [ - ...j.modifiers, + ...R.modifiers, { name: "offset", options: { @@ -2458,7 +2458,7 @@ function di(e, a, t) { enabled: !0, phase: "write", fn({ state: b }) { - T.value = b.placement; + A.value = b.placement; } } ] @@ -2475,10 +2475,10 @@ function di(e, a, t) { }; } function fi(e, a, t) { - const { searchable: o, disabled: n, clearOnBlur: m } = Me(e), l = t.input, d = t.open, p = t.close, y = t.clearSearch, v = t.isOpen, x = t.wrapper, T = t.tags, E = he(!1), g = he(!1), w = K(() => o.value || n.value ? -1 : 0), S = () => { - o.value && l.value.blur(), x.value.blur(); + const { searchable: s, disabled: n, clearOnBlur: m } = Me(e), l = t.input, d = t.open, p = t.close, y = t.clearSearch, v = t.isOpen, x = t.wrapper, A = t.tags, E = he(!1), g = he(!1), w = K(() => s.value || n.value ? -1 : 0), S = () => { + s.value && l.value.blur(), x.value.blur(); }, k = () => { - o.value && !n.value && l.value.focus(); + s.value && !n.value && l.value.focus(); }, V = (F = !0) => { n.value || (E.value = !0, F && d()); }, b = () => { @@ -2504,7 +2504,7 @@ function fi(e, a, t) { b(), S(); }, handleMousedown: (F) => { - g.value = !0, v.value && (F.target.isEqualNode(x.value) || F.target.isEqualNode(T.value)) ? setTimeout(() => { + g.value = !0, v.value && (F.target.isEqualNode(x.value) || F.target.isEqualNode(A.value)) ? setTimeout(() => { b(); }, 0) : !v.value && (document.activeElement.isEqualNode(x.value) || document.activeElement.isEqualNode(l.value)) && V(), setTimeout(() => { g.value = !1; @@ -2514,7 +2514,7 @@ function fi(e, a, t) { } function pi(e, a, t) { const { - mode: o, + mode: s, addTagOn: n, openDirection: m, searchable: l, @@ -2523,18 +2523,18 @@ function pi(e, a, t) { groups: y, addOptionOn: v, createTag: x, - createOption: T, + createOption: A, reverse: E - } = Me(e), g = Zt().proxy, w = t.iv, S = t.update, k = t.deselect, V = t.search, b = t.setPointer, D = t.selectPointer, j = t.backwardPointer, P = t.forwardPointer, U = t.multiselect, F = t.wrapper, A = t.tags, J = t.isOpen, X = t.open, N = t.blur, H = t.fo, ne = K(() => x.value || T.value || !1), G = K(() => n.value !== void 0 ? n.value : v.value !== void 0 ? v.value : ["enter"]), ee = () => { - o.value === "tags" && !d.value && ne.value && l.value && !y.value && b(H.value[H.value.map((Y) => Y[p.value]).indexOf(V.value)]); + } = Me(e), g = Zt().proxy, w = t.iv, S = t.update, k = t.deselect, V = t.search, b = t.setPointer, D = t.selectPointer, R = t.backwardPointer, P = t.forwardPointer, U = t.multiselect, F = t.wrapper, T = t.tags, J = t.isOpen, X = t.open, N = t.blur, H = t.fo, ne = K(() => x.value || A.value || !1), G = K(() => n.value !== void 0 ? n.value : v.value !== void 0 ? v.value : ["enter"]), ee = () => { + s.value === "tags" && !d.value && ne.value && l.value && !y.value && b(H.value[H.value.map((Y) => Y[p.value]).indexOf(V.value)]); }; return { handleKeydown: (Y) => { a.emit("keydown", Y, g); let Z, te; - switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(Y.key) !== -1 && o.value === "tags" && (Z = [...U.value.querySelectorAll("[data-tags] > *")].filter((pe) => pe !== A.value), te = Z.findIndex((pe) => pe === document.activeElement)), Y.key) { + switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(Y.key) !== -1 && s.value === "tags" && (Z = [...U.value.querySelectorAll("[data-tags] > *")].filter((pe) => pe !== T.value), te = Z.findIndex((pe) => pe === document.activeElement)), Y.key) { case "Backspace": - if (o.value === "single" || l.value && [null, ""].indexOf(V.value) === -1 || w.value.length === 0) + if (s.value === "single" || l.value && [null, ""].indexOf(V.value) === -1 || w.value.length === 0) return; let pe = w.value.filter((Le) => !Le.disabled && Le.remove !== !1); pe.length && k(pe[pe.length - 1]); @@ -2543,7 +2543,7 @@ function pi(e, a, t) { if (Y.preventDefault(), Y.keyCode === 229) return; if (te !== -1 && te !== void 0) { - S([...w.value].filter((Le, ce) => ce !== te)), te === Z.length - 1 && (Z.length - 1 ? Z[Z.length - 2].focus() : l.value ? A.value.querySelector("input").focus() : F.value.focus()); + S([...w.value].filter((Le, ce) => ce !== te)), te === Z.length - 1 && (Z.length - 1 ? Z[Z.length - 2].focus() : l.value ? T.value.querySelector("input").focus() : F.value.focus()); return; } if (G.value.indexOf("enter") === -1 && ne.value) @@ -2574,7 +2574,7 @@ function pi(e, a, t) { case "ArrowUp": if (Y.preventDefault(), !d.value) return; - J.value || X(), j(); + J.value || X(), R(); break; case "ArrowDown": if (Y.preventDefault(), !d.value) @@ -2582,14 +2582,14 @@ function pi(e, a, t) { J.value || X(), P(); break; case "ArrowLeft": - if (l.value && A.value && A.value.querySelector("input").selectionStart || Y.shiftKey || o.value !== "tags" || !w.value || !w.value.length) + if (l.value && T.value && T.value.querySelector("input").selectionStart || Y.shiftKey || s.value !== "tags" || !w.value || !w.value.length) return; Y.preventDefault(), te === -1 ? Z[Z.length - 1].focus() : te > 0 && Z[te - 1].focus(); break; case "ArrowRight": - if (te === -1 || Y.shiftKey || o.value !== "tags" || !w.value || !w.value.length) + if (te === -1 || Y.shiftKey || s.value !== "tags" || !w.value || !w.value.length) return; - Y.preventDefault(), Z.length > te + 1 ? Z[te + 1].focus() : l.value ? A.value.querySelector("input").focus() : l.value || F.value.focus(); + Y.preventDefault(), Z.length > te + 1 ? Z[te + 1].focus() : l.value ? T.value.querySelector("input").focus() : l.value || F.value.focus(); break; } }, @@ -2601,11 +2601,11 @@ function pi(e, a, t) { } function vi(e, a, t) { const { - classes: o, + classes: s, disabled: n, showOptions: m, breakTags: l - } = Me(e), d = t.isOpen, p = t.isPointed, y = t.isSelected, v = t.isDisabled, x = t.isActive, T = t.canPointGroups, E = t.resolving, g = t.fo, w = t.placement, S = K(() => ({ + } = Me(e), d = t.isOpen, p = t.isPointed, y = t.isSelected, v = t.isDisabled, x = t.isActive, A = t.canPointGroups, E = t.resolving, g = t.fo, w = t.placement, S = K(() => ({ container: "multiselect", containerDisabled: "is-disabled", containerOpen: "is-open", @@ -2659,7 +2659,7 @@ function vi(e, a, t) { fakeInput: "multiselect-fake-input", assist: "multiselect-assistive-text", spacer: "multiselect-spacer", - ...o.value + ...s.value })), k = K(() => !!(d.value && m.value && (!E.value || E.value && g.value.length))); return { classList: K(() => { @@ -2692,13 +2692,13 @@ function vi(e, a, t) { options: [b.options].concat(w.value === "top" ? b.optionsTop : []), group: b.group, groupLabel: (D) => { - let j = [b.groupLabel]; - return p(D) ? j.push(y(D) ? b.groupLabelSelectedPointed : b.groupLabelPointed) : y(D) && T.value ? j.push(v(D) ? b.groupLabelSelectedDisabled : b.groupLabelSelected) : v(D) && j.push(b.groupLabelDisabled), T.value && j.push(b.groupLabelPointable), j; + let R = [b.groupLabel]; + return p(D) ? R.push(y(D) ? b.groupLabelSelectedPointed : b.groupLabelPointed) : y(D) && A.value ? R.push(v(D) ? b.groupLabelSelectedDisabled : b.groupLabelSelected) : v(D) && R.push(b.groupLabelDisabled), A.value && R.push(b.groupLabelPointable), R; }, groupOptions: b.groupOptions, - option: (D, j) => { + option: (D, R) => { let P = [b.option]; - return p(D) ? P.push(y(D) ? b.optionSelectedPointed : b.optionPointed) : y(D) ? P.push(v(D) ? b.optionSelectedDisabled : b.optionSelected) : (v(D) || j && v(j)) && P.push(b.optionDisabled), P; + return p(D) ? P.push(y(D) ? b.optionSelectedPointed : b.optionPointed) : y(D) ? P.push(v(D) ? b.optionSelectedDisabled : b.optionSelected) : (v(D) || R && v(R)) && P.push(b.optionDisabled), P; }, noOptions: b.noOptions, noResults: b.noResults, @@ -2711,13 +2711,13 @@ function vi(e, a, t) { } function hi(e, a, t) { const { - limit: o, + limit: s, infinite: n - } = Me(e), m = t.isOpen, l = t.offset, d = t.search, p = t.pfo, y = t.eo, v = he(null), x = he(null), T = K(() => l.value < p.value.length), E = (w) => { + } = Me(e), m = t.isOpen, l = t.offset, d = t.search, p = t.pfo, y = t.eo, v = he(null), x = he(null), A = K(() => l.value < p.value.length), E = (w) => { const { isIntersecting: S, target: k } = w[0]; if (S) { const V = k.offsetParent, b = V.scrollTop; - l.value += o.value == -1 ? 10 : o.value, Yt(() => { + l.value += s.value == -1 ? 10 : s.value, Yt(() => { V.scrollTop = b; }); } @@ -2727,19 +2727,19 @@ function hi(e, a, t) { return ge(m, () => { n.value && g(); }), ge(d, () => { - n.value && (l.value = o.value, g()); + n.value && (l.value = s.value, g()); }, { flush: "post" }), ge(y, () => { n.value && g(); }, { immediate: !1, flush: "post" }), pa(() => { window && window.IntersectionObserver && (v.value = new IntersectionObserver(E)); }), { - hasMore: T, + hasMore: A, infiniteLoader: x }; } function mi(e, a, t) { const { - placeholder: o, + placeholder: s, id: n, valueProp: m, label: l, @@ -2747,7 +2747,7 @@ function mi(e, a, t) { groupLabel: p, aria: y, searchable: v - } = Me(e), x = t.pointer, T = t.iv, E = t.hasSelected, g = t.multipleLabelText, w = he(null), S = K(() => { + } = Me(e), x = t.pointer, A = t.iv, E = t.hasSelected, g = t.multipleLabelText, w = he(null), S = K(() => { let N = []; return n && n.value && N.push(n.value), N.push("assist"), N.join("-"); }), k = K(() => { @@ -2757,19 +2757,19 @@ function mi(e, a, t) { let N = []; if (n && n.value && N.push(n.value), x.value) return N.push(x.value.group ? "multiselect-group" : "multiselect-option"), N.push(x.value.group ? x.value.index : x.value[m.value]), N.join("-"); - }), b = K(() => o.value), D = K(() => d.value !== "single"), j = K(() => { + }), b = K(() => s.value), D = K(() => d.value !== "single"), R = K(() => { let N = ""; - return d.value === "single" && E.value && (N += T.value[l.value]), d.value === "multiple" && E.value && (N += g.value), d.value === "tags" && E.value && (N += T.value.map((H) => H[l.value]).join(", ")), N; + return d.value === "single" && E.value && (N += A.value[l.value]), d.value === "multiple" && E.value && (N += g.value), d.value === "tags" && E.value && (N += A.value.map((H) => H[l.value]).join(", ")), N; }), P = K(() => { let N = { ...y.value }; - return v.value && (N["aria-labelledby"] = N["aria-labelledby"] ? `${S.value} ${N["aria-labelledby"]}` : S.value, j.value && N["aria-label"] && (N["aria-label"] = `${j.value}, ${N["aria-label"]}`)), N; + return v.value && (N["aria-labelledby"] = N["aria-labelledby"] ? `${S.value} ${N["aria-labelledby"]}` : S.value, R.value && N["aria-label"] && (N["aria-label"] = `${R.value}, ${N["aria-label"]}`)), N; }), U = (N) => { let H = []; return n && n.value && H.push(n.value), H.push("multiselect-option"), H.push(N[m.value]), H.join("-"); }, F = (N) => { let H = []; return n && n.value && H.push(n.value), H.push("multiselect-group"), H.push(N.index), H.join("-"); - }, A = (N) => { + }, T = (N) => { let H = []; return H.push(N), H.join(" "); }, J = (N) => { @@ -2783,14 +2783,14 @@ function mi(e, a, t) { } }), { arias: P, - ariaLabel: j, + ariaLabel: R, ariaAssist: S, ariaControls: k, ariaPlaceholder: b, ariaMultiselectable: D, ariaActiveDescendant: V, ariaOptionId: U, - ariaOptionLabel: A, + ariaOptionLabel: T, ariaGroupId: F, ariaGroupLabel: J, ariaTagLabel: X @@ -2798,30 +2798,30 @@ function mi(e, a, t) { } function gi(e, a, t) { const { - locale: o, + locale: s, fallbackLocale: n } = Me(e); return { - localize: (l) => !l || typeof l != "object" ? l : l && l[o.value] ? l[o.value] : l && o.value && l[o.value.toUpperCase()] ? l[o.value.toUpperCase()] : l && l[n.value] ? l[n.value] : l && n.value && l[n.value.toUpperCase()] ? l[n.value.toUpperCase()] : l && Object.keys(l)[0] ? l[Object.keys(l)[0]] : "" + localize: (l) => !l || typeof l != "object" ? l : l && l[s.value] ? l[s.value] : l && s.value && l[s.value.toUpperCase()] ? l[s.value.toUpperCase()] : l && l[n.value] ? l[n.value] : l && n.value && l[n.value.toUpperCase()] ? l[n.value.toUpperCase()] : l && Object.keys(l)[0] ? l[Object.keys(l)[0]] : "" }; } function bi(e, a, t) { - const o = he(null), n = he(null), m = he(null), l = he(null), d = he(null); + const s = he(null), n = he(null), m = he(null), l = he(null), d = he(null); return { - multiselect: o, + multiselect: s, wrapper: n, tags: m, input: l, dropdown: d }; } -function yi(e, a, t, o = {}) { +function yi(e, a, t, s = {}) { return t.forEach((n) => { - n && (o = { - ...o, - ...n(e, a, o) + n && (s = { + ...s, + ...n(e, a, s) }); - }), o; + }), s; } var qa = { name: "Multiselect", @@ -3187,7 +3187,7 @@ var qa = { rn, tn, fi, - sn, + on, hi, un, pi, @@ -3204,8 +3204,8 @@ var qa = { })); } }; -const wi = ["id", "dir"], Si = ["tabindex", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable", "role"], Oi = ["type", "modelValue", "value", "autocomplete", "id", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable"], xi = ["onKeyup", "aria-label"], Ei = ["onClick"], ki = ["type", "modelValue", "value", "id", "autocomplete", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable"], Pi = ["innerHTML"], Ci = ["id"], Li = ["id"], Ti = ["id", "aria-label", "aria-selected"], Ai = ["data-pointed", "onMouseenter", "onMousedown"], Di = ["innerHTML"], Ni = ["aria-label"], Bi = ["data-pointed", "data-selected", "onMouseenter", "onMousedown", "id", "aria-selected", "aria-label"], Mi = ["data-pointed", "data-selected", "onMouseenter", "onMousedown", "id", "aria-selected", "aria-label"], Vi = ["innerHTML"], ji = ["innerHTML"], Ri = ["value"], qi = ["name", "value"], Ii = ["name", "value"], zi = ["id"]; -function Fi(e, a, t, o, n, m) { +const wi = ["id", "dir"], Si = ["tabindex", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable", "role"], Oi = ["type", "modelValue", "value", "autocomplete", "id", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable"], xi = ["onKeyup", "aria-label"], Ei = ["onClick"], ki = ["type", "modelValue", "value", "id", "autocomplete", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable"], Pi = ["innerHTML"], Ci = ["id"], Li = ["id"], Ai = ["id", "aria-label", "aria-selected"], Ti = ["data-pointed", "onMouseenter", "onMousedown"], Di = ["innerHTML"], Ni = ["aria-label"], Bi = ["data-pointed", "data-selected", "onMouseenter", "onMousedown", "id", "aria-selected", "aria-label"], Mi = ["data-pointed", "data-selected", "onMouseenter", "onMousedown", "id", "aria-selected", "aria-label"], Vi = ["innerHTML"], Ri = ["innerHTML"], ji = ["value"], qi = ["name", "value"], Ii = ["name", "value"], zi = ["id"]; +function Fi(e, a, t, s, n, m) { return re(), ie("div", { ref: "multiselect", class: de(e.classList.container), @@ -3228,7 +3228,7 @@ function Fi(e, a, t, o, n, m) { "aria-multiselectable": t.searchable ? void 0 : e.ariaMultiselectable, role: t.searchable ? void 0 : "combobox" }, t.searchable ? {} : e.arias), [ - se(" Search "), + oe(" Search "), t.mode !== "tags" && t.searchable && !t.disabled ? (re(), ie("input", ua({ key: 0, type: t.inputType, @@ -3250,8 +3250,8 @@ function Fi(e, a, t, o, n, m) { }, { ...t.attrs, ...e.arias - }), null, 16, Oi)) : se("v-if", !0), - se(" Tags (with search) "), + }), null, 16, Oi)) : oe("v-if", !0), + oe(" Tags (with search) "), t.mode == "tags" ? (re(), ie( "div", { @@ -3261,7 +3261,7 @@ function Fi(e, a, t, o, n, m) { }, [ (re(!0), ie( - ot, + st, null, pt(e.iv, (l, d, p) => Be(e.$slots, "tag", { option: l, @@ -3301,7 +3301,7 @@ function Fi(e, a, t, o, n, m) { 2 /* CLASS */ ) - ], 10, Ei)) : se("v-if", !0) + ], 10, Ei)) : oe("v-if", !0) ], 42, xi)) ])), 256 @@ -3314,7 +3314,7 @@ function Fi(e, a, t, o, n, m) { ref: "tags" }, [ - se(" Used for measuring search width "), + oe(" Used for measuring search width "), $( "span", { @@ -3324,7 +3324,7 @@ function Fi(e, a, t, o, n, m) { 3 /* TEXT, CLASS */ ), - se(" Actual search input "), + oe(" Actual search input "), t.searchable && !t.disabled ? (re(), ie("input", ua({ key: 0, type: t.inputType, @@ -3346,7 +3346,7 @@ function Fi(e, a, t, o, n, m) { }, { ...t.attrs, ...e.arias - }), null, 16, ki)) : se("v-if", !0) + }), null, 16, ki)) : oe("v-if", !0) ], 2 /* CLASS */ @@ -3354,8 +3354,8 @@ function Fi(e, a, t, o, n, m) { ], 2 /* CLASS */ - )) : se("v-if", !0), - se(" Single label "), + )) : oe("v-if", !0), + oe(" Single label "), t.mode == "single" && e.hasSelected && !e.search && e.iv ? Be(e.$slots, "singlelabel", { key: 2, value: e.iv @@ -3379,8 +3379,8 @@ function Fi(e, a, t, o, n, m) { 2 /* CLASS */ ) - ]) : se("v-if", !0), - se(" Multiple label "), + ]) : oe("v-if", !0), + oe(" Multiple label "), t.mode == "multiple" && e.hasSelected && !e.search ? Be(e.$slots, "multiplelabel", { key: 3, values: e.iv @@ -3389,8 +3389,8 @@ function Fi(e, a, t, o, n, m) { class: de(e.classList.multipleLabel), innerHTML: e.multipleLabelText }, null, 10, Pi) - ]) : se("v-if", !0), - se(" Placeholder "), + ]) : oe("v-if", !0), + oe(" Placeholder "), t.placeholder && !e.hasSelected && !e.search ? Be(e.$slots, "placeholder", { key: 4 }, () => [ $( "div", @@ -3402,8 +3402,8 @@ function Fi(e, a, t, o, n, m) { 3 /* TEXT, CLASS */ ) - ]) : se("v-if", !0), - se(" Spinner "), + ]) : oe("v-if", !0), + oe(" Spinner "), t.loading || e.resolving ? Be(e.$slots, "spinner", { key: 5 }, () => [ $( "span", @@ -3415,8 +3415,8 @@ function Fi(e, a, t, o, n, m) { 2 /* CLASS */ ) - ]) : se("v-if", !0), - se(" Clear "), + ]) : oe("v-if", !0), + oe(" Clear "), e.hasSelected && !t.disabled && t.canClear && !e.busy ? Be(e.$slots, "clear", { key: 6, clear: e.clear @@ -3447,8 +3447,8 @@ function Fi(e, a, t, o, n, m) { 34 /* CLASS, NEED_HYDRATION */ ) - ]) : se("v-if", !0), - se(" Caret "), + ]) : oe("v-if", !0), + oe(" Caret "), t.caret && t.showOptions ? Be(e.$slots, "caret", { key: 7, handleCaretClick: e.handleCaretClick, @@ -3465,9 +3465,9 @@ function Fi(e, a, t, o, n, m) { 2 /* CLASS */ ) - ]) : se("v-if", !0) + ]) : oe("v-if", !0) ], 16, Si), - se(" Options "), + oe(" Options "), (re(), ur(Dr, { to: t.appendTo || "body", disabled: !t.appendToBody && !t.appendTo @@ -3487,7 +3487,7 @@ function Fi(e, a, t, o, n, m) { role: "listbox" }, [ t.groups ? (re(!0), ie( - ot, + st, { key: 0 }, pt(e.fg, (l, d, p) => (re(), ie("li", { class: de(e.classList.group), @@ -3497,7 +3497,7 @@ function Fi(e, a, t, o, n, m) { "aria-selected": e.isSelected(l), role: "option" }, [ - l.__CREATE__ ? se("v-if", !0) : (re(), ie("div", { + l.__CREATE__ ? oe("v-if", !0) : (re(), ie("div", { key: 0, class: de(e.classList.groupLabel(l)), "data-pointed": e.isPointed(l), @@ -3513,22 +3513,22 @@ function Fi(e, a, t, o, n, m) { innerHTML: e.localize(l[t.groupLabel]) }, null, 8, Di) ]) - ], 42, Ai)), + ], 42, Ti)), $("ul", { class: de(e.classList.groupOptions), "aria-label": e.ariaGroupLabel(e.localize(l[t.groupLabel])), role: "group" }, [ (re(!0), ie( - ot, + st, null, pt(l.__VISIBLE__, (y, v, x) => (re(), ie("li", { class: de(e.classList.option(y, l)), "data-pointed": e.isPointed(y), "data-selected": e.isSelected(y) || void 0, key: x, - onMouseenter: (T) => e.setPointer(y), - onMousedown: Vt((T) => e.handleOptionClick(y), ["prevent"]), + onMouseenter: (A) => e.setPointer(y), + onMousedown: Vt((A) => e.handleOptionClick(y), ["prevent"]), id: e.ariaOptionId(y), "aria-selected": e.isSelected(y), "aria-label": e.ariaOptionLabel(e.localize(y[t.label])), @@ -3553,11 +3553,11 @@ function Fi(e, a, t, o, n, m) { /* KEYED_FRAGMENT */ )) ], 10, Ni) - ], 10, Ti))), + ], 10, Ai))), 128 /* KEYED_FRAGMENT */ )) : (re(!0), ie( - ot, + st, { key: 1 }, pt(e.fo, (l, d, p) => (re(), ie("li", { class: de(e.classList.option(l)), @@ -3595,13 +3595,13 @@ function Fi(e, a, t, o, n, m) { class: de(e.classList.noOptions), innerHTML: e.localize(t.noOptionsText) }, null, 10, Vi) - ]) : se("v-if", !0), + ]) : oe("v-if", !0), e.noResults ? Be(e.$slots, "noresults", { key: 1 }, () => [ $("div", { class: de(e.classList.noResults), innerHTML: e.localize(t.noResultsText) - }, null, 10, ji) - ]) : se("v-if", !0), + }, null, 10, Ri) + ]) : oe("v-if", !0), t.infinite && e.hasMore ? (re(), ie( "div", { @@ -3624,21 +3624,21 @@ function Fi(e, a, t, o, n, m) { ], 2 /* CLASS */ - )) : se("v-if", !0), + )) : oe("v-if", !0), Be(e.$slots, "afterlist", { options: e.fo }) ], 42, Ci) ], 8, ["to", "disabled"])), - se(" Hacky input element to show HTML5 required warning "), + oe(" Hacky input element to show HTML5 required warning "), t.required ? (re(), ie("input", { key: 0, class: de(e.classList.fakeInput), tabindex: "-1", value: e.textValue, required: "" - }, null, 10, Ri)) : se("v-if", !0), - se(" Native input support "), + }, null, 10, ji)) : oe("v-if", !0), + oe(" Native input support "), t.nativeSupport ? (re(), ie( - ot, + st, { key: 1 }, [ t.mode == "single" ? (re(), ie("input", { @@ -3647,7 +3647,7 @@ function Fi(e, a, t, o, n, m) { name: t.name, value: e.plainValue !== void 0 ? e.plainValue : "" }, null, 8, qi)) : (re(!0), ie( - ot, + st, { key: 1 }, pt(e.plainValue, (l, d) => (re(), ie("input", { type: "hidden", @@ -3661,15 +3661,15 @@ function Fi(e, a, t, o, n, m) { ], 64 /* STABLE_FRAGMENT */ - )) : se("v-if", !0), - se(" Screen reader assistive text "), + )) : oe("v-if", !0), + oe(" Screen reader assistive text "), t.searchable && e.hasSelected ? (re(), ie("div", { key: 2, class: de(e.classList.assist), id: e.ariaAssist, "aria-hidden": "true" - }, Ce(e.ariaLabel), 11, zi)) : se("v-if", !0), - se(" Create height for empty input "), + }, Ce(e.ariaLabel), 11, zi)) : oe("v-if", !0), + oe(" Create height for empty input "), $( "div", { @@ -3688,7 +3688,7 @@ const Ui = { props: ["tab"], // Imported components that need to be available in the