tekivex-ui 2.5.10 → 2.5.12

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 (60) hide show
  1. package/dist/TkxForm-1KDzoniV.cjs +12 -0
  2. package/dist/TkxForm-9-W3Nl6m.js +314 -0
  3. package/dist/charts.cjs +1 -1
  4. package/dist/charts.js +543 -507
  5. package/dist/chunk-Bmb41Sf3.cjs +1 -0
  6. package/dist/headless.cjs +1 -1
  7. package/dist/headless.js +428 -447
  8. package/dist/hooks-6pRsPOyG.js +58 -0
  9. package/dist/hooks-mivgRljH.cjs +1 -0
  10. package/dist/i18n.cjs +1 -1
  11. package/dist/i18n.js +728 -752
  12. package/dist/index.cjs +46 -23
  13. package/dist/index.d.ts +6 -0
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +16103 -16237
  16. package/dist/quantum.cjs +14 -16
  17. package/dist/quantum.js +2473 -2279
  18. package/dist/realtime.cjs +4 -10
  19. package/dist/realtime.js +804 -958
  20. package/dist/src/components/TkxAIChatBubble.d.ts +24 -0
  21. package/dist/src/components/TkxAIChatBubble.d.ts.map +1 -0
  22. package/dist/src/components/TkxAIConfidenceBar.d.ts +17 -0
  23. package/dist/src/components/TkxAIConfidenceBar.d.ts.map +1 -0
  24. package/dist/src/components/TkxAIThinking.d.ts +17 -0
  25. package/dist/src/components/TkxAIThinking.d.ts.map +1 -0
  26. package/dist/src/components/TkxClock.d.ts.map +1 -1
  27. package/dist/src/components/TkxForm.d.ts.map +1 -1
  28. package/dist/src/components/TkxLiveFeed.d.ts +1 -1
  29. package/dist/src/components/TkxLiveLog.d.ts +1 -1
  30. package/dist/src/components/TkxRealTimeChart.d.ts +1 -1
  31. package/dist/src/components/TkxTooltip.d.ts.map +1 -1
  32. package/dist/src/components/TkxTypography.d.ts +5 -5
  33. package/dist/src/components/TkxTypography.d.ts.map +1 -1
  34. package/dist/src/components/index.d.ts +3 -0
  35. package/dist/src/components/index.d.ts.map +1 -1
  36. package/dist/tekivex-ui.css +2 -0
  37. package/dist/themes-BbJanqiC.js +498 -0
  38. package/dist/themes-CMq2vWXj.cjs +2 -0
  39. package/dist/tkx-0oAwZqgL.cjs +4 -0
  40. package/dist/tkx-DQkvHdE5.js +1172 -0
  41. package/package.json +16 -16
  42. package/src/components/TkxAIChatBubble.tsx +209 -0
  43. package/src/components/TkxAIConfidenceBar.tsx +131 -0
  44. package/src/components/TkxAIThinking.tsx +191 -0
  45. package/src/components/TkxClock.tsx +2 -2
  46. package/src/components/TkxForm.tsx +4 -2
  47. package/src/components/TkxTooltip.tsx +7 -5
  48. package/src/components/TkxTypography.tsx +2 -2
  49. package/src/components/index.ts +5 -0
  50. package/dist/TkxForm-2tGLCPH6.js +0 -326
  51. package/dist/TkxForm-C2VqR2wC.cjs +0 -12
  52. package/dist/index-BgHMZe4Z.js +0 -66
  53. package/dist/index-Bt5y50Qa.cjs +0 -1
  54. package/dist/index-DnqXtpwV.cjs +0 -2
  55. package/dist/index-iUUHRxqJ.js +0 -515
  56. package/dist/security-C-ZPGoyG.js +0 -97
  57. package/dist/security-Uf0mjv8o.cjs +0 -1
  58. package/dist/style.css +0 -1
  59. package/dist/tkx-BtHzWKTl.js +0 -1112
  60. package/dist/tkx-C7GvVUE9.cjs +0 -4
@@ -0,0 +1,1172 @@
1
+ import { I as e } from "./themes-BbJanqiC.js";
2
+ //#region src/engine/security.ts
3
+ var t = {
4
+ "<": "&lt;",
5
+ ">": "&gt;",
6
+ "&": "&amp;",
7
+ "'": "&#39;",
8
+ "\"": "&quot;"
9
+ };
10
+ function n(e) {
11
+ return String(e).replace(/[<>&'"]/g, (e) => t[e] ?? e);
12
+ }
13
+ function r(e) {
14
+ let t = {};
15
+ for (let n of Object.keys(e)) t[n] = i(e[n]);
16
+ return t;
17
+ }
18
+ function i(e) {
19
+ return typeof e == "string" ? n(e) : Array.isArray(e) ? e.map(i) : typeof e == "object" && e && !a(e) ? r(e) : e;
20
+ }
21
+ function a(e) {
22
+ return typeof e == "object" && !!e && "$$typeof" in e;
23
+ }
24
+ function o(e, t) {
25
+ let n = [];
26
+ for (let [r, i] of Object.entries(t)) {
27
+ let t = e[r], a = t == null;
28
+ if (i.required && a) {
29
+ n.push(`prop '${r}' is required`);
30
+ continue;
31
+ }
32
+ if (!a) {
33
+ if (typeof t !== i.type) {
34
+ n.push(`prop '${r}' must be of type ${i.type}, got ${typeof t}`);
35
+ continue;
36
+ }
37
+ i.type === "number" && typeof t == "number" && (i.min !== void 0 && t < i.min && n.push(`prop '${r}' must be >= ${i.min}`), i.max !== void 0 && t > i.max && n.push(`prop '${r}' must be <= ${i.max}`)), i.type === "string" && typeof t == "string" && i.pattern && !i.pattern.test(t) && n.push(`prop '${r}' does not match pattern ${i.pattern}`), i.enum && !i.enum.includes(t) && n.push(`prop '${r}' must be one of: ${i.enum.join(", ")}`);
38
+ }
39
+ }
40
+ return {
41
+ valid: n.length === 0,
42
+ errors: n
43
+ };
44
+ }
45
+ var s = /* @__PURE__ */ new Map();
46
+ function c(e, t) {
47
+ let n = {
48
+ componentId: e,
49
+ permissions: t,
50
+ directives: {
51
+ "default-src": ["'self'"],
52
+ "style-src": t.allowInlineStyles ? ["'self'", "'unsafe-inline'"] : ["'self'"],
53
+ "img-src": t.allowDataUrls ? ["'self'", "data:"] : t.allowExternalSrc ? ["'self'", "*"] : ["'self'"],
54
+ "script-src": t.allowScripts ? ["'self'"] : ["'none'"]
55
+ }
56
+ };
57
+ return s.set(e, n), n;
58
+ }
59
+ function l(e, t) {
60
+ return s.get(e)?.permissions[t] === !0;
61
+ }
62
+ var u = [];
63
+ function d(t, n, r) {
64
+ let i = e(JSON.stringify(r ?? {})), a = e((u.length > 0 ? u[u.length - 1].chainHash : "00000000") + i + n + t), o = Object.freeze({
65
+ timestamp: Date.now(),
66
+ component: n,
67
+ action: t,
68
+ propsHash: i,
69
+ chainHash: a
70
+ });
71
+ return u = Object.freeze([...u, o]), o;
72
+ }
73
+ function f(e) {
74
+ let t = u;
75
+ return e?.component && (t = t.filter((t) => t.component === e.component)), e?.action && (t = t.filter((t) => t.action === e.action)), e?.limit && (t = t.slice(-e.limit)), t;
76
+ }
77
+ function p() {
78
+ let t = "00000000";
79
+ for (let n of u) {
80
+ if (e(t + n.propsHash + n.component + n.action) !== n.chainHash) return !1;
81
+ t = n.chainHash;
82
+ }
83
+ return !0;
84
+ }
85
+ var m = {
86
+ sanitize: n,
87
+ sanitizeProps: r,
88
+ validateProps: o,
89
+ createCSP: c,
90
+ hasPermission: l,
91
+ audit: d,
92
+ getAuditLog: f,
93
+ verifyAuditIntegrity: p
94
+ }, h = {
95
+ 0: "0",
96
+ px: "1px",
97
+ "0.5": "2px",
98
+ 1: "4px",
99
+ "1.5": "6px",
100
+ 2: "8px",
101
+ "2.5": "10px",
102
+ 3: "12px",
103
+ "3.5": "14px",
104
+ 4: "16px",
105
+ 5: "20px",
106
+ 6: "24px",
107
+ 7: "28px",
108
+ 8: "32px",
109
+ 9: "36px",
110
+ 10: "40px",
111
+ 11: "44px",
112
+ 12: "48px",
113
+ 14: "56px",
114
+ 16: "64px",
115
+ 20: "80px",
116
+ 24: "96px",
117
+ 28: "112px",
118
+ 32: "128px",
119
+ 36: "144px",
120
+ 40: "160px",
121
+ 44: "176px",
122
+ 48: "192px",
123
+ 52: "208px",
124
+ 56: "224px",
125
+ 60: "240px",
126
+ 64: "256px",
127
+ 72: "288px",
128
+ 80: "320px",
129
+ 96: "384px",
130
+ auto: "auto",
131
+ full: "100%",
132
+ screen: "100vw",
133
+ svh: "100svh",
134
+ dvh: "100dvh",
135
+ fit: "fit-content",
136
+ max: "max-content",
137
+ min: "min-content"
138
+ }, g = {
139
+ ...h,
140
+ screen: "100vh"
141
+ }, _ = {
142
+ "1/2": "50%",
143
+ "1/3": "33.333333%",
144
+ "2/3": "66.666667%",
145
+ "1/4": "25%",
146
+ "2/4": "50%",
147
+ "3/4": "75%",
148
+ "1/5": "20%",
149
+ "2/5": "40%",
150
+ "3/5": "60%",
151
+ "4/5": "80%",
152
+ "1/6": "16.666667%",
153
+ "5/6": "83.333333%",
154
+ "1/12": "8.333333%",
155
+ "5/12": "41.666667%",
156
+ "7/12": "58.333333%",
157
+ "11/12": "91.666667%"
158
+ }, v = {
159
+ none: "0",
160
+ sm: "2px",
161
+ "": "4px",
162
+ md: "6px",
163
+ lg: "8px",
164
+ xl: "12px",
165
+ "2xl": "16px",
166
+ "3xl": "24px",
167
+ full: "9999px"
168
+ }, y = {
169
+ sm: "0 1px 2px 0 rgba(0,0,0,.05)",
170
+ "": "0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1)",
171
+ md: "0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1)",
172
+ lg: "0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1)",
173
+ xl: "0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1)",
174
+ "2xl": "0 25px 50px -12px rgba(0,0,0,.25)",
175
+ inner: "inset 0 2px 4px 0 rgba(0,0,0,.05)",
176
+ none: "none"
177
+ }, b = {
178
+ xs: ["0.75rem", "1rem"],
179
+ sm: ["0.875rem", "1.25rem"],
180
+ base: ["1rem", "1.5rem"],
181
+ lg: ["1.125rem", "1.75rem"],
182
+ xl: ["1.25rem", "1.75rem"],
183
+ "2xl": ["1.5rem", "2rem"],
184
+ "3xl": ["1.875rem", "2.25rem"],
185
+ "4xl": ["2.25rem", "2.5rem"],
186
+ "5xl": ["3rem", "1"],
187
+ "6xl": ["3.75rem", "1"],
188
+ "7xl": ["4.5rem", "1"],
189
+ "8xl": ["6rem", "1"],
190
+ "9xl": ["8rem", "1"]
191
+ }, x = {
192
+ thin: "100",
193
+ extralight: "200",
194
+ light: "300",
195
+ normal: "400",
196
+ medium: "500",
197
+ semibold: "600",
198
+ bold: "700",
199
+ extrabold: "800",
200
+ black: "900"
201
+ }, S = {
202
+ none: "1",
203
+ tight: "1.25",
204
+ snug: "1.375",
205
+ normal: "1.5",
206
+ relaxed: "1.625",
207
+ loose: "2",
208
+ 3: "0.75rem",
209
+ 4: "1rem",
210
+ 5: "1.25rem",
211
+ 6: "1.5rem",
212
+ 7: "1.75rem",
213
+ 8: "2rem",
214
+ 9: "2.25rem",
215
+ 10: "2.5rem"
216
+ }, C = {
217
+ tighter: "-0.05em",
218
+ tight: "-0.025em",
219
+ normal: "0em",
220
+ wide: "0.025em",
221
+ wider: "0.05em",
222
+ widest: "0.1em"
223
+ }, w = {
224
+ none: "0",
225
+ sm: "4px",
226
+ "": "8px",
227
+ md: "12px",
228
+ lg: "16px",
229
+ xl: "24px",
230
+ "2xl": "40px",
231
+ "3xl": "64px"
232
+ }, T = Object.fromEntries([
233
+ 0,
234
+ 5,
235
+ 10,
236
+ 15,
237
+ 20,
238
+ 25,
239
+ 30,
240
+ 35,
241
+ 40,
242
+ 45,
243
+ 50,
244
+ 55,
245
+ 60,
246
+ 65,
247
+ 70,
248
+ 75,
249
+ 80,
250
+ 85,
251
+ 90,
252
+ 95,
253
+ 100
254
+ ].map((e) => [String(e), String(e / 100)])), E = new Set([
255
+ "bg",
256
+ "surface",
257
+ "surfaceAlt",
258
+ "border",
259
+ "text",
260
+ "textMuted",
261
+ "primary",
262
+ "secondary",
263
+ "danger",
264
+ "warning",
265
+ "success",
266
+ "info"
267
+ ]), D = {
268
+ sm: "640px",
269
+ md: "768px",
270
+ lg: "1024px",
271
+ xl: "1280px",
272
+ "2xl": "1536px"
273
+ }, O = /javascript\s*:|vbscript\s*:|data\s*:\s*text\/html|data\s*:\s*text\/javascript|expression\s*\(|[\r\n\x00]/i, k = new Set([
274
+ "behavior",
275
+ "-moz-binding",
276
+ "-webkit-binding",
277
+ "src"
278
+ ]), A = new Set(/* @__PURE__ */ "width.min-width.max-width.height.min-height.max-height.margin.margin-top.margin-right.margin-bottom.margin-left.padding.padding-top.padding-right.padding-bottom.padding-left.position.top.right.bottom.left.z-index.inset.flex.flex-grow.flex-shrink.flex-basis.flex-direction.flex-wrap.align-items.align-self.align-content.justify-content.justify-items.justify-self.gap.row-gap.column-gap.grid-template-columns.grid-template-rows.grid-column.grid-row.grid-area.grid-template-areas.font-size.font-weight.font-family.font-style.line-height.letter-spacing.text-align.text-decoration.text-transform.text-overflow.white-space.word-break.word-wrap.overflow-wrap.color.background.background-color.background-image.background-position.background-size.background-repeat.opacity.border.border-top.border-right.border-bottom.border-left.border-width.border-style.border-color.border-radius.outline.outline-offset.box-shadow.text-shadow.filter.backdrop-filter.transform.transition.animation.display.overflow.overflow-x.overflow-y.visibility.pointer-events.cursor.user-select.aspect-ratio.object-fit.object-position.list-style.vertical-align.float.clear.resize.scroll-behavior.content".split("."));
279
+ function j(e) {
280
+ return O.test(e) || e.includes("}") || e.includes("{") || e.includes("<") || e.includes(">") ? null : e;
281
+ }
282
+ function M(e) {
283
+ let t = e.toLowerCase().trim();
284
+ return k.has(t) || !A.has(t) ? null : t;
285
+ }
286
+ function N(e) {
287
+ let t = e.match(/^\[(.+)]$/);
288
+ return t ? j(t[1]) : null;
289
+ }
290
+ function P(e) {
291
+ return E.has(e) ? `var(--tkx-${e})` : e === "transparent" ? "transparent" : e === "current" ? "currentColor" : e === "white" ? "#ffffff" : e === "black" ? "#000000" : e === "inherit" ? "inherit" : N(e) || (/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(e), e);
292
+ }
293
+ function F(e) {
294
+ let t = e.match(/^\[([a-zA-Z-]+):(.+)]$/);
295
+ if (t) {
296
+ let e = M(t[1]), n = j(t[2]);
297
+ return e && n ? { [e]: n } : null;
298
+ }
299
+ let n = {
300
+ flex: "flex",
301
+ "inline-flex": "inline-flex",
302
+ grid: "grid",
303
+ "inline-grid": "inline-grid",
304
+ block: "block",
305
+ "inline-block": "inline-block",
306
+ inline: "inline",
307
+ hidden: "none",
308
+ contents: "contents",
309
+ "flow-root": "flow-root",
310
+ table: "table",
311
+ "table-row": "table-row",
312
+ "table-cell": "table-cell",
313
+ "table-caption": "table-caption",
314
+ "list-item": "list-item"
315
+ };
316
+ if (n[e]) return { display: n[e] };
317
+ let r = {
318
+ "flex-row": "row",
319
+ "flex-col": "column",
320
+ "flex-row-reverse": "row-reverse",
321
+ "flex-col-reverse": "column-reverse"
322
+ };
323
+ if (r[e]) return { "flex-direction": r[e] };
324
+ let i = {
325
+ "flex-wrap": "wrap",
326
+ "flex-nowrap": "nowrap",
327
+ "flex-wrap-reverse": "wrap-reverse"
328
+ };
329
+ if (i[e]) return { "flex-wrap": i[e] };
330
+ let a = {
331
+ "flex-1": "1 1 0%",
332
+ "flex-auto": "1 1 auto",
333
+ "flex-none": "none",
334
+ "flex-initial": "0 1 auto"
335
+ };
336
+ if (a[e]) return { flex: a[e] };
337
+ if (e === "grow" || e === "flex-grow") return { "flex-grow": "1" };
338
+ if (e === "grow-0") return { "flex-grow": "0" };
339
+ if (e === "shrink" || e === "flex-shrink") return { "flex-shrink": "1" };
340
+ if (e === "shrink-0" || e === "flex-shrink-0") return { "flex-shrink": "0" };
341
+ let o = {
342
+ "items-start": "flex-start",
343
+ "items-end": "flex-end",
344
+ "items-center": "center",
345
+ "items-stretch": "stretch",
346
+ "items-baseline": "baseline"
347
+ };
348
+ if (o[e]) return { "align-items": o[e] };
349
+ let s = {
350
+ "justify-start": "flex-start",
351
+ "justify-end": "flex-end",
352
+ "justify-center": "center",
353
+ "justify-between": "space-between",
354
+ "justify-around": "space-around",
355
+ "justify-evenly": "space-evenly",
356
+ "justify-stretch": "stretch",
357
+ "justify-normal": "normal"
358
+ };
359
+ if (s[e]) return { "justify-content": s[e] };
360
+ let c = {
361
+ "self-auto": "auto",
362
+ "self-start": "flex-start",
363
+ "self-end": "flex-end",
364
+ "self-center": "center",
365
+ "self-stretch": "stretch",
366
+ "self-baseline": "baseline"
367
+ };
368
+ if (c[e]) return { "align-self": c[e] };
369
+ let l = {
370
+ "content-start": "flex-start",
371
+ "content-end": "flex-end",
372
+ "content-center": "center",
373
+ "content-between": "space-between",
374
+ "content-around": "space-around",
375
+ "content-evenly": "space-evenly",
376
+ "content-stretch": "stretch"
377
+ };
378
+ if (l[e]) return { "align-content": l[e] };
379
+ let u;
380
+ if (u = e.match(/^grid-cols-(\d+|none|subgrid)$/)) return { "grid-template-columns": u[1] === "none" ? "none" : u[1] === "subgrid" ? "subgrid" : `repeat(${u[1]},minmax(0,1fr))` };
381
+ if (u = e.match(/^grid-rows-(\d+|none|subgrid)$/)) return { "grid-template-rows": u[1] === "none" ? "none" : u[1] === "subgrid" ? "subgrid" : `repeat(${u[1]},minmax(0,1fr))` };
382
+ if (u = e.match(/^col-span-(full|\d+)$/)) return { "grid-column": u[1] === "full" ? "1 / -1" : `span ${u[1]} / span ${u[1]}` };
383
+ if (u = e.match(/^col-start-(\d+|auto)$/)) return { "grid-column-start": u[1] };
384
+ if (u = e.match(/^col-end-(\d+|auto)$/)) return { "grid-column-end": u[1] };
385
+ if (u = e.match(/^row-span-(full|\d+)$/)) return { "grid-row": u[1] === "full" ? "1 / -1" : `span ${u[1]} / span ${u[1]}` };
386
+ if (u = e.match(/^row-start-(\d+|auto)$/)) return { "grid-row-start": u[1] };
387
+ if (u = e.match(/^row-end-(\d+|auto)$/)) return { "grid-row-end": u[1] };
388
+ if (e === "grid-flow-row") return { "grid-auto-flow": "row" };
389
+ if (e === "grid-flow-col") return { "grid-auto-flow": "column" };
390
+ if (e === "grid-flow-dense") return { "grid-auto-flow": "dense" };
391
+ if (e === "grid-flow-row-dense") return { "grid-auto-flow": "row dense" };
392
+ if (e === "grid-flow-col-dense") return { "grid-auto-flow": "column dense" };
393
+ if (u = e.match(/^p-(.+)$/)) {
394
+ let e = h[u[1]] ?? N(u[1]);
395
+ if (e) return { padding: e };
396
+ }
397
+ if (u = e.match(/^px-(.+)$/)) {
398
+ let e = h[u[1]] ?? N(u[1]);
399
+ if (e) return {
400
+ "padding-left": e,
401
+ "padding-right": e
402
+ };
403
+ }
404
+ if (u = e.match(/^py-(.+)$/)) {
405
+ let e = h[u[1]] ?? N(u[1]);
406
+ if (e) return {
407
+ "padding-top": e,
408
+ "padding-bottom": e
409
+ };
410
+ }
411
+ if (u = e.match(/^pt-(.+)$/)) {
412
+ let e = h[u[1]] ?? N(u[1]);
413
+ if (e) return { "padding-top": e };
414
+ }
415
+ if (u = e.match(/^pr-(.+)$/)) {
416
+ let e = h[u[1]] ?? N(u[1]);
417
+ if (e) return { "padding-right": e };
418
+ }
419
+ if (u = e.match(/^pb-(.+)$/)) {
420
+ let e = h[u[1]] ?? N(u[1]);
421
+ if (e) return { "padding-bottom": e };
422
+ }
423
+ if (u = e.match(/^pl-(.+)$/)) {
424
+ let e = h[u[1]] ?? N(u[1]);
425
+ if (e) return { "padding-left": e };
426
+ }
427
+ if (u = e.match(/^-?m-(.+)$/)) {
428
+ let t = e.startsWith("-"), n = h[u[1]] ?? N(u[1]);
429
+ if (n) return { margin: t && n !== "0" ? `-${n}` : n };
430
+ }
431
+ if (u = e.match(/^-?mx-(.+)$/)) {
432
+ let t = e.startsWith("-"), n = h[u[1]] ?? N(u[1]);
433
+ if (n) {
434
+ let e = t && n !== "0" ? `-${n}` : n;
435
+ return {
436
+ "margin-left": e,
437
+ "margin-right": e
438
+ };
439
+ }
440
+ }
441
+ if (u = e.match(/^-?my-(.+)$/)) {
442
+ let t = e.startsWith("-"), n = h[u[1]] ?? N(u[1]);
443
+ if (n) {
444
+ let e = t && n !== "0" ? `-${n}` : n;
445
+ return {
446
+ "margin-top": e,
447
+ "margin-bottom": e
448
+ };
449
+ }
450
+ }
451
+ if (u = e.match(/^-?mt-(.+)$/)) {
452
+ let t = e.startsWith("-"), n = h[u[1]] ?? N(u[1]);
453
+ if (n) return { "margin-top": t && n !== "0" ? `-${n}` : n };
454
+ }
455
+ if (u = e.match(/^-?mr-(.+)$/)) {
456
+ let t = e.startsWith("-"), n = h[u[1]] ?? N(u[1]);
457
+ if (n) return { "margin-right": t && n !== "0" ? `-${n}` : n };
458
+ }
459
+ if (u = e.match(/^-?mb-(.+)$/)) {
460
+ let t = e.startsWith("-"), n = h[u[1]] ?? N(u[1]);
461
+ if (n) return { "margin-bottom": t && n !== "0" ? `-${n}` : n };
462
+ }
463
+ if (u = e.match(/^-?ml-(.+)$/)) {
464
+ let t = e.startsWith("-"), n = h[u[1]] ?? N(u[1]);
465
+ if (n) return { "margin-left": t && n !== "0" ? `-${n}` : n };
466
+ }
467
+ if (e === "mx-auto") return {
468
+ "margin-left": "auto",
469
+ "margin-right": "auto"
470
+ };
471
+ if (e === "my-auto") return {
472
+ "margin-top": "auto",
473
+ "margin-bottom": "auto"
474
+ };
475
+ if (u = e.match(/^gap-(.+)$/)) {
476
+ let e = h[u[1]] ?? N(u[1]);
477
+ if (e) return { gap: e };
478
+ }
479
+ if (u = e.match(/^gap-x-(.+)$/)) {
480
+ let e = h[u[1]] ?? N(u[1]);
481
+ if (e) return { "column-gap": e };
482
+ }
483
+ if (u = e.match(/^gap-y-(.+)$/)) {
484
+ let e = h[u[1]] ?? N(u[1]);
485
+ if (e) return { "row-gap": e };
486
+ }
487
+ if (u = e.match(/^w-(.+)$/)) {
488
+ let e = u[1], t = h[e] ?? _[e] ?? N(e);
489
+ if (t) return { width: t };
490
+ }
491
+ if (u = e.match(/^min-w-(.+)$/)) {
492
+ let e = h[u[1]] ?? N(u[1]);
493
+ if (e) return { "min-width": e };
494
+ }
495
+ if (u = e.match(/^max-w-(.+)$/)) {
496
+ let e = {
497
+ none: "none",
498
+ xs: "20rem",
499
+ sm: "24rem",
500
+ md: "28rem",
501
+ lg: "32rem",
502
+ xl: "36rem",
503
+ "2xl": "42rem",
504
+ "3xl": "48rem",
505
+ "4xl": "56rem",
506
+ "5xl": "64rem",
507
+ "6xl": "72rem",
508
+ "7xl": "80rem",
509
+ full: "100%",
510
+ screen: "100vw",
511
+ min: "min-content",
512
+ max: "max-content",
513
+ fit: "fit-content"
514
+ }[u[1]] ?? h[u[1]] ?? N(u[1]);
515
+ if (e) return { "max-width": e };
516
+ }
517
+ if (u = e.match(/^h-(.+)$/)) {
518
+ let e = u[1], t = g[e] ?? _[e] ?? N(e);
519
+ if (t) return { height: t };
520
+ }
521
+ if (u = e.match(/^min-h-(.+)$/)) {
522
+ let e = {
523
+ 0: "0",
524
+ full: "100%",
525
+ screen: "100vh",
526
+ svh: "100svh",
527
+ dvh: "100dvh"
528
+ }[u[1]] ?? h[u[1]] ?? N(u[1]);
529
+ if (e) return { "min-height": e };
530
+ }
531
+ if (u = e.match(/^max-h-(.+)$/)) {
532
+ let e = g[u[1]] ?? N(u[1]);
533
+ if (e) return { "max-height": e };
534
+ }
535
+ if (u = e.match(/^size-(.+)$/)) {
536
+ let e = h[u[1]] ?? _[u[1]] ?? N(u[1]);
537
+ if (e) return {
538
+ width: e,
539
+ height: e
540
+ };
541
+ }
542
+ if (u = e.match(/^text-(xs|sm|base|lg|[2-9]xl|\d+xl)$/)) {
543
+ let [e, t] = b[u[1]] ?? ["1rem", "1.5rem"];
544
+ return {
545
+ "font-size": e,
546
+ "line-height": t
547
+ };
548
+ }
549
+ if (u = e.match(/^font-(thin|extralight|light|normal|medium|semibold|bold|extrabold|black|\d+)$/)) return { "font-weight": x[u[1]] ?? u[1] };
550
+ if (u = e.match(/^leading-(.+)$/)) {
551
+ let e = S[u[1]] ?? N(u[1]);
552
+ if (e) return { "line-height": e };
553
+ }
554
+ if (u = e.match(/^tracking-(.+)$/)) {
555
+ let e = C[u[1]] ?? N(u[1]);
556
+ if (e) return { "letter-spacing": e };
557
+ }
558
+ let d = {
559
+ "text-left": "left",
560
+ "text-center": "center",
561
+ "text-right": "right",
562
+ "text-justify": "justify",
563
+ "text-start": "start",
564
+ "text-end": "end"
565
+ };
566
+ if (d[e]) return { "text-align": d[e] };
567
+ if (e === "italic") return { "font-style": "italic" };
568
+ if (e === "not-italic") return { "font-style": "normal" };
569
+ if (e === "uppercase") return { "text-transform": "uppercase" };
570
+ if (e === "lowercase") return { "text-transform": "lowercase" };
571
+ if (e === "capitalize") return { "text-transform": "capitalize" };
572
+ if (e === "normal-case") return { "text-transform": "none" };
573
+ if (e === "underline") return { "text-decoration-line": "underline" };
574
+ if (e === "overline") return { "text-decoration-line": "overline" };
575
+ if (e === "line-through") return { "text-decoration-line": "line-through" };
576
+ if (e === "no-underline") return { "text-decoration-line": "none" };
577
+ if (e === "truncate") return {
578
+ overflow: "hidden",
579
+ "text-overflow": "ellipsis",
580
+ "white-space": "nowrap"
581
+ };
582
+ if (e === "text-ellipsis") return { "text-overflow": "ellipsis" };
583
+ if (e === "text-clip") return { "text-overflow": "clip" };
584
+ if (e === "whitespace-normal") return { "white-space": "normal" };
585
+ if (e === "whitespace-nowrap") return { "white-space": "nowrap" };
586
+ if (e === "whitespace-pre") return { "white-space": "pre" };
587
+ if (e === "whitespace-pre-wrap") return { "white-space": "pre-wrap" };
588
+ if (e === "whitespace-pre-line") return { "white-space": "pre-line" };
589
+ if (e === "break-words") return { "overflow-wrap": "break-word" };
590
+ if (e === "break-all") return { "word-break": "break-all" };
591
+ if (e === "break-keep") return { "word-break": "keep-all" };
592
+ if (e === "font-mono") return { "font-family": "var(--tkx-font-mono,monospace)" };
593
+ if (e === "font-sans") return { "font-family": "var(--tkx-font-family,system-ui,sans-serif)" };
594
+ if (e === "font-serif") return { "font-family": "ui-serif,Georgia,serif" };
595
+ if (e === "antialiased") return {
596
+ "-webkit-font-smoothing": "antialiased",
597
+ "-moz-osx-font-smoothing": "grayscale"
598
+ };
599
+ if (u = e.match(/^indent-(.+)$/)) {
600
+ let e = h[u[1]] ?? N(u[1]);
601
+ if (e) return { "text-indent": e };
602
+ }
603
+ if (u = e.match(/^line-clamp-(\d+)$/)) return {
604
+ overflow: "hidden",
605
+ display: "-webkit-box",
606
+ "-webkit-line-clamp": u[1],
607
+ "-webkit-box-orient": "vertical"
608
+ };
609
+ if (u = e.match(/^text-(.+)$/)) {
610
+ let [e, t] = u[1].split("/"), n = P(e);
611
+ if (![
612
+ "left",
613
+ "center",
614
+ "right",
615
+ "justify",
616
+ "start",
617
+ "end",
618
+ "xs",
619
+ "sm",
620
+ "base",
621
+ "lg",
622
+ "xl",
623
+ "2xl",
624
+ "3xl",
625
+ "4xl",
626
+ "5xl",
627
+ "6xl",
628
+ "7xl",
629
+ "8xl",
630
+ "9xl"
631
+ ].includes(e)) {
632
+ if (t) {
633
+ let e = parseInt(t) / 100;
634
+ return {
635
+ color: n,
636
+ opacity: String(e)
637
+ };
638
+ }
639
+ return { color: n };
640
+ }
641
+ }
642
+ if (u = e.match(/^bg-(.+)$/)) {
643
+ let [e, t] = u[1].split("/"), n = P(e);
644
+ return t ? {
645
+ "background-color": n,
646
+ opacity: String(parseInt(t) / 100)
647
+ } : e === "none" ? { background: "none" } : { "background-color": n };
648
+ }
649
+ if (u = e.match(/^border-color-(.+)$/)) return { "border-color": P(u[1]) };
650
+ if (u = e.match(/^fill-(.+)$/)) return { fill: P(u[1]) };
651
+ if (u = e.match(/^stroke-(.+)$/)) return { stroke: P(u[1]) };
652
+ if (u = e.match(/^shadow-color-(.+)$/)) return { "--tkx-shadow-color": P(u[1]) };
653
+ if (u = e.match(/^ring-color-(.+)$/)) return { "--tkx-ring-color": P(u[1]) };
654
+ if (u = e.match(/^accent-(.+)$/)) return { "accent-color": P(u[1]) };
655
+ if (u = e.match(/^caret-(.+)$/)) return { "caret-color": P(u[1]) };
656
+ if (u = e.match(/^outline-color-(.+)$/)) return { "outline-color": P(u[1]) };
657
+ if (e === "border") return { "border-width": "1px" };
658
+ if (u = e.match(/^border-(\d+)$/)) return { "border-width": `${u[1]}px` };
659
+ if (e === "border-t") return { "border-top-width": "1px" };
660
+ if (u = e.match(/^border-t-(\d+)$/)) return { "border-top-width": `${u[1]}px` };
661
+ if (e === "border-r") return { "border-right-width": "1px" };
662
+ if (u = e.match(/^border-r-(\d+)$/)) return { "border-right-width": `${u[1]}px` };
663
+ if (e === "border-b") return { "border-bottom-width": "1px" };
664
+ if (u = e.match(/^border-b-(\d+)$/)) return { "border-bottom-width": `${u[1]}px` };
665
+ if (e === "border-l") return { "border-left-width": "1px" };
666
+ if (u = e.match(/^border-l-(\d+)$/)) return { "border-left-width": `${u[1]}px` };
667
+ if (e === "border-x") return {
668
+ "border-left-width": "1px",
669
+ "border-right-width": "1px"
670
+ };
671
+ if (e === "border-y") return {
672
+ "border-top-width": "1px",
673
+ "border-bottom-width": "1px"
674
+ };
675
+ if (e === "border-none") return { "border-style": "none" };
676
+ if (e === "border-solid") return { "border-style": "solid" };
677
+ if (e === "border-dashed") return { "border-style": "dashed" };
678
+ if (e === "border-dotted") return { "border-style": "dotted" };
679
+ if (e === "border-double") return { "border-style": "double" };
680
+ if ((u = e.match(/^border-([a-zA-Z].*)$/)) && E.has(u[1])) return { "border-color": `var(--tkx-${u[1]})` };
681
+ if (u = e.match(/^border-\[(.+)]$/)) return { "border-color": u[1] };
682
+ if (e === "border-0") return { "border-width": "0" };
683
+ if (e === "rounded") return { "border-radius": v[""] };
684
+ if (u = e.match(/^rounded-(none|sm|md|lg|xl|2xl|3xl|full|\[.+])$/)) return { "border-radius": v[u[1]] ?? N(u[1]) ?? u[1] };
685
+ if (u = e.match(/^rounded-(t|r|b|l|tl|tr|br|bl)(?:-(none|sm|md|lg|xl|2xl|3xl|full))?$/)) {
686
+ let e = u[1], t = v[u[2] ?? ""] ?? v[""];
687
+ return {
688
+ t: {
689
+ "border-top-left-radius": t,
690
+ "border-top-right-radius": t
691
+ },
692
+ r: {
693
+ "border-top-right-radius": t,
694
+ "border-bottom-right-radius": t
695
+ },
696
+ b: {
697
+ "border-bottom-left-radius": t,
698
+ "border-bottom-right-radius": t
699
+ },
700
+ l: {
701
+ "border-top-left-radius": t,
702
+ "border-bottom-left-radius": t
703
+ },
704
+ tl: { "border-top-left-radius": t },
705
+ tr: { "border-top-right-radius": t },
706
+ br: { "border-bottom-right-radius": t },
707
+ bl: { "border-bottom-left-radius": t }
708
+ }[e] ?? {};
709
+ }
710
+ let f = {
711
+ 0: "0",
712
+ 1: "1px",
713
+ 2: "2px",
714
+ ring: "3px",
715
+ 4: "4px",
716
+ 8: "8px"
717
+ };
718
+ if (e === "ring") return { "box-shadow": "0 0 0 3px var(--tkx-ring-color,var(--tkx-primary))" };
719
+ if ((u = e.match(/^ring-(\d+)$/)) && f[u[1]]) return { "box-shadow": `0 0 0 ${f[u[1]]} var(--tkx-ring-color,var(--tkx-primary))` };
720
+ if (e === "ring-inset") return { "--tkx-ring-offset": "inset" };
721
+ if (u = e.match(/^ring-offset-(\d+)$/)) return {
722
+ "--tkx-ring-offset-width": `${u[1]}px`,
723
+ "box-shadow": `0 0 0 ${u[1]}px var(--tkx-bg)`
724
+ };
725
+ if (e === "shadow") return { "box-shadow": y[""] };
726
+ if (u = e.match(/^shadow-(sm|md|lg|xl|2xl|inner|none)$/)) return { "box-shadow": y[u[1]] };
727
+ if (u = e.match(/^opacity-(\d+)$/)) {
728
+ let e = T[u[1]];
729
+ if (e !== void 0) return { opacity: e };
730
+ }
731
+ if (e === "bg-none") return { background: "none" };
732
+ let p = {
733
+ "bg-auto": "auto",
734
+ "bg-cover": "cover",
735
+ "bg-contain": "contain"
736
+ };
737
+ if (p[e]) return { "background-size": p[e] };
738
+ let m = {
739
+ "bg-center": "center",
740
+ "bg-top": "top",
741
+ "bg-bottom": "bottom",
742
+ "bg-left": "left",
743
+ "bg-right": "right"
744
+ };
745
+ if (m[e]) return { "background-position": m[e] };
746
+ let D = {
747
+ "bg-repeat": "repeat",
748
+ "bg-no-repeat": "no-repeat",
749
+ "bg-repeat-x": "repeat-x",
750
+ "bg-repeat-y": "repeat-y"
751
+ };
752
+ if (D[e]) return { "background-repeat": D[e] };
753
+ if (e === "backdrop-blur") return { "backdrop-filter": `blur(${w[""]})` };
754
+ if (u = e.match(/^backdrop-blur-(none|sm|md|lg|xl|2xl|3xl)$/)) return { "backdrop-filter": `blur(${w[u[1]]})` };
755
+ if (e === "blur") return { filter: `blur(${w[""]})` };
756
+ if (u = e.match(/^blur-(none|sm|md|lg|xl|2xl|3xl)$/)) return { filter: `blur(${w[u[1]]})` };
757
+ if (e === "grayscale") return { filter: "grayscale(100%)" };
758
+ if (e === "grayscale-0") return { filter: "grayscale(0)" };
759
+ if (e === "invert") return { filter: "invert(100%)" };
760
+ if (e === "invert-0") return { filter: "invert(0)" };
761
+ let O = {
762
+ static: "static",
763
+ relative: "relative",
764
+ absolute: "absolute",
765
+ fixed: "fixed",
766
+ sticky: "sticky"
767
+ };
768
+ if (O[e]) return { position: O[e] };
769
+ if (e === "inset-0") return {
770
+ top: "0",
771
+ right: "0",
772
+ bottom: "0",
773
+ left: "0"
774
+ };
775
+ if (e === "inset-auto") return {
776
+ top: "auto",
777
+ right: "auto",
778
+ bottom: "auto",
779
+ left: "auto"
780
+ };
781
+ if (e === "inset-full") return {
782
+ top: "100%",
783
+ right: "100%",
784
+ bottom: "100%",
785
+ left: "100%"
786
+ };
787
+ if (e === "inset-x-0") return {
788
+ left: "0",
789
+ right: "0"
790
+ };
791
+ if (e === "inset-y-0") return {
792
+ top: "0",
793
+ bottom: "0"
794
+ };
795
+ if (u = e.match(/^-?top-(.+)$/)) {
796
+ let t = e.startsWith("-"), n = h[u[1]] ?? _[u[1]] ?? N(u[1]);
797
+ if (n) return { top: t && n !== "0" ? `-${n}` : n };
798
+ }
799
+ if (u = e.match(/^-?right-(.+)$/)) {
800
+ let t = e.startsWith("-"), n = h[u[1]] ?? _[u[1]] ?? N(u[1]);
801
+ if (n) return { right: t && n !== "0" ? `-${n}` : n };
802
+ }
803
+ if (u = e.match(/^-?bottom-(.+)$/)) {
804
+ let t = e.startsWith("-"), n = h[u[1]] ?? _[u[1]] ?? N(u[1]);
805
+ if (n) return { bottom: t && n !== "0" ? `-${n}` : n };
806
+ }
807
+ if (u = e.match(/^-?left-(.+)$/)) {
808
+ let t = e.startsWith("-"), n = h[u[1]] ?? _[u[1]] ?? N(u[1]);
809
+ if (n) return { left: t && n !== "0" ? `-${n}` : n };
810
+ }
811
+ let k = {
812
+ 0: "0",
813
+ 10: "10",
814
+ 20: "20",
815
+ 30: "30",
816
+ 40: "40",
817
+ 50: "50",
818
+ 100: "100",
819
+ 1e3: "1000",
820
+ 9e3: "9000",
821
+ auto: "auto"
822
+ };
823
+ if (u = e.match(/^z-(.+)$/)) {
824
+ let e = k[u[1]] ?? N(u[1]);
825
+ if (e) return { "z-index": e };
826
+ }
827
+ let A = {
828
+ "overflow-auto": "auto",
829
+ "overflow-hidden": "hidden",
830
+ "overflow-visible": "visible",
831
+ "overflow-scroll": "scroll",
832
+ "overflow-clip": "clip"
833
+ };
834
+ if (A[e]) return { overflow: A[e] };
835
+ if (u = e.match(/^overflow-(x|y)-(auto|hidden|visible|scroll|clip)$/)) return { [`overflow-${u[1]}`]: u[2] };
836
+ if (e === "scrollbar-hide") return {
837
+ "-ms-overflow-style": "none",
838
+ "scrollbar-width": "none"
839
+ };
840
+ if (e === "visible") return { visibility: "visible" };
841
+ if (e === "invisible") return { visibility: "hidden" };
842
+ if (e === "collapse") return { visibility: "collapse" };
843
+ let F = {
844
+ "cursor-auto": "auto",
845
+ "cursor-default": "default",
846
+ "cursor-pointer": "pointer",
847
+ "cursor-wait": "wait",
848
+ "cursor-text": "text",
849
+ "cursor-move": "move",
850
+ "cursor-help": "help",
851
+ "cursor-not-allowed": "not-allowed",
852
+ "cursor-none": "none",
853
+ "cursor-grab": "grab",
854
+ "cursor-grabbing": "grabbing",
855
+ "cursor-zoom-in": "zoom-in",
856
+ "cursor-zoom-out": "zoom-out",
857
+ "cursor-crosshair": "crosshair"
858
+ };
859
+ if (F[e]) return { cursor: F[e] };
860
+ if (e === "select-none") return { "user-select": "none" };
861
+ if (e === "select-text") return { "user-select": "text" };
862
+ if (e === "select-all") return { "user-select": "all" };
863
+ if (e === "select-auto") return { "user-select": "auto" };
864
+ if (e === "pointer-events-none") return { "pointer-events": "none" };
865
+ if (e === "pointer-events-auto") return { "pointer-events": "auto" };
866
+ let I = {
867
+ 0: "0",
868
+ 50: ".5",
869
+ 75: ".75",
870
+ 90: ".9",
871
+ 95: ".95",
872
+ 100: "1",
873
+ 105: "1.05",
874
+ 110: "1.1",
875
+ 125: "1.25",
876
+ 150: "1.5"
877
+ };
878
+ if (u = e.match(/^scale-(.+)$/)) {
879
+ let e = I[u[1]] ?? N(u[1]);
880
+ if (e) return { transform: `scale(${e})` };
881
+ }
882
+ if (u = e.match(/^scale-x-(.+)$/)) {
883
+ let e = I[u[1]] ?? N(u[1]);
884
+ if (e) return { transform: `scaleX(${e})` };
885
+ }
886
+ if (u = e.match(/^scale-y-(.+)$/)) {
887
+ let e = I[u[1]] ?? N(u[1]);
888
+ if (e) return { transform: `scaleY(${e})` };
889
+ }
890
+ let L = {
891
+ 0: "0deg",
892
+ 1: "1deg",
893
+ 2: "2deg",
894
+ 3: "3deg",
895
+ 6: "6deg",
896
+ 12: "12deg",
897
+ 45: "45deg",
898
+ 90: "90deg",
899
+ 180: "180deg"
900
+ };
901
+ if (u = e.match(/^-?rotate-(.+)$/)) {
902
+ let t = e.startsWith("-"), n = L[u[1]] ?? N(u[1]);
903
+ if (n) return { transform: t ? `rotate(-${n})` : `rotate(${n})` };
904
+ }
905
+ if (u = e.match(/^-?translate-x-(.+)$/)) {
906
+ let t = e.startsWith("-"), n = h[u[1]] ?? _[u[1]] ?? N(u[1]);
907
+ if (n) return { transform: `translateX(${t && n !== "0" ? `-${n}` : n})` };
908
+ }
909
+ if (u = e.match(/^-?translate-y-(.+)$/)) {
910
+ let t = e.startsWith("-"), n = h[u[1]] ?? _[u[1]] ?? N(u[1]);
911
+ if (n) return { transform: `translateY(${t && n !== "0" ? `-${n}` : n})` };
912
+ }
913
+ if (u = e.match(/^-?skew-x-(.+)$/)) {
914
+ let t = e.startsWith("-"), n = N(u[1]) ?? `${u[1]}deg`;
915
+ return { transform: t ? `skewX(-${n})` : `skewX(${n})` };
916
+ }
917
+ if (u = e.match(/^-?skew-y-(.+)$/)) {
918
+ let t = e.startsWith("-"), n = N(u[1]) ?? `${u[1]}deg`;
919
+ return { transform: t ? `skewY(-${n})` : `skewY(${n})` };
920
+ }
921
+ let R = {
922
+ "origin-center": "center",
923
+ "origin-top": "top",
924
+ "origin-top-right": "top right",
925
+ "origin-right": "right",
926
+ "origin-bottom-right": "bottom right",
927
+ "origin-bottom": "bottom",
928
+ "origin-bottom-left": "bottom left",
929
+ "origin-left": "left",
930
+ "origin-top-left": "top left"
931
+ };
932
+ if (R[e]) return { "transform-origin": R[e] };
933
+ let z = {
934
+ transition: "color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",
935
+ "transition-all": "all",
936
+ "transition-colors": "color,background-color,border-color,text-decoration-color,fill,stroke",
937
+ "transition-opacity": "opacity",
938
+ "transition-shadow": "box-shadow",
939
+ "transition-transform": "transform",
940
+ "transition-none": "none"
941
+ };
942
+ if (z[e]) return {
943
+ "transition-property": z[e],
944
+ "transition-timing-function": "cubic-bezier(0.4,0,0.2,1)",
945
+ "transition-duration": "150ms"
946
+ };
947
+ let B = {
948
+ 75: "75ms",
949
+ 100: "100ms",
950
+ 150: "150ms",
951
+ 200: "200ms",
952
+ 300: "300ms",
953
+ 500: "500ms",
954
+ 700: "700ms",
955
+ 1e3: "1000ms"
956
+ };
957
+ if (u = e.match(/^duration-(.+)$/)) {
958
+ let e = B[u[1]] ?? N(u[1]);
959
+ if (e) return { "transition-duration": e };
960
+ }
961
+ if (u = e.match(/^delay-(.+)$/)) {
962
+ let e = B[u[1]] ?? N(u[1]);
963
+ if (e) return { "transition-delay": e };
964
+ }
965
+ let V = {
966
+ "ease-linear": "linear",
967
+ "ease-in": "cubic-bezier(0.4,0,1,1)",
968
+ "ease-out": "cubic-bezier(0,0,0.2,1)",
969
+ "ease-in-out": "cubic-bezier(0.4,0,0.2,1)"
970
+ };
971
+ if (V[e]) return { "transition-timing-function": V[e] };
972
+ let H = {
973
+ "animate-none": "none",
974
+ "animate-spin": "tkx-spin 1s linear infinite",
975
+ "animate-ping": "tkx-ping 1s cubic-bezier(0,0,0.2,1) infinite",
976
+ "animate-pulse": "tkx-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",
977
+ "animate-bounce": "tkx-bounce 1s infinite",
978
+ "animate-fade-in": "tkx-fade-in 200ms ease both",
979
+ "animate-slide-up": "tkx-slide-up 200ms ease both",
980
+ "animate-shimmer": "tkx-shimmer 1.5s infinite"
981
+ };
982
+ if (H[e]) return { animation: H[e] };
983
+ let U = {
984
+ "object-contain": "contain",
985
+ "object-cover": "cover",
986
+ "object-fill": "fill",
987
+ "object-none": "none",
988
+ "object-scale-down": "scale-down"
989
+ };
990
+ return U[e] ? { "object-fit": U[e] } : e === "aspect-square" ? { "aspect-ratio": "1 / 1" } : e === "aspect-video" ? { "aspect-ratio": "16 / 9" } : e === "aspect-auto" ? { "aspect-ratio": "auto" } : (u = e.match(/^aspect-\[(.+)]$/)) ? { "aspect-ratio": u[1] } : e === "list-none" ? { "list-style-type": "none" } : e === "list-disc" ? { "list-style-type": "disc" } : e === "list-decimal" ? { "list-style-type": "decimal" } : e === "list-inside" ? { "list-style-position": "inside" } : e === "list-outside" ? { "list-style-position": "outside" } : (u = e.match(/^columns-(\d+)$/)) ? { columns: u[1] } : e === "resize" ? { resize: "both" } : e === "resize-none" ? { resize: "none" } : e === "resize-x" ? { resize: "horizontal" } : e === "resize-y" ? { resize: "vertical" } : e === "sr-only" ? {
991
+ position: "absolute",
992
+ width: "1px",
993
+ height: "1px",
994
+ padding: "0",
995
+ margin: "-1px",
996
+ overflow: "hidden",
997
+ clip: "rect(0,0,0,0)",
998
+ "white-space": "nowrap",
999
+ border: "0"
1000
+ } : e === "not-sr-only" ? {
1001
+ position: "static",
1002
+ width: "auto",
1003
+ height: "auto",
1004
+ padding: "0",
1005
+ margin: "0",
1006
+ overflow: "visible",
1007
+ clip: "auto",
1008
+ "white-space": "normal"
1009
+ } : e === "focus-ring" ? {
1010
+ outline: "2px solid var(--tkx-primary)",
1011
+ "outline-offset": "2px",
1012
+ "border-radius": "2px"
1013
+ } : e === "appearance-none" ? { appearance: "none" } : e === "outline-none" ? { outline: "none" } : e === "outline" ? {
1014
+ outline: "2px solid currentColor",
1015
+ "outline-offset": "2px"
1016
+ } : e === "float-left" ? { float: "left" } : e === "float-right" ? { float: "right" } : e === "float-none" ? { float: "none" } : e === "clear-both" ? { clear: "both" } : e === "isolate" ? { isolation: "isolate" } : e === "isolation-auto" ? { isolation: "auto" } : (u = e.match(/^will-change-(.+)$/)) ? { "will-change": u[1] } : e === "touch-manipulation" ? { "touch-action": "manipulation" } : e === "touch-none" ? { "touch-action": "none" } : e === "touch-pan-x" ? { "touch-action": "pan-x" } : e === "touch-pan-y" ? { "touch-action": "pan-y" } : e === "scroll-smooth" ? { "scroll-behavior": "smooth" } : e === "scroll-auto" ? { "scroll-behavior": "auto" } : (u = e.match(/^\[(--[a-zA-Z0-9-]+):(.+)]$/)) ? { [u[1]]: u[2] } : $(e) || null;
1017
+ }
1018
+ function I(e) {
1019
+ let t = 0, n = -1;
1020
+ for (let r = 0; r < e.length; r++) if (e[r] === "[") t++;
1021
+ else if (e[r] === "]") t--;
1022
+ else if (e[r] === ":" && t === 0) {
1023
+ n = r;
1024
+ break;
1025
+ }
1026
+ return n === -1 ? {
1027
+ variant: null,
1028
+ utility: e
1029
+ } : {
1030
+ variant: e.slice(0, n),
1031
+ utility: e.slice(n + 1)
1032
+ };
1033
+ }
1034
+ function L(e, t) {
1035
+ for (let [n, r] of Object.entries(t)) e[n] = r;
1036
+ }
1037
+ function R(e) {
1038
+ return Object.entries(e).map(([e, t]) => `${e}:${t}`).join(";");
1039
+ }
1040
+ var z = /* @__PURE__ */ new Map(), B = null, V = null;
1041
+ function H() {
1042
+ return (!B || !B.isConnected) && (B = document.getElementById("tkx-atomic"), B || (B = document.createElement("style"), B.id = "tkx-atomic", document.head.appendChild(B))), B;
1043
+ }
1044
+ function U() {
1045
+ if (V) return V;
1046
+ try {
1047
+ let e = new CSSStyleSheet();
1048
+ return document.adoptedStyleSheets = [...document.adoptedStyleSheets, e], V = e, e;
1049
+ } catch {
1050
+ return null;
1051
+ }
1052
+ }
1053
+ function W(e, t) {
1054
+ if (z.has(e) || (z.set(e, t), typeof document > "u")) return;
1055
+ let n = U();
1056
+ if (n) {
1057
+ let e = G(t);
1058
+ for (let t of e) try {
1059
+ n.insertRule(t, n.cssRules.length);
1060
+ } catch {
1061
+ H().textContent += t + "\n";
1062
+ }
1063
+ } else H().textContent += t + "\n";
1064
+ }
1065
+ function G(e) {
1066
+ let t = [], n = 0, r = 0;
1067
+ for (let i = 0; i < e.length; i++) if (e[i] === "{") n++;
1068
+ else if (e[i] === "}" && (n--, n === 0)) {
1069
+ let n = e.slice(r, i + 1).trim();
1070
+ n && t.push(n), r = i + 1;
1071
+ }
1072
+ return t;
1073
+ }
1074
+ function K(e) {
1075
+ let t = [];
1076
+ for (let n of e) if (n) {
1077
+ if (typeof n == "string") t.push(...n.split(/\s+/).filter(Boolean));
1078
+ else if (Array.isArray(n)) t.push(...K(n));
1079
+ else if (typeof n == "object") for (let [e, r] of Object.entries(n)) r && t.push(e);
1080
+ }
1081
+ return t;
1082
+ }
1083
+ function q(...t) {
1084
+ let n = K(t);
1085
+ if (n.length === 0) return "";
1086
+ let r = {
1087
+ base: {},
1088
+ variants: {}
1089
+ };
1090
+ for (let e of n) {
1091
+ let { variant: t, utility: n } = I(e), i = F(n);
1092
+ i && (t ? (r.variants[t] || (r.variants[t] = {}), L(r.variants[t], i)) : L(r.base, i));
1093
+ }
1094
+ let i = [], a = R(r.base), o = e([a, ...Object.entries(r.variants).map(([e, t]) => `${e}{${R(t)}}`)].join("|")), s = `tkx-${o}`;
1095
+ a && i.push(`.${s}{${a}}`);
1096
+ for (let [e, t] of Object.entries(r.variants)) {
1097
+ let n = R(t);
1098
+ if (n) if (e.startsWith("@")) {
1099
+ let t = D[e.slice(1)];
1100
+ t && i.push(`@media(min-width:${t}){.${s}{${n}}}`);
1101
+ } else if (e === "motion-safe") i.push(`@media(prefers-reduced-motion:no-preference){.${s}{${n}}}`);
1102
+ else if (e === "motion-reduce") i.push(`@media(prefers-reduced-motion:reduce){.${s}{${n}}}`);
1103
+ else if (e === "contrast-more") i.push(`@media(prefers-contrast:more){.${s}{${n}}}`);
1104
+ else if (e === "forced-colors") i.push(`@media(forced-colors:active){.${s}{${n}}}`);
1105
+ else if (e === "dark") i.push(`@media(prefers-color-scheme:dark){.${s}{${n}}}`);
1106
+ else if (e === "print") i.push(`@media print{.${s}{${n}}}`);
1107
+ else if (e === "group-hover") i.push(`.group:hover .${s}{${n}}`);
1108
+ else if (e === "group-focus") i.push(`.group:focus-within .${s}{${n}}`);
1109
+ else if (e === "peer-hover") i.push(`.peer:hover~.${s}{${n}}`);
1110
+ else {
1111
+ let t = {
1112
+ hover: ":hover",
1113
+ focus: ":focus",
1114
+ "focus-visible": ":focus-visible",
1115
+ "focus-within": ":focus-within",
1116
+ active: ":active",
1117
+ disabled: ":disabled",
1118
+ checked: ":checked",
1119
+ required: ":required",
1120
+ valid: ":valid",
1121
+ invalid: ":invalid",
1122
+ first: ":first-child",
1123
+ last: ":last-child",
1124
+ odd: ":nth-child(odd)",
1125
+ even: ":nth-child(even)",
1126
+ "first-of-type": ":first-of-type",
1127
+ "last-of-type": ":last-of-type",
1128
+ "only-child": ":only-child",
1129
+ "only-of-type": ":only-of-type",
1130
+ empty: ":empty",
1131
+ visited: ":visited",
1132
+ target: ":target",
1133
+ "placeholder-shown": ":placeholder-shown",
1134
+ "read-only": ":read-only",
1135
+ before: "::before",
1136
+ after: "::after",
1137
+ placeholder: "::placeholder",
1138
+ selection: "::selection",
1139
+ "file-selector": "::file-selector-button",
1140
+ marker: "::marker"
1141
+ }[e] ?? `:${e}`;
1142
+ i.push(`.${s}${t}{${n}}`);
1143
+ }
1144
+ }
1145
+ return i.length > 0 && W(o, i.join("")), s;
1146
+ }
1147
+ var J = q;
1148
+ function Y() {
1149
+ return Array.from(z.values()).join("\n");
1150
+ }
1151
+ function X() {
1152
+ z.clear(), B = null, V && typeof document < "u" && (document.adoptedStyleSheets = document.adoptedStyleSheets.filter((e) => e !== V), V = null);
1153
+ }
1154
+ function Z(...e) {
1155
+ return e.filter(Boolean).join(" ");
1156
+ }
1157
+ var Q = /* @__PURE__ */ new Map();
1158
+ function ee(e) {
1159
+ Q.set(e.name, e.utilities);
1160
+ }
1161
+ function te(e) {
1162
+ Q.delete(e);
1163
+ }
1164
+ function ne() {
1165
+ return Array.from(Q.keys());
1166
+ }
1167
+ function $(e) {
1168
+ for (let t of Q.values()) if (t[e]) return t[e];
1169
+ return null;
1170
+ }
1171
+ //#endregion
1172
+ export { q as a, te as c, d, f, p as g, o as h, $ as i, J as l, n as m, Y as n, ne as o, r as p, X as r, ee as s, Z as t, m as u };