@jasonshimmy/custom-elements-runtime 2.2.4 → 2.2.6

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.
@@ -0,0 +1,2108 @@
1
+ import { anchorBlock as Fe } from "./custom-elements-runtime.directives.es.js";
2
+ const Ee = {
3
+ base: {
4
+ fontSize: "1rem",
5
+ lineHeight: "1.75",
6
+ p: "1.25em",
7
+ lead: "1.25em",
8
+ h1: "2.25em",
9
+ h2: "1.5em",
10
+ h3: "1.25em",
11
+ h4: "1em",
12
+ blockquote: "1.6em",
13
+ figure: "2em",
14
+ code: "0.875em",
15
+ pre: "0.875em",
16
+ ol: "1.25em",
17
+ ul: "1.25em",
18
+ li: "0.5em",
19
+ hr: "3em",
20
+ table: "2em"
21
+ },
22
+ sm: {
23
+ fontSize: "0.875rem",
24
+ lineHeight: "1.7142857",
25
+ p: "1.1428571em",
26
+ lead: "1.1428571em",
27
+ h1: "2.1428571em",
28
+ h2: "1.4285714em",
29
+ h3: "1.2857143em",
30
+ h4: "1em",
31
+ blockquote: "1.4285714em",
32
+ figure: "1.7142857em",
33
+ code: "0.8571429em",
34
+ pre: "0.8571429em",
35
+ ol: "1.1428571em",
36
+ ul: "1.1428571em",
37
+ li: "0.4285714em",
38
+ hr: "2.5714286em",
39
+ table: "1.7142857em"
40
+ },
41
+ lg: {
42
+ fontSize: "1.125rem",
43
+ lineHeight: "1.7777778",
44
+ p: "1.3333333em",
45
+ lead: "1.3333333em",
46
+ h1: "2.6666667em",
47
+ h2: "1.7777778em",
48
+ h3: "1.5555556em",
49
+ h4: "1.1111111em",
50
+ blockquote: "1.7777778em",
51
+ figure: "2.2222222em",
52
+ code: "0.8888889em",
53
+ pre: "0.8888889em",
54
+ ol: "1.3333333em",
55
+ ul: "1.3333333em",
56
+ li: "0.5555556em",
57
+ hr: "3.3333333em",
58
+ table: "2.2222222em"
59
+ },
60
+ xl: {
61
+ fontSize: "1.25rem",
62
+ lineHeight: "1.8",
63
+ p: "1.4em",
64
+ lead: "1.4em",
65
+ h1: "2.8em",
66
+ h2: "1.8em",
67
+ h3: "1.6em",
68
+ h4: "1.2em",
69
+ blockquote: "1.8em",
70
+ figure: "2.4em",
71
+ code: "0.9em",
72
+ pre: "0.9em",
73
+ ol: "1.4em",
74
+ ul: "1.4em",
75
+ li: "0.6em",
76
+ hr: "3.6em",
77
+ table: "2.4em"
78
+ },
79
+ "2xl": {
80
+ fontSize: "1.5rem",
81
+ lineHeight: "1.6666667",
82
+ p: "1.3333333em",
83
+ lead: "1.3333333em",
84
+ h1: "2.6666667em",
85
+ h2: "1.7777778em",
86
+ h3: "1.5555556em",
87
+ h4: "1.2222222em",
88
+ blockquote: "1.7777778em",
89
+ figure: "2.2222222em",
90
+ code: "0.8333333em",
91
+ pre: "0.8333333em",
92
+ ol: "1.3333333em",
93
+ ul: "1.3333333em",
94
+ li: "0.5555556em",
95
+ hr: "3.1111111em",
96
+ table: "2.2222222em"
97
+ }
98
+ };
99
+ function Ae(e) {
100
+ const o = e.match(/^prose(?:-(sm|lg|xl|2xl))?$/);
101
+ if (!o) return null;
102
+ const a = o[1] || "base", t = Ee[a], r = `.${e}`, i = [];
103
+ return i.push(
104
+ `${r}{--cer-prose-body:var(--cer-color-neutral-900);--cer-prose-headings:var(--cer-color-neutral-900);--cer-prose-lead:var(--cer-color-neutral-700);--cer-prose-links:var(--cer-color-neutral-700);--cer-prose-links-hover:var(--cer-color-neutral-500);--cer-prose-bold:var(--cer-color-neutral-900);--cer-prose-quotes:var(--cer-color-neutral-700);--cer-prose-quote-border:var(--cer-color-neutral-200);--cer-prose-code:var(--cer-color-neutral-800);--cer-prose-code-bg:var(--cer-color-neutral-100);--cer-prose-pre-code:var(--cer-color-neutral-800);--cer-prose-pre-bg:var(--cer-color-neutral-100);--cer-prose-pre-border:var(--cer-color-neutral-200);--cer-prose-hr:var(--cer-color-neutral-200);--cer-prose-caps:var(--cer-color-neutral-600);--cer-prose-list-marker:var(--cer-color-neutral-600);--cer-prose-list-marker-strong:var(--cer-color-neutral-700);--cer-prose-counters:var(--cer-color-neutral-600);--cer-prose-bullets:var(--cer-color-neutral-400);--cer-prose-img-caption:var(--cer-color-neutral-600);--cer-prose-table-border:var(--cer-color-neutral-200);--cer-prose-table-head:var(--cer-color-neutral-700);color:var(--cer-prose-body);font-size:${t.fontSize};line-height:${t.lineHeight};max-width:65ch;}`
105
+ ), i.push(
106
+ `${r} p:not(.not-prose):not(.not-prose *){margin:${t.p} 0;}`
107
+ ), i.push(
108
+ `${r} .lead:not(.not-prose):not(.not-prose *),${r} [class~="lead"]:not(.not-prose):not(.not-prose *){font-size:1.25em;line-height:1.6;margin-top:${t.lead};margin-bottom:${t.lead};color:var(--cer-prose-lead);}`
109
+ ), i.push(
110
+ `${r} h1:not(.not-prose):not(.not-prose *),${r} h2:not(.not-prose):not(.not-prose *),${r} h3:not(.not-prose):not(.not-prose *),${r} h4:not(.not-prose):not(.not-prose *),${r} h5:not(.not-prose):not(.not-prose *),${r} h6:not(.not-prose):not(.not-prose *){color:var(--cer-prose-headings);font-weight:700;line-height:1.25;}`
111
+ ), i.push(
112
+ `${r} h1:not(.not-prose):not(.not-prose *){font-size:${t.h1};margin-top:0;margin-bottom:0.8888889em;line-height:1.1111111;}`
113
+ ), i.push(
114
+ `${r} h2:not(.not-prose):not(.not-prose *){font-size:${t.h2};margin-top:2em;margin-bottom:1em;line-height:1.3333333;}`
115
+ ), i.push(
116
+ `${r} h3:not(.not-prose):not(.not-prose *){font-size:${t.h3};margin-top:1.6em;margin-bottom:0.6em;line-height:1.6;}`
117
+ ), i.push(
118
+ `${r} h4:not(.not-prose):not(.not-prose *){font-size:${t.h4};margin-top:1.5em;margin-bottom:0.5em;line-height:1.5;}`
119
+ ), i.push(
120
+ `${r} h5:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`
121
+ ), i.push(
122
+ `${r} h6:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`
123
+ ), i.push(
124
+ `${r} a:not(.not-prose):not(.not-prose *){color:var(--cer-prose-links);text-decoration:underline;text-decoration-thickness:.08em;text-underline-offset:.15em;font-weight:500;}`
125
+ ), i.push(
126
+ `${r} a:not(.not-prose):not(.not-prose *):hover,${r} a:not(.not-prose):not(.not-prose *):focus{color:var(--cer-prose-links-hover);}`
127
+ ), i.push(
128
+ `${r} strong:not(.not-prose):not(.not-prose *){color:var(--cer-prose-bold);font-weight:600;}`
129
+ ), i.push(
130
+ `${r} em:not(.not-prose):not(.not-prose *){font-style:italic;}`
131
+ ), i.push(
132
+ `${r} ol:not(.not-prose):not(.not-prose *){list-style-type:decimal;margin-top:${t.ol};margin-bottom:${t.ol};padding-left:1.625em;}`
133
+ ), i.push(
134
+ `${r} ol:not(.not-prose):not(.not-prose *)[type="A"]{list-style-type:upper-alpha;}`
135
+ ), i.push(
136
+ `${r} ol:not(.not-prose):not(.not-prose *)[type="a"]{list-style-type:lower-alpha;}`
137
+ ), i.push(
138
+ `${r} ol:not(.not-prose):not(.not-prose *)[type="I"]{list-style-type:upper-roman;}`
139
+ ), i.push(
140
+ `${r} ol:not(.not-prose):not(.not-prose *)[type="i"]{list-style-type:lower-roman;}`
141
+ ), i.push(
142
+ `${r} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${t.li};}`
143
+ ), i.push(
144
+ `${r} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-counters);font-weight:400;}`
145
+ ), i.push(
146
+ `${r} ul:not(.not-prose):not(.not-prose *){list-style-type:disc;margin-top:${t.ul};margin-bottom:${t.ul};padding-left:1.625em;}`
147
+ ), i.push(
148
+ `${r} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${t.li};}`
149
+ ), i.push(
150
+ `${r} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-bullets);}`
151
+ ), i.push(
152
+ `${r} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:first-child,${r} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:first-child{margin-top:${t.ol};}`
153
+ ), i.push(
154
+ `${r} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:last-child,${r} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:last-child{margin-bottom:${t.ol};}`
155
+ ), i.push(
156
+ `${r} ul:not(.not-prose):not(.not-prose *) ul:not(.not-prose):not(.not-prose *),${r} ul:not(.not-prose):not(.not-prose *) ol:not(.not-prose):not(.not-prose *),${r} ol:not(.not-prose):not(.not-prose *) ul:not(.not-prose):not(.not-prose *),${r} ol:not(.not-prose):not(.not-prose *) ol:not(.not-prose):not(.not-prose *){margin-top:0.75em;margin-bottom:0.75em;}`
157
+ ), i.push(
158
+ `${r} li:not(.not-prose):not(.not-prose *)>p:not(.not-prose):not(.not-prose *){margin-top:${t.ol};margin-bottom:${t.ol};}`
159
+ ), i.push(
160
+ `${r} code:not(.not-prose):not(.not-prose *){color:var(--cer-prose-code);background-color:var(--cer-prose-code-bg);border-radius:0.25rem;padding:0.125rem 0.25rem;font-size:${t.code};font-weight:600;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;}`
161
+ ), i.push(
162
+ `${r} pre:not(.not-prose):not(.not-prose *){color:var(--cer-prose-pre-code);background-color:var(--cer-prose-pre-bg);border:1px solid var(--cer-prose-pre-border);overflow-x:auto;font-size:${t.pre};line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:0.375rem;padding:0.8571429em 1.1428571em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;white-space:pre;overflow-wrap:normal;}`
163
+ ), i.push(
164
+ `${r} pre:not(.not-prose):not(.not-prose *) code:not(.not-prose):not(.not-prose *){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;line-height:inherit;}`
165
+ ), i.push(
166
+ `${r} blockquote:not(.not-prose):not(.not-prose *){font-weight:500;font-style:italic;color:var(--cer-prose-quotes);border-left-width:0.25rem;border-left-color:var(--cer-prose-quote-border);quotes:"\\201C""\\201D""\\2018""\\2019";margin-top:${t.blockquote};margin-bottom:${t.blockquote};padding-left:1em;}`
167
+ ), i.push(
168
+ `${r} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):first-of-type::before{content:open-quote;}`
169
+ ), i.push(
170
+ `${r} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):last-of-type::after{content:close-quote;}`
171
+ ), i.push(
172
+ `${r} hr:not(.not-prose):not(.not-prose *){border-color:var(--cer-prose-hr);border-top-width:1px;margin-top:${t.hr};margin-bottom:${t.hr};}`
173
+ ), i.push(
174
+ `${r} figure:not(.not-prose):not(.not-prose *){margin-top:${t.figure};margin-bottom:${t.figure};}`
175
+ ), i.push(
176
+ `${r} figure:not(.not-prose):not(.not-prose *)>*{margin-top:0;margin-bottom:0;}`
177
+ ), i.push(
178
+ `${r} figcaption:not(.not-prose):not(.not-prose *){color:var(--cer-prose-img-caption);font-size:0.875em;line-height:1.4285714;margin-top:0.75em;}`
179
+ ), i.push(
180
+ `${r} img:not(.not-prose):not(.not-prose *),${r} video:not(.not-prose):not(.not-prose *),${r} picture:not(.not-prose):not(.not-prose *){margin-top:${t.figure};margin-bottom:${t.figure};max-width:100%;height:auto;}`
181
+ ), i.push(
182
+ `${r} figure:not(.not-prose):not(.not-prose *)>img:not(.not-prose):not(.not-prose *),${r} figure:not(.not-prose):not(.not-prose *)>video:not(.not-prose):not(.not-prose *),${r} figure:not(.not-prose):not(.not-prose *)>picture:not(.not-prose):not(.not-prose *){margin-top:0;margin-bottom:0;}`
183
+ ), i.push(
184
+ `${r} table:not(.not-prose):not(.not-prose *){width:100%;table-layout:auto;text-align:left;margin-top:${t.table};margin-bottom:${t.table};font-size:0.875em;line-height:1.7142857;}`
185
+ ), i.push(
186
+ `${r} thead:not(.not-prose):not(.not-prose *){border-bottom-width:1px;border-bottom-color:var(--cer-prose-table-border);}`
187
+ ), i.push(
188
+ `${r} thead:not(.not-prose):not(.not-prose *) th:not(.not-prose):not(.not-prose *){color:var(--cer-prose-table-head);font-weight:600;vertical-align:bottom;padding-right:0.5714286em;padding-bottom:0.5714286em;padding-left:0.5714286em;}`
189
+ ), i.push(
190
+ `${r} tbody:not(.not-prose):not(.not-prose *) tr:not(.not-prose):not(.not-prose *){border-bottom-width:1px;border-bottom-color:var(--cer-prose-table-border);}`
191
+ ), i.push(
192
+ `${r} tbody:not(.not-prose):not(.not-prose *) tr:not(.not-prose):not(.not-prose *):last-child{border-bottom-width:0;}`
193
+ ), i.push(
194
+ `${r} tbody:not(.not-prose):not(.not-prose *) td:not(.not-prose):not(.not-prose *){vertical-align:baseline;padding:0.5714286em;}`
195
+ ), i.join("");
196
+ }
197
+ const Oe = {
198
+ headings: "h1,h2,h3,h4,h5,h6,th",
199
+ h1: "h1",
200
+ h2: "h2",
201
+ h3: "h3",
202
+ h4: "h4",
203
+ h5: "h5",
204
+ h6: "h6",
205
+ p: "p",
206
+ a: "a",
207
+ blockquote: "blockquote",
208
+ figure: "figure",
209
+ figcaption: "figcaption",
210
+ strong: "strong",
211
+ em: "em",
212
+ kbd: "kbd",
213
+ code: "code",
214
+ pre: "pre",
215
+ ol: "ol",
216
+ ul: "ul",
217
+ li: "li",
218
+ dl: "dl",
219
+ dt: "dt",
220
+ dd: "dd",
221
+ table: "table",
222
+ thead: "thead",
223
+ tbody: "tbody",
224
+ tr: "tr",
225
+ th: "th",
226
+ td: "td",
227
+ img: "img",
228
+ picture: "picture",
229
+ video: "video",
230
+ hr: "hr",
231
+ lead: '[class~="lead"]'
232
+ };
233
+ function Re(e, o, a, t, r, i, l, $) {
234
+ const n = e.match(/^prose-([a-z0-9]+):(.+)$/);
235
+ if (!n) return null;
236
+ const [, c, f] = n, j = Oe[c];
237
+ if (!j) return null;
238
+ const y = o[f] ?? a(f) ?? t(f) ?? r(f) ?? i(f) ?? l(f) ?? $(f);
239
+ if (!y) return null;
240
+ const F = ve(e);
241
+ return j.split(",").map((g) => {
242
+ const h = g.trim();
243
+ return `${`.${F} ${h}:not(.not-prose):not(.not-prose *)`}{${y}}`;
244
+ }).join("");
245
+ }
246
+ const Me = `/*
247
+ * Custom Elements Variables CSS
248
+ * CSS variables for colors and fonts
249
+ */
250
+
251
+ :root,
252
+ :host {
253
+ /* Font families (match runtime defaults in src/lib/runtime/style.ts) */
254
+ --cer-font-sans:
255
+ ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
256
+ 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
257
+ --cer-font-serif: ui-serif, Georgia, 'Times New Roman', Times, serif;
258
+ --cer-font-mono:
259
+ ui-monospace, 'SFMono-Regular', Menlo, Monaco, 'Roboto Mono', 'Courier New',
260
+ monospace;
261
+
262
+ /* Default outline style */
263
+ --cer-outline-style: solid;
264
+
265
+ /* Colors */
266
+ --cer-color-transparent: transparent;
267
+ --cer-color-current: currentColor;
268
+ --cer-color-black: #000000;
269
+ --cer-color-white: #ffffff;
270
+ --cer-color-inherit: inherit;
271
+
272
+ /* neutral */
273
+ --cer-color-neutral-50: #fafafa;
274
+ --cer-color-neutral-100: #f4f4f5;
275
+ --cer-color-neutral-200: #e4e4e7;
276
+ --cer-color-neutral-300: #d4d4d8;
277
+ --cer-color-neutral-400: #9f9fa9;
278
+ --cer-color-neutral-500: #71717b;
279
+ --cer-color-neutral-600: #52525c;
280
+ --cer-color-neutral-700: #3f3f46;
281
+ --cer-color-neutral-800: #27272a;
282
+ --cer-color-neutral-900: #18181b;
283
+ --cer-color-neutral-950: #09090b;
284
+
285
+ /* primary */
286
+ --cer-color-primary-50: #eff6ff;
287
+ --cer-color-primary-100: #dbeafe;
288
+ --cer-color-primary-200: #bfdbfe;
289
+ --cer-color-primary-300: #93c5fd;
290
+ --cer-color-primary-400: #60a5fa;
291
+ --cer-color-primary-500: #3b82f6;
292
+ --cer-color-primary-600: #2563eb;
293
+ --cer-color-primary-700: #1d4ed8;
294
+ --cer-color-primary-800: #1e40af;
295
+ --cer-color-primary-900: #1e3a8a;
296
+ --cer-color-primary-950: #172554;
297
+
298
+ /* secondary */
299
+ --cer-color-secondary-50: #eef2ff;
300
+ --cer-color-secondary-100: #e0e7ff;
301
+ --cer-color-secondary-200: #c7d2fe;
302
+ --cer-color-secondary-300: #a5b4fc;
303
+ --cer-color-secondary-400: #818cf8;
304
+ --cer-color-secondary-500: #6366f1;
305
+ --cer-color-secondary-600: #4f46e5;
306
+ --cer-color-secondary-700: #4338ca;
307
+ --cer-color-secondary-800: #3730a3;
308
+ --cer-color-secondary-900: #312e81;
309
+ --cer-color-secondary-950: #1e1b4b;
310
+
311
+ /* success */
312
+ --cer-color-success-50: #f0fdf4;
313
+ --cer-color-success-100: #dcfce7;
314
+ --cer-color-success-200: #bbf7d0;
315
+ --cer-color-success-300: #86efac;
316
+ --cer-color-success-400: #4ade80;
317
+ --cer-color-success-500: #22c55e;
318
+ --cer-color-success-600: #16a34a;
319
+ --cer-color-success-700: #15803d;
320
+ --cer-color-success-800: #166534;
321
+ --cer-color-success-900: #14532d;
322
+ --cer-color-success-950: #052e16;
323
+
324
+ /* info */
325
+ --cer-color-info-50: #f0f9ff;
326
+ --cer-color-info-100: #e0f2fe;
327
+ --cer-color-info-200: #bae6fd;
328
+ --cer-color-info-300: #7dd3fc;
329
+ --cer-color-info-400: #38bdf8;
330
+ --cer-color-info-500: #0ea5e9;
331
+ --cer-color-info-600: #0284c7;
332
+ --cer-color-info-700: #0369a1;
333
+ --cer-color-info-800: #075985;
334
+ --cer-color-info-900: #0c4a6e;
335
+ --cer-color-info-950: #082f49;
336
+
337
+ /* warning */
338
+ --cer-color-warning-50: #fffbeb;
339
+ --cer-color-warning-100: #fef3c7;
340
+ --cer-color-warning-200: #fde68a;
341
+ --cer-color-warning-300: #fcd34d;
342
+ --cer-color-warning-400: #fbbf24;
343
+ --cer-color-warning-500: #f59e0b;
344
+ --cer-color-warning-600: #d97706;
345
+ --cer-color-warning-700: #b45309;
346
+ --cer-color-warning-800: #92400e;
347
+ --cer-color-warning-900: #78350f;
348
+ --cer-color-warning-950: #451a03;
349
+
350
+ /* error */
351
+ --cer-color-error-50: #fef2f2;
352
+ --cer-color-error-100: #fee2e2;
353
+ --cer-color-error-200: #fecaca;
354
+ --cer-color-error-300: #fca5a5;
355
+ --cer-color-error-400: #f87171;
356
+ --cer-color-error-500: #ef4444;
357
+ --cer-color-error-600: #dc2626;
358
+ --cer-color-error-700: #b91c1c;
359
+ --cer-color-error-800: #991b1b;
360
+ --cer-color-error-900: #7f1d1d;
361
+ --cer-color-error-950: #450a0a;
362
+ }
363
+ `;
364
+ function _e(e, ...o) {
365
+ let a = "";
366
+ for (let t = 0; t < e.length; t++)
367
+ a += e[t], t < o.length && (a += o[t]);
368
+ return a;
369
+ }
370
+ function we(e) {
371
+ return e.replace(/\/\*[\s\S]*?\*\//g, "").replace(/\s+/g, " ").replace(/\s*([{}:;,>+~])\s*/g, "$1").replace(/;}/g, "}").trim();
372
+ }
373
+ let ee = null;
374
+ function Ye() {
375
+ return ee || (typeof CSSStyleSheet > "u" ? ee = {
376
+ cssRules: [],
377
+ replaceSync: () => {
378
+ },
379
+ toString: () => we(ye)
380
+ } : (ee = new CSSStyleSheet(), ee.replaceSync(we(ye)))), ee;
381
+ }
382
+ let U = null;
383
+ const be = /* @__PURE__ */ new Set();
384
+ let ce = "";
385
+ function Pe() {
386
+ if (be.size === 0) return null;
387
+ U || (typeof CSSStyleSheet > "u" ? U = {
388
+ cssRules: [],
389
+ replaceSync: () => {
390
+ },
391
+ toString: () => ce
392
+ } : (U = new CSSStyleSheet(), U.toString = () => ce));
393
+ let e = "";
394
+ for (const o of be) {
395
+ const a = Ae(o);
396
+ a && (e += a);
397
+ }
398
+ if (ce = we(e), typeof U.replaceSync == "function" && e)
399
+ try {
400
+ U.replaceSync(ce);
401
+ } catch {
402
+ }
403
+ return U;
404
+ }
405
+ function We(e) {
406
+ const o = !be.has(e);
407
+ be.add(e), o && U && Pe();
408
+ }
409
+ function er(e) {
410
+ return e.replace(/url\s*\(\s*['"]?javascript:[^)]*\)/gi, "").replace(/<script[\s\S]*?>[\s\S]*?<\/script>/gi, "").replace(/expression\s*\([^)]*\)/gi, "");
411
+ }
412
+ const ye = _e`
413
+ ${Me}
414
+ :host,
415
+ *,
416
+ ::before,
417
+ ::after {
418
+ all: isolate;
419
+ box-sizing: border-box;
420
+ border: 0 solid currentColor;
421
+ margin: 0;
422
+ padding: 0;
423
+ font: inherit;
424
+ vertical-align: baseline;
425
+ background: transparent;
426
+ color: inherit;
427
+ -webkit-tap-highlight-color: transparent;
428
+ }
429
+ :host {
430
+ display: contents;
431
+ font: 16px/1.5 var(--cer-font-sans, ui-sans-serif, system-ui, sans-serif);
432
+ /* Default CE line-height variable so leading-* can reliably override */
433
+ --cer-line-height: 1.5;
434
+ -webkit-text-size-adjust: 100%;
435
+ text-size-adjust: 100%;
436
+ -webkit-font-smoothing: antialiased;
437
+ -moz-osx-font-smoothing: grayscale;
438
+ /* Default gradient variables to avoid undefined var() usage in generated utilities */
439
+ --cer-gradient-from-position: 0%;
440
+ --cer-gradient-to-position: 100%;
441
+ --cer-gradient-via-position: 50%;
442
+ --cer-gradient-from: rgba(255, 255, 255, 0);
443
+ --cer-gradient-to: rgba(255, 255, 255, 0);
444
+ --cer-gradient-stops: var(--cer-gradient-from), var(--cer-gradient-to);
445
+ /* Default outline style variable */
446
+ --cer-outline-style: solid;
447
+ }
448
+ button,
449
+ input,
450
+ select,
451
+ textarea {
452
+ background: transparent;
453
+ outline: none;
454
+ }
455
+ textarea {
456
+ resize: vertical;
457
+ }
458
+ progress {
459
+ vertical-align: baseline;
460
+ }
461
+ button,
462
+ textarea {
463
+ overflow: visible;
464
+ }
465
+ img,
466
+ svg,
467
+ video,
468
+ canvas,
469
+ audio,
470
+ iframe,
471
+ embed,
472
+ object {
473
+ display: block;
474
+ max-width: 100%;
475
+ height: auto;
476
+ }
477
+ svg {
478
+ fill: currentColor;
479
+ stroke: none;
480
+ }
481
+ a {
482
+ text-decoration: inherit;
483
+ cursor: pointer;
484
+ }
485
+ button,
486
+ [type='button'],
487
+ [type='reset'],
488
+ [type='submit'] {
489
+ cursor: pointer;
490
+ appearance: button;
491
+ background: none;
492
+ -webkit-user-select: none;
493
+ user-select: none;
494
+ }
495
+ ::-webkit-input-placeholder,
496
+ ::placeholder {
497
+ color: inherit;
498
+ opacity: 0.5;
499
+ }
500
+ *:focus-visible {
501
+ outline: 2px solid var(--cer-color-primary-500, #3b82f6);
502
+ outline-offset: 2px;
503
+ }
504
+ ol,
505
+ ul {
506
+ list-style: none;
507
+ }
508
+ table {
509
+ border-collapse: collapse;
510
+ }
511
+ sub,
512
+ sup {
513
+ font-size: 0.75em;
514
+ line-height: 0;
515
+ position: relative;
516
+ }
517
+ sub {
518
+ bottom: -0.25em;
519
+ }
520
+ sup {
521
+ top: -0.5em;
522
+ }
523
+ [disabled],
524
+ [aria-disabled='true'] {
525
+ cursor: not-allowed;
526
+ }
527
+ [hidden] {
528
+ display: none;
529
+ }
530
+ `, Le = {
531
+ // Existing semantic colors
532
+ neutral: {
533
+ 50: "#fafafa",
534
+ 100: "#f4f4f5",
535
+ 200: "#e4e4e7",
536
+ 300: "#d4d4d8",
537
+ 400: "#9f9fa9",
538
+ 500: "#71717b",
539
+ 600: "#52525c",
540
+ 700: "#3f3f46",
541
+ 800: "#27272a",
542
+ 900: "#18181b",
543
+ 950: "#09090b"
544
+ },
545
+ primary: {
546
+ 50: "#eff6ff",
547
+ 100: "#dbeafe",
548
+ 200: "#bfdbfe",
549
+ 300: "#93c5fd",
550
+ 400: "#60a5fa",
551
+ 500: "#3b82f6",
552
+ 600: "#2563eb",
553
+ 700: "#1d4ed8",
554
+ 800: "#1e40af",
555
+ 900: "#1e3a8a",
556
+ 950: "#172554"
557
+ },
558
+ secondary: {
559
+ 50: "#eef2ff",
560
+ 100: "#e0e7ff",
561
+ 200: "#c7d2fe",
562
+ 300: "#a5b4fc",
563
+ 400: "#818cf8",
564
+ 500: "#6366f1",
565
+ 600: "#4f46e5",
566
+ 700: "#4338ca",
567
+ 800: "#3730a3",
568
+ 900: "#312e81",
569
+ 950: "#1e1b4b"
570
+ },
571
+ success: {
572
+ 50: "#f0fdf4",
573
+ 100: "#dcfce7",
574
+ 200: "#bbf7d0",
575
+ 300: "#86efac",
576
+ 400: "#4ade80",
577
+ 500: "#22c55e",
578
+ 600: "#16a34a",
579
+ 700: "#15803d",
580
+ 800: "#166534",
581
+ 900: "#14532d",
582
+ 950: "#052e16"
583
+ },
584
+ info: {
585
+ 50: "#f0f9ff",
586
+ 100: "#e0f2fe",
587
+ 200: "#bae6fd",
588
+ 300: "#7dd3fc",
589
+ 400: "#38bdf8",
590
+ 500: "#0ea5e9",
591
+ 600: "#0284c7",
592
+ 700: "#0369a1",
593
+ 800: "#075985",
594
+ 900: "#0c4a6e",
595
+ 950: "#082f49"
596
+ },
597
+ warning: {
598
+ 50: "#fffbeb",
599
+ 100: "#fef3c7",
600
+ 200: "#fde68a",
601
+ 300: "#fcd34d",
602
+ 400: "#fbbf24",
603
+ 500: "#f59e0b",
604
+ 600: "#d97706",
605
+ 700: "#b45309",
606
+ 800: "#92400e",
607
+ 900: "#78350f",
608
+ 950: "#451a03"
609
+ },
610
+ error: {
611
+ 50: "#fef2f2",
612
+ 100: "#fee2e2",
613
+ 200: "#fecaca",
614
+ 300: "#fca5a5",
615
+ 400: "#f87171",
616
+ 500: "#ef4444",
617
+ 600: "#dc2626",
618
+ 700: "#b91c1c",
619
+ 800: "#991b1b",
620
+ 900: "#7f1d1d",
621
+ 950: "#450a0a"
622
+ },
623
+ // Special colors
624
+ white: { DEFAULT: "#ffffff" },
625
+ black: { DEFAULT: "#000000" },
626
+ transparent: { DEFAULT: "transparent" },
627
+ current: { DEFAULT: "currentColor" }
628
+ }, ze = Object.fromEntries(
629
+ Object.entries(Le).map(([e, o]) => [
630
+ e,
631
+ Object.fromEntries(
632
+ Object.entries(o).map(([a, t]) => [
633
+ a,
634
+ `var(--cer-color-${e}${a === "DEFAULT" ? "" : `-${a}`}, ${t})`
635
+ ])
636
+ )
637
+ ])
638
+ ), K = "0.25rem", qe = {
639
+ "3xs": 64,
640
+ "2xs": 72,
641
+ xs: 80,
642
+ sm: 96,
643
+ md: 112,
644
+ lg: 128,
645
+ xl: 144,
646
+ "2xl": 168,
647
+ "3xl": 192,
648
+ "4xl": 224,
649
+ "5xl": 256,
650
+ "6xl": 288,
651
+ "7xl": 320
652
+ }, xe = {
653
+ m: ["margin"],
654
+ mx: ["margin-inline"],
655
+ my: ["margin-block"],
656
+ mt: ["margin-top"],
657
+ mr: ["margin-right"],
658
+ mb: ["margin-bottom"],
659
+ ml: ["margin-left"],
660
+ p: ["padding"],
661
+ px: ["padding-inline"],
662
+ py: ["padding-block"],
663
+ pt: ["padding-top"],
664
+ pr: ["padding-right"],
665
+ pb: ["padding-bottom"],
666
+ pl: ["padding-left"],
667
+ inset: ["inset"],
668
+ "inset-x": ["inset-inline"],
669
+ "inset-y": ["inset-block"],
670
+ h: ["height"],
671
+ w: ["width"],
672
+ "min-h": ["min-height"],
673
+ "min-w": ["min-width"],
674
+ "max-h": ["max-height"],
675
+ "max-w": ["max-width"],
676
+ top: ["top"],
677
+ bottom: ["bottom"],
678
+ left: ["left"],
679
+ right: ["right"],
680
+ gap: ["gap"],
681
+ "gap-x": ["column-gap"],
682
+ "gap-y": ["row-gap"]
683
+ }, De = () => {
684
+ const e = {};
685
+ e["@container"] = "container-type:inline-size;", [
686
+ "block",
687
+ "inline",
688
+ "inline-block",
689
+ "flex",
690
+ "inline-flex",
691
+ "grid",
692
+ "inline-grid",
693
+ "table",
694
+ "table-cell",
695
+ "table-row",
696
+ "hidden"
697
+ ].forEach((n) => {
698
+ e[n] = n === "hidden" ? "display:none;" : `display:${n};`;
699
+ }), ["absolute", "relative", "fixed", "sticky", "static"].forEach((n) => {
700
+ e[n] = `position:${n};`;
701
+ }), Object.assign(e, {
702
+ "items-center": "align-items:center;",
703
+ "items-start": "align-items:flex-start;",
704
+ "items-end": "align-items:flex-end;",
705
+ "items-baseline": "align-items:baseline;",
706
+ "items-stretch": "align-items:stretch;",
707
+ "justify-center": "justify-content:center;",
708
+ "justify-start": "justify-content:flex-start;",
709
+ "justify-between": "justify-content:space-between;",
710
+ "justify-around": "justify-content:space-around;",
711
+ "justify-evenly": "justify-content:space-evenly;",
712
+ "justify-end": "justify-content:flex-end;",
713
+ "flex-wrap": "flex-wrap:wrap;",
714
+ "flex-nowrap": "flex-wrap:nowrap;",
715
+ "flex-wrap-reverse": "flex-wrap:wrap-reverse;",
716
+ "content-center": "align-content:center;",
717
+ "content-start": "align-content:flex-start;",
718
+ "content-end": "align-content:flex-end;",
719
+ "content-between": "align-content:space-between;",
720
+ "content-around": "align-content:space-around;",
721
+ "content-evenly": "align-content:space-evenly;",
722
+ "content-stretch": "align-content:stretch;",
723
+ "self-auto": "align-self:auto;",
724
+ "self-start": "align-self:flex-start;",
725
+ "self-end": "align-self:flex-end;",
726
+ "self-center": "align-self:center;",
727
+ "self-stretch": "align-self:stretch;",
728
+ "flex-col": "flex-direction:column;",
729
+ "flex-row": "flex-direction:row;",
730
+ "flex-col-reverse": "flex-direction:column-reverse;",
731
+ "flex-row-reverse": "flex-direction:row-reverse;",
732
+ "flex-1": "flex:1 1 0%;",
733
+ "flex-auto": "flex:1 1 auto;",
734
+ "flex-initial": "flex:0 1 auto;",
735
+ "flex-none": "flex:0 0 auto;",
736
+ grow: "flex-grow:1;",
737
+ shrink: "flex-shrink:1;",
738
+ "grow-0": "flex-grow:0;",
739
+ "shrink-0": "flex-shrink:0;"
740
+ });
741
+ for (let n = 1; n <= 12; n++)
742
+ e[`grid-cols-${n}`] = `grid-template-columns:repeat(${n},minmax(0,1fr));`, e[`grid-rows-${n}`] = `grid-template-rows:repeat(${n},minmax(0,1fr));`, e[`col-span-${n}`] = `grid-column:span ${n} / span ${n};`, e[`row-span-${n}`] = `grid-row:span ${n} / span ${n};`, e[`col-start-${n}`] = `grid-column-start:${n};`, e[`col-end-${n}`] = `grid-column-end:${n};`, e[`row-start-${n}`] = `grid-row-start:${n};`, e[`row-end-${n}`] = `grid-row-end:${n};`;
743
+ Object.assign(e, {
744
+ "grid-cols-none": "grid-template-columns:none;",
745
+ "grid-rows-none": "grid-template-rows:none;",
746
+ "col-span-full": "grid-column:1 / -1;",
747
+ "row-span-full": "grid-row:1 / -1;",
748
+ "auto-cols-auto": "grid-auto-columns:auto;",
749
+ "auto-cols-min": "grid-auto-columns:min-content;",
750
+ "auto-cols-max": "grid-auto-columns:max-content;",
751
+ "auto-cols-fr": "grid-auto-columns:1fr;",
752
+ "auto-rows-auto": "grid-auto-rows:auto;",
753
+ "auto-rows-min": "grid-auto-rows:min-content;",
754
+ "auto-rows-max": "grid-auto-rows:max-content;",
755
+ "auto-rows-fr": "grid-auto-rows:1fr;",
756
+ "grid-flow-row": "grid-auto-flow:row;",
757
+ "grid-flow-col": "grid-auto-flow:column;",
758
+ "grid-flow-row-dense": "grid-auto-flow:row dense;",
759
+ "grid-flow-col-dense": "grid-auto-flow:column dense;"
760
+ }), Object.assign(e, {
761
+ "text-left": "text-align:left;",
762
+ "text-center": "text-align:center;",
763
+ "text-right": "text-align:right;",
764
+ "text-justify": "text-align:justify;",
765
+ "font-thin": "font-weight:100;",
766
+ "font-extralight": "font-weight:200;",
767
+ "font-light": "font-weight:300;",
768
+ "font-normal": "font-weight:400;",
769
+ "font-medium": "font-weight:500;",
770
+ "font-semibold": "font-weight:600;",
771
+ "font-bold": "font-weight:700;",
772
+ "font-extrabold": "font-weight:800;",
773
+ "font-black": "font-weight:900;",
774
+ italic: "font-style:italic;",
775
+ "not-italic": "font-style:normal;",
776
+ uppercase: "text-transform:uppercase;",
777
+ lowercase: "text-transform:lowercase;",
778
+ capitalize: "text-transform:capitalize;",
779
+ "normal-case": "text-transform:none;",
780
+ underline: "text-decoration-line:underline;",
781
+ overline: "text-decoration-line:overline;",
782
+ "line-through": "text-decoration-line:line-through;",
783
+ "no-underline": "text-decoration-line:none;",
784
+ truncate: "overflow:hidden;text-overflow:ellipsis;white-space:nowrap;",
785
+ "whitespace-normal": "white-space:normal;",
786
+ "whitespace-nowrap": "white-space:nowrap;",
787
+ "whitespace-pre": "white-space:pre;",
788
+ "whitespace-pre-line": "white-space:pre-line;",
789
+ "whitespace-pre-wrap": "white-space:pre-wrap;",
790
+ "break-normal": "overflow-wrap:normal;word-break:normal;",
791
+ "break-words": "overflow-wrap:break-word;",
792
+ "break-all": "word-break:break-all;"
793
+ }), [
794
+ ["text-xs", "0.75rem", "1"],
795
+ ["text-sm", "0.875rem", "1.25"],
796
+ ["text-base", "1rem", "1.5"],
797
+ ["text-lg", "1.125rem", "1.75"],
798
+ ["text-xl", "1.25rem", "1.75"],
799
+ ["text-2xl", "1.5rem", "2"],
800
+ ["text-3xl", "1.875rem", "2.25"],
801
+ ["text-4xl", "2.25rem", "2.5"],
802
+ ["text-5xl", "3rem", "1"],
803
+ ["text-6xl", "3.75rem", "1"],
804
+ ["text-7xl", "4.5rem", "1"],
805
+ ["text-8xl", "6rem", "1"],
806
+ ["text-9xl", "8rem", "1"]
807
+ ].forEach(([n, c, f]) => {
808
+ e[n] = `font-size:${c};line-height:var(--cer-line-height,${f});`;
809
+ }), [
810
+ ["tracking-tighter", "-0.05em"],
811
+ ["tracking-tight", "-0.025em"],
812
+ ["tracking-normal", "0em"],
813
+ ["tracking-wide", "0.025em"],
814
+ ["tracking-wider", "0.05em"],
815
+ ["tracking-widest", "0.1em"]
816
+ ].forEach(([n, c]) => {
817
+ e[n] = `letter-spacing:${c};`;
818
+ }), [
819
+ ["leading-3", "0.75rem"],
820
+ ["leading-4", "1rem"],
821
+ ["leading-5", "1.25rem"],
822
+ ["leading-6", "1.5rem"],
823
+ ["leading-7", "1.75rem"],
824
+ ["leading-8", "2rem"],
825
+ ["leading-9", "2.25rem"],
826
+ ["leading-10", "2.5rem"],
827
+ ["leading-none", "1"],
828
+ ["leading-tight", "1.25"],
829
+ ["leading-snug", "1.375"],
830
+ ["leading-normal", "1.5"],
831
+ ["leading-relaxed", "1.625"],
832
+ ["leading-loose", "2"]
833
+ ].forEach(([n, c]) => {
834
+ e[n] = `line-height:${c};--cer-line-height:${c};line-height:var(--cer-line-height,${c});`;
835
+ });
836
+ const i = [0, 1, 2, 4, 6, 8];
837
+ for (const n of i) {
838
+ const c = `${n}px`;
839
+ e[`outline-${n}`] = `outline-style:var(--cer-outline-style);outline-width:${c};`, e[`outline-offset-${n}`] = `outline-offset:${c};`, e[`border-${n}`] = `border-width:${c};`, e[`border-t-${n}`] = `border-top-width:${c};`, e[`border-r-${n}`] = `border-right-width:${c};`, e[`border-b-${n}`] = `border-bottom-width:${c};`, e[`border-l-${n}`] = `border-left-width:${c};`, e[`border-x-${n}`] = `border-left-width:${c};border-right-width:${c};`, e[`border-y-${n}`] = `border-top-width:${c};border-bottom-width:${c};`;
840
+ }
841
+ Object.assign(e, {
842
+ "font-sans": "font-family:var(--cer-font-sans, ui-sans-serif,system-ui,sans-serif);",
843
+ "font-serif": "font-family:var(--cer-font-serif, ui-serif,Georgia,serif);",
844
+ "font-mono": "font-family:var(--cer-font-mono, ui-monospace,SFMono-Regular,monospace);",
845
+ outline: "outline-style:var(--cer-outline-style);outline-width:1px;",
846
+ "outline-solid": "--cer-outline-style:solid;outline-style:solid;",
847
+ "outline-dashed": "--cer-outline-style:dashed;outline-style:dashed;",
848
+ "outline-dotted": "--cer-outline-style:dotted;outline-style:dotted;",
849
+ "outline-double": "--cer-outline-style:double;outline-style:double;",
850
+ "outline-none": "--cer-outline-style:none;outline-style:none;",
851
+ "outline-hidden": "--cer-outline-style:none;outline:2px solid transparent;outline-offset:2px;",
852
+ border: "border-width:1px;",
853
+ "border-t": "border-top-width:1px;",
854
+ "border-r": "border-right-width:1px;",
855
+ "border-b": "border-bottom-width:1px;",
856
+ "border-l": "border-left-width:1px;",
857
+ "border-x": "border-left-width:1px;border-right-width:1px;",
858
+ "border-y": "border-top-width:1px;border-bottom-width:1px;",
859
+ "border-solid": "border-style:solid;",
860
+ "border-dashed": "border-style:dashed;",
861
+ "border-dotted": "border-style:dotted;",
862
+ "border-double": "border-style:double;",
863
+ "border-none": "border-style:none;"
864
+ });
865
+ const l = {
866
+ none: 0,
867
+ xs: 2,
868
+ sm: 4,
869
+ md: 6,
870
+ lg: 8,
871
+ xl: 12,
872
+ "2xl": 16,
873
+ "3xl": 24,
874
+ "4xl": 32,
875
+ full: 9999
876
+ };
877
+ for (const [n, c] of Object.entries(l)) {
878
+ const f = c === 9999 ? "9999px" : `${c / 16}rem`;
879
+ e[`rounded-${n}`] = `border-radius:${f};`, e[`rounded-t-${n}`] = `border-top-left-radius:${f};border-top-right-radius:${f};`, e[`rounded-r-${n}`] = `border-top-right-radius:${f};border-bottom-right-radius:${f};`, e[`rounded-b-${n}`] = `border-bottom-left-radius:${f};border-bottom-right-radius:${f};`, e[`rounded-l-${n}`] = `border-top-left-radius:${f};border-bottom-left-radius:${f};`, e[`rounded-tl-${n}`] = `border-top-left-radius:${f};`, e[`rounded-tr-${n}`] = `border-top-right-radius:${f};`, e[`rounded-br-${n}`] = `border-bottom-right-radius:${f};`, e[`rounded-bl-${n}`] = `border-bottom-left-radius:${f};`;
880
+ }
881
+ Object.assign(e, {
882
+ "shadow-none": "--cer-shadow-color:rgb(0 0 0 / 0);box-shadow:0 0 var(--cer-shadow-color, #0000);",
883
+ "shadow-xs": "--cer-shadow-color:rgb(0 0 0 / 0.05);box-shadow:0 1px 2px 0 var(--cer-shadow-color, rgb(0 0 0 / 0.05));",
884
+ "shadow-sm": "--cer-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 1px 3px 0 var(--cer-shadow-color, rgb(0 0 0 / 0.1)),0 1px 2px -1px var(--cer-shadow-color, rgb(0 0 0 / 0.1));",
885
+ shadow: "--cer-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 1px 3px 0 var(--cer-shadow-color, rgb(0 0 0 / 0.1)),0 1px 2px -1px var(--cer-shadow-color, rgb(0 0 0 / 0.1));",
886
+ "shadow-md": "--cer-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 4px 6px -1px var(--cer-shadow-color, rgb(0 0 0 / 0.1)),0 2px 4px -2px var(--cer-shadow-color, rgb(0 0 0 / 0.1));",
887
+ "shadow-lg": "--cer-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 10px 15px -3px var(--cer-shadow-color, rgb(0 0 0 / 0.1)),0 4px 6px -4px var(--cer-shadow-color, rgb(0 0 0 / 0.1));",
888
+ "shadow-xl": "--cer-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 20px 25px -5px var(--cer-shadow-color, rgb(0 0 0 / 0.1)),0 8px 10px -6px var(--cer-shadow-color, rgb(0 0 0 / 0.1));",
889
+ "shadow-2xl": "--cer-shadow-color:rgb(0 0 0 / 0.25);box-shadow:0 25px 50px -12px var(--cer-shadow-color, rgb(0 0 0 / 0.25));",
890
+ "shadow-inner": "box-shadow:inset 0 2px 4px 0 rgb(0 0 0 / 0.05);"
891
+ }), Object.assign(e, {
892
+ rounded: "border-radius:0.25rem;"
893
+ }), Object.assign(e, {
894
+ "overflow-auto": "overflow:auto;",
895
+ "overflow-hidden": "overflow:hidden;",
896
+ "overflow-visible": "overflow:visible;",
897
+ "overflow-scroll": "overflow:scroll;",
898
+ "overflow-x-auto": "overflow-x:auto;",
899
+ "overflow-x-hidden": "overflow-x:hidden;",
900
+ "overflow-x-visible": "overflow-x:visible;",
901
+ "overflow-x-scroll": "overflow-x:scroll;",
902
+ "overflow-y-auto": "overflow-y:auto;",
903
+ "overflow-y-hidden": "overflow-y:hidden;",
904
+ "overflow-y-visible": "overflow-y:visible;",
905
+ "overflow-y-scroll": "overflow-y:scroll;"
906
+ });
907
+ const $ = [
908
+ "auto",
909
+ "default",
910
+ "pointer",
911
+ "wait",
912
+ "text",
913
+ "move",
914
+ "help",
915
+ "not-allowed",
916
+ "grab",
917
+ "grabbing"
918
+ ];
919
+ for (const n of $) e[`cursor-${n}`] = `cursor:${n};`;
920
+ for (const n of [0, 10, 20, 30, 40, 50]) e[`z-${n}`] = `z-index:${n};`;
921
+ Object.assign(e, {
922
+ "sr-only": "position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;",
923
+ "not-sr-only": "position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal;",
924
+ "pointer-events-none": "pointer-events:none;",
925
+ "pointer-events-auto": "pointer-events:auto;",
926
+ visible: "visibility:visible;",
927
+ invisible: "visibility:hidden;"
928
+ }), Object.assign(e, {
929
+ "w-full": "width:100%;",
930
+ "w-screen": "width:100dvw;",
931
+ "h-full": "height:100%;",
932
+ "h-screen": "height:100dvh;",
933
+ "max-w-full": "max-width:100%;",
934
+ "max-h-full": "max-height:100%;",
935
+ "max-w-screen": "max-width:100dvw;",
936
+ "max-h-screen": "max-height:100dvh;",
937
+ "min-w-0": "min-width:0;",
938
+ "min-h-0": "min-height:0;",
939
+ "min-w-full": "min-width:100%;",
940
+ "min-h-full": "min-height:100%;",
941
+ "min-w-screen": "min-width:100dvw;",
942
+ "min-h-screen": "min-height:100dvh;",
943
+ "w-auto": "width:auto;",
944
+ "h-auto": "height:auto;",
945
+ "w-fit": "width:fit-content;",
946
+ "h-fit": "height:fit-content;",
947
+ "w-min": "width:min-content;",
948
+ "h-min": "height:min-content;",
949
+ "w-max": "width:max-content;",
950
+ "h-max": "height:max-content;",
951
+ "m-auto": "margin:auto;",
952
+ "mx-auto": "margin-inline:auto;",
953
+ "my-auto": "margin-block:auto;"
954
+ });
955
+ for (const [n, c] of Object.entries(qe))
956
+ e[`max-w-${n}`] = `max-width:calc(${K} * ${c});`, e[`min-w-${n}`] = `min-width:calc(${K} * ${c});`, e[`w-${n}`] = `width:calc(${K} * ${c});`, e[`max-h-${n}`] = `max-height:calc(${K} * ${c});`, e[`min-h-${n}`] = `min-height:calc(${K} * ${c});`, e[`h-${n}`] = `height:calc(${K} * ${c});`;
957
+ Object.assign(e, {
958
+ transition: "transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;",
959
+ "transition-none": "transition-property:none;",
960
+ "transition-all": "transition-property:all;",
961
+ "transition-colors": "transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;",
962
+ "transition-shadow": "transition-property:box-shadow;",
963
+ "transition-opacity": "transition-property:opacity;",
964
+ "transition-transform": "transition-property:transform;",
965
+ "ease-linear": "transition-timing-function:linear;",
966
+ "ease-in": "transition-timing-function:ease-in;",
967
+ "ease-out": "transition-timing-function:ease-out;",
968
+ "ease-in-out": "transition-timing-function:ease-in-out;",
969
+ "duration-75": "transition-duration:75ms;",
970
+ "duration-100": "transition-duration:100ms;",
971
+ "duration-150": "transition-duration:150ms;",
972
+ "duration-200": "transition-duration:200ms;",
973
+ "duration-300": "transition-duration:300ms;",
974
+ "duration-500": "transition-duration:500ms;",
975
+ "duration-700": "transition-duration:700ms;",
976
+ "duration-1000": "transition-duration:1000ms;"
977
+ }), Object.assign(e, {
978
+ "scale-0": "transform:scale(0);",
979
+ "scale-50": "transform:scale(0.5);",
980
+ "scale-75": "transform:scale(0.75);",
981
+ "scale-90": "transform:scale(0.9);",
982
+ "scale-95": "transform:scale(0.95);",
983
+ "scale-100": "transform:scale(1);",
984
+ "scale-105": "transform:scale(1.05);",
985
+ "scale-110": "transform:scale(1.1);",
986
+ "scale-125": "transform:scale(1.25);",
987
+ "scale-150": "transform:scale(1.5);",
988
+ "rotate-0": "transform:rotate(0deg);",
989
+ "rotate-1": "transform:rotate(1deg);",
990
+ "rotate-2": "transform:rotate(2deg);",
991
+ "rotate-3": "transform:rotate(3deg);",
992
+ "rotate-6": "transform:rotate(6deg);",
993
+ "rotate-12": "transform:rotate(12deg);",
994
+ "rotate-45": "transform:rotate(45deg);",
995
+ "rotate-90": "transform:rotate(90deg);",
996
+ "rotate-180": "transform:rotate(180deg);",
997
+ "-rotate-1": "transform:rotate(-1deg);",
998
+ "-rotate-2": "transform:rotate(-2deg);",
999
+ "-rotate-3": "transform:rotate(-3deg);",
1000
+ "-rotate-6": "transform:rotate(-6deg);",
1001
+ "-rotate-12": "transform:rotate(-12deg);",
1002
+ "-rotate-45": "transform:rotate(-45deg);",
1003
+ "-rotate-90": "transform:rotate(-90deg);",
1004
+ "-rotate-180": "transform:rotate(-180deg);"
1005
+ }), Object.assign(e, {
1006
+ "aspect-auto": "aspect-ratio:auto;",
1007
+ "aspect-square": "aspect-ratio:1 / 1;",
1008
+ "aspect-video": "aspect-ratio:16 / 9;"
1009
+ }), Object.assign(e, {
1010
+ "object-contain": "object-fit:contain;",
1011
+ "object-cover": "object-fit:cover;",
1012
+ "object-fill": "object-fit:fill;",
1013
+ "object-none": "object-fit:none;",
1014
+ "object-scale-down": "object-fit:scale-down;",
1015
+ "object-bottom": "object-position:bottom;",
1016
+ "object-center": "object-position:center;",
1017
+ "object-left": "object-position:left;",
1018
+ "object-left-bottom": "object-position:left bottom;",
1019
+ "object-left-top": "object-position:left top;",
1020
+ "object-right": "object-position:right;",
1021
+ "object-right-bottom": "object-position:right bottom;",
1022
+ "object-right-top": "object-position:right top;",
1023
+ "object-top": "object-position:top;"
1024
+ });
1025
+ for (let n = 1; n <= 6; n++)
1026
+ e[`line-clamp-${n}`] = `display:-webkit-box;-webkit-line-clamp:${n};-webkit-box-orient:vertical;overflow:hidden;`;
1027
+ e["line-clamp-none"] = "overflow:visible;display:block;-webkit-box-orient:horizontal;-webkit-line-clamp:none;";
1028
+ for (let n = 1; n <= 12; n++)
1029
+ e[`order-${n}`] = `order:${n};`;
1030
+ e["order-first"] = "order:-9999;", e["order-last"] = "order:9999;", e["order-none"] = "order:0;";
1031
+ for (let n = 0; n <= 12; n++)
1032
+ n <= 1 || (e[`grow-${n}`] = `flex-grow:${n};`, e[`shrink-${n}`] = `flex-shrink:${n};`);
1033
+ return Object.assign(e, {
1034
+ // Linear gradients
1035
+ "bg-linear-to-t": "background-image:linear-gradient(to top, var(--cer-gradient-stops));",
1036
+ "bg-linear-to-tr": "background-image:linear-gradient(to top right, var(--cer-gradient-stops));",
1037
+ "bg-linear-to-r": "background-image:linear-gradient(to right, var(--cer-gradient-stops));",
1038
+ "bg-linear-to-br": "background-image:linear-gradient(to bottom right, var(--cer-gradient-stops));",
1039
+ "bg-linear-to-b": "background-image:linear-gradient(to bottom, var(--cer-gradient-stops));",
1040
+ "bg-linear-to-bl": "background-image:linear-gradient(to bottom left, var(--cer-gradient-stops));",
1041
+ "bg-linear-to-l": "background-image:linear-gradient(to left, var(--cer-gradient-stops));",
1042
+ "bg-linear-to-tl": "background-image:linear-gradient(to top left, var(--cer-gradient-stops));",
1043
+ // Radial gradients
1044
+ "bg-radial": "background-image:radial-gradient(ellipse at center, var(--cer-gradient-stops));",
1045
+ "bg-radial-at-t": "background-image:radial-gradient(ellipse at top, var(--cer-gradient-stops));",
1046
+ "bg-radial-at-tr": "background-image:radial-gradient(ellipse at top right, var(--cer-gradient-stops));",
1047
+ "bg-radial-at-r": "background-image:radial-gradient(ellipse at right, var(--cer-gradient-stops));",
1048
+ "bg-radial-at-br": "background-image:radial-gradient(ellipse at bottom right, var(--cer-gradient-stops));",
1049
+ "bg-radial-at-b": "background-image:radial-gradient(ellipse at bottom, var(--cer-gradient-stops));",
1050
+ "bg-radial-at-bl": "background-image:radial-gradient(ellipse at bottom left, var(--cer-gradient-stops));",
1051
+ "bg-radial-at-l": "background-image:radial-gradient(ellipse at left, var(--cer-gradient-stops));",
1052
+ "bg-radial-at-tl": "background-image:radial-gradient(ellipse at top left, var(--cer-gradient-stops));",
1053
+ "bg-radial-circle": "background-image:radial-gradient(circle at center, var(--cer-gradient-stops));",
1054
+ "bg-radial-circle-at-t": "background-image:radial-gradient(circle at top, var(--cer-gradient-stops));",
1055
+ "bg-radial-circle-at-tr": "background-image:radial-gradient(circle at top right, var(--cer-gradient-stops));",
1056
+ "bg-radial-circle-at-r": "background-image:radial-gradient(circle at right, var(--cer-gradient-stops));",
1057
+ "bg-radial-circle-at-br": "background-image:radial-gradient(circle at bottom right, var(--cer-gradient-stops));",
1058
+ "bg-radial-circle-at-b": "background-image:radial-gradient(circle at bottom, var(--cer-gradient-stops));",
1059
+ "bg-radial-circle-at-bl": "background-image:radial-gradient(circle at bottom left, var(--cer-gradient-stops));",
1060
+ "bg-radial-circle-at-l": "background-image:radial-gradient(circle at left, var(--cer-gradient-stops));",
1061
+ "bg-radial-circle-at-tl": "background-image:radial-gradient(circle at top left, var(--cer-gradient-stops));",
1062
+ // Conic gradients
1063
+ "bg-conic": "background-image:conic-gradient(from 0deg at center, var(--cer-gradient-stops));",
1064
+ "bg-conic-at-t": "background-image:conic-gradient(from 0deg at top, var(--cer-gradient-stops));",
1065
+ "bg-conic-at-tr": "background-image:conic-gradient(from 0deg at top right, var(--cer-gradient-stops));",
1066
+ "bg-conic-at-r": "background-image:conic-gradient(from 0deg at right, var(--cer-gradient-stops));",
1067
+ "bg-conic-at-br": "background-image:conic-gradient(from 0deg at bottom right, var(--cer-gradient-stops));",
1068
+ "bg-conic-at-b": "background-image:conic-gradient(from 0deg at bottom, var(--cer-gradient-stops));",
1069
+ "bg-conic-at-bl": "background-image:conic-gradient(from 0deg at bottom left, var(--cer-gradient-stops));",
1070
+ "bg-conic-at-l": "background-image:conic-gradient(from 0deg at left, var(--cer-gradient-stops));",
1071
+ "bg-conic-at-tl": "background-image:conic-gradient(from 0deg at top left, var(--cer-gradient-stops));"
1072
+ }), Object.assign(e, {
1073
+ // prose-invert: dark mode color inversion
1074
+ "prose-invert": `
1075
+ --cer-prose-body:var(--cer-color-neutral-200);
1076
+ --cer-prose-headings:var(--cer-color-neutral-50);
1077
+ --cer-prose-lead:var(--cer-color-neutral-300);
1078
+ --cer-prose-bold:var(--cer-color-neutral-50);
1079
+ --cer-prose-quotes:var(--cer-color-neutral-300);
1080
+ --cer-prose-quote-border:var(--cer-color-neutral-700);
1081
+ --cer-prose-code:var(--cer-color-neutral-200);
1082
+ --cer-prose-code-bg:var(--cer-color-neutral-900);
1083
+ --cer-prose-pre-code:var(--cer-color-neutral-200);
1084
+ --cer-prose-pre-bg:var(--cer-color-neutral-900);
1085
+ --cer-prose-pre-border:var(--cer-color-neutral-800);
1086
+ --cer-prose-hr:var(--cer-color-neutral-700);
1087
+ --cer-prose-caps:var(--cer-color-neutral-400);
1088
+ --cer-prose-list-marker:var(--cer-color-neutral-400);
1089
+ --cer-prose-list-marker-strong:var(--cer-color-neutral-300);
1090
+ --cer-prose-counters:var(--cer-color-neutral-300);
1091
+ --cer-prose-bullets:var(--cer-color-neutral-300);
1092
+ --cer-prose-img-caption:var(--cer-color-neutral-400);
1093
+ --cer-prose-table-border:var(--cer-color-neutral-700);
1094
+ --cer-prose-table-head:var(--cer-color-neutral-200);
1095
+ --cer-prose-links:var(--cer-prose-invert-links,var(--cer-color-neutral-300));
1096
+ --cer-prose-links-hover:var(--cer-prose-invert-links-hover,var(--cer-color-neutral-100));
1097
+ `.replace(/\s+/g, ""),
1098
+ // prose-primary: primary color scheme (sets invert variables)
1099
+ "prose-primary": `
1100
+ --cer-prose-links:var(--cer-color-primary-700);
1101
+ --cer-prose-links-hover:var(--cer-color-primary-500);
1102
+ --cer-prose-invert-links:var(--cer-color-primary-300);
1103
+ --cer-prose-invert-links-hover:var(--cer-color-primary-100);
1104
+ `.replace(/\s+/g, ""),
1105
+ // prose-secondary: secondary color scheme (sets invert variables)
1106
+ "prose-secondary": `
1107
+ --cer-prose-links:var(--cer-color-secondary-700);
1108
+ --cer-prose-links-hover:var(--cer-color-secondary-500);
1109
+ --cer-prose-invert-links:var(--cer-color-secondary-300);
1110
+ --cer-prose-invert-links-hover:var(--cer-color-secondary-100);
1111
+ `.replace(/\s+/g, ""),
1112
+ // prose-success: success color scheme (sets invert variables)
1113
+ "prose-success": `
1114
+ --cer-prose-links:var(--cer-color-success-700);
1115
+ --cer-prose-links-hover:var(--cer-color-success-500);
1116
+ --cer-prose-invert-links:var(--cer-color-success-300);
1117
+ --cer-prose-invert-links-hover:var(--cer-color-success-100);
1118
+ `.replace(/\s+/g, ""),
1119
+ // prose-warning: warning color scheme (sets invert variables)
1120
+ "prose-warning": `
1121
+ --cer-prose-links:var(--cer-color-warning-700);
1122
+ --cer-prose-links-hover:var(--cer-color-warning-500);
1123
+ --cer-prose-invert-links:var(--cer-color-warning-300);
1124
+ --cer-prose-invert-links-hover:var(--cer-color-warning-100);
1125
+ `.replace(/\s+/g, ""),
1126
+ // prose-error: error color scheme (sets invert variables)
1127
+ "prose-error": `
1128
+ --cer-prose-links:var(--cer-color-error-700);
1129
+ --cer-prose-links-hover:var(--cer-color-error-500);
1130
+ --cer-prose-invert-links:var(--cer-color-error-300);
1131
+ --cer-prose-invert-links-hover:var(--cer-color-error-100);
1132
+ `.replace(/\s+/g, ""),
1133
+ // prose-info: info color scheme (sets invert variables)
1134
+ "prose-info": `
1135
+ --cer-prose-links:var(--cer-color-info-700);
1136
+ --cer-prose-links-hover:var(--cer-color-info-500);
1137
+ --cer-prose-invert-links:var(--cer-color-info-300);
1138
+ --cer-prose-invert-links-hover:var(--cer-color-info-100);
1139
+ `.replace(/\s+/g, "")
1140
+ }), e;
1141
+ }, pe = De();
1142
+ function Ie(e) {
1143
+ return /^prose(?:-(sm|lg|xl|2xl))?$/.test(e) ? (We(e), "") : null;
1144
+ }
1145
+ function ke(e) {
1146
+ return /^prose-([a-z0-9]+):(.+)$/.test(e) ? Re(
1147
+ e,
1148
+ pe,
1149
+ fe,
1150
+ ue,
1151
+ he,
1152
+ ge,
1153
+ me,
1154
+ ie
1155
+ ) : null;
1156
+ }
1157
+ function D(e, o) {
1158
+ let a = 0;
1159
+ for (let t = 0; t < e.length; t++) {
1160
+ const r = e[t];
1161
+ if (r === "[" || r === "(") a++;
1162
+ else if ((r === "]" || r === ")") && a > 0) a--;
1163
+ else if (a === 0 && (r === ">" || r === "+" || r === "~" || r === " "))
1164
+ return e.slice(0, t) + o + e.slice(t);
1165
+ }
1166
+ return e + o;
1167
+ }
1168
+ const Se = {
1169
+ before: (e, o) => `${e}::before{${o}}`,
1170
+ after: (e, o) => `${e}::after{${o}}`,
1171
+ hover: (e, o) => `${D(e, ":hover")}{${o}}`,
1172
+ focus: (e, o) => `${D(e, ":focus")}{${o}}`,
1173
+ active: (e, o) => `${D(e, ":active")}{${o}}`,
1174
+ disabled: (e, o) => `${D(e, ":disabled")}{${o}}`,
1175
+ visited: (e, o) => `${D(e, ":visited")}{${o}}`,
1176
+ checked: (e, o) => `${D(e, ":checked")}{${o}}`,
1177
+ first: (e, o) => `${D(e, ":first-child")}{${o}}`,
1178
+ last: (e, o) => `${D(e, ":last-child")}{${o}}`,
1179
+ odd: (e, o) => `${D(e, ":nth-child(odd)")}{${o}}`,
1180
+ even: (e, o) => `${D(e, ":nth-child(even)")}{${o}}`,
1181
+ "focus-within": (e, o) => `${D(e, ":focus-within")}{${o}}`,
1182
+ "focus-visible": (e, o) => `${D(e, ":focus-visible")}{${o}}`,
1183
+ "group-hover": (e, o) => `.group:hover ${e}{${o}}`,
1184
+ "group-focus": (e, o) => `.group:focus ${e}{${o}}`,
1185
+ "group-active": (e, o) => `.group:active ${e}{${o}}`,
1186
+ "group-disabled": (e, o) => `.group:disabled ${e}{${o}}`,
1187
+ "peer-hover": (e, o) => `.peer:hover ~ ${e}{${o}}`,
1188
+ "peer-focus": (e, o) => `.peer:focus ~ ${e}{${o}}`,
1189
+ "peer-checked": (e, o) => `.peer:checked ~ ${e}{${o}}`,
1190
+ "peer-disabled": (e, o) => `.peer:disabled ~ ${e}{${o}}`,
1191
+ "dark-class": (e, o) => `:host(.dark) ${e}{${o}}`
1192
+ }, re = {
1193
+ sm: "(min-width:640px)",
1194
+ md: "(min-width:768px)",
1195
+ lg: "(min-width:1024px)",
1196
+ xl: "(min-width:1280px)",
1197
+ "2xl": "(min-width:1536px)",
1198
+ dark: "(prefers-color-scheme: dark)"
1199
+ }, je = {
1200
+ xs: "(min-width:20rem)",
1201
+ sm: "(min-width:24rem)",
1202
+ md: "(min-width:28rem)",
1203
+ lg: "(min-width:32rem)",
1204
+ xl: "(min-width:36rem)",
1205
+ "2xl": "(min-width:42rem)",
1206
+ "3xl": "(min-width:48rem)",
1207
+ "4xl": "(min-width:56rem)",
1208
+ "5xl": "(min-width:64rem)",
1209
+ "6xl": "(min-width:72rem)",
1210
+ "7xl": "(min-width:80rem)"
1211
+ }, oe = ["sm", "md", "lg", "xl", "2xl"], le = [
1212
+ "xs",
1213
+ "sm",
1214
+ "md",
1215
+ "lg",
1216
+ "xl",
1217
+ "2xl",
1218
+ "3xl",
1219
+ "4xl",
1220
+ "5xl",
1221
+ "6xl",
1222
+ "7xl"
1223
+ ];
1224
+ function fe(e) {
1225
+ const o = e.startsWith("-"), a = o ? e.slice(1) : e, t = a.lastIndexOf("-");
1226
+ if (t === -1) return null;
1227
+ const r = a.slice(0, t), i = a.slice(t + 1);
1228
+ if (!xe[r]) return null;
1229
+ if (i.includes("/")) {
1230
+ const [n, c] = i.split("/").map((j) => parseFloat(j));
1231
+ if (Number.isNaN(n) || Number.isNaN(c) || c === 0)
1232
+ return null;
1233
+ const f = n / c * 100;
1234
+ return xe[r].map((j) => `${j}:${f}%;`).join("");
1235
+ }
1236
+ const l = parseFloat(i);
1237
+ if (Number.isNaN(l)) return null;
1238
+ const $ = o ? "-" : "";
1239
+ return xe[r].map((n) => `${n}:calc(${$}${K} * ${l});`).join("");
1240
+ }
1241
+ function ue(e) {
1242
+ const o = e.startsWith("-"), t = (o ? e.slice(1) : e).match(/^space-(x|y)-(.+)$/);
1243
+ if (!t) return null;
1244
+ const [, r, i] = t, l = r === "x";
1245
+ if (i === "reverse")
1246
+ return l ? "--cer-space-x-reverse:1;" : "--cer-space-y-reverse:1;";
1247
+ if (i.includes("/")) {
1248
+ const [f, j] = i.split("/").map((p) => parseFloat(p));
1249
+ if (Number.isNaN(f) || Number.isNaN(j) || j === 0)
1250
+ return null;
1251
+ const y = f / j * 100, F = o ? "-" : "";
1252
+ return l ? `--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${F}${y}% * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${F}${y}% * var(--cer-space-x-reverse));}` : `--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${F}${y}% * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${F}${y}% * var(--cer-space-y-reverse));}`;
1253
+ }
1254
+ const $ = parseFloat(i);
1255
+ if (Number.isNaN($)) return null;
1256
+ const c = `calc(${o ? "-" : ""}${K} * ${$})`;
1257
+ return l ? `--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${c} * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${c} * var(--cer-space-x-reverse));}` : `--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${c} * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${c} * var(--cer-space-y-reverse));}`;
1258
+ }
1259
+ function de(e) {
1260
+ let o = e.replace("#", "");
1261
+ o.length === 3 && (o = o.split("").map((t) => t + t).join(""));
1262
+ const a = parseInt(o, 16);
1263
+ return `${a >> 16 & 255} ${a >> 8 & 255} ${a & 255}`;
1264
+ }
1265
+ const Ve = /^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/, Ne = {
1266
+ bg: "background-color",
1267
+ decoration: "text-decoration-color",
1268
+ text: "color",
1269
+ border: "border-color",
1270
+ outline: "outline-color",
1271
+ caret: "caret-color",
1272
+ accent: "accent-color",
1273
+ fill: "fill",
1274
+ stroke: "stroke"
1275
+ };
1276
+ function Be(e) {
1277
+ const o = Ve.exec(e);
1278
+ if (!o) return null;
1279
+ const [, a, t, r = "DEFAULT"] = o, i = ze[t]?.[r];
1280
+ if (!i) return null;
1281
+ if (a === "shadow") return `--cer-shadow-color:${i};`;
1282
+ const l = Ne[a];
1283
+ return l ? `${l}:${i};` : null;
1284
+ }
1285
+ function He(e) {
1286
+ const o = e.indexOf("/");
1287
+ if (o === -1) return { base: e };
1288
+ const a = e.slice(0, o), t = e.slice(o + 1), r = parseInt(t, 10);
1289
+ return isNaN(r) || r < 0 || r > 100 ? { base: a } : { base: a, opacity: r / 100 };
1290
+ }
1291
+ function ge(e) {
1292
+ const { base: o, opacity: a } = He(e), t = Be(o);
1293
+ if (t) {
1294
+ if (a !== void 0) {
1295
+ if (t.includes("var(")) {
1296
+ const l = /var\([^)]*\)/.exec(t);
1297
+ if (l) {
1298
+ const $ = l[0], n = a * 100, c = `color-mix(in srgb, ${$} ${n}%, rgba(0 0 0 / 0) ${100 - n}%)`, f = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec($), j = /^([a-z-]+):/.exec(t), y = j ? j[1] : "background-color";
1299
+ if (f) {
1300
+ const p = `rgb(${de(f[0])} / ${a})`, g = $.replace(
1301
+ /#([0-9a-f]{6}|[0-9a-f]{3})/i,
1302
+ p
1303
+ );
1304
+ return `${y}:${g};__CE_COLOR_MIX_SPLIT__${y}:${c};`;
1305
+ }
1306
+ return `${y}:${c};`;
1307
+ }
1308
+ }
1309
+ const i = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(t);
1310
+ if (i) {
1311
+ const l = de(i[0]);
1312
+ return t.replace(
1313
+ /#([0-9a-f]{6}|[0-9a-f]{3})/i,
1314
+ `rgb(${l} / ${a})`
1315
+ );
1316
+ }
1317
+ }
1318
+ return t;
1319
+ }
1320
+ const r = ie(o);
1321
+ if (r && a !== void 0) {
1322
+ if (r.includes("var(")) {
1323
+ const l = /var\([^)]*\)/.exec(r);
1324
+ if (l) {
1325
+ const $ = l[0], n = a * 100, c = `color-mix(in srgb, ${$} ${n}%, rgba(0 0 0 / 0) ${100 - n}%)`, f = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec($), j = /^([a-z-]+):/.exec(r), y = j ? j[1] : null;
1326
+ if (f && y) {
1327
+ const p = `rgb(${de(f[0])} / ${a})`, g = $.replace(
1328
+ /#([0-9a-f]{6}|[0-9a-f]{3})/i,
1329
+ p
1330
+ );
1331
+ return `${y}:${g};__CE_COLOR_MIX_SPLIT__${y}:${c};`;
1332
+ }
1333
+ return r.replace($, c);
1334
+ }
1335
+ }
1336
+ const i = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(r);
1337
+ if (i) {
1338
+ const l = de(i[0]);
1339
+ return r.replace(
1340
+ /#([0-9a-f]{6}|[0-9a-f]{3})/i,
1341
+ `rgb(${l} / ${a})`
1342
+ );
1343
+ }
1344
+ }
1345
+ return r;
1346
+ }
1347
+ function me(e) {
1348
+ const o = /^(from|to|via)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);
1349
+ if (!o) return null;
1350
+ const [, a, t, r = "DEFAULT"] = o, i = ze[t]?.[r];
1351
+ if (!i) return null;
1352
+ switch (a) {
1353
+ case "from":
1354
+ return `--cer-gradient-from:${i} var(--cer-gradient-from-position);--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), var(--cer-gradient-to);`;
1355
+ case "to":
1356
+ return `--cer-gradient-to:${i} var(--cer-gradient-to-position);`;
1357
+ case "via":
1358
+ return `--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), ${i} var(--cer-gradient-via-position), var(--cer-gradient-to);`;
1359
+ default:
1360
+ return null;
1361
+ }
1362
+ }
1363
+ function he(e) {
1364
+ const o = /^opacity-(\d{1,3})$/.exec(e);
1365
+ if (!o) return null;
1366
+ const a = parseInt(o[1], 10);
1367
+ return a < 0 || a > 100 ? null : `opacity:${a / 100};`;
1368
+ }
1369
+ function ie(e) {
1370
+ if (e.startsWith("[") && e.endsWith("]") && !e.includes("-[")) {
1371
+ const l = e.slice(1, -1).trim(), $ = l.indexOf(":");
1372
+ if ($ === -1) return null;
1373
+ const n = l.slice(0, $).trim();
1374
+ let c = l.slice($ + 1).trim();
1375
+ return /^[a-zA-Z][a-zA-Z0-9-]*$/.test(n) ? (c = c.replace(/_/g, " "), c = c.replace(/url\('\s*([^']*?)\s*'\)/g, 'url("$1")'), c = c.replace(/^'([^']*)'$/g, '"$1"'), `${n}:${c};`) : null;
1376
+ }
1377
+ const o = e.indexOf("-[");
1378
+ if (o <= 0 || !e.endsWith("]")) return null;
1379
+ const a = e.slice(0, o), t = e.slice(o + 2, -1).replace(/_/g, " "), r = {
1380
+ bg: "background-color",
1381
+ shadow: "box-shadow",
1382
+ p: "padding",
1383
+ px: "padding-inline",
1384
+ py: "padding-block",
1385
+ m: "margin",
1386
+ mx: "margin-inline",
1387
+ my: "margin-block",
1388
+ w: "width",
1389
+ h: "height",
1390
+ "min-w": "min-width",
1391
+ "max-w": "max-width",
1392
+ "min-h": "min-height",
1393
+ "max-h": "max-height",
1394
+ "border-t": "border-top-width",
1395
+ "border-b": "border-bottom-width",
1396
+ "border-l": "border-left-width",
1397
+ "border-r": "border-right-width",
1398
+ "border-x": "border-inline-width",
1399
+ "border-y": "border-block-width",
1400
+ "grid-cols": "grid-template-columns",
1401
+ "grid-rows": "grid-template-rows",
1402
+ transition: "transition-property",
1403
+ ease: "transition-timing-function",
1404
+ delay: "transition-delay",
1405
+ duration: "transition-duration",
1406
+ list: "list-style",
1407
+ break: "word-break",
1408
+ flex: "flex-direction",
1409
+ items: "align-items",
1410
+ justify: "justify-content",
1411
+ content: "align-content",
1412
+ self: "align-self",
1413
+ basis: "flex-basis",
1414
+ tracking: "letter-spacing",
1415
+ leading: "line-height",
1416
+ z: "z-index",
1417
+ opacity: "opacity"
1418
+ };
1419
+ if (a === "text")
1420
+ return /^\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex)$/.test(t) ? `font-size:${t};` : `color:${t};`;
1421
+ if (a === "rotate") return `transform:rotate(${t});`;
1422
+ if (a === "scale") return `transform:scale(${t});`;
1423
+ if (a === "translate-x") return `transform:translateX(${t});`;
1424
+ if (a === "translate-y") return `transform:translateY(${t});`;
1425
+ const i = r[a] ?? a.replace(/_/g, "-");
1426
+ return i && t ? `${i}:${t};` : null;
1427
+ }
1428
+ function Ce(e) {
1429
+ if (e.startsWith("[") && e.endsWith("]")) {
1430
+ const a = e.slice(1, -1);
1431
+ return a.includes("&") ? a : e;
1432
+ }
1433
+ const o = e.indexOf("-[");
1434
+ if (o > 0 && e.endsWith("]")) {
1435
+ const a = e.slice(o + 2, -1).replace(/_/g, "-");
1436
+ return a.includes("&") ? a : e.replace(/_/g, "-");
1437
+ }
1438
+ return null;
1439
+ }
1440
+ function ve(e) {
1441
+ if (typeof CSS < "u" && CSS.escape)
1442
+ return CSS.escape(e);
1443
+ const o = String(e), a = o.length;
1444
+ let t = "", r = 0;
1445
+ for (; r < a; ) {
1446
+ const i = o.charAt(r), l = o.charCodeAt(r);
1447
+ l === 0 ? t += "�" : /* If the character is in the range [\1-\1f] (U+0001 to U+001F) or is U+007F */ l >= 1 && l <= 31 || l === 127 || // If the character is the first character and is in the range [0-9] (U+0030 to U+0039)
1448
+ r === 0 && l >= 48 && l <= 57 || // If the character is the second character and is in the range [0-9] (U+0030 to U+0039) and the first character is a "-" (U+002D)
1449
+ r === 1 && l >= 48 && l <= 57 && o.charCodeAt(0) === 45 ? t += "\\" + l.toString(16) + " " : /* If the character is the first character and is a "-" (U+002D), and there is no second character */ r === 0 && a === 1 && l === 45 ? t += "\\" + i : /* If the character is not handled by one of the above rules and is one of the following */ l >= 128 || l === 45 || // -
1450
+ l === 95 || // _
1451
+ l >= 48 && l <= 57 || // 0-9
1452
+ l >= 65 && l <= 90 || // A-Z
1453
+ l >= 97 && l <= 122 ? t += i : t += "\\" + i, r++;
1454
+ }
1455
+ return t;
1456
+ }
1457
+ function te(e) {
1458
+ return "." + ve(e);
1459
+ }
1460
+ function Ue(e) {
1461
+ return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1462
+ }
1463
+ function Ke(e) {
1464
+ const o = /class\s*=\s*(['"])([\s\S]*?)\1/g, a = [];
1465
+ let t;
1466
+ for (; t = o.exec(e); ) {
1467
+ const r = t[2].split(/\s+/).filter(Boolean);
1468
+ r.length && a.push(...r);
1469
+ }
1470
+ return a;
1471
+ }
1472
+ const ne = /* @__PURE__ */ new Map(), Qe = 16, Te = 1e3;
1473
+ function Ge(e) {
1474
+ const o = ne.get(e);
1475
+ if (o && Date.now() - o.timestamp < Qe)
1476
+ return o.css;
1477
+ const a = Ke(e);
1478
+ if (!a.length) return "";
1479
+ const t = new Set(a), r = [[], [], [], []], i = {}, l = (p, g = !1) => {
1480
+ const h = g ? `dark|${p}` : p;
1481
+ if (h in i) return i[h];
1482
+ const x = f(p, g);
1483
+ return i[h] = x, x;
1484
+ }, $ = (p) => {
1485
+ const g = p.some((T) => oe.includes(T)), h = p.some(
1486
+ (T) => T.startsWith("@") && (le.includes(T.slice(1)) || T.match(/^@\[.+\]$/))
1487
+ ), x = p.includes("dark");
1488
+ return p.length ? !g && !x && !h ? 1 : x && (g || h) ? 3 : 2 : 0;
1489
+ }, n = (p) => {
1490
+ const g = [];
1491
+ let h = "", x = 0;
1492
+ for (let T = 0; T < p.length; T++) {
1493
+ const k = p[T];
1494
+ k === "[" || k === "(" ? x++ : (k === "]" || k === ")") && x--, k === ":" && x === 0 ? (g.push(h), h = "") : h += k;
1495
+ }
1496
+ return h && g.push(h), g;
1497
+ }, c = {
1498
+ hover: ":hover",
1499
+ focus: ":focus",
1500
+ active: ":active",
1501
+ visited: ":visited",
1502
+ disabled: ":disabled",
1503
+ checked: ":checked",
1504
+ first: ":first-child",
1505
+ last: ":last-child",
1506
+ odd: ":nth-child(odd)",
1507
+ even: ":nth-child(even)",
1508
+ "focus-within": ":focus-within",
1509
+ "focus-visible": ":focus-visible"
1510
+ }, f = (p, g = !1) => {
1511
+ const h = n(p);
1512
+ let x = "", T = !1;
1513
+ for (const s of h) {
1514
+ let b = s;
1515
+ if (b.startsWith("!") && (T = !0, b = b.slice(1)), pe[b] || fe(b) || ue(b) || he(b) || ge(b) || me(b) || ie(b)) {
1516
+ x = s;
1517
+ break;
1518
+ }
1519
+ }
1520
+ if (!x) return null;
1521
+ const k = x.replace(/^!/, ""), _ = pe[k] ?? fe(k) ?? ue(k) ?? he(k) ?? ge(k) ?? me(k) ?? ie(k);
1522
+ if (!_) return null;
1523
+ const W = h.indexOf(x);
1524
+ let E = W >= 0 ? h.slice(0, W) : [];
1525
+ g && (E = E.filter((s) => s !== "dark"));
1526
+ const A = te(p), R = T ? _.replace(/;/g, " !important;") : _, d = "__SUBJECT__";
1527
+ let m = d;
1528
+ const C = [];
1529
+ for (const s of E)
1530
+ s.startsWith("group-") ? (m = `.group:${s.slice(6)} ${m}`, C.push(s)) : s.startsWith("peer-") && (m = m.replace(
1531
+ d,
1532
+ `.peer:${s.slice(5)}~${d}`
1533
+ ), C.push(s));
1534
+ E = E.filter((s) => !C.includes(s));
1535
+ const P = [], L = [];
1536
+ let M = null;
1537
+ for (const s of E) {
1538
+ if (s === "dark" || oe.includes(s) || s.startsWith("@") && (le.includes(s.slice(1)) || s.match(/^@\[.+\]$/)))
1539
+ continue;
1540
+ const b = Ce(s);
1541
+ if (b) {
1542
+ M = b;
1543
+ continue;
1544
+ }
1545
+ const S = c[s];
1546
+ if (S) {
1547
+ M ? L.push(S) : P.push(S);
1548
+ continue;
1549
+ }
1550
+ const v = Se[s];
1551
+ typeof v == "function" && (m = v(m, R).split("{")[0]);
1552
+ }
1553
+ const z = P.join(""), q = L.join("");
1554
+ function I(s, b) {
1555
+ if (!b) return s;
1556
+ let S = 0, v = 0;
1557
+ if (s.length && (s[0] === ">" || s[0] === "+" || s[0] === "~" || s[0] === " ")) {
1558
+ let u = 1;
1559
+ for (; u < s.length && s[u] === " "; ) u++;
1560
+ for (; u < s.length; u++) {
1561
+ const O = s[u];
1562
+ if (O === "[" ? S++ : O === "]" && S > 0 ? S-- : O === "(" ? v++ : O === ")" && v > 0 && v--, S === 0 && v === 0 && (s[u] === ">" || s[u] === "+" || s[u] === "~" || s[u] === " "))
1563
+ return s.slice(0, u) + b + s.slice(u);
1564
+ }
1565
+ return s + b;
1566
+ }
1567
+ for (let u = 0; u < s.length; u++) {
1568
+ const O = s[u];
1569
+ if (O === "[" ? S++ : O === "]" && S > 0 ? S-- : O === "(" ? v++ : O === ")" && v > 0 && v--, S === 0 && v === 0 && (O === ">" || O === "+" || O === "~" || O === " "))
1570
+ return s.slice(0, u) + b + s.slice(u);
1571
+ }
1572
+ return s + b;
1573
+ }
1574
+ if (M)
1575
+ if (M.includes("&")) {
1576
+ const s = M.indexOf("&"), b = M.slice(0, s), S = M.slice(s + 1), v = d + z;
1577
+ if (P.length === 0)
1578
+ m = m.replace(
1579
+ d,
1580
+ b + v + q + S
1581
+ );
1582
+ else {
1583
+ const u = I(S, q);
1584
+ m = m.replace(
1585
+ d,
1586
+ b + v + u
1587
+ );
1588
+ }
1589
+ } else
1590
+ m = m.replace(
1591
+ d,
1592
+ `${M}${d + z}`
1593
+ ), q && (m = m.replace(d, `${d}${q}`));
1594
+ else
1595
+ m = m.replace(
1596
+ d,
1597
+ d + z + q
1598
+ );
1599
+ m = m.replace(new RegExp(d, "g"), A);
1600
+ const N = "__CE_COLOR_MIX_SPLIT__", J = R.includes(N) ? R.split(N).map((s) => `${m}{${s}}`) : [`${m}{${R}}`], Q = E.filter(
1601
+ (s) => oe.includes(s)
1602
+ ), X = E.filter(
1603
+ (s) => s.startsWith("@") && (le.includes(s.slice(1)) || s.match(/^@\[.+\]$/))
1604
+ ), B = Q.length ? Q[Q.length - 1] : null, V = X.length ? X[X.length - 1] : null, Z = E.includes("dark");
1605
+ let w = "", H = "";
1606
+ if (Z && B ? w = `@media (prefers-color-scheme: dark) and ${re[B]}` : Z ? w = "@media (prefers-color-scheme: dark)" : B && (w = `@media ${re[B]}`), V)
1607
+ if (V.startsWith("@[") && V.endsWith("]")) {
1608
+ const s = V.slice(2, -1);
1609
+ if (!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(s))
1610
+ return null;
1611
+ H = `@container (min-width:${s})`;
1612
+ } else {
1613
+ const s = V.slice(1);
1614
+ H = `@container ${je[s] || `(min-width:${s})`}`;
1615
+ }
1616
+ const $e = (s) => w && H ? `${w}${H}{${s}}` : w ? `${w}{${s}}` : H ? `${H}{${s}}` : s;
1617
+ return J.map($e).join("");
1618
+ };
1619
+ for (const p of t) {
1620
+ const g = n(p), h = g.slice(0, -1), x = g[g.length - 1];
1621
+ if (Ie(x) !== null) {
1622
+ if (h.length === 0)
1623
+ r[0].push(`${te(p)}{}`);
1624
+ else {
1625
+ const d = Ae(x);
1626
+ if (!d) continue;
1627
+ const m = te(p), C = te(x);
1628
+ let P = d.replace(
1629
+ new RegExp(Ue(C), "g"),
1630
+ m
1631
+ );
1632
+ const L = h.filter(
1633
+ (z) => oe.includes(z)
1634
+ );
1635
+ if (L.length > 0) {
1636
+ const z = L[L.length - 1];
1637
+ P = `${`@media ${re[z]}`}{${P}}`;
1638
+ }
1639
+ h.includes("dark") && (P = `@media (prefers-color-scheme: dark){${P}}`);
1640
+ const M = $(h);
1641
+ r[M].push(P);
1642
+ }
1643
+ continue;
1644
+ }
1645
+ let k = -1;
1646
+ for (let d = g.length - 1; d >= 0; d--) {
1647
+ const m = g.slice(d).join(":");
1648
+ if (ke(m)) {
1649
+ k = d;
1650
+ break;
1651
+ }
1652
+ }
1653
+ if (k >= 0) {
1654
+ const d = g.slice(k).join(":"), m = g.slice(0, k), C = ke(d);
1655
+ if (!C) continue;
1656
+ if (m.length === 0) {
1657
+ r[0].push(C);
1658
+ continue;
1659
+ }
1660
+ const P = ve(p), L = ve(d), M = C.replace(
1661
+ new RegExp(
1662
+ `\\.${L.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`,
1663
+ "g"
1664
+ ),
1665
+ `.${P}`
1666
+ ), z = /(.+?)\s+(.+?)\{([^}]+)\}/g, q = [...M.matchAll(z)];
1667
+ if (q.length === 0) {
1668
+ r[0].push(C);
1669
+ continue;
1670
+ }
1671
+ const I = $(m), N = {
1672
+ hover: ":hover",
1673
+ focus: ":focus",
1674
+ active: ":active",
1675
+ visited: ":visited",
1676
+ disabled: ":disabled",
1677
+ checked: ":checked",
1678
+ first: ":first-child",
1679
+ last: ":last-child",
1680
+ odd: ":nth-child(odd)",
1681
+ even: ":nth-child(even)",
1682
+ "focus-within": ":focus-within",
1683
+ "focus-visible": ":focus-visible"
1684
+ }, J = [], Q = [], X = [], B = [], V = [];
1685
+ let Z = !1;
1686
+ for (const w of m)
1687
+ w.startsWith("group-") || w.startsWith("peer-") ? J.push(w) : w === "dark" || w === "dark-class" ? Z = !0 : oe.includes(w) ? B.push(w) : w.startsWith("@") && (le.includes(w.slice(1)) || w.match(/^@\[.+\]$/)) ? V.push(w) : w.startsWith("[") && w.endsWith("]") ? X.push(w) : (N[w] || Se[w]) && Q.push(w);
1688
+ for (const w of q) {
1689
+ const [, H, $e, s] = w;
1690
+ let b = `${H} ${$e}`;
1691
+ for (const v of J)
1692
+ if (v.startsWith("group-")) {
1693
+ const u = v.slice(6);
1694
+ b = `.group${N[u] || `:${u}`} ${b}`;
1695
+ } else if (v.startsWith("peer-")) {
1696
+ const u = v.slice(5);
1697
+ b = `.peer${N[u] || `:${u}`}~${b}`;
1698
+ }
1699
+ if (Q.length > 0) {
1700
+ const v = Q.map((u) => N[u] || `:${u}`).join("");
1701
+ b = `${b}${v}`;
1702
+ }
1703
+ for (const v of X) {
1704
+ const u = Ce(v);
1705
+ if (u && u.includes("&")) {
1706
+ const O = u.indexOf("&"), Y = u.slice(0, O), se = u.slice(O + 1);
1707
+ b = `${Y}${b}${se}`;
1708
+ }
1709
+ }
1710
+ let S = `${b}{${s}}`;
1711
+ if (Z && (S = `@media (prefers-color-scheme: dark){${S}}`), V.length > 0) {
1712
+ const v = V[V.length - 1];
1713
+ if (v.startsWith("@[") && v.endsWith("]")) {
1714
+ const u = v.slice(2, -1);
1715
+ /^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(
1716
+ u
1717
+ ) && (S = `@container (min-width:${u}){${S}}`);
1718
+ } else {
1719
+ const u = v.slice(1), Y = {
1720
+ xs: "20rem",
1721
+ sm: "24rem",
1722
+ md: "28rem",
1723
+ lg: "32rem",
1724
+ xl: "36rem",
1725
+ "2xl": "42rem",
1726
+ "3xl": "48rem",
1727
+ "4xl": "56rem",
1728
+ "5xl": "64rem",
1729
+ "6xl": "72rem",
1730
+ "7xl": "80rem"
1731
+ }[u];
1732
+ if (Y) {
1733
+ const se = p.match(/@([^/]+)\//)?.[1] || "";
1734
+ S = se ? `@container ${se} (min-width: ${Y}){${S}}` : `@container (min-width: ${Y}){${S}}`;
1735
+ }
1736
+ }
1737
+ }
1738
+ if (B.length > 0) {
1739
+ const v = B[B.length - 1];
1740
+ S = `${`@media ${re[v]}`}{${S}}`;
1741
+ }
1742
+ r[I].push(S);
1743
+ }
1744
+ continue;
1745
+ }
1746
+ const _ = g.find(
1747
+ (d) => pe[d.replace(/^!/, "")] || fe(d.replace(/^!/, "")) || ue(d.replace(/^!/, "")) || he(d.replace(/^!/, "")) || ge(d.replace(/^!/, "")) || me(d.replace(/^!/, "")) || ie(d.replace(/^!/, ""))
1748
+ );
1749
+ if (!_) continue;
1750
+ const W = g.indexOf(_), E = W >= 0 ? g.slice(0, W) : [], A = $(E), R = l(p);
1751
+ R && r[A].push(R);
1752
+ }
1753
+ const j = /^(from|via|to)-[a-z]+-?\d{2,3}?$/;
1754
+ for (const p of t)
1755
+ if (j.test(p)) {
1756
+ if (r.flat().join("").includes(te(p))) continue;
1757
+ const h = l(p);
1758
+ h && r[0].push(h);
1759
+ }
1760
+ const y = (p) => p.sort((g, h) => {
1761
+ const x = (A) => {
1762
+ const R = {
1763
+ sm: 640,
1764
+ md: 768,
1765
+ lg: 1024,
1766
+ xl: 1280,
1767
+ "2xl": 1536
1768
+ };
1769
+ for (const [d, m] of Object.entries(R))
1770
+ if (A.includes(`@media ${re[d]}`)) return m;
1771
+ return -1;
1772
+ }, T = (A) => {
1773
+ const R = {
1774
+ xs: 320,
1775
+ // 20rem
1776
+ sm: 384,
1777
+ // 24rem
1778
+ md: 448,
1779
+ // 28rem
1780
+ lg: 512,
1781
+ // 32rem
1782
+ xl: 576,
1783
+ // 36rem
1784
+ "2xl": 672,
1785
+ // 42rem
1786
+ "3xl": 768,
1787
+ // 48rem
1788
+ "4xl": 896,
1789
+ // 56rem
1790
+ "5xl": 1024,
1791
+ // 64rem
1792
+ "6xl": 1152,
1793
+ // 72rem
1794
+ "7xl": 1280
1795
+ // 80rem
1796
+ };
1797
+ for (const [d, m] of Object.entries(R))
1798
+ if (A.includes(`@container ${je[d]}`)) return m;
1799
+ if (A.includes("@container (min-width:")) {
1800
+ const d = /@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(A);
1801
+ if (d) {
1802
+ const m = parseFloat(d[1]), C = d[2];
1803
+ return C === "rem" || C === "em" ? m * 16 : m;
1804
+ }
1805
+ }
1806
+ return -1;
1807
+ }, k = x(g), _ = x(h), W = T(g), E = T(h);
1808
+ return k >= 0 && _ >= 0 && k !== _ ? k - _ : W >= 0 && E >= 0 && W !== E ? W - E : 0;
1809
+ });
1810
+ r[2] = y(r[2]), r[3] = y(r[3]);
1811
+ const F = r.flat().join("");
1812
+ return ne.size >= Te && Array.from(ne.keys()).slice(
1813
+ 0,
1814
+ Math.floor(Te / 2)
1815
+ ).forEach((g) => ne.delete(g)), ne.set(e, { css: F, timestamp: Date.now() }), F;
1816
+ }
1817
+ const ae = {
1818
+ /** Simple fade in/out */
1819
+ fade: {
1820
+ enterFrom: "opacity-0",
1821
+ enterActive: "transition-opacity duration-300 ease-out",
1822
+ enterTo: "opacity-100",
1823
+ leaveFrom: "opacity-100",
1824
+ leaveActive: "transition-opacity duration-200 ease-in",
1825
+ leaveTo: "opacity-0"
1826
+ },
1827
+ /** Slide in from right */
1828
+ "slide-right": {
1829
+ enterFrom: "translate-x-[100%] opacity-0",
1830
+ enterActive: "transition-all duration-300 ease-out",
1831
+ enterTo: "translate-x-[0%] opacity-100",
1832
+ leaveFrom: "translate-x-[0%] opacity-100",
1833
+ leaveActive: "transition-all duration-200 ease-in",
1834
+ leaveTo: "translate-x-[100%] opacity-0"
1835
+ },
1836
+ /** Slide in from left */
1837
+ "slide-left": {
1838
+ enterFrom: "translate-x-[-100%] opacity-0",
1839
+ enterActive: "transition-all duration-300 ease-out",
1840
+ enterTo: "translate-x-[0%] opacity-100",
1841
+ leaveFrom: "translate-x-[0%] opacity-100",
1842
+ leaveActive: "transition-all duration-200 ease-in",
1843
+ leaveTo: "translate-x-[-100%] opacity-0"
1844
+ },
1845
+ /** Slide up from bottom */
1846
+ "slide-up": {
1847
+ enterFrom: "translate-y-[100%] opacity-0",
1848
+ enterActive: "transition-all duration-300 ease-out",
1849
+ enterTo: "translate-y-[0%] opacity-100",
1850
+ leaveFrom: "translate-y-[0%] opacity-100",
1851
+ leaveActive: "transition-all duration-200 ease-in",
1852
+ leaveTo: "translate-y-[100%] opacity-0"
1853
+ },
1854
+ /** Slide down from top */
1855
+ "slide-down": {
1856
+ enterFrom: "translate-y-[-100%] opacity-0",
1857
+ enterActive: "transition-all duration-300 ease-out",
1858
+ enterTo: "translate-y-[0%] opacity-100",
1859
+ leaveFrom: "translate-y-[0%] opacity-100",
1860
+ leaveActive: "transition-all duration-200 ease-in",
1861
+ leaveTo: "translate-y-[-100%] opacity-0"
1862
+ },
1863
+ /** Scale up from center */
1864
+ scale: {
1865
+ enterFrom: "scale-95 opacity-0",
1866
+ enterActive: "transition-all duration-200 ease-out",
1867
+ enterTo: "scale-100 opacity-100",
1868
+ leaveFrom: "scale-100 opacity-100",
1869
+ leaveActive: "transition-all duration-150 ease-in",
1870
+ leaveTo: "scale-95 opacity-0"
1871
+ },
1872
+ /** Scale down to center */
1873
+ "scale-down": {
1874
+ enterFrom: "scale-105 opacity-0",
1875
+ enterActive: "transition-all duration-200 ease-out",
1876
+ enterTo: "scale-100 opacity-100",
1877
+ leaveFrom: "scale-100 opacity-100",
1878
+ leaveActive: "transition-all duration-150 ease-in",
1879
+ leaveTo: "scale-105 opacity-0"
1880
+ },
1881
+ /** Bounce effect */
1882
+ bounce: {
1883
+ enterFrom: "scale-0 opacity-0",
1884
+ enterActive: "transition-all duration-500 ease-out",
1885
+ enterTo: "scale-100 opacity-100",
1886
+ leaveFrom: "scale-100 opacity-100",
1887
+ leaveActive: "transition-all duration-200 ease-in",
1888
+ leaveTo: "scale-0 opacity-0"
1889
+ },
1890
+ /** Zoom and fade */
1891
+ zoom: {
1892
+ enterFrom: "scale-0 opacity-0",
1893
+ enterActive: "transition-all duration-300 ease-out",
1894
+ enterTo: "scale-100 opacity-100",
1895
+ leaveFrom: "scale-100 opacity-100",
1896
+ leaveActive: "transition-all duration-200 ease-in",
1897
+ leaveTo: "scale-0 opacity-0"
1898
+ },
1899
+ /** Flip in */
1900
+ flip: {
1901
+ enterFrom: "rotate-[90deg] opacity-0",
1902
+ enterActive: "transition-all duration-400 ease-out",
1903
+ enterTo: "rotate-[0deg] opacity-100",
1904
+ leaveFrom: "rotate-[0deg] opacity-100",
1905
+ leaveActive: "transition-all duration-300 ease-in",
1906
+ leaveTo: "rotate-[90deg] opacity-0"
1907
+ }
1908
+ };
1909
+ function rr(e, o) {
1910
+ const {
1911
+ preset: a,
1912
+ show: t,
1913
+ mode: r = "default",
1914
+ duration: i,
1915
+ appear: l = !1,
1916
+ css: $ = !0,
1917
+ name: n,
1918
+ enterFrom: c,
1919
+ enterActive: f,
1920
+ enterTo: j,
1921
+ leaveFrom: y,
1922
+ leaveActive: F,
1923
+ leaveTo: p,
1924
+ onBeforeEnter: g,
1925
+ onEnter: h,
1926
+ onAfterEnter: x,
1927
+ onEnterCancelled: T,
1928
+ onBeforeLeave: k,
1929
+ onLeave: _,
1930
+ onAfterLeave: W,
1931
+ onLeaveCancelled: E
1932
+ } = e;
1933
+ let A;
1934
+ a && ae[a] ? (A = { ...ae[a] }, c && (A.enterFrom = c), f && (A.enterActive = f), j && (A.enterTo = j), y && (A.leaveFrom = y), F && (A.leaveActive = F), p && (A.leaveTo = p)) : A = {
1935
+ enterFrom: c,
1936
+ enterActive: f,
1937
+ enterTo: j,
1938
+ leaveFrom: y,
1939
+ leaveActive: F,
1940
+ leaveTo: p
1941
+ };
1942
+ const R = n || (a ? `transition-${a}` : "transition"), d = Fe(t ? o : [], R);
1943
+ return d._transition = {
1944
+ name: R,
1945
+ classes: A,
1946
+ mode: r,
1947
+ duration: i,
1948
+ appear: l,
1949
+ css: $,
1950
+ state: t ? "visible" : "hidden",
1951
+ hooks: {
1952
+ onBeforeEnter: g,
1953
+ onEnter: h,
1954
+ onAfterEnter: x,
1955
+ onEnterCancelled: T,
1956
+ onBeforeLeave: k,
1957
+ onLeave: _,
1958
+ onAfterLeave: W,
1959
+ onLeaveCancelled: E
1960
+ }
1961
+ }, d;
1962
+ }
1963
+ function or(e, o) {
1964
+ const {
1965
+ tag: a = "div",
1966
+ moveClass: t = "transition-transform duration-300",
1967
+ preset: r,
1968
+ show: i = !0,
1969
+ mode: l = "default",
1970
+ duration: $,
1971
+ appear: n = !1,
1972
+ css: c = !0,
1973
+ name: f,
1974
+ class: j,
1975
+ style: y,
1976
+ enterFrom: F,
1977
+ enterActive: p,
1978
+ enterTo: g,
1979
+ leaveFrom: h,
1980
+ leaveActive: x,
1981
+ leaveTo: T,
1982
+ onBeforeEnter: k,
1983
+ onEnter: _,
1984
+ onAfterEnter: W,
1985
+ onEnterCancelled: E,
1986
+ onBeforeLeave: A,
1987
+ onLeave: R,
1988
+ onAfterLeave: d,
1989
+ onLeaveCancelled: m
1990
+ } = e;
1991
+ let C;
1992
+ r && ae[r] ? (C = { ...ae[r] }, F && (C.enterFrom = F), p && (C.enterActive = p), g && (C.enterTo = g), h && (C.leaveFrom = h), x && (C.leaveActive = x), T && (C.leaveTo = T)) : C = {
1993
+ enterFrom: F,
1994
+ enterActive: p,
1995
+ enterTo: g,
1996
+ leaveFrom: h,
1997
+ leaveActive: x,
1998
+ leaveTo: T
1999
+ };
2000
+ const P = f || (r ? `transition-group-${r}` : "transition-group"), L = [];
2001
+ for (const z of i ? o : [])
2002
+ if (z && typeof z == "object" && z.tag === "#anchor") {
2003
+ const q = Array.isArray(z.children) ? z.children : [];
2004
+ for (const I of q)
2005
+ if (I && typeof I == "object") {
2006
+ const N = {
2007
+ ...I,
2008
+ key: z.key || I.key,
2009
+ props: {
2010
+ ...I.props,
2011
+ _anchorKey: z.key
2012
+ // Preserve original anchor key
2013
+ }
2014
+ };
2015
+ L.push(N);
2016
+ } else
2017
+ L.push(I);
2018
+ } else
2019
+ L.push(z);
2020
+ const M = (() => {
2021
+ if (y)
2022
+ return typeof y == "string" ? y : Object.entries(y).map(([z, q]) => `${z}: ${q}`).join("; ");
2023
+ })();
2024
+ return {
2025
+ tag: a,
2026
+ children: L,
2027
+ key: P,
2028
+ props: {
2029
+ attrs: {
2030
+ ...j ? { class: j } : {},
2031
+ ...M ? { style: M } : {}
2032
+ },
2033
+ _transitionGroup: {
2034
+ name: P,
2035
+ classes: C,
2036
+ moveClass: t,
2037
+ mode: l,
2038
+ duration: $,
2039
+ appear: n,
2040
+ css: c,
2041
+ hooks: {
2042
+ onBeforeEnter: k,
2043
+ onEnter: _,
2044
+ onAfterEnter: W,
2045
+ onEnterCancelled: E,
2046
+ onBeforeLeave: A,
2047
+ onLeave: R,
2048
+ onAfterLeave: d,
2049
+ onLeaveCancelled: m
2050
+ }
2051
+ }
2052
+ }
2053
+ };
2054
+ }
2055
+ function tr(e) {
2056
+ return { ...e };
2057
+ }
2058
+ let G = null;
2059
+ function Xe() {
2060
+ if (!G) {
2061
+ if (typeof CSSStyleSheet > "u")
2062
+ return G = {
2063
+ cssRules: [],
2064
+ replaceSync: () => {
2065
+ },
2066
+ toString: () => ""
2067
+ }, G;
2068
+ const e = [];
2069
+ Object.values(ae).forEach((t) => {
2070
+ t.enterFrom && e.push(t.enterFrom), t.enterActive && e.push(t.enterActive), t.enterTo && e.push(t.enterTo), t.leaveFrom && e.push(t.leaveFrom), t.leaveActive && e.push(t.leaveActive), t.leaveTo && e.push(t.leaveTo);
2071
+ });
2072
+ const o = `<div class="${e.join(" ")}"></div>`, a = Ge(o);
2073
+ try {
2074
+ G = new CSSStyleSheet(), G.replaceSync(a);
2075
+ } catch {
2076
+ G = {
2077
+ cssRules: [],
2078
+ replaceSync: () => {
2079
+ },
2080
+ toString: () => a || ""
2081
+ };
2082
+ }
2083
+ }
2084
+ return G;
2085
+ }
2086
+ function Je() {
2087
+ if (!(typeof window > "u" || typeof CSSStyleSheet > "u"))
2088
+ try {
2089
+ Xe();
2090
+ } catch {
2091
+ }
2092
+ }
2093
+ Je();
2094
+ export {
2095
+ rr as T,
2096
+ Ye as a,
2097
+ Xe as b,
2098
+ ye as c,
2099
+ _e as d,
2100
+ or as e,
2101
+ tr as f,
2102
+ Pe as g,
2103
+ Ge as j,
2104
+ we as m,
2105
+ er as s,
2106
+ ae as t
2107
+ };
2108
+ //# sourceMappingURL=transitions-Dnvv4N7o.js.map