@jasonshimmy/custom-elements-runtime 2.2.5 → 2.2.7
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 +1 -0
- package/dist/custom-elements-runtime.cjs.js +12 -11
- package/dist/custom-elements-runtime.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.es.js +1612 -1581
- package/dist/custom-elements-runtime.es.js.map +1 -1
- package/dist/custom-elements-runtime.ssr.cjs.js +1 -1
- package/dist/custom-elements-runtime.ssr.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.ssr.es.js +29 -10
- package/dist/custom-elements-runtime.ssr.es.js.map +1 -1
- package/dist/custom-elements-runtime.transitions.cjs.js +1 -1
- package/dist/custom-elements-runtime.transitions.es.js +3 -3
- package/dist/runtime/prose.d.ts +15 -0
- package/dist/runtime/render.d.ts +10 -0
- package/dist/runtime/style.d.ts +19 -1
- package/dist/style.css +1 -1
- package/dist/transitions-CZ21fzhh.js +2120 -0
- package/dist/transitions-CZ21fzhh.js.map +1 -0
- package/dist/transitions-RXe2brRm.cjs +302 -0
- package/dist/transitions-RXe2brRm.cjs.map +1 -0
- package/dist/variables.css +1 -1
- package/package.json +2 -3
- package/dist/prose.css +0 -1
- package/dist/transitions-DCIjMqzG.js +0 -1607
- package/dist/transitions-DCIjMqzG.js.map +0 -1
- package/dist/transitions-DHQuI3AY.cjs +0 -237
- package/dist/transitions-DHQuI3AY.cjs.map +0 -1
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
"use strict";const Se=require("./custom-elements-runtime.directives.cjs.js"),je=`/*
|
|
2
|
-
* Custom Elements Variables CSS
|
|
3
|
-
* CSS variables for colors and fonts
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
:root,
|
|
7
|
-
:host {
|
|
8
|
-
/* Font families (match runtime defaults in src/lib/runtime/style.ts) */
|
|
9
|
-
--cer-font-sans:
|
|
10
|
-
ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
|
|
11
|
-
'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
|
|
12
|
-
--cer-font-serif: ui-serif, Georgia, 'Times New Roman', Times, serif;
|
|
13
|
-
--cer-font-mono:
|
|
14
|
-
ui-monospace, 'SFMono-Regular', Menlo, Monaco, 'Roboto Mono', 'Courier New',
|
|
15
|
-
monospace;
|
|
16
|
-
|
|
17
|
-
/* Default outline style */
|
|
18
|
-
--cer-outline-style: solid;
|
|
19
|
-
|
|
20
|
-
/* Colors */
|
|
21
|
-
--cer-color-transparent: transparent;
|
|
22
|
-
--cer-color-current: currentColor;
|
|
23
|
-
--cer-color-black: #000000;
|
|
24
|
-
--cer-color-white: #ffffff;
|
|
25
|
-
--cer-color-inherit: inherit;
|
|
26
|
-
|
|
27
|
-
/* neutral */
|
|
28
|
-
--cer-color-neutral-50: #fafafa;
|
|
29
|
-
--cer-color-neutral-100: #f4f4f5;
|
|
30
|
-
--cer-color-neutral-200: #e4e4e7;
|
|
31
|
-
--cer-color-neutral-300: #d4d4d8;
|
|
32
|
-
--cer-color-neutral-400: #9f9fa9;
|
|
33
|
-
--cer-color-neutral-500: #71717b;
|
|
34
|
-
--cer-color-neutral-600: #52525c;
|
|
35
|
-
--cer-color-neutral-700: #3f3f46;
|
|
36
|
-
--cer-color-neutral-800: #27272a;
|
|
37
|
-
--cer-color-neutral-900: #18181b;
|
|
38
|
-
--cer-color-neutral-950: #09090b;
|
|
39
|
-
|
|
40
|
-
/* primary */
|
|
41
|
-
--cer-color-primary-50: #eff6ff;
|
|
42
|
-
--cer-color-primary-100: #dbeafe;
|
|
43
|
-
--cer-color-primary-200: #bfdbfe;
|
|
44
|
-
--cer-color-primary-300: #93c5fd;
|
|
45
|
-
--cer-color-primary-400: #60a5fa;
|
|
46
|
-
--cer-color-primary-500: #3b82f6;
|
|
47
|
-
--cer-color-primary-600: #2563eb;
|
|
48
|
-
--cer-color-primary-700: #1d4ed8;
|
|
49
|
-
--cer-color-primary-800: #1e40af;
|
|
50
|
-
--cer-color-primary-900: #1e3a8a;
|
|
51
|
-
--cer-color-primary-950: #172554;
|
|
52
|
-
|
|
53
|
-
/* secondary */
|
|
54
|
-
--cer-color-secondary-50: #eef2ff;
|
|
55
|
-
--cer-color-secondary-100: #e0e7ff;
|
|
56
|
-
--cer-color-secondary-200: #c7d2fe;
|
|
57
|
-
--cer-color-secondary-300: #a5b4fc;
|
|
58
|
-
--cer-color-secondary-400: #818cf8;
|
|
59
|
-
--cer-color-secondary-500: #6366f1;
|
|
60
|
-
--cer-color-secondary-600: #4f46e5;
|
|
61
|
-
--cer-color-secondary-700: #4338ca;
|
|
62
|
-
--cer-color-secondary-800: #3730a3;
|
|
63
|
-
--cer-color-secondary-900: #312e81;
|
|
64
|
-
--cer-color-secondary-950: #1e1b4b;
|
|
65
|
-
|
|
66
|
-
/* success */
|
|
67
|
-
--cer-color-success-50: #f0fdf4;
|
|
68
|
-
--cer-color-success-100: #dcfce7;
|
|
69
|
-
--cer-color-success-200: #bbf7d0;
|
|
70
|
-
--cer-color-success-300: #86efac;
|
|
71
|
-
--cer-color-success-400: #4ade80;
|
|
72
|
-
--cer-color-success-500: #22c55e;
|
|
73
|
-
--cer-color-success-600: #16a34a;
|
|
74
|
-
--cer-color-success-700: #15803d;
|
|
75
|
-
--cer-color-success-800: #166534;
|
|
76
|
-
--cer-color-success-900: #14532d;
|
|
77
|
-
--cer-color-success-950: #052e16;
|
|
78
|
-
|
|
79
|
-
/* info */
|
|
80
|
-
--cer-color-info-50: #f0f9ff;
|
|
81
|
-
--cer-color-info-100: #e0f2fe;
|
|
82
|
-
--cer-color-info-200: #bae6fd;
|
|
83
|
-
--cer-color-info-300: #7dd3fc;
|
|
84
|
-
--cer-color-info-400: #38bdf8;
|
|
85
|
-
--cer-color-info-500: #0ea5e9;
|
|
86
|
-
--cer-color-info-600: #0284c7;
|
|
87
|
-
--cer-color-info-700: #0369a1;
|
|
88
|
-
--cer-color-info-800: #075985;
|
|
89
|
-
--cer-color-info-900: #0c4a6e;
|
|
90
|
-
--cer-color-info-950: #082f49;
|
|
91
|
-
|
|
92
|
-
/* warning */
|
|
93
|
-
--cer-color-warning-50: #fffbeb;
|
|
94
|
-
--cer-color-warning-100: #fef3c7;
|
|
95
|
-
--cer-color-warning-200: #fde68a;
|
|
96
|
-
--cer-color-warning-300: #fcd34d;
|
|
97
|
-
--cer-color-warning-400: #fbbf24;
|
|
98
|
-
--cer-color-warning-500: #f59e0b;
|
|
99
|
-
--cer-color-warning-600: #d97706;
|
|
100
|
-
--cer-color-warning-700: #b45309;
|
|
101
|
-
--cer-color-warning-800: #92400e;
|
|
102
|
-
--cer-color-warning-900: #78350f;
|
|
103
|
-
--cer-color-warning-950: #451a03;
|
|
104
|
-
|
|
105
|
-
/* error */
|
|
106
|
-
--cer-color-error-50: #fef2f2;
|
|
107
|
-
--cer-color-error-100: #fee2e2;
|
|
108
|
-
--cer-color-error-200: #fecaca;
|
|
109
|
-
--cer-color-error-300: #fca5a5;
|
|
110
|
-
--cer-color-error-400: #f87171;
|
|
111
|
-
--cer-color-error-500: #ef4444;
|
|
112
|
-
--cer-color-error-600: #dc2626;
|
|
113
|
-
--cer-color-error-700: #b91c1c;
|
|
114
|
-
--cer-color-error-800: #991b1b;
|
|
115
|
-
--cer-color-error-900: #7f1d1d;
|
|
116
|
-
--cer-color-error-950: #450a0a;
|
|
117
|
-
}
|
|
118
|
-
`;function xe(e,...r){let o="";for(let n=0;n<e.length;n++)o+=e[n],n<r.length&&(o+=r[n]);return o}function fe(e){return e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{}:;,>+~])\s*/g,"$1").replace(/;}/g,"}").trim()}let K=null;function Te(){return K||(typeof CSSStyleSheet>"u"?K={cssRules:[],replaceSync:()=>{},toString:()=>fe(ue)}:(K=new CSSStyleSheet,K.replaceSync(fe(ue)))),K}function Ce(e){return e.replace(/url\s*\(\s*['"]?javascript:[^)]*\)/gi,"").replace(/<script[\s\S]*?>[\s\S]*?<\/script>/gi,"").replace(/expression\s*\([^)]*\)/gi,"")}const ue=xe`
|
|
119
|
-
${je}
|
|
120
|
-
:host,
|
|
121
|
-
*,
|
|
122
|
-
::before,
|
|
123
|
-
::after {
|
|
124
|
-
all: isolate;
|
|
125
|
-
box-sizing: border-box;
|
|
126
|
-
border: 0 solid currentColor;
|
|
127
|
-
margin: 0;
|
|
128
|
-
padding: 0;
|
|
129
|
-
font: inherit;
|
|
130
|
-
vertical-align: baseline;
|
|
131
|
-
background: transparent;
|
|
132
|
-
color: inherit;
|
|
133
|
-
-webkit-tap-highlight-color: transparent;
|
|
134
|
-
}
|
|
135
|
-
:host {
|
|
136
|
-
display: contents;
|
|
137
|
-
font: 16px/1.5 var(--cer-font-sans, ui-sans-serif, system-ui, sans-serif);
|
|
138
|
-
/* Default CE line-height variable so leading-* can reliably override */
|
|
139
|
-
--cer-line-height: 1.5;
|
|
140
|
-
-webkit-text-size-adjust: 100%;
|
|
141
|
-
text-size-adjust: 100%;
|
|
142
|
-
-webkit-font-smoothing: antialiased;
|
|
143
|
-
-moz-osx-font-smoothing: grayscale;
|
|
144
|
-
/* Default gradient variables to avoid undefined var() usage in generated utilities */
|
|
145
|
-
--cer-gradient-from-position: 0%;
|
|
146
|
-
--cer-gradient-to-position: 100%;
|
|
147
|
-
--cer-gradient-via-position: 50%;
|
|
148
|
-
--cer-gradient-from: rgba(255, 255, 255, 0);
|
|
149
|
-
--cer-gradient-to: rgba(255, 255, 255, 0);
|
|
150
|
-
--cer-gradient-stops: var(--cer-gradient-from), var(--cer-gradient-to);
|
|
151
|
-
/* Default outline style variable */
|
|
152
|
-
--cer-outline-style: solid;
|
|
153
|
-
}
|
|
154
|
-
button,
|
|
155
|
-
input,
|
|
156
|
-
select,
|
|
157
|
-
textarea {
|
|
158
|
-
background: transparent;
|
|
159
|
-
outline: none;
|
|
160
|
-
}
|
|
161
|
-
textarea {
|
|
162
|
-
resize: vertical;
|
|
163
|
-
}
|
|
164
|
-
progress {
|
|
165
|
-
vertical-align: baseline;
|
|
166
|
-
}
|
|
167
|
-
button,
|
|
168
|
-
textarea {
|
|
169
|
-
overflow: visible;
|
|
170
|
-
}
|
|
171
|
-
img,
|
|
172
|
-
svg,
|
|
173
|
-
video,
|
|
174
|
-
canvas,
|
|
175
|
-
audio,
|
|
176
|
-
iframe,
|
|
177
|
-
embed,
|
|
178
|
-
object {
|
|
179
|
-
display: block;
|
|
180
|
-
max-width: 100%;
|
|
181
|
-
height: auto;
|
|
182
|
-
}
|
|
183
|
-
svg {
|
|
184
|
-
fill: currentColor;
|
|
185
|
-
stroke: none;
|
|
186
|
-
}
|
|
187
|
-
a {
|
|
188
|
-
text-decoration: inherit;
|
|
189
|
-
cursor: pointer;
|
|
190
|
-
}
|
|
191
|
-
button,
|
|
192
|
-
[type='button'],
|
|
193
|
-
[type='reset'],
|
|
194
|
-
[type='submit'] {
|
|
195
|
-
cursor: pointer;
|
|
196
|
-
appearance: button;
|
|
197
|
-
background: none;
|
|
198
|
-
-webkit-user-select: none;
|
|
199
|
-
user-select: none;
|
|
200
|
-
}
|
|
201
|
-
::-webkit-input-placeholder,
|
|
202
|
-
::placeholder {
|
|
203
|
-
color: inherit;
|
|
204
|
-
opacity: 0.5;
|
|
205
|
-
}
|
|
206
|
-
*:focus-visible {
|
|
207
|
-
outline: 2px solid var(--cer-color-primary-500, #3b82f6);
|
|
208
|
-
outline-offset: 2px;
|
|
209
|
-
}
|
|
210
|
-
ol,
|
|
211
|
-
ul {
|
|
212
|
-
list-style: none;
|
|
213
|
-
}
|
|
214
|
-
table {
|
|
215
|
-
border-collapse: collapse;
|
|
216
|
-
}
|
|
217
|
-
sub,
|
|
218
|
-
sup {
|
|
219
|
-
font-size: 0.75em;
|
|
220
|
-
line-height: 0;
|
|
221
|
-
position: relative;
|
|
222
|
-
}
|
|
223
|
-
sub {
|
|
224
|
-
bottom: -0.25em;
|
|
225
|
-
}
|
|
226
|
-
sup {
|
|
227
|
-
top: -0.5em;
|
|
228
|
-
}
|
|
229
|
-
[disabled],
|
|
230
|
-
[aria-disabled='true'] {
|
|
231
|
-
cursor: not-allowed;
|
|
232
|
-
}
|
|
233
|
-
[hidden] {
|
|
234
|
-
display: none;
|
|
235
|
-
}
|
|
236
|
-
`,Ae={neutral:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#9f9fa9",500:"#71717b",600:"#52525c",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},primary:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},secondary:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},success:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},info:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},warning:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},error:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},white:{DEFAULT:"#ffffff"},black:{DEFAULT:"#000000"},transparent:{DEFAULT:"transparent"},current:{DEFAULT:"currentColor"}},ve=Object.fromEntries(Object.entries(Ae).map(([e,r])=>[e,Object.fromEntries(Object.entries(r).map(([o,n])=>[o,`var(--cer-color-${e}${o==="DEFAULT"?"":`-${o}`}, ${n})`]))])),I="0.25rem",Fe={"3xs":64,"2xs":72,xs:80,sm:96,md:112,lg:128,xl:144,"2xl":168,"3xl":192,"4xl":224,"5xl":256,"6xl":288,"7xl":320},te={m:["margin"],mx:["margin-inline"],my:["margin-block"],mt:["margin-top"],mr:["margin-right"],mb:["margin-bottom"],ml:["margin-left"],p:["padding"],px:["padding-inline"],py:["padding-block"],pt:["padding-top"],pr:["padding-right"],pb:["padding-bottom"],pl:["padding-left"],inset:["inset"],"inset-x":["inset-inline"],"inset-y":["inset-block"],h:["height"],w:["width"],"min-h":["min-height"],"min-w":["min-width"],"max-h":["max-height"],"max-w":["max-width"],top:["top"],bottom:["bottom"],left:["left"],right:["right"],gap:["gap"],"gap-x":["column-gap"],"gap-y":["row-gap"]},Oe=()=>{const e={};e["@container"]="container-type:inline-size;",["block","inline","inline-block","flex","inline-flex","grid","inline-grid","table","table-cell","table-row","hidden"].forEach(t=>{e[t]=t==="hidden"?"display:none;":`display:${t};`}),["absolute","relative","fixed","sticky","static"].forEach(t=>{e[t]=`position:${t};`}),Object.assign(e,{"items-center":"align-items:center;","items-start":"align-items:flex-start;","items-end":"align-items:flex-end;","items-baseline":"align-items:baseline;","items-stretch":"align-items:stretch;","justify-center":"justify-content:center;","justify-start":"justify-content:flex-start;","justify-between":"justify-content:space-between;","justify-around":"justify-content:space-around;","justify-evenly":"justify-content:space-evenly;","justify-end":"justify-content:flex-end;","flex-wrap":"flex-wrap:wrap;","flex-nowrap":"flex-wrap:nowrap;","flex-wrap-reverse":"flex-wrap:wrap-reverse;","content-center":"align-content:center;","content-start":"align-content:flex-start;","content-end":"align-content:flex-end;","content-between":"align-content:space-between;","content-around":"align-content:space-around;","content-evenly":"align-content:space-evenly;","content-stretch":"align-content:stretch;","self-auto":"align-self:auto;","self-start":"align-self:flex-start;","self-end":"align-self:flex-end;","self-center":"align-self:center;","self-stretch":"align-self:stretch;","flex-col":"flex-direction:column;","flex-row":"flex-direction:row;","flex-col-reverse":"flex-direction:column-reverse;","flex-row-reverse":"flex-direction:row-reverse;","flex-1":"flex:1 1 0%;","flex-auto":"flex:1 1 auto;","flex-initial":"flex:0 1 auto;","flex-none":"flex:0 0 auto;",grow:"flex-grow:1;",shrink:"flex-shrink:1;","grow-0":"flex-grow:0;","shrink-0":"flex-shrink:0;"});for(let t=1;t<=12;t++)e[`grid-cols-${t}`]=`grid-template-columns:repeat(${t},minmax(0,1fr));`,e[`grid-rows-${t}`]=`grid-template-rows:repeat(${t},minmax(0,1fr));`,e[`col-span-${t}`]=`grid-column:span ${t} / span ${t};`,e[`row-span-${t}`]=`grid-row:span ${t} / span ${t};`,e[`col-start-${t}`]=`grid-column-start:${t};`,e[`col-end-${t}`]=`grid-column-end:${t};`,e[`row-start-${t}`]=`grid-row-start:${t};`,e[`row-end-${t}`]=`grid-row-end:${t};`;Object.assign(e,{"grid-cols-none":"grid-template-columns:none;","grid-rows-none":"grid-template-rows:none;","col-span-full":"grid-column:1 / -1;","row-span-full":"grid-row:1 / -1;","auto-cols-auto":"grid-auto-columns:auto;","auto-cols-min":"grid-auto-columns:min-content;","auto-cols-max":"grid-auto-columns:max-content;","auto-cols-fr":"grid-auto-columns:1fr;","auto-rows-auto":"grid-auto-rows:auto;","auto-rows-min":"grid-auto-rows:min-content;","auto-rows-max":"grid-auto-rows:max-content;","auto-rows-fr":"grid-auto-rows:1fr;","grid-flow-row":"grid-auto-flow:row;","grid-flow-col":"grid-auto-flow:column;","grid-flow-row-dense":"grid-auto-flow:row dense;","grid-flow-col-dense":"grid-auto-flow:column dense;"}),Object.assign(e,{"text-left":"text-align:left;","text-center":"text-align:center;","text-right":"text-align:right;","text-justify":"text-align:justify;","font-thin":"font-weight:100;","font-extralight":"font-weight:200;","font-light":"font-weight:300;","font-normal":"font-weight:400;","font-medium":"font-weight:500;","font-semibold":"font-weight:600;","font-bold":"font-weight:700;","font-extrabold":"font-weight:800;","font-black":"font-weight:900;",italic:"font-style:italic;","not-italic":"font-style:normal;",uppercase:"text-transform:uppercase;",lowercase:"text-transform:lowercase;",capitalize:"text-transform:capitalize;","normal-case":"text-transform:none;",underline:"text-decoration-line:underline;",overline:"text-decoration-line:overline;","line-through":"text-decoration-line:line-through;","no-underline":"text-decoration-line:none;",truncate:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;","whitespace-normal":"white-space:normal;","whitespace-nowrap":"white-space:nowrap;","whitespace-pre":"white-space:pre;","whitespace-pre-line":"white-space:pre-line;","whitespace-pre-wrap":"white-space:pre-wrap;","break-normal":"overflow-wrap:normal;word-break:normal;","break-words":"overflow-wrap:break-word;","break-all":"word-break:break-all;"}),[["text-xs","0.75rem","1"],["text-sm","0.875rem","1.25"],["text-base","1rem","1.5"],["text-lg","1.125rem","1.75"],["text-xl","1.25rem","1.75"],["text-2xl","1.5rem","2"],["text-3xl","1.875rem","2.25"],["text-4xl","2.25rem","2.5"],["text-5xl","3rem","1"],["text-6xl","3.75rem","1"],["text-7xl","4.5rem","1"],["text-8xl","6rem","1"],["text-9xl","8rem","1"]].forEach(([t,a,d])=>{e[t]=`font-size:${a};line-height:var(--cer-line-height,${d});`}),[["tracking-tighter","-0.05em"],["tracking-tight","-0.025em"],["tracking-normal","0em"],["tracking-wide","0.025em"],["tracking-wider","0.05em"],["tracking-widest","0.1em"]].forEach(([t,a])=>{e[t]=`letter-spacing:${a};`}),[["leading-3","0.75rem"],["leading-4","1rem"],["leading-5","1.25rem"],["leading-6","1.5rem"],["leading-7","1.75rem"],["leading-8","2rem"],["leading-9","2.25rem"],["leading-10","2.5rem"],["leading-none","1"],["leading-tight","1.25"],["leading-snug","1.375"],["leading-normal","1.5"],["leading-relaxed","1.625"],["leading-loose","2"]].forEach(([t,a])=>{e[t]=`line-height:${a};--cer-line-height:${a};line-height:var(--cer-line-height,${a});`});const s=[0,1,2,4,6,8];for(const t of s){const a=`${t}px`;e[`outline-${t}`]=`outline-style:var(--cer-outline-style);outline-width:${a};`,e[`outline-offset-${t}`]=`outline-offset:${a};`,e[`border-${t}`]=`border-width:${a};`,e[`border-t-${t}`]=`border-top-width:${a};`,e[`border-r-${t}`]=`border-right-width:${a};`,e[`border-b-${t}`]=`border-bottom-width:${a};`,e[`border-l-${t}`]=`border-left-width:${a};`,e[`border-x-${t}`]=`border-left-width:${a};border-right-width:${a};`,e[`border-y-${t}`]=`border-top-width:${a};border-bottom-width:${a};`}Object.assign(e,{"font-sans":"font-family:var(--cer-font-sans, ui-sans-serif,system-ui,sans-serif);","font-serif":"font-family:var(--cer-font-serif, ui-serif,Georgia,serif);","font-mono":"font-family:var(--cer-font-mono, ui-monospace,SFMono-Regular,monospace);",outline:"outline-style:var(--cer-outline-style);outline-width:1px;","outline-solid":"--cer-outline-style:solid;outline-style:solid;","outline-dashed":"--cer-outline-style:dashed;outline-style:dashed;","outline-dotted":"--cer-outline-style:dotted;outline-style:dotted;","outline-double":"--cer-outline-style:double;outline-style:double;","outline-none":"--cer-outline-style:none;outline-style:none;","outline-hidden":"--cer-outline-style:none;outline:2px solid transparent;outline-offset:2px;",border:"border-width:1px;","border-t":"border-top-width:1px;","border-r":"border-right-width:1px;","border-b":"border-bottom-width:1px;","border-l":"border-left-width:1px;","border-x":"border-left-width:1px;border-right-width:1px;","border-y":"border-top-width:1px;border-bottom-width:1px;","border-solid":"border-style:solid;","border-dashed":"border-style:dashed;","border-dotted":"border-style:dotted;","border-double":"border-style:double;","border-none":"border-style:none;"});const u={none:0,xs:2,sm:4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,"4xl":32,full:9999};for(const[t,a]of Object.entries(u)){const d=a===9999?"9999px":`${a/16}rem`;e[`rounded-${t}`]=`border-radius:${d};`,e[`rounded-t-${t}`]=`border-top-left-radius:${d};border-top-right-radius:${d};`,e[`rounded-r-${t}`]=`border-top-right-radius:${d};border-bottom-right-radius:${d};`,e[`rounded-b-${t}`]=`border-bottom-left-radius:${d};border-bottom-right-radius:${d};`,e[`rounded-l-${t}`]=`border-top-left-radius:${d};border-bottom-left-radius:${d};`,e[`rounded-tl-${t}`]=`border-top-left-radius:${d};`,e[`rounded-tr-${t}`]=`border-top-right-radius:${d};`,e[`rounded-br-${t}`]=`border-bottom-right-radius:${d};`,e[`rounded-bl-${t}`]=`border-bottom-left-radius:${d};`}Object.assign(e,{"shadow-none":"--cer-shadow-color:rgb(0 0 0 / 0);box-shadow:0 0 var(--cer-shadow-color, #0000);","shadow-xs":"--cer-shadow-color:rgb(0 0 0 / 0.05);box-shadow:0 1px 2px 0 var(--cer-shadow-color, rgb(0 0 0 / 0.05));","shadow-sm":"--cer-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 1px 3px 0 var(--cer-shadow-color, rgb(0 0 0 / 0.1)),0 1px 2px -1px var(--cer-shadow-color, rgb(0 0 0 / 0.1));",shadow:"--cer-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 1px 3px 0 var(--cer-shadow-color, rgb(0 0 0 / 0.1)),0 1px 2px -1px var(--cer-shadow-color, rgb(0 0 0 / 0.1));","shadow-md":"--cer-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 4px 6px -1px var(--cer-shadow-color, rgb(0 0 0 / 0.1)),0 2px 4px -2px var(--cer-shadow-color, rgb(0 0 0 / 0.1));","shadow-lg":"--cer-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 10px 15px -3px var(--cer-shadow-color, rgb(0 0 0 / 0.1)),0 4px 6px -4px var(--cer-shadow-color, rgb(0 0 0 / 0.1));","shadow-xl":"--cer-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 20px 25px -5px var(--cer-shadow-color, rgb(0 0 0 / 0.1)),0 8px 10px -6px var(--cer-shadow-color, rgb(0 0 0 / 0.1));","shadow-2xl":"--cer-shadow-color:rgb(0 0 0 / 0.25);box-shadow:0 25px 50px -12px var(--cer-shadow-color, rgb(0 0 0 / 0.25));","shadow-inner":"box-shadow:inset 0 2px 4px 0 rgb(0 0 0 / 0.05);"}),Object.assign(e,{rounded:"border-radius:0.25rem;"}),Object.assign(e,{"overflow-auto":"overflow:auto;","overflow-hidden":"overflow:hidden;","overflow-visible":"overflow:visible;","overflow-scroll":"overflow:scroll;","overflow-x-auto":"overflow-x:auto;","overflow-x-hidden":"overflow-x:hidden;","overflow-x-visible":"overflow-x:visible;","overflow-x-scroll":"overflow-x:scroll;","overflow-y-auto":"overflow-y:auto;","overflow-y-hidden":"overflow-y:hidden;","overflow-y-visible":"overflow-y:visible;","overflow-y-scroll":"overflow-y:scroll;"});const m=["auto","default","pointer","wait","text","move","help","not-allowed","grab","grabbing"];for(const t of m)e[`cursor-${t}`]=`cursor:${t};`;for(const t of[0,10,20,30,40,50])e[`z-${t}`]=`z-index:${t};`;Object.assign(e,{"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;","not-sr-only":"position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal;","pointer-events-none":"pointer-events:none;","pointer-events-auto":"pointer-events:auto;",visible:"visibility:visible;",invisible:"visibility:hidden;"}),Object.assign(e,{"w-full":"width:100%;","w-screen":"width:100dvw;","h-full":"height:100%;","h-screen":"height:100dvh;","max-w-full":"max-width:100%;","max-h-full":"max-height:100%;","max-w-screen":"max-width:100dvw;","max-h-screen":"max-height:100dvh;","min-w-0":"min-width:0;","min-h-0":"min-height:0;","min-w-full":"min-width:100%;","min-h-full":"min-height:100%;","min-w-screen":"min-width:100dvw;","min-h-screen":"min-height:100dvh;","w-auto":"width:auto;","h-auto":"height:auto;","w-fit":"width:fit-content;","h-fit":"height:fit-content;","w-min":"width:min-content;","h-min":"height:min-content;","w-max":"width:max-content;","h-max":"height:max-content;","m-auto":"margin:auto;","mx-auto":"margin-inline:auto;","my-auto":"margin-block:auto;"});for(const[t,a]of Object.entries(Fe))e[`max-w-${t}`]=`max-width:calc(${I} * ${a});`,e[`min-w-${t}`]=`min-width:calc(${I} * ${a});`,e[`w-${t}`]=`width:calc(${I} * ${a});`,e[`max-h-${t}`]=`max-height:calc(${I} * ${a});`,e[`min-h-${t}`]=`min-height:calc(${I} * ${a});`,e[`h-${t}`]=`height:calc(${I} * ${a});`;Object.assign(e,{transition:"transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;","transition-none":"transition-property:none;","transition-all":"transition-property:all;","transition-colors":"transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;","transition-shadow":"transition-property:box-shadow;","transition-opacity":"transition-property:opacity;","transition-transform":"transition-property:transform;","ease-linear":"transition-timing-function:linear;","ease-in":"transition-timing-function:ease-in;","ease-out":"transition-timing-function:ease-out;","ease-in-out":"transition-timing-function:ease-in-out;","duration-75":"transition-duration:75ms;","duration-100":"transition-duration:100ms;","duration-150":"transition-duration:150ms;","duration-200":"transition-duration:200ms;","duration-300":"transition-duration:300ms;","duration-500":"transition-duration:500ms;","duration-700":"transition-duration:700ms;","duration-1000":"transition-duration:1000ms;"}),Object.assign(e,{"scale-0":"transform:scale(0);","scale-50":"transform:scale(0.5);","scale-75":"transform:scale(0.75);","scale-90":"transform:scale(0.9);","scale-95":"transform:scale(0.95);","scale-100":"transform:scale(1);","scale-105":"transform:scale(1.05);","scale-110":"transform:scale(1.1);","scale-125":"transform:scale(1.25);","scale-150":"transform:scale(1.5);","rotate-0":"transform:rotate(0deg);","rotate-1":"transform:rotate(1deg);","rotate-2":"transform:rotate(2deg);","rotate-3":"transform:rotate(3deg);","rotate-6":"transform:rotate(6deg);","rotate-12":"transform:rotate(12deg);","rotate-45":"transform:rotate(45deg);","rotate-90":"transform:rotate(90deg);","rotate-180":"transform:rotate(180deg);","-rotate-1":"transform:rotate(-1deg);","-rotate-2":"transform:rotate(-2deg);","-rotate-3":"transform:rotate(-3deg);","-rotate-6":"transform:rotate(-6deg);","-rotate-12":"transform:rotate(-12deg);","-rotate-45":"transform:rotate(-45deg);","-rotate-90":"transform:rotate(-90deg);","-rotate-180":"transform:rotate(-180deg);"}),Object.assign(e,{"aspect-auto":"aspect-ratio:auto;","aspect-square":"aspect-ratio:1 / 1;","aspect-video":"aspect-ratio:16 / 9;"}),Object.assign(e,{"object-contain":"object-fit:contain;","object-cover":"object-fit:cover;","object-fill":"object-fit:fill;","object-none":"object-fit:none;","object-scale-down":"object-fit:scale-down;","object-bottom":"object-position:bottom;","object-center":"object-position:center;","object-left":"object-position:left;","object-left-bottom":"object-position:left bottom;","object-left-top":"object-position:left top;","object-right":"object-position:right;","object-right-bottom":"object-position:right bottom;","object-right-top":"object-position:right top;","object-top":"object-position:top;"});for(let t=1;t<=6;t++)e[`line-clamp-${t}`]=`display:-webkit-box;-webkit-line-clamp:${t};-webkit-box-orient:vertical;overflow:hidden;`;e["line-clamp-none"]="overflow:visible;display:block;-webkit-box-orient:horizontal;-webkit-line-clamp:none;";for(let t=1;t<=12;t++)e[`order-${t}`]=`order:${t};`;e["order-first"]="order:-9999;",e["order-last"]="order:9999;",e["order-none"]="order:0;";for(let t=0;t<=12;t++)t<=1||(e[`grow-${t}`]=`flex-grow:${t};`,e[`shrink-${t}`]=`flex-shrink:${t};`);return Object.assign(e,{"bg-linear-to-t":"background-image:linear-gradient(to top, var(--cer-gradient-stops));","bg-linear-to-tr":"background-image:linear-gradient(to top right, var(--cer-gradient-stops));","bg-linear-to-r":"background-image:linear-gradient(to right, var(--cer-gradient-stops));","bg-linear-to-br":"background-image:linear-gradient(to bottom right, var(--cer-gradient-stops));","bg-linear-to-b":"background-image:linear-gradient(to bottom, var(--cer-gradient-stops));","bg-linear-to-bl":"background-image:linear-gradient(to bottom left, var(--cer-gradient-stops));","bg-linear-to-l":"background-image:linear-gradient(to left, var(--cer-gradient-stops));","bg-linear-to-tl":"background-image:linear-gradient(to top left, var(--cer-gradient-stops));","bg-radial":"background-image:radial-gradient(ellipse at center, var(--cer-gradient-stops));","bg-radial-at-t":"background-image:radial-gradient(ellipse at top, var(--cer-gradient-stops));","bg-radial-at-tr":"background-image:radial-gradient(ellipse at top right, var(--cer-gradient-stops));","bg-radial-at-r":"background-image:radial-gradient(ellipse at right, var(--cer-gradient-stops));","bg-radial-at-br":"background-image:radial-gradient(ellipse at bottom right, var(--cer-gradient-stops));","bg-radial-at-b":"background-image:radial-gradient(ellipse at bottom, var(--cer-gradient-stops));","bg-radial-at-bl":"background-image:radial-gradient(ellipse at bottom left, var(--cer-gradient-stops));","bg-radial-at-l":"background-image:radial-gradient(ellipse at left, var(--cer-gradient-stops));","bg-radial-at-tl":"background-image:radial-gradient(ellipse at top left, var(--cer-gradient-stops));","bg-radial-circle":"background-image:radial-gradient(circle at center, var(--cer-gradient-stops));","bg-radial-circle-at-t":"background-image:radial-gradient(circle at top, var(--cer-gradient-stops));","bg-radial-circle-at-tr":"background-image:radial-gradient(circle at top right, var(--cer-gradient-stops));","bg-radial-circle-at-r":"background-image:radial-gradient(circle at right, var(--cer-gradient-stops));","bg-radial-circle-at-br":"background-image:radial-gradient(circle at bottom right, var(--cer-gradient-stops));","bg-radial-circle-at-b":"background-image:radial-gradient(circle at bottom, var(--cer-gradient-stops));","bg-radial-circle-at-bl":"background-image:radial-gradient(circle at bottom left, var(--cer-gradient-stops));","bg-radial-circle-at-l":"background-image:radial-gradient(circle at left, var(--cer-gradient-stops));","bg-radial-circle-at-tl":"background-image:radial-gradient(circle at top left, var(--cer-gradient-stops));","bg-conic":"background-image:conic-gradient(from 0deg at center, var(--cer-gradient-stops));","bg-conic-at-t":"background-image:conic-gradient(from 0deg at top, var(--cer-gradient-stops));","bg-conic-at-tr":"background-image:conic-gradient(from 0deg at top right, var(--cer-gradient-stops));","bg-conic-at-r":"background-image:conic-gradient(from 0deg at right, var(--cer-gradient-stops));","bg-conic-at-br":"background-image:conic-gradient(from 0deg at bottom right, var(--cer-gradient-stops));","bg-conic-at-b":"background-image:conic-gradient(from 0deg at bottom, var(--cer-gradient-stops));","bg-conic-at-bl":"background-image:conic-gradient(from 0deg at bottom left, var(--cer-gradient-stops));","bg-conic-at-l":"background-image:conic-gradient(from 0deg at left, var(--cer-gradient-stops));","bg-conic-at-tl":"background-image:conic-gradient(from 0deg at top left, var(--cer-gradient-stops));"}),e},re=Oe();function P(e,r){let o=0;for(let n=0;n<e.length;n++){const c=e[n];if(c==="["||c==="(")o++;else if((c==="]"||c===")")&&o>0)o--;else if(o===0&&(c===">"||c==="+"||c==="~"||c===" "))return e.slice(0,n)+r+e.slice(n)}return e+r}const Ee={before:(e,r)=>`${e}::before{${r}}`,after:(e,r)=>`${e}::after{${r}}`,hover:(e,r)=>`${P(e,":hover")}{${r}}`,focus:(e,r)=>`${P(e,":focus")}{${r}}`,active:(e,r)=>`${P(e,":active")}{${r}}`,disabled:(e,r)=>`${P(e,":disabled")}{${r}}`,visited:(e,r)=>`${P(e,":visited")}{${r}}`,checked:(e,r)=>`${P(e,":checked")}{${r}}`,first:(e,r)=>`${P(e,":first-child")}{${r}}`,last:(e,r)=>`${P(e,":last-child")}{${r}}`,odd:(e,r)=>`${P(e,":nth-child(odd)")}{${r}}`,even:(e,r)=>`${P(e,":nth-child(even)")}{${r}}`,"focus-within":(e,r)=>`${P(e,":focus-within")}{${r}}`,"focus-visible":(e,r)=>`${P(e,":focus-visible")}{${r}}`,"group-hover":(e,r)=>`.group:hover ${e}{${r}}`,"group-focus":(e,r)=>`.group:focus ${e}{${r}}`,"group-active":(e,r)=>`.group:active ${e}{${r}}`,"group-disabled":(e,r)=>`.group:disabled ${e}{${r}}`,"peer-hover":(e,r)=>`.peer:hover ~ ${e}{${r}}`,"peer-focus":(e,r)=>`.peer:focus ~ ${e}{${r}}`,"peer-checked":(e,r)=>`.peer:checked ~ ${e}{${r}}`,"peer-disabled":(e,r)=>`.peer:disabled ~ ${e}{${r}}`,"dark-class":(e,r)=>`:host(.dark) ${e}{${r}}`},oe={sm:"(min-width:640px)",md:"(min-width:768px)",lg:"(min-width:1024px)",xl:"(min-width:1280px)","2xl":"(min-width:1536px)",dark:"(prefers-color-scheme: dark)"},me={xs:"(min-width:20rem)",sm:"(min-width:24rem)",md:"(min-width:28rem)",lg:"(min-width:32rem)",xl:"(min-width:36rem)","2xl":"(min-width:42rem)","3xl":"(min-width:48rem)","4xl":"(min-width:56rem)","5xl":"(min-width:64rem)","6xl":"(min-width:72rem)","7xl":"(min-width:80rem)"},ne=["sm","md","lg","xl","2xl"],ie=["xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl"];function ae(e){const r=e.startsWith("-"),o=r?e.slice(1):e,n=o.lastIndexOf("-");if(n===-1)return null;const c=o.slice(0,n),s=o.slice(n+1);if(!te[c])return null;if(s.includes("/")){const[t,a]=s.split("/").map($=>parseFloat($));if(Number.isNaN(t)||Number.isNaN(a)||a===0)return null;const d=t/a*100;return te[c].map($=>`${$}:${d}%;`).join("")}const u=parseFloat(s);if(Number.isNaN(u))return null;const m=r?"-":"";return te[c].map(t=>`${t}:calc(${m}${I} * ${u});`).join("")}function ce(e){const r=e.startsWith("-"),n=(r?e.slice(1):e).match(/^space-(x|y)-(.+)$/);if(!n)return null;const[,c,s]=n,u=c==="x";if(s==="reverse")return u?"--cer-space-x-reverse:1;":"--cer-space-y-reverse:1;";if(s.includes("/")){const[d,$]=s.split("/").map(A=>parseFloat(A));if(Number.isNaN(d)||Number.isNaN($)||$===0)return null;const v=d/$*100,C=r?"-":"";return u?`--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${C}${v}% * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${C}${v}% * var(--cer-space-x-reverse));}`:`--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${C}${v}% * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${C}${v}% * var(--cer-space-y-reverse));}`}const m=parseFloat(s);if(Number.isNaN(m))return null;const a=`calc(${r?"-":""}${I} * ${m})`;return u?`--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${a} * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${a} * var(--cer-space-x-reverse));}`:`--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${a} * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${a} * var(--cer-space-y-reverse));}`}function J(e){let r=e.replace("#","");r.length===3&&(r=r.split("").map(n=>n+n).join(""));const o=parseInt(r,16);return`${o>>16&255} ${o>>8&255} ${o&255}`}const _e=/^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/,Re={bg:"background-color",decoration:"text-decoration-color",text:"color",border:"border-color",outline:"outline-color",caret:"caret-color",accent:"accent-color",fill:"fill",stroke:"stroke"};function ze(e){const r=_e.exec(e);if(!r)return null;const[,o,n,c="DEFAULT"]=r,s=ve[n]?.[c];if(!s)return null;if(o==="shadow")return`--cer-shadow-color:${s};`;const u=Re[o];return u?`${u}:${s};`:null}function Le(e){const r=e.indexOf("/");if(r===-1)return{base:e};const o=e.slice(0,r),n=e.slice(r+1),c=parseInt(n,10);return isNaN(c)||c<0||c>100?{base:o}:{base:o,opacity:c/100}}function se(e){const{base:r,opacity:o}=Le(e),n=ze(r);if(n){if(o!==void 0){if(n.includes("var(")){const u=/var\([^)]*\)/.exec(n);if(u){const m=u[0],t=o*100,a=`color-mix(in srgb, ${m} ${t}%, rgba(0 0 0 / 0) ${100-t}%)`,d=/#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(m),$=/^([a-z-]+):/.exec(n),v=$?$[1]:"background-color";if(d){const A=`rgb(${J(d[0])} / ${o})`,f=m.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i,A);return`${v}:${f};__CE_COLOR_MIX_SPLIT__${v}:${a};`}return`${v}:${a};`}}const s=/#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(n);if(s){const u=J(s[0]);return n.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i,`rgb(${u} / ${o})`)}}return n}const c=Z(r);if(c&&o!==void 0){if(c.includes("var(")){const u=/var\([^)]*\)/.exec(c);if(u){const m=u[0],t=o*100,a=`color-mix(in srgb, ${m} ${t}%, rgba(0 0 0 / 0) ${100-t}%)`,d=/#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(m),$=/^([a-z-]+):/.exec(c),v=$?$[1]:null;if(d&&v){const A=`rgb(${J(d[0])} / ${o})`,f=m.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i,A);return`${v}:${f};__CE_COLOR_MIX_SPLIT__${v}:${a};`}return c.replace(m,a)}}const s=/#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(c);if(s){const u=J(s[0]);return c.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i,`rgb(${u} / ${o})`)}}return c}function le(e){const r=/^(from|to|via)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);if(!r)return null;const[,o,n,c="DEFAULT"]=r,s=ve[n]?.[c];if(!s)return null;switch(o){case"from":return`--cer-gradient-from:${s} 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);`;case"to":return`--cer-gradient-to:${s} var(--cer-gradient-to-position);`;case"via":return`--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), ${s} var(--cer-gradient-via-position), var(--cer-gradient-to);`;default:return null}}function de(e){const r=/^opacity-(\d{1,3})$/.exec(e);if(!r)return null;const o=parseInt(r[1],10);return o<0||o>100?null:`opacity:${o/100};`}function Z(e){if(e.startsWith("[")&&e.endsWith("]")&&!e.includes("-[")){const u=e.slice(1,-1).trim(),m=u.indexOf(":");if(m===-1)return null;const t=u.slice(0,m).trim();let a=u.slice(m+1).trim();return/^[a-zA-Z][a-zA-Z0-9-]*$/.test(t)?(a=a.replace(/_/g," "),a=a.replace(/url\('\s*([^']*?)\s*'\)/g,'url("$1")'),a=a.replace(/^'([^']*)'$/g,'"$1"'),`${t}:${a};`):null}const r=e.indexOf("-[");if(r<=0||!e.endsWith("]"))return null;const o=e.slice(0,r),n=e.slice(r+2,-1).replace(/_/g," "),c={bg:"background-color",shadow:"box-shadow",p:"padding",px:"padding-inline",py:"padding-block",m:"margin",mx:"margin-inline",my:"margin-block",w:"width",h:"height","min-w":"min-width","max-w":"max-width","min-h":"min-height","max-h":"max-height","border-t":"border-top-width","border-b":"border-bottom-width","border-l":"border-left-width","border-r":"border-right-width","border-x":"border-inline-width","border-y":"border-block-width","grid-cols":"grid-template-columns","grid-rows":"grid-template-rows",transition:"transition-property",ease:"transition-timing-function",delay:"transition-delay",duration:"transition-duration",list:"list-style",break:"word-break",flex:"flex-direction",items:"align-items",justify:"justify-content",content:"align-content",self:"align-self",basis:"flex-basis",tracking:"letter-spacing",leading:"line-height",z:"z-index",opacity:"opacity"};if(o==="text")return/^\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex)$/.test(n)?`font-size:${n};`:`color:${n};`;if(o==="rotate")return`transform:rotate(${n});`;if(o==="scale")return`transform:scale(${n});`;if(o==="translate-x")return`transform:translateX(${n});`;if(o==="translate-y")return`transform:translateY(${n});`;const s=c[o]??o.replace(/_/g,"-");return s&&n?`${s}:${n};`:null}function Pe(e){if(e.startsWith("[")&&e.endsWith("]")){const o=e.slice(1,-1);return o.includes("&")?o:e}const r=e.indexOf("-[");if(r>0&&e.endsWith("]")){const o=e.slice(r+2,-1).replace(/_/g,"-");return o.includes("&")?o:e.replace(/_/g,"-")}return null}function be(e){return e.replace(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g,"\\$1")}function Me(e){const r=/class\s*=\s*(['"])([\s\S]*?)\1/g,o=[];let n;for(;n=r.exec(e);){const c=n[2].split(/\s+/).filter(Boolean);c.length&&o.push(...c)}return o}const q=new Map,We=16,he=1e3;function we(e){const r=Date.now(),o=q.get(e);if(o&&r-o.timestamp<We)return o.css;const n=Me(e);if(!n.length)return"";const c=new Set(n),s=[[],[],[],[]],u={},m=(f,p=!1)=>{const g=p?`dark|${f}`:f;if(g in u)return u[g];const b=$(f,p);return u[g]=b,b},t=f=>{const p=f.some(k=>ne.includes(k)),g=f.some(k=>k.startsWith("@")&&(ie.includes(k.slice(1))||k.match(/^@\[.+\]$/))),b=f.includes("dark");return f.length?!p&&!b&&!g?1:b&&(p||g)?3:2:0},a=f=>{const p=[];let g="",b=0;for(let k=0;k<f.length;k++){const x=f[k];x==="["||x==="("?b++:(x==="]"||x===")")&&b--,x===":"&&b===0?(p.push(g),g=""):g+=x}return g&&p.push(g),p},d={hover:":hover",focus:":focus",active:":active",visited:":visited",disabled:":disabled",checked:":checked",first:":first-child",last:":last-child",odd:":nth-child(odd)",even:":nth-child(even)","focus-within":":focus-within","focus-visible":":focus-visible"},$=(f,p=!1)=>{const g=a(f);let b="",k=!1;for(const i of g){let y=i;if(y.startsWith("!")&&(k=!0,y=y.slice(1)),re[y]||ae(y)||ce(y)||de(y)||se(y)||le(y)||Z(y)){b=i;break}}if(!b)return null;const x=b.replace(/^!/,""),O=re[x]??ae(x)??ce(x)??de(x)??se(x)??le(x)??Z(x);if(!O)return null;const T=g.indexOf(b);let h=T>=0?g.slice(0,T):[];p&&(h=h.filter(i=>i!=="dark"));const z=`.${be(f)}`,_=k?O.replace(/;/g," !important;"):O,w="__SUBJECT__";let l=w;const M=[];for(const i of h)i.startsWith("group-")?(l=`.group:${i.slice(6)} ${l}`,M.push(i)):i.startsWith("peer-")&&(l=l.replace(w,`.peer:${i.slice(5)}~${w}`),M.push(i));h=h.filter(i=>!M.includes(i));const W=[],H=[];let j=null;for(const i of h){if(i==="dark"||ne.includes(i)||i.startsWith("@")&&(ie.includes(i.slice(1))||i.match(/^@\[.+\]$/)))continue;const y=Pe(i);if(y){j=y;continue}const F=d[i];if(F){j?H.push(F):W.push(F);continue}const E=Ee[i];typeof E=="function"&&(l=E(l,_).split("{")[0])}const D=W.join(""),L=H.join("");function Q(i,y){if(!y)return i;let F=0,E=0;if(i.length&&(i[0]===">"||i[0]==="+"||i[0]==="~"||i[0]===" ")){let S=1;for(;S<i.length&&i[S]===" ";)S++;for(;S<i.length;S++){const R=i[S];if(R==="["?F++:R==="]"&&F>0?F--:R==="("?E++:R===")"&&E>0&&E--,F===0&&E===0&&(i[S]===">"||i[S]==="+"||i[S]==="~"||i[S]===" "))return i.slice(0,S)+y+i.slice(S)}return i+y}for(let S=0;S<i.length;S++){const R=i[S];if(R==="["?F++:R==="]"&&F>0?F--:R==="("?E++:R===")"&&E>0&&E--,F===0&&E===0&&(R===">"||R==="+"||R==="~"||R===" "))return i.slice(0,S)+y+i.slice(S)}return i+y}if(j)if(j.includes("&")){const i=j.indexOf("&"),y=j.slice(0,i),F=j.slice(i+1),E=w+D;if(W.length===0)l=l.replace(w,y+E+L+F);else{const S=Q(F,L);l=l.replace(w,y+E+S)}}else l=l.replace(w,`${j}${w+D}`),L&&(l=l.replace(w,`${w}${L}`));else l=l.replace(w,w+D+L);l=l.replace(new RegExp(w,"g"),z);const ge="__CE_COLOR_MIX_SPLIT__",$e=_.includes(ge)?_.split(ge).map(i=>`${l}{${i}}`):[`${l}{${_}}`],Y=h.filter(i=>ne.includes(i)),ee=h.filter(i=>i.startsWith("@")&&(ie.includes(i.slice(1))||i.match(/^@\[.+\]$/))),X=Y.length?Y[Y.length-1]:null,G=ee.length?ee[ee.length-1]:null,pe=h.includes("dark");let N="",U="";if(pe&&X?N=`@media (prefers-color-scheme: dark) and ${oe[X]}`:pe?N="@media (prefers-color-scheme: dark)":X&&(N=`@media ${oe[X]}`),G)if(G.startsWith("@[")&&G.endsWith("]")){const i=G.slice(2,-1);if(!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(i))return null;U=`@container (min-width:${i})`}else{const i=G.slice(1);U=`@container ${me[i]||`(min-width:${i})`}`}const ke=i=>N&&U?`${N}${U}{${i}}`:N?`${N}{${i}}`:U?`${U}{${i}}`:i;return $e.map(ke).join("")};for(const f of c){const p=a(f),g=p.find(T=>re[T.replace(/^!/,"")]||ae(T.replace(/^!/,""))||ce(T.replace(/^!/,""))||de(T.replace(/^!/,""))||se(T.replace(/^!/,""))||le(T.replace(/^!/,""))||Z(T.replace(/^!/,"")));if(!g)continue;const b=p.indexOf(g),k=b>=0?p.slice(0,b):[],x=t(k),O=m(f);O&&s[x].push(O)}const v=/^(from|via|to)-[a-z]+-?\d{2,3}?$/;for(const f of c)if(v.test(f)){if(s.flat().join("").includes(`.${be(f)}`))continue;const g=m(f);g&&s[0].push(g)}const C=f=>f.sort((p,g)=>{const b=z=>{const _={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};for(const[w,l]of Object.entries(_))if(z.includes(`@media ${oe[w]}`))return l;return-1},k=z=>{const _={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768,"4xl":896,"5xl":1024,"6xl":1152,"7xl":1280};for(const[w,l]of Object.entries(_))if(z.includes(`@container ${me[w]}`))return l;if(z.includes("@container (min-width:")){const w=/@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(z);if(w){const l=parseFloat(w[1]),M=w[2];return M==="rem"||M==="em"?l*16:l}}return-1},x=b(p),O=b(g),T=k(p),h=k(g);return x>=0&&O>=0&&x!==O?x-O:T>=0&&h>=0&&T!==h?T-h:0});s[2]=C(s[2]),s[3]=C(s[3]);const A=s.flat().join("");return q.size>=he&&Array.from(q.keys()).slice(0,Math.floor(he/2)).forEach(p=>q.delete(p)),q.set(e,{css:A,timestamp:r}),A}const V={fade:{enterFrom:"opacity-0",enterActive:"transition-opacity duration-300 ease-out",enterTo:"opacity-100",leaveFrom:"opacity-100",leaveActive:"transition-opacity duration-200 ease-in",leaveTo:"opacity-0"},"slide-right":{enterFrom:"translate-x-[100%] opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"translate-x-[0%] opacity-100",leaveFrom:"translate-x-[0%] opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"translate-x-[100%] opacity-0"},"slide-left":{enterFrom:"translate-x-[-100%] opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"translate-x-[0%] opacity-100",leaveFrom:"translate-x-[0%] opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"translate-x-[-100%] opacity-0"},"slide-up":{enterFrom:"translate-y-[100%] opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"translate-y-[0%] opacity-100",leaveFrom:"translate-y-[0%] opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"translate-y-[100%] opacity-0"},"slide-down":{enterFrom:"translate-y-[-100%] opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"translate-y-[0%] opacity-100",leaveFrom:"translate-y-[0%] opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"translate-y-[-100%] opacity-0"},scale:{enterFrom:"scale-95 opacity-0",enterActive:"transition-all duration-200 ease-out",enterTo:"scale-100 opacity-100",leaveFrom:"scale-100 opacity-100",leaveActive:"transition-all duration-150 ease-in",leaveTo:"scale-95 opacity-0"},"scale-down":{enterFrom:"scale-105 opacity-0",enterActive:"transition-all duration-200 ease-out",enterTo:"scale-100 opacity-100",leaveFrom:"scale-100 opacity-100",leaveActive:"transition-all duration-150 ease-in",leaveTo:"scale-105 opacity-0"},bounce:{enterFrom:"scale-0 opacity-0",enterActive:"transition-all duration-500 ease-out",enterTo:"scale-100 opacity-100",leaveFrom:"scale-100 opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"scale-0 opacity-0"},zoom:{enterFrom:"scale-0 opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"scale-100 opacity-100",leaveFrom:"scale-100 opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"scale-0 opacity-0"},flip:{enterFrom:"rotate-[90deg] opacity-0",enterActive:"transition-all duration-400 ease-out",enterTo:"rotate-[0deg] opacity-100",leaveFrom:"rotate-[0deg] opacity-100",leaveActive:"transition-all duration-300 ease-in",leaveTo:"rotate-[90deg] opacity-0"}};function Ie(e,r){const{preset:o,show:n,mode:c="default",duration:s,appear:u=!1,css:m=!0,name:t,enterFrom:a,enterActive:d,enterTo:$,leaveFrom:v,leaveActive:C,leaveTo:A,onBeforeEnter:f,onEnter:p,onAfterEnter:g,onEnterCancelled:b,onBeforeLeave:k,onLeave:x,onAfterLeave:O,onLeaveCancelled:T}=e;let h;o&&V[o]?(h={...V[o]},a&&(h.enterFrom=a),d&&(h.enterActive=d),$&&(h.enterTo=$),v&&(h.leaveFrom=v),C&&(h.leaveActive=C),A&&(h.leaveTo=A)):h={enterFrom:a,enterActive:d,enterTo:$,leaveFrom:v,leaveActive:C,leaveTo:A};const z=t||(o?`transition-${o}`:"transition"),_=Se.anchorBlock(n?r:[],z);return _._transition={name:z,classes:h,mode:c,duration:s,appear:u,css:m,state:n?"visible":"hidden",hooks:{onBeforeEnter:f,onEnter:p,onAfterEnter:g,onEnterCancelled:b,onBeforeLeave:k,onLeave:x,onAfterLeave:O,onLeaveCancelled:T}},_}function De(e,r){const{tag:o="div",moveClass:n="transition-transform duration-300",preset:c,show:s=!0,mode:u="default",duration:m,appear:t=!1,css:a=!0,name:d,class:$,style:v,enterFrom:C,enterActive:A,enterTo:f,leaveFrom:p,leaveActive:g,leaveTo:b,onBeforeEnter:k,onEnter:x,onAfterEnter:O,onEnterCancelled:T,onBeforeLeave:h,onLeave:z,onAfterLeave:_,onLeaveCancelled:w}=e;let l;c&&V[c]?(l={...V[c]},C&&(l.enterFrom=C),A&&(l.enterActive=A),f&&(l.enterTo=f),p&&(l.leaveFrom=p),g&&(l.leaveActive=g),b&&(l.leaveTo=b)):l={enterFrom:C,enterActive:A,enterTo:f,leaveFrom:p,leaveActive:g,leaveTo:b};const M=d||(c?`transition-group-${c}`:"transition-group"),W=[];for(const j of s?r:[])if(j&&typeof j=="object"&&j.tag==="#anchor"){const D=Array.isArray(j.children)?j.children:[];for(const L of D)if(L&&typeof L=="object"){const Q={...L,key:j.key||L.key,props:{...L.props,_anchorKey:j.key}};W.push(Q)}else W.push(L)}else W.push(j);const H=(()=>{if(v)return typeof v=="string"?v:Object.entries(v).map(([j,D])=>`${j}: ${D}`).join("; ")})();return{tag:o,children:W,key:M,props:{attrs:{...$?{class:$}:{},...H?{style:H}:{}},_transitionGroup:{name:M,classes:l,moveClass:n,mode:u,duration:m,appear:t,css:a,hooks:{onBeforeEnter:k,onEnter:x,onAfterEnter:O,onEnterCancelled:T,onBeforeLeave:h,onLeave:z,onAfterLeave:_,onLeaveCancelled:w}}}}}function Ne(e){return{...e}}let B=null;function ye(){if(!B){if(typeof CSSStyleSheet>"u")return B={cssRules:[],replaceSync:()=>{},toString:()=>""},B;const e=[];Object.values(V).forEach(n=>{n.enterFrom&&e.push(n.enterFrom),n.enterActive&&e.push(n.enterActive),n.enterTo&&e.push(n.enterTo),n.leaveFrom&&e.push(n.leaveFrom),n.leaveActive&&e.push(n.leaveActive),n.leaveTo&&e.push(n.leaveTo)});const r=`<div class="${e.join(" ")}"></div>`,o=we(r);try{B=new CSSStyleSheet,B.replaceSync(o)}catch{B={cssRules:[],replaceSync:()=>{},toString:()=>o||""}}}return B}function Be(){if(!(typeof window>"u"||typeof CSSStyleSheet>"u"))try{ye()}catch{}}Be();exports.Transition=Ie;exports.TransitionGroup=De;exports.baseReset=ue;exports.createTransitionPreset=Ne;exports.css=xe;exports.getBaseResetSheet=Te;exports.getTransitionStyleSheet=ye;exports.jitCSS=we;exports.minifyCSS=fe;exports.sanitizeCSS=Ce;exports.transitionPresets=V;
|
|
237
|
-
//# sourceMappingURL=transitions-DHQuI3AY.cjs.map
|