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