@klu_dev/ui-klu-green 1.0.9 → 1.0.10

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.
Files changed (2) hide show
  1. package/dist/index.js +1512 -985
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,253 +1,512 @@
1
- import * as e from "react";
1
+ import * as React from "react";
2
2
  //#region \0rolldown/runtime.js
3
- var t = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), n = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
4
- if (typeof require < "u") return require.apply(this, arguments);
5
- throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
3
+ var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
4
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
5
+ if (typeof require !== "undefined") return require.apply(this, arguments);
6
+ throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
6
7
  });
7
8
  //#endregion
8
9
  //#region node_modules/clsx/dist/clsx.mjs
9
10
  function r(e) {
10
- var t, n, i = "";
11
- if (typeof e == "string" || typeof e == "number") i += e;
12
- else if (typeof e == "object") if (Array.isArray(e)) {
13
- var a = e.length;
14
- for (t = 0; t < a; t++) e[t] && (n = r(e[t])) && (i && (i += " "), i += n);
15
- } else for (n in e) e[n] && (i && (i += " "), i += n);
16
- return i;
11
+ var t, f, n = "";
12
+ if ("string" == typeof e || "number" == typeof e) n += e;
13
+ else if ("object" == typeof e) if (Array.isArray(e)) {
14
+ var o = e.length;
15
+ for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
16
+ } else for (f in e) e[f] && (n && (n += " "), n += f);
17
+ return n;
17
18
  }
18
- function i() {
19
- for (var e, t, n = 0, i = "", a = arguments.length; n < a; n++) (e = arguments[n]) && (t = r(e)) && (i && (i += " "), i += t);
20
- return i;
19
+ function clsx() {
20
+ for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
21
+ return n;
21
22
  }
22
23
  //#endregion
23
24
  //#region node_modules/tailwind-merge/dist/bundle-mjs.mjs
24
- var a = (e, t) => {
25
- let n = Array(e.length + t.length);
26
- for (let t = 0; t < e.length; t++) n[t] = e[t];
27
- for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
28
- return n;
29
- }, o = (e, t) => ({
30
- classGroupId: e,
31
- validator: t
32
- }), s = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
33
- nextPart: e,
34
- validators: t,
35
- classGroupId: n
36
- }), c = "-", l = [], u = "arbitrary..", ee = (e) => {
37
- let t = p(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
38
- return {
39
- getClassGroupId: (e) => {
40
- if (e.startsWith("[") && e.endsWith("]")) return f(e);
41
- let n = e.split(c);
42
- return d(n, +(n[0] === "" && n.length > 1), t);
43
- },
44
- getConflictingClassGroupIds: (e, t) => {
45
- if (t) {
46
- let t = r[e], i = n[e];
47
- return t ? i ? a(i, t) : t : i || l;
25
+ /**
26
+ * Concatenates two arrays faster than the array spread operator.
27
+ */
28
+ var concatArrays = (array1, array2) => {
29
+ const combinedArray = new Array(array1.length + array2.length);
30
+ for (let i = 0; i < array1.length; i++) combinedArray[i] = array1[i];
31
+ for (let i = 0; i < array2.length; i++) combinedArray[array1.length + i] = array2[i];
32
+ return combinedArray;
33
+ };
34
+ var createClassValidatorObject = (classGroupId, validator) => ({
35
+ classGroupId,
36
+ validator
37
+ });
38
+ var createClassPartObject = (nextPart = /* @__PURE__ */ new Map(), validators = null, classGroupId) => ({
39
+ nextPart,
40
+ validators,
41
+ classGroupId
42
+ });
43
+ var CLASS_PART_SEPARATOR = "-";
44
+ var EMPTY_CONFLICTS = [];
45
+ var ARBITRARY_PROPERTY_PREFIX = "arbitrary..";
46
+ var createClassGroupUtils = (config) => {
47
+ const classMap = createClassMap(config);
48
+ const { conflictingClassGroups, conflictingClassGroupModifiers } = config;
49
+ const getClassGroupId = (className) => {
50
+ if (className.startsWith("[") && className.endsWith("]")) return getGroupIdForArbitraryProperty(className);
51
+ const classParts = className.split(CLASS_PART_SEPARATOR);
52
+ return getGroupRecursive(classParts, classParts[0] === "" && classParts.length > 1 ? 1 : 0, classMap);
53
+ };
54
+ const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
55
+ if (hasPostfixModifier) {
56
+ const modifierConflicts = conflictingClassGroupModifiers[classGroupId];
57
+ const baseConflicts = conflictingClassGroups[classGroupId];
58
+ if (modifierConflicts) {
59
+ if (baseConflicts) return concatArrays(baseConflicts, modifierConflicts);
60
+ return modifierConflicts;
48
61
  }
49
- return n[e] || l;
62
+ return baseConflicts || EMPTY_CONFLICTS;
50
63
  }
64
+ return conflictingClassGroups[classGroupId] || EMPTY_CONFLICTS;
65
+ };
66
+ return {
67
+ getClassGroupId,
68
+ getConflictingClassGroupIds
51
69
  };
52
- }, d = (e, t, n) => {
53
- if (e.length - t === 0) return n.classGroupId;
54
- let r = e[t], i = n.nextPart.get(r);
55
- if (i) {
56
- let n = d(e, t + 1, i);
57
- if (n) return n;
70
+ };
71
+ var getGroupRecursive = (classParts, startIndex, classPartObject) => {
72
+ if (classParts.length - startIndex === 0) return classPartObject.classGroupId;
73
+ const currentClassPart = classParts[startIndex];
74
+ const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
75
+ if (nextClassPartObject) {
76
+ const result = getGroupRecursive(classParts, startIndex + 1, nextClassPartObject);
77
+ if (result) return result;
58
78
  }
59
- let a = n.validators;
60
- if (a === null) return;
61
- let o = t === 0 ? e.join(c) : e.slice(t).join(c), s = a.length;
62
- for (let e = 0; e < s; e++) {
63
- let t = a[e];
64
- if (t.validator(o)) return t.classGroupId;
79
+ const validators = classPartObject.validators;
80
+ if (validators === null) return;
81
+ const classRest = startIndex === 0 ? classParts.join(CLASS_PART_SEPARATOR) : classParts.slice(startIndex).join(CLASS_PART_SEPARATOR);
82
+ const validatorsLength = validators.length;
83
+ for (let i = 0; i < validatorsLength; i++) {
84
+ const validatorObj = validators[i];
85
+ if (validatorObj.validator(classRest)) return validatorObj.classGroupId;
65
86
  }
66
- }, f = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
67
- let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
68
- return r ? u + r : void 0;
69
- })(), p = (e) => {
70
- let { theme: t, classGroups: n } = e;
71
- return m(n, t);
72
- }, m = (e, t) => {
73
- let n = s();
74
- for (let r in e) {
75
- let i = e[r];
76
- h(i, n, r, t);
87
+ };
88
+ /**
89
+ * Get the class group ID for an arbitrary property.
90
+ *
91
+ * @param className - The class name to get the group ID for. Is expected to be string starting with `[` and ending with `]`.
92
+ */
93
+ var getGroupIdForArbitraryProperty = (className) => className.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
94
+ const content = className.slice(1, -1);
95
+ const colonIndex = content.indexOf(":");
96
+ const property = content.slice(0, colonIndex);
97
+ return property ? ARBITRARY_PROPERTY_PREFIX + property : void 0;
98
+ })();
99
+ /**
100
+ * Exported for testing only
101
+ */
102
+ var createClassMap = (config) => {
103
+ const { theme, classGroups } = config;
104
+ return processClassGroups(classGroups, theme);
105
+ };
106
+ var processClassGroups = (classGroups, theme) => {
107
+ const classMap = createClassPartObject();
108
+ for (const classGroupId in classGroups) {
109
+ const group = classGroups[classGroupId];
110
+ processClassesRecursively(group, classMap, classGroupId, theme);
77
111
  }
78
- return n;
79
- }, h = (e, t, n, r) => {
80
- let i = e.length;
81
- for (let a = 0; a < i; a++) {
82
- let i = e[a];
83
- g(i, t, n, r);
112
+ return classMap;
113
+ };
114
+ var processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
115
+ const len = classGroup.length;
116
+ for (let i = 0; i < len; i++) {
117
+ const classDefinition = classGroup[i];
118
+ processClassDefinition(classDefinition, classPartObject, classGroupId, theme);
84
119
  }
85
- }, g = (e, t, n, r) => {
86
- if (typeof e == "string") {
87
- _(e, t, n);
120
+ };
121
+ var processClassDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
122
+ if (typeof classDefinition === "string") {
123
+ processStringDefinition(classDefinition, classPartObject, classGroupId);
88
124
  return;
89
125
  }
90
- if (typeof e == "function") {
91
- v(e, t, n, r);
126
+ if (typeof classDefinition === "function") {
127
+ processFunctionDefinition(classDefinition, classPartObject, classGroupId, theme);
92
128
  return;
93
129
  }
94
- y(e, t, n, r);
95
- }, _ = (e, t, n) => {
96
- let r = e === "" ? t : b(t, e);
97
- r.classGroupId = n;
98
- }, v = (e, t, n, r) => {
99
- if (x(e)) {
100
- h(e(r), t, n, r);
130
+ processObjectDefinition(classDefinition, classPartObject, classGroupId, theme);
131
+ };
132
+ var processStringDefinition = (classDefinition, classPartObject, classGroupId) => {
133
+ const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
134
+ classPartObjectToEdit.classGroupId = classGroupId;
135
+ };
136
+ var processFunctionDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
137
+ if (isThemeGetter(classDefinition)) {
138
+ processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
101
139
  return;
102
140
  }
103
- t.validators === null && (t.validators = []), t.validators.push(o(n, e));
104
- }, y = (e, t, n, r) => {
105
- let i = Object.entries(e), a = i.length;
106
- for (let e = 0; e < a; e++) {
107
- let [a, o] = i[e];
108
- h(o, b(t, a), n, r);
141
+ if (classPartObject.validators === null) classPartObject.validators = [];
142
+ classPartObject.validators.push(createClassValidatorObject(classGroupId, classDefinition));
143
+ };
144
+ var processObjectDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
145
+ const entries = Object.entries(classDefinition);
146
+ const len = entries.length;
147
+ for (let i = 0; i < len; i++) {
148
+ const [key, value] = entries[i];
149
+ processClassesRecursively(value, getPart(classPartObject, key), classGroupId, theme);
109
150
  }
110
- }, b = (e, t) => {
111
- let n = e, r = t.split(c), i = r.length;
112
- for (let e = 0; e < i; e++) {
113
- let t = r[e], i = n.nextPart.get(t);
114
- i || (i = s(), n.nextPart.set(t, i)), n = i;
151
+ };
152
+ var getPart = (classPartObject, path) => {
153
+ let current = classPartObject;
154
+ const parts = path.split(CLASS_PART_SEPARATOR);
155
+ const len = parts.length;
156
+ for (let i = 0; i < len; i++) {
157
+ const part = parts[i];
158
+ let next = current.nextPart.get(part);
159
+ if (!next) {
160
+ next = createClassPartObject();
161
+ current.nextPart.set(part, next);
162
+ }
163
+ current = next;
115
164
  }
116
- return n;
117
- }, x = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, S = (e) => {
118
- if (e < 1) return {
165
+ return current;
166
+ };
167
+ var isThemeGetter = (func) => "isThemeGetter" in func && func.isThemeGetter === true;
168
+ var createLruCache = (maxCacheSize) => {
169
+ if (maxCacheSize < 1) return {
119
170
  get: () => void 0,
120
171
  set: () => {}
121
172
  };
122
- let t = 0, n = Object.create(null), r = Object.create(null), i = (i, a) => {
123
- n[i] = a, t++, t > e && (t = 0, r = n, n = Object.create(null));
173
+ let cacheSize = 0;
174
+ let cache = Object.create(null);
175
+ let previousCache = Object.create(null);
176
+ const update = (key, value) => {
177
+ cache[key] = value;
178
+ cacheSize++;
179
+ if (cacheSize > maxCacheSize) {
180
+ cacheSize = 0;
181
+ previousCache = cache;
182
+ cache = Object.create(null);
183
+ }
124
184
  };
125
185
  return {
126
- get(e) {
127
- let t = n[e];
128
- if (t !== void 0) return t;
129
- if ((t = r[e]) !== void 0) return i(e, t), t;
186
+ get(key) {
187
+ let value = cache[key];
188
+ if (value !== void 0) return value;
189
+ if ((value = previousCache[key]) !== void 0) {
190
+ update(key, value);
191
+ return value;
192
+ }
130
193
  },
131
- set(e, t) {
132
- e in n ? n[e] = t : i(e, t);
194
+ set(key, value) {
195
+ if (key in cache) cache[key] = value;
196
+ else update(key, value);
133
197
  }
134
198
  };
135
- }, C = "!", w = ":", te = [], T = (e, t, n, r, i) => ({
136
- modifiers: e,
137
- hasImportantModifier: t,
138
- baseClassName: n,
139
- maybePostfixModifierPosition: r,
140
- isExternal: i
141
- }), E = (e) => {
142
- let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
143
- let t = [], n = 0, r = 0, i = 0, a, o = e.length;
144
- for (let s = 0; s < o; s++) {
145
- let o = e[s];
146
- if (n === 0 && r === 0) {
147
- if (o === w) {
148
- t.push(e.slice(i, s)), i = s + 1;
199
+ };
200
+ var IMPORTANT_MODIFIER = "!";
201
+ var MODIFIER_SEPARATOR = ":";
202
+ var EMPTY_MODIFIERS = [];
203
+ var createResultObject = (modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition, isExternal) => ({
204
+ modifiers,
205
+ hasImportantModifier,
206
+ baseClassName,
207
+ maybePostfixModifierPosition,
208
+ isExternal
209
+ });
210
+ var createParseClassName = (config) => {
211
+ const { prefix, experimentalParseClassName } = config;
212
+ /**
213
+ * Parse class name into parts.
214
+ *
215
+ * Inspired by `splitAtTopLevelOnly` used in Tailwind CSS
216
+ * @see https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js
217
+ */
218
+ let parseClassName = (className) => {
219
+ const modifiers = [];
220
+ let bracketDepth = 0;
221
+ let parenDepth = 0;
222
+ let modifierStart = 0;
223
+ let postfixModifierPosition;
224
+ const len = className.length;
225
+ for (let index = 0; index < len; index++) {
226
+ const currentCharacter = className[index];
227
+ if (bracketDepth === 0 && parenDepth === 0) {
228
+ if (currentCharacter === MODIFIER_SEPARATOR) {
229
+ modifiers.push(className.slice(modifierStart, index));
230
+ modifierStart = index + 1;
149
231
  continue;
150
232
  }
151
- if (o === "/") {
152
- a = s;
233
+ if (currentCharacter === "/") {
234
+ postfixModifierPosition = index;
153
235
  continue;
154
236
  }
155
237
  }
156
- o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
238
+ if (currentCharacter === "[") bracketDepth++;
239
+ else if (currentCharacter === "]") bracketDepth--;
240
+ else if (currentCharacter === "(") parenDepth++;
241
+ else if (currentCharacter === ")") parenDepth--;
157
242
  }
158
- let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
159
- s.endsWith(C) ? (c = s.slice(0, -1), l = !0) : s.startsWith(C) && (c = s.slice(1), l = !0);
160
- let u = a && a > i ? a - i : void 0;
161
- return T(t, l, c, u);
243
+ const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.slice(modifierStart);
244
+ let baseClassName = baseClassNameWithImportantModifier;
245
+ let hasImportantModifier = false;
246
+ if (baseClassNameWithImportantModifier.endsWith(IMPORTANT_MODIFIER)) {
247
+ baseClassName = baseClassNameWithImportantModifier.slice(0, -1);
248
+ hasImportantModifier = true;
249
+ } else if (baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER)) {
250
+ baseClassName = baseClassNameWithImportantModifier.slice(1);
251
+ hasImportantModifier = true;
252
+ }
253
+ const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
254
+ return createResultObject(modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition);
162
255
  };
163
- if (t) {
164
- let e = t + w, n = r;
165
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : T(te, !1, t, void 0, !0);
256
+ if (prefix) {
257
+ const fullPrefix = prefix + MODIFIER_SEPARATOR;
258
+ const parseClassNameOriginal = parseClassName;
259
+ parseClassName = (className) => className.startsWith(fullPrefix) ? parseClassNameOriginal(className.slice(fullPrefix.length)) : createResultObject(EMPTY_MODIFIERS, false, className, void 0, true);
166
260
  }
167
- if (n) {
168
- let e = r;
169
- r = (t) => n({
170
- className: t,
171
- parseClassName: e
261
+ if (experimentalParseClassName) {
262
+ const parseClassNameOriginal = parseClassName;
263
+ parseClassName = (className) => experimentalParseClassName({
264
+ className,
265
+ parseClassName: parseClassNameOriginal
172
266
  });
173
267
  }
174
- return r;
175
- }, ne = (e) => {
176
- let t = /* @__PURE__ */ new Map();
177
- return e.orderSensitiveModifiers.forEach((e, n) => {
178
- t.set(e, 1e6 + n);
179
- }), (e) => {
180
- let n = [], r = [];
181
- for (let i = 0; i < e.length; i++) {
182
- let a = e[i], o = a[0] === "[", s = t.has(a);
183
- o || s ? (r.length > 0 && (r.sort(), n.push(...r), r = []), n.push(a)) : r.push(a);
268
+ return parseClassName;
269
+ };
270
+ /**
271
+ * Sorts modifiers according to following schema:
272
+ * - Predefined modifiers are sorted alphabetically
273
+ * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it
274
+ */
275
+ var createSortModifiers = (config) => {
276
+ const modifierWeights = /* @__PURE__ */ new Map();
277
+ config.orderSensitiveModifiers.forEach((mod, index) => {
278
+ modifierWeights.set(mod, 1e6 + index);
279
+ });
280
+ return (modifiers) => {
281
+ const result = [];
282
+ let currentSegment = [];
283
+ for (let i = 0; i < modifiers.length; i++) {
284
+ const modifier = modifiers[i];
285
+ const isArbitrary = modifier[0] === "[";
286
+ const isOrderSensitive = modifierWeights.has(modifier);
287
+ if (isArbitrary || isOrderSensitive) {
288
+ if (currentSegment.length > 0) {
289
+ currentSegment.sort();
290
+ result.push(...currentSegment);
291
+ currentSegment = [];
292
+ }
293
+ result.push(modifier);
294
+ } else currentSegment.push(modifier);
295
+ }
296
+ if (currentSegment.length > 0) {
297
+ currentSegment.sort();
298
+ result.push(...currentSegment);
184
299
  }
185
- return r.length > 0 && (r.sort(), n.push(...r)), n;
300
+ return result;
186
301
  };
187
- }, D = (e) => ({
188
- cache: S(e.cacheSize),
189
- parseClassName: E(e),
190
- sortModifiers: ne(e),
191
- ...ee(e)
192
- }), O = /\s+/, k = (e, t) => {
193
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a } = t, o = [], s = e.trim().split(O), c = "";
194
- for (let e = s.length - 1; e >= 0; --e) {
195
- let t = s[e], { isExternal: l, modifiers: u, hasImportantModifier: ee, baseClassName: d, maybePostfixModifierPosition: f } = n(t);
196
- if (l) {
197
- c = t + (c.length > 0 ? " " + c : c);
302
+ };
303
+ var createConfigUtils = (config) => ({
304
+ cache: createLruCache(config.cacheSize),
305
+ parseClassName: createParseClassName(config),
306
+ sortModifiers: createSortModifiers(config),
307
+ ...createClassGroupUtils(config)
308
+ });
309
+ var SPLIT_CLASSES_REGEX = /\s+/;
310
+ var mergeClassList = (classList, configUtils) => {
311
+ const { parseClassName, getClassGroupId, getConflictingClassGroupIds, sortModifiers } = configUtils;
312
+ /**
313
+ * Set of classGroupIds in following format:
314
+ * `{importantModifier}{variantModifiers}{classGroupId}`
315
+ * @example 'float'
316
+ * @example 'hover:focus:bg-color'
317
+ * @example 'md:!pr'
318
+ */
319
+ const classGroupsInConflict = [];
320
+ const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
321
+ let result = "";
322
+ for (let index = classNames.length - 1; index >= 0; index -= 1) {
323
+ const originalClassName = classNames[index];
324
+ const { isExternal, modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition } = parseClassName(originalClassName);
325
+ if (isExternal) {
326
+ result = originalClassName + (result.length > 0 ? " " + result : result);
198
327
  continue;
199
328
  }
200
- let p = !!f, m = r(p ? d.substring(0, f) : d);
201
- if (!m) {
202
- if (!p) {
203
- c = t + (c.length > 0 ? " " + c : c);
329
+ let hasPostfixModifier = !!maybePostfixModifierPosition;
330
+ let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
331
+ if (!classGroupId) {
332
+ if (!hasPostfixModifier) {
333
+ result = originalClassName + (result.length > 0 ? " " + result : result);
204
334
  continue;
205
335
  }
206
- if (m = r(d), !m) {
207
- c = t + (c.length > 0 ? " " + c : c);
336
+ classGroupId = getClassGroupId(baseClassName);
337
+ if (!classGroupId) {
338
+ result = originalClassName + (result.length > 0 ? " " + result : result);
208
339
  continue;
209
340
  }
210
- p = !1;
341
+ hasPostfixModifier = false;
211
342
  }
212
- let h = u.length === 0 ? "" : u.length === 1 ? u[0] : a(u).join(":"), g = ee ? h + C : h, _ = g + m;
213
- if (o.indexOf(_) > -1) continue;
214
- o.push(_);
215
- let v = i(m, p);
216
- for (let e = 0; e < v.length; ++e) {
217
- let t = v[e];
218
- o.push(g + t);
343
+ const variantModifier = modifiers.length === 0 ? "" : modifiers.length === 1 ? modifiers[0] : sortModifiers(modifiers).join(":");
344
+ const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
345
+ const classId = modifierId + classGroupId;
346
+ if (classGroupsInConflict.indexOf(classId) > -1) continue;
347
+ classGroupsInConflict.push(classId);
348
+ const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
349
+ for (let i = 0; i < conflictGroups.length; ++i) {
350
+ const group = conflictGroups[i];
351
+ classGroupsInConflict.push(modifierId + group);
219
352
  }
220
- c = t + (c.length > 0 ? " " + c : c);
353
+ result = originalClassName + (result.length > 0 ? " " + result : result);
221
354
  }
222
- return c;
223
- }, A = (...e) => {
224
- let t = 0, n, r, i = "";
225
- for (; t < e.length;) (n = e[t++]) && (r = j(n)) && (i && (i += " "), i += r);
226
- return i;
227
- }, j = (e) => {
228
- if (typeof e == "string") return e;
229
- let t, n = "";
230
- for (let r = 0; r < e.length; r++) e[r] && (t = j(e[r])) && (n && (n += " "), n += t);
231
- return n;
232
- }, M = (e, ...t) => {
233
- let n, r, i, a, o = (o) => (n = D(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
234
- let t = r(e);
235
- if (t) return t;
236
- let a = k(e, n);
237
- return i(e, a), a;
355
+ return result;
356
+ };
357
+ /**
358
+ * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
359
+ *
360
+ * Specifically:
361
+ * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js
362
+ * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts
363
+ *
364
+ * Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
365
+ */
366
+ var twJoin = (...classLists) => {
367
+ let index = 0;
368
+ let argument;
369
+ let resolvedValue;
370
+ let string = "";
371
+ while (index < classLists.length) if (argument = classLists[index++]) {
372
+ if (resolvedValue = toValue(argument)) {
373
+ string && (string += " ");
374
+ string += resolvedValue;
375
+ }
376
+ }
377
+ return string;
378
+ };
379
+ var toValue = (mix) => {
380
+ if (typeof mix === "string") return mix;
381
+ let resolvedValue;
382
+ let string = "";
383
+ for (let k = 0; k < mix.length; k++) if (mix[k]) {
384
+ if (resolvedValue = toValue(mix[k])) {
385
+ string && (string += " ");
386
+ string += resolvedValue;
387
+ }
388
+ }
389
+ return string;
390
+ };
391
+ var createTailwindMerge = (createConfigFirst, ...createConfigRest) => {
392
+ let configUtils;
393
+ let cacheGet;
394
+ let cacheSet;
395
+ let functionToCall;
396
+ const initTailwindMerge = (classList) => {
397
+ configUtils = createConfigUtils(createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst()));
398
+ cacheGet = configUtils.cache.get;
399
+ cacheSet = configUtils.cache.set;
400
+ functionToCall = tailwindMerge;
401
+ return tailwindMerge(classList);
402
+ };
403
+ const tailwindMerge = (classList) => {
404
+ const cachedResult = cacheGet(classList);
405
+ if (cachedResult) return cachedResult;
406
+ const result = mergeClassList(classList, configUtils);
407
+ cacheSet(classList, result);
408
+ return result;
238
409
  };
239
- return a = o, (...e) => a(A(...e));
240
- }, N = [], P = (e) => {
241
- let t = (t) => t[e] || N;
242
- return t.isThemeGetter = !0, t;
243
- }, F = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, re = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ie = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, ae = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, I = /\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$/, L = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, R = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, oe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, z = (e) => ie.test(e), B = (e) => !!e && !Number.isNaN(Number(e)), V = (e) => !!e && Number.isInteger(Number(e)), se = (e) => e.endsWith("%") && B(e.slice(0, -1)), H = (e) => ae.test(e), ce = () => !0, U = (e) => I.test(e) && !L.test(e), W = () => !1, G = (e) => R.test(e), K = (e) => oe.test(e), le = (e) => !q(e) && !Y(e), ue = (e) => Z(e, Te, W), q = (e) => F.test(e), J = (e) => Z(e, Ee, U), de = (e) => Z(e, De, B), fe = (e) => Z(e, ke, ce), pe = (e) => Z(e, Oe, W), me = (e) => Z(e, Ce, W), he = (e) => Z(e, we, K), ge = (e) => Z(e, Ae, G), Y = (e) => re.test(e), X = (e) => Q(e, Ee), _e = (e) => Q(e, Oe), ve = (e) => Q(e, Ce), ye = (e) => Q(e, Te), be = (e) => Q(e, we), xe = (e) => Q(e, Ae, !0), Se = (e) => Q(e, ke, !0), Z = (e, t, n) => {
244
- let r = F.exec(e);
245
- return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
246
- }, Q = (e, t, n = !1) => {
247
- let r = re.exec(e);
248
- return r ? r[1] ? t(r[1]) : n : !1;
249
- }, Ce = (e) => e === "position" || e === "percentage", we = (e) => e === "image" || e === "url", Te = (e) => e === "length" || e === "size" || e === "bg-size", Ee = (e) => e === "length", De = (e) => e === "number", Oe = (e) => e === "family-name", ke = (e) => e === "number" || e === "weight", Ae = (e) => e === "shadow", je = /* @__PURE__ */ M(() => {
250
- let e = P("color"), t = P("font"), n = P("text"), r = P("font-weight"), i = P("tracking"), a = P("leading"), o = P("breakpoint"), s = P("container"), c = P("spacing"), l = P("radius"), u = P("shadow"), ee = P("inset-shadow"), d = P("text-shadow"), f = P("drop-shadow"), p = P("blur"), m = P("perspective"), h = P("aspect"), g = P("ease"), _ = P("animate"), v = () => [
410
+ functionToCall = initTailwindMerge;
411
+ return (...args) => functionToCall(twJoin(...args));
412
+ };
413
+ var fallbackThemeArr = [];
414
+ var fromTheme = (key) => {
415
+ const themeGetter = (theme) => theme[key] || fallbackThemeArr;
416
+ themeGetter.isThemeGetter = true;
417
+ return themeGetter;
418
+ };
419
+ var arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i;
420
+ var arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
421
+ var fractionRegex = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/;
422
+ var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
423
+ var 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$/;
424
+ var colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/;
425
+ var shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
426
+ var imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
427
+ var isFraction = (value) => fractionRegex.test(value);
428
+ var isNumber = (value) => !!value && !Number.isNaN(Number(value));
429
+ var isInteger = (value) => !!value && Number.isInteger(Number(value));
430
+ var isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
431
+ var isTshirtSize = (value) => tshirtUnitRegex.test(value);
432
+ var isAny = () => true;
433
+ var isLengthOnly = (value) => lengthUnitRegex.test(value) && !colorFunctionRegex.test(value);
434
+ var isNever = () => false;
435
+ var isShadow = (value) => shadowRegex.test(value);
436
+ var isImage = (value) => imageRegex.test(value);
437
+ var isAnyNonArbitrary = (value) => !isArbitraryValue(value) && !isArbitraryVariable(value);
438
+ var isArbitrarySize = (value) => getIsArbitraryValue(value, isLabelSize, isNever);
439
+ var isArbitraryValue = (value) => arbitraryValueRegex.test(value);
440
+ var isArbitraryLength = (value) => getIsArbitraryValue(value, isLabelLength, isLengthOnly);
441
+ var isArbitraryNumber = (value) => getIsArbitraryValue(value, isLabelNumber, isNumber);
442
+ var isArbitraryWeight = (value) => getIsArbitraryValue(value, isLabelWeight, isAny);
443
+ var isArbitraryFamilyName = (value) => getIsArbitraryValue(value, isLabelFamilyName, isNever);
444
+ var isArbitraryPosition = (value) => getIsArbitraryValue(value, isLabelPosition, isNever);
445
+ var isArbitraryImage = (value) => getIsArbitraryValue(value, isLabelImage, isImage);
446
+ var isArbitraryShadow = (value) => getIsArbitraryValue(value, isLabelShadow, isShadow);
447
+ var isArbitraryVariable = (value) => arbitraryVariableRegex.test(value);
448
+ var isArbitraryVariableLength = (value) => getIsArbitraryVariable(value, isLabelLength);
449
+ var isArbitraryVariableFamilyName = (value) => getIsArbitraryVariable(value, isLabelFamilyName);
450
+ var isArbitraryVariablePosition = (value) => getIsArbitraryVariable(value, isLabelPosition);
451
+ var isArbitraryVariableSize = (value) => getIsArbitraryVariable(value, isLabelSize);
452
+ var isArbitraryVariableImage = (value) => getIsArbitraryVariable(value, isLabelImage);
453
+ var isArbitraryVariableShadow = (value) => getIsArbitraryVariable(value, isLabelShadow, true);
454
+ var isArbitraryVariableWeight = (value) => getIsArbitraryVariable(value, isLabelWeight, true);
455
+ var getIsArbitraryValue = (value, testLabel, testValue) => {
456
+ const result = arbitraryValueRegex.exec(value);
457
+ if (result) {
458
+ if (result[1]) return testLabel(result[1]);
459
+ return testValue(result[2]);
460
+ }
461
+ return false;
462
+ };
463
+ var getIsArbitraryVariable = (value, testLabel, shouldMatchNoLabel = false) => {
464
+ const result = arbitraryVariableRegex.exec(value);
465
+ if (result) {
466
+ if (result[1]) return testLabel(result[1]);
467
+ return shouldMatchNoLabel;
468
+ }
469
+ return false;
470
+ };
471
+ var isLabelPosition = (label) => label === "position" || label === "percentage";
472
+ var isLabelImage = (label) => label === "image" || label === "url";
473
+ var isLabelSize = (label) => label === "length" || label === "size" || label === "bg-size";
474
+ var isLabelLength = (label) => label === "length";
475
+ var isLabelNumber = (label) => label === "number";
476
+ var isLabelFamilyName = (label) => label === "family-name";
477
+ var isLabelWeight = (label) => label === "number" || label === "weight";
478
+ var isLabelShadow = (label) => label === "shadow";
479
+ var getDefaultConfig = () => {
480
+ /**
481
+ * Theme getters for theme variable namespaces
482
+ * @see https://tailwindcss.com/docs/theme#theme-variable-namespaces
483
+ */
484
+ const themeColor = fromTheme("color");
485
+ const themeFont = fromTheme("font");
486
+ const themeText = fromTheme("text");
487
+ const themeFontWeight = fromTheme("font-weight");
488
+ const themeTracking = fromTheme("tracking");
489
+ const themeLeading = fromTheme("leading");
490
+ const themeBreakpoint = fromTheme("breakpoint");
491
+ const themeContainer = fromTheme("container");
492
+ const themeSpacing = fromTheme("spacing");
493
+ const themeRadius = fromTheme("radius");
494
+ const themeShadow = fromTheme("shadow");
495
+ const themeInsetShadow = fromTheme("inset-shadow");
496
+ const themeTextShadow = fromTheme("text-shadow");
497
+ const themeDropShadow = fromTheme("drop-shadow");
498
+ const themeBlur = fromTheme("blur");
499
+ const themePerspective = fromTheme("perspective");
500
+ const themeAspect = fromTheme("aspect");
501
+ const themeEase = fromTheme("ease");
502
+ const themeAnimate = fromTheme("animate");
503
+ /**
504
+ * Helpers to avoid repeating the same scales
505
+ *
506
+ * We use functions that create a new array every time they're called instead of static arrays.
507
+ * This ensures that users who modify any scale by mutating the array (e.g. with `array.push(element)`) don't accidentally mutate arrays in other parts of the config.
508
+ */
509
+ const scaleBreak = () => [
251
510
  "auto",
252
511
  "avoid",
253
512
  "all",
@@ -256,7 +515,8 @@ var a = (e, t) => {
256
515
  "left",
257
516
  "right",
258
517
  "column"
259
- ], y = () => [
518
+ ];
519
+ const scalePosition = () => [
260
520
  "center",
261
521
  "top",
262
522
  "bottom",
@@ -270,59 +530,69 @@ var a = (e, t) => {
270
530
  "right-bottom",
271
531
  "bottom-left",
272
532
  "left-bottom"
273
- ], b = () => [
274
- ...y(),
275
- Y,
276
- q
277
- ], x = () => [
533
+ ];
534
+ const scalePositionWithArbitrary = () => [
535
+ ...scalePosition(),
536
+ isArbitraryVariable,
537
+ isArbitraryValue
538
+ ];
539
+ const scaleOverflow = () => [
278
540
  "auto",
279
541
  "hidden",
280
542
  "clip",
281
543
  "visible",
282
544
  "scroll"
283
- ], S = () => [
545
+ ];
546
+ const scaleOverscroll = () => [
284
547
  "auto",
285
548
  "contain",
286
549
  "none"
287
- ], C = () => [
288
- Y,
289
- q,
290
- c
291
- ], w = () => [
292
- z,
550
+ ];
551
+ const scaleUnambiguousSpacing = () => [
552
+ isArbitraryVariable,
553
+ isArbitraryValue,
554
+ themeSpacing
555
+ ];
556
+ const scaleInset = () => [
557
+ isFraction,
293
558
  "full",
294
559
  "auto",
295
- ...C()
296
- ], te = () => [
297
- V,
560
+ ...scaleUnambiguousSpacing()
561
+ ];
562
+ const scaleGridTemplateColsRows = () => [
563
+ isInteger,
298
564
  "none",
299
565
  "subgrid",
300
- Y,
301
- q
302
- ], T = () => [
566
+ isArbitraryVariable,
567
+ isArbitraryValue
568
+ ];
569
+ const scaleGridColRowStartAndEnd = () => [
303
570
  "auto",
304
571
  { span: [
305
572
  "full",
306
- V,
307
- Y,
308
- q
573
+ isInteger,
574
+ isArbitraryVariable,
575
+ isArbitraryValue
309
576
  ] },
310
- V,
311
- Y,
312
- q
313
- ], E = () => [
314
- V,
577
+ isInteger,
578
+ isArbitraryVariable,
579
+ isArbitraryValue
580
+ ];
581
+ const scaleGridColRowStartOrEnd = () => [
582
+ isInteger,
315
583
  "auto",
316
- Y,
317
- q
318
- ], ne = () => [
584
+ isArbitraryVariable,
585
+ isArbitraryValue
586
+ ];
587
+ const scaleGridAutoColsRows = () => [
319
588
  "auto",
320
589
  "min",
321
590
  "max",
322
591
  "fr",
323
- Y,
324
- q
325
- ], D = () => [
592
+ isArbitraryVariable,
593
+ isArbitraryValue
594
+ ];
595
+ const scaleAlignPrimaryAxis = () => [
326
596
  "start",
327
597
  "end",
328
598
  "center",
@@ -333,15 +603,18 @@ var a = (e, t) => {
333
603
  "baseline",
334
604
  "center-safe",
335
605
  "end-safe"
336
- ], O = () => [
606
+ ];
607
+ const scaleAlignSecondaryAxis = () => [
337
608
  "start",
338
609
  "end",
339
610
  "center",
340
611
  "stretch",
341
612
  "center-safe",
342
613
  "end-safe"
343
- ], k = () => ["auto", ...C()], A = () => [
344
- z,
614
+ ];
615
+ const scaleMargin = () => ["auto", ...scaleUnambiguousSpacing()];
616
+ const scaleSizing = () => [
617
+ isFraction,
345
618
  "auto",
346
619
  "full",
347
620
  "dvw",
@@ -353,9 +626,10 @@ var a = (e, t) => {
353
626
  "min",
354
627
  "max",
355
628
  "fit",
356
- ...C()
357
- ], j = () => [
358
- z,
629
+ ...scaleUnambiguousSpacing()
630
+ ];
631
+ const scaleSizingInline = () => [
632
+ isFraction,
359
633
  "screen",
360
634
  "full",
361
635
  "dvw",
@@ -364,9 +638,10 @@ var a = (e, t) => {
364
638
  "min",
365
639
  "max",
366
640
  "fit",
367
- ...C()
368
- ], M = () => [
369
- z,
641
+ ...scaleUnambiguousSpacing()
642
+ ];
643
+ const scaleSizingBlock = () => [
644
+ isFraction,
370
645
  "screen",
371
646
  "full",
372
647
  "lh",
@@ -376,51 +651,60 @@ var a = (e, t) => {
376
651
  "min",
377
652
  "max",
378
653
  "fit",
379
- ...C()
380
- ], N = () => [
381
- e,
382
- Y,
383
- q
384
- ], F = () => [
385
- ...y(),
386
- ve,
387
- me,
388
- { position: [Y, q] }
389
- ], re = () => ["no-repeat", { repeat: [
654
+ ...scaleUnambiguousSpacing()
655
+ ];
656
+ const scaleColor = () => [
657
+ themeColor,
658
+ isArbitraryVariable,
659
+ isArbitraryValue
660
+ ];
661
+ const scaleBgPosition = () => [
662
+ ...scalePosition(),
663
+ isArbitraryVariablePosition,
664
+ isArbitraryPosition,
665
+ { position: [isArbitraryVariable, isArbitraryValue] }
666
+ ];
667
+ const scaleBgRepeat = () => ["no-repeat", { repeat: [
390
668
  "",
391
669
  "x",
392
670
  "y",
393
671
  "space",
394
672
  "round"
395
- ] }], ie = () => [
673
+ ] }];
674
+ const scaleBgSize = () => [
396
675
  "auto",
397
676
  "cover",
398
677
  "contain",
399
- ye,
400
- ue,
401
- { size: [Y, q] }
402
- ], ae = () => [
403
- se,
404
- X,
405
- J
406
- ], I = () => [
678
+ isArbitraryVariableSize,
679
+ isArbitrarySize,
680
+ { size: [isArbitraryVariable, isArbitraryValue] }
681
+ ];
682
+ const scaleGradientStopPosition = () => [
683
+ isPercent,
684
+ isArbitraryVariableLength,
685
+ isArbitraryLength
686
+ ];
687
+ const scaleRadius = () => [
407
688
  "",
408
689
  "none",
409
690
  "full",
410
- l,
411
- Y,
412
- q
413
- ], L = () => [
691
+ themeRadius,
692
+ isArbitraryVariable,
693
+ isArbitraryValue
694
+ ];
695
+ const scaleBorderWidth = () => [
414
696
  "",
415
- B,
416
- X,
417
- J
418
- ], R = () => [
697
+ isNumber,
698
+ isArbitraryVariableLength,
699
+ isArbitraryLength
700
+ ];
701
+ const scaleLineStyle = () => [
419
702
  "solid",
420
703
  "dashed",
421
704
  "dotted",
422
705
  "double"
423
- ], oe = () => [
706
+ ];
707
+ const scaleBlendMode = () => [
424
708
  "normal",
425
709
  "multiply",
426
710
  "screen",
@@ -437,35 +721,41 @@ var a = (e, t) => {
437
721
  "saturation",
438
722
  "color",
439
723
  "luminosity"
440
- ], U = () => [
441
- B,
442
- se,
443
- ve,
444
- me
445
- ], W = () => [
724
+ ];
725
+ const scaleMaskImagePosition = () => [
726
+ isNumber,
727
+ isPercent,
728
+ isArbitraryVariablePosition,
729
+ isArbitraryPosition
730
+ ];
731
+ const scaleBlur = () => [
446
732
  "",
447
733
  "none",
448
- p,
449
- Y,
450
- q
451
- ], G = () => [
734
+ themeBlur,
735
+ isArbitraryVariable,
736
+ isArbitraryValue
737
+ ];
738
+ const scaleRotate = () => [
452
739
  "none",
453
- B,
454
- Y,
455
- q
456
- ], K = () => [
740
+ isNumber,
741
+ isArbitraryVariable,
742
+ isArbitraryValue
743
+ ];
744
+ const scaleScale = () => [
457
745
  "none",
458
- B,
459
- Y,
460
- q
461
- ], Z = () => [
462
- B,
463
- Y,
464
- q
465
- ], Q = () => [
466
- z,
746
+ isNumber,
747
+ isArbitraryVariable,
748
+ isArbitraryValue
749
+ ];
750
+ const scaleSkew = () => [
751
+ isNumber,
752
+ isArbitraryVariable,
753
+ isArbitraryValue
754
+ ];
755
+ const scaleTranslate = () => [
756
+ isFraction,
467
757
  "full",
468
- ...C()
758
+ ...scaleUnambiguousSpacing()
469
759
  ];
470
760
  return {
471
761
  cacheSize: 500,
@@ -477,17 +767,17 @@ var a = (e, t) => {
477
767
  "bounce"
478
768
  ],
479
769
  aspect: ["video"],
480
- blur: [H],
481
- breakpoint: [H],
482
- color: [ce],
483
- container: [H],
484
- "drop-shadow": [H],
770
+ blur: [isTshirtSize],
771
+ breakpoint: [isTshirtSize],
772
+ color: [isAny],
773
+ container: [isTshirtSize],
774
+ "drop-shadow": [isTshirtSize],
485
775
  ease: [
486
776
  "in",
487
777
  "out",
488
778
  "in-out"
489
779
  ],
490
- font: [le],
780
+ font: [isAnyNonArbitrary],
491
781
  "font-weight": [
492
782
  "thin",
493
783
  "extralight",
@@ -499,7 +789,7 @@ var a = (e, t) => {
499
789
  "extrabold",
500
790
  "black"
501
791
  ],
502
- "inset-shadow": [H],
792
+ "inset-shadow": [isTshirtSize],
503
793
  leading: [
504
794
  "none",
505
795
  "tight",
@@ -516,11 +806,11 @@ var a = (e, t) => {
516
806
  "distant",
517
807
  "none"
518
808
  ],
519
- radius: [H],
520
- shadow: [H],
521
- spacing: ["px", B],
522
- text: [H],
523
- "text-shadow": [H],
809
+ radius: [isTshirtSize],
810
+ shadow: [isTshirtSize],
811
+ spacing: ["px", isNumber],
812
+ text: [isTshirtSize],
813
+ "text-shadow": [isTshirtSize],
524
814
  tracking: [
525
815
  "tighter",
526
816
  "tight",
@@ -534,20 +824,20 @@ var a = (e, t) => {
534
824
  aspect: [{ aspect: [
535
825
  "auto",
536
826
  "square",
537
- z,
538
- q,
539
- Y,
540
- h
827
+ isFraction,
828
+ isArbitraryValue,
829
+ isArbitraryVariable,
830
+ themeAspect
541
831
  ] }],
542
832
  container: ["container"],
543
833
  columns: [{ columns: [
544
- B,
545
- q,
546
- Y,
547
- s
834
+ isNumber,
835
+ isArbitraryValue,
836
+ isArbitraryVariable,
837
+ themeContainer
548
838
  ] }],
549
- "break-after": [{ "break-after": v() }],
550
- "break-before": [{ "break-before": v() }],
839
+ "break-after": [{ "break-after": scaleBreak() }],
840
+ "break-before": [{ "break-before": scaleBreak() }],
551
841
  "break-inside": [{ "break-inside": [
552
842
  "auto",
553
843
  "avoid",
@@ -603,13 +893,13 @@ var a = (e, t) => {
603
893
  "none",
604
894
  "scale-down"
605
895
  ] }],
606
- "object-position": [{ object: b() }],
607
- overflow: [{ overflow: x() }],
608
- "overflow-x": [{ "overflow-x": x() }],
609
- "overflow-y": [{ "overflow-y": x() }],
610
- overscroll: [{ overscroll: S() }],
611
- "overscroll-x": [{ "overscroll-x": S() }],
612
- "overscroll-y": [{ "overscroll-y": S() }],
896
+ "object-position": [{ object: scalePositionWithArbitrary() }],
897
+ overflow: [{ overflow: scaleOverflow() }],
898
+ "overflow-x": [{ "overflow-x": scaleOverflow() }],
899
+ "overflow-y": [{ "overflow-y": scaleOverflow() }],
900
+ overscroll: [{ overscroll: scaleOverscroll() }],
901
+ "overscroll-x": [{ "overscroll-x": scaleOverscroll() }],
902
+ "overscroll-y": [{ "overscroll-y": scaleOverscroll() }],
613
903
  position: [
614
904
  "static",
615
905
  "fixed",
@@ -617,40 +907,40 @@ var a = (e, t) => {
617
907
  "relative",
618
908
  "sticky"
619
909
  ],
620
- inset: [{ inset: w() }],
621
- "inset-x": [{ "inset-x": w() }],
622
- "inset-y": [{ "inset-y": w() }],
910
+ inset: [{ inset: scaleInset() }],
911
+ "inset-x": [{ "inset-x": scaleInset() }],
912
+ "inset-y": [{ "inset-y": scaleInset() }],
623
913
  start: [{
624
- "inset-s": w(),
625
- start: w()
914
+ "inset-s": scaleInset(),
915
+ start: scaleInset()
626
916
  }],
627
917
  end: [{
628
- "inset-e": w(),
629
- end: w()
918
+ "inset-e": scaleInset(),
919
+ end: scaleInset()
630
920
  }],
631
- "inset-bs": [{ "inset-bs": w() }],
632
- "inset-be": [{ "inset-be": w() }],
633
- top: [{ top: w() }],
634
- right: [{ right: w() }],
635
- bottom: [{ bottom: w() }],
636
- left: [{ left: w() }],
921
+ "inset-bs": [{ "inset-bs": scaleInset() }],
922
+ "inset-be": [{ "inset-be": scaleInset() }],
923
+ top: [{ top: scaleInset() }],
924
+ right: [{ right: scaleInset() }],
925
+ bottom: [{ bottom: scaleInset() }],
926
+ left: [{ left: scaleInset() }],
637
927
  visibility: [
638
928
  "visible",
639
929
  "invisible",
640
930
  "collapse"
641
931
  ],
642
932
  z: [{ z: [
643
- V,
933
+ isInteger,
644
934
  "auto",
645
- Y,
646
- q
935
+ isArbitraryVariable,
936
+ isArbitraryValue
647
937
  ] }],
648
938
  basis: [{ basis: [
649
- z,
939
+ isFraction,
650
940
  "full",
651
941
  "auto",
652
- s,
653
- ...C()
942
+ themeContainer,
943
+ ...scaleUnambiguousSpacing()
654
944
  ] }],
655
945
  "flex-direction": [{ flex: [
656
946
  "row",
@@ -664,41 +954,41 @@ var a = (e, t) => {
664
954
  "wrap-reverse"
665
955
  ] }],
666
956
  flex: [{ flex: [
667
- B,
668
- z,
957
+ isNumber,
958
+ isFraction,
669
959
  "auto",
670
960
  "initial",
671
961
  "none",
672
- q
962
+ isArbitraryValue
673
963
  ] }],
674
964
  grow: [{ grow: [
675
965
  "",
676
- B,
677
- Y,
678
- q
966
+ isNumber,
967
+ isArbitraryVariable,
968
+ isArbitraryValue
679
969
  ] }],
680
970
  shrink: [{ shrink: [
681
971
  "",
682
- B,
683
- Y,
684
- q
972
+ isNumber,
973
+ isArbitraryVariable,
974
+ isArbitraryValue
685
975
  ] }],
686
976
  order: [{ order: [
687
- V,
977
+ isInteger,
688
978
  "first",
689
979
  "last",
690
980
  "none",
691
- Y,
692
- q
693
- ] }],
694
- "grid-cols": [{ "grid-cols": te() }],
695
- "col-start-end": [{ col: T() }],
696
- "col-start": [{ "col-start": E() }],
697
- "col-end": [{ "col-end": E() }],
698
- "grid-rows": [{ "grid-rows": te() }],
699
- "row-start-end": [{ row: T() }],
700
- "row-start": [{ "row-start": E() }],
701
- "row-end": [{ "row-end": E() }],
981
+ isArbitraryVariable,
982
+ isArbitraryValue
983
+ ] }],
984
+ "grid-cols": [{ "grid-cols": scaleGridTemplateColsRows() }],
985
+ "col-start-end": [{ col: scaleGridColRowStartAndEnd() }],
986
+ "col-start": [{ "col-start": scaleGridColRowStartOrEnd() }],
987
+ "col-end": [{ "col-end": scaleGridColRowStartOrEnd() }],
988
+ "grid-rows": [{ "grid-rows": scaleGridTemplateColsRows() }],
989
+ "row-start-end": [{ row: scaleGridColRowStartAndEnd() }],
990
+ "row-start": [{ "row-start": scaleGridColRowStartOrEnd() }],
991
+ "row-end": [{ "row-end": scaleGridColRowStartOrEnd() }],
702
992
  "grid-flow": [{ "grid-flow": [
703
993
  "row",
704
994
  "col",
@@ -706,104 +996,104 @@ var a = (e, t) => {
706
996
  "row-dense",
707
997
  "col-dense"
708
998
  ] }],
709
- "auto-cols": [{ "auto-cols": ne() }],
710
- "auto-rows": [{ "auto-rows": ne() }],
711
- gap: [{ gap: C() }],
712
- "gap-x": [{ "gap-x": C() }],
713
- "gap-y": [{ "gap-y": C() }],
714
- "justify-content": [{ justify: [...D(), "normal"] }],
715
- "justify-items": [{ "justify-items": [...O(), "normal"] }],
716
- "justify-self": [{ "justify-self": ["auto", ...O()] }],
717
- "align-content": [{ content: ["normal", ...D()] }],
718
- "align-items": [{ items: [...O(), { baseline: ["", "last"] }] }],
999
+ "auto-cols": [{ "auto-cols": scaleGridAutoColsRows() }],
1000
+ "auto-rows": [{ "auto-rows": scaleGridAutoColsRows() }],
1001
+ gap: [{ gap: scaleUnambiguousSpacing() }],
1002
+ "gap-x": [{ "gap-x": scaleUnambiguousSpacing() }],
1003
+ "gap-y": [{ "gap-y": scaleUnambiguousSpacing() }],
1004
+ "justify-content": [{ justify: [...scaleAlignPrimaryAxis(), "normal"] }],
1005
+ "justify-items": [{ "justify-items": [...scaleAlignSecondaryAxis(), "normal"] }],
1006
+ "justify-self": [{ "justify-self": ["auto", ...scaleAlignSecondaryAxis()] }],
1007
+ "align-content": [{ content: ["normal", ...scaleAlignPrimaryAxis()] }],
1008
+ "align-items": [{ items: [...scaleAlignSecondaryAxis(), { baseline: ["", "last"] }] }],
719
1009
  "align-self": [{ self: [
720
1010
  "auto",
721
- ...O(),
1011
+ ...scaleAlignSecondaryAxis(),
722
1012
  { baseline: ["", "last"] }
723
1013
  ] }],
724
- "place-content": [{ "place-content": D() }],
725
- "place-items": [{ "place-items": [...O(), "baseline"] }],
726
- "place-self": [{ "place-self": ["auto", ...O()] }],
727
- p: [{ p: C() }],
728
- px: [{ px: C() }],
729
- py: [{ py: C() }],
730
- ps: [{ ps: C() }],
731
- pe: [{ pe: C() }],
732
- pbs: [{ pbs: C() }],
733
- pbe: [{ pbe: C() }],
734
- pt: [{ pt: C() }],
735
- pr: [{ pr: C() }],
736
- pb: [{ pb: C() }],
737
- pl: [{ pl: C() }],
738
- m: [{ m: k() }],
739
- mx: [{ mx: k() }],
740
- my: [{ my: k() }],
741
- ms: [{ ms: k() }],
742
- me: [{ me: k() }],
743
- mbs: [{ mbs: k() }],
744
- mbe: [{ mbe: k() }],
745
- mt: [{ mt: k() }],
746
- mr: [{ mr: k() }],
747
- mb: [{ mb: k() }],
748
- ml: [{ ml: k() }],
749
- "space-x": [{ "space-x": C() }],
1014
+ "place-content": [{ "place-content": scaleAlignPrimaryAxis() }],
1015
+ "place-items": [{ "place-items": [...scaleAlignSecondaryAxis(), "baseline"] }],
1016
+ "place-self": [{ "place-self": ["auto", ...scaleAlignSecondaryAxis()] }],
1017
+ p: [{ p: scaleUnambiguousSpacing() }],
1018
+ px: [{ px: scaleUnambiguousSpacing() }],
1019
+ py: [{ py: scaleUnambiguousSpacing() }],
1020
+ ps: [{ ps: scaleUnambiguousSpacing() }],
1021
+ pe: [{ pe: scaleUnambiguousSpacing() }],
1022
+ pbs: [{ pbs: scaleUnambiguousSpacing() }],
1023
+ pbe: [{ pbe: scaleUnambiguousSpacing() }],
1024
+ pt: [{ pt: scaleUnambiguousSpacing() }],
1025
+ pr: [{ pr: scaleUnambiguousSpacing() }],
1026
+ pb: [{ pb: scaleUnambiguousSpacing() }],
1027
+ pl: [{ pl: scaleUnambiguousSpacing() }],
1028
+ m: [{ m: scaleMargin() }],
1029
+ mx: [{ mx: scaleMargin() }],
1030
+ my: [{ my: scaleMargin() }],
1031
+ ms: [{ ms: scaleMargin() }],
1032
+ me: [{ me: scaleMargin() }],
1033
+ mbs: [{ mbs: scaleMargin() }],
1034
+ mbe: [{ mbe: scaleMargin() }],
1035
+ mt: [{ mt: scaleMargin() }],
1036
+ mr: [{ mr: scaleMargin() }],
1037
+ mb: [{ mb: scaleMargin() }],
1038
+ ml: [{ ml: scaleMargin() }],
1039
+ "space-x": [{ "space-x": scaleUnambiguousSpacing() }],
750
1040
  "space-x-reverse": ["space-x-reverse"],
751
- "space-y": [{ "space-y": C() }],
1041
+ "space-y": [{ "space-y": scaleUnambiguousSpacing() }],
752
1042
  "space-y-reverse": ["space-y-reverse"],
753
- size: [{ size: A() }],
754
- "inline-size": [{ inline: ["auto", ...j()] }],
755
- "min-inline-size": [{ "min-inline": ["auto", ...j()] }],
756
- "max-inline-size": [{ "max-inline": ["none", ...j()] }],
757
- "block-size": [{ block: ["auto", ...M()] }],
758
- "min-block-size": [{ "min-block": ["auto", ...M()] }],
759
- "max-block-size": [{ "max-block": ["none", ...M()] }],
1043
+ size: [{ size: scaleSizing() }],
1044
+ "inline-size": [{ inline: ["auto", ...scaleSizingInline()] }],
1045
+ "min-inline-size": [{ "min-inline": ["auto", ...scaleSizingInline()] }],
1046
+ "max-inline-size": [{ "max-inline": ["none", ...scaleSizingInline()] }],
1047
+ "block-size": [{ block: ["auto", ...scaleSizingBlock()] }],
1048
+ "min-block-size": [{ "min-block": ["auto", ...scaleSizingBlock()] }],
1049
+ "max-block-size": [{ "max-block": ["none", ...scaleSizingBlock()] }],
760
1050
  w: [{ w: [
761
- s,
1051
+ themeContainer,
762
1052
  "screen",
763
- ...A()
1053
+ ...scaleSizing()
764
1054
  ] }],
765
1055
  "min-w": [{ "min-w": [
766
- s,
1056
+ themeContainer,
767
1057
  "screen",
768
1058
  "none",
769
- ...A()
1059
+ ...scaleSizing()
770
1060
  ] }],
771
1061
  "max-w": [{ "max-w": [
772
- s,
1062
+ themeContainer,
773
1063
  "screen",
774
1064
  "none",
775
1065
  "prose",
776
- { screen: [o] },
777
- ...A()
1066
+ { screen: [themeBreakpoint] },
1067
+ ...scaleSizing()
778
1068
  ] }],
779
1069
  h: [{ h: [
780
1070
  "screen",
781
1071
  "lh",
782
- ...A()
1072
+ ...scaleSizing()
783
1073
  ] }],
784
1074
  "min-h": [{ "min-h": [
785
1075
  "screen",
786
1076
  "lh",
787
1077
  "none",
788
- ...A()
1078
+ ...scaleSizing()
789
1079
  ] }],
790
1080
  "max-h": [{ "max-h": [
791
1081
  "screen",
792
1082
  "lh",
793
- ...A()
1083
+ ...scaleSizing()
794
1084
  ] }],
795
1085
  "font-size": [{ text: [
796
1086
  "base",
797
- n,
798
- X,
799
- J
1087
+ themeText,
1088
+ isArbitraryVariableLength,
1089
+ isArbitraryLength
800
1090
  ] }],
801
1091
  "font-smoothing": ["antialiased", "subpixel-antialiased"],
802
1092
  "font-style": ["italic", "not-italic"],
803
1093
  "font-weight": [{ font: [
804
- r,
805
- Se,
806
- fe
1094
+ themeFontWeight,
1095
+ isArbitraryVariableWeight,
1096
+ isArbitraryWeight
807
1097
  ] }],
808
1098
  "font-stretch": [{ "font-stretch": [
809
1099
  "ultra-condensed",
@@ -815,15 +1105,15 @@ var a = (e, t) => {
815
1105
  "expanded",
816
1106
  "extra-expanded",
817
1107
  "ultra-expanded",
818
- se,
819
- q
1108
+ isPercent,
1109
+ isArbitraryValue
820
1110
  ] }],
821
1111
  "font-family": [{ font: [
822
- _e,
823
- pe,
824
- t
1112
+ isArbitraryVariableFamilyName,
1113
+ isArbitraryFamilyName,
1114
+ themeFont
825
1115
  ] }],
826
- "font-features": [{ "font-features": [q] }],
1116
+ "font-features": [{ "font-features": [isArbitraryValue] }],
827
1117
  "fvn-normal": ["normal-nums"],
828
1118
  "fvn-ordinal": ["ordinal"],
829
1119
  "fvn-slashed-zero": ["slashed-zero"],
@@ -831,29 +1121,29 @@ var a = (e, t) => {
831
1121
  "fvn-spacing": ["proportional-nums", "tabular-nums"],
832
1122
  "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
833
1123
  tracking: [{ tracking: [
834
- i,
835
- Y,
836
- q
1124
+ themeTracking,
1125
+ isArbitraryVariable,
1126
+ isArbitraryValue
837
1127
  ] }],
838
1128
  "line-clamp": [{ "line-clamp": [
839
- B,
1129
+ isNumber,
840
1130
  "none",
841
- Y,
842
- de
1131
+ isArbitraryVariable,
1132
+ isArbitraryNumber
843
1133
  ] }],
844
- leading: [{ leading: [a, ...C()] }],
1134
+ leading: [{ leading: [themeLeading, ...scaleUnambiguousSpacing()] }],
845
1135
  "list-image": [{ "list-image": [
846
1136
  "none",
847
- Y,
848
- q
1137
+ isArbitraryVariable,
1138
+ isArbitraryValue
849
1139
  ] }],
850
1140
  "list-style-position": [{ list: ["inside", "outside"] }],
851
1141
  "list-style-type": [{ list: [
852
1142
  "disc",
853
1143
  "decimal",
854
1144
  "none",
855
- Y,
856
- q
1145
+ isArbitraryVariable,
1146
+ isArbitraryValue
857
1147
  ] }],
858
1148
  "text-alignment": [{ text: [
859
1149
  "left",
@@ -863,28 +1153,28 @@ var a = (e, t) => {
863
1153
  "start",
864
1154
  "end"
865
1155
  ] }],
866
- "placeholder-color": [{ placeholder: N() }],
867
- "text-color": [{ text: N() }],
1156
+ "placeholder-color": [{ placeholder: scaleColor() }],
1157
+ "text-color": [{ text: scaleColor() }],
868
1158
  "text-decoration": [
869
1159
  "underline",
870
1160
  "overline",
871
1161
  "line-through",
872
1162
  "no-underline"
873
1163
  ],
874
- "text-decoration-style": [{ decoration: [...R(), "wavy"] }],
1164
+ "text-decoration-style": [{ decoration: [...scaleLineStyle(), "wavy"] }],
875
1165
  "text-decoration-thickness": [{ decoration: [
876
- B,
1166
+ isNumber,
877
1167
  "from-font",
878
1168
  "auto",
879
- Y,
880
- J
1169
+ isArbitraryVariable,
1170
+ isArbitraryLength
881
1171
  ] }],
882
- "text-decoration-color": [{ decoration: N() }],
1172
+ "text-decoration-color": [{ decoration: scaleColor() }],
883
1173
  "underline-offset": [{ "underline-offset": [
884
- B,
1174
+ isNumber,
885
1175
  "auto",
886
- Y,
887
- q
1176
+ isArbitraryVariable,
1177
+ isArbitraryValue
888
1178
  ] }],
889
1179
  "text-transform": [
890
1180
  "uppercase",
@@ -903,7 +1193,7 @@ var a = (e, t) => {
903
1193
  "balance",
904
1194
  "pretty"
905
1195
  ] }],
906
- indent: [{ indent: C() }],
1196
+ indent: [{ indent: scaleUnambiguousSpacing() }],
907
1197
  "vertical-align": [{ align: [
908
1198
  "baseline",
909
1199
  "top",
@@ -913,8 +1203,8 @@ var a = (e, t) => {
913
1203
  "text-bottom",
914
1204
  "sub",
915
1205
  "super",
916
- Y,
917
- q
1206
+ isArbitraryVariable,
1207
+ isArbitraryValue
918
1208
  ] }],
919
1209
  whitespace: [{ whitespace: [
920
1210
  "normal",
@@ -942,8 +1232,8 @@ var a = (e, t) => {
942
1232
  ] }],
943
1233
  content: [{ content: [
944
1234
  "none",
945
- Y,
946
- q
1235
+ isArbitraryVariable,
1236
+ isArbitraryValue
947
1237
  ] }],
948
1238
  "bg-attachment": [{ bg: [
949
1239
  "fixed",
@@ -961,9 +1251,9 @@ var a = (e, t) => {
961
1251
  "padding",
962
1252
  "content"
963
1253
  ] }],
964
- "bg-position": [{ bg: F() }],
965
- "bg-repeat": [{ bg: re() }],
966
- "bg-size": [{ bg: ie() }],
1254
+ "bg-position": [{ bg: scaleBgPosition() }],
1255
+ "bg-repeat": [{ bg: scaleBgRepeat() }],
1256
+ "bg-size": [{ bg: scaleBgSize() }],
967
1257
  "bg-image": [{ bg: [
968
1258
  "none",
969
1259
  {
@@ -978,140 +1268,140 @@ var a = (e, t) => {
978
1268
  "l",
979
1269
  "tl"
980
1270
  ] },
981
- V,
982
- Y,
983
- q
1271
+ isInteger,
1272
+ isArbitraryVariable,
1273
+ isArbitraryValue
984
1274
  ],
985
1275
  radial: [
986
1276
  "",
987
- Y,
988
- q
1277
+ isArbitraryVariable,
1278
+ isArbitraryValue
989
1279
  ],
990
1280
  conic: [
991
- V,
992
- Y,
993
- q
1281
+ isInteger,
1282
+ isArbitraryVariable,
1283
+ isArbitraryValue
994
1284
  ]
995
1285
  },
996
- be,
997
- he
998
- ] }],
999
- "bg-color": [{ bg: N() }],
1000
- "gradient-from-pos": [{ from: ae() }],
1001
- "gradient-via-pos": [{ via: ae() }],
1002
- "gradient-to-pos": [{ to: ae() }],
1003
- "gradient-from": [{ from: N() }],
1004
- "gradient-via": [{ via: N() }],
1005
- "gradient-to": [{ to: N() }],
1006
- rounded: [{ rounded: I() }],
1007
- "rounded-s": [{ "rounded-s": I() }],
1008
- "rounded-e": [{ "rounded-e": I() }],
1009
- "rounded-t": [{ "rounded-t": I() }],
1010
- "rounded-r": [{ "rounded-r": I() }],
1011
- "rounded-b": [{ "rounded-b": I() }],
1012
- "rounded-l": [{ "rounded-l": I() }],
1013
- "rounded-ss": [{ "rounded-ss": I() }],
1014
- "rounded-se": [{ "rounded-se": I() }],
1015
- "rounded-ee": [{ "rounded-ee": I() }],
1016
- "rounded-es": [{ "rounded-es": I() }],
1017
- "rounded-tl": [{ "rounded-tl": I() }],
1018
- "rounded-tr": [{ "rounded-tr": I() }],
1019
- "rounded-br": [{ "rounded-br": I() }],
1020
- "rounded-bl": [{ "rounded-bl": I() }],
1021
- "border-w": [{ border: L() }],
1022
- "border-w-x": [{ "border-x": L() }],
1023
- "border-w-y": [{ "border-y": L() }],
1024
- "border-w-s": [{ "border-s": L() }],
1025
- "border-w-e": [{ "border-e": L() }],
1026
- "border-w-bs": [{ "border-bs": L() }],
1027
- "border-w-be": [{ "border-be": L() }],
1028
- "border-w-t": [{ "border-t": L() }],
1029
- "border-w-r": [{ "border-r": L() }],
1030
- "border-w-b": [{ "border-b": L() }],
1031
- "border-w-l": [{ "border-l": L() }],
1032
- "divide-x": [{ "divide-x": L() }],
1286
+ isArbitraryVariableImage,
1287
+ isArbitraryImage
1288
+ ] }],
1289
+ "bg-color": [{ bg: scaleColor() }],
1290
+ "gradient-from-pos": [{ from: scaleGradientStopPosition() }],
1291
+ "gradient-via-pos": [{ via: scaleGradientStopPosition() }],
1292
+ "gradient-to-pos": [{ to: scaleGradientStopPosition() }],
1293
+ "gradient-from": [{ from: scaleColor() }],
1294
+ "gradient-via": [{ via: scaleColor() }],
1295
+ "gradient-to": [{ to: scaleColor() }],
1296
+ rounded: [{ rounded: scaleRadius() }],
1297
+ "rounded-s": [{ "rounded-s": scaleRadius() }],
1298
+ "rounded-e": [{ "rounded-e": scaleRadius() }],
1299
+ "rounded-t": [{ "rounded-t": scaleRadius() }],
1300
+ "rounded-r": [{ "rounded-r": scaleRadius() }],
1301
+ "rounded-b": [{ "rounded-b": scaleRadius() }],
1302
+ "rounded-l": [{ "rounded-l": scaleRadius() }],
1303
+ "rounded-ss": [{ "rounded-ss": scaleRadius() }],
1304
+ "rounded-se": [{ "rounded-se": scaleRadius() }],
1305
+ "rounded-ee": [{ "rounded-ee": scaleRadius() }],
1306
+ "rounded-es": [{ "rounded-es": scaleRadius() }],
1307
+ "rounded-tl": [{ "rounded-tl": scaleRadius() }],
1308
+ "rounded-tr": [{ "rounded-tr": scaleRadius() }],
1309
+ "rounded-br": [{ "rounded-br": scaleRadius() }],
1310
+ "rounded-bl": [{ "rounded-bl": scaleRadius() }],
1311
+ "border-w": [{ border: scaleBorderWidth() }],
1312
+ "border-w-x": [{ "border-x": scaleBorderWidth() }],
1313
+ "border-w-y": [{ "border-y": scaleBorderWidth() }],
1314
+ "border-w-s": [{ "border-s": scaleBorderWidth() }],
1315
+ "border-w-e": [{ "border-e": scaleBorderWidth() }],
1316
+ "border-w-bs": [{ "border-bs": scaleBorderWidth() }],
1317
+ "border-w-be": [{ "border-be": scaleBorderWidth() }],
1318
+ "border-w-t": [{ "border-t": scaleBorderWidth() }],
1319
+ "border-w-r": [{ "border-r": scaleBorderWidth() }],
1320
+ "border-w-b": [{ "border-b": scaleBorderWidth() }],
1321
+ "border-w-l": [{ "border-l": scaleBorderWidth() }],
1322
+ "divide-x": [{ "divide-x": scaleBorderWidth() }],
1033
1323
  "divide-x-reverse": ["divide-x-reverse"],
1034
- "divide-y": [{ "divide-y": L() }],
1324
+ "divide-y": [{ "divide-y": scaleBorderWidth() }],
1035
1325
  "divide-y-reverse": ["divide-y-reverse"],
1036
1326
  "border-style": [{ border: [
1037
- ...R(),
1327
+ ...scaleLineStyle(),
1038
1328
  "hidden",
1039
1329
  "none"
1040
1330
  ] }],
1041
1331
  "divide-style": [{ divide: [
1042
- ...R(),
1332
+ ...scaleLineStyle(),
1043
1333
  "hidden",
1044
1334
  "none"
1045
1335
  ] }],
1046
- "border-color": [{ border: N() }],
1047
- "border-color-x": [{ "border-x": N() }],
1048
- "border-color-y": [{ "border-y": N() }],
1049
- "border-color-s": [{ "border-s": N() }],
1050
- "border-color-e": [{ "border-e": N() }],
1051
- "border-color-bs": [{ "border-bs": N() }],
1052
- "border-color-be": [{ "border-be": N() }],
1053
- "border-color-t": [{ "border-t": N() }],
1054
- "border-color-r": [{ "border-r": N() }],
1055
- "border-color-b": [{ "border-b": N() }],
1056
- "border-color-l": [{ "border-l": N() }],
1057
- "divide-color": [{ divide: N() }],
1336
+ "border-color": [{ border: scaleColor() }],
1337
+ "border-color-x": [{ "border-x": scaleColor() }],
1338
+ "border-color-y": [{ "border-y": scaleColor() }],
1339
+ "border-color-s": [{ "border-s": scaleColor() }],
1340
+ "border-color-e": [{ "border-e": scaleColor() }],
1341
+ "border-color-bs": [{ "border-bs": scaleColor() }],
1342
+ "border-color-be": [{ "border-be": scaleColor() }],
1343
+ "border-color-t": [{ "border-t": scaleColor() }],
1344
+ "border-color-r": [{ "border-r": scaleColor() }],
1345
+ "border-color-b": [{ "border-b": scaleColor() }],
1346
+ "border-color-l": [{ "border-l": scaleColor() }],
1347
+ "divide-color": [{ divide: scaleColor() }],
1058
1348
  "outline-style": [{ outline: [
1059
- ...R(),
1349
+ ...scaleLineStyle(),
1060
1350
  "none",
1061
1351
  "hidden"
1062
1352
  ] }],
1063
1353
  "outline-offset": [{ "outline-offset": [
1064
- B,
1065
- Y,
1066
- q
1354
+ isNumber,
1355
+ isArbitraryVariable,
1356
+ isArbitraryValue
1067
1357
  ] }],
1068
1358
  "outline-w": [{ outline: [
1069
1359
  "",
1070
- B,
1071
- X,
1072
- J
1360
+ isNumber,
1361
+ isArbitraryVariableLength,
1362
+ isArbitraryLength
1073
1363
  ] }],
1074
- "outline-color": [{ outline: N() }],
1364
+ "outline-color": [{ outline: scaleColor() }],
1075
1365
  shadow: [{ shadow: [
1076
1366
  "",
1077
1367
  "none",
1078
- u,
1079
- xe,
1080
- ge
1368
+ themeShadow,
1369
+ isArbitraryVariableShadow,
1370
+ isArbitraryShadow
1081
1371
  ] }],
1082
- "shadow-color": [{ shadow: N() }],
1372
+ "shadow-color": [{ shadow: scaleColor() }],
1083
1373
  "inset-shadow": [{ "inset-shadow": [
1084
1374
  "none",
1085
- ee,
1086
- xe,
1087
- ge
1375
+ themeInsetShadow,
1376
+ isArbitraryVariableShadow,
1377
+ isArbitraryShadow
1088
1378
  ] }],
1089
- "inset-shadow-color": [{ "inset-shadow": N() }],
1090
- "ring-w": [{ ring: L() }],
1379
+ "inset-shadow-color": [{ "inset-shadow": scaleColor() }],
1380
+ "ring-w": [{ ring: scaleBorderWidth() }],
1091
1381
  "ring-w-inset": ["ring-inset"],
1092
- "ring-color": [{ ring: N() }],
1093
- "ring-offset-w": [{ "ring-offset": [B, J] }],
1094
- "ring-offset-color": [{ "ring-offset": N() }],
1095
- "inset-ring-w": [{ "inset-ring": L() }],
1096
- "inset-ring-color": [{ "inset-ring": N() }],
1382
+ "ring-color": [{ ring: scaleColor() }],
1383
+ "ring-offset-w": [{ "ring-offset": [isNumber, isArbitraryLength] }],
1384
+ "ring-offset-color": [{ "ring-offset": scaleColor() }],
1385
+ "inset-ring-w": [{ "inset-ring": scaleBorderWidth() }],
1386
+ "inset-ring-color": [{ "inset-ring": scaleColor() }],
1097
1387
  "text-shadow": [{ "text-shadow": [
1098
1388
  "none",
1099
- d,
1100
- xe,
1101
- ge
1389
+ themeTextShadow,
1390
+ isArbitraryVariableShadow,
1391
+ isArbitraryShadow
1102
1392
  ] }],
1103
- "text-shadow-color": [{ "text-shadow": N() }],
1393
+ "text-shadow-color": [{ "text-shadow": scaleColor() }],
1104
1394
  opacity: [{ opacity: [
1105
- B,
1106
- Y,
1107
- q
1395
+ isNumber,
1396
+ isArbitraryVariable,
1397
+ isArbitraryValue
1108
1398
  ] }],
1109
1399
  "mix-blend": [{ "mix-blend": [
1110
- ...oe(),
1400
+ ...scaleBlendMode(),
1111
1401
  "plus-darker",
1112
1402
  "plus-lighter"
1113
1403
  ] }],
1114
- "bg-blend": [{ "bg-blend": oe() }],
1404
+ "bg-blend": [{ "bg-blend": scaleBlendMode() }],
1115
1405
  "mask-clip": [{ "mask-clip": [
1116
1406
  "border",
1117
1407
  "padding",
@@ -1126,51 +1416,51 @@ var a = (e, t) => {
1126
1416
  "intersect",
1127
1417
  "exclude"
1128
1418
  ] }],
1129
- "mask-image-linear-pos": [{ "mask-linear": [B] }],
1130
- "mask-image-linear-from-pos": [{ "mask-linear-from": U() }],
1131
- "mask-image-linear-to-pos": [{ "mask-linear-to": U() }],
1132
- "mask-image-linear-from-color": [{ "mask-linear-from": N() }],
1133
- "mask-image-linear-to-color": [{ "mask-linear-to": N() }],
1134
- "mask-image-t-from-pos": [{ "mask-t-from": U() }],
1135
- "mask-image-t-to-pos": [{ "mask-t-to": U() }],
1136
- "mask-image-t-from-color": [{ "mask-t-from": N() }],
1137
- "mask-image-t-to-color": [{ "mask-t-to": N() }],
1138
- "mask-image-r-from-pos": [{ "mask-r-from": U() }],
1139
- "mask-image-r-to-pos": [{ "mask-r-to": U() }],
1140
- "mask-image-r-from-color": [{ "mask-r-from": N() }],
1141
- "mask-image-r-to-color": [{ "mask-r-to": N() }],
1142
- "mask-image-b-from-pos": [{ "mask-b-from": U() }],
1143
- "mask-image-b-to-pos": [{ "mask-b-to": U() }],
1144
- "mask-image-b-from-color": [{ "mask-b-from": N() }],
1145
- "mask-image-b-to-color": [{ "mask-b-to": N() }],
1146
- "mask-image-l-from-pos": [{ "mask-l-from": U() }],
1147
- "mask-image-l-to-pos": [{ "mask-l-to": U() }],
1148
- "mask-image-l-from-color": [{ "mask-l-from": N() }],
1149
- "mask-image-l-to-color": [{ "mask-l-to": N() }],
1150
- "mask-image-x-from-pos": [{ "mask-x-from": U() }],
1151
- "mask-image-x-to-pos": [{ "mask-x-to": U() }],
1152
- "mask-image-x-from-color": [{ "mask-x-from": N() }],
1153
- "mask-image-x-to-color": [{ "mask-x-to": N() }],
1154
- "mask-image-y-from-pos": [{ "mask-y-from": U() }],
1155
- "mask-image-y-to-pos": [{ "mask-y-to": U() }],
1156
- "mask-image-y-from-color": [{ "mask-y-from": N() }],
1157
- "mask-image-y-to-color": [{ "mask-y-to": N() }],
1158
- "mask-image-radial": [{ "mask-radial": [Y, q] }],
1159
- "mask-image-radial-from-pos": [{ "mask-radial-from": U() }],
1160
- "mask-image-radial-to-pos": [{ "mask-radial-to": U() }],
1161
- "mask-image-radial-from-color": [{ "mask-radial-from": N() }],
1162
- "mask-image-radial-to-color": [{ "mask-radial-to": N() }],
1419
+ "mask-image-linear-pos": [{ "mask-linear": [isNumber] }],
1420
+ "mask-image-linear-from-pos": [{ "mask-linear-from": scaleMaskImagePosition() }],
1421
+ "mask-image-linear-to-pos": [{ "mask-linear-to": scaleMaskImagePosition() }],
1422
+ "mask-image-linear-from-color": [{ "mask-linear-from": scaleColor() }],
1423
+ "mask-image-linear-to-color": [{ "mask-linear-to": scaleColor() }],
1424
+ "mask-image-t-from-pos": [{ "mask-t-from": scaleMaskImagePosition() }],
1425
+ "mask-image-t-to-pos": [{ "mask-t-to": scaleMaskImagePosition() }],
1426
+ "mask-image-t-from-color": [{ "mask-t-from": scaleColor() }],
1427
+ "mask-image-t-to-color": [{ "mask-t-to": scaleColor() }],
1428
+ "mask-image-r-from-pos": [{ "mask-r-from": scaleMaskImagePosition() }],
1429
+ "mask-image-r-to-pos": [{ "mask-r-to": scaleMaskImagePosition() }],
1430
+ "mask-image-r-from-color": [{ "mask-r-from": scaleColor() }],
1431
+ "mask-image-r-to-color": [{ "mask-r-to": scaleColor() }],
1432
+ "mask-image-b-from-pos": [{ "mask-b-from": scaleMaskImagePosition() }],
1433
+ "mask-image-b-to-pos": [{ "mask-b-to": scaleMaskImagePosition() }],
1434
+ "mask-image-b-from-color": [{ "mask-b-from": scaleColor() }],
1435
+ "mask-image-b-to-color": [{ "mask-b-to": scaleColor() }],
1436
+ "mask-image-l-from-pos": [{ "mask-l-from": scaleMaskImagePosition() }],
1437
+ "mask-image-l-to-pos": [{ "mask-l-to": scaleMaskImagePosition() }],
1438
+ "mask-image-l-from-color": [{ "mask-l-from": scaleColor() }],
1439
+ "mask-image-l-to-color": [{ "mask-l-to": scaleColor() }],
1440
+ "mask-image-x-from-pos": [{ "mask-x-from": scaleMaskImagePosition() }],
1441
+ "mask-image-x-to-pos": [{ "mask-x-to": scaleMaskImagePosition() }],
1442
+ "mask-image-x-from-color": [{ "mask-x-from": scaleColor() }],
1443
+ "mask-image-x-to-color": [{ "mask-x-to": scaleColor() }],
1444
+ "mask-image-y-from-pos": [{ "mask-y-from": scaleMaskImagePosition() }],
1445
+ "mask-image-y-to-pos": [{ "mask-y-to": scaleMaskImagePosition() }],
1446
+ "mask-image-y-from-color": [{ "mask-y-from": scaleColor() }],
1447
+ "mask-image-y-to-color": [{ "mask-y-to": scaleColor() }],
1448
+ "mask-image-radial": [{ "mask-radial": [isArbitraryVariable, isArbitraryValue] }],
1449
+ "mask-image-radial-from-pos": [{ "mask-radial-from": scaleMaskImagePosition() }],
1450
+ "mask-image-radial-to-pos": [{ "mask-radial-to": scaleMaskImagePosition() }],
1451
+ "mask-image-radial-from-color": [{ "mask-radial-from": scaleColor() }],
1452
+ "mask-image-radial-to-color": [{ "mask-radial-to": scaleColor() }],
1163
1453
  "mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
1164
1454
  "mask-image-radial-size": [{ "mask-radial": [{
1165
1455
  closest: ["side", "corner"],
1166
1456
  farthest: ["side", "corner"]
1167
1457
  }] }],
1168
- "mask-image-radial-pos": [{ "mask-radial-at": y() }],
1169
- "mask-image-conic-pos": [{ "mask-conic": [B] }],
1170
- "mask-image-conic-from-pos": [{ "mask-conic-from": U() }],
1171
- "mask-image-conic-to-pos": [{ "mask-conic-to": U() }],
1172
- "mask-image-conic-from-color": [{ "mask-conic-from": N() }],
1173
- "mask-image-conic-to-color": [{ "mask-conic-to": N() }],
1458
+ "mask-image-radial-pos": [{ "mask-radial-at": scalePosition() }],
1459
+ "mask-image-conic-pos": [{ "mask-conic": [isNumber] }],
1460
+ "mask-image-conic-from-pos": [{ "mask-conic-from": scaleMaskImagePosition() }],
1461
+ "mask-image-conic-to-pos": [{ "mask-conic-to": scaleMaskImagePosition() }],
1462
+ "mask-image-conic-from-color": [{ "mask-conic-from": scaleColor() }],
1463
+ "mask-image-conic-to-color": [{ "mask-conic-to": scaleColor() }],
1174
1464
  "mask-mode": [{ mask: [
1175
1465
  "alpha",
1176
1466
  "luminance",
@@ -1184,122 +1474,122 @@ var a = (e, t) => {
1184
1474
  "stroke",
1185
1475
  "view"
1186
1476
  ] }],
1187
- "mask-position": [{ mask: F() }],
1188
- "mask-repeat": [{ mask: re() }],
1189
- "mask-size": [{ mask: ie() }],
1477
+ "mask-position": [{ mask: scaleBgPosition() }],
1478
+ "mask-repeat": [{ mask: scaleBgRepeat() }],
1479
+ "mask-size": [{ mask: scaleBgSize() }],
1190
1480
  "mask-type": [{ "mask-type": ["alpha", "luminance"] }],
1191
1481
  "mask-image": [{ mask: [
1192
1482
  "none",
1193
- Y,
1194
- q
1483
+ isArbitraryVariable,
1484
+ isArbitraryValue
1195
1485
  ] }],
1196
1486
  filter: [{ filter: [
1197
1487
  "",
1198
1488
  "none",
1199
- Y,
1200
- q
1489
+ isArbitraryVariable,
1490
+ isArbitraryValue
1201
1491
  ] }],
1202
- blur: [{ blur: W() }],
1492
+ blur: [{ blur: scaleBlur() }],
1203
1493
  brightness: [{ brightness: [
1204
- B,
1205
- Y,
1206
- q
1494
+ isNumber,
1495
+ isArbitraryVariable,
1496
+ isArbitraryValue
1207
1497
  ] }],
1208
1498
  contrast: [{ contrast: [
1209
- B,
1210
- Y,
1211
- q
1499
+ isNumber,
1500
+ isArbitraryVariable,
1501
+ isArbitraryValue
1212
1502
  ] }],
1213
1503
  "drop-shadow": [{ "drop-shadow": [
1214
1504
  "",
1215
1505
  "none",
1216
- f,
1217
- xe,
1218
- ge
1506
+ themeDropShadow,
1507
+ isArbitraryVariableShadow,
1508
+ isArbitraryShadow
1219
1509
  ] }],
1220
- "drop-shadow-color": [{ "drop-shadow": N() }],
1510
+ "drop-shadow-color": [{ "drop-shadow": scaleColor() }],
1221
1511
  grayscale: [{ grayscale: [
1222
1512
  "",
1223
- B,
1224
- Y,
1225
- q
1513
+ isNumber,
1514
+ isArbitraryVariable,
1515
+ isArbitraryValue
1226
1516
  ] }],
1227
1517
  "hue-rotate": [{ "hue-rotate": [
1228
- B,
1229
- Y,
1230
- q
1518
+ isNumber,
1519
+ isArbitraryVariable,
1520
+ isArbitraryValue
1231
1521
  ] }],
1232
1522
  invert: [{ invert: [
1233
1523
  "",
1234
- B,
1235
- Y,
1236
- q
1524
+ isNumber,
1525
+ isArbitraryVariable,
1526
+ isArbitraryValue
1237
1527
  ] }],
1238
1528
  saturate: [{ saturate: [
1239
- B,
1240
- Y,
1241
- q
1529
+ isNumber,
1530
+ isArbitraryVariable,
1531
+ isArbitraryValue
1242
1532
  ] }],
1243
1533
  sepia: [{ sepia: [
1244
1534
  "",
1245
- B,
1246
- Y,
1247
- q
1535
+ isNumber,
1536
+ isArbitraryVariable,
1537
+ isArbitraryValue
1248
1538
  ] }],
1249
1539
  "backdrop-filter": [{ "backdrop-filter": [
1250
1540
  "",
1251
1541
  "none",
1252
- Y,
1253
- q
1542
+ isArbitraryVariable,
1543
+ isArbitraryValue
1254
1544
  ] }],
1255
- "backdrop-blur": [{ "backdrop-blur": W() }],
1545
+ "backdrop-blur": [{ "backdrop-blur": scaleBlur() }],
1256
1546
  "backdrop-brightness": [{ "backdrop-brightness": [
1257
- B,
1258
- Y,
1259
- q
1547
+ isNumber,
1548
+ isArbitraryVariable,
1549
+ isArbitraryValue
1260
1550
  ] }],
1261
1551
  "backdrop-contrast": [{ "backdrop-contrast": [
1262
- B,
1263
- Y,
1264
- q
1552
+ isNumber,
1553
+ isArbitraryVariable,
1554
+ isArbitraryValue
1265
1555
  ] }],
1266
1556
  "backdrop-grayscale": [{ "backdrop-grayscale": [
1267
1557
  "",
1268
- B,
1269
- Y,
1270
- q
1558
+ isNumber,
1559
+ isArbitraryVariable,
1560
+ isArbitraryValue
1271
1561
  ] }],
1272
1562
  "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
1273
- B,
1274
- Y,
1275
- q
1563
+ isNumber,
1564
+ isArbitraryVariable,
1565
+ isArbitraryValue
1276
1566
  ] }],
1277
1567
  "backdrop-invert": [{ "backdrop-invert": [
1278
1568
  "",
1279
- B,
1280
- Y,
1281
- q
1569
+ isNumber,
1570
+ isArbitraryVariable,
1571
+ isArbitraryValue
1282
1572
  ] }],
1283
1573
  "backdrop-opacity": [{ "backdrop-opacity": [
1284
- B,
1285
- Y,
1286
- q
1574
+ isNumber,
1575
+ isArbitraryVariable,
1576
+ isArbitraryValue
1287
1577
  ] }],
1288
1578
  "backdrop-saturate": [{ "backdrop-saturate": [
1289
- B,
1290
- Y,
1291
- q
1579
+ isNumber,
1580
+ isArbitraryVariable,
1581
+ isArbitraryValue
1292
1582
  ] }],
1293
1583
  "backdrop-sepia": [{ "backdrop-sepia": [
1294
1584
  "",
1295
- B,
1296
- Y,
1297
- q
1585
+ isNumber,
1586
+ isArbitraryVariable,
1587
+ isArbitraryValue
1298
1588
  ] }],
1299
1589
  "border-collapse": [{ border: ["collapse", "separate"] }],
1300
- "border-spacing": [{ "border-spacing": C() }],
1301
- "border-spacing-x": [{ "border-spacing-x": C() }],
1302
- "border-spacing-y": [{ "border-spacing-y": C() }],
1590
+ "border-spacing": [{ "border-spacing": scaleUnambiguousSpacing() }],
1591
+ "border-spacing-x": [{ "border-spacing-x": scaleUnambiguousSpacing() }],
1592
+ "border-spacing-y": [{ "border-spacing-y": scaleUnambiguousSpacing() }],
1303
1593
  "table-layout": [{ table: ["auto", "fixed"] }],
1304
1594
  caption: [{ caption: ["top", "bottom"] }],
1305
1595
  transition: [{ transition: [
@@ -1310,71 +1600,71 @@ var a = (e, t) => {
1310
1600
  "shadow",
1311
1601
  "transform",
1312
1602
  "none",
1313
- Y,
1314
- q
1603
+ isArbitraryVariable,
1604
+ isArbitraryValue
1315
1605
  ] }],
1316
1606
  "transition-behavior": [{ transition: ["normal", "discrete"] }],
1317
1607
  duration: [{ duration: [
1318
- B,
1608
+ isNumber,
1319
1609
  "initial",
1320
- Y,
1321
- q
1610
+ isArbitraryVariable,
1611
+ isArbitraryValue
1322
1612
  ] }],
1323
1613
  ease: [{ ease: [
1324
1614
  "linear",
1325
1615
  "initial",
1326
- g,
1327
- Y,
1328
- q
1616
+ themeEase,
1617
+ isArbitraryVariable,
1618
+ isArbitraryValue
1329
1619
  ] }],
1330
1620
  delay: [{ delay: [
1331
- B,
1332
- Y,
1333
- q
1621
+ isNumber,
1622
+ isArbitraryVariable,
1623
+ isArbitraryValue
1334
1624
  ] }],
1335
1625
  animate: [{ animate: [
1336
1626
  "none",
1337
- _,
1338
- Y,
1339
- q
1627
+ themeAnimate,
1628
+ isArbitraryVariable,
1629
+ isArbitraryValue
1340
1630
  ] }],
1341
1631
  backface: [{ backface: ["hidden", "visible"] }],
1342
1632
  perspective: [{ perspective: [
1343
- m,
1344
- Y,
1345
- q
1346
- ] }],
1347
- "perspective-origin": [{ "perspective-origin": b() }],
1348
- rotate: [{ rotate: G() }],
1349
- "rotate-x": [{ "rotate-x": G() }],
1350
- "rotate-y": [{ "rotate-y": G() }],
1351
- "rotate-z": [{ "rotate-z": G() }],
1352
- scale: [{ scale: K() }],
1353
- "scale-x": [{ "scale-x": K() }],
1354
- "scale-y": [{ "scale-y": K() }],
1355
- "scale-z": [{ "scale-z": K() }],
1633
+ themePerspective,
1634
+ isArbitraryVariable,
1635
+ isArbitraryValue
1636
+ ] }],
1637
+ "perspective-origin": [{ "perspective-origin": scalePositionWithArbitrary() }],
1638
+ rotate: [{ rotate: scaleRotate() }],
1639
+ "rotate-x": [{ "rotate-x": scaleRotate() }],
1640
+ "rotate-y": [{ "rotate-y": scaleRotate() }],
1641
+ "rotate-z": [{ "rotate-z": scaleRotate() }],
1642
+ scale: [{ scale: scaleScale() }],
1643
+ "scale-x": [{ "scale-x": scaleScale() }],
1644
+ "scale-y": [{ "scale-y": scaleScale() }],
1645
+ "scale-z": [{ "scale-z": scaleScale() }],
1356
1646
  "scale-3d": ["scale-3d"],
1357
- skew: [{ skew: Z() }],
1358
- "skew-x": [{ "skew-x": Z() }],
1359
- "skew-y": [{ "skew-y": Z() }],
1647
+ skew: [{ skew: scaleSkew() }],
1648
+ "skew-x": [{ "skew-x": scaleSkew() }],
1649
+ "skew-y": [{ "skew-y": scaleSkew() }],
1360
1650
  transform: [{ transform: [
1361
- Y,
1362
- q,
1651
+ isArbitraryVariable,
1652
+ isArbitraryValue,
1363
1653
  "",
1364
1654
  "none",
1365
1655
  "gpu",
1366
1656
  "cpu"
1367
1657
  ] }],
1368
- "transform-origin": [{ origin: b() }],
1658
+ "transform-origin": [{ origin: scalePositionWithArbitrary() }],
1369
1659
  "transform-style": [{ transform: ["3d", "flat"] }],
1370
- translate: [{ translate: Q() }],
1371
- "translate-x": [{ "translate-x": Q() }],
1372
- "translate-y": [{ "translate-y": Q() }],
1373
- "translate-z": [{ "translate-z": Q() }],
1660
+ translate: [{ translate: scaleTranslate() }],
1661
+ "translate-x": [{ "translate-x": scaleTranslate() }],
1662
+ "translate-y": [{ "translate-y": scaleTranslate() }],
1663
+ "translate-z": [{ "translate-z": scaleTranslate() }],
1374
1664
  "translate-none": ["translate-none"],
1375
- accent: [{ accent: N() }],
1665
+ accent: [{ accent: scaleColor() }],
1376
1666
  appearance: [{ appearance: ["none", "auto"] }],
1377
- "caret-color": [{ caret: N() }],
1667
+ "caret-color": [{ caret: scaleColor() }],
1378
1668
  "color-scheme": [{ scheme: [
1379
1669
  "normal",
1380
1670
  "dark",
@@ -1420,8 +1710,8 @@ var a = (e, t) => {
1420
1710
  "nwse-resize",
1421
1711
  "zoom-in",
1422
1712
  "zoom-out",
1423
- Y,
1424
- q
1713
+ isArbitraryVariable,
1714
+ isArbitraryValue
1425
1715
  ] }],
1426
1716
  "field-sizing": [{ "field-sizing": ["fixed", "content"] }],
1427
1717
  "pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -1432,28 +1722,28 @@ var a = (e, t) => {
1432
1722
  "x"
1433
1723
  ] }],
1434
1724
  "scroll-behavior": [{ scroll: ["auto", "smooth"] }],
1435
- "scroll-m": [{ "scroll-m": C() }],
1436
- "scroll-mx": [{ "scroll-mx": C() }],
1437
- "scroll-my": [{ "scroll-my": C() }],
1438
- "scroll-ms": [{ "scroll-ms": C() }],
1439
- "scroll-me": [{ "scroll-me": C() }],
1440
- "scroll-mbs": [{ "scroll-mbs": C() }],
1441
- "scroll-mbe": [{ "scroll-mbe": C() }],
1442
- "scroll-mt": [{ "scroll-mt": C() }],
1443
- "scroll-mr": [{ "scroll-mr": C() }],
1444
- "scroll-mb": [{ "scroll-mb": C() }],
1445
- "scroll-ml": [{ "scroll-ml": C() }],
1446
- "scroll-p": [{ "scroll-p": C() }],
1447
- "scroll-px": [{ "scroll-px": C() }],
1448
- "scroll-py": [{ "scroll-py": C() }],
1449
- "scroll-ps": [{ "scroll-ps": C() }],
1450
- "scroll-pe": [{ "scroll-pe": C() }],
1451
- "scroll-pbs": [{ "scroll-pbs": C() }],
1452
- "scroll-pbe": [{ "scroll-pbe": C() }],
1453
- "scroll-pt": [{ "scroll-pt": C() }],
1454
- "scroll-pr": [{ "scroll-pr": C() }],
1455
- "scroll-pb": [{ "scroll-pb": C() }],
1456
- "scroll-pl": [{ "scroll-pl": C() }],
1725
+ "scroll-m": [{ "scroll-m": scaleUnambiguousSpacing() }],
1726
+ "scroll-mx": [{ "scroll-mx": scaleUnambiguousSpacing() }],
1727
+ "scroll-my": [{ "scroll-my": scaleUnambiguousSpacing() }],
1728
+ "scroll-ms": [{ "scroll-ms": scaleUnambiguousSpacing() }],
1729
+ "scroll-me": [{ "scroll-me": scaleUnambiguousSpacing() }],
1730
+ "scroll-mbs": [{ "scroll-mbs": scaleUnambiguousSpacing() }],
1731
+ "scroll-mbe": [{ "scroll-mbe": scaleUnambiguousSpacing() }],
1732
+ "scroll-mt": [{ "scroll-mt": scaleUnambiguousSpacing() }],
1733
+ "scroll-mr": [{ "scroll-mr": scaleUnambiguousSpacing() }],
1734
+ "scroll-mb": [{ "scroll-mb": scaleUnambiguousSpacing() }],
1735
+ "scroll-ml": [{ "scroll-ml": scaleUnambiguousSpacing() }],
1736
+ "scroll-p": [{ "scroll-p": scaleUnambiguousSpacing() }],
1737
+ "scroll-px": [{ "scroll-px": scaleUnambiguousSpacing() }],
1738
+ "scroll-py": [{ "scroll-py": scaleUnambiguousSpacing() }],
1739
+ "scroll-ps": [{ "scroll-ps": scaleUnambiguousSpacing() }],
1740
+ "scroll-pe": [{ "scroll-pe": scaleUnambiguousSpacing() }],
1741
+ "scroll-pbs": [{ "scroll-pbs": scaleUnambiguousSpacing() }],
1742
+ "scroll-pbe": [{ "scroll-pbe": scaleUnambiguousSpacing() }],
1743
+ "scroll-pt": [{ "scroll-pt": scaleUnambiguousSpacing() }],
1744
+ "scroll-pr": [{ "scroll-pr": scaleUnambiguousSpacing() }],
1745
+ "scroll-pb": [{ "scroll-pb": scaleUnambiguousSpacing() }],
1746
+ "scroll-pl": [{ "scroll-pl": scaleUnambiguousSpacing() }],
1457
1747
  "snap-align": [{ snap: [
1458
1748
  "start",
1459
1749
  "end",
@@ -1495,17 +1785,17 @@ var a = (e, t) => {
1495
1785
  "scroll",
1496
1786
  "contents",
1497
1787
  "transform",
1498
- Y,
1499
- q
1788
+ isArbitraryVariable,
1789
+ isArbitraryValue
1500
1790
  ] }],
1501
- fill: [{ fill: ["none", ...N()] }],
1791
+ fill: [{ fill: ["none", ...scaleColor()] }],
1502
1792
  "stroke-w": [{ stroke: [
1503
- B,
1504
- X,
1505
- J,
1506
- de
1793
+ isNumber,
1794
+ isArbitraryVariableLength,
1795
+ isArbitraryLength,
1796
+ isArbitraryNumber
1507
1797
  ] }],
1508
- stroke: [{ stroke: ["none", ...N()] }],
1798
+ stroke: [{ stroke: ["none", ...scaleColor()] }],
1509
1799
  "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
1510
1800
  },
1511
1801
  conflictingClassGroups: {
@@ -1689,386 +1979,597 @@ var a = (e, t) => {
1689
1979
  "selection"
1690
1980
  ]
1691
1981
  };
1692
- });
1982
+ };
1983
+ var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
1693
1984
  //#endregion
1694
1985
  //#region src/lib/utils.ts
1695
- function Me(...e) {
1696
- return je(i(e));
1986
+ function cn(...inputs) {
1987
+ return twMerge(clsx(inputs));
1697
1988
  }
1698
1989
  //#endregion
1699
1990
  //#region node_modules/react/cjs/react-jsx-runtime.production.js
1700
- var Ne = /* @__PURE__ */ t(((e) => {
1701
- var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
1702
- function r(e, n, r) {
1703
- var i = null;
1704
- if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
1705
- else r = n;
1706
- return n = r.ref, {
1707
- $$typeof: t,
1708
- type: e,
1709
- key: i,
1710
- ref: n === void 0 ? null : n,
1711
- props: r
1991
+ /**
1992
+ * @license React
1993
+ * react-jsx-runtime.production.js
1994
+ *
1995
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1996
+ *
1997
+ * This source code is licensed under the MIT license found in the
1998
+ * LICENSE file in the root directory of this source tree.
1999
+ */
2000
+ var require_react_jsx_runtime_production = /* @__PURE__ */ __commonJSMin(((exports) => {
2001
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
2002
+ function jsxProd(type, config, maybeKey) {
2003
+ var key = null;
2004
+ void 0 !== maybeKey && (key = "" + maybeKey);
2005
+ void 0 !== config.key && (key = "" + config.key);
2006
+ if ("key" in config) {
2007
+ maybeKey = {};
2008
+ for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
2009
+ } else maybeKey = config;
2010
+ config = maybeKey.ref;
2011
+ return {
2012
+ $$typeof: REACT_ELEMENT_TYPE,
2013
+ type,
2014
+ key,
2015
+ ref: void 0 !== config ? config : null,
2016
+ props: maybeKey
1712
2017
  };
1713
2018
  }
1714
- e.Fragment = n, e.jsx = r, e.jsxs = r;
1715
- })), Pe = /* @__PURE__ */ t(((e) => {
1716
- process.env.NODE_ENV !== "production" && (function() {
1717
- function t(e) {
1718
- if (e == null) return null;
1719
- if (typeof e == "function") return e.$$typeof === ne ? null : e.displayName || e.name || null;
1720
- if (typeof e == "string") return e;
1721
- switch (e) {
1722
- case _: return "Fragment";
1723
- case y: return "Profiler";
1724
- case v: return "StrictMode";
1725
- case C: return "Suspense";
1726
- case w: return "SuspenseList";
1727
- case E: return "Activity";
2019
+ exports.Fragment = REACT_FRAGMENT_TYPE;
2020
+ exports.jsx = jsxProd;
2021
+ exports.jsxs = jsxProd;
2022
+ }));
2023
+ //#endregion
2024
+ //#region node_modules/react/cjs/react-jsx-runtime.development.js
2025
+ /**
2026
+ * @license React
2027
+ * react-jsx-runtime.development.js
2028
+ *
2029
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
2030
+ *
2031
+ * This source code is licensed under the MIT license found in the
2032
+ * LICENSE file in the root directory of this source tree.
2033
+ */
2034
+ var require_react_jsx_runtime_development = /* @__PURE__ */ __commonJSMin(((exports) => {
2035
+ "production" !== process.env.NODE_ENV && (function() {
2036
+ function getComponentNameFromType(type) {
2037
+ if (null == type) return null;
2038
+ if ("function" === typeof type) return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
2039
+ if ("string" === typeof type) return type;
2040
+ switch (type) {
2041
+ case REACT_FRAGMENT_TYPE: return "Fragment";
2042
+ case REACT_PROFILER_TYPE: return "Profiler";
2043
+ case REACT_STRICT_MODE_TYPE: return "StrictMode";
2044
+ case REACT_SUSPENSE_TYPE: return "Suspense";
2045
+ case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList";
2046
+ case REACT_ACTIVITY_TYPE: return "Activity";
1728
2047
  }
1729
- if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
1730
- case g: return "Portal";
1731
- case x: return e.displayName || "Context";
1732
- case b: return (e._context.displayName || "Context") + ".Consumer";
1733
- case S:
1734
- var n = e.render;
1735
- return e = e.displayName, e ||= (e = n.displayName || n.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
1736
- case te: return n = e.displayName || null, n === null ? t(e.type) || "Memo" : n;
1737
- case T:
1738
- n = e._payload, e = e._init;
2048
+ if ("object" === typeof type) switch ("number" === typeof type.tag && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), type.$$typeof) {
2049
+ case REACT_PORTAL_TYPE: return "Portal";
2050
+ case REACT_CONTEXT_TYPE: return type.displayName || "Context";
2051
+ case REACT_CONSUMER_TYPE: return (type._context.displayName || "Context") + ".Consumer";
2052
+ case REACT_FORWARD_REF_TYPE:
2053
+ var innerType = type.render;
2054
+ type = type.displayName;
2055
+ type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
2056
+ return type;
2057
+ case REACT_MEMO_TYPE: return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
2058
+ case REACT_LAZY_TYPE:
2059
+ innerType = type._payload;
2060
+ type = type._init;
1739
2061
  try {
1740
- return t(e(n));
1741
- } catch {}
2062
+ return getComponentNameFromType(type(innerType));
2063
+ } catch (x) {}
1742
2064
  }
1743
2065
  return null;
1744
2066
  }
1745
- function r(e) {
1746
- return "" + e;
2067
+ function testStringCoercion(value) {
2068
+ return "" + value;
1747
2069
  }
1748
- function i(e) {
2070
+ function checkKeyStringCoercion(value) {
1749
2071
  try {
1750
- r(e);
1751
- var t = !1;
1752
- } catch {
1753
- t = !0;
2072
+ testStringCoercion(value);
2073
+ var JSCompiler_inline_result = !1;
2074
+ } catch (e) {
2075
+ JSCompiler_inline_result = !0;
1754
2076
  }
1755
- if (t) {
1756
- t = console;
1757
- var n = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
1758
- return n.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), r(e);
2077
+ if (JSCompiler_inline_result) {
2078
+ JSCompiler_inline_result = console;
2079
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
2080
+ var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
2081
+ JSCompiler_temp_const.call(JSCompiler_inline_result, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", JSCompiler_inline_result$jscomp$0);
2082
+ return testStringCoercion(value);
1759
2083
  }
1760
2084
  }
1761
- function a(e) {
1762
- if (e === _) return "<>";
1763
- if (typeof e == "object" && e && e.$$typeof === T) return "<...>";
2085
+ function getTaskName(type) {
2086
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
2087
+ if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE) return "<...>";
1764
2088
  try {
1765
- var n = t(e);
1766
- return n ? "<" + n + ">" : "<...>";
1767
- } catch {
2089
+ var name = getComponentNameFromType(type);
2090
+ return name ? "<" + name + ">" : "<...>";
2091
+ } catch (x) {
1768
2092
  return "<...>";
1769
2093
  }
1770
2094
  }
1771
- function o() {
1772
- var e = D.A;
1773
- return e === null ? null : e.getOwner();
2095
+ function getOwner() {
2096
+ var dispatcher = ReactSharedInternals.A;
2097
+ return null === dispatcher ? null : dispatcher.getOwner();
1774
2098
  }
1775
- function s() {
2099
+ function UnknownOwner() {
1776
2100
  return Error("react-stack-top-frame");
1777
2101
  }
1778
- function c(e) {
1779
- if (O.call(e, "key")) {
1780
- var t = Object.getOwnPropertyDescriptor(e, "key").get;
1781
- if (t && t.isReactWarning) return !1;
2102
+ function hasValidKey(config) {
2103
+ if (hasOwnProperty.call(config, "key")) {
2104
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
2105
+ if (getter && getter.isReactWarning) return !1;
1782
2106
  }
1783
- return e.key !== void 0;
2107
+ return void 0 !== config.key;
1784
2108
  }
1785
- function l(e, t) {
1786
- function n() {
1787
- j || (j = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
2109
+ function defineKeyPropWarningGetter(props, displayName) {
2110
+ function warnAboutAccessingKey() {
2111
+ specialPropKeyWarningShown || (specialPropKeyWarningShown = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", displayName));
1788
2112
  }
1789
- n.isReactWarning = !0, Object.defineProperty(e, "key", {
1790
- get: n,
2113
+ warnAboutAccessingKey.isReactWarning = !0;
2114
+ Object.defineProperty(props, "key", {
2115
+ get: warnAboutAccessingKey,
1791
2116
  configurable: !0
1792
2117
  });
1793
2118
  }
1794
- function u() {
1795
- var e = t(this.type);
1796
- return M[e] || (M[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
2119
+ function elementRefGetterWithDeprecationWarning() {
2120
+ var componentName = getComponentNameFromType(this.type);
2121
+ didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."));
2122
+ componentName = this.props.ref;
2123
+ return void 0 !== componentName ? componentName : null;
1797
2124
  }
1798
- function ee(e, t, n, r, i, a) {
1799
- var o = n.ref;
1800
- return e = {
1801
- $$typeof: h,
1802
- type: e,
1803
- key: t,
1804
- props: n,
1805
- _owner: r
1806
- }, (o === void 0 ? null : o) === null ? Object.defineProperty(e, "ref", {
2125
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
2126
+ var refProp = props.ref;
2127
+ type = {
2128
+ $$typeof: REACT_ELEMENT_TYPE,
2129
+ type,
2130
+ key,
2131
+ props,
2132
+ _owner: owner
2133
+ };
2134
+ null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
1807
2135
  enumerable: !1,
1808
- value: null
1809
- }) : Object.defineProperty(e, "ref", {
2136
+ get: elementRefGetterWithDeprecationWarning
2137
+ }) : Object.defineProperty(type, "ref", {
1810
2138
  enumerable: !1,
1811
- get: u
1812
- }), e._store = {}, Object.defineProperty(e._store, "validated", {
2139
+ value: null
2140
+ });
2141
+ type._store = {};
2142
+ Object.defineProperty(type._store, "validated", {
1813
2143
  configurable: !1,
1814
2144
  enumerable: !1,
1815
2145
  writable: !0,
1816
2146
  value: 0
1817
- }), Object.defineProperty(e, "_debugInfo", {
2147
+ });
2148
+ Object.defineProperty(type, "_debugInfo", {
1818
2149
  configurable: !1,
1819
2150
  enumerable: !1,
1820
2151
  writable: !0,
1821
2152
  value: null
1822
- }), Object.defineProperty(e, "_debugStack", {
2153
+ });
2154
+ Object.defineProperty(type, "_debugStack", {
1823
2155
  configurable: !1,
1824
2156
  enumerable: !1,
1825
2157
  writable: !0,
1826
- value: i
1827
- }), Object.defineProperty(e, "_debugTask", {
2158
+ value: debugStack
2159
+ });
2160
+ Object.defineProperty(type, "_debugTask", {
1828
2161
  configurable: !1,
1829
2162
  enumerable: !1,
1830
2163
  writable: !0,
1831
- value: a
1832
- }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
2164
+ value: debugTask
2165
+ });
2166
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
2167
+ return type;
1833
2168
  }
1834
- function d(e, n, r, a, s, u) {
1835
- var d = n.children;
1836
- if (d !== void 0) if (a) if (k(d)) {
1837
- for (a = 0; a < d.length; a++) f(d[a]);
1838
- Object.freeze && Object.freeze(d);
2169
+ function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
2170
+ var children = config.children;
2171
+ if (void 0 !== children) if (isStaticChildren) if (isArrayImpl(children)) {
2172
+ for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++) validateChildKeys(children[isStaticChildren]);
2173
+ Object.freeze && Object.freeze(children);
1839
2174
  } else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1840
- else f(d);
1841
- if (O.call(n, "key")) {
1842
- d = t(e);
1843
- var p = Object.keys(n).filter(function(e) {
1844
- return e !== "key";
2175
+ else validateChildKeys(children);
2176
+ if (hasOwnProperty.call(config, "key")) {
2177
+ children = getComponentNameFromType(type);
2178
+ var keys = Object.keys(config).filter(function(k) {
2179
+ return "key" !== k;
1845
2180
  });
1846
- a = 0 < p.length ? "{key: someKey, " + p.join(": ..., ") + ": ...}" : "{key: someKey}", F[d + a] || (p = 0 < p.length ? "{" + p.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", a, d, p, d), F[d + a] = !0);
2181
+ isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
2182
+ didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", isStaticChildren, children, keys, children), didWarnAboutKeySpread[children + isStaticChildren] = !0);
1847
2183
  }
1848
- if (d = null, r !== void 0 && (i(r), d = "" + r), c(n) && (i(n.key), d = "" + n.key), "key" in n) for (var m in r = {}, n) m !== "key" && (r[m] = n[m]);
1849
- else r = n;
1850
- return d && l(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), ee(e, d, r, o(), s, u);
2184
+ children = null;
2185
+ void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
2186
+ hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
2187
+ if ("key" in config) {
2188
+ maybeKey = {};
2189
+ for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
2190
+ } else maybeKey = config;
2191
+ children && defineKeyPropWarningGetter(maybeKey, "function" === typeof type ? type.displayName || type.name || "Unknown" : type);
2192
+ return ReactElement(type, children, maybeKey, getOwner(), debugStack, debugTask);
1851
2193
  }
1852
- function f(e) {
1853
- p(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === T && (e._payload.status === "fulfilled" ? p(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
2194
+ function validateChildKeys(node) {
2195
+ isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
1854
2196
  }
1855
- function p(e) {
1856
- return typeof e == "object" && !!e && e.$$typeof === h;
2197
+ function isValidElement(object) {
2198
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
1857
2199
  }
1858
- var m = n("react"), h = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), x = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), te = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), E = Symbol.for("react.activity"), ne = Symbol.for("react.client.reference"), D = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, O = Object.prototype.hasOwnProperty, k = Array.isArray, A = console.createTask ? console.createTask : function() {
2200
+ var React = __require("react"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
1859
2201
  return null;
1860
2202
  };
1861
- m = { react_stack_bottom_frame: function(e) {
1862
- return e();
2203
+ React = { react_stack_bottom_frame: function(callStackForError) {
2204
+ return callStackForError();
1863
2205
  } };
1864
- var j, M = {}, N = m.react_stack_bottom_frame.bind(m, s)(), P = A(a(s)), F = {};
1865
- e.Fragment = _, e.jsx = function(e, t, n) {
1866
- var r = 1e4 > D.recentlyCreatedOwnerStacks++;
1867
- return d(e, t, n, !1, r ? Error("react-stack-top-frame") : N, r ? A(a(e)) : P);
1868
- }, e.jsxs = function(e, t, n) {
1869
- var r = 1e4 > D.recentlyCreatedOwnerStacks++;
1870
- return d(e, t, n, !0, r ? Error("react-stack-top-frame") : N, r ? A(a(e)) : P);
2206
+ var specialPropKeyWarningShown;
2207
+ var didWarnAboutElementRef = {};
2208
+ var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(React, UnknownOwner)();
2209
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
2210
+ var didWarnAboutKeySpread = {};
2211
+ exports.Fragment = REACT_FRAGMENT_TYPE;
2212
+ exports.jsx = function(type, config, maybeKey) {
2213
+ var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
2214
+ return jsxDEVImpl(type, config, maybeKey, !1, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
2215
+ };
2216
+ exports.jsxs = function(type, config, maybeKey) {
2217
+ var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
2218
+ return jsxDEVImpl(type, config, maybeKey, !0, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
1871
2219
  };
1872
2220
  })();
1873
- })), $ = (/* @__PURE__ */ t(((e, t) => {
1874
- process.env.NODE_ENV === "production" ? t.exports = Ne() : t.exports = Pe();
1875
- })))(), Fe = {
2221
+ }));
2222
+ //#endregion
2223
+ //#region src/components/ui/input.tsx
2224
+ var import_jsx_runtime = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
2225
+ if (process.env.NODE_ENV === "production") module.exports = require_react_jsx_runtime_production();
2226
+ else module.exports = require_react_jsx_runtime_development();
2227
+ })))();
2228
+ var inputSizes = {
1876
2229
  sm: "h-9 px-4 text-[12px] leading-[20px]",
1877
2230
  md: "h-10 px-5 text-[14px] leading-[20px]",
1878
2231
  lg: "h-[50px] px-5 text-[16px] leading-[20px]",
1879
2232
  full: "h-[50px] w-full px-5 text-[14px] md:text-[16px] leading-[20px]"
1880
- }, Ie = e.forwardRef(({ className: t, type: n = "text", size: r = "lg", error: i, ...a }, o) => {
1881
- let [s, c] = e.useState(!1), l = n === "password";
1882
- return /* @__PURE__ */ (0, $.jsxs)("div", {
2233
+ };
2234
+ var Input = React.forwardRef(({ className, type = "text", size = "lg", error, ...props }, ref) => {
2235
+ const [showPassword, setShowPassword] = React.useState(false);
2236
+ const isPassword = type === "password";
2237
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1883
2238
  className: "w-full",
1884
- children: [/* @__PURE__ */ (0, $.jsxs)("div", {
2239
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1885
2240
  className: "relative w-full",
1886
- children: [/* @__PURE__ */ (0, $.jsx)("input", {
1887
- ref: o,
1888
- type: l && s ? "text" : n,
2241
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", {
2242
+ ref,
2243
+ type: isPassword && showPassword ? "text" : type,
1889
2244
  "data-slot": "input",
1890
- className: Me("w-full min-w-0\n rounded-[50px]\n border border-border\n bg-background\n\n font-sans\n text-inputtext\n\n overflow-hidden\n text-ellipsis\n whitespace-nowrap\n\n transition-all\n outline-none\n\n placeholder:text-inputtext/60\n\n focus-visible:border-baseblack\n focus-visible:ring-0\n focus-visible:ring-baseblack/20\n\n disabled:cursor-not-allowed\n disabled:opacity-50\n\n aria-invalid:border-destructive\n aria-invalid:ring-0\n aria-invalid:ring-destructive/20", !i && "\n border-border\n text-inputText\n focus-visible:border-inputText\n focus-visible:ring-0\n focus-visible:ring-inputText/20\n ", i && "\n border-destructive\n text-destructive\n placeholder:text-destructive/60\n focus-visible:border-destructive\n focus-visible:ring-destructive/30\n ", l && "pr-12", Fe[r], t),
1891
- ...a
1892
- }), l && /* @__PURE__ */ (0, $.jsx)("button", {
2245
+ className: cn(`w-full min-w-0
2246
+ rounded-[50px]
2247
+ border border-border
2248
+ bg-background
2249
+
2250
+ font-sans
2251
+ text-inputtext
2252
+
2253
+ overflow-hidden
2254
+ text-ellipsis
2255
+ whitespace-nowrap
2256
+
2257
+ transition-all
2258
+ outline-none
2259
+
2260
+ placeholder:text-inputtext/60
2261
+
2262
+ focus-visible:border-baseblack
2263
+ focus-visible:ring-0
2264
+ focus-visible:ring-baseblack/20
2265
+
2266
+ disabled:cursor-not-allowed
2267
+ disabled:opacity-50
2268
+
2269
+ aria-invalid:border-destructive
2270
+ aria-invalid:ring-0
2271
+ aria-invalid:ring-destructive/20`, !error && `
2272
+ border-border
2273
+ text-inputText
2274
+ focus-visible:border-inputText
2275
+ focus-visible:ring-0
2276
+ focus-visible:ring-inputText/20
2277
+ `, error && `
2278
+ border-destructive
2279
+ text-destructive
2280
+ placeholder:text-destructive/60
2281
+ focus-visible:border-destructive
2282
+ focus-visible:ring-destructive/30
2283
+ `, isPassword && "pr-12", inputSizes[size], className),
2284
+ ...props
2285
+ }), isPassword && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
1893
2286
  type: "button",
1894
- onClick: () => c(!s),
2287
+ onClick: () => setShowPassword(!showPassword),
1895
2288
  className: "\n absolute right-5 top-1/2 -translate-y-1/2\n text-muted-foreground hover:text-foreground\n ",
1896
- children: s ? /* @__PURE__ */ (0, $.jsxs)("svg", {
2289
+ children: showPassword ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
1897
2290
  xmlns: "http://www.w3.org/2000/svg",
1898
2291
  width: "24",
1899
2292
  height: "24",
1900
2293
  viewBox: "0 0 24 24",
1901
2294
  fill: "none",
1902
- children: [/* @__PURE__ */ (0, $.jsx)("path", {
2295
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
1903
2296
  d: "M2 12C2 12 5.5 5 12 5C18.5 5 22 12 22 12C22 12 18.5 19 12 19C5.5 19 2 12 2 12Z",
1904
2297
  stroke: "#B5B6B8",
1905
2298
  "stroke-width": "1.5",
1906
2299
  "stroke-linecap": "round",
1907
2300
  "stroke-linejoin": "round"
1908
- }), /* @__PURE__ */ (0, $.jsx)("circle", {
2301
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", {
1909
2302
  cx: "12",
1910
2303
  cy: "12",
1911
2304
  r: "3",
1912
2305
  stroke: "#B5B6B8",
1913
2306
  "stroke-width": "1.5"
1914
2307
  })]
1915
- }) : /* @__PURE__ */ (0, $.jsx)("svg", {
2308
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
1916
2309
  xmlns: "http://www.w3.org/2000/svg",
1917
2310
  width: "24",
1918
2311
  height: "24",
1919
2312
  viewBox: "0 0 24 24",
1920
2313
  fill: "none",
1921
- children: /* @__PURE__ */ (0, $.jsx)("path", {
2314
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
1922
2315
  d: "M5.05499 3.24563C4.98913 3.17138 4.90918 3.11095 4.81979 3.06783C4.7304 3.02471 4.63334 2.99976 4.53423 2.99443C4.43513 2.9891 4.33595 3.00349 4.24245 3.03677C4.14895 3.07005 4.06298 3.12156 3.98953 3.18831C3.91608 3.25506 3.85661 3.33572 3.81457 3.42562C3.77252 3.51552 3.74874 3.61288 3.7446 3.71204C3.74045 3.8112 3.75603 3.9102 3.79043 4.00329C3.82483 4.09639 3.87737 4.18173 3.94499 4.25438L5.74874 6.23906C2.34374 8.32875 0.879366 11.55 0.814679 11.6963C0.772035 11.7922 0.75 11.896 0.75 12.0009C0.75 12.1059 0.772035 12.2097 0.814679 12.3056C0.847491 12.3797 1.64155 14.1403 3.40687 15.9056C5.75905 18.2569 8.72999 19.5 12 19.5C13.6806 19.5096 15.3442 19.1636 16.8816 18.4847L18.9441 20.7544C19.0099 20.8286 19.0899 20.8891 19.1793 20.9322C19.2686 20.9753 19.3657 21.0002 19.4648 21.0056C19.5639 21.0109 19.6631 20.9965 19.7566 20.9632C19.8501 20.93 19.9361 20.8784 20.0095 20.8117C20.083 20.7449 20.1424 20.6643 20.1845 20.5744C20.2265 20.4845 20.2503 20.3871 20.2544 20.288C20.2586 20.1888 20.243 20.0898 20.2086 19.9967C20.1742 19.9036 20.1217 19.8183 20.0541 19.7456L5.05499 3.24563ZM9.49218 10.3556L13.3987 14.6541C12.8105 14.9636 12.136 15.0689 11.4814 14.9535C10.8268 14.8382 10.229 14.5087 9.78189 14.0168C9.33481 13.5248 9.06377 12.8984 9.01134 12.2357C8.9589 11.573 9.12803 10.9117 9.49218 10.3556ZM12 18C9.11437 18 6.59343 16.9509 4.50655 14.8828C3.64997 14.0315 2.92145 13.0605 2.34374 12C2.78343 11.1759 4.18687 8.86969 6.7828 7.37063L8.4703 9.22219C7.81699 10.0589 7.48052 11.0997 7.52036 12.1605C7.56021 13.2213 7.97379 14.2339 8.68802 15.0192C9.40225 15.8046 10.3711 16.3122 11.4234 16.4522C12.4757 16.5923 13.5436 16.3559 14.4384 15.7847L15.8194 17.3034C14.6006 17.771 13.3053 18.0072 12 18ZM12.5625 9.05344C12.3671 9.01614 12.1944 8.90274 12.0826 8.73818C11.9708 8.57361 11.9289 8.37137 11.9662 8.17594C12.0035 7.98051 12.1169 7.8079 12.2815 7.69608C12.4461 7.58426 12.6483 7.54239 12.8437 7.57969C13.7996 7.765 14.67 8.25436 15.325 8.97477C15.98 9.69518 16.3846 10.608 16.4784 11.5772C16.4969 11.7752 16.436 11.9725 16.3091 12.1257C16.1822 12.2788 15.9996 12.3752 15.8016 12.3938C15.7781 12.3951 15.7547 12.3951 15.7312 12.3938C15.5438 12.3946 15.3628 12.3251 15.224 12.1992C15.0852 12.0732 14.9986 11.8998 14.9812 11.7131C14.9181 11.0685 14.6486 10.4615 14.2128 9.98226C13.7771 9.50307 13.1982 9.17731 12.5625 9.05344ZM23.1825 12.3056C23.1431 12.3938 22.1934 14.4966 20.055 16.4119C19.9819 16.4794 19.8961 16.5317 19.8027 16.5658C19.7092 16.5998 19.6099 16.6149 19.5105 16.6102C19.4111 16.6055 19.3136 16.5811 19.2238 16.5384C19.1339 16.4956 19.0535 16.4354 18.9871 16.3613C18.9208 16.2872 18.8698 16.2006 18.8373 16.1066C18.8047 16.0125 18.7912 15.913 18.7975 15.8137C18.8037 15.7144 18.8297 15.6173 18.8739 15.5282C18.918 15.439 18.9795 15.3595 19.0547 15.2944C20.1038 14.3518 20.9851 13.2378 21.6609 12C21.0819 10.9385 20.3518 9.96683 19.4934 9.11531C17.4066 7.04906 14.8856 6 12 6C11.392 5.99926 10.7849 6.04849 10.185 6.14719C10.0874 6.16444 9.98741 6.16219 9.89073 6.14058C9.79404 6.11896 9.70259 6.07839 9.62167 6.02123C9.54074 5.96407 9.47195 5.89144 9.41925 5.80754C9.36656 5.72363 9.33101 5.63012 9.31466 5.5324C9.29832 5.43469 9.30149 5.3347 9.32401 5.23821C9.34652 5.14173 9.38793 5.05066 9.44584 4.97027C9.50375 4.88988 9.57702 4.82176 9.6614 4.76985C9.74579 4.71794 9.83963 4.68326 9.93749 4.66781C10.6192 4.55525 11.309 4.49912 12 4.5C15.27 4.5 18.2409 5.74313 20.5931 8.09531C22.3584 9.86063 23.1525 11.6222 23.1853 11.6963C23.2279 11.7922 23.25 11.896 23.25 12.0009C23.25 12.1059 23.2279 12.2097 23.1853 12.3056H23.1825Z",
1923
2316
  fill: "#B5B6B8"
1924
2317
  })
1925
2318
  })
1926
2319
  })]
1927
- }), i && /* @__PURE__ */ (0, $.jsx)("p", {
2320
+ }), error && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
1928
2321
  className: "mt-1 px-3 text-[12px] leading-[16px] text-destructive font-sans",
1929
- children: i
2322
+ children: error
1930
2323
  })]
1931
2324
  });
1932
2325
  });
1933
- Ie.displayName = "Input";
2326
+ Input.displayName = "Input";
1934
2327
  //#endregion
1935
2328
  //#region node_modules/class-variance-authority/dist/index.mjs
1936
- var Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Re = i, ze = (e, t) => (n) => {
1937
- if (t?.variants == null) return Re(e, n?.class, n?.className);
1938
- let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
1939
- let t = n?.[e], a = i?.[e];
1940
- if (t === null) return null;
1941
- let o = Le(t) || Le(a);
1942
- return r[e][o];
1943
- }), o = n && Object.entries(n).reduce((e, t) => {
1944
- let [n, r] = t;
1945
- return r === void 0 || (e[n] = r), e;
2329
+ /**
2330
+ * Copyright 2022 Joe Bell. All rights reserved.
2331
+ *
2332
+ * This file is licensed to you under the Apache License, Version 2.0
2333
+ * (the "License"); you may not use this file except in compliance with the
2334
+ * License. You may obtain a copy of the License at
2335
+ *
2336
+ * http://www.apache.org/licenses/LICENSE-2.0
2337
+ *
2338
+ * Unless required by applicable law or agreed to in writing, software
2339
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
2340
+ * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the
2341
+ * License for the specific language governing permissions and limitations under
2342
+ * the License.
2343
+ */ var falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
2344
+ var cx = clsx;
2345
+ var cva = (base, config) => (props) => {
2346
+ var _config_compoundVariants;
2347
+ if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
2348
+ const { variants, defaultVariants } = config;
2349
+ const getVariantClassNames = Object.keys(variants).map((variant) => {
2350
+ const variantProp = props === null || props === void 0 ? void 0 : props[variant];
2351
+ const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
2352
+ if (variantProp === null) return null;
2353
+ const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
2354
+ return variants[variant][variantKey];
2355
+ });
2356
+ const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
2357
+ let [key, value] = param;
2358
+ if (value === void 0) return acc;
2359
+ acc[key] = value;
2360
+ return acc;
1946
2361
  }, {});
1947
- return Re(e, a, t?.compoundVariants?.reduce((e, t) => {
1948
- let { class: n, className: r, ...a } = t;
1949
- return Object.entries(a).every((e) => {
1950
- let [t, n] = e;
1951
- return Array.isArray(n) ? n.includes({
1952
- ...i,
1953
- ...o
1954
- }[t]) : {
1955
- ...i,
1956
- ...o
1957
- }[t] === n;
2362
+ return cx(base, getVariantClassNames, config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
2363
+ let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
2364
+ return Object.entries(compoundVariantOptions).every((param) => {
2365
+ let [key, value] = param;
2366
+ return Array.isArray(value) ? value.includes({
2367
+ ...defaultVariants,
2368
+ ...propsWithoutUndefined
2369
+ }[key]) : {
2370
+ ...defaultVariants,
2371
+ ...propsWithoutUndefined
2372
+ }[key] === value;
1958
2373
  }) ? [
1959
- ...e,
1960
- n,
1961
- r
1962
- ] : e;
1963
- }, []), n?.class, n?.className);
2374
+ ...acc,
2375
+ cvClass,
2376
+ cvClassName
2377
+ ] : acc;
2378
+ }, []), props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
1964
2379
  };
1965
2380
  //#endregion
1966
2381
  //#region node_modules/@radix-ui/react-compose-refs/dist/index.mjs
1967
- function Be(e, t) {
1968
- if (typeof e == "function") return e(t);
1969
- e != null && (e.current = t);
2382
+ function setRef(ref, value) {
2383
+ if (typeof ref === "function") return ref(value);
2384
+ else if (ref !== null && ref !== void 0) ref.current = value;
1970
2385
  }
1971
- function Ve(...e) {
1972
- return (t) => {
1973
- let n = !1, r = e.map((e) => {
1974
- let r = Be(e, t);
1975
- return !n && typeof r == "function" && (n = !0), r;
2386
+ function composeRefs(...refs) {
2387
+ return (node) => {
2388
+ let hasCleanup = false;
2389
+ const cleanups = refs.map((ref) => {
2390
+ const cleanup = setRef(ref, node);
2391
+ if (!hasCleanup && typeof cleanup == "function") hasCleanup = true;
2392
+ return cleanup;
1976
2393
  });
1977
- if (n) return () => {
1978
- for (let t = 0; t < r.length; t++) {
1979
- let n = r[t];
1980
- typeof n == "function" ? n() : Be(e[t], null);
2394
+ if (hasCleanup) return () => {
2395
+ for (let i = 0; i < cleanups.length; i++) {
2396
+ const cleanup = cleanups[i];
2397
+ if (typeof cleanup == "function") cleanup();
2398
+ else setRef(refs[i], null);
1981
2399
  }
1982
2400
  };
1983
2401
  };
1984
2402
  }
1985
2403
  //#endregion
1986
2404
  //#region node_modules/@radix-ui/react-slot/dist/index.mjs
1987
- var He = Symbol.for("react.lazy"), Ue = e.use;
1988
- function We(e) {
1989
- return typeof e == "object" && !!e && "then" in e;
2405
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
2406
+ var use = React[" use ".trim().toString()];
2407
+ function isPromiseLike(value) {
2408
+ return typeof value === "object" && value !== null && "then" in value;
1990
2409
  }
1991
- function Ge(e) {
1992
- return typeof e == "object" && !!e && "$$typeof" in e && e.$$typeof === He && "_payload" in e && We(e._payload);
2410
+ function isLazyComponent(element) {
2411
+ return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
1993
2412
  }
1994
2413
  /* @__NO_SIDE_EFFECTS__ */
1995
- function Ke(t) {
1996
- let n = /* @__PURE__ */ Je(t), r = e.forwardRef((t, r) => {
1997
- let { children: i, ...a } = t;
1998
- Ge(i) && typeof Ue == "function" && (i = Ue(i._payload));
1999
- let o = e.Children.toArray(i), s = o.find(Xe);
2000
- if (s) {
2001
- let t = s.props.children, i = o.map((n) => n === s ? e.Children.count(t) > 1 ? e.Children.only(null) : e.isValidElement(t) ? t.props.children : null : n);
2002
- return /* @__PURE__ */ (0, $.jsx)(n, {
2003
- ...a,
2004
- ref: r,
2005
- children: e.isValidElement(t) ? e.cloneElement(t, void 0, i) : null
2414
+ function createSlot(ownerName) {
2415
+ const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
2416
+ const Slot2 = React.forwardRef((props, forwardedRef) => {
2417
+ let { children, ...slotProps } = props;
2418
+ if (isLazyComponent(children) && typeof use === "function") children = use(children._payload);
2419
+ const childrenArray = React.Children.toArray(children);
2420
+ const slottable = childrenArray.find(isSlottable);
2421
+ if (slottable) {
2422
+ const newElement = slottable.props.children;
2423
+ const newChildren = childrenArray.map((child) => {
2424
+ if (child === slottable) {
2425
+ if (React.Children.count(newElement) > 1) return React.Children.only(null);
2426
+ return React.isValidElement(newElement) ? newElement.props.children : null;
2427
+ } else return child;
2428
+ });
2429
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlotClone, {
2430
+ ...slotProps,
2431
+ ref: forwardedRef,
2432
+ children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null
2006
2433
  });
2007
2434
  }
2008
- return /* @__PURE__ */ (0, $.jsx)(n, {
2009
- ...a,
2010
- ref: r,
2011
- children: i
2435
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlotClone, {
2436
+ ...slotProps,
2437
+ ref: forwardedRef,
2438
+ children
2012
2439
  });
2013
2440
  });
2014
- return r.displayName = `${t}.Slot`, r;
2441
+ Slot2.displayName = `${ownerName}.Slot`;
2442
+ return Slot2;
2015
2443
  }
2016
- var qe = /* @__PURE__ */ Ke("Slot");
2444
+ var Slot = /* @__PURE__ */ createSlot("Slot");
2017
2445
  /* @__NO_SIDE_EFFECTS__ */
2018
- function Je(t) {
2019
- let n = e.forwardRef((t, n) => {
2020
- let { children: r, ...i } = t;
2021
- if (Ge(r) && typeof Ue == "function" && (r = Ue(r._payload)), e.isValidElement(r)) {
2022
- let t = Qe(r), a = Ze(i, r.props);
2023
- return r.type !== e.Fragment && (a.ref = n ? Ve(n, t) : t), e.cloneElement(r, a);
2446
+ function createSlotClone(ownerName) {
2447
+ const SlotClone = React.forwardRef((props, forwardedRef) => {
2448
+ let { children, ...slotProps } = props;
2449
+ if (isLazyComponent(children) && typeof use === "function") children = use(children._payload);
2450
+ if (React.isValidElement(children)) {
2451
+ const childrenRef = getElementRef(children);
2452
+ const props2 = mergeProps(slotProps, children.props);
2453
+ if (children.type !== React.Fragment) props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
2454
+ return React.cloneElement(children, props2);
2024
2455
  }
2025
- return e.Children.count(r) > 1 ? e.Children.only(null) : null;
2456
+ return React.Children.count(children) > 1 ? React.Children.only(null) : null;
2026
2457
  });
2027
- return n.displayName = `${t}.SlotClone`, n;
2458
+ SlotClone.displayName = `${ownerName}.SlotClone`;
2459
+ return SlotClone;
2028
2460
  }
2029
- var Ye = Symbol("radix.slottable");
2030
- function Xe(t) {
2031
- return e.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === Ye;
2461
+ var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
2462
+ function isSlottable(child) {
2463
+ return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
2032
2464
  }
2033
- function Ze(e, t) {
2034
- let n = { ...t };
2035
- for (let r in t) {
2036
- let i = e[r], a = t[r];
2037
- /^on[A-Z]/.test(r) ? i && a ? n[r] = (...e) => {
2038
- let t = a(...e);
2039
- return i(...e), t;
2040
- } : i && (n[r] = i) : r === "style" ? n[r] = {
2041
- ...i,
2042
- ...a
2043
- } : r === "className" && (n[r] = [i, a].filter(Boolean).join(" "));
2465
+ function mergeProps(slotProps, childProps) {
2466
+ const overrideProps = { ...childProps };
2467
+ for (const propName in childProps) {
2468
+ const slotPropValue = slotProps[propName];
2469
+ const childPropValue = childProps[propName];
2470
+ if (/^on[A-Z]/.test(propName)) {
2471
+ if (slotPropValue && childPropValue) overrideProps[propName] = (...args) => {
2472
+ const result = childPropValue(...args);
2473
+ slotPropValue(...args);
2474
+ return result;
2475
+ };
2476
+ else if (slotPropValue) overrideProps[propName] = slotPropValue;
2477
+ } else if (propName === "style") overrideProps[propName] = {
2478
+ ...slotPropValue,
2479
+ ...childPropValue
2480
+ };
2481
+ else if (propName === "className") overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
2044
2482
  }
2045
2483
  return {
2046
- ...e,
2047
- ...n
2484
+ ...slotProps,
2485
+ ...overrideProps
2048
2486
  };
2049
2487
  }
2050
- function Qe(e) {
2051
- let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
2052
- return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
2488
+ function getElementRef(element) {
2489
+ let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
2490
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
2491
+ if (mayWarn) return element.ref;
2492
+ getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
2493
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
2494
+ if (mayWarn) return element.props.ref;
2495
+ return element.props.ref || element.ref;
2053
2496
  }
2054
2497
  //#endregion
2055
2498
  //#region src/components/ui/button.tsx
2056
- var $e = ze("flex items-center justify-center border border-transparent font-medium transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50", {
2499
+ var buttonVariants = cva("flex items-center justify-center border border-transparent font-medium transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50", {
2057
2500
  variants: {
2058
2501
  variant: {
2059
- primary: "\n bg-primary\n text-primary-foreground\n hover:bg-primary/90\n rounded-[48px]\n ",
2060
- secondary: "\n bg-gradient-to-r\n from-[#FBA022]\n to-[#157C70]\n text-white\n hover:opacity-90\n rounded-[48px]\n ",
2502
+ primary: `
2503
+ bg-primary
2504
+ text-primary-foreground
2505
+ hover:bg-primary/90
2506
+ rounded-[48px]
2507
+ `,
2508
+ secondary: `
2509
+ bg-gradient-to-r
2510
+ from-[#FBA022]
2511
+ to-[#157C70]
2512
+ text-white
2513
+ hover:opacity-90
2514
+ rounded-[48px]
2515
+ `,
2061
2516
  outline: "border-border bg-background hover:bg-muted rounded-[48px]",
2062
- outlinePrimary: "\n bg-transparent\n border-2\n border-primary\n text-primary\n rounded-[48px]\n hover:bg-primary/20\n ",
2063
- outlineSecondary: "\n bg-transparent\n border-2\n border-[hsl(var(--outlinesecondary))]\n text-[hsl(var(--outlinesecondary))]\n rounded-[48px]\n hover:bg-[hsl(var(--outlinesecondary))]/20\n ",
2064
- outlineWhite: "\n bg-transparent\n border-2\n border-[hsl(var(--basewhite))]\n text-[hsl(var(--basewhite))]\n rounded-[48px]\n hover:bg-[hsl(var(--baseWhite))]/20\n "
2517
+ outlinePrimary: `
2518
+ bg-transparent
2519
+ border-2
2520
+ border-primary
2521
+ text-primary
2522
+ rounded-[48px]
2523
+ hover:bg-primary/20
2524
+ `,
2525
+ outlineSecondary: `
2526
+ bg-transparent
2527
+ border-2
2528
+ border-[hsl(var(--outlinesecondary))]
2529
+ text-[hsl(var(--outlinesecondary))]
2530
+ rounded-[48px]
2531
+ hover:bg-[hsl(var(--outlinesecondary))]/20
2532
+ `,
2533
+ outlineWhite: `
2534
+ bg-transparent
2535
+ border-2
2536
+ border-[hsl(var(--basewhite))]
2537
+ text-[hsl(var(--basewhite))]
2538
+ rounded-[48px]
2539
+ hover:bg-[hsl(var(--baseWhite))]/20
2540
+ `
2065
2541
  },
2066
2542
  size: {
2067
2543
  sm: "h-9 px-4 text-sm",
2068
2544
  md: "h-10 px-6 text-base",
2069
- lg: "\n h-[40px]\n w-[350px]\n px-[32px]\n gap-[10px]\n text-base\n rounded-[48px]\n ",
2070
- xl: "\n h-[50px]\n w-[350px]\n px-[40px]\n gap-[10px]\n text-base\n rounded-[48px]\n ",
2071
- full: "\n h-full\n max-h-[50px]\n min-h-[30px]\n w-full\n max-w-[500px]\n min-w-[200px]\n px-[40px]\n gap-[10px]\n text-base\n rounded-[48px]\n "
2545
+ lg: `
2546
+ h-[40px]
2547
+ w-[350px]
2548
+ px-[32px]
2549
+ gap-[10px]
2550
+ text-base
2551
+ rounded-[48px]
2552
+ `,
2553
+ xl: `
2554
+ h-[50px]
2555
+ w-[350px]
2556
+ px-[40px]
2557
+ gap-[10px]
2558
+ text-base
2559
+ rounded-[48px]
2560
+ `,
2561
+ full: `
2562
+ h-full
2563
+ max-h-[50px]
2564
+ min-h-[30px]
2565
+ w-full
2566
+ max-w-[500px]
2567
+ min-w-[200px]
2568
+ px-[40px]
2569
+ gap-[10px]
2570
+ text-base
2571
+ rounded-[48px]
2572
+ `
2072
2573
  }
2073
2574
  },
2074
2575
  defaultVariants: {
@@ -2076,35 +2577,61 @@ var $e = ze("flex items-center justify-center border border-transparent font-med
2076
2577
  size: "md"
2077
2578
  }
2078
2579
  });
2079
- function et({ className: e, variant: t, size: n, asChild: r = !1, ...i }) {
2080
- return /* @__PURE__ */ (0, $.jsx)(r ? qe : "button", {
2081
- className: Me($e({
2082
- variant: t,
2083
- size: n
2084
- }), e),
2085
- ...i
2580
+ function Button({ className, variant, size, asChild = false, ...props }) {
2581
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(asChild ? Slot : "button", {
2582
+ className: cn(buttonVariants({
2583
+ variant,
2584
+ size
2585
+ }), className),
2586
+ ...props
2086
2587
  });
2087
2588
  }
2088
2589
  //#endregion
2089
2590
  //#region src/components/ui/backButton.tsx
2090
- var tt = {
2591
+ var sizes = {
2091
2592
  ch: "text-[14px] gap-1 [&_svg]:w-4 [&_svg]:h-4",
2092
2593
  md: "text-[16px] gap-2 [&_svg]:w-5 [&_svg]:h-5",
2093
2594
  lg: "text-[18px] gap-2.5 [&_svg]:w-6 [&_svg]:h-6"
2094
- }, nt = e.forwardRef(({ className: e, size: t = "lg", children: n = "Regresar", ...r }, i) => /* @__PURE__ */ (0, $.jsxs)("button", {
2095
- ref: i,
2096
- className: Me("\n inline-flex \n items-center\n bg-transparent\n\n font-sans\n font-medium\n\n text-basewhite\n\n text-center \n leading-none\n\n cursor-pointer \n hover:underline \n\n transition-all\n outline-none\n\n active:opacity-70\n\n disabled:opacity-50\n disabled:cursor-not-allowed\n ", tt[t], e),
2097
- ...r,
2098
- children: [/* @__PURE__ */ (0, $.jsx)("svg", {
2099
- xmlns: "http://www.w3.org/2000/svg",
2100
- viewBox: "0 0 24 24",
2101
- fill: "none",
2102
- children: /* @__PURE__ */ (0, $.jsx)("path", {
2103
- d: "M21.0001 11.9999C21.0001 12.1988 20.9211 12.3896 20.7804 12.5303C20.6398 12.6709 20.449 12.7499 20.2501 12.7499H5.56041L11.0307 18.2193C11.1004 18.289 11.1557 18.3717 11.1934 18.4628C11.2311 18.5538 11.2505 18.6514 11.2505 18.7499C11.2505 18.8485 11.2311 18.9461 11.1934 19.0371C11.1557 19.1281 11.1004 19.2109 11.0307 19.2806C10.961 19.3502 10.8783 19.4055 10.7873 19.4432C10.6962 19.4809 10.5986 19.5003 10.5001 19.5003C10.4016 19.5003 10.304 19.4809 10.2129 19.4432C10.1219 19.4055 10.0392 19.3502 9.96948 19.2806L3.21948 12.5306C3.14974 12.4609 3.09443 12.3782 3.05668 12.2871C3.01894 12.1961 2.99951 12.0985 2.99951 11.9999C2.99951 11.9014 3.01894 11.8038 3.05668 11.7127C3.09443 11.6217 3.14974 11.539 3.21948 11.4693L9.96948 4.7193C10.1102 4.57857 10.3011 4.49951 10.5001 4.49951C10.6991 4.49951 10.89 4.57857 11.0307 4.7193C11.1715 4.86003 11.2505 5.05091 11.2505 5.24993C11.2505 5.44895 11.1715 5.63982 11.0307 5.78055L5.56041 11.2499H20.2501C20.449 11.2499 20.6398 11.3289 20.7804 11.4696C20.9211 11.6103 21.0001 11.801 21.0001 11.9999Z",
2104
- fill: "currentColor"
2105
- })
2106
- }), /* @__PURE__ */ (0, $.jsx)("span", { children: n })]
2107
- }));
2108
- nt.displayName = "BackButton";
2595
+ };
2596
+ var BackButton = React.forwardRef(({ className, size = "lg", children = "Regresar", ...props }, ref) => {
2597
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("button", {
2598
+ ref,
2599
+ className: cn(`
2600
+ inline-flex
2601
+ items-center
2602
+ bg-transparent
2603
+
2604
+ font-sans
2605
+ font-medium
2606
+
2607
+ text-basewhite
2608
+
2609
+ text-center
2610
+ leading-none
2611
+
2612
+ cursor-pointer
2613
+ hover:underline
2614
+
2615
+ transition-all
2616
+ outline-none
2617
+
2618
+ active:opacity-70
2619
+
2620
+ disabled:opacity-50
2621
+ disabled:cursor-not-allowed
2622
+ `, sizes[size], className),
2623
+ ...props,
2624
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
2625
+ xmlns: "http://www.w3.org/2000/svg",
2626
+ viewBox: "0 0 24 24",
2627
+ fill: "none",
2628
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
2629
+ d: "M21.0001 11.9999C21.0001 12.1988 20.9211 12.3896 20.7804 12.5303C20.6398 12.6709 20.449 12.7499 20.2501 12.7499H5.56041L11.0307 18.2193C11.1004 18.289 11.1557 18.3717 11.1934 18.4628C11.2311 18.5538 11.2505 18.6514 11.2505 18.7499C11.2505 18.8485 11.2311 18.9461 11.1934 19.0371C11.1557 19.1281 11.1004 19.2109 11.0307 19.2806C10.961 19.3502 10.8783 19.4055 10.7873 19.4432C10.6962 19.4809 10.5986 19.5003 10.5001 19.5003C10.4016 19.5003 10.304 19.4809 10.2129 19.4432C10.1219 19.4055 10.0392 19.3502 9.96948 19.2806L3.21948 12.5306C3.14974 12.4609 3.09443 12.3782 3.05668 12.2871C3.01894 12.1961 2.99951 12.0985 2.99951 11.9999C2.99951 11.9014 3.01894 11.8038 3.05668 11.7127C3.09443 11.6217 3.14974 11.539 3.21948 11.4693L9.96948 4.7193C10.1102 4.57857 10.3011 4.49951 10.5001 4.49951C10.6991 4.49951 10.89 4.57857 11.0307 4.7193C11.1715 4.86003 11.2505 5.05091 11.2505 5.24993C11.2505 5.44895 11.1715 5.63982 11.0307 5.78055L5.56041 11.2499H20.2501C20.449 11.2499 20.6398 11.3289 20.7804 11.4696C20.9211 11.6103 21.0001 11.801 21.0001 11.9999Z",
2630
+ fill: "currentColor"
2631
+ })
2632
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children })]
2633
+ });
2634
+ });
2635
+ BackButton.displayName = "BackButton";
2109
2636
  //#endregion
2110
- export { nt as BackButton, et as Button, Ie as Input };
2637
+ export { BackButton, Button, Input };