@cssxio/compiler 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +145 -0
- package/THIRD_PARTY_NOTICES.md +19 -0
- package/dist/BUILD_MANIFEST.json +10 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +356 -0
- package/dist/index.d.ts +356 -0
- package/dist/index.js +1 -0
- package/package.json +25 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 CSSX contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# @cssxio/compiler
|
|
2
|
+
|
|
3
|
+
`@cssxio/compiler` builds static utility strings without a source transform or build tool adapter.
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
import { compileStyleMap, serializeCss } from '@cssxio/compiler';
|
|
7
|
+
|
|
8
|
+
const result = await compileStyleMap({
|
|
9
|
+
card: 'p-5 bg-white hover:bg-gray-50',
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const className = result.classNames.card;
|
|
13
|
+
const css = serializeCss(result.rules, { layer: 'cssx' });
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Class names
|
|
17
|
+
|
|
18
|
+
The style-map compiler APIs accept `className`. By default CSSX uses compact,
|
|
19
|
+
collision-free serial names: `s0x`, `s1x`, and so on.
|
|
20
|
+
|
|
21
|
+
Static style maps also default to `reusabilityBudget: 'auto'`. CSSX shares
|
|
22
|
+
positive-value groups of utilities between repeated styles and leaves each
|
|
23
|
+
style with a residual class when needed. Set `0` to keep one complete class per
|
|
24
|
+
style or `100` to emit only winning atomic classes.
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
const result = await compileStyleMap(styles, { reusabilityBudget: 0 });
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
```ts
|
|
31
|
+
const result = await compileStyleMap(
|
|
32
|
+
{ card: 'p-5 bg-white' },
|
|
33
|
+
{
|
|
34
|
+
className: {
|
|
35
|
+
variant: 'serial',
|
|
36
|
+
prefix: 'app-',
|
|
37
|
+
suffix: '-v1',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
);
|
|
41
|
+
// Atomic and composite names: app-0-v1, app-1-v1, …, app-z-v1, app-A-v1, …, app-10-v1
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
`serial` is a collision-free, case-sensitive base-62 counter for the complete
|
|
45
|
+
compilation: `0` through `9`, then `a` through `z`, then `A` through `Z`, then
|
|
46
|
+
`10`. Its default prefix and suffix are `s` and `x` (`s0x`, `s1x`, …). When
|
|
47
|
+
both affixes are explicitly blank, CSSX uses decimal serial names and escapes
|
|
48
|
+
digit-leading selectors. The `prefix` gives it a project namespace. Choose the stable content-hash `random` variant when that better
|
|
49
|
+
fits your build; set
|
|
50
|
+
`length` to fix the hash fragment length when you need a smaller output:
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
{ className: { variant: 'random', prefix: 'app_', suffix: '_v1', length: 5 } }
|
|
54
|
+
// app_0p4jd_v1
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
CSSX resolves collisions deterministically for random names. A fixed random
|
|
58
|
+
length must have enough base-36 combinations for every generated atomic and
|
|
59
|
+
composite class; otherwise compilation fails instead of reusing a class name.
|
|
60
|
+
`length` applies only to `random`, and a non-empty `prefix` must be a safe CSS
|
|
61
|
+
identifier prefix. Prefixes and suffixes work with both variants.
|
|
62
|
+
|
|
63
|
+
When you compile independent maps that share one stylesheet, create one
|
|
64
|
+
allocator and pass it as `classNameAllocator` to every call, including
|
|
65
|
+
`composeCompiledStyles`. This keeps serial values unique across those calls.
|
|
66
|
+
|
|
67
|
+
```ts
|
|
68
|
+
const classNameAllocator = createClassNameAllocator();
|
|
69
|
+
const first = compileStyleRecords({ button: 'p-4' }, { classNameAllocator });
|
|
70
|
+
const second = compileStyleRecords({ card: 'bg-white' }, { classNameAllocator });
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## API
|
|
74
|
+
|
|
75
|
+
### High-level compilation
|
|
76
|
+
|
|
77
|
+
- `compileStyleMap(input, options?)` asynchronously compiles one object of style names to static utility strings. It returns `CompileResult`, containing compiled runtime `styles`, one composite class in `classNames` for each style key, internal candidate metadata, and zero or one `CssxRule` with the generated CSS. `options.theme` is optional CSSX `@theme` input.
|
|
78
|
+
- `compileStyleMaps(inputs, options?)` asynchronously compiles named style maps together. It returns `CompileMapsResult`, with a `styleMaps` result for each input and shared CSS `rules`. Shared keyframes and property registrations are emitted once.
|
|
79
|
+
- `serializeCss(rules, options?)` removes duplicate rule CSS, sorts it for stable output, and joins it into one string. Set `options.layer` to wrap non-empty output in `@layer <layer>{...}`.
|
|
80
|
+
|
|
81
|
+
### Lower-level compilation
|
|
82
|
+
|
|
83
|
+
- `compileUtilities(candidates, className, themeCss?)` asynchronously emits CSS for unique utility candidates. `className` is called once per distinct candidate and must return one or more safe, space-separated CSS class names. The result is `UtilityCompilation`: `css` includes everything, `prefixCss` contains theme and shared resources, `entries` lists emitted utility CSS in output order, and `classes` maps candidates to the callback result.
|
|
84
|
+
- `describeUtilityRecipe(candidateSource, theme)` returns `UtilityRecipe` for one already-resolved `CssxTheme`. It includes declaration `atoms`, required keyframes and property registrations in `resources`, and atom-level semantic `writes`.
|
|
85
|
+
- `compileStyleRecords(input, options?)` returns `CompiledStyleRecordMap` for one static style map. Its `styles` are runtime records, `classes` maps candidates to generated classes, and `candidates` preserves each style's parsed utility list.
|
|
86
|
+
- `compileStyleRecordMaps(inputs, options?)` returns `CompiledStyleRecordMaps` for several maps. It uses one class-name namespace and exposes the shared `classes` map.
|
|
87
|
+
- `classifyUtility(candidate)` returns a `UtilityConflictRecord` with the candidate's variant `scope`, write `group`, and cleared `conflicts`, or `null` when it cannot be composed safely.
|
|
88
|
+
- `mergeCompiledStyles(styles)` applies `CompiledStyle` records from left to right and returns the final class string. Later utilities clear conflicting earlier groups in the same scope.
|
|
89
|
+
|
|
90
|
+
### Types
|
|
91
|
+
|
|
92
|
+
- `CompilerOptions` configures high-level compilation. Its optional `theme` is CSSX `@theme` input, `className` controls generated class naming, and `reusabilityBudget` controls static class sharing.
|
|
93
|
+
- `StyleCompilerOptions` configures compiled record generation with the same optional `theme`, `className`, and `reusabilityBudget` inputs.
|
|
94
|
+
- `ClassNameOptions` defaults to `serial` names with an `s` prefix and `x` suffix. It can select `random` (stable hash), set a shared `prefix` or `suffix`, and set the random hash `length`.
|
|
95
|
+
- `ClassNameAllocator` maintains one collision-free naming namespace across independent compiler calls. Create one with `createClassNameAllocator(options?)`.
|
|
96
|
+
- `CssxRule` contains a stable generated `className` and its full `css`.
|
|
97
|
+
- `CompileResult` contains one map's `styles`, composite `classNames`, `rules`, generated atom `classes`, and parsed `candidates`.
|
|
98
|
+
- `CompileMapsResult` contains compiled `styleMaps` and shared `rules`.
|
|
99
|
+
- `CompiledStyle` is an opaque ABI-v2 runtime style record marked by `$$css`; `c` stores its composite class and `_` stores ordered `CompiledUtility` fallback records.
|
|
100
|
+
- `CompiledUtility` is the compact tuple used by `CompiledStyle`: class name or clear marker, scope, group, then conflict groups.
|
|
101
|
+
- `CompiledStyleRecordMap` contains one map's `styles`, candidate `classes`, and parsed `candidates`.
|
|
102
|
+
- `CompiledStyleRecordMaps` contains named `styleMaps` and their shared `classes`.
|
|
103
|
+
- `UtilityConflictRecord` describes a composable utility's `scope`, primary `group`, and `conflicts`.
|
|
104
|
+
- `UtilityDeclaration` is one emitted CSS declaration. It can include selector, at-rule, and semantic metadata for atomization and composition.
|
|
105
|
+
- `UtilityCompilation` is the result of `compileUtilities`, with complete `css`, shared `prefixCss`, ordered `entries`, and candidate `classes`.
|
|
106
|
+
- `UtilityCssEntry` contains one source `candidate` and the `css` emitted for it.
|
|
107
|
+
- `UtilityRecipe` describes one candidate's declaration `atoms`, shared `resources`, and semantic `writes`.
|
|
108
|
+
- `UtilityRecipeResources` lists required `keyframes` and registered custom `properties`.
|
|
109
|
+
- `UtilityWriteSet` names one atom's semantic `group` and `conflicts`.
|
|
110
|
+
- `CssxTheme` is resolved theme data: `tokens`, `keyframes`, output `mode`, and variable `prefix`.
|
|
111
|
+
- `ThemeOutputMode` is `inline`, `reference`, or `static`. Inline output writes resolved values in rules; reference output emits used variables; static output emits all theme variables.
|
|
112
|
+
|
|
113
|
+
`theme` is CSSX `@theme` input added to the default theme. CSSX validates it, resolves token references while building, and rejects invalid declarations, unsafe values, missing tokens, and circular references. Custom color and breakpoint tokens can define utility values without adding global CSS.
|
|
114
|
+
|
|
115
|
+
## Motion compilation
|
|
116
|
+
|
|
117
|
+
CSSX emits motion as native CSS declarations and at-rules. Transition and
|
|
118
|
+
animation longhands compose independently with shorthands; a later shorthand
|
|
119
|
+
resets its components, while a later longhand preserves the earlier shorthand
|
|
120
|
+
and overrides only that component. Referenced keyframes come from compiled
|
|
121
|
+
recipe declarations and are emitted once.
|
|
122
|
+
|
|
123
|
+
`motion-safe:` and `motion-reduce:` emit reduced-motion media queries.
|
|
124
|
+
`starting:` emits `@starting-style`. Scroll/view timeline, animation range, and
|
|
125
|
+
View Transition utilities are wrapped in property-specific feature queries.
|
|
126
|
+
`vt-old-[target]:`, `vt-new-[target]:`, `vt-group-[target]:`, and
|
|
127
|
+
`vt-image-pair-[target]:` emit terminal pseudo-element selectors intended for a
|
|
128
|
+
class on the document element.
|
|
129
|
+
|
|
130
|
+
The compiler does not add a motion runtime. It does not observe elements,
|
|
131
|
+
delay removal, interpret gestures, run spring simulations, project layout, or
|
|
132
|
+
initiate View Transition transactions. Spring utilities resolve to static
|
|
133
|
+
`linear()` easing tokens.
|
|
134
|
+
|
|
135
|
+
CSSX keeps property atoms internally when dynamic composition may need to
|
|
136
|
+
replace one channel, such as `px-4` followed by `pr-2`. Static style keys and
|
|
137
|
+
locally resolvable compositions still expose one composite class.
|
|
138
|
+
|
|
139
|
+
Historical compatibility references are documented in [`THIRD_PARTY_NOTICES.md`](THIRD_PARTY_NOTICES.md).
|
|
140
|
+
|
|
141
|
+
# Compiler build integrity
|
|
142
|
+
|
|
143
|
+
Each compiler build writes `dist/BUILD_MANIFEST.json`. It stores a SHA-256
|
|
144
|
+
hash for the source files and each published file. The package check compares
|
|
145
|
+
the manifest with the generated files before publishing.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Third-Party Reference Notice
|
|
2
|
+
|
|
3
|
+
CSSX previously used local, compiler-only reference snapshots while its
|
|
4
|
+
first-party candidate parser, semantic composition model, theme parser, and
|
|
5
|
+
utility registry were implemented. Those snapshots are no longer included in
|
|
6
|
+
this package and no active CSSX source imports their code.
|
|
7
|
+
|
|
8
|
+
The following MIT-licensed reference snapshots informed compatibility research
|
|
9
|
+
and the historical reference suite:
|
|
10
|
+
|
|
11
|
+
| Reference area | Revision | License |
|
|
12
|
+
| ----------------------------- | ------------------------------------------ | ------- |
|
|
13
|
+
| Utility compiler | `90f8ff41c8e2a4d17bc76921e23e9d672123da76` | MIT |
|
|
14
|
+
| Conflict classifier | `bceabfd95eab05553d15c5368b2684de697a84eb` | MIT |
|
|
15
|
+
| Transformation infrastructure | `a48cbbc4d41f5da3a464f884f3fce755814a430a` | MIT |
|
|
16
|
+
|
|
17
|
+
CSSX publishes independently written source. This notice records the
|
|
18
|
+
compatibility baseline and must be retained while the corresponding behavior
|
|
19
|
+
is documented or tested.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": 1,
|
|
3
|
+
"sourceHash": "a6b9a072d84f4764e3b724372d8ef0814054ceacb23d2cab829c76fc7109c90b",
|
|
4
|
+
"artifacts": {
|
|
5
|
+
"dist/index.cjs": "cc0a32b421cf1cffd0e85d4b7b1cd08278b9f009ab988a5f8ea483197b757935",
|
|
6
|
+
"dist/index.d.cts": "94c796164770348aec749702179342b5a4bbd156d3a34ada246c342f8086ff8c",
|
|
7
|
+
"dist/index.d.ts": "94c796164770348aec749702179342b5a4bbd156d3a34ada246c342f8086ff8c",
|
|
8
|
+
"dist/index.js": "cfbbb6d8113d38291b09672eaa663ba1fed26c2147bcd74d7af1aaede655d0d1"
|
|
9
|
+
}
|
|
10
|
+
}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var me=Object.defineProperty;var ur=Object.getOwnPropertyDescriptor;var dr=Object.getOwnPropertyNames;var mr=Object.prototype.hasOwnProperty;var fr=(e,t)=>{for(var r in t)me(e,r,{get:t[r],enumerable:!0})},gr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of dr(t))!mr.call(e,n)&&n!==r&&me(e,n,{get:()=>t[n],enumerable:!(o=ur(t,n))||o.enumerable});return e};var yr=e=>gr(me({},"__esModule",{value:!0}),e);var _o={};fr(_o,{classifyUtility:()=>Ne,compileSourceUtilities:()=>Yt,compileStyleMap:()=>jo,compileStyleMaps:()=>Oo,compileStyleRecordMaps:()=>re,compileStyleRecords:()=>ue,compileUtilities:()=>te,composeCompiledStyles:()=>sr,createClassNameAllocator:()=>de,createSelectorAliases:()=>je,describeUtilityRecipe:()=>ce,mergeCompiledStyles:()=>lr,parseTheme:()=>F,serializeCss:()=>Io,splitCandidateList:()=>ne,validateUtilityCandidate:()=>Jt});module.exports=yr(_o);var hr=new Set(["active","disabled","empty","enabled","even","first","focus","focus-visible","focus-within","hover","last","odd","open","required","target","visited"]),fe=new Map([["sm",10],["md",20],["lg",30],["xl",40],["2xl",50],["dark",60],["motion-safe",65],["motion-reduce",65],["print",70]]),br=16384,oe=32;function ne(e){if(e.length>br)throw new Error("CSSX utility list exceeds the 16 KiB limit.");let t=[],r="",o=0,n=0,i="",l=!1;for(let s of e){if(l){r+=s,l=!1;continue}if(s==="\\"){r+=s,l=!0;continue}if(i){r+=s,s===i&&(i="");continue}if(s==='"'||s==="'"){i=s,r+=s;continue}if(s==="["&&o++,s==="]"&&o--,s==="("&&n++,s===")"&&n--,o<0||n<0||o>oe||n>oe)throw new Error(`Invalid utility list "${e}".`);if(/\s/.test(s)&&o===0&&n===0){r&&t.push(r),r="";continue}r+=s}if(l||i||o!==0||n!==0)throw new Error(`Invalid utility list "${e}".`);return r&&t.push(r),t}function H(e){if(!e||e.length>500)throw new Error(`Invalid utility "${e}".`);let t=xr(e,":"),o=t.pop(),n=!1,i=!1;if(o.startsWith("!")&&(n=!0,o=o.slice(1)),o.endsWith("!")){if(n)throw new Error(`Invalid utility "${e}".`);n=!0,o=o.slice(0,-1)}if(o.startsWith("-")&&(i=!0,o=o.slice(1)),!o||o.startsWith("!")||o.endsWith("!")||Ve(o)||Le(o))throw new Error(`Invalid utility "${e}".`);let l=vr(t,e);return{raw:e,variants:l,utility:o,important:n,negative:i}}function Ge(e){let t=e.variants.join(":");return e.important?t?`${t}!`:"!":t}function xr(e,t){let r=[],o="",n=0,i=0,l="",s=!1;for(let p of e){if(s){o+=p,s=!1;continue}if(p==="\\"){o+=p,s=!0;continue}if(l){o+=p,p===l&&(l="");continue}if(p==='"'||p==="'"){l=p,o+=p;continue}if(p==="["&&n++,p==="]"&&n--,p==="("&&i++,p===")"&&i--,n<0||i<0||n>oe||i>oe)throw new Error(`Invalid utility "${e}".`);if(p===t&&n===0&&i===0){if(!o)throw new Error(`Invalid utility "${e}".`);r.push(o),o="";continue}o+=p}if(s||l||n!==0||i!==0)throw new Error(`Invalid utility "${e}".`);if(!o)throw new Error(`Invalid utility "${e}".`);return r.push(o),r}function vr(e,t){for(let o of e)if(!o||Ve(o)||Le(o))throw new Error(`Invalid utility "${t}".`);return e.every(o=>hr.has(o)||fe.has(o))?[...e].sort((o,n)=>{let i=fe.get(o)??100,l=fe.get(n)??100;return i-l||o.localeCompare(n)}):e}function Ve(e){let t=0,r=0,o="",n=!1;for(let i of e){if(n){n=!1;continue}if(i==="\\"){n=!0;continue}if(o){i===o&&(o="");continue}if(i==='"'||i==="'"){o=i;continue}if(i==="["&&t++,i==="]"&&t--,i==="("&&r++,i===")"&&r--,t===0&&r===0&&(i===";"||i==="{"||i==="}"))return!0}return!1}function Le(e){let t="",r=!1;for(let o of e){if(r){r=!1;continue}if(o==="\\"){r=!0;continue}if(t){o===t&&(t="");continue}if(o==='"'||o==="'"){t=o;continue}if(o===";"||o==="{"||o==="}")return!0}return!1}var Xe={p:["p","px","py","pt","pr","pb","pl","ps","pe"],px:["px","pl","pr","ps","pe"],py:["py","pt","pb"],m:["m","mx","my","mt","mr","mb","ml","ms","me"],mx:["mx","ml","mr","ms","me"],my:["my","mt","mb"],inset:["inset","inset-x","inset-y","top","right","bottom","left","start","end"],"inset-x":["inset-x","left","right","start","end"],"inset-y":["inset-y","top","bottom"],size:["size","width","height"],gap:["gap","row-gap","column-gap"],border:["border","border-x","border-y","border-top","border-right","border-bottom","border-left","border-inline-start","border-inline-end"],"border-width":["border-width","border-x","border-y","border-top","border-right","border-bottom","border-left","border-inline-start","border-inline-end"],"border-x":["border-x","border-left","border-right","border-inline-start","border-inline-end"],"border-y":["border-y","border-top","border-bottom"]};var Pe={block:{group:"display"},"inline-block":{group:"display"},inline:{group:"display"},flex:{group:"display"},"inline-flex":{group:"display"},grid:{group:"display"},"inline-grid":{group:"display"},table:{group:"display"},"inline-table":{group:"display"},"flow-root":{group:"display"},contents:{group:"display"},"list-item":{group:"display"},"sr-only":{group:"sr-only"},"not-sr-only":{group:"sr-only"},hidden:{group:"display"},static:{group:"position"},fixed:{group:"position"},absolute:{group:"position"},relative:{group:"position"},sticky:{group:"position"},visible:{group:"visibility"},invisible:{group:"visibility"},collapse:{group:"visibility"},"box-border":{group:"box-sizing"},"box-content":{group:"box-sizing"},isolate:{group:"isolation"},"isolation-auto":{group:"isolation"},border:{group:"border-width"},"border-none":{group:"border-style"},"border-hidden":{group:"border-style"},"border-dotted":{group:"border-style"},"border-dashed":{group:"border-style"},"border-solid":{group:"border-style"},"border-double":{group:"border-style"},"divide-x":{group:"divide-x"},"divide-y":{group:"divide-y"},outline:{group:"outline-width"},"outline-none":{group:"outline-style"},"outline-hidden":{group:"outline-hidden"},"outline-solid":{group:"outline-style"},"outline-dashed":{group:"outline-style"},"outline-dotted":{group:"outline-style"},"outline-double":{group:"outline-style"},rounded:{group:"border-radius"},shadow:{group:"box-shadow"},transition:{group:"transition-property"},transform:{group:"transform"},"transform-none":{group:"transform"},"transition-none":{group:"transition-property"},"transition-normal":{group:"transition-behavior"},"transition-discrete":{group:"transition-behavior"},blur:{group:"blur"},grayscale:{group:"grayscale"},invert:{group:"invert"},sepia:{group:"sepia"},"drop-shadow":{group:"drop-shadow"},"overflow-auto":{group:"overflow"},"overflow-hidden":{group:"overflow"},"overflow-clip":{group:"overflow"},"overflow-visible":{group:"overflow"},"overflow-scroll":{group:"overflow"},container:{group:"container"},"flex-row":{group:"flex-direction"},"flex-row-reverse":{group:"flex-direction"},"flex-col":{group:"flex-direction"},"flex-col-reverse":{group:"flex-direction"},"flex-wrap":{group:"flex-wrap"},"flex-wrap-reverse":{group:"flex-wrap"},"flex-nowrap":{group:"flex-wrap"},"font-thin":{group:"font-weight"},"font-extralight":{group:"font-weight"},"font-light":{group:"font-weight"},"font-normal":{group:"font-weight"},"font-medium":{group:"font-weight"},"font-semibold":{group:"font-weight"},"font-bold":{group:"font-weight"},"font-extrabold":{group:"font-weight"},"font-black":{group:"font-weight"},antialiased:{group:"font-smoothing"},"subpixel-antialiased":{group:"font-smoothing"},"normal-nums":{group:"numeric-normal"},ordinal:{group:"numeric-ordinal"},"slashed-zero":{group:"numeric-slashed-zero"},"lining-nums":{group:"numeric-lining-nums"},"oldstyle-nums":{group:"numeric-oldstyle-nums"},"proportional-nums":{group:"numeric-proportional-nums"},"tabular-nums":{group:"numeric-tabular-nums"},"diagonal-fractions":{group:"numeric-diagonal-fractions"},"stacked-fractions":{group:"numeric-stacked-fractions"},italic:{group:"font-style"},"not-italic":{group:"font-style"},truncate:{group:"truncate"},uppercase:{group:"text-transform"},lowercase:{group:"text-transform"},capitalize:{group:"text-transform"},"normal-case":{group:"text-transform"},underline:{group:"text-decoration-line"},overline:{group:"text-decoration-line"},"line-through":{group:"text-decoration-line"},"no-underline":{group:"text-decoration-line"},"pointer-events-none":{group:"pointer-events"},"pointer-events-auto":{group:"pointer-events"},"select-none":{group:"user-select"},"select-text":{group:"user-select"},"select-all":{group:"user-select"},"select-auto":{group:"user-select"},"appearance-none":{group:"appearance"},"appearance-auto":{group:"appearance"},"field-sizing-content":{group:"field-sizing"},"resize-none":{group:"resize"},"resize-x":{group:"resize"},"resize-y":{group:"resize"},resize:{group:"resize"},"scroll-auto":{group:"scroll-behavior"},"scroll-smooth":{group:"scroll-behavior"},"scrollbar-auto":{group:"scrollbar-width"},"scrollbar-thin":{group:"scrollbar-width"},"scrollbar-none":{group:"scrollbar-width"},"scrollbar-gutter-auto":{group:"scrollbar-gutter"},"scrollbar-gutter-stable":{group:"scrollbar-gutter"},"scrollbar-gutter-both":{group:"scrollbar-gutter"},"border-collapse":{group:"border-collapse"},"border-separate":{group:"border-collapse"},"table-auto":{group:"table-layout"},"table-fixed":{group:"table-layout"},"caption-top":{group:"caption-side"},"caption-bottom":{group:"caption-side"},"snap-none":{group:"scroll-snap-type"},"snap-x":{group:"scroll-snap-type"},"snap-y":{group:"scroll-snap-type"},"snap-both":{group:"scroll-snap-type"},"snap-mandatory":{group:"scroll-snap-strictness"},"snap-proximity":{group:"scroll-snap-strictness"},"snap-normal":{group:"scroll-snap-stop"},"snap-always":{group:"scroll-snap-stop"},"snap-start":{group:"scroll-snap-align"},"snap-end":{group:"scroll-snap-align"},"snap-center":{group:"scroll-snap-align"},"snap-align-none":{group:"scroll-snap-align"},"forced-color-adjust-auto":{group:"forced-color-adjust"},"forced-color-adjust-none":{group:"forced-color-adjust"},"accent-auto":{group:"accent-color"},"caret-auto":{group:"caret-color"},"fill-none":{group:"fill"},"stroke-none":{group:"stroke"}};var Be=[["content-visibility-","content-visibility"],["contain-intrinsic-inline-size-","contain-intrinsic-inline-size"],["contain-intrinsic-block-size-","contain-intrinsic-block-size"],["contain-intrinsic-size-","contain-intrinsic-size"],["contain-","contain"],["columns-","columns"],["break-before-","break-before"],["break-after-","break-after"],["break-inside-","break-inside"],["float-","float"],["clear-","clear"],["box-decoration-","box-decoration-break"],["line-clamp-","line-clamp"],["list-image-","list-style-image"],["list-","list-style-type"],["tab-","tab-size"],["whitespace-","white-space"],["hyphens-","hyphens"],["wrap-","overflow-wrap"],["table-","display"],["overflow-x-","overflow-x"],["overflow-y-","overflow-y"],["overscroll-x-","overscroll-x"],["overscroll-y-","overscroll-y"],["overscroll-","overscroll"],["object-","object"],["isolation-","isolation"],["z-","z-index"],["order-","order"],["col-span-","grid-column"],["col-start-","grid-column-start"],["col-end-","grid-column-end"],["row-span-","grid-row"],["row-start-","grid-row-start"],["row-end-","grid-row-end"],["grid-cols-","grid-template-columns"],["grid-rows-","grid-template-rows"],["grid-flow-","grid-auto-flow"],["auto-cols-","grid-auto-columns"],["auto-rows-","grid-auto-rows"],["place-content-","place-content"],["place-items-","place-items"],["place-self-","place-self"],["justify-items-","justify-items"],["justify-self-","justify-self"],["justify-","justify-content"],["items-","align-items"],["self-","align-self"],["content-","align-content"],["basis-","flex-basis"],["flex-","flex"],["grow","flex-grow"],["shrink","flex-shrink"],["aspect-","aspect-ratio"],["size-","size"],["min-inline-","min-inline-size"],["max-inline-","max-inline-size"],["inline-","inline-size"],["min-block-","min-block-size"],["max-block-","max-block-size"],["block-","block-size"],["min-w-","min-width"],["max-w-","max-width"],["min-h-","min-height"],["max-h-","max-height"],["w-","width"],["h-","height"],["inset-x-","inset-x"],["inset-y-","inset-y"],["inset-s-","start"],["inset-e-","end"],["inset-","inset"],["start-","inset-inline-start"],["end-","inset-inline-end"],["top-","top"],["right-","right"],["bottom-","bottom"],["left-","left"],["space-x-","space-x"],["space-y-","space-y"],["placeholder-","placeholder-color"],["underline-offset-","text-underline-offset"],["decoration-","text-decoration-thickness"],["divide-x-","divide-x"],["divide-y-","divide-y"],["divide-","divide-color"],["outline-offset-","outline-offset"],["outline-","outline-width"],["gap-x-","column-gap"],["gap-y-","row-gap"],["gap-","gap"],["scroll-mx-","scroll-margin-x"],["scroll-my-","scroll-margin-y"],["scroll-mt-","scroll-margin-top"],["scroll-mr-","scroll-margin-right"],["scroll-mb-","scroll-margin-bottom"],["scroll-ml-","scroll-margin-left"],["scroll-m-","scroll-margin"],["scroll-px-","scroll-padding-x"],["scroll-py-","scroll-padding-y"],["scroll-pt-","scroll-padding-top"],["scroll-pr-","scroll-padding-right"],["scroll-pb-","scroll-padding-bottom"],["scroll-pl-","scroll-padding-left"],["scroll-p-","scroll-padding"],["mx-","mx"],["my-","my"],["ms-","ms"],["me-","me"],["mt-","mt"],["mr-","mr"],["mb-","mb"],["ml-","ml"],["m-","m"],["px-","px"],["py-","py"],["ps-","ps"],["pe-","pe"],["pt-","pt"],["pr-","pr"],["pb-","pb"],["pl-","pl"],["p-","p"],["font-synthesis-","font-synthesis"],["font-optical-","font-optical-sizing"],["font-kerning-","font-kerning"],["font-","font-family"],["text-combine-upright-","text-combine-upright"],["text-orientation-","text-orientation"],["text-","text"],["leading-","line-height"],["tracking-","letter-spacing"],["indent-","text-indent"],["align-","vertical-align"],["whitespace-","white-space"],["break-","word-break"],["hyphens-","hyphens"],["bg-linear-to-","background-image"],["bg-linear-","background-image"],["bg-","background"],["accent-","accent-color"],["caret-","caret-color"],["stroke-miterlimit-","stroke-miterlimit"],["stroke-dasharray-","stroke-dasharray"],["stroke-dashoffset-","stroke-dashoffset"],["stroke-cap-","stroke-linecap"],["stroke-join-","stroke-linejoin"],["fill-rule-","fill-rule"],["clip-rule-","clip-rule"],["vector-effect-","vector-effect"],["paint-order-","paint-order"],["shape-rendering-","shape-rendering"],["fill-","fill"],["stroke-","stroke"],["scrollbar-thumb-","scrollbar-thumb"],["scrollbar-track-","scrollbar-track"],["scheme-","color-scheme"],["mask-","mask-image"],["from-","gradient-from"],["via-","gradient-via"],["to-","gradient-to"],["rounded-","border-radius"],["border-spacing-","border-spacing"],["border-x-","border-x"],["border-y-","border-y"],["border-s-","border-inline-start"],["border-e-","border-inline-end"],["border-t-","border-top"],["border-r-","border-right"],["border-b-","border-bottom"],["border-l-","border-left"],["border-","border"],["outline-","outline"],["ring-offset-","ring-offset"],["ring-","ring"],["shadow-","box-shadow"],["opacity-","opacity"],["mix-blend-","mix-blend-mode"],["bg-blend-","background-blend-mode"],["filter-","filter"],["blur-","blur"],["brightness-","brightness"],["contrast-","contrast"],["drop-shadow-","drop-shadow"],["grayscale-","grayscale"],["hue-rotate-","hue-rotate"],["invert-","invert"],["saturate-","saturate"],["sepia-","sepia"],["backdrop-","backdrop-filter"],["animation-name-","animation-name"],["animation-composition-","animation-composition"],["animation-timeline-","animation-timeline"],["animation-range-start-","animation-range-start"],["animation-range-end-","animation-range-end"],["animation-range-","animation-range"],["animation-duration-","animation-duration"],["animation-delay-","animation-delay"],["animation-ease-","animation-timing-function"],["animation-iterations-","animation-iteration-count"],["animation-direction-","animation-direction"],["animation-fill-","animation-fill-mode"],["animation-","animation-play-state"],["writing-","writing-mode"],["unicode-bidi-","unicode-bidi"],["image-render-","image-rendering"],["transition-","transition-property"],["duration-","transition-duration"],["delay-","transition-delay"],["ease-","transition-timing-function"],["animate-","animation"],["stagger-index-","stagger-index"],["stagger-count-","stagger-count"],["stagger-reverse","stagger-reverse"],["stagger-","stagger"],["scroll-timeline-name-","scroll-timeline-name"],["scroll-timeline-axis-","scroll-timeline-axis"],["view-timeline-name-","view-timeline-name"],["view-timeline-axis-","view-timeline-axis"],["view-timeline-inset-","view-timeline-inset"],["timeline-scope-","timeline-scope"],["view-transition-name-","view-transition-name"],["view-transition-class-","view-transition-class"],["origin-","transform-origin"],["scale-x-","scale-x"],["scale-y-","scale-y"],["scale-","scale"],["rotate-","rotate"],["translate-x-","translate-x"],["translate-y-","translate-y"],["skew-x-","skew-x"],["skew-y-","skew-y"],["cursor-","cursor"],["touch-","touch-action"],["will-change-","will-change"]];function J(e){let t=H(e),r=t.utility,o=kr(r);return o?{scope:Ge(t),group:o,conflicts:Xe[o]??[o]}:null}function kr(e){if(e.startsWith("[")&&e.endsWith("]"))return wr(e);let t=Pe[e];if(t)return t.group;for(let[r,o]of Be)if(e.startsWith(r))return $r(r,o,e);return null}function wr(e){let t=e.slice(1,-1).split(":",1)[0]?.trim().toLowerCase();return!t||!/^(--[a-z0-9_-]+|[a-z-]+)$/i.test(t)?null:`arbitrary..${t}`}function $r(e,t,r){if(e==="border-")return ge(r.slice(e.length))?"border-color":t;if(e==="outline-")return ge(r.slice(e.length))?"outline-color":t;if(e==="decoration-"){let n=r.slice(e.length);return/^(solid|double|dotted|dashed|wavy)$/.test(n)?"text-decoration-style":ge(n)?"text-decoration-color":t}if(e!=="text-")return t;let o=r.slice(e.length);return/^(xs|sm|base|lg|xl|\d+xl)$/.test(o)||o.startsWith("[")&&o.endsWith("]")&&Cr(o.slice(1,-1))?"font-size":/^(left|center|right|justify|start|end)$/.test(o)?"text-align":/^(ellipsis|clip|wrap|nowrap|balance|pretty)$/.test(o)?"text-overflow":"text-color"}function ge(e){let t=e.split("/",1)[0];return t.startsWith("[")||/^(?:transparent|current|black|white|[a-z-]+-\d{1,3})$/i.test(t)}function Cr(e){let t=e.replace(/^(?:length|size):/,"");return/^-?(?:\d+(?:\.\d+)?)(?:px|rem|em|ch|ex|vw|vh|vmin|vmax|%|cm|mm|in|pt|pc)$/i.test(t)||t.startsWith("calc(")}var Fe={"--color-red-50":"oklch(97.13% 0.013 17.38)","--color-red-100":"oklch(93.63% 0.032 17.717)","--color-red-200":"oklch(88.49% 0.062 18.334)","--color-red-300":"oklch(80.82% 0.114 19.571)","--color-red-400":"oklch(70.37% 0.191 22.216)","--color-red-500":"oklch(63.71% 0.237 25.331)","--color-red-600":"oklch(57.68% 0.245 27.325)","--color-red-700":"oklch(50.53% 0.213 27.518)","--color-red-800":"oklch(44.39% 0.177 26.899)","--color-red-900":"oklch(39.62% 0.141 25.723)","--color-red-950":"oklch(25.79% 0.092 26.042)","--color-orange-50":"oklch(97.97% 0.016 73.684)","--color-orange-100":"oklch(95.38% 0.038 75.164)","--color-orange-200":"oklch(90.11% 0.076 70.697)","--color-orange-300":"oklch(83.67% 0.128 66.29)","--color-orange-400":"oklch(75.02% 0.183 55.934)","--color-orange-500":"oklch(70.49% 0.213 47.604)","--color-orange-600":"oklch(64.63% 0.222 41.116)","--color-orange-700":"oklch(55.28% 0.195 38.402)","--color-orange-800":"oklch(47.01% 0.157 37.304)","--color-orange-900":"oklch(40.77% 0.123 38.172)","--color-orange-950":"oklch(26.61% 0.079 36.259)","--color-amber-50":"oklch(98.72% 0.022 95.277)","--color-amber-100":"oklch(96.23% 0.059 95.617)","--color-amber-200":"oklch(92.39% 0.12 95.746)","--color-amber-300":"oklch(87.92% 0.169 91.605)","--color-amber-400":"oklch(82.77% 0.189 84.429)","--color-amber-500":"oklch(76.91% 0.188 70.08)","--color-amber-600":"oklch(66.58% 0.179 58.318)","--color-amber-700":"oklch(55.53% 0.163 48.998)","--color-amber-800":"oklch(47.29% 0.137 46.201)","--color-amber-900":"oklch(41.42% 0.112 45.904)","--color-amber-950":"oklch(27.89% 0.077 45.635)","--color-yellow-50":"oklch(98.67% 0.026 102.212)","--color-yellow-100":"oklch(97.27% 0.071 103.193)","--color-yellow-200":"oklch(94.51% 0.129 101.54)","--color-yellow-300":"oklch(90.48% 0.182 98.111)","--color-yellow-400":"oklch(85.23% 0.199 91.936)","--color-yellow-500":"oklch(79.49% 0.184 86.047)","--color-yellow-600":"oklch(68.12% 0.162 75.834)","--color-yellow-700":"oklch(55.37% 0.135 66.442)","--color-yellow-800":"oklch(47.61% 0.114 61.907)","--color-yellow-900":"oklch(42.08% 0.095 57.708)","--color-yellow-950":"oklch(28.61% 0.066 53.813)","--color-lime-50":"oklch(98.62% 0.031 120.757)","--color-lime-100":"oklch(96.73% 0.067 122.328)","--color-lime-200":"oklch(93.79% 0.127 124.321)","--color-lime-300":"oklch(89.72% 0.196 126.665)","--color-lime-400":"oklch(84.07% 0.238 128.85)","--color-lime-500":"oklch(76.81% 0.233 130.85)","--color-lime-600":"oklch(64.78% 0.2 131.684)","--color-lime-700":"oklch(53.23% 0.157 131.589)","--color-lime-800":"oklch(45.29% 0.124 130.933)","--color-lime-900":"oklch(40.52% 0.101 131.063)","--color-lime-950":"oklch(27.39% 0.072 132.109)","--color-green-50":"oklch(98.23% 0.018 155.826)","--color-green-100":"oklch(96.21% 0.044 156.743)","--color-green-200":"oklch(92.48% 0.084 155.995)","--color-green-300":"oklch(87.13% 0.15 154.449)","--color-green-400":"oklch(79.19% 0.209 151.711)","--color-green-500":"oklch(72.32% 0.219 149.579)","--color-green-600":"oklch(62.67% 0.194 149.214)","--color-green-700":"oklch(52.71% 0.154 150.069)","--color-green-800":"oklch(44.78% 0.119 151.328)","--color-green-900":"oklch(39.33% 0.095 152.535)","--color-green-950":"oklch(26.58% 0.065 152.934)","--color-emerald-50":"oklch(97.87% 0.021 166.113)","--color-emerald-100":"oklch(94.97% 0.052 163.051)","--color-emerald-200":"oklch(90.51% 0.093 164.15)","--color-emerald-300":"oklch(84.48% 0.143 164.978)","--color-emerald-400":"oklch(76.53% 0.177 163.223)","--color-emerald-500":"oklch(69.59% 0.17 162.48)","--color-emerald-600":"oklch(59.62% 0.145 163.225)","--color-emerald-700":"oklch(50.77% 0.118 165.612)","--color-emerald-800":"oklch(43.21% 0.095 166.913)","--color-emerald-900":"oklch(37.78% 0.077 168.94)","--color-emerald-950":"oklch(26.21% 0.051 172.552)","--color-teal-50":"oklch(98.37% 0.014 180.72)","--color-teal-100":"oklch(95.27% 0.051 180.801)","--color-teal-200":"oklch(91.01% 0.096 180.426)","--color-teal-300":"oklch(85.48% 0.138 181.071)","--color-teal-400":"oklch(77.73% 0.152 181.912)","--color-teal-500":"oklch(70.39% 0.14 182.503)","--color-teal-600":"oklch(60.02% 0.118 184.704)","--color-teal-700":"oklch(51.07% 0.096 186.391)","--color-teal-800":"oklch(43.71% 0.078 188.216)","--color-teal-900":"oklch(38.58% 0.063 188.416)","--color-teal-950":"oklch(27.71% 0.046 192.524)","--color-cyan-50":"oklch(98.42% 0.019 200.873)","--color-cyan-100":"oklch(95.61% 0.045 203.388)","--color-cyan-200":"oklch(91.67% 0.08 205.041)","--color-cyan-300":"oklch(86.52% 0.127 207.078)","--color-cyan-400":"oklch(78.89% 0.154 211.53)","--color-cyan-500":"oklch(71.53% 0.143 215.221)","--color-cyan-600":"oklch(60.88% 0.126 221.723)","--color-cyan-700":"oklch(52.01% 0.105 223.128)","--color-cyan-800":"oklch(44.97% 0.085 224.283)","--color-cyan-900":"oklch(39.82% 0.07 227.392)","--color-cyan-950":"oklch(30.17% 0.056 229.695)","--color-sky-50":"oklch(97.72% 0.013 236.62)","--color-sky-100":"oklch(95.12% 0.026 236.824)","--color-sky-200":"oklch(90.09% 0.058 230.902)","--color-sky-300":"oklch(82.83% 0.111 230.318)","--color-sky-400":"oklch(74.58% 0.16 232.661)","--color-sky-500":"oklch(68.51% 0.169 237.323)","--color-sky-600":"oklch(58.77% 0.158 241.966)","--color-sky-700":"oklch(50.02% 0.134 242.749)","--color-sky-800":"oklch(44.29% 0.11 240.79)","--color-sky-900":"oklch(39.13% 0.09 240.876)","--color-sky-950":"oklch(29.29% 0.066 243.157)","--color-blue-50":"oklch(96.98% 0.014 254.604)","--color-blue-100":"oklch(93.19% 0.032 255.585)","--color-blue-200":"oklch(88.23% 0.059 254.128)","--color-blue-300":"oklch(80.88% 0.105 251.813)","--color-blue-400":"oklch(70.71% 0.165 254.624)","--color-blue-500":"oklch(62.27% 0.214 259.815)","--color-blue-600":"oklch(54.62% 0.245 262.881)","--color-blue-700":"oklch(48.79% 0.243 264.376)","--color-blue-800":"oklch(42.43% 0.199 265.638)","--color-blue-900":"oklch(37.88% 0.146 265.522)","--color-blue-950":"oklch(28.23% 0.091 267.935)","--color-indigo-50":"oklch(96.17% 0.018 272.314)","--color-indigo-100":"oklch(92.97% 0.034 272.788)","--color-indigo-200":"oklch(87.01% 0.065 274.039)","--color-indigo-300":"oklch(78.48% 0.115 274.713)","--color-indigo-400":"oklch(67.33% 0.182 276.935)","--color-indigo-500":"oklch(58.49% 0.233 277.117)","--color-indigo-600":"oklch(51.12% 0.262 276.966)","--color-indigo-700":"oklch(45.67% 0.24 277.023)","--color-indigo-800":"oklch(39.81% 0.195 277.366)","--color-indigo-900":"oklch(35.88% 0.144 278.697)","--color-indigo-950":"oklch(25.71% 0.09 281.288)","--color-violet-50":"oklch(96.92% 0.016 293.756)","--color-violet-100":"oklch(94.33% 0.029 294.588)","--color-violet-200":"oklch(89.38% 0.057 293.283)","--color-violet-300":"oklch(81.11% 0.111 293.571)","--color-violet-400":"oklch(70.17% 0.183 293.541)","--color-violet-500":"oklch(60.62% 0.25 292.717)","--color-violet-600":"oklch(54.09% 0.281 293.009)","--color-violet-700":"oklch(49.13% 0.27 292.581)","--color-violet-800":"oklch(43.18% 0.232 292.759)","--color-violet-900":"oklch(38.01% 0.189 293.745)","--color-violet-950":"oklch(28.28% 0.141 291.089)","--color-purple-50":"oklch(97.68% 0.014 308.299)","--color-purple-100":"oklch(94.59% 0.033 307.174)","--color-purple-200":"oklch(90.22% 0.063 306.703)","--color-purple-300":"oklch(82.67% 0.119 306.383)","--color-purple-400":"oklch(71.41% 0.203 305.504)","--color-purple-500":"oklch(62.68% 0.265 303.9)","--color-purple-600":"oklch(55.83% 0.288 302.321)","--color-purple-700":"oklch(49.59% 0.265 301.924)","--color-purple-800":"oklch(43.82% 0.218 303.724)","--color-purple-900":"oklch(38.07% 0.176 304.987)","--color-purple-950":"oklch(29.12% 0.149 302.717)","--color-fuchsia-50":"oklch(97.72% 0.017 320.058)","--color-fuchsia-100":"oklch(95.23% 0.037 318.852)","--color-fuchsia-200":"oklch(90.29% 0.076 319.62)","--color-fuchsia-300":"oklch(83.32% 0.145 321.434)","--color-fuchsia-400":"oklch(73.97% 0.238 322.16)","--color-fuchsia-500":"oklch(66.71% 0.295 322.15)","--color-fuchsia-600":"oklch(59.08% 0.293 322.896)","--color-fuchsia-700":"oklch(51.83% 0.253 323.949)","--color-fuchsia-800":"oklch(45.19% 0.211 324.591)","--color-fuchsia-900":"oklch(40.12% 0.17 325.612)","--color-fuchsia-950":"oklch(29.29% 0.136 325.661)","--color-pink-50":"oklch(97.08% 0.014 343.198)","--color-pink-100":"oklch(94.78% 0.028 342.258)","--color-pink-200":"oklch(89.91% 0.061 343.231)","--color-pink-300":"oklch(82.27% 0.12 346.018)","--color-pink-400":"oklch(71.82% 0.202 349.761)","--color-pink-500":"oklch(65.59% 0.241 354.308)","--color-pink-600":"oklch(59.23% 0.249 0.584)","--color-pink-700":"oklch(52.48% 0.223 3.958)","--color-pink-800":"oklch(45.91% 0.187 3.815)","--color-pink-900":"oklch(40.77% 0.153 2.432)","--color-pink-950":"oklch(28.41% 0.109 3.907)","--color-rose-50":"oklch(96.91% 0.015 12.422)","--color-rose-100":"oklch(94.13% 0.03 12.58)","--color-rose-200":"oklch(89.18% 0.058 10.001)","--color-rose-300":"oklch(81.01% 0.117 11.638)","--color-rose-400":"oklch(71.17% 0.194 13.428)","--color-rose-500":"oklch(64.52% 0.246 16.439)","--color-rose-600":"oklch(58.59% 0.253 17.585)","--color-rose-700":"oklch(51.43% 0.222 16.935)","--color-rose-800":"oklch(45.48% 0.188 13.697)","--color-rose-900":"oklch(41.01% 0.159 10.272)","--color-rose-950":"oklch(27.08% 0.105 12.094)","--color-slate-50":"oklch(98.42% 0.003 247.858)","--color-slate-100":"oklch(96.83% 0.007 247.896)","--color-slate-200":"oklch(92.88% 0.013 255.508)","--color-slate-300":"oklch(86.91% 0.022 252.894)","--color-slate-400":"oklch(70.37% 0.04 256.788)","--color-slate-500":"oklch(55.42% 0.046 257.417)","--color-slate-600":"oklch(44.59% 0.043 257.281)","--color-slate-700":"oklch(37.23% 0.044 257.287)","--color-slate-800":"oklch(27.88% 0.041 260.031)","--color-slate-900":"oklch(20.81% 0.042 265.755)","--color-slate-950":"oklch(12.88% 0.042 264.695)","--color-gray-50":"oklch(98.53% 0.002 247.839)","--color-gray-100":"oklch(96.72% 0.003 264.542)","--color-gray-200":"oklch(92.79% 0.006 264.531)","--color-gray-300":"oklch(87.23% 0.01 258.338)","--color-gray-400":"oklch(70.68% 0.022 261.325)","--color-gray-500":"oklch(55.11% 0.027 264.364)","--color-gray-600":"oklch(44.57% 0.03 256.802)","--color-gray-700":"oklch(37.32% 0.034 259.733)","--color-gray-800":"oklch(27.79% 0.033 256.848)","--color-gray-900":"oklch(21.03% 0.034 264.665)","--color-gray-950":"oklch(12.99% 0.028 261.692)","--color-zinc-50":"oklch(98.47% 0 none)","--color-zinc-100":"oklch(96.69% 0.001 286.375)","--color-zinc-200":"oklch(92.03% 0.004 286.32)","--color-zinc-300":"oklch(87.08% 0.006 286.286)","--color-zinc-400":"oklch(70.51% 0.015 286.067)","--color-zinc-500":"oklch(55.17% 0.016 285.938)","--color-zinc-600":"oklch(44.22% 0.017 285.786)","--color-zinc-700":"oklch(36.99% 0.013 285.805)","--color-zinc-800":"oklch(27.43% 0.006 286.033)","--color-zinc-900":"oklch(20.98% 0.006 285.885)","--color-zinc-950":"oklch(14.13% 0.005 285.823)","--color-neutral-50":"oklch(98.52% 0 none)","--color-neutral-100":"oklch(97.01% 0 none)","--color-neutral-200":"oklch(92.17% 0 none)","--color-neutral-300":"oklch(87.02% 0 none)","--color-neutral-400":"oklch(70.79% 0 none)","--color-neutral-500":"oklch(55.63% 0 none)","--color-neutral-600":"oklch(43.88% 0 none)","--color-neutral-700":"oklch(37.11% 0 none)","--color-neutral-800":"oklch(26.87% 0 none)","--color-neutral-900":"oklch(20.52% 0 none)","--color-neutral-950":"oklch(14.47% 0 none)","--color-stone-50":"oklch(98.53% 0.001 106.423)","--color-stone-100":"oklch(97.03% 0.001 106.424)","--color-stone-200":"oklch(92.29% 0.003 48.717)","--color-stone-300":"oklch(86.92% 0.005 56.366)","--color-stone-400":"oklch(70.87% 0.01 56.259)","--color-stone-500":"oklch(55.31% 0.013 58.071)","--color-stone-600":"oklch(44.38% 0.011 73.639)","--color-stone-700":"oklch(37.43% 0.01 67.558)","--color-stone-800":"oklch(26.79% 0.007 34.298)","--color-stone-900":"oklch(21.62% 0.006 56.043)","--color-stone-950":"oklch(14.69% 0.004 49.25)","--color-mauve-50":"oklch(98.49% 0 none)","--color-mauve-100":"oklch(95.98% 0.003 325.6)","--color-mauve-200":"oklch(92.23% 0.005 325.62)","--color-mauve-300":"oklch(86.49% 0.012 325.68)","--color-mauve-400":"oklch(71.12% 0.019 323.02)","--color-mauve-500":"oklch(54.17% 0.034 322.5)","--color-mauve-600":"oklch(43.51% 0.029 321.78)","--color-mauve-700":"oklch(36.38% 0.029 323.89)","--color-mauve-800":"oklch(26.33% 0.024 320.12)","--color-mauve-900":"oklch(21.19% 0.019 322.12)","--color-mauve-950":"oklch(14.53% 0.008 326)","--color-olive-50":"oklch(98.83% 0.003 106.5)","--color-olive-100":"oklch(96.63% 0.005 106.5)","--color-olive-200":"oklch(92.99% 0.007 106.5)","--color-olive-300":"oklch(88.02% 0.011 106.6)","--color-olive-400":"oklch(73.67% 0.021 106.9)","--color-olive-500":"oklch(58.01% 0.031 107.3)","--color-olive-600":"oklch(46.58% 0.025 107.3)","--color-olive-700":"oklch(39.43% 0.023 107.4)","--color-olive-800":"oklch(28.59% 0.016 107.4)","--color-olive-900":"oklch(22.82% 0.013 107.4)","--color-olive-950":"oklch(15.29% 0.006 107.1)","--color-mist-50":"oklch(98.73% 0.002 197.1)","--color-mist-100":"oklch(96.32% 0.002 197.1)","--color-mist-200":"oklch(92.49% 0.005 214.3)","--color-mist-300":"oklch(87.23% 0.007 219.6)","--color-mist-400":"oklch(72.28% 0.014 214.4)","--color-mist-500":"oklch(56.01% 0.021 213.5)","--color-mist-600":"oklch(44.97% 0.017 213.2)","--color-mist-700":"oklch(37.82% 0.015 216)","--color-mist-800":"oklch(27.49% 0.011 216.9)","--color-mist-900":"oklch(21.83% 0.008 223.9)","--color-mist-950":"oklch(14.79% 0.004 228.8)","--color-taupe-50":"oklch(98.63% 0.002 67.8)","--color-taupe-100":"oklch(96.02% 0.002 17.2)","--color-taupe-200":"oklch(92.17% 0.005 34.3)","--color-taupe-300":"oklch(86.81% 0.007 39.5)","--color-taupe-400":"oklch(71.38% 0.014 41.2)","--color-taupe-500":"oklch(54.73% 0.021 43.1)","--color-taupe-600":"oklch(43.79% 0.017 39.3)","--color-taupe-700":"oklch(36.72% 0.016 35.7)","--color-taupe-800":"oklch(26.77% 0.011 36.5)","--color-taupe-900":"oklch(21.41% 0.009 43.1)","--color-taupe-950":"oklch(14.67% 0.004 49.3)","--color-blue-gray-50":"oklch(95.01% 0.004 236.498)","--color-blue-gray-100":"oklch(87.64% 0.011 225.999)","--color-blue-gray-200":"oklch(79.30% 0.018 229.071)","--color-blue-gray-300":"oklch(70.61% 0.027 229.306)","--color-blue-gray-400":"oklch(63.89% 0.033 229.545)","--color-blue-gray-500":"oklch(57.22% 0.040 229.025)","--color-blue-gray-600":"oklch(52.24% 0.036 227.881)","--color-blue-gray-700":"oklch(45.40% 0.030 228.623)","--color-blue-gray-800":"oklch(38.75% 0.025 229.789)","--color-blue-gray-900":"oklch(30.84% 0.019 229.784)","--color-blue-gray-950":"oklch(23.03% 0.014 229.775)","--color-brown-50":"oklch(94.24% 0.005 48.684)","--color-brown-100":"oklch(85.29% 0.013 41.187)","--color-brown-200":"oklch(75.19% 0.023 39.348)","--color-brown-300":"oklch(64.68% 0.033 40.796)","--color-brown-400":"oklch(56.57% 0.043 40.432)","--color-brown-500":"oklch(48.43% 0.053 40.694)","--color-brown-600":"oklch(44.98% 0.049 39.211)","--color-brown-700":"oklch(40.14% 0.044 37.959)","--color-brown-800":"oklch(35.39% 0.039 33.474)","--color-brown-900":"oklch(29.97% 0.036 30.204)","--color-brown-950":"oklch(24.65% 0.032 26.239)","--color-deep-orange-50":"oklch(94.81% 0.020 25.173)","--color-deep-orange-100":"oklch(88.60% 0.062 38.131)","--color-deep-orange-200":"oklch(81.68% 0.106 37.938)","--color-deep-orange-300":"oklch(75.48% 0.151 38.258)","--color-deep-orange-400":"oklch(71.21% 0.185 37.768)","--color-deep-orange-500":"oklch(67.93% 0.213 36.532)","--color-deep-orange-600":"oklch(65.45% 0.208 36.327)","--color-deep-orange-700":"oklch(62.43% 0.200 36.191)","--color-deep-orange-800":"oklch(59.29% 0.193 35.896)","--color-deep-orange-900":"oklch(53.65% 0.180 35.371)","--color-deep-orange-950":"oklch(47.94% 0.167 34.765)","--color-light-green-50":"oklch(96.97% 0.021 127.381)","--color-light-green-100":"oklch(92.37% 0.052 127.543)","--color-light-green-200":"oklch(87.45% 0.085 128.378)","--color-light-green-300":"oklch(82.50% 0.118 129.001)","--color-light-green-400":"oklch(78.88% 0.143 129.766)","--color-light-green-500":"oklch(75.34% 0.163 130.502)","--color-light-green-600":"oklch(70.52% 0.155 131.384)","--color-light-green-700":"oklch(64.22% 0.147 133.015)","--color-light-green-800":"oklch(57.92% 0.137 134.665)","--color-light-green-900":"oklch(46.64% 0.121 138.274)","--color-light-green-950":"oklch(35.47% 0.107 142.904)","--color-light-blue-50":"oklch(95.82% 0.024 226.470)","--color-light-blue-100":"oklch(89.50% 0.060 227.768)","--color-light-blue-200":"oklch(83.07% 0.097 229.091)","--color-light-blue-300":"oklch(77.28% 0.127 231.115)","--color-light-blue-400":"oklch(73.34% 0.145 234.615)","--color-light-blue-500":"oklch(69.92% 0.157 238.994)","--color-light-blue-600":"oklch(65.84% 0.152 240.754)","--color-light-blue-700":"oklch(60.32% 0.147 243.459)","--color-light-blue-800":"oklch(55.07% 0.139 245.433)","--color-light-blue-900":"oklch(45.22% 0.131 251.008)","--color-light-blue-950":"oklch(35.31% 0.124 257.277)","--color-deep-purple-50":"oklch(93.71% 0.021 304.024)","--color-deep-purple-100":"oklch(84.28% 0.053 301.289)","--color-deep-purple-200":"oklch(73.71% 0.091 300.462)","--color-deep-purple-300":"oklch(63.00% 0.132 299.358)","--color-deep-purple-400":"oklch(54.94% 0.162 297.661)","--color-deep-purple-500":"oklch(47.44% 0.186 294.782)","--color-deep-purple-600":"oklch(45.29% 0.185 292.630)","--color-deep-purple-700":"oklch(42.16% 0.183 289.492)","--color-deep-purple-800":"oklch(39.43% 0.181 286.039)","--color-deep-purple-900":"oklch(34.76% 0.179 280.108)","--color-deep-purple-950":"oklch(30.00% 0.178 274.080)"};var ye={...Fe,"--spacing":"0.25rem","--breakpoint-xs":"30rem","--breakpoint-sm":"40rem","--breakpoint-md":"48rem","--breakpoint-lg":"64rem","--breakpoint-xl":"80rem","--breakpoint-2xl":"96rem","--color-black":"#000","--color-white":"#fff","--color-transparent":"transparent","--color-gray-50":"#f9fafb","--color-gray-100":"#f3f4f6","--color-gray-200":"#e5e7eb","--color-gray-300":"#d1d5db","--color-gray-400":"#9ca3af","--color-gray-500":"#6b7280","--color-gray-600":"#4b5563","--color-gray-700":"#374151","--color-gray-800":"#1f2937","--color-gray-900":"#111827","--color-red-50":"#fef2f2","--color-red-100":"#fee2e2","--color-red-200":"#fecaca","--color-red-300":"#fca5a5","--color-red-400":"#f87171","--color-red-500":"#ef4444","--color-red-600":"#dc2626","--color-red-700":"#b91c1c","--color-red-800":"#991b1b","--color-red-900":"#7f1d1d","--color-blue-50":"#eff6ff","--color-blue-100":"#dbeafe","--color-blue-200":"#bfdbfe","--color-blue-300":"#93c5fd","--color-blue-400":"#60a5fa","--color-blue-500":"#3b82f6","--color-blue-600":"#2563eb","--color-blue-700":"#1d4ed8","--color-blue-800":"#1e40af","--color-blue-900":"#1e3a8a","--color-green-500":"#22c55e","--color-yellow-500":"#eab308","--color-purple-500":"#a855f7","--duration-instant":"0ms","--duration-fast":"100ms","--duration-normal":"200ms","--duration-slow":"300ms","--duration-slower":"500ms","--delay-none":"0ms","--delay-short":"75ms","--delay-normal":"150ms","--delay-long":"300ms","--ease-standard":"cubic-bezier(.4, 0, .2, 1)","--ease-expressive":"cubic-bezier(.2, .8, .2, 1)","--ease-spring-snappy":"linear(0, 0.0962 6.25%, 0.3058 12.5%, 0.54 18.75%, 0.7469 25%, 0.9032 31.25%, 1.0051 37.5%, 1.06 43.75%, 1.0801 50%, 1.078 56.25%, 1.0642 62.5%, 1.0466 68.75%, 1.03 75%, 1.0167 81.25%, 1.0076 87.5%, 1.0023 93.75%, 1)","--ease-spring-gentle":"linear(0, 0.0594 5%, 0.1857 10%, 0.3294 15%, 0.4659 20%, 0.5849 25%, 0.6833 30%, 0.762 35%, 0.8234 40%, 0.8704 45%, 0.9059 50%, 0.9324 55%, 0.952 60%, 0.9664 65%, 0.9768 70%, 0.9844 75%, 0.9899 80%, 0.9938 85%, 0.9966 90%, 0.9986 95%, 1)","--ease-spring-bouncy":"linear(0, 0.0922 4%, 0.3092 8%, 0.5705 12%, 0.8157 16%, 1.0078 20%, 1.1318 24%, 1.1895 28%, 1.1937 32%, 1.162 36%, 1.1122 40%, 1.0591 44%, 1.0131 48%, 0.9797 52%, 0.9604 56%, 0.9536 60%, 0.9563 64%, 0.9648 68%, 0.9755 72%, 0.9859 76%, 0.9943 80%, 0.9999 84%, 1.0027 88%, 1.0031 92%, 1.002 96%, 1)","--ease-spring-soft":"linear(0, 0.0436 4%, 0.1414 8%, 0.2597 12%, 0.3793 16%, 0.4901 20%, 0.5878 24%, 0.6709 28%, 0.74 32%, 0.7964 36%, 0.8418 40%, 0.878 44%, 0.9065 48%, 0.9288 52%, 0.9461 56%, 0.9595 60%, 0.9698 64%, 0.9778 68%, 0.9838 72%, 0.9884 76%, 0.9919 80%, 0.9945 84%, 0.9965 88%, 0.998 92%, 0.9992 96%, 1)","--stagger-tight":"40ms","--stagger-normal":"75ms","--stagger-relaxed":"120ms","--animate-spin":"spin 1s linear infinite","--animate-ping":"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite","--animate-pulse":"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite","--animate-bounce":"bounce 1s infinite","--animate-fade-in":"fade-in 200ms cubic-bezier(0, 0, .2, 1) both","--animate-fade-out":"fade-out 150ms cubic-bezier(.4, 0, 1, 1) both","--animate-slide-in-up":"slide-in-up 200ms cubic-bezier(0, 0, .2, 1) both","--animate-slide-in-down":"slide-in-down 200ms cubic-bezier(0, 0, .2, 1) both","--animate-slide-in-left":"slide-in-left 200ms cubic-bezier(0, 0, .2, 1) both","--animate-slide-in-right":"slide-in-right 200ms cubic-bezier(0, 0, .2, 1) both","--animate-scale-in":"scale-in 200ms cubic-bezier(0, 0, .2, 1) both","--animate-scale-out":"scale-out 150ms cubic-bezier(.4, 0, 1, 1) both","--animate-shimmer":"shimmer 2s linear infinite"},he={spin:"@keyframes spin{to{rotate:360deg;}}",ping:"@keyframes ping{75%,100%{scale:2;opacity:0;}}",pulse:"@keyframes pulse{50%{opacity:.5;}}",bounce:"@keyframes bounce{0%,100%{translate:0 -25%;animation-timing-function:cubic-bezier(.8,0,1,1);}50%{translate:0 0;animation-timing-function:cubic-bezier(0,0,.2,1);}}","fade-in":"@keyframes fade-in{from{opacity:0;}to{opacity:1;}}","fade-out":"@keyframes fade-out{from{opacity:1;}to{opacity:0;}}","slide-in-up":"@keyframes slide-in-up{from{translate:0 1rem;}to{translate:0 0;}}","slide-in-down":"@keyframes slide-in-down{from{translate:0 -1rem;}to{translate:0 0;}}","slide-in-left":"@keyframes slide-in-left{from{translate:-1rem 0;}to{translate:0 0;}}","slide-in-right":"@keyframes slide-in-right{from{translate:1rem 0;}to{translate:0 0;}}","scale-in":"@keyframes scale-in{from{scale:.95;opacity:0;}to{scale:1;opacity:1;}}","scale-out":"@keyframes scale-out{from{scale:1;opacity:1;}to{scale:.95;opacity:0;}}",shimmer:"@keyframes shimmer{from{background-position:200% 0;}to{background-position:-200% 0;}}"};var Rr=131072,Sr=Object.freeze({tokens:Object.freeze({...ye}),keyframes:Object.freeze({...he}),mode:"inline",prefix:""});function F(e=""){if(e.length>Rr)throw new Error("CSSX theme input exceeds the 128 KiB limit.");if(!e.trim())return Sr;let t={...ye},r={...he},o="inline",n="",i,l=0;for(;l<e.length&&(l=Y(e,l),!(l>=e.length));){if(!e.startsWith("@theme",l))throw new Error("CSSX theme input only accepts @theme blocks.");l+=6,l=Y(e,l);let s=zr(e,l);if(s){let m=`${s.mode}:${s.prefix}`;if(i!==void 0&&i!==m)throw new Error("CSSX theme blocks cannot use conflicting output modes or prefixes.");i=m,o=s.mode,n=s.prefix,l=Y(e,s.end)}if(e[l]!=="{")throw new Error('Expected "{" after @theme.');let p=ke(e,l),d=Ur(p.content,r);Ar(d,t),l=p.end}return Object.freeze({tokens:Object.freeze(t),keyframes:Object.freeze(r),mode:o,prefix:n})}function zr(e,t){let r=/^(default|inline|reference|static)\b/.exec(e.slice(t));if(r)return{mode:r[1]==="reference"||r[1]==="static"?r[1]:"inline",prefix:"",end:t+r[0].length};let o=/^prefix\(([a-z_][a-z0-9_-]*)\)/i.exec(e.slice(t));return o?{mode:"reference",prefix:o[1],end:t+o[0].length}:null}function Ur(e,t){let r="",o=0;for(;o<e.length;){if(e.startsWith("@keyframes",o)){o+=10,o=Y(e,o);let n=o;for(;/[a-z0-9_-]/i.test(e[o]);)o++;let i=e.slice(n,o);if(!/^[a-z_][a-z0-9_-]*$/i.test(i))throw new Error("Invalid CSSX @keyframes name.");if(o=Y(e,o),e[o]!=="{")throw new Error(`Expected "{" after @keyframes ${i}.`);let l=ke(e,o);Tr(l.content,i),t[i]=`@keyframes ${i}{${l.content}}`,o=l.end;continue}r+=e[o],o++}return r}function Tr(e,t){let r=0;for(;r<e.length;){if(r=Y(e,r),r>=e.length)return;let o=r;for(;e[r]!=="{"&&r<e.length;)r++;let n=e.slice(o,r).trim();if(!n||!n.split(",").every(l=>/^(from|to|\d{1,3}(?:\.\d+)?%)$/.test(l.trim())))throw new Error(`Invalid CSSX @keyframes selector in ${t}.`);if(e[r]!=="{")throw new Error(`Unterminated CSSX @keyframes ${t}.`);let i=ke(e,r);for(let l of Ye(i.content)){let s=l.indexOf(":"),p=l.slice(0,s).trim(),d=l.slice(s+1).trim();if(s===-1||!/^(--[a-z0-9_-]+|[a-z-]+)$/i.test(p)||!d||/[{};]/.test(d))throw new Error(`Invalid CSSX @keyframes declaration in ${t}.`)}r=i.end}}function A(e,t){let r=D(e,t);if(r!==void 0)return e.mode==="inline"?r:`var(${ve(e,t)})`}function D(e,t){let r=e.tokens[t];if(!(r===void 0||r==="initial"))return He(e.tokens,r,new Set([t]))}function be(e,t){if(e.mode==="inline")return"";let r=e.mode==="static"?Object.keys(e.tokens):Er(e,t);return r.length===0?"":`:root{${r.sort().map(o=>`${ve(e,o)}:${Ke(e,e.tokens[o])}`).join(";")}}`}function xe(e,t){let r=e.keyframes[t];return r===void 0?void 0:Ke(e,r)}function Er(e,t){let r=e.prefix?`--${e.prefix}-`:"--",o=new Set,n=new RegExp(`var\\((${r.replace("-","\\-")}[a-z0-9_-]+)`,"gi");for(let i of t.matchAll(n)){let l=i[1],s=e.prefix?`--${l.slice(r.length)}`:l;qe(e,s,o)}return[...o]}function qe(e,t,r){if(!(r.has(t)||e.tokens[t]===void 0||e.tokens[t]==="initial")){r.add(t);for(let o of e.tokens[t].matchAll(/var\((--[a-z0-9_-]+)/gi))qe(e,o[1],r)}}function Ke(e,t){return t.replace(/var\((--[a-z0-9_-]+)/gi,(r,o)=>`var(${ve(e,o)}`)}function ve(e,t){return e.prefix?`--${e.prefix}-${t.slice(2)}`:t}function Ar(e,t){for(let r of Ye(e)){let o=r.indexOf(":");if(o===-1)throw new Error(`Invalid CSSX @theme declaration "${r}".`);let n=r.slice(0,o).trim(),i=r.slice(o+1).trim();if(n==="--*"||/^--[a-z0-9-]+-\*$/i.test(n)){if(i!=="initial")throw new Error(`CSSX theme namespace reset "${n}" must use initial.`);let l=n==="--*"?"--":n.slice(0,-1);for(let s of Object.keys(t))s.startsWith(l)&&delete t[s];continue}if(!/^--[a-z0-9-]+$/i.test(n)||!i||/[{};]/.test(i))throw new Error(`Invalid CSSX @theme declaration "${r}".`);t[n]=i}}function He(e,t,r){return t.replace(/var\((--[a-z0-9-]+)\)/gi,(o,n)=>{if(r.has(n))throw new Error(`Circular CSSX theme reference involving ${n}.`);let i=e[n];if(i===void 0||i==="initial")throw new Error(`Unknown CSSX theme token ${n}.`);return He(e,i,new Set([...r,n]))})}function Ye(e){let t=[],r="",o="",n=!1,i=0;for(let l of e){if(n){r+=l,n=!1;continue}if(l==="\\"){r+=l,n=!0;continue}if(o){r+=l,l===o&&(o="");continue}if(l==='"'||l==="'"){o=l,r+=l;continue}if(l==="("&&i++,l===")"&&i--,i<0)throw new Error("Invalid CSSX @theme declaration.");if(l===";"&&i===0){r.trim()&&t.push(r.trim()),r="";continue}r+=l}if(o||n||i!==0)throw new Error("Invalid CSSX @theme declaration.");return r.trim()&&t.push(r.trim()),t}function Y(e,t){let r=t;for(;r<e.length;){if(/\s/.test(e[r])){r++;continue}if(e.startsWith("/*",r)){let o=e.indexOf("*/",r+2);if(o===-1)throw new Error("Unterminated CSSX theme comment.");r=o+2;continue}break}return r}function ke(e,t){let r=0,o="",n=!1;for(let i=t;i<e.length;i++){let l=e[i];if(n){n=!1;continue}if(l==="\\"){n=!0;continue}if(o){l===o&&(o="");continue}if(l==='"'||l==="'"){o=l;continue}if(l==="{"&&r++,l==="}"&&r--,r===0)return{content:e.slice(t+1,i),end:i+1}}throw new Error("Unterminated CSSX @theme block.")}function Z(e){return e.map(t=>({...t}))}function Ze(e){let t=[];for(let r=0;r<e.length;r++){let o=e[r];if(o.selectorSuffix||o.semanticGroup){let n=[o];for(;e[r+1]?.selectorSuffix===o.selectorSuffix&&(o.selectorSuffix!==void 0||e[r+1]?.semanticGroup===o.semanticGroup);){let i=e[r+1];n.push(i),r++}t.push(n);continue}if(o.property==="--cssx-scale-x"&&e[r+1]?.property==="--cssx-scale-y"&&e[r+2]?.property==="scale"){let n=e[r+1],i=e[r+2];t.push([o,i],[n,i]),r+=2;continue}if(o.property==="--cssx-translate-x"||o.property==="--cssx-translate-y"||o.property==="--cssx-scale-x"||o.property==="--cssx-scale-y"||o.property==="--cssx-skew-x"||o.property==="--cssx-skew-y"){let n=e[r+1];if(n?.property==="translate"||n?.property==="scale"||n?.property==="transform"){t.push([o,n]),r++;continue}}t.push([o])}return t}function Je(e){let t={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"};return e.startsWith("[")?e.slice(1,-1):t[e]??e}function Qe(e){return{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"}[e]??e}function we(e,t){return e.startsWith("[")&&e.endsWith("]")?`${t?"-":""}${e.slice(1,-1)}`:/^\d+$/.test(e)?`${t?"-":""}${e}deg`:null}function et(e,t){if(e.startsWith("[")&&e.endsWith("]"))return`${t?"-":""}${e.slice(1,-1)}`;if(!/^\d+$/.test(e))return null;let r=Number(e)/100;return t?`-${r}`:String(r)}function tt(e,t){let r=Dr(e);return r.hasNesting?r.nodes.map(o=>o.type==="nesting"?t:o.value).join(""):null}function Dr(e){let t=[],r="",o=!1,n=()=>{r&&t.push({type:"text",value:r}),r=""};for(let i=0;i<e.length;i++){let l=e[i];if(l==="\\"){r+=`${l}${e[i+1]??""}`,i++;continue}if(l==="&"){n(),t.push({type:"nesting"}),o=!0;continue}if(l==="["){n();let s=Nr(e,i);t.push({type:"attribute",value:e.slice(i,s+1)}),i=s;continue}if(l==='"'||l==="'"){n();let s=rt(e,i,l);t.push({type:"string",value:e.slice(i,s+1)}),i=s;continue}if(l==="/"&&e[i+1]==="*"){n();let s=e.indexOf("*/",i+2);if(s===-1)throw new Error("Invalid CSSX arbitrary selector comment.");t.push({type:"comment",value:e.slice(i,s+2)}),i=s+1;continue}r+=l}return n(),{nodes:t,hasNesting:o}}function Nr(e,t){let r=1;for(let o=t+1;o<e.length;o++){let n=e[o];if(n==="\\"){o++;continue}if(n==='"'||n==="'"){o=rt(e,o,n);continue}if(n==="["&&r++,n==="]"&&r--,r===0)return o}throw new Error("Invalid CSSX arbitrary selector attribute.")}function rt(e,t,r){for(let o=t+1;o<e.length;o++){if(e[o]==="\\"){o++;continue}if(e[o]===r)return o}throw new Error("Invalid CSSX arbitrary selector string.")}function Re(e,t,r,o,n={}){Or(r);let i=typeof e=="string"?[e]:[...e],l=t[0]?.selectorSuffix??"";if(t.some(a=>(a.selectorSuffix??"")!==l))throw new Error("CSSX utility declarations must share one selector scope.");let s=[],p=!1;for(let a of r)if(a==="*")i=i.map(c=>`:is(${c}${l} > *)`),l="";else if(a==="**")i=i.map(c=>`:is(${c}${l} *)`),l="";else if(a==="hover")i=i.map(c=>`${c}:hover`),s.push("@media (hover: hover)");else if(L[a])i=i.map(c=>`${c}:${L[a]}`);else if(Ce[a])i=i.map(c=>`${c}::${Ce[a]}`),p||=a==="before"||a==="after";else if(ot(a))i=i.map(c=>`${c}:state(${ot(a)})`);else if(nt(a))i=i.map(c=>`.group:state(${nt(a)}) ${c}`);else if(it(a))i=i.map(c=>`.peer:state(${it(a)}) ~ ${c}`);else if(Ir(a)){let c=a.slice(6);i=i.map(f=>`.group:${L[c]} ${f}`)}else if(_r(a)){let c=a.slice(5);i=i.map(f=>`.peer:${L[c]} ~ ${f}`)}else if(a.startsWith("has-[")&&a.endsWith("]"))i=i.map(c=>`${c}:has(${a.slice(5,-1)})`);else if(a.startsWith("has-")&&Q(a.slice(4))){let c=a.slice(4);i=i.map(f=>`${f}:has(*:${L[c]})`)}else if(a.startsWith("not-")&&Q(a.slice(4))){let c=a.slice(4);i=i.map(f=>`${f}:not(*:${L[c]})`)}else if(a.startsWith("in-")&&Q(a.slice(3))){let c=a.slice(3);i=i.map(f=>`:where(*:${L[c]}) ${f}`)}else if(a.startsWith("[")&&a.endsWith("]")){let c=a.slice(1,-1);if(c.startsWith("@supports")||c.startsWith("@media"))s.push(Mr(c));else{let f=i.map(x=>tt(jr(c),`${x}${l}`));if(f.some(x=>x===null))throw new Error(`CSSX arbitrary selector variant "${a}" must contain "&".`);i=f.filter(x=>x!==null),l=""}}else if(a==="dark")n.darkMode==="selector"?i=i.map(c=>`${c}:where([data-theme=dark], [data-theme=dark] *)`):s.push("@media (prefers-color-scheme: dark)");else if(a==="motion-safe")s.push("@media (prefers-reduced-motion: no-preference)");else if(a==="motion-reduce")s.push("@media (prefers-reduced-motion: reduce)");else if(a==="starting")s.push("@starting-style");else if($e(a)){let c=$e(a);i=i.map(f=>`${f}${c}`),s.push("@supports (view-transition-name: none)")}else if(a==="print")s.push("@media print");else if(a.startsWith("data-[")&&a.endsWith("]"))i=i.map(c=>`${c}[data-${a.slice(6,-1)}]`);else if(/^data-[a-z][a-z0-9_-]*$/i.test(a))i=i.map(c=>`${c}[${a}]`);else if(a.startsWith("aria-[")&&a.endsWith("]"))i=i.map(c=>`${c}[aria-${a.slice(6,-1)}]`);else if(a.startsWith("aria-"))i=i.map(c=>`${c}[aria-${a.slice(5)}="true"]`);else if(a.startsWith("supports-[")&&a.endsWith("]"))s.push(`@supports (${a.slice(10,-1).replace(":",": ")})`);else if(a.startsWith("not-supports-[")&&a.endsWith("]"))s.push(`@supports not (${a.slice(14,-1).replace(":",": ")})`);else if((a.startsWith("min-[")||a.startsWith("max-["))&&a.endsWith("]")){let c=a.slice(5,-1);if(!c||/[;{}]/.test(c))throw new Error(`Invalid CSSX responsive variant "${a}".`);s.push(a.startsWith("min-")?`@media (width >= ${c})`:`@media (width < ${c})`)}else if(a.startsWith("max-")){let c=D(o,`--breakpoint-${a.slice(4)}`);if(!c)throw new Error(`CSSX does not support variant "${a}".`);s.push(`@media (width < ${c})`)}else{let c=D(o,`--breakpoint-${a}`);if(!c)throw new Error(`CSSX does not support variant "${a}".`);s.push(`@media (width >= ${c})`)}let d=p?[{property:"content",value:'var(--cssx-content, "")'},...t]:t,m=new Map;for(let a of d){let c=a.atRule??"",f=m.get(c)??[];f.push(a),m.set(c,f)}let g=[...m].map(([a,c])=>{let x=`${i.map(y=>`${y}${l}`).join(",")}{${c.map(y=>`${y.property}:${y.value};`).join("")}}`;return a?`${a}{${x}}`:x}).join("");for(let a=s.length-1;a>=0;a--)g=`${s[a]}{${g}}`;return g}function jr(e){return e.replace(/\\_/g,"\0").replaceAll("_"," ").replaceAll("\0","_")}function $e(e){let t=/^vt-(group|image-pair|old|new)-\[([^\]]+)\]$/i.exec(e),r=t?.[2]??"",o=r==="*"||/^\.[a-z_][a-z0-9_-]*$/i.test(r)||/^[a-z_][a-z0-9_-]*$/i.test(r)&&!/^(?:inherit|initial|none|revert|revert-layer|unset)$/i.test(r);return!t||!o?null:`::view-transition-${t[1]}(${r})`}function Or(e){let t=e.filter(o=>$e(o));if(t.length===0)return;let r=e.find(o=>!t.includes(o)&&(o==="*"||o==="**"||Ce[o]!==void 0||o.startsWith("group-")||o.startsWith("peer-")||o.startsWith("has-")||o.startsWith("in-")||o.startsWith("[")&&!o.startsWith("[@supports")&&!o.startsWith("[@media")));if(t.length>1||r)throw new Error("CSSX View Transition variants cannot compose with relationship or pseudo-element variants.")}var L={hover:"hover",focus:"focus","focus-visible":"focus-visible","focus-within":"focus-within",active:"active",disabled:"disabled",visited:"visited",checked:"checked",indeterminate:"indeterminate",default:"default",valid:"valid",invalid:"invalid","in-range":"in-range","out-of-range":"out-of-range","placeholder-shown":"placeholder-shown",autofill:"autofill","read-only":"read-only",required:"required",optional:"optional",open:"open",target:"target",empty:"empty",enabled:"enabled",first:"first-child",last:"last-child",only:"only-child",odd:"nth-child(odd)",even:"nth-child(even)","first-of-type":"first-of-type","last-of-type":"last-of-type","only-of-type":"only-of-type"},Ce={before:"before",after:"after",selection:"selection",marker:"marker",file:"file-selector-button","first-letter":"first-letter","first-line":"first-line",placeholder:"placeholder"};function Q(e){return L[e]!==void 0}function Ir(e){return e.startsWith("group-")&&Q(e.slice(6))}function _r(e){return e.startsWith("peer-")&&Q(e.slice(5))}function ot(e){return Se(e,"state-")}function nt(e){return Se(e,"group-state-")}function it(e){return Se(e,"peer-state-")}function Se(e,t){if(!e.startsWith(`${t}[`)||!e.endsWith("]"))return null;let r=e.slice(t.length+1,-1);if(!/^[a-z_][a-z0-9_-]*$/i.test(r)||/^(?:inherit|initial|revert|revert-layer|unset)$/i.test(r))throw new Error(`Invalid CSSX custom state variant "${e}".`);return r}function Mr(e){let t=/^@(supports|media)\s*(.*)$/.exec(e),r=t?.[1],o=t?.[2]?.trim();if(!r||!o)throw new Error(`Invalid CSSX arbitrary at-rule variant "[${e}]".`);return`@${r} ${o}`}function Wr(e){return Object.fromEntries(e.flatMap(([t,r])=>r.split(";").map(o=>{let n=o.indexOf("=");return[o.slice(0,n),[{property:t,value:o.slice(n+1)}]]})))}var Gr=Wr([["display","block=block;inline-block=inline-block;inline=inline;flex=flex;inline-flex=inline-flex;grid=grid;inline-grid=inline-grid;flow-root=flow-root;contents=contents;table=table;inline-table=inline-table;table-caption=table-caption;table-cell=table-cell;table-column=table-column;table-column-group=table-column-group;table-footer-group=table-footer-group;table-header-group=table-header-group;table-row-group=table-row-group;table-row=table-row;list-item=list-item"],["visibility","visible=visible;invisible=hidden;collapse=collapse"],["box-sizing","box-border=border-box;box-content=content-box"],["border-style","border-none=none;border-hidden=hidden;border-dotted=dotted;border-dashed=dashed;border-solid=solid;border-double=double"],["float","float-start=inline-start;float-end=inline-end;float-right=right;float-left=left;float-none=none"],["clear","clear-start=inline-start;clear-end=inline-end;clear-right=right;clear-left=left;clear-both=both;clear-none=none"]]),lt={...Gr,"box-decoration-slice":[{property:"-webkit-box-decoration-break",value:"slice",semanticGroup:"box-decoration-break"},{property:"box-decoration-break",value:"slice",semanticGroup:"box-decoration-break"}],"box-decoration-clone":[{property:"-webkit-box-decoration-break",value:"clone",semanticGroup:"box-decoration-break"},{property:"box-decoration-break",value:"clone",semanticGroup:"box-decoration-break"}],"object-top-left":[{property:"object-position",value:"top left"}],"object-top":[{property:"object-position",value:"top"}],"object-top-right":[{property:"object-position",value:"top right"}],"object-left":[{property:"object-position",value:"left"}],"object-center":[{property:"object-position",value:"center"}],"object-right":[{property:"object-position",value:"right"}],"object-bottom-left":[{property:"object-position",value:"bottom left"}],"object-bottom":[{property:"object-position",value:"bottom"}],"object-bottom-right":[{property:"object-position",value:"bottom right"}],"sr-only":[{property:"position",value:"absolute"},{property:"width",value:"1px"},{property:"height",value:"1px"},{property:"padding",value:"0"},{property:"margin",value:"-1px"},{property:"overflow",value:"hidden"},{property:"clip-path",value:"inset(50%)"},{property:"white-space",value:"nowrap"},{property:"border-width",value:"0"}],"not-sr-only":[{property:"position",value:"static"},{property:"width",value:"auto"},{property:"height",value:"auto"},{property:"padding",value:"0"},{property:"margin",value:"0"},{property:"overflow",value:"visible"},{property:"clip-path",value:"none"},{property:"white-space",value:"normal"}],hidden:[{property:"display",value:"none"}],static:[{property:"position",value:"static"}],fixed:[{property:"position",value:"fixed"}],absolute:[{property:"position",value:"absolute"}],relative:[{property:"position",value:"relative"}],sticky:[{property:"position",value:"sticky"}],transform:[{property:"transform",value:"translate(0, 0)"}],"transform-none":[{property:"transform",value:"none"}],"overflow-auto":[{property:"overflow",value:"auto"}],"overflow-hidden":[{property:"overflow",value:"hidden"}],"overflow-clip":[{property:"overflow",value:"clip"}],"overflow-visible":[{property:"overflow",value:"visible"}],"overflow-scroll":[{property:"overflow",value:"scroll"}],"flex-row":[{property:"flex-direction",value:"row"}],"flex-row-reverse":[{property:"flex-direction",value:"row-reverse"}],"flex-col":[{property:"flex-direction",value:"column"}],"flex-col-reverse":[{property:"flex-direction",value:"column-reverse"}],"flex-wrap":[{property:"flex-wrap",value:"wrap"}],"flex-wrap-reverse":[{property:"flex-wrap",value:"wrap-reverse"}],"flex-nowrap":[{property:"flex-wrap",value:"nowrap"}],"flex-auto":[{property:"flex",value:"1 1 auto"}],"flex-initial":[{property:"flex",value:"0 1 auto"}],"flex-none":[{property:"flex",value:"none"}],grow:[{property:"flex-grow",value:"1"}],"grow-0":[{property:"flex-grow",value:"0"}],shrink:[{property:"flex-shrink",value:"1"}],"shrink-0":[{property:"flex-shrink",value:"0"}],"items-start":[{property:"align-items",value:"flex-start"}],"items-center":[{property:"align-items",value:"center"}],"items-end":[{property:"align-items",value:"flex-end"}],"items-stretch":[{property:"align-items",value:"stretch"}],"items-baseline":[{property:"align-items",value:"baseline"}],"justify-start":[{property:"justify-content",value:"flex-start"}],"justify-center":[{property:"justify-content",value:"center"}],"justify-end":[{property:"justify-content",value:"flex-end"}],"justify-between":[{property:"justify-content",value:"space-between"}],"justify-around":[{property:"justify-content",value:"space-around"}],"justify-evenly":[{property:"justify-content",value:"space-evenly"}],"self-auto":[{property:"align-self",value:"auto"}],"self-start":[{property:"align-self",value:"flex-start"}],"self-center":[{property:"align-self",value:"center"}],"self-end":[{property:"align-self",value:"flex-end"}],"self-stretch":[{property:"align-self",value:"stretch"}],"self-baseline":[{property:"align-self",value:"baseline"}],"justify-items-start":[{property:"justify-items",value:"start"}],"justify-items-center":[{property:"justify-items",value:"center"}],"justify-items-end":[{property:"justify-items",value:"end"}],"justify-items-stretch":[{property:"justify-items",value:"stretch"}],"justify-self-auto":[{property:"justify-self",value:"auto"}],"justify-self-start":[{property:"justify-self",value:"start"}],"justify-self-center":[{property:"justify-self",value:"center"}],"justify-self-end":[{property:"justify-self",value:"end"}],"justify-self-stretch":[{property:"justify-self",value:"stretch"}],"place-items-start":[{property:"place-items",value:"start"}],"place-items-center":[{property:"place-items",value:"center"}],"place-items-end":[{property:"place-items",value:"end"}],"place-items-stretch":[{property:"place-items",value:"stretch"}],"place-items-baseline":[{property:"place-items",value:"baseline"}],"place-self-auto":[{property:"place-self",value:"auto"}],"place-self-start":[{property:"place-self",value:"start"}],"place-self-center":[{property:"place-self",value:"center"}],"place-self-end":[{property:"place-self",value:"end"}],"place-self-stretch":[{property:"place-self",value:"stretch"}],"place-content-start":[{property:"place-content",value:"start"}],"place-content-center":[{property:"place-content",value:"center"}],"place-content-end":[{property:"place-content",value:"end"}],"place-content-between":[{property:"place-content",value:"space-between"}],"place-content-around":[{property:"place-content",value:"space-around"}],"place-content-evenly":[{property:"place-content",value:"space-evenly"}],"place-content-stretch":[{property:"place-content",value:"stretch"}],"font-thin":[{property:"font-weight",value:"100"}],"font-extralight":[{property:"font-weight",value:"200"}],"font-light":[{property:"font-weight",value:"300"}],"font-normal":[{property:"font-weight",value:"400"}],"font-medium":[{property:"font-weight",value:"500"}],"font-semibold":[{property:"font-weight",value:"600"}],"font-bold":[{property:"font-weight",value:"700"}],"font-extrabold":[{property:"font-weight",value:"800"}],"font-black":[{property:"font-weight",value:"900"}],"font-sans":[{property:"font-family",value:'ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"'}],"font-serif":[{property:"font-family",value:'ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'}],"font-mono":[{property:"font-family",value:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'}],antialiased:[{property:"-webkit-font-smoothing",value:"antialiased",semanticGroup:"font-smoothing"},{property:"-moz-osx-font-smoothing",value:"grayscale",semanticGroup:"font-smoothing"}],"subpixel-antialiased":[{property:"-webkit-font-smoothing",value:"auto",semanticGroup:"font-smoothing"},{property:"-moz-osx-font-smoothing",value:"auto",semanticGroup:"font-smoothing"}],italic:[{property:"font-style",value:"italic"}],"not-italic":[{property:"font-style",value:"normal"}],uppercase:[{property:"text-transform",value:"uppercase"}],lowercase:[{property:"text-transform",value:"lowercase"}],capitalize:[{property:"text-transform",value:"capitalize"}],"normal-case":[{property:"text-transform",value:"none"}],"text-left":[{property:"text-align",value:"left"}],"text-center":[{property:"text-align",value:"center"}],"text-right":[{property:"text-align",value:"right"}],"text-justify":[{property:"text-align",value:"justify"}]};var Vr="var(--cssx-shadow, 0 0 #0000), var(--cssx-ring-offset-shadow, 0 0 #0000), var(--cssx-ring-shadow, 0 0 #0000)";function q(e){return[{property:"--cssx-shadow",value:e,semanticGroup:"shadow"},{property:"box-shadow",value:Vr,semanticGroup:"shadow"}]}var st={underline:[{property:"text-decoration-line",value:"underline"}],overline:[{property:"text-decoration-line",value:"overline"}],"line-through":[{property:"text-decoration-line",value:"line-through"}],"no-underline":[{property:"text-decoration-line",value:"none"}],"pointer-events-none":[{property:"pointer-events",value:"none"}],"pointer-events-auto":[{property:"pointer-events",value:"auto"}],"select-none":[{property:"user-select",value:"none"}],"select-text":[{property:"user-select",value:"text"}],"select-all":[{property:"user-select",value:"all"}],"select-auto":[{property:"user-select",value:"auto"}],"appearance-none":[{property:"appearance",value:"none"}],"appearance-auto":[{property:"appearance",value:"auto"}],"field-sizing-content":[{property:"field-sizing",value:"content"}],"resize-none":[{property:"resize",value:"none"}],"resize-x":[{property:"resize",value:"horizontal"}],"resize-y":[{property:"resize",value:"vertical"}],resize:[{property:"resize",value:"both"}],"scroll-auto":[{property:"scroll-behavior",value:"auto"}],"scroll-smooth":[{property:"scroll-behavior",value:"smooth"}],"scrollbar-auto":[{property:"scrollbar-width",value:"auto"}],"scrollbar-thin":[{property:"scrollbar-width",value:"thin"}],"scrollbar-none":[{property:"scrollbar-width",value:"none"}],"scrollbar-gutter-auto":[{property:"scrollbar-gutter",value:"auto"}],"scrollbar-gutter-stable":[{property:"scrollbar-gutter",value:"stable"}],"scrollbar-gutter-both":[{property:"scrollbar-gutter",value:"stable both-edges"}],"border-collapse":[{property:"border-collapse",value:"collapse"}],"border-separate":[{property:"border-collapse",value:"separate"}],"table-auto":[{property:"table-layout",value:"auto"}],"table-fixed":[{property:"table-layout",value:"fixed"}],"caption-top":[{property:"caption-side",value:"top"}],"caption-bottom":[{property:"caption-side",value:"bottom"}],"snap-none":[{property:"scroll-snap-type",value:"none"}],"snap-x":[{property:"scroll-snap-type",value:"x var(--cssx-scroll-snap-strictness, proximity)"}],"snap-y":[{property:"scroll-snap-type",value:"y var(--cssx-scroll-snap-strictness, proximity)"}],"snap-both":[{property:"scroll-snap-type",value:"both var(--cssx-scroll-snap-strictness, proximity)"}],"snap-mandatory":[{property:"--cssx-scroll-snap-strictness",value:"mandatory"}],"snap-proximity":[{property:"--cssx-scroll-snap-strictness",value:"proximity"}],"snap-normal":[{property:"scroll-snap-stop",value:"normal"}],"snap-always":[{property:"scroll-snap-stop",value:"always"}],"snap-start":[{property:"scroll-snap-align",value:"start"}],"snap-end":[{property:"scroll-snap-align",value:"end"}],"snap-center":[{property:"scroll-snap-align",value:"center"}],"snap-align-none":[{property:"scroll-snap-align",value:"none"}],"forced-color-adjust-auto":[{property:"forced-color-adjust",value:"auto"}],"forced-color-adjust-none":[{property:"forced-color-adjust",value:"none"}],"accent-auto":[{property:"accent-color",value:"auto"}],"caret-auto":[{property:"caret-color",value:"auto"}],"fill-none":[{property:"fill",value:"none"}],"stroke-none":[{property:"stroke",value:"none"}],"scheme-normal":[{property:"color-scheme",value:"normal"}],"scheme-dark":[{property:"color-scheme",value:"dark"}],"scheme-light":[{property:"color-scheme",value:"light"}],"scheme-light-dark":[{property:"color-scheme",value:"light dark"}],"scheme-only-dark":[{property:"color-scheme",value:"only dark"}],"scheme-only-light":[{property:"color-scheme",value:"only light"}],"rounded-none":[{property:"border-radius",value:"0"}],rounded:[{property:"border-radius",value:"0.25rem"}],"rounded-sm":[{property:"border-radius",value:"0.125rem"}],"rounded-md":[{property:"border-radius",value:"0.375rem"}],"rounded-lg":[{property:"border-radius",value:"0.5rem"}],"rounded-xl":[{property:"border-radius",value:"0.75rem"}],"rounded-2xl":[{property:"border-radius",value:"1rem"}],"rounded-full":[{property:"border-radius",value:"9999px"}],border:[{property:"border-width",value:"1px"}],"border-0":[{property:"border-width",value:"0"}],"border-2":[{property:"border-width",value:"2px"}],"border-4":[{property:"border-width",value:"4px"}],"border-8":[{property:"border-width",value:"8px"}],"border-x":[{property:"border-left-width",value:"1px"},{property:"border-right-width",value:"1px"}],"border-y":[{property:"border-top-width",value:"1px"},{property:"border-bottom-width",value:"1px"}],"border-t":[{property:"border-top-width",value:"1px"}],"border-r":[{property:"border-right-width",value:"1px"}],"border-b":[{property:"border-bottom-width",value:"1px"}],"border-l":[{property:"border-left-width",value:"1px"}],shadow:q("0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1)"),"shadow-none":q("0 0 #0000"),"shadow-sm":q("0 1px 2px 0 rgb(0 0 0 / .05)"),"shadow-md":q("0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1)"),"shadow-lg":q("0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1)"),"shadow-xl":q("0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1)"),"shadow-2xl":q("0 25px 50px -12px rgb(0 0 0 / .25)"),"transition-none":[{property:"transition-property",value:"none"}],"transition-normal":[{property:"transition-behavior",value:"normal"}],"transition-discrete":[{property:"transition-behavior",value:"allow-discrete"}],transition:[{property:"transition-property",value:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter"},{property:"transition-duration",value:"150ms"},{property:"transition-timing-function",value:"cubic-bezier(.4, 0, .2, 1)"}],"transition-all":[{property:"transition-property",value:"all"},{property:"transition-duration",value:"150ms"},{property:"transition-timing-function",value:"cubic-bezier(.4, 0, .2, 1)"}],"transition-colors":[{property:"transition-property",value:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke"},{property:"transition-duration",value:"150ms"},{property:"transition-timing-function",value:"cubic-bezier(.4, 0, .2, 1)"}],"transition-opacity":[{property:"transition-property",value:"opacity"},{property:"transition-duration",value:"150ms"},{property:"transition-timing-function",value:"cubic-bezier(.4, 0, .2, 1)"}],"transition-shadow":[{property:"transition-property",value:"box-shadow"},{property:"transition-duration",value:"150ms"},{property:"transition-timing-function",value:"cubic-bezier(.4, 0, .2, 1)"}],"transition-transform":[{property:"transition-property",value:"transform, translate, scale, rotate"},{property:"transition-duration",value:"150ms"},{property:"transition-timing-function",value:"cubic-bezier(.4, 0, .2, 1)"}],"ease-linear":[{property:"transition-timing-function",value:"linear"}],"ease-in":[{property:"transition-timing-function",value:"cubic-bezier(.4, 0, 1, 1)"}],"ease-out":[{property:"transition-timing-function",value:"cubic-bezier(0, 0, .2, 1)"}],"ease-in-out":[{property:"transition-timing-function",value:"cubic-bezier(.4, 0, .2, 1)"}],"text-xs":[{property:"font-size",value:"0.75rem"},{property:"line-height",value:"1rem"}],"text-sm":[{property:"font-size",value:"0.875rem"},{property:"line-height",value:"1.25rem"}],"text-base":[{property:"font-size",value:"1rem"},{property:"line-height",value:"1.5rem"}],"text-lg":[{property:"font-size",value:"1.125rem"},{property:"line-height",value:"1.75rem"}],"text-xl":[{property:"font-size",value:"1.25rem"},{property:"line-height",value:"1.75rem"}],"text-2xl":[{property:"font-size",value:"1.5rem"},{property:"line-height",value:"2rem"}],truncate:[{property:"overflow",value:"hidden",semanticGroup:"truncate"},{property:"text-overflow",value:"ellipsis",semanticGroup:"truncate"},{property:"white-space",value:"nowrap",semanticGroup:"truncate"}],"text-ellipsis":[{property:"text-overflow",value:"ellipsis"}],"text-clip":[{property:"text-overflow",value:"clip"}],"hyphens-none":[{property:"-webkit-hyphens",value:"none",semanticGroup:"hyphens"},{property:"hyphens",value:"none",semanticGroup:"hyphens"}],"hyphens-manual":[{property:"-webkit-hyphens",value:"manual",semanticGroup:"hyphens"},{property:"hyphens",value:"manual",semanticGroup:"hyphens"}],"hyphens-auto":[{property:"-webkit-hyphens",value:"auto",semanticGroup:"hyphens"},{property:"hyphens",value:"auto",semanticGroup:"hyphens"}],"whitespace-normal":[{property:"white-space",value:"normal"}],"whitespace-nowrap":[{property:"white-space",value:"nowrap"}],"whitespace-pre":[{property:"white-space",value:"pre"}],"whitespace-pre-line":[{property:"white-space",value:"pre-line"}],"whitespace-pre-wrap":[{property:"white-space",value:"pre-wrap"}],"whitespace-break-spaces":[{property:"white-space",value:"break-spaces"}],"text-wrap":[{property:"text-wrap",value:"wrap"}],"text-nowrap":[{property:"text-wrap",value:"nowrap"}],"text-balance":[{property:"text-wrap",value:"balance"}],"text-pretty":[{property:"text-wrap",value:"pretty"}],"wrap-anywhere":[{property:"overflow-wrap",value:"anywhere"}],"wrap-break-word":[{property:"overflow-wrap",value:"break-word"}],"wrap-normal":[{property:"overflow-wrap",value:"normal"}],"list-inside":[{property:"list-style-position",value:"inside"}],"list-outside":[{property:"list-style-position",value:"outside"}],"list-none":[{property:"list-style-type",value:"none"}],"list-disc":[{property:"list-style-type",value:"disc"}],"list-decimal":[{property:"list-style-type",value:"decimal"}],"list-image-none":[{property:"list-style-image",value:"none"}]};var at={...lt,...st};function w(e){return e.startsWith("(")&&e.endsWith(")")?`var(${e.slice(1,-1)})`:e.slice(1,-1).replaceAll("\\_","\0").replaceAll("_"," ").replaceAll("\0","_")}function ee(e){return e.startsWith("[")&&e.endsWith("]")?e.slice(1,-1):/^(0|2|4|8)$/.test(e)?`${e}px`.replace("0px","0"):null}function T(e,t,r){let o=t?"-":"";if(e==="px")return`${o}1px`;if(e==="full")return`${o}100%`;if(e.startsWith("[")&&e.endsWith("]"))return`${o}${e.slice(1,-1)}`;if(!/^\d+(?:\.\d+)?$/.test(e))return null;let n=A(r,"--spacing");return n?`${o}calc(${n} * ${e})`:null}function ct(e){let t=/^(\d+)\/(\d+)$/.exec(e);return t?Number(t[2])===0?null:`calc(${t[1]} / ${t[2]} * 100%)`:/^\d+$/.test(e)?e:null}function W(e,t,r,o){let n={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"};if((o==="max-w"||o==="max-inline")&&n[e])return n[e];if(e==="auto"||e==="full"||e==="screen"){let s={auto:"auto",full:"100%",screen:o.includes("block")?"100vb":o.includes("inline")?"100vi":o.includes("h")?"100vh":"100vw"}[e];return s&&t?`-${s}`:s}let i=/^(\d+)\/(\d+)$/.exec(e);if(i){let l=Number(i[1]),s=Number(i[2]);return s===0?null:`${t?"-":""}${l/s*100}%`}return T(e,t,r)}function _(e,t){return e.startsWith("[")&&e.endsWith("]")?e.slice(1,-1):A(t,`--color-${e}`)??null}function N(e){let t=0,r=0,o="",n=!1;for(let i=0;i<e.length;i++){let l=e[i];if(n){n=!1;continue}if(l==="\\"){n=!0;continue}if(o){l===o&&(o="");continue}if(l==='"'||l==="'"){o=l;continue}if(l==="["&&t++,l==="]"&&t--,l==="("&&r++,l===")"&&r--,l==="/"&&t===0&&r===0)return{value:e.slice(0,i),opacity:e.slice(i+1)}}return{value:e}}function j(e){let t=e.startsWith("[")&&e.endsWith("]")?e.slice(1,-1):e;if(!/^\d+(?:\.\d+)?$/.test(t))return null;let r=Number(t);return r<0||r>100?null:String(r)}function pt(e){let t=e.replace(/^(?:length|size):/,"");return/^-?(?:\d+(?:\.\d+)?)(?:px|rem|em|ch|ex|vw|vh|vmin|vmax|%|cm|mm|in|pt|pc)$/i.test(t)||t.startsWith("calc(")}function ut(e){return e.startsWith("image:")||/^(?:url|linear-gradient|radial-gradient|conic-gradient|image-set)\(/.test(e)}function dt(e,t,r){let o=/^(w|h|min-w|max-w|min-h|max-h|inline|min-inline|max-inline|block|min-block|max-block)-(.+)$/.exec(e);if(!o)return null;let n=o[1],i=W(o[2],t,r,n);return i?{property:{w:"width",h:"height","min-w":"min-width","max-w":"max-width","min-h":"min-height","max-h":"max-height",inline:"inline-size","min-inline":"min-inline-size","max-inline":"max-inline-size",block:"block-size","min-block":"min-block-size","max-block":"max-block-size"}[n],value:i}:null}function mt(e){let t=e.slice(1,-1),r=t.indexOf(":"),o=t.slice(0,r).trim(),n=t.slice(r+1).trim();if(!/^(--[a-z0-9_-]+|[a-z-]+)$/i.test(o)||!n||/[{};]/.test(n))throw new Error(`Invalid arbitrary CSSX utility "${e}".`);return{property:o,value:w(`[${n}]`)}}function ft(e,t){if(e==="none")return{property:"animation",value:"none"};if(e.startsWith("[")&&e.endsWith("]"))return{property:"animation",value:e.slice(1,-1)};let r=A(t,`--animate-${e}`);return r?{property:"animation",value:r}:null}function gt(e,t,r){let o=/^(translate-x|translate-y)-(.+)$/.exec(e);if(o){let s=o[1]==="translate-x"?"--cssx-translate-x":"--cssx-translate-y",p=T(o[2],t,r);return p?[{property:s,value:p},{property:"translate",value:"var(--cssx-translate-x, 0) var(--cssx-translate-y, 0)"}]:null}let n=/^rotate-(.+)$/.exec(e);if(n){let s=we(n[1],t);return s?[{property:"rotate",value:s}]:null}let i=/^(scale-x|scale-y|scale)-(.+)$/.exec(e);if(i){let s=i[1],p=et(i[2],t);return p?s==="scale-x"?[{property:"--cssx-scale-x",value:p},{property:"scale",value:"var(--cssx-scale-x, 1) var(--cssx-scale-y, 1)"}]:s==="scale-y"?[{property:"--cssx-scale-y",value:p},{property:"scale",value:"var(--cssx-scale-x, 1) var(--cssx-scale-y, 1)"}]:[{property:"--cssx-scale-x",value:p},{property:"--cssx-scale-y",value:p},{property:"scale",value:"var(--cssx-scale-x, 1) var(--cssx-scale-y, 1)"}]:null}let l=/^skew-(x|y)-(.+)$/.exec(e);if(l){let s=l[1],p=we(l[2],t);return p?[{property:`--cssx-skew-${s}`,value:p},{property:"transform",value:"skewX(var(--cssx-skew-x, 0deg)) skewY(var(--cssx-skew-y, 0deg))"}]:null}return null}function yt(e){let t=/^border-(x|y|t|r|b|l)-(0|2|4|8)$/.exec(e);if(!t)return null;let r=t[1],o=`${t[2]}px`.replace("0px","0");return{x:["border-left-width","border-right-width"],y:["border-top-width","border-bottom-width"],t:["border-top-width"],r:["border-right-width"],b:["border-bottom-width"],l:["border-left-width"]}[r].map(i=>({property:i,value:o}))}function ht(e,t,r){let o=/^(px|py|pt|pr|pb|pl|ps|pe|p|mx|my|mt|mr|mb|ml|ms|me|m|gap-x|gap-y|gap|inset-x|inset-y|inset-s|inset-e|inset|top|right|bottom|left)-(.+)$/.exec(e);if(!o)return null;let n=o[1],i=o[2],l=n.startsWith("inset")?W(i,t,r,"inset"):i==="auto"&&n.startsWith("m")&&!t?"auto":T(i,t,r);return l?{p:["padding"],px:["padding-left","padding-right"],py:["padding-top","padding-bottom"],pt:["padding-top"],pr:["padding-right"],pb:["padding-bottom"],pl:["padding-left"],ps:["padding-inline-start"],pe:["padding-inline-end"],m:["margin"],mx:["margin-left","margin-right"],my:["margin-top","margin-bottom"],mt:["margin-top"],mr:["margin-right"],mb:["margin-bottom"],ml:["margin-left"],ms:["margin-inline-start"],me:["margin-inline-end"],gap:["gap"],"gap-x":["column-gap"],"gap-y":["row-gap"],top:["top"],right:["right"],bottom:["bottom"],left:["left"],inset:["inset"],"inset-x":["left","right"],"inset-y":["top","bottom"],"inset-s":["inset-inline-start"],"inset-e":["inset-inline-end"]}[n].map(d=>({property:d,value:l})):null}function bt(e,t,r){let o=/^space-(x|y)-(.+)$/.exec(e);if(!o)return null;let n=o[1],i=o[2],l=" > :not(:last-child)",s=i==="reverse"?`space-${n}-reverse`:`space-${n}`,p=`--cssx-space-${n}-reverse`;if(i==="reverse")return[{property:p,value:"1",selectorSuffix:l,semanticGroup:s}];let d=T(i,t,r);if(!d)return null;let[m,g]=n==="x"?["margin-left","margin-right"]:["margin-top","margin-bottom"];return[{property:p,value:"0",selectorSuffix:l,semanticGroup:s},{property:m,value:`calc(${d} * calc(1 - var(${p})))`,selectorSuffix:l,semanticGroup:s},{property:g,value:`calc(${d} * var(${p}))`,selectorSuffix:l,semanticGroup:s}]}function xt(e,t){let r=" > :not(:last-child)",o=/^divide-(x|y)(?:-(.+))?$/.exec(e);if(o){let d=o[1],m=o[2]??"DEFAULT",g=`--cssx-divide-${d}-reverse`,a=m==="reverse"?`divide-${d}-reverse`:`divide-${d}`;if(m==="reverse")return[{property:g,value:"1",selectorSuffix:r,semanticGroup:a}];let c=m==="DEFAULT"?"1px":ee(m);if(!c)return null;let[f,x]=d==="x"?["border-left-width","border-right-width"]:["border-top-width","border-bottom-width"];return[{property:g,value:"0",selectorSuffix:r,semanticGroup:a},{property:f,value:`calc(${c} * calc(1 - var(${g})))`,selectorSuffix:r,semanticGroup:a},{property:x,value:`calc(${c} * var(${g}))`,selectorSuffix:r,semanticGroup:a}]}let n=/^divide-(.+)$/.exec(e);if(!n)return null;let i=N(n[1]),l=_(i.value,t);if(!l)return null;let s=i.opacity===void 0?null:j(i.opacity);return i.opacity!==void 0&&s===null?null:[{property:"border-color",value:s===null?l:`color-mix(in srgb, ${l} ${s}%, transparent)`,selectorSuffix:r,semanticGroup:"divide-color"}]}function vt(e,t){let r=/^placeholder-(.+)$/.exec(e);if(!r)return null;let o=N(r[1]),n=_(o.value,t);if(!n)return null;let i=o.opacity===void 0?null:j(o.opacity);return o.opacity!==void 0&&i===null?null:[{property:"color",value:i===null?n:`color-mix(in srgb, ${n} ${i}%, transparent)`,selectorSuffix:"::placeholder",semanticGroup:"placeholder-color"}]}function kt(e,t,r){let n={outline:[{property:"outline-style",value:"solid"},{property:"outline-width",value:"1px"}],"outline-none":[{property:"outline-style",value:"none"}],"outline-hidden":[{property:"outline",value:"2px solid transparent"},{property:"outline-offset",value:"2px"}],"outline-solid":[{property:"outline-style",value:"solid"}],"outline-dashed":[{property:"outline-style",value:"dashed"}],"outline-dotted":[{property:"outline-style",value:"dotted"}],"outline-double":[{property:"outline-style",value:"double"}]}[e];if(n)return Z(n);let i=/^outline-offset-(.+)$/.exec(e);if(i){let g=T(i[1],t,r);return g?[{property:"outline-offset",value:g}]:null}let l=/^outline-(0|1|2|4|8|\[[^\]]+\])$/.exec(e);if(l){let g=l[1];return[{property:"outline-width",value:g.startsWith("[")?g.slice(1,-1):`${g}px`.replace("0px","0")}]}let s=/^outline-(.+)$/.exec(e);if(!s)return null;let p=N(s[1]),d=_(p.value,r);if(!d)return null;let m=p.opacity===void 0?null:j(p.opacity);return p.opacity!==void 0&&m===null?null:[{property:"outline-color",value:m===null?d:`color-mix(in srgb, ${d} ${m}%, transparent)`}]}function wt(e,t){if(e!=="container")return null;let r=["sm","md","lg","xl","2xl"],o=[{property:"width",value:"100%",semanticGroup:"container"}];for(let n of r){let i=D(t,`--breakpoint-${n}`);i&&o.push({property:"max-width",value:i,atRule:`@media (width >= ${i})`,semanticGroup:"container"})}return o}function $t(e,t,r){let n={isolate:{property:"isolation",value:"isolate"},"isolation-auto":{property:"isolation",value:"auto"},"aspect-auto":{property:"aspect-ratio",value:"auto"},"aspect-square":{property:"aspect-ratio",value:"1 / 1"},"aspect-video":{property:"aspect-ratio",value:"16 / 9"},"object-contain":{property:"object-fit",value:"contain"},"object-cover":{property:"object-fit",value:"cover"},"object-fill":{property:"object-fit",value:"fill"},"object-none":{property:"object-fit",value:"none"},"object-scale-down":{property:"object-fit",value:"scale-down"},"touch-auto":{property:"touch-action",value:"auto"},"touch-none":{property:"touch-action",value:"none"},"touch-manipulation":{property:"touch-action",value:"manipulation"},"touch-pan-x":{property:"touch-action",value:"pan-x"},"touch-pan-y":{property:"touch-action",value:"pan-y"},"touch-pinch-zoom":{property:"touch-action",value:"pinch-zoom"}}[e];if(n)return n;let i=/^(overflow|overflow-x|overflow-y)-(auto|hidden|clip|visible|scroll)$/.exec(e);if(i)return{property:i[1],value:i[2]};let l=/^(overscroll|overscroll-x|overscroll-y)-(auto|contain|none)$/.exec(e);if(l)return{property:l[1]==="overscroll"?"overscroll-behavior":`overscroll-behavior-${l[1]==="overscroll-x"?"x":"y"}`,value:l[2]};let s=/^aspect-(\[[^\]]+\])$/.exec(e);if(s)return{property:"aspect-ratio",value:s[1].slice(1,-1)};let p=/^size-(.+)$/.exec(e);if(p){let u=W(p[1],t,r,"size");return u?[{property:"width",value:u},{property:"height",value:u}]:null}let d=/^(start|end)-(.+)$/.exec(e);if(d){let u=W(d[2],t,r,d[1]);return u?{property:d[1]==="start"?"inset-inline-start":"inset-inline-end",value:u}:null}let m=/^cursor-(auto|default|pointer|wait|text|move|help|not-allowed|none|context-menu|progress|cell|crosshair|vertical-text|alias|copy|no-drop|grab|grabbing|all-scroll|col-resize|row-resize|n-resize|e-resize|s-resize|w-resize|ne-resize|nw-resize|se-resize|sw-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|zoom-in|zoom-out)$/.exec(e);if(m)return{property:"cursor",value:m[1]};let g=/^will-change-(auto|scroll|contents|transform)$/.exec(e);if(g)return{property:"will-change",value:g[1]};let a=/^grid-flow-(row|col|row-dense|col-dense)$/.exec(e);if(a)return{property:"grid-auto-flow",value:a[1].replace("-"," ")};let c=/^auto-(cols|rows)-(auto|min|max|fr)$/.exec(e);if(c){let u={auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"};return{property:c[1]==="cols"?"grid-auto-columns":"grid-auto-rows",value:u[c[2]]}}let f=/^scroll-(mx|my|mt|mr|mb|ml|m|px|py|pt|pr|pb|pl|p)-(.+)$/.exec(e);if(f){let u=f[1],h=T(f[2],t,r);return h?{m:["scroll-margin"],mx:["scroll-margin-left","scroll-margin-right"],my:["scroll-margin-top","scroll-margin-bottom"],mt:["scroll-margin-top"],mr:["scroll-margin-right"],mb:["scroll-margin-bottom"],ml:["scroll-margin-left"],p:["scroll-padding"],px:["scroll-padding-left","scroll-padding-right"],py:["scroll-padding-top","scroll-padding-bottom"],pt:["scroll-padding-top"],pr:["scroll-padding-right"],pb:["scroll-padding-bottom"],pl:["scroll-padding-left"]}[u].map(v=>({property:v,value:h})):null}let x=/^stroke-(\d+|\[[^\]]+\])$/.exec(e);if(x){let u=x[1];return{property:"stroke-width",value:u.startsWith("[")?u.slice(1,-1):u}}let y=/^scrollbar-(thumb|track)-(.+)$/.exec(e);if(y){let u=y[1],h=N(y[2]),k=_(h.value,r);if(!k)return null;let v=h.opacity===void 0?null:j(h.opacity);if(h.opacity!==void 0&&v===null)return null;let S=v===null?k:`color-mix(in srgb, ${k} ${v}%, transparent)`,b=`scrollbar-${u}`;return[{property:`--cssx-scrollbar-${u}`,value:S,semanticGroup:b},{property:"scrollbar-color",value:"var(--cssx-scrollbar-thumb, #0000) var(--cssx-scrollbar-track, #0000)",semanticGroup:b}]}return null}function ie(e,t){return e==="current"?"currentColor":e==="inherit"?"inherit":_(e,t)}function Ct(e,t,r){let o=/^bg-linear-to-(t|tr|r|br|b|bl|l|tl)(?:\/(srgb|oklch|oklab|hsl|longer|shorter|increasing|decreasing))?$/.exec(e);if(o){let x={t:"to top",tr:"to top right",r:"to right",br:"to bottom right",b:"to bottom",bl:"to bottom left",l:"to left",tl:"to top left"},y=o[2]?`in ${o[2]} `:"",u=x[o[1]];return[{property:"background-image",value:`linear-gradient(${y}${u}, var(--cssx-gradient-via-stops, var(--cssx-gradient-stops)))`,semanticGroup:"background-image"}]}let n=/^bg-linear-(\d+|\[[^\]]+\])$/.exec(e);if(n){let x=n[1];return[{property:"background-image",value:`linear-gradient(${x.startsWith("[")?x.slice(1,-1):`${t?"-":""}${x}deg`}, var(--cssx-gradient-via-stops, var(--cssx-gradient-stops)))`,semanticGroup:"background-image"}]}let i=/^(from|via|to)-(.+)$/.exec(e);if(!i)return null;let l=i[1],s=i[2],p=`gradient-${l}`,d=Lr(s);if(d)return[{property:`--cssx-gradient-${l}-position`,value:d,semanticGroup:p}];let m=N(s),g=_(m.value,r);if(!g)return null;let a=m.opacity===void 0?null:j(m.opacity);if(m.opacity!==void 0&&a===null)return null;let c=a===null?g:`color-mix(in srgb, ${g} ${a}%, transparent)`,f=[{property:`--cssx-gradient-${l}`,value:c,semanticGroup:p}];return l==="from"?f.push({property:"--cssx-gradient-stops",value:"var(--cssx-gradient-from) var(--cssx-gradient-from-position,), var(--cssx-gradient-to, transparent) var(--cssx-gradient-to-position,)",semanticGroup:p}):l==="via"&&f.push({property:"--cssx-gradient-via-stops",value:"var(--cssx-gradient-from) var(--cssx-gradient-from-position,), var(--cssx-gradient-via) var(--cssx-gradient-via-position,), var(--cssx-gradient-to, transparent) var(--cssx-gradient-to-position,)",semanticGroup:p}),f}function Lr(e){let t=e.startsWith("[")&&e.endsWith("]")?e.slice(1,-1):e;if(!/^\d+(?:\.\d+)?%$/.test(t))return null;let r=Number(t.slice(0,-1));return r>=0&&r<=100?t:null}function Rt(e,t){let r=/^(bg|text|border|accent|caret|fill|stroke)-(.+)$/.exec(e);if(!r)return null;let o=r[1],n=N(r[2]),i=n.value;if(o==="text"&&/^(xs|sm|base|lg|xl|\d+xl)$/.test(i))return null;if(o==="text"&&i.startsWith("[")&&i.endsWith("]")){let g=i.slice(1,-1);if(pt(g))return{property:"font-size",value:g.replace(/^(?:length|size):/,"")}}if(o==="bg"&&i.startsWith("[")&&i.endsWith("]")){let g=i.slice(1,-1);if(ut(g))return{property:"background-image",value:g.replace(/^image:/,"")}}let l=ie(i,t);if(!l)return null;let s=n.opacity===void 0?null:j(n.opacity);if(n.opacity!==void 0&&s===null)return null;let p=s===null?l:`color-mix(in srgb, ${l} ${s}%, transparent)`;return{property:{bg:"background-color",text:"color",border:"border-color",accent:"accent-color",caret:"caret-color",fill:"fill",stroke:"stroke"}[o],value:p}}function St(e,t){let r=/^underline-offset-(auto|\d+|\[[^\]]+\]|\(--[a-z0-9_-]+\))$/i.exec(e);if(r){let l=r[1];return{property:"text-underline-offset",value:(l==="auto"?l:l.startsWith("(")?w(l):T(l,!1,t))??w(l)}}let o=/^decoration-(.+)$/.exec(e);if(!o)return null;let n=o[1];if(/^(solid|double|dotted|dashed|wavy)$/.test(n))return{property:"text-decoration-style",value:n};if(/^(auto|from-font|\d+)$/.test(n))return{property:"text-decoration-thickness",value:n==="auto"||n==="from-font"?n:`${n}px`};if(n.startsWith("[")||n.startsWith("("))return{property:"text-decoration-thickness",value:w(n)};let i=_(n,t);return i?{property:"text-decoration-color",value:i}:null}var zt="var(--cssx-shadow, 0 0 #0000), var(--cssx-ring-offset-shadow, 0 0 #0000), var(--cssx-ring-shadow, 0 0 #0000)",Xr="var(--cssx-filter-blur,) var(--cssx-filter-brightness,) var(--cssx-filter-contrast,) var(--cssx-filter-drop-shadow,) var(--cssx-filter-grayscale,) var(--cssx-filter-hue-rotate,) var(--cssx-filter-invert,) var(--cssx-filter-saturate,) var(--cssx-filter-sepia,)",Pr="var(--cssx-backdrop-blur,) var(--cssx-backdrop-brightness,) var(--cssx-backdrop-contrast,) var(--cssx-backdrop-grayscale,) var(--cssx-backdrop-hue-rotate,) var(--cssx-backdrop-invert,) var(--cssx-backdrop-opacity,) var(--cssx-backdrop-saturate,) var(--cssx-backdrop-sepia,)";function Ut(e,t){return Et(e,t,"filter","--cssx-filter-","",Xr,!1)}function Tt(e,t){return e.startsWith("backdrop-")?Et(e.slice(9),t,"backdrop-filter","--cssx-backdrop-","backdrop-",Pr,!0):null}function Et(e,t,r,o,n,i,l){let s=`${n}filter-none`,p=["filter-none","blur","brightness","contrast","drop-shadow","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(c=>`${n}${c}`);if(e==="filter-none")return Br(r,s,p);let d={blur:{DEFAULT:"8px",none:"0",xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},grayscale:{0:"0",DEFAULT:"1"},invert:{0:"0",DEFAULT:"1"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},sepia:{0:"0",DEFAULT:"1"},opacity:{0:"0",5:".05",10:".1",15:".15",20:".2",25:".25",30:".3",40:".4",50:".5",60:".6",70:".7",75:".75",80:".8",90:".9",95:".95",100:"1"}},m=/^(blur|brightness|contrast|grayscale|invert|saturate|sepia|opacity)(?:-(.+))?$/.exec(e);if(m){let c=m[1];if(c==="opacity"&&!l)return null;let f=m[2]??"DEFAULT",y=(f.startsWith("[")&&f.endsWith("]")?f.slice(1,-1):null)??d[c]?.[f];if(!y)return null;let u=c==="blur"?`blur(${y})`:`${c}(${y})`;return ze(r,o,n,i,c,u)}let g=/^hue-rotate-(.+)$/.exec(e);if(g){let c=g[1],f=c.startsWith("[")&&c.endsWith("]")?c.slice(1,-1):/^\d+$/.test(c)?`${t?"-":""}${c}deg`:null;return f?ze(r,o,n,i,"hue-rotate",`hue-rotate(${f})`):null}let a=/^drop-shadow(?:-(.+))?$/.exec(e);if(a){let c=a[1]??"DEFAULT",f={DEFAULT:"0 1px 2px rgb(0 0 0 / .1)",none:"0 0 #0000",xs:"0 1px 1px rgb(0 0 0 / .05)",sm:"0 1px 2px rgb(0 0 0 / .15)",md:"0 3px 3px rgb(0 0 0 / .12)",lg:"0 4px 4px rgb(0 0 0 / .15)",xl:"0 9px 7px rgb(0 0 0 / .1)","2xl":"0 25px 25px rgb(0 0 0 / .15)"},x=c.startsWith("[")&&c.endsWith("]")?c.slice(1,-1):f[c];return r==="filter"&&x?ze(r,o,n,i,"drop-shadow",`drop-shadow(${x})`):null}return null}function Br(e,t,r){let o=[{property:e,value:"none",semanticGroup:t,semanticConflicts:r}];return e==="backdrop-filter"&&o.unshift({property:"-webkit-backdrop-filter",value:"none",semanticGroup:t,semanticConflicts:r}),o}function ze(e,t,r,o,n,i){let l=`${r}${n}`,s=[l,`${r}filter-none`],p=[{property:`${t}${n}`,value:i,semanticGroup:l,semanticConflicts:s}];return e==="backdrop-filter"&&p.push({property:"-webkit-backdrop-filter",value:o,semanticGroup:l,semanticConflicts:s}),p.push({property:e,value:o,semanticGroup:l,semanticConflicts:s}),p}function At(e,t){let r=/^ring-offset-(.+)$/.exec(e);if(r){let p=r[1],d=ee(p);if(d)return[{property:"--cssx-ring-offset-width",value:d,semanticGroup:"ring-offset-width"},{property:"--cssx-ring-offset-shadow",value:"0 0 0 var(--cssx-ring-offset-width) var(--cssx-ring-offset-color, #fff)",semanticGroup:"ring-offset-width"},{property:"box-shadow",value:zt,semanticGroup:"ring-offset-width"}];let m=ie(p,t);return m?[{property:"--cssx-ring-offset-color",value:m,semanticGroup:"ring-offset-color"}]:null}let o=e==="ring"?"1px":ee(/^ring-(.+)$/.exec(e)?.[1]??"");if(o)return[{property:"--cssx-ring-width",value:o,semanticGroup:"ring-width"},{property:"--cssx-ring-shadow",value:"0 0 0 calc(var(--cssx-ring-width) + var(--cssx-ring-offset-width, 0px)) var(--cssx-ring-color, currentColor)",semanticGroup:"ring-width"},{property:"box-shadow",value:zt,semanticGroup:"ring-width"}];let n=/^ring-(.+)$/.exec(e);if(!n)return null;let i=N(n[1]),l=ie(i.value,t);if(!l)return null;let s=i.opacity===void 0?null:j(i.opacity);return i.opacity!==void 0&&s===null?null:[{property:"--cssx-ring-color",value:s===null?l:`color-mix(in srgb, ${l} ${s}%, transparent)`,semanticGroup:"ring-color"}]}var Fr={"content-visibility-visible":["content-visibility","visible"],"content-visibility-auto":["content-visibility","auto"],"content-visibility-hidden":["content-visibility","hidden"],"contain-none":["contain","none"],"contain-content":["contain","content"],"contain-strict":["contain","strict"],"contain-size":["contain","size"],"contain-inline-size":["contain","inline-size"],"contain-layout":["contain","layout"],"contain-style":["contain","style"],"contain-paint":["contain","paint"],"stroke-cap-butt":["stroke-linecap","butt"],"stroke-cap-round":["stroke-linecap","round"],"stroke-cap-square":["stroke-linecap","square"],"stroke-join-miter":["stroke-linejoin","miter"],"stroke-join-round":["stroke-linejoin","round"],"stroke-join-bevel":["stroke-linejoin","bevel"],"fill-rule-nonzero":["fill-rule","nonzero"],"fill-rule-evenodd":["fill-rule","evenodd"],"clip-rule-nonzero":["clip-rule","nonzero"],"clip-rule-evenodd":["clip-rule","evenodd"],"vector-effect-none":["vector-effect","none"],"vector-effect-non-scaling-stroke":["vector-effect","non-scaling-stroke"],"paint-order-normal":["paint-order","normal"],"paint-order-fill":["paint-order","fill"],"paint-order-stroke":["paint-order","stroke"],"paint-order-markers":["paint-order","markers"],"shape-rendering-auto":["shape-rendering","auto"],"shape-rendering-optimize-speed":["shape-rendering","optimizeSpeed"],"shape-rendering-crisp-edges":["shape-rendering","crispEdges"],"shape-rendering-geometric-precision":["shape-rendering","geometricPrecision"],"writing-horizontal-tb":["writing-mode","horizontal-tb"],"writing-vertical-rl":["writing-mode","vertical-rl"],"writing-vertical-lr":["writing-mode","vertical-lr"],"text-orientation-mixed":["text-orientation","mixed"],"text-orientation-upright":["text-orientation","upright"],"text-orientation-sideways":["text-orientation","sideways"],"text-combine-upright-none":["text-combine-upright","none"],"text-combine-upright-all":["text-combine-upright","all"],"unicode-bidi-normal":["unicode-bidi","normal"],"unicode-bidi-embed":["unicode-bidi","embed"],"unicode-bidi-isolate":["unicode-bidi","isolate"],"unicode-bidi-bidi-override":["unicode-bidi","bidi-override"],"unicode-bidi-isolate-override":["unicode-bidi","isolate-override"],"unicode-bidi-plaintext":["unicode-bidi","plaintext"],"image-render-auto":["image-rendering","auto"],"image-render-crisp-edges":["image-rendering","crisp-edges"],"image-render-pixelated":["image-rendering","pixelated"],"font-optical-auto":["font-optical-sizing","auto"],"font-optical-none":["font-optical-sizing","none"],"font-kerning-auto":["font-kerning","auto"],"font-kerning-normal":["font-kerning","normal"],"font-kerning-none":["font-kerning","none"],"font-synthesis-none":["font-synthesis","none"],"font-synthesis-weight":["font-synthesis","weight"],"font-synthesis-style":["font-synthesis","style"],"font-synthesis-small-caps":["font-synthesis","small-caps"],"font-synthesis-position":["font-synthesis","position"]};function Dt(e,t){let r=Fr[e];if(r)return{property:r[0],value:r[1]};let o=/^contain-\[(.+)\]$/.exec(e);if(o)return{property:"contain",value:w(`[${o[1]}]`)};let n=/^contain-intrinsic-(size|inline-size|block-size)-(.+)$/.exec(e);if(n){let l=n[1],s=n[2],p=`contain-intrinsic-${l}`,d=qr(s,p,t);return d?{property:p,value:d}:null}let i=/^stroke-(miterlimit|dasharray|dashoffset)-(.+)$/.exec(e);if(i){let l=`stroke-${i[1]}`,s=i[2],p=Kr(s);return p?{property:l,value:p}:null}return null}function qr(e,t,r){return e==="none"?"none":/^\d+(?:\.\d+)?$/.test(e)?T(e,!1,r):Hr(e,`--${t}-${e}`,r)}function Kr(e){return/^\d+(?:\.\d+)?$/.test(e)?e:e.startsWith("[")||e.startsWith("(")?w(e):null}function Hr(e,t,r){return e.startsWith("[")&&e.endsWith("]")||e.startsWith("(")&&e.endsWith(")")?w(e):A(r,t)??null}var Yr={linear:"linear",in:"cubic-bezier(.4, 0, 1, 1)",out:"cubic-bezier(0, 0, .2, 1)","in-out":"cubic-bezier(.4, 0, .2, 1)"},le="@supports (animation-timeline: scroll())",Nt="@supports (scroll-timeline-name: none)",Ue="@supports (view-timeline-name: none)",jt="@supports (timeline-scope: none)",Zr="@supports (animation-range: normal)",Ot="@supports (view-transition-name: none)",It="@supports (view-transition-class: none)",Jr=["transition-","duration-","delay-","ease-","animation-","stagger-","scroll-timeline-","view-timeline-","timeline-scope-","view-transition-"];function Lt(e){return Jr.some(t=>e.startsWith(t))}function Xt(e,t,r){let n={"transition-transform-opacity":"transform, translate, scale, rotate, opacity","transition-filter":"filter, -webkit-backdrop-filter, backdrop-filter","transition-size":"width, height, inline-size, block-size"}[e];if(n)return _t(n);let i=/^transition-(\[[\s\S]+\])$/.exec(e);if(i)return _t(w(i[1]));if(e==="delay-stagger")return t?null:{property:"transition-delay",value:Gt()};let l=/^(duration|delay)-(.+)$/.exec(e);if(l){let b=l[1];if(t&&b==="duration")return null;let $=Te(l[2],`--${b}-`,r);return $?{property:`transition-${b}`,value:t?Wt($):$}:null}let s=/^ease-(.+)$/.exec(e);if(s){let b=Mt(s[1],r);return!t&&b?{property:"transition-timing-function",value:b}:null}let p=/^animation-name-(.+)$/.exec(e);if(p){let b=p[1];return t?null:b==="none"?{property:"animation-name",value:"none"}:b.startsWith("[")&&b.endsWith("]")?{property:"animation-name",value:w(b)}:r.keyframes[b]?{property:"animation-name",value:b}:null}if(e==="animation-delay-stagger")return t?null:{property:"animation-delay",value:Gt()};let d=/^animation-(duration|delay)-(.+)$/.exec(e);if(d){let b=d[1],$=d[2];if(b==="duration"&&$==="auto"&&!t)return{property:"animation-duration",value:"auto"};if(t&&b==="duration")return null;let z=Te($,`--animation-${b}-`,r);return z?{property:`animation-${b}`,value:t?Wt(z):z}:null}let m=/^animation-ease-(.+)$/.exec(e);if(m){let b=Mt(m[1],r,!0);return!t&&b?{property:"animation-timing-function",value:b}:null}let g=/^animation-iterations-(.+)$/.exec(e);if(g){let b=g[1],$=b==="infinite"||/^\d+(?:\.\d+)?$/.test(b)?b:se(b);return!t&&$?{property:"animation-iteration-count",value:$}:null}let a=/^animation-direction-(normal|reverse|alternate|alternate-reverse)$/.exec(e);if(a)return t?null:{property:"animation-direction",value:a[1]};let c=/^animation-fill-(none|forwards|backwards|both)$/.exec(e);if(c)return t?null:{property:"animation-fill-mode",value:c[1]};let f=/^animation-(running|paused)$/.exec(e);if(f)return t?null:{property:"animation-play-state",value:f[1]};let x=/^animation-composition-(replace|add|accumulate)$/.exec(e);if(x)return t?null:{property:"animation-composition",value:x[1]};let y=/^stagger-(?!index-|count-)(.+)$/.exec(e);if(y){let b=y[1];if(b==="reverse")return t?null:{property:"--cssx-stagger-reverse",value:"1"};let $=Te(b,"--stagger-",r);return!t&&$?{property:"--cssx-stagger",value:$}:null}let u=/^stagger-(index|count)-(\d+|\[\d+\])$/.exec(e);if(u){let b=u[2].replaceAll(/\[|\]/g,"");return t?null:{property:`--cssx-stagger-${u[1]}`,value:b}}let h=Qr(e);if(h)return t?null:h;let k=eo(e);if(k)return t?null:k;let v=to(e);if(v)return t?null:v;let S=ro(e);return S&&!t?S:null}function _t(e){return[{property:"transition-property",value:e},{property:"transition-duration",value:"150ms"},{property:"transition-timing-function",value:"cubic-bezier(.4, 0, .2, 1)"}]}function Te(e,t,r){return/^\d+(?:\.\d+)?$/.test(e)?`${e}ms`:se(e)??A(r,`${t}${e}`)??null}function Mt(e,t,r=!1){let o=se(e);return Yr[e]??o??A(t,`--ease-${e}`)??(r?A(t,`--animation-ease-${e}`):void 0)??null}function se(e){return e.startsWith("[")&&e.endsWith("]")||e.startsWith("(")&&e.endsWith(")")?w(e):null}function Wt(e){return/^\d/.test(e)?`-${e}`:`calc(${e} * -1)`}function Gt(){return"calc((var(--cssx-stagger-index, 0) * (1 - var(--cssx-stagger-reverse, 0)) + (var(--cssx-stagger-count, 1) - 1 - var(--cssx-stagger-index, 0)) * var(--cssx-stagger-reverse, 0)) * var(--cssx-stagger, 0ms))"}function Qr(e){let t={"animation-timeline-auto":"auto","animation-timeline-none":"none"};if(t[e])return{property:"animation-timeline",value:t[e],atRule:le};let r=/^animation-timeline-scroll(?:-(root|self))?-(block|inline|x|y)$/.exec(e);if(r){let i=r[1];return{property:"animation-timeline",value:i?`scroll(${i} ${r[2]})`:`scroll(${r[2]})`,atRule:le}}let o=/^animation-timeline-view-(block|inline|x|y)$/.exec(e);if(o)return{property:"animation-timeline",value:`view(${o[1]})`,atRule:le};let n=/^animation-timeline-\[(--[a-z_][a-z0-9_-]*)\]$/i.exec(e);return n?{property:"animation-timeline",value:n[1],atRule:le}:null}function eo(e){let t=/^(scroll|view)-timeline-name-\[(--[a-z_][a-z0-9_-]*)\]$/i.exec(e);if(t)return{property:`${t[1]}-timeline-name`,value:t[2],atRule:t[1]==="scroll"?Nt:Ue};let r=/^(scroll|view)-timeline-axis-(block|inline|x|y)$/.exec(e);if(r)return{property:`${r[1]}-timeline-axis`,value:r[2],atRule:r[1]==="scroll"?Nt:Ue};let o=/^view-timeline-inset-(\[[\s\S]+\])$/.exec(e);if(o)return{property:"view-timeline-inset",value:w(o[1]),atRule:Ue};if(e==="timeline-scope-all")return{property:"timeline-scope",value:"all",atRule:jt};let n=/^timeline-scope-\[(--[a-z_][a-z0-9_-]*)\]$/i.exec(e);return n?{property:"timeline-scope",value:n[1],atRule:jt}:null}function to(e){let t=/^animation-range(?:-(start|end))?-(.+)$/.exec(e);if(!t)return null;let r=t[1]?`animation-range-${t[1]}`:"animation-range",o=t[2],n=/^(normal|entry|exit|cover|contain)$/.test(o)?o:se(o);return n?{property:r,value:n,atRule:Zr}:null}function ro(e){if(e==="view-transition-name-none")return{property:"view-transition-name",value:"none",atRule:Ot};if(e==="view-transition-name-match")return{property:"view-transition-name",value:"match-element",atRule:"@supports (view-transition-name: match-element)"};let t=/^view-transition-name-\[([^\]]+)\]$/.exec(e);if(t&&Vt(t[1],["auto","match-element","none"]))return{property:"view-transition-name",value:t[1],atRule:Ot};if(e==="view-transition-class-none")return{property:"view-transition-class",value:"none",atRule:It};let r=/^view-transition-class-\[([^\]]+)\]$/.exec(e);if(r){let o=w(`[${r[1]}]`);if(o.split(/\s+/).every(n=>Vt(n,["none"])))return{property:"view-transition-class",value:o,atRule:It}}return null}function Vt(e,t){return/^[a-z_][a-z0-9_-]*$/i.test(e)&&!t.includes(e.toLowerCase())&&!/^(?:inherit|initial|revert|revert-layer|unset)$/i.test(e)}var oo="var(--cssx-numeric-ordinal,) var(--cssx-numeric-slashed-zero,) var(--cssx-numeric-lining-nums,) var(--cssx-numeric-oldstyle-nums,) var(--cssx-numeric-proportional-nums,) var(--cssx-numeric-tabular-nums,) var(--cssx-numeric-diagonal-fractions,) var(--cssx-numeric-stacked-fractions,)";function Pt(e){let t={ordinal:"ordinal","slashed-zero":"slashed-zero","lining-nums":"lining-nums","oldstyle-nums":"oldstyle-nums","proportional-nums":"proportional-nums","tabular-nums":"tabular-nums","diagonal-fractions":"diagonal-fractions","stacked-fractions":"stacked-fractions"},r=["numeric-normal",...Object.keys(t).map(l=>`numeric-${l}`)];if(e==="normal-nums")return[{property:"font-variant-numeric",value:"normal",semanticGroup:"numeric-normal",semanticConflicts:r}];let o=t[e];if(!o)return null;let n=`numeric-${e}`,i=[n,"numeric-normal"];return[{property:`--cssx-numeric-${e}`,value:o,semanticGroup:n,semanticConflicts:i},{property:"font-variant-numeric",value:oo,semanticGroup:n,semanticConflicts:i}]}function Bt(e){let r={"bg-none":{property:"background-image",value:"none"},"bg-auto":{property:"background-size",value:"auto"},"bg-cover":{property:"background-size",value:"cover"},"bg-contain":{property:"background-size",value:"contain"},"bg-top-left":{property:"background-position",value:"top left"},"bg-top":{property:"background-position",value:"top"},"bg-top-right":{property:"background-position",value:"top right"},"bg-left":{property:"background-position",value:"left"},"bg-center":{property:"background-position",value:"center"},"bg-right":{property:"background-position",value:"right"},"bg-bottom-left":{property:"background-position",value:"bottom left"},"bg-bottom":{property:"background-position",value:"bottom"},"bg-bottom-right":{property:"background-position",value:"bottom right"},"bg-repeat":{property:"background-repeat",value:"repeat"},"bg-no-repeat":{property:"background-repeat",value:"no-repeat"},"bg-repeat-x":{property:"background-repeat",value:"repeat-x"},"bg-repeat-y":{property:"background-repeat",value:"repeat-y"},"bg-repeat-round":{property:"background-repeat",value:"round"},"bg-repeat-space":{property:"background-repeat",value:"space"},"bg-fixed":{property:"background-attachment",value:"fixed"},"bg-local":{property:"background-attachment",value:"local"},"bg-scroll":{property:"background-attachment",value:"scroll"},"bg-clip-border":{property:"background-clip",value:"border-box"},"bg-clip-padding":{property:"background-clip",value:"padding-box"},"bg-clip-content":{property:"background-clip",value:"content-box"},"bg-clip-text":[{property:"-webkit-background-clip",value:"text",semanticGroup:"background-clip"},{property:"background-clip",value:"text",semanticGroup:"background-clip"},{property:"color",value:"transparent",semanticGroup:"background-clip"}],"bg-origin-border":{property:"background-origin",value:"border-box"},"bg-origin-padding":{property:"background-origin",value:"padding-box"},"bg-origin-content":{property:"background-origin",value:"content-box"}}[e];if(r)return Array.isArray(r)?Z(r):r;let o=/^bg-position-(\[[^\]]+\]|\(--[a-z0-9_-]+\))$/i.exec(e);if(o)return{property:"background-position",value:w(o[1])};let n=/^bg-size-(\[[^\]]+\]|\(--[a-z0-9_-]+\))$/i.exec(e);return n?{property:"background-size",value:w(n[1])}:null}function Ft(e){let r={"mask-none":["mask-image","none"],"mask-cover":["mask-size","cover"],"mask-contain":["mask-size","contain"],"mask-repeat":["mask-repeat","repeat"],"mask-no-repeat":["mask-repeat","no-repeat"],"mask-repeat-x":["mask-repeat","repeat-x"],"mask-repeat-y":["mask-repeat","repeat-y"],"mask-repeat-round":["mask-repeat","round"],"mask-repeat-space":["mask-repeat","space"],"mask-clip-border":["mask-clip","border-box"],"mask-clip-padding":["mask-clip","padding-box"],"mask-clip-content":["mask-clip","content-box"],"mask-no-clip":["mask-clip","no-clip"],"mask-origin-border":["mask-origin","border-box"],"mask-origin-padding":["mask-origin","padding-box"],"mask-origin-content":["mask-origin","content-box"]}[e];if(r)return{property:r[0],value:r[1]};let o=/^mask-(position|size)-(.+)$/.exec(e);if(o)return{property:`mask-${o[1]}`,value:w(o[2])};let n=/^mask-(\[.+\]|\(.+\))$/.exec(e);return n?{property:"mask-image",value:w(n[1])}:null}function qt(e,t,r){let o=Xt(e,t,r);if(o)return o;if(Lt(e))return null;let n=Dt(e,r);if(n)return n;let i=ht(e,t,r);if(i)return i;let l=/^border-spacing(?:-(x|y))?-(.+)$/.exec(e);if(l){let R=l[1],E=T(l[2],t,r);return E?R?[{property:`--cssx-border-spacing-${R}`,value:E,semanticGroup:`border-spacing-${R}`},{property:"border-spacing",value:"var(--cssx-border-spacing-x, 0) var(--cssx-border-spacing-y, 0)",semanticGroup:`border-spacing-${R}`}]:{property:"border-spacing",value:E}:null}let s=yt(e);if(s)return s;let p=At(e,r);if(p)return p;let d=Pt(e);if(d)return d;let m=Ut(e,t)??Tt(e,t);if(m)return m;let g=Bt(e);if(g)return g;let a=Ft(e);if(a)return a;let c=Ct(e,t,r);if(c)return c;let f=Rt(e,r);if(f)return f;let x=St(e,r);if(x)return x;let y=dt(e,t,r);if(y)return y;let u=/^columns-(auto|\d+|\[[^\]]+\]|\(--[a-z0-9_-]+\))$/i.exec(e);if(u){let R=u[1];return{property:"columns",value:R.startsWith("[")||R.startsWith("(")?w(R):R}}if(e==="content-none")return{property:"content",value:"none"};let h=/^content-(\[[^\]]+\]|\(--[a-z0-9_-]+\))$/i.exec(e);if(h)return{property:"content",value:w(h[1])};let k=/^(?:break-(before|after)-(auto|avoid|all|avoid-page|page|left|right|column)|break-(inside)-(auto|avoid|avoid-page|avoid-column))$/.exec(e);if(k){let R=k[1]??k[3],E=k[2]??k[4];return{property:`break-${R}`,value:E}}let v=/^object-(\[[^\]]+\]|\(--[a-z0-9_-]+\))$/i.exec(e);if(v)return{property:"object-position",value:w(v[1])};let S=/^tab-(\d+|\[[^\]]+\]|\(--[a-z0-9_-]+\))$/i.exec(e);if(S){let R=S[1];return{property:"tab-size",value:R.startsWith("[")||R.startsWith("(")?w(R):R}}let b=/^list-image-(\[[^\]]+\]|\(--[a-z0-9_-]+\))$/i.exec(e);if(b)return{property:"list-style-image",value:w(b[1])};let $=/^line-clamp-(none|\d+)$/.exec(e);if($)return $[1]==="none"?[{property:"overflow",value:"visible",semanticGroup:"line-clamp"},{property:"display",value:"block",semanticGroup:"line-clamp"},{property:"-webkit-box-orient",value:"horizontal",semanticGroup:"line-clamp"},{property:"-webkit-line-clamp",value:"unset",semanticGroup:"line-clamp"}]:[{property:"overflow",value:"hidden",semanticGroup:"line-clamp"},{property:"display",value:"-webkit-box",semanticGroup:"line-clamp"},{property:"-webkit-box-orient",value:"vertical",semanticGroup:"line-clamp"},{property:"-webkit-line-clamp",value:$[1],semanticGroup:"line-clamp"}];let z=/^grid-cols-(\d+)$/.exec(e);if(z)return{property:"grid-template-columns",value:`repeat(${z[1]}, minmax(0, 1fr))`};if(e==="grid-cols-subgrid")return{property:"grid-template-columns",value:"subgrid"};let P=/^grid-rows-(\d+)$/.exec(e);if(P)return{property:"grid-template-rows",value:`repeat(${P[1]}, minmax(0, 1fr))`};if(e==="grid-rows-subgrid")return{property:"grid-template-rows",value:"subgrid"};let O=/^(col|row)-span-(\d+|full)$/.exec(e);if(O)return{property:O[1]==="col"?"grid-column":"grid-row",value:O[2]==="full"?"1 / -1":`span ${O[2]} / span ${O[2]}`};let I=/^(col|row)-(start|end)-(\d+|auto)$/.exec(e);if(I)return{property:`grid-${I[1]==="col"?"column":"row"}-${I[2]}`,value:I[3]};let B=/^order-(first|last|none|\d+)$/.exec(e);if(B){let E={first:"-9999",last:"9999",none:"0"}[B[1]]??B[1];return{property:"order",value:t&&E!=="0"?E.startsWith("-")?E.slice(1):`-${E}`:E}}let U=/^basis-(.+)$/.exec(e);if(U){let R=W(U[1],t,r,"basis");return R?{property:"flex-basis",value:R}:null}let M=/^flex-(\d+(?:\/\d+)?|\[[^\]]+\]|\(--[a-z0-9_-]+\))$/i.exec(e);if(M){let R=M[1],E=R.startsWith("[")||R.startsWith("(")?w(R):ct(R);return E?{property:"flex",value:E}:null}let K=/^opacity-(\d{1,3})$/.exec(e);if(K)return{property:"opacity",value:String(Number(K[1])/100)};let V=/^z-(\d+|auto)$/.exec(e);if(V)return{property:"z-index",value:V[1]};let Oe=/^leading-(none|tight|snug|normal|relaxed|loose|\[[^\]]+\])$/.exec(e);if(Oe)return{property:"line-height",value:Je(Oe[1])};let Ie=/^font-(\[[^\]]+\]|\(--[a-z0-9_-]+\))$/i.exec(e);if(Ie)return{property:"font-family",value:w(Ie[1])};let _e=/^tracking-(tighter|tight|normal|wide|wider|widest)$/.exec(e);if(_e)return{property:"letter-spacing",value:Qe(_e[1])};let Me=/^animate-(.+)$/.exec(e);if(Me)return ft(Me[1],r);let We=gt(e,t,r);return We||null}var ae={font:["font-family","font-size","font-style","font-variant","font-weight","font-stretch","line-height","font-kerning","font-feature-settings","font-variation-settings"],background:["background-attachment","background-color","background-image","background-position","background-repeat","background-size","background-origin","background-clip"],border:["border-width","border-style","border-color","border-top","border-right","border-bottom","border-left","border-top-width","border-right-width","border-bottom-width","border-left-width"],animation:["animation-name","animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state","animation-composition","animation-timeline","animation-range","animation-range-start","animation-range-end"],"animation-range":["animation-range-start","animation-range-end"],grid:["grid-template-columns","grid-template-rows","grid-template-areas","grid-auto-columns","grid-auto-rows","grid-auto-flow","grid-column","grid-row"],mask:["mask-image","mask-mode","mask-position","mask-size","mask-repeat","mask-origin","mask-clip","mask-composite"],transition:["transition-property","transition-duration","transition-timing-function","transition-delay","transition-behavior"],container:["container-name","container-type"]};function Ee(e,t){return ce(e,t).atoms}function ce(e,t){let r=H(e),o=J(e);if(!o)throw new Error(`CSSX cannot compile utility "${e}".`);let n=ao(r.utility,r.negative,t),i=co(n,t);if(r.important)for(let s of n)s.value=`${s.value} !important`;let l=Ze(n);return{candidate:e,atoms:l,resources:{keyframes:i,properties:uo(e)},writes:l.map(s=>{let p=s[0]?.semanticGroup??o.group;return{group:p,conflicts:s[0]?.semanticConflicts??[p]}})}}async function te(e,t,r="",o={},n,i={}){return Zt(e,t,r,o,n,i,!1)}async function Yt(e,t="",r={}){return Zt(e,o=>o,t,{},void 0,r,!0)}async function Zt(e,t,r,o,n,i,l){if(e.length>5e4)throw new Error("CSSX supports at most 50,000 utility candidates per compilation.");let s=F(r),p=Object.create(null),d=[],m=new Set,g=new Set;for(let y of[...new Set(e)]){let u=ce(y,s),h=l?[t(y)]:no(y,t(y));if(p[y]=h.join(" "),(n?h.filter(v=>n.has(v)||(o[v]?.length??0)>0):h).length!==0){d.push(...io(y,h,s,u.atoms,o,n,i));for(let v of u.resources.keyframes)m.add(v);for(let v of u.resources.properties)g.add(v)}}d.sort((y,u)=>y.order!==u.order?y.order<u.order?-1:1:y.candidate<u.candidate?-1:1);let a=[...new Map(d.map(y=>[y.css,y])).values()],c=`${[...g].sort().map(mo).join("")}${[...m].sort().map(y=>xe(s,y)).filter(y=>y!==void 0).join("")}`,f=a.map(y=>y.css).join(""),x=`${be(s,`${c}${f}`)}${c}`;return{classes:p,prefixCss:x,entries:a.map(({candidate:y,css:u})=>({candidate:y,css:u})),css:`${x}${f}`}}function no(e,t){let r=t.split(/\s+/).filter(Boolean);if(r.length===0||r.some(o=>!/^(?:[A-Za-z_][A-Za-z0-9_-]*|[0-9][A-Za-z0-9_-]*)$/.test(o)))throw new Error(`CSSX received an unsafe generated class name for utility "${e}".`);return r}function Jt(e,t){Ee(e,t)}function io(e,t,r,o,n,i,l){let s=H(e),p=J(e);if(t.length===1){let d=o.flat(),m=t[0],g=Kt(m,n,i);return[{candidate:e,className:m,css:Re(g,d,s.variants,r,l),order:Ht(s,p.group,d)}]}if(t.length!==o.length)throw new Error(`CSSX expected ${o.length} generated classes for utility "${e}".`);return o.map((d,m)=>{let g=t[m],a=Kt(g,n,i);return a.length===0?null:{candidate:e,className:g,css:Re(a,d,s.variants,r,l),order:`${Ht(s,p.group,d)}\0${m}`}}).filter(d=>d!==null)}function Kt(e,t,r){let o=new Set(t[e]??[]);return(!r||r.has(e))&&o.add(e),[...o].sort().map(n=>`.${lo(n)}`)}function lo(e){let t="";for(let r=0;r<e.length;r++){let o=e.charCodeAt(r),n=e[r];r===0&&o>=48&&o<=57?t+=`\\${o.toString(16)} `:o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?t+=n:t+=`\\${n}`}return t}var so={p:100,px:110,py:110,pt:120,pr:120,pb:120,pl:120,ps:120,pe:120,m:200,mx:210,my:210,mt:220,mr:220,mb:220,ml:220,ms:220,me:220,inset:300,"inset-x":310,"inset-y":310,top:320,right:320,bottom:320,left:320,start:320,end:320,size:400,width:410,height:410,"min-width":410,"max-width":410,"min-height":410,"max-height":410,gap:500,"row-gap":510,"column-gap":510,border:600,"border-width":600,"border-x":610,"border-y":610,"border-top":620,"border-right":620,"border-bottom":620,"border-left":620};function Ht(e,t,r){let o=e.variants.map(a=>{let c={sm:100,md:101,lg:102,xl:103,"2xl":104,dark:200,print:300}[a];return`${String(c??10).padStart(3,"0")}:${a}`}).join(":"),n=String(so[t]??900).padStart(3,"0"),i=r.map(a=>a.property),l=i.includes("transition-property")&&i.length>1,s=i.some(a=>ae[a]!==void 0),p=i.some(a=>a==="animation-timeline"||a.startsWith("animation-range")||a.startsWith("scroll-timeline")||a.startsWith("view-timeline")||a==="timeline-scope"),d=e.variants.includes("starting"),g=e.variants.some(a=>a.startsWith("vt-"))?500:d?400:p?300:s||l?100:200;return`${String(g).padStart(3,"0")}\0${o}\0${n}\0${t}`}function ao(e,t,r){let o=at[e];if(o)return Z(o);if(e.startsWith("[")&&e.endsWith("]"))return[mt(e)];let n=bt(e,t,r);if(n)return n;let i=xt(e,r);if(i)return i;let l=vt(e,r);if(l)return l;let s=kt(e,t,r);if(s)return s;let p=wt(e,r);if(p)return p;let d=$t(e,t,r);if(d)return Array.isArray(d)?d:[d];let m=qt(e,t,r);if(!m)throw new Error(`CSSX cannot compile utility "${t?"-":""}${e}".`);return Array.isArray(m)?m:[m]}function co(e,t){let r=new Set;for(let o of e)if(o.property==="animation-name")for(let n of o.value.split(",").map(i=>i.trim()))t.keyframes[n]&&r.add(n);else if(o.property==="animation"){let n=po(o.value,t);for(let i of Object.keys(t.keyframes)){let l=i.replaceAll(/[.*+?^${}()|[\]\\]/g,"\\$&");new RegExp(`(?:^|[\\s,])${l}(?=$|[\\s,])`).test(n)&&r.add(i)}}return[...r].sort()}function po(e,t){return e.replaceAll(/var\((--[a-z0-9_-]+)\)/gi,(r,o)=>{let n=t.prefix?`--${t.prefix}-`:"",i=n&&o.startsWith(n)?`--${o.slice(n.length)}`:o;return D(t,i)??r})}function uo(e){let t=H(e),r=/^scrollbar-(thumb|track)-/.exec(t.utility)?.[1];return r?[`--cssx-scrollbar-${r}`]:[]}function mo(e){return`@property ${e}{syntax:"<color>";inherits:true;initial-value:#0000;}`}var nr="cssx-utility-compiler-v2",Qt=1e4,er=5e4;function Ne(e){let t=J(e);return t||null}function ue(e,t={}){return re({$:e},t).styleMaps.$}function re(e,t={}){let r=Object.create(null),o=F(t.theme);for(let[u,h]of Object.entries(e)){if(Object.keys(h).length>Qt)throw new Error(`CSSX style maps support at most ${Qt} entries.`);let k=Object.create(null);for(let[v,S]of Object.entries(h))k[v]=ne(S);r[u]=k}let n=Object.values(r).flatMap(u=>Object.values(u).flat());if(n.length>er)throw new Error(`CSSX style maps support at most ${er} utility candidates.`);let i=fo(n,o),l=t.classNameAllocator??de(t.className),s=$o(n,o,i,l),p=Object.create(null),d=Object.create(null),m=Object.create(null),g=Object.create(null);for(let[u,h]of Object.entries(r)){let k=Object.create(null),v=Object.create(null);for(let[S,b]of Object.entries(h)){let $=[];for(let z of b){let P=i.get(z),{classification:O,atoms:I}=P,B=s.symbols[z];for(let U=0;U<I.length;U++){let M=I[U],K=B[U],V=Uo(M,O);V.conflicts.length>1&&$.push([null,O.scope,V.group,...V.conflicts]),$.push([K,O.scope,V.group,V.group])}}k[S]=$,v[S]=cr($)}m[u]=k,g[u]=v}let a=go(Object.values(g).flatMap(u=>Object.values(u)),t.reusabilityBudget,l),c=l.allocate([...s.allocationIdentities.values()]),f=new Map;for(let[u,h]of s.allocationIdentities)f.set(u,c.get(h));let x=Object.create(null),y=Object.create(null);for(let[u,h]of Object.entries(s.symbols)){let k=h.map(v=>f.get(v));x[u]=k,y[u]=k.join(" ")}for(let[u,h]of Object.entries(r)){let k=Object.create(null),v=Object.create(null),S=m[u],b=g[u];for(let $ of Object.keys(h)){let z=b[$],P=G(z),I=(a.classNames.get(P)??"").split(" ").map(U=>f.get(U)??U).join(" "),B=S[$].map(U=>{let[M,...K]=U;return[M===null?null:f.get(M),...K]});k[$]={$$css:2,c:I,_:B},v[$]=I;for(let U of a.fragments.get(P)??[])d[U.className]=U.atomicClasses.map(M=>f.get(M))}p[u]={styles:k,classes:y,candidates:h,classNames:v,composites:d}}return{styleMaps:p,classes:y,composites:d}}function fo(e,t){let r=new Map;for(let o of new Set(e)){let n=Ne(o);if(!n)throw new Error(`CSSX cannot classify utility "${o}" for composition.`);r.set(o,{classification:n,atoms:Ee(o,t)})}return r}function go(e,t,r){let o=ho(t),n=e.map(u=>[...new Set(u)].sort()),i=n.map(G),l=[...new Set(i.filter(Boolean))];if(o===0){let u=r.allocate(l.map(X));return yo(i,n,u)}if(o===100)return{classNames:new Map(i.map((u,h)=>[u,n[h].join(" ")])),fragments:new Map};let s=xo(bo(n)),p=wo(s,n.reduce((u,h)=>u+h.length,0),o),d=n.map(()=>new Set);for(let u of p)for(let h of u.compositionIndexes){let k=d[h];for(let v of u.atomicClasses)k.add(v)}let m=p.map(u=>X(G(u.atomicClasses))),g=r.allocate(m),a=new Map,c=new Map,f=new Set,x=n.map(()=>[]);for(let u of p){let h=G(u.atomicClasses),v={className:g.get(X(h)),atomicClasses:u.atomicClasses};for(let S of u.compositionIndexes)x[S].push(v)}for(let u=0;u<n.length;u++){let h=n[u].filter(v=>!d[u].has(v)),k=G(h);k&&f.add(X(k))}let y=r.allocate([...f]);for(let u=0;u<i.length;u++){let h=i[u];if(!h||c.has(h))continue;let k=x[u],v=n[u].filter(z=>!d[u].has(z)),S=G(v),b=S?y.get(X(S)):"",$=[...k.map(z=>z.className),b].filter(Boolean).join(" ");c.set(h,$),a.set(h,[...k,...b?[{className:b,atomicClasses:v}]:[]])}return{classNames:c,fragments:a}}function yo(e,t,r){let o=new Map,n=new Map;for(let i=0;i<e.length;i++){let l=e[i];if(!l||o.has(l))continue;let s=r.get(X(l));o.set(l,s),n.set(l,[{className:s,atomicClasses:t[i]}])}return{classNames:o,fragments:n}}function ho(e){if(e===void 0||e==="auto")return"auto";if(!Number.isFinite(e)||e<0||e>100)throw new Error('CSSX reusabilityBudget must be "auto" or a number from 0 through 100.');return e}function bo(e){let t=new Map;for(let o=0;o<e.length;o++)for(let n of e[o]){let i=t.get(n)??[];i.push(o),t.set(n,i)}let r=new Map;for(let[o,n]of t){if(n.length<2)continue;let i=n.join(","),l=r.get(i)??{atomicClasses:[],compositionIndexes:n};l.atomicClasses.push(o),r.set(i,l)}return[...r.values()].map(({atomicClasses:o,compositionIndexes:n})=>Ae(o,n)).sort(ir)}function xo(e){let t=new Set,r=[];for(let o of e){if(o.atomicClasses.length<2||o.compositionIndexes.length<4||t.has(o))continue;let n=e.filter(l=>l!==o&&l.score<=0&&l.compositionIndexes.length>=2&&l.compositionIndexes.length<o.compositionIndexes.length&&ko(l.compositionIndexes,o.compositionIndexes)),i=new Map(n.map((l,s)=>[tr(l.compositionIndexes),s]));for(let l=0;l<n.length;l++){let s=n[l],p=vo(o.compositionIndexes,s.compositionIndexes),d=i.get(tr(p));if(d===void 0||d<=l)continue;let m=n[d];t.add(o),t.add(s),t.add(m),r.push(Ae([...o.atomicClasses,...s.atomicClasses].sort(),s.compositionIndexes),Ae([...o.atomicClasses,...m.atomicClasses].sort(),m.compositionIndexes));break}}return[...e.filter(o=>!t.has(o)),...r].sort(ir)}function vo(e,t){let r=[],o=0;for(let n of e)t[o]===n?o++:r.push(n);return r}function tr(e){return e.join(",")}function Ae(e,t){let r=e.length*t.length,o=(t.length-1)*e.length-t.length;return{atomicClasses:e,compositionIndexes:t,coverage:r,score:o}}function ir(e,t){return t.score-e.score||t.coverage-e.coverage||G(e.atomicClasses).localeCompare(G(t.atomicClasses))}function ko(e,t){let r=0;for(let o of e){for(;t[r]!==void 0&&t[r]<o;)r++;if(t[r]!==o)return!1}return!0}function wo(e,t,r){let o=e.filter(s=>s.score>0||s.atomicClasses.length===1&&s.compositionIndexes.length>=3);if(r==="auto")return o;let n=Math.floor(t*r/100),i=[],l=0;for(let s of o)l+s.coverage>n||(i.push(s),l+=s.coverage);return i}function $o(e,t,r,o){let n=No(Ao(t)),i=Object.create(null),l=Co(o),s=new Map;for(let p of[...new Set(e)].sort()){let d=r.get(p),{classification:m,atoms:g}=d;i[p]=g.map(a=>{let c=a.map(u=>`${u.property}:${u.value}:${u.selectorSuffix??""}${u.atRule?`:${u.atRule}`:""}`).join(";"),f=`${nr}\0${n}\0${m.scope}\0${c}`,x=l.get(f);if(x)return s.set(x,f),x;let y=`a${l.size.toString(36)}`;return l.set(f,y),s.set(y,f),y})}return{symbols:i,allocationIdentities:s}}var rr=new WeakMap;function Co(e){let t=e,r=rr.get(t);if(r)return r;let o=new Map;return rr.set(t,o),o}function Ro(e){let t=e?.variant??"serial",r=e?.prefix??"s",o=e?.suffix??"x",n=e?.length;if(t!=="random"&&t!=="serial")throw new Error('CSSX className.variant must be "random" or "serial".');if(r&&!/^[A-Za-z_-][A-Za-z0-9_-]*$/.test(r))throw new Error("CSSX className.prefix must be a safe CSS identifier prefix.");if(!/^[A-Za-z0-9_-]*$/.test(o))throw new Error("CSSX className.suffix must contain only letters, digits, hyphens, or underscores.");if(n!==void 0&&(!Number.isSafeInteger(n)||n<1||n>64))throw new Error("CSSX className.length must be an integer from 1 through 64.");if(t==="serial"&&n!==void 0)throw new Error("CSSX className.length is only supported by the random naming variant.");return{variant:t,prefix:r,suffix:o,...n===void 0?{}:{length:n}}}function de(e={}){return new De(Ro(e))}var De=class{constructor(t){this.naming=t}naming;classNames=new Map;allocated=new Set;serialCounter=0;allocate(t){let r=[...new Set(t)].filter(o=>!this.classNames.has(o)).sort();if(this.naming.variant==="random"&&this.naming.length!==void 0){let o=36n**BigInt(this.naming.length);if(BigInt(r.length+this.allocated.size)>o)throw new Error(`CSSX className.length ${this.naming.length} cannot name every generated class without a collision.`)}for(let o of r){let n=0,i="";do{let l=this.naming.variant==="serial"?this.naming.prefix||this.naming.suffix?So(this.serialCounter++):String(this.serialCounter++):zo(o,this.naming.length,n);i=`${this.naming.prefix}${l}${this.naming.suffix}`,n++}while(this.allocated.has(i));this.allocated.add(i),this.classNames.set(o,i)}return new Map(t.map(o=>[o,this.classNames.get(o)]))}reserve(t){for(let r of t)this.allocated.add(r)}},or="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function So(e){let t=e,r="",o=or.length;do r=`${or[t%o]}${r}`,t=Math.floor(t/o);while(t>0);return r}function zo(e,t,r){if(t===void 0)return r===0?pe(e):`${pe(e)}-${pe(`${e}\0${r}`)}`;let o="";for(let n=0;o.length<t;n++)o+=pe(`${e}\0${r}\0${n}`).padStart(13,"0");return o.slice(0,t)}function Uo(e,t){let r=e[0].semanticGroup;if(r)return{scope:t.scope,group:r,conflicts:e[0].semanticConflicts??[r]};let o=e[0].property,n=To[o]??Eo[o];return n?{scope:t.scope,...n}:{scope:t.scope,group:o,conflicts:[o]}}var To={padding:{group:"p",conflicts:["p","px","py","pt","pr","pb","pl"]},"padding-left":{group:"pl",conflicts:["pl"]},"padding-right":{group:"pr",conflicts:["pr"]},"padding-top":{group:"pt",conflicts:["pt"]},"padding-bottom":{group:"pb",conflicts:["pb"]},margin:{group:"m",conflicts:["m","mx","my","mt","mr","mb","ml"]},"margin-left":{group:"ml",conflicts:["ml"]},"margin-right":{group:"mr",conflicts:["mr"]},"margin-top":{group:"mt",conflicts:["mt"]},"margin-bottom":{group:"mb",conflicts:["mb"]},"border-width":{group:"border-width",conflicts:["border-width","border-x","border-y","border-top","border-right","border-bottom","border-left"]},"border-top-width":{group:"border-top",conflicts:["border-top"]},"border-right-width":{group:"border-right",conflicts:["border-right"]},"border-bottom-width":{group:"border-bottom",conflicts:["border-bottom"]},"border-left-width":{group:"border-left",conflicts:["border-left"]},"border-color":{group:"border-color",conflicts:["border-color"]},"--cssx-translate-x":{group:"translate-x",conflicts:["translate-x"]},"--cssx-translate-y":{group:"translate-y",conflicts:["translate-y"]},"--cssx-scale-x":{group:"scale-x",conflicts:["scale-x"]},"--cssx-scale-y":{group:"scale-y",conflicts:["scale-y"]},"--cssx-skew-x":{group:"skew-x",conflicts:["skew-x"]},"--cssx-skew-y":{group:"skew-y",conflicts:["skew-y"]}},Eo=Object.fromEntries(Object.entries(ae).flatMap(([e,t])=>[[e,{group:e,conflicts:[e,...t]}],...t.map(r=>[r,{group:r,conflicts:[r]}])]));function Ao(e){let t=e.mode==="inline"&&!e.prefix?"":`${e.mode}:${e.prefix}|`,r=Object.keys(e.tokens).sort().map(n=>`${n}:${D(e,n)??"initial"}`).join("|"),o=Object.keys(e.keyframes).sort().map(n=>`${n}:${e.keyframes[n]}`).join("|");return`${t}${r}|${o}`}function lr(e){return ar(e.flatMap(t=>t._)).map(t=>t[0]).filter(t=>t!==null).join(" ")}function sr(e,t=de()){return Do(e.flatMap(r=>r._),t)}function ar(e){let t=new Map,r=[];for(let o=e.length-1;o>=0;o--){let n=e[o];if(!n)continue;let i=t.get(n[1])??new Set;if(t.set(n[1],i),!(n[0]!==null&&i.has(n[2]))){for(let l=2;l<n.length;l++){let s=n[l];s&&i.add(s)}n[0]&&r.push(n)}}return r.reverse()}function Do(e,t){let r=cr(e),o=G(r);return t.reserve(r),{className:o?t.allocate([X(o)]).get(X(o)):"",atomicClasses:r}}function cr(e){return ar(e).map(t=>t[0]).filter(t=>t!==null)}function G(e){return[...new Set(e)].sort().join("\0")}function X(e){return`${nr}\0composite\0${e}`}function pe(e){let t=0xcbf29ce484222325n;for(let r=0;r<e.length;r++)t^=BigInt(e.charCodeAt(r)),t=BigInt.asUintN(64,t*0x100000001b3n);return t.toString(36)}function No(e){let t=2166136261,r=2654435769;for(let o=0;o<e.length;o++){let n=e.charCodeAt(o);t=Math.imul(t^n,16777619),r=Math.imul(r^n,2246822507)}return`${(t>>>0).toString(36)}-${(r>>>0).toString(36)}`}async function jo(e,t={}){let r=ue(e,t),o=Object.keys(r.classes);if(o.length===0)return{styles:r.styles,classes:r.classes,candidates:r.candidates,classNames:r.classNames,composites:r.composites,rules:[]};let n=await te(o,i=>r.classes[i],t.theme,je(r.composites),void 0,{darkMode:t.darkMode});return{styles:r.styles,classes:r.classes,candidates:r.candidates,classNames:r.classNames,composites:r.composites,rules:[{className:pr(n.css),css:n.css}]}}async function Oo(e,t={}){let r=re(e,t),o=Object.keys(r.classes);if(o.length===0)return{styleMaps:r.styleMaps,rules:[]};let n=await te(o,i=>r.classes[i],t.theme,je(r.composites),void 0,{darkMode:t.darkMode});return{styleMaps:r.styleMaps,rules:[{className:pr(n.css),css:n.css}]}}function Io(e,t={}){let r=[...new Set(e.map(o=>o.css))].sort().join("");return r&&t.layer?`@layer ${t.layer}{${r}}`:r}function pr(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=Math.imul(t,16777619);return`cssx-${(t>>>0).toString(36)}`}function je(e){let t=Object.create(null);for(let[r,o]of Object.entries(e))for(let n of o)(t[n]??=[]).push(r);return t}0&&(module.exports={classifyUtility,compileSourceUtilities,compileStyleMap,compileStyleMaps,compileStyleRecordMaps,compileStyleRecords,compileUtilities,composeCompiledStyles,createClassNameAllocator,createSelectorAliases,describeUtilityRecipe,mergeCompiledStyles,parseTheme,serializeCss,splitCandidateList,validateUtilityCandidate});
|