@jasonshimmy/custom-elements-runtime 2.5.1 → 2.5.5

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 (90) hide show
  1. package/README.md +115 -40
  2. package/dist/css/colors.d.ts +14 -0
  3. package/dist/custom-elements-runtime.cjs.js +6 -18
  4. package/dist/custom-elements-runtime.cjs.js.map +1 -1
  5. package/dist/custom-elements-runtime.colors.cjs.js +2 -0
  6. package/dist/custom-elements-runtime.colors.cjs.js.map +1 -0
  7. package/dist/custom-elements-runtime.colors.es.js +279 -0
  8. package/dist/custom-elements-runtime.colors.es.js.map +1 -0
  9. package/dist/custom-elements-runtime.directive-enhancements.es.js +1 -1
  10. package/dist/custom-elements-runtime.es.js +246 -3648
  11. package/dist/custom-elements-runtime.es.js.map +1 -1
  12. package/dist/custom-elements-runtime.event-bus.cjs.js +1 -1
  13. package/dist/custom-elements-runtime.event-bus.cjs.js.map +1 -1
  14. package/dist/custom-elements-runtime.event-bus.es.js +28 -25
  15. package/dist/custom-elements-runtime.event-bus.es.js.map +1 -1
  16. package/dist/custom-elements-runtime.router.cjs.js +20 -20
  17. package/dist/custom-elements-runtime.router.cjs.js.map +1 -1
  18. package/dist/custom-elements-runtime.router.es.js +790 -464
  19. package/dist/custom-elements-runtime.router.es.js.map +1 -1
  20. package/dist/custom-elements-runtime.ssr.cjs.js +1 -1
  21. package/dist/custom-elements-runtime.ssr.es.js +12 -8
  22. package/dist/custom-elements-runtime.ssr.es.js.map +1 -1
  23. package/dist/custom-elements-runtime.store.cjs.js +1 -1
  24. package/dist/custom-elements-runtime.store.cjs.js.map +1 -1
  25. package/dist/custom-elements-runtime.store.es.js +5 -5
  26. package/dist/custom-elements-runtime.store.es.js.map +1 -1
  27. package/dist/custom-elements-runtime.transitions.cjs.js +1 -1
  28. package/dist/custom-elements-runtime.transitions.es.js +1 -1
  29. package/dist/event-bus.d.ts +17 -4
  30. package/dist/index.d.ts +13 -3
  31. package/dist/keep-alive.d.ts +50 -0
  32. package/dist/{logger-BuUYv7C_.js → logger-BvkEbVM4.js} +15 -11
  33. package/dist/logger-BvkEbVM4.js.map +1 -0
  34. package/dist/logger-CSALKaYm.cjs +2 -0
  35. package/dist/logger-CSALKaYm.cjs.map +1 -0
  36. package/dist/namespace-helpers-4qeKVqQw.cjs +5 -0
  37. package/dist/namespace-helpers-4qeKVqQw.cjs.map +1 -0
  38. package/dist/namespace-helpers-DcD_6_K1.js +989 -0
  39. package/dist/namespace-helpers-DcD_6_K1.js.map +1 -0
  40. package/dist/router/active-proxy.d.ts +5 -0
  41. package/dist/router/component-loader.d.ts +11 -0
  42. package/dist/router/instance.d.ts +11 -0
  43. package/dist/router/matcher.d.ts +14 -0
  44. package/dist/router/path-utils.d.ts +48 -0
  45. package/dist/router/types.d.ts +134 -0
  46. package/dist/router.d.ts +6 -147
  47. package/dist/runtime/builtin-components.d.ts +78 -0
  48. package/dist/runtime/component/element-class.d.ts +4 -0
  49. package/dist/runtime/component/factory.d.ts +39 -0
  50. package/dist/runtime/component/registry.d.ts +16 -0
  51. package/dist/runtime/component.d.ts +3 -50
  52. package/dist/runtime/discovery-state.d.ts +30 -0
  53. package/dist/runtime/hooks.d.ts +115 -0
  54. package/dist/runtime/logger.d.ts +19 -1
  55. package/dist/runtime/monitoring/health-monitor.d.ts +56 -0
  56. package/dist/runtime/reactive.d.ts +39 -7
  57. package/dist/runtime/render.d.ts +20 -4
  58. package/dist/runtime/scheduler.d.ts +115 -2
  59. package/dist/runtime/template-compiler/impl.d.ts +14 -0
  60. package/dist/runtime/template-compiler/lru-cache.d.ts +20 -0
  61. package/dist/runtime/template-compiler/props-parser.d.ts +15 -0
  62. package/dist/runtime/template-compiler/vnode-utils.d.ts +5 -0
  63. package/dist/runtime/template-compiler.d.ts +5 -28
  64. package/dist/runtime/types.d.ts +10 -0
  65. package/dist/runtime/vdom-directives.d.ts +71 -0
  66. package/dist/runtime/vdom-helpers.d.ts +126 -0
  67. package/dist/runtime/vdom-patch.d.ts +67 -0
  68. package/dist/runtime/vdom.d.ts +16 -140
  69. package/dist/ssr.d.ts +2 -1
  70. package/dist/teleport.d.ts +68 -0
  71. package/dist/template-compiler-CA4YRaBu.cjs +23 -0
  72. package/dist/template-compiler-CA4YRaBu.cjs.map +1 -0
  73. package/dist/template-compiler-CJFwjLCP.js +3981 -0
  74. package/dist/template-compiler-CJFwjLCP.js.map +1 -0
  75. package/dist/transitions-DPZiuXb9.cjs +330 -0
  76. package/dist/transitions-DPZiuXb9.cjs.map +1 -0
  77. package/dist/{transitions-CZ21fzhh.js → transitions-Di5wW9yc.js} +1059 -618
  78. package/dist/transitions-Di5wW9yc.js.map +1 -0
  79. package/dist/transitions.d.ts +1 -1
  80. package/package.json +20 -12
  81. package/dist/logger-BuUYv7C_.js.map +0 -1
  82. package/dist/logger-DiXdWaF-.cjs +0 -2
  83. package/dist/logger-DiXdWaF-.cjs.map +0 -1
  84. package/dist/namespace-helpers-BsKQl3aH.cjs +0 -5
  85. package/dist/namespace-helpers-BsKQl3aH.cjs.map +0 -1
  86. package/dist/namespace-helpers-Dw1mgQab.js +0 -692
  87. package/dist/namespace-helpers-Dw1mgQab.js.map +0 -1
  88. package/dist/transitions-CZ21fzhh.js.map +0 -1
  89. package/dist/transitions-RXe2brRm.cjs +0 -302
  90. package/dist/transitions-RXe2brRm.cjs.map +0 -1
@@ -97,25 +97,25 @@ const Ee = {
97
97
  }
98
98
  };
99
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 = [];
100
+ const t = e.match(/^prose(?:-(sm|lg|xl|2xl))?$/);
101
+ if (!t) return null;
102
+ const c = t[1] || "base", o = Ee[c], r = `.${e}`, i = [];
103
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;}`
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:${o.fontSize};line-height:${o.lineHeight};max-width:65ch;}`
105
105
  ), i.push(
106
- `${r} p:not(.not-prose):not(.not-prose *){margin:${t.p} 0;}`
106
+ `${r} p:not(.not-prose):not(.not-prose *){margin:${o.p} 0;}`
107
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);}`
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:${o.lead};margin-bottom:${o.lead};color:var(--cer-prose-lead);}`
109
109
  ), i.push(
110
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
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;}`
112
+ `${r} h1:not(.not-prose):not(.not-prose *){font-size:${o.h1};margin-top:0;margin-bottom:0.8888889em;line-height:1.1111111;}`
113
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;}`
114
+ `${r} h2:not(.not-prose):not(.not-prose *){font-size:${o.h2};margin-top:2em;margin-bottom:1em;line-height:1.3333333;}`
115
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;}`
116
+ `${r} h3:not(.not-prose):not(.not-prose *){font-size:${o.h3};margin-top:1.6em;margin-bottom:0.6em;line-height:1.6;}`
117
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;}`
118
+ `${r} h4:not(.not-prose):not(.not-prose *){font-size:${o.h4};margin-top:1.5em;margin-bottom:0.5em;line-height:1.5;}`
119
119
  ), i.push(
120
120
  `${r} h5:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`
121
121
  ), i.push(
@@ -129,7 +129,7 @@ function Ae(e) {
129
129
  ), i.push(
130
130
  `${r} em:not(.not-prose):not(.not-prose *){font-style:italic;}`
131
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;}`
132
+ `${r} ol:not(.not-prose):not(.not-prose *){list-style-type:decimal;margin-top:${o.ol};margin-bottom:${o.ol};padding-left:1.625em;}`
133
133
  ), i.push(
134
134
  `${r} ol:not(.not-prose):not(.not-prose *)[type="A"]{list-style-type:upper-alpha;}`
135
135
  ), i.push(
@@ -139,49 +139,49 @@ function Ae(e) {
139
139
  ), i.push(
140
140
  `${r} ol:not(.not-prose):not(.not-prose *)[type="i"]{list-style-type:lower-roman;}`
141
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};}`
142
+ `${r} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${o.li};}`
143
143
  ), i.push(
144
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
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;}`
146
+ `${r} ul:not(.not-prose):not(.not-prose *){list-style-type:disc;margin-top:${o.ul};margin-bottom:${o.ul};padding-left:1.625em;}`
147
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};}`
148
+ `${r} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${o.li};}`
149
149
  ), i.push(
150
150
  `${r} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-bullets);}`
151
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};}`
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:${o.ol};}`
153
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};}`
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:${o.ol};}`
155
155
  ), i.push(
156
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
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};}`
158
+ `${r} li:not(.not-prose):not(.not-prose *)>p:not(.not-prose):not(.not-prose *){margin-top:${o.ol};margin-bottom:${o.ol};}`
159
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;}`
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:${o.code};font-weight:600;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;}`
161
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;}`
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:${o.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
163
  ), i.push(
164
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
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;}`
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:${o.blockquote};margin-bottom:${o.blockquote};padding-left:1em;}`
167
167
  ), i.push(
168
168
  `${r} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):first-of-type::before{content:open-quote;}`
169
169
  ), i.push(
170
170
  `${r} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):last-of-type::after{content:close-quote;}`
171
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};}`
172
+ `${r} hr:not(.not-prose):not(.not-prose *){border-color:var(--cer-prose-hr);border-top-width:1px;margin-top:${o.hr};margin-bottom:${o.hr};}`
173
173
  ), i.push(
174
- `${r} figure:not(.not-prose):not(.not-prose *){margin-top:${t.figure};margin-bottom:${t.figure};}`
174
+ `${r} figure:not(.not-prose):not(.not-prose *){margin-top:${o.figure};margin-bottom:${o.figure};}`
175
175
  ), i.push(
176
176
  `${r} figure:not(.not-prose):not(.not-prose *)>*{margin-top:0;margin-bottom:0;}`
177
177
  ), i.push(
178
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
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;}`
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:${o.figure};margin-bottom:${o.figure};max-width:100%;height:auto;}`
181
181
  ), i.push(
182
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
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;}`
184
+ `${r} table:not(.not-prose):not(.not-prose *){width:100%;table-layout:auto;text-align:left;margin-top:${o.table};margin-bottom:${o.table};font-size:0.875em;line-height:1.7142857;}`
185
185
  ), i.push(
186
186
  `${r} thead:not(.not-prose):not(.not-prose *){border-bottom-width:1px;border-bottom-color:var(--cer-prose-table-border);}`
187
187
  ), i.push(
@@ -194,7 +194,7 @@ function Ae(e) {
194
194
  `${r} tbody:not(.not-prose):not(.not-prose *) td:not(.not-prose):not(.not-prose *){vertical-align:baseline;padding:0.5714286em;}`
195
195
  ), i.join("");
196
196
  }
197
- const Oe = {
197
+ const We = {
198
198
  headings: "h1,h2,h3,h4,h5,h6,th",
199
199
  h1: "h1",
200
200
  h2: "h2",
@@ -230,17 +230,17 @@ const Oe = {
230
230
  hr: "hr",
231
231
  lead: '[class~="lead"]'
232
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}}`;
233
+ function Re(e, t, c, o, r, i, g, w) {
234
+ const s = e.match(/^prose-([a-z0-9]+):(.+)$/);
235
+ if (!s) return null;
236
+ const [, u, h] = s, l = We[u];
237
+ if (!l) return null;
238
+ const b = t[h] ?? c(h) ?? o(h) ?? r(h) ?? i(h) ?? g(h) ?? w(h);
239
+ if (!b) return null;
240
+ const n = ve(e);
241
+ return l.split(",").map((f) => {
242
+ const $ = f.trim();
243
+ return `${`.${n} ${$}:not(.not-prose):not(.not-prose *)`}{${b}}`;
244
244
  }).join("");
245
245
  }
246
246
  const Me = `/*
@@ -373,55 +373,55 @@ const Me = `/*
373
373
  --cer-color-error-950: #450a0a;
374
374
  }
375
375
  `;
376
- function _e(e, ...o) {
377
- let a = "";
378
- for (let t = 0; t < e.length; t++)
379
- a += e[t], t < o.length && (a += o[t]);
380
- return a;
376
+ function _e(e, ...t) {
377
+ let c = "";
378
+ for (let o = 0; o < e.length; o++)
379
+ c += e[o], o < t.length && (c += t[o]);
380
+ return c;
381
381
  }
382
- function we(e) {
382
+ function ye(e) {
383
383
  return e.replace(/\/\*[\s\S]*?\*\//g, "").replace(/\s+/g, " ").replace(/\s*([{}:;,>+~])\s*/g, "$1").replace(/;}/g, "}").trim();
384
384
  }
385
- let ee = null;
386
- function Ye() {
387
- return ee || (typeof CSSStyleSheet > "u" ? ee = {
385
+ let re = null;
386
+ function Je() {
387
+ return re || (typeof CSSStyleSheet > "u" ? re = {
388
388
  cssRules: [],
389
389
  replaceSync: () => {
390
390
  },
391
- toString: () => we(ye)
392
- } : (ee = new CSSStyleSheet(), ee.replaceSync(we(ye)))), ee;
391
+ toString: () => ye(ke)
392
+ } : (re = new CSSStyleSheet(), re.replaceSync(ye(ke)))), re;
393
393
  }
394
- let U = null;
395
- const be = /* @__PURE__ */ new Set();
396
- let ce = "";
394
+ let Q = null;
395
+ const $e = /* @__PURE__ */ new Set();
396
+ let de = "";
397
397
  function Pe() {
398
- if (be.size === 0) return null;
399
- U || (typeof CSSStyleSheet > "u" ? U = {
398
+ if ($e.size === 0) return null;
399
+ Q || (typeof CSSStyleSheet > "u" ? Q = {
400
400
  cssRules: [],
401
401
  replaceSync: () => {
402
402
  },
403
- toString: () => ce
404
- } : (U = new CSSStyleSheet(), U.toString = () => ce));
403
+ toString: () => de
404
+ } : (Q = new CSSStyleSheet(), Q.toString = () => de));
405
405
  let e = "";
406
- for (const o of be) {
407
- const a = Ae(o);
408
- a && (e += a);
406
+ for (const t of $e) {
407
+ const c = Ae(t);
408
+ c && (e += c);
409
409
  }
410
- if (ce = we(e), typeof U.replaceSync == "function" && e)
410
+ if (de = ye(e), typeof Q.replaceSync == "function" && e)
411
411
  try {
412
- U.replaceSync(ce);
412
+ Q.replaceSync(de);
413
413
  } catch {
414
414
  }
415
- return U;
415
+ return Q;
416
416
  }
417
- function We(e) {
418
- const o = !be.has(e);
419
- be.add(e), o && U && Pe();
417
+ function Le(e) {
418
+ const t = !$e.has(e);
419
+ $e.add(e), t && Q && Pe();
420
420
  }
421
421
  function er(e) {
422
422
  return e.replace(/url\s*\(\s*['"]?javascript:[^)]*\)/gi, "").replace(/<script[\s\S]*?>[\s\S]*?<\/script>/gi, "").replace(/expression\s*\([^)]*\)/gi, "");
423
423
  }
424
- const ye = _e`
424
+ const ke = _e`
425
425
  ${Me}
426
426
  :host,
427
427
  *,
@@ -437,6 +437,34 @@ const ye = _e`
437
437
  background: transparent;
438
438
  color: inherit;
439
439
  -webkit-tap-highlight-color: transparent;
440
+ /* Transform composition variables (reset per-element for composability) */
441
+ --cer-translate-x: 0px;
442
+ --cer-translate-y: 0px;
443
+ --cer-rotate: 0deg;
444
+ --cer-skew-x: 0deg;
445
+ --cer-skew-y: 0deg;
446
+ --cer-scale-x: 1;
447
+ --cer-scale-y: 1;
448
+ /* Ring variables */
449
+ --cer-ring-color: rgb(59 130 246 / 0.5);
450
+ /* Filter composition variables (empty = no-op in filter chain) */
451
+ --cer-blur: ;
452
+ --cer-brightness: ;
453
+ --cer-contrast: ;
454
+ --cer-grayscale: ;
455
+ --cer-hue-rotate: ;
456
+ --cer-invert: ;
457
+ --cer-saturate: ;
458
+ --cer-sepia: ;
459
+ --cer-drop-shadow: ;
460
+ --cer-backdrop-blur: ;
461
+ --cer-backdrop-brightness: ;
462
+ --cer-backdrop-contrast: ;
463
+ --cer-backdrop-grayscale: ;
464
+ --cer-backdrop-hue-rotate: ;
465
+ --cer-backdrop-invert: ;
466
+ --cer-backdrop-saturate: ;
467
+ --cer-backdrop-sepia: ;
440
468
  }
441
469
  :host {
442
470
  display: contents;
@@ -539,7 +567,7 @@ const ye = _e`
539
567
  [hidden] {
540
568
  display: none;
541
569
  }
542
- `, Le = {
570
+ `, De = {
543
571
  // Existing semantic colors
544
572
  neutral: {
545
573
  50: "#fafafa",
@@ -637,17 +665,17 @@ const ye = _e`
637
665
  black: { DEFAULT: "#000000" },
638
666
  transparent: { DEFAULT: "transparent" },
639
667
  current: { DEFAULT: "currentColor" }
640
- }, ze = Object.fromEntries(
641
- Object.entries(Le).map(([e, o]) => [
668
+ }, Te = Object.fromEntries(
669
+ Object.entries(De).map(([e, t]) => [
642
670
  e,
643
671
  Object.fromEntries(
644
- Object.entries(o).map(([a, t]) => [
645
- a,
646
- `var(--cer-color-${e}${a === "DEFAULT" ? "" : `-${a}`}, ${t})`
672
+ Object.entries(t).map(([c, o]) => [
673
+ c,
674
+ `var(--cer-color-${e}${c === "DEFAULT" ? "" : `-${c}`}, ${o})`
647
675
  ])
648
676
  )
649
677
  ])
650
- ), K = "0.25rem", De = {
678
+ ), G = "0.25rem", qe = {
651
679
  "3xs": 64,
652
680
  "2xs": 72,
653
681
  xs: 80,
@@ -661,7 +689,7 @@ const ye = _e`
661
689
  "5xl": 256,
662
690
  "6xl": 288,
663
691
  "7xl": 320
664
- }, xe = {
692
+ }, we = {
665
693
  m: ["margin"],
666
694
  mx: ["margin-inline"],
667
695
  my: ["margin-block"],
@@ -691,8 +719,10 @@ const ye = _e`
691
719
  right: ["right"],
692
720
  gap: ["gap"],
693
721
  "gap-x": ["column-gap"],
694
- "gap-y": ["row-gap"]
695
- }, qe = () => {
722
+ "gap-y": ["row-gap"],
723
+ // size-* sets both width and height simultaneously (Tailwind v3+)
724
+ size: ["width", "height"]
725
+ }, Ie = () => {
696
726
  const e = {};
697
727
  e["@container"] = "container-type:inline-size;", [
698
728
  "block",
@@ -801,7 +831,12 @@ const ye = _e`
801
831
  "whitespace-pre-wrap": "white-space:pre-wrap;",
802
832
  "break-normal": "overflow-wrap:normal;word-break:normal;",
803
833
  "break-words": "overflow-wrap:break-word;",
804
- "break-all": "word-break:break-all;"
834
+ "break-all": "word-break:break-all;",
835
+ // Text-wrap utilities (Tailwind v3.3+)
836
+ "text-wrap": "text-wrap:wrap;",
837
+ "text-nowrap": "text-wrap:nowrap;",
838
+ "text-balance": "text-wrap:balance;",
839
+ "text-pretty": "text-wrap:pretty;"
805
840
  }), [
806
841
  ["text-xs", "0.75rem", "1"],
807
842
  ["text-sm", "0.875rem", "1.25"],
@@ -816,8 +851,8 @@ const ye = _e`
816
851
  ["text-7xl", "4.5rem", "1"],
817
852
  ["text-8xl", "6rem", "1"],
818
853
  ["text-9xl", "8rem", "1"]
819
- ].forEach(([n, c, f]) => {
820
- e[n] = `font-size:${c};line-height:var(--cer-line-height,${f});`;
854
+ ].forEach(([n, d, f]) => {
855
+ e[n] = `font-size:${d};line-height:var(--cer-line-height,${f});`;
821
856
  }), [
822
857
  ["tracking-tighter", "-0.05em"],
823
858
  ["tracking-tight", "-0.025em"],
@@ -825,8 +860,8 @@ const ye = _e`
825
860
  ["tracking-wide", "0.025em"],
826
861
  ["tracking-wider", "0.05em"],
827
862
  ["tracking-widest", "0.1em"]
828
- ].forEach(([n, c]) => {
829
- e[n] = `letter-spacing:${c};`;
863
+ ].forEach(([n, d]) => {
864
+ e[n] = `letter-spacing:${d};`;
830
865
  }), [
831
866
  ["leading-3", "0.75rem"],
832
867
  ["leading-4", "1rem"],
@@ -842,13 +877,13 @@ const ye = _e`
842
877
  ["leading-normal", "1.5"],
843
878
  ["leading-relaxed", "1.625"],
844
879
  ["leading-loose", "2"]
845
- ].forEach(([n, c]) => {
846
- e[n] = `line-height:${c};--cer-line-height:${c};line-height:var(--cer-line-height,${c});`;
880
+ ].forEach(([n, d]) => {
881
+ e[n] = `line-height:${d};--cer-line-height:${d};line-height:var(--cer-line-height,${d});`;
847
882
  });
848
883
  const i = [0, 1, 2, 4, 6, 8];
849
884
  for (const n of i) {
850
- const c = `${n}px`;
851
- 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};`;
885
+ const d = `${n}px`;
886
+ e[`outline-${n}`] = `outline-style:var(--cer-outline-style);outline-width:${d};`, e[`outline-offset-${n}`] = `outline-offset:${d};`, e[`border-${n}`] = `border-width:${d};`, e[`border-t-${n}`] = `border-top-width:${d};`, e[`border-r-${n}`] = `border-right-width:${d};`, e[`border-b-${n}`] = `border-bottom-width:${d};`, e[`border-l-${n}`] = `border-left-width:${d};`, e[`border-x-${n}`] = `border-left-width:${d};border-right-width:${d};`, e[`border-y-${n}`] = `border-top-width:${d};border-bottom-width:${d};`;
852
887
  }
853
888
  Object.assign(e, {
854
889
  "font-sans": "font-family:var(--cer-font-sans, ui-sans-serif,system-ui,sans-serif);",
@@ -874,7 +909,7 @@ const ye = _e`
874
909
  "border-double": "border-style:double;",
875
910
  "border-none": "border-style:none;"
876
911
  });
877
- const l = {
912
+ const g = {
878
913
  none: 0,
879
914
  xs: 2,
880
915
  sm: 4,
@@ -886,8 +921,8 @@ const ye = _e`
886
921
  "4xl": 32,
887
922
  full: 9999
888
923
  };
889
- for (const [n, c] of Object.entries(l)) {
890
- const f = c === 9999 ? "9999px" : `${c / 16}rem`;
924
+ for (const [n, d] of Object.entries(g)) {
925
+ const f = d === 9999 ? "9999px" : `${d / 16}rem`;
891
926
  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};`;
892
927
  }
893
928
  Object.assign(e, {
@@ -915,8 +950,139 @@ const ye = _e`
915
950
  "overflow-y-hidden": "overflow-y:hidden;",
916
951
  "overflow-y-visible": "overflow-y:visible;",
917
952
  "overflow-y-scroll": "overflow-y:scroll;"
953
+ }), Object.assign(e, {
954
+ "bg-cover": "background-size:cover;",
955
+ "bg-contain": "background-size:contain;",
956
+ "bg-auto": "background-size:auto;",
957
+ "bg-center": "background-position:center;",
958
+ "bg-top": "background-position:top;",
959
+ "bg-bottom": "background-position:bottom;",
960
+ "bg-left": "background-position:left;",
961
+ "bg-right": "background-position:right;",
962
+ "bg-left-top": "background-position:left top;",
963
+ "bg-left-bottom": "background-position:left bottom;",
964
+ "bg-right-top": "background-position:right top;",
965
+ "bg-right-bottom": "background-position:right bottom;",
966
+ "bg-no-repeat": "background-repeat:no-repeat;",
967
+ "bg-repeat": "background-repeat:repeat;",
968
+ "bg-repeat-x": "background-repeat:repeat-x;",
969
+ "bg-repeat-y": "background-repeat:repeat-y;",
970
+ "bg-repeat-round": "background-repeat:round;",
971
+ "bg-repeat-space": "background-repeat:space;",
972
+ "bg-fixed": "background-attachment:fixed;",
973
+ "bg-local": "background-attachment:local;",
974
+ "bg-scroll": "background-attachment:scroll;",
975
+ "bg-origin-border": "background-origin:border-box;",
976
+ "bg-origin-padding": "background-origin:padding-box;",
977
+ "bg-origin-content": "background-origin:content-box;",
978
+ "bg-clip-border": "background-clip:border-box;",
979
+ "bg-clip-padding": "background-clip:padding-box;",
980
+ "bg-clip-content": "background-clip:content-box;",
981
+ "bg-clip-text": "background-clip:text;-webkit-background-clip:text;"
982
+ }), Object.assign(e, {
983
+ "decoration-solid": "text-decoration-style:solid;",
984
+ "decoration-dashed": "text-decoration-style:dashed;",
985
+ "decoration-dotted": "text-decoration-style:dotted;",
986
+ "decoration-double": "text-decoration-style:double;",
987
+ "decoration-wavy": "text-decoration-style:wavy;",
988
+ "decoration-from-font": "text-decoration-thickness:from-font;",
989
+ "decoration-auto": "text-decoration-thickness:auto;",
990
+ "decoration-1": "text-decoration-thickness:1px;",
991
+ "decoration-2": "text-decoration-thickness:2px;",
992
+ "decoration-4": "text-decoration-thickness:4px;",
993
+ "decoration-8": "text-decoration-thickness:8px;",
994
+ "underline-offset-auto": "text-underline-offset:auto;",
995
+ "underline-offset-1": "text-underline-offset:1px;",
996
+ "underline-offset-2": "text-underline-offset:2px;",
997
+ "underline-offset-4": "text-underline-offset:4px;",
998
+ "underline-offset-8": "text-underline-offset:8px;"
999
+ }), Object.assign(e, {
1000
+ "list-none": "list-style-type:none;",
1001
+ "list-disc": "list-style-type:disc;",
1002
+ "list-decimal": "list-style-type:decimal;",
1003
+ "list-inside": "list-style-position:inside;",
1004
+ "list-outside": "list-style-position:outside;"
1005
+ }), Object.assign(e, {
1006
+ "content-none": "content:none;",
1007
+ "content-normal": "content:normal;",
1008
+ "content-empty": "content:'';"
1009
+ }), Object.assign(e, {
1010
+ "scroll-smooth": "scroll-behavior:smooth;",
1011
+ "scroll-auto": "scroll-behavior:auto;",
1012
+ "scroll-m-0": "scroll-margin:0;",
1013
+ "scroll-p-0": "scroll-padding:0;",
1014
+ "snap-none": "scroll-snap-type:none;",
1015
+ "snap-x": "scroll-snap-type:x var(--cer-scroll-snap-strictness,mandatory);",
1016
+ "snap-y": "scroll-snap-type:y var(--cer-scroll-snap-strictness,mandatory);",
1017
+ "snap-both": "scroll-snap-type:both var(--cer-scroll-snap-strictness,mandatory);",
1018
+ "snap-mandatory": "--cer-scroll-snap-strictness:mandatory;",
1019
+ "snap-proximity": "--cer-scroll-snap-strictness:proximity;",
1020
+ "snap-start": "scroll-snap-align:start;",
1021
+ "snap-end": "scroll-snap-align:end;",
1022
+ "snap-center": "scroll-snap-align:center;",
1023
+ "snap-align-none": "scroll-snap-align:none;",
1024
+ "snap-normal": "scroll-snap-stop:normal;",
1025
+ "snap-always": "scroll-snap-stop:always;"
1026
+ }), Object.assign(e, {
1027
+ "will-change-auto": "will-change:auto;",
1028
+ "will-change-scroll": "will-change:scroll-position;",
1029
+ "will-change-contents": "will-change:contents;",
1030
+ "will-change-transform": "will-change:transform;",
1031
+ "will-change-opacity": "will-change:opacity;"
1032
+ }), Object.assign(e, {
1033
+ "touch-auto": "touch-action:auto;",
1034
+ "touch-none": "touch-action:none;",
1035
+ "touch-pan-x": "touch-action:pan-x;",
1036
+ "touch-pan-left": "touch-action:pan-left;",
1037
+ "touch-pan-right": "touch-action:pan-right;",
1038
+ "touch-pan-y": "touch-action:pan-y;",
1039
+ "touch-pan-up": "touch-action:pan-up;",
1040
+ "touch-pan-down": "touch-action:pan-down;",
1041
+ "touch-pinch-zoom": "touch-action:pinch-zoom;",
1042
+ "touch-manipulation": "touch-action:manipulation;"
1043
+ }), Object.assign(e, {
1044
+ "columns-auto": "columns:auto;",
1045
+ "columns-1": "columns:1;",
1046
+ "columns-2": "columns:2;",
1047
+ "columns-3": "columns:3;",
1048
+ "columns-4": "columns:4;",
1049
+ "columns-5": "columns:5;",
1050
+ "columns-6": "columns:6;",
1051
+ "columns-7": "columns:7;",
1052
+ "columns-8": "columns:8;",
1053
+ "columns-9": "columns:9;",
1054
+ "columns-10": "columns:10;",
1055
+ "columns-11": "columns:11;",
1056
+ "columns-12": "columns:12;",
1057
+ "columns-3xs": `columns:${0.25 * 64}rem;`,
1058
+ "columns-2xs": `columns:${0.25 * 80}rem;`,
1059
+ "columns-xs": `columns:${0.25 * 96}rem;`,
1060
+ "columns-sm": `columns:${0.25 * 112}rem;`,
1061
+ "columns-md": `columns:${0.25 * 128}rem;`,
1062
+ "columns-lg": `columns:${0.25 * 160}rem;`,
1063
+ "columns-xl": `columns:${0.25 * 192}rem;`,
1064
+ "columns-2xl": `columns:${0.25 * 224}rem;`,
1065
+ "columns-3xl": `columns:${0.25 * 256}rem;`,
1066
+ "columns-4xl": `columns:${0.25 * 280}rem;`,
1067
+ "columns-5xl": `columns:${0.25 * 320}rem;`
1068
+ }), Object.assign(e, {
1069
+ "divide-x": "border-left-width:1px;",
1070
+ "divide-x-0": "border-left-width:0px;",
1071
+ "divide-x-2": "border-left-width:2px;",
1072
+ "divide-x-4": "border-left-width:4px;",
1073
+ "divide-x-8": "border-left-width:8px;",
1074
+ "divide-y": "border-top-width:1px;",
1075
+ "divide-y-0": "border-top-width:0px;",
1076
+ "divide-y-2": "border-top-width:2px;",
1077
+ "divide-y-4": "border-top-width:4px;",
1078
+ "divide-y-8": "border-top-width:8px;",
1079
+ "divide-solid": "border-style:solid;",
1080
+ "divide-dashed": "border-style:dashed;",
1081
+ "divide-dotted": "border-style:dotted;",
1082
+ "divide-double": "border-style:double;",
1083
+ "divide-none": "border-style:none;"
918
1084
  });
919
- const $ = [
1085
+ const w = [
920
1086
  "auto",
921
1087
  "default",
922
1088
  "pointer",
@@ -928,9 +1094,10 @@ const ye = _e`
928
1094
  "grab",
929
1095
  "grabbing"
930
1096
  ];
931
- for (const n of $) e[`cursor-${n}`] = `cursor:${n};`;
932
- for (const n of [0, 10, 20, 30, 40, 50]) e[`z-${n}`] = `z-index:${n};`;
933
- Object.assign(e, {
1097
+ for (const n of w) e[`cursor-${n}`] = `cursor:${n};`;
1098
+ for (const n of [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 30, 40, 50])
1099
+ e[`z-${n}`] = `z-index:${n};`;
1100
+ e["z-auto"] = "z-index:auto;", e["-z-10"] = "z-index:-10;", e["-z-20"] = "z-index:-20;", e["-z-30"] = "z-index:-30;", e["-z-40"] = "z-index:-40;", e["-z-50"] = "z-index:-50;", Object.assign(e, {
934
1101
  "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;",
935
1102
  "not-sr-only": "position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal;",
936
1103
  "pointer-events-none": "pointer-events:none;",
@@ -964,8 +1131,8 @@ const ye = _e`
964
1131
  "mx-auto": "margin-inline:auto;",
965
1132
  "my-auto": "margin-block:auto;"
966
1133
  });
967
- for (const [n, c] of Object.entries(De))
968
- 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});`;
1134
+ for (const [n, d] of Object.entries(qe))
1135
+ e[`max-w-${n}`] = `max-width:calc(${G} * ${d});`, e[`min-w-${n}`] = `min-width:calc(${G} * ${d});`, e[`w-${n}`] = `width:calc(${G} * ${d});`, e[`max-h-${n}`] = `max-height:calc(${G} * ${d});`, e[`min-h-${n}`] = `min-height:calc(${G} * ${d});`, e[`h-${n}`] = `height:calc(${G} * ${d});`;
969
1136
  Object.assign(e, {
970
1137
  transition: "transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;",
971
1138
  "transition-none": "transition-property:none;",
@@ -987,33 +1154,245 @@ const ye = _e`
987
1154
  "duration-700": "transition-duration:700ms;",
988
1155
  "duration-1000": "transition-duration:1000ms;"
989
1156
  }), Object.assign(e, {
990
- "scale-0": "transform:scale(0);",
991
- "scale-50": "transform:scale(0.5);",
992
- "scale-75": "transform:scale(0.75);",
993
- "scale-90": "transform:scale(0.9);",
994
- "scale-95": "transform:scale(0.95);",
995
- "scale-100": "transform:scale(1);",
996
- "scale-105": "transform:scale(1.05);",
997
- "scale-110": "transform:scale(1.1);",
998
- "scale-125": "transform:scale(1.25);",
999
- "scale-150": "transform:scale(1.5);",
1000
- "rotate-0": "transform:rotate(0deg);",
1001
- "rotate-1": "transform:rotate(1deg);",
1002
- "rotate-2": "transform:rotate(2deg);",
1003
- "rotate-3": "transform:rotate(3deg);",
1004
- "rotate-6": "transform:rotate(6deg);",
1005
- "rotate-12": "transform:rotate(12deg);",
1006
- "rotate-45": "transform:rotate(45deg);",
1007
- "rotate-90": "transform:rotate(90deg);",
1008
- "rotate-180": "transform:rotate(180deg);",
1009
- "-rotate-1": "transform:rotate(-1deg);",
1010
- "-rotate-2": "transform:rotate(-2deg);",
1011
- "-rotate-3": "transform:rotate(-3deg);",
1012
- "-rotate-6": "transform:rotate(-6deg);",
1013
- "-rotate-12": "transform:rotate(-12deg);",
1014
- "-rotate-45": "transform:rotate(-45deg);",
1015
- "-rotate-90": "transform:rotate(-90deg);",
1016
- "-rotate-180": "transform:rotate(-180deg);"
1157
+ "delay-0": "transition-delay:0ms;",
1158
+ "delay-75": "transition-delay:75ms;",
1159
+ "delay-100": "transition-delay:100ms;",
1160
+ "delay-150": "transition-delay:150ms;",
1161
+ "delay-200": "transition-delay:200ms;",
1162
+ "delay-300": "transition-delay:300ms;",
1163
+ "delay-500": "transition-delay:500ms;",
1164
+ "delay-700": "transition-delay:700ms;",
1165
+ "delay-1000": "transition-delay:1000ms;"
1166
+ });
1167
+ const s = "translateX(var(--cer-translate-x)) translateY(var(--cer-translate-y)) rotate(var(--cer-rotate)) skewX(var(--cer-skew-x)) skewY(var(--cer-skew-y)) scaleX(var(--cer-scale-x)) scaleY(var(--cer-scale-y))", u = (n) => `--cer-translate-x:${n};transform:${s};`, h = (n) => `--cer-translate-y:${n};transform:${s};`;
1168
+ Object.assign(e, {
1169
+ // Scale (uniform)
1170
+ "scale-0": `--cer-scale-x:0;--cer-scale-y:0;transform:${s};`,
1171
+ "scale-50": `--cer-scale-x:.5;--cer-scale-y:.5;transform:${s};`,
1172
+ "scale-75": `--cer-scale-x:.75;--cer-scale-y:.75;transform:${s};`,
1173
+ "scale-90": `--cer-scale-x:.9;--cer-scale-y:.9;transform:${s};`,
1174
+ "scale-95": `--cer-scale-x:.95;--cer-scale-y:.95;transform:${s};`,
1175
+ "scale-100": `--cer-scale-x:1;--cer-scale-y:1;transform:${s};`,
1176
+ "scale-105": `--cer-scale-x:1.05;--cer-scale-y:1.05;transform:${s};`,
1177
+ "scale-110": `--cer-scale-x:1.1;--cer-scale-y:1.1;transform:${s};`,
1178
+ "scale-125": `--cer-scale-x:1.25;--cer-scale-y:1.25;transform:${s};`,
1179
+ "scale-150": `--cer-scale-x:1.5;--cer-scale-y:1.5;transform:${s};`,
1180
+ // Scale X axis only
1181
+ "scale-x-0": `--cer-scale-x:0;transform:${s};`,
1182
+ "scale-x-50": `--cer-scale-x:.5;transform:${s};`,
1183
+ "scale-x-75": `--cer-scale-x:.75;transform:${s};`,
1184
+ "scale-x-90": `--cer-scale-x:.9;transform:${s};`,
1185
+ "scale-x-95": `--cer-scale-x:.95;transform:${s};`,
1186
+ "scale-x-100": `--cer-scale-x:1;transform:${s};`,
1187
+ "scale-x-105": `--cer-scale-x:1.05;transform:${s};`,
1188
+ "scale-x-110": `--cer-scale-x:1.1;transform:${s};`,
1189
+ "scale-x-125": `--cer-scale-x:1.25;transform:${s};`,
1190
+ "scale-x-150": `--cer-scale-x:1.5;transform:${s};`,
1191
+ // Scale Y axis only
1192
+ "scale-y-0": `--cer-scale-y:0;transform:${s};`,
1193
+ "scale-y-50": `--cer-scale-y:.5;transform:${s};`,
1194
+ "scale-y-75": `--cer-scale-y:.75;transform:${s};`,
1195
+ "scale-y-90": `--cer-scale-y:.9;transform:${s};`,
1196
+ "scale-y-95": `--cer-scale-y:.95;transform:${s};`,
1197
+ "scale-y-100": `--cer-scale-y:1;transform:${s};`,
1198
+ "scale-y-105": `--cer-scale-y:1.05;transform:${s};`,
1199
+ "scale-y-110": `--cer-scale-y:1.1;transform:${s};`,
1200
+ "scale-y-125": `--cer-scale-y:1.25;transform:${s};`,
1201
+ "scale-y-150": `--cer-scale-y:1.5;transform:${s};`,
1202
+ // Rotate
1203
+ "rotate-0": `--cer-rotate:0deg;transform:${s};`,
1204
+ "rotate-1": `--cer-rotate:1deg;transform:${s};`,
1205
+ "rotate-2": `--cer-rotate:2deg;transform:${s};`,
1206
+ "rotate-3": `--cer-rotate:3deg;transform:${s};`,
1207
+ "rotate-6": `--cer-rotate:6deg;transform:${s};`,
1208
+ "rotate-12": `--cer-rotate:12deg;transform:${s};`,
1209
+ "rotate-45": `--cer-rotate:45deg;transform:${s};`,
1210
+ "rotate-90": `--cer-rotate:90deg;transform:${s};`,
1211
+ "rotate-180": `--cer-rotate:180deg;transform:${s};`,
1212
+ "-rotate-1": `--cer-rotate:-1deg;transform:${s};`,
1213
+ "-rotate-2": `--cer-rotate:-2deg;transform:${s};`,
1214
+ "-rotate-3": `--cer-rotate:-3deg;transform:${s};`,
1215
+ "-rotate-6": `--cer-rotate:-6deg;transform:${s};`,
1216
+ "-rotate-12": `--cer-rotate:-12deg;transform:${s};`,
1217
+ "-rotate-45": `--cer-rotate:-45deg;transform:${s};`,
1218
+ "-rotate-90": `--cer-rotate:-90deg;transform:${s};`,
1219
+ "-rotate-180": `--cer-rotate:-180deg;transform:${s};`,
1220
+ // Translate X
1221
+ "translate-x-0": u("0px"),
1222
+ "translate-x-px": u("1px"),
1223
+ "translate-x-0.5": u("0.125rem"),
1224
+ "translate-x-1": u("0.25rem"),
1225
+ "translate-x-1.5": u("0.375rem"),
1226
+ "translate-x-2": u("0.5rem"),
1227
+ "translate-x-2.5": u("0.625rem"),
1228
+ "translate-x-3": u("0.75rem"),
1229
+ "translate-x-4": u("1rem"),
1230
+ "translate-x-5": u("1.25rem"),
1231
+ "translate-x-6": u("1.5rem"),
1232
+ "translate-x-8": u("2rem"),
1233
+ "translate-x-10": u("2.5rem"),
1234
+ "translate-x-12": u("3rem"),
1235
+ "translate-x-16": u("4rem"),
1236
+ "translate-x-20": u("5rem"),
1237
+ "translate-x-24": u("6rem"),
1238
+ "translate-x-32": u("8rem"),
1239
+ "translate-x-1/2": u("50%"),
1240
+ "translate-x-1/3": u("33.333333%"),
1241
+ "translate-x-2/3": u("66.666667%"),
1242
+ "translate-x-1/4": u("25%"),
1243
+ "translate-x-3/4": u("75%"),
1244
+ "translate-x-full": u("100%"),
1245
+ "-translate-x-px": u("-1px"),
1246
+ "-translate-x-0.5": u("-0.125rem"),
1247
+ "-translate-x-1": u("-0.25rem"),
1248
+ "-translate-x-1.5": u("-0.375rem"),
1249
+ "-translate-x-2": u("-0.5rem"),
1250
+ "-translate-x-2.5": u("-0.625rem"),
1251
+ "-translate-x-3": u("-0.75rem"),
1252
+ "-translate-x-4": u("-1rem"),
1253
+ "-translate-x-1/2": u("-50%"),
1254
+ "-translate-x-full": u("-100%"),
1255
+ // Translate Y
1256
+ "translate-y-0": h("0px"),
1257
+ "translate-y-px": h("1px"),
1258
+ "translate-y-0.5": h("0.125rem"),
1259
+ "translate-y-1": h("0.25rem"),
1260
+ "translate-y-1.5": h("0.375rem"),
1261
+ "translate-y-2": h("0.5rem"),
1262
+ "translate-y-2.5": h("0.625rem"),
1263
+ "translate-y-3": h("0.75rem"),
1264
+ "translate-y-4": h("1rem"),
1265
+ "translate-y-5": h("1.25rem"),
1266
+ "translate-y-6": h("1.5rem"),
1267
+ "translate-y-8": h("2rem"),
1268
+ "translate-y-10": h("2.5rem"),
1269
+ "translate-y-12": h("3rem"),
1270
+ "translate-y-16": h("4rem"),
1271
+ "translate-y-20": h("5rem"),
1272
+ "translate-y-24": h("6rem"),
1273
+ "translate-y-32": h("8rem"),
1274
+ "translate-y-1/2": h("50%"),
1275
+ "translate-y-full": h("100%"),
1276
+ "-translate-y-px": h("-1px"),
1277
+ "-translate-y-0.5": h("-0.125rem"),
1278
+ "-translate-y-1": h("-0.25rem"),
1279
+ "-translate-y-2": h("-0.5rem"),
1280
+ "-translate-y-4": h("-1rem"),
1281
+ "-translate-y-1/2": h("-50%"),
1282
+ "-translate-y-full": h("-100%"),
1283
+ // Skew X
1284
+ "skew-x-0": `--cer-skew-x:0deg;transform:${s};`,
1285
+ "skew-x-1": `--cer-skew-x:1deg;transform:${s};`,
1286
+ "skew-x-2": `--cer-skew-x:2deg;transform:${s};`,
1287
+ "skew-x-3": `--cer-skew-x:3deg;transform:${s};`,
1288
+ "skew-x-6": `--cer-skew-x:6deg;transform:${s};`,
1289
+ "skew-x-12": `--cer-skew-x:12deg;transform:${s};`,
1290
+ "-skew-x-1": `--cer-skew-x:-1deg;transform:${s};`,
1291
+ "-skew-x-2": `--cer-skew-x:-2deg;transform:${s};`,
1292
+ "-skew-x-3": `--cer-skew-x:-3deg;transform:${s};`,
1293
+ "-skew-x-6": `--cer-skew-x:-6deg;transform:${s};`,
1294
+ "-skew-x-12": `--cer-skew-x:-12deg;transform:${s};`,
1295
+ // Skew Y
1296
+ "skew-y-0": `--cer-skew-y:0deg;transform:${s};`,
1297
+ "skew-y-1": `--cer-skew-y:1deg;transform:${s};`,
1298
+ "skew-y-2": `--cer-skew-y:2deg;transform:${s};`,
1299
+ "skew-y-3": `--cer-skew-y:3deg;transform:${s};`,
1300
+ "skew-y-6": `--cer-skew-y:6deg;transform:${s};`,
1301
+ "skew-y-12": `--cer-skew-y:12deg;transform:${s};`,
1302
+ "-skew-y-1": `--cer-skew-y:-1deg;transform:${s};`,
1303
+ "-skew-y-2": `--cer-skew-y:-2deg;transform:${s};`,
1304
+ "-skew-y-3": `--cer-skew-y:-3deg;transform:${s};`,
1305
+ "-skew-y-6": `--cer-skew-y:-6deg;transform:${s};`,
1306
+ "-skew-y-12": `--cer-skew-y:-12deg;transform:${s};`
1307
+ }), Object.assign(e, {
1308
+ ring: "box-shadow:0 0 0 3px var(--cer-ring-color,rgb(59 130 246/0.5));",
1309
+ "ring-0": "box-shadow:0 0 0 0px var(--cer-ring-color,rgb(59 130 246/0.5));",
1310
+ "ring-1": "box-shadow:0 0 0 1px var(--cer-ring-color,rgb(59 130 246/0.5));",
1311
+ "ring-2": "box-shadow:0 0 0 2px var(--cer-ring-color,rgb(59 130 246/0.5));",
1312
+ "ring-4": "box-shadow:0 0 0 4px var(--cer-ring-color,rgb(59 130 246/0.5));",
1313
+ "ring-8": "box-shadow:0 0 0 8px var(--cer-ring-color,rgb(59 130 246/0.5));",
1314
+ "ring-inset": "box-shadow:inset 0 0 0 3px var(--cer-ring-color,rgb(59 130 246/0.5));",
1315
+ "ring-offset-0": "--cer-ring-offset-width:0px;box-shadow:0 0 0 0px var(--cer-ring-offset-color,#fff),0 0 0 3px var(--cer-ring-color,rgb(59 130 246/0.5));",
1316
+ "ring-offset-1": "--cer-ring-offset-width:1px;box-shadow:0 0 0 1px var(--cer-ring-offset-color,#fff),0 0 0 calc(3px + 1px) var(--cer-ring-color,rgb(59 130 246/0.5));",
1317
+ "ring-offset-2": "--cer-ring-offset-width:2px;box-shadow:0 0 0 2px var(--cer-ring-offset-color,#fff),0 0 0 calc(3px + 2px) var(--cer-ring-color,rgb(59 130 246/0.5));",
1318
+ "ring-offset-4": "--cer-ring-offset-width:4px;box-shadow:0 0 0 4px var(--cer-ring-offset-color,#fff),0 0 0 calc(3px + 4px) var(--cer-ring-color,rgb(59 130 246/0.5));",
1319
+ "ring-offset-8": "--cer-ring-offset-width:8px;box-shadow:0 0 0 8px var(--cer-ring-offset-color,#fff),0 0 0 calc(3px + 8px) var(--cer-ring-color,rgb(59 130 246/0.5));"
1320
+ });
1321
+ const l = "var(--cer-blur) var(--cer-brightness) var(--cer-contrast) var(--cer-grayscale) var(--cer-hue-rotate) var(--cer-invert) var(--cer-saturate) var(--cer-sepia) var(--cer-drop-shadow)", b = "var(--cer-backdrop-blur) var(--cer-backdrop-brightness) var(--cer-backdrop-contrast) var(--cer-backdrop-grayscale) var(--cer-backdrop-hue-rotate) var(--cer-backdrop-invert) var(--cer-backdrop-saturate) var(--cer-backdrop-sepia)";
1322
+ Object.assign(e, {
1323
+ // Blur
1324
+ "blur-none": `--cer-blur:;filter:${l};`,
1325
+ "blur-sm": `--cer-blur:blur(4px);filter:${l};`,
1326
+ blur: `--cer-blur:blur(8px);filter:${l};`,
1327
+ "blur-md": `--cer-blur:blur(12px);filter:${l};`,
1328
+ "blur-lg": `--cer-blur:blur(16px);filter:${l};`,
1329
+ "blur-xl": `--cer-blur:blur(24px);filter:${l};`,
1330
+ "blur-2xl": `--cer-blur:blur(40px);filter:${l};`,
1331
+ "blur-3xl": `--cer-blur:blur(64px);filter:${l};`,
1332
+ // Brightness
1333
+ "brightness-0": `--cer-brightness:brightness(0);filter:${l};`,
1334
+ "brightness-50": `--cer-brightness:brightness(.5);filter:${l};`,
1335
+ "brightness-75": `--cer-brightness:brightness(.75);filter:${l};`,
1336
+ "brightness-90": `--cer-brightness:brightness(.9);filter:${l};`,
1337
+ "brightness-95": `--cer-brightness:brightness(.95);filter:${l};`,
1338
+ "brightness-100": `--cer-brightness:brightness(1);filter:${l};`,
1339
+ "brightness-105": `--cer-brightness:brightness(1.05);filter:${l};`,
1340
+ "brightness-110": `--cer-brightness:brightness(1.1);filter:${l};`,
1341
+ "brightness-125": `--cer-brightness:brightness(1.25);filter:${l};`,
1342
+ "brightness-150": `--cer-brightness:brightness(1.5);filter:${l};`,
1343
+ "brightness-200": `--cer-brightness:brightness(2);filter:${l};`,
1344
+ // Contrast
1345
+ "contrast-0": `--cer-contrast:contrast(0);filter:${l};`,
1346
+ "contrast-50": `--cer-contrast:contrast(.5);filter:${l};`,
1347
+ "contrast-75": `--cer-contrast:contrast(.75);filter:${l};`,
1348
+ "contrast-100": `--cer-contrast:contrast(1);filter:${l};`,
1349
+ "contrast-125": `--cer-contrast:contrast(1.25);filter:${l};`,
1350
+ "contrast-150": `--cer-contrast:contrast(1.5);filter:${l};`,
1351
+ "contrast-200": `--cer-contrast:contrast(2);filter:${l};`,
1352
+ // Grayscale
1353
+ grayscale: `--cer-grayscale:grayscale(100%);filter:${l};`,
1354
+ "grayscale-0": `--cer-grayscale:grayscale(0);filter:${l};`,
1355
+ // Hue rotate
1356
+ "hue-rotate-0": `--cer-hue-rotate:hue-rotate(0deg);filter:${l};`,
1357
+ "hue-rotate-15": `--cer-hue-rotate:hue-rotate(15deg);filter:${l};`,
1358
+ "hue-rotate-30": `--cer-hue-rotate:hue-rotate(30deg);filter:${l};`,
1359
+ "hue-rotate-60": `--cer-hue-rotate:hue-rotate(60deg);filter:${l};`,
1360
+ "hue-rotate-90": `--cer-hue-rotate:hue-rotate(90deg);filter:${l};`,
1361
+ "hue-rotate-180": `--cer-hue-rotate:hue-rotate(180deg);filter:${l};`,
1362
+ "-hue-rotate-180": `--cer-hue-rotate:hue-rotate(-180deg);filter:${l};`,
1363
+ "-hue-rotate-90": `--cer-hue-rotate:hue-rotate(-90deg);filter:${l};`,
1364
+ "-hue-rotate-60": `--cer-hue-rotate:hue-rotate(-60deg);filter:${l};`,
1365
+ "-hue-rotate-30": `--cer-hue-rotate:hue-rotate(-30deg);filter:${l};`,
1366
+ "-hue-rotate-15": `--cer-hue-rotate:hue-rotate(-15deg);filter:${l};`,
1367
+ // Invert
1368
+ invert: `--cer-invert:invert(100%);filter:${l};`,
1369
+ "invert-0": `--cer-invert:invert(0);filter:${l};`,
1370
+ // Saturate
1371
+ "saturate-0": `--cer-saturate:saturate(0);filter:${l};`,
1372
+ "saturate-50": `--cer-saturate:saturate(.5);filter:${l};`,
1373
+ "saturate-100": `--cer-saturate:saturate(1);filter:${l};`,
1374
+ "saturate-150": `--cer-saturate:saturate(1.5);filter:${l};`,
1375
+ "saturate-200": `--cer-saturate:saturate(2);filter:${l};`,
1376
+ // Sepia
1377
+ sepia: `--cer-sepia:sepia(100%);filter:${l};`,
1378
+ "sepia-0": `--cer-sepia:sepia(0);filter:${l};`,
1379
+ // Drop shadow (filter, not box-shadow)
1380
+ "drop-shadow-sm": `--cer-drop-shadow:drop-shadow(0 1px 1px rgb(0 0 0/.05));filter:${l};`,
1381
+ "drop-shadow": `--cer-drop-shadow:drop-shadow(0 1px 2px rgb(0 0 0/.1)) drop-shadow(0 1px 1px rgb(0 0 0/.06));filter:${l};`,
1382
+ "drop-shadow-md": `--cer-drop-shadow:drop-shadow(0 4px 3px rgb(0 0 0/.07)) drop-shadow(0 2px 2px rgb(0 0 0/.06));filter:${l};`,
1383
+ "drop-shadow-lg": `--cer-drop-shadow:drop-shadow(0 10px 8px rgb(0 0 0/.04)) drop-shadow(0 4px 3px rgb(0 0 0/.1));filter:${l};`,
1384
+ "drop-shadow-xl": `--cer-drop-shadow:drop-shadow(0 20px 13px rgb(0 0 0/.03)) drop-shadow(0 8px 5px rgb(0 0 0/.08));filter:${l};`,
1385
+ "drop-shadow-2xl": `--cer-drop-shadow:drop-shadow(0 25px 25px rgb(0 0 0/.15));filter:${l};`,
1386
+ "drop-shadow-none": `--cer-drop-shadow:drop-shadow(0 0 #0000);filter:${l};`,
1387
+ // Backdrop blur
1388
+ "backdrop-blur-none": `--cer-backdrop-blur:;backdrop-filter:${b};-webkit-backdrop-filter:${b};`,
1389
+ "backdrop-blur-sm": `--cer-backdrop-blur:blur(4px);backdrop-filter:${b};-webkit-backdrop-filter:${b};`,
1390
+ "backdrop-blur": `--cer-backdrop-blur:blur(8px);backdrop-filter:${b};-webkit-backdrop-filter:${b};`,
1391
+ "backdrop-blur-md": `--cer-backdrop-blur:blur(12px);backdrop-filter:${b};-webkit-backdrop-filter:${b};`,
1392
+ "backdrop-blur-lg": `--cer-backdrop-blur:blur(16px);backdrop-filter:${b};-webkit-backdrop-filter:${b};`,
1393
+ "backdrop-blur-xl": `--cer-backdrop-blur:blur(24px);backdrop-filter:${b};-webkit-backdrop-filter:${b};`,
1394
+ "backdrop-blur-2xl": `--cer-backdrop-blur:blur(40px);backdrop-filter:${b};-webkit-backdrop-filter:${b};`,
1395
+ "backdrop-blur-3xl": `--cer-backdrop-blur:blur(64px);backdrop-filter:${b};-webkit-backdrop-filter:${b};`
1017
1396
  }), Object.assign(e, {
1018
1397
  "aspect-auto": "aspect-ratio:auto;",
1019
1398
  "aspect-square": "aspect-ratio:1 / 1;",
@@ -1150,65 +1529,78 @@ const ye = _e`
1150
1529
  --cer-prose-invert-links-hover:var(--cer-color-info-100);
1151
1530
  `.replace(/\s+/g, "")
1152
1531
  }), e;
1153
- }, pe = qe();
1154
- function Ie(e) {
1155
- return /^prose(?:-(sm|lg|xl|2xl))?$/.test(e) ? (We(e), "") : null;
1532
+ }, fe = Ie();
1533
+ function Ne(e) {
1534
+ return /^prose(?:-(sm|lg|xl|2xl))?$/.test(e) ? (Le(e), "") : null;
1156
1535
  }
1157
- function ke(e) {
1536
+ function Se(e) {
1158
1537
  return /^prose-([a-z0-9]+):(.+)$/.test(e) ? Re(
1159
1538
  e,
1160
- pe,
1161
1539
  fe,
1162
- ue,
1163
- he,
1164
1540
  ge,
1541
+ he,
1542
+ xe,
1165
1543
  me,
1166
- ie
1544
+ be,
1545
+ se
1167
1546
  ) : null;
1168
1547
  }
1169
- function q(e, o) {
1170
- let a = 0;
1171
- for (let t = 0; t < e.length; t++) {
1172
- const r = e[t];
1173
- if (r === "[" || r === "(") a++;
1174
- else if ((r === "]" || r === ")") && a > 0) a--;
1175
- else if (a === 0 && (r === ">" || r === "+" || r === "~" || r === " "))
1176
- return e.slice(0, t) + o + e.slice(t);
1548
+ function q(e, t) {
1549
+ let c = 0;
1550
+ for (let o = 0; o < e.length; o++) {
1551
+ const r = e[o];
1552
+ if (r === "[" || r === "(") c++;
1553
+ else if ((r === "]" || r === ")") && c > 0) c--;
1554
+ else if (c === 0 && (r === ">" || r === "+" || r === "~" || r === " "))
1555
+ return e.slice(0, o) + t + e.slice(o);
1177
1556
  }
1178
- return e + o;
1557
+ return e + t;
1179
1558
  }
1180
- const Se = {
1181
- before: (e, o) => `${e}::before{${o}}`,
1182
- after: (e, o) => `${e}::after{${o}}`,
1183
- hover: (e, o) => `${q(e, ":hover")}{${o}}`,
1184
- focus: (e, o) => `${q(e, ":focus")}{${o}}`,
1185
- active: (e, o) => `${q(e, ":active")}{${o}}`,
1186
- disabled: (e, o) => `${q(e, ":disabled")}{${o}}`,
1187
- visited: (e, o) => `${q(e, ":visited")}{${o}}`,
1188
- checked: (e, o) => `${q(e, ":checked")}{${o}}`,
1189
- first: (e, o) => `${q(e, ":first-child")}{${o}}`,
1190
- last: (e, o) => `${q(e, ":last-child")}{${o}}`,
1191
- odd: (e, o) => `${q(e, ":nth-child(odd)")}{${o}}`,
1192
- even: (e, o) => `${q(e, ":nth-child(even)")}{${o}}`,
1193
- "focus-within": (e, o) => `${q(e, ":focus-within")}{${o}}`,
1194
- "focus-visible": (e, o) => `${q(e, ":focus-visible")}{${o}}`,
1195
- "group-hover": (e, o) => `.group:hover ${e}{${o}}`,
1196
- "group-focus": (e, o) => `.group:focus ${e}{${o}}`,
1197
- "group-active": (e, o) => `.group:active ${e}{${o}}`,
1198
- "group-disabled": (e, o) => `.group:disabled ${e}{${o}}`,
1199
- "peer-hover": (e, o) => `.peer:hover ~ ${e}{${o}}`,
1200
- "peer-focus": (e, o) => `.peer:focus ~ ${e}{${o}}`,
1201
- "peer-checked": (e, o) => `.peer:checked ~ ${e}{${o}}`,
1202
- "peer-disabled": (e, o) => `.peer:disabled ~ ${e}{${o}}`,
1203
- "dark-class": (e, o) => `:host(.dark) ${e}{${o}}`
1204
- }, re = {
1559
+ const je = {
1560
+ before: (e, t) => `${e}::before{${t}}`,
1561
+ after: (e, t) => `${e}::after{${t}}`,
1562
+ hover: (e, t) => `${q(e, ":hover")}{${t}}`,
1563
+ focus: (e, t) => `${q(e, ":focus")}{${t}}`,
1564
+ active: (e, t) => `${q(e, ":active")}{${t}}`,
1565
+ disabled: (e, t) => `${q(e, ":disabled")}{${t}}`,
1566
+ visited: (e, t) => `${q(e, ":visited")}{${t}}`,
1567
+ checked: (e, t) => `${q(e, ":checked")}{${t}}`,
1568
+ first: (e, t) => `${q(e, ":first-child")}{${t}}`,
1569
+ last: (e, t) => `${q(e, ":last-child")}{${t}}`,
1570
+ odd: (e, t) => `${q(e, ":nth-child(odd)")}{${t}}`,
1571
+ even: (e, t) => `${q(e, ":nth-child(even)")}{${t}}`,
1572
+ "focus-within": (e, t) => `${q(e, ":focus-within")}{${t}}`,
1573
+ "focus-visible": (e, t) => `${q(e, ":focus-visible")}{${t}}`,
1574
+ "group-hover": (e, t) => `.group:hover ${e}{${t}}`,
1575
+ "group-focus": (e, t) => `.group:focus ${e}{${t}}`,
1576
+ "group-active": (e, t) => `.group:active ${e}{${t}}`,
1577
+ "group-disabled": (e, t) => `.group:disabled ${e}{${t}}`,
1578
+ "peer-hover": (e, t) => `.peer:hover ~ ${e}{${t}}`,
1579
+ "peer-focus": (e, t) => `.peer:focus ~ ${e}{${t}}`,
1580
+ "peer-checked": (e, t) => `.peer:checked ~ ${e}{${t}}`,
1581
+ "peer-disabled": (e, t) => `.peer:disabled ~ ${e}{${t}}`,
1582
+ "dark-class": (e, t) => `:host(.dark) ${e}{${t}}`,
1583
+ rtl: (e, t) => `[dir=rtl] ${e}{${t}}`,
1584
+ ltr: (e, t) => `[dir=ltr] ${e}{${t}}`,
1585
+ // Pseudo-element variants
1586
+ placeholder: (e, t) => `${e}::placeholder{${t}}`,
1587
+ file: (e, t) => `${e}::file-selector-button{${t}}`,
1588
+ marker: (e, t) => `${e}::marker{${t}}`,
1589
+ selection: (e, t) => `${e}::selection{${t}}`,
1590
+ // State variants
1591
+ open: (e, t) => `${q(e, "[open]")}{${t}}`
1592
+ }, te = {
1205
1593
  sm: "(min-width:640px)",
1206
1594
  md: "(min-width:768px)",
1207
1595
  lg: "(min-width:1024px)",
1208
1596
  xl: "(min-width:1280px)",
1209
1597
  "2xl": "(min-width:1536px)",
1210
- dark: "(prefers-color-scheme: dark)"
1211
- }, je = {
1598
+ dark: "(prefers-color-scheme: dark)",
1599
+ "motion-reduce": "(prefers-reduced-motion: reduce)",
1600
+ "motion-safe": "(prefers-reduced-motion: no-preference)",
1601
+ print: "print",
1602
+ "forced-colors": "(forced-colors: active)"
1603
+ }, Ce = {
1212
1604
  xs: "(min-width:20rem)",
1213
1605
  sm: "(min-width:24rem)",
1214
1606
  md: "(min-width:28rem)",
@@ -1220,7 +1612,17 @@ const Se = {
1220
1612
  "5xl": "(min-width:64rem)",
1221
1613
  "6xl": "(min-width:72rem)",
1222
1614
  "7xl": "(min-width:80rem)"
1223
- }, oe = ["sm", "md", "lg", "xl", "2xl"], le = [
1615
+ }, oe = [
1616
+ "sm",
1617
+ "md",
1618
+ "lg",
1619
+ "xl",
1620
+ "2xl",
1621
+ "motion-reduce",
1622
+ "motion-safe",
1623
+ "print",
1624
+ "forced-colors"
1625
+ ], pe = [
1224
1626
  "xs",
1225
1627
  "sm",
1226
1628
  "md",
@@ -1233,48 +1635,48 @@ const Se = {
1233
1635
  "6xl",
1234
1636
  "7xl"
1235
1637
  ];
1236
- function fe(e) {
1237
- const o = e.startsWith("-"), a = o ? e.slice(1) : e, t = a.lastIndexOf("-");
1238
- if (t === -1) return null;
1239
- const r = a.slice(0, t), i = a.slice(t + 1);
1240
- if (!xe[r]) return null;
1638
+ function ge(e) {
1639
+ const t = e.startsWith("-"), c = t ? e.slice(1) : e, o = c.lastIndexOf("-");
1640
+ if (o === -1) return null;
1641
+ const r = c.slice(0, o), i = c.slice(o + 1);
1642
+ if (!we[r]) return null;
1241
1643
  if (i.includes("/")) {
1242
- const [n, c] = i.split("/").map((j) => parseFloat(j));
1243
- if (Number.isNaN(n) || Number.isNaN(c) || c === 0)
1644
+ const [s, u] = i.split("/").map((l) => parseFloat(l));
1645
+ if (Number.isNaN(s) || Number.isNaN(u) || u === 0)
1244
1646
  return null;
1245
- const f = n / c * 100;
1246
- return xe[r].map((j) => `${j}:${f}%;`).join("");
1647
+ const h = s / u * 100;
1648
+ return we[r].map((l) => `${l}:${h}%;`).join("");
1247
1649
  }
1248
- const l = parseFloat(i);
1249
- if (Number.isNaN(l)) return null;
1250
- const $ = o ? "-" : "";
1251
- return xe[r].map((n) => `${n}:calc(${$}${K} * ${l});`).join("");
1650
+ const g = parseFloat(i);
1651
+ if (Number.isNaN(g)) return null;
1652
+ const w = t ? "-" : "";
1653
+ return we[r].map((s) => `${s}:calc(${w}${G} * ${g});`).join("");
1252
1654
  }
1253
- function ue(e) {
1254
- const o = e.startsWith("-"), t = (o ? e.slice(1) : e).match(/^space-(x|y)-(.+)$/);
1255
- if (!t) return null;
1256
- const [, r, i] = t, l = r === "x";
1655
+ function he(e) {
1656
+ const t = e.startsWith("-"), o = (t ? e.slice(1) : e).match(/^space-(x|y)-(.+)$/);
1657
+ if (!o) return null;
1658
+ const [, r, i] = o, g = r === "x";
1257
1659
  if (i === "reverse")
1258
- return l ? "--cer-space-x-reverse:1;" : "--cer-space-y-reverse:1;";
1660
+ return g ? "--cer-space-x-reverse:1;" : "--cer-space-y-reverse:1;";
1259
1661
  if (i.includes("/")) {
1260
- const [f, j] = i.split("/").map((p) => parseFloat(p));
1261
- if (Number.isNaN(f) || Number.isNaN(j) || j === 0)
1662
+ const [h, l] = i.split("/").map((d) => parseFloat(d));
1663
+ if (Number.isNaN(h) || Number.isNaN(l) || l === 0)
1262
1664
  return null;
1263
- const y = f / j * 100, F = o ? "-" : "";
1264
- 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));}`;
1665
+ const b = h / l * 100, n = t ? "-" : "";
1666
+ return g ? `--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${n}${b}% * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${n}${b}% * var(--cer-space-x-reverse));}` : `--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${n}${b}% * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${n}${b}% * var(--cer-space-y-reverse));}`;
1265
1667
  }
1266
- const $ = parseFloat(i);
1267
- if (Number.isNaN($)) return null;
1268
- const c = `calc(${o ? "-" : ""}${K} * ${$})`;
1269
- 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));}`;
1668
+ const w = parseFloat(i);
1669
+ if (Number.isNaN(w)) return null;
1670
+ const u = `calc(${t ? "-" : ""}${G} * ${w})`;
1671
+ return g ? `--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${u} * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${u} * var(--cer-space-x-reverse));}` : `--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${u} * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${u} * var(--cer-space-y-reverse));}`;
1270
1672
  }
1271
- function de(e) {
1272
- let o = e.replace("#", "");
1273
- o.length === 3 && (o = o.split("").map((t) => t + t).join(""));
1274
- const a = parseInt(o, 16);
1275
- return `${a >> 16 & 255} ${a >> 8 & 255} ${a & 255}`;
1673
+ function ue(e) {
1674
+ let t = e.replace("#", "");
1675
+ t.length === 3 && (t = t.split("").map((o) => o + o).join(""));
1676
+ const c = parseInt(t, 16);
1677
+ return `${c >> 16 & 255} ${c >> 8 & 255} ${c & 255}`;
1276
1678
  }
1277
- const Ne = /^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/, Ve = {
1679
+ const Ve = /^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke|ring|divide)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/, Be = {
1278
1680
  bg: "background-color",
1279
1681
  decoration: "text-decoration-color",
1280
1682
  text: "color",
@@ -1285,83 +1687,85 @@ const Ne = /^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke)
1285
1687
  fill: "fill",
1286
1688
  stroke: "stroke"
1287
1689
  };
1288
- function Be(e) {
1289
- const o = Ne.exec(e);
1290
- if (!o) return null;
1291
- const [, a, t, r = "DEFAULT"] = o, i = ze[t]?.[r];
1690
+ function Ue(e) {
1691
+ const t = Ve.exec(e);
1692
+ if (!t) return null;
1693
+ const [, c, o, r = "DEFAULT"] = t, i = Te[o]?.[r];
1292
1694
  if (!i) return null;
1293
- if (a === "shadow") return `--cer-shadow-color:${i};`;
1294
- const l = Ve[a];
1295
- return l ? `${l}:${i};` : null;
1695
+ if (c === "shadow") return `--cer-shadow-color:${i};`;
1696
+ if (c === "ring") return `--cer-ring-color:${i};`;
1697
+ if (c === "divide") return `border-color:${i};`;
1698
+ const g = Be[c];
1699
+ return g ? `${g}:${i};` : null;
1296
1700
  }
1297
1701
  function He(e) {
1298
- const o = e.indexOf("/");
1299
- if (o === -1) return { base: e };
1300
- const a = e.slice(0, o), t = e.slice(o + 1), r = parseInt(t, 10);
1301
- return isNaN(r) || r < 0 || r > 100 ? { base: a } : { base: a, opacity: r / 100 };
1702
+ const t = e.indexOf("/");
1703
+ if (t === -1) return { base: e };
1704
+ const c = e.slice(0, t), o = e.slice(t + 1), r = parseInt(o, 10);
1705
+ return isNaN(r) || r < 0 || r > 100 ? { base: c } : { base: c, opacity: r / 100 };
1302
1706
  }
1303
- function ge(e) {
1304
- const { base: o, opacity: a } = He(e), t = Be(o);
1305
- if (t) {
1306
- if (a !== void 0) {
1307
- if (t.includes("var(")) {
1308
- const l = /var\([^)]*\)/.exec(t);
1309
- if (l) {
1310
- 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";
1311
- if (f) {
1312
- const p = `rgb(${de(f[0])} / ${a})`, g = $.replace(
1707
+ function me(e) {
1708
+ const { base: t, opacity: c } = He(e), o = Ue(t);
1709
+ if (o) {
1710
+ if (c !== void 0) {
1711
+ if (o.includes("var(")) {
1712
+ const g = /var\([^)]*\)/.exec(o);
1713
+ if (g) {
1714
+ const w = g[0], s = c * 100, u = `color-mix(in srgb, ${w} ${s}%, rgba(0 0 0 / 0) ${100 - s}%)`, h = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(w), l = /^([a-z-]+):/.exec(o), b = l ? l[1] : "background-color";
1715
+ if (h) {
1716
+ const d = `rgb(${ue(h[0])} / ${c})`, f = w.replace(
1313
1717
  /#([0-9a-f]{6}|[0-9a-f]{3})/i,
1314
- p
1718
+ d
1315
1719
  );
1316
- return `${y}:${g};__CE_COLOR_MIX_SPLIT__${y}:${c};`;
1720
+ return `${b}:${f};__CE_COLOR_MIX_SPLIT__${b}:${u};`;
1317
1721
  }
1318
- return `${y}:${c};`;
1722
+ return `${b}:${u};`;
1319
1723
  }
1320
1724
  }
1321
- const i = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(t);
1725
+ const i = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(o);
1322
1726
  if (i) {
1323
- const l = de(i[0]);
1324
- return t.replace(
1727
+ const g = ue(i[0]);
1728
+ return o.replace(
1325
1729
  /#([0-9a-f]{6}|[0-9a-f]{3})/i,
1326
- `rgb(${l} / ${a})`
1730
+ `rgb(${g} / ${c})`
1327
1731
  );
1328
1732
  }
1329
1733
  }
1330
- return t;
1734
+ return o;
1331
1735
  }
1332
- const r = ie(o);
1333
- if (r && a !== void 0) {
1736
+ const r = se(t);
1737
+ if (r && c !== void 0) {
1334
1738
  if (r.includes("var(")) {
1335
- const l = /var\([^)]*\)/.exec(r);
1336
- if (l) {
1337
- 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;
1338
- if (f && y) {
1339
- const p = `rgb(${de(f[0])} / ${a})`, g = $.replace(
1739
+ const g = /var\([^)]*\)/.exec(r);
1740
+ if (g) {
1741
+ const w = g[0], s = c * 100, u = `color-mix(in srgb, ${w} ${s}%, rgba(0 0 0 / 0) ${100 - s}%)`, h = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(w), l = /^([a-z-]+):/.exec(r), b = l ? l[1] : null;
1742
+ if (h && b) {
1743
+ const d = `rgb(${ue(h[0])} / ${c})`, f = w.replace(
1340
1744
  /#([0-9a-f]{6}|[0-9a-f]{3})/i,
1341
- p
1745
+ d
1342
1746
  );
1343
- return `${y}:${g};__CE_COLOR_MIX_SPLIT__${y}:${c};`;
1747
+ return `${b}:${f};__CE_COLOR_MIX_SPLIT__${b}:${u};`;
1344
1748
  }
1345
- return r.replace($, c);
1749
+ return r.replace(w, u);
1346
1750
  }
1347
1751
  }
1348
1752
  const i = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(r);
1349
1753
  if (i) {
1350
- const l = de(i[0]);
1754
+ const g = ue(i[0]);
1351
1755
  return r.replace(
1352
1756
  /#([0-9a-f]{6}|[0-9a-f]{3})/i,
1353
- `rgb(${l} / ${a})`
1757
+ `rgb(${g} / ${c})`
1354
1758
  );
1355
1759
  }
1356
1760
  }
1357
1761
  return r;
1358
1762
  }
1359
- function me(e) {
1360
- const o = /^(from|to|via)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);
1361
- if (!o) return null;
1362
- const [, a, t, r = "DEFAULT"] = o, i = ze[t]?.[r];
1763
+ function be(e) {
1764
+ const t = /^(from|to|via)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);
1765
+ if (!t) return null;
1766
+ const [, c, o, r = "DEFAULT"] = t, i = Te[o]?.[r];
1363
1767
  if (!i) return null;
1364
- switch (a) {
1768
+ switch (c) {
1365
1769
  case "from":
1366
1770
  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);`;
1367
1771
  case "to":
@@ -1372,23 +1776,23 @@ function me(e) {
1372
1776
  return null;
1373
1777
  }
1374
1778
  }
1375
- function he(e) {
1376
- const o = /^opacity-(\d{1,3})$/.exec(e);
1377
- if (!o) return null;
1378
- const a = parseInt(o[1], 10);
1379
- return a < 0 || a > 100 ? null : `opacity:${a / 100};`;
1779
+ function xe(e) {
1780
+ const t = /^opacity-(\d{1,3})$/.exec(e);
1781
+ if (!t) return null;
1782
+ const c = parseInt(t[1], 10);
1783
+ return c < 0 || c > 100 ? null : `opacity:${c / 100};`;
1380
1784
  }
1381
- function ie(e) {
1785
+ function se(e) {
1382
1786
  if (e.startsWith("[") && e.endsWith("]") && !e.includes("-[")) {
1383
- const l = e.slice(1, -1).trim(), $ = l.indexOf(":");
1384
- if ($ === -1) return null;
1385
- const n = l.slice(0, $).trim();
1386
- let c = l.slice($ + 1).trim();
1387
- 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;
1787
+ const g = e.slice(1, -1).trim(), w = g.indexOf(":");
1788
+ if (w === -1) return null;
1789
+ const s = g.slice(0, w).trim();
1790
+ let u = g.slice(w + 1).trim();
1791
+ return /^[a-zA-Z][a-zA-Z0-9-]*$/.test(s) ? (u = u.replace(/_/g, " "), u = u.replace(/url\('\s*([^']*?)\s*'\)/g, 'url("$1")'), u = u.replace(/^'([^']*)'$/g, '"$1"'), `${s}:${u};`) : null;
1388
1792
  }
1389
- const o = e.indexOf("-[");
1390
- if (o <= 0 || !e.endsWith("]")) return null;
1391
- const a = e.slice(0, o), t = e.slice(o + 2, -1).replace(/_/g, " "), r = {
1793
+ const t = e.indexOf("-[");
1794
+ if (t <= 0 || !e.endsWith("]")) return null;
1795
+ const c = e.slice(0, t), o = e.slice(t + 2, -1).replace(/_/g, " "), r = {
1392
1796
  bg: "background-color",
1393
1797
  shadow: "box-shadow",
1394
1798
  p: "padding",
@@ -1420,7 +1824,7 @@ function ie(e) {
1420
1824
  flex: "flex-direction",
1421
1825
  items: "align-items",
1422
1826
  justify: "justify-content",
1423
- content: "align-content",
1827
+ content: "content",
1424
1828
  self: "align-self",
1425
1829
  basis: "flex-basis",
1426
1830
  tracking: "letter-spacing",
@@ -1428,85 +1832,85 @@ function ie(e) {
1428
1832
  z: "z-index",
1429
1833
  opacity: "opacity"
1430
1834
  };
1431
- if (a === "text")
1432
- return /^\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex)$/.test(t) ? `font-size:${t};` : `color:${t};`;
1433
- if (a === "rotate") return `transform:rotate(${t});`;
1434
- if (a === "scale") return `transform:scale(${t});`;
1435
- if (a === "translate-x") return `transform:translateX(${t});`;
1436
- if (a === "translate-y") return `transform:translateY(${t});`;
1437
- const i = r[a] ?? a.replace(/_/g, "-");
1438
- return i && t ? `${i}:${t};` : null;
1835
+ if (c === "text")
1836
+ return /^\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex)$/.test(o) ? `font-size:${o};` : `color:${o};`;
1837
+ if (c === "rotate") return `transform:rotate(${o});`;
1838
+ if (c === "scale") return `transform:scale(${o});`;
1839
+ if (c === "translate-x") return `transform:translateX(${o});`;
1840
+ if (c === "translate-y") return `transform:translateY(${o});`;
1841
+ const i = r[c] ?? c.replace(/_/g, "-");
1842
+ return i && o ? `${i}:${o};` : null;
1439
1843
  }
1440
- function Ce(e) {
1844
+ function ze(e) {
1441
1845
  if (e.startsWith("[") && e.endsWith("]")) {
1442
- const a = e.slice(1, -1);
1443
- return a.includes("&") ? a : e;
1846
+ const c = e.slice(1, -1);
1847
+ return c.includes("&") ? c : e;
1444
1848
  }
1445
- const o = e.indexOf("-[");
1446
- if (o > 0 && e.endsWith("]")) {
1447
- const a = e.slice(o + 2, -1).replace(/_/g, "-");
1448
- return a.includes("&") ? a : e.replace(/_/g, "-");
1849
+ const t = e.indexOf("-[");
1850
+ if (t > 0 && e.endsWith("]")) {
1851
+ const c = e.slice(t + 2, -1).replace(/_/g, "-");
1852
+ return c.includes("&") ? c : e.replace(/_/g, "-");
1449
1853
  }
1450
1854
  return null;
1451
1855
  }
1452
1856
  function ve(e) {
1453
1857
  if (typeof CSS < "u" && CSS.escape)
1454
1858
  return CSS.escape(e);
1455
- const o = String(e), a = o.length;
1456
- let t = "", r = 0;
1457
- for (; r < a; ) {
1458
- const i = o.charAt(r), l = o.charCodeAt(r);
1459
- 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)
1460
- 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)
1461
- 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 || // -
1462
- l === 95 || // _
1463
- l >= 48 && l <= 57 || // 0-9
1464
- l >= 65 && l <= 90 || // A-Z
1465
- l >= 97 && l <= 122 ? t += i : t += "\\" + i, r++;
1859
+ const t = String(e), c = t.length;
1860
+ let o = "", r = 0;
1861
+ for (; r < c; ) {
1862
+ const i = t.charAt(r), g = t.charCodeAt(r);
1863
+ g === 0 ? o += "�" : /* If the character is in the range [\1-\1f] (U+0001 to U+001F) or is U+007F */ g >= 1 && g <= 31 || g === 127 || // If the character is the first character and is in the range [0-9] (U+0030 to U+0039)
1864
+ r === 0 && g >= 48 && g <= 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)
1865
+ r === 1 && g >= 48 && g <= 57 && t.charCodeAt(0) === 45 ? o += "\\" + g.toString(16) + " " : /* If the character is the first character and is a "-" (U+002D), and there is no second character */ r === 0 && c === 1 && g === 45 ? o += "\\" + i : /* If the character is not handled by one of the above rules and is one of the following */ g >= 128 || g === 45 || // -
1866
+ g === 95 || // _
1867
+ g >= 48 && g <= 57 || // 0-9
1868
+ g >= 65 && g <= 90 || // A-Z
1869
+ g >= 97 && g <= 122 ? o += i : o += "\\" + i, r++;
1466
1870
  }
1467
- return t;
1871
+ return o;
1468
1872
  }
1469
- function te(e) {
1873
+ function ne(e) {
1470
1874
  return "." + ve(e);
1471
1875
  }
1472
- function Ue(e) {
1876
+ function Ke(e) {
1473
1877
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1474
1878
  }
1475
- function Ke(e) {
1476
- const o = /class\s*=\s*(['"])([\s\S]*?)\1/g, a = [];
1477
- let t;
1478
- for (; t = o.exec(e); ) {
1479
- const r = t[2].split(/\s+/).filter(Boolean);
1480
- r.length && a.push(...r);
1879
+ function Xe(e) {
1880
+ const t = /class\s*=\s*(['"])([\s\S]*?)\1/g, c = [];
1881
+ let o;
1882
+ for (; o = t.exec(e); ) {
1883
+ const r = o[2].split(/\s+/).filter(Boolean);
1884
+ r.length && c.push(...r);
1481
1885
  }
1482
- return a;
1886
+ return c;
1483
1887
  }
1484
- const ne = /* @__PURE__ */ new Map(), Qe = 16, Te = 1e3;
1485
- function Ge(e) {
1486
- const o = ne.get(e);
1487
- if (o && Date.now() - o.timestamp < Qe)
1488
- return o.css;
1489
- const a = Ke(e);
1490
- if (!a.length) return "";
1491
- const t = new Set(a), r = [[], [], [], []], i = {}, l = (p, g = !1) => {
1492
- const h = g ? `dark|${p}` : p;
1493
- if (h in i) return i[h];
1494
- const x = f(p, g);
1495
- return i[h] = x, x;
1496
- }, $ = (p) => {
1497
- const g = p.some((T) => oe.includes(T)), h = p.some(
1498
- (T) => T.startsWith("@") && (le.includes(T.slice(1)) || T.match(/^@\[.+\]$/))
1499
- ), x = p.includes("dark");
1500
- return p.length ? !g && !x && !h ? 1 : x && (g || h) ? 3 : 2 : 0;
1501
- }, n = (p) => {
1502
- const g = [];
1503
- let h = "", x = 0;
1504
- for (let T = 0; T < p.length; T++) {
1505
- const k = p[T];
1506
- k === "[" || k === "(" ? x++ : (k === "]" || k === ")") && x--, k === ":" && x === 0 ? (g.push(h), h = "") : h += k;
1888
+ const ae = /* @__PURE__ */ new Map(), Oe = 1e3;
1889
+ function Qe(e) {
1890
+ const t = ae.get(e);
1891
+ if (t)
1892
+ return t.css;
1893
+ const c = Xe(e);
1894
+ if (!c.length) return "";
1895
+ const o = new Set(c), r = [[], [], [], []], i = {}, g = (d, f = !1) => {
1896
+ const $ = f ? `dark|${d}` : d;
1897
+ if ($ in i) return i[$];
1898
+ const y = h(d, f);
1899
+ return i[$] = y, y;
1900
+ }, w = (d) => {
1901
+ const f = d.some((j) => oe.includes(j)), $ = d.some(
1902
+ (j) => j.startsWith("@") && (pe.includes(j.slice(1)) || j.match(/^@\[.+\]$/))
1903
+ ), y = d.includes("dark");
1904
+ return d.length ? !f && !y && !$ ? 1 : y && (f || $) ? 3 : 2 : 0;
1905
+ }, s = (d) => {
1906
+ const f = [];
1907
+ let $ = "", y = 0;
1908
+ for (let j = 0; j < d.length; j++) {
1909
+ const k = d[j];
1910
+ k === "[" || k === "(" ? y++ : (k === "]" || k === ")") && y--, k === ":" && y === 0 ? (f.push($), $ = "") : $ += k;
1507
1911
  }
1508
- return h && g.push(h), g;
1509
- }, c = {
1912
+ return $ && f.push($), f;
1913
+ }, u = {
1510
1914
  hover: ":hover",
1511
1915
  focus: ":focus",
1512
1916
  active: ":active",
@@ -1519,168 +1923,204 @@ function Ge(e) {
1519
1923
  even: ":nth-child(even)",
1520
1924
  "focus-within": ":focus-within",
1521
1925
  "focus-visible": ":focus-visible"
1522
- }, f = (p, g = !1) => {
1523
- const h = n(p);
1524
- let x = "", T = !1;
1525
- for (const s of h) {
1526
- let b = s;
1527
- if (b.startsWith("!") && (T = !0, b = b.slice(1)), pe[b] || fe(b) || ue(b) || he(b) || ge(b) || me(b) || ie(b)) {
1528
- x = s;
1926
+ }, h = (d, f = !1) => {
1927
+ const $ = s(d);
1928
+ let y = "", j = !1;
1929
+ for (const a of $) {
1930
+ let p = a;
1931
+ if (p.startsWith("!") && (j = !0, p = p.slice(1)), p.endsWith("!") && (j = !0, p = p.slice(0, -1)), !(p.startsWith("data-[") && p.endsWith("]") || p.startsWith("has-[") && p.endsWith("]") || p.startsWith("not-[") && p.endsWith("]") || p.startsWith("in-[") && p.endsWith("]") || p.startsWith("supports-[") && p.endsWith("]") || p === "starting") && (fe[p] || ge(p) || he(p) || xe(p) || me(p) || be(p) || se(p))) {
1932
+ y = a;
1529
1933
  break;
1530
1934
  }
1531
1935
  }
1532
- if (!x) return null;
1533
- const k = x.replace(/^!/, ""), _ = pe[k] ?? fe(k) ?? ue(k) ?? he(k) ?? ge(k) ?? me(k) ?? ie(k);
1936
+ if (!y) return null;
1937
+ const k = y.replace(/^!/, "").replace(/!$/, ""), _ = fe[k] ?? ge(k) ?? he(k) ?? xe(k) ?? me(k) ?? be(k) ?? se(k);
1534
1938
  if (!_) return null;
1535
- const W = h.indexOf(x);
1536
- let E = W >= 0 ? h.slice(0, W) : [];
1537
- g && (E = E.filter((s) => s !== "dark"));
1538
- const A = te(p), R = T ? _.replace(/;/g, " !important;") : _, d = "__SUBJECT__";
1539
- let m = d;
1939
+ const P = $.indexOf(y);
1940
+ let T = P >= 0 ? $.slice(0, P) : [];
1941
+ f && (T = T.filter((a) => a !== "dark"));
1942
+ const z = ne(d), W = j ? _.replace(/;/g, " !important;") : _, x = "__SUBJECT__";
1943
+ let m = x;
1540
1944
  const C = [];
1541
- for (const s of E)
1542
- s.startsWith("group-") ? (m = `.group:${s.slice(6)} ${m}`, C.push(s)) : s.startsWith("peer-") && (m = m.replace(
1543
- d,
1544
- `.peer:${s.slice(5)}~${d}`
1545
- ), C.push(s));
1546
- E = E.filter((s) => !C.includes(s));
1547
- const P = [], L = [];
1548
- let M = null;
1549
- for (const s of E) {
1550
- if (s === "dark" || oe.includes(s) || s.startsWith("@") && (le.includes(s.slice(1)) || s.match(/^@\[.+\]$/)))
1945
+ for (const a of T)
1946
+ a.startsWith("group-") ? (m = `.group:${a.slice(6)} ${m}`, C.push(a)) : a.startsWith("peer-") && (m = m.replace(
1947
+ x,
1948
+ `.peer:${a.slice(5)}~${x}`
1949
+ ), C.push(a));
1950
+ T = T.filter((a) => !C.includes(a));
1951
+ const E = [], L = [];
1952
+ let R = null, F = !1;
1953
+ const I = [];
1954
+ for (const a of T) {
1955
+ if (a === "dark" || oe.includes(a) || a.startsWith("@") && (pe.includes(a.slice(1)) || a.match(/^@\[.+\]$/)))
1956
+ continue;
1957
+ if (a.startsWith("data-[") && a.endsWith("]")) {
1958
+ const v = a.slice(6, -1), M = v.includes("=") ? "[data-" + v.replace(/^([^=]+)=(.+)$/, '$1="$2"') + "]" : "[data-" + v + "]";
1959
+ E.push(M);
1551
1960
  continue;
1552
- const b = Ce(s);
1553
- if (b) {
1554
- M = b;
1961
+ }
1962
+ if (a.startsWith("has-[") && a.endsWith("]")) {
1963
+ const v = a.slice(5, -1).replace(/_/g, " ");
1964
+ E.push(`:has(${v})`);
1555
1965
  continue;
1556
1966
  }
1557
- const S = c[s];
1558
- if (S) {
1559
- M ? L.push(S) : P.push(S);
1967
+ if (a.startsWith("not-[") && a.endsWith("]")) {
1968
+ const v = a.slice(5, -1).replace(/_/g, " ");
1969
+ E.push(`:not(${v})`);
1560
1970
  continue;
1561
1971
  }
1562
- const v = Se[s];
1563
- typeof v == "function" && (m = v(m, R).split("{")[0]);
1972
+ if (a.startsWith("in-[") && a.endsWith("]")) {
1973
+ m = ":is(" + a.slice(4, -1).replace(/_/g, " ") + ") " + m;
1974
+ continue;
1975
+ }
1976
+ if (a === "starting") {
1977
+ F = !0;
1978
+ continue;
1979
+ }
1980
+ if (a.startsWith("supports-[") && a.endsWith("]")) {
1981
+ I.push(a);
1982
+ continue;
1983
+ }
1984
+ const p = ze(a);
1985
+ if (p) {
1986
+ R = p;
1987
+ continue;
1988
+ }
1989
+ const O = u[a];
1990
+ if (O) {
1991
+ R ? L.push(O) : E.push(O);
1992
+ continue;
1993
+ }
1994
+ const A = je[a];
1995
+ typeof A == "function" && (m = A(m, W).split("{")[0]);
1564
1996
  }
1565
- const z = P.join(""), D = L.join("");
1566
- function I(s, b) {
1567
- if (!b) return s;
1568
- let S = 0, v = 0;
1569
- if (s.length && (s[0] === ">" || s[0] === "+" || s[0] === "~" || s[0] === " ")) {
1570
- let u = 1;
1571
- for (; u < s.length && s[u] === " "; ) u++;
1572
- for (; u < s.length; u++) {
1573
- const O = s[u];
1574
- 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] === " "))
1575
- return s.slice(0, u) + b + s.slice(u);
1997
+ const N = E.join(""), V = L.join("");
1998
+ function ee(a, p) {
1999
+ if (!p) return a;
2000
+ let O = 0, A = 0;
2001
+ if (a.length && (a[0] === ">" || a[0] === "+" || a[0] === "~" || a[0] === " ")) {
2002
+ let v = 1;
2003
+ for (; v < a.length && a[v] === " "; ) v++;
2004
+ for (; v < a.length; v++) {
2005
+ const M = a[v];
2006
+ if (M === "[" ? O++ : M === "]" && O > 0 ? O-- : M === "(" ? A++ : M === ")" && A > 0 && A--, O === 0 && A === 0 && (a[v] === ">" || a[v] === "+" || a[v] === "~" || a[v] === " "))
2007
+ return a.slice(0, v) + p + a.slice(v);
1576
2008
  }
1577
- return s + b;
2009
+ return a + p;
1578
2010
  }
1579
- for (let u = 0; u < s.length; u++) {
1580
- const O = s[u];
1581
- if (O === "[" ? S++ : O === "]" && S > 0 ? S-- : O === "(" ? v++ : O === ")" && v > 0 && v--, S === 0 && v === 0 && (O === ">" || O === "+" || O === "~" || O === " "))
1582
- return s.slice(0, u) + b + s.slice(u);
2011
+ for (let v = 0; v < a.length; v++) {
2012
+ const M = a[v];
2013
+ if (M === "[" ? O++ : M === "]" && O > 0 ? O-- : M === "(" ? A++ : M === ")" && A > 0 && A--, O === 0 && A === 0 && (M === ">" || M === "+" || M === "~" || M === " "))
2014
+ return a.slice(0, v) + p + a.slice(v);
1583
2015
  }
1584
- return s + b;
2016
+ return a + p;
1585
2017
  }
1586
- if (M)
1587
- if (M.includes("&")) {
1588
- const s = M.indexOf("&"), b = M.slice(0, s), S = M.slice(s + 1), v = d + z;
1589
- if (P.length === 0)
2018
+ if (R)
2019
+ if (R.includes("&")) {
2020
+ const a = R.indexOf("&"), p = R.slice(0, a), O = R.slice(a + 1), A = x + N;
2021
+ if (E.length === 0)
1590
2022
  m = m.replace(
1591
- d,
1592
- b + v + D + S
2023
+ x,
2024
+ p + A + V + O
1593
2025
  );
1594
2026
  else {
1595
- const u = I(S, D);
2027
+ const v = ee(O, V);
1596
2028
  m = m.replace(
1597
- d,
1598
- b + v + u
2029
+ x,
2030
+ p + A + v
1599
2031
  );
1600
2032
  }
1601
2033
  } else
1602
2034
  m = m.replace(
1603
- d,
1604
- `${M}${d + z}`
1605
- ), D && (m = m.replace(d, `${d}${D}`));
2035
+ x,
2036
+ `${R}${x + N}`
2037
+ ), V && (m = m.replace(x, `${x}${V}`));
1606
2038
  else
1607
2039
  m = m.replace(
1608
- d,
1609
- d + z + D
2040
+ x,
2041
+ x + N + V
1610
2042
  );
1611
- m = m.replace(new RegExp(d, "g"), A);
1612
- const V = "__CE_COLOR_MIX_SPLIT__", J = R.includes(V) ? R.split(V).map((s) => `${m}{${s}}`) : [`${m}{${R}}`], Q = E.filter(
1613
- (s) => oe.includes(s)
1614
- ), X = E.filter(
1615
- (s) => s.startsWith("@") && (le.includes(s.slice(1)) || s.match(/^@\[.+\]$/))
1616
- ), B = Q.length ? Q[Q.length - 1] : null, N = X.length ? X[X.length - 1] : null, Z = E.includes("dark");
1617
- let w = "", H = "";
1618
- if (Z && B ? w = `@media (prefers-color-scheme: dark) and ${re[B]}` : Z ? w = "@media (prefers-color-scheme: dark)" : B && (w = `@media ${re[B]}`), N)
1619
- if (N.startsWith("@[") && N.endsWith("]")) {
1620
- const s = N.slice(2, -1);
1621
- if (!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(s))
2043
+ m = m.replace(new RegExp(x, "g"), z);
2044
+ const J = "__CE_COLOR_MIX_SPLIT__", ce = W.includes(J) ? W.split(J).map((a) => `${m}{${a}}`) : [`${m}{${W}}`], H = T.filter(
2045
+ (a) => oe.includes(a)
2046
+ ), K = T.filter(
2047
+ (a) => a.startsWith("@") && (pe.includes(a.slice(1)) || a.match(/^@\[.+\]$/))
2048
+ ), Y = H.length ? H[H.length - 1] : null, S = K.length ? K[K.length - 1] : null, le = T.includes("dark");
2049
+ let U = "", X = "";
2050
+ if (le && Y ? U = `@media (prefers-color-scheme: dark) and ${te[Y]}` : le ? U = "@media (prefers-color-scheme: dark)" : Y && (U = `@media ${te[Y]}`), S)
2051
+ if (S.startsWith("@[") && S.endsWith("]")) {
2052
+ const a = S.slice(2, -1);
2053
+ if (!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(a))
1622
2054
  return null;
1623
- H = `@container (min-width:${s})`;
2055
+ X = `@container (min-width:${a})`;
1624
2056
  } else {
1625
- const s = N.slice(1);
1626
- H = `@container ${je[s] || `(min-width:${s})`}`;
2057
+ const a = S.slice(1);
2058
+ X = `@container ${Ce[a] || `(min-width:${a})`}`;
1627
2059
  }
1628
- const $e = (s) => w && H ? `${w}${H}{${s}}` : w ? `${w}{${s}}` : H ? `${H}{${s}}` : s;
1629
- return J.map($e).join("");
2060
+ let D = "";
2061
+ if (I.length > 0) {
2062
+ const p = I[I.length - 1].slice(10, -1).replace(/_/g, " ");
2063
+ D = `@supports ${p.startsWith("not(") || p.startsWith("selector(") || p.startsWith("(") ? p : `(${p})`}`;
2064
+ }
2065
+ const B = (a) => {
2066
+ let p = a;
2067
+ return F && (p = `@starting-style{${p}}`), D && (p = `${D}{${p}}`), U && X ? `${U}${X}{${p}}` : U ? `${U}{${p}}` : X ? `${X}{${p}}` : p;
2068
+ };
2069
+ return ce.map(B).join("");
1630
2070
  };
1631
- for (const p of t) {
1632
- const g = n(p), h = g.slice(0, -1), x = g[g.length - 1];
1633
- if (Ie(x) !== null) {
1634
- if (h.length === 0)
1635
- r[0].push(`${te(p)}{}`);
2071
+ for (const d of o) {
2072
+ const f = s(d), $ = f.slice(0, -1), y = f[f.length - 1];
2073
+ if (Ne(y) !== null) {
2074
+ if ($.length === 0)
2075
+ r[0].push(`${ne(d)}{}`);
1636
2076
  else {
1637
- const d = Ae(x);
1638
- if (!d) continue;
1639
- const m = te(p), C = te(x);
1640
- let P = d.replace(
1641
- new RegExp(Ue(C), "g"),
2077
+ const x = Ae(y);
2078
+ if (!x) continue;
2079
+ const m = ne(d), C = ne(y);
2080
+ let E = x.replace(
2081
+ new RegExp(Ke(C), "g"),
1642
2082
  m
1643
2083
  );
1644
- const L = h.filter(
1645
- (z) => oe.includes(z)
2084
+ const L = $.filter(
2085
+ (F) => oe.includes(F)
1646
2086
  );
1647
2087
  if (L.length > 0) {
1648
- const z = L[L.length - 1];
1649
- P = `${`@media ${re[z]}`}{${P}}`;
2088
+ const F = L[L.length - 1];
2089
+ E = `${`@media ${te[F]}`}{${E}}`;
1650
2090
  }
1651
- h.includes("dark") && (P = `@media (prefers-color-scheme: dark){${P}}`);
1652
- const M = $(h);
1653
- r[M].push(P);
2091
+ $.includes("dark") && (E = `@media (prefers-color-scheme: dark){${E}}`);
2092
+ const R = w($);
2093
+ r[R].push(E);
1654
2094
  }
1655
2095
  continue;
1656
2096
  }
1657
2097
  let k = -1;
1658
- for (let d = g.length - 1; d >= 0; d--) {
1659
- const m = g.slice(d).join(":");
1660
- if (ke(m)) {
1661
- k = d;
2098
+ for (let x = f.length - 1; x >= 0; x--) {
2099
+ const m = f.slice(x).join(":");
2100
+ if (Se(m)) {
2101
+ k = x;
1662
2102
  break;
1663
2103
  }
1664
2104
  }
1665
2105
  if (k >= 0) {
1666
- const d = g.slice(k).join(":"), m = g.slice(0, k), C = ke(d);
2106
+ const x = f.slice(k).join(":"), m = f.slice(0, k), C = Se(x);
1667
2107
  if (!C) continue;
1668
2108
  if (m.length === 0) {
1669
2109
  r[0].push(C);
1670
2110
  continue;
1671
2111
  }
1672
- const P = ve(p), L = ve(d), M = C.replace(
2112
+ const E = ve(d), L = ve(x), R = C.replace(
1673
2113
  new RegExp(
1674
2114
  `\\.${L.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`,
1675
2115
  "g"
1676
2116
  ),
1677
- `.${P}`
1678
- ), z = /(.+?)\s+(.+?)\{([^}]+)\}/g, D = [...M.matchAll(z)];
1679
- if (D.length === 0) {
2117
+ `.${E}`
2118
+ ), F = /(.+?)\s+(.+?)\{([^}]+)\}/g, I = [...R.matchAll(F)];
2119
+ if (I.length === 0) {
1680
2120
  r[0].push(C);
1681
2121
  continue;
1682
2122
  }
1683
- const I = $(m), V = {
2123
+ const N = w(m), V = {
1684
2124
  hover: ":hover",
1685
2125
  focus: ":focus",
1686
2126
  active: ":active",
@@ -1693,42 +2133,42 @@ function Ge(e) {
1693
2133
  even: ":nth-child(even)",
1694
2134
  "focus-within": ":focus-within",
1695
2135
  "focus-visible": ":focus-visible"
1696
- }, J = [], Q = [], X = [], B = [], N = [];
1697
- let Z = !1;
1698
- for (const w of m)
1699
- 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(/^@\[.+\]$/)) ? N.push(w) : w.startsWith("[") && w.endsWith("]") ? X.push(w) : (V[w] || Se[w]) && Q.push(w);
1700
- for (const w of D) {
1701
- const [, H, $e, s] = w;
1702
- let b = `${H} ${$e}`;
1703
- for (const v of J)
1704
- if (v.startsWith("group-")) {
1705
- const u = v.slice(6);
1706
- b = `.group${V[u] || `:${u}`} ${b}`;
1707
- } else if (v.startsWith("peer-")) {
1708
- const u = v.slice(5);
1709
- b = `.peer${V[u] || `:${u}`}~${b}`;
2136
+ }, ee = [], J = [], ce = [], H = [], K = [];
2137
+ let Y = !1;
2138
+ for (const S of m)
2139
+ S.startsWith("group-") || S.startsWith("peer-") ? ee.push(S) : S === "dark" || S === "dark-class" ? Y = !0 : oe.includes(S) ? H.push(S) : S.startsWith("@") && (pe.includes(S.slice(1)) || S.match(/^@\[.+\]$/)) ? K.push(S) : S.startsWith("[") && S.endsWith("]") ? ce.push(S) : (V[S] || je[S]) && J.push(S);
2140
+ for (const S of I) {
2141
+ const [, le, U, X] = S;
2142
+ let D = `${le} ${U}`;
2143
+ for (const a of ee)
2144
+ if (a.startsWith("group-")) {
2145
+ const p = a.slice(6);
2146
+ D = `.group${V[p] || `:${p}`} ${D}`;
2147
+ } else if (a.startsWith("peer-")) {
2148
+ const p = a.slice(5);
2149
+ D = `.peer${V[p] || `:${p}`}~${D}`;
1710
2150
  }
1711
- if (Q.length > 0) {
1712
- const v = Q.map((u) => V[u] || `:${u}`).join("");
1713
- b = `${b}${v}`;
2151
+ if (J.length > 0) {
2152
+ const a = J.map((p) => V[p] || `:${p}`).join("");
2153
+ D = `${D}${a}`;
1714
2154
  }
1715
- for (const v of X) {
1716
- const u = Ce(v);
1717
- if (u && u.includes("&")) {
1718
- const O = u.indexOf("&"), Y = u.slice(0, O), se = u.slice(O + 1);
1719
- b = `${Y}${b}${se}`;
2155
+ for (const a of ce) {
2156
+ const p = ze(a);
2157
+ if (p && p.includes("&")) {
2158
+ const O = p.indexOf("&"), A = p.slice(0, O), v = p.slice(O + 1);
2159
+ D = `${A}${D}${v}`;
1720
2160
  }
1721
2161
  }
1722
- let S = `${b}{${s}}`;
1723
- if (Z && (S = `@media (prefers-color-scheme: dark){${S}}`), N.length > 0) {
1724
- const v = N[N.length - 1];
1725
- if (v.startsWith("@[") && v.endsWith("]")) {
1726
- const u = v.slice(2, -1);
2162
+ let B = `${D}{${X}}`;
2163
+ if (Y && (B = `@media (prefers-color-scheme: dark){${B}}`), K.length > 0) {
2164
+ const a = K[K.length - 1];
2165
+ if (a.startsWith("@[") && a.endsWith("]")) {
2166
+ const p = a.slice(2, -1);
1727
2167
  /^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(
1728
- u
1729
- ) && (S = `@container (min-width:${u}){${S}}`);
2168
+ p
2169
+ ) && (B = `@container (min-width:${p}){${B}}`);
1730
2170
  } else {
1731
- const u = v.slice(1), Y = {
2171
+ const p = a.slice(1), A = {
1732
2172
  xs: "20rem",
1733
2173
  sm: "24rem",
1734
2174
  md: "28rem",
@@ -1740,49 +2180,50 @@ function Ge(e) {
1740
2180
  "5xl": "64rem",
1741
2181
  "6xl": "72rem",
1742
2182
  "7xl": "80rem"
1743
- }[u];
1744
- if (Y) {
1745
- const se = p.match(/@([^/]+)\//)?.[1] || "";
1746
- S = se ? `@container ${se} (min-width: ${Y}){${S}}` : `@container (min-width: ${Y}){${S}}`;
2183
+ }[p];
2184
+ if (A) {
2185
+ const v = d.match(/@([^/]+)\//)?.[1] || "";
2186
+ B = v ? `@container ${v} (min-width: ${A}){${B}}` : `@container (min-width: ${A}){${B}}`;
1747
2187
  }
1748
2188
  }
1749
2189
  }
1750
- if (B.length > 0) {
1751
- const v = B[B.length - 1];
1752
- S = `${`@media ${re[v]}`}{${S}}`;
2190
+ if (H.length > 0) {
2191
+ const a = H[H.length - 1];
2192
+ B = `${`@media ${te[a]}`}{${B}}`;
1753
2193
  }
1754
- r[I].push(S);
2194
+ r[N].push(B);
1755
2195
  }
1756
2196
  continue;
1757
2197
  }
1758
- const _ = g.find(
1759
- (d) => pe[d.replace(/^!/, "")] || fe(d.replace(/^!/, "")) || ue(d.replace(/^!/, "")) || he(d.replace(/^!/, "")) || ge(d.replace(/^!/, "")) || me(d.replace(/^!/, "")) || ie(d.replace(/^!/, ""))
1760
- );
2198
+ const _ = f.find((x) => {
2199
+ const m = x.replace(/^!/, "").replace(/!$/, "");
2200
+ return fe[m] || ge(m) || he(m) || xe(m) || me(m) || be(m) || se(m);
2201
+ });
1761
2202
  if (!_) continue;
1762
- const W = g.indexOf(_), E = W >= 0 ? g.slice(0, W) : [], A = $(E), R = l(p);
1763
- R && r[A].push(R);
2203
+ const P = f.indexOf(_), T = P >= 0 ? f.slice(0, P) : [], z = w(T), W = g(d);
2204
+ W && r[z].push(W);
1764
2205
  }
1765
- const j = /^(from|via|to)-[a-z]+-?\d{2,3}?$/;
1766
- for (const p of t)
1767
- if (j.test(p)) {
1768
- if (r.flat().join("").includes(te(p))) continue;
1769
- const h = l(p);
1770
- h && r[0].push(h);
2206
+ const l = /^(from|via|to)-[a-z]+-?\d{2,3}?$/;
2207
+ for (const d of o)
2208
+ if (l.test(d)) {
2209
+ if (r.flat().join("").includes(ne(d))) continue;
2210
+ const $ = g(d);
2211
+ $ && r[0].push($);
1771
2212
  }
1772
- const y = (p) => p.sort((g, h) => {
1773
- const x = (A) => {
1774
- const R = {
2213
+ const b = (d) => d.sort((f, $) => {
2214
+ const y = (z) => {
2215
+ const W = {
1775
2216
  sm: 640,
1776
2217
  md: 768,
1777
2218
  lg: 1024,
1778
2219
  xl: 1280,
1779
2220
  "2xl": 1536
1780
2221
  };
1781
- for (const [d, m] of Object.entries(R))
1782
- if (A.includes(`@media ${re[d]}`)) return m;
2222
+ for (const [x, m] of Object.entries(W))
2223
+ if (z.includes(`@media ${te[x]}`)) return m;
1783
2224
  return -1;
1784
- }, T = (A) => {
1785
- const R = {
2225
+ }, j = (z) => {
2226
+ const W = {
1786
2227
  xs: 320,
1787
2228
  // 20rem
1788
2229
  sm: 384,
@@ -1806,27 +2247,27 @@ function Ge(e) {
1806
2247
  "7xl": 1280
1807
2248
  // 80rem
1808
2249
  };
1809
- for (const [d, m] of Object.entries(R))
1810
- if (A.includes(`@container ${je[d]}`)) return m;
1811
- if (A.includes("@container (min-width:")) {
1812
- const d = /@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(A);
1813
- if (d) {
1814
- const m = parseFloat(d[1]), C = d[2];
2250
+ for (const [x, m] of Object.entries(W))
2251
+ if (z.includes(`@container ${Ce[x]}`)) return m;
2252
+ if (z.includes("@container (min-width:")) {
2253
+ const x = /@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(z);
2254
+ if (x) {
2255
+ const m = parseFloat(x[1]), C = x[2];
1815
2256
  return C === "rem" || C === "em" ? m * 16 : m;
1816
2257
  }
1817
2258
  }
1818
2259
  return -1;
1819
- }, k = x(g), _ = x(h), W = T(g), E = T(h);
1820
- return k >= 0 && _ >= 0 && k !== _ ? k - _ : W >= 0 && E >= 0 && W !== E ? W - E : 0;
2260
+ }, k = y(f), _ = y($), P = j(f), T = j($);
2261
+ return k >= 0 && _ >= 0 && k !== _ ? k - _ : P >= 0 && T >= 0 && P !== T ? P - T : 0;
1821
2262
  });
1822
- r[2] = y(r[2]), r[3] = y(r[3]);
1823
- const F = r.flat().join("");
1824
- return ne.size >= Te && Array.from(ne.keys()).slice(
2263
+ r[2] = b(r[2]), r[3] = b(r[3]);
2264
+ const n = r.flat().join("");
2265
+ return ae.size >= Oe && Array.from(ae.keys()).slice(
1825
2266
  0,
1826
- Math.floor(Te / 2)
1827
- ).forEach((g) => ne.delete(g)), ne.set(e, { css: F, timestamp: Date.now() }), F;
2267
+ Math.floor(Oe / 2)
2268
+ ).forEach((f) => ae.delete(f)), ae.set(e, { css: n, timestamp: Date.now() }), n;
1828
2269
  }
1829
- const ae = {
2270
+ const ie = {
1830
2271
  /** Simple fade in/out */
1831
2272
  fade: {
1832
2273
  enterFrom: "opacity-0",
@@ -1918,203 +2359,203 @@ const ae = {
1918
2359
  leaveTo: "rotate-[90deg] opacity-0"
1919
2360
  }
1920
2361
  };
1921
- function rr(e, o) {
2362
+ function rr(e, t) {
1922
2363
  const {
1923
- preset: a,
1924
- show: t,
2364
+ preset: c,
2365
+ show: o,
1925
2366
  mode: r = "default",
1926
2367
  duration: i,
1927
- appear: l = !1,
1928
- css: $ = !0,
1929
- name: n,
1930
- enterFrom: c,
1931
- enterActive: f,
1932
- enterTo: j,
1933
- leaveFrom: y,
1934
- leaveActive: F,
1935
- leaveTo: p,
1936
- onBeforeEnter: g,
1937
- onEnter: h,
1938
- onAfterEnter: x,
1939
- onEnterCancelled: T,
2368
+ appear: g = !1,
2369
+ css: w = !0,
2370
+ name: s,
2371
+ enterFrom: u,
2372
+ enterActive: h,
2373
+ enterTo: l,
2374
+ leaveFrom: b,
2375
+ leaveActive: n,
2376
+ leaveTo: d,
2377
+ onBeforeEnter: f,
2378
+ onEnter: $,
2379
+ onAfterEnter: y,
2380
+ onEnterCancelled: j,
1940
2381
  onBeforeLeave: k,
1941
2382
  onLeave: _,
1942
- onAfterLeave: W,
1943
- onLeaveCancelled: E
2383
+ onAfterLeave: P,
2384
+ onLeaveCancelled: T
1944
2385
  } = e;
1945
- let A;
1946
- 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 = {
1947
- enterFrom: c,
1948
- enterActive: f,
1949
- enterTo: j,
1950
- leaveFrom: y,
1951
- leaveActive: F,
1952
- leaveTo: p
2386
+ let z;
2387
+ c && ie[c] ? (z = { ...ie[c] }, u && (z.enterFrom = u), h && (z.enterActive = h), l && (z.enterTo = l), b && (z.leaveFrom = b), n && (z.leaveActive = n), d && (z.leaveTo = d)) : z = {
2388
+ enterFrom: u,
2389
+ enterActive: h,
2390
+ enterTo: l,
2391
+ leaveFrom: b,
2392
+ leaveActive: n,
2393
+ leaveTo: d
1953
2394
  };
1954
- const R = n || (a ? `transition-${a}` : "transition"), d = Fe(t ? o : [], R);
1955
- return d._transition = {
1956
- name: R,
1957
- classes: A,
2395
+ const W = s || (c ? `transition-${c}` : "transition"), x = Fe(o ? t : [], W);
2396
+ return x._transition = {
2397
+ name: W,
2398
+ classes: z,
1958
2399
  mode: r,
1959
2400
  duration: i,
1960
- appear: l,
1961
- css: $,
1962
- state: t ? "visible" : "hidden",
2401
+ appear: g,
2402
+ css: w,
2403
+ state: o ? "visible" : "hidden",
1963
2404
  hooks: {
1964
- onBeforeEnter: g,
1965
- onEnter: h,
1966
- onAfterEnter: x,
1967
- onEnterCancelled: T,
2405
+ onBeforeEnter: f,
2406
+ onEnter: $,
2407
+ onAfterEnter: y,
2408
+ onEnterCancelled: j,
1968
2409
  onBeforeLeave: k,
1969
2410
  onLeave: _,
1970
- onAfterLeave: W,
1971
- onLeaveCancelled: E
2411
+ onAfterLeave: P,
2412
+ onLeaveCancelled: T
1972
2413
  }
1973
- }, d;
2414
+ }, x;
1974
2415
  }
1975
- function or(e, o) {
2416
+ function tr(e, t) {
1976
2417
  const {
1977
- tag: a = "div",
1978
- moveClass: t = "transition-transform duration-300",
2418
+ tag: c = "div",
2419
+ moveClass: o = "transition-transform duration-300",
1979
2420
  preset: r,
1980
2421
  show: i = !0,
1981
- mode: l = "default",
1982
- duration: $,
1983
- appear: n = !1,
1984
- css: c = !0,
1985
- name: f,
1986
- class: j,
1987
- style: y,
1988
- enterFrom: F,
1989
- enterActive: p,
1990
- enterTo: g,
1991
- leaveFrom: h,
1992
- leaveActive: x,
1993
- leaveTo: T,
2422
+ mode: g = "default",
2423
+ duration: w,
2424
+ appear: s = !1,
2425
+ css: u = !0,
2426
+ name: h,
2427
+ class: l,
2428
+ style: b,
2429
+ enterFrom: n,
2430
+ enterActive: d,
2431
+ enterTo: f,
2432
+ leaveFrom: $,
2433
+ leaveActive: y,
2434
+ leaveTo: j,
1994
2435
  onBeforeEnter: k,
1995
2436
  onEnter: _,
1996
- onAfterEnter: W,
1997
- onEnterCancelled: E,
1998
- onBeforeLeave: A,
1999
- onLeave: R,
2000
- onAfterLeave: d,
2437
+ onAfterEnter: P,
2438
+ onEnterCancelled: T,
2439
+ onBeforeLeave: z,
2440
+ onLeave: W,
2441
+ onAfterLeave: x,
2001
2442
  onLeaveCancelled: m
2002
2443
  } = e;
2003
2444
  let C;
2004
- 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 = {
2005
- enterFrom: F,
2006
- enterActive: p,
2007
- enterTo: g,
2008
- leaveFrom: h,
2009
- leaveActive: x,
2010
- leaveTo: T
2445
+ r && ie[r] ? (C = { ...ie[r] }, n && (C.enterFrom = n), d && (C.enterActive = d), f && (C.enterTo = f), $ && (C.leaveFrom = $), y && (C.leaveActive = y), j && (C.leaveTo = j)) : C = {
2446
+ enterFrom: n,
2447
+ enterActive: d,
2448
+ enterTo: f,
2449
+ leaveFrom: $,
2450
+ leaveActive: y,
2451
+ leaveTo: j
2011
2452
  };
2012
- const P = f || (r ? `transition-group-${r}` : "transition-group"), L = [];
2013
- for (const z of i ? o : [])
2014
- if (z && typeof z == "object" && z.tag === "#anchor") {
2015
- const D = Array.isArray(z.children) ? z.children : [];
2016
- for (const I of D)
2017
- if (I && typeof I == "object") {
2453
+ const E = h || (r ? `transition-group-${r}` : "transition-group"), L = [];
2454
+ for (const F of i ? t : [])
2455
+ if (F && typeof F == "object" && F.tag === "#anchor") {
2456
+ const I = Array.isArray(F.children) ? F.children : [];
2457
+ for (const N of I)
2458
+ if (N && typeof N == "object") {
2018
2459
  const V = {
2019
- ...I,
2020
- key: z.key || I.key,
2460
+ ...N,
2461
+ key: F.key || N.key,
2021
2462
  props: {
2022
- ...I.props,
2023
- _anchorKey: z.key
2463
+ ...N.props,
2464
+ _anchorKey: F.key
2024
2465
  // Preserve original anchor key
2025
2466
  }
2026
2467
  };
2027
2468
  L.push(V);
2028
2469
  } else
2029
- L.push(I);
2470
+ L.push(N);
2030
2471
  } else
2031
- L.push(z);
2032
- const M = (() => {
2033
- if (y)
2034
- return typeof y == "string" ? y : Object.entries(y).map(([z, D]) => `${z}: ${D}`).join("; ");
2472
+ L.push(F);
2473
+ const R = (() => {
2474
+ if (b)
2475
+ return typeof b == "string" ? b : Object.entries(b).map(([F, I]) => `${F}: ${I}`).join("; ");
2035
2476
  })();
2036
2477
  return {
2037
- tag: a,
2478
+ tag: c,
2038
2479
  children: L,
2039
- key: P,
2480
+ key: E,
2040
2481
  props: {
2041
2482
  attrs: {
2042
- ...j ? { class: j } : {},
2043
- ...M ? { style: M } : {}
2483
+ ...l ? { class: l } : {},
2484
+ ...R ? { style: R } : {}
2044
2485
  },
2045
2486
  _transitionGroup: {
2046
- name: P,
2487
+ name: E,
2047
2488
  classes: C,
2048
- moveClass: t,
2049
- mode: l,
2050
- duration: $,
2051
- appear: n,
2052
- css: c,
2489
+ moveClass: o,
2490
+ mode: g,
2491
+ duration: w,
2492
+ appear: s,
2493
+ css: u,
2053
2494
  hooks: {
2054
2495
  onBeforeEnter: k,
2055
2496
  onEnter: _,
2056
- onAfterEnter: W,
2057
- onEnterCancelled: E,
2058
- onBeforeLeave: A,
2059
- onLeave: R,
2060
- onAfterLeave: d,
2497
+ onAfterEnter: P,
2498
+ onEnterCancelled: T,
2499
+ onBeforeLeave: z,
2500
+ onLeave: W,
2501
+ onAfterLeave: x,
2061
2502
  onLeaveCancelled: m
2062
2503
  }
2063
2504
  }
2064
2505
  }
2065
2506
  };
2066
2507
  }
2067
- function tr(e) {
2508
+ function or(e) {
2068
2509
  return { ...e };
2069
2510
  }
2070
- let G = null;
2071
- function Xe() {
2072
- if (!G) {
2511
+ let Z = null;
2512
+ function Ge() {
2513
+ if (!Z) {
2073
2514
  if (typeof CSSStyleSheet > "u")
2074
- return G = {
2515
+ return Z = {
2075
2516
  cssRules: [],
2076
2517
  replaceSync: () => {
2077
2518
  },
2078
2519
  toString: () => ""
2079
- }, G;
2520
+ }, Z;
2080
2521
  const e = [];
2081
- Object.values(ae).forEach((t) => {
2082
- 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);
2522
+ Object.values(ie).forEach((o) => {
2523
+ o.enterFrom && e.push(o.enterFrom), o.enterActive && e.push(o.enterActive), o.enterTo && e.push(o.enterTo), o.leaveFrom && e.push(o.leaveFrom), o.leaveActive && e.push(o.leaveActive), o.leaveTo && e.push(o.leaveTo);
2083
2524
  });
2084
- const o = `<div class="${e.join(" ")}"></div>`, a = Ge(o);
2525
+ const t = `<div class="${e.join(" ")}"></div>`, c = Qe(t);
2085
2526
  try {
2086
- G = new CSSStyleSheet(), G.replaceSync(a);
2527
+ Z = new CSSStyleSheet(), Z.replaceSync(c);
2087
2528
  } catch {
2088
- G = {
2529
+ Z = {
2089
2530
  cssRules: [],
2090
2531
  replaceSync: () => {
2091
2532
  },
2092
- toString: () => a || ""
2533
+ toString: () => c || ""
2093
2534
  };
2094
2535
  }
2095
2536
  }
2096
- return G;
2537
+ return Z;
2097
2538
  }
2098
- function Je() {
2539
+ function Ye() {
2099
2540
  if (!(typeof window > "u" || typeof CSSStyleSheet > "u"))
2100
2541
  try {
2101
- Xe();
2542
+ Ge();
2102
2543
  } catch {
2103
2544
  }
2104
2545
  }
2105
- Je();
2546
+ Ye();
2106
2547
  export {
2107
2548
  rr as T,
2108
- Ye as a,
2109
- Xe as b,
2110
- ye as c,
2111
- _e as d,
2112
- or as e,
2113
- tr as f,
2549
+ Je as a,
2550
+ Ge as b,
2551
+ _e as c,
2552
+ ke as d,
2553
+ tr as e,
2554
+ or as f,
2114
2555
  Pe as g,
2115
- Ge as j,
2116
- we as m,
2556
+ Qe as j,
2557
+ ye as m,
2117
2558
  er as s,
2118
- ae as t
2559
+ ie as t
2119
2560
  };
2120
- //# sourceMappingURL=transitions-CZ21fzhh.js.map
2561
+ //# sourceMappingURL=transitions-Di5wW9yc.js.map