evo-vue-carousel 1.0.14 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,28 +1,28 @@
1
- import { Comment as e, Fragment as t, Static as n, Text as r, Transition as i, cloneVNode as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, getCurrentInstance as m, getCurrentScope as h, h as g, hasInjectionContext as _, inject as v, isRef as y, isVNode as b, mergeProps as x, nextTick as ee, normalizeClass as S, onMounted as te, onScopeDispose as ne, onUnmounted as C, openBlock as w, provide as T, readonly as E, ref as D, renderList as re, renderSlot as O, shallowReadonly as ie, shallowRef as k, toValue as A, unref as j, useCssVars as M, useId as ae, useSlots as oe, watch as N, watchEffect as se, withCtx as P } from "vue";
2
- import './main.css';function ce(e) {
1
+ import { Comment, Fragment, Static, Text, Transition, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, getCurrentScope, h, hasInjectionContext, inject, isRef, isVNode, mergeProps, nextTick, normalizeClass, onMounted, onScopeDispose, onUnmounted, openBlock, provide, readonly, ref, renderList, renderSlot, shallowReadonly, shallowRef, toValue, unref, useCssVars, useId, useSlots, watch, watchEffect, withCtx } from "vue";
2
+ import './main.css';function o$1(e) {
3
3
  return typeof e == "string" || e instanceof RegExp || Array.isArray(e);
4
4
  }
5
- function le(e) {
5
+ function f(e) {
6
6
  return Array.isArray(e) || (e = [e]), e.filter(Boolean);
7
7
  }
8
- function ue(e, t, n) {
9
- let r = le(t.only), i = le(t.except);
10
- return Object.entries(e).filter(([e]) => fe(e, r, i, n, t.filterNative)).reduce((e, [t, n]) => (e[t] = (e) => n(e), e), {});
8
+ function g$1(e, t, n) {
9
+ let r = f(t.only), a = f(t.except);
10
+ return Object.entries(e).filter(([e]) => h$1(e, r, a, n, t.filterNative)).reduce((e, [t, n]) => (e[t] = (e) => n(e), e), {});
11
11
  }
12
- function de(e) {
12
+ function i(e) {
13
13
  if (e instanceof RegExp) return e;
14
14
  {
15
15
  let t = e.replace(/[-\/\\^$+?.()|[\]{}]/g, "\\$&").replace(/^\*/, ".*").replace(/\*$/, ".*");
16
16
  return t.includes(".*") ? /* @__PURE__ */ RegExp(`^${t}$`) : e;
17
17
  }
18
18
  }
19
- function fe(e, t, n, r, i) {
20
- return t.length ? t.some((t) => (t = de(t), r.includes(e) && i !== !0 ? !0 : t instanceof RegExp ? t.test(e) : t === e)) : n.every((t) => (t = de(t), r.includes(e) && i !== !0 ? !0 : t instanceof RegExp ? t.test(e) === !1 : t !== e));
19
+ function h$1(e, t, n, r, a) {
20
+ return t.length ? t.some((t) => (t = i(t), r.includes(e) && a !== !0 ? !0 : t instanceof RegExp ? t.test(e) : t === e)) : n.every((t) => (t = i(t), r.includes(e) && a !== !0 ? !0 : t instanceof RegExp ? t.test(e) === !1 : t !== e));
21
21
  }
22
- function pe(e, t, n, r, i) {
23
- return g(e, r, ue(n, t, i));
22
+ function A(e, t, n, r, a) {
23
+ return h(e, r, g$1(n, t, a));
24
24
  }
25
- const me = p({
25
+ var S = defineComponent({
26
26
  name: "ForwardSlots",
27
27
  inheritAttrs: !1,
28
28
  props: {
@@ -38,7 +38,7 @@ const me = p({
38
38
  Array
39
39
  ],
40
40
  default: () => [],
41
- validator: ce
41
+ validator: o$1
42
42
  },
43
43
  except: {
44
44
  type: [
@@ -47,7 +47,7 @@ const me = p({
47
47
  Array
48
48
  ],
49
49
  default: () => [],
50
- validator: ce
50
+ validator: o$1
51
51
  },
52
52
  inheritAttrs: {
53
53
  type: Boolean,
@@ -59,1203 +59,451 @@ const me = p({
59
59
  }
60
60
  },
61
61
  setup(e, { slots: n, attrs: r }) {
62
- let i = (n) => {
63
- var a;
64
- if (n.type === t && Array.isArray(n.children) && (a = n.children) != null && a.length) return n.children.map(i);
65
- let o = Object.keys(n.children ?? {}), s = Object.assign({}, e.slots, n.children), c = e.inheritAttrs ? r : {};
66
- return pe(n, e, s, c, o);
62
+ let a = (n) => {
63
+ var s;
64
+ if (n.type === Fragment && Array.isArray(n.children) && (s = n.children) != null && s.length) return n.children.map(a);
65
+ let c = Object.keys(n.children ?? {});
66
+ return A(n, e, Object.assign({}, e.slots, n.children), e.inheritAttrs ? r : {}, c);
67
67
  };
68
- return () => (n.default && typeof n.default == "function" ? n.default() : []).map(i);
68
+ return () => (n.default && typeof n.default == "function" ? n.default() : []).map(a);
69
69
  }
70
70
  });
71
- function F(e) {
72
- return h() ? (ne(e), !0) : !1;
73
- }
74
- const he = /* @__PURE__ */ new WeakMap(), ge = /* @__NO_SIDE_EFFECTS__ */ (...e) => {
75
- var t;
76
- let n = e[0], r = (t = m())?.proxy;
77
- if (r == null && !_()) throw Error("injectLocal must be called in setup");
78
- return r && he.has(r) && n in he.get(r) ? he.get(r)[n] : v(...e);
79
- }, _e = typeof window < "u" && typeof document < "u";
71
+ function tryOnScopeDispose(e) {
72
+ return getCurrentScope() ? (onScopeDispose(e), !0) : !1;
73
+ }
74
+ var localProvidedStateMap = /* @__PURE__ */ new WeakMap(), injectLocal = /* @__NO_SIDE_EFFECTS__ */ (...e) => {
75
+ let t = e[0], n = getCurrentInstance()?.proxy;
76
+ if (n == null && !hasInjectionContext()) throw Error("injectLocal must be called in setup");
77
+ return n && localProvidedStateMap.has(n) && t in localProvidedStateMap.get(n) ? localProvidedStateMap.get(n)[t] : inject(...e);
78
+ }, isClient = typeof window < "u" && typeof document < "u";
80
79
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
81
- const ve = (e) => e != null, ye = Object.prototype.toString, be = (e) => ye.call(e) === "[object Object]", xe = () => {};
82
- function Se(e) {
80
+ var notNullish = (e) => e != null, toString$1 = Object.prototype.toString, isObject$1 = (e) => toString$1.call(e) === "[object Object]", noop = () => {};
81
+ function pxValue(e) {
83
82
  return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
84
83
  }
85
- function Ce(e) {
84
+ function toArray$1(e) {
86
85
  return Array.isArray(e) ? e : [e];
87
86
  }
88
- function we(e) {
89
- let t = /* @__PURE__ */ Object.create(null);
90
- return (n) => {
91
- let r = t[n];
92
- return r || (t[n] = e(n));
93
- };
87
+ function getLifeCycleTarget(e) {
88
+ return e || getCurrentInstance();
94
89
  }
95
- const Te = /\B([A-Z])/g;
96
- we((e) => e.replace(Te, "-$1").toLowerCase());
97
- const Ee = /-(\w)/g;
98
- we((e) => e.replace(Ee, (e, t) => t ? t.toUpperCase() : ""));
99
- function De(e) {
100
- return e || m();
101
- }
102
- function Oe(e, t = !0, n) {
103
- let r = De(n);
104
- r ? te(e, n) : t ? e() : ee(e);
105
- }
106
- function ke(e, t = 1e3, n = {}) {
107
- let { immediate: r = !0, immediateCallback: i = !1 } = n, a = null, o = k(!1);
108
- function s() {
109
- a && (clearInterval(a), a = null);
110
- }
111
- function c() {
112
- o.value = !1, s();
113
- }
90
+ function tryOnMounted(e, t = !0, n) {
91
+ getLifeCycleTarget(n) ? onMounted(e, n) : t ? e() : nextTick(e);
92
+ }
93
+ function useIntervalFn(e, t = 1e3, n = {}) {
94
+ let { immediate: r = !0, immediateCallback: a = !1 } = n, s = null, c = shallowRef(!1);
114
95
  function l() {
115
- let n = A(t);
116
- n <= 0 || (o.value = !0, i && e(), s(), o.value && (a = setInterval(e, n)));
96
+ s &&= (clearInterval(s), null);
117
97
  }
118
- if (r && _e && l(), y(t) || typeof t == "function") {
119
- let e = N(t, () => {
120
- o.value && _e && l();
121
- });
122
- F(e);
98
+ function u() {
99
+ c.value = !1, l();
100
+ }
101
+ function d() {
102
+ let n = toValue(t);
103
+ n <= 0 || (c.value = !0, a && e(), l(), c.value && (s = setInterval(e, n)));
123
104
  }
124
- return F(c), {
125
- isActive: ie(o),
126
- pause: c,
127
- resume: l
105
+ return r && isClient && d(), (isRef(t) || typeof t == "function") && tryOnScopeDispose(watch(t, () => {
106
+ c.value && isClient && d();
107
+ })), tryOnScopeDispose(u), {
108
+ isActive: shallowReadonly(c),
109
+ pause: u,
110
+ resume: d
128
111
  };
129
112
  }
130
- function Ae(e, t, n) {
131
- return N(e, t, {
113
+ function watchImmediate(e, t, n) {
114
+ return watch(e, t, {
132
115
  ...n,
133
116
  immediate: !0
134
117
  });
135
118
  }
136
- const I = _e ? window : void 0;
137
- _e && window.document, _e && window.navigator, _e && window.location;
138
- function L(e) {
139
- var t;
140
- let n = A(e);
141
- return (t = n?.$el) ?? n;
119
+ var defaultWindow = isClient ? window : void 0;
120
+ isClient && window.document, isClient && window.navigator, isClient && window.location;
121
+ function unrefElement(e) {
122
+ let t = toValue(e);
123
+ return t?.$el ?? t;
142
124
  }
143
- function je(...e) {
125
+ function useEventListener(...e) {
144
126
  let t = [], n = () => {
145
127
  t.forEach((e) => e()), t.length = 0;
146
- }, r = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), i = o(() => {
147
- let t = Ce(A(e[0])).filter((e) => e != null);
128
+ }, r = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), a = computed(() => {
129
+ let t = toArray$1(toValue(e[0])).filter((e) => e != null);
148
130
  return t.every((e) => typeof e != "string") ? t : void 0;
149
- }), a = Ae(() => {
150
- var t, n;
151
- return [
152
- (n = (t = i.value)?.map((e) => L(e))) ?? [I].filter((e) => e != null),
153
- Ce(A(i.value ? e[1] : e[0])),
154
- Ce(j(i.value ? e[2] : e[1])),
155
- A(i.value ? e[3] : e[2])
156
- ];
157
- }, ([e, i, a, o]) => {
158
- if (n(), !e?.length || !i?.length || !a?.length) return;
159
- let s = be(o) ? { ...o } : o;
160
- t.push(...e.flatMap((e) => i.flatMap((t) => a.map((n) => r(e, t, n, s)))));
161
- }, { flush: "post" }), s = () => {
162
- a(), n();
131
+ }), s = watchImmediate(() => [
132
+ a.value?.map((e) => unrefElement(e)) ?? [defaultWindow].filter((e) => e != null),
133
+ toArray$1(toValue(a.value ? e[1] : e[0])),
134
+ toArray$1(unref(a.value ? e[2] : e[1])),
135
+ toValue(a.value ? e[3] : e[2])
136
+ ], ([e, a, s, c]) => {
137
+ if (n(), !e?.length || !a?.length || !s?.length) return;
138
+ let l = isObject$1(c) ? { ...c } : c;
139
+ t.push(...e.flatMap((e) => a.flatMap((t) => s.map((n) => r(e, t, n, l)))));
140
+ }, { flush: "post" });
141
+ return tryOnScopeDispose(n), () => {
142
+ s(), n();
163
143
  };
164
- return F(n), s;
165
144
  }
166
145
  /* @__NO_SIDE_EFFECTS__ */
167
- function Me() {
168
- let e = k(!1), t = m();
169
- return t && te(() => {
146
+ function useMounted() {
147
+ let e = shallowRef(!1), t = getCurrentInstance();
148
+ return t && onMounted(() => {
170
149
  e.value = !0;
171
150
  }, t), e;
172
151
  }
173
152
  /* @__NO_SIDE_EFFECTS__ */
174
- function Ne(e) {
175
- let t = /* @__PURE__ */ Me();
176
- return o(() => (t.value, !!e()));
177
- }
178
- function Pe(e, t, n = {}) {
179
- let { window: r = I,...i } = n, a, s = /* @__PURE__ */ Ne(() => r && "MutationObserver" in r), c = () => {
180
- a && (a.disconnect(), a = void 0);
181
- }, l = o(() => {
182
- let t = A(e), n = Ce(t).map(L).filter(ve);
183
- return new Set(n);
184
- }), u = N(() => l.value, (e) => {
185
- c(), s.value && e.size && (a = new MutationObserver(t), e.forEach((e) => a.observe(e, i)));
153
+ function useSupported(e) {
154
+ let t = /* @__PURE__ */ useMounted();
155
+ return computed(() => (t.value, !!e()));
156
+ }
157
+ function useMutationObserver(e, t, n = {}) {
158
+ let { window: r = defaultWindow,...a } = n, s, l = /* @__PURE__ */ useSupported(() => r && "MutationObserver" in r), u = () => {
159
+ s &&= (s.disconnect(), void 0);
160
+ }, d = watch(computed(() => {
161
+ let t = toArray$1(toValue(e)).map(unrefElement).filter(notNullish);
162
+ return new Set(t);
163
+ }), (e) => {
164
+ u(), l.value && e.size && (s = new MutationObserver(t), e.forEach((e) => s.observe(e, a)));
186
165
  }, {
187
166
  immediate: !0,
188
167
  flush: "post"
189
- }), d = () => a?.takeRecords(), f = () => {
190
- u(), c();
168
+ }), p = () => s?.takeRecords(), m = () => {
169
+ d(), u();
191
170
  };
192
- return F(f), {
193
- isSupported: s,
194
- stop: f,
195
- takeRecords: d
171
+ return tryOnScopeDispose(m), {
172
+ isSupported: l,
173
+ stop: m,
174
+ takeRecords: p
196
175
  };
197
176
  }
198
- function Fe(e, t, n = {}) {
199
- let { window: r = I, document: i = r?.document, flush: a = "sync" } = n;
200
- if (!r || !i) return xe;
201
- let o, s = (e) => {
202
- o?.(), o = e;
203
- }, c = se(() => {
204
- let n = L(e);
177
+ function onElementRemoval(e, t, n = {}) {
178
+ let { window: r = defaultWindow, document: a = r?.document, flush: s = "sync" } = n;
179
+ if (!r || !a) return noop;
180
+ let c, l = (e) => {
181
+ c?.(), c = e;
182
+ }, u = watchEffect(() => {
183
+ let n = unrefElement(e);
205
184
  if (n) {
206
- let { stop: e } = Pe(i, (e) => {
207
- let r = e.map((e) => [...e.removedNodes]).flat().some((e) => e === n || e.contains(n));
208
- r && t(e);
185
+ let { stop: e } = useMutationObserver(a, (e) => {
186
+ e.map((e) => [...e.removedNodes]).flat().some((e) => e === n || e.contains(n)) && t(e);
209
187
  }, {
210
188
  window: r,
211
189
  childList: !0,
212
190
  subtree: !0
213
191
  });
214
- s(e);
192
+ l(e);
215
193
  }
216
- }, { flush: a }), l = () => {
217
- c(), s();
194
+ }, { flush: s }), d = () => {
195
+ u(), l();
218
196
  };
219
- return F(l), l;
197
+ return tryOnScopeDispose(d), d;
220
198
  }
221
- const Ie = Symbol("vueuse-ssr-width");
199
+ var ssrWidthSymbol = Symbol("vueuse-ssr-width");
222
200
  /* @__NO_SIDE_EFFECTS__ */
223
- function Le() {
224
- let e = _() ? /* @__PURE__ */ ge(Ie, null) : null;
201
+ function useSSRWidth() {
202
+ let e = hasInjectionContext() ? /* @__PURE__ */ injectLocal(ssrWidthSymbol, null) : null;
225
203
  return typeof e == "number" ? e : void 0;
226
204
  }
227
- function Re(e, t = {}) {
228
- let { window: n = I, ssrWidth: r = /* @__PURE__ */ Le() } = t, i = /* @__PURE__ */ Ne(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), a = k(typeof r == "number"), s = k(), c = k(!1), l = (e) => {
229
- c.value = e.matches;
230
- };
231
- return se(() => {
232
- if (a.value) {
233
- a.value = !i.value;
234
- let t = A(e).split(",");
235
- c.value = t.some((e) => {
236
- let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), i = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = !!(n || i);
237
- return n && a && (a = r >= Se(n[1])), i && a && (a = r <= Se(i[1])), t ? !a : a;
205
+ function useMediaQuery(e, t = {}) {
206
+ let { window: n = defaultWindow, ssrWidth: r = /* @__PURE__ */ useSSRWidth() } = t, a = /* @__PURE__ */ useSupported(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), s = shallowRef(typeof r == "number"), l = shallowRef(), u = shallowRef(!1);
207
+ return watchEffect(() => {
208
+ if (s.value) {
209
+ s.value = !a.value, u.value = toValue(e).split(",").some((e) => {
210
+ let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), s = !!(n || a);
211
+ return n && s && (s = r >= pxValue(n[1])), a && s && (s = r <= pxValue(a[1])), t ? !s : s;
238
212
  });
239
213
  return;
240
214
  }
241
- i.value && (s.value = n.matchMedia(A(e)), c.value = s.value.matches);
242
- }), je(s, "change", l, { passive: !0 }), o(() => c.value);
243
- }
244
- function ze(e, t, n = {}) {
245
- let { window: r = I,...i } = n, a, s = /* @__PURE__ */ Ne(() => r && "ResizeObserver" in r), c = () => {
246
- a && (a.disconnect(), a = void 0);
247
- }, l = o(() => {
248
- let t = A(e);
249
- return Array.isArray(t) ? t.map((e) => L(e)) : [L(t)];
250
- }), u = N(l, (e) => {
251
- if (c(), s.value && r) {
252
- a = new ResizeObserver(t);
253
- for (let t of e) t && a.observe(t, i);
215
+ a.value && (l.value = n.matchMedia(toValue(e)), u.value = l.value.matches);
216
+ }), useEventListener(l, "change", (e) => {
217
+ u.value = e.matches;
218
+ }, { passive: !0 }), computed(() => u.value);
219
+ }
220
+ function useResizeObserver(e, t, n = {}) {
221
+ let { window: r = defaultWindow,...a } = n, s, l = /* @__PURE__ */ useSupported(() => r && "ResizeObserver" in r), u = () => {
222
+ s &&= (s.disconnect(), void 0);
223
+ }, d = watch(computed(() => {
224
+ let t = toValue(e);
225
+ return Array.isArray(t) ? t.map((e) => unrefElement(e)) : [unrefElement(t)];
226
+ }), (e) => {
227
+ if (u(), l.value && r) {
228
+ s = new ResizeObserver(t);
229
+ for (let t of e) t && s.observe(t, a);
254
230
  }
255
231
  }, {
256
232
  immediate: !0,
257
233
  flush: "post"
258
- }), d = () => {
259
- c(), u();
234
+ }), p = () => {
235
+ u(), d();
260
236
  };
261
- return F(d), {
262
- isSupported: s,
263
- stop: d
237
+ return tryOnScopeDispose(p), {
238
+ isSupported: l,
239
+ stop: p
264
240
  };
265
241
  }
266
- function Be(e, t = {}) {
267
- let { delayEnter: n = 0, delayLeave: r = 0, triggerOnRemoval: i = !1, window: a = I } = t, s = k(!1), c, l = (e) => {
242
+ function useElementHover(e, t = {}) {
243
+ let { delayEnter: n = 0, delayLeave: r = 0, triggerOnRemoval: a = !1, window: s = defaultWindow } = t, l = shallowRef(!1), u, d = (e) => {
268
244
  let t = e ? n : r;
269
- c && (clearTimeout(c), c = void 0), t ? c = setTimeout(() => s.value = e, t) : s.value = e;
245
+ u &&= (clearTimeout(u), void 0), t ? u = setTimeout(() => l.value = e, t) : l.value = e;
270
246
  };
271
- return a ? (je(e, "mouseenter", () => l(!0), { passive: !0 }), je(e, "mouseleave", () => l(!1), { passive: !0 }), i && Fe(o(() => L(e)), () => l(!1)), s) : s;
247
+ return s ? (useEventListener(e, "mouseenter", () => d(!0), { passive: !0 }), useEventListener(e, "mouseleave", () => d(!1), { passive: !0 }), a && onElementRemoval(computed(() => unrefElement(e)), () => d(!1)), l) : l;
272
248
  }
273
- function Ve(e, t = {
249
+ function useElementSize(e, t = {
274
250
  width: 0,
275
251
  height: 0
276
252
  }, n = {}) {
277
- let { window: r = I, box: i = "content-box" } = n, a = o(() => {
278
- var t, n;
279
- return (n = (t = L(e))?.namespaceURI)?.includes("svg");
280
- }), s = k(t.width), c = k(t.height), { stop: l } = ze(e, ([t]) => {
281
- let n = i === "border-box" ? t.borderBoxSize : i === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
282
- if (r && a.value) {
283
- let t = L(e);
253
+ let { window: r = defaultWindow, box: a = "content-box" } = n, s = computed(() => (unrefElement(e)?.namespaceURI)?.includes("svg")), l = shallowRef(t.width), u = shallowRef(t.height), { stop: d } = useResizeObserver(e, ([t]) => {
254
+ let n = a === "border-box" ? t.borderBoxSize : a === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
255
+ if (r && s.value) {
256
+ let t = unrefElement(e);
284
257
  if (t) {
285
258
  let e = t.getBoundingClientRect();
286
- s.value = e.width, c.value = e.height;
259
+ l.value = e.width, u.value = e.height;
287
260
  }
288
261
  } else if (n) {
289
- let e = Ce(n);
290
- s.value = e.reduce((e, { inlineSize: t }) => e + t, 0), c.value = e.reduce((e, { blockSize: t }) => e + t, 0);
291
- } else s.value = t.contentRect.width, c.value = t.contentRect.height;
262
+ let e = toArray$1(n);
263
+ l.value = e.reduce((e, { inlineSize: t }) => e + t, 0), u.value = e.reduce((e, { blockSize: t }) => e + t, 0);
264
+ } else l.value = t.contentRect.width, u.value = t.contentRect.height;
292
265
  }, n);
293
- Oe(() => {
294
- let n = L(e);
295
- n && (s.value = "offsetWidth" in n ? n.offsetWidth : t.width, c.value = "offsetHeight" in n ? n.offsetHeight : t.height);
266
+ tryOnMounted(() => {
267
+ let n = unrefElement(e);
268
+ n && (l.value = "offsetWidth" in n ? n.offsetWidth : t.width, u.value = "offsetHeight" in n ? n.offsetHeight : t.height);
296
269
  });
297
- let u = N(() => L(e), (e) => {
298
- s.value = e ? t.width : 0, c.value = e ? t.height : 0;
270
+ let p = watch(() => unrefElement(e), (e) => {
271
+ l.value = e ? t.width : 0, u.value = e ? t.height : 0;
299
272
  });
300
- function d() {
301
- l(), u();
273
+ function m() {
274
+ d(), p();
302
275
  }
303
276
  return {
304
- width: s,
305
- height: c,
306
- stop: d
277
+ width: l,
278
+ height: u,
279
+ stop: m
307
280
  };
308
281
  }
309
282
  /* @__NO_SIDE_EFFECTS__ */
310
- function He(e = {}) {
311
- let { window: t = I, initialWidth: n = Infinity, initialHeight: r = Infinity, listenOrientation: i = !0, includeScrollbar: a = !0, type: o = "inner" } = e, s = k(n), c = k(r), l = () => {
312
- if (t) if (o === "outer") s.value = t.outerWidth, c.value = t.outerHeight;
313
- else if (o === "visual" && t.visualViewport) {
283
+ function useWindowSize(e = {}) {
284
+ let { window: t = defaultWindow, initialWidth: n = Infinity, initialHeight: r = Infinity, listenOrientation: a = !0, includeScrollbar: s = !0, type: c = "inner" } = e, l = shallowRef(n), u = shallowRef(r), d = () => {
285
+ if (t) if (c === "outer") l.value = t.outerWidth, u.value = t.outerHeight;
286
+ else if (c === "visual" && t.visualViewport) {
314
287
  let { width: e, height: n, scale: r } = t.visualViewport;
315
- s.value = Math.round(e * r), c.value = Math.round(n * r);
316
- } else a ? (s.value = t.innerWidth, c.value = t.innerHeight) : (s.value = t.document.documentElement.clientWidth, c.value = t.document.documentElement.clientHeight);
288
+ l.value = Math.round(e * r), u.value = Math.round(n * r);
289
+ } else s ? (l.value = t.innerWidth, u.value = t.innerHeight) : (l.value = t.document.documentElement.clientWidth, u.value = t.document.documentElement.clientHeight);
317
290
  };
318
- l(), Oe(l);
319
- let u = { passive: !0 };
320
- if (je("resize", l, u), t && o === "visual" && t.visualViewport && je(t.visualViewport, "resize", l, u), i) {
321
- let e = Re("(orientation: portrait)");
322
- N(e, () => l());
323
- }
324
- return {
325
- width: s,
326
- height: c
291
+ d(), tryOnMounted(d);
292
+ let p = { passive: !0 };
293
+ return useEventListener("resize", d, p), t && c === "visual" && t.visualViewport && useEventListener(t.visualViewport, "resize", d, p), a && watch(useMediaQuery("(orientation: portrait)"), () => d()), {
294
+ width: l,
295
+ height: u
327
296
  };
328
297
  }
329
- var Ue = typeof global == "object" && global && global.Object === Object && global, We = Ue, Ge = typeof self == "object" && self && self.Object === Object && self, Ke = We || Ge || Function("return this")(), R = Ke, qe = R.Symbol, z = qe, Je = Object.prototype, Ye = Je.hasOwnProperty, Xe = Je.toString, Ze = z ? z.toStringTag : void 0;
330
- function Qe(e) {
331
- var t = Ye.call(e, Ze), n = e[Ze];
332
- try {
333
- e[Ze] = void 0;
334
- var r = !0;
335
- } catch {}
336
- var i = Xe.call(e);
337
- return r && (t ? e[Ze] = n : delete e[Ze]), i;
338
- }
339
- var $e = Qe, et = Object.prototype, tt = et.toString;
340
- function nt(e) {
341
- return tt.call(e);
342
- }
343
- var rt = nt, it = "[object Null]", at = "[object Undefined]", ot = z ? z.toStringTag : void 0;
344
- function st(e) {
345
- return e == null ? e === void 0 ? at : it : ot && ot in Object(e) ? $e(e) : rt(e);
346
- }
347
- var B = st;
348
- function ct(e) {
349
- return typeof e == "object" && !!e;
350
- }
351
- var V = ct, lt = "[object Symbol]";
352
- function ut(e) {
353
- return typeof e == "symbol" || V(e) && B(e) == lt;
354
- }
355
- var dt = ut;
356
- function ft(e, t) {
357
- for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r;) i[n] = t(e[n], n, e);
358
- return i;
359
- }
360
- var pt = ft, mt = Array.isArray, H = mt, ht = Infinity, gt = z ? z.prototype : void 0, _t = gt ? gt.toString : void 0;
361
- function vt(e) {
362
- if (typeof e == "string") return e;
363
- if (H(e)) return pt(e, vt) + "";
364
- if (dt(e)) return _t ? _t.call(e) : "";
365
- var t = e + "";
366
- return t == "0" && 1 / e == -ht ? "-0" : t;
367
- }
368
- var yt = vt, bt = /\s/;
369
- function xt(e) {
370
- for (var t = e.length; t-- && bt.test(e.charAt(t)););
371
- return t;
372
- }
373
- var St = xt, Ct = /^\s+/;
374
- function wt(e) {
375
- return e && e.slice(0, St(e) + 1).replace(Ct, "");
376
- }
377
- var Tt = wt;
378
- function Et(e) {
379
- var t = typeof e;
380
- return e != null && (t == "object" || t == "function");
381
- }
382
- var U = Et, Dt = NaN, Ot = /^[-+]0x[0-9a-f]+$/i, kt = /^0b[01]+$/i, At = /^0o[0-7]+$/i, jt = parseInt;
383
- function Mt(e) {
384
- if (typeof e == "number") return e;
385
- if (dt(e)) return Dt;
386
- if (U(e)) {
387
- var t = typeof e.valueOf == "function" ? e.valueOf() : e;
388
- e = U(t) ? t + "" : t;
389
- }
390
- if (typeof e != "string") return e === 0 ? e : +e;
391
- e = Tt(e);
392
- var n = kt.test(e);
393
- return n || At.test(e) ? jt(e.slice(2), n ? 2 : 8) : Ot.test(e) ? Dt : +e;
394
- }
395
- var Nt = Mt, Pt = Infinity, Ft = 17976931348623157e292;
396
- function It(e) {
397
- if (!e) return e === 0 ? e : 0;
398
- if (e = Nt(e), e === Pt || e === -Pt) {
399
- var t = e < 0 ? -1 : 1;
400
- return t * Ft;
298
+ function chunk(e, t) {
299
+ if (!Number.isInteger(t) || t <= 0) throw Error("Size must be an integer greater than zero.");
300
+ let n = Math.ceil(e.length / t), r = Array(n);
301
+ for (let a = 0; a < n; a++) {
302
+ let n = a * t, s = n + t;
303
+ r[a] = e.slice(n, s);
401
304
  }
402
- return e === e ? e : 0;
403
- }
404
- var Lt = It;
405
- function Rt(e) {
406
- var t = Lt(e), n = t % 1;
407
- return t === t ? n ? t - n : t : 0;
408
- }
409
- var zt = Rt;
410
- function Bt(e) {
411
- return e;
412
- }
413
- var Vt = Bt, Ht = "[object AsyncFunction]", Ut = "[object Function]", Wt = "[object GeneratorFunction]", Gt = "[object Proxy]";
414
- function Kt(e) {
415
- if (!U(e)) return !1;
416
- var t = B(e);
417
- return t == Ut || t == Wt || t == Ht || t == Gt;
418
- }
419
- var qt = Kt, Jt = R["__core-js_shared__"], Yt = Jt, Xt = function() {
420
- var e = /[^.]+$/.exec(Yt && Yt.keys && Yt.keys.IE_PROTO || "");
421
- return e ? "Symbol(src)_1." + e : "";
422
- }();
423
- function Zt(e) {
424
- return !!Xt && Xt in e;
425
- }
426
- var Qt = Zt, $t = Function.prototype, en = $t.toString;
427
- function tn(e) {
428
- if (e != null) {
429
- try {
430
- return en.call(e);
431
- } catch {}
432
- try {
433
- return e + "";
434
- } catch {}
435
- }
436
- return "";
437
- }
438
- var W = tn, nn = /[\\^$.*+?()[\]{}|]/g, rn = /^\[object .+?Constructor\]$/, an = Function.prototype, on = Object.prototype, sn = an.toString, cn = on.hasOwnProperty, ln = RegExp("^" + sn.call(cn).replace(nn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
439
- function un(e) {
440
- if (!U(e) || Qt(e)) return !1;
441
- var t = qt(e) ? ln : rn;
442
- return t.test(W(e));
443
- }
444
- var dn = un;
445
- function fn(e, t) {
446
- return e?.[t];
447
- }
448
- var pn = fn;
449
- function mn(e, t) {
450
- var n = pn(e, t);
451
- return dn(n) ? n : void 0;
452
- }
453
- var G = mn, hn = G(R, "WeakMap"), gn = hn;
454
- function _n(e, t, n) {
455
- switch (n.length) {
456
- case 0: return e.call(t);
457
- case 1: return e.call(t, n[0]);
458
- case 2: return e.call(t, n[0], n[1]);
459
- case 3: return e.call(t, n[0], n[1], n[2]);
460
- }
461
- return e.apply(t, n);
462
- }
463
- var vn = _n;
464
- function yn(e, t) {
465
- var n = -1, r = e.length;
466
- for (t ||= Array(r); ++n < r;) t[n] = e[n];
467
- return t;
468
- }
469
- var bn = yn, xn = 800, Sn = 16, Cn = Date.now;
470
- function wn(e) {
471
- var t = 0, n = 0;
472
- return function() {
473
- var r = Cn(), i = Sn - (r - n);
474
- if (n = r, i > 0) {
475
- if (++t >= xn) return arguments[0];
476
- } else t = 0;
477
- return e.apply(void 0, arguments);
478
- };
479
- }
480
- var Tn = wn;
481
- function En(e) {
482
- return function() {
483
- return e;
484
- };
485
- }
486
- var Dn = En, On = function() {
487
- try {
488
- var e = G(Object, "defineProperty");
489
- return e({}, "", {}), e;
490
- } catch {}
491
- }(), kn = On, An = kn ? function(e, t) {
492
- return kn(e, "toString", {
493
- configurable: !0,
494
- enumerable: !1,
495
- value: Dn(t),
496
- writable: !0
497
- });
498
- } : Vt, jn = An, Mn = Tn(jn), Nn = Mn;
499
- function Pn(e, t, n, r) {
500
- for (var i = e.length, a = n + (r ? 1 : -1); r ? a-- : ++a < i;) if (t(e[a], a, e)) return a;
501
- return -1;
502
- }
503
- var Fn = Pn, In = 9007199254740991, Ln = /^(?:0|[1-9]\d*)$/;
504
- function Rn(e, t) {
505
- var n = typeof e;
506
- return t ??= In, !!t && (n == "number" || n != "symbol" && Ln.test(e)) && e > -1 && e % 1 == 0 && e < t;
507
- }
508
- var zn = Rn;
509
- function Bn(e, t, n) {
510
- t == "__proto__" && kn ? kn(e, t, {
511
- configurable: !0,
512
- enumerable: !0,
513
- value: n,
514
- writable: !0
515
- }) : e[t] = n;
516
- }
517
- var Vn = Bn;
518
- function Hn(e, t) {
519
- return e === t || e !== e && t !== t;
520
- }
521
- var Un = Hn, Wn = Object.prototype, Gn = Wn.hasOwnProperty;
522
- function Kn(e, t, n) {
523
- var r = e[t];
524
- (!(Gn.call(e, t) && Un(r, n)) || n === void 0 && !(t in e)) && Vn(e, t, n);
525
- }
526
- var qn = Kn, Jn = Math.max;
527
- function Yn(e, t, n) {
528
- return t = Jn(t === void 0 ? e.length - 1 : t, 0), function() {
529
- for (var r = arguments, i = -1, a = Jn(r.length - t, 0), o = Array(a); ++i < a;) o[i] = r[t + i];
530
- i = -1;
531
- for (var s = Array(t + 1); ++i < t;) s[i] = r[i];
532
- return s[t] = n(o), vn(e, this, s);
533
- };
534
- }
535
- var Xn = Yn, Zn = 9007199254740991;
536
- function Qn(e) {
537
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Zn;
538
- }
539
- var $n = Qn;
540
- function er(e) {
541
- return e != null && $n(e.length) && !qt(e);
542
- }
543
- var tr = er;
544
- function nr(e, t, n) {
545
- if (!U(n)) return !1;
546
- var r = typeof t;
547
- return (r == "number" ? tr(n) && zn(t, n.length) : r == "string" && t in n) ? Un(n[t], e) : !1;
548
- }
549
- var rr = nr, ir = Object.prototype;
550
- function ar(e) {
551
- var t = e && e.constructor, n = typeof t == "function" && t.prototype || ir;
552
- return e === n;
553
- }
554
- var or = ar;
555
- function sr(e, t) {
556
- for (var n = -1, r = Array(e); ++n < e;) r[n] = t(n);
557
305
  return r;
558
306
  }
559
- var cr = sr, lr = "[object Arguments]";
560
- function ur(e) {
561
- return V(e) && B(e) == lr;
562
- }
563
- var dr = ur, fr = Object.prototype, pr = fr.hasOwnProperty, mr = fr.propertyIsEnumerable, hr = dr(function() {
564
- return arguments;
565
- }()) ? dr : function(e) {
566
- return V(e) && pr.call(e, "callee") && !mr.call(e, "callee");
567
- }, gr = hr;
568
- function _r() {
569
- return !1;
570
- }
571
- var vr = _r, yr = typeof exports == "object" && exports && !exports.nodeType && exports, br = yr && typeof module == "object" && module && !module.nodeType && module, xr = br && br.exports === yr, Sr = xr ? R.Buffer : void 0, Cr = Sr ? Sr.isBuffer : void 0, wr = Cr || vr, Tr = wr, Er = "[object Arguments]", Dr = "[object Array]", Or = "[object Boolean]", kr = "[object Date]", Ar = "[object Error]", jr = "[object Function]", Mr = "[object Map]", Nr = "[object Number]", Pr = "[object Object]", Fr = "[object RegExp]", Ir = "[object Set]", Lr = "[object String]", Rr = "[object WeakMap]", zr = "[object ArrayBuffer]", Br = "[object DataView]", Vr = "[object Float32Array]", Hr = "[object Float64Array]", Ur = "[object Int8Array]", Wr = "[object Int16Array]", Gr = "[object Int32Array]", Kr = "[object Uint8Array]", qr = "[object Uint8ClampedArray]", Jr = "[object Uint16Array]", Yr = "[object Uint32Array]", K = {};
572
- K[Vr] = K[Hr] = K[Ur] = K[Wr] = K[Gr] = K[Kr] = K[qr] = K[Jr] = K[Yr] = !0, K[Er] = K[Dr] = K[zr] = K[Or] = K[Br] = K[kr] = K[Ar] = K[jr] = K[Mr] = K[Nr] = K[Pr] = K[Fr] = K[Ir] = K[Lr] = K[Rr] = !1;
573
- function Xr(e) {
574
- return V(e) && $n(e.length) && !!K[B(e)];
575
- }
576
- var Zr = Xr;
577
- function Qr(e) {
578
- return function(t) {
579
- return e(t);
307
+ function flatten(e, t = 1) {
308
+ let n = [], r = Math.floor(t), a = (e, t) => {
309
+ for (let s = 0; s < e.length; s++) {
310
+ let c = e[s];
311
+ Array.isArray(c) && t < r ? a(c, t + 1) : n.push(c);
312
+ }
580
313
  };
581
- }
582
- var $r = Qr, ei = typeof exports == "object" && exports && !exports.nodeType && exports, ti = ei && typeof module == "object" && module && !module.nodeType && module, ni = ti && ti.exports === ei, ri = ni && We.process, ii = function() {
583
- try {
584
- var e = ti && ti.require && ti.require("util").types;
585
- return e || ri && ri.binding && ri.binding("util");
586
- } catch {}
587
- }(), ai = ii, oi = ai && ai.isTypedArray, si = oi ? $r(oi) : Zr, ci = si, li = Object.prototype, ui = li.hasOwnProperty;
588
- function di(e, t) {
589
- var n = H(e), r = !n && gr(e), i = !n && !r && Tr(e), a = !n && !r && !i && ci(e), o = n || r || i || a, s = o ? cr(e.length, String) : [], c = s.length;
590
- for (var l in e) (t || ui.call(e, l)) && !(o && (l == "length" || i && (l == "offset" || l == "parent") || a && (l == "buffer" || l == "byteLength" || l == "byteOffset") || zn(l, c))) && s.push(l);
591
- return s;
592
- }
593
- var fi = di;
594
- function pi(e, t) {
595
- return function(n) {
596
- return e(t(n));
314
+ return a(e, 0), n;
315
+ }
316
+ function isSymbol(e) {
317
+ return typeof e == "symbol" || e instanceof Symbol;
318
+ }
319
+ function toNumber(e) {
320
+ return isSymbol(e) ? NaN : Number(e);
321
+ }
322
+ function toFinite(e) {
323
+ return e ? (e = toNumber(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
324
+ }
325
+ function toInteger(e) {
326
+ let t = toFinite(e), n = t % 1;
327
+ return n ? t - n : t;
328
+ }
329
+ function debounce(e, t, { signal: n, edges: r } = {}) {
330
+ let a, s = null, c = r != null && r.includes("leading"), l = r == null || r.includes("trailing"), u = () => {
331
+ s !== null && (e.apply(a, s), a = void 0, s = null);
332
+ }, d = () => {
333
+ l && u(), b();
334
+ }, p = null, m = () => {
335
+ p != null && clearTimeout(p), p = setTimeout(() => {
336
+ p = null, d();
337
+ }, t);
338
+ }, _ = () => {
339
+ p !== null && (clearTimeout(p), p = null);
340
+ }, b = () => {
341
+ _(), a = void 0, s = null;
342
+ }, x = () => {
343
+ u();
344
+ }, C = function(...e) {
345
+ if (n?.aborted) return;
346
+ a = this, s = e;
347
+ let t = p == null;
348
+ m(), c && t && u();
597
349
  };
350
+ return C.schedule = m, C.cancel = b, C.flush = x, n?.addEventListener("abort", b, { once: !0 }), C;
598
351
  }
599
- var mi = pi, hi = mi(Object.keys, Object), gi = hi, _i = Object.prototype, vi = _i.hasOwnProperty;
600
- function yi(e) {
601
- if (!or(e)) return gi(e);
602
- var t = [];
603
- for (var n in Object(e)) vi.call(e, n) && n != "constructor" && t.push(n);
604
- return t;
605
- }
606
- var bi = yi;
607
- function xi(e) {
608
- return tr(e) ? fi(e) : bi(e);
609
- }
610
- var Si = xi, Ci = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, wi = /^\w*$/;
611
- function Ti(e, t) {
612
- if (H(e)) return !1;
613
- var n = typeof e;
614
- return n == "number" || n == "symbol" || n == "boolean" || e == null || dt(e) ? !0 : wi.test(e) || !Ci.test(e) || t != null && e in Object(t);
615
- }
616
- var Ei = Ti, Di = G(Object, "create"), Oi = Di;
617
- function ki() {
618
- this.__data__ = Oi ? Oi(null) : {}, this.size = 0;
619
- }
620
- var Ai = ki;
621
- function ji(e) {
622
- var t = this.has(e) && delete this.__data__[e];
623
- return this.size -= t ? 1 : 0, t;
624
- }
625
- var Mi = ji, Ni = "__lodash_hash_undefined__", Pi = Object.prototype, Fi = Pi.hasOwnProperty;
626
- function Ii(e) {
627
- var t = this.__data__;
628
- if (Oi) {
629
- var n = t[e];
630
- return n === Ni ? void 0 : n;
631
- }
632
- return Fi.call(t, e) ? t[e] : void 0;
633
- }
634
- var Li = Ii, Ri = Object.prototype, zi = Ri.hasOwnProperty;
635
- function Bi(e) {
636
- var t = this.__data__;
637
- return Oi ? t[e] !== void 0 : zi.call(t, e);
638
- }
639
- var Vi = Bi, Hi = "__lodash_hash_undefined__";
640
- function Ui(e, t) {
641
- var n = this.__data__;
642
- return this.size += this.has(e) ? 0 : 1, n[e] = Oi && t === void 0 ? Hi : t, this;
643
- }
644
- var Wi = Ui;
645
- function Gi(e) {
646
- var t = -1, n = e == null ? 0 : e.length;
647
- for (this.clear(); ++t < n;) {
648
- var r = e[t];
649
- this.set(r[0], r[1]);
650
- }
352
+ function identity(e) {
353
+ return e;
651
354
  }
652
- Gi.prototype.clear = Ai, Gi.prototype.delete = Mi, Gi.prototype.get = Li, Gi.prototype.has = Vi, Gi.prototype.set = Wi;
653
- var Ki = Gi;
654
- function qi() {
655
- this.__data__ = [], this.size = 0;
656
- }
657
- var Ji = qi;
658
- function Yi(e, t) {
659
- for (var n = e.length; n--;) if (Un(e[n][0], t)) return n;
660
- return -1;
661
- }
662
- var Xi = Yi, Zi = Array.prototype, Qi = Zi.splice;
663
- function $i(e) {
664
- var t = this.__data__, n = Xi(t, e);
665
- if (n < 0) return !1;
666
- var r = t.length - 1;
667
- return n == r ? t.pop() : Qi.call(t, n, 1), --this.size, !0;
668
- }
669
- var ea = $i;
670
- function ta(e) {
671
- var t = this.__data__, n = Xi(t, e);
672
- return n < 0 ? void 0 : t[n][1];
673
- }
674
- var na = ta;
675
- function ra(e) {
676
- return Xi(this.__data__, e) > -1;
677
- }
678
- var ia = ra;
679
- function aa(e, t) {
680
- var n = this.__data__, r = Xi(n, e);
681
- return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
682
- }
683
- var oa = aa;
684
- function sa(e) {
685
- var t = -1, n = e == null ? 0 : e.length;
686
- for (this.clear(); ++t < n;) {
687
- var r = e[t];
688
- this.set(r[0], r[1]);
689
- }
355
+ function isPrimitive(e) {
356
+ return e == null || typeof e != "object" && typeof e != "function";
690
357
  }
691
- sa.prototype.clear = Ji, sa.prototype.delete = ea, sa.prototype.get = na, sa.prototype.has = ia, sa.prototype.set = oa;
692
- var ca = sa, la = G(R, "Map"), ua = la;
693
- function da() {
694
- this.size = 0, this.__data__ = {
695
- hash: new Ki(),
696
- map: new (ua || ca)(),
697
- string: new Ki()
698
- };
358
+ function isTypedArray(e) {
359
+ return ArrayBuffer.isView(e) && !(e instanceof DataView);
699
360
  }
700
- var fa = da;
701
- function pa(e) {
702
- var t = typeof e;
703
- return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
704
- }
705
- var ma = pa;
706
- function ha(e, t) {
707
- var n = e.__data__;
708
- return ma(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
709
- }
710
- var ga = ha;
711
- function _a(e) {
712
- var t = ga(this, e).delete(e);
713
- return this.size -= t ? 1 : 0, t;
714
- }
715
- var va = _a;
716
- function ya(e) {
717
- return ga(this, e).get(e);
718
- }
719
- var ba = ya;
720
- function xa(e) {
721
- return ga(this, e).has(e);
722
- }
723
- var Sa = xa;
724
- function Ca(e, t) {
725
- var n = ga(this, e), r = n.size;
726
- return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
727
- }
728
- var wa = Ca;
729
- function Ta(e) {
730
- var t = -1, n = e == null ? 0 : e.length;
731
- for (this.clear(); ++t < n;) {
732
- var r = e[t];
733
- this.set(r[0], r[1]);
734
- }
735
- }
736
- Ta.prototype.clear = fa, Ta.prototype.delete = va, Ta.prototype.get = ba, Ta.prototype.has = Sa, Ta.prototype.set = wa;
737
- var Ea = Ta, Da = "Expected a function";
738
- function Oa(e, t) {
739
- if (typeof e != "function" || t != null && typeof t != "function") throw TypeError(Da);
740
- var n = function() {
741
- var r = arguments, i = t ? t.apply(this, r) : r[0], a = n.cache;
742
- if (a.has(i)) return a.get(i);
743
- var o = e.apply(this, r);
744
- return n.cache = a.set(i, o) || a, o;
745
- };
746
- return n.cache = new (Oa.Cache || Ea)(), n;
747
- }
748
- Oa.Cache = Ea;
749
- var ka = Oa, Aa = 500;
750
- function ja(e) {
751
- var t = ka(e, function(e) {
752
- return n.size === Aa && n.clear(), e;
753
- }), n = t.cache;
754
- return t;
755
- }
756
- var Ma = ja, Na = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Pa = /\\(\\)?/g, Fa = Ma(function(e) {
757
- var t = [];
758
- return e.charCodeAt(0) === 46 && t.push(""), e.replace(Na, function(e, n, r, i) {
759
- t.push(r ? i.replace(Pa, "$1") : n || e);
760
- }), t;
761
- }), Ia = Fa;
762
- function La(e) {
763
- return e == null ? "" : yt(e);
764
- }
765
- var Ra = La;
766
- function za(e, t) {
767
- return H(e) ? e : Ei(e, t) ? [e] : Ia(Ra(e));
768
- }
769
- var Ba = za, Va = Infinity;
770
- function Ha(e) {
771
- if (typeof e == "string" || dt(e)) return e;
772
- var t = e + "";
773
- return t == "0" && 1 / e == -Va ? "-0" : t;
774
- }
775
- var Ua = Ha;
776
- function Wa(e, t) {
777
- t = Ba(t, e);
778
- for (var n = 0, r = t.length; e != null && n < r;) e = e[Ua(t[n++])];
779
- return n && n == r ? e : void 0;
780
- }
781
- var Ga = Wa;
782
- function Ka(e, t, n) {
783
- var r = e == null ? void 0 : Ga(e, t);
784
- return r === void 0 ? n : r;
361
+ function getSymbols(e) {
362
+ return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
785
363
  }
786
- var qa = Ka;
787
- function Ja(e, t) {
788
- for (var n = -1, r = t.length, i = e.length; ++n < r;) e[i + n] = t[n];
789
- return e;
364
+ function getTag(e) {
365
+ return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
790
366
  }
791
- var Ya = Ja, Xa = z ? z.isConcatSpreadable : void 0;
792
- function Za(e) {
793
- return H(e) || gr(e) || !!(Xa && e && e[Xa]);
367
+ var regexpTag = "[object RegExp]", stringTag = "[object String]", numberTag = "[object Number]", booleanTag = "[object Boolean]", argumentsTag = "[object Arguments]", symbolTag = "[object Symbol]", dateTag = "[object Date]", mapTag = "[object Map]", setTag = "[object Set]", arrayTag = "[object Array]", arrayBufferTag = "[object ArrayBuffer]", objectTag = "[object Object]", dataViewTag = "[object DataView]", uint8ArrayTag = "[object Uint8Array]", uint8ClampedArrayTag = "[object Uint8ClampedArray]", uint16ArrayTag = "[object Uint16Array]", uint32ArrayTag = "[object Uint32Array]", int8ArrayTag = "[object Int8Array]", int16ArrayTag = "[object Int16Array]", int32ArrayTag = "[object Int32Array]", float32ArrayTag = "[object Float32Array]", float64ArrayTag = "[object Float64Array]";
368
+ function cloneDeepWith$1(e, t) {
369
+ return cloneDeepWithImpl(e, void 0, e, /* @__PURE__ */ new Map(), t);
794
370
  }
795
- var Qa = Za;
796
- function $a(e, t, n, r, i) {
797
- var a = -1, o = e.length;
798
- for (n ||= Qa, i ||= []; ++a < o;) {
799
- var s = e[a];
800
- t > 0 && n(s) ? t > 1 ? $a(s, t - 1, n, r, i) : Ya(i, s) : r || (i[i.length] = s);
371
+ function cloneDeepWithImpl(e, t, n, r = /* @__PURE__ */ new Map(), a = void 0) {
372
+ let s = a?.(e, t, n, r);
373
+ if (s !== void 0) return s;
374
+ if (isPrimitive(e)) return e;
375
+ if (r.has(e)) return r.get(e);
376
+ if (Array.isArray(e)) {
377
+ let t = Array(e.length);
378
+ r.set(e, t);
379
+ for (let s = 0; s < e.length; s++) t[s] = cloneDeepWithImpl(e[s], s, n, r, a);
380
+ return Object.hasOwn(e, "index") && (t.index = e.index), Object.hasOwn(e, "input") && (t.input = e.input), t;
801
381
  }
802
- return i;
803
- }
804
- var eo = $a;
805
- function to(e) {
806
- var t = e == null ? 0 : e.length;
807
- return t ? eo(e, 1) : [];
808
- }
809
- var no = to;
810
- function ro(e) {
811
- return Nn(Xn(e, void 0, no), e + "");
812
- }
813
- var io = ro;
814
- function ao(e, t, n) {
815
- var r = -1, i = e.length;
816
- t < 0 && (t = -t > i ? 0 : i + t), n = n > i ? i : n, n < 0 && (n += i), i = t > n ? 0 : n - t >>> 0, t >>>= 0;
817
- for (var a = Array(i); ++r < i;) a[r] = e[r + t];
818
- return a;
819
- }
820
- var oo = ao, so = Math.ceil, co = Math.max;
821
- function lo(e, t, n) {
822
- t = (n ? rr(e, t, n) : t === void 0) ? 1 : co(zt(t), 0);
823
- var r = e == null ? 0 : e.length;
824
- if (!r || t < 1) return [];
825
- for (var i = 0, a = 0, o = Array(so(r / t)); i < r;) o[a++] = oo(e, i, i += t);
826
- return o;
827
- }
828
- var uo = lo;
829
- function fo() {
830
- this.__data__ = new ca(), this.size = 0;
831
- }
832
- var po = fo;
833
- function mo(e) {
834
- var t = this.__data__, n = t.delete(e);
835
- return this.size = t.size, n;
836
- }
837
- var ho = mo;
838
- function go(e) {
839
- return this.__data__.get(e);
840
- }
841
- var _o = go;
842
- function vo(e) {
843
- return this.__data__.has(e);
844
- }
845
- var yo = vo, bo = 200;
846
- function xo(e, t) {
847
- var n = this.__data__;
848
- if (n instanceof ca) {
849
- var r = n.__data__;
850
- if (!ua || r.length < bo - 1) return r.push([e, t]), this.size = ++n.size, this;
851
- n = this.__data__ = new Ea(r);
382
+ if (e instanceof Date) return new Date(e.getTime());
383
+ if (e instanceof RegExp) {
384
+ let t = new RegExp(e.source, e.flags);
385
+ return t.lastIndex = e.lastIndex, t;
852
386
  }
853
- return n.set(e, t), this.size = n.size, this;
854
- }
855
- var So = xo;
856
- function Co(e) {
857
- var t = this.__data__ = new ca(e);
858
- this.size = t.size;
859
- }
860
- Co.prototype.clear = po, Co.prototype.delete = ho, Co.prototype.get = _o, Co.prototype.has = yo, Co.prototype.set = So;
861
- var wo = Co;
862
- function To(e, t) {
863
- for (var n = -1, r = e == null ? 0 : e.length, i = 0, a = []; ++n < r;) {
864
- var o = e[n];
865
- t(o, n, e) && (a[i++] = o);
387
+ if (e instanceof Map) {
388
+ let t = /* @__PURE__ */ new Map();
389
+ r.set(e, t);
390
+ for (let [s, c] of e) t.set(s, cloneDeepWithImpl(c, s, n, r, a));
391
+ return t;
866
392
  }
867
- return a;
868
- }
869
- var Eo = To;
870
- function Do() {
871
- return [];
872
- }
873
- var Oo = Do, ko = Object.prototype, Ao = ko.propertyIsEnumerable, jo = Object.getOwnPropertySymbols, Mo = jo ? function(e) {
874
- return e == null ? [] : (e = Object(e), Eo(jo(e), function(t) {
875
- return Ao.call(e, t);
876
- }));
877
- } : Oo, No = Mo;
878
- function Po(e, t, n) {
879
- var r = t(e);
880
- return H(e) ? r : Ya(r, n(e));
881
- }
882
- var Fo = Po;
883
- function Io(e) {
884
- return Fo(e, Si, No);
885
- }
886
- var Lo = Io, Ro = G(R, "DataView"), zo = Ro, Bo = G(R, "Promise"), Vo = Bo, Ho = G(R, "Set"), Uo = Ho, Wo = "[object Map]", Go = "[object Object]", Ko = "[object Promise]", qo = "[object Set]", Jo = "[object WeakMap]", Yo = "[object DataView]", Xo = W(zo), Zo = W(ua), Qo = W(Vo), $o = W(Uo), es = W(gn), q = B;
887
- (zo && q(new zo(/* @__PURE__ */ new ArrayBuffer(1))) != Yo || ua && q(new ua()) != Wo || Vo && q(Vo.resolve()) != Ko || Uo && q(new Uo()) != qo || gn && q(new gn()) != Jo) && (q = function(e) {
888
- var t = B(e), n = t == Go ? e.constructor : void 0, r = n ? W(n) : "";
889
- if (r) switch (r) {
890
- case Xo: return Yo;
891
- case Zo: return Wo;
892
- case Qo: return Ko;
893
- case $o: return qo;
894
- case es: return Jo;
393
+ if (e instanceof Set) {
394
+ let t = /* @__PURE__ */ new Set();
395
+ r.set(e, t);
396
+ for (let s of e) t.add(cloneDeepWithImpl(s, void 0, n, r, a));
397
+ return t;
895
398
  }
896
- return t;
897
- });
898
- var ts = q, ns = R.Uint8Array, rs = ns;
899
- function os() {
900
- var e = arguments.length;
901
- if (!e) return [];
902
- for (var t = Array(e - 1), n = arguments[0], r = e; r--;) t[r - 1] = arguments[r];
903
- return Ya(H(n) ? bn(n) : [n], eo(t, 1));
904
- }
905
- var ss = os, cs = "__lodash_hash_undefined__";
906
- function ls(e) {
907
- return this.__data__.set(e, cs), this;
908
- }
909
- var us = ls;
910
- function ds(e) {
911
- return this.__data__.has(e);
912
- }
913
- var fs = ds;
914
- function ps(e) {
915
- var t = -1, n = e == null ? 0 : e.length;
916
- for (this.__data__ = new Ea(); ++t < n;) this.add(e[t]);
917
- }
918
- ps.prototype.add = ps.prototype.push = us, ps.prototype.has = fs;
919
- var ms = ps;
920
- function hs(e, t) {
921
- for (var n = -1, r = e == null ? 0 : e.length; ++n < r;) if (t(e[n], n, e)) return !0;
922
- return !1;
923
- }
924
- var gs = hs;
925
- function _s(e, t) {
926
- return e.has(t);
927
- }
928
- var vs = _s, ys = 1, bs = 2;
929
- function xs(e, t, n, r, i, a) {
930
- var o = n & ys, s = e.length, c = t.length;
931
- if (s != c && !(o && c > s)) return !1;
932
- var l = a.get(e), u = a.get(t);
933
- if (l && u) return l == t && u == e;
934
- var d = -1, f = !0, p = n & bs ? new ms() : void 0;
935
- for (a.set(e, t), a.set(t, e); ++d < s;) {
936
- var m = e[d], h = t[d];
937
- if (r) var g = o ? r(h, m, d, t, e, a) : r(m, h, d, e, t, a);
938
- if (g !== void 0) {
939
- if (g) continue;
940
- f = !1;
941
- break;
942
- }
943
- if (p) {
944
- if (!gs(t, function(e, t) {
945
- if (!vs(p, t) && (m === e || i(m, e, n, r, a))) return p.push(t);
946
- })) {
947
- f = !1;
948
- break;
949
- }
950
- } else if (!(m === h || i(m, h, n, r, a))) {
951
- f = !1;
952
- break;
953
- }
399
+ if (typeof Buffer < "u" && Buffer.isBuffer(e)) return e.subarray();
400
+ if (isTypedArray(e)) {
401
+ let t = new (Object.getPrototypeOf(e)).constructor(e.length);
402
+ r.set(e, t);
403
+ for (let s = 0; s < e.length; s++) t[s] = cloneDeepWithImpl(e[s], s, n, r, a);
404
+ return t;
954
405
  }
955
- return a.delete(e), a.delete(t), f;
956
- }
957
- var Ss = xs;
958
- function Cs(e) {
959
- var t = -1, n = Array(e.size);
960
- return e.forEach(function(e, r) {
961
- n[++t] = [r, e];
962
- }), n;
963
- }
964
- var ws = Cs;
965
- function Ts(e) {
966
- var t = -1, n = Array(e.size);
967
- return e.forEach(function(e) {
968
- n[++t] = e;
969
- }), n;
970
- }
971
- var Es = Ts, Ds = 1, Os = 2, ks = "[object Boolean]", As = "[object Date]", js = "[object Error]", Ms = "[object Map]", Ns = "[object Number]", Ps = "[object RegExp]", Fs = "[object Set]", Is = "[object String]", Ls = "[object Symbol]", Rs = "[object ArrayBuffer]", zs = "[object DataView]", Bs = z ? z.prototype : void 0, Vs = Bs ? Bs.valueOf : void 0;
972
- function Hs(e, t, n, r, i, a, o) {
973
- switch (n) {
974
- case zs:
975
- if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1;
976
- e = e.buffer, t = t.buffer;
977
- case Rs: return !(e.byteLength != t.byteLength || !a(new rs(e), new rs(t)));
978
- case ks:
979
- case As:
980
- case Ns: return Un(+e, +t);
981
- case js: return e.name == t.name && e.message == t.message;
982
- case Ps:
983
- case Is: return e == t + "";
984
- case Ms: var s = ws;
985
- case Fs:
986
- var c = r & Ds;
987
- if (s ||= Es, e.size != t.size && !c) return !1;
988
- var l = o.get(e);
989
- if (l) return l == t;
990
- r |= Os, o.set(e, t);
991
- var u = Ss(s(e), s(t), r, i, a, o);
992
- return o.delete(e), u;
993
- case Ls: if (Vs) return Vs.call(e) == Vs.call(t);
406
+ if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
407
+ if (e instanceof DataView) {
408
+ let t = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength);
409
+ return r.set(e, t), copyProperties(t, e, n, r, a), t;
994
410
  }
995
- return !1;
996
- }
997
- var Us = Hs, Ws = 1, Gs = Object.prototype, Ks = Gs.hasOwnProperty;
998
- function qs(e, t, n, r, i, a) {
999
- var o = n & Ws, s = Lo(e), c = s.length, l = Lo(t), u = l.length;
1000
- if (c != u && !o) return !1;
1001
- for (var d = c; d--;) {
1002
- var f = s[d];
1003
- if (!(o ? f in t : Ks.call(t, f))) return !1;
411
+ if (typeof File < "u" && e instanceof File) {
412
+ let t = new File([e], e.name, { type: e.type });
413
+ return r.set(e, t), copyProperties(t, e, n, r, a), t;
1004
414
  }
1005
- var p = a.get(e), m = a.get(t);
1006
- if (p && m) return p == t && m == e;
1007
- var h = !0;
1008
- a.set(e, t), a.set(t, e);
1009
- for (var g = o; ++d < c;) {
1010
- f = s[d];
1011
- var _ = e[f], v = t[f];
1012
- if (r) var y = o ? r(v, _, f, t, e, a) : r(_, v, f, e, t, a);
1013
- if (!(y === void 0 ? _ === v || i(_, v, n, r, a) : y)) {
1014
- h = !1;
1015
- break;
1016
- }
1017
- g ||= f == "constructor";
415
+ if (typeof Blob < "u" && e instanceof Blob) {
416
+ let t = new Blob([e], { type: e.type });
417
+ return r.set(e, t), copyProperties(t, e, n, r, a), t;
1018
418
  }
1019
- if (h && !g) {
1020
- var b = e.constructor, x = t.constructor;
1021
- b != x && "constructor" in e && "constructor" in t && !(typeof b == "function" && b instanceof b && typeof x == "function" && x instanceof x) && (h = !1);
419
+ if (e instanceof Error) {
420
+ let t = new e.constructor();
421
+ return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, copyProperties(t, e, n, r, a), t;
1022
422
  }
1023
- return a.delete(e), a.delete(t), h;
1024
- }
1025
- var Js = qs, Ys = 1, Xs = "[object Arguments]", Zs = "[object Array]", Qs = "[object Object]", $s = Object.prototype, ec = $s.hasOwnProperty;
1026
- function tc(e, t, n, r, i, a) {
1027
- var o = H(e), s = H(t), c = o ? Zs : ts(e), l = s ? Zs : ts(t);
1028
- c = c == Xs ? Qs : c, l = l == Xs ? Qs : l;
1029
- var u = c == Qs, d = l == Qs, f = c == l;
1030
- if (f && Tr(e)) {
1031
- if (!Tr(t)) return !1;
1032
- o = !0, u = !1;
423
+ if (e instanceof Boolean) {
424
+ let t = new Boolean(e.valueOf());
425
+ return r.set(e, t), copyProperties(t, e, n, r, a), t;
1033
426
  }
1034
- if (f && !u) return a ||= new wo(), o || ci(e) ? Ss(e, t, n, r, i, a) : Us(e, t, c, n, r, i, a);
1035
- if (!(n & Ys)) {
1036
- var p = u && ec.call(e, "__wrapped__"), m = d && ec.call(t, "__wrapped__");
1037
- if (p || m) {
1038
- var h = p ? e.value() : e, g = m ? t.value() : t;
1039
- return a ||= new wo(), i(h, g, n, r, a);
1040
- }
427
+ if (e instanceof Number) {
428
+ let t = new Number(e.valueOf());
429
+ return r.set(e, t), copyProperties(t, e, n, r, a), t;
1041
430
  }
1042
- return f ? (a ||= new wo(), Js(e, t, n, r, i, a)) : !1;
1043
- }
1044
- var nc = tc;
1045
- function rc(e, t, n, r, i) {
1046
- return e === t ? !0 : e == null || t == null || !V(e) && !V(t) ? e !== e && t !== t : nc(e, t, n, r, rc, i);
1047
- }
1048
- var ic = rc, ac = 1, oc = 2;
1049
- function sc(e, t, n, r) {
1050
- var i = n.length, a = i, o = !r;
1051
- if (e == null) return !a;
1052
- for (e = Object(e); i--;) {
1053
- var s = n[i];
1054
- if (o && s[2] ? s[1] !== e[s[0]] : !(s[0] in e)) return !1;
431
+ if (e instanceof String) {
432
+ let t = new String(e.valueOf());
433
+ return r.set(e, t), copyProperties(t, e, n, r, a), t;
1055
434
  }
1056
- for (; ++i < a;) {
1057
- s = n[i];
1058
- var c = s[0], l = e[c], u = s[1];
1059
- if (o && s[2]) {
1060
- if (l === void 0 && !(c in e)) return !1;
1061
- } else {
1062
- var d = new wo();
1063
- if (r) var f = r(l, u, c, e, t, d);
1064
- if (!(f === void 0 ? ic(u, l, ac | oc, r, d) : f)) return !1;
1065
- }
435
+ if (typeof e == "object" && isCloneableObject(e)) {
436
+ let t = Object.create(Object.getPrototypeOf(e));
437
+ return r.set(e, t), copyProperties(t, e, n, r, a), t;
1066
438
  }
1067
- return !0;
439
+ return e;
1068
440
  }
1069
- var cc = sc;
1070
- function lc(e) {
1071
- return e === e && !U(e);
1072
- }
1073
- var uc = lc;
1074
- function dc(e) {
1075
- for (var t = Si(e), n = t.length; n--;) {
1076
- var r = t[n], i = e[r];
1077
- t[n] = [
1078
- r,
1079
- i,
1080
- uc(i)
1081
- ];
441
+ function copyProperties(e, t, n = e, r, a) {
442
+ let s = [...Object.keys(t), ...getSymbols(t)];
443
+ for (let c = 0; c < s.length; c++) {
444
+ let l = s[c], u = Object.getOwnPropertyDescriptor(e, l);
445
+ (u == null || u.writable) && (e[l] = cloneDeepWithImpl(t[l], l, n, r, a));
1082
446
  }
1083
- return t;
1084
- }
1085
- var fc = dc;
1086
- function pc(e, t) {
1087
- return function(n) {
1088
- return n == null ? !1 : n[e] === t && (t !== void 0 || e in Object(n));
1089
- };
1090
447
  }
1091
- var mc = pc;
1092
- function hc(e) {
1093
- var t = fc(e);
1094
- return t.length == 1 && t[0][2] ? mc(t[0][0], t[0][1]) : function(n) {
1095
- return n === e || cc(n, e, t);
1096
- };
1097
- }
1098
- var gc = hc;
1099
- function _c(e, t) {
1100
- return e != null && t in Object(e);
1101
- }
1102
- var vc = _c;
1103
- function yc(e, t, n) {
1104
- t = Ba(t, e);
1105
- for (var r = -1, i = t.length, a = !1; ++r < i;) {
1106
- var o = Ua(t[r]);
1107
- if (!(a = e != null && n(e, o))) break;
1108
- e = e[o];
448
+ function isCloneableObject(e) {
449
+ switch (getTag(e)) {
450
+ case argumentsTag:
451
+ case arrayTag:
452
+ case arrayBufferTag:
453
+ case dataViewTag:
454
+ case booleanTag:
455
+ case dateTag:
456
+ case float32ArrayTag:
457
+ case float64ArrayTag:
458
+ case int8ArrayTag:
459
+ case int16ArrayTag:
460
+ case int32ArrayTag:
461
+ case mapTag:
462
+ case numberTag:
463
+ case objectTag:
464
+ case regexpTag:
465
+ case setTag:
466
+ case stringTag:
467
+ case symbolTag:
468
+ case uint8ArrayTag:
469
+ case uint8ClampedArrayTag:
470
+ case uint16ArrayTag:
471
+ case uint32ArrayTag: return !0;
472
+ default: return !1;
1109
473
  }
1110
- return a || ++r != i ? a : (i = e == null ? 0 : e.length, !!i && $n(i) && zn(o, i) && (H(e) || gr(e)));
1111
- }
1112
- var bc = yc;
1113
- function xc(e, t) {
1114
- return e != null && bc(e, t, vc);
1115
- }
1116
- var Sc = xc, Cc = 1, wc = 2;
1117
- function Tc(e, t) {
1118
- return Ei(e) && uc(t) ? mc(Ua(e), t) : function(n) {
1119
- var r = qa(n, e);
1120
- return r === void 0 && r === t ? Sc(n, e) : ic(t, r, Cc | wc);
1121
- };
1122
- }
1123
- var Ec = Tc;
1124
- function Dc(e) {
1125
- return function(t) {
1126
- return t?.[e];
1127
- };
1128
- }
1129
- var Oc = Dc;
1130
- function kc(e) {
1131
- return function(t) {
1132
- return Ga(t, e);
1133
- };
1134
474
  }
1135
- var Ac = kc;
1136
- function jc(e) {
1137
- return Ei(e) ? Oc(Ua(e)) : Ac(e);
475
+ function cloneDeep$1(e) {
476
+ return cloneDeepWithImpl(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
1138
477
  }
1139
- var Mc = jc;
1140
- function Nc(e) {
1141
- return typeof e == "function" ? e : e == null ? Vt : typeof e == "object" ? H(e) ? Ec(e[0], e[1]) : gc(e) : Mc(e);
1142
- }
1143
- var Pc = Nc;
1144
- function Fc(e) {
1145
- return function(t, n, r) {
1146
- for (var i = -1, a = Object(t), o = r(t), s = o.length; s--;) {
1147
- var c = o[e ? s : ++i];
1148
- if (n(a[c], c, a) === !1) break;
1149
- }
1150
- return t;
1151
- };
1152
- }
1153
- var Ic = Fc, Lc = Ic(), Rc = Lc;
1154
- function zc(e, t) {
1155
- return e && Rc(e, t, Si);
1156
- }
1157
- var Bc = zc, Vc = function() {
1158
- return R.Date.now();
1159
- }, Hc = Vc, Uc = "Expected a function", Wc = Math.max, Gc = Math.min;
1160
- function Kc(e, t, n) {
1161
- var r, i, a, o, s, c, l = 0, u = !1, d = !1, f = !0;
1162
- if (typeof e != "function") throw TypeError(Uc);
1163
- t = Nt(t) || 0, U(n) && (u = !!n.leading, d = "maxWait" in n, a = d ? Wc(Nt(n.maxWait) || 0, t) : a, f = "trailing" in n ? !!n.trailing : f);
1164
- function p(t) {
1165
- var n = r, a = i;
1166
- return r = i = void 0, l = t, o = e.apply(a, n), o;
1167
- }
1168
- function m(e) {
1169
- return l = e, s = setTimeout(_, t), u ? p(e) : o;
1170
- }
1171
- function h(e) {
1172
- var n = e - c, r = e - l, i = t - n;
1173
- return d ? Gc(i, a - r) : i;
1174
- }
1175
- function g(e) {
1176
- var n = e - c, r = e - l;
1177
- return c === void 0 || n >= t || n < 0 || d && r >= a;
1178
- }
1179
- function _() {
1180
- var e = Hc();
1181
- if (g(e)) return v(e);
1182
- s = setTimeout(_, h(e));
1183
- }
1184
- function v(e) {
1185
- return s = void 0, f && r ? p(e) : (r = i = void 0, o);
1186
- }
1187
- function y() {
1188
- s !== void 0 && clearTimeout(s), l = 0, r = c = i = s = void 0;
1189
- }
1190
- function b() {
1191
- return s === void 0 ? o : v(Hc());
1192
- }
1193
- function x() {
1194
- var e = Hc(), n = g(e);
1195
- if (r = arguments, i = this, c = e, n) {
1196
- if (s === void 0) return m(c);
1197
- if (d) return clearTimeout(s), s = setTimeout(_, t), p(c);
1198
- }
1199
- return s === void 0 && (s = setTimeout(_, t)), o;
478
+ function mapValues(e, t) {
479
+ let n = {}, r = Object.keys(e);
480
+ for (let a = 0; a < r.length; a++) {
481
+ let s = r[a], c = e[s];
482
+ n[s] = t(c, s, e);
1200
483
  }
1201
- return x.cancel = y, x.flush = b, x;
1202
- }
1203
- var qc = Kc, Jc = Math.max, Yc = Math.min;
1204
- function Xc(e, t, n) {
1205
- var r = e == null ? 0 : e.length;
1206
- if (!r) return -1;
1207
- var i = r - 1;
1208
- return n !== void 0 && (i = zt(n), i = n < 0 ? Jc(r + i, 0) : Yc(i, r - 1)), Fn(e, Pc(t, 3), i, !0);
1209
- }
1210
- var Zc = Xc, Qc = "[object Boolean]";
1211
- function $c(e) {
1212
- return e === !0 || e === !1 || V(e) && B(e) == Qc;
1213
- }
1214
- var el = $c;
1215
- function tl(e, t) {
1216
- var n = {};
1217
- return t = Pc(t, 3), Bc(e, function(e, r, i) {
1218
- Vn(n, r, t(e, r, i));
1219
- }), n;
484
+ return n;
1220
485
  }
1221
- var nl = tl;
1222
- function rl(e, t, n, r) {
1223
- if (!U(e)) return e;
1224
- t = Ba(t, e);
1225
- for (var i = -1, a = t.length, o = a - 1, s = e; s != null && ++i < a;) {
1226
- var c = Ua(t[i]), l = n;
1227
- if (c === "__proto__" || c === "constructor" || c === "prototype") return e;
1228
- if (i != o) {
1229
- var u = s[c];
1230
- l = r ? r(u, c, s) : void 0, l === void 0 && (l = U(u) ? u : zn(t[i + 1]) ? [] : {});
1231
- }
1232
- qn(s, c, l), s = s[c];
1233
- }
1234
- return e;
486
+ function isUnsafeProperty(e) {
487
+ return e === "__proto__";
1235
488
  }
1236
- var il = rl;
1237
- function al(e, t, n) {
1238
- for (var r = -1, i = t.length, a = {}; ++r < i;) {
1239
- var o = t[r], s = Ga(e, o);
1240
- n(s, o) && il(a, Ba(o, e), s);
489
+ function pick(e, t) {
490
+ let n = {};
491
+ for (let r = 0; r < t.length; r++) {
492
+ let a = t[r];
493
+ Object.hasOwn(e, a) && (n[a] = e[a]);
1241
494
  }
1242
- return a;
495
+ return n;
1243
496
  }
1244
- var ol = al;
1245
- function sl(e, t) {
1246
- return ol(e, t, function(t, n) {
1247
- return Sc(e, n);
1248
- });
497
+ function isBoolean(e) {
498
+ return typeof e == "boolean";
1249
499
  }
1250
- var cl = sl, ll = io(function(e, t) {
1251
- return e == null ? {} : cl(e, t);
1252
- }), ul = ll;
1253
- function dl(e, t, n) {
1254
- var r = e == null ? 0 : e.length;
1255
- return r ? (n && typeof n != "number" && rr(e, t, n) ? (t = 0, n = r) : (t = t == null ? 0 : zt(t), n = n === void 0 ? r : zt(n)), oo(e, t, n)) : [];
500
+ function eq(e, t) {
501
+ return e === t || Number.isNaN(e) && Number.isNaN(t);
1256
502
  }
1257
- var fl = dl;
1258
- const pl = [
503
+ function isLength(e) {
504
+ return Number.isSafeInteger(e) && e >= 0;
505
+ }
506
+ var responsiveProperties = [
1259
507
  "perPage",
1260
508
  "mode",
1261
509
  "autoplay",
@@ -1268,7 +516,7 @@ const pl = [
1268
516
  "hideNavigation",
1269
517
  "hidePagination"
1270
518
  ];
1271
- function ml(e, t) {
519
+ function processConfigValues(e, t) {
1272
520
  let n = parseInt(this.perPage);
1273
521
  switch (t) {
1274
522
  case "perPage":
@@ -1276,105 +524,107 @@ function ml(e, t) {
1276
524
  case "slideBy": return e ? +e : n;
1277
525
  case "gap": return n === 1 ? 0 : +e;
1278
526
  case "autoplay": return !e || e === "false" || e === "0" ? !1 : e === !0 || e === "true" ? 5e3 : +e;
1279
- case "pauseOnHover": return this.manualControls ? e = !1 : e === "true" ? e = !0 : e === "false" && (e = !1), el(e) ? e : !!e;
527
+ case "pauseOnHover": return this.manualControls ? e = !1 : e === "true" ? e = !0 : e === "false" && (e = !1), isBoolean(e) ? e : !!e;
1280
528
  case "wrap":
1281
529
  case "hideNavigation":
1282
- case "hidePagination": return e === "true" ? e = !0 : e === "false" && (e = !1), el(e) ? e : !!e;
530
+ case "hidePagination": return e === "true" ? e = !0 : e === "false" && (e = !1), isBoolean(e) ? e : !!e;
1283
531
  default: return e;
1284
532
  }
1285
533
  }
1286
- const hl = (e, t = !1) => {
1287
- let { width: n } = /* @__PURE__ */ He(), r = o(() => ul(e, pl)), i = o(() => Object.entries(e.responsive).map(([e, t]) => [parseInt(e), ul(t, pl)]).filter((e) => isNaN(e[0]) === !1).sort((e, t) => t[0] - e[0])), a = o(() => {
1288
- let e = i.value.find((e) => n.value >= e[0]);
534
+ const useResponsiveConfig = (e, t = !1) => {
535
+ let { width: n } = /* @__PURE__ */ useWindowSize(), r = computed(() => pick(e, responsiveProperties)), a = computed(() => Object.entries(e.responsive).map(([e, t]) => [parseInt(e), pick(t, responsiveProperties)]).filter((e) => isNaN(e[0]) === !1).sort((e, t) => t[0] - e[0])), s = computed(() => {
536
+ let e = a.value.find((e) => n.value >= e[0]);
1289
537
  return e ? e[1] : {};
1290
538
  });
1291
- return o(() => {
1292
- let e = Object.assign({ manualControls: t }, r.value, a.value);
1293
- return nl(e, ml.bind(e));
539
+ return computed(() => {
540
+ let e = Object.assign({ manualControls: t }, r.value, s.value);
541
+ return mapValues(e, processConfigValues.bind(e));
1294
542
  });
1295
- }, gl = {
543
+ }, EVO_VUE_CAROUSEL_MODE = {
1296
544
  SLIDER: "slider",
1297
545
  GALLERY: "gallery"
1298
- }, _l = (e, t, n) => {
1299
- let r = n.value.mode === gl.GALLERY, i = n.value.wrap === !0, a = n.value.perPage, o = Math.max(t - a, 0);
1300
- return r ? e < 0 && i === !1 || o < 0 || e > t ? 0 : e : i === !1 && e <= 0 ? 0 : i === !1 && e >= t ? o : e;
1301
- }, vl = Symbol.for("evo-vue-carousel__config"), yl = Symbol.for("evo-vue-carousel__slide-count"), bl = Symbol.for("evo-vue-carousel__current-index"), xl = Symbol.for("evo-vue-carousel__is-hovered"), Sl = Symbol.for("evo-vue-carousel__is-navigating"), Cl = Symbol.for("evo-vue-carousel__autoplay-fn"), wl = (e, t, n, r = !1) => {
1302
- let i = D(!1), a = D(!1), s = hl(e, r), c = D(0), l = Be(n, {
546
+ }, checkPosition = (e, t, n) => {
547
+ let r = n.value.mode === EVO_VUE_CAROUSEL_MODE.GALLERY, a = n.value.wrap === !0, s = n.value.perPage, c = Math.max(t - s, 0);
548
+ return r ? e < 0 && a === !1 || c < 0 || e > t ? 0 : e : a === !1 && e <= 0 ? 0 : a === !1 && e >= t ? c : e;
549
+ };
550
+ var configKey = Symbol.for("evo-vue-carousel__config"), slideCountKey = Symbol.for("evo-vue-carousel__slide-count"), currentIndexKey = Symbol.for("evo-vue-carousel__current-index"), isHoveredKey = Symbol.for("evo-vue-carousel__is-hovered"), isNavigatingKey = Symbol.for("evo-vue-carousel__is-navigating"), autoplayFnKey = Symbol.for("evo-vue-carousel__autoplay-fn");
551
+ const useCarouselHost = (e, t, n, r = !1) => {
552
+ let a = ref(!1), s = ref(!1), l = useResponsiveConfig(e, r), u = ref(0), d = useElementHover(n, {
1303
553
  delayEnter: +e.hoverDelayEnter,
1304
554
  delayLeave: +e.hoverDelayLeave
1305
- }), u = N(t, async (t) => {
1306
- t > 0 && (c.value = _l(+e.initialIndex, t, s), c.value > t && (c.value = t - 1), i.value = !0, await ee(), u());
1307
- }, { immediate: !0 }), d = o(() => s.value.autoplay ?? 0), f = (e) => {
1308
- c.value = _l(e, t.value, s);
1309
- }, { pause: p, resume: m, isActive: h } = ke(() => {
1310
- f(c.value + s.value.slideBy);
1311
- }, d);
1312
- return T(vl, s), T(yl, E(t)), T(bl, c), T(xl, l), T(Sl, a), T(Cl, {
1313
- pauseAutoplay: p,
1314
- resumeAutoplay: m,
1315
- autoplayIsActive: h
555
+ }), p = watch(t, async (t) => {
556
+ t > 0 && (u.value = checkPosition(+e.initialIndex, t, l), u.value > t && (u.value = t - 1), a.value = !0, await nextTick(), p());
557
+ }, { immediate: !0 }), m = computed(() => l.value.autoplay ?? 0), _ = (e) => {
558
+ u.value = checkPosition(e, t.value, l);
559
+ }, { pause: b, resume: x, isActive: C } = useIntervalFn(() => {
560
+ _(u.value + l.value.slideBy);
561
+ }, m);
562
+ return provide(configKey, l), provide(slideCountKey, readonly(t)), provide(currentIndexKey, u), provide(isHoveredKey, d), provide(isNavigatingKey, s), provide(autoplayFnKey, {
563
+ pauseAutoplay: b,
564
+ resumeAutoplay: x,
565
+ autoplayIsActive: C
1316
566
  }), {
1317
- config: s,
1318
- currentIndex: E(c),
1319
- isHovered: l,
1320
- isInit: i
1321
- };
1322
- }, Tl = () => {
1323
- let e = v(vl), t = v(bl), n = v(yl), r = v(xl), i = v(Sl), a = v(Cl), o = (r) => {
1324
- t.value = _l(r, n.value, e);
1325
- }, s = (e) => {
1326
- i.value = e;
567
+ config: l,
568
+ currentIndex: readonly(u),
569
+ isHovered: d,
570
+ isInit: a
1327
571
  };
572
+ }, useCarouselClient = () => {
573
+ let e = inject(configKey), t = inject(currentIndexKey), n = inject(slideCountKey), r = inject(isHoveredKey), a = inject(isNavigatingKey), s = inject(autoplayFnKey);
1328
574
  return {
1329
575
  config: e,
1330
- currentIndex: E(t),
1331
- setCurrentIndex: o,
576
+ currentIndex: readonly(t),
577
+ setCurrentIndex: (r) => {
578
+ t.value = checkPosition(r, n.value, e);
579
+ },
1332
580
  slideCount: n,
1333
581
  isHovered: r,
1334
- isNavigating: E(i),
1335
- setIsNavigating: s,
1336
- ...a
582
+ isNavigating: readonly(a),
583
+ setIsNavigating: (e) => {
584
+ a.value = e;
585
+ },
586
+ ...s
1337
587
  };
1338
- }, El = {
588
+ };
589
+ var Autoplay_default = {
1339
590
  __name: "Autoplay",
1340
591
  setup(e) {
1341
- let { pauseAutoplay: t, resumeAutoplay: n, autoplayIsActive: r } = Tl();
1342
- return (e, i) => O(e.$slots, "controls", {
1343
- pause: j(t),
1344
- play: j(n),
1345
- playing: j(r)
592
+ let { pauseAutoplay: t, resumeAutoplay: n, autoplayIsActive: r } = useCarouselClient();
593
+ return (e, a) => renderSlot(e.$slots, "controls", {
594
+ pause: unref(t),
595
+ play: unref(n),
596
+ playing: unref(r)
1346
597
  });
1347
598
  }
1348
599
  };
1349
- var Dl = El;
1350
- Symbol.for("evo-vue-carousel__register-slide");
1351
- const Ol = Symbol.for("evo-vue-carousel__register-slide-client"), kl = () => {
1352
- let e = D(/* @__PURE__ */ new Map()), t = D(!1), n = o(() => e.value.size), r = qc(() => {
600
+ const registerSlideClientKey = Symbol.for("evo-vue-carousel__register-slide-client"), useRegisterSlide = () => {
601
+ let e = ref(/* @__PURE__ */ new Map()), t = ref(!1), n = computed(() => e.value.size), r = debounce(() => {
1353
602
  t.value = !0;
1354
- }, 5), i = (t, n, { width: i = 0 } = {}) => {
1355
- e.value.set(t, {
1356
- instance: n,
1357
- width: i
1358
- }), r();
1359
- }, a = (t, n) => {
1360
- let r = e.value.get(t) ?? {};
1361
- e.value.set(t, Object.assign(r, n));
1362
- }, s = (t) => {
1363
- e.value.delete(t);
1364
- };
1365
- return T(Ol, {
1366
- registerSlide: i,
1367
- updateSlide: a,
1368
- unregisterSlide: s
603
+ }, 5);
604
+ return provide(registerSlideClientKey, {
605
+ registerSlide: (t, n, { width: a = 0 } = {}) => {
606
+ e.value.set(t, {
607
+ instance: n,
608
+ width: a
609
+ }), r();
610
+ },
611
+ updateSlide: (t, n) => {
612
+ let r = e.value.get(t) ?? {};
613
+ e.value.set(t, Object.assign(r, n));
614
+ },
615
+ unregisterSlide: (t) => {
616
+ e.value.delete(t);
617
+ }
1369
618
  }), {
1370
- slides: E(e),
1371
- slideCount: E(n),
1372
- isInit: E(t)
619
+ slides: readonly(e),
620
+ slideCount: readonly(n),
621
+ isInit: readonly(t)
1373
622
  };
1374
- }, Al = () => v(Ol), jl = { class: "evo-vue-carousel__content h-full max-h-full relative" }, Ml = {
623
+ }, useRegisterSlideClient = () => inject(registerSlideClientKey);
624
+ var _hoisted_1$4 = ["aria-label"], _hoisted_2$1 = { class: "evo-vue-carousel__content h-full max-h-full relative" }, _hoisted_3 = {
1375
625
  key: 0,
1376
626
  class: "evo-vue-carousel__overlay absolute inset-0"
1377
- }, Nl = {
627
+ }, component_default = {
1378
628
  __name: "index",
1379
629
  props: {
1380
630
  autoplay: {
@@ -1407,8 +657,8 @@ const Ol = Symbol.for("evo-vue-carousel__register-slide-client"), kl = () => {
1407
657
  },
1408
658
  mode: {
1409
659
  type: String,
1410
- default: gl.SLIDER,
1411
- validator: (e) => Object.values(gl).includes(e)
660
+ default: EVO_VUE_CAROUSEL_MODE.SLIDER,
661
+ validator: (e) => Object.values(EVO_VUE_CAROUSEL_MODE).includes(e)
1412
662
  },
1413
663
  initialIndex: {
1414
664
  type: [String, Number],
@@ -1493,29 +743,36 @@ const Ol = Symbol.for("evo-vue-carousel__register-slide-client"), kl = () => {
1493
743
  hoverDelayLeave: {
1494
744
  type: [String, Number],
1495
745
  default: 0
746
+ },
747
+ label: {
748
+ type: String,
749
+ default: "Image Carousel"
1496
750
  }
1497
751
  },
1498
752
  setup(e) {
1499
- let t = e, n = D(null), r = oe(), { slideCount: i, isInit: a } = kl(), { config: o, isHovered: d } = wl(t, i, n, !!r.controls);
1500
- return (e, r) => (w(), l("div", {
753
+ let t = e, n = ref(null), r = useSlots(), { slideCount: a, isInit: s } = useRegisterSlide(), { config: c, isHovered: m } = useCarouselHost(t, a, n, !!r.controls);
754
+ return (e, r) => (openBlock(), createElementBlock("div", {
1501
755
  ref_key: "sliderRef",
1502
756
  ref: n,
1503
- class: S(["evo-vue-carousel relative max-h-full", { "is-hovered": j(d) }])
757
+ role: "region",
758
+ "aria-roledescription": "carousel",
759
+ "aria-label": t.label,
760
+ class: normalizeClass(["evo-vue-carousel relative max-h-full", { "is-hovered": unref(m) }])
1504
761
  }, [
1505
- u("div", jl, [
1506
- f(j(me), {
762
+ createElementVNode("div", _hoisted_2$1, [
763
+ createVNode(unref(S), {
1507
764
  slots: e.$slots,
1508
765
  only: ["default"]
1509
766
  }, {
1510
- default: P(() => [j(o).mode === "gallery" ? (w(), s(j(ld), {
767
+ default: withCtx(() => [unref(c).mode === "gallery" ? (openBlock(), createBlock(unref(Gallery_default), {
1511
768
  key: 0,
1512
- "total-slides": j(i),
1513
- "is-init": j(a)
1514
- }, null, 8, ["total-slides", "is-init"])) : (w(), s(j(od), {
769
+ "total-slides": unref(a),
770
+ "is-init": unref(s)
771
+ }, null, 8, ["total-slides", "is-init"])) : (openBlock(), createBlock(unref(Slider_default), {
1515
772
  key: 1,
1516
- class: S(t.viewportClass),
1517
- "total-slides": j(i),
1518
- "is-init": j(a)
773
+ class: normalizeClass(t.viewportClass),
774
+ "total-slides": unref(a),
775
+ "is-init": unref(s)
1519
776
  }, null, 8, [
1520
777
  "class",
1521
778
  "total-slides",
@@ -1523,8 +780,8 @@ const Ol = Symbol.for("evo-vue-carousel__register-slide-client"), kl = () => {
1523
780
  ]))]),
1524
781
  _: 1
1525
782
  }, 8, ["slots"]),
1526
- e.$slots.overlay ? (w(), l("div", Ml, [O(e.$slots, "overlay")])) : c("", !0),
1527
- j(o).hideNavigation === !0 ? c("", !0) : (w(), s(j(me), {
783
+ e.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_3, [renderSlot(e.$slots, "overlay")])) : createCommentVNode("", !0),
784
+ unref(c).hideNavigation === !0 ? createCommentVNode("", !0) : (openBlock(), createBlock(unref(S), {
1528
785
  key: 1,
1529
786
  slots: e.$slots,
1530
787
  only: [
@@ -1533,13 +790,13 @@ const Ol = Symbol.for("evo-vue-carousel__register-slide-client"), kl = () => {
1533
790
  "navigation"
1534
791
  ]
1535
792
  }, {
1536
- default: P(() => [f(j(Vu), {
1537
- class: S(t.navigationClass),
793
+ default: withCtx(() => [createVNode(unref(Navigation_default), {
794
+ class: normalizeClass(t.navigationClass),
1538
795
  "item-class": t.navigationItemClass,
1539
796
  "item-size-class": t.navigationItemSizeClass,
1540
797
  "prev-class": t.navigationPrevClass,
1541
798
  "next-class": t.navigationNextClass,
1542
- "total-slides": j(i),
799
+ "total-slides": unref(a),
1543
800
  "disable-on-navigation": t.disableOnNavigation
1544
801
  }, null, 8, [
1545
802
  "class",
@@ -1553,22 +810,22 @@ const Ol = Symbol.for("evo-vue-carousel__register-slide-client"), kl = () => {
1553
810
  _: 1
1554
811
  }, 8, ["slots"]))
1555
812
  ]),
1556
- j(o).hidePagination === !0 ? c("", !0) : (w(), s(j(me), {
813
+ unref(c).hidePagination === !0 ? createCommentVNode("", !0) : (openBlock(), createBlock(unref(S), {
1557
814
  key: 0,
1558
815
  slots: e.$slots,
1559
816
  only: ["pagination", "pagination-item"]
1560
817
  }, {
1561
- default: P(() => [f(j(Au), {
1562
- class: S(t.paginationClass),
818
+ default: withCtx(() => [createVNode(unref(Pagination_default), {
819
+ class: normalizeClass(t.paginationClass),
1563
820
  "background-class": t.paginationBackgroundClass,
1564
821
  "item-class": t.paginationItemClass,
1565
822
  "item-size-class": t.paginationItemSizeClass,
1566
823
  "item-active-class": t.paginationItemActiveClass,
1567
824
  "item-dot-class": t.paginationItemDotClass,
1568
825
  "item-dot-active-class": t.paginationItemDotActiveClass,
1569
- "total-slides": j(i),
1570
- "per-page": j(o).perPage,
1571
- wrap: j(o).wrap,
826
+ "total-slides": unref(a),
827
+ "per-page": unref(c).perPage,
828
+ wrap: unref(c).wrap,
1572
829
  "disable-on-navigation": t.disableOnNavigation
1573
830
  }, null, 8, [
1574
831
  "class",
@@ -1585,59 +842,286 @@ const Ol = Symbol.for("evo-vue-carousel__register-slide-client"), kl = () => {
1585
842
  ])]),
1586
843
  _: 1
1587
844
  }, 8, ["slots"])),
1588
- f(j(me), {
845
+ createVNode(unref(S), {
1589
846
  slots: e.$slots,
1590
847
  only: "controls"
1591
848
  }, {
1592
- default: P(() => [f(Dl)]),
849
+ default: withCtx(() => [createVNode(Autoplay_default)]),
1593
850
  _: 1
1594
851
  }, 8, ["slots"])
1595
- ], 2));
852
+ ], 10, _hoisted_1$4));
1596
853
  }
1597
854
  };
1598
- var Pl = Nl;
1599
- const Fl = "-", Il = (e) => {
1600
- let t = Bl(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e, i = (e) => {
1601
- let n = e.split(Fl);
1602
- return n[0] === "" && n.length !== 1 && n.shift(), Ll(n, t) || zl(e);
1603
- }, a = (e, t) => {
1604
- let i = n[e] || [];
1605
- return t && r[e] ? [...i, ...r[e]] : i;
855
+ function toArray(e) {
856
+ return Array.isArray(e) ? e : Array.from(e);
857
+ }
858
+ function isArrayLike(e) {
859
+ return e != null && typeof e != "function" && isLength(e.length);
860
+ }
861
+ function concat(...e) {
862
+ return flatten(e);
863
+ }
864
+ function isDeepKey(e) {
865
+ switch (typeof e) {
866
+ case "number":
867
+ case "symbol": return !1;
868
+ case "string": return e.includes(".") || e.includes("[") || e.includes("]");
869
+ }
870
+ }
871
+ function toKey(e) {
872
+ return typeof e == "string" || typeof e == "symbol" ? e : Object.is(e?.valueOf?.(), -0) ? "-0" : String(e);
873
+ }
874
+ function toString(e) {
875
+ if (e == null) return "";
876
+ if (typeof e == "string") return e;
877
+ if (Array.isArray(e)) return e.map(toString).join(",");
878
+ let t = String(e);
879
+ return t === "0" && Object.is(Number(e), -0) ? "-0" : t;
880
+ }
881
+ function toPath(e) {
882
+ if (Array.isArray(e)) return e.map(toKey);
883
+ if (typeof e == "symbol") return [e];
884
+ e = toString(e);
885
+ let t = [], n = e.length;
886
+ if (n === 0) return t;
887
+ let r = 0, a = "", s = "", c = !1;
888
+ for (e.charCodeAt(0) === 46 && (t.push(""), r++); r < n;) {
889
+ let l = e[r];
890
+ s ? l === "\\" && r + 1 < n ? (r++, a += e[r]) : l === s ? s = "" : a += l : c ? l === "\"" || l === "'" ? s = l : l === "]" ? (c = !1, t.push(a), a = "") : a += l : l === "[" ? (c = !0, a &&= (t.push(a), "")) : l === "." ? a &&= (t.push(a), "") : a += l, r++;
891
+ }
892
+ return a && t.push(a), t;
893
+ }
894
+ function get(e, t, n) {
895
+ if (e == null) return n;
896
+ switch (typeof t) {
897
+ case "string": {
898
+ if (isUnsafeProperty(t)) return n;
899
+ let r = e[t];
900
+ return r === void 0 ? isDeepKey(t) ? get(e, toPath(t), n) : n : r;
901
+ }
902
+ case "number":
903
+ case "symbol": {
904
+ typeof t == "number" && (t = toKey(t));
905
+ let r = e[t];
906
+ return r === void 0 ? n : r;
907
+ }
908
+ default: {
909
+ if (Array.isArray(t)) return getWithPath(e, t, n);
910
+ if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), isUnsafeProperty(t)) return n;
911
+ let r = e[t];
912
+ return r === void 0 ? n : r;
913
+ }
914
+ }
915
+ }
916
+ function getWithPath(e, t, n) {
917
+ if (t.length === 0) return n;
918
+ let r = e;
919
+ for (let e = 0; e < t.length; e++) {
920
+ if (r == null || isUnsafeProperty(t[e])) return n;
921
+ r = r[t[e]];
922
+ }
923
+ return r === void 0 ? n : r;
924
+ }
925
+ function property(e) {
926
+ return function(t) {
927
+ return get(t, e);
928
+ };
929
+ }
930
+ function isObject(e) {
931
+ return e !== null && (typeof e == "object" || typeof e == "function");
932
+ }
933
+ function isMatchWith(e, t, n) {
934
+ return typeof n == "function" ? isMatchWithInternal(e, t, function e(t, r, a, s, c, l) {
935
+ let u = n(t, r, a, s, c, l);
936
+ return u === void 0 ? isMatchWithInternal(t, r, e, l) : !!u;
937
+ }, /* @__PURE__ */ new Map()) : isMatch(e, t);
938
+ }
939
+ function isMatchWithInternal(e, t, n, r) {
940
+ if (t === e) return !0;
941
+ switch (typeof t) {
942
+ case "object": return isObjectMatch(e, t, n, r);
943
+ case "function": return Object.keys(t).length > 0 ? isMatchWithInternal(e, { ...t }, n, r) : eq(e, t);
944
+ default: return isObject(e) ? typeof t == "string" ? t === "" : !0 : eq(e, t);
945
+ }
946
+ }
947
+ function isObjectMatch(e, t, n, r) {
948
+ if (t == null) return !0;
949
+ if (Array.isArray(t)) return isArrayMatch(e, t, n, r);
950
+ if (t instanceof Map) return isMapMatch(e, t, n, r);
951
+ if (t instanceof Set) return isSetMatch(e, t, n, r);
952
+ let a = Object.keys(t);
953
+ if (e == null) return a.length === 0;
954
+ if (a.length === 0) return !0;
955
+ if (r && r.has(t)) return r.get(t) === e;
956
+ r && r.set(t, e);
957
+ try {
958
+ for (let s = 0; s < a.length; s++) {
959
+ let c = a[s];
960
+ if (!isPrimitive(e) && !(c in e) || t[c] === void 0 && e[c] !== void 0 || t[c] === null && e[c] !== null || !n(e[c], t[c], c, e, t, r)) return !1;
961
+ }
962
+ return !0;
963
+ } finally {
964
+ r && r.delete(t);
965
+ }
966
+ }
967
+ function isMapMatch(e, t, n, r) {
968
+ if (t.size === 0) return !0;
969
+ if (!(e instanceof Map)) return !1;
970
+ for (let [a, s] of t.entries()) if (n(e.get(a), s, a, e, t, r) === !1) return !1;
971
+ return !0;
972
+ }
973
+ function isArrayMatch(e, t, n, r) {
974
+ if (t.length === 0) return !0;
975
+ if (!Array.isArray(e)) return !1;
976
+ let a = /* @__PURE__ */ new Set();
977
+ for (let s = 0; s < t.length; s++) {
978
+ let c = t[s], l = !1;
979
+ for (let u = 0; u < e.length; u++) {
980
+ if (a.has(u)) continue;
981
+ let d = e[u], p = !1;
982
+ if (n(d, c, s, e, t, r) && (p = !0), p) {
983
+ a.add(u), l = !0;
984
+ break;
985
+ }
986
+ }
987
+ if (!l) return !1;
988
+ }
989
+ return !0;
990
+ }
991
+ function isSetMatch(e, t, n, r) {
992
+ return t.size === 0 ? !0 : e instanceof Set ? isArrayMatch([...e], [...t], n, r) : !1;
993
+ }
994
+ function isMatch(e, t) {
995
+ return isMatchWith(e, t, () => void 0);
996
+ }
997
+ function matches(e) {
998
+ return e = cloneDeep$1(e), (t) => isMatch(t, e);
999
+ }
1000
+ function cloneDeepWith(e, t) {
1001
+ return cloneDeepWith$1(e, (n, r, a, s) => {
1002
+ let c = t?.(n, r, a, s);
1003
+ if (c !== void 0) return c;
1004
+ if (typeof e == "object") switch (Object.prototype.toString.call(e)) {
1005
+ case numberTag:
1006
+ case stringTag:
1007
+ case booleanTag: {
1008
+ let t = new e.constructor(e?.valueOf());
1009
+ return copyProperties(t, e), t;
1010
+ }
1011
+ case argumentsTag: {
1012
+ let t = {};
1013
+ return copyProperties(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
1014
+ }
1015
+ default: return;
1016
+ }
1017
+ });
1018
+ }
1019
+ function cloneDeep(e) {
1020
+ return cloneDeepWith(e);
1021
+ }
1022
+ var IS_UNSIGNED_INTEGER = /^(?:0|[1-9]\d*)$/;
1023
+ function isIndex(e, t = 2 ** 53 - 1) {
1024
+ switch (typeof e) {
1025
+ case "number": return Number.isInteger(e) && e >= 0 && e < t;
1026
+ case "symbol": return !1;
1027
+ case "string": return IS_UNSIGNED_INTEGER.test(e);
1028
+ }
1029
+ }
1030
+ function isArguments(e) {
1031
+ return typeof e == "object" && !!e && getTag(e) === "[object Arguments]";
1032
+ }
1033
+ function has(e, t) {
1034
+ let n;
1035
+ if (n = Array.isArray(t) ? t : typeof t == "string" && isDeepKey(t) && e?.[t] == null ? toPath(t) : [t], n.length === 0) return !1;
1036
+ let r = e;
1037
+ for (let e = 0; e < n.length; e++) {
1038
+ let t = n[e];
1039
+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || isArguments(r)) && isIndex(t) && t < r.length)) return !1;
1040
+ r = r[t];
1041
+ }
1042
+ return !0;
1043
+ }
1044
+ function matchesProperty(e, t) {
1045
+ switch (typeof e) {
1046
+ case "object":
1047
+ Object.is(e?.valueOf(), -0) && (e = "-0");
1048
+ break;
1049
+ case "number":
1050
+ e = toKey(e);
1051
+ break;
1052
+ }
1053
+ return t = cloneDeep(t), function(n) {
1054
+ let r = get(n, e);
1055
+ return r === void 0 ? has(n, e) : t === void 0 ? r === void 0 : isMatch(r, t);
1606
1056
  };
1057
+ }
1058
+ function isIterateeCall(e, t, n) {
1059
+ return isObject(n) && (typeof t == "number" && isArrayLike(n) && isIndex(t) && t < n.length || typeof t == "string" && t in n) ? eq(n[t], e) : !1;
1060
+ }
1061
+ function findLastIndex(e, t = identity, n = e ? e.length - 1 : 0) {
1062
+ if (!e) return -1;
1063
+ n = n < 0 ? Math.max(e.length + n, 0) : Math.min(n, e.length - 1);
1064
+ let r = toArray(e).slice(0, n + 1);
1065
+ switch (typeof t) {
1066
+ case "function": return r.findLastIndex(t);
1067
+ case "object": if (Array.isArray(t) && t.length === 2) {
1068
+ let e = t[0], n = t[1];
1069
+ return r.findLastIndex(matchesProperty(e, n));
1070
+ } else return r.findLastIndex(matches(t));
1071
+ case "number":
1072
+ case "symbol":
1073
+ case "string": return r.findLastIndex(property(t));
1074
+ }
1075
+ }
1076
+ function slice(e, t, n) {
1077
+ if (!isArrayLike(e)) return [];
1078
+ let r = e.length;
1079
+ n === void 0 ? n = r : typeof n != "number" && isIterateeCall(e, t, n) && (t = 0, n = r), t = toInteger(t), n = toInteger(n), t = t < 0 ? Math.max(r + t, 0) : Math.min(t, r), n = n < 0 ? Math.max(r + n, 0) : Math.min(n, r);
1080
+ let a = Math.max(n - t, 0), s = Array(a);
1081
+ for (let n = 0; n < a; ++n) s[n] = e[t + n];
1082
+ return s;
1083
+ }
1084
+ var CLASS_PART_SEPARATOR = "-", createClassGroupUtils = (e) => {
1085
+ let t = createClassMap(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
1607
1086
  return {
1608
- getClassGroupId: i,
1609
- getConflictingClassGroupIds: a
1087
+ getClassGroupId: (e) => {
1088
+ let n = e.split(CLASS_PART_SEPARATOR);
1089
+ return n[0] === "" && n.length !== 1 && n.shift(), getGroupRecursive(n, t) || getGroupIdForArbitraryProperty(e);
1090
+ },
1091
+ getConflictingClassGroupIds: (e, t) => {
1092
+ let a = n[e] || [];
1093
+ return t && r[e] ? [...a, ...r[e]] : a;
1094
+ }
1610
1095
  };
1611
- }, Ll = (e, t) => {
1096
+ }, getGroupRecursive = (e, t) => {
1612
1097
  if (e.length === 0) return t.classGroupId;
1613
- let n = e[0], r = t.nextPart.get(n), i = r ? Ll(e.slice(1), r) : void 0;
1614
- if (i) return i;
1098
+ let n = e[0], r = t.nextPart.get(n), a = r ? getGroupRecursive(e.slice(1), r) : void 0;
1099
+ if (a) return a;
1615
1100
  if (t.validators.length === 0) return;
1616
- let a = e.join(Fl);
1617
- return t.validators.find(({ validator: e }) => e(a))?.classGroupId;
1618
- }, Rl = /^\[(.+)\]$/, zl = (e) => {
1619
- if (Rl.test(e)) {
1620
- let t = Rl.exec(e)[1], n = t?.substring(0, t.indexOf(":"));
1101
+ let s = e.join(CLASS_PART_SEPARATOR);
1102
+ return t.validators.find(({ validator: e }) => e(s))?.classGroupId;
1103
+ }, arbitraryPropertyRegex = /^\[(.+)\]$/, getGroupIdForArbitraryProperty = (e) => {
1104
+ if (arbitraryPropertyRegex.test(e)) {
1105
+ let t = arbitraryPropertyRegex.exec(e)[1], n = t?.substring(0, t.indexOf(":"));
1621
1106
  if (n) return "arbitrary.." + n;
1622
1107
  }
1623
- }, Bl = (e) => {
1624
- let { theme: t, prefix: n } = e, r = {
1108
+ }, createClassMap = (e) => {
1109
+ let { theme: t, classGroups: n } = e, r = {
1625
1110
  nextPart: /* @__PURE__ */ new Map(),
1626
1111
  validators: []
1627
- }, i = Wl(Object.entries(e.classGroups), n);
1628
- return i.forEach(([e, n]) => {
1629
- Vl(n, r, e, t);
1630
- }), r;
1631
- }, Vl = (e, t, n, r) => {
1112
+ };
1113
+ for (let e in n) processClassesRecursively(n[e], r, e, t);
1114
+ return r;
1115
+ }, processClassesRecursively = (e, t, n, r) => {
1632
1116
  e.forEach((e) => {
1633
1117
  if (typeof e == "string") {
1634
- let r = e === "" ? t : Hl(t, e);
1118
+ let r = e === "" ? t : getPart(t, e);
1635
1119
  r.classGroupId = n;
1636
1120
  return;
1637
1121
  }
1638
1122
  if (typeof e == "function") {
1639
- if (Ul(e)) {
1640
- Vl(e(r), t, n, r);
1123
+ if (isThemeGetter(e)) {
1124
+ processClassesRecursively(e(r), t, n, r);
1641
1125
  return;
1642
1126
  }
1643
1127
  t.validators.push({
@@ -1646,187 +1130,312 @@ const Fl = "-", Il = (e) => {
1646
1130
  });
1647
1131
  return;
1648
1132
  }
1649
- Object.entries(e).forEach(([e, i]) => {
1650
- Vl(i, Hl(t, e), n, r);
1133
+ Object.entries(e).forEach(([e, a]) => {
1134
+ processClassesRecursively(a, getPart(t, e), n, r);
1651
1135
  });
1652
1136
  });
1653
- }, Hl = (e, t) => {
1137
+ }, getPart = (e, t) => {
1654
1138
  let n = e;
1655
- return t.split(Fl).forEach((e) => {
1139
+ return t.split(CLASS_PART_SEPARATOR).forEach((e) => {
1656
1140
  n.nextPart.has(e) || n.nextPart.set(e, {
1657
1141
  nextPart: /* @__PURE__ */ new Map(),
1658
1142
  validators: []
1659
1143
  }), n = n.nextPart.get(e);
1660
1144
  }), n;
1661
- }, Ul = (e) => e.isThemeGetter, Wl = (e, t) => t ? e.map(([e, n]) => {
1662
- let r = n.map((e) => typeof e == "string" ? t + e : typeof e == "object" ? Object.fromEntries(Object.entries(e).map(([e, n]) => [t + e, n])) : e);
1663
- return [e, r];
1664
- }) : e, Gl = (e) => {
1145
+ }, isThemeGetter = (e) => e.isThemeGetter, createLruCache = (e) => {
1665
1146
  if (e < 1) return {
1666
1147
  get: () => void 0,
1667
1148
  set: () => {}
1668
1149
  };
1669
- let t = 0, n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = (i, a) => {
1670
- n.set(i, a), t++, t > e && (t = 0, r = n, n = /* @__PURE__ */ new Map());
1150
+ let t = 0, n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), a = (a, s) => {
1151
+ n.set(a, s), t++, t > e && (t = 0, r = n, n = /* @__PURE__ */ new Map());
1671
1152
  };
1672
1153
  return {
1673
1154
  get(e) {
1674
1155
  let t = n.get(e);
1675
1156
  if (t !== void 0) return t;
1676
- if ((t = r.get(e)) !== void 0) return i(e, t), t;
1157
+ if ((t = r.get(e)) !== void 0) return a(e, t), t;
1677
1158
  },
1678
1159
  set(e, t) {
1679
- n.has(e) ? n.set(e, t) : i(e, t);
1160
+ n.has(e) ? n.set(e, t) : a(e, t);
1680
1161
  }
1681
1162
  };
1682
- }, Kl = "!", ql = (e) => {
1683
- let { separator: t, experimentalParseClassName: n } = e, r = t.length === 1, i = t[0], a = t.length, o = (e) => {
1684
- let n = [], o = 0, s = 0, c;
1685
- for (let l = 0; l < e.length; l++) {
1686
- let u = e[l];
1687
- if (o === 0) {
1688
- if (u === i && (r || e.slice(l, l + a) === t)) {
1689
- n.push(e.slice(s, l)), s = l + a;
1163
+ }, IMPORTANT_MODIFIER = "!", MODIFIER_SEPARATOR = ":", MODIFIER_SEPARATOR_LENGTH = 1, createParseClassName = (e) => {
1164
+ let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
1165
+ let t = [], n = 0, r = 0, a = 0, s;
1166
+ for (let c = 0; c < e.length; c++) {
1167
+ let l = e[c];
1168
+ if (n === 0 && r === 0) {
1169
+ if (l === MODIFIER_SEPARATOR) {
1170
+ t.push(e.slice(a, c)), a = c + MODIFIER_SEPARATOR_LENGTH;
1690
1171
  continue;
1691
1172
  }
1692
- if (u === "/") {
1693
- c = l;
1173
+ if (l === "/") {
1174
+ s = c;
1694
1175
  continue;
1695
1176
  }
1696
1177
  }
1697
- u === "[" ? o++ : u === "]" && o--;
1178
+ l === "[" ? n++ : l === "]" ? n-- : l === "(" ? r++ : l === ")" && r--;
1698
1179
  }
1699
- let l = n.length === 0 ? e : e.substring(s), u = l.startsWith(Kl), d = u ? l.substring(1) : l, f = c && c > s ? c - s : void 0;
1180
+ let c = t.length === 0 ? e : e.substring(a), l = stripImportantModifier(c);
1700
1181
  return {
1701
- modifiers: n,
1702
- hasImportantModifier: u,
1703
- baseClassName: d,
1704
- maybePostfixModifierPosition: f
1182
+ modifiers: t,
1183
+ hasImportantModifier: l !== c,
1184
+ baseClassName: l,
1185
+ maybePostfixModifierPosition: s && s > a ? s - a : void 0
1186
+ };
1187
+ };
1188
+ if (t) {
1189
+ let e = t + MODIFIER_SEPARATOR, n = r;
1190
+ r = (t) => t.startsWith(e) ? n(t.substring(e.length)) : {
1191
+ isExternal: !0,
1192
+ modifiers: [],
1193
+ hasImportantModifier: !1,
1194
+ baseClassName: t,
1195
+ maybePostfixModifierPosition: void 0
1705
1196
  };
1197
+ }
1198
+ if (n) {
1199
+ let e = r;
1200
+ r = (t) => n({
1201
+ className: t,
1202
+ parseClassName: e
1203
+ });
1204
+ }
1205
+ return r;
1206
+ }, stripImportantModifier = (e) => e.endsWith(IMPORTANT_MODIFIER) ? e.substring(0, e.length - 1) : e.startsWith(IMPORTANT_MODIFIER) ? e.substring(1) : e, createSortModifiers = (e) => {
1207
+ let t = Object.fromEntries(e.orderSensitiveModifiers.map((e) => [e, !0]));
1208
+ return (e) => {
1209
+ if (e.length <= 1) return e;
1210
+ let n = [], r = [];
1211
+ return e.forEach((e) => {
1212
+ e[0] === "[" || t[e] ? (n.push(...r.sort(), e), r = []) : r.push(e);
1213
+ }), n.push(...r.sort()), n;
1706
1214
  };
1707
- return n ? (e) => n({
1708
- className: e,
1709
- parseClassName: o
1710
- }) : o;
1711
- }, Jl = (e) => {
1712
- if (e.length <= 1) return e;
1713
- let t = [], n = [];
1714
- return e.forEach((e) => {
1715
- let r = e[0] === "[";
1716
- r ? (t.push(...n.sort(), e), n = []) : n.push(e);
1717
- }), t.push(...n.sort()), t;
1718
- }, Yl = (e) => ({
1719
- cache: Gl(e.cacheSize),
1720
- parseClassName: ql(e),
1721
- ...Il(e)
1722
- }), Xl = /\s+/, Zl = (e, t) => {
1723
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i } = t, a = [], o = e.trim().split(Xl), s = "";
1724
- for (let e = o.length - 1; e >= 0; --e) {
1725
- let t = o[e], { modifiers: c, hasImportantModifier: l, baseClassName: u, maybePostfixModifierPosition: d } = n(t), f = !!d, p = r(f ? u.substring(0, d) : u);
1726
- if (!p) {
1727
- if (!f) {
1728
- s = t + (s.length > 0 ? " " + s : s);
1215
+ }, createConfigUtils = (e) => ({
1216
+ cache: createLruCache(e.cacheSize),
1217
+ parseClassName: createParseClassName(e),
1218
+ sortModifiers: createSortModifiers(e),
1219
+ ...createClassGroupUtils(e)
1220
+ }), SPLIT_CLASSES_REGEX = /\s+/, mergeClassList = (e, t) => {
1221
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: a, sortModifiers: s } = t, c = [], l = e.trim().split(SPLIT_CLASSES_REGEX), u = "";
1222
+ for (let e = l.length - 1; e >= 0; --e) {
1223
+ let t = l[e], { isExternal: d, modifiers: p, hasImportantModifier: m, baseClassName: _, maybePostfixModifierPosition: b } = n(t);
1224
+ if (d) {
1225
+ u = t + (u.length > 0 ? " " + u : u);
1226
+ continue;
1227
+ }
1228
+ let x = !!b, C = r(x ? _.substring(0, b) : _);
1229
+ if (!C) {
1230
+ if (!x) {
1231
+ u = t + (u.length > 0 ? " " + u : u);
1729
1232
  continue;
1730
1233
  }
1731
- if (p = r(u), !p) {
1732
- s = t + (s.length > 0 ? " " + s : s);
1234
+ if (C = r(_), !C) {
1235
+ u = t + (u.length > 0 ? " " + u : u);
1733
1236
  continue;
1734
1237
  }
1735
- f = !1;
1238
+ x = !1;
1736
1239
  }
1737
- let m = Jl(c).join(":"), h = l ? m + Kl : m, g = h + p;
1738
- if (a.includes(g)) continue;
1739
- a.push(g);
1740
- let _ = i(p, f);
1741
- for (let e = 0; e < _.length; ++e) {
1742
- let t = _[e];
1743
- a.push(h + t);
1240
+ let w = s(p).join(":"), T = m ? w + IMPORTANT_MODIFIER : w, E = T + C;
1241
+ if (c.includes(E)) continue;
1242
+ c.push(E);
1243
+ let D = a(C, x);
1244
+ for (let e = 0; e < D.length; ++e) {
1245
+ let t = D[e];
1246
+ c.push(T + t);
1744
1247
  }
1745
- s = t + (s.length > 0 ? " " + s : s);
1248
+ u = t + (u.length > 0 ? " " + u : u);
1746
1249
  }
1747
- return s;
1250
+ return u;
1748
1251
  };
1749
- function Ql() {
1252
+ function twJoin() {
1750
1253
  let e = 0, t, n, r = "";
1751
- for (; e < arguments.length;) (t = arguments[e++]) && (n = $l(t)) && (r && (r += " "), r += n);
1254
+ for (; e < arguments.length;) (t = arguments[e++]) && (n = toValue$1(t)) && (r && (r += " "), r += n);
1752
1255
  return r;
1753
1256
  }
1754
- const $l = (e) => {
1257
+ var toValue$1 = (e) => {
1755
1258
  if (typeof e == "string") return e;
1756
1259
  let t, n = "";
1757
- for (let r = 0; r < e.length; r++) e[r] && (t = $l(e[r])) && (n && (n += " "), n += t);
1260
+ for (let r = 0; r < e.length; r++) e[r] && (t = toValue$1(e[r])) && (n && (n += " "), n += t);
1758
1261
  return n;
1759
1262
  };
1760
- function eu(e, ...t) {
1761
- let n, r, i, a = o;
1762
- function o(o) {
1763
- let c = t.reduce((e, t) => t(e), e());
1764
- return n = Yl(c), r = n.cache.get, i = n.cache.set, a = s, s(o);
1263
+ function createTailwindMerge(e, ...t) {
1264
+ let n, r, a, s = c;
1265
+ function c(c) {
1266
+ return n = createConfigUtils(t.reduce((e, t) => t(e), e())), r = n.cache.get, a = n.cache.set, s = l, l(c);
1765
1267
  }
1766
- function s(e) {
1268
+ function l(e) {
1767
1269
  let t = r(e);
1768
1270
  if (t) return t;
1769
- let a = Zl(e, n);
1770
- return i(e, a), a;
1271
+ let s = mergeClassList(e, n);
1272
+ return a(e, s), s;
1771
1273
  }
1772
1274
  return function() {
1773
- return a(Ql.apply(null, arguments));
1275
+ return s(twJoin.apply(null, arguments));
1774
1276
  };
1775
1277
  }
1776
- const J = (e) => {
1278
+ var fromTheme = (e) => {
1777
1279
  let t = (t) => t[e] || [];
1778
1280
  return t.isThemeGetter = !0, t;
1779
- }, tu = /^\[(?:([a-z-]+):)?(.+)\]$/i, nu = /^\d+\/\d+$/, ru = /* @__PURE__ */ new Set([
1780
- "px",
1781
- "full",
1782
- "screen"
1783
- ]), iu = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, au = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ou = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, su = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, cu = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Y = (e) => Z(e) || ru.has(e) || nu.test(e), X = (e) => yu(e, "length", bu), Z = (e) => !!e && !Number.isNaN(Number(e)), lu = (e) => yu(e, "number", Z), uu = (e) => !!e && Number.isInteger(Number(e)), du = (e) => e.endsWith("%") && Z(e.slice(0, -1)), Q = (e) => tu.test(e), $ = (e) => iu.test(e), fu = /* @__PURE__ */ new Set([
1784
- "length",
1785
- "size",
1786
- "percentage"
1787
- ]), pu = (e) => yu(e, fu, xu), mu = (e) => yu(e, "position", xu), hu = /* @__PURE__ */ new Set(["image", "url"]), gu = (e) => yu(e, hu, Cu), _u = (e) => yu(e, "", Su), vu = () => !0, yu = (e, t, n) => {
1788
- let r = tu.exec(e);
1789
- return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
1790
- }, bu = (e) => au.test(e) && !ou.test(e), xu = () => !1, Su = (e) => su.test(e), Cu = (e) => cu.test(e), wu = () => {
1791
- let e = J("colors"), t = J("spacing"), n = J("blur"), r = J("brightness"), i = J("borderColor"), a = J("borderRadius"), o = J("borderSpacing"), s = J("borderWidth"), c = J("contrast"), l = J("grayscale"), u = J("hueRotate"), d = J("invert"), f = J("gap"), p = J("gradientColorStops"), m = J("gradientColorStopPositions"), h = J("inset"), g = J("margin"), _ = J("opacity"), v = J("padding"), y = J("saturate"), b = J("scale"), x = J("sepia"), ee = J("skew"), S = J("space"), te = J("translate"), ne = () => [
1281
+ }, arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i, fractionRegex = /^\d+\/\d+$/, tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, isFraction = (e) => fractionRegex.test(e), isNumber = (e) => !!e && !Number.isNaN(Number(e)), isInteger = (e) => !!e && Number.isInteger(Number(e)), isPercent = (e) => e.endsWith("%") && isNumber(e.slice(0, -1)), isTshirtSize = (e) => tshirtUnitRegex.test(e), isAny = () => !0, isLengthOnly = (e) => lengthUnitRegex.test(e) && !colorFunctionRegex.test(e), isNever = () => !1, isShadow = (e) => shadowRegex.test(e), isImage = (e) => imageRegex.test(e), isAnyNonArbitrary = (e) => !isArbitraryValue(e) && !isArbitraryVariable(e), isArbitrarySize = (e) => getIsArbitraryValue(e, isLabelSize, isNever), isArbitraryValue = (e) => arbitraryValueRegex.test(e), isArbitraryLength = (e) => getIsArbitraryValue(e, isLabelLength, isLengthOnly), isArbitraryNumber = (e) => getIsArbitraryValue(e, isLabelNumber, isNumber), isArbitraryPosition = (e) => getIsArbitraryValue(e, isLabelPosition, isNever), isArbitraryImage = (e) => getIsArbitraryValue(e, isLabelImage, isImage), isArbitraryShadow = (e) => getIsArbitraryValue(e, isLabelShadow, isShadow), isArbitraryVariable = (e) => arbitraryVariableRegex.test(e), isArbitraryVariableLength = (e) => getIsArbitraryVariable(e, isLabelLength), isArbitraryVariableFamilyName = (e) => getIsArbitraryVariable(e, isLabelFamilyName), isArbitraryVariablePosition = (e) => getIsArbitraryVariable(e, isLabelPosition), isArbitraryVariableSize = (e) => getIsArbitraryVariable(e, isLabelSize), isArbitraryVariableImage = (e) => getIsArbitraryVariable(e, isLabelImage), isArbitraryVariableShadow = (e) => getIsArbitraryVariable(e, isLabelShadow, !0), getIsArbitraryValue = (e, t, n) => {
1282
+ let r = arbitraryValueRegex.exec(e);
1283
+ return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
1284
+ }, getIsArbitraryVariable = (e, t, n = !1) => {
1285
+ let r = arbitraryVariableRegex.exec(e);
1286
+ return r ? r[1] ? t(r[1]) : n : !1;
1287
+ }, isLabelPosition = (e) => e === "position" || e === "percentage", isLabelImage = (e) => e === "image" || e === "url", isLabelSize = (e) => e === "length" || e === "size" || e === "bg-size", isLabelLength = (e) => e === "length", isLabelNumber = (e) => e === "number", isLabelFamilyName = (e) => e === "family-name", isLabelShadow = (e) => e === "shadow", twMerge = /* @__PURE__ */ createTailwindMerge(() => {
1288
+ let e = fromTheme("color"), t = fromTheme("font"), n = fromTheme("text"), r = fromTheme("font-weight"), a = fromTheme("tracking"), s = fromTheme("leading"), c = fromTheme("breakpoint"), l = fromTheme("container"), u = fromTheme("spacing"), d = fromTheme("radius"), p = fromTheme("shadow"), m = fromTheme("inset-shadow"), _ = fromTheme("text-shadow"), b = fromTheme("drop-shadow"), x = fromTheme("blur"), C = fromTheme("perspective"), w = fromTheme("aspect"), T = fromTheme("ease"), E = fromTheme("animate"), D = () => [
1792
1289
  "auto",
1793
- "contain",
1794
- "none"
1795
- ], C = () => [
1290
+ "avoid",
1291
+ "all",
1292
+ "avoid-page",
1293
+ "page",
1294
+ "left",
1295
+ "right",
1296
+ "column"
1297
+ ], O = () => [
1298
+ "center",
1299
+ "top",
1300
+ "bottom",
1301
+ "left",
1302
+ "right",
1303
+ "top-left",
1304
+ "left-top",
1305
+ "top-right",
1306
+ "right-top",
1307
+ "bottom-right",
1308
+ "right-bottom",
1309
+ "bottom-left",
1310
+ "left-bottom"
1311
+ ], k = () => [
1312
+ ...O(),
1313
+ isArbitraryVariable,
1314
+ isArbitraryValue
1315
+ ], j = () => [
1796
1316
  "auto",
1797
1317
  "hidden",
1798
1318
  "clip",
1799
1319
  "visible",
1800
1320
  "scroll"
1801
- ], w = () => [
1321
+ ], M = () => [
1802
1322
  "auto",
1803
- Q,
1804
- t
1805
- ], T = () => [Q, t], E = () => [
1806
- "",
1807
- Y,
1808
- X
1809
- ], D = () => [
1323
+ "contain",
1324
+ "none"
1325
+ ], N = () => [
1326
+ isArbitraryVariable,
1327
+ isArbitraryValue,
1328
+ u
1329
+ ], P = () => [
1330
+ isFraction,
1331
+ "full",
1810
1332
  "auto",
1811
- Z,
1812
- Q
1813
- ], re = () => [
1814
- "bottom",
1333
+ ...N()
1334
+ ], F = () => [
1335
+ isInteger,
1336
+ "none",
1337
+ "subgrid",
1338
+ isArbitraryVariable,
1339
+ isArbitraryValue
1340
+ ], I = () => [
1341
+ "auto",
1342
+ { span: [
1343
+ "full",
1344
+ isInteger,
1345
+ isArbitraryVariable,
1346
+ isArbitraryValue
1347
+ ] },
1348
+ isInteger,
1349
+ isArbitraryVariable,
1350
+ isArbitraryValue
1351
+ ], L = () => [
1352
+ isInteger,
1353
+ "auto",
1354
+ isArbitraryVariable,
1355
+ isArbitraryValue
1356
+ ], R = () => [
1357
+ "auto",
1358
+ "min",
1359
+ "max",
1360
+ "fr",
1361
+ isArbitraryVariable,
1362
+ isArbitraryValue
1363
+ ], z = () => [
1364
+ "start",
1365
+ "end",
1815
1366
  "center",
1816
- "left",
1817
- "left-bottom",
1818
- "left-top",
1819
- "right",
1820
- "right-bottom",
1821
- "right-top",
1822
- "top"
1823
- ], O = () => [
1367
+ "between",
1368
+ "around",
1369
+ "evenly",
1370
+ "stretch",
1371
+ "baseline",
1372
+ "center-safe",
1373
+ "end-safe"
1374
+ ], B = () => [
1375
+ "start",
1376
+ "end",
1377
+ "center",
1378
+ "stretch",
1379
+ "center-safe",
1380
+ "end-safe"
1381
+ ], V = () => ["auto", ...N()], H = () => [
1382
+ isFraction,
1383
+ "auto",
1384
+ "full",
1385
+ "dvw",
1386
+ "dvh",
1387
+ "lvw",
1388
+ "lvh",
1389
+ "svw",
1390
+ "svh",
1391
+ "min",
1392
+ "max",
1393
+ "fit",
1394
+ ...N()
1395
+ ], U = () => [
1396
+ e,
1397
+ isArbitraryVariable,
1398
+ isArbitraryValue
1399
+ ], W = () => [
1400
+ ...O(),
1401
+ isArbitraryVariablePosition,
1402
+ isArbitraryPosition,
1403
+ { position: [isArbitraryVariable, isArbitraryValue] }
1404
+ ], ci = () => ["no-repeat", { repeat: [
1405
+ "",
1406
+ "x",
1407
+ "y",
1408
+ "space",
1409
+ "round"
1410
+ ] }], li = () => [
1411
+ "auto",
1412
+ "cover",
1413
+ "contain",
1414
+ isArbitraryVariableSize,
1415
+ isArbitrarySize,
1416
+ { size: [isArbitraryVariable, isArbitraryValue] }
1417
+ ], G = () => [
1418
+ isPercent,
1419
+ isArbitraryVariableLength,
1420
+ isArbitraryLength
1421
+ ], K = () => [
1422
+ "",
1423
+ "none",
1424
+ "full",
1425
+ d,
1426
+ isArbitraryVariable,
1427
+ isArbitraryValue
1428
+ ], q = () => [
1429
+ "",
1430
+ isNumber,
1431
+ isArbitraryVariableLength,
1432
+ isArbitraryLength
1433
+ ], J = () => [
1824
1434
  "solid",
1825
1435
  "dashed",
1826
1436
  "dotted",
1827
- "double",
1828
- "none"
1829
- ], ie = () => [
1437
+ "double"
1438
+ ], ui = () => [
1830
1439
  "normal",
1831
1440
  "multiply",
1832
1441
  "screen",
@@ -1843,80 +1452,117 @@ const J = (e) => {
1843
1452
  "saturation",
1844
1453
  "color",
1845
1454
  "luminosity"
1846
- ], k = () => [
1847
- "start",
1848
- "end",
1849
- "center",
1850
- "between",
1851
- "around",
1852
- "evenly",
1853
- "stretch"
1854
- ], A = () => [
1455
+ ], Y = () => [
1456
+ isNumber,
1457
+ isPercent,
1458
+ isArbitraryVariablePosition,
1459
+ isArbitraryPosition
1460
+ ], di = () => [
1855
1461
  "",
1856
- "0",
1857
- Q
1858
- ], j = () => [
1859
- "auto",
1860
- "avoid",
1861
- "all",
1862
- "avoid-page",
1863
- "page",
1864
- "left",
1865
- "right",
1866
- "column"
1867
- ], M = () => [Z, Q];
1462
+ "none",
1463
+ x,
1464
+ isArbitraryVariable,
1465
+ isArbitraryValue
1466
+ ], X = () => [
1467
+ "none",
1468
+ isNumber,
1469
+ isArbitraryVariable,
1470
+ isArbitraryValue
1471
+ ], Z = () => [
1472
+ "none",
1473
+ isNumber,
1474
+ isArbitraryVariable,
1475
+ isArbitraryValue
1476
+ ], Q = () => [
1477
+ isNumber,
1478
+ isArbitraryVariable,
1479
+ isArbitraryValue
1480
+ ], $ = () => [
1481
+ isFraction,
1482
+ "full",
1483
+ ...N()
1484
+ ];
1868
1485
  return {
1869
1486
  cacheSize: 500,
1870
- separator: ":",
1871
1487
  theme: {
1872
- colors: [vu],
1873
- spacing: [Y, X],
1874
- blur: [
1875
- "none",
1876
- "",
1877
- $,
1878
- Q
1488
+ animate: [
1489
+ "spin",
1490
+ "ping",
1491
+ "pulse",
1492
+ "bounce"
1493
+ ],
1494
+ aspect: ["video"],
1495
+ blur: [isTshirtSize],
1496
+ breakpoint: [isTshirtSize],
1497
+ color: [isAny],
1498
+ container: [isTshirtSize],
1499
+ "drop-shadow": [isTshirtSize],
1500
+ ease: [
1501
+ "in",
1502
+ "out",
1503
+ "in-out"
1504
+ ],
1505
+ font: [isAnyNonArbitrary],
1506
+ "font-weight": [
1507
+ "thin",
1508
+ "extralight",
1509
+ "light",
1510
+ "normal",
1511
+ "medium",
1512
+ "semibold",
1513
+ "bold",
1514
+ "extrabold",
1515
+ "black"
1879
1516
  ],
1880
- brightness: M(),
1881
- borderColor: [e],
1882
- borderRadius: [
1517
+ "inset-shadow": [isTshirtSize],
1518
+ leading: [
1883
1519
  "none",
1884
- "",
1885
- "full",
1886
- $,
1887
- Q
1520
+ "tight",
1521
+ "snug",
1522
+ "normal",
1523
+ "relaxed",
1524
+ "loose"
1888
1525
  ],
1889
- borderSpacing: T(),
1890
- borderWidth: E(),
1891
- contrast: M(),
1892
- grayscale: A(),
1893
- hueRotate: M(),
1894
- invert: A(),
1895
- gap: T(),
1896
- gradientColorStops: [e],
1897
- gradientColorStopPositions: [du, X],
1898
- inset: w(),
1899
- margin: w(),
1900
- opacity: M(),
1901
- padding: T(),
1902
- saturate: M(),
1903
- scale: M(),
1904
- sepia: A(),
1905
- skew: M(),
1906
- space: T(),
1907
- translate: T()
1526
+ perspective: [
1527
+ "dramatic",
1528
+ "near",
1529
+ "normal",
1530
+ "midrange",
1531
+ "distant",
1532
+ "none"
1533
+ ],
1534
+ radius: [isTshirtSize],
1535
+ shadow: [isTshirtSize],
1536
+ spacing: ["px", isNumber],
1537
+ text: [isTshirtSize],
1538
+ "text-shadow": [isTshirtSize],
1539
+ tracking: [
1540
+ "tighter",
1541
+ "tight",
1542
+ "normal",
1543
+ "wide",
1544
+ "wider",
1545
+ "widest"
1546
+ ]
1908
1547
  },
1909
1548
  classGroups: {
1910
1549
  aspect: [{ aspect: [
1911
1550
  "auto",
1912
1551
  "square",
1913
- "video",
1914
- Q
1552
+ isFraction,
1553
+ isArbitraryValue,
1554
+ isArbitraryVariable,
1555
+ w
1915
1556
  ] }],
1916
1557
  container: ["container"],
1917
- columns: [{ columns: [$] }],
1918
- "break-after": [{ "break-after": j() }],
1919
- "break-before": [{ "break-before": j() }],
1558
+ columns: [{ columns: [
1559
+ isNumber,
1560
+ isArbitraryValue,
1561
+ isArbitraryVariable,
1562
+ l
1563
+ ] }],
1564
+ "break-after": [{ "break-after": D() }],
1565
+ "break-before": [{ "break-before": D() }],
1920
1566
  "break-inside": [{ "break-inside": [
1921
1567
  "auto",
1922
1568
  "avoid",
@@ -1948,6 +1594,7 @@ const J = (e) => {
1948
1594
  "list-item",
1949
1595
  "hidden"
1950
1596
  ],
1597
+ sr: ["sr-only", "not-sr-only"],
1951
1598
  float: [{ float: [
1952
1599
  "right",
1953
1600
  "left",
@@ -1971,13 +1618,13 @@ const J = (e) => {
1971
1618
  "none",
1972
1619
  "scale-down"
1973
1620
  ] }],
1974
- "object-position": [{ object: [...re(), Q] }],
1975
- overflow: [{ overflow: C() }],
1976
- "overflow-x": [{ "overflow-x": C() }],
1977
- "overflow-y": [{ "overflow-y": C() }],
1978
- overscroll: [{ overscroll: ne() }],
1979
- "overscroll-x": [{ "overscroll-x": ne() }],
1980
- "overscroll-y": [{ "overscroll-y": ne() }],
1621
+ "object-position": [{ object: k() }],
1622
+ overflow: [{ overflow: j() }],
1623
+ "overflow-x": [{ "overflow-x": j() }],
1624
+ "overflow-y": [{ "overflow-y": j() }],
1625
+ overscroll: [{ overscroll: M() }],
1626
+ "overscroll-x": [{ "overscroll-x": M() }],
1627
+ "overscroll-y": [{ "overscroll-y": M() }],
1981
1628
  position: [
1982
1629
  "static",
1983
1630
  "fixed",
@@ -1985,26 +1632,33 @@ const J = (e) => {
1985
1632
  "relative",
1986
1633
  "sticky"
1987
1634
  ],
1988
- inset: [{ inset: [h] }],
1989
- "inset-x": [{ "inset-x": [h] }],
1990
- "inset-y": [{ "inset-y": [h] }],
1991
- start: [{ start: [h] }],
1992
- end: [{ end: [h] }],
1993
- top: [{ top: [h] }],
1994
- right: [{ right: [h] }],
1995
- bottom: [{ bottom: [h] }],
1996
- left: [{ left: [h] }],
1635
+ inset: [{ inset: P() }],
1636
+ "inset-x": [{ "inset-x": P() }],
1637
+ "inset-y": [{ "inset-y": P() }],
1638
+ start: [{ start: P() }],
1639
+ end: [{ end: P() }],
1640
+ top: [{ top: P() }],
1641
+ right: [{ right: P() }],
1642
+ bottom: [{ bottom: P() }],
1643
+ left: [{ left: P() }],
1997
1644
  visibility: [
1998
1645
  "visible",
1999
1646
  "invisible",
2000
1647
  "collapse"
2001
1648
  ],
2002
1649
  z: [{ z: [
1650
+ isInteger,
1651
+ "auto",
1652
+ isArbitraryVariable,
1653
+ isArbitraryValue
1654
+ ] }],
1655
+ basis: [{ basis: [
1656
+ isFraction,
1657
+ "full",
2003
1658
  "auto",
2004
- uu,
2005
- Q
1659
+ l,
1660
+ ...N()
2006
1661
  ] }],
2007
- basis: [{ basis: w() }],
2008
1662
  "flex-direction": [{ flex: [
2009
1663
  "row",
2010
1664
  "row-reverse",
@@ -2012,46 +1666,46 @@ const J = (e) => {
2012
1666
  "col-reverse"
2013
1667
  ] }],
2014
1668
  "flex-wrap": [{ flex: [
1669
+ "nowrap",
2015
1670
  "wrap",
2016
- "wrap-reverse",
2017
- "nowrap"
1671
+ "wrap-reverse"
2018
1672
  ] }],
2019
1673
  flex: [{ flex: [
2020
- "1",
1674
+ isNumber,
1675
+ isFraction,
2021
1676
  "auto",
2022
1677
  "initial",
2023
1678
  "none",
2024
- Q
1679
+ isArbitraryValue
1680
+ ] }],
1681
+ grow: [{ grow: [
1682
+ "",
1683
+ isNumber,
1684
+ isArbitraryVariable,
1685
+ isArbitraryValue
1686
+ ] }],
1687
+ shrink: [{ shrink: [
1688
+ "",
1689
+ isNumber,
1690
+ isArbitraryVariable,
1691
+ isArbitraryValue
2025
1692
  ] }],
2026
- grow: [{ grow: A() }],
2027
- shrink: [{ shrink: A() }],
2028
1693
  order: [{ order: [
1694
+ isInteger,
2029
1695
  "first",
2030
1696
  "last",
2031
1697
  "none",
2032
- uu,
2033
- Q
2034
- ] }],
2035
- "grid-cols": [{ "grid-cols": [vu] }],
2036
- "col-start-end": [{ col: [
2037
- "auto",
2038
- { span: [
2039
- "full",
2040
- uu,
2041
- Q
2042
- ] },
2043
- Q
2044
- ] }],
2045
- "col-start": [{ "col-start": D() }],
2046
- "col-end": [{ "col-end": D() }],
2047
- "grid-rows": [{ "grid-rows": [vu] }],
2048
- "row-start-end": [{ row: [
2049
- "auto",
2050
- { span: [uu, Q] },
2051
- Q
2052
- ] }],
2053
- "row-start": [{ "row-start": D() }],
2054
- "row-end": [{ "row-end": D() }],
1698
+ isArbitraryVariable,
1699
+ isArbitraryValue
1700
+ ] }],
1701
+ "grid-cols": [{ "grid-cols": F() }],
1702
+ "col-start-end": [{ col: I() }],
1703
+ "col-start": [{ "col-start": L() }],
1704
+ "col-end": [{ "col-end": L() }],
1705
+ "grid-rows": [{ "grid-rows": F() }],
1706
+ "row-start-end": [{ row: I() }],
1707
+ "row-start": [{ "row-start": L() }],
1708
+ "row-end": [{ "row-end": L() }],
2055
1709
  "grid-flow": [{ "grid-flow": [
2056
1710
  "row",
2057
1711
  "col",
@@ -2059,183 +1713,113 @@ const J = (e) => {
2059
1713
  "row-dense",
2060
1714
  "col-dense"
2061
1715
  ] }],
2062
- "auto-cols": [{ "auto-cols": [
2063
- "auto",
2064
- "min",
2065
- "max",
2066
- "fr",
2067
- Q
2068
- ] }],
2069
- "auto-rows": [{ "auto-rows": [
2070
- "auto",
2071
- "min",
2072
- "max",
2073
- "fr",
2074
- Q
2075
- ] }],
2076
- gap: [{ gap: [f] }],
2077
- "gap-x": [{ "gap-x": [f] }],
2078
- "gap-y": [{ "gap-y": [f] }],
2079
- "justify-content": [{ justify: ["normal", ...k()] }],
2080
- "justify-items": [{ "justify-items": [
2081
- "start",
2082
- "end",
2083
- "center",
2084
- "stretch"
2085
- ] }],
2086
- "justify-self": [{ "justify-self": [
2087
- "auto",
2088
- "start",
2089
- "end",
2090
- "center",
2091
- "stretch"
2092
- ] }],
2093
- "align-content": [{ content: [
2094
- "normal",
2095
- ...k(),
2096
- "baseline"
2097
- ] }],
2098
- "align-items": [{ items: [
2099
- "start",
2100
- "end",
2101
- "center",
2102
- "baseline",
2103
- "stretch"
2104
- ] }],
1716
+ "auto-cols": [{ "auto-cols": R() }],
1717
+ "auto-rows": [{ "auto-rows": R() }],
1718
+ gap: [{ gap: N() }],
1719
+ "gap-x": [{ "gap-x": N() }],
1720
+ "gap-y": [{ "gap-y": N() }],
1721
+ "justify-content": [{ justify: [...z(), "normal"] }],
1722
+ "justify-items": [{ "justify-items": [...B(), "normal"] }],
1723
+ "justify-self": [{ "justify-self": ["auto", ...B()] }],
1724
+ "align-content": [{ content: ["normal", ...z()] }],
1725
+ "align-items": [{ items: [...B(), { baseline: ["", "last"] }] }],
2105
1726
  "align-self": [{ self: [
2106
1727
  "auto",
2107
- "start",
2108
- "end",
2109
- "center",
2110
- "stretch",
2111
- "baseline"
2112
- ] }],
2113
- "place-content": [{ "place-content": [...k(), "baseline"] }],
2114
- "place-items": [{ "place-items": [
2115
- "start",
2116
- "end",
2117
- "center",
2118
- "baseline",
2119
- "stretch"
2120
- ] }],
2121
- "place-self": [{ "place-self": [
2122
- "auto",
2123
- "start",
2124
- "end",
2125
- "center",
2126
- "stretch"
2127
- ] }],
2128
- p: [{ p: [v] }],
2129
- px: [{ px: [v] }],
2130
- py: [{ py: [v] }],
2131
- ps: [{ ps: [v] }],
2132
- pe: [{ pe: [v] }],
2133
- pt: [{ pt: [v] }],
2134
- pr: [{ pr: [v] }],
2135
- pb: [{ pb: [v] }],
2136
- pl: [{ pl: [v] }],
2137
- m: [{ m: [g] }],
2138
- mx: [{ mx: [g] }],
2139
- my: [{ my: [g] }],
2140
- ms: [{ ms: [g] }],
2141
- me: [{ me: [g] }],
2142
- mt: [{ mt: [g] }],
2143
- mr: [{ mr: [g] }],
2144
- mb: [{ mb: [g] }],
2145
- ml: [{ ml: [g] }],
2146
- "space-x": [{ "space-x": [S] }],
1728
+ ...B(),
1729
+ { baseline: ["", "last"] }
1730
+ ] }],
1731
+ "place-content": [{ "place-content": z() }],
1732
+ "place-items": [{ "place-items": [...B(), "baseline"] }],
1733
+ "place-self": [{ "place-self": ["auto", ...B()] }],
1734
+ p: [{ p: N() }],
1735
+ px: [{ px: N() }],
1736
+ py: [{ py: N() }],
1737
+ ps: [{ ps: N() }],
1738
+ pe: [{ pe: N() }],
1739
+ pt: [{ pt: N() }],
1740
+ pr: [{ pr: N() }],
1741
+ pb: [{ pb: N() }],
1742
+ pl: [{ pl: N() }],
1743
+ m: [{ m: V() }],
1744
+ mx: [{ mx: V() }],
1745
+ my: [{ my: V() }],
1746
+ ms: [{ ms: V() }],
1747
+ me: [{ me: V() }],
1748
+ mt: [{ mt: V() }],
1749
+ mr: [{ mr: V() }],
1750
+ mb: [{ mb: V() }],
1751
+ ml: [{ ml: V() }],
1752
+ "space-x": [{ "space-x": N() }],
2147
1753
  "space-x-reverse": ["space-x-reverse"],
2148
- "space-y": [{ "space-y": [S] }],
1754
+ "space-y": [{ "space-y": N() }],
2149
1755
  "space-y-reverse": ["space-y-reverse"],
1756
+ size: [{ size: H() }],
2150
1757
  w: [{ w: [
2151
- "auto",
2152
- "min",
2153
- "max",
2154
- "fit",
2155
- "svw",
2156
- "lvw",
2157
- "dvw",
2158
- Q,
2159
- t
1758
+ l,
1759
+ "screen",
1760
+ ...H()
2160
1761
  ] }],
2161
1762
  "min-w": [{ "min-w": [
2162
- Q,
2163
- t,
2164
- "min",
2165
- "max",
2166
- "fit"
1763
+ l,
1764
+ "screen",
1765
+ "none",
1766
+ ...H()
2167
1767
  ] }],
2168
1768
  "max-w": [{ "max-w": [
2169
- Q,
2170
- t,
1769
+ l,
1770
+ "screen",
2171
1771
  "none",
2172
- "full",
2173
- "min",
2174
- "max",
2175
- "fit",
2176
1772
  "prose",
2177
- { screen: [$] },
2178
- $
1773
+ { screen: [c] },
1774
+ ...H()
2179
1775
  ] }],
2180
1776
  h: [{ h: [
2181
- Q,
2182
- t,
2183
- "auto",
2184
- "min",
2185
- "max",
2186
- "fit",
2187
- "svh",
2188
- "lvh",
2189
- "dvh"
1777
+ "screen",
1778
+ "lh",
1779
+ ...H()
2190
1780
  ] }],
2191
1781
  "min-h": [{ "min-h": [
2192
- Q,
2193
- t,
2194
- "min",
2195
- "max",
2196
- "fit",
2197
- "svh",
2198
- "lvh",
2199
- "dvh"
1782
+ "screen",
1783
+ "lh",
1784
+ "none",
1785
+ ...H()
2200
1786
  ] }],
2201
1787
  "max-h": [{ "max-h": [
2202
- Q,
2203
- t,
2204
- "min",
2205
- "max",
2206
- "fit",
2207
- "svh",
2208
- "lvh",
2209
- "dvh"
2210
- ] }],
2211
- size: [{ size: [
2212
- Q,
2213
- t,
2214
- "auto",
2215
- "min",
2216
- "max",
2217
- "fit"
1788
+ "screen",
1789
+ "lh",
1790
+ ...H()
2218
1791
  ] }],
2219
1792
  "font-size": [{ text: [
2220
1793
  "base",
2221
- $,
2222
- X
1794
+ n,
1795
+ isArbitraryVariableLength,
1796
+ isArbitraryLength
2223
1797
  ] }],
2224
1798
  "font-smoothing": ["antialiased", "subpixel-antialiased"],
2225
1799
  "font-style": ["italic", "not-italic"],
2226
1800
  "font-weight": [{ font: [
2227
- "thin",
2228
- "extralight",
2229
- "light",
1801
+ r,
1802
+ isArbitraryVariable,
1803
+ isArbitraryNumber
1804
+ ] }],
1805
+ "font-stretch": [{ "font-stretch": [
1806
+ "ultra-condensed",
1807
+ "extra-condensed",
1808
+ "condensed",
1809
+ "semi-condensed",
2230
1810
  "normal",
2231
- "medium",
2232
- "semibold",
2233
- "bold",
2234
- "extrabold",
2235
- "black",
2236
- lu
1811
+ "semi-expanded",
1812
+ "expanded",
1813
+ "extra-expanded",
1814
+ "ultra-expanded",
1815
+ isPercent,
1816
+ isArbitraryValue
1817
+ ] }],
1818
+ "font-family": [{ font: [
1819
+ isArbitraryVariableFamilyName,
1820
+ isArbitraryValue,
1821
+ t
2237
1822
  ] }],
2238
- "font-family": [{ font: [vu] }],
2239
1823
  "fvn-normal": ["normal-nums"],
2240
1824
  "fvn-ordinal": ["ordinal"],
2241
1825
  "fvn-slashed-zero": ["slashed-zero"],
@@ -2243,39 +1827,30 @@ const J = (e) => {
2243
1827
  "fvn-spacing": ["proportional-nums", "tabular-nums"],
2244
1828
  "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
2245
1829
  tracking: [{ tracking: [
2246
- "tighter",
2247
- "tight",
2248
- "normal",
2249
- "wide",
2250
- "wider",
2251
- "widest",
2252
- Q
1830
+ a,
1831
+ isArbitraryVariable,
1832
+ isArbitraryValue
2253
1833
  ] }],
2254
1834
  "line-clamp": [{ "line-clamp": [
1835
+ isNumber,
2255
1836
  "none",
2256
- Z,
2257
- lu
1837
+ isArbitraryVariable,
1838
+ isArbitraryNumber
2258
1839
  ] }],
2259
- leading: [{ leading: [
1840
+ leading: [{ leading: [s, ...N()] }],
1841
+ "list-image": [{ "list-image": [
2260
1842
  "none",
2261
- "tight",
2262
- "snug",
2263
- "normal",
2264
- "relaxed",
2265
- "loose",
2266
- Y,
2267
- Q
1843
+ isArbitraryVariable,
1844
+ isArbitraryValue
2268
1845
  ] }],
2269
- "list-image": [{ "list-image": ["none", Q] }],
1846
+ "list-style-position": [{ list: ["inside", "outside"] }],
2270
1847
  "list-style-type": [{ list: [
2271
- "none",
2272
1848
  "disc",
2273
1849
  "decimal",
2274
- Q
1850
+ "none",
1851
+ isArbitraryVariable,
1852
+ isArbitraryValue
2275
1853
  ] }],
2276
- "list-style-position": [{ list: ["inside", "outside"] }],
2277
- "placeholder-color": [{ placeholder: [e] }],
2278
- "placeholder-opacity": [{ "placeholder-opacity": [_] }],
2279
1854
  "text-alignment": [{ text: [
2280
1855
  "left",
2281
1856
  "center",
@@ -2284,27 +1859,29 @@ const J = (e) => {
2284
1859
  "start",
2285
1860
  "end"
2286
1861
  ] }],
2287
- "text-color": [{ text: [e] }],
2288
- "text-opacity": [{ "text-opacity": [_] }],
1862
+ "placeholder-color": [{ placeholder: U() }],
1863
+ "text-color": [{ text: U() }],
2289
1864
  "text-decoration": [
2290
1865
  "underline",
2291
1866
  "overline",
2292
1867
  "line-through",
2293
1868
  "no-underline"
2294
1869
  ],
2295
- "text-decoration-style": [{ decoration: [...O(), "wavy"] }],
1870
+ "text-decoration-style": [{ decoration: [...J(), "wavy"] }],
2296
1871
  "text-decoration-thickness": [{ decoration: [
2297
- "auto",
1872
+ isNumber,
2298
1873
  "from-font",
2299
- Y,
2300
- X
1874
+ "auto",
1875
+ isArbitraryVariable,
1876
+ isArbitraryLength
2301
1877
  ] }],
1878
+ "text-decoration-color": [{ decoration: U() }],
2302
1879
  "underline-offset": [{ "underline-offset": [
1880
+ isNumber,
2303
1881
  "auto",
2304
- Y,
2305
- Q
1882
+ isArbitraryVariable,
1883
+ isArbitraryValue
2306
1884
  ] }],
2307
- "text-decoration-color": [{ decoration: [e] }],
2308
1885
  "text-transform": [
2309
1886
  "uppercase",
2310
1887
  "lowercase",
@@ -2322,7 +1899,7 @@ const J = (e) => {
2322
1899
  "balance",
2323
1900
  "pretty"
2324
1901
  ] }],
2325
- indent: [{ indent: T() }],
1902
+ indent: [{ indent: N() }],
2326
1903
  "vertical-align": [{ align: [
2327
1904
  "baseline",
2328
1905
  "top",
@@ -2332,7 +1909,8 @@ const J = (e) => {
2332
1909
  "text-bottom",
2333
1910
  "sub",
2334
1911
  "super",
2335
- Q
1912
+ isArbitraryVariable,
1913
+ isArbitraryValue
2336
1914
  ] }],
2337
1915
  whitespace: [{ whitespace: [
2338
1916
  "normal",
@@ -2348,12 +1926,21 @@ const J = (e) => {
2348
1926
  "all",
2349
1927
  "keep"
2350
1928
  ] }],
1929
+ wrap: [{ wrap: [
1930
+ "break-word",
1931
+ "anywhere",
1932
+ "normal"
1933
+ ] }],
2351
1934
  hyphens: [{ hyphens: [
2352
1935
  "none",
2353
1936
  "manual",
2354
1937
  "auto"
2355
1938
  ] }],
2356
- content: [{ content: ["none", Q] }],
1939
+ content: [{ content: [
1940
+ "none",
1941
+ isArbitraryVariable,
1942
+ isArbitraryValue
1943
+ ] }],
2357
1944
  "bg-attachment": [{ bg: [
2358
1945
  "fixed",
2359
1946
  "local",
@@ -2365,199 +1952,429 @@ const J = (e) => {
2365
1952
  "content",
2366
1953
  "text"
2367
1954
  ] }],
2368
- "bg-opacity": [{ "bg-opacity": [_] }],
2369
1955
  "bg-origin": [{ "bg-origin": [
2370
1956
  "border",
2371
1957
  "padding",
2372
1958
  "content"
2373
1959
  ] }],
2374
- "bg-position": [{ bg: [...re(), mu] }],
2375
- "bg-repeat": [{ bg: ["no-repeat", { repeat: [
2376
- "",
2377
- "x",
2378
- "y",
2379
- "round",
2380
- "space"
2381
- ] }] }],
2382
- "bg-size": [{ bg: [
2383
- "auto",
2384
- "cover",
2385
- "contain",
2386
- pu
2387
- ] }],
1960
+ "bg-position": [{ bg: W() }],
1961
+ "bg-repeat": [{ bg: ci() }],
1962
+ "bg-size": [{ bg: li() }],
2388
1963
  "bg-image": [{ bg: [
2389
1964
  "none",
2390
- { "gradient-to": [
2391
- "t",
2392
- "tr",
2393
- "r",
2394
- "br",
2395
- "b",
2396
- "bl",
2397
- "l",
2398
- "tl"
2399
- ] },
2400
- gu
2401
- ] }],
2402
- "bg-color": [{ bg: [e] }],
2403
- "gradient-from-pos": [{ from: [m] }],
2404
- "gradient-via-pos": [{ via: [m] }],
2405
- "gradient-to-pos": [{ to: [m] }],
2406
- "gradient-from": [{ from: [p] }],
2407
- "gradient-via": [{ via: [p] }],
2408
- "gradient-to": [{ to: [p] }],
2409
- rounded: [{ rounded: [a] }],
2410
- "rounded-s": [{ "rounded-s": [a] }],
2411
- "rounded-e": [{ "rounded-e": [a] }],
2412
- "rounded-t": [{ "rounded-t": [a] }],
2413
- "rounded-r": [{ "rounded-r": [a] }],
2414
- "rounded-b": [{ "rounded-b": [a] }],
2415
- "rounded-l": [{ "rounded-l": [a] }],
2416
- "rounded-ss": [{ "rounded-ss": [a] }],
2417
- "rounded-se": [{ "rounded-se": [a] }],
2418
- "rounded-ee": [{ "rounded-ee": [a] }],
2419
- "rounded-es": [{ "rounded-es": [a] }],
2420
- "rounded-tl": [{ "rounded-tl": [a] }],
2421
- "rounded-tr": [{ "rounded-tr": [a] }],
2422
- "rounded-br": [{ "rounded-br": [a] }],
2423
- "rounded-bl": [{ "rounded-bl": [a] }],
2424
- "border-w": [{ border: [s] }],
2425
- "border-w-x": [{ "border-x": [s] }],
2426
- "border-w-y": [{ "border-y": [s] }],
2427
- "border-w-s": [{ "border-s": [s] }],
2428
- "border-w-e": [{ "border-e": [s] }],
2429
- "border-w-t": [{ "border-t": [s] }],
2430
- "border-w-r": [{ "border-r": [s] }],
2431
- "border-w-b": [{ "border-b": [s] }],
2432
- "border-w-l": [{ "border-l": [s] }],
2433
- "border-opacity": [{ "border-opacity": [_] }],
2434
- "border-style": [{ border: [...O(), "hidden"] }],
2435
- "divide-x": [{ "divide-x": [s] }],
1965
+ {
1966
+ linear: [
1967
+ { to: [
1968
+ "t",
1969
+ "tr",
1970
+ "r",
1971
+ "br",
1972
+ "b",
1973
+ "bl",
1974
+ "l",
1975
+ "tl"
1976
+ ] },
1977
+ isInteger,
1978
+ isArbitraryVariable,
1979
+ isArbitraryValue
1980
+ ],
1981
+ radial: [
1982
+ "",
1983
+ isArbitraryVariable,
1984
+ isArbitraryValue
1985
+ ],
1986
+ conic: [
1987
+ isInteger,
1988
+ isArbitraryVariable,
1989
+ isArbitraryValue
1990
+ ]
1991
+ },
1992
+ isArbitraryVariableImage,
1993
+ isArbitraryImage
1994
+ ] }],
1995
+ "bg-color": [{ bg: U() }],
1996
+ "gradient-from-pos": [{ from: G() }],
1997
+ "gradient-via-pos": [{ via: G() }],
1998
+ "gradient-to-pos": [{ to: G() }],
1999
+ "gradient-from": [{ from: U() }],
2000
+ "gradient-via": [{ via: U() }],
2001
+ "gradient-to": [{ to: U() }],
2002
+ rounded: [{ rounded: K() }],
2003
+ "rounded-s": [{ "rounded-s": K() }],
2004
+ "rounded-e": [{ "rounded-e": K() }],
2005
+ "rounded-t": [{ "rounded-t": K() }],
2006
+ "rounded-r": [{ "rounded-r": K() }],
2007
+ "rounded-b": [{ "rounded-b": K() }],
2008
+ "rounded-l": [{ "rounded-l": K() }],
2009
+ "rounded-ss": [{ "rounded-ss": K() }],
2010
+ "rounded-se": [{ "rounded-se": K() }],
2011
+ "rounded-ee": [{ "rounded-ee": K() }],
2012
+ "rounded-es": [{ "rounded-es": K() }],
2013
+ "rounded-tl": [{ "rounded-tl": K() }],
2014
+ "rounded-tr": [{ "rounded-tr": K() }],
2015
+ "rounded-br": [{ "rounded-br": K() }],
2016
+ "rounded-bl": [{ "rounded-bl": K() }],
2017
+ "border-w": [{ border: q() }],
2018
+ "border-w-x": [{ "border-x": q() }],
2019
+ "border-w-y": [{ "border-y": q() }],
2020
+ "border-w-s": [{ "border-s": q() }],
2021
+ "border-w-e": [{ "border-e": q() }],
2022
+ "border-w-t": [{ "border-t": q() }],
2023
+ "border-w-r": [{ "border-r": q() }],
2024
+ "border-w-b": [{ "border-b": q() }],
2025
+ "border-w-l": [{ "border-l": q() }],
2026
+ "divide-x": [{ "divide-x": q() }],
2436
2027
  "divide-x-reverse": ["divide-x-reverse"],
2437
- "divide-y": [{ "divide-y": [s] }],
2028
+ "divide-y": [{ "divide-y": q() }],
2438
2029
  "divide-y-reverse": ["divide-y-reverse"],
2439
- "divide-opacity": [{ "divide-opacity": [_] }],
2440
- "divide-style": [{ divide: O() }],
2441
- "border-color": [{ border: [i] }],
2442
- "border-color-x": [{ "border-x": [i] }],
2443
- "border-color-y": [{ "border-y": [i] }],
2444
- "border-color-s": [{ "border-s": [i] }],
2445
- "border-color-e": [{ "border-e": [i] }],
2446
- "border-color-t": [{ "border-t": [i] }],
2447
- "border-color-r": [{ "border-r": [i] }],
2448
- "border-color-b": [{ "border-b": [i] }],
2449
- "border-color-l": [{ "border-l": [i] }],
2450
- "divide-color": [{ divide: [i] }],
2451
- "outline-style": [{ outline: ["", ...O()] }],
2452
- "outline-offset": [{ "outline-offset": [Y, Q] }],
2453
- "outline-w": [{ outline: [Y, X] }],
2454
- "outline-color": [{ outline: [e] }],
2455
- "ring-w": [{ ring: E() }],
2456
- "ring-w-inset": ["ring-inset"],
2457
- "ring-color": [{ ring: [e] }],
2458
- "ring-opacity": [{ "ring-opacity": [_] }],
2459
- "ring-offset-w": [{ "ring-offset": [Y, X] }],
2460
- "ring-offset-color": [{ "ring-offset": [e] }],
2030
+ "border-style": [{ border: [
2031
+ ...J(),
2032
+ "hidden",
2033
+ "none"
2034
+ ] }],
2035
+ "divide-style": [{ divide: [
2036
+ ...J(),
2037
+ "hidden",
2038
+ "none"
2039
+ ] }],
2040
+ "border-color": [{ border: U() }],
2041
+ "border-color-x": [{ "border-x": U() }],
2042
+ "border-color-y": [{ "border-y": U() }],
2043
+ "border-color-s": [{ "border-s": U() }],
2044
+ "border-color-e": [{ "border-e": U() }],
2045
+ "border-color-t": [{ "border-t": U() }],
2046
+ "border-color-r": [{ "border-r": U() }],
2047
+ "border-color-b": [{ "border-b": U() }],
2048
+ "border-color-l": [{ "border-l": U() }],
2049
+ "divide-color": [{ divide: U() }],
2050
+ "outline-style": [{ outline: [
2051
+ ...J(),
2052
+ "none",
2053
+ "hidden"
2054
+ ] }],
2055
+ "outline-offset": [{ "outline-offset": [
2056
+ isNumber,
2057
+ isArbitraryVariable,
2058
+ isArbitraryValue
2059
+ ] }],
2060
+ "outline-w": [{ outline: [
2061
+ "",
2062
+ isNumber,
2063
+ isArbitraryVariableLength,
2064
+ isArbitraryLength
2065
+ ] }],
2066
+ "outline-color": [{ outline: U() }],
2461
2067
  shadow: [{ shadow: [
2462
2068
  "",
2463
- "inner",
2464
2069
  "none",
2465
- $,
2466
- _u
2070
+ p,
2071
+ isArbitraryVariableShadow,
2072
+ isArbitraryShadow
2073
+ ] }],
2074
+ "shadow-color": [{ shadow: U() }],
2075
+ "inset-shadow": [{ "inset-shadow": [
2076
+ "none",
2077
+ m,
2078
+ isArbitraryVariableShadow,
2079
+ isArbitraryShadow
2080
+ ] }],
2081
+ "inset-shadow-color": [{ "inset-shadow": U() }],
2082
+ "ring-w": [{ ring: q() }],
2083
+ "ring-w-inset": ["ring-inset"],
2084
+ "ring-color": [{ ring: U() }],
2085
+ "ring-offset-w": [{ "ring-offset": [isNumber, isArbitraryLength] }],
2086
+ "ring-offset-color": [{ "ring-offset": U() }],
2087
+ "inset-ring-w": [{ "inset-ring": q() }],
2088
+ "inset-ring-color": [{ "inset-ring": U() }],
2089
+ "text-shadow": [{ "text-shadow": [
2090
+ "none",
2091
+ _,
2092
+ isArbitraryVariableShadow,
2093
+ isArbitraryShadow
2094
+ ] }],
2095
+ "text-shadow-color": [{ "text-shadow": U() }],
2096
+ opacity: [{ opacity: [
2097
+ isNumber,
2098
+ isArbitraryVariable,
2099
+ isArbitraryValue
2467
2100
  ] }],
2468
- "shadow-color": [{ shadow: [vu] }],
2469
- opacity: [{ opacity: [_] }],
2470
2101
  "mix-blend": [{ "mix-blend": [
2471
- ...ie(),
2472
- "plus-lighter",
2473
- "plus-darker"
2474
- ] }],
2475
- "bg-blend": [{ "bg-blend": ie() }],
2476
- filter: [{ filter: ["", "none"] }],
2477
- blur: [{ blur: [n] }],
2478
- brightness: [{ brightness: [r] }],
2479
- contrast: [{ contrast: [c] }],
2102
+ ...ui(),
2103
+ "plus-darker",
2104
+ "plus-lighter"
2105
+ ] }],
2106
+ "bg-blend": [{ "bg-blend": ui() }],
2107
+ "mask-clip": [{ "mask-clip": [
2108
+ "border",
2109
+ "padding",
2110
+ "content",
2111
+ "fill",
2112
+ "stroke",
2113
+ "view"
2114
+ ] }, "mask-no-clip"],
2115
+ "mask-composite": [{ mask: [
2116
+ "add",
2117
+ "subtract",
2118
+ "intersect",
2119
+ "exclude"
2120
+ ] }],
2121
+ "mask-image-linear-pos": [{ "mask-linear": [isNumber] }],
2122
+ "mask-image-linear-from-pos": [{ "mask-linear-from": Y() }],
2123
+ "mask-image-linear-to-pos": [{ "mask-linear-to": Y() }],
2124
+ "mask-image-linear-from-color": [{ "mask-linear-from": U() }],
2125
+ "mask-image-linear-to-color": [{ "mask-linear-to": U() }],
2126
+ "mask-image-t-from-pos": [{ "mask-t-from": Y() }],
2127
+ "mask-image-t-to-pos": [{ "mask-t-to": Y() }],
2128
+ "mask-image-t-from-color": [{ "mask-t-from": U() }],
2129
+ "mask-image-t-to-color": [{ "mask-t-to": U() }],
2130
+ "mask-image-r-from-pos": [{ "mask-r-from": Y() }],
2131
+ "mask-image-r-to-pos": [{ "mask-r-to": Y() }],
2132
+ "mask-image-r-from-color": [{ "mask-r-from": U() }],
2133
+ "mask-image-r-to-color": [{ "mask-r-to": U() }],
2134
+ "mask-image-b-from-pos": [{ "mask-b-from": Y() }],
2135
+ "mask-image-b-to-pos": [{ "mask-b-to": Y() }],
2136
+ "mask-image-b-from-color": [{ "mask-b-from": U() }],
2137
+ "mask-image-b-to-color": [{ "mask-b-to": U() }],
2138
+ "mask-image-l-from-pos": [{ "mask-l-from": Y() }],
2139
+ "mask-image-l-to-pos": [{ "mask-l-to": Y() }],
2140
+ "mask-image-l-from-color": [{ "mask-l-from": U() }],
2141
+ "mask-image-l-to-color": [{ "mask-l-to": U() }],
2142
+ "mask-image-x-from-pos": [{ "mask-x-from": Y() }],
2143
+ "mask-image-x-to-pos": [{ "mask-x-to": Y() }],
2144
+ "mask-image-x-from-color": [{ "mask-x-from": U() }],
2145
+ "mask-image-x-to-color": [{ "mask-x-to": U() }],
2146
+ "mask-image-y-from-pos": [{ "mask-y-from": Y() }],
2147
+ "mask-image-y-to-pos": [{ "mask-y-to": Y() }],
2148
+ "mask-image-y-from-color": [{ "mask-y-from": U() }],
2149
+ "mask-image-y-to-color": [{ "mask-y-to": U() }],
2150
+ "mask-image-radial": [{ "mask-radial": [isArbitraryVariable, isArbitraryValue] }],
2151
+ "mask-image-radial-from-pos": [{ "mask-radial-from": Y() }],
2152
+ "mask-image-radial-to-pos": [{ "mask-radial-to": Y() }],
2153
+ "mask-image-radial-from-color": [{ "mask-radial-from": U() }],
2154
+ "mask-image-radial-to-color": [{ "mask-radial-to": U() }],
2155
+ "mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
2156
+ "mask-image-radial-size": [{ "mask-radial": [{
2157
+ closest: ["side", "corner"],
2158
+ farthest: ["side", "corner"]
2159
+ }] }],
2160
+ "mask-image-radial-pos": [{ "mask-radial-at": O() }],
2161
+ "mask-image-conic-pos": [{ "mask-conic": [isNumber] }],
2162
+ "mask-image-conic-from-pos": [{ "mask-conic-from": Y() }],
2163
+ "mask-image-conic-to-pos": [{ "mask-conic-to": Y() }],
2164
+ "mask-image-conic-from-color": [{ "mask-conic-from": U() }],
2165
+ "mask-image-conic-to-color": [{ "mask-conic-to": U() }],
2166
+ "mask-mode": [{ mask: [
2167
+ "alpha",
2168
+ "luminance",
2169
+ "match"
2170
+ ] }],
2171
+ "mask-origin": [{ "mask-origin": [
2172
+ "border",
2173
+ "padding",
2174
+ "content",
2175
+ "fill",
2176
+ "stroke",
2177
+ "view"
2178
+ ] }],
2179
+ "mask-position": [{ mask: W() }],
2180
+ "mask-repeat": [{ mask: ci() }],
2181
+ "mask-size": [{ mask: li() }],
2182
+ "mask-type": [{ "mask-type": ["alpha", "luminance"] }],
2183
+ "mask-image": [{ mask: [
2184
+ "none",
2185
+ isArbitraryVariable,
2186
+ isArbitraryValue
2187
+ ] }],
2188
+ filter: [{ filter: [
2189
+ "",
2190
+ "none",
2191
+ isArbitraryVariable,
2192
+ isArbitraryValue
2193
+ ] }],
2194
+ blur: [{ blur: di() }],
2195
+ brightness: [{ brightness: [
2196
+ isNumber,
2197
+ isArbitraryVariable,
2198
+ isArbitraryValue
2199
+ ] }],
2200
+ contrast: [{ contrast: [
2201
+ isNumber,
2202
+ isArbitraryVariable,
2203
+ isArbitraryValue
2204
+ ] }],
2480
2205
  "drop-shadow": [{ "drop-shadow": [
2481
2206
  "",
2482
2207
  "none",
2483
- $,
2484
- Q
2485
- ] }],
2486
- grayscale: [{ grayscale: [l] }],
2487
- "hue-rotate": [{ "hue-rotate": [u] }],
2488
- invert: [{ invert: [d] }],
2489
- saturate: [{ saturate: [y] }],
2490
- sepia: [{ sepia: [x] }],
2491
- "backdrop-filter": [{ "backdrop-filter": ["", "none"] }],
2492
- "backdrop-blur": [{ "backdrop-blur": [n] }],
2493
- "backdrop-brightness": [{ "backdrop-brightness": [r] }],
2494
- "backdrop-contrast": [{ "backdrop-contrast": [c] }],
2495
- "backdrop-grayscale": [{ "backdrop-grayscale": [l] }],
2496
- "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [u] }],
2497
- "backdrop-invert": [{ "backdrop-invert": [d] }],
2498
- "backdrop-opacity": [{ "backdrop-opacity": [_] }],
2499
- "backdrop-saturate": [{ "backdrop-saturate": [y] }],
2500
- "backdrop-sepia": [{ "backdrop-sepia": [x] }],
2208
+ b,
2209
+ isArbitraryVariableShadow,
2210
+ isArbitraryShadow
2211
+ ] }],
2212
+ "drop-shadow-color": [{ "drop-shadow": U() }],
2213
+ grayscale: [{ grayscale: [
2214
+ "",
2215
+ isNumber,
2216
+ isArbitraryVariable,
2217
+ isArbitraryValue
2218
+ ] }],
2219
+ "hue-rotate": [{ "hue-rotate": [
2220
+ isNumber,
2221
+ isArbitraryVariable,
2222
+ isArbitraryValue
2223
+ ] }],
2224
+ invert: [{ invert: [
2225
+ "",
2226
+ isNumber,
2227
+ isArbitraryVariable,
2228
+ isArbitraryValue
2229
+ ] }],
2230
+ saturate: [{ saturate: [
2231
+ isNumber,
2232
+ isArbitraryVariable,
2233
+ isArbitraryValue
2234
+ ] }],
2235
+ sepia: [{ sepia: [
2236
+ "",
2237
+ isNumber,
2238
+ isArbitraryVariable,
2239
+ isArbitraryValue
2240
+ ] }],
2241
+ "backdrop-filter": [{ "backdrop-filter": [
2242
+ "",
2243
+ "none",
2244
+ isArbitraryVariable,
2245
+ isArbitraryValue
2246
+ ] }],
2247
+ "backdrop-blur": [{ "backdrop-blur": di() }],
2248
+ "backdrop-brightness": [{ "backdrop-brightness": [
2249
+ isNumber,
2250
+ isArbitraryVariable,
2251
+ isArbitraryValue
2252
+ ] }],
2253
+ "backdrop-contrast": [{ "backdrop-contrast": [
2254
+ isNumber,
2255
+ isArbitraryVariable,
2256
+ isArbitraryValue
2257
+ ] }],
2258
+ "backdrop-grayscale": [{ "backdrop-grayscale": [
2259
+ "",
2260
+ isNumber,
2261
+ isArbitraryVariable,
2262
+ isArbitraryValue
2263
+ ] }],
2264
+ "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
2265
+ isNumber,
2266
+ isArbitraryVariable,
2267
+ isArbitraryValue
2268
+ ] }],
2269
+ "backdrop-invert": [{ "backdrop-invert": [
2270
+ "",
2271
+ isNumber,
2272
+ isArbitraryVariable,
2273
+ isArbitraryValue
2274
+ ] }],
2275
+ "backdrop-opacity": [{ "backdrop-opacity": [
2276
+ isNumber,
2277
+ isArbitraryVariable,
2278
+ isArbitraryValue
2279
+ ] }],
2280
+ "backdrop-saturate": [{ "backdrop-saturate": [
2281
+ isNumber,
2282
+ isArbitraryVariable,
2283
+ isArbitraryValue
2284
+ ] }],
2285
+ "backdrop-sepia": [{ "backdrop-sepia": [
2286
+ "",
2287
+ isNumber,
2288
+ isArbitraryVariable,
2289
+ isArbitraryValue
2290
+ ] }],
2501
2291
  "border-collapse": [{ border: ["collapse", "separate"] }],
2502
- "border-spacing": [{ "border-spacing": [o] }],
2503
- "border-spacing-x": [{ "border-spacing-x": [o] }],
2504
- "border-spacing-y": [{ "border-spacing-y": [o] }],
2292
+ "border-spacing": [{ "border-spacing": N() }],
2293
+ "border-spacing-x": [{ "border-spacing-x": N() }],
2294
+ "border-spacing-y": [{ "border-spacing-y": N() }],
2505
2295
  "table-layout": [{ table: ["auto", "fixed"] }],
2506
2296
  caption: [{ caption: ["top", "bottom"] }],
2507
2297
  transition: [{ transition: [
2508
- "none",
2509
- "all",
2510
2298
  "",
2299
+ "all",
2511
2300
  "colors",
2512
2301
  "opacity",
2513
2302
  "shadow",
2514
2303
  "transform",
2515
- Q
2304
+ "none",
2305
+ isArbitraryVariable,
2306
+ isArbitraryValue
2307
+ ] }],
2308
+ "transition-behavior": [{ transition: ["normal", "discrete"] }],
2309
+ duration: [{ duration: [
2310
+ isNumber,
2311
+ "initial",
2312
+ isArbitraryVariable,
2313
+ isArbitraryValue
2516
2314
  ] }],
2517
- duration: [{ duration: M() }],
2518
2315
  ease: [{ ease: [
2519
2316
  "linear",
2520
- "in",
2521
- "out",
2522
- "in-out",
2523
- Q
2317
+ "initial",
2318
+ T,
2319
+ isArbitraryVariable,
2320
+ isArbitraryValue
2321
+ ] }],
2322
+ delay: [{ delay: [
2323
+ isNumber,
2324
+ isArbitraryVariable,
2325
+ isArbitraryValue
2524
2326
  ] }],
2525
- delay: [{ delay: M() }],
2526
2327
  animate: [{ animate: [
2527
2328
  "none",
2528
- "spin",
2529
- "ping",
2530
- "pulse",
2531
- "bounce",
2532
- Q
2533
- ] }],
2329
+ E,
2330
+ isArbitraryVariable,
2331
+ isArbitraryValue
2332
+ ] }],
2333
+ backface: [{ backface: ["hidden", "visible"] }],
2334
+ perspective: [{ perspective: [
2335
+ C,
2336
+ isArbitraryVariable,
2337
+ isArbitraryValue
2338
+ ] }],
2339
+ "perspective-origin": [{ "perspective-origin": k() }],
2340
+ rotate: [{ rotate: X() }],
2341
+ "rotate-x": [{ "rotate-x": X() }],
2342
+ "rotate-y": [{ "rotate-y": X() }],
2343
+ "rotate-z": [{ "rotate-z": X() }],
2344
+ scale: [{ scale: Z() }],
2345
+ "scale-x": [{ "scale-x": Z() }],
2346
+ "scale-y": [{ "scale-y": Z() }],
2347
+ "scale-z": [{ "scale-z": Z() }],
2348
+ "scale-3d": ["scale-3d"],
2349
+ skew: [{ skew: Q() }],
2350
+ "skew-x": [{ "skew-x": Q() }],
2351
+ "skew-y": [{ "skew-y": Q() }],
2534
2352
  transform: [{ transform: [
2353
+ isArbitraryVariable,
2354
+ isArbitraryValue,
2535
2355
  "",
2356
+ "none",
2536
2357
  "gpu",
2537
- "none"
2538
- ] }],
2539
- scale: [{ scale: [b] }],
2540
- "scale-x": [{ "scale-x": [b] }],
2541
- "scale-y": [{ "scale-y": [b] }],
2542
- rotate: [{ rotate: [uu, Q] }],
2543
- "translate-x": [{ "translate-x": [te] }],
2544
- "translate-y": [{ "translate-y": [te] }],
2545
- "skew-x": [{ "skew-x": [ee] }],
2546
- "skew-y": [{ "skew-y": [ee] }],
2547
- "transform-origin": [{ origin: [
2548
- "center",
2549
- "top",
2550
- "top-right",
2551
- "right",
2552
- "bottom-right",
2553
- "bottom",
2554
- "bottom-left",
2555
- "left",
2556
- "top-left",
2557
- Q
2558
- ] }],
2559
- accent: [{ accent: ["auto", e] }],
2358
+ "cpu"
2359
+ ] }],
2360
+ "transform-origin": [{ origin: k() }],
2361
+ "transform-style": [{ transform: ["3d", "flat"] }],
2362
+ translate: [{ translate: $() }],
2363
+ "translate-x": [{ "translate-x": $() }],
2364
+ "translate-y": [{ "translate-y": $() }],
2365
+ "translate-z": [{ "translate-z": $() }],
2366
+ "translate-none": ["translate-none"],
2367
+ accent: [{ accent: U() }],
2560
2368
  appearance: [{ appearance: ["none", "auto"] }],
2369
+ "caret-color": [{ caret: U() }],
2370
+ "color-scheme": [{ scheme: [
2371
+ "normal",
2372
+ "dark",
2373
+ "light",
2374
+ "light-dark",
2375
+ "only-dark",
2376
+ "only-light"
2377
+ ] }],
2561
2378
  cursor: [{ cursor: [
2562
2379
  "auto",
2563
2380
  "default",
@@ -2595,35 +2412,36 @@ const J = (e) => {
2595
2412
  "nwse-resize",
2596
2413
  "zoom-in",
2597
2414
  "zoom-out",
2598
- Q
2415
+ isArbitraryVariable,
2416
+ isArbitraryValue
2599
2417
  ] }],
2600
- "caret-color": [{ caret: [e] }],
2601
- "pointer-events": [{ "pointer-events": ["none", "auto"] }],
2418
+ "field-sizing": [{ "field-sizing": ["fixed", "content"] }],
2419
+ "pointer-events": [{ "pointer-events": ["auto", "none"] }],
2602
2420
  resize: [{ resize: [
2603
2421
  "none",
2422
+ "",
2604
2423
  "y",
2605
- "x",
2606
- ""
2424
+ "x"
2607
2425
  ] }],
2608
2426
  "scroll-behavior": [{ scroll: ["auto", "smooth"] }],
2609
- "scroll-m": [{ "scroll-m": T() }],
2610
- "scroll-mx": [{ "scroll-mx": T() }],
2611
- "scroll-my": [{ "scroll-my": T() }],
2612
- "scroll-ms": [{ "scroll-ms": T() }],
2613
- "scroll-me": [{ "scroll-me": T() }],
2614
- "scroll-mt": [{ "scroll-mt": T() }],
2615
- "scroll-mr": [{ "scroll-mr": T() }],
2616
- "scroll-mb": [{ "scroll-mb": T() }],
2617
- "scroll-ml": [{ "scroll-ml": T() }],
2618
- "scroll-p": [{ "scroll-p": T() }],
2619
- "scroll-px": [{ "scroll-px": T() }],
2620
- "scroll-py": [{ "scroll-py": T() }],
2621
- "scroll-ps": [{ "scroll-ps": T() }],
2622
- "scroll-pe": [{ "scroll-pe": T() }],
2623
- "scroll-pt": [{ "scroll-pt": T() }],
2624
- "scroll-pr": [{ "scroll-pr": T() }],
2625
- "scroll-pb": [{ "scroll-pb": T() }],
2626
- "scroll-pl": [{ "scroll-pl": T() }],
2427
+ "scroll-m": [{ "scroll-m": N() }],
2428
+ "scroll-mx": [{ "scroll-mx": N() }],
2429
+ "scroll-my": [{ "scroll-my": N() }],
2430
+ "scroll-ms": [{ "scroll-ms": N() }],
2431
+ "scroll-me": [{ "scroll-me": N() }],
2432
+ "scroll-mt": [{ "scroll-mt": N() }],
2433
+ "scroll-mr": [{ "scroll-mr": N() }],
2434
+ "scroll-mb": [{ "scroll-mb": N() }],
2435
+ "scroll-ml": [{ "scroll-ml": N() }],
2436
+ "scroll-p": [{ "scroll-p": N() }],
2437
+ "scroll-px": [{ "scroll-px": N() }],
2438
+ "scroll-py": [{ "scroll-py": N() }],
2439
+ "scroll-ps": [{ "scroll-ps": N() }],
2440
+ "scroll-pe": [{ "scroll-pe": N() }],
2441
+ "scroll-pt": [{ "scroll-pt": N() }],
2442
+ "scroll-pr": [{ "scroll-pr": N() }],
2443
+ "scroll-pb": [{ "scroll-pb": N() }],
2444
+ "scroll-pl": [{ "scroll-pl": N() }],
2627
2445
  "snap-align": [{ snap: [
2628
2446
  "start",
2629
2447
  "end",
@@ -2665,16 +2483,17 @@ const J = (e) => {
2665
2483
  "scroll",
2666
2484
  "contents",
2667
2485
  "transform",
2668
- Q
2486
+ isArbitraryVariable,
2487
+ isArbitraryValue
2669
2488
  ] }],
2670
- fill: [{ fill: [e, "none"] }],
2489
+ fill: [{ fill: ["none", ...U()] }],
2671
2490
  "stroke-w": [{ stroke: [
2672
- Y,
2673
- X,
2674
- lu
2491
+ isNumber,
2492
+ isArbitraryVariableLength,
2493
+ isArbitraryLength,
2494
+ isArbitraryNumber
2675
2495
  ] }],
2676
- stroke: [{ stroke: [e, "none"] }],
2677
- sr: ["sr-only", "not-sr-only"],
2496
+ stroke: [{ stroke: ["none", ...U()] }],
2678
2497
  "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
2679
2498
  },
2680
2499
  conflictingClassGroups: {
@@ -2761,6 +2580,8 @@ const J = (e) => {
2761
2580
  "rounded-l": ["rounded-tl", "rounded-bl"],
2762
2581
  "border-spacing": ["border-spacing-x", "border-spacing-y"],
2763
2582
  "border-w": [
2583
+ "border-w-x",
2584
+ "border-w-y",
2764
2585
  "border-w-s",
2765
2586
  "border-w-e",
2766
2587
  "border-w-t",
@@ -2771,6 +2592,8 @@ const J = (e) => {
2771
2592
  "border-w-x": ["border-w-r", "border-w-l"],
2772
2593
  "border-w-y": ["border-w-t", "border-w-b"],
2773
2594
  "border-color": [
2595
+ "border-color-x",
2596
+ "border-color-y",
2774
2597
  "border-color-s",
2775
2598
  "border-color-e",
2776
2599
  "border-color-t",
@@ -2780,6 +2603,17 @@ const J = (e) => {
2780
2603
  ],
2781
2604
  "border-color-x": ["border-color-r", "border-color-l"],
2782
2605
  "border-color-y": ["border-color-t", "border-color-b"],
2606
+ translate: [
2607
+ "translate-x",
2608
+ "translate-y",
2609
+ "translate-none"
2610
+ ],
2611
+ "translate-none": [
2612
+ "translate",
2613
+ "translate-x",
2614
+ "translate-y",
2615
+ "translate-z"
2616
+ ],
2783
2617
  "scroll-m": [
2784
2618
  "scroll-mx",
2785
2619
  "scroll-my",
@@ -2813,9 +2647,23 @@ const J = (e) => {
2813
2647
  "touch-y": ["touch"],
2814
2648
  "touch-pz": ["touch"]
2815
2649
  },
2816
- conflictingClassGroupModifiers: { "font-size": ["leading"] }
2650
+ conflictingClassGroupModifiers: { "font-size": ["leading"] },
2651
+ orderSensitiveModifiers: [
2652
+ "*",
2653
+ "**",
2654
+ "after",
2655
+ "backdrop",
2656
+ "before",
2657
+ "details-content",
2658
+ "file",
2659
+ "first-letter",
2660
+ "first-line",
2661
+ "marker",
2662
+ "placeholder",
2663
+ "selection"
2664
+ ]
2817
2665
  };
2818
- }, Tu = /* @__PURE__ */ eu(wu), Eu = ["aria-label"], Du = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2666
+ }), _hoisted_1$3 = ["aria-label"], PaginationItem_default = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2819
2667
  __name: "PaginationItem",
2820
2668
  props: {
2821
2669
  class: {
@@ -2852,27 +2700,25 @@ const J = (e) => {
2852
2700
  }
2853
2701
  },
2854
2702
  setup(e) {
2855
- let t = e, { setCurrentIndex: n, pauseAutoplay: r, resumeAutoplay: i } = Tl(), a = (e) => {
2703
+ let t = e, { setCurrentIndex: n, pauseAutoplay: r, resumeAutoplay: a } = useCarouselClient(), s = (e) => {
2856
2704
  if (t.disabled) return !1;
2857
- n(e[0]), r(), i();
2858
- }, s = o(() => Tu(t.class, t.isActive && t.activeClass, t.disabled && "pointer-events-none")), c = o(() => Tu(t.dotClass, t.isActive && t.dotActiveClass));
2859
- return (e, n) => O(e.$slots, "pagination-item", {
2705
+ n(e[0]), r(), a();
2706
+ }, l = computed(() => twMerge(t.class, t.isActive && t.activeClass, t.disabled && "pointer-events-none")), u = computed(() => twMerge(t.dotClass, t.isActive && t.dotActiveClass));
2707
+ return (e, n) => renderSlot(e.$slots, "pagination-item", {
2860
2708
  isCurrentPage: t.isActive,
2861
2709
  page: t.page,
2862
2710
  pageIndex: t.pageIndex,
2863
2711
  attrs: {
2864
- onClick: () => a(t.page, t.pageIndex),
2712
+ onClick: () => s(t.page, t.pageIndex),
2865
2713
  disabled: t.disabled
2866
2714
  }
2867
- }, () => [u("button", x(e.$attrs, {
2868
- class: s.value,
2715
+ }, () => [createElementVNode("button", mergeProps(e.$attrs, {
2716
+ class: l.value,
2869
2717
  "aria-label": `Navigate to page ${t.pageIndex + 1}`,
2870
- onClick: n[0] ||= (e) => a(t.page, t.pageIndex)
2871
- }), [u("div", { class: S(c.value) }, null, 2)], 16, Eu)]);
2718
+ onClick: n[0] ||= (e) => s(t.page, t.pageIndex)
2719
+ }), [createElementVNode("div", { class: normalizeClass(u.value) }, null, 2)], 16, _hoisted_1$3)]);
2872
2720
  }
2873
- });
2874
- var Ou = Du;
2875
- const ku = {
2721
+ }), Pagination_default = {
2876
2722
  __name: "Pagination",
2877
2723
  props: {
2878
2724
  totalSlides: {
@@ -2917,35 +2763,34 @@ const ku = {
2917
2763
  }
2918
2764
  },
2919
2765
  setup(e) {
2920
- let n = e, { currentIndex: r, isNavigating: i } = Tl(), a = o(() => {
2921
- let e = Array.from(Array(n.totalSlides).keys()), t = uo(e, n.perPage);
2922
- return t.map((e) => {
2923
- let t = e[0], r = t - 1;
2924
- for (; e.length < n.perPage;) e.unshift(r), r--;
2925
- return e;
2926
- });
2927
- }), c = (e) => {
2928
- let t = Zc(a.value, (e) => e.includes(r.value));
2929
- return t === e;
2930
- };
2931
- return (e, r) => (w(), l("div", { class: S(["evo-vue-carousel__pagination", n.backgroundClass]) }, [O(e.$slots, "pagination", {
2932
- page: a.value,
2933
- isCurrentPage: c,
2934
- isNavigating: j(i)
2935
- }, () => [(w(!0), l(t, null, re(a.value, (t, r) => (w(), s(j(me), {
2766
+ let n = e, { currentIndex: r, isNavigating: a } = useCarouselClient(), s = computed(() => chunk(Array.from(Array(n.totalSlides).keys()), n.perPage).map((e) => {
2767
+ let t = e[0] - 1;
2768
+ for (; e.length < n.perPage;) e.unshift(t), t--;
2769
+ return e;
2770
+ })), u = (e) => findLastIndex(s.value, (e) => e.includes(r.value)) === e;
2771
+ return (e, r) => (openBlock(), createElementBlock("div", {
2772
+ class: normalizeClass(["evo-vue-carousel__pagination", n.backgroundClass]),
2773
+ role: "group",
2774
+ "aria-label": "Slide Pagination Controls"
2775
+ }, [renderSlot(e.$slots, "pagination", {
2776
+ page: s.value,
2777
+ isCurrentPage: u,
2778
+ isNavigating: unref(a)
2779
+ }, () => [(openBlock(!0), createElementBlock(Fragment, null, renderList(s.value, (t, r) => (openBlock(), createBlock(unref(S), {
2936
2780
  key: t,
2937
2781
  slots: e.$slots,
2938
2782
  only: "pagination-item"
2939
2783
  }, {
2940
- default: P(() => [f(Ou, {
2941
- class: S(n.itemClass),
2784
+ default: withCtx(() => [createVNode(PaginationItem_default, {
2785
+ class: normalizeClass(n.itemClass),
2942
2786
  "active-class": n.itemActiveClass,
2943
- "dot-class": S([n.itemDotClass, n.itemSizeClass]),
2787
+ "dot-class": normalizeClass([n.itemDotClass, n.itemSizeClass]),
2944
2788
  "dot-active-class": n.itemDotActiveClass,
2945
2789
  page: t,
2946
2790
  "page-index": r,
2947
- "is-active": c(r),
2948
- disabled: n.disableOnNavigation && j(i)
2791
+ "is-active": u(r),
2792
+ disabled: n.disableOnNavigation && unref(a),
2793
+ "aria-disabled": n.disableOnNavigation && unref(a) || u(r)
2949
2794
  }, null, 8, [
2950
2795
  "class",
2951
2796
  "active-class",
@@ -2954,14 +2799,13 @@ const ku = {
2954
2799
  "page",
2955
2800
  "page-index",
2956
2801
  "is-active",
2957
- "disabled"
2802
+ "disabled",
2803
+ "aria-disabled"
2958
2804
  ])]),
2959
2805
  _: 2
2960
2806
  }, 1032, ["slots"]))), 128))])], 2));
2961
2807
  }
2962
- };
2963
- var Au = ku;
2964
- const ju = { transform: "rotate(var(--r, 0deg)) scale(var(--sx, 1), var(--sy, 1))" }, Mu = {
2808
+ }, y = { transform: "rotate(var(--r, 0deg)) scale(var(--sx, 1), var(--sy, 1))" }, o = {
2965
2809
  mdi: {
2966
2810
  size: 24,
2967
2811
  viewbox: "0 0 24 24"
@@ -2974,7 +2818,7 @@ const ju = { transform: "rotate(var(--r, 0deg)) scale(var(--sx, 1), var(--sy, 1)
2974
2818
  size: 0,
2975
2819
  viewbox: "0 0 0 0"
2976
2820
  }
2977
- }, Nu = {
2821
+ }, v = {
2978
2822
  props: {
2979
2823
  type: {
2980
2824
  type: String,
@@ -2998,12 +2842,12 @@ const ju = { transform: "rotate(var(--r, 0deg)) scale(var(--sx, 1), var(--sy, 1)
2998
2842
  }
2999
2843
  },
3000
2844
  setup(e) {
3001
- return () => e.type === "fad" ? (console.warn("vue3-icon does not currently support Duotone FontAwesome icons"), g("path")) : Array.isArray(e.path) ? g("g", { style: { fill: "currentcolor" } }, e.path.map((e) => typeof e == "string" ? g("path", { d: e }) : g("path", { ...e }))) : g("path", {
2845
+ return () => e.type === "fad" ? (console.warn("vue3-icon does not currently support Duotone FontAwesome icons"), h("path")) : Array.isArray(e.path) ? h("g", { style: { fill: "currentcolor" } }, e.path.map((e) => typeof e == "string" ? h("path", { d: e }) : h("path", { ...e }))) : h("path", {
3002
2846
  d: e.pathString,
3003
2847
  style: { fill: "currentcolor" }
3004
2848
  });
3005
2849
  }
3006
- }, Pu = {
2850
+ }, g = {
3007
2851
  name: "icon",
3008
2852
  props: {
3009
2853
  type: {
@@ -3055,40 +2899,34 @@ const ju = { transform: "rotate(var(--r, 0deg)) scale(var(--sx, 1), var(--sy, 1)
3055
2899
  }
3056
2900
  },
3057
2901
  setup(e) {
3058
- if (!e.path && !e.faIcon) return console.warn("vue3-icon requires either a 'path' or an 'fa-icon' property"), () => g("div");
3059
- let t = o(() => {
3060
- var t;
3061
- return (t = e.faIcon)?.prefix || e.type;
3062
- }), n = o(() => parseInt(e.rotate, 10)), r = o(() => Mu[t.value] || Mu.default), i = o(() => parseInt(e.size, 10) || r.value.size), a = o(() => e.faIcon ? `0 0 ${e.faIcon.icon[0]} ${e.faIcon.icon[1]}` : !1), s = o(() => a.value || e.viewbox || r.value.viewbox), c = o(() => {
2902
+ if (!e.path && !e.faIcon) return console.warn("vue3-icon requires either a 'path' or an 'fa-icon' property"), () => h("div");
2903
+ let t = computed(() => e.faIcon?.prefix || e.type), n = computed(() => parseInt(e.rotate, 10)), r = computed(() => o[t.value] || o.default), a = computed(() => parseInt(e.size, 10) || r.value.size), s = computed(() => e.faIcon ? `0 0 ${e.faIcon.icon[0]} ${e.faIcon.icon[1]}` : !1), l = computed(() => s.value || e.viewbox || r.value.viewbox), u = computed(() => {
3063
2904
  if (e.noStyles !== !0) return {
3064
- ...ju,
2905
+ ...y,
3065
2906
  "--sx": ["both", "horizontal"].includes(e.flip) ? "-1" : "1",
3066
2907
  "--sy": ["both", "vertical"].includes(e.flip) ? "-1" : "1",
3067
2908
  "--r": isNaN(n.value) ? n.value : n.value + "deg"
3068
2909
  };
3069
- }), l = o(() => {
3070
- var t;
3071
- return e.faIcon ? (t = e.faIcon)?.icon[4] : e.type === "simple-icons" && typeof e.path == "object" ? e.path.path : e.path;
3072
- });
3073
- return () => g("svg", {
2910
+ }), d = computed(() => e.faIcon ? e.faIcon?.icon[4] : e.type === "simple-icons" && typeof e.path == "object" ? e.path.path : e.path);
2911
+ return () => h("svg", {
3074
2912
  xmlns: e.noNamespace === !0 ? void 0 : "http://www.w3.org/2000/svg",
3075
- style: c.value,
2913
+ style: u.value,
3076
2914
  class: ["vue3-icon"],
3077
- width: e.noDimensions === !0 ? void 0 : i.value,
3078
- height: e.noDimensions === !0 ? void 0 : i.value,
3079
- viewBox: s.value
3080
- }, [g(Nu, {
2915
+ width: e.noDimensions === !0 ? void 0 : a.value,
2916
+ height: e.noDimensions === !0 ? void 0 : a.value,
2917
+ viewBox: l.value
2918
+ }, [h(v, {
3081
2919
  path: e.path,
3082
2920
  type: t.value,
3083
- pathString: l.value
2921
+ pathString: d.value
3084
2922
  })]);
3085
2923
  }
3086
2924
  };
3087
- function Fu(e, t = 0, n) {
2925
+ function loopedValue(e, t = 0, n) {
3088
2926
  let r = n - t;
3089
2927
  return ((e - t) % r + r) % r + t;
3090
2928
  }
3091
- const Iu = ["disabled"], Lu = ["disabled"], Ru = "M31.884 8.366a1.25 1.25 0 0 1 0 1.768L18.018 24l13.866 13.866a1.25 1.25 0 0 1-1.768 1.768l-14.75-14.75a1.25 1.25 0 0 1 0-1.768l14.75-14.75a1.25 1.25 0 0 1 1.768 0z", zu = "M16.116 39.634a1.25 1.25 0 0 1 0-1.768L29.982 24L16.116 10.134a1.25 1.25 0 0 1 1.768-1.768l14.75 14.75a1.25 1.25 0 0 1 0 1.768l-14.75 14.75a1.25 1.25 0 0 1-1.768 0z", Bu = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2929
+ var _hoisted_1$2 = ["disabled", "aria-disabled"], _hoisted_2 = ["disabled", "aria-disabled"], leftIcon = "M31.884 8.366a1.25 1.25 0 0 1 0 1.768L18.018 24l13.866 13.866a1.25 1.25 0 0 1-1.768 1.768l-14.75-14.75a1.25 1.25 0 0 1 0-1.768l14.75-14.75a1.25 1.25 0 0 1 1.768 0z", rightIcon = "M16.116 39.634a1.25 1.25 0 0 1 0-1.768L29.982 24L16.116 10.134a1.25 1.25 0 0 1 1.768-1.768l14.75 14.75a1.25 1.25 0 0 1 0 1.768l-14.75 14.75a1.25 1.25 0 0 1-1.768 0z", Navigation_default = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3092
2930
  __name: "Navigation",
3093
2931
  props: {
3094
2932
  itemClass: {
@@ -3117,104 +2955,108 @@ const Iu = ["disabled"], Lu = ["disabled"], Ru = "M31.884 8.366a1.25 1.25 0 0 1
3117
2955
  }
3118
2956
  },
3119
2957
  setup(e) {
3120
- let t = e, { config: n, currentIndex: r, setCurrentIndex: i, isNavigating: a, pauseAutoplay: s, resumeAutoplay: c } = Tl(), l = o(() => r.value + n.value.perPage), d = o(() => !n.value.wrap && r.value === 0 || t.disableOnNavigation && a.value === !0), p = o(() => !n.value.wrap && l.value === t.totalSlides || t.disableOnNavigation && a.value === !0), m = o(() => Tu(t.itemClass, t.itemSizeClass, t.prevClass)), h = o(() => Tu(t.itemClass, t.itemSizeClass, t.nextClass)), g = (e) => {
3121
- let r = n.value.mode === gl.GALLERY;
3122
- if (r === !1) return e;
3123
- let i = n.value.wrap === !0;
3124
- if (i) return Fu(e, 0, t.totalSlides);
3125
- let a = e + n.value.perPage;
3126
- return e < 0 ? 0 : a >= t.totalSlides ? t.totalSlides - n.value.perPage : e;
3127
- }, _ = () => {
3128
- s(), c();
3129
- }, v = () => {
3130
- let e = g(r.value - n.value.slideBy);
3131
- i(e), _();
3132
- }, y = () => {
3133
- let e = g(r.value + n.value.slideBy);
3134
- i(e), _();
2958
+ let t = e, { config: n, currentIndex: r, setCurrentIndex: a, isNavigating: s, pauseAutoplay: l, resumeAutoplay: u } = useCarouselClient(), d = computed(() => r.value + n.value.perPage), m = computed(() => !n.value.wrap && r.value === 0 || t.disableOnNavigation && s.value === !0), b = computed(() => !n.value.wrap && d.value === t.totalSlides || t.disableOnNavigation && s.value === !0), x = computed(() => twMerge(t.itemClass, t.itemSizeClass, t.prevClass)), C = computed(() => twMerge(t.itemClass, t.itemSizeClass, t.nextClass)), w = (e) => {
2959
+ if (n.value.mode !== EVO_VUE_CAROUSEL_MODE.GALLERY) return e;
2960
+ if (n.value.wrap === !0) return loopedValue(e, 0, t.totalSlides);
2961
+ let r = e + n.value.perPage;
2962
+ return e < 0 ? 0 : r >= t.totalSlides ? t.totalSlides - n.value.perPage : e;
2963
+ }, T = () => {
2964
+ l(), u();
2965
+ }, E = () => {
2966
+ a(w(r.value - n.value.slideBy)), T();
2967
+ }, D = () => {
2968
+ a(w(r.value + n.value.slideBy)), T();
3135
2969
  };
3136
- return (e, t) => O(e.$slots, "navigation", {
3137
- onPrev: v,
3138
- onNext: y,
3139
- currentIndex: j(r),
3140
- config: j(n)
3141
- }, () => [u("div", x({ class: "evo-vue-carousel__navigation" }, e.$attrs), [O(e.$slots, "navigation-prev", {
3142
- onClick: v,
3143
- currentIndex: j(r),
3144
- disabled: d.value
3145
- }, () => [u("button", {
3146
- class: S(["evo-vue-carousel__navigation-item evo-vue-carousel__navigation-prev", m.value]),
3147
- disabled: d.value,
3148
- onClick: v
3149
- }, [f(j(Pu), {
3150
- path: Ru,
2970
+ return (e, t) => renderSlot(e.$slots, "navigation", {
2971
+ onPrev: E,
2972
+ onNext: D,
2973
+ currentIndex: unref(r),
2974
+ config: unref(n)
2975
+ }, () => [createElementVNode("div", mergeProps({
2976
+ class: "evo-vue-carousel__navigation",
2977
+ role: "group",
2978
+ "aria-label": "Slide Navigation Controls"
2979
+ }, e.$attrs), [renderSlot(e.$slots, "navigation-prev", {
2980
+ onClick: E,
2981
+ currentIndex: unref(r),
2982
+ disabled: m.value
2983
+ }, () => [createElementVNode("button", {
2984
+ class: normalizeClass(["evo-vue-carousel__navigation-item evo-vue-carousel__navigation-prev", x.value]),
2985
+ disabled: m.value,
2986
+ "aria-disabled": m.value,
2987
+ "aria-label": "Previous Slide",
2988
+ onClick: E
2989
+ }, [createVNode(unref(g), {
2990
+ path: leftIcon,
3151
2991
  viewBox: "0 0 48 48",
3152
2992
  class: "w-full h-full"
3153
- })], 10, Iu)]), O(e.$slots, "navigation-next", {
3154
- onClick: y,
3155
- currentIndex: j(r),
3156
- disabled: p.value
3157
- }, () => [u("button", {
3158
- class: S(["evo-vue-carousel__navigation-item evo-vue-carousel__navigation-next", h.value]),
3159
- disabled: p.value,
3160
- onClick: y
3161
- }, [f(j(Pu), {
3162
- path: zu,
2993
+ })], 10, _hoisted_1$2)]), renderSlot(e.$slots, "navigation-next", {
2994
+ onClick: D,
2995
+ currentIndex: unref(r),
2996
+ disabled: b.value
2997
+ }, () => [createElementVNode("button", {
2998
+ class: normalizeClass(["evo-vue-carousel__navigation-item evo-vue-carousel__navigation-next", C.value]),
2999
+ disabled: b.value,
3000
+ "aria-disabled": b.value,
3001
+ "aria-label": "Next Slide",
3002
+ onClick: D
3003
+ }, [createVNode(unref(g), {
3004
+ path: rightIcon,
3163
3005
  viewBox: "0 0 48 48",
3164
3006
  class: "w-full h-full"
3165
- })], 10, Lu)])], 16)]);
3007
+ })], 10, _hoisted_2)])], 16)]);
3166
3008
  }
3167
3009
  });
3168
- var Vu = Bu;
3169
- const Hu = (e = 1) => e <= 1 ? new Promise((e) => requestAnimationFrame(e)) : new Promise((t) => requestAnimationFrame(() => Hu(e - 1).then(t))), Uu = (e) => Gu(e) === "fragment", Wu = (e) => {
3010
+ const nextFrame = (e = 1) => e <= 1 ? new Promise((e) => requestAnimationFrame(e)) : new Promise((t) => requestAnimationFrame(() => nextFrame(e - 1).then(t)));
3011
+ var isFragment = (e) => getType(e) === "fragment", getText = (e) => {
3170
3012
  if (typeof e == "string") return e;
3171
3013
  if (typeof e == "number") return String(e);
3172
- if (b(e) && e.type === r) return String(e.children);
3173
- }, Gu = (i) => {
3174
- let a = typeof i;
3175
- if (i == null || a === "boolean") return "comment";
3176
- if (a === "string" || a === "number") return "text";
3177
- if (Array.isArray(i)) return "fragment";
3178
- if (b(i)) {
3179
- let { type: a } = i, o = typeof a;
3180
- if (o === "symbol") {
3181
- if (a === t) return "fragment";
3182
- if (a === r) return "text";
3183
- if (a === e) return "comment";
3184
- if (a === n) return "static";
3185
- } else if (o === "string") return "element";
3186
- else if (o === "object" || o === "function") return "component";
3014
+ if (isVNode(e) && e.type === Text) return String(e.children);
3015
+ }, getType = (a) => {
3016
+ let s = typeof a;
3017
+ if (a == null || s === "boolean") return "comment";
3018
+ if (s === "string" || s === "number") return "text";
3019
+ if (Array.isArray(a)) return "fragment";
3020
+ if (isVNode(a)) {
3021
+ let { type: s } = a, c = typeof s;
3022
+ if (c === "symbol") {
3023
+ if (s === Fragment) return "fragment";
3024
+ if (s === Text) return "text";
3025
+ if (s === Comment) return "comment";
3026
+ if (s === Static) return "static";
3027
+ } else if (c === "string") return "element";
3028
+ else if (c === "object" || c === "function") return "component";
3187
3029
  }
3188
- }, Ku = (e, t) => {
3030
+ }, warn = (e, t) => {
3189
3031
  console.warn(`[${e}] ${t}`);
3190
- }, qu = (e, t, n) => {
3032
+ }, checkArguments = (e, t, n) => {
3191
3033
  for (let r = 0; r < t.length; ++r) {
3192
- let i = Ju(t[r]), a = n[r];
3193
- a !== i && Ku(e, `Argument ${r + 1} was ${i}, should be ${a}`);
3034
+ let a = typeOf(t[r]), s = n[r];
3035
+ s !== a && warn(e, `Argument ${r + 1} was ${a}, should be ${s}`);
3194
3036
  }
3195
- }, Ju = (e) => {
3037
+ }, typeOf = (e) => {
3196
3038
  let t = typeof e;
3197
- return t === "object" && (e === null ? t = "null" : Array.isArray(e) ? t = "array" : b(e) ? t = "vnode" : e instanceof Date ? t = "date" : e instanceof RegExp && (t = "regexp")), t;
3198
- }, Yu = (e) => {
3039
+ return t === "object" && (e === null ? t = "null" : Array.isArray(e) ? t = "array" : isVNode(e) ? t = "vnode" : e instanceof Date ? t = "date" : e instanceof RegExp && (t = "regexp")), t;
3040
+ }, getFragmentChildren = (e) => {
3199
3041
  if (Array.isArray(e)) return e;
3200
3042
  let { children: t } = e;
3201
- return Array.isArray(t) ? t : (process.env.NODE_ENV !== "production" && Ku("getFragmentChildren", `Unknown children for fragment: ${Ju(t)}`), []);
3043
+ return Array.isArray(t) ? t : (process.env.NODE_ENV !== "production" && warn("getFragmentChildren", `Unknown children for fragment: ${typeOf(t)}`), []);
3202
3044
  };
3203
- function Xu(e) {
3045
+ function freeze(e) {
3204
3046
  return process.env.NODE_ENV === "production" ? e : Object.freeze(e);
3205
3047
  }
3206
- const Zu = /* @__PURE__ */ Xu({
3048
+ var COMPONENTS_AND_ELEMENTS = /* @__PURE__ */ freeze({
3207
3049
  element: !0,
3208
3050
  component: !0
3209
- }), Qu = /* @__PURE__ */ Xu({
3051
+ }), SKIP_COMMENTS = /* @__PURE__ */ freeze({
3210
3052
  element: !0,
3211
3053
  component: !0,
3212
3054
  text: !0,
3213
3055
  static: !0
3214
- }), $u = (e, t) => {
3215
- let n = Gu(e);
3216
- return !n || n === "fragment" || !t[n] ? null : b(e) ? e : n === "text" ? d(Wu(e)) : c();
3217
- }, ed = (e, t, n = Qu) => (process.env.NODE_ENV !== "production" && qu("replaceChildren", [
3056
+ }), promoteToVNode = (e, t) => {
3057
+ let n = getType(e);
3058
+ return !n || n === "fragment" || !t[n] ? null : isVNode(e) ? e : n === "text" ? createTextVNode(getText(e)) : createCommentVNode();
3059
+ }, replaceChildren = (e, t, n = SKIP_COMMENTS) => (process.env.NODE_ENV !== "production" && checkArguments("replaceChildren", [
3218
3060
  e,
3219
3061
  t,
3220
3062
  n
@@ -3222,56 +3064,57 @@ const Zu = /* @__PURE__ */ Xu({
3222
3064
  "array",
3223
3065
  "function",
3224
3066
  "object"
3225
- ]), td(e, t, n)), td = (e, t, n) => {
3226
- var r;
3227
- let i = null;
3228
- for (let o = 0; o < e.length; ++o) {
3229
- let s = e[o];
3230
- if (Uu(s)) {
3231
- let r = Yu(s), c = td(r, t, n), l = s;
3232
- r !== c && (i ??= e.slice(0, o), Array.isArray(s) ? l = c : (l = a(s), l.children = c)), i && i.push(l);
3067
+ ]), replaceChildrenInternal(e, t, n)), replaceChildrenInternal = (e, t, n) => {
3068
+ let r = null;
3069
+ for (let a = 0; a < e.length; ++a) {
3070
+ let c = e[a];
3071
+ if (isFragment(c)) {
3072
+ let l = getFragmentChildren(c), u = replaceChildrenInternal(l, t, n), d = c;
3073
+ l !== u && (r ??= e.slice(0, a), Array.isArray(c) ? d = u : (d = cloneVNode(c), d.children = u)), r && r.push(d);
3233
3074
  } else {
3234
- let a = $u(s, n);
3235
- if (a) {
3236
- let n = (r = t(a)) ?? a;
3075
+ let s = promoteToVNode(c, n);
3076
+ if (s) {
3077
+ let n = t(s) ?? s;
3237
3078
  if (process.env.NODE_ENV !== "production") {
3238
- let e = Ju(n);
3079
+ let e = typeOf(n);
3239
3080
  [
3240
3081
  "array",
3241
3082
  "vnode",
3242
3083
  "string",
3243
3084
  "number",
3244
3085
  "undefined"
3245
- ].includes(e) || Ku("replaceChildren", `Callback returned unexpected ${e} ${String(n)}`);
3086
+ ].includes(e) || warn("replaceChildren", `Callback returned unexpected ${e} ${String(n)}`);
3246
3087
  }
3247
- n !== s && (i ??= e.slice(0, o)), Array.isArray(n) ? i && i.push(...n) : i && i.push(n);
3248
- } else i && i.push(s);
3088
+ n !== c && (r ??= e.slice(0, a)), Array.isArray(n) ? r && r.push(...n) : r && r.push(n);
3089
+ } else r && r.push(c);
3249
3090
  }
3250
3091
  }
3251
- return i ?? e;
3252
- };
3253
- var nd = {
3092
+ return r ?? e;
3093
+ }, Slide_default = {
3254
3094
  props: { isClone: {
3255
3095
  type: Boolean,
3256
3096
  default: !1
3257
3097
  } },
3258
3098
  setup(e, { slots: t }) {
3259
- let n = D(null), r = ae(), i = m(), { width: a, height: o, stop: s } = Ve(n), { registerSlide: c, updateSlide: l, unregisterSlide: u } = Al();
3260
- return e.isClone === !1 ? c(r, i) : s(), C(() => {
3261
- e.isClone === !1 && u(r);
3262
- }), N([a, o], ([t, n]) => {
3263
- e.isClone === !1 && l(r, {
3099
+ let n = ref(null), r = useId(), a = getCurrentInstance(), { width: s, height: c, stop: l } = useElementSize(n), { registerSlide: u, updateSlide: d, unregisterSlide: p } = useRegisterSlideClient();
3100
+ return e.isClone === !1 ? u(r, a) : l(), onUnmounted(() => {
3101
+ e.isClone === !1 && p(r);
3102
+ }), watch([s, c], ([t, n]) => {
3103
+ e.isClone === !1 && d(r, {
3264
3104
  width: t,
3265
3105
  height: n
3266
3106
  });
3267
- }), () => g("div", { ref: n }, t.default());
3107
+ }), () => h("div", {
3108
+ ref: n,
3109
+ role: "group",
3110
+ "aria-roledescription": "Slide"
3111
+ }, t.default());
3268
3112
  }
3269
- }, rd = (e, t) => {
3113
+ }, __plugin_vue_export_helper_default = (e, t) => {
3270
3114
  let n = e.__vccOpts || e;
3271
3115
  for (let [e, r] of t) n[e] = r;
3272
3116
  return n;
3273
- };
3274
- const id = ["data-width", "data-height"], ad = {
3117
+ }, _hoisted_1$1 = ["data-width", "data-height"], Slider_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
3275
3118
  __name: "Slider",
3276
3119
  props: {
3277
3120
  totalSlides: {
@@ -3284,50 +3127,50 @@ const id = ["data-width", "data-height"], ad = {
3284
3127
  }
3285
3128
  },
3286
3129
  setup(e) {
3287
- M((e) => ({ a8ac86c2: ne.value }));
3130
+ useCssVars((e) => ({ v2ba4c4bc: P.value }));
3288
3131
  let t = typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches, n = Object.freeze({
3289
3132
  element: !0,
3290
3133
  component: !0,
3291
3134
  static: !0,
3292
3135
  comment: !1,
3293
3136
  text: !1
3294
- }), r = e, { config: i, currentIndex: a, setCurrentIndex: s, isHovered: c, isNavigating: u, setIsNavigating: d, pauseAutoplay: p, resumeAutoplay: m, autoplayIsActive: h } = Tl(), _ = D(!0), v = (e, t) => e / t * 100, y = o(() => ({
3295
- transform: `translate3d(${C.value}px, 0, 0)`,
3296
- transitionDuration: `${v(E.value, i.value.transitionSpeed)}ms`
3297
- })), b = (e) => {
3298
- let t = parseFloat(ne.value), n = i.value.wrap ? r.totalSlides + e : e, a = (t + i.value.gap) * n;
3299
- return a * -1;
3300
- }, x = D(null), { width: ee, height: te } = Ve(x), ne = o(() => {
3301
- let e = i.value.gap > 0 ? i.value.gap * (i.value.perPage - 1) : 0;
3302
- return (ee.value - e) / i.value.perPage + "px";
3303
- }), C = D(0), T = D(0);
3304
- N(() => r.isInit, async (e) => {
3305
- e && (C.value = b(a.value), await Hu(2), _.value = !1);
3137
+ }), r = e, { config: a, currentIndex: s, setCurrentIndex: l, isHovered: u, isNavigating: p, setIsNavigating: m, pauseAutoplay: b, resumeAutoplay: x, autoplayIsActive: C } = useCarouselClient(), T = ref(!0), E = (e, t) => e / t * 100, D = computed(() => ({
3138
+ transform: `translate3d(${F.value}px, 0, 0)`,
3139
+ transitionDuration: `${E(R.value, a.value.transitionSpeed)}ms`
3140
+ })), O = (e) => {
3141
+ let t = parseFloat(P.value), n = a.value.wrap ? r.totalSlides + e : e;
3142
+ return (t + a.value.gap) * n * -1;
3143
+ }, k = ref(null), { width: j, height: N } = useElementSize(k), P = computed(() => {
3144
+ let e = a.value.gap > 0 ? a.value.gap * (a.value.perPage - 1) : 0;
3145
+ return (j.value - e) / a.value.perPage + "px";
3146
+ }), F = ref(0), L = ref(0);
3147
+ watch(() => r.isInit, async (e) => {
3148
+ e && (F.value = O(s.value), await nextFrame(2), T.value = !1);
3306
3149
  });
3307
- let E = o(() => Math.abs(C.value - T.value));
3308
- N(a, (e) => {
3309
- u.value === !1 && (T.value = C.value), C.value = b(e), t && O();
3150
+ let R = computed(() => Math.abs(F.value - L.value));
3151
+ watch(s, (e) => {
3152
+ p.value === !1 && (L.value = F.value), F.value = O(e), t && V();
3310
3153
  });
3311
- let re = () => {
3312
- d(!0);
3313
- }, O = async () => {
3314
- _.value = !0, await Hu();
3154
+ let B = () => {
3155
+ m(!0);
3156
+ }, V = async () => {
3157
+ T.value = !0, await nextFrame();
3315
3158
  let e = r.totalSlides;
3316
- s(Fu(a.value, 0, e)), await Hu(), _.value = !1, d(!1);
3159
+ l(loopedValue(s.value, 0, e)), await nextFrame(), T.value = !1, m(!1);
3317
3160
  };
3318
- N(c, (e) => {
3319
- i.value.pauseOnHover === !0 && (e ? p() : m());
3161
+ watch(u, (e) => {
3162
+ a.value.pauseOnHover === !0 && (e ? b() : x());
3320
3163
  });
3321
- let ie = {
3164
+ let H = {
3322
3165
  props: { gap: {
3323
3166
  type: Number,
3324
3167
  default: 0
3325
3168
  } },
3326
3169
  setup(e, { slots: t }) {
3327
- let r = () => t.default?.() || [], a = (t) => {
3328
- let i = 0, a = t ? `_${t}` : "";
3329
- return ed(r(), (n) => (i++, g(nd, {
3330
- class: S(["evo-vue-carousel__slide shrink-0 grow-0", {
3170
+ let r = () => t.default?.() || [], s = (t) => {
3171
+ let a = 0, s = t ? `_${t}` : "";
3172
+ return replaceChildren(r(), (n) => (a++, h(Slide_default, {
3173
+ class: normalizeClass(["evo-vue-carousel__slide shrink-0 grow-0", {
3331
3174
  "evo-vue-carousel__slide-clone": !!t,
3332
3175
  "evo-vue-carousel__slide-prefix": t === "prefix",
3333
3176
  "evo-vue-carousel__slide-suffix": t === "suffix"
@@ -3337,44 +3180,42 @@ const id = ["data-width", "data-height"], ad = {
3337
3180
  flexBasis: "var(--slide-width, 0px)",
3338
3181
  marginRight: `${e.gap}px`
3339
3182
  },
3340
- key: `slide_${i}${a}`,
3183
+ key: `slide_${a}${s}`,
3341
3184
  isClone: !!t
3342
3185
  }, { default: () => [n] })), n);
3343
3186
  };
3344
- return () => g("div", {
3345
- class: S([
3187
+ return () => h("div", {
3188
+ class: normalizeClass([
3346
3189
  "evo-vue-carousel__viewport-track flex flex-row",
3347
3190
  {
3348
- "is-navigating": u.value,
3349
- "autoplay-active": h.value
3191
+ "is-navigating": p.value,
3192
+ "autoplay-active": C.value
3350
3193
  },
3351
- _.value ? "transition-none" : "transition-all motion-reduce:transition-none",
3352
- i.value.slideTransitionTimingClass
3194
+ T.value ? "transition-none" : "transition-all motion-reduce:transition-none",
3195
+ a.value.slideTransitionTimingClass
3353
3196
  ]),
3354
- style: y.value,
3355
- onTransitionstart: re,
3356
- onTransitionend: O
3357
- }, i.value.wrap ? ss(a("prefix"), a(), a("suffix")) : a());
3197
+ style: D.value,
3198
+ onTransitionstart: B,
3199
+ onTransitionend: V
3200
+ }, a.value.wrap ? concat(s("prefix"), s(), s("suffix")) : s());
3358
3201
  }
3359
3202
  };
3360
- return (e, t) => (w(), l("div", {
3203
+ return (e, t) => (openBlock(), createElementBlock("div", {
3361
3204
  ref_key: "viewportRef",
3362
- ref: x,
3205
+ ref: k,
3363
3206
  class: "evo-vue-carousel__viewport evo-vue-carousel__viewport--slider relative flex w-full h-full max-h-full overflow-hidden",
3364
3207
  role: "listbox",
3365
- "data-width": j(ee),
3366
- "data-height": j(te)
3367
- }, [f(j(me), {
3208
+ "data-width": unref(j),
3209
+ "data-height": unref(N)
3210
+ }, [createVNode(unref(S), {
3368
3211
  slots: e.$slots,
3369
3212
  only: "default"
3370
3213
  }, {
3371
- default: P(() => [f(ie, { gap: j(i).gap }, null, 8, ["gap"])]),
3214
+ default: withCtx(() => [createVNode(H, { gap: unref(a).gap }, null, 8, ["gap"])]),
3372
3215
  _: 1
3373
- }, 8, ["slots"])], 8, id));
3216
+ }, 8, ["slots"])], 8, _hoisted_1$1));
3374
3217
  }
3375
- };
3376
- var od = /* @__PURE__ */ rd(ad, [["__scopeId", "data-v-66126f4d"]]);
3377
- const sd = ["data-height"], cd = {
3218
+ }, [["__scopeId", "data-v-eb524f91"]]), _hoisted_1 = ["data-height"], Gallery_default = {
3378
3219
  __name: "Gallery",
3379
3220
  props: {
3380
3221
  totalSlides: {
@@ -3387,51 +3228,50 @@ const sd = ["data-height"], cd = {
3387
3228
  }
3388
3229
  },
3389
3230
  setup(e) {
3390
- let n = e, { config: r, currentIndex: a, isNavigating: c, isHovered: u, setIsNavigating: d, pauseAutoplay: p, resumeAutoplay: m } = Tl(), h = D(null), { height: _ } = Ve(h);
3391
- N(u, (e) => {
3392
- r.value.pauseOnHover === !0 && (e ? p() : m());
3231
+ let n = e, { config: r, currentIndex: s, isNavigating: u, isHovered: p, setIsNavigating: m, pauseAutoplay: b, resumeAutoplay: x } = useCarouselClient(), C = ref(null), { height: T } = useElementSize(C);
3232
+ watch(p, (e) => {
3233
+ r.value.pauseOnHover === !0 && (e ? b() : x());
3393
3234
  });
3394
- function v(e, t, n) {
3235
+ function E(e, t, n) {
3395
3236
  let r = [];
3396
3237
  if (n === 0) return r;
3397
- for (let i = 0; i < t; i++) r.push((e + i) % n);
3238
+ for (let a = 0; a < t; a++) r.push((e + a) % n);
3398
3239
  return r;
3399
3240
  }
3400
- let y = { setup(e, { slots: i }) {
3401
- let s = o(() => v(a.value, r.value.perPage, n.totalSlides));
3241
+ let D = { setup(e, { slots: a }) {
3242
+ let l = computed(() => E(s.value, r.value.perPage, n.totalSlides));
3402
3243
  return () => {
3403
- let e = i.default?.() || [];
3404
- for (; Array.isArray(e) && e[0]?.type === t;) e = e[0].children;
3405
- let n = 0, r = ed(e, (e) => {
3406
- let t = g(nd, {
3407
- class: S(["evo-vue-carousel__slide evo-vue-carousel__slide--visible w-full h-full", { hidden: s.value.includes(n) === !1 }]),
3244
+ let e = a.default?.() || [];
3245
+ for (; Array.isArray(e) && e[0]?.type === Fragment;) e = e[0].children;
3246
+ let n = 0, r = replaceChildren(e, (e) => {
3247
+ let t = h(Slide_default, {
3248
+ class: normalizeClass(["evo-vue-carousel__slide evo-vue-carousel__slide--visible w-full h-full", { hidden: l.value.includes(n) === !1 }]),
3408
3249
  role: "option"
3409
3250
  }, { default: () => [e] });
3410
3251
  return n++, t;
3411
- }, Zu), o = ss(fl(r, a.value), fl(r, 0, a.value));
3412
- return g("div", { class: S(["flex h-full overflow-hidden"]) }, o);
3252
+ }, COMPONENTS_AND_ELEMENTS), c = concat(slice(r, s.value), slice(r, 0, s.value));
3253
+ return h("div", { class: normalizeClass(["flex h-full overflow-hidden"]) }, c);
3413
3254
  };
3414
3255
  } };
3415
- return (e, t) => (w(), l("div", {
3256
+ return (e, t) => (openBlock(), createElementBlock("div", {
3416
3257
  ref_key: "galleryRef",
3417
- ref: h,
3418
- class: S(["evo-vue-carousel__viewport evo-vue-carousel__viewport--gallery min-h-12 h-full relative w-full overflow-hidden", { "is-navigating": j(c) }]),
3419
- "data-height": j(_)
3420
- }, [f(i, {
3258
+ ref: C,
3259
+ class: normalizeClass(["evo-vue-carousel__viewport evo-vue-carousel__viewport--gallery min-h-12 h-full relative w-full overflow-hidden", { "is-navigating": unref(u) }]),
3260
+ "data-height": unref(T)
3261
+ }, [createVNode(Transition, {
3421
3262
  mode: "in-out",
3422
3263
  "enter-active-class": "transition-all duration-1000 motion-reduce:transition-none motion-reduce:duration-0 absolute inset-0",
3423
3264
  "leave-active-class": "transition-none absolute hidden",
3424
3265
  "enter-from-class": "opacity-0",
3425
- onBeforeEnter: t[0] ||= (e) => j(d)(!0),
3426
- onAfterLeave: t[1] ||= (e) => j(d)(!1)
3266
+ onBeforeEnter: t[0] ||= (e) => unref(m)(!0),
3267
+ onAfterLeave: t[1] ||= (e) => unref(m)(!1)
3427
3268
  }, {
3428
- default: P(() => [(w(), s(y, { key: j(a) }, {
3429
- default: P(() => [O(e.$slots, "default")]),
3269
+ default: withCtx(() => [(openBlock(), createBlock(D, { key: unref(s) }, {
3270
+ default: withCtx(() => [renderSlot(e.$slots, "default")]),
3430
3271
  _: 3
3431
3272
  }))]),
3432
3273
  _: 3
3433
- })], 10, sd));
3274
+ })], 10, _hoisted_1));
3434
3275
  }
3435
3276
  };
3436
- var ld = cd;
3437
- export { gl as EVO_VUE_CAROUSEL_MODE, Pl as EvoVueCarousel, Vu as EvoVueCarouselNavigation, Au as EvoVueCarouselPagination, ld as EvoVueCarouselViewportGallery, od as EvoVueCarouselViewportSlider };
3277
+ export { EVO_VUE_CAROUSEL_MODE, component_default as EvoVueCarousel, Navigation_default as EvoVueCarouselNavigation, Pagination_default as EvoVueCarouselPagination, Gallery_default as EvoVueCarouselViewportGallery, Slider_default as EvoVueCarouselViewportSlider };