@cssxio/html 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 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,18 @@
1
+ # @cssxio/html
2
+
3
+ `@cssxio/html` compiles CSSX utility classes found in an ordinary HTML document at runtime. The CDN build uses the default CSSX theme and scans the initial page once.
4
+
5
+ ```html
6
+ <script defer src="https://cdn.jsdelivr.net/npm/@cssxio/html@0.2.0/dist/cssx.global.js"></script>
7
+ <main class="min-h-screen bg-slate-950 p-6 text-white">Hello</main>
8
+ ```
9
+
10
+ For custom tokens, bundle and host your own script:
11
+
12
+ ```ts
13
+ import { start } from '@cssxio/html';
14
+
15
+ void start({ theme: '@theme { --color-brand: #3245ff; }' });
16
+ ```
17
+
18
+ The runtime keeps class attributes unchanged and ignores custom classes it does not recognize. It does not process content added after the page first loads.
@@ -0,0 +1 @@
1
+ "use strict";var CSSX=(()=>{var Gr=new Set(["active","disabled","empty","enabled","even","first","focus","focus-visible","focus-within","hover","last","odd","open","required","target","visited"]),Y=new Map([["sm",10],["md",20],["lg",30],["xl",40],["2xl",50],["dark",60],["motion-safe",65],["motion-reduce",65],["print",70]]),Lr=16384,F=32;function Z(e){if(e.length>Lr)throw new Error("CSSX utility list exceeds the 16 KiB limit.");let r=[],o="",t=0,i=0,n="",l=!1;for(let a of e){if(l){o+=a,l=!1;continue}if(a==="\\"){o+=a,l=!0;continue}if(n){o+=a,a===n&&(n="");continue}if(a==='"'||a==="'"){n=a,o+=a;continue}if(a==="["&&t++,a==="]"&&t--,a==="("&&i++,a===")"&&i--,t<0||i<0||t>F||i>F)throw new Error(`Invalid utility list "${e}".`);if(/\s/.test(a)&&t===0&&i===0){o&&r.push(o),o="";continue}o+=a}if(l||n||t!==0||i!==0)throw new Error(`Invalid utility list "${e}".`);return o&&r.push(o),r}function M(e){if(!e||e.length>500)throw new Error(`Invalid utility "${e}".`);let r=Xr(e,":"),t=r.pop(),i=!1,n=!1;if(t.startsWith("!")&&(i=!0,t=t.slice(1)),t.endsWith("!")){if(i)throw new Error(`Invalid utility "${e}".`);i=!0,t=t.slice(0,-1)}if(t.startsWith("-")&&(n=!0,t=t.slice(1)),!t||t.startsWith("!")||t.endsWith("!")||Ue(t)||Te(t))throw new Error(`Invalid utility "${e}".`);let l=Pr(r,e);return{raw:e,variants:l,utility:t,important:i,negative:n}}function Re(e){let r=e.variants.join(":");return e.important?r?`${r}!`:"!":r}function Xr(e,r){let o=[],t="",i=0,n=0,l="",a=!1;for(let p of e){if(a){t+=p,a=!1;continue}if(p==="\\"){t+=p,a=!0;continue}if(l){t+=p,p===l&&(l="");continue}if(p==='"'||p==="'"){l=p,t+=p;continue}if(p==="["&&i++,p==="]"&&i--,p==="("&&n++,p===")"&&n--,i<0||n<0||i>F||n>F)throw new Error(`Invalid utility "${e}".`);if(p===r&&i===0&&n===0){if(!t)throw new Error(`Invalid utility "${e}".`);o.push(t),t="";continue}t+=p}if(a||l||i!==0||n!==0)throw new Error(`Invalid utility "${e}".`);if(!t)throw new Error(`Invalid utility "${e}".`);return o.push(t),o}function Pr(e,r){for(let t of e)if(!t||Ue(t)||Te(t))throw new Error(`Invalid utility "${r}".`);return e.every(t=>Gr.has(t)||Y.has(t))?[...e].sort((t,i)=>{let n=Y.get(t)??100,l=Y.get(i)??100;return n-l||t.localeCompare(i)}):e}function Ue(e){let r=0,o=0,t="",i=!1;for(let n of e){if(i){i=!1;continue}if(n==="\\"){i=!0;continue}if(t){n===t&&(t="");continue}if(n==='"'||n==="'"){t=n;continue}if(n==="["&&r++,n==="]"&&r--,n==="("&&o++,n===")"&&o--,r===0&&o===0&&(n===";"||n==="{"||n==="}"))return!0}return!1}function Te(e){let r="",o=!1;for(let t of e){if(o){o=!1;continue}if(t==="\\"){o=!0;continue}if(r){t===r&&(r="");continue}if(t==='"'||t==="'"){r=t;continue}if(t===";"||t==="{"||t==="}")return!0}return!1}var De={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 Ee={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 We=[["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 Q(e){let r=M(e),o=r.utility,t=Fr(o);return t?{scope:Re(r),group:t,conflicts:De[t]??[t]}:null}function Fr(e){if(e.startsWith("[")&&e.endsWith("]"))return Br(e);let r=Ee[e];if(r)return r.group;for(let[o,t]of We)if(e.startsWith(o))return qr(o,t,e);return null}function Br(e){let r=e.slice(1,-1).split(":",1)[0]?.trim().toLowerCase();return!r||!/^(--[a-z0-9_-]+|[a-z-]+)$/i.test(r)?null:`arbitrary..${r}`}function qr(e,r,o){if(e==="border-")return J(o.slice(e.length))?"border-color":r;if(e==="outline-")return J(o.slice(e.length))?"outline-color":r;if(e==="decoration-"){let i=o.slice(e.length);return/^(solid|double|dotted|dashed|wavy)$/.test(i)?"text-decoration-style":J(i)?"text-decoration-color":r}if(e!=="text-")return r;let t=o.slice(e.length);return/^(xs|sm|base|lg|xl|\d+xl)$/.test(t)||t.startsWith("[")&&t.endsWith("]")&&Kr(t.slice(1,-1))?"font-size":/^(left|center|right|justify|start|end)$/.test(t)?"text-align":/^(ellipsis|clip|wrap|nowrap|balance|pretty)$/.test(t)?"text-overflow":"text-color"}function J(e){let r=e.split("/",1)[0];return r.startsWith("[")||/^(?:transparent|current|black|white|[a-z-]+-\d{1,3})$/i.test(r)}function Kr(e){let r=e.replace(/^(?:length|size):/,"");return/^-?(?:\d+(?:\.\d+)?)(?:px|rem|em|ch|ex|vw|vh|vmin|vmax|%|cm|mm|in|pt|pc)$/i.test(r)||r.startsWith("calc(")}var Ae={"--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 ee={...Ae,"--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"},re={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 Hr=131072,Yr=Object.freeze({tokens:Object.freeze({...ee}),keyframes:Object.freeze({...re}),mode:"inline",prefix:""});function V(e=""){if(e.length>Hr)throw new Error("CSSX theme input exceeds the 128 KiB limit.");if(!e.trim())return Yr;let r={...ee},o={...re},t="inline",i="",n,l=0;for(;l<e.length&&(l=I(e,l),!(l>=e.length));){if(!e.startsWith("@theme",l))throw new Error("CSSX theme input only accepts @theme blocks.");l+=6,l=I(e,l);let a=Zr(e,l);if(a){let d=`${a.mode}:${a.prefix}`;if(n!==void 0&&n!==d)throw new Error("CSSX theme blocks cannot use conflicting output modes or prefixes.");n=d,t=a.mode,i=a.prefix,l=I(e,a.end)}if(e[l]!=="{")throw new Error('Expected "{" after @theme.');let p=ie(e,l),u=Jr(p.content,o);rt(u,r),l=p.end}return Object.freeze({tokens:Object.freeze(r),keyframes:Object.freeze(o),mode:t,prefix:i})}function Zr(e,r){let o=/^(default|inline|reference|static)\b/.exec(e.slice(r));if(o)return{mode:o[1]==="reference"||o[1]==="static"?o[1]:"inline",prefix:"",end:r+o[0].length};let t=/^prefix\(([a-z_][a-z0-9_-]*)\)/i.exec(e.slice(r));return t?{mode:"reference",prefix:t[1],end:r+t[0].length}:null}function Jr(e,r){let o="",t=0;for(;t<e.length;){if(e.startsWith("@keyframes",t)){t+=10,t=I(e,t);let i=t;for(;/[a-z0-9_-]/i.test(e[t]);)t++;let n=e.slice(i,t);if(!/^[a-z_][a-z0-9_-]*$/i.test(n))throw new Error("Invalid CSSX @keyframes name.");if(t=I(e,t),e[t]!=="{")throw new Error(`Expected "{" after @keyframes ${n}.`);let l=ie(e,t);Qr(l.content,n),r[n]=`@keyframes ${n}{${l.content}}`,t=l.end;continue}o+=e[t],t++}return o}function Qr(e,r){let o=0;for(;o<e.length;){if(o=I(e,o),o>=e.length)return;let t=o;for(;e[o]!=="{"&&o<e.length;)o++;let i=e.slice(t,o).trim();if(!i||!i.split(",").every(l=>/^(from|to|\d{1,3}(?:\.\d+)?%)$/.test(l.trim())))throw new Error(`Invalid CSSX @keyframes selector in ${r}.`);if(e[o]!=="{")throw new Error(`Unterminated CSSX @keyframes ${r}.`);let n=ie(e,o);for(let l of Me(n.content)){let a=l.indexOf(":"),p=l.slice(0,a).trim(),u=l.slice(a+1).trim();if(a===-1||!/^(--[a-z0-9_-]+|[a-z-]+)$/i.test(p)||!u||/[{};]/.test(u))throw new Error(`Invalid CSSX @keyframes declaration in ${r}.`)}o=n.end}}function R(e,r){let o=E(e,r);if(o!==void 0)return e.mode==="inline"?o:`var(${ne(e,r)})`}function E(e,r){let o=e.tokens[r];if(!(o===void 0||o==="initial"))return Oe(e.tokens,o,new Set([r]))}function te(e,r){if(e.mode==="inline")return"";let o=e.mode==="static"?Object.keys(e.tokens):et(e,r);return o.length===0?"":`:root{${o.sort().map(t=>`${ne(e,t)}:${je(e,e.tokens[t])}`).join(";")}}`}function oe(e,r){let o=e.keyframes[r];return o===void 0?void 0:je(e,o)}function et(e,r){let o=e.prefix?`--${e.prefix}-`:"--",t=new Set,i=new RegExp(`var\\((${o.replace("-","\\-")}[a-z0-9_-]+)`,"gi");for(let n of r.matchAll(i)){let l=n[1],a=e.prefix?`--${l.slice(o.length)}`:l;_e(e,a,t)}return[...t]}function _e(e,r,o){if(!(o.has(r)||e.tokens[r]===void 0||e.tokens[r]==="initial")){o.add(r);for(let t of e.tokens[r].matchAll(/var\((--[a-z0-9_-]+)/gi))_e(e,t[1],o)}}function je(e,r){return r.replace(/var\((--[a-z0-9_-]+)/gi,(o,t)=>`var(${ne(e,t)}`)}function ne(e,r){return e.prefix?`--${e.prefix}-${r.slice(2)}`:r}function rt(e,r){for(let o of Me(e)){let t=o.indexOf(":");if(t===-1)throw new Error(`Invalid CSSX @theme declaration "${o}".`);let i=o.slice(0,t).trim(),n=o.slice(t+1).trim();if(i==="--*"||/^--[a-z0-9-]+-\*$/i.test(i)){if(n!=="initial")throw new Error(`CSSX theme namespace reset "${i}" must use initial.`);let l=i==="--*"?"--":i.slice(0,-1);for(let a of Object.keys(r))a.startsWith(l)&&delete r[a];continue}if(!/^--[a-z0-9-]+$/i.test(i)||!n||/[{};]/.test(n))throw new Error(`Invalid CSSX @theme declaration "${o}".`);r[i]=n}}function Oe(e,r,o){return r.replace(/var\((--[a-z0-9-]+)\)/gi,(t,i)=>{if(o.has(i))throw new Error(`Circular CSSX theme reference involving ${i}.`);let n=e[i];if(n===void 0||n==="initial")throw new Error(`Unknown CSSX theme token ${i}.`);return Oe(e,n,new Set([...o,i]))})}function Me(e){let r=[],o="",t="",i=!1,n=0;for(let l of e){if(i){o+=l,i=!1;continue}if(l==="\\"){o+=l,i=!0;continue}if(t){o+=l,l===t&&(t="");continue}if(l==='"'||l==="'"){t=l,o+=l;continue}if(l==="("&&n++,l===")"&&n--,n<0)throw new Error("Invalid CSSX @theme declaration.");if(l===";"&&n===0){o.trim()&&r.push(o.trim()),o="";continue}o+=l}if(t||i||n!==0)throw new Error("Invalid CSSX @theme declaration.");return o.trim()&&r.push(o.trim()),r}function I(e,r){let o=r;for(;o<e.length;){if(/\s/.test(e[o])){o++;continue}if(e.startsWith("/*",o)){let t=e.indexOf("*/",o+2);if(t===-1)throw new Error("Unterminated CSSX theme comment.");o=t+2;continue}break}return o}function ie(e,r){let o=0,t="",i=!1;for(let n=r;n<e.length;n++){let l=e[n];if(i){i=!1;continue}if(l==="\\"){i=!0;continue}if(t){l===t&&(t="");continue}if(l==='"'||l==="'"){t=l;continue}if(l==="{"&&o++,l==="}"&&o--,o===0)return{content:e.slice(r+1,n),end:n+1}}throw new Error("Unterminated CSSX @theme block.")}function N(e){return e.map(r=>({...r}))}function Ie(e){let r=[];for(let o=0;o<e.length;o++){let t=e[o];if(t.selectorSuffix||t.semanticGroup){let i=[t];for(;e[o+1]?.selectorSuffix===t.selectorSuffix&&(t.selectorSuffix!==void 0||e[o+1]?.semanticGroup===t.semanticGroup);){let n=e[o+1];i.push(n),o++}r.push(i);continue}if(t.property==="--cssx-scale-x"&&e[o+1]?.property==="--cssx-scale-y"&&e[o+2]?.property==="scale"){let i=e[o+1],n=e[o+2];r.push([t,n],[i,n]),o+=2;continue}if(t.property==="--cssx-translate-x"||t.property==="--cssx-translate-y"||t.property==="--cssx-scale-x"||t.property==="--cssx-scale-y"||t.property==="--cssx-skew-x"||t.property==="--cssx-skew-y"){let i=e[o+1];if(i?.property==="translate"||i?.property==="scale"||i?.property==="transform"){r.push([t,i]),o++;continue}}r.push([t])}return r}function Ve(e){let r={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"};return e.startsWith("[")?e.slice(1,-1):r[e]??e}function Ne(e){return{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"}[e]??e}function le(e,r){return e.startsWith("[")&&e.endsWith("]")?`${r?"-":""}${e.slice(1,-1)}`:/^\d+$/.test(e)?`${r?"-":""}${e}deg`:null}function Ge(e,r){if(e.startsWith("[")&&e.endsWith("]"))return`${r?"-":""}${e.slice(1,-1)}`;if(!/^\d+$/.test(e))return null;let o=Number(e)/100;return r?`-${o}`:String(o)}function Le(e,r){let o=tt(e);return o.hasNesting?o.nodes.map(t=>t.type==="nesting"?r:t.value).join(""):null}function tt(e){let r=[],o="",t=!1,i=()=>{o&&r.push({type:"text",value:o}),o=""};for(let n=0;n<e.length;n++){let l=e[n];if(l==="\\"){o+=`${l}${e[n+1]??""}`,n++;continue}if(l==="&"){i(),r.push({type:"nesting"}),t=!0;continue}if(l==="["){i();let a=ot(e,n);r.push({type:"attribute",value:e.slice(n,a+1)}),n=a;continue}if(l==='"'||l==="'"){i();let a=Xe(e,n,l);r.push({type:"string",value:e.slice(n,a+1)}),n=a;continue}if(l==="/"&&e[n+1]==="*"){i();let a=e.indexOf("*/",n+2);if(a===-1)throw new Error("Invalid CSSX arbitrary selector comment.");r.push({type:"comment",value:e.slice(n,a+2)}),n=a+1;continue}o+=l}return i(),{nodes:r,hasNesting:t}}function ot(e,r){let o=1;for(let t=r+1;t<e.length;t++){let i=e[t];if(i==="\\"){t++;continue}if(i==='"'||i==="'"){t=Xe(e,t,i);continue}if(i==="["&&o++,i==="]"&&o--,o===0)return t}throw new Error("Invalid CSSX arbitrary selector attribute.")}function Xe(e,r,o){for(let t=r+1;t<e.length;t++){if(e[t]==="\\"){t++;continue}if(e[t]===o)return t}throw new Error("Invalid CSSX arbitrary selector string.")}function ce(e,r,o,t,i={}){it(o);let n=typeof e=="string"?[e]:[...e],l=r[0]?.selectorSuffix??"";if(r.some(s=>(s.selectorSuffix??"")!==l))throw new Error("CSSX utility declarations must share one selector scope.");let a=[],p=!1;for(let s of o)if(s==="*")n=n.map(c=>`:is(${c}${l} > *)`),l="";else if(s==="**")n=n.map(c=>`:is(${c}${l} *)`),l="";else if(s==="hover")n=n.map(c=>`${c}:hover`),a.push("@media (hover: hover)");else if(A[s])n=n.map(c=>`${c}:${A[s]}`);else if(se[s])n=n.map(c=>`${c}::${se[s]}`),p||=s==="before"||s==="after";else if(Pe(s))n=n.map(c=>`${c}:state(${Pe(s)})`);else if(Fe(s))n=n.map(c=>`.group:state(${Fe(s)}) ${c}`);else if(Be(s))n=n.map(c=>`.peer:state(${Be(s)}) ~ ${c}`);else if(lt(s)){let c=s.slice(6);n=n.map(f=>`.group:${A[c]} ${f}`)}else if(at(s)){let c=s.slice(5);n=n.map(f=>`.peer:${A[c]} ~ ${f}`)}else if(s.startsWith("has-[")&&s.endsWith("]"))n=n.map(c=>`${c}:has(${s.slice(5,-1)})`);else if(s.startsWith("has-")&&L(s.slice(4))){let c=s.slice(4);n=n.map(f=>`${f}:has(*:${A[c]})`)}else if(s.startsWith("not-")&&L(s.slice(4))){let c=s.slice(4);n=n.map(f=>`${f}:not(*:${A[c]})`)}else if(s.startsWith("in-")&&L(s.slice(3))){let c=s.slice(3);n=n.map(f=>`:where(*:${A[c]}) ${f}`)}else if(s.startsWith("[")&&s.endsWith("]")){let c=s.slice(1,-1);if(c.startsWith("@supports")||c.startsWith("@media"))a.push(st(c));else{let f=n.map(b=>Le(nt(c),`${b}${l}`));if(f.some(b=>b===null))throw new Error(`CSSX arbitrary selector variant "${s}" must contain "&".`);n=f.filter(b=>b!==null),l=""}}else if(s==="dark")i.darkMode==="selector"?n=n.map(c=>`${c}:where([data-theme=dark], [data-theme=dark] *)`):a.push("@media (prefers-color-scheme: dark)");else if(s==="motion-safe")a.push("@media (prefers-reduced-motion: no-preference)");else if(s==="motion-reduce")a.push("@media (prefers-reduced-motion: reduce)");else if(s==="starting")a.push("@starting-style");else if(ae(s)){let c=ae(s);n=n.map(f=>`${f}${c}`),a.push("@supports (view-transition-name: none)")}else if(s==="print")a.push("@media print");else if(s.startsWith("data-[")&&s.endsWith("]"))n=n.map(c=>`${c}[data-${s.slice(6,-1)}]`);else if(/^data-[a-z][a-z0-9_-]*$/i.test(s))n=n.map(c=>`${c}[${s}]`);else if(s.startsWith("aria-[")&&s.endsWith("]"))n=n.map(c=>`${c}[aria-${s.slice(6,-1)}]`);else if(s.startsWith("aria-"))n=n.map(c=>`${c}[aria-${s.slice(5)}="true"]`);else if(s.startsWith("supports-[")&&s.endsWith("]"))a.push(`@supports (${s.slice(10,-1).replace(":",": ")})`);else if(s.startsWith("not-supports-[")&&s.endsWith("]"))a.push(`@supports not (${s.slice(14,-1).replace(":",": ")})`);else if((s.startsWith("min-[")||s.startsWith("max-["))&&s.endsWith("]")){let c=s.slice(5,-1);if(!c||/[;{}]/.test(c))throw new Error(`Invalid CSSX responsive variant "${s}".`);a.push(s.startsWith("min-")?`@media (width >= ${c})`:`@media (width < ${c})`)}else if(s.startsWith("max-")){let c=E(t,`--breakpoint-${s.slice(4)}`);if(!c)throw new Error(`CSSX does not support variant "${s}".`);a.push(`@media (width < ${c})`)}else{let c=E(t,`--breakpoint-${s}`);if(!c)throw new Error(`CSSX does not support variant "${s}".`);a.push(`@media (width >= ${c})`)}let u=p?[{property:"content",value:'var(--cssx-content, "")'},...r]:r,d=new Map;for(let s of u){let c=s.atRule??"",f=d.get(c)??[];f.push(s),d.set(c,f)}let m=[...d].map(([s,c])=>{let b=`${n.map(g=>`${g}${l}`).join(",")}{${c.map(g=>`${g.property}:${g.value};`).join("")}}`;return s?`${s}{${b}}`:b}).join("");for(let s=a.length-1;s>=0;s--)m=`${a[s]}{${m}}`;return m}function nt(e){return e.replace(/\\_/g,"\0").replaceAll("_"," ").replaceAll("\0","_")}function ae(e){let r=/^vt-(group|image-pair|old|new)-\[([^\]]+)\]$/i.exec(e),o=r?.[2]??"",t=o==="*"||/^\.[a-z_][a-z0-9_-]*$/i.test(o)||/^[a-z_][a-z0-9_-]*$/i.test(o)&&!/^(?:inherit|initial|none|revert|revert-layer|unset)$/i.test(o);return!r||!t?null:`::view-transition-${r[1]}(${o})`}function it(e){let r=e.filter(t=>ae(t));if(r.length===0)return;let o=e.find(t=>!r.includes(t)&&(t==="*"||t==="**"||se[t]!==void 0||t.startsWith("group-")||t.startsWith("peer-")||t.startsWith("has-")||t.startsWith("in-")||t.startsWith("[")&&!t.startsWith("[@supports")&&!t.startsWith("[@media")));if(r.length>1||o)throw new Error("CSSX View Transition variants cannot compose with relationship or pseudo-element variants.")}var A={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"},se={before:"before",after:"after",selection:"selection",marker:"marker",file:"file-selector-button","first-letter":"first-letter","first-line":"first-line",placeholder:"placeholder"};function L(e){return A[e]!==void 0}function lt(e){return e.startsWith("group-")&&L(e.slice(6))}function at(e){return e.startsWith("peer-")&&L(e.slice(5))}function Pe(e){return pe(e,"state-")}function Fe(e){return pe(e,"group-state-")}function Be(e){return pe(e,"peer-state-")}function pe(e,r){if(!e.startsWith(`${r}[`)||!e.endsWith("]"))return null;let o=e.slice(r.length+1,-1);if(!/^[a-z_][a-z0-9_-]*$/i.test(o)||/^(?:inherit|initial|revert|revert-layer|unset)$/i.test(o))throw new Error(`Invalid CSSX custom state variant "${e}".`);return o}function st(e){let r=/^@(supports|media)\s*(.*)$/.exec(e),o=r?.[1],t=r?.[2]?.trim();if(!o||!t)throw new Error(`Invalid CSSX arbitrary at-rule variant "[${e}]".`);return`@${o} ${t}`}function ct(e){return Object.fromEntries(e.flatMap(([r,o])=>o.split(";").map(t=>{let i=t.indexOf("=");return[t.slice(0,i),[{property:r,value:t.slice(i+1)}]]})))}var pt=ct([["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"]]),qe={...pt,"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 ut="var(--cssx-shadow, 0 0 #0000), var(--cssx-ring-offset-shadow, 0 0 #0000), var(--cssx-ring-shadow, 0 0 #0000)";function j(e){return[{property:"--cssx-shadow",value:e,semanticGroup:"shadow"},{property:"box-shadow",value:ut,semanticGroup:"shadow"}]}var Ke={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:j("0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1)"),"shadow-none":j("0 0 #0000"),"shadow-sm":j("0 1px 2px 0 rgb(0 0 0 / .05)"),"shadow-md":j("0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1)"),"shadow-lg":j("0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1)"),"shadow-xl":j("0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1)"),"shadow-2xl":j("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 He={...qe,...Ke};function v(e){return e.startsWith("(")&&e.endsWith(")")?`var(${e.slice(1,-1)})`:e.slice(1,-1).replaceAll("\\_","\0").replaceAll("_"," ").replaceAll("\0","_")}function X(e){return e.startsWith("[")&&e.endsWith("]")?e.slice(1,-1):/^(0|2|4|8)$/.test(e)?`${e}px`.replace("0px","0"):null}function S(e,r,o){let t=r?"-":"";if(e==="px")return`${t}1px`;if(e==="full")return`${t}100%`;if(e.startsWith("[")&&e.endsWith("]"))return`${t}${e.slice(1,-1)}`;if(!/^\d+(?:\.\d+)?$/.test(e))return null;let i=R(o,"--spacing");return i?`${t}calc(${i} * ${e})`:null}function Ye(e){let r=/^(\d+)\/(\d+)$/.exec(e);return r?Number(r[2])===0?null:`calc(${r[1]} / ${r[2]} * 100%)`:/^\d+$/.test(e)?e:null}function W(e,r,o,t){let i={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"};if((t==="max-w"||t==="max-inline")&&i[e])return i[e];if(e==="auto"||e==="full"||e==="screen"){let a={auto:"auto",full:"100%",screen:t.includes("block")?"100vb":t.includes("inline")?"100vi":t.includes("h")?"100vh":"100vw"}[e];return a&&r?`-${a}`:a}let n=/^(\d+)\/(\d+)$/.exec(e);if(n){let l=Number(n[1]),a=Number(n[2]);return a===0?null:`${r?"-":""}${l/a*100}%`}return S(e,r,o)}function D(e,r){return e.startsWith("[")&&e.endsWith("]")?e.slice(1,-1):R(r,`--color-${e}`)??null}function U(e){let r=0,o=0,t="",i=!1;for(let n=0;n<e.length;n++){let l=e[n];if(i){i=!1;continue}if(l==="\\"){i=!0;continue}if(t){l===t&&(t="");continue}if(l==='"'||l==="'"){t=l;continue}if(l==="["&&r++,l==="]"&&r--,l==="("&&o++,l===")"&&o--,l==="/"&&r===0&&o===0)return{value:e.slice(0,n),opacity:e.slice(n+1)}}return{value:e}}function T(e){let r=e.startsWith("[")&&e.endsWith("]")?e.slice(1,-1):e;if(!/^\d+(?:\.\d+)?$/.test(r))return null;let o=Number(r);return o<0||o>100?null:String(o)}function Ze(e){let r=e.replace(/^(?:length|size):/,"");return/^-?(?:\d+(?:\.\d+)?)(?:px|rem|em|ch|ex|vw|vh|vmin|vmax|%|cm|mm|in|pt|pc)$/i.test(r)||r.startsWith("calc(")}function Je(e){return e.startsWith("image:")||/^(?:url|linear-gradient|radial-gradient|conic-gradient|image-set)\(/.test(e)}function Qe(e,r,o){let t=/^(w|h|min-w|max-w|min-h|max-h|inline|min-inline|max-inline|block|min-block|max-block)-(.+)$/.exec(e);if(!t)return null;let i=t[1],n=W(t[2],r,o,i);return n?{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"}[i],value:n}:null}function er(e){let r=e.slice(1,-1),o=r.indexOf(":"),t=r.slice(0,o).trim(),i=r.slice(o+1).trim();if(!/^(--[a-z0-9_-]+|[a-z-]+)$/i.test(t)||!i||/[{};]/.test(i))throw new Error(`Invalid arbitrary CSSX utility "${e}".`);return{property:t,value:v(`[${i}]`)}}function rr(e,r){if(e==="none")return{property:"animation",value:"none"};if(e.startsWith("[")&&e.endsWith("]"))return{property:"animation",value:e.slice(1,-1)};let o=R(r,`--animate-${e}`);return o?{property:"animation",value:o}:null}function tr(e,r,o){let t=/^(translate-x|translate-y)-(.+)$/.exec(e);if(t){let a=t[1]==="translate-x"?"--cssx-translate-x":"--cssx-translate-y",p=S(t[2],r,o);return p?[{property:a,value:p},{property:"translate",value:"var(--cssx-translate-x, 0) var(--cssx-translate-y, 0)"}]:null}let i=/^rotate-(.+)$/.exec(e);if(i){let a=le(i[1],r);return a?[{property:"rotate",value:a}]:null}let n=/^(scale-x|scale-y|scale)-(.+)$/.exec(e);if(n){let a=n[1],p=Ge(n[2],r);return p?a==="scale-x"?[{property:"--cssx-scale-x",value:p},{property:"scale",value:"var(--cssx-scale-x, 1) var(--cssx-scale-y, 1)"}]:a==="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 a=l[1],p=le(l[2],r);return p?[{property:`--cssx-skew-${a}`,value:p},{property:"transform",value:"skewX(var(--cssx-skew-x, 0deg)) skewY(var(--cssx-skew-y, 0deg))"}]:null}return null}function or(e){let r=/^border-(x|y|t|r|b|l)-(0|2|4|8)$/.exec(e);if(!r)return null;let o=r[1],t=`${r[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"]}[o].map(n=>({property:n,value:t}))}function nr(e,r,o){let t=/^(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(!t)return null;let i=t[1],n=t[2],l=i.startsWith("inset")?W(n,r,o,"inset"):n==="auto"&&i.startsWith("m")&&!r?"auto":S(n,r,o);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"]}[i].map(u=>({property:u,value:l})):null}function ir(e,r,o){let t=/^space-(x|y)-(.+)$/.exec(e);if(!t)return null;let i=t[1],n=t[2],l=" > :not(:last-child)",a=n==="reverse"?`space-${i}-reverse`:`space-${i}`,p=`--cssx-space-${i}-reverse`;if(n==="reverse")return[{property:p,value:"1",selectorSuffix:l,semanticGroup:a}];let u=S(n,r,o);if(!u)return null;let[d,m]=i==="x"?["margin-left","margin-right"]:["margin-top","margin-bottom"];return[{property:p,value:"0",selectorSuffix:l,semanticGroup:a},{property:d,value:`calc(${u} * calc(1 - var(${p})))`,selectorSuffix:l,semanticGroup:a},{property:m,value:`calc(${u} * var(${p}))`,selectorSuffix:l,semanticGroup:a}]}function lr(e,r){let o=" > :not(:last-child)",t=/^divide-(x|y)(?:-(.+))?$/.exec(e);if(t){let u=t[1],d=t[2]??"DEFAULT",m=`--cssx-divide-${u}-reverse`,s=d==="reverse"?`divide-${u}-reverse`:`divide-${u}`;if(d==="reverse")return[{property:m,value:"1",selectorSuffix:o,semanticGroup:s}];let c=d==="DEFAULT"?"1px":X(d);if(!c)return null;let[f,b]=u==="x"?["border-left-width","border-right-width"]:["border-top-width","border-bottom-width"];return[{property:m,value:"0",selectorSuffix:o,semanticGroup:s},{property:f,value:`calc(${c} * calc(1 - var(${m})))`,selectorSuffix:o,semanticGroup:s},{property:b,value:`calc(${c} * var(${m}))`,selectorSuffix:o,semanticGroup:s}]}let i=/^divide-(.+)$/.exec(e);if(!i)return null;let n=U(i[1]),l=D(n.value,r);if(!l)return null;let a=n.opacity===void 0?null:T(n.opacity);return n.opacity!==void 0&&a===null?null:[{property:"border-color",value:a===null?l:`color-mix(in srgb, ${l} ${a}%, transparent)`,selectorSuffix:o,semanticGroup:"divide-color"}]}function ar(e,r){let o=/^placeholder-(.+)$/.exec(e);if(!o)return null;let t=U(o[1]),i=D(t.value,r);if(!i)return null;let n=t.opacity===void 0?null:T(t.opacity);return t.opacity!==void 0&&n===null?null:[{property:"color",value:n===null?i:`color-mix(in srgb, ${i} ${n}%, transparent)`,selectorSuffix:"::placeholder",semanticGroup:"placeholder-color"}]}function sr(e,r,o){let i={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(i)return N(i);let n=/^outline-offset-(.+)$/.exec(e);if(n){let m=S(n[1],r,o);return m?[{property:"outline-offset",value:m}]:null}let l=/^outline-(0|1|2|4|8|\[[^\]]+\])$/.exec(e);if(l){let m=l[1];return[{property:"outline-width",value:m.startsWith("[")?m.slice(1,-1):`${m}px`.replace("0px","0")}]}let a=/^outline-(.+)$/.exec(e);if(!a)return null;let p=U(a[1]),u=D(p.value,o);if(!u)return null;let d=p.opacity===void 0?null:T(p.opacity);return p.opacity!==void 0&&d===null?null:[{property:"outline-color",value:d===null?u:`color-mix(in srgb, ${u} ${d}%, transparent)`}]}function cr(e,r){if(e!=="container")return null;let o=["sm","md","lg","xl","2xl"],t=[{property:"width",value:"100%",semanticGroup:"container"}];for(let i of o){let n=E(r,`--breakpoint-${i}`);n&&t.push({property:"max-width",value:n,atRule:`@media (width >= ${n})`,semanticGroup:"container"})}return t}function pr(e,r,o){let i={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(i)return i;let n=/^(overflow|overflow-x|overflow-y)-(auto|hidden|clip|visible|scroll)$/.exec(e);if(n)return{property:n[1],value:n[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 a=/^aspect-(\[[^\]]+\])$/.exec(e);if(a)return{property:"aspect-ratio",value:a[1].slice(1,-1)};let p=/^size-(.+)$/.exec(e);if(p){let y=W(p[1],r,o,"size");return y?[{property:"width",value:y},{property:"height",value:y}]:null}let u=/^(start|end)-(.+)$/.exec(e);if(u){let y=W(u[2],r,o,u[1]);return y?{property:u[1]==="start"?"inset-inline-start":"inset-inline-end",value:y}:null}let d=/^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(d)return{property:"cursor",value:d[1]};let m=/^will-change-(auto|scroll|contents|transform)$/.exec(e);if(m)return{property:"will-change",value:m[1]};let s=/^grid-flow-(row|col|row-dense|col-dense)$/.exec(e);if(s)return{property:"grid-auto-flow",value:s[1].replace("-"," ")};let c=/^auto-(cols|rows)-(auto|min|max|fr)$/.exec(e);if(c){let y={auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"};return{property:c[1]==="cols"?"grid-auto-columns":"grid-auto-rows",value:y[c[2]]}}let f=/^scroll-(mx|my|mt|mr|mb|ml|m|px|py|pt|pr|pb|pl|p)-(.+)$/.exec(e);if(f){let y=f[1],k=S(f[2],r,o);return k?{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"]}[y].map(w=>({property:w,value:k})):null}let b=/^stroke-(\d+|\[[^\]]+\])$/.exec(e);if(b){let y=b[1];return{property:"stroke-width",value:y.startsWith("[")?y.slice(1,-1):y}}let g=/^scrollbar-(thumb|track)-(.+)$/.exec(e);if(g){let y=g[1],k=U(g[2]),C=D(k.value,o);if(!C)return null;let w=k.opacity===void 0?null:T(k.opacity);if(k.opacity!==void 0&&w===null)return null;let _=w===null?C:`color-mix(in srgb, ${C} ${w}%, transparent)`,h=`scrollbar-${y}`;return[{property:`--cssx-scrollbar-${y}`,value:_,semanticGroup:h},{property:"scrollbar-color",value:"var(--cssx-scrollbar-thumb, #0000) var(--cssx-scrollbar-track, #0000)",semanticGroup:h}]}return null}function B(e,r){return e==="current"?"currentColor":e==="inherit"?"inherit":D(e,r)}function ur(e,r,o){let t=/^bg-linear-to-(t|tr|r|br|b|bl|l|tl)(?:\/(srgb|oklch|oklab|hsl|longer|shorter|increasing|decreasing))?$/.exec(e);if(t){let b={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"},g=t[2]?`in ${t[2]} `:"",y=b[t[1]];return[{property:"background-image",value:`linear-gradient(${g}${y}, var(--cssx-gradient-via-stops, var(--cssx-gradient-stops)))`,semanticGroup:"background-image"}]}let i=/^bg-linear-(\d+|\[[^\]]+\])$/.exec(e);if(i){let b=i[1];return[{property:"background-image",value:`linear-gradient(${b.startsWith("[")?b.slice(1,-1):`${r?"-":""}${b}deg`}, var(--cssx-gradient-via-stops, var(--cssx-gradient-stops)))`,semanticGroup:"background-image"}]}let n=/^(from|via|to)-(.+)$/.exec(e);if(!n)return null;let l=n[1],a=n[2],p=`gradient-${l}`,u=dt(a);if(u)return[{property:`--cssx-gradient-${l}-position`,value:u,semanticGroup:p}];let d=U(a),m=D(d.value,o);if(!m)return null;let s=d.opacity===void 0?null:T(d.opacity);if(d.opacity!==void 0&&s===null)return null;let c=s===null?m:`color-mix(in srgb, ${m} ${s}%, 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 dt(e){let r=e.startsWith("[")&&e.endsWith("]")?e.slice(1,-1):e;if(!/^\d+(?:\.\d+)?%$/.test(r))return null;let o=Number(r.slice(0,-1));return o>=0&&o<=100?r:null}function dr(e,r){let o=/^(bg|text|border|accent|caret|fill|stroke)-(.+)$/.exec(e);if(!o)return null;let t=o[1],i=U(o[2]),n=i.value;if(t==="text"&&/^(xs|sm|base|lg|xl|\d+xl)$/.test(n))return null;if(t==="text"&&n.startsWith("[")&&n.endsWith("]")){let m=n.slice(1,-1);if(Ze(m))return{property:"font-size",value:m.replace(/^(?:length|size):/,"")}}if(t==="bg"&&n.startsWith("[")&&n.endsWith("]")){let m=n.slice(1,-1);if(Je(m))return{property:"background-image",value:m.replace(/^image:/,"")}}let l=B(n,r);if(!l)return null;let a=i.opacity===void 0?null:T(i.opacity);if(i.opacity!==void 0&&a===null)return null;let p=a===null?l:`color-mix(in srgb, ${l} ${a}%, transparent)`;return{property:{bg:"background-color",text:"color",border:"border-color",accent:"accent-color",caret:"caret-color",fill:"fill",stroke:"stroke"}[t],value:p}}function mr(e,r){let o=/^underline-offset-(auto|\d+|\[[^\]]+\]|\(--[a-z0-9_-]+\))$/i.exec(e);if(o){let l=o[1];return{property:"text-underline-offset",value:(l==="auto"?l:l.startsWith("(")?v(l):S(l,!1,r))??v(l)}}let t=/^decoration-(.+)$/.exec(e);if(!t)return null;let i=t[1];if(/^(solid|double|dotted|dashed|wavy)$/.test(i))return{property:"text-decoration-style",value:i};if(/^(auto|from-font|\d+)$/.test(i))return{property:"text-decoration-thickness",value:i==="auto"||i==="from-font"?i:`${i}px`};if(i.startsWith("[")||i.startsWith("("))return{property:"text-decoration-thickness",value:v(i)};let n=D(i,r);return n?{property:"text-decoration-color",value:n}:null}var fr="var(--cssx-shadow, 0 0 #0000), var(--cssx-ring-offset-shadow, 0 0 #0000), var(--cssx-ring-shadow, 0 0 #0000)",mt="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,)",ft="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 gr(e,r){return hr(e,r,"filter","--cssx-filter-","",mt,!1)}function yr(e,r){return e.startsWith("backdrop-")?hr(e.slice(9),r,"backdrop-filter","--cssx-backdrop-","backdrop-",ft,!0):null}function hr(e,r,o,t,i,n,l){let a=`${i}filter-none`,p=["filter-none","blur","brightness","contrast","drop-shadow","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(c=>`${i}${c}`);if(e==="filter-none")return gt(o,a,p);let u={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"}},d=/^(blur|brightness|contrast|grayscale|invert|saturate|sepia|opacity)(?:-(.+))?$/.exec(e);if(d){let c=d[1];if(c==="opacity"&&!l)return null;let f=d[2]??"DEFAULT",g=(f.startsWith("[")&&f.endsWith("]")?f.slice(1,-1):null)??u[c]?.[f];if(!g)return null;let y=c==="blur"?`blur(${g})`:`${c}(${g})`;return ue(o,t,i,n,c,y)}let m=/^hue-rotate-(.+)$/.exec(e);if(m){let c=m[1],f=c.startsWith("[")&&c.endsWith("]")?c.slice(1,-1):/^\d+$/.test(c)?`${r?"-":""}${c}deg`:null;return f?ue(o,t,i,n,"hue-rotate",`hue-rotate(${f})`):null}let s=/^drop-shadow(?:-(.+))?$/.exec(e);if(s){let c=s[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)"},b=c.startsWith("[")&&c.endsWith("]")?c.slice(1,-1):f[c];return o==="filter"&&b?ue(o,t,i,n,"drop-shadow",`drop-shadow(${b})`):null}return null}function gt(e,r,o){let t=[{property:e,value:"none",semanticGroup:r,semanticConflicts:o}];return e==="backdrop-filter"&&t.unshift({property:"-webkit-backdrop-filter",value:"none",semanticGroup:r,semanticConflicts:o}),t}function ue(e,r,o,t,i,n){let l=`${o}${i}`,a=[l,`${o}filter-none`],p=[{property:`${r}${i}`,value:n,semanticGroup:l,semanticConflicts:a}];return e==="backdrop-filter"&&p.push({property:"-webkit-backdrop-filter",value:t,semanticGroup:l,semanticConflicts:a}),p.push({property:e,value:t,semanticGroup:l,semanticConflicts:a}),p}function br(e,r){let o=/^ring-offset-(.+)$/.exec(e);if(o){let p=o[1],u=X(p);if(u)return[{property:"--cssx-ring-offset-width",value:u,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:fr,semanticGroup:"ring-offset-width"}];let d=B(p,r);return d?[{property:"--cssx-ring-offset-color",value:d,semanticGroup:"ring-offset-color"}]:null}let t=e==="ring"?"1px":X(/^ring-(.+)$/.exec(e)?.[1]??"");if(t)return[{property:"--cssx-ring-width",value:t,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:fr,semanticGroup:"ring-width"}];let i=/^ring-(.+)$/.exec(e);if(!i)return null;let n=U(i[1]),l=B(n.value,r);if(!l)return null;let a=n.opacity===void 0?null:T(n.opacity);return n.opacity!==void 0&&a===null?null:[{property:"--cssx-ring-color",value:a===null?l:`color-mix(in srgb, ${l} ${a}%, transparent)`,semanticGroup:"ring-color"}]}var yt={"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 vr(e,r){let o=yt[e];if(o)return{property:o[0],value:o[1]};let t=/^contain-\[(.+)\]$/.exec(e);if(t)return{property:"contain",value:v(`[${t[1]}]`)};let i=/^contain-intrinsic-(size|inline-size|block-size)-(.+)$/.exec(e);if(i){let l=i[1],a=i[2],p=`contain-intrinsic-${l}`,u=ht(a,p,r);return u?{property:p,value:u}:null}let n=/^stroke-(miterlimit|dasharray|dashoffset)-(.+)$/.exec(e);if(n){let l=`stroke-${n[1]}`,a=n[2],p=bt(a);return p?{property:l,value:p}:null}return null}function ht(e,r,o){return e==="none"?"none":/^\d+(?:\.\d+)?$/.test(e)?S(e,!1,o):vt(e,`--${r}-${e}`,o)}function bt(e){return/^\d+(?:\.\d+)?$/.test(e)?e:e.startsWith("[")||e.startsWith("(")?v(e):null}function vt(e,r,o){return e.startsWith("[")&&e.endsWith("]")||e.startsWith("(")&&e.endsWith(")")?v(e):R(o,r)??null}var xt={linear:"linear",in:"cubic-bezier(.4, 0, 1, 1)",out:"cubic-bezier(0, 0, .2, 1)","in-out":"cubic-bezier(.4, 0, .2, 1)"},q="@supports (animation-timeline: scroll())",xr="@supports (scroll-timeline-name: none)",de="@supports (view-timeline-name: none)",kr="@supports (timeline-scope: none)",kt="@supports (animation-range: normal)",wr="@supports (view-transition-name: none)",$r="@supports (view-transition-class: none)",wt=["transition-","duration-","delay-","ease-","animation-","stagger-","scroll-timeline-","view-timeline-","timeline-scope-","view-transition-"];function Tr(e){return wt.some(r=>e.startsWith(r))}function Dr(e,r,o){let i={"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(i)return Sr(i);let n=/^transition-(\[[\s\S]+\])$/.exec(e);if(n)return Sr(v(n[1]));if(e==="delay-stagger")return r?null:{property:"transition-delay",value:Rr()};let l=/^(duration|delay)-(.+)$/.exec(e);if(l){let h=l[1];if(r&&h==="duration")return null;let $=me(l[2],`--${h}-`,o);return $?{property:`transition-${h}`,value:r?zr($):$}:null}let a=/^ease-(.+)$/.exec(e);if(a){let h=Cr(a[1],o);return!r&&h?{property:"transition-timing-function",value:h}:null}let p=/^animation-name-(.+)$/.exec(e);if(p){let h=p[1];return r?null:h==="none"?{property:"animation-name",value:"none"}:h.startsWith("[")&&h.endsWith("]")?{property:"animation-name",value:v(h)}:o.keyframes[h]?{property:"animation-name",value:h}:null}if(e==="animation-delay-stagger")return r?null:{property:"animation-delay",value:Rr()};let u=/^animation-(duration|delay)-(.+)$/.exec(e);if(u){let h=u[1],$=u[2];if(h==="duration"&&$==="auto"&&!r)return{property:"animation-duration",value:"auto"};if(r&&h==="duration")return null;let O=me($,`--animation-${h}-`,o);return O?{property:`animation-${h}`,value:r?zr(O):O}:null}let d=/^animation-ease-(.+)$/.exec(e);if(d){let h=Cr(d[1],o,!0);return!r&&h?{property:"animation-timing-function",value:h}:null}let m=/^animation-iterations-(.+)$/.exec(e);if(m){let h=m[1],$=h==="infinite"||/^\d+(?:\.\d+)?$/.test(h)?h:K(h);return!r&&$?{property:"animation-iteration-count",value:$}:null}let s=/^animation-direction-(normal|reverse|alternate|alternate-reverse)$/.exec(e);if(s)return r?null:{property:"animation-direction",value:s[1]};let c=/^animation-fill-(none|forwards|backwards|both)$/.exec(e);if(c)return r?null:{property:"animation-fill-mode",value:c[1]};let f=/^animation-(running|paused)$/.exec(e);if(f)return r?null:{property:"animation-play-state",value:f[1]};let b=/^animation-composition-(replace|add|accumulate)$/.exec(e);if(b)return r?null:{property:"animation-composition",value:b[1]};let g=/^stagger-(?!index-|count-)(.+)$/.exec(e);if(g){let h=g[1];if(h==="reverse")return r?null:{property:"--cssx-stagger-reverse",value:"1"};let $=me(h,"--stagger-",o);return!r&&$?{property:"--cssx-stagger",value:$}:null}let y=/^stagger-(index|count)-(\d+|\[\d+\])$/.exec(e);if(y){let h=y[2].replaceAll(/\[|\]/g,"");return r?null:{property:`--cssx-stagger-${y[1]}`,value:h}}let k=$t(e);if(k)return r?null:k;let C=St(e);if(C)return r?null:C;let w=Ct(e);if(w)return r?null:w;let _=zt(e);return _&&!r?_:null}function Sr(e){return[{property:"transition-property",value:e},{property:"transition-duration",value:"150ms"},{property:"transition-timing-function",value:"cubic-bezier(.4, 0, .2, 1)"}]}function me(e,r,o){return/^\d+(?:\.\d+)?$/.test(e)?`${e}ms`:K(e)??R(o,`${r}${e}`)??null}function Cr(e,r,o=!1){let t=K(e);return xt[e]??t??R(r,`--ease-${e}`)??(o?R(r,`--animation-ease-${e}`):void 0)??null}function K(e){return e.startsWith("[")&&e.endsWith("]")||e.startsWith("(")&&e.endsWith(")")?v(e):null}function zr(e){return/^\d/.test(e)?`-${e}`:`calc(${e} * -1)`}function Rr(){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 $t(e){let r={"animation-timeline-auto":"auto","animation-timeline-none":"none"};if(r[e])return{property:"animation-timeline",value:r[e],atRule:q};let o=/^animation-timeline-scroll(?:-(root|self))?-(block|inline|x|y)$/.exec(e);if(o){let n=o[1];return{property:"animation-timeline",value:n?`scroll(${n} ${o[2]})`:`scroll(${o[2]})`,atRule:q}}let t=/^animation-timeline-view-(block|inline|x|y)$/.exec(e);if(t)return{property:"animation-timeline",value:`view(${t[1]})`,atRule:q};let i=/^animation-timeline-\[(--[a-z_][a-z0-9_-]*)\]$/i.exec(e);return i?{property:"animation-timeline",value:i[1],atRule:q}:null}function St(e){let r=/^(scroll|view)-timeline-name-\[(--[a-z_][a-z0-9_-]*)\]$/i.exec(e);if(r)return{property:`${r[1]}-timeline-name`,value:r[2],atRule:r[1]==="scroll"?xr:de};let o=/^(scroll|view)-timeline-axis-(block|inline|x|y)$/.exec(e);if(o)return{property:`${o[1]}-timeline-axis`,value:o[2],atRule:o[1]==="scroll"?xr:de};let t=/^view-timeline-inset-(\[[\s\S]+\])$/.exec(e);if(t)return{property:"view-timeline-inset",value:v(t[1]),atRule:de};if(e==="timeline-scope-all")return{property:"timeline-scope",value:"all",atRule:kr};let i=/^timeline-scope-\[(--[a-z_][a-z0-9_-]*)\]$/i.exec(e);return i?{property:"timeline-scope",value:i[1],atRule:kr}:null}function Ct(e){let r=/^animation-range(?:-(start|end))?-(.+)$/.exec(e);if(!r)return null;let o=r[1]?`animation-range-${r[1]}`:"animation-range",t=r[2],i=/^(normal|entry|exit|cover|contain)$/.test(t)?t:K(t);return i?{property:o,value:i,atRule:kt}:null}function zt(e){if(e==="view-transition-name-none")return{property:"view-transition-name",value:"none",atRule:wr};if(e==="view-transition-name-match")return{property:"view-transition-name",value:"match-element",atRule:"@supports (view-transition-name: match-element)"};let r=/^view-transition-name-\[([^\]]+)\]$/.exec(e);if(r&&Ur(r[1],["auto","match-element","none"]))return{property:"view-transition-name",value:r[1],atRule:wr};if(e==="view-transition-class-none")return{property:"view-transition-class",value:"none",atRule:$r};let o=/^view-transition-class-\[([^\]]+)\]$/.exec(e);if(o){let t=v(`[${o[1]}]`);if(t.split(/\s+/).every(i=>Ur(i,["none"])))return{property:"view-transition-class",value:t,atRule:$r}}return null}function Ur(e,r){return/^[a-z_][a-z0-9_-]*$/i.test(e)&&!r.includes(e.toLowerCase())&&!/^(?:inherit|initial|revert|revert-layer|unset)$/i.test(e)}var Rt="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 Er(e){let r={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"},o=["numeric-normal",...Object.keys(r).map(l=>`numeric-${l}`)];if(e==="normal-nums")return[{property:"font-variant-numeric",value:"normal",semanticGroup:"numeric-normal",semanticConflicts:o}];let t=r[e];if(!t)return null;let i=`numeric-${e}`,n=[i,"numeric-normal"];return[{property:`--cssx-numeric-${e}`,value:t,semanticGroup:i,semanticConflicts:n},{property:"font-variant-numeric",value:Rt,semanticGroup:i,semanticConflicts:n}]}function Wr(e){let o={"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(o)return Array.isArray(o)?N(o):o;let t=/^bg-position-(\[[^\]]+\]|\(--[a-z0-9_-]+\))$/i.exec(e);if(t)return{property:"background-position",value:v(t[1])};let i=/^bg-size-(\[[^\]]+\]|\(--[a-z0-9_-]+\))$/i.exec(e);return i?{property:"background-size",value:v(i[1])}:null}function Ar(e){let o={"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(o)return{property:o[0],value:o[1]};let t=/^mask-(position|size)-(.+)$/.exec(e);if(t)return{property:`mask-${t[1]}`,value:v(t[2])};let i=/^mask-(\[.+\]|\(.+\))$/.exec(e);return i?{property:"mask-image",value:v(i[1])}:null}function _r(e,r,o){let t=Dr(e,r,o);if(t)return t;if(Tr(e))return null;let i=vr(e,o);if(i)return i;let n=nr(e,r,o);if(n)return n;let l=/^border-spacing(?:-(x|y))?-(.+)$/.exec(e);if(l){let x=l[1],z=S(l[2],r,o);return z?x?[{property:`--cssx-border-spacing-${x}`,value:z,semanticGroup:`border-spacing-${x}`},{property:"border-spacing",value:"var(--cssx-border-spacing-x, 0) var(--cssx-border-spacing-y, 0)",semanticGroup:`border-spacing-${x}`}]:{property:"border-spacing",value:z}:null}let a=or(e);if(a)return a;let p=br(e,o);if(p)return p;let u=Er(e);if(u)return u;let d=gr(e,r)??yr(e,r);if(d)return d;let m=Wr(e);if(m)return m;let s=Ar(e);if(s)return s;let c=ur(e,r,o);if(c)return c;let f=dr(e,o);if(f)return f;let b=mr(e,o);if(b)return b;let g=Qe(e,r,o);if(g)return g;let y=/^columns-(auto|\d+|\[[^\]]+\]|\(--[a-z0-9_-]+\))$/i.exec(e);if(y){let x=y[1];return{property:"columns",value:x.startsWith("[")||x.startsWith("(")?v(x):x}}if(e==="content-none")return{property:"content",value:"none"};let k=/^content-(\[[^\]]+\]|\(--[a-z0-9_-]+\))$/i.exec(e);if(k)return{property:"content",value:v(k[1])};let C=/^(?:break-(before|after)-(auto|avoid|all|avoid-page|page|left|right|column)|break-(inside)-(auto|avoid|avoid-page|avoid-column))$/.exec(e);if(C){let x=C[1]??C[3],z=C[2]??C[4];return{property:`break-${x}`,value:z}}let w=/^object-(\[[^\]]+\]|\(--[a-z0-9_-]+\))$/i.exec(e);if(w)return{property:"object-position",value:v(w[1])};let _=/^tab-(\d+|\[[^\]]+\]|\(--[a-z0-9_-]+\))$/i.exec(e);if(_){let x=_[1];return{property:"tab-size",value:x.startsWith("[")||x.startsWith("(")?v(x):x}}let h=/^list-image-(\[[^\]]+\]|\(--[a-z0-9_-]+\))$/i.exec(e);if(h)return{property:"list-style-image",value:v(h[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 O=/^grid-cols-(\d+)$/.exec(e);if(O)return{property:"grid-template-columns",value:`repeat(${O[1]}, minmax(0, 1fr))`};if(e==="grid-cols-subgrid")return{property:"grid-template-columns",value:"subgrid"};let he=/^grid-rows-(\d+)$/.exec(e);if(he)return{property:"grid-template-rows",value:`repeat(${he[1]}, minmax(0, 1fr))`};if(e==="grid-rows-subgrid")return{property:"grid-template-rows",value:"subgrid"};let G=/^(col|row)-span-(\d+|full)$/.exec(e);if(G)return{property:G[1]==="col"?"grid-column":"grid-row",value:G[2]==="full"?"1 / -1":`span ${G[2]} / span ${G[2]}`};let P=/^(col|row)-(start|end)-(\d+|auto)$/.exec(e);if(P)return{property:`grid-${P[1]==="col"?"column":"row"}-${P[2]}`,value:P[3]};let H=/^order-(first|last|none|\d+)$/.exec(e);if(H){let z={first:"-9999",last:"9999",none:"0"}[H[1]]??H[1];return{property:"order",value:r&&z!=="0"?z.startsWith("-")?z.slice(1):`-${z}`:z}}let be=/^basis-(.+)$/.exec(e);if(be){let x=W(be[1],r,o,"basis");return x?{property:"flex-basis",value:x}:null}let ve=/^flex-(\d+(?:\/\d+)?|\[[^\]]+\]|\(--[a-z0-9_-]+\))$/i.exec(e);if(ve){let x=ve[1],z=x.startsWith("[")||x.startsWith("(")?v(x):Ye(x);return z?{property:"flex",value:z}:null}let xe=/^opacity-(\d{1,3})$/.exec(e);if(xe)return{property:"opacity",value:String(Number(xe[1])/100)};let ke=/^z-(\d+|auto)$/.exec(e);if(ke)return{property:"z-index",value:ke[1]};let we=/^leading-(none|tight|snug|normal|relaxed|loose|\[[^\]]+\])$/.exec(e);if(we)return{property:"line-height",value:Ve(we[1])};let $e=/^font-(\[[^\]]+\]|\(--[a-z0-9_-]+\))$/i.exec(e);if($e)return{property:"font-family",value:v($e[1])};let Se=/^tracking-(tighter|tight|normal|wide|wider|widest)$/.exec(e);if(Se)return{property:"letter-spacing",value:Ne(Se[1])};let Ce=/^animate-(.+)$/.exec(e);if(Ce)return rr(Ce[1],o);let ze=tr(e,r,o);return ze||null}var jr={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 Ut(e,r){return fe(e,r).atoms}function fe(e,r){let o=M(e),t=Q(e);if(!t)throw new Error(`CSSX cannot compile utility "${e}".`);let i=_t(o.utility,o.negative,r),n=jt(i,r);if(o.important)for(let a of i)a.value=`${a.value} !important`;let l=Ie(i);return{candidate:e,atoms:l,resources:{keyframes:n,properties:Mt(e)},writes:l.map(a=>{let p=a[0]?.semanticGroup??t.group;return{group:p,conflicts:a[0]?.semanticConflicts??[p]}})}}async function ge(e,r="",o={}){return Tt(e,t=>t,r,{},void 0,o,!0)}async function Tt(e,r,o,t,i,n,l){if(e.length>5e4)throw new Error("CSSX supports at most 50,000 utility candidates per compilation.");let a=V(o),p=Object.create(null),u=[],d=new Set,m=new Set;for(let g of[...new Set(e)]){let y=fe(g,a),k=l?[r(g)]:Dt(g,r(g));if(p[g]=k.join(" "),(i?k.filter(w=>i.has(w)||(t[w]?.length??0)>0):k).length!==0){u.push(...Et(g,k,a,y.atoms,t,i,n));for(let w of y.resources.keyframes)d.add(w);for(let w of y.resources.properties)m.add(w)}}u.sort((g,y)=>g.order!==y.order?g.order<y.order?-1:1:g.candidate<y.candidate?-1:1);let s=[...new Map(u.map(g=>[g.css,g])).values()],c=`${[...m].sort().map(It).join("")}${[...d].sort().map(g=>oe(a,g)).filter(g=>g!==void 0).join("")}`,f=s.map(g=>g.css).join(""),b=`${te(a,`${c}${f}`)}${c}`;return{classes:p,prefixCss:b,entries:s.map(({candidate:g,css:y})=>({candidate:g,css:y})),css:`${b}${f}`}}function Dt(e,r){let o=r.split(/\s+/).filter(Boolean);if(o.length===0||o.some(t=>!/^(?:[A-Za-z_][A-Za-z0-9_-]*|[0-9][A-Za-z0-9_-]*)$/.test(t)))throw new Error(`CSSX received an unsafe generated class name for utility "${e}".`);return o}function ye(e,r){Ut(e,r)}function Et(e,r,o,t,i,n,l){let a=M(e),p=Q(e);if(r.length===1){let u=t.flat(),d=r[0],m=Or(d,i,n);return[{candidate:e,className:d,css:ce(m,u,a.variants,o,l),order:Mr(a,p.group,u)}]}if(r.length!==t.length)throw new Error(`CSSX expected ${t.length} generated classes for utility "${e}".`);return t.map((u,d)=>{let m=r[d],s=Or(m,i,n);return s.length===0?null:{candidate:e,className:m,css:ce(s,u,a.variants,o,l),order:`${Mr(a,p.group,u)}\0${d}`}}).filter(u=>u!==null)}function Or(e,r,o){let t=new Set(r[e]??[]);return(!o||o.has(e))&&t.add(e),[...t].sort().map(i=>`.${Wt(i)}`)}function Wt(e){let r="";for(let o=0;o<e.length;o++){let t=e.charCodeAt(o),i=e[o];o===0&&t>=48&&t<=57?r+=`\\${t.toString(16)} `:t>=128||t===45||t===95||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122?r+=i:r+=`\\${i}`}return r}var At={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 Mr(e,r,o){let t=e.variants.map(s=>{let c={sm:100,md:101,lg:102,xl:103,"2xl":104,dark:200,print:300}[s];return`${String(c??10).padStart(3,"0")}:${s}`}).join(":"),i=String(At[r]??900).padStart(3,"0"),n=o.map(s=>s.property),l=n.includes("transition-property")&&n.length>1,a=n.some(s=>jr[s]!==void 0),p=n.some(s=>s==="animation-timeline"||s.startsWith("animation-range")||s.startsWith("scroll-timeline")||s.startsWith("view-timeline")||s==="timeline-scope"),u=e.variants.includes("starting"),m=e.variants.some(s=>s.startsWith("vt-"))?500:u?400:p?300:a||l?100:200;return`${String(m).padStart(3,"0")}\0${t}\0${i}\0${r}`}function _t(e,r,o){let t=He[e];if(t)return N(t);if(e.startsWith("[")&&e.endsWith("]"))return[er(e)];let i=ir(e,r,o);if(i)return i;let n=lr(e,o);if(n)return n;let l=ar(e,o);if(l)return l;let a=sr(e,r,o);if(a)return a;let p=cr(e,o);if(p)return p;let u=pr(e,r,o);if(u)return Array.isArray(u)?u:[u];let d=_r(e,r,o);if(!d)throw new Error(`CSSX cannot compile utility "${r?"-":""}${e}".`);return Array.isArray(d)?d:[d]}function jt(e,r){let o=new Set;for(let t of e)if(t.property==="animation-name")for(let i of t.value.split(",").map(n=>n.trim()))r.keyframes[i]&&o.add(i);else if(t.property==="animation"){let i=Ot(t.value,r);for(let n of Object.keys(r.keyframes)){let l=n.replaceAll(/[.*+?^${}()|[\]\\]/g,"\\$&");new RegExp(`(?:^|[\\s,])${l}(?=$|[\\s,])`).test(i)&&o.add(n)}}return[...o].sort()}function Ot(e,r){return e.replaceAll(/var\((--[a-z0-9_-]+)\)/gi,(o,t)=>{let i=r.prefix?`--${r.prefix}-`:"",n=i&&t.startsWith(i)?`--${t.slice(i.length)}`:t;return E(r,n)??o})}function Mt(e){let r=M(e),o=/^scrollbar-(thumb|track)-/.exec(r.utility)?.[1];return o?[`--cssx-scrollbar-${o}`]:[]}function It(e){return`@property ${e}{syntax:"<color>";inherits:true;initial-value:#0000;}`}var Ir="data-cssx-runtime";async function Vr(e={}){let r=e.document??globalThis.document;if(!r)throw new Error("@cssxio/html requires a browser document.");let o=e.theme??"",t=Vt(r,o),i=await ge([...t],o,{darkMode:e.darkMode}),n=Nt(r)??Gt(r);return n.textContent=i.css,n}function Vt(e,r){let o=V(r),t=new Set;for(let i of e.querySelectorAll("[class]")){let n=i.getAttribute("class");if(!n)continue;let l;try{l=Z(n)}catch{continue}for(let a of l)try{ye(a,o),t.add(a)}catch{}}return t}function Nt(e){return e.head.querySelector(`style[${Ir}]`)}function Gt(e){let r=e.createElement("style");return r.setAttribute(Ir,""),e.head.append(r),r}function Nr(){Vr().catch(e=>{console.error("@cssxio/html could not compile the page classes.",e)})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Nr,{once:!0}):Nr();})();
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";var a=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var h=(e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})},S=(e,t,n,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of u(t))!y.call(e,o)&&o!==n&&a(e,o,{get:()=>t[o],enumerable:!(s=m(t,o))||s.enumerable});return e};var f=e=>S(a({},"__esModule",{value:!0}),e);var g={};h(g,{RUNTIME_STYLESHEET_ATTRIBUTE:()=>i,start:()=>p});module.exports=f(g);var r=require("@cssxio/compiler"),i="data-cssx-runtime";async function p(e={}){let t=e.document??globalThis.document;if(!t)throw new Error("@cssxio/html requires a browser document.");let n=e.theme??"",s=T(t,n),o=await(0,r.compileSourceUtilities)([...s],n,{darkMode:e.darkMode}),c=E(t)??M(t);return c.textContent=o.css,c}function T(e,t){let n=(0,r.parseTheme)(t),s=new Set;for(let o of e.querySelectorAll("[class]")){let c=o.getAttribute("class");if(!c)continue;let l;try{l=(0,r.splitCandidateList)(c)}catch{continue}for(let d of l)try{(0,r.validateUtilityCandidate)(d,n),s.add(d)}catch{}}return s}function E(e){return e.head.querySelector(`style[${i}]`)}function M(e){let t=e.createElement("style");return t.setAttribute(i,""),e.head.append(t),t}0&&(module.exports={RUNTIME_STYLESHEET_ATTRIBUTE,start});
@@ -0,0 +1,22 @@
1
+ import { DarkMode } from '@cssxio/compiler';
2
+
3
+ /** Options for a self-hosted CSSX HTML runtime. */
4
+ interface StartOptions {
5
+ /** CSSX theme source compiled into the injected stylesheet. */
6
+ readonly theme?: string;
7
+ /** Controls how the `dark` variant is activated. */
8
+ readonly darkMode?: DarkMode;
9
+ /** Document whose initial class attributes are compiled. */
10
+ readonly document?: Document;
11
+ }
12
+ /** Attribute used to identify the stylesheet injected by this runtime. */
13
+ declare const RUNTIME_STYLESHEET_ATTRIBUTE = "data-cssx-runtime";
14
+ /**
15
+ * Compiles CSSX utilities found in the initial document into one stylesheet.
16
+ *
17
+ * @param options Runtime configuration for a self-hosted browser bundle.
18
+ * @returns The stylesheet added to the document head.
19
+ */
20
+ declare function start(options?: StartOptions): Promise<HTMLStyleElement>;
21
+
22
+ export { RUNTIME_STYLESHEET_ATTRIBUTE, type StartOptions, start };
@@ -0,0 +1,22 @@
1
+ import { DarkMode } from '@cssxio/compiler';
2
+
3
+ /** Options for a self-hosted CSSX HTML runtime. */
4
+ interface StartOptions {
5
+ /** CSSX theme source compiled into the injected stylesheet. */
6
+ readonly theme?: string;
7
+ /** Controls how the `dark` variant is activated. */
8
+ readonly darkMode?: DarkMode;
9
+ /** Document whose initial class attributes are compiled. */
10
+ readonly document?: Document;
11
+ }
12
+ /** Attribute used to identify the stylesheet injected by this runtime. */
13
+ declare const RUNTIME_STYLESHEET_ATTRIBUTE = "data-cssx-runtime";
14
+ /**
15
+ * Compiles CSSX utilities found in the initial document into one stylesheet.
16
+ *
17
+ * @param options Runtime configuration for a self-hosted browser bundle.
18
+ * @returns The stylesheet added to the document head.
19
+ */
20
+ declare function start(options?: StartOptions): Promise<HTMLStyleElement>;
21
+
22
+ export { RUNTIME_STYLESHEET_ATTRIBUTE, type StartOptions, start };
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ import{compileSourceUtilities as l,parseTheme as d,splitCandidateList as m,validateUtilityCandidate as u}from"@cssxio/compiler";var i="data-cssx-runtime";async function E(t={}){let e=t.document??globalThis.document;if(!e)throw new Error("@cssxio/html requires a browser document.");let o=t.theme??"",r=y(e,o),s=await l([...r],o,{darkMode:t.darkMode}),n=h(e)??S(e);return n.textContent=s.css,n}function y(t,e){let o=d(e),r=new Set;for(let s of t.querySelectorAll("[class]")){let n=s.getAttribute("class");if(!n)continue;let c;try{c=m(n)}catch{continue}for(let a of c)try{u(a,o),r.add(a)}catch{}}return r}function h(t){return t.head.querySelector(`style[${i}]`)}function S(t){let e=t.createElement("style");return e.setAttribute(i,""),t.head.append(e),e}export{i as RUNTIME_STYLESHEET_ATTRIBUTE,E as start};
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@cssxio/html",
3
+ "version": "0.2.0",
4
+ "description": "Zero-build runtime utility styling for static HTML.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist/index.cjs",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js",
14
+ "require": "./dist/index.cjs"
15
+ }
16
+ },
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "sideEffects": false,
21
+ "scripts": {
22
+ "build": "tsup"
23
+ },
24
+ "dependencies": {
25
+ "@cssxio/compiler": "workspace:*"
26
+ }
27
+ }