@jasonshimmy/custom-elements-runtime 3.2.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{css-utils-Cg4o1MqY.js → css-utils-CC43BbEy.js} +20 -21
- package/dist/css-utils-CC43BbEy.js.map +1 -0
- package/dist/{css-utils-RqkyBWft.cjs → css-utils-mgjmH8qX.cjs} +5 -4
- package/dist/css-utils-mgjmH8qX.cjs.map +1 -0
- package/dist/custom-elements-runtime.cjs.js +4 -3
- package/dist/custom-elements-runtime.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.colors.cjs.js +3 -2
- package/dist/custom-elements-runtime.colors.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.colors.es.js +3 -2
- package/dist/custom-elements-runtime.colors.es.js.map +1 -1
- package/dist/custom-elements-runtime.directive-enhancements.cjs.js +3 -2
- package/dist/custom-elements-runtime.directive-enhancements.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.directive-enhancements.es.js +86 -100
- package/dist/custom-elements-runtime.directive-enhancements.es.js.map +1 -1
- package/dist/custom-elements-runtime.directives.cjs.js +3 -2
- package/dist/custom-elements-runtime.directives.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.directives.es.js +40 -43
- package/dist/custom-elements-runtime.directives.es.js.map +1 -1
- package/dist/custom-elements-runtime.dom-jit-css.cjs.js +7 -6
- package/dist/custom-elements-runtime.dom-jit-css.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.dom-jit-css.es.js +58 -76
- package/dist/custom-elements-runtime.dom-jit-css.es.js.map +1 -1
- package/dist/custom-elements-runtime.es.js +162 -186
- package/dist/custom-elements-runtime.es.js.map +1 -1
- package/dist/custom-elements-runtime.event-bus.cjs.js +3 -2
- package/dist/custom-elements-runtime.event-bus.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.event-bus.es.js +48 -103
- package/dist/custom-elements-runtime.event-bus.es.js.map +1 -1
- package/dist/custom-elements-runtime.jit-css.cjs.js +3 -2
- package/dist/custom-elements-runtime.jit-css.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.jit-css.es.js +29 -30
- package/dist/custom-elements-runtime.jit-css.es.js.map +1 -1
- package/dist/custom-elements-runtime.router.cjs.js +20 -19
- package/dist/custom-elements-runtime.router.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.router.es.js +579 -582
- package/dist/custom-elements-runtime.router.es.js.map +1 -1
- package/dist/custom-elements-runtime.ssr-middleware.cjs.js +5 -4
- package/dist/custom-elements-runtime.ssr-middleware.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.ssr-middleware.es.js +44 -37
- package/dist/custom-elements-runtime.ssr-middleware.es.js.map +1 -1
- package/dist/custom-elements-runtime.ssr.cjs.js +1 -4
- package/dist/custom-elements-runtime.ssr.es.js +11 -176
- package/dist/custom-elements-runtime.store.cjs.js +3 -2
- package/dist/custom-elements-runtime.store.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.store.es.js +17 -11
- package/dist/custom-elements-runtime.store.es.js.map +1 -1
- package/dist/custom-elements-runtime.transitions.cjs.js +3 -2
- package/dist/custom-elements-runtime.transitions.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.transitions.es.js +55 -120
- package/dist/custom-elements-runtime.transitions.es.js.map +1 -1
- package/dist/custom-elements-runtime.vite-plugin.cjs.js +3 -2
- package/dist/custom-elements-runtime.vite-plugin.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.vite-plugin.es.js +54 -75
- package/dist/custom-elements-runtime.vite-plugin.es.js.map +1 -1
- package/dist/hooks-_3xP4G2N.js +1189 -0
- package/dist/hooks-_3xP4G2N.js.map +1 -0
- package/dist/hooks-fYQgZk2g.cjs +7 -0
- package/dist/hooks-fYQgZk2g.cjs.map +1 -0
- package/dist/logger-BYIN7ysT.cjs +3 -0
- package/dist/logger-BYIN7ysT.cjs.map +1 -0
- package/dist/logger-L25axmB-.js +41 -0
- package/dist/logger-L25axmB-.js.map +1 -0
- package/dist/namespace-helpers-Bf7rm9JV.cjs +3 -0
- package/dist/namespace-helpers-Bf7rm9JV.cjs.map +1 -0
- package/dist/namespace-helpers-BucDdgz_.js +61 -0
- package/dist/namespace-helpers-BucDdgz_.js.map +1 -0
- package/dist/reset.css +1 -1
- package/dist/ssr-B3lxl1vr.js +165 -0
- package/dist/ssr-B3lxl1vr.js.map +1 -0
- package/dist/ssr-DtD9e5iA.cjs +5 -0
- package/dist/ssr-DtD9e5iA.cjs.map +1 -0
- package/dist/style-Bjn8zDiZ.cjs +56 -0
- package/dist/style-Bjn8zDiZ.cjs.map +1 -0
- package/dist/{style-BmyOIMcU.js → style-DuDoj_xK.js} +724 -876
- package/dist/style-DuDoj_xK.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/template-compiler-BB4JJdqk.cjs +23 -0
- package/dist/template-compiler-BB4JJdqk.cjs.map +1 -0
- package/dist/template-compiler-Cs5axmn4.js +3236 -0
- package/dist/template-compiler-Cs5axmn4.js.map +1 -0
- package/dist/variables.css +1 -1
- package/package.json +7 -7
- package/dist/css-utils-Cg4o1MqY.js.map +0 -1
- package/dist/css-utils-RqkyBWft.cjs.map +0 -1
- package/dist/custom-elements-runtime.ssr.cjs.js.map +0 -1
- package/dist/custom-elements-runtime.ssr.es.js.map +0 -1
- package/dist/hooks-BH-CpUun.js +0 -1474
- package/dist/hooks-BH-CpUun.js.map +0 -1
- package/dist/hooks-NOFG9QRQ.cjs +0 -6
- package/dist/hooks-NOFG9QRQ.cjs.map +0 -1
- package/dist/logger-BvkEbVM4.js +0 -48
- package/dist/logger-BvkEbVM4.js.map +0 -1
- package/dist/logger-CSALKaYm.cjs +0 -2
- package/dist/logger-CSALKaYm.cjs.map +0 -1
- package/dist/namespace-helpers-D4wC2-qA.js +0 -61
- package/dist/namespace-helpers-D4wC2-qA.js.map +0 -1
- package/dist/namespace-helpers-ckeEOxpR.cjs +0 -2
- package/dist/namespace-helpers-ckeEOxpR.cjs.map +0 -1
- package/dist/style-BmyOIMcU.js.map +0 -1
- package/dist/style-D40DsIqJ.cjs +0 -55
- package/dist/style-D40DsIqJ.cjs.map +0 -1
- package/dist/template-compiler-CDvhsHia.cjs +0 -22
- package/dist/template-compiler-CDvhsHia.cjs.map +0 -1
- package/dist/template-compiler-DiE69FLO.js +0 -3724
- package/dist/template-compiler-DiE69FLO.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as oe, d as De, l as Ne, p as J, s as ye, t as Ue } from "./css-utils-CC43BbEy.js";
|
|
2
2
|
import { extendedColors as Ce } from "./custom-elements-runtime.colors.es.js";
|
|
3
|
-
|
|
3
|
+
var He = {
|
|
4
4
|
base: {
|
|
5
5
|
fontSize: "1rem",
|
|
6
6
|
lineHeight: "1.75",
|
|
@@ -100,102 +100,10 @@ const Be = {
|
|
|
100
100
|
function Te(e) {
|
|
101
101
|
const r = e.match(/^prose(?:-(sm|lg|xl|2xl))?$/);
|
|
102
102
|
if (!r) return null;
|
|
103
|
-
const
|
|
104
|
-
return
|
|
105
|
-
`${t}{--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:${a.fontSize};line-height:${a.lineHeight};max-width:65ch;}`
|
|
106
|
-
), s.push(
|
|
107
|
-
`${t} p:not(.not-prose):not(.not-prose *){margin:${a.p} 0;}`
|
|
108
|
-
), s.push(
|
|
109
|
-
`${t} .lead:not(.not-prose):not(.not-prose *),${t} [class~="lead"]:not(.not-prose):not(.not-prose *){font-size:1.25em;line-height:1.6;margin-top:${a.lead};margin-bottom:${a.lead};color:var(--cer-prose-lead);}`
|
|
110
|
-
), s.push(
|
|
111
|
-
`${t} h1:not(.not-prose):not(.not-prose *),${t} h2:not(.not-prose):not(.not-prose *),${t} h3:not(.not-prose):not(.not-prose *),${t} h4:not(.not-prose):not(.not-prose *),${t} h5:not(.not-prose):not(.not-prose *),${t} h6:not(.not-prose):not(.not-prose *){color:var(--cer-prose-headings);font-weight:700;line-height:1.25;}`
|
|
112
|
-
), s.push(
|
|
113
|
-
`${t} h1:not(.not-prose):not(.not-prose *){font-size:${a.h1};margin-top:0;margin-bottom:0.8888889em;line-height:1.1111111;}`
|
|
114
|
-
), s.push(
|
|
115
|
-
`${t} h2:not(.not-prose):not(.not-prose *){font-size:${a.h2};margin-top:2em;margin-bottom:1em;line-height:1.3333333;}`
|
|
116
|
-
), s.push(
|
|
117
|
-
`${t} h3:not(.not-prose):not(.not-prose *){font-size:${a.h3};margin-top:1.6em;margin-bottom:0.6em;line-height:1.6;}`
|
|
118
|
-
), s.push(
|
|
119
|
-
`${t} h4:not(.not-prose):not(.not-prose *){font-size:${a.h4};margin-top:1.5em;margin-bottom:0.5em;line-height:1.5;}`
|
|
120
|
-
), s.push(
|
|
121
|
-
`${t} h5:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`
|
|
122
|
-
), s.push(
|
|
123
|
-
`${t} h6:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`
|
|
124
|
-
), s.push(
|
|
125
|
-
`${t} a:not(.not-prose):not(.not-prose *){color:var(--cer-prose-links);text-decoration:underline;text-decoration-thickness:.08em;text-underline-offset:.15em;font-weight:500;}`
|
|
126
|
-
), s.push(
|
|
127
|
-
`${t} a:not(.not-prose):not(.not-prose *):hover,${t} a:not(.not-prose):not(.not-prose *):focus{color:var(--cer-prose-links-hover);}`
|
|
128
|
-
), s.push(
|
|
129
|
-
`${t} strong:not(.not-prose):not(.not-prose *){color:var(--cer-prose-bold);font-weight:600;}`
|
|
130
|
-
), s.push(
|
|
131
|
-
`${t} em:not(.not-prose):not(.not-prose *){font-style:italic;}`
|
|
132
|
-
), s.push(
|
|
133
|
-
`${t} ol:not(.not-prose):not(.not-prose *){list-style-type:decimal;margin-top:${a.ol};margin-bottom:${a.ol};padding-left:1.625em;}`
|
|
134
|
-
), s.push(
|
|
135
|
-
`${t} ol:not(.not-prose):not(.not-prose *)[type="A"]{list-style-type:upper-alpha;}`
|
|
136
|
-
), s.push(
|
|
137
|
-
`${t} ol:not(.not-prose):not(.not-prose *)[type="a"]{list-style-type:lower-alpha;}`
|
|
138
|
-
), s.push(
|
|
139
|
-
`${t} ol:not(.not-prose):not(.not-prose *)[type="I"]{list-style-type:upper-roman;}`
|
|
140
|
-
), s.push(
|
|
141
|
-
`${t} ol:not(.not-prose):not(.not-prose *)[type="i"]{list-style-type:lower-roman;}`
|
|
142
|
-
), s.push(
|
|
143
|
-
`${t} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${a.li};}`
|
|
144
|
-
), s.push(
|
|
145
|
-
`${t} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-counters);font-weight:400;}`
|
|
146
|
-
), s.push(
|
|
147
|
-
`${t} ul:not(.not-prose):not(.not-prose *){list-style-type:disc;margin-top:${a.ul};margin-bottom:${a.ul};padding-left:1.625em;}`
|
|
148
|
-
), s.push(
|
|
149
|
-
`${t} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${a.li};}`
|
|
150
|
-
), s.push(
|
|
151
|
-
`${t} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-bullets);}`
|
|
152
|
-
), s.push(
|
|
153
|
-
`${t} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:first-child,${t} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:first-child{margin-top:${a.ol};}`
|
|
154
|
-
), s.push(
|
|
155
|
-
`${t} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:last-child,${t} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:last-child{margin-bottom:${a.ol};}`
|
|
156
|
-
), s.push(
|
|
157
|
-
`${t} ul:not(.not-prose):not(.not-prose *) ul:not(.not-prose):not(.not-prose *),${t} ul:not(.not-prose):not(.not-prose *) ol:not(.not-prose):not(.not-prose *),${t} ol:not(.not-prose):not(.not-prose *) ul:not(.not-prose):not(.not-prose *),${t} ol:not(.not-prose):not(.not-prose *) ol:not(.not-prose):not(.not-prose *){margin-top:0.75em;margin-bottom:0.75em;}`
|
|
158
|
-
), s.push(
|
|
159
|
-
`${t} li:not(.not-prose):not(.not-prose *)>p:not(.not-prose):not(.not-prose *){margin-top:${a.ol};margin-bottom:${a.ol};}`
|
|
160
|
-
), s.push(
|
|
161
|
-
`${t} 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:${a.code};font-weight:600;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;}`
|
|
162
|
-
), s.push(
|
|
163
|
-
`${t} 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:${a.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;}`
|
|
164
|
-
), s.push(
|
|
165
|
-
`${t} 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;}`
|
|
166
|
-
), s.push(
|
|
167
|
-
`${t} 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:${a.blockquote};margin-bottom:${a.blockquote};padding-left:1em;}`
|
|
168
|
-
), s.push(
|
|
169
|
-
`${t} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):first-of-type::before{content:open-quote;}`
|
|
170
|
-
), s.push(
|
|
171
|
-
`${t} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):last-of-type::after{content:close-quote;}`
|
|
172
|
-
), s.push(
|
|
173
|
-
`${t} hr:not(.not-prose):not(.not-prose *){border-color:var(--cer-prose-hr);border-top-width:1px;margin-top:${a.hr};margin-bottom:${a.hr};}`
|
|
174
|
-
), s.push(
|
|
175
|
-
`${t} figure:not(.not-prose):not(.not-prose *){margin-top:${a.figure};margin-bottom:${a.figure};}`
|
|
176
|
-
), s.push(
|
|
177
|
-
`${t} figure:not(.not-prose):not(.not-prose *)>*{margin-top:0;margin-bottom:0;}`
|
|
178
|
-
), s.push(
|
|
179
|
-
`${t} 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;}`
|
|
180
|
-
), s.push(
|
|
181
|
-
`${t} img:not(.not-prose):not(.not-prose *),${t} video:not(.not-prose):not(.not-prose *),${t} picture:not(.not-prose):not(.not-prose *){margin-top:${a.figure};margin-bottom:${a.figure};max-width:100%;height:auto;}`
|
|
182
|
-
), s.push(
|
|
183
|
-
`${t} figure:not(.not-prose):not(.not-prose *)>img:not(.not-prose):not(.not-prose *),${t} figure:not(.not-prose):not(.not-prose *)>video:not(.not-prose):not(.not-prose *),${t} figure:not(.not-prose):not(.not-prose *)>picture:not(.not-prose):not(.not-prose *){margin-top:0;margin-bottom:0;}`
|
|
184
|
-
), s.push(
|
|
185
|
-
`${t} table:not(.not-prose):not(.not-prose *){width:100%;table-layout:auto;text-align:left;margin-top:${a.table};margin-bottom:${a.table};font-size:0.875em;line-height:1.7142857;}`
|
|
186
|
-
), s.push(
|
|
187
|
-
`${t} thead:not(.not-prose):not(.not-prose *){border-bottom-width:1px;border-bottom-color:var(--cer-prose-table-border);}`
|
|
188
|
-
), s.push(
|
|
189
|
-
`${t} thead:not(.not-prose):not(.not-prose *) th:not(.not-prose):not(.not-prose *){color:var(--cer-prose-table-head);font-weight:600;vertical-align:bottom;padding-right:0.5714286em;padding-bottom:0.5714286em;padding-left:0.5714286em;}`
|
|
190
|
-
), s.push(
|
|
191
|
-
`${t} tbody:not(.not-prose):not(.not-prose *) tr:not(.not-prose):not(.not-prose *){border-bottom-width:1px;border-bottom-color:var(--cer-prose-table-border);}`
|
|
192
|
-
), s.push(
|
|
193
|
-
`${t} tbody:not(.not-prose):not(.not-prose *) tr:not(.not-prose):not(.not-prose *):last-child{border-bottom-width:0;}`
|
|
194
|
-
), s.push(
|
|
195
|
-
`${t} tbody:not(.not-prose):not(.not-prose *) td:not(.not-prose):not(.not-prose *){vertical-align:baseline;padding:0.5714286em;}`
|
|
196
|
-
), s.join("");
|
|
103
|
+
const t = He[r[1] || "base"], o = `.${e}`, n = [];
|
|
104
|
+
return n.push(`${o}{--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;}`), n.push(`${o} p:not(.not-prose):not(.not-prose *){margin:${t.p} 0;}`), n.push(`${o} .lead:not(.not-prose):not(.not-prose *),${o} [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);}`), n.push(`${o} h1:not(.not-prose):not(.not-prose *),${o} h2:not(.not-prose):not(.not-prose *),${o} h3:not(.not-prose):not(.not-prose *),${o} h4:not(.not-prose):not(.not-prose *),${o} h5:not(.not-prose):not(.not-prose *),${o} h6:not(.not-prose):not(.not-prose *){color:var(--cer-prose-headings);font-weight:700;line-height:1.25;}`), n.push(`${o} h1:not(.not-prose):not(.not-prose *){font-size:${t.h1};margin-top:0;margin-bottom:0.8888889em;line-height:1.1111111;}`), n.push(`${o} h2:not(.not-prose):not(.not-prose *){font-size:${t.h2};margin-top:2em;margin-bottom:1em;line-height:1.3333333;}`), n.push(`${o} h3:not(.not-prose):not(.not-prose *){font-size:${t.h3};margin-top:1.6em;margin-bottom:0.6em;line-height:1.6;}`), n.push(`${o} h4:not(.not-prose):not(.not-prose *){font-size:${t.h4};margin-top:1.5em;margin-bottom:0.5em;line-height:1.5;}`), n.push(`${o} h5:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`), n.push(`${o} h6:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`), n.push(`${o} a:not(.not-prose):not(.not-prose *){color:var(--cer-prose-links);text-decoration:underline;text-decoration-thickness:.08em;text-underline-offset:.15em;font-weight:500;}`), n.push(`${o} a:not(.not-prose):not(.not-prose *):hover,${o} a:not(.not-prose):not(.not-prose *):focus{color:var(--cer-prose-links-hover);}`), n.push(`${o} strong:not(.not-prose):not(.not-prose *){color:var(--cer-prose-bold);font-weight:600;}`), n.push(`${o} em:not(.not-prose):not(.not-prose *){font-style:italic;}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *){list-style-type:decimal;margin-top:${t.ol};margin-bottom:${t.ol};padding-left:1.625em;}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *)[type="A"]{list-style-type:upper-alpha;}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *)[type="a"]{list-style-type:lower-alpha;}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *)[type="I"]{list-style-type:upper-roman;}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *)[type="i"]{list-style-type:lower-roman;}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${t.li};}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-counters);font-weight:400;}`), n.push(`${o} ul:not(.not-prose):not(.not-prose *){list-style-type:disc;margin-top:${t.ul};margin-bottom:${t.ul};padding-left:1.625em;}`), n.push(`${o} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${t.li};}`), n.push(`${o} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-bullets);}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:first-child,${o} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:first-child{margin-top:${t.ol};}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:last-child,${o} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:last-child{margin-bottom:${t.ol};}`), n.push(`${o} ul:not(.not-prose):not(.not-prose *) ul:not(.not-prose):not(.not-prose *),${o} ul:not(.not-prose):not(.not-prose *) ol:not(.not-prose):not(.not-prose *),${o} ol:not(.not-prose):not(.not-prose *) ul:not(.not-prose):not(.not-prose *),${o} ol:not(.not-prose):not(.not-prose *) ol:not(.not-prose):not(.not-prose *){margin-top:0.75em;margin-bottom:0.75em;}`), n.push(`${o} li:not(.not-prose):not(.not-prose *)>p:not(.not-prose):not(.not-prose *){margin-top:${t.ol};margin-bottom:${t.ol};}`), n.push(`${o} 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;}`), n.push(`${o} 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;}`), n.push(`${o} 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;}`), n.push(`${o} 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;}`), n.push(`${o} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):first-of-type::before{content:open-quote;}`), n.push(`${o} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):last-of-type::after{content:close-quote;}`), n.push(`${o} 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};}`), n.push(`${o} figure:not(.not-prose):not(.not-prose *){margin-top:${t.figure};margin-bottom:${t.figure};}`), n.push(`${o} figure:not(.not-prose):not(.not-prose *)>*{margin-top:0;margin-bottom:0;}`), n.push(`${o} 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;}`), n.push(`${o} img:not(.not-prose):not(.not-prose *),${o} video:not(.not-prose):not(.not-prose *),${o} picture:not(.not-prose):not(.not-prose *){margin-top:${t.figure};margin-bottom:${t.figure};max-width:100%;height:auto;}`), n.push(`${o} figure:not(.not-prose):not(.not-prose *)>img:not(.not-prose):not(.not-prose *),${o} figure:not(.not-prose):not(.not-prose *)>video:not(.not-prose):not(.not-prose *),${o} figure:not(.not-prose):not(.not-prose *)>picture:not(.not-prose):not(.not-prose *){margin-top:0;margin-bottom:0;}`), n.push(`${o} 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;}`), n.push(`${o} thead:not(.not-prose):not(.not-prose *){border-bottom-width:1px;border-bottom-color:var(--cer-prose-table-border);}`), n.push(`${o} thead:not(.not-prose):not(.not-prose *) th:not(.not-prose):not(.not-prose *){color:var(--cer-prose-table-head);font-weight:600;vertical-align:bottom;padding-right:0.5714286em;padding-bottom:0.5714286em;padding-left:0.5714286em;}`), n.push(`${o} tbody:not(.not-prose):not(.not-prose *) tr:not(.not-prose):not(.not-prose *){border-bottom-width:1px;border-bottom-color:var(--cer-prose-table-border);}`), n.push(`${o} tbody:not(.not-prose):not(.not-prose *) tr:not(.not-prose):not(.not-prose *):last-child{border-bottom-width:0;}`), n.push(`${o} tbody:not(.not-prose):not(.not-prose *) td:not(.not-prose):not(.not-prose *){vertical-align:baseline;padding:0.5714286em;}`), n.join("");
|
|
197
105
|
}
|
|
198
|
-
|
|
106
|
+
var Be = {
|
|
199
107
|
headings: "h1,h2,h3,h4,h5,h6,th",
|
|
200
108
|
h1: "h1",
|
|
201
109
|
h2: "h2",
|
|
@@ -231,51 +139,44 @@ const He = {
|
|
|
231
139
|
hr: "hr",
|
|
232
140
|
lead: '[class~="lead"]'
|
|
233
141
|
};
|
|
234
|
-
function Je(e, r,
|
|
235
|
-
const
|
|
236
|
-
if (!
|
|
237
|
-
const [,
|
|
238
|
-
if (!
|
|
239
|
-
const
|
|
240
|
-
if (!
|
|
241
|
-
const
|
|
242
|
-
return
|
|
243
|
-
const b = y.trim();
|
|
244
|
-
return `${`.${n} ${b}:not(.not-prose):not(.not-prose *)`}{${f}}`;
|
|
245
|
-
}).join("");
|
|
142
|
+
function Je(e, r, t, o, n, i, a, c) {
|
|
143
|
+
const d = e.match(/^prose-([a-z0-9]+):(.+)$/);
|
|
144
|
+
if (!d) return null;
|
|
145
|
+
const [, h, $] = d, S = Be[h];
|
|
146
|
+
if (!S) return null;
|
|
147
|
+
const W = r[$] ?? t($) ?? o($) ?? n($) ?? i($) ?? a($) ?? c($);
|
|
148
|
+
if (!W) return null;
|
|
149
|
+
const X = ye(e);
|
|
150
|
+
return S.split(",").map((ce) => `${`.${X} ${ce.trim()}:not(.not-prose):not(.not-prose *)`}{${W}}`).join("");
|
|
246
151
|
}
|
|
247
|
-
|
|
248
|
-
const de = /* @__PURE__ */ new Set();
|
|
249
|
-
let we = "", je = "";
|
|
152
|
+
var N = null, ie = /* @__PURE__ */ new Set(), $e = "", je = "";
|
|
250
153
|
function Ae() {
|
|
251
|
-
const e = Array.from(
|
|
154
|
+
const e = Array.from(ie).sort().join(",");
|
|
252
155
|
if (e === je) return;
|
|
253
156
|
je = e;
|
|
254
157
|
let r = "";
|
|
255
|
-
for (const
|
|
256
|
-
const
|
|
257
|
-
|
|
158
|
+
for (const t of ie) {
|
|
159
|
+
const o = Te(t);
|
|
160
|
+
o && (r += o);
|
|
161
|
+
}
|
|
162
|
+
if ($e = De(r), N && typeof N.replaceSync == "function" && r) try {
|
|
163
|
+
N.replaceSync($e);
|
|
164
|
+
} catch {
|
|
258
165
|
}
|
|
259
|
-
if (we = Ue(r), B && typeof B.replaceSync == "function" && r)
|
|
260
|
-
try {
|
|
261
|
-
B.replaceSync(we);
|
|
262
|
-
} catch {
|
|
263
|
-
}
|
|
264
166
|
}
|
|
265
167
|
function Xe() {
|
|
266
|
-
return
|
|
168
|
+
return ie.size === 0 ? null : (N || (typeof CSSStyleSheet > "u" ? N = {
|
|
267
169
|
cssRules: [],
|
|
268
170
|
replaceSync: () => {
|
|
269
171
|
},
|
|
270
|
-
toString: () =>
|
|
271
|
-
} : (
|
|
172
|
+
toString: () => $e
|
|
173
|
+
} : (N = new CSSStyleSheet(), N.toString = () => $e), je = ""), Ae(), N);
|
|
272
174
|
}
|
|
273
|
-
function
|
|
274
|
-
const r = !
|
|
275
|
-
|
|
175
|
+
function Ke(e) {
|
|
176
|
+
const r = !ie.has(e);
|
|
177
|
+
ie.add(e), r && N && Ae();
|
|
276
178
|
}
|
|
277
|
-
|
|
278
|
-
// Existing semantic colors
|
|
179
|
+
var Ge = {
|
|
279
180
|
neutral: {
|
|
280
181
|
50: "#fafafa",
|
|
281
182
|
100: "#f4f4f5",
|
|
@@ -367,68 +268,55 @@ const Ke = {
|
|
|
367
268
|
900: "#7f1d1d",
|
|
368
269
|
950: "#450a0a"
|
|
369
270
|
},
|
|
370
|
-
// Special colors
|
|
371
271
|
white: { DEFAULT: "#ffffff" },
|
|
372
272
|
black: { DEFAULT: "#000000" },
|
|
373
273
|
transparent: { DEFAULT: "transparent" },
|
|
374
274
|
current: { DEFAULT: "currentColor" }
|
|
375
|
-
}, qe = Object.fromEntries(
|
|
376
|
-
Object.entries(Ke).map(([e, r]) => [
|
|
377
|
-
e,
|
|
378
|
-
Object.fromEntries(
|
|
379
|
-
Object.entries(r).map(([c, a]) => [
|
|
380
|
-
c,
|
|
381
|
-
`var(--cer-color-${e}${c === "DEFAULT" ? "" : `-${c}`}, ${a})`
|
|
382
|
-
])
|
|
383
|
-
)
|
|
384
|
-
])
|
|
385
|
-
);
|
|
386
|
-
let re = { ...qe };
|
|
275
|
+
}, qe = Object.fromEntries(Object.entries(Ge).map(([e, r]) => [e, Object.fromEntries(Object.entries(r).map(([t, o]) => [t, `var(--cer-color-${e}${t === "DEFAULT" ? "" : `-${t}`}, ${o})`]))])), re = { ...qe };
|
|
387
276
|
function Fe(e) {
|
|
388
277
|
if (re = { ...qe }, e.extendedColors) {
|
|
389
278
|
const r = Array.isArray(e.extendedColors) ? e.extendedColors : Object.keys(Ce);
|
|
390
|
-
for (const
|
|
391
|
-
const
|
|
392
|
-
!
|
|
393
|
-
Object.entries(a).map(([t, s]) => [
|
|
394
|
-
t,
|
|
395
|
-
`var(--cer-color-${c}-${t}, ${s})`
|
|
396
|
-
])
|
|
397
|
-
));
|
|
279
|
+
for (const t of r) {
|
|
280
|
+
const o = Ce[t];
|
|
281
|
+
!o || re[t] || (re[t] = Object.fromEntries(Object.entries(o).map(([n, i]) => [n, `var(--cer-color-${t}-${n}, ${i})`])));
|
|
398
282
|
}
|
|
399
283
|
}
|
|
400
|
-
if (e.customColors)
|
|
401
|
-
for (const [r, c] of Object.entries(e.customColors))
|
|
402
|
-
re[r] = c;
|
|
284
|
+
if (e.customColors) for (const [r, t] of Object.entries(e.customColors)) re[r] = t;
|
|
403
285
|
}
|
|
404
|
-
|
|
286
|
+
var U = {}, Oe = !1;
|
|
405
287
|
function Le() {
|
|
406
|
-
Oe || (
|
|
288
|
+
Oe || (Ue(Ye, cr, Xe), Oe = !0);
|
|
407
289
|
}
|
|
408
|
-
|
|
290
|
+
var we = !1, Se = /* @__PURE__ */ new WeakSet();
|
|
409
291
|
function pr() {
|
|
410
|
-
return
|
|
292
|
+
return we;
|
|
411
293
|
}
|
|
412
|
-
function
|
|
413
|
-
return
|
|
294
|
+
function Ye(e) {
|
|
295
|
+
return we || Se.has(e);
|
|
414
296
|
}
|
|
415
297
|
function ur(e, r) {
|
|
416
|
-
if (
|
|
417
|
-
const
|
|
418
|
-
|
|
298
|
+
if (Se.add(e), r) {
|
|
299
|
+
const t = {
|
|
300
|
+
...U,
|
|
301
|
+
...r
|
|
302
|
+
};
|
|
303
|
+
JSON.stringify(t) !== JSON.stringify(U) && (U = t, Fe(U), D.clear());
|
|
419
304
|
}
|
|
420
305
|
Le();
|
|
421
306
|
}
|
|
422
307
|
function gr(e) {
|
|
423
|
-
|
|
308
|
+
we = !0, e && (U = {
|
|
309
|
+
...U,
|
|
310
|
+
...e
|
|
311
|
+
}), Fe(U), Le(), D.clear();
|
|
424
312
|
}
|
|
425
313
|
function mr() {
|
|
426
|
-
|
|
314
|
+
we = !1, Se = /* @__PURE__ */ new WeakSet();
|
|
427
315
|
}
|
|
428
316
|
function fr() {
|
|
429
|
-
return { ...
|
|
317
|
+
return { ...U };
|
|
430
318
|
}
|
|
431
|
-
|
|
319
|
+
var Qe = {
|
|
432
320
|
"3xs": 64,
|
|
433
321
|
"2xs": 72,
|
|
434
322
|
xs: 80,
|
|
@@ -442,7 +330,7 @@ const Ye = {
|
|
|
442
330
|
"5xl": 256,
|
|
443
331
|
"6xl": 288,
|
|
444
332
|
"7xl": 320
|
|
445
|
-
},
|
|
333
|
+
}, ke = {
|
|
446
334
|
m: ["margin"],
|
|
447
335
|
mx: ["margin-inline"],
|
|
448
336
|
my: ["margin-block"],
|
|
@@ -473,9 +361,7 @@ const Ye = {
|
|
|
473
361
|
gap: ["gap"],
|
|
474
362
|
"gap-x": ["column-gap"],
|
|
475
363
|
"gap-y": ["row-gap"],
|
|
476
|
-
// size-* sets both width and height simultaneously (Tailwind v3+)
|
|
477
364
|
size: ["width", "height"],
|
|
478
|
-
// Logical (flow-relative) properties — RTL / vertical writing mode support
|
|
479
365
|
ms: ["margin-inline-start"],
|
|
480
366
|
me: ["margin-inline-end"],
|
|
481
367
|
ps: ["padding-inline-start"],
|
|
@@ -500,10 +386,16 @@ const Ye = {
|
|
|
500
386
|
"table-cell",
|
|
501
387
|
"table-row",
|
|
502
388
|
"hidden"
|
|
503
|
-
].forEach((
|
|
504
|
-
e[
|
|
505
|
-
}), [
|
|
506
|
-
|
|
389
|
+
].forEach((a) => {
|
|
390
|
+
e[a] = a === "hidden" ? "display:none;" : `display:${a};`;
|
|
391
|
+
}), [
|
|
392
|
+
"absolute",
|
|
393
|
+
"relative",
|
|
394
|
+
"fixed",
|
|
395
|
+
"sticky",
|
|
396
|
+
"static"
|
|
397
|
+
].forEach((a) => {
|
|
398
|
+
e[a] = `position:${a};`;
|
|
507
399
|
}), Object.assign(e, {
|
|
508
400
|
"items-center": "align-items:center;",
|
|
509
401
|
"items-start": "align-items:flex-start;",
|
|
@@ -544,8 +436,8 @@ const Ye = {
|
|
|
544
436
|
"grow-0": "flex-grow:0;",
|
|
545
437
|
"shrink-0": "flex-shrink:0;"
|
|
546
438
|
});
|
|
547
|
-
for (let
|
|
548
|
-
e[`grid-cols-${
|
|
439
|
+
for (let a = 1; a <= 12; a++)
|
|
440
|
+
e[`grid-cols-${a}`] = `grid-template-columns:repeat(${a},minmax(0,1fr));`, e[`grid-rows-${a}`] = `grid-template-rows:repeat(${a},minmax(0,1fr));`, e[`col-span-${a}`] = `grid-column:span ${a} / span ${a};`, e[`row-span-${a}`] = `grid-row:span ${a} / span ${a};`, e[`col-start-${a}`] = `grid-column-start:${a};`, e[`col-end-${a}`] = `grid-column-end:${a};`, e[`row-start-${a}`] = `grid-row-start:${a};`, e[`row-end-${a}`] = `grid-row-end:${a};`;
|
|
549
441
|
Object.assign(e, {
|
|
550
442
|
"grid-cols-none": "grid-template-columns:none;",
|
|
551
443
|
"grid-rows-none": "grid-template-rows:none;",
|
|
@@ -596,27 +488,78 @@ const Ye = {
|
|
|
596
488
|
"break-normal": "overflow-wrap:normal;word-break:normal;",
|
|
597
489
|
"break-words": "overflow-wrap:break-word;",
|
|
598
490
|
"break-all": "word-break:break-all;",
|
|
599
|
-
// Text-wrap utilities (Tailwind v3.3+)
|
|
600
491
|
"text-wrap": "text-wrap:wrap;",
|
|
601
492
|
"text-nowrap": "text-wrap:nowrap;",
|
|
602
493
|
"text-balance": "text-wrap:balance;",
|
|
603
494
|
"text-pretty": "text-wrap:pretty;"
|
|
604
495
|
}), [
|
|
605
|
-
[
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
[
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
[
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
496
|
+
[
|
|
497
|
+
"text-xs",
|
|
498
|
+
"0.75rem",
|
|
499
|
+
"1"
|
|
500
|
+
],
|
|
501
|
+
[
|
|
502
|
+
"text-sm",
|
|
503
|
+
"0.875rem",
|
|
504
|
+
"1.25"
|
|
505
|
+
],
|
|
506
|
+
[
|
|
507
|
+
"text-base",
|
|
508
|
+
"1rem",
|
|
509
|
+
"1.5"
|
|
510
|
+
],
|
|
511
|
+
[
|
|
512
|
+
"text-lg",
|
|
513
|
+
"1.125rem",
|
|
514
|
+
"1.75"
|
|
515
|
+
],
|
|
516
|
+
[
|
|
517
|
+
"text-xl",
|
|
518
|
+
"1.25rem",
|
|
519
|
+
"1.75"
|
|
520
|
+
],
|
|
521
|
+
[
|
|
522
|
+
"text-2xl",
|
|
523
|
+
"1.5rem",
|
|
524
|
+
"2"
|
|
525
|
+
],
|
|
526
|
+
[
|
|
527
|
+
"text-3xl",
|
|
528
|
+
"1.875rem",
|
|
529
|
+
"2.25"
|
|
530
|
+
],
|
|
531
|
+
[
|
|
532
|
+
"text-4xl",
|
|
533
|
+
"2.25rem",
|
|
534
|
+
"2.5"
|
|
535
|
+
],
|
|
536
|
+
[
|
|
537
|
+
"text-5xl",
|
|
538
|
+
"3rem",
|
|
539
|
+
"1"
|
|
540
|
+
],
|
|
541
|
+
[
|
|
542
|
+
"text-6xl",
|
|
543
|
+
"3.75rem",
|
|
544
|
+
"1"
|
|
545
|
+
],
|
|
546
|
+
[
|
|
547
|
+
"text-7xl",
|
|
548
|
+
"4.5rem",
|
|
549
|
+
"1"
|
|
550
|
+
],
|
|
551
|
+
[
|
|
552
|
+
"text-8xl",
|
|
553
|
+
"6rem",
|
|
554
|
+
"1"
|
|
555
|
+
],
|
|
556
|
+
[
|
|
557
|
+
"text-9xl",
|
|
558
|
+
"8rem",
|
|
559
|
+
"1"
|
|
560
|
+
]
|
|
561
|
+
].forEach(([a, c, d]) => {
|
|
562
|
+
e[a] = `font-size:${c};line-height:var(--cer-line-height,${d});`;
|
|
620
563
|
}), [
|
|
621
564
|
["tracking-tighter", "-0.05em"],
|
|
622
565
|
["tracking-tight", "-0.025em"],
|
|
@@ -624,8 +567,8 @@ const Ye = {
|
|
|
624
567
|
["tracking-wide", "0.025em"],
|
|
625
568
|
["tracking-wider", "0.05em"],
|
|
626
569
|
["tracking-widest", "0.1em"]
|
|
627
|
-
].forEach(([
|
|
628
|
-
e[
|
|
570
|
+
].forEach(([a, c]) => {
|
|
571
|
+
e[a] = `letter-spacing:${c};`;
|
|
629
572
|
}), [
|
|
630
573
|
["leading-3", "0.75rem"],
|
|
631
574
|
["leading-4", "1rem"],
|
|
@@ -641,13 +584,19 @@ const Ye = {
|
|
|
641
584
|
["leading-normal", "1.5"],
|
|
642
585
|
["leading-relaxed", "1.625"],
|
|
643
586
|
["leading-loose", "2"]
|
|
644
|
-
].forEach(([
|
|
645
|
-
e[
|
|
587
|
+
].forEach(([a, c]) => {
|
|
588
|
+
e[a] = `line-height:${c};--cer-line-height:${c};line-height:var(--cer-line-height,${c});`;
|
|
646
589
|
});
|
|
647
|
-
const
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
590
|
+
for (const a of [
|
|
591
|
+
0,
|
|
592
|
+
1,
|
|
593
|
+
2,
|
|
594
|
+
4,
|
|
595
|
+
6,
|
|
596
|
+
8
|
|
597
|
+
]) {
|
|
598
|
+
const c = `${a}px`;
|
|
599
|
+
e[`outline-${a}`] = `outline-style:var(--cer-outline-style);outline-width:${c};`, e[`outline-offset-${a}`] = `outline-offset:${c};`, e[`border-${a}`] = `border-width:${c};`, e[`border-t-${a}`] = `border-top-width:${c};`, e[`border-r-${a}`] = `border-right-width:${c};`, e[`border-b-${a}`] = `border-bottom-width:${c};`, e[`border-l-${a}`] = `border-left-width:${c};`, e[`border-x-${a}`] = `border-left-width:${c};border-right-width:${c};`, e[`border-y-${a}`] = `border-top-width:${c};border-bottom-width:${c};`;
|
|
651
600
|
}
|
|
652
601
|
Object.assign(e, {
|
|
653
602
|
"font-sans": "font-family:var(--cer-font-sans, ui-sans-serif,system-ui,sans-serif);",
|
|
@@ -673,7 +622,7 @@ const Ye = {
|
|
|
673
622
|
"border-double": "border-style:double;",
|
|
674
623
|
"border-none": "border-style:none;"
|
|
675
624
|
});
|
|
676
|
-
const
|
|
625
|
+
for (const [a, c] of Object.entries({
|
|
677
626
|
none: 0,
|
|
678
627
|
xs: 2,
|
|
679
628
|
sm: 4,
|
|
@@ -684,10 +633,9 @@ const Ye = {
|
|
|
684
633
|
"3xl": 24,
|
|
685
634
|
"4xl": 32,
|
|
686
635
|
full: 9999
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
e[`rounded-${n}`] = `border-radius:${y};`, e[`rounded-t-${n}`] = `border-top-left-radius:${y};border-top-right-radius:${y};`, e[`rounded-r-${n}`] = `border-top-right-radius:${y};border-bottom-right-radius:${y};`, e[`rounded-b-${n}`] = `border-bottom-left-radius:${y};border-bottom-right-radius:${y};`, e[`rounded-l-${n}`] = `border-top-left-radius:${y};border-bottom-left-radius:${y};`, e[`rounded-tl-${n}`] = `border-top-left-radius:${y};`, e[`rounded-tr-${n}`] = `border-top-right-radius:${y};`, e[`rounded-br-${n}`] = `border-bottom-right-radius:${y};`, e[`rounded-bl-${n}`] = `border-bottom-left-radius:${y};`;
|
|
636
|
+
})) {
|
|
637
|
+
const d = c === 9999 ? "9999px" : `${c / 16}rem`;
|
|
638
|
+
e[`rounded-${a}`] = `border-radius:${d};`, e[`rounded-t-${a}`] = `border-top-left-radius:${d};border-top-right-radius:${d};`, e[`rounded-r-${a}`] = `border-top-right-radius:${d};border-bottom-right-radius:${d};`, e[`rounded-b-${a}`] = `border-bottom-left-radius:${d};border-bottom-right-radius:${d};`, e[`rounded-l-${a}`] = `border-top-left-radius:${d};border-bottom-left-radius:${d};`, e[`rounded-tl-${a}`] = `border-top-left-radius:${d};`, e[`rounded-tr-${a}`] = `border-top-right-radius:${d};`, e[`rounded-br-${a}`] = `border-bottom-right-radius:${d};`, e[`rounded-bl-${a}`] = `border-bottom-left-radius:${d};`;
|
|
691
639
|
}
|
|
692
640
|
Object.assign(e, {
|
|
693
641
|
"shadow-none": "--cer-shadow-color:rgb(0 0 0 / 0);box-shadow:0 0 var(--cer-shadow-color, #0000);",
|
|
@@ -699,9 +647,7 @@ const Ye = {
|
|
|
699
647
|
"shadow-xl": "--cer-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 20px 25px -5px var(--cer-shadow-color, rgb(0 0 0 / 0.1)),0 8px 10px -6px var(--cer-shadow-color, rgb(0 0 0 / 0.1));",
|
|
700
648
|
"shadow-2xl": "--cer-shadow-color:rgb(0 0 0 / 0.25);box-shadow:0 25px 50px -12px var(--cer-shadow-color, rgb(0 0 0 / 0.25));",
|
|
701
649
|
"shadow-inner": "box-shadow:inset 0 2px 4px 0 rgb(0 0 0 / 0.05);"
|
|
702
|
-
}), Object.assign(e, {
|
|
703
|
-
rounded: "border-radius:0.25rem;"
|
|
704
|
-
}), Object.assign(e, {
|
|
650
|
+
}), Object.assign(e, { rounded: "border-radius:0.25rem;" }), Object.assign(e, {
|
|
705
651
|
"overflow-auto": "overflow:auto;",
|
|
706
652
|
"overflow-hidden": "overflow:hidden;",
|
|
707
653
|
"overflow-visible": "overflow:visible;",
|
|
@@ -846,7 +792,7 @@ const Ye = {
|
|
|
846
792
|
"divide-double": "border-style:double;",
|
|
847
793
|
"divide-none": "border-style:none;"
|
|
848
794
|
});
|
|
849
|
-
const
|
|
795
|
+
for (const a of [
|
|
850
796
|
"auto",
|
|
851
797
|
"default",
|
|
852
798
|
"pointer",
|
|
@@ -857,10 +803,24 @@ const Ye = {
|
|
|
857
803
|
"not-allowed",
|
|
858
804
|
"grab",
|
|
859
805
|
"grabbing"
|
|
860
|
-
]
|
|
861
|
-
for (const
|
|
862
|
-
|
|
863
|
-
|
|
806
|
+
]) e[`cursor-${a}`] = `cursor:${a};`;
|
|
807
|
+
for (const a of [
|
|
808
|
+
0,
|
|
809
|
+
1,
|
|
810
|
+
2,
|
|
811
|
+
3,
|
|
812
|
+
4,
|
|
813
|
+
5,
|
|
814
|
+
6,
|
|
815
|
+
7,
|
|
816
|
+
8,
|
|
817
|
+
9,
|
|
818
|
+
10,
|
|
819
|
+
20,
|
|
820
|
+
30,
|
|
821
|
+
40,
|
|
822
|
+
50
|
|
823
|
+
]) e[`z-${a}`] = `z-index:${a};`;
|
|
864
824
|
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, {
|
|
865
825
|
"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;",
|
|
866
826
|
"not-sr-only": "position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal;",
|
|
@@ -895,8 +855,8 @@ const Ye = {
|
|
|
895
855
|
"mx-auto": "margin-inline:auto;",
|
|
896
856
|
"my-auto": "margin-block:auto;"
|
|
897
857
|
});
|
|
898
|
-
for (const [
|
|
899
|
-
e[`max-w-${
|
|
858
|
+
for (const [a, c] of Object.entries(Qe))
|
|
859
|
+
e[`max-w-${a}`] = `max-width:calc(${J} * ${c});`, e[`min-w-${a}`] = `min-width:calc(${J} * ${c});`, e[`w-${a}`] = `width:calc(${J} * ${c});`, e[`max-h-${a}`] = `max-height:calc(${J} * ${c});`, e[`min-h-${a}`] = `min-height:calc(${J} * ${c});`, e[`h-${a}`] = `height:calc(${J} * ${c});`;
|
|
900
860
|
Object.assign(e, {
|
|
901
861
|
transition: "transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;",
|
|
902
862
|
"transition-none": "transition-property:none;",
|
|
@@ -928,146 +888,138 @@ const Ye = {
|
|
|
928
888
|
"delay-700": "transition-delay:700ms;",
|
|
929
889
|
"delay-1000": "transition-delay:1000ms;"
|
|
930
890
|
});
|
|
931
|
-
const
|
|
891
|
+
const r = "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))", t = (a) => `--cer-translate-x:${a};transform:${r};`, o = (a) => `--cer-translate-y:${a};transform:${r};`;
|
|
932
892
|
Object.assign(e, {
|
|
933
|
-
|
|
934
|
-
"scale-
|
|
935
|
-
"scale-
|
|
936
|
-
"scale-
|
|
937
|
-
"scale-
|
|
938
|
-
"scale-
|
|
939
|
-
"scale-
|
|
940
|
-
"scale-
|
|
941
|
-
"scale-
|
|
942
|
-
"scale-
|
|
943
|
-
"scale-
|
|
944
|
-
|
|
945
|
-
"scale-x-
|
|
946
|
-
"scale-x-
|
|
947
|
-
"scale-x-
|
|
948
|
-
"scale-x-
|
|
949
|
-
"scale-x-
|
|
950
|
-
"scale-x-
|
|
951
|
-
"scale-x-
|
|
952
|
-
"scale-x-
|
|
953
|
-
"scale-
|
|
954
|
-
"scale-
|
|
955
|
-
|
|
956
|
-
"scale-y-
|
|
957
|
-
"scale-y-
|
|
958
|
-
"scale-y-
|
|
959
|
-
"scale-y-
|
|
960
|
-
"scale-y-
|
|
961
|
-
"scale-y-
|
|
962
|
-
"scale-y-
|
|
963
|
-
"
|
|
964
|
-
"
|
|
965
|
-
"
|
|
966
|
-
|
|
967
|
-
"rotate-
|
|
968
|
-
"rotate-
|
|
969
|
-
"rotate-
|
|
970
|
-
"rotate-
|
|
971
|
-
"rotate-
|
|
972
|
-
"rotate-
|
|
973
|
-
"rotate-
|
|
974
|
-
"rotate-
|
|
975
|
-
"rotate-
|
|
976
|
-
"-rotate-
|
|
977
|
-
"-rotate-
|
|
978
|
-
"-rotate-
|
|
979
|
-
"-rotate-
|
|
980
|
-
"-
|
|
981
|
-
"-
|
|
982
|
-
"-
|
|
983
|
-
"-
|
|
984
|
-
|
|
985
|
-
"translate-x-
|
|
986
|
-
"translate-x-
|
|
987
|
-
"translate-x-
|
|
988
|
-
"translate-x-
|
|
989
|
-
"translate-x-
|
|
990
|
-
"translate-x-
|
|
991
|
-
"translate-x-
|
|
992
|
-
"translate-x-
|
|
993
|
-
"translate-x-
|
|
994
|
-
"translate-x-
|
|
995
|
-
"translate-x-
|
|
996
|
-
"translate-x-
|
|
997
|
-
"translate-x-
|
|
998
|
-
"translate-x-
|
|
999
|
-
"translate-x-
|
|
1000
|
-
"translate-x-
|
|
1001
|
-
"translate-x-
|
|
1002
|
-
"translate-x-
|
|
1003
|
-
"translate-x-
|
|
1004
|
-
"translate-x-
|
|
1005
|
-
"translate-x-
|
|
1006
|
-
"translate-x-1
|
|
1007
|
-
"translate-x-
|
|
1008
|
-
"translate-x-
|
|
1009
|
-
"-translate-x-
|
|
1010
|
-
"-translate-x-
|
|
1011
|
-
"-translate-x-
|
|
1012
|
-
"-translate-x-1
|
|
1013
|
-
"-translate-x-
|
|
1014
|
-
"
|
|
1015
|
-
"
|
|
1016
|
-
"
|
|
1017
|
-
"
|
|
1018
|
-
"
|
|
1019
|
-
|
|
1020
|
-
"translate-y-
|
|
1021
|
-
"translate-y-
|
|
1022
|
-
"translate-y-
|
|
1023
|
-
"translate-y-
|
|
1024
|
-
"translate-y-
|
|
1025
|
-
"translate-y-
|
|
1026
|
-
"translate-y-
|
|
1027
|
-
"translate-y-
|
|
1028
|
-
"translate-y-
|
|
1029
|
-
"translate-y-
|
|
1030
|
-
"translate-y-
|
|
1031
|
-
"translate-y-
|
|
1032
|
-
"translate-y-
|
|
1033
|
-
"translate-y-
|
|
1034
|
-
"translate-y-
|
|
1035
|
-
"translate-y-
|
|
1036
|
-
"translate-y-
|
|
1037
|
-
"translate-y-
|
|
1038
|
-
"translate-y-
|
|
1039
|
-
"translate-y-
|
|
1040
|
-
"-translate-y-
|
|
1041
|
-
"-
|
|
1042
|
-
"-
|
|
1043
|
-
"-
|
|
1044
|
-
"-
|
|
1045
|
-
"-
|
|
1046
|
-
"-
|
|
1047
|
-
|
|
1048
|
-
"skew-x-
|
|
1049
|
-
"skew-x-
|
|
1050
|
-
"skew-x-
|
|
1051
|
-
"skew-x-
|
|
1052
|
-
"skew-
|
|
1053
|
-
"skew-
|
|
1054
|
-
"
|
|
1055
|
-
"
|
|
1056
|
-
"
|
|
1057
|
-
"
|
|
1058
|
-
"-skew-
|
|
1059
|
-
|
|
1060
|
-
"skew-y-
|
|
1061
|
-
"skew-y-
|
|
1062
|
-
"skew-y-
|
|
1063
|
-
"skew-y-3": `--cer-skew-y:3deg;transform:${i};`,
|
|
1064
|
-
"skew-y-6": `--cer-skew-y:6deg;transform:${i};`,
|
|
1065
|
-
"skew-y-12": `--cer-skew-y:12deg;transform:${i};`,
|
|
1066
|
-
"-skew-y-1": `--cer-skew-y:-1deg;transform:${i};`,
|
|
1067
|
-
"-skew-y-2": `--cer-skew-y:-2deg;transform:${i};`,
|
|
1068
|
-
"-skew-y-3": `--cer-skew-y:-3deg;transform:${i};`,
|
|
1069
|
-
"-skew-y-6": `--cer-skew-y:-6deg;transform:${i};`,
|
|
1070
|
-
"-skew-y-12": `--cer-skew-y:-12deg;transform:${i};`
|
|
893
|
+
"scale-0": `--cer-scale-x:0;--cer-scale-y:0;transform:${r};`,
|
|
894
|
+
"scale-50": `--cer-scale-x:.5;--cer-scale-y:.5;transform:${r};`,
|
|
895
|
+
"scale-75": `--cer-scale-x:.75;--cer-scale-y:.75;transform:${r};`,
|
|
896
|
+
"scale-90": `--cer-scale-x:.9;--cer-scale-y:.9;transform:${r};`,
|
|
897
|
+
"scale-95": `--cer-scale-x:.95;--cer-scale-y:.95;transform:${r};`,
|
|
898
|
+
"scale-100": `--cer-scale-x:1;--cer-scale-y:1;transform:${r};`,
|
|
899
|
+
"scale-105": `--cer-scale-x:1.05;--cer-scale-y:1.05;transform:${r};`,
|
|
900
|
+
"scale-110": `--cer-scale-x:1.1;--cer-scale-y:1.1;transform:${r};`,
|
|
901
|
+
"scale-125": `--cer-scale-x:1.25;--cer-scale-y:1.25;transform:${r};`,
|
|
902
|
+
"scale-150": `--cer-scale-x:1.5;--cer-scale-y:1.5;transform:${r};`,
|
|
903
|
+
"scale-x-0": `--cer-scale-x:0;transform:${r};`,
|
|
904
|
+
"scale-x-50": `--cer-scale-x:.5;transform:${r};`,
|
|
905
|
+
"scale-x-75": `--cer-scale-x:.75;transform:${r};`,
|
|
906
|
+
"scale-x-90": `--cer-scale-x:.9;transform:${r};`,
|
|
907
|
+
"scale-x-95": `--cer-scale-x:.95;transform:${r};`,
|
|
908
|
+
"scale-x-100": `--cer-scale-x:1;transform:${r};`,
|
|
909
|
+
"scale-x-105": `--cer-scale-x:1.05;transform:${r};`,
|
|
910
|
+
"scale-x-110": `--cer-scale-x:1.1;transform:${r};`,
|
|
911
|
+
"scale-x-125": `--cer-scale-x:1.25;transform:${r};`,
|
|
912
|
+
"scale-x-150": `--cer-scale-x:1.5;transform:${r};`,
|
|
913
|
+
"scale-y-0": `--cer-scale-y:0;transform:${r};`,
|
|
914
|
+
"scale-y-50": `--cer-scale-y:.5;transform:${r};`,
|
|
915
|
+
"scale-y-75": `--cer-scale-y:.75;transform:${r};`,
|
|
916
|
+
"scale-y-90": `--cer-scale-y:.9;transform:${r};`,
|
|
917
|
+
"scale-y-95": `--cer-scale-y:.95;transform:${r};`,
|
|
918
|
+
"scale-y-100": `--cer-scale-y:1;transform:${r};`,
|
|
919
|
+
"scale-y-105": `--cer-scale-y:1.05;transform:${r};`,
|
|
920
|
+
"scale-y-110": `--cer-scale-y:1.1;transform:${r};`,
|
|
921
|
+
"scale-y-125": `--cer-scale-y:1.25;transform:${r};`,
|
|
922
|
+
"scale-y-150": `--cer-scale-y:1.5;transform:${r};`,
|
|
923
|
+
"rotate-0": `--cer-rotate:0deg;transform:${r};`,
|
|
924
|
+
"rotate-1": `--cer-rotate:1deg;transform:${r};`,
|
|
925
|
+
"rotate-2": `--cer-rotate:2deg;transform:${r};`,
|
|
926
|
+
"rotate-3": `--cer-rotate:3deg;transform:${r};`,
|
|
927
|
+
"rotate-6": `--cer-rotate:6deg;transform:${r};`,
|
|
928
|
+
"rotate-12": `--cer-rotate:12deg;transform:${r};`,
|
|
929
|
+
"rotate-45": `--cer-rotate:45deg;transform:${r};`,
|
|
930
|
+
"rotate-90": `--cer-rotate:90deg;transform:${r};`,
|
|
931
|
+
"rotate-180": `--cer-rotate:180deg;transform:${r};`,
|
|
932
|
+
"-rotate-1": `--cer-rotate:-1deg;transform:${r};`,
|
|
933
|
+
"-rotate-2": `--cer-rotate:-2deg;transform:${r};`,
|
|
934
|
+
"-rotate-3": `--cer-rotate:-3deg;transform:${r};`,
|
|
935
|
+
"-rotate-6": `--cer-rotate:-6deg;transform:${r};`,
|
|
936
|
+
"-rotate-12": `--cer-rotate:-12deg;transform:${r};`,
|
|
937
|
+
"-rotate-45": `--cer-rotate:-45deg;transform:${r};`,
|
|
938
|
+
"-rotate-90": `--cer-rotate:-90deg;transform:${r};`,
|
|
939
|
+
"-rotate-180": `--cer-rotate:-180deg;transform:${r};`,
|
|
940
|
+
"translate-x-0": t("0px"),
|
|
941
|
+
"translate-x-px": t("1px"),
|
|
942
|
+
"translate-x-0.5": t("0.125rem"),
|
|
943
|
+
"translate-x-1": t("0.25rem"),
|
|
944
|
+
"translate-x-1.5": t("0.375rem"),
|
|
945
|
+
"translate-x-2": t("0.5rem"),
|
|
946
|
+
"translate-x-2.5": t("0.625rem"),
|
|
947
|
+
"translate-x-3": t("0.75rem"),
|
|
948
|
+
"translate-x-4": t("1rem"),
|
|
949
|
+
"translate-x-5": t("1.25rem"),
|
|
950
|
+
"translate-x-6": t("1.5rem"),
|
|
951
|
+
"translate-x-8": t("2rem"),
|
|
952
|
+
"translate-x-10": t("2.5rem"),
|
|
953
|
+
"translate-x-12": t("3rem"),
|
|
954
|
+
"translate-x-16": t("4rem"),
|
|
955
|
+
"translate-x-20": t("5rem"),
|
|
956
|
+
"translate-x-24": t("6rem"),
|
|
957
|
+
"translate-x-32": t("8rem"),
|
|
958
|
+
"translate-x-1/2": t("50%"),
|
|
959
|
+
"translate-x-1/3": t("33.333333%"),
|
|
960
|
+
"translate-x-2/3": t("66.666667%"),
|
|
961
|
+
"translate-x-1/4": t("25%"),
|
|
962
|
+
"translate-x-3/4": t("75%"),
|
|
963
|
+
"translate-x-full": t("100%"),
|
|
964
|
+
"-translate-x-px": t("-1px"),
|
|
965
|
+
"-translate-x-0.5": t("-0.125rem"),
|
|
966
|
+
"-translate-x-1": t("-0.25rem"),
|
|
967
|
+
"-translate-x-1.5": t("-0.375rem"),
|
|
968
|
+
"-translate-x-2": t("-0.5rem"),
|
|
969
|
+
"-translate-x-2.5": t("-0.625rem"),
|
|
970
|
+
"-translate-x-3": t("-0.75rem"),
|
|
971
|
+
"-translate-x-4": t("-1rem"),
|
|
972
|
+
"-translate-x-1/2": t("-50%"),
|
|
973
|
+
"-translate-x-full": t("-100%"),
|
|
974
|
+
"translate-y-0": o("0px"),
|
|
975
|
+
"translate-y-px": o("1px"),
|
|
976
|
+
"translate-y-0.5": o("0.125rem"),
|
|
977
|
+
"translate-y-1": o("0.25rem"),
|
|
978
|
+
"translate-y-1.5": o("0.375rem"),
|
|
979
|
+
"translate-y-2": o("0.5rem"),
|
|
980
|
+
"translate-y-2.5": o("0.625rem"),
|
|
981
|
+
"translate-y-3": o("0.75rem"),
|
|
982
|
+
"translate-y-4": o("1rem"),
|
|
983
|
+
"translate-y-5": o("1.25rem"),
|
|
984
|
+
"translate-y-6": o("1.5rem"),
|
|
985
|
+
"translate-y-8": o("2rem"),
|
|
986
|
+
"translate-y-10": o("2.5rem"),
|
|
987
|
+
"translate-y-12": o("3rem"),
|
|
988
|
+
"translate-y-16": o("4rem"),
|
|
989
|
+
"translate-y-20": o("5rem"),
|
|
990
|
+
"translate-y-24": o("6rem"),
|
|
991
|
+
"translate-y-32": o("8rem"),
|
|
992
|
+
"translate-y-1/2": o("50%"),
|
|
993
|
+
"translate-y-full": o("100%"),
|
|
994
|
+
"-translate-y-px": o("-1px"),
|
|
995
|
+
"-translate-y-0.5": o("-0.125rem"),
|
|
996
|
+
"-translate-y-1": o("-0.25rem"),
|
|
997
|
+
"-translate-y-2": o("-0.5rem"),
|
|
998
|
+
"-translate-y-4": o("-1rem"),
|
|
999
|
+
"-translate-y-1/2": o("-50%"),
|
|
1000
|
+
"-translate-y-full": o("-100%"),
|
|
1001
|
+
"skew-x-0": `--cer-skew-x:0deg;transform:${r};`,
|
|
1002
|
+
"skew-x-1": `--cer-skew-x:1deg;transform:${r};`,
|
|
1003
|
+
"skew-x-2": `--cer-skew-x:2deg;transform:${r};`,
|
|
1004
|
+
"skew-x-3": `--cer-skew-x:3deg;transform:${r};`,
|
|
1005
|
+
"skew-x-6": `--cer-skew-x:6deg;transform:${r};`,
|
|
1006
|
+
"skew-x-12": `--cer-skew-x:12deg;transform:${r};`,
|
|
1007
|
+
"-skew-x-1": `--cer-skew-x:-1deg;transform:${r};`,
|
|
1008
|
+
"-skew-x-2": `--cer-skew-x:-2deg;transform:${r};`,
|
|
1009
|
+
"-skew-x-3": `--cer-skew-x:-3deg;transform:${r};`,
|
|
1010
|
+
"-skew-x-6": `--cer-skew-x:-6deg;transform:${r};`,
|
|
1011
|
+
"-skew-x-12": `--cer-skew-x:-12deg;transform:${r};`,
|
|
1012
|
+
"skew-y-0": `--cer-skew-y:0deg;transform:${r};`,
|
|
1013
|
+
"skew-y-1": `--cer-skew-y:1deg;transform:${r};`,
|
|
1014
|
+
"skew-y-2": `--cer-skew-y:2deg;transform:${r};`,
|
|
1015
|
+
"skew-y-3": `--cer-skew-y:3deg;transform:${r};`,
|
|
1016
|
+
"skew-y-6": `--cer-skew-y:6deg;transform:${r};`,
|
|
1017
|
+
"skew-y-12": `--cer-skew-y:12deg;transform:${r};`,
|
|
1018
|
+
"-skew-y-1": `--cer-skew-y:-1deg;transform:${r};`,
|
|
1019
|
+
"-skew-y-2": `--cer-skew-y:-2deg;transform:${r};`,
|
|
1020
|
+
"-skew-y-3": `--cer-skew-y:-3deg;transform:${r};`,
|
|
1021
|
+
"-skew-y-6": `--cer-skew-y:-6deg;transform:${r};`,
|
|
1022
|
+
"-skew-y-12": `--cer-skew-y:-12deg;transform:${r};`
|
|
1071
1023
|
}), Object.assign(e, {
|
|
1072
1024
|
ring: "box-shadow:0 0 0 3px var(--cer-ring-color,rgb(59 130 246/0.5));",
|
|
1073
1025
|
"ring-0": "box-shadow:0 0 0 0px var(--cer-ring-color,rgb(59 130 246/0.5));",
|
|
@@ -1082,81 +1034,71 @@ const Ye = {
|
|
|
1082
1034
|
"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));",
|
|
1083
1035
|
"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));"
|
|
1084
1036
|
});
|
|
1085
|
-
const
|
|
1037
|
+
const n = "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)", i = "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)";
|
|
1086
1038
|
Object.assign(e, {
|
|
1087
|
-
|
|
1088
|
-
"blur-
|
|
1089
|
-
|
|
1090
|
-
blur: `--cer-blur:blur(
|
|
1091
|
-
"blur-
|
|
1092
|
-
"blur-
|
|
1093
|
-
"blur-
|
|
1094
|
-
"blur-
|
|
1095
|
-
"
|
|
1096
|
-
|
|
1097
|
-
"brightness-
|
|
1098
|
-
"brightness-
|
|
1099
|
-
"brightness-
|
|
1100
|
-
"brightness-
|
|
1101
|
-
"brightness-
|
|
1102
|
-
"brightness-
|
|
1103
|
-
"brightness-
|
|
1104
|
-
"brightness-
|
|
1105
|
-
"brightness-
|
|
1106
|
-
"
|
|
1107
|
-
"
|
|
1108
|
-
|
|
1109
|
-
"contrast-
|
|
1110
|
-
"contrast-
|
|
1111
|
-
"contrast-
|
|
1112
|
-
"contrast-
|
|
1113
|
-
|
|
1114
|
-
"
|
|
1115
|
-
"
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
"
|
|
1119
|
-
|
|
1120
|
-
"hue-rotate-
|
|
1121
|
-
"hue-rotate-
|
|
1122
|
-
"hue-rotate-
|
|
1123
|
-
"hue-rotate-60": `--cer-hue-rotate:hue-rotate(60deg);filter:${
|
|
1124
|
-
"hue-rotate-
|
|
1125
|
-
"hue-rotate-
|
|
1126
|
-
|
|
1127
|
-
"-
|
|
1128
|
-
"-
|
|
1129
|
-
"-
|
|
1130
|
-
"-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
"
|
|
1136
|
-
"
|
|
1137
|
-
"
|
|
1138
|
-
"
|
|
1139
|
-
"
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
"
|
|
1143
|
-
|
|
1144
|
-
"
|
|
1145
|
-
"
|
|
1146
|
-
"
|
|
1147
|
-
"
|
|
1148
|
-
"
|
|
1149
|
-
"
|
|
1150
|
-
"drop-shadow-none": `--cer-drop-shadow:drop-shadow(0 0 #0000);filter:${l};`,
|
|
1151
|
-
// Backdrop blur
|
|
1152
|
-
"backdrop-blur-none": `--cer-backdrop-blur:;backdrop-filter:${f};-webkit-backdrop-filter:${f};`,
|
|
1153
|
-
"backdrop-blur-sm": `--cer-backdrop-blur:blur(4px);backdrop-filter:${f};-webkit-backdrop-filter:${f};`,
|
|
1154
|
-
"backdrop-blur": `--cer-backdrop-blur:blur(8px);backdrop-filter:${f};-webkit-backdrop-filter:${f};`,
|
|
1155
|
-
"backdrop-blur-md": `--cer-backdrop-blur:blur(12px);backdrop-filter:${f};-webkit-backdrop-filter:${f};`,
|
|
1156
|
-
"backdrop-blur-lg": `--cer-backdrop-blur:blur(16px);backdrop-filter:${f};-webkit-backdrop-filter:${f};`,
|
|
1157
|
-
"backdrop-blur-xl": `--cer-backdrop-blur:blur(24px);backdrop-filter:${f};-webkit-backdrop-filter:${f};`,
|
|
1158
|
-
"backdrop-blur-2xl": `--cer-backdrop-blur:blur(40px);backdrop-filter:${f};-webkit-backdrop-filter:${f};`,
|
|
1159
|
-
"backdrop-blur-3xl": `--cer-backdrop-blur:blur(64px);backdrop-filter:${f};-webkit-backdrop-filter:${f};`
|
|
1039
|
+
"blur-none": `--cer-blur:;filter:${n};`,
|
|
1040
|
+
"blur-sm": `--cer-blur:blur(4px);filter:${n};`,
|
|
1041
|
+
blur: `--cer-blur:blur(8px);filter:${n};`,
|
|
1042
|
+
"blur-md": `--cer-blur:blur(12px);filter:${n};`,
|
|
1043
|
+
"blur-lg": `--cer-blur:blur(16px);filter:${n};`,
|
|
1044
|
+
"blur-xl": `--cer-blur:blur(24px);filter:${n};`,
|
|
1045
|
+
"blur-2xl": `--cer-blur:blur(40px);filter:${n};`,
|
|
1046
|
+
"blur-3xl": `--cer-blur:blur(64px);filter:${n};`,
|
|
1047
|
+
"brightness-0": `--cer-brightness:brightness(0);filter:${n};`,
|
|
1048
|
+
"brightness-50": `--cer-brightness:brightness(.5);filter:${n};`,
|
|
1049
|
+
"brightness-75": `--cer-brightness:brightness(.75);filter:${n};`,
|
|
1050
|
+
"brightness-90": `--cer-brightness:brightness(.9);filter:${n};`,
|
|
1051
|
+
"brightness-95": `--cer-brightness:brightness(.95);filter:${n};`,
|
|
1052
|
+
"brightness-100": `--cer-brightness:brightness(1);filter:${n};`,
|
|
1053
|
+
"brightness-105": `--cer-brightness:brightness(1.05);filter:${n};`,
|
|
1054
|
+
"brightness-110": `--cer-brightness:brightness(1.1);filter:${n};`,
|
|
1055
|
+
"brightness-125": `--cer-brightness:brightness(1.25);filter:${n};`,
|
|
1056
|
+
"brightness-150": `--cer-brightness:brightness(1.5);filter:${n};`,
|
|
1057
|
+
"brightness-200": `--cer-brightness:brightness(2);filter:${n};`,
|
|
1058
|
+
"contrast-0": `--cer-contrast:contrast(0);filter:${n};`,
|
|
1059
|
+
"contrast-50": `--cer-contrast:contrast(.5);filter:${n};`,
|
|
1060
|
+
"contrast-75": `--cer-contrast:contrast(.75);filter:${n};`,
|
|
1061
|
+
"contrast-100": `--cer-contrast:contrast(1);filter:${n};`,
|
|
1062
|
+
"contrast-125": `--cer-contrast:contrast(1.25);filter:${n};`,
|
|
1063
|
+
"contrast-150": `--cer-contrast:contrast(1.5);filter:${n};`,
|
|
1064
|
+
"contrast-200": `--cer-contrast:contrast(2);filter:${n};`,
|
|
1065
|
+
grayscale: `--cer-grayscale:grayscale(100%);filter:${n};`,
|
|
1066
|
+
"grayscale-0": `--cer-grayscale:grayscale(0);filter:${n};`,
|
|
1067
|
+
"hue-rotate-0": `--cer-hue-rotate:hue-rotate(0deg);filter:${n};`,
|
|
1068
|
+
"hue-rotate-15": `--cer-hue-rotate:hue-rotate(15deg);filter:${n};`,
|
|
1069
|
+
"hue-rotate-30": `--cer-hue-rotate:hue-rotate(30deg);filter:${n};`,
|
|
1070
|
+
"hue-rotate-60": `--cer-hue-rotate:hue-rotate(60deg);filter:${n};`,
|
|
1071
|
+
"hue-rotate-90": `--cer-hue-rotate:hue-rotate(90deg);filter:${n};`,
|
|
1072
|
+
"hue-rotate-180": `--cer-hue-rotate:hue-rotate(180deg);filter:${n};`,
|
|
1073
|
+
"-hue-rotate-180": `--cer-hue-rotate:hue-rotate(-180deg);filter:${n};`,
|
|
1074
|
+
"-hue-rotate-90": `--cer-hue-rotate:hue-rotate(-90deg);filter:${n};`,
|
|
1075
|
+
"-hue-rotate-60": `--cer-hue-rotate:hue-rotate(-60deg);filter:${n};`,
|
|
1076
|
+
"-hue-rotate-30": `--cer-hue-rotate:hue-rotate(-30deg);filter:${n};`,
|
|
1077
|
+
"-hue-rotate-15": `--cer-hue-rotate:hue-rotate(-15deg);filter:${n};`,
|
|
1078
|
+
invert: `--cer-invert:invert(100%);filter:${n};`,
|
|
1079
|
+
"invert-0": `--cer-invert:invert(0);filter:${n};`,
|
|
1080
|
+
"saturate-0": `--cer-saturate:saturate(0);filter:${n};`,
|
|
1081
|
+
"saturate-50": `--cer-saturate:saturate(.5);filter:${n};`,
|
|
1082
|
+
"saturate-100": `--cer-saturate:saturate(1);filter:${n};`,
|
|
1083
|
+
"saturate-150": `--cer-saturate:saturate(1.5);filter:${n};`,
|
|
1084
|
+
"saturate-200": `--cer-saturate:saturate(2);filter:${n};`,
|
|
1085
|
+
sepia: `--cer-sepia:sepia(100%);filter:${n};`,
|
|
1086
|
+
"sepia-0": `--cer-sepia:sepia(0);filter:${n};`,
|
|
1087
|
+
"drop-shadow-sm": `--cer-drop-shadow:drop-shadow(0 1px 1px rgb(0 0 0/.05));filter:${n};`,
|
|
1088
|
+
"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:${n};`,
|
|
1089
|
+
"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:${n};`,
|
|
1090
|
+
"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:${n};`,
|
|
1091
|
+
"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:${n};`,
|
|
1092
|
+
"drop-shadow-2xl": `--cer-drop-shadow:drop-shadow(0 25px 25px rgb(0 0 0/.15));filter:${n};`,
|
|
1093
|
+
"drop-shadow-none": `--cer-drop-shadow:drop-shadow(0 0 #0000);filter:${n};`,
|
|
1094
|
+
"backdrop-blur-none": `--cer-backdrop-blur:;backdrop-filter:${i};-webkit-backdrop-filter:${i};`,
|
|
1095
|
+
"backdrop-blur-sm": `--cer-backdrop-blur:blur(4px);backdrop-filter:${i};-webkit-backdrop-filter:${i};`,
|
|
1096
|
+
"backdrop-blur": `--cer-backdrop-blur:blur(8px);backdrop-filter:${i};-webkit-backdrop-filter:${i};`,
|
|
1097
|
+
"backdrop-blur-md": `--cer-backdrop-blur:blur(12px);backdrop-filter:${i};-webkit-backdrop-filter:${i};`,
|
|
1098
|
+
"backdrop-blur-lg": `--cer-backdrop-blur:blur(16px);backdrop-filter:${i};-webkit-backdrop-filter:${i};`,
|
|
1099
|
+
"backdrop-blur-xl": `--cer-backdrop-blur:blur(24px);backdrop-filter:${i};-webkit-backdrop-filter:${i};`,
|
|
1100
|
+
"backdrop-blur-2xl": `--cer-backdrop-blur:blur(40px);backdrop-filter:${i};-webkit-backdrop-filter:${i};`,
|
|
1101
|
+
"backdrop-blur-3xl": `--cer-backdrop-blur:blur(64px);backdrop-filter:${i};-webkit-backdrop-filter:${i};`
|
|
1160
1102
|
}), Object.assign(e, {
|
|
1161
1103
|
"aspect-auto": "aspect-ratio:auto;",
|
|
1162
1104
|
"aspect-square": "aspect-ratio:1 / 1;",
|
|
@@ -1177,16 +1119,13 @@ const Ye = {
|
|
|
1177
1119
|
"object-right-top": "object-position:right top;",
|
|
1178
1120
|
"object-top": "object-position:top;"
|
|
1179
1121
|
});
|
|
1180
|
-
for (let
|
|
1181
|
-
e[`line-clamp-${n}`] = `display:-webkit-box;-webkit-line-clamp:${n};-webkit-box-orient:vertical;overflow:hidden;`;
|
|
1122
|
+
for (let a = 1; a <= 6; a++) e[`line-clamp-${a}`] = `display:-webkit-box;-webkit-line-clamp:${a};-webkit-box-orient:vertical;overflow:hidden;`;
|
|
1182
1123
|
e["line-clamp-none"] = "overflow:visible;display:block;-webkit-box-orient:horizontal;-webkit-line-clamp:none;";
|
|
1183
|
-
for (let
|
|
1184
|
-
e[`order-${n}`] = `order:${n};`;
|
|
1124
|
+
for (let a = 1; a <= 12; a++) e[`order-${a}`] = `order:${a};`;
|
|
1185
1125
|
e["order-first"] = "order:-9999;", e["order-last"] = "order:9999;", e["order-none"] = "order:0;";
|
|
1186
|
-
for (let
|
|
1187
|
-
|
|
1126
|
+
for (let a = 0; a <= 12; a++)
|
|
1127
|
+
a <= 1 || (e[`grow-${a}`] = `flex-grow:${a};`, e[`shrink-${a}`] = `flex-shrink:${a};`);
|
|
1188
1128
|
return Object.assign(e, {
|
|
1189
|
-
// Linear gradients
|
|
1190
1129
|
"bg-linear-to-t": "background-image:linear-gradient(to top, var(--cer-gradient-stops));",
|
|
1191
1130
|
"bg-linear-to-tr": "background-image:linear-gradient(to top right, var(--cer-gradient-stops));",
|
|
1192
1131
|
"bg-linear-to-r": "background-image:linear-gradient(to right, var(--cer-gradient-stops));",
|
|
@@ -1195,7 +1134,6 @@ const Ye = {
|
|
|
1195
1134
|
"bg-linear-to-bl": "background-image:linear-gradient(to bottom left, var(--cer-gradient-stops));",
|
|
1196
1135
|
"bg-linear-to-l": "background-image:linear-gradient(to left, var(--cer-gradient-stops));",
|
|
1197
1136
|
"bg-linear-to-tl": "background-image:linear-gradient(to top left, var(--cer-gradient-stops));",
|
|
1198
|
-
// Radial gradients
|
|
1199
1137
|
"bg-radial": "background-image:radial-gradient(ellipse at center, var(--cer-gradient-stops));",
|
|
1200
1138
|
"bg-radial-at-t": "background-image:radial-gradient(ellipse at top, var(--cer-gradient-stops));",
|
|
1201
1139
|
"bg-radial-at-tr": "background-image:radial-gradient(ellipse at top right, var(--cer-gradient-stops));",
|
|
@@ -1214,7 +1152,6 @@ const Ye = {
|
|
|
1214
1152
|
"bg-radial-circle-at-bl": "background-image:radial-gradient(circle at bottom left, var(--cer-gradient-stops));",
|
|
1215
1153
|
"bg-radial-circle-at-l": "background-image:radial-gradient(circle at left, var(--cer-gradient-stops));",
|
|
1216
1154
|
"bg-radial-circle-at-tl": "background-image:radial-gradient(circle at top left, var(--cer-gradient-stops));",
|
|
1217
|
-
// Conic gradients
|
|
1218
1155
|
"bg-conic": "background-image:conic-gradient(from 0deg at center, var(--cer-gradient-stops));",
|
|
1219
1156
|
"bg-conic-at-t": "background-image:conic-gradient(from 0deg at top, var(--cer-gradient-stops));",
|
|
1220
1157
|
"bg-conic-at-tr": "background-image:conic-gradient(from 0deg at top right, var(--cer-gradient-stops));",
|
|
@@ -1225,7 +1162,6 @@ const Ye = {
|
|
|
1225
1162
|
"bg-conic-at-l": "background-image:conic-gradient(from 0deg at left, var(--cer-gradient-stops));",
|
|
1226
1163
|
"bg-conic-at-tl": "background-image:conic-gradient(from 0deg at top left, var(--cer-gradient-stops));"
|
|
1227
1164
|
}), Object.assign(e, {
|
|
1228
|
-
// prose-invert: dark mode color inversion
|
|
1229
1165
|
"prose-invert": `
|
|
1230
1166
|
--cer-prose-body:var(--cer-color-neutral-200);
|
|
1231
1167
|
--cer-prose-headings:var(--cer-color-neutral-50);
|
|
@@ -1250,42 +1186,36 @@ const Ye = {
|
|
|
1250
1186
|
--cer-prose-links:var(--cer-prose-invert-links,var(--cer-color-neutral-300));
|
|
1251
1187
|
--cer-prose-links-hover:var(--cer-prose-invert-links-hover,var(--cer-color-neutral-100));
|
|
1252
1188
|
`.replace(/\s+/g, ""),
|
|
1253
|
-
// prose-primary: primary color scheme (sets invert variables)
|
|
1254
1189
|
"prose-primary": `
|
|
1255
1190
|
--cer-prose-links:var(--cer-color-primary-700);
|
|
1256
1191
|
--cer-prose-links-hover:var(--cer-color-primary-500);
|
|
1257
1192
|
--cer-prose-invert-links:var(--cer-color-primary-300);
|
|
1258
1193
|
--cer-prose-invert-links-hover:var(--cer-color-primary-100);
|
|
1259
1194
|
`.replace(/\s+/g, ""),
|
|
1260
|
-
// prose-secondary: secondary color scheme (sets invert variables)
|
|
1261
1195
|
"prose-secondary": `
|
|
1262
1196
|
--cer-prose-links:var(--cer-color-secondary-700);
|
|
1263
1197
|
--cer-prose-links-hover:var(--cer-color-secondary-500);
|
|
1264
1198
|
--cer-prose-invert-links:var(--cer-color-secondary-300);
|
|
1265
1199
|
--cer-prose-invert-links-hover:var(--cer-color-secondary-100);
|
|
1266
1200
|
`.replace(/\s+/g, ""),
|
|
1267
|
-
// prose-success: success color scheme (sets invert variables)
|
|
1268
1201
|
"prose-success": `
|
|
1269
1202
|
--cer-prose-links:var(--cer-color-success-700);
|
|
1270
1203
|
--cer-prose-links-hover:var(--cer-color-success-500);
|
|
1271
1204
|
--cer-prose-invert-links:var(--cer-color-success-300);
|
|
1272
1205
|
--cer-prose-invert-links-hover:var(--cer-color-success-100);
|
|
1273
1206
|
`.replace(/\s+/g, ""),
|
|
1274
|
-
// prose-warning: warning color scheme (sets invert variables)
|
|
1275
1207
|
"prose-warning": `
|
|
1276
1208
|
--cer-prose-links:var(--cer-color-warning-700);
|
|
1277
1209
|
--cer-prose-links-hover:var(--cer-color-warning-500);
|
|
1278
1210
|
--cer-prose-invert-links:var(--cer-color-warning-300);
|
|
1279
1211
|
--cer-prose-invert-links-hover:var(--cer-color-warning-100);
|
|
1280
1212
|
`.replace(/\s+/g, ""),
|
|
1281
|
-
// prose-error: error color scheme (sets invert variables)
|
|
1282
1213
|
"prose-error": `
|
|
1283
1214
|
--cer-prose-links:var(--cer-color-error-700);
|
|
1284
1215
|
--cer-prose-links-hover:var(--cer-color-error-500);
|
|
1285
1216
|
--cer-prose-invert-links:var(--cer-color-error-300);
|
|
1286
1217
|
--cer-prose-invert-links-hover:var(--cer-color-error-100);
|
|
1287
1218
|
`.replace(/\s+/g, ""),
|
|
1288
|
-
// prose-info: info color scheme (sets invert variables)
|
|
1289
1219
|
"prose-info": `
|
|
1290
1220
|
--cer-prose-links:var(--cer-color-info-700);
|
|
1291
1221
|
--cer-prose-links-hover:var(--cer-color-info-500);
|
|
@@ -1355,7 +1285,6 @@ const Ye = {
|
|
|
1355
1285
|
"cursor-nwse-resize": "cursor:nwse-resize;",
|
|
1356
1286
|
"cursor-all-scroll": "cursor:all-scroll;"
|
|
1357
1287
|
}), Object.assign(e, {
|
|
1358
|
-
// border-inline-start / border-inline-end widths
|
|
1359
1288
|
"border-s": "border-inline-start-width:1px;",
|
|
1360
1289
|
"border-e": "border-inline-end-width:1px;",
|
|
1361
1290
|
"border-s-0": "border-inline-start-width:0px;",
|
|
@@ -1386,34 +1315,24 @@ const Ye = {
|
|
|
1386
1315
|
"rounded-s-full": "border-start-start-radius:9999px;border-end-start-radius:9999px;",
|
|
1387
1316
|
"rounded-e-full": "border-start-end-radius:9999px;border-end-end-radius:9999px;"
|
|
1388
1317
|
}), e;
|
|
1389
|
-
},
|
|
1318
|
+
}, ge = Ze();
|
|
1390
1319
|
function er(e) {
|
|
1391
|
-
return /^prose(?:-(sm|lg|xl|2xl))?$/.test(e) ? (
|
|
1320
|
+
return /^prose(?:-(sm|lg|xl|2xl))?$/.test(e) ? (Ke(e), "") : null;
|
|
1392
1321
|
}
|
|
1393
|
-
function
|
|
1394
|
-
return /^prose-([a-z0-9]+):(.+)$/.test(e) ? Je(
|
|
1395
|
-
e,
|
|
1396
|
-
me,
|
|
1397
|
-
fe,
|
|
1398
|
-
he,
|
|
1399
|
-
$e,
|
|
1400
|
-
be,
|
|
1401
|
-
xe,
|
|
1402
|
-
le
|
|
1403
|
-
) : null;
|
|
1322
|
+
function _e(e) {
|
|
1323
|
+
return /^prose-([a-z0-9]+):(.+)$/.test(e) ? Je(e, ge, me, fe, xe, he, be, se) : null;
|
|
1404
1324
|
}
|
|
1405
1325
|
function I(e, r) {
|
|
1406
|
-
let
|
|
1407
|
-
for (let
|
|
1408
|
-
const
|
|
1409
|
-
if (
|
|
1410
|
-
else if ((
|
|
1411
|
-
else if (
|
|
1412
|
-
return e.slice(0, a) + r + e.slice(a);
|
|
1326
|
+
let t = 0;
|
|
1327
|
+
for (let o = 0; o < e.length; o++) {
|
|
1328
|
+
const n = e[o];
|
|
1329
|
+
if (n === "[" || n === "(") t++;
|
|
1330
|
+
else if ((n === "]" || n === ")") && t > 0) t--;
|
|
1331
|
+
else if (t === 0 && (n === ">" || n === "+" || n === "~" || n === " ")) return e.slice(0, o) + r + e.slice(o);
|
|
1413
1332
|
}
|
|
1414
1333
|
return e + r;
|
|
1415
1334
|
}
|
|
1416
|
-
|
|
1335
|
+
var We = {
|
|
1417
1336
|
before: (e, r) => `${e}::before{${r}}`,
|
|
1418
1337
|
after: (e, r) => `${e}::after{${r}}`,
|
|
1419
1338
|
hover: (e, r) => `${I(e, ":hover")}{${r}}`,
|
|
@@ -1439,15 +1358,13 @@ const _e = {
|
|
|
1439
1358
|
"dark-class": (e, r) => `:host(.dark) ${e}{${r}}`,
|
|
1440
1359
|
rtl: (e, r) => `[dir=rtl] ${e}{${r}}`,
|
|
1441
1360
|
ltr: (e, r) => `[dir=ltr] ${e}{${r}}`,
|
|
1442
|
-
// Pseudo-element variants
|
|
1443
1361
|
placeholder: (e, r) => `${e}::placeholder{${r}}`,
|
|
1444
1362
|
file: (e, r) => `${e}::file-selector-button{${r}}`,
|
|
1445
1363
|
marker: (e, r) => `${e}::marker{${r}}`,
|
|
1446
1364
|
selection: (e, r) => `${e}::selection{${r}}`,
|
|
1447
|
-
// State variants
|
|
1448
1365
|
open: (e, r) => `${I(e, "[open]")}{${r}}`,
|
|
1449
1366
|
inert: (e, r) => `${I(e, "[inert]")}{${r}}`
|
|
1450
|
-
},
|
|
1367
|
+
}, ae = {
|
|
1451
1368
|
sm: "(min-width:640px)",
|
|
1452
1369
|
md: "(min-width:768px)",
|
|
1453
1370
|
lg: "(min-width:1024px)",
|
|
@@ -1470,7 +1387,7 @@ const _e = {
|
|
|
1470
1387
|
"5xl": "(min-width:64rem)",
|
|
1471
1388
|
"6xl": "(min-width:72rem)",
|
|
1472
1389
|
"7xl": "(min-width:80rem)"
|
|
1473
|
-
},
|
|
1390
|
+
}, ne = [
|
|
1474
1391
|
"sm",
|
|
1475
1392
|
"md",
|
|
1476
1393
|
"lg",
|
|
@@ -1480,7 +1397,7 @@ const _e = {
|
|
|
1480
1397
|
"motion-safe",
|
|
1481
1398
|
"print",
|
|
1482
1399
|
"forced-colors"
|
|
1483
|
-
],
|
|
1400
|
+
], pe = [
|
|
1484
1401
|
"xs",
|
|
1485
1402
|
"sm",
|
|
1486
1403
|
"md",
|
|
@@ -1493,48 +1410,45 @@ const _e = {
|
|
|
1493
1410
|
"6xl",
|
|
1494
1411
|
"7xl"
|
|
1495
1412
|
];
|
|
1496
|
-
function
|
|
1497
|
-
const r = e.startsWith("-"),
|
|
1498
|
-
if (
|
|
1499
|
-
const
|
|
1500
|
-
if (!
|
|
1501
|
-
if (
|
|
1502
|
-
const [
|
|
1503
|
-
if (Number.isNaN(
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
return ye[t].map((l) => `${l}:${u}%;`).join("");
|
|
1413
|
+
function me(e) {
|
|
1414
|
+
const r = e.startsWith("-"), t = r ? e.slice(1) : e, o = t.lastIndexOf("-");
|
|
1415
|
+
if (o === -1) return null;
|
|
1416
|
+
const n = t.slice(0, o), i = t.slice(o + 1);
|
|
1417
|
+
if (!ke[n]) return null;
|
|
1418
|
+
if (i.includes("/")) {
|
|
1419
|
+
const [d, h] = i.split("/").map((S) => parseFloat(S));
|
|
1420
|
+
if (Number.isNaN(d) || Number.isNaN(h) || h === 0) return null;
|
|
1421
|
+
const $ = d / h * 100;
|
|
1422
|
+
return ke[n].map((S) => `${S}:${$}%;`).join("");
|
|
1507
1423
|
}
|
|
1508
|
-
const
|
|
1509
|
-
if (Number.isNaN(
|
|
1510
|
-
const
|
|
1511
|
-
return
|
|
1424
|
+
const a = parseFloat(i);
|
|
1425
|
+
if (Number.isNaN(a)) return null;
|
|
1426
|
+
const c = r ? "-" : "";
|
|
1427
|
+
return ke[n].map((d) => `${d}:calc(${c}${J} * ${a});`).join("");
|
|
1512
1428
|
}
|
|
1513
|
-
function
|
|
1514
|
-
const r = e.startsWith("-"),
|
|
1515
|
-
if (!
|
|
1516
|
-
const [,
|
|
1517
|
-
if (
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
const f = u / l * 100, n = r ? "-" : "";
|
|
1524
|
-
return h ? `--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${n}${f}% * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${n}${f}% * var(--cer-space-x-reverse));}` : `--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${n}${f}% * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${n}${f}% * var(--cer-space-y-reverse));}`;
|
|
1429
|
+
function fe(e) {
|
|
1430
|
+
const r = e.startsWith("-"), t = (r ? e.slice(1) : e).match(/^space-(x|y)-(.+)$/);
|
|
1431
|
+
if (!t) return null;
|
|
1432
|
+
const [, o, n] = t, i = o === "x";
|
|
1433
|
+
if (n === "reverse") return i ? "--cer-space-x-reverse:1;" : "--cer-space-y-reverse:1;";
|
|
1434
|
+
if (n.includes("/")) {
|
|
1435
|
+
const [d, h] = n.split("/").map((W) => parseFloat(W));
|
|
1436
|
+
if (Number.isNaN(d) || Number.isNaN(h) || h === 0) return null;
|
|
1437
|
+
const $ = d / h * 100, S = r ? "-" : "";
|
|
1438
|
+
return i ? `--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${S}${$}% * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${S}${$}% * var(--cer-space-x-reverse));}` : `--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${S}${$}% * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${S}${$}% * var(--cer-space-y-reverse));}`;
|
|
1525
1439
|
}
|
|
1526
|
-
const
|
|
1527
|
-
if (Number.isNaN(
|
|
1528
|
-
const
|
|
1529
|
-
return
|
|
1440
|
+
const a = parseFloat(n);
|
|
1441
|
+
if (Number.isNaN(a)) return null;
|
|
1442
|
+
const c = `calc(${r ? "-" : ""}${J} * ${a})`;
|
|
1443
|
+
return i ? `--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));}`;
|
|
1530
1444
|
}
|
|
1531
|
-
function
|
|
1445
|
+
function ue(e) {
|
|
1532
1446
|
let r = e.replace("#", "");
|
|
1533
|
-
r.length === 3 && (r = r.split("").map((
|
|
1534
|
-
const
|
|
1535
|
-
return `${
|
|
1447
|
+
r.length === 3 && (r = r.split("").map((o) => o + o).join(""));
|
|
1448
|
+
const t = parseInt(r, 16);
|
|
1449
|
+
return `${t >> 16 & 255} ${t >> 8 & 255} ${t & 255}`;
|
|
1536
1450
|
}
|
|
1537
|
-
|
|
1451
|
+
var rr = /^(text-shadow|bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke|ring|divide)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/, tr = {
|
|
1538
1452
|
bg: "background-color",
|
|
1539
1453
|
decoration: "text-decoration-color",
|
|
1540
1454
|
text: "color",
|
|
@@ -1548,110 +1462,101 @@ const rr = /^(text-shadow|bg|text|border|decoration|shadow|outline|caret|accent|
|
|
|
1548
1462
|
function or(e) {
|
|
1549
1463
|
const r = rr.exec(e);
|
|
1550
1464
|
if (!r) return null;
|
|
1551
|
-
const [,
|
|
1552
|
-
if (!
|
|
1553
|
-
if (
|
|
1554
|
-
if (
|
|
1555
|
-
if (
|
|
1556
|
-
if (
|
|
1557
|
-
const
|
|
1558
|
-
return
|
|
1465
|
+
const [, t, o, n = "DEFAULT"] = r, i = re[o]?.[n];
|
|
1466
|
+
if (!i) return null;
|
|
1467
|
+
if (t === "shadow") return `--cer-shadow-color:${i};`;
|
|
1468
|
+
if (t === "ring") return `--cer-ring-color:${i};`;
|
|
1469
|
+
if (t === "divide") return `border-color:${i};`;
|
|
1470
|
+
if (t === "text-shadow") return `--cer-text-shadow-color:${i};`;
|
|
1471
|
+
const a = tr[t];
|
|
1472
|
+
return a ? `${a}:${i};` : null;
|
|
1559
1473
|
}
|
|
1560
1474
|
function nr(e) {
|
|
1561
1475
|
const r = e.indexOf("/");
|
|
1562
1476
|
if (r === -1) return { base: e };
|
|
1563
|
-
const
|
|
1564
|
-
return isNaN(
|
|
1477
|
+
const t = e.slice(0, r), o = e.slice(r + 1), n = parseInt(o, 10);
|
|
1478
|
+
return isNaN(n) || n < 0 || n > 100 ? { base: t } : {
|
|
1479
|
+
base: t,
|
|
1480
|
+
opacity: n / 100
|
|
1481
|
+
};
|
|
1565
1482
|
}
|
|
1566
|
-
function
|
|
1567
|
-
const { base: r, opacity:
|
|
1568
|
-
if (
|
|
1569
|
-
if (
|
|
1570
|
-
if (
|
|
1571
|
-
const
|
|
1572
|
-
if (
|
|
1573
|
-
const
|
|
1574
|
-
if (
|
|
1575
|
-
const
|
|
1576
|
-
|
|
1577
|
-
g
|
|
1578
|
-
);
|
|
1579
|
-
return `${f}:${y};__CE_COLOR_MIX_SPLIT__${f}:${d};`;
|
|
1483
|
+
function he(e) {
|
|
1484
|
+
const { base: r, opacity: t } = nr(e), o = or(r);
|
|
1485
|
+
if (o) {
|
|
1486
|
+
if (t !== void 0) {
|
|
1487
|
+
if (o.includes("var(")) {
|
|
1488
|
+
const a = /var\([^)]*\)/.exec(o);
|
|
1489
|
+
if (a) {
|
|
1490
|
+
const c = a[0], d = t * 100, h = `color-mix(in srgb, ${c} ${d}%, rgba(0 0 0 / 0) ${100 - d}%)`, $ = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(c), S = /^([a-z-]+):/.exec(o), W = S ? S[1] : "background-color";
|
|
1491
|
+
if ($) {
|
|
1492
|
+
const X = `rgb(${ue($[0])} / ${t})`;
|
|
1493
|
+
return `${W}:${c.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i, X)};__CE_COLOR_MIX_SPLIT__${W}:${h};`;
|
|
1580
1494
|
}
|
|
1581
|
-
return `${
|
|
1495
|
+
return `${W}:${h};`;
|
|
1582
1496
|
}
|
|
1583
1497
|
}
|
|
1584
|
-
const
|
|
1585
|
-
if (
|
|
1586
|
-
const
|
|
1587
|
-
return
|
|
1588
|
-
/#([0-9a-f]{6}|[0-9a-f]{3})/i,
|
|
1589
|
-
`rgb(${h} / ${c})`
|
|
1590
|
-
);
|
|
1498
|
+
const i = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(o);
|
|
1499
|
+
if (i) {
|
|
1500
|
+
const a = ue(i[0]);
|
|
1501
|
+
return o.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i, `rgb(${a} / ${t})`);
|
|
1591
1502
|
}
|
|
1592
1503
|
}
|
|
1593
|
-
return
|
|
1504
|
+
return o;
|
|
1594
1505
|
}
|
|
1595
|
-
const
|
|
1596
|
-
if (
|
|
1597
|
-
if (
|
|
1598
|
-
const
|
|
1599
|
-
if (
|
|
1600
|
-
const
|
|
1601
|
-
if (
|
|
1602
|
-
const
|
|
1603
|
-
|
|
1604
|
-
g
|
|
1605
|
-
);
|
|
1606
|
-
return `${f}:${y};__CE_COLOR_MIX_SPLIT__${f}:${d};`;
|
|
1506
|
+
const n = se(r);
|
|
1507
|
+
if (n && t !== void 0) {
|
|
1508
|
+
if (n.includes("var(")) {
|
|
1509
|
+
const a = /var\([^)]*\)/.exec(n);
|
|
1510
|
+
if (a) {
|
|
1511
|
+
const c = a[0], d = t * 100, h = `color-mix(in srgb, ${c} ${d}%, rgba(0 0 0 / 0) ${100 - d}%)`, $ = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(c), S = /^([a-z-]+):/.exec(n), W = S ? S[1] : null;
|
|
1512
|
+
if ($ && W) {
|
|
1513
|
+
const X = `rgb(${ue($[0])} / ${t})`;
|
|
1514
|
+
return `${W}:${c.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i, X)};__CE_COLOR_MIX_SPLIT__${W}:${h};`;
|
|
1607
1515
|
}
|
|
1608
|
-
return
|
|
1516
|
+
return n.replace(c, h);
|
|
1609
1517
|
}
|
|
1610
1518
|
}
|
|
1611
|
-
const
|
|
1612
|
-
if (
|
|
1613
|
-
const
|
|
1614
|
-
return
|
|
1615
|
-
/#([0-9a-f]{6}|[0-9a-f]{3})/i,
|
|
1616
|
-
`rgb(${h} / ${c})`
|
|
1617
|
-
);
|
|
1519
|
+
const i = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(n);
|
|
1520
|
+
if (i) {
|
|
1521
|
+
const a = ue(i[0]);
|
|
1522
|
+
return n.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i, `rgb(${a} / ${t})`);
|
|
1618
1523
|
}
|
|
1619
1524
|
}
|
|
1620
|
-
return
|
|
1525
|
+
return n;
|
|
1621
1526
|
}
|
|
1622
|
-
function
|
|
1527
|
+
function be(e) {
|
|
1623
1528
|
const r = /^(from|to|via)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);
|
|
1624
1529
|
if (!r) return null;
|
|
1625
|
-
const [,
|
|
1626
|
-
if (!
|
|
1627
|
-
switch (
|
|
1530
|
+
const [, t, o, n = "DEFAULT"] = r, i = re[o]?.[n];
|
|
1531
|
+
if (!i) return null;
|
|
1532
|
+
switch (t) {
|
|
1628
1533
|
case "from":
|
|
1629
|
-
return `--cer-gradient-from:${
|
|
1534
|
+
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);`;
|
|
1630
1535
|
case "to":
|
|
1631
|
-
return `--cer-gradient-to:${
|
|
1536
|
+
return `--cer-gradient-to:${i} var(--cer-gradient-to-position);`;
|
|
1632
1537
|
case "via":
|
|
1633
|
-
return `--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), ${
|
|
1538
|
+
return `--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), ${i} var(--cer-gradient-via-position), var(--cer-gradient-to);`;
|
|
1634
1539
|
default:
|
|
1635
1540
|
return null;
|
|
1636
1541
|
}
|
|
1637
1542
|
}
|
|
1638
|
-
function
|
|
1543
|
+
function xe(e) {
|
|
1639
1544
|
const r = /^opacity-(\d{1,3})$/.exec(e);
|
|
1640
1545
|
if (!r) return null;
|
|
1641
|
-
const
|
|
1642
|
-
return
|
|
1546
|
+
const t = parseInt(r[1], 10);
|
|
1547
|
+
return t < 0 || t > 100 ? null : `opacity:${t / 100};`;
|
|
1643
1548
|
}
|
|
1644
|
-
function
|
|
1549
|
+
function se(e) {
|
|
1645
1550
|
if (e.startsWith("[") && e.endsWith("]") && !e.includes("-[")) {
|
|
1646
|
-
const
|
|
1647
|
-
if (
|
|
1648
|
-
const
|
|
1649
|
-
let
|
|
1650
|
-
return /^[a-zA-Z][a-zA-Z0-9-]*$/.test(
|
|
1551
|
+
const a = e.slice(1, -1).trim(), c = a.indexOf(":");
|
|
1552
|
+
if (c === -1) return null;
|
|
1553
|
+
const d = a.slice(0, c).trim();
|
|
1554
|
+
let h = a.slice(c + 1).trim();
|
|
1555
|
+
return /^[a-zA-Z][a-zA-Z0-9-]*$/.test(d) ? (h = h.replace(/_/g, " "), h = h.replace(/url\('\s*([^']*?)\s*'\)/g, 'url("$1")'), h = h.replace(/^'([^']*)'$/g, '"$1"'), `${d}:${h};`) : null;
|
|
1651
1556
|
}
|
|
1652
1557
|
const r = e.indexOf("-[");
|
|
1653
1558
|
if (r <= 0 || !e.endsWith("]")) return null;
|
|
1654
|
-
const
|
|
1559
|
+
const t = e.slice(0, r), o = e.slice(r + 2, -1).replace(/_/g, " "), n = {
|
|
1655
1560
|
bg: "background-color",
|
|
1656
1561
|
shadow: "box-shadow",
|
|
1657
1562
|
p: "padding",
|
|
@@ -1691,37 +1596,37 @@ function le(e) {
|
|
|
1691
1596
|
z: "z-index",
|
|
1692
1597
|
opacity: "opacity"
|
|
1693
1598
|
};
|
|
1694
|
-
if (
|
|
1695
|
-
return /^\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex)$/.test(
|
|
1696
|
-
if (
|
|
1697
|
-
if (
|
|
1698
|
-
if (
|
|
1699
|
-
if (
|
|
1700
|
-
const
|
|
1701
|
-
return
|
|
1599
|
+
if (t === "text")
|
|
1600
|
+
return /^\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex)$/.test(o) ? `font-size:${o};` : `color:${o};`;
|
|
1601
|
+
if (t === "rotate") return `transform:rotate(${o});`;
|
|
1602
|
+
if (t === "scale") return `transform:scale(${o});`;
|
|
1603
|
+
if (t === "translate-x") return `transform:translateX(${o});`;
|
|
1604
|
+
if (t === "translate-y") return `transform:translateY(${o});`;
|
|
1605
|
+
const i = n[t] ?? t.replace(/_/g, "-");
|
|
1606
|
+
return i && o ? `${i}:${o};` : null;
|
|
1702
1607
|
}
|
|
1703
1608
|
function Ee(e) {
|
|
1704
1609
|
if (e.startsWith("[") && e.endsWith("]")) {
|
|
1705
|
-
const
|
|
1706
|
-
return
|
|
1610
|
+
const t = e.slice(1, -1);
|
|
1611
|
+
return t.includes("&") ? t : e;
|
|
1707
1612
|
}
|
|
1708
1613
|
const r = e.indexOf("-[");
|
|
1709
1614
|
if (r > 0 && e.endsWith("]")) {
|
|
1710
|
-
const
|
|
1711
|
-
return
|
|
1615
|
+
const t = e.slice(r + 2, -1).replace(/_/g, "-");
|
|
1616
|
+
return t.includes("&") ? t : e.replace(/_/g, "-");
|
|
1712
1617
|
}
|
|
1713
1618
|
return null;
|
|
1714
1619
|
}
|
|
1715
|
-
function
|
|
1620
|
+
function ar(e) {
|
|
1716
1621
|
const r = [];
|
|
1717
|
-
let
|
|
1718
|
-
for (Pe.lastIndex = 0;
|
|
1719
|
-
const
|
|
1720
|
-
|
|
1622
|
+
let t;
|
|
1623
|
+
for (Pe.lastIndex = 0; t = Pe.exec(e); ) {
|
|
1624
|
+
const o = t[2].split(/\s+/).filter(Boolean);
|
|
1625
|
+
o.length && r.push(...o);
|
|
1721
1626
|
}
|
|
1722
1627
|
return r;
|
|
1723
1628
|
}
|
|
1724
|
-
|
|
1629
|
+
var Pe = /class\s*=\s*(['"])([\s\S]*?)\1/g, sr = {
|
|
1725
1630
|
sm: 640,
|
|
1726
1631
|
md: 768,
|
|
1727
1632
|
lg: 1024,
|
|
@@ -1740,51 +1645,51 @@ const Pe = /class\s*=\s*(['"])([\s\S]*?)\1/g, ar = {
|
|
|
1740
1645
|
"6xl": 1152,
|
|
1741
1646
|
"7xl": 1280
|
|
1742
1647
|
};
|
|
1743
|
-
function
|
|
1744
|
-
for (const [r,
|
|
1745
|
-
if (e.includes(`@media ${ce[r]}`)) return c;
|
|
1648
|
+
function Me(e) {
|
|
1649
|
+
for (const [r, t] of Object.entries(sr)) if (e.includes(`@media ${ae[r]}`)) return t;
|
|
1746
1650
|
return -1;
|
|
1747
1651
|
}
|
|
1748
|
-
function
|
|
1749
|
-
for (const [r,
|
|
1750
|
-
if (e.includes(`@container ${Ve[r]}`)) return c;
|
|
1652
|
+
function Re(e) {
|
|
1653
|
+
for (const [r, t] of Object.entries(ir)) if (e.includes(`@container ${Ve[r]}`)) return t;
|
|
1751
1654
|
if (e.includes("@container (min-width:")) {
|
|
1752
|
-
const r = /@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(
|
|
1753
|
-
e
|
|
1754
|
-
);
|
|
1655
|
+
const r = /@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(e);
|
|
1755
1656
|
if (r) {
|
|
1756
|
-
const
|
|
1757
|
-
return
|
|
1657
|
+
const t = parseFloat(r[1]), o = r[2];
|
|
1658
|
+
return o === "rem" || o === "em" ? t * 16 : t;
|
|
1758
1659
|
}
|
|
1759
1660
|
}
|
|
1760
1661
|
return -1;
|
|
1761
1662
|
}
|
|
1762
|
-
|
|
1663
|
+
var D = /* @__PURE__ */ new Map(), Ie = 1e3;
|
|
1763
1664
|
function cr(e) {
|
|
1764
|
-
const r =
|
|
1665
|
+
const r = ar(e);
|
|
1765
1666
|
if (!r.length) return "";
|
|
1766
|
-
const
|
|
1767
|
-
if (
|
|
1768
|
-
return
|
|
1769
|
-
const
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
)
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1667
|
+
const t = new Set(r), o = Array.from(t).sort().join("\0"), n = D.get(o);
|
|
1668
|
+
if (n !== void 0)
|
|
1669
|
+
return D.delete(o), D.set(o, n), n;
|
|
1670
|
+
const i = [
|
|
1671
|
+
[],
|
|
1672
|
+
[],
|
|
1673
|
+
[],
|
|
1674
|
+
[],
|
|
1675
|
+
[]
|
|
1676
|
+
], a = {}, c = (g, p = !1) => {
|
|
1677
|
+
const b = p ? `dark|${g}` : g;
|
|
1678
|
+
if (b in a) return a[b];
|
|
1679
|
+
const x = S(g, p);
|
|
1680
|
+
return a[b] = x, x;
|
|
1681
|
+
}, d = (g) => {
|
|
1682
|
+
const p = g.some((w) => ne.includes(w)), b = g.some((w) => w.startsWith("@") && (pe.includes(w.slice(1)) || w.match(/^@\[.+\]$/))), x = g.includes("dark");
|
|
1683
|
+
return g.length ? !p && !x && !b ? 1 : x && (p || b) ? 4 : x ? 3 : 2 : 0;
|
|
1684
|
+
}, h = (g) => {
|
|
1685
|
+
const p = [];
|
|
1686
|
+
let b = "", x = 0;
|
|
1687
|
+
for (let w = 0; w < g.length; w++) {
|
|
1688
|
+
const k = g[w];
|
|
1689
|
+
k === "[" || k === "(" ? x++ : (k === "]" || k === ")") && x--, k === ":" && x === 0 ? (p.push(b), b = "") : b += k;
|
|
1785
1690
|
}
|
|
1786
|
-
return
|
|
1787
|
-
},
|
|
1691
|
+
return b && p.push(b), p;
|
|
1692
|
+
}, $ = {
|
|
1788
1693
|
hover: ":hover",
|
|
1789
1694
|
focus: ":focus",
|
|
1790
1695
|
active: ":active",
|
|
@@ -1797,206 +1702,157 @@ function cr(e) {
|
|
|
1797
1702
|
even: ":nth-child(even)",
|
|
1798
1703
|
"focus-within": ":focus-within",
|
|
1799
1704
|
"focus-visible": ":focus-visible"
|
|
1800
|
-
},
|
|
1801
|
-
const
|
|
1802
|
-
let
|
|
1803
|
-
for (const
|
|
1804
|
-
let
|
|
1805
|
-
if (
|
|
1806
|
-
|
|
1705
|
+
}, S = (g, p = !1) => {
|
|
1706
|
+
const b = h(g);
|
|
1707
|
+
let x = "", w = !1;
|
|
1708
|
+
for (const s of b) {
|
|
1709
|
+
let l = s;
|
|
1710
|
+
if (l.startsWith("!") && (w = !0, l = l.slice(1)), l.endsWith("!") && (w = !0, l = l.slice(0, -1)), !(l.startsWith("data-[") && l.endsWith("]") || l.startsWith("has-[") && l.endsWith("]") || l.startsWith("not-[") && l.endsWith("]") || l.startsWith("in-[") && l.endsWith("]") || l.startsWith("supports-[") && l.endsWith("]") || l === "starting") && (ge[l] || me(l) || fe(l) || xe(l) || he(l) || be(l) || se(l))) {
|
|
1711
|
+
x = s;
|
|
1807
1712
|
break;
|
|
1808
1713
|
}
|
|
1809
1714
|
}
|
|
1810
|
-
if (!
|
|
1811
|
-
const
|
|
1812
|
-
if (!
|
|
1813
|
-
const
|
|
1814
|
-
let
|
|
1815
|
-
|
|
1816
|
-
const
|
|
1817
|
-
let
|
|
1818
|
-
const
|
|
1819
|
-
for (const
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
if (o === "dark" || ie.includes(o) || o.startsWith("@") && (ue.includes(o.slice(1)) || o.match(/^@\[.+\]$/)))
|
|
1830
|
-
continue;
|
|
1831
|
-
if (o.startsWith("data-[") && o.endsWith("]")) {
|
|
1832
|
-
const $ = o.slice(6, -1), P = $.includes("=") ? "[data-" + $.replace(/^([^=]+)=(.+)$/, '$1="$2"') + "]" : "[data-" + $ + "]";
|
|
1833
|
-
R.push(P);
|
|
1715
|
+
if (!x) return null;
|
|
1716
|
+
const k = x.replace(/^!/, "").replace(/!$/, ""), F = ge[k] ?? me(k) ?? fe(k) ?? xe(k) ?? he(k) ?? be(k) ?? se(k);
|
|
1717
|
+
if (!F) return null;
|
|
1718
|
+
const le = b.indexOf(x);
|
|
1719
|
+
let E = le >= 0 ? b.slice(0, le) : [];
|
|
1720
|
+
p && (E = E.filter((s) => s !== "dark"));
|
|
1721
|
+
const P = oe(g), z = w ? F.replace(/;/g, " !important;") : F, y = "__SUBJECT__";
|
|
1722
|
+
let u = y;
|
|
1723
|
+
const V = [];
|
|
1724
|
+
for (const s of E) s.startsWith("group-") ? (u = `.group:${s.slice(6)} ${u}`, V.push(s)) : s.startsWith("peer-") && (u = u.replace(y, `.peer:${s.slice(5)}~${y}`), V.push(s));
|
|
1725
|
+
E = E.filter((s) => !V.includes(s));
|
|
1726
|
+
const q = [], de = [];
|
|
1727
|
+
let T = null, K = !1;
|
|
1728
|
+
const H = [];
|
|
1729
|
+
for (const s of E) {
|
|
1730
|
+
if (s === "dark" || ne.includes(s) || s.startsWith("@") && (pe.includes(s.slice(1)) || s.match(/^@\[.+\]$/))) continue;
|
|
1731
|
+
if (s.startsWith("data-[") && s.endsWith("]")) {
|
|
1732
|
+
const m = s.slice(6, -1), _ = m.includes("=") ? "[data-" + m.replace(/^([^=]+)=(.+)$/, '$1="$2"') + "]" : "[data-" + m + "]";
|
|
1733
|
+
q.push(_);
|
|
1834
1734
|
continue;
|
|
1835
1735
|
}
|
|
1836
|
-
if (
|
|
1837
|
-
const
|
|
1838
|
-
|
|
1736
|
+
if (s.startsWith("has-[") && s.endsWith("]")) {
|
|
1737
|
+
const m = s.slice(5, -1).replace(/_/g, " ");
|
|
1738
|
+
q.push(`:has(${m})`);
|
|
1839
1739
|
continue;
|
|
1840
1740
|
}
|
|
1841
|
-
if (
|
|
1842
|
-
const
|
|
1843
|
-
|
|
1741
|
+
if (s.startsWith("not-[") && s.endsWith("]")) {
|
|
1742
|
+
const m = s.slice(5, -1).replace(/_/g, " ");
|
|
1743
|
+
q.push(`:not(${m})`);
|
|
1844
1744
|
continue;
|
|
1845
1745
|
}
|
|
1846
|
-
if (
|
|
1847
|
-
|
|
1746
|
+
if (s.startsWith("in-[") && s.endsWith("]")) {
|
|
1747
|
+
u = ":is(" + s.slice(4, -1).replace(/_/g, " ") + ") " + u;
|
|
1848
1748
|
continue;
|
|
1849
1749
|
}
|
|
1850
|
-
if (
|
|
1851
|
-
|
|
1750
|
+
if (s === "starting") {
|
|
1751
|
+
K = !0;
|
|
1852
1752
|
continue;
|
|
1853
1753
|
}
|
|
1854
|
-
if (
|
|
1855
|
-
|
|
1754
|
+
if (s.startsWith("supports-[") && s.endsWith("]")) {
|
|
1755
|
+
H.push(s);
|
|
1856
1756
|
continue;
|
|
1857
1757
|
}
|
|
1858
|
-
const
|
|
1859
|
-
if (
|
|
1860
|
-
|
|
1758
|
+
const l = Ee(s);
|
|
1759
|
+
if (l) {
|
|
1760
|
+
T = l;
|
|
1861
1761
|
continue;
|
|
1862
1762
|
}
|
|
1863
|
-
const
|
|
1864
|
-
if (
|
|
1865
|
-
|
|
1763
|
+
const O = $[s];
|
|
1764
|
+
if (O) {
|
|
1765
|
+
T ? de.push(O) : q.push(O);
|
|
1866
1766
|
continue;
|
|
1867
1767
|
}
|
|
1868
|
-
const
|
|
1869
|
-
typeof
|
|
1768
|
+
const R = We[s];
|
|
1769
|
+
typeof R == "function" && (u = R(u, z).split("{")[0]);
|
|
1870
1770
|
}
|
|
1871
|
-
const
|
|
1872
|
-
function
|
|
1873
|
-
if (!
|
|
1874
|
-
let
|
|
1875
|
-
if (
|
|
1876
|
-
let
|
|
1877
|
-
for (;
|
|
1878
|
-
for (;
|
|
1879
|
-
const
|
|
1880
|
-
if (
|
|
1881
|
-
return o.slice(0, $) + p + o.slice($);
|
|
1771
|
+
const G = q.join(""), L = de.join("");
|
|
1772
|
+
function Y(s, l) {
|
|
1773
|
+
if (!l) return s;
|
|
1774
|
+
let O = 0, R = 0;
|
|
1775
|
+
if (s.length && (s[0] === ">" || s[0] === "+" || s[0] === "~" || s[0] === " ")) {
|
|
1776
|
+
let m = 1;
|
|
1777
|
+
for (; m < s.length && s[m] === " "; ) m++;
|
|
1778
|
+
for (; m < s.length; m++) {
|
|
1779
|
+
const _ = s[m];
|
|
1780
|
+
if (_ === "[" ? O++ : _ === "]" && O > 0 ? O-- : _ === "(" ? R++ : _ === ")" && R > 0 && R--, O === 0 && R === 0 && (s[m] === ">" || s[m] === "+" || s[m] === "~" || s[m] === " ")) return s.slice(0, m) + l + s.slice(m);
|
|
1882
1781
|
}
|
|
1883
|
-
return
|
|
1782
|
+
return s + l;
|
|
1884
1783
|
}
|
|
1885
|
-
for (let
|
|
1886
|
-
const
|
|
1887
|
-
if (
|
|
1888
|
-
return o.slice(0, $) + p + o.slice($);
|
|
1784
|
+
for (let m = 0; m < s.length; m++) {
|
|
1785
|
+
const _ = s[m];
|
|
1786
|
+
if (_ === "[" ? O++ : _ === "]" && O > 0 ? O-- : _ === "(" ? R++ : _ === ")" && R > 0 && R--, O === 0 && R === 0 && (_ === ">" || _ === "+" || _ === "~" || _ === " ")) return s.slice(0, m) + l + s.slice(m);
|
|
1889
1787
|
}
|
|
1890
|
-
return
|
|
1788
|
+
return s + l;
|
|
1891
1789
|
}
|
|
1892
|
-
if (
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
p + O + L + C
|
|
1899
|
-
);
|
|
1900
|
-
else {
|
|
1901
|
-
const $ = ne(C, L);
|
|
1902
|
-
m = m.replace(
|
|
1903
|
-
w,
|
|
1904
|
-
p + O + $
|
|
1905
|
-
);
|
|
1906
|
-
}
|
|
1907
|
-
} else
|
|
1908
|
-
m = m.replace(
|
|
1909
|
-
w,
|
|
1910
|
-
`${A}${w + oe}`
|
|
1911
|
-
), L && (m = m.replace(w, `${w}${L}`));
|
|
1912
|
-
else
|
|
1913
|
-
m = m.replace(
|
|
1914
|
-
w,
|
|
1915
|
-
w + oe + L
|
|
1916
|
-
);
|
|
1917
|
-
m = m.replace(new RegExp(w, "g"), ke);
|
|
1918
|
-
const ee = "__CE_COLOR_MIX_SPLIT__", pe = Y.includes(ee) ? Y.split(ee).map((o) => `${m}{${o}}`) : [`${m}{${Y}}`], V = T.filter(
|
|
1919
|
-
(o) => ie.includes(o)
|
|
1920
|
-
), D = T.filter(
|
|
1921
|
-
(o) => o.startsWith("@") && (ue.includes(o.slice(1)) || o.match(/^@\[.+\]$/))
|
|
1922
|
-
), Z = V.length ? V[V.length - 1] : null, v = D.length ? D[D.length - 1] : null, se = T.includes("dark"), K = H.disableVariants ?? [];
|
|
1923
|
-
if (K.length > 0 && (K.includes("dark") && se || K.includes("responsive") && V.length > 0 || K.includes("container") && D.length > 0 || K.includes("motion") && T.some((o) => o === "motion-reduce" || o === "motion-safe") || K.includes("print") && T.includes("print")))
|
|
1924
|
-
return null;
|
|
1925
|
-
let N = "", E = "";
|
|
1926
|
-
if (se && Z ? N = `@media (prefers-color-scheme: dark) and ${ce[Z]}` : se ? N = "@media (prefers-color-scheme: dark)" : Z && (N = `@media ${ce[Z]}`), v)
|
|
1927
|
-
if (v.startsWith("@[") && v.endsWith("]")) {
|
|
1928
|
-
const o = v.slice(2, -1);
|
|
1929
|
-
if (!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(o))
|
|
1930
|
-
return null;
|
|
1931
|
-
E = `@container (min-width:${o})`;
|
|
1932
|
-
} else {
|
|
1933
|
-
const o = v.slice(1);
|
|
1934
|
-
E = `@container ${Ve[o] || `(min-width:${o})`}`;
|
|
1790
|
+
if (T) if (T.includes("&")) {
|
|
1791
|
+
const s = T.indexOf("&"), l = T.slice(0, s), O = T.slice(s + 1), R = y + G;
|
|
1792
|
+
if (q.length === 0) u = u.replace(y, l + R + L + O);
|
|
1793
|
+
else {
|
|
1794
|
+
const m = Y(O, L);
|
|
1795
|
+
u = u.replace(y, l + R + m);
|
|
1935
1796
|
}
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1797
|
+
} else
|
|
1798
|
+
u = u.replace(y, `${T}${y + G}`), L && (u = u.replace(y, `${y}${L}`));
|
|
1799
|
+
else u = u.replace(y, y + G + L);
|
|
1800
|
+
u = u.replace(new RegExp(y, "g"), P);
|
|
1801
|
+
const te = "__CE_COLOR_MIX_SPLIT__", v = z.includes(te) ? z.split(te).map((s) => `${u}{${s}}`) : [`${u}{${z}}`], Q = E.filter((s) => ne.includes(s)), Z = E.filter((s) => s.startsWith("@") && (pe.includes(s.slice(1)) || s.match(/^@\[.+\]$/))), ee = Q.length ? Q[Q.length - 1] : null, C = Z.length ? Z[Z.length - 1] : null, M = E.includes("dark"), j = U.disableVariants ?? [];
|
|
1802
|
+
if (j.length > 0 && (j.includes("dark") && M || j.includes("responsive") && Q.length > 0 || j.includes("container") && Z.length > 0 || j.includes("motion") && E.some((s) => s === "motion-reduce" || s === "motion-safe") || j.includes("print") && E.includes("print")))
|
|
1803
|
+
return null;
|
|
1804
|
+
let f = "", A = "";
|
|
1805
|
+
if (M && ee ? f = `@media (prefers-color-scheme: dark) and ${ae[ee]}` : M ? f = "@media (prefers-color-scheme: dark)" : ee && (f = `@media ${ae[ee]}`), C) if (C.startsWith("@[") && C.endsWith("]")) {
|
|
1806
|
+
const s = C.slice(2, -1);
|
|
1807
|
+
if (!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(s)) return null;
|
|
1808
|
+
A = `@container (min-width:${s})`;
|
|
1809
|
+
} else {
|
|
1810
|
+
const s = C.slice(1);
|
|
1811
|
+
A = `@container ${Ve[s] || `(min-width:${s})`}`;
|
|
1940
1812
|
}
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1813
|
+
let B = "";
|
|
1814
|
+
if (H.length > 0) {
|
|
1815
|
+
const s = H[H.length - 1].slice(10, -1).replace(/_/g, " ");
|
|
1816
|
+
B = `@supports ${s.startsWith("not(") || s.startsWith("selector(") || s.startsWith("(") ? s : `(${s})`}`;
|
|
1817
|
+
}
|
|
1818
|
+
const ve = (s) => {
|
|
1819
|
+
let l = s;
|
|
1820
|
+
return K && (l = `@starting-style{${l}}`), B && (l = `${B}{${l}}`), f && A ? `${f}${A}{${l}}` : f ? `${f}{${l}}` : A ? `${A}{${l}}` : l;
|
|
1944
1821
|
};
|
|
1945
|
-
return
|
|
1822
|
+
return v.map(ve).join("");
|
|
1946
1823
|
};
|
|
1947
|
-
for (const
|
|
1948
|
-
const
|
|
1949
|
-
if (er(
|
|
1950
|
-
if (
|
|
1951
|
-
s[0].push(`${ae(b)}{}`);
|
|
1824
|
+
for (const g of t) {
|
|
1825
|
+
const p = h(g), b = p.slice(0, -1), x = p[p.length - 1];
|
|
1826
|
+
if (er(x) !== null) {
|
|
1827
|
+
if (b.length === 0) i[0].push(`${oe(g)}{}`);
|
|
1952
1828
|
else {
|
|
1953
|
-
const
|
|
1954
|
-
if (!
|
|
1955
|
-
const
|
|
1956
|
-
let
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
);
|
|
1960
|
-
const J = S.filter(
|
|
1961
|
-
(X) => ie.includes(X)
|
|
1962
|
-
);
|
|
1963
|
-
if (J.length > 0) {
|
|
1964
|
-
const X = J[J.length - 1];
|
|
1965
|
-
R = `${`@media ${ce[X]}`}{${R}}`;
|
|
1966
|
-
}
|
|
1967
|
-
S.includes("dark") && (R = `@media (prefers-color-scheme: dark){${R}}`);
|
|
1968
|
-
const A = i(S);
|
|
1969
|
-
s[A].push(R);
|
|
1829
|
+
const P = Te(x);
|
|
1830
|
+
if (!P) continue;
|
|
1831
|
+
const z = oe(g), y = oe(x);
|
|
1832
|
+
let u = P.replace(new RegExp(Ne(y), "g"), z);
|
|
1833
|
+
const V = b.filter((q) => ne.includes(q));
|
|
1834
|
+
V.length > 0 && (u = `${`@media ${ae[V[V.length - 1]]}`}{${u}}`), b.includes("dark") && (u = `@media (prefers-color-scheme: dark){${u}}`), i[d(b)].push(u);
|
|
1970
1835
|
}
|
|
1971
1836
|
continue;
|
|
1972
1837
|
}
|
|
1973
|
-
let
|
|
1974
|
-
for (let
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
z = w;
|
|
1978
|
-
break;
|
|
1979
|
-
}
|
|
1838
|
+
let w = -1;
|
|
1839
|
+
for (let P = p.length - 1; P >= 0; P--) if (_e(p.slice(P).join(":"))) {
|
|
1840
|
+
w = P;
|
|
1841
|
+
break;
|
|
1980
1842
|
}
|
|
1981
|
-
if (
|
|
1982
|
-
const
|
|
1983
|
-
if (!
|
|
1984
|
-
if (
|
|
1985
|
-
|
|
1843
|
+
if (w >= 0) {
|
|
1844
|
+
const P = p.slice(w).join(":"), z = p.slice(0, w), y = _e(P);
|
|
1845
|
+
if (!y) continue;
|
|
1846
|
+
if (z.length === 0) {
|
|
1847
|
+
i[0].push(y);
|
|
1986
1848
|
continue;
|
|
1987
1849
|
}
|
|
1988
|
-
const
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
"g"
|
|
1992
|
-
),
|
|
1993
|
-
`.${R}`
|
|
1994
|
-
), X = /(.+?)\s+(.+?)\{([^}]+)\}/g, Q = [...A.matchAll(X)];
|
|
1995
|
-
if (Q.length === 0) {
|
|
1996
|
-
s[0].push(F);
|
|
1850
|
+
const u = ye(g), V = ye(P), q = [...y.replace(new RegExp(`\\.${V.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`, "g"), `.${u}`).matchAll(/(.+?)\s+(.+?)\{([^}]+)\}/g)];
|
|
1851
|
+
if (q.length === 0) {
|
|
1852
|
+
i[0].push(y);
|
|
1997
1853
|
continue;
|
|
1998
1854
|
}
|
|
1999
|
-
const
|
|
1855
|
+
const de = d(z), T = {
|
|
2000
1856
|
hover: ":hover",
|
|
2001
1857
|
focus: ":focus",
|
|
2002
1858
|
active: ":active",
|
|
@@ -2009,42 +1865,38 @@ function cr(e) {
|
|
|
2009
1865
|
even: ":nth-child(even)",
|
|
2010
1866
|
"focus-within": ":focus-within",
|
|
2011
1867
|
"focus-visible": ":focus-visible"
|
|
2012
|
-
},
|
|
2013
|
-
let
|
|
2014
|
-
for (const v of
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
const o = _.slice(5);
|
|
2025
|
-
E = `.peer${L[o] || `:${o}`}~${E}`;
|
|
2026
|
-
}
|
|
2027
|
-
if (ee.length > 0) {
|
|
2028
|
-
const _ = ee.map((o) => L[o] || `:${o}`).join("");
|
|
2029
|
-
E = `${E}${_}`;
|
|
1868
|
+
}, K = [], H = [], G = [], L = [], Y = [];
|
|
1869
|
+
let te = !1;
|
|
1870
|
+
for (const v of z) v.startsWith("group-") || v.startsWith("peer-") ? K.push(v) : v === "dark" || v === "dark-class" ? te = !0 : ne.includes(v) ? L.push(v) : v.startsWith("@") && (pe.includes(v.slice(1)) || v.match(/^@\[.+\]$/)) ? Y.push(v) : v.startsWith("[") && v.endsWith("]") ? G.push(v) : (T[v] || We[v]) && H.push(v);
|
|
1871
|
+
for (const v of q) {
|
|
1872
|
+
const [, Q, Z, ee] = v;
|
|
1873
|
+
let C = `${Q} ${Z}`;
|
|
1874
|
+
for (const j of K) if (j.startsWith("group-")) {
|
|
1875
|
+
const f = j.slice(6);
|
|
1876
|
+
C = `.group${T[f] || `:${f}`} ${C}`;
|
|
1877
|
+
} else if (j.startsWith("peer-")) {
|
|
1878
|
+
const f = j.slice(5);
|
|
1879
|
+
C = `.peer${T[f] || `:${f}`}~${C}`;
|
|
2030
1880
|
}
|
|
2031
|
-
|
|
2032
|
-
const
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
1881
|
+
if (H.length > 0) {
|
|
1882
|
+
const j = H.map((f) => T[f] || `:${f}`).join("");
|
|
1883
|
+
C = `${C}${j}`;
|
|
1884
|
+
}
|
|
1885
|
+
for (const j of G) {
|
|
1886
|
+
const f = Ee(j);
|
|
1887
|
+
if (f && f.includes("&")) {
|
|
1888
|
+
const A = f.indexOf("&"), B = f.slice(0, A), ve = f.slice(A + 1);
|
|
1889
|
+
C = `${B}${C}${ve}`;
|
|
2036
1890
|
}
|
|
2037
1891
|
}
|
|
2038
|
-
let M = `${
|
|
2039
|
-
if (
|
|
2040
|
-
const
|
|
2041
|
-
if (
|
|
2042
|
-
const
|
|
2043
|
-
/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(
|
|
2044
|
-
o
|
|
2045
|
-
) && (M = `@container (min-width:${o}){${M}}`);
|
|
1892
|
+
let M = `${C}{${ee}}`;
|
|
1893
|
+
if (te && (M = `@media (prefers-color-scheme: dark){${M}}`), Y.length > 0) {
|
|
1894
|
+
const j = Y[Y.length - 1];
|
|
1895
|
+
if (j.startsWith("@[") && j.endsWith("]")) {
|
|
1896
|
+
const f = j.slice(2, -1);
|
|
1897
|
+
/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(f) && (M = `@container (min-width:${f}){${M}}`);
|
|
2046
1898
|
} else {
|
|
2047
|
-
const
|
|
1899
|
+
const f = j.slice(1), A = {
|
|
2048
1900
|
xs: "20rem",
|
|
2049
1901
|
sm: "24rem",
|
|
2050
1902
|
md: "28rem",
|
|
@@ -2056,69 +1908,65 @@ function cr(e) {
|
|
|
2056
1908
|
"5xl": "64rem",
|
|
2057
1909
|
"6xl": "72rem",
|
|
2058
1910
|
"7xl": "80rem"
|
|
2059
|
-
}[
|
|
2060
|
-
if (
|
|
2061
|
-
const
|
|
2062
|
-
M =
|
|
1911
|
+
}[f];
|
|
1912
|
+
if (A) {
|
|
1913
|
+
const B = g.match(/@([^/]+)\//)?.[1] || "";
|
|
1914
|
+
M = B ? `@container ${B} (min-width: ${A}){${M}}` : `@container (min-width: ${A}){${M}}`;
|
|
2063
1915
|
}
|
|
2064
1916
|
}
|
|
2065
1917
|
}
|
|
2066
|
-
|
|
2067
|
-
const _ = V[V.length - 1];
|
|
2068
|
-
M = `${`@media ${ce[_]}`}{${M}}`;
|
|
2069
|
-
}
|
|
2070
|
-
s[oe].push(M);
|
|
1918
|
+
L.length > 0 && (M = `${`@media ${ae[L[L.length - 1]]}`}{${M}}`), i[de].push(M);
|
|
2071
1919
|
}
|
|
2072
1920
|
continue;
|
|
2073
1921
|
}
|
|
2074
|
-
const
|
|
2075
|
-
const
|
|
2076
|
-
return
|
|
1922
|
+
const k = p.find((P) => {
|
|
1923
|
+
const z = P.replace(/^!/, "").replace(/!$/, "");
|
|
1924
|
+
return ge[z] || me(z) || fe(z) || xe(z) || he(z) || be(z) || se(z);
|
|
2077
1925
|
});
|
|
2078
|
-
if (!
|
|
2079
|
-
const
|
|
2080
|
-
|
|
1926
|
+
if (!k) continue;
|
|
1927
|
+
const F = p.indexOf(k), le = d(F >= 0 ? p.slice(0, F) : []), E = c(g);
|
|
1928
|
+
E && i[le].push(E);
|
|
2081
1929
|
}
|
|
2082
|
-
const
|
|
2083
|
-
for (const
|
|
2084
|
-
if (
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
return j >= 0 && W >= 0 && j !== W ? j - W : z >= 0 && q >= 0 && z !== q ? z - q : 0;
|
|
1930
|
+
const W = /^(from|via|to)-[a-z]+-?\d{2,3}?$/, X = i.flat().join("");
|
|
1931
|
+
for (const g of t) if (W.test(g)) {
|
|
1932
|
+
if (X.includes(oe(g))) continue;
|
|
1933
|
+
const p = c(g);
|
|
1934
|
+
p && i[0].push(p);
|
|
1935
|
+
}
|
|
1936
|
+
const ce = (g) => g.sort((p, b) => {
|
|
1937
|
+
const x = Me(p), w = Me(b), k = Re(p), F = Re(b);
|
|
1938
|
+
return x >= 0 && w >= 0 && x !== w ? x - w : k >= 0 && F >= 0 && k !== F ? k - F : 0;
|
|
2092
1939
|
});
|
|
2093
|
-
|
|
2094
|
-
const
|
|
2095
|
-
if (
|
|
2096
|
-
let
|
|
2097
|
-
for (const
|
|
2098
|
-
if (
|
|
2099
|
-
|
|
1940
|
+
i[2] = ce(i[2]), i[4] = ce(i[4]);
|
|
1941
|
+
const ze = i.flat().join("");
|
|
1942
|
+
if (D.size >= Ie) {
|
|
1943
|
+
let g = Math.floor(Ie / 2);
|
|
1944
|
+
for (const p of D.keys()) {
|
|
1945
|
+
if (g-- === 0) break;
|
|
1946
|
+
D.delete(p);
|
|
2100
1947
|
}
|
|
2101
1948
|
}
|
|
2102
|
-
return
|
|
1949
|
+
return D.set(o, ze), ze;
|
|
2103
1950
|
}
|
|
2104
1951
|
export {
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
1952
|
+
We as _,
|
|
1953
|
+
ar as a,
|
|
1954
|
+
Ye as c,
|
|
1955
|
+
se as d,
|
|
1956
|
+
or as f,
|
|
1957
|
+
ur as g,
|
|
1958
|
+
me as h,
|
|
1959
|
+
gr as i,
|
|
1960
|
+
cr as l,
|
|
1961
|
+
be as m,
|
|
1962
|
+
Ve as n,
|
|
1963
|
+
fr as o,
|
|
1964
|
+
he as p,
|
|
1965
|
+
mr as r,
|
|
1966
|
+
pr as s,
|
|
1967
|
+
qe as t,
|
|
1968
|
+
ae as u,
|
|
1969
|
+
ge as v
|
|
2123
1970
|
};
|
|
2124
|
-
|
|
1971
|
+
|
|
1972
|
+
//# sourceMappingURL=style-DuDoj_xK.js.map
|